Posts by leogaldioli • 859 points
11 posts
-
1
votes1
answer72
viewsA: Replace files with izpack
I managed to solve using <file src="../resources/myfile.properties" targetdir="$INSTALL_PATH/resources" override="false" /> <fileset dir="../resources"…
-
1
votes1
answer72
viewsQ: Replace files with izpack
I have an installer that plays some files in a folder, but I wanted to use the same installer to update the application, so there are some files that cannot be overwritten. This way I thought of…
-
4
votes1
answer702
viewsQ: How to find the server port that answered the request
I’m using the http-proxy to create a load Speak in Nodejs, this module has the event proxy.on('proxyRes', function (res) { .. }); Within this event, I would like to grab the server port that…
-
1
votes4
answers3728
viewsA: Java client library for REST web services
I use the library org.apache.httpcomponents If you use Maven in your project, here are the dependencies <!-- Httpclient: http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient/4.3…
-
9
votes2
answers372
viewsA: How to create regexReplace for a delimiter?
I found the answer in stack overflow, but I will translate here: This regex can be used: (?:\\.|[^\|\\]++)* To pick up all the content between the Pipes: List<String> matchList = new…
-
12
votes2
answers372
viewsQ: How to create regexReplace for a delimiter?
I have the following content: 123|321|1234\|56\|teste\||123 I’d like to make a regex replace to replace all | by line break and ignore the | escaped with \, this way I would like to get the…
-
7
votes1
answer390
viewsQ: How to create a loop to send an event in socket.io?
I have an architectural problem. I have a code using socket. in nodejs: socket.on('images',function (aData){ ... socket.sockets.emit('show', JSON.stringify({imagens : json})) }); I’m trying to…
-
27
votes4
answers3196
viewsQ: What is good practice when casting an exception within if?
What is the best practice in this case, use the Else even knowing that the if will or will not make an exception? option 1 (with Else): if (condicao){ throw new RuntimeException("Mensagem"); }else{…
-
4
votes9
answers27569
viewsA: How do I read Javascript URL values (Querystring)?
function queryString(parameter) { var loc = location.search.substring(1, location.search.length); var param_value = false; var params = loc.split("&"); for (i=0; i<params.length;i++) {…
-
4
votes11
answers8299
viewsA: Should I write my program in English or Portuguese?
It is common to merge the languages as you mentioned in the example "Functionary class", but a good practice is not to mix the languages in the same name as "Funciolistview", only that at the same…
-
0
votes4
answers512
viewsQ: Debug applications in Nodejs
What are the best tools to be used in debugging applications?