Archive for March, 2006
Say “No” to Drags
Thursday, March 30th, 2006Went to Debsig and had dinner with heaps of FOSS guys and girls last night - was awesome. Drank a really nice bottle of Red (with Pia and Ycros) and had to get a cab home.
SLUG committee AGM this friday - vote for me for Normal Committee Member and say No to Drags (Hello, Bruce!).
On a parting note I found this project while reading about XAML stuff on wikipedia
OpenLaszlo is an open source platform for creating zero-install web applications with the user interface capabilities of desktop client software.
OpenLaszlo programs are written in XML and JavaScript and transparently compiled to Flash and soon DHTML. The OpenLaszlo APIs provide animation, layout, data binding, server communication, and declarative UI. An OpenLaszlo application can be as short as a single source file, or factored into multiple files that define reusable classes and libraries.
OpenLaszlo is write once run everywhere. An OpenLaszlo application developed on one machine will run on all leading Web browsers on all leading desktop operating systems.
OpenLaszlo | the premier open-source platform for rich internet applications
Frucking totally cool. Checkout the Example Application. No Flash required.
technorati tags: drag, slug, debsig, foss, agm, openlaszlo, LookMaNoFlash, flash, dhtml, javascript
Developer Tools and Documentation
Wednesday, March 29th, 2006Found this on our wiki… How apt.

Changing the TimeZone value on .NET 2.0 via Reflection
Friday, March 17th, 2006
I needed to change the TimeZone value during a TestCase on .NET 2.0 and it works
Ahhh… reflection… heres how to do it
Note: This will not work with earler version of the framework (and Mono) and may change in future .NET releases. Please Unit test this in your own code.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace DotNetTimeZoneValue
{
class Program
{
static void Main(string[] args)
{
Type timeZoneType = typeof(TimeZone);
Type currentSystemTimeZoneType = timeZoneType;
Console.WriteLine("Before bodge");
Console.WriteLine("LocalTime:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
Console.WriteLine("UTC:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
FieldInfo currentTimeZoneFieldOnTimeZone = timeZoneType.GetField("currentTimeZone", BindingFlags.NonPublic | BindingFlags.Static);
TimeZone currentTimeZone = (TimeZone)currentTimeZoneFieldOnTimeZone.GetValue(TimeZone.CurrentTimeZone);
FieldInfo m_ticksOffset = currentTimeZone.GetType().GetField("m_ticksOffset", BindingFlags.NonPublic | BindingFlags.Instance);
long ticksOffset = (long)m_ticksOffset.GetValue(currentTimeZone);
Console.WriteLine(ticksOffset);
m_ticksOffset.SetValue(currentTimeZone, 0);
Console.WriteLine("After bodge");
Console.WriteLine("LocalTime:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
Console.WriteLine("UTC:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
m_ticksOffset.SetValue(currentTimeZone, ticksOffset);
Console.WriteLine("After setting orig. value");
Console.WriteLine("LocalTime:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
Console.WriteLine("UTC:" + TimeZone.CurrentTimeZone.ToLocalTime(DateTime.Now));
Console.ReadLine();
}
}
}
technorati tags: .NET, 2.0, reflection, TimeZone, nunit, hacks
Thoughts
Wednesday, March 8th, 200619 Years on this planet and I didn’t even get a t-shirt
Friday, March 3rd, 2006Its my 19th today! - otherwise known as "11 years till im 30".
technorati tags: birthday
Explanation about my Blog
Friday, March 3rd, 2006My blog, mostly, is not to be taken seriously. Yes, I am slightly retarded but I do "know my shit" - weird blog posts do not make me any less of a person or professional (Im rather good at what I do).
I do have an idea. I am not a moron. I am professional. I just think blogs (for the most part) are streams of pure XML crap. I like to reflect that point.
technorati tags: blog, Explanation , weird , professional, personal, crap
Excuse the last two posts
Friday, March 3rd, 2006Breaking Changes
Thursday, March 2nd, 2006I think it went something like this
Thursday, March 2nd, 2006AMD Subpoenas SkypePosted by ScuttleMonkey on Wednesday March 01, @04:29PMfrom the who-didn’t-see-this-coming dept.AMD The CourtsI_am_Rambi writes "AMD has issued a subpoena to Skype in the battle of the anti-trust case against Intel. From the article: ‘AMD is now focusing on a feature in Skype 2.0 that enables the ability to make 10-person conference calls only with Intel dual-core processors. Users with AMD dual-core chips or single-core chips are restricted to hosting five-person conference calls because only Intel’s chips offer the performance necessary to host the 10-way call, according to Skype. [...] Skype’s software is using a function called "GetCPUID" to permit 10-way conference calls only when that function detects an Intel dual-core processor on start-up.’"
Slashdot | AMD Subpoenas Skype
My take on it all
Skype:
thanks for the private jet and the three weeks in Vanuatu…. What was it you want
again?
Intel:
Limit your popular product so only it can only use Intel chips to function
properly
Skype:
What if we get into an anti trust law suit?
Intel:
We will protect you!
Two
Months Later….
Skype:
Intel? Hello? Are you there? We were subpoenaed by AMD… and im pregnant.
technorati tags: skype, intel, slashdot, antitrust, Subpoenas