HNHacker News
TopNewBestAskShowJobs

carbon8

1,261 karma · joined October 30, 2008

submissionscomments
carbon8··on "this gem is awesome".to_spanish # = "esta joya es impresionante"
Ruby 1.8 displays non-ascii characters in the shell using octal escape sequences. \302\277 is ¿, \303\263 is ó and so forth. It should be fine to work with (eg, saving to a database or displaying in a template) as long as you know the encoding. I just glanced at the code, but it looks like it just takes whatever the Google Translate API gives it, which I'm guessing is UTF-8.
carbon8··on Ruby in 2010: A Retrospective of a Great Year for Ruby
Another thing that I associate with this year is the spreading awareness of ORM and framework agnosticism. With the popularity of Sinatra and MongoDB, along with other Rack frameworks and non-AR DB libraries, there seems to be a big shift toward web-related libraries that are Rack-centric rather than Rails-centric.

Regarding Padrino: when it was released earlier this year I initially didn't think much of it, but after playing with it recently I believe it definitely has the potential to be another great Ruby web framework. It's already very usable and extremely pleasant to work with.

carbon8··on Seeking beta testers for Rails & Node.js cloud hosting; free during beta
Is it Rails-only or does it support any Rack framework?
carbon8··on Ask HN: Review my Nov sprint micro app, Markup Converter
That's an insightful analogy. I hadn't really thought about it that way, but you are absolutely right. I'll keep that in mind.
carbon8··on Ask HN: Review my Nov sprint micro app, Markup Converter
Thanks! I'll definitely look into it and see if there's something I can do for FBML.
carbon8··on Ask HN: Review my Nov sprint micro app, Markup Converter
Clickable: http://markupconverter.com/
carbon8··on Ask HN: How did everyone do with Launch an App Month?
I put together Markup Converter http://markupconverter.com/

It's a simple web service for converting markup from one format to another. Most of the conversions in the app are done using the Haskell library Pandoc, but I'm also using Discount, Python's Docutils and Ruby's RedCloth. It was also an opportunity to use MongoDB a little more. Right now it just converts snippets to snippets, but I'm in the process of adding additional options, like autolinking URLs when outputting HTML and adding headers and footers for formats like RTF that require them for complete documents.

I really liked the November sprint idea and am going to try to launch at least one thing a month this winter, even if only a simple microapp.

carbon8··on The Ruby Stdlib is not a Ghetto
There's a much simpler way to do POSTs with Net::HTTP:

  response = Net::HTTP.post_form(URI.parse("http://example.com"), {:param => "val"})
carbon8··on I Hate Haml
Forgive me if I'm misunderstanding your point, but :markdown isn't a tag that gets output to html, it just designates the beginning of the block to be processed with markdown, so classes and ids aren't applicable. If you want the markdown block in a class or id, you just do this:

    #id.class
      :markdown
        [A link](/path)
outputs:

    <div id="id" class="class">
      <a href="/path">A link</a>
    </div>
carbon8··on I Hate Haml
1. Discount, used by both RDiscount and BlueCloth, supports limited use of classes in inline text via pseudo-protocols in link-style tags. You can also use inline HTML in markdown. I believe that the latter is what most people do.

2. You can do the equivalent of = in Haml filters by enclosing the Ruby in #{}. For example, where sign_up_path is a Ruby helper method:

    :markdown
      [Sign Up](#{sign_up_path})
Personally, in the past I've put large blocks of mostly-static content (eg, a TOS) in a erb template or partial. I now often use the markdown filter for things like help documentation in my sites.
carbon8··on I Hate Haml
In addition, you can use something like the markdown filter for body text.

    :markdown
      ## Heading Content
      
      This is just some *emphatic* text. Maybe I'll talk about `$BASH_VERSION` here.
carbon8··on Firebug Metamorphosis
The webkit nightlies tend to have more features. There is still one behavior that frustrates me every time I use the webkit tools, though: clicking on an asset link (eg, to a javascript file) brings up the resource tracker rather than the file.
carbon8··on Ask HN: Rails or Django?
I'm in Chicago, but also do work for Asian firms. In my admittedly completely anecdotal experience as a contractor over the past few years, I encounter PHP (which I don't work with) and Rails applications, but have never been approached for Django in my freelance work, despite telling people that I can work with both Rails and Django. I do almost no self promotion and I still have Rails contract jobs handed to me. I've been approached by non-technical people to work on Rails sites they didn't know were built on Rails and without them knowing what my exact skills were. When I meet startup people (which I do fairly regularly despite not going to meetups), they are almost always running their startups on Rails. YMMV, but this is what my experience has been.
carbon8··on Ask HN: Rails or Django?
Regarding jobs for each framework, there are far more Rails jobs than Django jobs: http://news.ycombinator.com/x?fnid=JBPFd8i2nk.

For me, I periodically use Django for content-centric sites with standard CRUD operations primarily performed by a small number of privileged users, but I prefer Rails and Sinatra for most projects. I prefer the Ruby web development ecosystem, with libraries like Haml, Sass and Compass.

carbon8··on Firesheep: Easy HTTP session hijacking from within Firefox
You can also just put DD-WRT or Tomato on your router and use that.
carbon8··on Ask HN: How do you secure yourself on public WiFi?
This is much easier to set up and works well. The router or server you are tunneling to needs no extra configuration beyond having ssh set up. On a VPS it will already be running and with router firmware like DD-WRT or Tomato it's just a checkbox in the settings.

VPN makes more sense if you need to access things on another network, like shared drives, and can be difficult to configure.

I've been working completely mobile and using tunneling for years. It works well. Set sshd on the router/server to use port 443 and you won't have issues with port restrictions.

carbon8··on Ask HN: How do you secure yourself on public WiFi?
For the past 4 or 5 years I've been using SSH tunneling. I set up a location in OS X network preferences using the exact technique described in this comment http://news.ycombinator.com/item?id=1828631. I usually tunnel through my router at home which runs DD-WRT. I use SSH Tunnel manager to manage the tunnel http://projects.tynsoe.org/en/stm/.

Once it's set up, all you need to do is switch your network location to the tunnel location before you leave the house, then when you want to get online, press the button for the appropriate tunnel in SSH Tunnel Manager.

carbon8··on Firesheep: Easy HTTP session hijacking from within Firefox
This is kind of a big deal. Not a whole lot of people are aware of this vulnerability and among those who are it's likely only a small subset that knew how to exploit it until now. I suspect all of the coffee shops in the college town where I live will have people using this starting tomorrow.

I've personally been working from cafes and tunneling everything through SSH for years, but in my experience almost no one else does this.

carbon8··on Ask HN: Looking for hosting resources. Best practices.. etc
Judging by your comments here, I'd recommend looking more closely into Engine Yard and Heroku so you can offload some/most of the sysadmin work. Contact both of them, let them know what your needs are and get price estimates.
carbon8··on Rails Rumble Apps
It's an annual thing, so there's always next year.
carbon8··on Stop Googling
I see the benefit of a library as being that I don't need to write the code, but it still won't go in one of my projects until I understand what it does and whether it actually works the way it should. Personally, I encounter bugs and bad code in libraries all the time, especially in libraries that extend or hook into web frameworks.
carbon8··on OS X 10.7 “Lion”: The King Of The Apple Jungle, The Last Of Its Kind, Or Both?
Desktop touch functionality wouldn't necessarily be added to the primary display. Apple has filed patents for using touch screens for keyboards and trackpads. Even if it was for the primary display, apple has a patent for a movable display that is oriented horizontally when used as a touch screen.

It's not clear how or whether would add desktop touch features, but they've clearly considered it.

carbon8··on Microsoft Buying Adobe?
Note, however, that those were all originally acquisitions. FCP was born at Macromedia and Apple purchased the product and hired the team. Shake came from the Nothing Real acquisition. Logic is from the Emagic acquisition.
carbon8··on Instapaper Subscriptions (beta)
You also need to be logged in, otherwise it redirects to the home page.
carbon8··on Ask HN: How do you take notes?
I use google docs primarily because it's easy to share with others and because I frequently need to use spreadsheets.
carbon8··on Ask HN: Python gaining popularity
Django does not dominate Python jobs at all.

We are discussing web development jobs in this particular thread.

Django doesn't even dominate Python web related jobs

Yes, it does. SimplyHired: Django 1168, Pylons 143, TurboGears 18, Zope 96, web.py 5.

"Python JavaScript"...Granted for many of them Python is not the main skill asked for

Exactly the problem with that approach. It's relatively common to list a bunch of languages including Javascript, Ruby and Python in desired experience for any non-MS web development job, but pretty uncommon to list specific frameworks unless that's what the job is for.

carbon8··on Ask HN: Python gaining popularity
Python is used extensively outside of web development, PHP is not. Django is far more prevalant than other Python web frameworks, eg, Django 1168 vs Pylons 143 on SimplyHired.

Also, if you follow my links you'll see that the subjects of the comparison originally came from a poll.

carbon8··on Ask HN: Python gaining popularity
Since you are comparing it to PHP and Ruby, it appears that your comment refers to their use in web development. I can't say much about the broader use of the languages, but here is some perspective regarding the web development side.

A little over a year ago I compared the jobs available for PHP, Django and Rails (http://news.ycombinator.com/item?id=805931). I did the same again 3 months ago (http://news.ycombinator.com/item?id=1459119). A quick glance now shows the same trend and ratios (eg, simply hired has 20,125 PHP jobs, a 25% increase in 3 months; 5,334 Rails jobs, a 39% increase in 3 months; and 1,153 Django jobs, a 25% increase in 3 months).

TL;DR: PHP, Django and Rails jobs are all on the rise, there are vastly more PHP jobs than either Rails or Django jobs and there are many more Rails jobs than Django jobs, and this applies to startups, too.

carbon8··on Security Lessons Learned From The Diaspora Launch
Is that offer good for anyone? http://news.ycombinator.com/item?id=1031126
carbon8··on Review my weekend HTML5 project: DropMocks
I don't think so. Maybe it falls back to flash on some browsers, but it works just fine on Chrome with flashblock enabled.
← PreviousPage 3 of 15Next →