How to connect to Concordia Wireless from Ubuntu Linux 7.04
Posted on April 22, 2007
See comments.
To connect Ubuntu 7.04 to concordia wireless network: Step 1 /etc/network/interfaces show look like this for ath0 cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto ath0 iface ath0 inet dhcp wpa-driver madwifi wpa-conf /etc/wpa_supplicant.conf auto wlan0 iface wlan0 inet dhcp Step 2 cat /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ap_scan=2 network={ ssid="REftRW2d" scan_ssid=1 auth_alg=OPEN key_mgmt=IEEE8021X eap=LEAP identity="i_gouss" password="XXXXXXXX" } Step 3 Disable default network manager /etc/dbus-1/event.d/25NetworkManager stop Step 4 At this point you can probably connect to the network /etc/init.d/networking stop wpa_supplicant -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi dhclient ath0 I rebooted the computer and it connected automatically. Unfortunately Network Manager Applet no longer display available networks :-(
Filed Under Uncategorized | 4 Comments
NTFS 256 characters file limit
Posted on April 15, 2007
C:\01234567890\01234567890\01234567890\01234567890\01234567890\01234567890\01234
567890\01234567890\01234567890\01234567890\01234567890\01234567890\01234567890\0
1234567890\01234567890\01234567890\01234567890\01234567890\01234567890\012345678
90>mkdir 01234567890
The filename or extension is too long.
Is that enough? Not at all.
I know large project that require project folder at the x:\.
This also limits number of subpackages application can have.
This alone is reason to use unix for project development.
I hope that Microsoft removed this stupid limit in Vista.
Filed Under Uncategorized | Leave a Comment
Nice things
Posted on April 15, 2007
I found two new interesting things:
First one is a Java tool called Ashcroft that helps to write real varunit test. It is very simple, all you have to do it add a parameter -Djava.security.manager=com.thoughtworks.ashcroft.runtime.JohnAshcroft to the java commands that starts the unit test and it will throw an exception whenever you are not following one of the Ten Commandments of Unit Tests:
- I am the class being tested. Thou shalt not test any other class but me.
- Thou shalt write isolated tests
- Thou shalt not access files during unit tests
- Thou shalt not write two tests which depend upon each other
Why this is such a nice tool? Well unit test are supposed to be very fast, so that you can run then very frequently. And this tool helps you to be more disciplined. So instead of calling a read database or reading an XML from a file system, you have to proviced a mock or a stab object. And this really helps, I modified my unites test that that triggered the Ashcroft to throw an exception and now they run in 1 second instead of 5.
The second trick is very simple:
startTicking( toDo == 'A' ? 500: // agony
toDo == 'S' ? 150: // slow
toDo == 'S' ? 70: // medium
toDo == 'S' ? 30: 0); // fast
Filed Under Uncategorized | Leave a Comment
Testing Testing 123
Posted on April 9, 2007
I am moving my blog to my domain. Let’s see how it goes.
Filed Under Uncategorized | Leave a Comment
COMP472 A.I Turnament
Posted on April 5, 2007
I won the COMP472 A.I tournament! The tournament was very interesting, there there a lot of “Why? why?!”, and “Yeah! That was a smart move!” moments. My greatest game was in the semifinals where I played against Yan, her game heuristics was very impressive, I think we made approximately 25-30 moves in both games. My wolves won the first round, but the sheep lost after it failed to penetrate the defense. So when it came to counting moves I won by just 2 or 3.
I think I know why my sheep played very defensively, I forgot to change one variable and the sheep thought that it was a wolf, and my heuristic for wolves said that the sheep should always be below. So it actually worked both ways. Oh well, it still managed to outsmart and win twice!
Filed Under Uncategorized | 1 Comment
AspectJ and DRY principle
Posted on April 1, 2007
IMHO this is sooo uncool. All this repetition and parameter jugging is probably there for a reason. But I just can’t see it.
I would have designed the syntax for anonymous pointcuts like this:
before() : call (void Account.credit(float)) && target(account) && args(amount) { System.out.println("Crediting" + amount + " to " + account); }
and for named pointcuts
pointcut creditOperation : call (void Account.credit(float)) && target(account) && args(amount) before() : creditOperation { System.out.println("Crediting" + amount + " to " + account); }
Since the compiler already has this information, let it figure out the parameters and target objects.
Filed Under Uncategorized | Leave a Comment