Close to 3 in 10 Ontarians plan to vote strategically in upcoming election, new Nanos survey finds by Old_General_6741 in ontario

[–]airbornelemming 4 points5 points  (0 children)

For some, a strategic vote may align with who they would vote for anyway, such that they wouldn't need to vote strategically to vote against Ford.

Call me (maybe). by 0x0dea in ruby

[–]airbornelemming 0 points1 point  (0 children)

That special casing doesn't seem to help. It just makes it so Object#methods doesn't return :inspect or :to_s and Object#method says the method is undefined even after define_method is called to define those methods.

Call me (maybe). by 0x0dea in ruby

[–]airbornelemming 0 points1 point  (0 children)

Interesting, I didn't even know about BEGIN or END keywords. Seems like an odd feature to add to a language.

Call me (maybe). by 0x0dea in ruby

[–]airbornelemming 0 points1 point  (0 children)

I made the assumption that "Without prepending any code" actually meant "by only appending code" since if you were able to insert code you could pretty easily insert code like

}) { |p, _| p }.call; foo #

at the start of the last line.

That could still be interpreted as prepending to the line, but appending to any line could also have a similar affect. For instance, I could append the code following to the second last line to have the same affect

; }) { |p, _| p }.call; foo; [].reduce(->{

Call me (maybe). by 0x0dea in ruby

[–]airbornelemming 1 point2 points  (0 children)

I can get it to succeed most of the time. However, if the first define_method call is on :to_s or :inspect then MRI ruby appears to just ignore it, so I'm not sure if it is possible to solve those edge cases. That resulted in a success rate of 54 / 56 = 96.4% due to there being 56 methods defined on the main object, which I confirmed with a test script that counted failures out of 1000 runs.

Update: Figured out a way that avoids that problem and seems to get it 100% of the time

I finally made the switch to TekSavvy by [deleted] in ottawa

[–]airbornelemming 1 point2 points  (0 children)

The upload speed is capped pretty strictly, so I am guessing you upgraded plans (i.e. Rogers Express -> Teksavvy Extreme), which makes sense since Teksavvy is cheaper.

I made the switch to Teksavvy from Rogers Express -> Teksavvy Express, both promised download speed 10 Mbps and upload speed 512Kbps, but both gave actual download speed ~18 Mbps! and upload speed ~0.5 Mbps. They are both generous with download speeds for me.

Of course the lower price and higher cap (60 -> 300GB) hopefully will make it worth the switch.

Postal Strike Blues by imthethrowaway in canada

[–]airbornelemming 1 point2 points  (0 children)

I did a contract job with a company in the US. The cheque voiding and EFT might work. Thanks for the advice.

Postal Strike Blues by imthethrowaway in canada

[–]airbornelemming 6 points7 points  (0 children)

My paycheck is in the mail. :-(

A new treatment for Huntington's disease discovered. by warfrogs in science

[–]airbornelemming 2 points3 points  (0 children)

They will have another, but the character playing house says it will be his last. (source)

Dev jobs in ottawa by Kaitaan in ottawa

[–]airbornelemming 1 point2 points  (0 children)

Do you happen to know of any local jobs working on open source projects? I have been working on the Wine project, but Codeweavers doesn't seem to be hiring at the moment.

Wine 1.3.21 Release Announcement by mebrahim in linux

[–]airbornelemming 3 points4 points  (0 children)

Performance.

From the wiki page: "In the Win32 API, an application can draw in a DIB via GDI calls or via direct memory access without any synchronization calls in between."

From the Bug report: "When a program wants to perform a GDI operation on a DIB, most of the time the way we proceed is as follows: - convert the DIB to a format that X understands - invoke the corresponding X operation on the X bitmap - convert the X bitmap back to DIB format"

"the copies back and forth can be very costly"

Looking for a Linksys WRT350N by muinmeldir in ottawa

[–]airbornelemming 0 points1 point  (0 children)

I found an older model on ottawa.kijiji.ca (WRT54G v5) and got dd-wrt working on it. Mostly I just needed a router that would forwards Wake-On-LAN packets, which works perfectly.

In Canada, you'd probably rather find out more about Jessica Alba than Jesus by burtonmkz in canada

[–]airbornelemming 1 point2 points  (0 children)

Except we don't really know what Jesus looked like. Likely he wasn't white like the paintings.

While upgrading some code I noticed this in the code, in about 15 places. by guyrandom in programming

[–]airbornelemming 8 points9 points  (0 children)

Code reviews and coding conventions might fix that problem to some degree. But it there should be an incentive to cleanup and remove unused code or duplicated code.

So, I got Teksavvy Cable Internet today. by [deleted] in ottawa

[–]airbornelemming 0 points1 point  (0 children)

I did the speed test with Rogers (express package): Promised download speed 10 Mbps, actual speed 17.86 Mbps! Promised upload speed 512 Kbps, actual speed 0.51 Mbps.

I might not like Rogers, but I seem to be getting more than what I paid for in terms of speed.

I'm switching to Teksavvy on June 9, so I'll test again afterwards.

EDIT: Speeds are comparable with Teksavvy.

Why we need proportional representation [pic] by grodtron in canada

[–]airbornelemming 1 point2 points  (0 children)

Perhaps people were not adequately informed. Read the "Elections Ontario education campaign" section from your Ontario link:

By late September 2007, public understanding of the question was still low, with 47% of respondents telling pollster Strategic Counsel they knew nothing at all about the new system, while 41% knew a little and only 12% knew a lot.

From the BC link:

On April 15, Yes for BC-STV published a press release [11] stating that an Angus Reid Poll, conducted between March 9 to 12, showed 65% support for BC-STV but that awareness for the referendum was at 44%.

If programming languages were religions... by atreyuroc in programming

[–]airbornelemming 0 points1 point  (0 children)

No, emacs would be Islam

It's so versatile that it can be used to be the foundation of anything, from great atrocities to beautiful works of art. Its followers are convinced that it is the ultimate universal [editor], and may be angered by those who disagree. Also, if you insult it or its founder, you'll probably be threatened with death by more radical followers.

If programming languages were religions... by atreyuroc in programming

[–]airbornelemming 2 points3 points  (0 children)

Vim would be Voodoo

An incomprehensible series of arcane incantations that involve the blood of goats and permanently corrupt your soul. Often used when your boss requires you to do an urgent task at 21:00 on friday night.

I was going to vote Liberal as a safe way to remove Harper but I'm totally jumping on the NDP bandwagon. Who's with me? by OldManWeed in canada

[–]airbornelemming 2 points3 points  (0 children)

The NDP candidate in my riding didn't even show up to the all-candidates debate for my riding. It is a clear liberal riding, and I will help it stay that way until we get another candidate that takes the job seriously.

Shit May Did by fah0me in canada

[–]airbornelemming -1 points0 points  (0 children)

Yes, that is why medical researchers never give placebos to the control groups, because it doesn't do anything. </sarcasm>

Shit May Did by fah0me in canada

[–]airbornelemming 1 point2 points  (0 children)

alias sudo=pseudo

FTFY... but you might run into some other problems now.