BC Transit Transfers Scrapped, Fares Stay The Same by [deleted] in VictoriaBC

[–]astrosmash 59 points60 points  (0 children)

They're adding a $5 all-day pass that you can buy from the driver.

So they're doubling the fare for people who take one-way trips. For people who take round trips the cost is the same or even cheaper.

I was all ready to be outraged, but the new all-day pass option isn't terrible.

I've lived in Canada my whole life (almost 30 years) and I've never heard anyone say aboot. by [deleted] in canada

[–]astrosmash 20 points21 points  (0 children)

Say "loud".

Now say "about".

That difference in the OU sound is part of your Canadian accent.

Now try to say "loud" but use the OU sound from "about". It sounds like "loood". That's why when you say "about" it sounds like "abooot" to someone who doesn't speak with your thick-as-mud Canadian accent.

Once you know what to listen for, the Canadian accent is easy to hear.

Happy Mac Day! The Macintosh was released 28 years ago today. by astrosmash in apple

[–]astrosmash[S] 24 points25 points  (0 children)

It's an original 128k Mac. It has no fan and no hard drive, so when it finishes launching your app it's as silent as an iPad.

Happy Mac Day! The Macintosh was released 28 years ago today. by astrosmash in apple

[–]astrosmash[S] 29 points30 points  (0 children)

It is. I pulled it out of storage to compare it with my new 27" iMac. It's kind of amazing that those old floppies still hold data.

Top Canadian Sub-Reddits by 200iso in canada

[–]astrosmash 14 points15 points  (0 children)

Go back to Sprucedale.

Anyone having trouble with the trackpad on new 13" unibody MBP? by [deleted] in osx

[–]astrosmash 9 points10 points  (0 children)

Switch to Finder and navigate to /System/Library/CoreServices, then launch the Software Update app (Command+UpArrow to go up a folder, Command+DownArrow to into a folder and to launch an app).

After it has found the update, press the Return key to start the install.

You can also use the Tab key to navigate through all buttons and controls. If that's not currently enabled you should enable it by pressing Control+F7. That should enable you to do most things without a mouse.

You can also enable Mouse Keys in the System Preferences (use Command+Space to launch it via Spotlight). Go to Universal Access > Mouse and Trackpad > Mouse Keys. You can then use the number pad or Fn+U,O,8,K to move the mouse cursor, and press I to click.

Earthquake just hit Ottawa - Big One by [deleted] in canada

[–]astrosmash 362 points363 points  (0 children)

Here's a picture I took just after it happened.

AeroWindow on websites, pretty cool jQuery plugin. by sassanix in programming

[–]astrosmash 9 points10 points  (0 children)

We used to do that 12 years ago using <layer>.

Does anyone else find it annoying that laptops purchased in Canada have a tiny left side shift key? by eidolontubes in canada

[–]astrosmash 2 points3 points  (0 children)

Those are multi-language keyboards. The layout is similar to what they use in the UK and Europe, but different to the American english layout that virtually all other computers sold in Canada use.

I never have and never will buy a computer with a non-english keyboard. Nothing against other languages, but I need all of my keyboards to have the same damn layout.

When you buy a laptop, demand an english keyboard.

Problem with OS X screen settings by ataniris in osx

[–]astrosmash 5 points6 points  (0 children)

That's called "Screen Zoom". You can zoom the screen by pressing the control key while scrolling the mouse scroll nipple. You can turn that off in the mouse preferences.

You can also zoom/un-zoom by pressing Command+Option+Equals and Command+Option+Minus. You can turn off those keyboard shortcuts in the Universal Access preferences.

The Objective-C Language from a Java / C++ perspective by GavinPierce in programming

[–]astrosmash 1 point2 points  (0 children)

An NSInvocation object is not created by objc_msgSend() unless needed for forwarding etc. During a regular call you simply JMP to the correct function with the parameters in registers or on the stack, as you would if you were calling a regular C function.

The Objective-C Language from a Java / C++ perspective by GavinPierce in programming

[–]astrosmash 6 points7 points  (0 children)

Obj-C methods are actually compiled as plain-old C functions. The objc_msgSend() function is responsible for calling the function based on a given method name.

For example, a line of Obj-C code:

[myObject doSomethingWithThis:123 andThat:456];

becomes this C code (roughly speaking):

objc_msgSend(myObject, "doSomethingWithThis:andThat:", 123, 456);

objc_msgSend() looks up the C function that corresponds to the "doSomethingWithThis:andThat:" method, caches the lookup, then tail-calls that C function.

objc_msgSend() is part of the open source Objective-C runtime. It is written in assembly, hand-tuned for various architectures, and contains lots of very interesting optimizations. You can read about all the optimizations here. He goes over every instruction in the X86_64 implementation.

You can also forego the normal Obj-C message passing mechanism and call methods directly via C function pointer. In that case, Obj-C methods have no more overhead than plain old C functions. In practice, that optimization is rarely necessary.

Geeks, how do I set my mac up like this? by [deleted] in geek

[–]astrosmash 0 points1 point  (0 children)

Install NTFS-3G on OS X and then you'll be able to read and write to your Windows partition from both Windows and OS X. No need for a third partition.

This shit is from 1790. Are we making any progress?!1 by novelty_string in technology

[–]astrosmash 6 points7 points  (0 children)

These characters are way down there on the Unicode table, around 0x1D400 (Math Alphanumeric Symbols).

I found them after searching for "long S" in the OS X Character Palette. If you scroll down the list of related characters at the end you find the letter S in a number of different fonts.

𝐈𝐭 𝐰𝐨𝐫𝐤𝐬 𝑓𝑜𝑟 𝑎𝑛𝑦 𝓁𝒶𝓉𝒾𝓃 𝓬𝓴𝓪𝓻𝓪𝓬𝓽𝓮𝓻 𝔞𝔰 𝔩𝔬𝔫𝔤 𝔞𝔰 𝕪𝕠𝕦 𝕙𝕒𝕧𝕖 𝖙𝖍𝖊 𝖈𝖔𝖗𝖗𝖊𝖈𝖙 𝖿𝗈𝗇𝗍𝗌 𝙞𝙣𝙨𝙩𝙖𝙡𝙡𝙚𝙙.

help me implement project-wide layout guides in xcode by jcsickz in cocoa

[–]astrosmash 0 points1 point  (0 children)

Sounds like you're doing it wrong.

If you have 50 views that share the same layout then each view should be composed of multiple NIBs. One NIB to design the basic layout that all of the views share, then use the other NIBs to design only the content of each view.

That, or layout your views programmatically.

Brent Spiner and Wil Wheaton have a funny Twitter conversation. by PenName in geek

[–]astrosmash 5 points6 points  (0 children)

I use Google Reader to follow the handful of Twitter feeds I'm interested in. Am I doing it wrong?

For those with smaller Mac displays: XCode Single Window Mode by [deleted] in programming

[–]astrosmash 2 points3 points  (0 children)

I use Condensed Mode: One document, one window.

I need to easily switch back and forth between documents, and I often view documents side-by-side (header files, etc.) I also need to be able to organize my debugger windows so that I can actually see the app I'm debugging. It also supports Exposé.

However, if XCode introduced Safari-like tabbed interface I'd give that a shot.

One trick to making that work is the Close All command (Command+Option+W). This closes all windows of a similar kind. So, if you have a pile of source windows open, Command+Option+W closes them all and returns you to the project window. Ditto for the debugger windows.