Things I see in student code | FOB

My CS300 professor at Portland State University just wrote a fantastic blog post about things he commonly sees in student source code – it’s a great read and helpful for reflecting on your own code and best practices:

I’ve read quite a lot of student code over the years. Some of it is quite good. A lot of it is full of predictable badnesses. These notes attempt to enumerate some of this badness, so that you may avoid it.

This is pretty C-centric in its current form. However, many of its lessons are multilingual. This is a living document, so don’t expect it to be the same next time you look at it. In particular, the numbering may change if something gets inserted in the middle. It is revisioned automatically by Drupal, so feel free to point at a particular revision if you care.

 

via Things I see in student code | FOB.

Dave Chappelle’s Portland Appearance

It seemed like a hoax.

There where thousands of people crammed into Pioneer Courthouse Square and no Dave Chappelle anywhere. But there were definitely plenty of jackass fans, some traumatic underage boob flashing—seriously, I really didn’t need to see that—and a bunch of suburban kids with not much else to do on a lazy Tuesday night. So, yeah, Twitter failed and it was all a hoax…

…that is, until Dave Chappelle (and the world’s smallest amp) showed up.

(via The Portland Mercury)

This is a really cool story wrapped in a really cool story. If you hadn’t heard from the flurry of Twittering about it yesterday, Dave Chappelle made an impromptu appearance at Pioneer Courthouse Square in Portland, OR – an appearance he had planned to make in front of a very small crowd and only told *five* people about. One of those people must have gotten on Twitter at some point, and by the time the concert was supposed to start, *four thousand people* had filled “Portland’s Living Room” waiting to see Dave. And show, he did. With a practice amp, a microphone, and an awesome attitude, he showed up to a crowd much larger than expected and did a damn good job keeping the crowd in good spirits despite barely being able to broadcast his voice to the first couple rows of people, let alone the entire square.

Here’s a clip of a great article written by a local news anchor, Joe Donlon, about his experience meeting Dave Chappelle while he was in town:

I introduced myself, and said, “So, it’s true. You ARE here. Everyone’s talking about it, you know.”  He was gracious and courteous – but clearly cautious when he heard I was a news anchor.  That’s why my next question probably wasn’t the best.  “What are you doing in town?”  He cocked an eyebrow – gave me that classic Dave Chappelle look – and said, “You’re a journalist?  I’m not sure I want to answer that.”  Fair enough.  So we moved on to other things – after I convinced him that I literally just happened to walk past.

I started with the rumor of this midnight show.  He seemed genuinely surprised, and said – “How did you hear about that?”  I told him about all the chatter we’d been hearing on Twitter and elsewhere – and he seemed almost stunned.

He then asked me about the local TV business.  We talked about the dwindling ad revenues, the layoffs, the cutbacks, and the bankruptcies – and he was truly intrigued about the money, and where it all went.   We talked about how people consume their news, the impact of the internet on that consumption, and our mutual admiration for Ted Koppel.  He also added his take on the difference between ‘news’ and ‘journalism’ and the changes he thought had killed ‘good journalism.’

Dave Chappelle + Joe Donlon

via My Chappelle Show – KGW Anchors .

If you’re still curious, here’s a video of his performance:

Dave Chappelle via OregonLive.com

And, of course, some links to the flurry of articles about the event:

Dave, if you’re reading this – you’ve got plenty of fans in Portland that would love to see you come back for a show whenever you like. =)

Portland Mercury: Court Of Appeals Upholds Cyclist’s Right To Carry Concealed Ninja Sword

Only in Portland… 😉

r_1218664730_aaaaakjnmwuaaaaaahw8lg

The court has overturned the February conviction of a man for carrying a concealed ninja sword in a Critical Mass rally. According to the appeals opinion, James M.Turner was riding his bicycle in a Critical Mass rally, when a Portland Police Officer riding next to him saw “three to four inches” of a sword handle wedged between Turner’s back and his backpack. The officer testified in court that there was no doubt in his mind that the object was a “sword or [something] similar.”

According to the transcript, the officer asked Turner, “What’s sticking out of your neck?”

Turner replied that it was a “ninja sword,” and the officer motioned for him to pull over. After Turner stopped, the officer removed the sword, which was sheathed, from between Turner’s body and his backpack. As he removed it, he discovered the sword was contained in a “double sheath, where one sword goes in one end, one in the other.” At the time the officer removed the first sword, he had not seen and was not aware of the second sword. He arrested Turner for carrying a concealed weapon based on his discovery of the second sword.

The appeals court ruled, however, that the officer did not have probable cause to stop Turner for carrying a concealed second sword, based on their conversation about the first sword, which did not constitute an official “stop.” However, the interaction became an official “stop,” the court ruled, when the officer motioned to the rider to pull over.

(continue reading via Court Of Appeals Upholds Cyclist’s Right To Carry Concealed Ninja Sword)

Our PDX Network

I’m always a fan of Portland related things on the interwebs. Here’s a site I found today called “Our PDX Network” which looks like it’s worth a read, or at least a blog post. 😉

Yes, it’s another local Portland, Oregon group blog.

Why?

After all, can’t people subscribe to the local blogs they want to, creating their own personal patchwork quilt of voices? Can’t they network on Twitter, Facebook, or LinkedIn – or in person at events run by the very cool Legion of Tech folks, for example? Aren’t there already enough local PDX group blogs out there?

Nope, there aren’t. Or maybe we’re just egotistical enough to think there’s room enough for our blog – alongside efforts by local print media like the Portland Mercury or Willamette Week, nestled up next to Portland is Awesome and Portland Food and Drink and Bike Portland and Silicon Florist and Blue Oregon and, yes – the Metroblogging Portlands of the world.

See, we read everyone else’s stuff. And we think you should, too. That’s why we’ll be talking about all of the other excellent local sites out there – telling you what you’ve missed, shooing you over to read their inside scoops instead of trying to regurgitate them ourselves. Talking up the activity on networks like Twitter, on events like Lunch 2.0.

But we’ll also be offering up our own unvarnished view of life in Portland – warts and all. We’ll be asking you for your opinion, your insights, and pointers to those sources you can’t live without (you can share them with us via our new Mag.nolia group, for starters.) Or we’ll be recounting conversations we might have had with you in person at the neighborhood farmer’s market, or at that evening meeting.

And since we come from a variety of backgrounds and don’t all share the same interests, we can promise you a slice of life you may not always see in your RSS reader or in your neighborhood.

In a nutshell? We’ll be interesting. Informative. Provocative. Collaborative. And, most importantly, interested in creating conversation. With you. (Yes, you.)

And if we’re not? Interesting and/or informative, or…

We’ll settle for pointing you over to something else that better meets your sensibilities…!

(via http://ourpdx.net/about/)

Mister Parkour

This guy (Adam Dunlap) teaches a Parkour class in Portland, which I’ve been taking for the past two weeks. The class is really fun, and he’s really good at Parkour:

6 Tips for Perfect Composition in Portrait Photography

The following guest post on composition for portrait photography was submitted by Christina Dickson, a portrait photographer and photography instructor from Portland, Oregon. Her work can be seen at: www.christinanicholephotography.com.

1. Fill the frame with your subject

A portrait is about the person, so don’t be afraid to zoom in close! Remember that zooming in does not mean capturing only face shots. You can also capture “tight”, close up shots of your subject sitting on a stool or leaning into a tree.

2. Keep eyes in the upper third

This is the most natural spacing for a portrait. Try not to divert from this rule unless you are deliberately creating tension. Another exception of this rule is when a subject is full-bodied in the bottom third of the frame.

3. Use framing to concentrate all attention on your subject

Rather than eliminate the environment, use it! Doorways, arches, windows, gazebos are all creative solutions that allow for maximum subject focus and heightened visual interest.

(continued via digital Photography School)