Computers

 

Optimizing Wordpress – Tips for Speed

WordPress

Image via Wikipedia

Wordpress is crap, but it is the best crap we can get. When your website, with Wordpress sitting in the back, starts to pick up traffic, it will slow down and become unresponsive. Adding hardware will help, but correctly implemented load balancing and load distribution across more than one computer can be tricky and expensive. Trying to optimize Wordpress and the web server itself usually gives better short-term results. In the long run even this won’t help and it will just postpone the inevitable, you will have to cluster in one way or another. I am not going to talk about clustering and load balancing today, I will focus on optimizing your Wordpress. Newbie friendly, yet hardcore, meaning that I will provide explanation for all the complicated stuff.
READ MORE

 

Eclipse runs “File Search” when pressing AltGr+G

Croatian and Slovenian keyboard layout
Image via Wikipedia

Did you ever have any problems with Eclipse? With initial versions of Galileo1 and in previously released Gynamed there was a problem with preassigned keyboard shortcuts on some locale’s2. The problem that Eclipse created when using Slovene keyboard layout was that while programmer wanted to type the ] key, Eclipse run File Search action.

Slovenian users are not to blame that their keyboard has ] key mapped to AltGr+G key combination. And Eclipse developers could browse through Wikipedia to discover what obscure keyboard layouts exist.

Any competent programmer will notice that with the default key mapping Eclipse guards programmers from using too many arrays since typically array is marked with [] key combination. They are advancing object oriented design and programming. But in some cases arrays actually make your code faster and optimize memory usage and fragmentation.

To discover how to remedy the problem read on. READ MORE

  1. should be corrected in 3.5 []
  2. Slovenian and Hungarian, if my memory serves me []
 

XMLbeans scomp fails with “java.io.IOException: CreateProcess error=2, The system cannot find the file specified”

Beans Alubia pinta alavesa. Álava, Spain.
Image via Wikipedia

If you are using xmlbeans on Windows to bind your schema to Java types then you are probably using a tool bundled with the distribution called scomp or Schema Compiler. For schema compiler to work you will need to correctly setup computer environment by installing JDK. You can follow through the following check-list to detect if any additional installation steps are required on your machine setup:

  • Start->Run->type cmd and type java in the command line. If no error then your setup is correct; otherwise setup JAVA_HOME and add %JAVA_HOME%/bin to your Path environment variable and try again.
  • Start->Run->type cmd and type scomp in the command line. If no error then your setup is correct; otherwise setup XMLBEANS_HOME and add %XMLBEANS_HOME%/bin to your Path environment variable and try again.

Then run scomp. Depending on your wishes you will probably wan’t to create a .jar file of the Java types scomp compiles from schema files. I used the following command line:

scomp -d schema -src src -out my_schema_1_0_0.jar ./schema/mySchema.xsd

where mySchema.xsd file was stored in ./schema folder.

If you get my_schema_1_0_0.jar, by some coincidence then kudos to you, but most likely you will end up with something similar to this error:

Time to build schema type system: 1.282 seconds
Time to generate code: 18.687 seconds
java.io.IOException: Cannot run program "C:\your current path\javac": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "C:\your current path\javac": CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessBuilder.start(Unknown Source)
 at java.lang.Runtime.exec(Unknown Source)
 at java.lang.Runtime.exec(Unknown Source)
 ... 6 more
BUILD FAILED

Read on to solve this problem.

READ MORE

 

Sony is dedicated to 3D stereoscopic experience for 2010

CHIBA, JAPAN - SEPTEMBER 24:  Visitors watch a...
Image by Getty Images via Daylife

After almost a year of rumors and guessing, on the 7th January, 2010, Sony announced that it is dedicated to bring the 3D experience  to consumer homes. Announcement was made at Consumer Electronics Show (CES). As seen from announcement 3D will be integrated into most aspects of Sony’s product line meaning consumer electronic devices, TV and movie content and game devices.

The latest information is really interesting because it means that PS3 will be able to play stereoscopic games. The update which will enable stereoscopic game play will be available through PS3 update which will be available sometime in the summer 2010. Playback of “Blue-ray” discs with 3D content will also be able on PS3 with later updates.

Read more for additional information about first experience with 3D stereoscopic games. READ MORE

 

TorrentFlux – The Best Torrent Client in the Galaxy

Sinclair 48K ZX Spectrum computer (1982)

Image via Wikipedia

File sharing has a long history and I will start with the time when I first got into it. At that time I was using ZX Spectrum 48k and games were distributed mostly on magnetic tapes packed in plastic boxes more commonly known as compact cassettes1.

Twenty years ago, give or take a few, violation of copyrights2 wasn’t really a big issue in a country behind the iron curtain. Getting a new game involved borrowing the tape from a friend, going back home and copying that tape with a double cassette recorder that supported high-speed dubbing.

The other a more sophisticated way of getting a game was to tune your FM radio to a certain local radio station. Then you had to put a blank tape in a cassette recorder and press Record when they started airing the games3. Yes, the local radio station was in fact airing all sorts of ZX Spectrum games and you were able to record them on tape. This was the first method of file sharing that I encountered and by today this is the only one that is limited only by the range and not by the bandwidth. A billion clients can connect at the same time and perform a download.

Read on if you want to know more on how to set up the best BitTorrent client in the Galaxy. ;)

READ MORE

  1. Back then piracy was not for soft-hearted types, it was for real men — it was almost a hardware business. []
  2. Piracy. []
  3. Storing data as a bunch of chirps and beeps on the audio tape was something very common. []

Support Us