Posts by Rubico • 1,936 points
67 posts
-
4
votes3
answers1110
viewsA: Multidimensional array of different types
Diego, as I saw that you search the database for a view, which leads me to believe that the total relation per user is something very special for you. I believe that this would be the case to create…
-
1
votes1
answer901
viewsA: Focus on a browser tab with Javascript
Lucas, as mentioned here there is no effective and 100% reliable method to trigger a specific tab of the browser. You can use the function window Focus.(), but remember that it will probably be…
-
1
votes3
answers1406
viewsA: How to change a value of a variable inside an if in java?
In fact Saul Victor, I believe the eclipse is complaining for a reason, which would happen if your menu were not any of the options? I know you must be limiting the options with all the existing…
-
0
votes2
answers1461
viewsA: How to insert query result in mysql with python
Viniciius, when you use three double quotes in a row in python, you are making a documentation string, or docstring. Then all the code inside the 3 double quotes is ignored. Try to change yours:…
-
9
votes2
answers289
viewsA: Numbers with zero start in Javascript
I took a look at the w3schools and they mention so: Never write a number with a Leading zero (like 07). Some Javascript versions interpret Numbers as octal if they are Written with a Leading zero.…
-
6
votes3
answers1792
viewsA: Is it a good idea to declare variables with accents?
Wallace, the use of accentuation of variables is allowed, but it is not a good habit to use them. There are some patterns of Omega, an example of them is camelCase, where variables are named with…
-
2
votes4
answers2160
viewsA: When filling in the Date field, perform a jQuery action
I believe that what you want and that when leaving the date field, the event is triggered. For this you can use the event .focusout that is fired at the exact moment your element loses focus. An…
-
3
votes1
answer241
viewsA: I wonder how I use Swing
I will try to answer the questions separately. First the most compelling question. And I need to install, how it works? To start learning how to swing you don’t need to install anything. Since you…
-
4
votes1
answer1671
viewsQ: Alignment drop down menu
I have a horizontal navigation bar, which has submenus. Currently the submenu is aligned to the left of the menu to which it belongs. As in this image: I would like the submenu to be aligned to the…
-
1
votes2
answers157
viewsA: Using a security framework or fingernail?
@Coldhack, I believe that using a framework for security is the best choice. Because frameworks are developed by a larger team, with a larger community, where bugs are mostly discovered and…
-
4
votes1
answer71
viewsA: Select in encrypted value
Try: SELECT * FROM `users` WHERE `password` LIKE SHA1('admin') Edited: I found your problem, SHA1 returns a string of 40 characters. As your database has only 32. Your SHA1(password) has been…
-
2
votes2
answers769
viewsA: Error "Unknown column" in Mysql query
This is because you are passing a constant instead of a reference. Instead of you saying: give me back the value that is present in the column TB_PRODUTOS_INGREDIENTES.ID_PRODUTOS_INGREDIENTES.…
-
2
votes1
answer412
viewsA: How to manipulate Labels using a loop
Rodrigo, you can create a jLabel vector: JLabel [ ] labels = new JLabel [40]; for (int i=0; i < labels.length; i++){ labels[i] = new JLabel ( ); //Todo o codigo que voce precisar que aqui. }…
-
0
votes2
answers4069
viewsA: How to install SVN in Eclipse?
Go to the menu Help > Eclipse Market Place. Search for a plugin called Subclipse. Install it. Here just use.
-
1
votes1
answer41
viewsA: Conversion of dates in the database
If your database is Mysql you can use a mysql function when doing Insert. DATE_FORMAT(data, '%Y-%m-%d'). http://www.w3schools.com/sql/func_date_format.asp…
-
2
votes2
answers756
viewsA: Treat ranges between two Time Mysql fields
Rodrigo, I think a Trigger would meet your need. I never created one, but Trigger’s idea is as follows, after an INSERT, DELETE or UPDATE to Trigger is fired and the code belonging to Trigger is…
-
1
votes1
answer793
viewsA: Changing size of Joptionpane.showInputMessage
I did a Google search and I found this solution. See if it can help you. JOptionPane pane = new JOptionPane(args); JDialog dialog = pane.createDialog(parent, title); dialog.setSize(size);…