Quantcast
Channel: @ Head
Browsing all 31 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

VB Quark #3: operator differences in VB/C#

Can you spot the problem with this code:   <Extension()>    Public Function ToColor(argb As UInteger) As Color      Return Color.FromArgb( _                       CType((argb &...

View Article



Image may be NSFW.
Clik here to view.

VB Quark #4: type literals

Do you know why you can’t write this code in VB:   Dimx = 123456789.0123456789Answer: The IDE won’t let you If you try to write that code the IDE will truncate the number, giving :   Dimx =...

View Article

Image may be NSFW.
Clik here to view.

VB Quark #5: C is for Char

Can you pick the problem with this code ? :      Dim currentChar As Char      For i = 0 To largenumber          currentChar = getChar(i)          If currentChar = "a" Then            count += 1...

View Article

Image may be NSFW.
Clik here to view.

VB Quark #6: Date operators

The DateTime structure in .NET includes custom operators for Date comparisons such as less than, greater than, equal and not equal; but did you know it also includes addition and subtraction operators...

View Article

Image may be NSFW.
Clik here to view.

Displaying Dates in VS 2010

From time to time there’s discussion about the way dates are displayed in the Visual Studio IDE for Visual Basic. Typically dates are shown using VB’s date literal syntax of #MM/dd/yyyy# which is the...

View Article


Image may be NSFW.
Clik here to view.

VB Quark #7 : Optional Parameters and Dates

Hopefully you already know VB has full support for Optional parameters, both declaring them and calling them, but did you know you can use Dates as Optional parameters ?   Public Sub...

View Article

Image may be NSFW.
Clik here to view.

windows 8 likes and dislikes

There’s a lot to like in windows 8 preview: it’s easy to see how windows 8 will be a hit on tablet devices; there’s massive synergy with windows phone; the built in windows live experience combined...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio toolbar

The beta of Visual Studio 11 is causing a lot of feedback around the grey shade icons.  The use of colour or not has also brought to the forefront the UI for colour-blind people.  So I thought I’d post...

View Article


Image may be NSFW.
Clik here to view.

Rotate your Calculator on Windows Phone

Today I has having some discussions over the right roof pitch for a car port, so I grabbed my phone, rotated it and did some quick trigonometry.  Ten minutes later I tried to do the same and I could...

View Article


Image may be NSFW.
Clik here to view.

Visual Studio 11 ALL CAPS

The following is my response to the VS blog post about the design for all caps in top level menus:http://blogs.msdn.com/b/visualstudio/archive/2012/06/05/a-design-with-all-caps.aspxFirst off, why would...

View Article

Image may be NSFW.
Clik here to view.

What I’d really like in a phone

The software a phone runs is important but the hardware is even more so. My current day to day phone is the Lumia 800, and the previous one was a HTC mozart. To me the difference is massive. The lumia...

View Article

Image may be NSFW.
Clik here to view.

Lightswitch suddenly becomes relevant

The LightSwitch team announced that LightSwitch will render to HTML5 + javascript. This is huge in expanding and liberating the client requirements including mobile devices !!see the LightSwitch team...

View Article

Image may be NSFW.
Clik here to view.

Why a little bit of VB is a bad bad thing

Scott Hanselman posted about VB6 and showed a snippet of code :Public Function Fib(ByVal n As Integer) As Integer     Fib = IIf (n < 2, n, Fib(n-1) + Fib(n-2)) End FunctionWhat Scott probably didn’t...

View Article


Image may be NSFW.
Clik here to view.

Windows 8 mail app

My first impressions of the windows 8 mail application ...Accounts :The mail app seemed to work straight away with my @live account, and looks like it will offer good synchronisation with multiple...

View Article

Image may be NSFW.
Clik here to view.

Windows 8, actually.

The North American TechEd videos are online now. The keynote from Day 2 is about Windows 8 and is worth watching. Actually, whilst watching the day 2 keynote see if you can count the times “actually”...

View Article


Image may be NSFW.
Clik here to view.

Why isn’t Windows Phone 8 an update for Nokia Lumia’s ?

Yesterday’s announcement of Windows Phone 8 not being an upgrade for the latest Nokia phones, including Lumia 800, 900 et al, has been met understandably with both disappointment and anger from many...

View Article

Image may be NSFW.
Clik here to view.

Outlook 2013 preview and @live accounts

In the Office 2013 preview, Outlook doesn’t automatically setup @Live email accounts.  I’m guessing this is just an oversight in the preview. To work around this you need to set up the account manually...

View Article


Image may be NSFW.
Clik here to view.

Nokia adds vcard support to Windows Phone 7.5

Recently Nokia rolled out a couple of updates for Lumia owners including an OS update that provides tethering support for Lumia 800’s, and some cool camera extras that provides a great group photo...

View Article

Image may be NSFW.
Clik here to view.

Apple and Neil Armstrong

Last week Neil Armstrong passed away. He was part of an era in which innovation truly thrived. Profoundly back in 1969 he said “That’s one small step for man, one giant leap for mankind” . The space...

View Article

Image may be NSFW.
Clik here to view.

iPhone 5 design: where's the intimacy ?

Smart phones are one of the most intimate devices we own. We take them with us so many places throughout the day, be it in a pocket, bag or purse. We hold them so many times during the day. And at...

View Article
Browsing all 31 articles
Browse latest View live




Latest Images