HNHacker News
TopNewBestAskShowJobs

subleq

672 karma · joined August 2, 2011

submissionscomments
subleq··on Internet Cafe Refugees – Japan's Disposable Workers
> As a minor, I could not go to the non-smoking area.

Is that backwards?

subleq··on Internetarchive.bak
It seems like TAHOE-LAFS would be a great way to let anonymous people donate storage while maintaining data integrity.
subleq··on Ask HN: Who is hiring? (March 2015)
Fusionbox (www.fusionbox.com) -- Denver, CO

Python/Django Software Engineers

YOU: You are passionate about open source and like to try new technologies. You do not necessarily come from a traditional computer science background, but you have achieved mastery and you are particularly well suited to engineering. You are a self-starter and learn easily. You would like to get paid to write open source software.

US: Fusionbox offers custom software development solutions to a wide range of clients using new technologies. Fusionbox is a place for talented people who are serious about engineering. We are committed to the open source community (https://github.com/fusionbox) and Pythonic sensibility.

subleq··on A plastic card for easy to remember strong passwords
You can use https://www.fusionbox.com/mouseware/ to do this
subleq··on Silent Circle's warrant canary is out of date
I hadn't heard of Silent Circle before so I looked at their offerings. Is it any different than what you get from TextSecure and RedPhone for free?
subleq··on Tracking down a kernel bug with git bisect
> I know you can automate running a shell script, but I don't write my automated tests in shell script.

Your tests aren't a shell script, but certainly you can compile and run your tests from a shell script.

subleq··on Tor Project Sued
Pinkmeth are not the defendants; Tor is.
subleq··on Widgy: Open Source Python/Django CMS Framework
Widgy doesn't require the Djange admin. You can attach a widgy content editor to any model.
subleq··on Widgy: Open Source Python/Django CMS Framework
It's not a fork. It's using Mezzanine to structure the tree of pages, but Widgy is used to edit content on the pages themselves.

Basically, we made a really good content editor and wanted to get running quickly, so put our content editor in a Mezzanine page type. However, Widgy is a generic tree editor so potentially could be used for the page tree too.

subleq··on Heartbleed
It is worse than plain HTTP, actually. Heartblead allows an attacker anywhere on the internet to read out memory from your server. This is worse than plain HTTP in two ways:

- With plain HTTP, the attacker would have to be in a MITM position to intercept traffic. With Heartblead, he can read traffic he wouldn't normally have access to from the server's memory.

- There may be secrets in memory that would never even be sent over the network that are now accessible. For example, if running a web app in the same process doing SSL termination, private keys such as Django's SECRET_KEY may be available. Under certain situations, knowledge of the SECRET_KEY can effect remote code execution.

In short, Heartbleed gives the entire world the ability to read memory from your server. This is much worse than an HTTP MITM.

subleq··on PostgreSQL: Jsonb has committed
If only there were a way to store data where each record has the same structure...

The JSON support in postgres allows a hybrid approach. Put the common data in a tabular format, with a JSON column that stores all the extra, variable data.

subleq··on Intro to Haskell for Erlangers
I see, it's just the non-linear patterns? Looks like they were considered for Haskell and there are some good arguments against them: http://www.mail-archive.com/haskell@haskell.org/msg03721.htm....
subleq··on Intro to Haskell for Erlangers
In what way is Haskell's pattern matching not as clever as Erlang's?
subleq··on Netflix disables use of the Chrome developer console
> API requests can be made inaccessible from XSS (and that includes self-XSS) by means of a CSRF token that is properly secured

How can self-XSS be prevented with a CSRF token? Can't the script included via self-XSS get the token out of the page and use it to make requests that appear as if they originate from the app itself? Can't a script injected through self-XSS do absolutely anything the page can do in the first place?

subleq··on A Case for Upserts
The combination of postgres's range types[1] and exclusion constraints[2] allow you to do this safely. My 'primary key' constraints look something like:

    ALTER TABLE foo ADD CONSTRAINT temporal_pk EXCLUDE USING GIST (
      identity_id WITH =,
      valid_range WITH &&
    );
It'd be nice if temporal foreign keys were supported too, where the existence of contiguous child rows through the valid_range of the parent was enforced, but I've had to use a trigger for that.

[1]: http://www.postgresql.org/docs/9.3/static/rangetypes.html [2]: http://www.postgresql.org/docs/9.3/static/ddl-constraints.ht...

subleq··on Elixir is for programmers
The problems with side effects have been fixed for a while: http://pybites.blogspot.com/2011/07/behind-scenes-of-pytests...
subleq··on Show HN: Life – A timeline of important events in (your) life
That is gorgeous, I love the design.
subleq··on The Shortest Crashing C Program
> NULL pointers will lead to a crash.

Not in C. Dereferencing a NULL pointer is undefined behavior, so any of the actions described by the parent would be correct.

subleq··on Lessons learned defying Joel Spolsky with Django
You are mistaking about filtering an annotation.

   > Model.objects.annotate(Count('foos')).filter(foos__lt=10)
The only reason this doesn't work is because the property annotate creates isn't called `foos` by default. You just need to do this:

    Model.objects.annotate(foos=Count('foos')).filter(foos__lt=10)
and Django now knows to add a `HAVING COUNT(foos) < 10` clause.
subleq··on Show HN: A url-based API for images (my weekend project)
http://placenoun.com/ too
subleq··on Things I Wish I Had Known About Django Development Before Starting My Company
Could you go into some more detail about what being 'packaged correctly' means? What's wrong with a git clone deployment, why is deploying as a package better, and how does one implement it correctly?
subleq··on Things I Wish I Had Known About Django Development Before Starting My Company
You still need a system for tracking which changes have been applied to your database and for distributing the changes to the rest of your team.

Even if you don't use South's automatic migration generation, its database-independent schema modification api [1], dependency tracking, and tracking of which migrations have been run, are useful and necessary. In fact, the automatic generation of migrations is an optional feature of South that was not in it when first released.

When you need to write SQL and interact with your database directly, using `db.execute` inside a South migration is a nice way to do it.

[1]: http://south.readthedocs.org/en/latest/databaseapi.html

subleq··on Persona is distributed. Today.
Persona stores a signed statement from the IdP in your browser (currently using localStorage). Once you get the statement from your IdP verifying your identity, you can log in using the same proof many times without contacting the IdP, until it expires.
subleq··on Why Use Make
.ONESHELL was actually added in 3.82: http://cvs.savannah.gnu.org/viewvc/make/NEWS?view=annotate&#...
subleq··on FreezeGun: easy mocking of Python datetimes
Have you tried patching the now() method onto datetime.datetime instead of replacing the whole class? If that doesn't work, you could replace datetime first:

    import freezegun; freezegun.monkey_patch()
    from datetime import datetime
After that, freeze_time would just set a flag on your datetime class.
subleq··on Buy Nothing Day
This leaves 18 days per year to buy things, each 20 days from the last. Do you grow your own food, or do you eat only nonperishables?
subleq··on Time Spent Waiting for an Answer in StackOverflow (by language)
This technique is actually equivalent to the geometric mean: http://en.wikipedia.org/wiki/Geometric_mean#Relationship_wit...
subleq··on Csr.io - a better certificate signing request generator
I did a CSPRNG in Javascript using mouse movements for entropy: https://github.com/fusionbox/mouseware
subleq··on The Z3 theorem prover is now open source
As a plain old programmer, would a tool like this be useful to me? How can I use a theorem prover to improve my code, or make it easier to write my code on a day to day basis? I've heard that Z3 is used for demonstrating security properties, how would I apply this to ensure my own systems are secure?
subleq··on Designing for A Retina Web
The CSS pixel is defined as an angular measurement.

http://www.w3.org/TR/CSS21/syndata.html#length-units

http://inamidst.com/stuff/notes/csspx

← PreviousPage 3 of 4Next →