Archive for the ‘College’ Category

PHP: HTTP Authentication With Cookies

August 3rd, 2008

Phew this has been a big day of posts (:  — I told you it was coming!!

This will be the last one for today – but there will be a HUGE conglomeration of a post/page about the cluster I built and am finishing building software for this week.

Anyway, here goes the post on HTTP Authentication w/ PHP.

» More: PHP: HTTP Authentication With Cookies

Animating a Surface Plot in IDL

August 3rd, 2008

This is just to document what I’ve already given back to the IDL user community.  It is a modification of Dr. David Fanning’s, at www.dfanning.com, fsc_surface.pro.

Essentially, Dr. Fanning’s plotting program allows you to pass in data and parameters to create object graphics representations of data – mostly surfaces, as the case may be.  I’ve modified it quite a bit for the project I was involved with this summer — IDLWave.  It now switches from Surface to Line to Spherical surface plots all based on the data that is passed into it.

» More: Animating a Surface Plot in IDL

Wireshark Quick Tutorial (Useful for post PHP: HTTP Authentication)

August 3rd, 2008

I’m going to show you a little bit of how to use a software application called Wireshark — which was formerly known as Ethereal. It allows you turn your Ethernet/wireless adaptor on “listen” mode, and you can watch packets as they go to and from your machine. I’m not getting this into a huge networking discussion, but just realize that there are little bits of information called packets that go to and from machines as you do things on the Internet.
For our purposes, we will be concerned with the transfer of packets between two machines in particular, your machine, and the machine of the webserver where your favorite website is hosted.

» More: Wireshark Quick Tutorial (Useful for post PHP: HTTP Authentication)

Cropper: Quick and Dirty Windows Screen Shot/Capture Tool

August 3rd, 2008

Cropper, created by Brian Scott in C# is THE tool I’ve been needing for YEARS. I’m so glad I found it!
Anyway, normally when you wanted to show someone something you had to:

  • Take the screen shot/capture
  • Open an editing program [ I used -> windows key + R, then type "mspaint" then enter ]
  • Paste the capture into the editing program [ CTRL+V ]
  • File -> Save As, Choose PNG, choose location
  • Done.

With this application it’s

  • Make the window the right size
  • Double click

» More: Cropper: Quick and Dirty Windows Screen Shot/Capture Tool

PHP: MYSQL Database Backup Email Attachment Solution

August 3rd, 2008

In this post I will describe a database backup solution that I’ve been using for some time. Here’s what happens: this PHP script calls mysql to do a db_dump — this gets dumped to a text file — then it zips all this information up as a gunzzip file, then it emails the txt.gz file as an attachment to a gmail account (where you have unlimited storage). Easy!
» More: PHP: MYSQL Database Backup Email Attachment Solution

PHP: A script to increase a stat counter…

August 3rd, 2008

So, let’s say you have a stat counter on your website from Let’s say — sitedesigner.safesecureweb.com…. Or any other free web page counter for that matter…

Regardless, you will have a link to your counter that looks something like this:

http://sitedesigner.safesecureweb.com/servlet/CounterServer?_patternID=12&_userID=22533&_pageID=1

Now, we can dissect this link down and find the “userID” section of the URL or URI, whatever you fancy calling it.  Regardless — notice the “22533″ — Now, I don’t know who owns this counter, nor do I care — I’m just showing you a proof of concept.  For various reasons I created a little web form that would allow you to smack this counter (ie, make the hit # increase) N number of times, where N is a variable determined by the end user.

» More: PHP: A script to increase a stat counter…

PHP posts coming soon

July 15th, 2008

DB backup

Authentication

Cookies

Look for em ~ (:

Howto: Multiple Desktop Wallpapers

June 18th, 2008

Hey,

So, one of my favorite wallpaper sites –> http://www.mandolux.com always has these great multi-monitor wallpapers.  For years I’ve only been using one of them, when I could have been using two!

This is on Windows XP.

First, get your two images — say via mandolux ~~ great site, again.

Now, Right click on desktop -> Properties

Set your regular desktop to “(None)”

Click Customize Desktop

Click on the Web tab up top.

Click “New…”

Click “Browse” and find your first image.

repeat and find your second image

Make sure they’re both checked, and then say “ok”

When you say “ok” from the Display Properties, you will see 2 images on your screen.

Move the right one to the right monitor by clicking around on it till a grey bar comes up.

Once you have it to the right monitor, click the black arrow on the top of the grey box and say “cover screen”

then move the other image to the other monitor and repeat the process.

Viola!

I’ve included a screenshot so you can see how it works!

Good luck!

PS: if your two images don’t line up, you should put your taskbar on auto-hide. You can do this from right clicking it, unlocking it if it’s locked, and then going to properties.  There is a checkbox for auto-hide. Enjoy!

Niiiiiice linux question/answer

January 14th, 2008

So, I was looking how to reload my .bashrc to update the aliases I had just created and I stumbled upon this great resource:

I will probably add a lot of these to my page in case this ever goes down.

Anyway, here it is: http://www.ftlinuxcourse.com/FTLinuxCourse_Complete-2004/FTLinuxCourse/en/sysadm/appendix_p.html

Timmons Planetarium :: Furman University

January 12th, 2008

So, our planetarium has been completed for this term, and I’ve spent a lot of time in there already! We decided it’d be cool to leave the alcove lights on and the windows open [ windows?! in a planetarium!? I know.... I think we're unique.] to come back and take a picture later.

By the way, I added the rest of my personal statement in the previous post, hope you like it. (:

So sorry the images were down! — They’re back up now (:

Here are the results:

timmons

» More: Timmons Planetarium :: Furman University