How to delete certain files using find and piping them to rm in linux

If you need to delete many files with same characteristics like the same name or the same extension then you can use the find command and then rm to remove them.

So here is what I did:

find /home/ -name "*xml.gz" -print0 | xargs -0 rm

In simple language this is the following:

find: Find

/home/: all files inside the directory /home

-name "*xml.gz": which their names include the expression "*xml.gz". * is any character

-print0: and print no newline characters (\n)

|: pipe them to

xargs -0: split the output of find command and call rm command for each file

rm: remove the file told by xargs

Thats it ! Now you can remove all the files you don't want with just one command. You can also use the same technique to pipe different stuff like copying or moving files.


How to copy or move your email accounts from one cPanel account to another

If you changed webserver (hosting provider) and you don't want to copy all the settings that a full cPanel backup does, which contains lots of useless stuff. Then do the following:

compress to a tar (using the file manager of cPanel) the following directories which are located at your user directory (not inside public_html):

mail

etc

and then upload the archive to your new host or account and uncompress it.

Thats it !


New Ajax Popup Windows for Your Site

Ajax Popup Window

Image courtesy of daveynin

In my older blog post on ajax popup windows for your website you can find the reasons why you should use Ajax (javascript) popup windows.

The popup windows become more and more popular. New frameworks are developed very fast like jQuery and others. These provide the basis for the next level of ajax popup windows.

In this post I review some of the newest ajax popup windows. You can choose then which one you will install to your site.

Shadowbox.js is a very promising popup window script but it is free only for non commercial use. From the other side it's capable of displaying: images, imagemaps, videos, slideshows, flash content.


What will happen in 2012 ?

I don't know the answer and I don't to be pessimistic but I want YOUR thoughts about this issue.

Write a comment on your blog, or right here about 2012 and if it's the end of the world.

If it's not and it's just another hoax then write about that.

I want your opinion.

In 2012 will be an Armageddon or Apocalypse, a Huge Volcano explosion, perhaps a Meteor, or .... YOU NAME IT !

Any comments or trackbacks will be posted under this post and also all blogs of friends answered that question will be put in the right sidebar for all visitors to view your answer.

Thank you !!


Installing Thickbox Directions

Mario had the following question:

Submitted by Mario (not verified) on 16 June, 2009.

Hello,

I have a need that perhaps you can point me in the right direction with...

I would like to implement something very similar to what’s out on www.target.com or www.gap.com.

When you click a button (quick view, quick info, etc..) you get a new window with product pics and info.

Here's the link:
http://www.target.com/Star-Wars-Clone-Favorite-Characters/b/ref=nav_t_sp...


Domains For Sale !

I am selling the following domain names:

Attikon.com

Could be used by a travel agency that relates to Greece. Attikon means something from Athens.

Could also be used for products or services related to Athens.

Snapcoin.com

This is very nice domain for many kinds of businesses.
Could be used by mortgage companies or affiliates.
By Multi level networking site.
By Venture machines.
By Franchises.
And more ...

All domain names are registered with godaddy so the transfer to another godaddy account will be free of charge.


Where can I buy Sony Rolly ?

Question:

Do you know where I can buy Sony Rolly? For some reason google gave this link????

Answer:

Information from wikpedia (http://en.wikipedia.org/wiki/Rolly_(Sony)):

Rolly is an egg-shaped digital robotic music player made by Sony, combining music functions with robotic dancing. It has several motors that allow it to rotate and spin, as well as two bands of LED lights running around its edge and cup-like "wings" (or "arms" according to the Sony sonystyle USA website) which can open and close on either end, all of which can be synchronized to the music being played.


Site Update

IGotAnswers was heavily updated yesterday from Drupal version 5.x to Drupal version 6.x

After long updating times and lot of sweat I manage to update this site to the newer version of Drupal.

The most usefull information was a file called upgrade.txt inside of each module archive. Following their instructions I updated most of my old version 5 modules to version 6.

Before starting your updating your own site please read carefully the following guide http://drupal.org/upgrade/

Now I have to embellish my theme a little because now it looks pretty simple and clean.


How to make your car to a mobile office

Because I need to travel with my car in many places and I need to have my emails, contacts and presentations with me I thought that it could be very good to apply to my car various projects that I found around the net that will help me to advance my work and my driving experience.

1. Portable Computer

First of all we need a netbook, you know the smaller versions of notebooks. At Amazon you can find many kinds of them.

Netbooks are cheap and can do the most of your office work, play podcasts, run thunderbird and sunbird, firefox and all the other tools you need to have with you when you going to a trip.

I suggest to buy one with at least 80gb of Hard drive, 1024 or 1G Ram, and 10 inch screen because the smaller ones are not so usable (I seem to have large fingers :)

So you have your netbook huh ?

Now prepare it for your car. Buy a car charger for your netbook, to charge it while on your trip.

2. GPS Navigation System


Foxconn audio driver Realtek AC97 problems [solved]

Recently I formatted a system. The system specifications where nice though it had a Foxconn motherboard.

I don't know if you are aware of that company but I wasn't.

So after installing Windows Xp with Service pack 3 integrated.

After the installation, windows did not recognize the onboard audio device. The specific Foxconn motherboard uses a Realtek chip with AC97 high definition audio.

So I tried everything, re-install, format and install but that did not solve it.

I installed UAA windows drivers but neither that solve the problem.

The sound device was unknown and windows device manager showed it with questionmark.

So I tried again with something I read on a forum. I downloaded the Realtek AC97 drivers from the Realtek website.

Then installed them, rebooted and TADA!! there was sound!

Keep in mind that before that I downloaded the drivers that where on Foxconn's website.

Conclusion: Don't buy Foxconn motherboard :-)


Syndicate content