Net Neutrality and Virgin Media

04/19/08 | by Adam | Categories: Technology

Link: http://www.boingboing.net/2008/04/13/virgin-media-ceo-net.html

Another UK sourced story, this time from BoingBoing. Apparently Virgin Media, one of the major ISPs in the UK, is clearly stating that they wish to be bribed in order to give preferential treatment to websites. No, I misspoke; Virgin will actually throttle those that don't. Check out this statement from the CEO:

Feeding into the debate between internet service providers and the BBC over iPlayer, Berkett even warned that public service broadcasters who choose not to pay for faster access to Virgin's subscriber base would end up in "bus lanes", effectively having their content delivered to consumers at a lower speed.

Nice.

 

String To Time In C#

04/18/08 | by Nimble | Categories: Thoughts, Programming

If you are trying to get a time into a DateTime from a string, it's relatively easy:

DateTime dt = DateTime.Parse(inputText,CultureInfo.CurrentCulture,
DateTimeStyles.NoCurrentDateDefault);

The NoCurrentDateDefault is pretty important. Otherwise, if your string contains no date part, the current date will be added on top of your time.

One issue does arise, though, if you are planning on putting this time into a database, since the NoCurrentDateDefault makes the date 1/1/0001, which is actually too small for SQL Server (whose minimum date is 1/1/1753) or COM/OLE purposes (which has a minimum date that seems to vary - DateTime.FromOADate(0) is 12/31/1899 - .NET will let you go lower than 0, but unknown as to whether this is kosher for other applications).

You can at least tell whether your DateTime had a date component... unless they entered 1/1/0001):

bool noDateEntered = dt.CompareTo(DateTime.MinValue.AddDays(1))<0;

If you want to add your time to the minimum for one of the other date/time types, here is a formula that will do it:

dt = dt.Add(System.Data.SqlTypes.SqlDateTime.MinValue.Value.Subtract(
DateTime.MinValue));

If you want to replace Add and Subtract with operators, make sure that you keep the parentheses around the right hand side, since the addition and subtraction only work with TimeSpans. Otherwise, you will get a type complaint.

dt = dt+(System.Data.SqlTypes.SqlDateTime.MinValue.Value-
DateTime.MinValue);

Similar for OLE dates:

dt = dt+(DateTime.FromOADate(0)-DateTime.MinValue)

Alas, now I get an even less fun part to do: figure out how to represent a time on its own in a database in a cross-database manner. *sigh*

 

iPhone moves another step closer to killing the Palm Tungsten

04/18/08 | by Adam | Categories: iPhone, PalmT3

Link: http://gizmodo.com/380302/handwriting-recognition-for-iphone-now-available

While the Apple iPhone is getting close to being able to replace my beloved Palm Tungsten T3, there are two primary issues that still make it an inappropriate choice for me.

Full story »

 

Stephen has a blog

04/17/08 | by Adam | Categories: Technology

Link: http://www.vermeulen.ca/

Stephen Vermeulen, author of ExpressPaint and VBBS/IceBBS for the Amiga with miscellaneous other low-key software development projects since, has finally got around to blogifying his homebrew website. Following a fragment-based posting design, he's finally put together an RSS feed so that all the snippits, references and commentary can be rolled into one, easy to read source.

Nice.

The RSS feed is http://vermeulen.ca/rss.xml

 

Tech support follies

04/16/08 | by Adam | Categories: Technology

Recently Microsoft ran a pretty good promotion: buy their current version of Microsoft Office for OSX and get the new one free when it's released. So, I bit, and bought the old version and dutifully sent in the form with the original UPC barcode and receipt.

Full story »

 

Rechargable batteries aren't created equal

04/15/08 | by Adam | Categories: Calgary

Link: http://www.codinghorror.com/blog/archives/001078.html

Most people know that NiCd, NiMH and LIon rechargables all have different properties. What's not so apparent is that even within a particular technology, there's a lot of variety beyond the nominal mAh rating, especially when dealing with batteries designed in the AA/AAA form factor.

 

Final Death of an Iconic Restaurant

04/14/08 | by Nimble | Categories: Restaurants, Thoughts

The Westin's iconic, classy Owl's Nest restaurant, after morphing into the "O. N. Grill", which I did not have the chance to visit, has finally packed it in. What do we have there instead? A Keg.

I do not like fancy restaurants, by and by, but the Owl's Nest was one of those few such places that were worth the experience.

I will miss you, Owl's Nest.

 

It's so quiet

04/14/08 | by Adam | Categories: Technology

Link: http://www.engadget.com/2008/04/10/proposed-bill-aims-to-set-minimum-auto-sound-levels/

One of the nicer features about the newer electric hybrids is that they're quiet. So, in the name of safety, what do you think the next step should be?

Yup. Make the cars generate digitized engine noises over external loudspeakers so pedestrians can hear them. The sole argument in favour of this that's vaguely convincing is that of trying to let blind people know the car is nearby. And even that's pretty weak.

 

Wired on industrial control systems security

04/13/08 | by Adam | Categories: Technology

Link: http://blog.wired.com/27bstroke6/2008/04/industrial-cont.html

Given the industry I work in and specific familiarity with the system in question, this article from Wired on system security and response is fascinating. The headline is a trifle "Chicken Little" but the content is good.

(The somewhat generic text above is on the grounds that random Googling probably won't pick up this comment...)

 

Penn & Teller do bees

04/12/08 | by Adam | Categories: Silly

Link: http://www.youtube.com/watch?v=gysIuQRK7eA&eurl=http://www.boingboing.net/2008/04/11/penn-and-teller-make.html

Penn & Teller do some odd stuff, but this one is particularly strange even for them. Keep an eye out for the camera man in the hazmat suit...

(Via BoingBoing)

 

Why, oh why?

04/11/08 | by Adam | Categories: Technology

The other night my computer rebooted due to an update from Microsoft. This was a bit annoying as I'd left some test cases up running overnight.

I'm still unclear on why there is no option to automatically download an update without installing it under Windows XP. It seems you can either turn off updates and do everything manually, or have it update automatically and randomly reset your computer. Very annoying.

 

Keyboard PC

04/10/08 | by Adam | Categories: Technology, Calgary

Link: http://www.reghardware.co.uk/2008/03/26/all_in_one_pc_cybernet/

Self-contained PCs built into a keyboard have been going around for a while and, to be honest, I've never understood the appeal. While the description of "Amiga-like" is fair, given the design of the A500/A600/A1200, these are just under-powered PCs in small housings. There's nothing innovative or particularly interesting about them.

Full story »

 

What's a bit of confusion between friends?

04/09/08 | by Adam | Categories: Music
What's a bit of confusion between friends?
What's a bit of confusion between friends?
What's a bit of confusion between friends?
What's a bit of confusion between friends?

Link: http://www.amazon.ca/s/ref=nb_ss_gw?url=search-alias%3Daps&field-keywords=hooked+on+swing&Go.x=0&Go.y=0&Go=Go

While looking to exchange a worn vinyl record with a newer CD, I encountered an unexpected problem. The album I wanted to replace, "Hooked On Swing", actually had several Amazon entries, each of which showed entirely different track listings.

Full story »

 

A fine headline

04/08/08 | by Adam | Categories: Silly

Link: http://news.bbc.co.uk/2/hi/asia-pacific/7334233.stm

Who knew that a hedgehog could be classified as a dangerous weapon?

(Via Antigone)

 

To Catch A Thief

04/07/08 | by Adam | Categories: Technology

Link: http://www.kottke.org/remainder/08/04/15386.html

Kottke has a nice round up of people using technology to catch thieves in the act.

 

Pages: 1 ... 13 14 15 16 18 20 21 22 23 ... 72