Archive for August, 2012

Wednesday, August 29th, 2012

Week of Year

There are a number of things you need to decide first before you can number the weeks of the year. When does the week start is the first thing you need to decide. The week originally started with Saturday but some parts of the world have shifted the start day to Sunday or Monday. JavaScript […]

Tuesday, August 28th, 2012

Days in Month

Working out the number of days in any given month would be a simple array lookup in JavaScript if it were not for leap years. In February we can’t just look up the array to see that February has 28 days because it has 29 in some years. We have two alternative solutions. The first […]

Monday, August 27th, 2012

“Photoshop CS6 Unlocked”

Unlike most books about Photoshop, this isn’t a general book on how to use Photoshop. This is a book on web design and how to use Photoshop as a tool to assist with that task. Read more about what I think of the book “Photoshop CS6 Unlocked”.

Wednesday, August 22nd, 2012

Julian Day

Not to be confused with the Julian Date, the Julian day simply numbers all the days since before the start of recorded history. Since the JavaScript Date object numbers the milliseconds since a given date we can obtain the Julian Day from a Date object fairly easily. Julian Day

Tuesday, August 21st, 2012

Julian Date

Continuing on with looking at how to add methods to the JavaScript Date object. Here we look at combining the day of the year with the year to give us the Julian Date. We also look at how we can take a Julian Date and create a Date object from it. Julian Date

Monday, August 20th, 2012

“Ubuntu Made Easy”

Another book review. While this book does a good job of explaining all the basics to beginners it deals mostly with the type of computer setups people had a few years ago with a single standalone computer and doesn’t cover any aspect of the entertainment network that is becoming more common. Read more about what […]

Thursday, August 16th, 2012

Day of Year

The JavaScript Date object has built in methods to obtain the day of the week and the day of the month so why doesn’t it have one for the day of the year? Well it doesn’t really matter because it is trivially easy to add the method ourselves. Day of Year

Wednesday, August 15th, 2012

Daylight SavingTime

Have you ever wondered whether a visitor to your site is using daylight saving time? Do you need to perform date and time processing where whether they were on daylight saving on different dates will make a difference? While it at first appears that JavaScript has no way to tell if your visitor was using […]

Tuesday, August 14th, 2012

Month and Day Names

While the JavaScript Date object doesn’t provide methods for retrieving the name of the month or day of the week, it does make it trivially easy to add that functionality yourself. This makes it far easier for you to decide what language you want those names to be in. Month and Day Names

Monday, August 13th, 2012

“Think Like a Programmer”

Discussions with some of the best programmers I know in the past have often mentioned how only one half of programming ever seems to be taught with the programmers being left to figure out the other half themselves. That most don’t is the reason why there is so much poorly written convoluted code in the […]

Wednesday, August 8th, 2012

Updated Pages

I have made huge changes to the wording of two existing pages this week. One asking about changing security suite has been updated both the reflect the changing situation with respect to security products and also my experiences with several of them since I first wrote the page. The second about Mozilla reflects that few […]