Ramblings

Find out your MediaTemple (gs) Cluster Number

Posted in Ramblings, Websites on March 9th, 2009 by Jason – Be the first to comment

There have been several complaints about the mediatemple grid server (gs) since its original launch over a few years ago. Since then there have been several changes to the way that they maintain their grid server accounts. Since I recently moved all of my sites over to the grid server, I have been keeping an eye on its performance. So far I have not had any issues.

In a recent article that mediatemple posted, they discussed some of the ups and downs they have had over the years with getting the grid server to where it is today. One thing that stuck out to me in their article was the fact that customers who are located on the original cluster servers 1 and 2 are still running on the original architecture. The grid clusters after one and two are using the newer architecture and have greater improved stability.

Getting to the point, if you would like to check which grid cluster that you are on, you will need to login to the account center. Click the admin button on the overview page, and then click on Server Guide. This page will have a lot of you grid server information and at the bottom you will notice the cluster section and it will contain your grid cluster number. As you can see, I am on Cluster 4. So far so good.

Tips to Refilling Ink Cartridges

Posted in Ramblings on February 9th, 2009 by Jason – 1 Comment

Over the weekend our printer once again ran out of black ink… A common occurance since my wife and I are still in school. About a six months ago we decided to give the ink refills a try and bought a kit ($14). We previously had bought new cartridges and had two black ink cartridges at empty at home. One cartridge we have already refilled two or three times without incident while the second cartridge just sat around being empty.

A couple weeks ago we ran out of ink yet again and my wife decided to be brave and refill the cartridge herself. She did a great job, but the cartridge didnt work. When I got home I checked the fill level, tried cleaning the head, but after several tries I could not get it working. So I decided to try my luck with the second cartridge… which had been sitting around (without ink) for about 6 months. After filling the cartridge (following the instructions) and cleaning the print head, to my amazement… it didnt work. I tried a couple tricks, setting the head on a papertown that has been dabbed with rubbing alcohol, which helps to loosen any hardened ink in the print head. After both cartridges sat for over an hour I gave them a try, and still didnt work.

To get the ink flowing you will need to clean the top of the cartridge with alcohol and made sure there is no ink on the top of the cartrige. Very carefully and while holding the cartridge level with a paper towl on the print head you will need to create a seal over the opening where you fill the cartridge with your mouth and create a fairly strong air pressure to help push the ink through the print head. Be very careful not to inhale any ink or get any on your skin as it will stain and could be toxic. This trick worked like a charm for both cartridges, and now I have two topped off cartridges which have many more uses in them.

New Year, 2009

Posted in Ramblings on January 1st, 2009 by Jason – Be the first to comment

Now that 2009 is officially here it’s that time to think about what to do differently. I am usually not big on the resolutions but this year I have a couple things that I would like to do better. One thing I would like to work on is the amount of design work that I do. I will be trying to create website layouts more often to impove my design ability. My goal is to try and create a new layout once every three months to help me increase my abilities and skill level. Although it doesnt sound like much, once you add in going to college full time with a part time job, and spending time with my wife, and my personal programming projects, one layout every three months will be plenty for me.

I also am planning on posting a little more regualarly, but we will see how well I can do with that.

Dates and Databases time() mktime() functions

Posted in Ramblings on August 2nd, 2008 by Jason – Be the first to comment

I recently was working on a website that was build using expression engine and the freeform module. I was creating a separate page that would query the entries table for free form and produce a csv file of all the entries for a certain time period. To do that I had to specify a date range.

I have worked on previous databases where the date is stored as.. a date, with year day and month. You can easily build your mysql queries if the entries are stored in the database using the date format. In expression engine it is a long integer that is a Unix times tamp. So what is that? The unix time stamp counts the number of seconds that have passed since January 1st 1970.

This time stamp can make it easier to compare dates, because you get ride of months, days, and years. No more leap years to worry about since it is all in seconds. The only thing you need to know is how to convert between the two. Luckily for us, php has already done the work and provided us with a couple functions to do the job, time() and mktime().

First of all, lets say you want to get todays date converted to the Unix Time Stamp.

echo time(); This returns the current Unix Time Stamp.

So when you enter something into the database, you can store the unix time, making it easier to do date searches. Now say you are retrieving the date from the database and want to display when your post was created. You obviously dont want to display the unix time stamp, unless you draw that kind of a crowd, most of your website visitors will not understand what it is, and for the people that do, they wont want to spend the time to convert it. This is where the date() function comes into play.

The date function takes in two variables, first is the formatting variable, how you want your date to appear, the second is a unix time stamp to specify the date you want. If the second variable is left blank, it defaults to the current time stamp, which gives you the current date.

;; Lets say that $time is the unix time stamp
;; for a specific day
date('d-m-Y', $time);
;; This returns the value of $time as day-month-year

For my project I had to do a little more, I needed to build my unix time from a specific date to be able to give me a range of time. For this I used the mktime() function. This function takes in several values: hour, minute, seconds, month, day, year, and if it is daylight savings time. All the values are not required, but if you are not going to enter all the values then you must leave them our from right to left. So if you want to skip the seconds value, just put in a zero, if you leave it out all together then it will think that the minutes is the seconds, the hours the minutes and so forth.

;; Lets say I want the unix time for 01-25-2008
mktime(0,0,0,1,25,2008); notice the zeros
;; How about Today at 11:45 and 23 seconds?
mktime(11,45,23);
;; notice I left the m/d/y blank since it defaults to current values

Photoshop Tutorials

Posted in Ramblings on January 5th, 2008 by Jason – Be the first to comment

Finding good tutorials is not always easy. While searching for more information about screencasts the other day, I bumped into what seems to be a good photoshop tutorial podcast by John Reuter.

I have only had a chance to watch a few of his podcasts, but I would have to say that he shows some pretty nice effects that can be done with photoshop, and since its a screencast, it is very easy to follow along and see exactly how to do it.

http://johnreuter.com/

I like these tutorials mainly because they teach the basic functionality of photoshop. There might be better ones out there, but I have found that these do a pretty good job. Unfortunately he hasn’t done a new screencast for a while.

Christmas Snoweggs

Posted in Ramblings on December 24th, 2007 by Jason – Be the first to comment

This Christmas I wanted to do something other than give out cookies to people who either don’t need anymore cookies in their diet, or don’t want cookies in their diet.

So what would be the natural solution? Make a cute little snow man out of a hard boiled egg so that my brothers could make fun of me just like they used to! Sure does bring back holiday memories! And check out the photos page for step by step instructions along with photos so you can bring that holiday cheer to your home.

Great Advice to Start your Design

Posted in Ramblings, Websites on May 9th, 2007 by Jason – Be the first to comment

While working on the re-design of sidewaysgravity, this article came in very handy. It is good to gain a better understanding of how to start the design process. By creating the wireframes first and then applying the designs to the wireframe, it was alot easier to setup the design.

Digital-Web.com

My new boss

Posted in Ramblings on April 30th, 2007 by Jason – Be the first to comment

This is my new boss, Jeremy, in my new office at Lifeboat Creative. Its located in downtown Wichita in the Garvey Center. He’s a fun guy, but I think hes scared to play me in a game of tennis.

LifeBoat Update

Posted in Ramblings on April 12th, 2007 by Jason – Be the first to comment

Well so far things have been going really well at my new job. I have begun to mess around with a little php programming. Its nice to finally spend extra time to learn some of the code I wanted to, and now get paid for it. I have also seen a big increase in my abilities in html coding and css. Even my graphical abilites are getting better.

I currently am working on two projects at work, which are basically “my” projects. Both are in the review stages and we are waiting for feedback from our clients. I have started to make some revisions that the clients have requested, and hopefully we will get those sites published soon.

Up on myspace

Posted in Ramblings on March 14th, 2007 by Jason – Be the first to comment

I am on myspace now, a lot of the people I know are either on myspace or facebook so this takes care of my space for me.

Find me on MySpace and be my friend!