Better HN
topnewbestaskshowjobs
Log inSign up

FilterJoe

829 karma · joined Apr 18, 2011 (15y ago) · 157 submissions

Python Developer, Investor, Blogger.

www.filterjoe.com (find what you need, work without distraction)

Submissions

31.

PyCharm 2.7.2 released(blog.jetbrains.com ↗)

2 points · by FilterJoe · 13y ago · discuss

32.

Hashcat and strong master passwords as your best projection(blog.agilebits.com ↗)

2 points · by FilterJoe · 13y ago · discuss

comment 13y ago · link · parent

I'm a bike commuter, and in the past 3 years electric bike commuter. I had leg injuries and the electric bike I purchased enabled me to continue commuting by bike with light peddling. For the past 3 years my commute is 4 miles each way, with 1 mile of climbing on the way home.

I did not find the arguments laid out for velomobiles all that compelling. All but 2 advantages of a velomobile can be had with a US $1000 electric bike, such as:

* pedal assist for acceleration and hill climbing

* not arriving sweaty

* very low fuel/electricity cost

The velomobile could potentially give me:

* rain protection

* faster speeds

But it would also lose me:

* portability (can carry up stairs, take in commuter rail train, etc.)

* storage space (barely bigger than a regular bike so home: garage, work: office).

* multiuse paths

Even at the SAME cost these disadvantages would outweigh the advantages for my use case - it currently only takes me about 3 minutes extra to get to work and about 6 minutes extra to get home over a car. The roads to work are all 25 MPH with lots of stop signs and traffic lights so being able to slide by cards on the right is an advantage of a regular-sized bike. And it doesn't rain that much where I live - I commute via bus 5-10 times/year due to rain. I really don't like taking a bus so that would be a time I'd love to have a velomobile - but not at a cost of thousands of dollars so I can skip taking a round trip bus ride 5-10 days a year!

On the other hand, I can certainly imagine a use case for a velomobile: If you live in a flat area with lots of rain and snow and a commute that uses roads that go faster than 25 MPH - perhaps the Midwest of the U.S.

edit: formatting

comment 13y ago · link · parent

Thanks for piping in - unfortunately I'm too late to edit my 1.5 comment.

Can you describe the easiest way for non-developers to get started with Mezzanine? Is there a way to do it that doesn't involve installing Python, Django, virtualenv, Mezzanine, other apps, etc.?

comment 13y ago · link · parent

Very cool - I didn't know about this. However, this still presupposes you have a local Python/Django/Mezzanine installation. Simple for a Django web developer, probably not too bad for a non-Django web developer - but it's a bit much to expect a non Developer to set up Python, Django, and Mezzanine on their local system.

On the other hand, I see a way to make this simple for a non developer. Set up a virtual machine with everything all set up. Then all the end user would have to do is download VMware or virtualbox. Then download the VM image with Ubuntu/Django/Mezzanine/Fabric. And then you'd be approaching the same level of simplicity of getting started with self-hosted Wordpress.

comment 13y ago · link · parent

Can you name 1 or more cloud providers that have auto installers for Mezzanine? I'm not aware of any. Here's a post from 4 months ago comparing installing Mezzanine on a number of PaaS providers. None seemed anywhere close to as simple as installing Wordpress on Bluehost:

http://appsembler.com/blog/paas-bakeoff-comparing-stackato-o...

Read the comments and you'll find out that Mezzanine isn't yet compatible with Django 1.5, causing headaches for those trying to install it for the first time.

comment 13y ago · link · parent

Mezzanine is quite nice: http://mezzanine.jupo.org/

It's Python (a Django app). BSD license. It has many advantages over Wordpress that I won't get into here, but all this is offset by one massive disadvantage: It rests on the Django framework.

Django is a nice framework for web development but it takes at least a few months to learn for someone starting from scratch. The installation process for Mezzanine requires some Django knowledge.

Installing Wordpress on the other hand requires zero PHP knowledge. A reasonably intelligent person can teach themselves Wordpress basics in days (the basics of self-hosted Wordpress, selecting a theme, selecting key plug-ins, etc.). No PHP required.

With Wordpress, it's not too difficult to select a provider (i.e. Bluehost) and have Wordpress automatically installed within minutes using Simple Script. If Mezzanine could be automatically installed like this, I think it would quickly become a popular and much more maintainable alternative.

comment 13y ago · link · parent

I couldn't find any examples on the site of using "the magic of Scss, you can now remove almost all of the presentational classes from your markup." Could someone provide an example, or provide a pointer to an example of html markup which removes all presentational classes?

I did look at their templates site:

http://foundation.zurb.com/templates.php

and I still see presentational markup.

EDIT: I'd also like to see a sample SCSS mixin which attaches the style to the HTML. Something as simple as styling a few "Hello world" phrases arranged in a grid would be great.

comment 13y ago · link · parent

Trust issues abound in published reviews (with the possible exception of Consumer Reports), whether by respected journalists, real buyers on Amazon, or anonymous online posts. What I find of most interest about this story are the possibilities it suggests:

Logging data published right along with reviews would be a terrific way to add credibility.

Of course, then you need to set up a system to ensure logging data can't be faked, and that the logging data is for the review in question. Something along the lines of the black box in airplanes seems like a possibility.

comment 13y ago · link · parent

With Django in specific you can swap out a component. For example, if (like many people) you don't like the HTML template syntax, just swap it out for Jinja2 or Mako. In Django it is also usually easy to customize something minor by use of overrides (OOP).

comment 13y ago · link · parent

The basic idea here sounds great, but as someone who just went through a roughly similar training (self directed) over the past 4.5 months, I'd like to comment on the choice for Python:

I went through most of Learn Python the Hard Way:

http://learnpythonthehardway.org/

It was great! I then thought I'd do Codecademy for extra practice. It was so frustrating to use I gave up after a couple hours.

Codecademy's automatic method for checking my code often indicated I had bad code without telling me why, when I had produced the correct answer. Furthermore, instructions were often unclear so I would often incorrectly interpret what the exercises wanted me to do.

comment 13y ago · link · parent

Agree++. I used Macs for a few years (SE/30, PB180) but software I paid good money for kept not being usable, and my favorite piece of software of all time (HyperCard) was dropped from the O/S. Forcing my software to become obsolete is the primary reason I stopped using Macs.

Many in this sub-thread point out developers were warned. I'm thinking as a user:

I continue to use Quicken 2000 that I bought in late 1999 on a Windows 7 system I bought last year. I know with MS that I can buy a piece of software and will be able to use it a decade or two from now if I want, without having to pay for upgrades I don't need.

I have a box full of Mac software that cost me hundreds of dollars. Completely useless and without value. I have no such box of useless Windows software (though to be fair, I've bought less after having been burned so badly buying Mac software 12-18 years ago).

comment 13y ago · link · parent

Worried that I'm too slow, I then tracked down the reference to the fizzbuzz test: http://www.codinghorror.com/blog/2007/02/why-cant-programmer... That one took me 11 minutes. There was less syntax and more logic tested with fizzbuzz. The only thing that tripped me up for a few minutes was I found out (through debugging) that integers in Python stay integers when divided. So I had to float(i) before dividing by 3 or 5 to get it to work.

I don't know if you're trying to weed out people weak on syntax but your test may very well do that. Syntax fluency generally gets better over time, I would think. Not sure basic logic and debugging skill gets better over time.

comment 13y ago · link · parent

data point: I started learning Python/Django 4 months ago (after a 20 year break from programmiung). Took me 40 minutes to solve. I'm not yet fluent with syntax so I had to look up (and still managed to mangle list processing syntax and was slow to interpret error messages related to accidentally swapping my variables for size of triangle and the list. My logic was fine once I got got the syntax down and swaps corrected. So your test would have caused me to be weeded out, I guess.

Had you asked me to pseudo code it I could have done it in less than 10 minutes.

Note, however, that learning web development requires learning many different pieces in addition to Python, so I simply haven't had the time to thoroughly learn all the syntax of any given piece.

comment 13y ago · link · parent

Django is the leading Python framework (by any usage measure) for web development. Python is a popular language. Ergo . . .

As someone who has been learning Django/Python for 4 months, I very much appreciate both the getting started with Django site and the book 2 Scoops of Django that just came out. Would have saved me weeks of time if I had access to these 4 months ago. It's coincidence that they came out within a few days of each other (and a few days after Django 1.5 release candidate came out).

There's even greater interest in Ruby on Rails, the leading web development framework for Ruby.

comment 13y ago · link · parent

I started learning Python/Django 4 months ago. At first I avoided deployment but when I got around to it, I easily spent over 1/3 of the last 4 months messing with most of the things outlined in the first lesson - and in fact I ended up making a VM (with VMware and dotcloud in my case) to ease setup pain for future projects. This one lesson alone would have saved me at least 2 weeks.

comment 13y ago · link · parent

Drop the minutes and data plans to the minimum and drop your 2 regular phones. Then share your plan with other people if you can.

I am sharing a family plan with my inlaws at 550 minutes for the 3 of us. I also pay $15/month for data, so incrementally my 3rd cell phone adds $25/month + fees to the monthly costs. I keep cell data turned off most of the time except when I truly need to use it (typically Pandora or mapping while driving).

I typically use more than 550 minutes of phone time by myself each month as follows:

In office: Google Voice (free).

At home: My wife uses T-mobile@home service for $10/month. No longer available but you can use Google Voice comfortably at home with the right kind of phone router, such as this one: http://www.amazon.com/OBi202-Phone-Adapter-Router-2-Phone/dp...

Lots of high quality cell phone use on a single day: T-mobile $2 for the day (with my old Blackberry, which gives me much higher voice quality)

Our total monthly costs including fees and taxes are about $45. For that price we have unlimited domestic calling at home and in my office, I have an iPhone 4s with limited minutes and data and my wife has Virgin Mobile cell phone that she only uses for emergencies. Would only be $35/month if we got the above-referenced phone router and dropped T-mobile@home.

comment 13y ago · link · parent

Feedback from a 4 month newbie: I've read several chapters. Overall the book is great but I have some specific suggestions, which I'll wrap in the context of what my biggest barriers to learning Django and web development have been.

Background: I starting learning web development with Django 4 months ago. I knew nothing but procedural programming (from late 80s) and a little CSS (Wordpress) before starting. I did Learn Python the Hard Way for a week then dove in.

Barriers to learning Django and Web dev:

1) Setting up the development and production environments has taken up at least 1/3 of my last 4 months of learning. This book would have helped with that significantly.

Suggestion 1: It would help even more if, in addition to your sample setup on github, there was a virtual machine or Vagrant file intended for beginners to get up and running quickly.

I've developed a VMware VM for myself along these lines (based on bitnami's Django stack on top of Ubuntu 12.04) and will use your book to improve it - especially changing my project layout template.

Suggestions 2: Answer a specific question the book didn't address: Is a virtual machine (one per project) a fine alternative to using virtualenv? If not, why not?

2) Django docs do a great job telling me what each command does, but rarely which of many alternatives is best to use (and why), and how best to structure projects. So I end up doing hours of searching each week (Google, Stack Overflow). This is where Two Scoops really nails it - would have shaved at least 2 weeks off my 4 months learning time. [can use this as a direct quote on your site, if you like]

Suggestion 3: Chapter 4 talks about keeping apps small and loosely coupled but not how to bind multiple reusable apps together, especially ones where tight coupling seems natural. I know there are techniques for this but I don't know which is best.

Suggestion 4: Chapter 6 briefly discusses when to drop down to SQL. Would love to see this expanded to several pages, with perhaps a long list of common situations where it does make sense to drop down to SQL. Either that, or a link to an excellent external resource.

3) Django is a tour de force in OOP. If you're weak on OOP, the tutorial and most other parts of Django is tough going. Practice and learning how to use my IDE (PyCharm) to navigate code eventually got me over this hurdle. This is not something addressed by your book, which is fine.

Suggestion 5: In Before You Begin section, perhaps add a single sentence that urges beginners to learn Python and (importantly) OOP before starting the Django tutorial.

4) No Django doc clearly explains the basic concept of web pages with no state, but context passed around to keep track of things. I still don't 100% understand why there are so many different ways of dealing with context, and which Django commands are best for given situations. Not currently in your book and maybe it doesn't fit in. But just want to mention that this was, and continues to be, a hurdle.

5) Deployment is way too hard for a beginner. I'm using dotcloud so that made it easier but again - having a virtual machine for distribution to beginners would be super helpful.

Suggestion 6: Expand chapter on deployment.

6) Would love to see an entire book devoted to building a single, substantial project that did a lot of typical things, but with all best practices implemented and explained in context. The project would use 2-3 existing Django apps and create 2-3 additional ones from scratch, and would show how to have intermediate apps to tie together 2 apps that need tight coupling. It would show this apps environments of dev, testing, staging, and deployment on either dotcloud, heroku, or gondor.io. It would show how to make the app look reasonably attractive, perhaps using Zurb or Twitter Bootstrap. I think this would make a terrific companion book to Two Scoops.

Hope some of this is helpful. Thanks for writing this book! I've had it for less than a day and I've already learned a lot.

comment 13y ago · link · parent

Thanks for that - looks like a huge time saver! Unfortunately, it won't fully automate setup. Things like entering passwords for a service you want to set up, tinkering with desktop, firefox or other app settings, etc.

But still - this gets you a big head start.

comment 13y ago · link · parent

roderikvdv's answer was helpful. I also found a long post discussing Django VMs specifically using vagrant:

http://stevelosh.com/blog/2011/06/django-advice/

comment 13y ago · link · parent

Terrific concept. What tools (if any) exist to do this kind of thing on Linux VM? Do they work equally well for non Ruby environments (I'm thinking specifically Python/Django)?

I've spent the last week mucking around with VMware/bitnami to try to get a nice clean Python/Django/Pycharm VM for myself (with a template Django project that gracefully does both development and deployment). I'm almost done but what a long hard slog it's been.

comment 13y ago · link · parent

I'm a different data point. I've used nothing but Windows (98, XP and now 7) for over a decade. Lately I've been learning web development (Django) and realized a few weeks ago that to really do this right I needed to do linux. So I used VMware/bitnami to set up a VM with linux/python/django.

It was Ubuntu 12.04 without the desktop. Very hard to get around with the command line so I installed the unity desktop.

Bingo. Very easy for someone used to Windows. I couple minor quirks but I didn't find that any of the above issues bothered me.

I have had issues. But these have been things like figuring out where to set environment variables, learning the bare command line basics, learning how to get postgres going locally, etc. Nothing to do with the desktop, except for the fact that it doesn't provide an interface for everything that can possibly be done with command line - so as (someone learning to be) a developer, I've had to learn all the command line stuff anyway.

I have no idea whether other desktops are easier. All I can say is that the command line had a steep learning curve, while unity desktop took just a few minutes to get started and I was off working.

comment 13y ago · link · parent

Google has stopped doing anything with its interface but that hasn't stopped dozens of others who sync with Google Reader. I personally find that Newisfy (iOS) does everything I need for a Google Reader client. Don't like Newsify? Then choose from among many other apps on many platforms that sync with Google Reader.

I personally far prefer this arrangement to Twitter. I don't really like the Twitter concept to begin with but I can't even make it more palatable with a better client because they keep pulling the rug out from those who create better Twitter clients.

comment 14y ago · link · parent

Learning Python the Hard Way was perfect for me. I did some procedural programming with Pascal and C in the 1980s, but nothing with programming for the next 20 years. 3 months ago I started learning Django/Python. Python was the easy part as I breezed through exercises 1 through 36 in less than 2 weeks. I agree though that exercise 37 is overwhelming and that's where I stopped learning Python and began building Django apps. I did also have to carefully study OOP.

I fervently wish there were something for Django along the lines of Learn Python the Hard Way. I HAVE been learning by doing projects and every few days I get stuck for hours on something confusing about Django I don't understand. I would love guided exercises - especially on some of the more confusing aspects of Django like the cumbersome HTML template syntax, HTML template inheritance, passing the context around, directory/file structure (and the kinds of issues to expect if your files are not in the right place), customizing forms, etc.

Of course, I understand there are different learning styles. Code Academy is even more pure learning exercises but I found that very frustrating as it keeps saying your correct output is done the wrong way but won't tell you why. Learn Python the Hard Way is in between because you have latitude to implement your own way and gives you creative license on some exercises to do extra if you're interested.

TLDR: Took less than 2 weeks to go from exercises 1 through 36. Taking me months to get up to speed on Django, which has no such exercises.

comment 14y ago · link · parent

The first 2 lines (display, PPI) and the price line are why I did not buy an iPad mini, which would have been my first tablet had it been priced at $200 or maybe even $249. So marketing is dead on, in my view.

Instead I bought an Apple-refurbished iPad 3, for $379, which is $79 more than the soon-to-be-shipped Kindle HD 8.9".

For $50 more than the Mac Mini I get a bigger and better display. And for $79 more than the Kindle HD 8.9 I get better apps and user experience.

EDIT: clarified what first 2 lines were

56.

Making Yourself a CEO(bhorowitz.com ↗)

221 points · by FilterJoe · 14y ago · 33 comments

comment 14y ago · link · parent

For those who don't game or edit videos, this has been true for about 8 years. I retired my 2004 1GB RAM Dell desktop in 2012 and still keep it as a backup. The ever increasing speed of browsers and the shift of my work from the desktop to the cloud kept my system operating at the same speed it did 8 years ago - not blazing fast, but good enough.

I expect my Sandy Bridge replacement system to go another 7-10 years before I replace it.

comment 14y ago · link · parent

I improved the post intro, it did get posted to lifehacker, and it was even introduced very well with "Joe Golton set out with $600-$700 to see if an ordinary person with no technical know-how can buy an off-the-shelf system that's also very quiet. Here's what he learned."

And yet dozens of people still felt compelled to point out how it is possible to do better with custom builds. I'm astonished at how out of touch the typical geek is with:

1) what a mainstream person is willing to do to purchase a PC.

2)There's a cost to all this geekery. You can buy a Lenovo e420s or a Mac Mini in a couple of minutes. Or you can spend a number of hours (5? 10? 20?) educating yourself on everything you need to know to build the absolute perfect custom PC for you.

comment 14y ago · link · parent

I appreciate your compliment, which describes exactly my aims with writing style. It's actually much harder to write that way then stringing together a technical guide for the technical, which is what the first draft looks like for many of my posts. By far the hardest thing I ever wrote on my site was the extensive series on password management, which is a more technically challenging subject.

I'm really appreciating your posting it here as it caught the attention of Adam Pash at Lifehacker, who will be publishing it today or early next week. I made it clear with him that the audience is mainstream, not custom builders, so hopefully he includes an appropriate preface.

It's funny how some answers to tech questions are really very simple. My entire article can be boiled down to one sentence: If you want a quiet PC for mainstream purposes (no heavy gaming) for less than $700, simply get a Mac Mini or a laptop that has a mobile chip inside from the following chip familes . . .

comment 14y ago · link · parent

I'm kind of glad you did because I realize the intro could be improved to make the scope and audience of the post clear (and acknowledge what else exists but is outside the scope of the post).

I'll improve the intro tomorrow.

EDIT: Added last sentence.

123456