All Questions

1
answer

How to get a PHP object in an ajax function

I have the code below that does a check in my controller and it returns me a count of my request. What I wanted is that in the success of my Jquery ajax I would capture this value to do some javascript conversations in my code. I'm using t...
asked on 18.02.2016 / 17:05
1
answer

Rename all files in a folder to random names

I need a command to rename all files in a folder to a random name, which keep the same file extension, and preferably with numbers, what I've achieved so far was this: forfiles /P c:\teste\ /c "cmd /c rename @path %RANDOM%.@ext" however...
asked on 02.02.2016 / 18:20
1
answer

Timthumb has security exploit issues?

I've heard of programmers saying they do not use Timthumb ("A small php script for cropping, zooming, and resizing web images (jpg, png, gif). safety. Does anyone know how to recommend another library or script that I have already used so that...
asked on 04.02.2016 / 14:36
2
answers

Query in two tables at the same time

I have, for example, the following scenario:                           Table                                Column01                                Column02                                Column03              Home                        ...
asked on 18.02.2016 / 23:09
1
answer

Create add-on that associates number with an image

I need to create an add-in that associates a number with an image. Example: =getImageQualidade(1) 'e nessa célula ficava a imagem. I already know how to create / implement a basic add-in in Excel link Now my problem is in the code....
asked on 09.02.2016 / 14:50
2
answers

How to add elements in the "x" position of a std :: vector

How do I add an element to the position I indicate in std::vector ? Not to delete what you already have, but is to add in the middle. Here's an example: Let's suppose that within std::vector has the elements {1,2,3,4,5,6,7,8,9}...
asked on 30.01.2016 / 14:20
1
answer

Saving data with hasMany relationship

I'm trying to do an update and three tables related to Laravel, the past data comes from a single view, and the relationships have already been made, it should be the action update of my controller that is not right below. Update of Corret...
asked on 04.02.2016 / 18:14
1
answer

Using KEY element

In my model, I use a view that is built on certain table joins, which do not have any auto-incremental ID elements. My model requires that I assign a TAG Key , however, since I do not have any single-valued elements, I'm getting problem...
asked on 12.02.2016 / 19:21
2
answers

Hover JQuery function on dynamic elements

Is there any way to use the hover event with jQuery in dynamically created selects options. I tried to use the function on() and live() but it did not work. I tried this way: $(document).on('hover', '.teste', function (...
asked on 28.01.2016 / 16:47
1
answer

JPA does not reflect the changed data in the DB manually

I have a JavaFX application with Hibernate (JPA). In this application I update a TableView with the data I search from BD (MySql). Whenever I click on the system to fetch some data in the DB, it executes the following code: public Task&l...
asked on 27.01.2016 / 16:55