Posts by fymoribe • 1,588 points
18 posts
-
6
votes1
answer5010
viewsQ: How do Bematech printer cut the print in half?
I am implementing a report in Report Builder in Delphi and I need that in the middle of printing, the printer (Bematech - MP 4200 TH non fiscal printer) make a cut and continue in the same print.…
-
1
votes1
answer768
viewsQ: Coding in Eclipse EE
I have the following problem: I have a web service in Java using Jetty, the same works normally if I request other applications to the server, but my unit tests are returning the encoding all wrong.…
-
1
votes1
answer783
viewsQ: Delete log files with a date later than a week using log4j
In my application I use the log4j library to generate the logs of the whole system. It is working correctly, I use the following settings: Direct log messages to a log file…
-
4
votes2
answers1164
viewsQ: How to identify if an XML is GOOD?
I have the following problem regarding XML encoding: Erro: Byte inválido 2 da sequência UTF-8 do byte 3. This error occurs when trying to canonize an XML. I don’t know exactly what the error might…
-
9
votes2
answers3152
viewsQ: Build generation in the Maven project
I would like to generate a Java build using Maven, where the generated file name . jar was the same number as the last revision of the SVN repository. Example: My last build generated has the…
-
11
votes1
answer1892
viewsQ: Check whether a path is relative or absolute
I wonder if there is a Java function that checks whether the string is a relative path or not: Ex: String caminho = funcao("\\pasta\\arquivo.xml") // retorna true que é um caminho relativo String…
-
10
votes2
answers3444
viewsQ: How to count the amount of occurrence of a substring within a string?
I have the following return: EXCEPTION,Classexception,EXCEPTION, I’d like to take the amount of times that String appears EXCEPTION using Regex. I used the following code:…
-
6
votes2
answers3727
viewsQ: Configure Jenkins to build each commit?
I have Jenkins installed correctly and building every 30 minutes, but I’d like to build every commit in the svn repository. I tried to configure the option: Check the SCM periodically, but I was…
-
10
votes2
answers3697
viewsQ: How to schedule releases on continuous integration with Jenkins?
I’m using the Jenkins tool for continuous integration, it’s working normally. I tried to leave scheduled to build every 3 hours, so I checked the checkbox "Build periodically" and left as follows: *…
-
14
votes2
answers29844
viewsA: How to submit a POST request to a REST API in PHP?
I used the following code snippet to request POST for API: $servidor = $_POST['servidor']; // Parametros da requisição $content = http_build_query(array( 'txtXML' => $_POST['txtXML'] )); $context…
-
5
votes1
answer2169
viewsQ: Problems with slowness Delphi and Firedac
I have an application developed in Delphi XE and a month ago I changed the whole persistence structure that used to use ADO for Firedac. In the compatibility of the new persistence component I used…
-
29
votes3
answers13164
viewsQ: What are the default sizes of android images?
I’m creating my first app on the Android platform and as far as I know one of the negatives of this platform is that existing devices on the market have different screen sizes. I created a project…
-
2
votes1
answer492
viewsQ: Error with Package Control Sublimetext 2
I have the following problem: I installed the Package Control plugin in Sublimetext Editor 2 to be able to install the other plugins via shortcut in the sublime itself, but every time I start the…
-
5
votes9
answers27569
viewsA: How do I read Javascript URL values (Querystring)?
You can use a jQuery plugin: jQuery plugin Purl Example of use: 1st import the Bibiloteca: <script type="text/javascript" src="<caminho>/purl.js"></script> To find the library just…
-
3
votes1
answer3916
views -
8
votes2
answers10814
viewsA: How to set password for Postgresql administration?
To change the postgres user password, type the command: $ sudo passwd postgres After executing the command the following messages will appear: Digite a nova senha UNIX: Redigite a nova senha UNIX:…
-
13
votes3
answers4221
viewsQ: Take only the values before the character "=" using regular expression?
I have a file containing the following contents: Maringa=123123 Marialva=789789 Mandaguacu=123456 Cidadex=A341a2 How do I pick up only the characters before the =, using regular expression? I tried…
-
7
votes2
answers321
views