Selasa, 06 Desember 2011

Google won't crawl my blog

Hello again,

I was create this blog for a while month ago, but when I query Google, no result at all about this blog. For information, I use free subdomain (uk.to) that I registered at freedns.org and subdomain pointed to this blog (blogspot) with modified CNAME record at freedns.org.

Now, I have a time to write a post, but I still curious why Google won't crawl all my posts. In my experiences using blogspot, within a days Google crawling new blogspot page with no problem, even without submit URL on Google Add URL.

My fears is for uk.to domain is blocked by Google to crawling that's domain for some reasons (maybe). And I can do now is resubmit my URL (again). Wish me luck!

Regards,

#janglapuk

Get Linux file/directory tree without 'tree' command


Hello again,

On Unix/Linux operating system, sometimes we need to get a directory structures with tree style-like without tree command.

Based on my story (doh!), my HD media player was embedded with Linux operating system and a single 2 GB SATA harddisk drive, busybox for main program utilities. A friend asked my media collections, and I want to give her all collection lists with tree style-like on a text file.

Unfortunately, on busybox there is not a tree program. So, I googled to looking for a solution and I found some useful commands using find, ls, grep and sed.

Here I taken from centerkey.com:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'
Above command is good enough, but that command produces just only directory lists, and I need all directories and all files.

So I modified that command and using find and sed command:

find . -print | sed -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'
Yes, that's right! All directories and files is printed properly.

Regards,

#janglapuk