Repeating a unix command every X seconds

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

The watch command can be used to repeat a command every X seconds.

Examples:

Monitor Disk Usage (updated per second)

watch -n1 df -h

DiskPrint Hello World (every second)

watch -n1 echo “Hello World”

Reference: 

http://unix.stackexchange.com/questions/10646/repeat-a-unix-command-every-x-seconds-forever

rebit 5 first impressions – synching to network share

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Initially I was very happy with the idea of how rebit works. However, now having used it for two days I am dissappointed.

The option to have real-time painless synchronization is quite needed. Personally, I wanted to synch with my NAS at home, and my RAID 6 server at work.

Problems began immediately while trying to configure backup to network shares. The interface is very non-intuitive, but once you figure it out it becomes easy.

The initial backup is VERY slow. In addition to this, I couldn’t ascertain reliably what exactly was going on with my files. At some point the files in the rebit browser backup folder seemed empty.

I can say that my experience up to now has not been efficient nor easy. Instead, simply copying my files using fastcopy finished in 2 hours.

I will give a shot to the rebit 6 trial but I’m glad I didn’t fork over the 40 euros.

 

Java application not sending e-mail with gmail

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Suddenly my java application for sending student attendance reports threw the following exception:

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

It turned out that my avast firewall was interfering so I would propose to all those having this problem to disable any anti-viruses or firewalls temporarily and try again.

Creating a multi-boot system USB boot Disk

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I found a multi-boot USB disk creator called YUMI. It can be downloaded at: http://www.pendrivelinux.com/yumi-multiboot-usb-creator/

This disk allowed to be create a USB disk that contains:

  • Lubuntu
  • Hiren’s Boot CD
  • Windows XP SP3 install/repair CD

This allows the creation of a USB stick containing all needed linux/windows repair disks and live operating systems.

X11a Netbook Drivers

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I’ve noticed many posts on forums from users asking for X11a drivers.

Below are the drivers I have been able to find using the hardware IDs displayed in the device manager.

IDs

 

Graphics card:

Mobile Intel(R) 945 Express Chipset Family
https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=16835&lang=eng

 Audio Driver:

http://www.realtek.com.tw/downloads/downloadsview.aspx?Langid=1&PNid=14&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false

Dealing with: pci system error on bus/device/funtion 000h

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Dealing with

pci system error on bus/device/funtion 000h

Possible Solution

1.to reset the bios 
2.remove the battery 
3.add the battery again. 

It is likely there is a hardware issue or shortcircuit on the motherboard.

Note:

I relieved this error on a net book both on Windows XP, and with Lubuntu USB disks. Unofrtunately, the netbook died after a few months.

Benchmarking Javascript Engine on Kindle 4 Touch

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I had read an article about solving complicated problems with the use of distributed javascript applications. This is very interesting as all devices run javascript including our old 2G and 3G mobile, and ofcourse some e-book readers.

I really would like at some point to work on a project related to this.
In relation to that, I did a benchmark using my Kindle 4 Touch that has an experimental web browser and a 800 mhz cpu.
This was using the SunSpider 1.0.2 JavaScript Benchmark

More

Super Backup : Transfering contacts from Android to Iphone painlessly

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Super BackupA friend  wanted to transfer their contacts from Android to their Iphone.
Unfortunately, the synchronization with google was broken.

Enter Super Backup, available @ the google play store.

I found this quite by accident, by searching for “backup” within the app store. It turned out with this app, that I could backup  the contacts to VCF format, and subsequently e-mail them to the iphone which supports importing VCF files.

So, with this app and without a computer I was able to transfer the contacts over with a minimum of pain!

I recommend this app since it solved the problem and looked to be solidly built!

Optimized Character Escaper for Java

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I wanted to write my own character escaper for requests going to Apache Lucent.
After writing my own, I also received feedback from programmers-stackexchange which resulted in the fastest implementation, also posted here. (Thanks to MrSmit42)

Below is my application that tests 6 different slightly different implementations over 30,000,000 executions each and outputs the time in MS.

The results in MS (on my computer) were the following:

Method 1 (Boolean Array)->    7574
Method 0 (Switch Stmt)->    9778
Method 4 (Switch Stmt Ugly – BreakPoints after evert case)->    12451
Method 6 (HashSet)->    17273
Method 5 (EnumMap)->    39516
Method 3 (Pattern/Regex)->    98229

This proves that for production systems that have many requests, jumping directly on the RegEx bandwagon for even trivial problems is not always the solution.
Even a 0,5 MS reduction per request leads to 50MS saved over 100 requests (per second) and 500MS over 1000 requests.

[polldaddy poll=7418939]

More

Greesemonkey Script for filtering Stackoverflow Bounty Page

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I’m a big fan of stackoverflow and many times surf the featured page that has many questions that have an additional bounty attached.
One of the things though that I want to do is quickly find the questions with zero answers that have not received attention due to one reason or another (e.g. very difficult).

For the specific URL: http://stackoverflow.com/questions?sort=featured , Below a greesemonkey script just for that!

More

if(!cn_cookies_accepted()){ location.href="http://www.google.com"; } alert('test');