The fire pit

Posted in Life, The Universe, And Everything on May 3rd, 2012 by chris – Be the first to comment

image

The truck

Posted in Life, The Universe, And Everything on April 24th, 2012 by chris – Be the first to comment

image

Using php to download vimeo flvs

Posted in PHP on February 2nd, 2012 by chris – 7 Comments

Update may 11 2012: Vimeo recently updated their whole site and it broke the downloader code. I have since updated the downloader code and link below so as of now it should work again. If you ever notice that it is broken again, do let me know and I will fix it. Also with this version it seems that they no longer come as flvs but rather they come as mp4s.

This is pretty similiar to the youtube flv downloader, but recently I needed the ability to download the flvs of vimeo videos.

Here is the php class:

http://1chris.com/wp-content/uploads/2012/02/vimeograbber.class.php_.txt

Just rename that file to be .php and go to the bottom where you will see some lines that look like:

//$vimeo_grabber = new vimeograbber("http://vimeo.com/18654578", "vimeo_test.flv");
//echo "done";

Just uncomment those like this:

$vimeo_grabber = new vimeograbber("http://vimeo.com/18654578", "vimeo_test.flv");
echo "done";

and run that file.

It will save the flv as vimeo_test.flv.

For that to run you will need to have curl installed on your server. Also the script will need write permissions to the directory.

If it stops working, let me know and I will fix it.

The difference between require and include.

Posted in PHP on November 14th, 2011 by chris – Be the first to comment

From the php manual:

require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don’t hesitate to use require() if you want a missing file to halt processing of the page. include() does not behave this way, the script will continue regardless. Be sure to have an appropriate include_path setting as well.

This means that if an include fails, it results in a simple warning and php continues to run. If a require fails, the script halts with a fatal error. Good to know. :)

Homemade honey extraction

Posted in Beekeeping on August 31st, 2011 by chris – Be the first to comment

As I was looking around the internet for a cheap honey extractor that would still get the job done, I found that they don’t really exist. :D These things can cost anywhere from like $150 – $1,000 and up. I could see investing that if I had many beehives, but for someone with just one beehive that seemed a little expensive. Luckily I found there are many ways to make your own honey extractor very cheaply.

I found this forum page: http://www.beesource.com/forums/showthread.php?247073-How-to-Build-A-Honey-Extractor-for-28 which had posts from a few different people that built extractors. My favorite was this one: http://www.plantertomato.com/2010/09/beekeeping-how-to-make-a-honey-extractor-for-28.html You basically just attach a drill to the frame and spin it. Of course you’ll need some kind of bucket or barrel, but hey building an extractor out of a drill you already own. Who can beat that?

walls, fences, gates, and windows

Posted in Interesting Quotes on August 29th, 2011 by chris – Be the first to comment

“In an open world without walls and fences, who needs Gates and windows?”

I’m not exactly sure who said this one. I think it is some kind of linux slogan. I tried to find who exactly said it, but couldn’t track it down. Linux has advanced a lot. Now if only we could get some cool 3d games, and photoshop on linux.

How to get the old scrollbars back in ubuntu

Posted in Linux, Ubuntu on August 26th, 2011 by chris – Be the first to comment

Open up a terminal and type:
sudo su
Then type your password. Then run the following command:
echo “export LIBOVERLAY_SCROLLBAR=0″ > /etc/X11/Xsession.d/80-disableoverlayscrollbars
That should get the regular scrollbars back. You’ll probably have to log out after you run that command. If that doesn’t work, try rebooting.

Space art # 4

Posted in Space Art on August 26th, 2011 by chris – Be the first to comment

This is the artist from most of the pictures, if not all from space art post # 3.

http://lord–k.deviantart.com/

Way cool. I’m going to have to get into this I think.

Space art # 3

Posted in Space Art on August 26th, 2011 by chris – Be the first to comment

Another great compilation of space art:

http://funstuffcafe.com/space-art-that-will-make-you-dream

How to switch the window controls back to the right side in ubuntu

Posted in Linux, Ubuntu on August 26th, 2011 by chris – Be the first to comment

The newest versions of ubuntu have switched all of the controls to the left side. This can be a little annoying if you were used to them being on the right and want them back there. Here’s how you switch them back:

Open a terminal and type:

gconf-editor

Once that window opens up browse to apps -> metacity -> general.

You’ll then see an option for button_layout.

Edit that and change it to:

menu:maximize,minimize,close

That should switch it back to normal. If you have any trouble with this, leave a comment and I’ll try to help you the best I can. :)

Edit: For ubuntu 10.10 see this link: http://mihirknows.blogspot.com/2011/10/solution-ubuntu-1110-minimize-maximize.html