All Questions

4
answers

How to replace the src of an img tag?

I have an html page that shows an image for each day of the year. Images are organized into folders such as /img/o1/o1.jpg (referring to January 1st), and so on. My html is simple I want you to take the day + month today and replace...
asked on 28.03.2014 / 03:58
3
answers

How to filter data entries in PHP

Good evening, I have a form serving data entry that is displayed on the screen. The problem is that this data can be html tags or scripts, if someone puts this code in my form, the page will be redirected. <meta http-equiv="refresh" content...
asked on 16.02.2015 / 04:33
3
answers

Is it recommended to use scaffolding?

Certain frameworks offer the possibility of scaffolding , that is, you can enter some parameters (such as the name of the model / table and attributes / columns), and the framework generates all or most of the code needed for that form to work...
asked on 08.09.2014 / 17:49
2
answers

How to get an attribute of several "tags" with same ID

Hello, when I click on one of the 3 options in "HTML" that is in the code below, I want the function in "JS" to issue an "alert" with the "idPost" in which it was clicked. EX: When I click on the link "PHP" it issues an alert 25, which would be...
asked on 22.04.2015 / 01:52
5
answers

Keyboard buffer cleaning after scanf

I'm having problems with the scanf(); function. When reading two or more values, subsequent values are not read. I've already tried: __fpurge(stdin); After doing the readings, but in this case, I need to give an enter after each...
asked on 15.03.2014 / 18:25
2
answers

Exit two Foreachs PHP

I need to iterate several collections and if I find a condition I have to exit more than one iteration loop. Ex: foreach ($order->getItemCollection() as $item) { foreach ($order->getFreight()->getPackageCollection() as...
asked on 06.10.2014 / 20:47
2
answers

WebMethod is not called (triggered) through PageMethod

I'm not able to fire a WebMethod on a project created in Visual Studio 2013 (WebForms Application). If I create a project, for example, in Visual Studio 2008 and migrate to Visual Studio 2013, it works correctly. If I create a new proj...
asked on 13.01.2014 / 14:53
3
answers

How to check if a variable was defined in Python?

Is there any way to check whether or not a variable was defined in Python?     
asked on 10.02.2015 / 17:56
1
answer

Digital signature of software

I use the Kaspersky antivirus and for it to allow my software, written in Delphi, to run I needed to mark it as reliable software. The reason Kaspersky gave was that the software is not reliable because it is not digitally signed. Look...
asked on 29.03.2014 / 12:57
6
answers

How to fix this "Error can not resolve symbol R" error in Android Studio

I imported a project in Eclipse to Android Studio and there were errors in the code regarding R with the following message    can not solve symbol R How can I fix this error?     
asked on 24.06.2015 / 15:28