News for hackers. Stuff that matters.

numix

Re:CLI tool for GitHub Issues on Saturday January 07, 2012 @09:48AM (#3437086)
Like hubs' pull-request?

https://github.com/defunkt/hub

Re:Back in the Django saddle on Tuesday November 29, 2011 @10:42AM (#3290739)
This really depends on your situation. If you are writing a reusable app, then you probably want both unit tests and a sample project to run integration tests against.

For testing a basic website, you'll probably want to test any custom managers or model methods, and your views. A good guide to getting started is here: http://toastdriven.com/blog/2011/apr/10/guide-to-testing-in-...

For full-stack tests, you can use something like Splinter (http://splinter.cobrateam.info/).

Show HN: Horsebot3k - Intelligent Amazon Review Analysis

We found that evaluating products based on ratings alone often is not helpful, and some products have too many reviews to efficiently read. Also, for many products, we discovered that finding where the well-written and thoughtful reviews fell was more important than the content. So, for Startup Weekend Kansas City last weekend, we created an app (Horsebot3k) which parses Amazon to identify the...

( Read More... | 2 comments | 10 points | on HN )
Re:Backbone.js and Django on Wednesday July 06, 2011 @12:39AM (#2732588)
Thanks for the recommendation! I'm glad you like it.

As far as wrappers for backbone and tastypie, I think https://github.com/PaulUithol/backbone-tastypie is a pretty good starting point, and a little more complete than what I wrote there.

Re:Dropbox + git = Designer Luv on Friday April 08, 2011 @11:45AM (#2424268)
I worked pretty closely with a designer just recently. We went from throwing designs over the wall, to basic git based version control. We found that it was a pretty enjoyable workflow for the both of us. It allowed the designer to have more control over the end product, since he didn't need to ask me to update images.

We got to the point where he'd own all of the HTML and CSS, as long as I had certain ids and classes to hook my Javascript into. After we got CI and CD going, he's start pushing out new designs several times a day, giving us a pretty quick turn around time.

I never asked him to use the command line, since Tower handled most of the stuff he'd do. I wouldn't ask him to learn all of git, just as how I'd be frustrated if I had to learn all of Photoshop. I wouldn't be opposed to doing some basic work, like changing the color on the background layer.

This isn't very helpful in your specific problem, but typically servers don't have graphical capabilities. So much so, that I was a little baffled when I read that you VNC'ed into one. Instead your local toolchain interacts with the remote.

If I wanted to paste something in a file remotely, I'd open it in my local editor (which can ssh into remote machines). If I needed to transfer files back and forth, I'd use an FTP client (Filezilla works cross-platform).

Re:Why programmers find it so hard to be Christians on Saturday February 26, 2011 @11:38AM (#2265867)
I'm curious how you respond to the idea that Jesus didn't exist as a historical figure. The argument for this idea typically points to the lack of a first hand account of Jesus, with the first accounts appearing decades after his alleged death. That would make it a little difficult for the Roman authorities to provide evidence that Jesus was not supernatural.

Wikipedia has a decent overview of this at http://en.wikipedia.org/wiki/Jesus_myth_theory

Re:Show HN: A Browse-able RESTish API on Sunday February 20, 2011 @01:39PM (#2242628)
I know that the meaning of REST has been diluted a lot, but this mostly RPC with pretty URLs.

I don't understand why they don't support PUT and DELETE. They are already using jQuery on the HTML implementation of their API site, so could use its Ajax library to provide cross-browser PUT and DELETE. If they wanted browser usable methods, they could have used the standard "_method" parameter along with POST, and convert it server-side.

This actually makes it a lot less discoverable for those of us not using the HTML view. For instance, when using curl to browse to /vi/client/list, I expect to get a list of clients. Instead, I get the following (I'd prefer to show JSON here, but I get a 500 when I try it.):

  curl -H "Accept: application/xml" https://api_test:[email protected]/v1/client/list/
  <?xml version="1.0" encoding="UTF-8"?>
  <response xmlns="https://api.snapbill.com/" status="ok" type="form"><fields><field type="textbox" name="query"><caption>Search    query</caption></field><field type="number" name="page"><class>number</class><default>1</default><caption>Page</caption><min>1</min></field><field type="number" name="perpage"><class>number</class><default>25</default><caption>Clients per page</caption><max>50</max><min>1</min></field></fields></response>
When I try to GET https://api_test:[email protected]/v1/client/list/?..., I get the same response, which I was not expecting. I had to POST to the same URL in order to view the list, which is the wrong method.

There's also the issues of assuming a certain view in the end representation, including CSS and JS in their HTML representation, and having different default formats for different resources. All these make working with the API annoying.

Re:Google says Sorry for Spamming CR-48 Notebook Owners on Sunday February 13, 2011 @08:45AM (#2212720)
It tells Googlebot that the content is crawlable. See http://code.google.com/web/ajaxcrawling/docs/getting-started...
Re:Poll: What APIs do you consume most? on Saturday February 12, 2011 @07:05PM (#2211564)
Re:Sign Up: KC HN Meetup (January 26th, 5:30, McCoys) on Friday January 14, 2011 @08:07AM (#2103357)
Almost missed this, but I'll be there.
Re:Death Of The Mouse? on Thursday January 13, 2011 @05:56AM (#2099443)
You can have a usable mouse-free GUI fairly easily with a tiling window manager (xmonad, awesome, etc) and a keyboard driven browser (vimperator or conkeror).
Re:Why video chat will never succeed, by David Foster Wallace on Tuesday January 11, 2011 @06:10AM (#2091615)
As a data point, my grandparents are deaf, and their use of SMS has pretty much replaced TTY Relay, and made it much easier for them to have quick conversation with almost anyone.

They still seem to use video chatting within their group of friends with hearing difficulties, but it's reserved for the type of conversations we would have over the phone.

You could use the new pushState() to change the url (https://developer.mozilla.org/en/DOM/Manipulating_the_browse...). A good example is Github's repo browser.
Re:Does django have this? on Thursday November 25, 2010 @07:25PM (#1941334)
I'm not familiar with Ruby and I only gave the site a cursory glance, but http://djangopackages.com/ seems to be the equivalent for Django.
Re:A Vegan No More on Tuesday November 23, 2010 @12:21AM (#1932638)
And others are unsuccessful at being omnivores.

There are a host of other nutrition problems that may be completely unrelated to whether meat is in one's diet. It's not very fair to blame vegetarianism, which is usually considered a pretty safe diet.

Re:A Vegan No More on Monday November 22, 2010 @11:19PM (#1932489)
I often wonder where these veracious vegans are. I've yet to meet a vegan who has been evangelical, yet have met many omnivores who speak poorly of vegans. Is this a region specific problem?
I'm curious why you think Django lacks quality and maturity. Your specific examples seem to be about testing, but Django emphasizes unit tests quite a bit. If you're looking for BDD specifically, there is lettuce (http://lettuce.it), freshen (http://github.com/rlisagor/freshen), and pyccuracy (http://wiki.github.com/heynemann/pyccuracy/).
Re:Ask HN: log on, drop out? on Saturday June 26, 2010 @11:23PM (#1464819)
How easy is it for programmer from the U.S. to move to Montreal? Are there a fair amount of companies in the startup scene able and willing to support a visa?
Did you check out Tastypie (http://toastdriven.github.com/django-tastypie/)? It is also RESTful, and explores some similar ideas as a replacement for Piston, but approaches it in a manner similar to Django models.
Re:Ask HN: Who is Hiring? on Thursday June 17, 2010 @02:06PM (#1439805)
There are a few around here. Did you check out Startup Weekend in April? That's where I got started on my current startup.
I took a course for the A test material, and read a book in a couple of hours covering the AB test material, letting me skip two semesters of CS courses in college. This allowed me to have plenty of free time in school to work on interesting stuff.

The material on the A test seems to be mostly programming in Java, and you'll probably pick up the other skills from working in any language. The AB test gives a good foundation for CS, which isn't always applicable in day-to-day programming, but certainly helps in shaping the way you go about solving a problem.

Re:How Scribd's HTML document reader works (part 1) on Monday May 17, 2010 @11:44PM (#1356394)
Have you tried Zathura (http://zathura.pwmt.org/) ? It's a pretty lightweight PDF viewer with vim-like controls.
Re:Poll HN: What language for a programming competition? on Sunday November 29, 2009 @12:42AM (#966035)
Here's the source we used for code generation this semester. http://github.com/joshbohde/megaminer-framework/tree/megamin...

We used templates to create the game stuff. Unfortunately, it's not quite a stand-alone library, but hopefully someone else can use it.

Re:Poll HN: What language for a programming competition? on Sunday November 29, 2009 @12:04AM (#965995)
I host a similar competition at my university. We offer client binding for C++, Java, and Python. We have a C core that provides the game engine, and use code generation to generate the language specific APIs.
Re:Ask HN: What does a major in CS entail? on Wednesday October 21, 2009 @12:58AM (#894085)
I go to Missouri S&T, in my last year as a CS student.

Our CS program is primarily focused on getting a software engineering job. Our primary language is C++ (though with a few exceptions, professors don't make use of most of it's features). There are Java courses, but I don't think they start until the 300 level.

Our primary forms of research are either military-funded ventures (one that comes to mind is disposable ad-hoc networking sensors) or machine learning (with a heavy focus in evolutionary algorithms).

Our local ACM chapter does some interesting stuff, mostly projects. Two recent ones that come to mind were the building of an arcade cabinet, and the building of a soda machine, with a corresponding API.

Most design teams on campus are looking for a good CS to write some code. This could be image processing software for the robotics team, or porting Fortran code to C++. There's also a team that hosts a programming competition every semester. I think it's pretty awesome, but as it's leader, I may be a bit biased. Here's a link: http://megaminerai.com/

I haven't seen much in the entrepreneurial side of things here. We have some sort of organization for it, but I don't think it has much membership. There are a few individuals interested in such things, but you have to look around for them.

Older ยป