October 8, 2009

Moving Shared Folders with Permissions

Let's say you have a brand new faster computer with bigger hard drives. This will be your new server. But there are loads of files on old servers with shares having different permissions on it. How can you easily copy old files to your new server.

The first tool you need is robocopy (Available by Microsoft). This tool allows copying files with access permissions. Use with parameter /DATSU. If you use /DATSOU, you may not able to turn back (Ex. delete copied files)
Because you are not the owner of those files.

We have copied files but shares are not available yet. First, we need to start sharing of those folders. Don't worry about the permissions for now. Then use permcopy (Available by Microsoft). Permcopy is a simple tool that moves shared folder permissions from one server to another server.

Now you have a copy ofthe files on your old server in your new server. Congratulations!

September 26, 2009

Face Tagging in Pictures

New Picasa release v3.5 has a nice feature to play with. Face tagging...

It detects faces in pictures and you can give a tag to that face. Then it automatically adds the picture that face in, into that group.

It works unexpectedly very well on my pictures. Very few number of wrong detections occurred. You should really try it.

Have fun :)

September 13, 2009

Time Synchronization In Wireless Sensor Networks

Last year on October, I have completed my master thesis(Time Synchronization In Wireless Sensor Networks). For those who have interest on this subject, download is available at here.

Also, the paper I sent to ISCIS '08 (Time Synchronization Algorithms Based On Timing-Sync Protocol in Wireless Sensor Networks) is available at here. However, The results here are not the latest. I recommend you to look at the thesis for latest results.

Abstract
In this thesis, an enhanced synchronization algorithm for Wireless Sensor Networks is proposed. This algorithm uses TPSN (Timing-sync protocol for sensor networks) as a base synchronizer and does modifications on it to achieve a better synchronization with a lower message overhead. Basically, there are three improvements that can be applied onto TPSN, which are clustering the network, chain synchronization among nodes and adaptive synchronization interval. In the first phase of the thesis, a simulation environment is provided for TPSN using pthreads on a Linux computer. This environment helps understanding the parameters that TPSN relies on and testing the algorithm in different simulated environments with different characteristics using the enhancements onto TPSN algorithm. In the second phase, ns2 simulator environment is used to get more precise results and test the modifications. Finally, latest modifications are done on TPSN and all the results are gathered from ns2.

September 5, 2009

Keeping your softwares up to date

You have installed your favourite applications such as 7zip, CCleaner, Spybot Search & Destroy or OpenOffice.org. Do you know how to keep them up to date in a noninteractive way?

FileHippo.com Update Checker is a small handy utility that checks your installed softwares for new versions. When any update is available, it shows a list of available downloads. It is also easy to use.

August 31, 2009

Regular Expression Testing Inside Eclipse

I have been working on a simple project which codes print statements to shorter strings. This reduces code size of debug builds and decrease effect of print statements, especially in embedded systems. It is called Coded Debug Print and available at http://codeddebugprint.sourceforge.net/.

In that project, I use regular expressions to fetch print statements. Eclipse Pydev is my primary development environment and I was using external tools to test regular expressions. However, some time ago, I have found the plugin regex-util, which is avaiable at http://myregexp.com/eclipsePlugin.html.

That's a very nice plugin and helps a lot to write regular expression, especially in my simple project. Thanks to the developer of this plugin.

Looking forward to see other nice eclipse plugins.

August 22, 2009

Codeddebugprint is on mac.softpedia.com

Here it is.


That's good news for me to see some people uses my script. It also means that I should continue updating the codeddebugprint builds. It will be very hard while doing your military service :)

Next build will have support for formatted prints. It is not supported on v0.1. It will be available on v0.2

Stay connected.


May 7, 2009

New CodedDebugPrint Release

I am proud to announce first usable version of Coded Debug Print. It allows multiple files and an example makefile is included.

This may be a small utility but people working on low resource systems (Ex. low ram or flash memory) will get the most benefit.

By using Coded Debug Print, you can get the same trace prints but your software size will be much smaller. Because, all strings are stored on host PC and translated into what is expected on runtime. Trace prints may come from serial port or command console. It does not matter.

Next version will handle %d style variables. Stay connected.