Archive for February, 2008

Design updates, information

28 February 2008 13:56

A day of updates.

Apple have finally announced that on March 6th they’re going to talk about the iPhone roadmap and SDK [via]

LinkedIn have launched a new design for the site. A cross between Facebook & Flickr in my opinion.

Google Docs has a slight tweak to it’s toolbar making it more MS Office esq. Google also launched Sites for Google Apps, online wiki from all accounts. Need to get myself a Google Apps account to check it out.

Filed: General // Tagged: , // No Comments

Coldfusion possible Leap Year bug

28 February 2008 10:11

My colleague noticed that as of midnight GMT one of our applications at work broke. After some digging it looks like a CF leap year bug.

<cfset attributes.minage = 18>
<cfoutput>
#now()#<br />
#attributes.minage#<br />
#dateadd("yyyy", -(attributes.minage), now())#<br />
#datediff("yyyy", dateadd("yyyy", -(attributes.minage), now()), now())#<br />
#datediff("yyyy", dateadd("yyyy", -(attributes.minage), now()), DateAdd("d", 1, now()))#
</cfoutput>

The code was run on CF 7.0.1, 7.0.2 & 8.0.0 on Windows and Linux, all produce same results.

Not sure for definite it’s a bug, but, it’s always worked until today, in theory it might work again tomorrow as well. Last leap year of course was CF6 so may not have shown up.

Yay for dateDiff()… :|

Update

A more detailed example. It only effects the 28/2. Other dates fine suggesting more that it’s leap year related.

<cfoutput>
	<cfset variables.datea = createDate(2008,02,3)>
	<cfloop from="2008" to="1990" step="-1" index="variables.y">
		<cfset variables.dateb = createDate(variables.y,02,3)>
		<cfset variables.diff = datediff("yyyy", variables.datea, variables.dateb)>
		#variables.datea# - #variables.dateb# = #variables.diff#<br />
	</cfloop>
</cfoutput>

And it’s output….

{ts '2008-02-28 00:00:00'} - {ts '2008-02-28 00:00:00'} = 0
{ts '2008-02-28 00:00:00'} - {ts '2007-02-28 00:00:00'} = 0
{ts '2008-02-28 00:00:00'} - {ts '2006-02-28 00:00:00'} = -1
{ts '2008-02-28 00:00:00'} - {ts '2005-02-28 00:00:00'} = -2
{ts '2008-02-28 00:00:00'} - {ts '2004-02-28 00:00:00'} = -4
{ts '2008-02-28 00:00:00'} - {ts '2003-02-28 00:00:00'} = -4
{ts '2008-02-28 00:00:00'} - {ts '2002-02-28 00:00:00'} = -5
{ts '2008-02-28 00:00:00'} - {ts '2001-02-28 00:00:00'} = -6
{ts '2008-02-28 00:00:00'} - {ts '2000-02-28 00:00:00'} = -8
{ts '2008-02-28 00:00:00'} - {ts '1999-02-28 00:00:00'} = -8
{ts '2008-02-28 00:00:00'} - {ts '1998-02-28 00:00:00'} = -9
{ts '2008-02-28 00:00:00'} - {ts '1997-02-28 00:00:00'} = -10
{ts '2008-02-28 00:00:00'} - {ts '1996-02-28 00:00:00'} = -12
{ts '2008-02-28 00:00:00'} - {ts '1995-02-28 00:00:00'} = -12
{ts '2008-02-28 00:00:00'} - {ts '1994-02-28 00:00:00'} = -13
{ts '2008-02-28 00:00:00'} - {ts '1993-02-28 00:00:00'} = -14
{ts '2008-02-28 00:00:00'} - {ts '1992-02-28 00:00:00'} = -16
{ts '2008-02-28 00:00:00'} - {ts '1991-02-28 00:00:00'} = -16
{ts '2008-02-28 00:00:00'} - {ts '1990-02-28 00:00:00'} = -17

Filed: Technology // Tagged: , , // 1 Comment

iPhone 1.1.4 firmware

27 February 2008 9:40

Other than causing me a huge amount of grief there doesn’t seem to much at all in the latest firmware for the iPhone.

The update downloaded OK, installed OK, but when the iPhone restarted iTunes crashed and burnt. Restarted iTunes and plugged the iPhone back in and after a while it popped up. Next problem was it told me it was synced to another iTunes, which it wasn’t, and wouldn’t sync. Did a restore, but, nothing changed. Finally chose the erase and sync option and luckily it sorted it out. I think.

Now to sort my album art out so coverflow looks prettier :)

Filed: Technology // Tagged: , , // No Comments

CSS Fun

27 February 2008 9:40

What does a website look back to front? Now you can see, add this CSS to your site a reload. Entirely pointless but quite amusing.

* {
direction: rtl;
unicode-bidi: bidi-override;
}

Filed: Technology // Tagged: , // No Comments

New Macbook and Macbook Pros

26 February 2008 15:09

Amid the ever entertainment Apple rumour mill so long awaiting updates have today popped out. Updates to the Macbook and Macbook Pros.

Nothing massive really, the screens on the MBP’s perhaps. Specs mainly.

This taken from Apple Gazette.

The Macbook Pro now features the same multi-touch trackpad featured on the Macbook Air, but neither the Macbooks nor the Macbook Pros feature any real significant cosmetic changes. The new MacBook Pro features the latest Intel Core 2 Duo technology with up to a 2.6 GHz processor with 6MB of shared L2 cache; up to 4GB of 667 MHz DDR2 SDRAM memory and up to a 300GB hard drive, plus NVIDIA GeForce 8600M GT graphics with up to 512MB of video memory.

The MacBook lineup comes in three models and includes faster processors and larger hard drives across the line; white 2.1 GHz and 2.4 GHz models with 120GB or 160GB 5400 rpm hard drives and a black 2.4 GHz model with a 250GB 5400 rpm hard drive, previously only available as an option. The 2.4 GHz MacBook models ship with 2GB of memory standard, expandable up to 4GB across the line.

Filed: Technology // Tagged: , , // No Comments

Tour of skinnyCorp aka Threadless

25 February 2008 15:07

Filed: General // No Comments

HD DVD no more

19 February 2008 13:21

After much speculation and comparison to the VHS Betamax wars of old a winner has emerged in the High Def. movie market. Toshiba have officially announced (via) that they are no longer going to produce HD DVD’s. Considering that at least 5 of the major studios have gone with the Sony backed Blueray it’s hardly surprising. Hopefully this will mean that consuming units start coming down in price.

Filed: Entertainment, Technology // Tagged: , // No Comments

iPhone SDK

18 February 2008 22:18

Steve Jobs announced it’d be out in February and so far no sign. The ever reliable rumour mill is churning as normal with Apple and ranges from a 3G version of the iPhone, a 1.1.4 firmware (seems logical to support the SDK) and a big Apple event to actually launch the SDK itself.

It will be good to get it out there, I think custom apps will make the iPhone even better than it is already and will allow people to fix things that are irritating. Like for instance about 5 taps to turn bluetooth on, not friendly when you want to turn in on before setting out on a car journey!

Filed: Technology // Tagged: , , // No Comments

Classic Mario Covers

7 February 2008 14:48

During a bored lunch hour and after looking at the new trailer for Mario Kart on Wii, an addictive tune namely the Mario theme got into my head and prompted some YouTube’ing for classic covers of the classic tune.

Pointless, but, enjoy!

Filed: Gaming // No Comments

 
What's ianteresting?   •   Twitter   •   About   •   Contact
©2012 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset