Mar 10

This is the new re-write of the gallery viewer.

I wrote it so if your server has a particular extension installed (GD Library)
will make a thumbnail for the gallery. I also wrote it so that it’s really easy to use and install.

The new version utilizes the Lightbox and the Cycle Plugin. These extensions can be enabled in the config file.
When light box is enabled, your image description will appear under the gallery image.

If your server doesn’t the GD library extension installed or you don’t know what that is, don’t worry.
The gallery is written to operate without it.

The file: Free Gallery Viewer V2

The Demo: Free Gallery Viewer V2 Demo

The Demo Gallery: Free Gallery Viewer Gallery

Installation:

  1. Unzip to a folder of your choice.
  2. Edit your config.php file to your liking (Instructions included in the file).
  3. Upload it to a folder on your server.
  4. Have fun!

Questions or Comments feel free to comment on my blog.

Notes:
This Gallery Viewer uses JQuery so props to my friend John Resig for creating such an amazing JavaScript Library.
This also uses the Cycle plugin that Mike Alsup created to do all transitions or the Lightbox plugin by Leandro Vieira Pinho (depends on what you pick). Image class for GD Library written by me.

Feb 29

Alright I know I haven’t posted in a while. I’ve been working on various projects for clients.
So now that I have completed one of the three projects that I have been working I thought I would
post something.

Free Gallery Viewer.

I was working on a website that needed a gallery and I made this up.
It works free from databases because it uses a serialized array.

Files located in this zip: Gallery Viewer.zip

Demo here: Gallery Viewer Demo

Login:
Username : user
Pass: Password

please no malicious images or I will take it down, thank you.

Installing:

  1. Make sure you have PHP installed on your server.
  2. Unzip the file to a folder on your server you want to have the gallery in.
  3. CHMOD the directory “galleries” to 757. This folder is where your images will be uploaded to.
  4. in the config.php define your user name and password.
  5. go to your your new gallery folder and login.

This Gallery Viewer uses JQuery so props to my friend John Resig for creating such an amazing JavaScript Library.
This also uses the Cycle plugin that Mike Alsup created to do all transitions.

Please feel free to edit this code to your fitting. I created it pretty quickly so I don’t know if it has bugs or not.
Constructive feedback is greatly appreciated.

I release this with no warranty AS IS.

Any questions or comments feel free to comment!

NOTE:

  • I realize that you can only have one person write to the gallery array file at a time, just make sure you don’t have 2 or more users uploading photos.
  • Also I am in the midst of writing a better version that includes GD library functionality so it will resize your photos for you. Currently there is no photo resize available.
  • I am writing a script that will install this for you… but I haven’t yet.
Jan 31

So now I am using php cURL for getting headers and other information for Tech Scraper.
Hopefully it works a little bit better.

I am however experiencing an interesting HTTP 3.01 error through cURL on some pages, so I wrote in some
counters to that and so it still uses file_get_contents($url) if cURL returns an HTTP 3.01 error.

I also split all output into arrays so I could keep track of output and use a statement if I could not return any information.

http://www.x24d.com/tech_scrape/

changes:

$ch = curl_init();
$options = array(
CURLOPT_URL => $url,
CURLOPT_HEADER => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => "Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.8.1.11)
Gecko/20071127 Firefox/2.0.0.11",
CURLOPT_FOLLOWLOCATION => true
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
$AR_info = curl_getinfo($ch);
curl_close($ch);

Jan 29

So I found question on yahoo answers about a page that if you input a url it will come back with the languages and technology it uses.

Instead of looking for the page, I thought, hey that might be an interesting page! I’ll do that.

Thus this mini project was born:
http://www.x24d.com/tech_scrape/

Try it out!

Right now its pretty rough, but it does come up with some good material.
I’ll keep tweaking it and things.

-Ted