Bookmark, share, and hop your favorite sites with SiteHoppin Toolbar for Firefox!



DIY Linux Web Server HACK - Automate your MySQL MySQL database backups

Posted in Blog, Cool, DIY Zedomax, DoItYourself!, Educational, Hack, Linux, Ubuntu, Web, Wordpress by max on the February 10th, 2008 at 5:24 pm

Okay, I’ve been running dedicated servers for couple years now and I used to mess around with Linux boxes back in college.

Here’s an essential automatic script and a cron job you will need in order to keep your backup automatic.

Yes, if you get a dedicated server, don’t get their stupid extra $15/month for backing up your database.  (All they do is make scripts like this one and charge you for it)

You can follow this example and go spend that money on junk food.

So all you have to do is FTP your backup files.

This is way better than going into your phpMyAdmin and downloading from the web interface since the file is already ready for you to download.

Here’s how you do it:

1) Make a new file called backup.sh in your home directory. 2) Use the following syntax:

mysqldump -u[USERNAME] -p[PASSWORD] --opt [DATABASE NAME] > /root/backup/DATABASE1.sql

Here’s an example backup.sh file if you had 2 databases:

mysqldump -uUser1 -pPassword1 --opt Database1 > /root/backup/Database1.sql
mysqldump -uUser2 -pPassword2 --opt Database2 > /root/backup/Database2.sql
tar cvf /root/backup/sqlbackup.tar /root/backup/*

You can test your script by typing this:

sh backup.sh

(The mysqldump will overwrite the older file if you run this more than once)

3) If everything is working good, now you can put that script to be run once a day in your cron job.

For Fedora Core, you can edit this file /etc/cron.d/sa-update

Add the following line:

10 3 * * * root sh /root/backup/backup.sh

This will execute the script once a day at 3:10AM.

Now simply download one tar ball file whenever you feel like backing up your database.

You can probably change this a little bit and use it for many other things like backing up all your files too. (which I do)

If you have multiple servers like me, you can also automate your scripts to download backup databases to each server. That keeps things real redundant in case of server failure.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


DIY QUICK HACK - HOWTO make a bathroom ventilation fan using a PC fan in just 1 minute!

Posted in Computer, Cool, DIY Zedomax, DoItYourself!, Hack by max on the February 9th, 2008 at 4:04 pm

HOWTO make a bathroom ventilation fan using a PC fan!

Okay, I haven’t been doing much DIYs but here’s a fun one for your bathroom.

Here’s the story:

My bathroom has a vent but no fan. Everytime I shower, the vent does not work well enough to ventilate the bathroom of the fog generated.

So, I decided to build a small little bathroom ventilation fan using some PC fans I had laying around the house and a 12 DC adaptor I also had around.

What you need:

1 PC Fan

1 12V DC Adaptor (You probably have one laying around the house too, you just don’t realize it. Look at the label of any old adaptors you have and find the one that says 12VDC. (9 to 15VDC works too)

2 screws (something to mount your PC fan onto your bathroom vent.

Now, just watch the video and see how simple it is to turn household junk into a useful bathroom vent.

Click Here to View in Full Screen Mode

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Zedomax Christmas Wreath now on… Lifehacker!

Posted in AOL, Blog, Consumer, Cool, DIY Zedomax, DoItYourself!, Gadgets, Google, Hack, Projects, Social Networking, Web, Wordpress, Yahoo by max on the December 17th, 2007 at 2:31 am
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Our LED Christmas Wreath has virally spread over the internet

Posted in Consumer, Cool, DIY Zedomax, DoItYourself!, Gadgets, Video by max on the December 16th, 2007 at 6:51 pm

http://zedomax.com/wiki/images/6/69/Diy123-39.jpg

Click Here to View in Full Screen Mode

In case you have been missing out, our LED Christmas Wreath has been “virally” spreading over the internet without our knowledge. Some people are even making money off our videos but we like it since it’s being virally spread everywhere.

Well, we just wanted you to know that this can be made by simply following our direction here.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Christmas DIYs - Go make yourself one of Zedomax’s LED Christmas Tree!

Posted in Circuits, Consumer, Cool, DIY Zedomax, DoItYourself!, Gadgets, Video by max on the December 16th, 2007 at 6:43 pm

Click Here to View in Full Screen Mode

Wow, it’s been almost a year since we’ve made some Christmas DIYs. To bring them back to life, we are featuring it here again and well tell you to go make yourself one by following our directions here.

BTW, we are going to go buy a real Christmas tree this year. (Well it’s plastic but not LEDs…)

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Halloween DIYs - Pitchfork LED, Talking Halloween Basket, and spinning wireless thingee

Posted in Circuits, Consumer, DIY Zedomax, Educational, Entertainment, Hack, Projects by max on the September 12th, 2007 at 3:26 am
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Live Blogging - Zedomax Booth at Maker Faire

Zedomax Booth at Maker Faire

Zedomax Booth at Maker Faire 2

Zedomax Booth at Maker Faire 3

Hey we are live at the Maker Faire, blogging live! See our automated camera that follows people? Well, it’s a $160 Logitech camera we got in a hurry at Best Buy last night just before the store closed. Glad we got it working although the internet here sucks sometimes. Anyway, our booth is really popular! :)

Garrett is doing a great job with the crowd while I am hiding in the back. (Why am I hiding? Blogging of course!)

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


DIY - How to make a Soju Lamp

Posted in Chemistry, Cool, DIY Zedomax, DoItYourself!, Educational, Entertainment, Funny, Projects by max on the May 8th, 2007 at 9:18 pm

Soju Lamp

Similar to the previous post, here’s Zedomax Soju Lamp. The great thing is that I didn’t even TRY to make it, it was just there from my dedication to drinking daily while blogging. (Yes, if you are over 18, we recommend this route. Make sure to have a companion while drinking. DWC - Drink with a companion) Although I drink beer mostly, sometimes I resort to Soju because it’s only 16% alcohol and let’s me drink less thus not getting a beer belly. Plus, soju does give you better ideas and let’s you be more creative. (Okay, kids, don’t follow my example until you are in your late 20s…)

Well, I haven’t really finished the Soju Lamp yet, I still have to finish the other side (I haven’t got to it yet, have been very busy with rice wine. Rice wine is very good too.)
One day, if I do finish my Soju Lamp, I will post a nice picture of it. (The above picture is actually a year and a half worth of work. Why I haven’t finished yet? Sometimes, I forget to save the Soju bottle caps.)

HOWTO: Make sure you untwist your Soju bottle carefully so all of the metals stay intact. Then, simply twist the ends of Soju bottle cap while making sure NOT to twist it off the cap. Then shape it so it will fit right on the edge of your lamp. That’s all! Now, the rule is that you must finish all your drinks before putting it on your lamp. So make sure take a long term plan for this project. (Maybe 1-3 years based on your drinking and metal twisting skills. I’ve had many times where I’ve lost the metal ends even though I have a lot of experience…)

By the way, what is Soju? You can read all about it on Wikipedia. Well, to explain it simply, it’s similar to Japanese Sake, but slightly with more alcohol and somewhat like vodka in taste. Chamisul is the Soju you gotta go for if you want to real stuff.

You can email me at max at zedomax dot com if you have any trouble or if you start throwing up and can’t blog…just don’t blame me.

They say in Korea, in order to do business, you have to be able to drink this… (Well that’s what everyone says and I think it’s true…)

UPDATE: Here’s a video of what Soju does to you if you drink too much:

Click Here to View in Full Screen Mode

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Zedomax DIY 128 - HOW TO Make a Glowing Heart LED Night Light!

Posted in Circuits, Consumer, Cool, DIY Zedomax, DoItYourself!, Educational, Entertainment, Gadgets, Graphics, Hack, Microcontroller, Projects, Video by max on the April 27th, 2007 at 12:03 pm

Image:glowing-heart.jpg

Click Here to View in Full Screen Mode

Click Here to View in Full Screen Mode

I was at my local Dollar Store the other day and when I saw this Heart shaped Touch Light, I had to hack one for my gf.Here’s a quick hack on how to make a regular Touch Light and make it into a Glowing Heart Night Light.

Click on “Continue reading” to see the complete howto.

Continue reading ‘Zedomax DIY 128 - HOW TO Make a Glowing Heart LED Night Light!’

, , , , , , , , , , , ,