Arrival will be delayed
Posted on October 26, 2007

I might actually buy it, the price is reasonable. But I want to try it first, I did not like new Windows Vista at all, so I don’t want to buy a cat in a bag.
Otherwise I will just downgrade to whatever version came pre-installed.
Filed Under Uncategorized | Leave a Comment
Posted on October 26, 2007
‘Humanity’s very survival’ is at risk, says UN’ blah, blah, so long and thanks for all the fish etc etc.
But
- Populations of freshwater fish have declined by 50 per cent in 20 years
And this really suck. Coz I like fishing.
Filed Under Uncategorized | Leave a Comment
Posted on October 20, 2007
Calendar of colloquium at the Department of Computer Science and Software Engineering.
Filed Under Uncategorized | Leave a Comment
Take control of your keyboard
Posted on October 19, 2007
I write windows code on my macbookpro and I often need to use right mouse button, so I with AutoHotKey simple remaped CapsLock to right mouse button(Capslock::RButton)!
I often need a console so I mapped Win+Space to open one. Very useful program.
Filed Under Uncategorized | Leave a Comment
Posted on October 17, 2007

Filed Under Uncategorized | Leave a Comment
Posted on October 16, 2007
Object is ƒ: Message→Behaviour.
And instance is a closure.
Filed Under Uncategorized | Leave a Comment
.NET Development on Mac
Posted on October 16, 2007

Filed Under Uncategorized | Leave a Comment
Another Boo
Posted on October 14, 2007
Here is another script I wrote, I’m not sure if it will be usefull but I will try to work with it on and see the results. I think disk I/O takes most of the wait time (total ~1.6sec). Some kind of memory drive would be usefull for this kind of use.
import System.IO
import System.Windows.Forms
class Watcher():
fsw as FileSystemWatcher
f as Form
l as Label
active = false
def constructor(fspath as string):
f = Form()
l = Label()
fsw = FileSystemWatcher()
fsw.Path = fspath
fsw.IncludeSubdirectories = true
fsw.NotifyFilter = NotifyFilters.LastWrite
fsw.Changed += ChangedCallBack
fsw.EnableRaisingEvents = true
def Enable():
fsw.EnableRaisingEvents = true
def Disable():
fsw.EnableRaisingEvents = false
def ChangedCallBack(source, e as FileSystemEventArgs):
print "File: ${e.FullPath} ${e.ChangeType}"
BuildProject()
def BuildProject():
if not active:
active = true
cmd = System.IO.Path.Combine(System.Environment.CurrentDirectory, "tools//nant//nant.exe")
print "Calling ${cmd}"
r = shell(cmd, "-buildfile:Uniboard.build test")
if r =~ /BUILD\sFAILED/:
caption = /Failures:.*/.Match(r).Value.Trim()
text = /(?s)Failures:.*?BUILD\s\w+/.Match(r).Value
ShowForm(caption, text)
active = false
else:
print "Build is Active"
def ShowForm(caption as string, text as string):
//f.Text = caption
//f.TopMost = true
//f.AutoSize = true
//l.AutoSize = true
//l.Text = text
//f.Controls.Add(l)
//f.Click += def(sender, e as System.EventArgs):
// f.Close()
//f.KeyDown += def(sender, e as KeyEventArgs):
// f.Close()
//f.Load += def():
// f.Activate()
// f.ShowDialog()
MessageBox.Show(text, caption, MessageBoxButtons.OK)
w = Watcher(System.Environment.CurrentDirectory)
print "Starting"
while(true):
prompt("")
w.Disable()
w.BuildProject()
w.Enable()
Filed Under Uncategorized | Leave a Comment
Boo
Posted on October 14, 2007
Simple script in Boo to quickly dump information about an assembly. Very nice Python-like language for .Net
import System;
import System.Text
import System.Reflection;
# Because in 2007 Microsoft is still building Sandcastle
class AssemblyStructure():
file as string
sb as StringBuilder
def constructor(file):
self.file = file
self.sb = StringBuilder()
def ToString():
sb.Append("Assembly: ${file}\n")
ShowStructure(Assembly.LoadFrom(file))
sb.Append("\n")
return sb.ToString()
def ShowStructure(assembly as Assembly):
for type in assembly.GetTypes():
if type.IsClass:
sb.Append("\tClass ${type.FullName}\n")
Display("Implements", type.GetInterfaces())
Display("Property", type.GetProperties())
Display("Field", type.GetFields())
Display("Event", type.GetEvents())
Display("Method", type.GetMethods())
if type.IsEnum:
sb.Append("Enum ${type.FullName}\n")
Display("Fields", type.GetFields())
def Display(description as string, data):
for value in data:
sb.Append("\t\t${description}: ${value}\n")
assembly = AssemblyStructure("b.dll")
print assembly.ToString()
Filed Under Uncategorized | Leave a Comment
Posted on October 12, 2007
Unlocker! Is you need to disconnect that fcking USB drive safely.
Filed Under Uncategorized | Leave a Comment