All Questions

4
answers

Performing an unnamed dual role in the act of declaring it

I'm joking with Javascript and I came across a question. I understand that when my HTML page loads, if I already want to execute a function without having to declare it, I just have to define this direct function, like this: (function(){consol...
asked on 28.08.2015 / 04:52
3
answers

Postgres SQLSTATE [42725]: Ambiguous function

I'm trying to run the following update using Postgres but I'm running into the following message. Does anyone know a way to solve?    "SQLSTATE [42725]: Ambiguous function: 7 ERROR: Operator is not unique:   unknown - unknown " UPDATE produ...
asked on 17.09.2015 / 20:39
1
answer

Pass data in php constructor to class

I have a question about how to submit data for creating a goal, I read in some tutorials that it was just put this way in PHP4: $elo1=new Elo(1300); $elo1->fc_Elo(); But the way I saw it on some web sites, the code is too long, does it h...
asked on 18.09.2015 / 03:31
2
answers

How to adapt / create a method that receives an anonymous class in C #

I have a method in which one of the parameters is an object of an abstract class - ObjectMapper - whose purpose is to convert an object from one class to another from another class. Below, the method signature informs that the objectMapper will...
asked on 17.09.2015 / 17:04
1
answer

How do I add attributes in the img with the_post_thumbnail's WordPress function?

I need to add width="100%" and class="img-responsive" . How do I add to the img if I call it in the index this way? <?php the_post_thumbnail(); ?>     
asked on 10.09.2015 / 07:30
2
answers

How to use the value of options?

In the "options.html" file I know exactly how to make a markup work to enable some javascript set like ... <label> <input type="checkbox" id="test"> Habilitar </label> That will execute the following codes inside o...
asked on 27.08.2015 / 05:04
1
answer

How to use JSON JavaScript to retrieve result in C?

I realized that JSON is used to communicate between systems. So it is possible to communicate with C, retrieving variables through a JSON generated by the code and send through the JavaScript AJAX response? Or is there a better known techniqu...
asked on 14.08.2015 / 05:18
1
answer

HTTP Error 500 using HttpWebRequest

I come here to ask for help regarding HttpWebRequest requests. I need to get the html return from an HTTP 500 error (HTTP / 1.1 500 Internal Server Error). Could someone tell me how it could be done? Below is an example of a HttpWebRequest reque...
asked on 18.08.2015 / 20:39
1
answer

Feedback equal #region Visual Studio

Is there a comment like #region of Visual Studio in PHP with NetBeans?     
asked on 12.08.2015 / 17:52
2
answers

Doubt with global variable in a controller

I have a method in my controller which is called through ajax. It populates a global variable within this controller . Is there any way I can access this global variable already populated by the first method if I call another ajax method o...
asked on 18.08.2015 / 19:42