Apache2::Archive 0.2 ~ Aug 22, 2010
Apache2::Archive is a mod_perl 2 extension that allows the Apache HTTP server to expose tar and tar.gz archives on the fly. When a client requests such an archive file, the server will return a page displaying information about the file that allows the user to view or download individual files from within the archive.
I just uploaded version 0.2 to CPAN and GitHub correcting a few automatic build issues presented with dependencies. Grab it now with cpanf!
curl POST data and newlines ~ Aug 15, 2010
I'm writing a Rails application for the microblogging strategy for Debian (which I used to call, debian-twitter, but you know how us Debian folks are
). I came up with a strange issue, that at first I thought was ActionController's fault or some crap.
So, I was testing one of my controllers with something like this:
cat /tmp/mm.txt | curl -d @- http://localhost:3000/message/new
/tmp/mm.txt is a PGP signed message which then I just send as POST data to my application. So far so good. However, when accessing the data from Rails, using request.body.read, I was a getting a single line, with the newlines (carriage returns) removed. So I started looking at how ActionController was getting the HTTP data and stuff. But then I tested:
cat /tmp/mm.txt | lwp-request -m POST http://localhost:3000/message/new
And that had the carriage returns in place.
So, I started looking at the curl man page and discovered this little gem:
–data-binary <data>
(HTTP) This posts data exactly as specified with no extra processing whatsoever.
If you start the data with the letter @, the rest should be a filename. Data is posted in a similar manner as –data-ascii does, except that newlines are preserved and conversions are never done.
If this option is used several times, the ones following the first will append data as described in -d/–data.
cat /tmp/mm.txt | curl --data-binary @- http://localhost:3000/message/new
…did indeed the tricky. Maybe someone needs this info some day.
DebConf 10 ~ Aug 12, 2010
I was in New York for three full weeks, before, during and after DebConf 10 took place. Unfortunately, I wasn't able to attend talks or go hang out with folks as much as I would've wanted. Most of the time I was busy at the office with a new product launch we have been preparing for the last few months. However, I was able to come and say hi to a few people, attend the C&W party and talk with friends and ran into. I was, however, following all conversations on IRC so I was pretty informed of all of what was going on. Some random thoughts:
- Being surrounded by so many amazing Debian people made me realize how much I've been apart from the project. My involvement decreased pretty much since I moved to New York. But because of that, I'm now slowly retaking my activity, trying to work on actual things that I use on my daily work instead of just packaging tons of shit that nobody really cared about.
- DebConf is pretty awesome. After attending six out of the last seven Debian conferences, you get to establish a nice connection with people and they become your friends. This year, even if I only came a couple of nights, I made stronger friendships, and for that I'm thankful. It is only within Debian that this human part of bonding really takes place.
- I really regret missing a couple of events: First, the Day trip to Coney Island and the Cyclones game; and the group photo. Both because of work, yes.
- It was interesting to hear the thoughts from one of the Bosnian attendees about next year's DebConf there. I'm really sorry I can't recall his name, but it shocked a bit that he stated that they might try to find better speakers next year, because a lot of them "sucked a lot" here. All I can say is that, even though everybody's opinions are valid, this might come from an outsider, not used to Debian conferences. Where are you going to find better speakers? Us developers are the only speakers out there, good or bad, we are the ones making the conferences by and for.
- I like Zach's attitude as DPL, even when I introduced him to a very nice friend of mine that came to the party to hang out.
DebConf 10 rocked and I appreciate everybody's participation in it. See you in Banja Luka, next year!
✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌ ~ Aug 9, 2010
As of yesterday, I'm 26 years old
Solicito desarrollador Ruby on Rails ~ Aug 9, 2010
Estoy en busca de un desarrollador Ruby y Ruby on Rails para unirse a la empresa en la cual estoy trabajando en Nueva York. La posición es para trabajar permanentemente desde la Ciudad de México en la Col. Roma con muy buenas facilidades, ambiente y un salario altamente competitivo.
A continuación la descripción de la oferta:
Selectable Media is looking for a talented engineer to be a major contributor to the development of its new social video platform. You should be a technical generalist who is eager to conquer our most challenging problems and is excited to learn new skills.
Selectable Media is the leading video distribution network targeted at the Gen Y audience. We make video advertising fun as we provide advertisers with an efficient and effective way to reach the younger demographic. You will be part of a rapidly growing startup as we look to expand our distribution network across social networking and mobile platforms.
Requirements:
- Strong communication and team working skills
- Demonstrated self starter
- Ruby & Ruby on Rails backend development
- Experience designing software and APIs
- Deep understanding of web applications, REST, and HTTP
- Knowledge of Nginx and Mongrel
Plusses:
- Proficient with Javascript, JS libraries (ExtJS, jQuery, prototype)
- Experience with Git version control
- Familiarity with the popular Rails Plugins/Gems
- Use and contribute to open source software projects
- Knowledge of MongoDB & PHP/mySQL
Candidates should reply with a resume and links to any projects they have contributed to.
Si estás interesado o sabes de alguien que lo puda estar, por favor enviar resume (en inglés, desde luego) a david@nabbr.com. No me queda más que decir que en realidad es una gran oportunidad y el trabajo es altamente flexible y divertido.
DebConf 10 restricted access ~ Jul 30, 2010
nginx talk on FLISOL at UIA ~ Apr 21, 2010
Friends, I'll be attending the FLISOL (Latin American Free Software Install Fest) conference in Universidad Iberoamericana, this Friday, where I'll be talking about how marvelous nginx is and why you should use it. If you are near, you should stop by! Tell of your co-workers and friends, it'll be fun.
TechCrunch top-stories news feed ~ Mar 14, 2010
Being surrounded by the Web 2.0, I have to keep myself informed. TechCrunch is the most natural source of information. However, they write a lot of news stories every single day. A lot. Enough to make me feel stressed just to have so many shit to read on my feed reader.
Well, since I still wanted to read the top stories, but they don't provide such a feed, like Lifehacker (kind of) does, I hacked a feed:
http://topstories.axiombox.com/techcrunch.rss
This will grab the usual TechCrunch feed but it will test every single entry against the retweets registered on TweetMeme for each post. If the number of RTs is at least 500, the story gets pushed onto this feed. This filters out a lot of their stuff and leaves a manageable storyline of about 3 to 6 stories a day, coming from a 20 or 30+ stories a day on the regular feed.
Feel free to grab the feed and use it. Maybe in the future I'll add a configurable threshold parameter for the number of RTs for posts to be filtered. In the meantime, this what I got.
Feedbag 0.6 ~ Mar 5, 2010
I just uploaded Feedbag 0.6 to Gemcutter and GitHub.
Just a couple of small nice additions to this version:
- The undocumented args[:narrow] option has been disabled until further notice.
- A nice little commit from one of Feedbag's forks, by Patrick Reagan.
- Added an executable to find feed URLs directly:
Sometimes you need to find the feed for a URL quickly, not from a script. What I do, and what someone else showed me too, is this:
~ $ irb -- require "rubygems" = true -- require "feedbag" = true -- Feedbag.find "http://stereonaut.net" = ["http://stereonaut.net/feed", "http://stereonaut.net/tag/feed/", "http://stereonaut.net/comments/feed/"] --
But now you can simply do:
~ $ feedbag cnn.com http://twitter.com/compupaisa == cnn.com: - http://rss.cnn.com/rss/cnn_topstories.rss - http://rss.cnn.com/rss/cnn_latest.rss == http://twitter.com/compupaisa: - http://twitter.com/statuses/user_timeline/119479806.rss - http://twitter.com/favorites/119479806.rss ~ $
Enjoy the feedbag executable on your $PATH now!
Debian fails ~ Mar 1, 2010
Generalizations are fun, they always are because they tend to offend people and offended people by stupid shit is usually lots of fun.
Here Debian, as a whole, fails; it sucks. Here Debian blows ass, the entire project is whack.
My good friend Chris Lee sent me this:
If you can't see the above iframe, go here.
Debian, full of fail. Wasn't this generalization fun?
Let the non-sense bullshit horses be released.





