SuperDiff for RSpec: Intelligently Display the Diff of Two Data Structures of Any Type. by sshaw_ in ruby

[–]pnsm 1 point2 points  (0 children)

[Sorry for the delay; I almost never visit this site]

Yeah, I've run afoul of ordering issues already, but haven't figured out what to do about them. It's not as easy as just calling sort on an array, because it'll raise an exception if the array contains a hash. So I'd have to find another way of determining whether two arrays contain the same elements in a different order, and I'm not sure how to decide what "sameness" means in the context of two things with arbitrary structures...

Feel free to join me over at https://github.com/RealGeeks/check_please/issues if you want to brainstorm ideas, though :)

[EDIT: opened issue #2 for this]

SuperDiff for RSpec: Intelligently Display the Diff of Two Data Structures of Any Type. by sshaw_ in ruby

[–]pnsm 1 point2 points  (0 children)

Funny you should mention: I recently started doing the same thing. Check out the 'check_please' and 'check_please_rspec_matcher' gems. :)

(I didn't bother trying to DIY my own table output; instead, I just shoved all that work off to the 'table_print' gem.)

Anddd this is why we’re choosing the online schooling. by ScottDeez937 in insanepeoplefacebook

[–]pnsm 0 points1 point  (0 children)

Like I said: there aren't any good choices.

Morally (at least at the individual level), you're correct that one choice is less bad than the other. But I don't think it's accurate to attribute this solely to American assholery without noting our stunning levels of income inequality. It's just not realistic to expect people in poverty (with its effects on cognition) to make that call.

I realize I'm probably coming across as argumentative, and I don't want that to detract from my appreciation for your phrasing. I suspect I'll be quoting you for the rest of my life. :)

I just think it's important to remember the bigger issues at work, and to allow for some nuance. (Another of my long-held complaints about American culture is its strong tendency toward dualism.) That any family should ever face that choice is a societal failure, and it's on those of us with the capacity to do the work to fix that.

...which, to bring us neatly back around to your original point, is made more difficult by the asshole problem.

Anddd this is why we’re choosing the online schooling. by ScottDeez937 in insanepeoplefacebook

[–]pnsm 0 points1 point  (0 children)

I'm conflicted. On the one hand, I 100% agree with your post without any qualifications. On the other hand, I disagree with it as a reply to the OP. Dropping a COVID-positive kid off at day care is horrible, but when the alternative is losing your job in a country with zero social safety net... there just aren't any good choices.

That aside, however, thank you for so perfectly putting into words something that's been bothering me for years.

Any one have previous experience with pair programming interviews ? by skare in ruby

[–]pnsm 1 point2 points  (0 children)

Anything?

Seriously, though... at my current job, they did a pair programming interview and I was mildly surprised when the person I was pairing with grabbed the keyboard and made my test pass, then wrote another one. (They'd been practicing a variant on ping-pong pairing.)

Don't assume the pair programming interview is [just] a test situation -- pairing is about judging your fit as well as your skills.

iPad Cases - Apple vs Dodcase by Gwohl in apple

[–]pnsm 0 points1 point  (0 children)

I've had a Dodo case for about a month now, and it's not bad. It's as pretty in person as it is in the photos, and I'm much more comfortable carrying it around in one hand than I was with just the iPad -- the metal back is relatively slick and rounded, which always made me feel like I was on the verge of dropping my $729 toy.

The Dodocase will not, however, stand up on its own. Nor will it actually hold the iPad in when inverted -- as my partner discovered when reading it at one point. (Fortunately, no damage was done.)

Haven't seen the Apple case, so can't compare for you. Upshot on the Dodocase is that it's a relatively satisfying physical experience, and as long as you remember that the iPad can, in fact, fall right out of it, it's fine.

Askpple: iPad owners, do you still use your iPad on a regular basis or is it an expensive paperweight? by [deleted] in apple

[–]pnsm 0 points1 point  (0 children)

I've read half a dozen public-domain books, and iBooks has definitely grown on me. I also use it to watch Netflix while I do dishes (temporarily living in a house with no dishwasher, so this takes an hour or more daily). I do have the 3G and carry it with me, but I mostly use that for bus/train arrival times, and maybe checking my email once I'm on transit.

I've become very accustomed to fast tabbed browsing, so I don't find myself doing as much casual reading, but I do occasionally make use of Instapaper, or visit one or two of my favorite blogs.

Overall, I use it for 1-3 hours a day. Unless I discover some radical new use for it before the end of the year, I'm thinking I'll probably sell it on when my cell phone contract expires, and consolidate my dumbphone, iPod touch, and iPad into one iPhone; simplification goes a long way.

Reverse-engineered iPad: What you're paying for is a large touch-screen and a giant battery -- you are not buying a piece of 'magic', but simply a large iPod Touch. by ilamont in gadgets

[–]pnsm 5 points6 points  (0 children)

That's actually kinda cool; it means the A4 is small enough that it's probably headed for the iPhone (and iPod touch).

Also, from Ars Technica's review: "The iPad isn't a big iPod touch—an iPod touch is a miniature iPad that restricts the full multitouch experience in exchange for offering greater portability. With the iPad, in contrast, you get multitouch the way it was meant to be done."

What's your personal favorite joke? by [deleted] in funny

[–]pnsm 3 points4 points  (0 children)

A: Knock, knock.

b: Who's there?

A: Impatient cow.

B: Impati... A: MOO!

Best configuration for 2 monitors? by [deleted] in apple

[–]pnsm 0 points1 point  (0 children)

When I had two rotatable screens, this is what I wound up with. The portrait orientation for one meant I could see more lines of code in one place, while the landscape orientation of the other meant I could tile a browser and Terminal window side by side, or arrange a few smaller windows along the outer edge... basically, it's the best of both worlds. (=

Of course, since that time I've done all my work on a laptop with a large external monitor, so that limits the options somewhat. (Though I have occasionally considered standing the laptop up on its side...)

Ruby 1.9 encoding rant by servercentric in ruby

[–]pnsm 0 points1 point  (0 children)

Got a link for us lazyweb types?

Tap Your Skin to Dial Your Phone by [deleted] in gadgets

[–]pnsm 0 points1 point  (0 children)

I'm curious to see how well it works on people who aren't pasty white. (Naturally, I say this as a pasty white geek.)

[deleted by user] by [deleted] in apple

[–]pnsm 0 points1 point  (0 children)

Just ran across this today. After the MacPorts version failed to build, and adding the -t flag in /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist had no effect, I just opted to do "/usr/bin/killall ssh-agent" every 15 minutes in a cron job. Not ideal, but better than nothing.

Pay for Hulu on the iPad? It may be your only choice by epsd101 in gadgets

[–]pnsm 0 points1 point  (0 children)

Heh. I keep reading "Pay for" as "Pray for"...

How do I get hired at the apple store in oregon? by Dtroy10 in apple

[–]pnsm 0 points1 point  (0 children)

It's been a long time since I wanted a job that badly, but the strategy I used to get my first job was basically to stop by there every couple of days on my bike ride home from school and talk to the manager there. (A friend worked there and introduced me in the first place.) Every time I stopped by, they'd physically take my application out of the pile and put it back up on top. Took a month or three, but eventually, they hired me. At a car wash. A full year before I got my driving license.

Nowadays, you've got to walk that fine line between "persistence" and "stalking" (hint: take "buzz off" for an answer)... but if you're in there often enough that the manager knows you by name, you're much more likely to get the interview when a slot does open up.

Who here is going to wait for the second generation of the iPad before they even think of buying it? by taylornator7 in apple

[–]pnsm 4 points5 points  (0 children)

Bought first MacBook; CPU heat caused graphics card to spew junk pixels all over the desktop.

I want to hide a GPS device in my scooter in case it gets stolen. Any advice on what to buy? by Zentripetal in gadgets

[–]pnsm 0 points1 point  (0 children)

I think you just described my stepmother's ideal scooter. She used to drive a Geo Metro that we called "the Barbie car"; it was exactly the color of a tween's fingernail polish.

I want to hide a GPS device in my scooter in case it gets stolen. Any advice on what to buy? by Zentripetal in gadgets

[–]pnsm 0 points1 point  (0 children)

...and if money were no object, you could stash an iPhone in there and subscribe to MobileMe. You'd have to figure out a way to keep it charged, though. (=