Software Doesn’t Work – Now that is a EULA, I can get behind

 

EULA

Read more

Who is calling me? The *69 service in .NET


I recently started a project where I needed to add logging to an existing codebase. One of the requirements is that the class and method is logged along with the severity, message, exception (if there is one), date and time, etc, etc, etc. It started out not looking pretty with constants added to each class for just the class name or writing out typeof(blah).FullName and the method name each and every time, a message needed to be logged. I figured there had to be better way and parsing Environment.StackTrace (type string) didn’t seem to be it.

Looking through System.Diagnostics, I stumbled upon the StackTrace class and from there it was a skip, hop and a jump to figure out how to unwind the stack and get the information I needed.

StackTrace stackTrace = new StackTrace(1); //skip at least this frame
for (int frameCounter = 0; frameCounter < stackTrace.FrameCount; frameCounter ++)
{
    StackFrame frame = stackTrace.GetFrame(frameCounter);
    MethodBase method = frame.GetMethod();

    Console.WriteLine("Class: {0}, Method: {1}",
        method.DeclaringType.FullName,
        method.Name);
}

Simples.

Read more

Weekend Project: Nike+ and iPhone 3G – Part 3

No hack required

No extra hardware required

Works on iPhone 3G with iOS 4

http://itunes.apple.com/gb/app/nike-gps/id387771637?mt=8

Thank you Nike/Apple

Read more

Software Doesn’t Work – I’m not buying a Time Machine anytime soon

 

image 

After 3 hours… At this rate I’ll have upgraded to iOS 4 when my iPhone 4 arrives.

Dear Apple Developer who wrote the backup algorithm,

Why are you re-writing Manifest.plist after every 4 files?!  Judging my by previous backups you will need to do this 14,200 times.

Thanks

Read more

Weekend Project: Nike+ and iPhone 3G – Part 2

tk was nice enough to upload all the required files. If you having difficulties with vfdecrypt or extracting them yourself, nab them from:

http://www.4shared.com/file/KtvYj8G-/NikeApp.html
http://www.4shared.com/file/t1PnsX3q/NikeLockScreen.html
http://www.4shared.com/file/nhrRgp_T/SportsTrainer.html
http://www.4shared.com/file/eKhoT4Nh/Templates.html
http://www.4shared.com/file/WPkYE5Wt/Victoria.html
http://www.4shared.com/file/ODFoP-NM/voices.html

No guarantees.

Read more