Posts by Tiaurls • 107 points
11 posts
-
0
votes1
answer630
viewsA: Hibernate self relationship transforming into json breaks
I was able to solve my problem using Google’s lib gson. I used the Annotation: @Exposed In the daughter entities, making the son has no visibility of the father, but the father has the son. The same…
-
0
votes1
answer630
viewsQ: Hibernate self relationship transforming into json breaks
I am using Hibernate to persist the objects in an embedded HSQLDB file. I have created a method similar to a "Tester" to popular and seek the persistent information. But when I search for the…
-
0
votes4
answers196
viewsQ: Similar function to indexof() in Javascript
Supposing I have a string: Lorem ipsum dolor sit Amet, consectetur adipiscing Elit. Praesent eget leo consectetur, condimentum est eu, convallis dolor. Aliquam fringilla et odio a congue. Phasellus…
javascriptasked Tiaurls 107 -
1
votes2
answers1591
viewsA: Receive file lines, and treat them (BASH)
The code below solved my problem: #!/bin/bash file="Tarefas.cfg" count=0; declare arrNomeTarefa; declare arrDirOrigem; declare arrDirDest; declare arrTipoBkp; declare arrAgendarBkp; declare…
-
1
votes2
answers1591
viewsQ: Receive file lines, and treat them (BASH)
I need a bash script that will read a file, recognize the delimiter (in case ";") and store the values that are in the delimiters in variables, to later mount a menu with the dialog... What I’ve…
-
1
votes3
answers1748
viewsQ: Test a constructor with more than one parameter
I am trying to create a test class for my constructor, but it receives three parameters and these parameters are validated within the class itself, to allow or not the creation of its instance.…
-
0
votes2
answers1125
viewsQ: View the side menu in a Form
I have a form that displays a side menu according to this code: procedure TFMainMenu.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin PanelMenu.Visible := (Mouse.CursorPos.X…
-
3
votes3
answers849
viewsQ: DELPHI MVC (ECB)
I would like to know if anyone knows how to implement Pattern MVC (ECB) in Delphi. Usage Delphixe5 And I would like to make it as scalable as possible, and I know that one of the solutions is to…
-
1
votes1
answer501
viewsQ: How to create an event, when mouse reaches a certain area of the application
I am developing an application in Delphi xe5 and would like to make a menu open to the mouse "enter" in an area of my form. It’s kind of complicated to explain, but I’ll try to ... The windows…
-
0
votes1
answer742
viewsQ: HTML/Javascript Connection Webservice C#
I’m trying to make a connection to the bank using web service. I even set up an example where I created the functions sum and multiply in my Webservice, but I’m having difficulty connecting my…
-
1
votes1
answer516
viewsQ: Markers Google Maps V3 Javascript
var map function detectBrowser() { var useragent = navigator.userAgent; var mapdiv = document.getElementById("map_canvas"); if (useragent.indexOf('iPhone') != -1 || useragent.indexOf('Android') !=…