Category Archives: Computer/IT

Getting OpenBSD 5.3

rsync -va –progress rsync://ftp.kddilabs.jp/openbsd/5.3/i386/install53.iso /cygdrive/e/T/complete/warez/

Also posted in Unix One-Liners | Tagged , | Leave a comment

[Sharepoint 2010] Cascading drop-down menus via SPServices/jQuery

I’ve been using InfoPath to achieve this effect in Sharepoint lists but somehow I can’t wrap my head around the data connections and filters and all that. I always need to consult this Youtube video  (which is great btw). jQuery is nice because you can just paste the code within your NewForm.aspx inside the PlaceHolderMain tags and [...]

Also posted in HowTo | Tagged , , , | 8 Comments

[Perl] Find and replace strings in text file

Just a simple find/replace tutorial. This is applicable to sed too. perl -p -ibak -e "s/find text/replacement text/g" file.txt Where “find text” and “replacement text” are what they are. To replace your find string, just use parentheses: \n (in this case \1) means the group number of the find string you parenthesized (not a word?): [...]

Also posted in HowTo, Unix One-Liners | Tagged , , | Leave a comment

Windows Explorer – Cannot rename/delete a folder because a file is in use error

I get this on occasion on my Windows XP at home, usually when I’m arranging my video collection. Googled and found out the problem is not solved in Windows 7. Most of the solutions advice to turn off thumbnail generation for videos and pictures, like this one, this one, and this one. In those threads [...]

Also posted in HowTo | Tagged | Leave a comment

My new password solution

Two things slightly changed my previous password solution. One is the proliferation of good remote (I hate the term “in the cloud” for reasons unknown even to myself) storage. Second is my workplace actually blocking my favorite remote storage which is Dropbox. Online Storage In my post “Current free cloud storage offerings“, I listed the [...]

Also posted in HowTo, security | Tagged , , | 1 Comment

How to use rsync for backing up Windows

I use Cwrsync for Windows. You can use cygwin‘s rsync too. Here’s the actual one-liner I use: .\bin\rsync -vah –progress –exclude ‘/$RECYCLE.BIN’ –exclude ‘/System Volume Information’ /cygdrive/d/* /cygdrive/g/TM_PROD-VDI_BACKUP -v — verbose -a — archive -h — human readable I also got 2 –exclude‘s in there so I won’t be copying the Recycle Bin and System [...]

Also posted in HowTo, Unix One-Liners | Leave a comment

Converting videos to XVID for free on Windows using mencoder

This is just to add to my previous post on how to convert video formats in Unix. In this post it’s for Windows. Converting videos 1. Download Mplayer build for Windows here. 2. Extract somewhere and put it on your path so you can easily call it from any folder. I have a folder inside [...]

Also posted in HowTo, Unix One-Liners | Tagged , , , , | Leave a comment

Install Xorg on FreeBSD without prompts

# cd /usr/ports/x11/xorg # make config-recursive && make install clean

Also posted in HowTo, Unix One-Liners | Tagged , | Leave a comment

Current free cloud storage offerings

https://drive.google.com/ – 5gb free https://skydrive.live.com/ – 7gb http://www.amazon.com/clouddrive/ – 5gb http://www.dropbox.com/ – 2gb free http://www.sugarsync.com/ – 5gb https://www.insynchq.com/ – 5 http://www.cubby.com/ – from logmein, 5gb http://mozy.com/stash – 2gb http://www.spideroak.com/ – 5gb http://www.avg.com/us-en/avg-livekive – AVG, 5GB http://www.wuala.com/ – lacie, 5gb http://www.box.com/ – 5gb http://www.syncplicity.com/ – 2gb

Also posted in Tech | Tagged , , , | 1 Comment

Check bit of Windows 7 via command line

Two ways: 1. systeminfo | more This will display the OS version, Service Pack and other things. For the bit check “System Type”. It should either say “x86-based PC” or “x64-based PC”. You can do this too: systeminfo | find /i "system type" 2. echo %processor_architecture% Will display x86 or x64 for Intel-based systems and [...]

Also posted in HowTo, Tech | Tagged , | Leave a comment