Posts by Luídne • 1,748 points
60 posts
-
0
votes1
answer500
viewsQ: How to use ping/pong in Websocket Java
I searched for material on the Web but I haven’t found how to implement ping/pong messages on the Server and Client respectively. I know how to send and receive, but I still don’t understand the…
-
2
votes3
answers13183
viewsA: HOVER effect on a <li> and the components within it
So that all the <li> have the same effect you should apply a selector from the tag itself as follows: li:hover { // código CSS } Instead of: #sair:hover { // código CSS } And let the elements…
-
1
votes2
answers68
viewsA: After clicking on any Listactivity item, always the first record is loaded
The reason to always pick up the first item is related as you are recovering that selected item. Instead of getting the item by the value of View Grab the selected item directly from your Adapter.…
-
1
votes1
answer243
viewsQ: Check which Websocket sessions are inactive
How to check if a session is active, when the device that was connected to the Websocket server suddenly shut down? For in this situation, if I use the method Session.isOpen() the return is true. I…
-
0
votes2
answers551
views -
3
votes2
answers551
views -
0
votes3
answers140
viewsA: Menu as of facebook
Take a look at this project, available on Github and also on the Playstore: Github: https://github.com/rudsonlive/Navigation-Drawer-ActionBarCompat Playstore:…
-
6
votes2
answers4323
viewsA: How to update BD sqlite java android
You can use the following DDL: ALTER TABLE tabela ADD COLUMN nova_coluna CHAR(50) https://stackoverflow.com/questions/4253804/insert-new-column-into-table-in-sqlite Add this code in the method…
-
4
votes1
answer242
viewsQ: Attempt to update registration ID not allowed with JPA and Eclipselink
How do I allow updating the ID of a record with JPA and Eclipselink? The following exception is thrown when I try to update the ID: Caused by: Exception [Eclipselink-7251] (Eclipse Persistence…
-
3
votes1
answer1702
viewsA: Problem when trying to upload files using primefaces 4.0
By default Primefaces 4.0 makes a choice between mode Native and with. Something unexpected must be happening in this choice. To avoid this, add the following in your web xml. to use the Commons…