Posts by wen-dell • 372 points
13 posts
-
0
votes0
answers36
viewsQ: Hibernate documentation code not clear
My question is about a code that’s in the Hibernate documentation. I simply couldn’t understand the notation they used in the criteria.Where() part. Just notice how it was placed: Person_.name. Can…
-
9
votes1
answer2099
viewsQ: How to Catch Unix Timestamp with Javascript?
I tried it here in some ways, but it seems to be wrong. An example of what I do: var data = new Date(); var timestamp = data.getTime() / 1000; That way is right?…
javascriptasked wen-dell 372 -
4
votes3
answers638
viewsQ: How to take the current time and decrease 24 hours of it?
How to take the current date in Javascript, and create another date, only 24 hours before? To catch the current time just do: var data = new Date(); to pick up 24 hours before, as it does?…
javascriptasked wen-dell 372 -
0
votes2
answers529
viewsA: Text returning with "?" instead of quotation marks and hyphens
Following the PHP documentation you should use the utf8_encode function. Look at the documentation: utf8_encode - Encode an ISO-8859-1 string for UTF-8. See if it solves.
-
1
votes3
answers1150
viewsA: Handling Foreign key errors in Codeigniter
You first have to delete the other record from the table that this table is referencing through the foreign key.
-
1
votes2
answers302
views -
1
votes2
answers1147
viewsA: Differences and use of RMI, Socket and JPA
RMI (Remote Method Invocation) is an API that serves for you to make remote method calls. For example, you can run a method on another computer. Socket would be a connection point between two…
-
1
votes1
answer146
viewsA: Good practices with big queries?
Try creating a view in the database and calling in the PHP code. This way you avoid having to call a long query and leave all the logic in the view. So what I researched here is possible.
-
0
votes2
answers152
viewsQ: Is it possible to compare two variables coming from a view in Django?
Well, I want to compare two variables coming from a view on Django. I’m doing one for and iterating and comparing a Charfield value (student.matricula) with another Charfield (frequencia.matricula)!…
-
0
votes1
answer121
viewsA: Error of Parsing
for syntax is wrong. You should do: for(i = 1; i <= y; i++)
-
3
votes1
answer5600
viewsQ: How to list the highest salary among all employee functions?
Guys, I want to know how do I list only the function that has the highest salary and not the highest salaries of all functions, does anyone give me a light? Go on like I’m doing: select max(Salario)…
-
2
votes2
answers614
viewsQ: How to get current directory of a web application?
I need to know how I get the current directory of my application because I need to save some PDF files. I have tried a few times, but without success. Can anyone give me a light? Look how I’m doing:…
-
2
votes1
answer72
viewsQ: How to make my image appear inside the ui:repeat tag?
I have a question. I am using JSF and Primefaces to make a website for ebooks and need to display the ebooks that are stored in the database. I can register the ebook normally, but when it comes to…