PHP Log Tail Revisitied

February 17, 2009 – 2:31 pm

The brilliance of programming...

Last year I needed to tail a file in PHP. I whipped this out.

Today I needed to do it and came up with this:

$output = `tail -n 150 /var/log/messages`;
$tail_str = "<pre>$output</pre>";

Weee... don't know what the hell I was thinking last time.

Free Online PDF to JPG Converter

February 7, 2009 – 4:23 pm

I had the need to convert a PDF to a JPG today. I searched around on Google and everything was pay to play. This is pure exploitation since this sort of conversion is a one liner for most Linux systems.

I wrote my own.

File:

Depending on your connection speed, this may take a while.

If you provide a single page PDF you will get a JPG back. If you provide a multi-page PDF you will get a zip file back, inside of the zip file will be a JPG of each page of the PDF.

Click Here to Download the Source

PHP Image/Ad Rotator

February 7, 2009 – 11:49 am

Simply reads a directory of images and rotates through them randomly. What makes it cool is the script is called from and HTML IMG tag. Neato.

Download Source!

Once downloaded, open the file and change $ad_dir to the path (not url) of your images. Then upload it to your web host. Call the script from an IMG tag: <img src=ad_rotator.php>

Eagle Butte 2009

February 5, 2009 – 11:08 pm

I took another trip to Eagle Butte. Twelve hours there, work for two days, and then twelve hours back. This trip was a lot better than the last one. I think because the weather was 'nice'. No real snow and temps in the 4s-30s. Brisk, baby. I expected it to be -20 and for there to be snow over my head.

Also, last time I stayed a whole week and I either got frostbite or cauliflower ear.

This was by no means an exciting trip, but in this case that is good.

Fight Team Rejects

January 17, 2009 – 3:54 pm

PlayOn – XBMC

January 7, 2009 – 1:28 pm

I've been trying out the beta of PlayOn on my Xbox for the last few weeks. I like it.

PlayOn is a UPnP server that you install on your PC. It scrapes RSS feeds and then performs some magic so you can watch videos from those feeds on DLNA capable devices. So far it supports YouTube, Netflix, CBS, CNN, ESPN and Hulu.

It works well on my Xbox running XBMC. It's really nice to watch videos from those sites on my TV, so nice that I paid the $30 for the registered version of PlayOn.

It is a beta, and the only problem I have found is a strange one. My first attempt to play a video never works, the second one always does. This means I click play, wait five seconds for it to fail, then click play again. It's hardly even annoying.



thevedic.net

Part of the thevedic.net.
[Contact Me] - [Mud Emporium] - [Ozark, AR] - [See my Port?]

This site is in no way represents the opinions or positions of any company or organization including those who employ the creators of this web site. We're not responsible for the content, posts, responses by other users or ideas of any sites that are linked to on this page. This site is recommended for ages 18 and up.

VEDIC VEKO IS PROSPEROUS

Arkie Imports | Dean Vaughan | Dean Vaughan | K. Dean Vaughan | Kenneth Vaughan | Pig Trail 23 | Pig Trail Pics | See My Port Forward Info | See My Port Forward Info


I'm not affiliated with the following in anyway.
Arkansas MMA - Inferno Mixed Martial Arts - Inferno Martial Arts Club - Inferno Martial Arts Club - Official Inferno Fight Gear - Inferno Fight Equipment - Inferno Combat Gear - IFC Online - Inferno Fight Gear - Inferno MMA - Inferno Fight Gear