August 2008
49 posts
C/C++/Objective-C programmers:
marco:
Tired of these bugs?
if (x = 5) { /* Oops, accidentally set x to 5 */ }
Use GCC’s -Wparentheses option, which will generate warnings whenever you do this. (In Xcode, it’s in Project Info: GCC 4.0 - Warnings: Missing Braces and Parentheses.)
If you actually intend for the assignment to be the evaluated value in a conditional, just give it an extra set of parentheses:
if ( (x = 5) ) { /*...
Why I stopped reading Coding Horror →
This is ridiculous, anyone who has used SQL Server for more then 5 minutes should know what (nolock) does. I knew the solution before even finishing reading his problem, and I am no SQL wizard.
It really upsets me that he is someone “respected” in the developer community and he can devote a whole blog post to this sounding like it was such a difficult problem to overcome.
How can a...
100 Reasons Why McCain Won’t Be President of the... →
talby:
peterwknox:kayfabe:aja:
When asked, he didn’t know what kind of car he drives.
83. Early polls show Bob Barr taking away enough votes from John McCain to give Democrats a chance to win states that should be safely Republican.
And people say that voting Libertarian does not help in elections.
Is there anyone out there...
talby:
jhalickman:
blakeley:
who actually likes the new tumblr design?
I miss my posts being a different color.
Use this code in a stylish style to bring that back:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tumblr.com") {
ol#posts li.is_mine {
background-color:#C8D5E4 !important;
}
ol#posts li.new_post {
background-color: #fff !important;
}
}
Just change the...
Is there anyone out there...
blakeley:
who actually likes the new tumblr design?
I miss my posts being a different color.
1 tag
1 tag
Opentape →
cubicle17:
For those of you lamenting the loss of Muxtape, have no fear; it’s Opentape to the rescue:
Opentape is a free, open-source package that lets you make and host your own mixtapes on the web.
Upload songs (via web or FTP), reorder, rename, customize the style, and share what you like on other sites with an embeddable player.
Surely the RIAA saw this coming…
Doesn’t the RIAA...
1 tag
Date yourself by finding the #1 song on the day... →
Mine was “Jack and Diane” by John Cougar
Update:iTunes Question
I could not get a usable answer to this question. But I tried out Simplify Media and it seams to get the job done, I just hope I get signal the whole train ride.
2 tags
2 tags
1 tag
2 tags
iTunes Question
Hopefully the Tumblrverse can help me with this. I normally sync my iPhone with my Mac at home, but I just bought an album on Amazon that I want to put on it for this weekend. Is there a way to do this with out erasing everything I already have on there?
Thanks.
I just noticed that the cord for my headphones comes out of the left earmuff, and the jack on my monitor is on the left side. Also the jack on my MacBook is also on the left side. I wonder if this is a standard, or just a happy coincidence?
Strange Feeling - Dilbert Blog →
Democracy without useful information is random. This isn’t a good time in history to be making random decisions.
I think this perfectly explains the problems with our country currently and the media is hurting rather then helping.
Activating a Custom Tab on the Ribbon When a Document Is Opened (Harry Miller)
Programming the Office 2007 Ribbon UI is almost as peculiar as using it.
I’ve learned that you can tell a lot about a person by the way he/she handles...
– Maya Angelou on Handling adversity (via theoriginaljoefisher)
I have always loved this quote. .. and so true it really is, though I happen to dig on rainy days quite a bit.
(via seashellhell)(via justlia)
The only one of these I handle well is Christmas tree lights, and that’s only because I...
allisonweiss:
blakeley:
My first video I’ve shot in complete HD, location Gawker rooftop. I dare you to watch this and not fall in like with Allison Weiss.
My friend Richard Blakeley made me a music video on a whim on my last day in NYC! It turned out AWESOME!!!
Awesome video of Allison Weiss.
To love is to suffer. To avoid suffering, one must not love. But then, one...
– Woody Allen (via maniacalrage) (via joshawesome) (via lovepuppy)
Why is american beer like having sex in a canoe?
Because it is fucking close to...
– American Beer
I was thinking how easily people get stuck in places. I mean, first of all you...
– Justin Johnson (via marco)
Feeling very stuck latley, I think this says it all.
Why doesn’t Fire Eagle let you see a list of your past locations. Huge flaw in the design if you ask me.
Holy Shit, did he just say “Hey Hamden Hall”. That was my High school, that is awesome, although Mr. Greenwalt did not have a video journalism class just Pre-calc, I think I got shafted on that.
jakeandamir:
Micah
I just watched this tonight on NetFlix, wonderful movie about where our food comes from.
In this country we subsidize Happy Meals not Healthy Meals.
I think that says it all.
marco:
King Corn is excellent.
talby:
marco:
Nice people at Slicehost.
When I can afford one it’s between slicehost and linnode for me.
webfaction is also really good
When you don’t share your problems, you resent hearing the problems of other...
– Chuck Palahniuk (via mascarah)
Dysfunctional App Store reviewers
marco:
Tal Atlas:
Apple really should only allow reviews from people who actually purchased the app.
I can’t keep repeating this enough. Nearly every paid app has an unfairly low star-rating average because they all get a bunch of low-star reviews from people who haven’t even tried them complaining about the price.
From the reviews of iTrans NYC Subway, a $9.99 app:
1 star from Ben Andrews...