IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.

The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

yes it sounds odd, but using _wait appropriately can actually make your scripts run faster, without having to worry whether any script command got skipped because something happened too fast (e.g. maybe because of ajax?) :)

i've found that if i don't insert _wait calls in sahi scripts, then sometimes certain operations get skipped, so my code used to consist of some guesstimated wait periods for certain operations, like this: _setValue(_textbox("editTAParty:contact"), $email); _wait(500); _setSelected(_select("editTAParty:Party_languageIN"), $language); _wait(500);

but if you use the advanced _wait functionality, then nothing will get skipped and your scripts will run as fast as possible. here's an example: _setValue(_textbox("editTAParty:contact"), $email); _wait(10000, _textbox("editTAParty:contact").value == $email); _setSelected(_select("editTAParty:Party_languageIN"), $language); _wait(10000, _select("editTAParty:Party_languageIN").options.selectedIndex == $language);

basically, these wait calls mean to proceed with execution of the next step immediately as soon as the condition is fulfilled (or after 10 seconds--whichever comes first).

10000 means 10 seconds (10000 milliseconds). i set a high number since i don't anticipate any operation in the app that i'm testing to ever taking longer than 10 seconds.

UPDATE 20130902

just tested a full implementation of this on a script with 320 steps and reduced the run time from 7:30 to 1:47 :)

20130822

yesterday i was changing some xhtml files while running my app in debug mode in eclipse, but the changes weren't showing up in the browser and i wasn't seeing any reloading msgs in the console, although my jrebel.log file was showing that changes had been registered:2013-08-22 13:30:49.979 INFO [IntelliJFSNotify] Event 'CHANGE' on: '/home/me/workspaceEclipse/myapp/WebContent/webcomponents/fragments/listTransportRequests.xhtml'

i found this post today JRebel, JSF and automatic reload of xhtml files so i opened my web.xml file to see if these elements were there:<context-param> <param-name>facelets.REFRESH_PERIOD</param-name> <param-value>0</param-value></context-param><context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value></context-param>

and they were, except the values were different:<context-param> <param-name>facelets.REFRESH_PERIOD</param-name> <param-value>2</param-value></context-param><context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>false</param-value></context-param>

when i changed them to 0 and true, then saved the web.xml file, i suddenly saw some output on the console that one of my xhtml files had been changed. then i changed the values back to their original values and jrebel was still reloading them. i stopped the server, rebuilt my project, redeployed in debug and it was still working.... so i'm a little confused...

after 4 hours of endless attempts at trying dozens of people's tutorials, i finally was able to install the amd catalyst drivers on my sony vaio vpcse ( Radeon HD 6600M/6700M/7600M Series ) using a ppa and some additional necessary tasks. here's what i did:

my solution is way simpler:
open richfaces-ui-3.3.3.Final.jar in an archive manager

then open this file in a text editor (double click the file):/org/richfaces/ui.pack.js

beginning around line 15151, you'll see the following lines:}if(A.keyCode==13){if(this.spinner.required||""!=this.edit.value){this.edit.value=this.getValidValue(this.edit.value)}if(this.edit.form){this.edit.form.submit()
change the second line so it looks like this:}if(this.edit.form){/*COMMENTED OUT BY ME: this.edit.form.submit()*/

when you save the file ui.pack.js in the text editor, the archive manager should ask you if you want to update the jar file, choose Update

clear your browser cache, stop your app server, rebuild your project, then restart your server, then test it out in the browser and you should now be able to hit the enter key in a rich:inputNumberSpinner without submitting the form :)

20130805

there we installed oracle 11g (11.1) with a RAID 1 (mirror) disk setup.

today the motherboard on that machine died.

we have another ubuntu server machine (machine2).

we took out the disks on machine2 and replaced them with the disks from mydbserver and after we booted up again, everything worked and we were able to use the RAID disks without any additional processes/configurations :)

wow, that was easy :)

UPDATE 20130919

make sure on the new server that RAID in the BIOS is turned off/disabled

if you already had python installed on your ubuntu machine, then you're all ready to go! if not, then do this:sudo apt-get install python

when python is installed, just open a terminal and change directory to the folder where you have some html files you wanna test in a browser, then start the python simple http server:cdcd Desktoppython -m SimpleHTTPServer

i figured this out because i wanted to test the tlk.io embedded web chat library.

so, in my Desktop folder i made a file called tlkio.html, with the following contents:<html><body><div id="tlkio" data-channel="mytestwebchatchannel0192837465" style="width:100%;height:400px;"></div><script async src="http://tlk.io/embed.js" type="text/javascript"></script></body></html>