etc

Why you can’t rely on a replica for disaster recovery

Reddit - Sat, 07/31/2010 - 11:26pm
submitted by gst
[link] [comment]
Categories: etc

Today, I learned that <% and %> can be substituted for { and } in C.

Reddit - Sat, 07/31/2010 - 10:11pm

<: and :> also substitute for [ and ]. Doesn't have to be "both or neither", GCC is happy to compile the following:

#include <stdio.h> int main(int argc, char *argv[:>) <% if( argc > 1 ) { printf("you passed %d argument%s to %s.\n", argc - 1, ( argc == 2 ) ? "" : "s", argv<:0]); %> else { printf("you passed no arguments to %s.\n", argv[0:>); %> return 0; }

Found this while browsing through c.vim; a comment therein suggests this is a C99 thing. Anybody have any insight into the motivation behind it?

submitted by hurfadurf
[link] [15 comments]
Categories: etc

Your Code Sucks

Reddit - Sat, 07/31/2010 - 9:24pm
Categories: etc

Wikileaks volunteer detained

Boing Boing - Sat, 07/31/2010 - 6:22pm
A volunteer for Wikileaks was detained by officials Thursday while entering the country at Newark International Airport. Jacob Appelbaum, noted for his work with the Tor online security project, was searched and "interrogated" for three hours before being released, according to a source who asked to remain anonymous. Wikileaks, a clearing house for information submitted by whistleblowers, released a trove of "War Logs" last Sunday relating to the conflict in Afghanistan. Appelbaum delivered a keynote speech at the recent HOPE conference in Wikileaks chief Julian Assange's place, and gave an interview to Boing Boing about the content of the logs. According to the source, Appelbaum was stopped by customs officials and spoken to for at least three hours by a team that included a U.S. Army investigator. Army Pvt. Bradley Manning was named last week as a possible Wikileaks source in relation to the classified logs. Appelbaum's interviewers demanded that he decrypt his laptop and other computer equipment, the source said. After his refusal to do so, they confiscated it, including three cellphones. The laptop was returned, apparently because it contained no storage drive that investigators could examine. He was also asked about his role in Wikileaks and informed that he was under surveillance. The FBI also asked to speak to Appelbaum earlier today in Las Vegas after his talk at the annual DEFCON hacker conference. Mr. Appelbaum, the source said, had an attorney present who declined the request on his behalf. Appelbaum, reached Saturday afternoon, said he was unable to comment. Update: CNET also has a story up, with more details of the detainment: Appelbaum, a U.S. citizen, was taken into a room, frisked, and his bag was searched. Receipts from his bag were photocopied, and his laptop was inspected, the sources said. Officials from the Immigration and Customs Enforcement and the U.S. Army then told him he was not under arrest but was being detained, the sources said. The officials asked questions about Wikileaks, asked for his opinions about the wars in Iraq and Afghanistan, and asked where Wikileaks founder Julian Assange could be found, but Appelbaum declined to comment without a lawyer present, according to the sources. Appelbaum was not permitted to make a phone call, the sources said.



Categories: etc

Is Good Code Impossible?

Reddit - Sat, 07/31/2010 - 6:19pm
Categories: etc

My gift to /r/programming: rd - the command line reddit viewer (Windows)

Reddit - Sat, 07/31/2010 - 5:33pm

I wrote this for myself and figured I might as well share. It allows you to browse reddit, with subreddit and comment support, from the command line.

My motivation

  • Coworker who sees me looking at something in a browser: "Glad you're not busy; I need you to do this, this, this..."

  • Coworker who sees me staring intently at a command prompt: backs away slowly

It's written in C#. Uses .NET framework 3.5. I could've used 2.0 to widen compatibility, but LINQ to XML makes RSS parsing so much easier. It works exclusively with reddit's RSS feeds, which sort of hinders it's capabilities. For instance, it doesn't have access to votes or anything like that. Also, comments don't get nested (although they are in the correct order, so they are readable).

Download

Screenshots:

reddit homepage

programming subreddit

reading a self.reddit post

options for external links

reading comments

viewing help page

boss mode

EDIT Works in linux with mono too according to comments. Yay

EDIT 2: As requested, the source is available here: http://github.com/foxingworth/rd. As I warned though, I threw this together in an afternoon and the code is pretty ugly. Don't judge me :-)

submitted by foxingworth
[link] [67 comments]
Categories: etc

Stop the Traffic

Reddit - Sat, 07/31/2010 - 4:29pm
Categories: etc

How To View Inception Through Code

Reddit - Sat, 07/31/2010 - 3:27pm
Categories: etc

Recorded Future aims at precrime detection

Reddit - Sat, 07/31/2010 - 12:49pm
Categories: etc

Code Barrel Pro Now Free For Open Source Developers

Reddit - Sat, 07/31/2010 - 12:17pm
Categories: etc

Paul Stanley's boots

Boing Boing - Sat, 07/31/2010 - 11:06am

Last night, my pal Gil Kaufman of MTV snapped this fantastic photo at a Kiss concert in Cincinnati, Ohio. I call it "Duct Tape Rock City."



Categories: etc

Rainbow-Colored Game of Life

Reddit - Sat, 07/31/2010 - 10:13am
Categories: etc

TIME Afghansploitation magazine cover: fixed it for you.

Boing Boing - Sat, 07/31/2010 - 9:53am

('shopped by Rob Beschizza).

Context, and Rob explains his thoughts in this comment.

Commenter "Unmutual," in the previous Boing Boing thread, observed: When you show a naked little girl running away from a burning village, that is honesty. If you show that same little girl and say "this is what happens if we leave Vietnam", that is proganda, and it's a lie.



Categories: etc
Syndicate content


View Peter Bartsch's profile on LinkedIn

Homer Wisdom

There is no such thing as a bad doughnut.

    Twitter Updates

      follow me on Twitter

      Syndicate

      Syndicate content