All Questions

1
answer

How to use a specific index in a query in SQL Server?

I have a non-normalized table in SQL Server installed on my PC which is fed monthly by Integration Services (SSIS) from a report into an Excel worksheet. That is, I am keeping track of a certain report. This table has several key fields. Depe...
asked on 17.12.2013 / 13:24
3
answers

How to add a CSS class to images that did not load?

I have an HTML page with numerous images displayed as follows: <img alt="img1" width="50" height="120" src="my_image.jpg" /> <img alt="img2" width="50" height="120" src="another_image.jpg" /> <img alt="img3" width="50" height=...
asked on 04.01.2014 / 15:51
3
answers

What are the ways to apply eval in Javascript

There is more than one way to make a eval() in javascript, problem is that it can be a danger to the user if misused. Internally some other methods also make eval, for example setTimeout() that if put in the argument of callb...
asked on 08.02.2014 / 16:52
3
answers

How can I distribute the .py program without having to install all the libraries?

I'm learning Python and need to distribute a program, read about cx_Freeze and py2exe to generate an .exe. However, I do not mind distributing the program code together, so I do not see a need to generate an .exe. How can I distribute the .py...
asked on 13.06.2015 / 02:47
3
answers

Why is it bad practice to use inline Javascript?

The title already describes the question: why is it considered bad practice to use CSS and Javascript inline in our codes? Is it bad to use this even on smaller projects?     
asked on 18.07.2014 / 17:09
2
answers

How to simplify the following IF in PHP?

I had to do a check to concatenate content to a variable, but I think the service got a little "hog" and wanted to see if anyone could help me simplify this check. if($IdUserOnline2){ $IdsInteracoes .= implode(',',$IdUserOnline2); if($...
asked on 20.03.2014 / 18:24
4
answers

Is there a Site / API for hosting photos on the web?

I wonder if there are any APIs that allow you to host photos on the web. Example: cloud.push(arquivo, callback, fail); I'm going to use this API to enable users to host images for profile photo, etc. (I currently do this using base64, bu...
asked on 25.02.2014 / 02:50
3
answers

How to "round" a float in Python?

I have this sum: total = 0.1 + 0.2 print total #retorna 0.30000000000000004 How would I "round" the decimal places and return only the number of houses added? Example: totalA = 0.1 + 0.2 #retornaria 0.3 totalB = 0.32 + 0.25 #retorna...
asked on 21.12.2014 / 02:15
3
answers

How to remove a site from Google?

I had found some instructions on the internet to remove a site from google, they referred to an old version of webmasters tools, that there was this functionality, but I can not find this option in the current version. I'd like to know how to...
asked on 21.02.2014 / 13:55
4
answers

Is it possible to access the property an object inside itself?

Cadastro = { "descricao" : "Novo usuário", "editando" : false } Is it possible at runtime to get the property value "editing" and use it? Something like: Cadastro = { "descricao" : "Novo usuário", "editando" : false, "...
asked on 16.05.2016 / 14:15