Thoughts
Posted on October 29, 2006
Concordia should register bunch of domains like comp442.com
(and install subversion somewhere!)
Filed Under Uncategorized | Leave a Comment
Benchmarks
Posted on October 28, 2006
Maybe you should try this with SELinux disabled again. Solaris doesn’t have the Trusted Extensions (mandatory access control) enabled by default where fedora has SELinux (mandatory access control) enabled by default.
The massive amounts of added security mandatory access control come at a 5-8% performance cost.
What hardware guys gave, software guys took away.
Filed Under Uncategorized | Leave a Comment
fsck it
Posted on October 27, 2006
Do I really have to hate coming to class?
Do I really want to listen to ignorant teacher?
Do I have to write test that with mambo-jambo even teacher can’t explain and have almost nothing course related?
Do I have to learn nothing?
Do I want to play Russian-roulette on the final?
No I don’t.
So I dropped that class.
Filed Under Uncategorized | 5 Comments
Firefox 2.0 Tabs
Posted on October 25, 2006
How to restore some of Firefox 1.5 tab defaults and remove “list all tabs” drop-down:
create:
C:\Documents and Settings\Iouri Goussev\Application Data\Mozilla\Firefox\Profiles\
8beksjhu.default\chrome\userChrome.css
add:
/* Disable “List all Tabs” Button */
.tabs-alltabs-button {
display: none !important;
}
/* Disable Container box for “List all Tabs” Button */
.tabs-alltabs-stack {
display: none !important;
}
.tabs-alltabs-box, .tabs-alltabs-box-animate {
display: none;
}
open about:config and change
browser.tabs.closeButtons = 3
browser.tabs.tabClipWidth = 10
browser.tabs.tabMinWidth = 10
browser.urlbar.hideGoButton = true
P.S BTW FF 2.0 shows all saved password in plaintext.
P.P.S List of plugins I use:
Addblock Filterset.G Updater
Adblock Plus
BugMeNot (great!)
Colouful Tabs (stoped working in 2.0)
del.icio.us
DOM Inspector
Fire Bug
GreaseMonkey
Ie Tab
JavaScript Debugger
SessionSaver (Read life saver!)
Tamper Data
View Dependencies
Filed Under Uncategorized | Leave a Comment
Masters of Comp Sci #2
Posted on October 19, 2006
You can use your COMP 451 class assignment as a thesis!

Filed Under Uncategorized | Leave a Comment
Masters of Computer Science
Posted on October 19, 2006





Read it online - you will enjoy every sentence.



Email Everywhere
Course Manager
Employee self service
A web based student course register system using JSP technology
Design and implementation of a Java H.263/G.726 decoder
The design and analysis of algorithms for sort and merge using comparisons
A comparison of two programming languages Java and C#
Filed Under Uncategorized | Leave a Comment
In my humble opinion
Posted on October 14, 2006
Filed Under Uncategorized | 1 Comment
On type safety
Posted on October 13, 2006
True type safety is an illusion. Without type safety, however, are your programs destined to a buggy doom? Not really. Type safety is definitely good for eliminating a basic class of bugs, but the problem is that program errors are often more subtle than confusing an integer for a string. Type safety is like a broad contract; it can guarantee general conditions (that a field is a string, or an object is of a particular transaction type), but not specific uses. Unfortunately, correct programs often require more specific constraintsfor example, it is not enough that a customer ID is typed as an integer; it must be an integer in a particular range that validates against internal checksums that go beyond what can be expressed with mere types. In other words, static types can never replace full-fledged testing, but too many programmers act like it does. Compiling is not testing; testing is testing. Bugs happen in both statically typed and dynamically typed programs, and the best defense is unit testing or some other more-rigorous testing approach. Because it is not compiled and has no static types, ABCDEF might seem to be more dangerous to develop in; but in some sense, it can actually be safer to program in: Because developers have no illusions that type checking is a serious defense against bugs, they will not confuse compilation with correctness.
How would I know if in unit test I test the same type I have in a program?
If type safety is definitely good for eliminating a basic class of bugs, why remove it entirelly?
It is true that correct programs require more specific constraints that default data types provide, why then custom type specifically designed to enforce thouse constrains would not be sufficient?
ABCDEF might seem to be more dangerous to develop in. Is it or is it not?
Does it mean that in unit-tests I have to check if every computation puts result in valid co-domain?
Filed Under Uncategorized | 4 Comments
Haskell Wisdom
Posted on October 9, 2006
Elendal: Hi, i am doing an assignment in haskell and I want to know if I can avoid calling same code twise can anybody help?
getOfSame [] _ = []
getOfSame hand x = if (length (filter (\x -> getRank x == (getRank(getHighCard hand))) hand) == x)
then filter (\x -> getRank x == (getRank(getHighCard hand))) hand
else getOfSame (removeHightCard hand) x
emk: Elendal: Let me take a look.
Pseudonym: Elendal, time to learn about where clauses.
Pseudonym: Oh, and guards.
emk: Elendal: A where clause, a let declaration, or a helper function.
Pseudonym:
foo x y = if c then e else t
Pseudonym: Can be refactored as:
foo x y | c -> e | otherwise -> t
Pseudonym: The other thing is you can give expressions a name:
Pseudonym: foo x y = … someExpression … someExpression
Pseudonym: transform to:
Pseudonym: foo x y = … e … e
Pseudonym: where e = someExpression
dons: something like:
getOfSame hand x
| length r == x = r
| otherwise = getOfSame (removeHightCard hand) x
where f c = getRank c == getRank (getHighCard hand)
r = filter f hand
dons: Elendal: the key is to use ‘where’ to record the result of the filter once, and then just reuse that result
Elendal: Thanks!
Pseudonym: BTW, bonus marks for the nice accumulator recursion.
Filed Under Uncategorized | Leave a Comment
Posted on October 8, 2006
Filed Under Uncategorized | Leave a Comment

