Better HN
topnewbestaskshowjobs
Log inSign up

freework

1,185 karma · joined Sep 11, 2012 (14y ago) · 379 submissions

Submissions

comment 11y ago · link · parent

Can be your own bank, not "is and always be completely devoid of any kind of banking institute"

America is a free country, but not everyone in America is free (some are in prison, for instance).

comment 11y ago · link · parent

Here is an example song that would benefit from a plug in like this: https://www.youtube.com/watch?v=KeIQvxSS2M8. The guitar riff that hard pans from left to right can sound jarring when listening with headphones without a crossfeed filter. With the filter, the sound is more natural.

I'm surprised apple hasn't added crossfeed functionality to any of their audio products. I remember discovering crossfeed back in the early 2000s. My audio player was foobar2000 which had a plugin to do crossfeed. When I switched to Mac in the late 2000s, I had to go back to listening to music without crossfeed. It still perplexes me that with the explosion of high end headphone popularity that this hasn't become a standard feature for audio players.

comment 11y ago · link · parent

I think your preference (stack or queue) is dependant on the nature of work you are doing.

For instance, at my current job, I've been here for 2 years. I know the codebase pretty well. If an issue comes up, I can almost always get it resolved in a few hours or less. For this reason, I am currently a stack person.

On the other hand, when I first started this job, I didn't know the codebase very well, so it usually took me at least a week to complete a typical issue. Back in those days I was a queue person.

comment 11y ago · link · parent

This paper's conclusion (I only read the abstract) jives with my experience. Whenever I've tried to make something "intelligent" it always ends up in headaches. Now-a-days when building code, I try to stay away from having the computer make decisions. I've found its much easier to build stuff in a way that put a real human in charge of making all decisions.

comment 11y ago · link · parent

Most tips I see are not "fractions of a penny" but rather the standard seems to be 1000 bits which is like 32 cents. I often see people tip a dollar or more.

Secondly, I can never understand why some people get so offended by someone giving them a small amount of money. When you go to the coffee shop to buy a $2.40 coffee and are given $0.60 in change are you insulted by the cashier for thinking you needed that 60 cents?

comment 11y ago · link · parent

This post makes the mistake of thinking that writing a bunch of tests will make everything better. In my experience, the only thing that will help you when it comes to expanding/fixing an existing codebase is knowin what the code is doing. When the app crashes and you look at the traceback, you need your brain to be able to understand why the program crashed. No matter how many tests fail or how many email alerts you get from travis-ci, your primary task is to understand what the code is doing.

comment 11y ago · link · parent

Another source for aviation data: http://ourairports.com/data/

comment 11y ago · link · parent

    def days_in_month(month_num):
        if month_num in [1, 3, 5, 7]:
            return 31
        elif month_num in [4, 6, 9, 11]:
           return 30
        return 28

comment 12y ago · link · parent

The problem is that backing up data is fundamentally a management task. It requires skills to actually do right. People view backing up their computer in the same way they view changing the oil in their car. Just like there is no button you press inside the car that says "change oil", there is never going to be a backup solution that is easy to use for the regular user. At least not one that does a complete job is backing everything up.

Here is how I handle 'backups': I never do it. If the data is important, I make sure I store it on a device that is already redundant. If I take a photo that I really want to keep, I'll send it to dropdox or google drive or gmail or some place like that. Neither my macbook, nor my iphone, nor my linux laptop is the canonical living place of anything important. If any of those devices were to disappear, I will lose stuff, but nothing important. This system I've sort of subconsciously migrated towards over the past decade or so of hard drive failures and lost phones.

comment 12y ago · link · parent

As an experienced developer who as had to implement dozens of API's over my career, therre are two things that I care about:

1. Documentation - If I have to spend the next month doing trial+error to get your API working, thats no good. The best APIs have a page that describes how get up and running quickly.

2. Good error messages - When something goes wrong I want to know what went wrong. The error message being in a consistent format isn't that important, as long as there is a description of what happened. "Oops, an error occurred, try again later" is not a good error message.

Most of the stuff in this article is superficial stuff that I don't think matters.

comment 12y ago · link · parent

I don't understand this whole controversy. The the amount of money donate to you is so small (like under a dollar over the course of a year) then you don't need to declare it on any tax forms. If a random person on the street gives you a quarter, you on't need to report that on taxes, nor do you have to report a 0.00017 BTC donation.

On the other hand, if the donation is big (say in the thousands USD), I can see why someone could decide to not accept the donation because they don't wan to report it on their taxes. An easy solution to this problem is to NOT TAKE THE DONATION. If you don't take the money, you don't have to report anything. The tip4commit site supposedly states if a developer doesn't accept a donation the money goes back to the 'project pool' where it will get donated to another developer on that project.

comment 12y ago · link · parent

A few months ago I had the idea of creating a project to scrape Silk Road. The idea was to parse all listings, determine the quantity, divide by the price, and then average it through the entire site. The end result would be an average price for weed/lsd/mdma,etc. Sort of like the Winkdex, except for drugs prices. Shortly after I got it running, Silk Road 1.0 got shut down. Then the darknet market "scene" became really fragmented into like 10 different sites. Writing scraping code is tedious, so I abandoned the project. The code is here: https://github.com/priestc/weedprices

comment 12y ago · link · parent

I think the biggest story here is the fact that the bug was fixed and ready to be installed via a single apt-get command within hours. To me, this is an immense success.

On the other hand, if its 2 months later and a fix still has not been issued, then it is safe to make the argument that the web is broken.

comment 12y ago · link · parent

My rule of thumb is: First build it with a database, then break things off using NoSQL/Queues/Memfs/etc. after scale increases to a point where it becomes a pain. Its never a good idea to start something built in the most optimized way possible (in terms of performance). In my experience 99% of the time, actual performance numbers are way less than what you expected anyways.

comment 12y ago · link · parent

Thats what I've been doing. My resume lists the dozens of projects I've completed. Out of every 50 resume's I send out, I get maybe one interview. I don't think anyone even looks at my github. As soon as they see I don't have a degree, they throw my resume out.

106.

Ask HN: What has been your experience with self-taught engineers?

37 points · by freework · 12y ago · 43 comments

comment 12y ago · link · parent

In my experience, any kind of DB replication is a bitch to set up. Definitely not worth the time for a one time thing.

comment 12y ago · link · parent

I've done this many times with fightlogg.in

This is the process:

1. Set up new server on new host (nginx/postgres/python/everything than needs set up) 2. Wait until 3AM or whenever traffic is at a lull. 3. Put up a message saying something about "server migration in progress". 4. Run pg_dump of the database on the old server. 5. scp that dump over to the new server 6. pg_restore that dump to new database server 7. Add an entry to new server's pg_hba.conf to allow connection from old server 8. change old server's app config to use the new postgres server (instead of localhost) 9. Move over A records.

The only downtime is the amount of time to do steps 6, 7 and 8. My entire DB is less than 1GB so it takes like 3 minutes to migrate.

This is made easy by me only having one datastore to move over. If the project has more than one datastore, it would probably take all day to migrate everything over.

comment 12y ago · link · parent

... but Joel Spolsky said you should never rewrite code ever ever ever...

comment 12y ago · link · parent

I'm not building a filesystem. I'm building a non-filesystem. Not metadata jammed into a filesystem. A whole new system that is used by the end user in lieu of the filesystem.

comment 12y ago · link · parent

https://github.com/priestc/LibraryDSS thats an old repo from when I tried to write code for this about a year ago. Most likely if I ever get around to working on it again, I'm going to make a new repo for it.

comment 12y ago · link · parent

A Library Item is an abstraction above 'file'.

The user constructs a query then sends it to a server, the server returns a list of items that match the query. For instance this may be a query:

INCLUDING artist contains "Pink Floyd"

and the results will look like this:

[ {"artist": "Pink Floyd", "title": "Another Brick In the Wall", "mimetype": "audio/mpeg", "album": "The Wall", "url": http://drive.google.com/blahblah.mp3" etc }, {"artist": "Pink Floyd", "title": "Money", "mimetype": "audio/flac", "album": "The Wall", "torrent_url": http://drive.google.com/blahblah.torrent" etc. }, {"artist": "Pink Floyd", "mimetype": "image/jpeg", "album": "The Wall", "url": http://drive.google.com/albumcover.jpg", "purpose": "album artwork" etc.} ]

You can add more to the query to filter out the content you don't want. The query language is much like a SQL WHERE clause. The query language is meant to be super simple and something your grandma could figure out.

The app then can retrieve the actual file from the url. The end user has no idea about the underlying file crap.

comment 12y ago · link · parent

What I'm buoding is most definitely not a "filesystem". Those use filenames and folders and crap like that. My system does away with that.

What you said about a glorified metadata search is right on.

Some people share devices, but most people we share with use other devices.

I'm glad you think its silly because all great things have haters (bitcoin, justin bieber, etc.)

comment 12y ago · link · parent

Git is pretty much only for versioning (specifically annotation of versioning). My system is more for indexing/sharing data.

comment 12y ago · link · parent

My system is only meant to be used by humans. Software will still use the traditional filesystem.

Instead of the user supplying a filename/path for new content, they submit arbitrary metadata. When retrieving content, they query via a language called LQL (Library Query Language).

Basically the system works a lot like ID3 tags for mp3 files. 'Arbitrary metadata' is a lot like the fields for 'title', 'date', 'album', etc except they are arbitrary (you can use any set of key/value for metadata items)

Libraries can connect to other libraries. A 'Library' is much like an email inbox, except its one user per machine instead of multiple users per machine. Each library is 'addressed' via a domain name. All communication between libraries is done through HTTPS.

Traditional filesystems use a permission system that is very archaic. In 1960 it was common for there to be multiple users on one machine, but in 2014, everyone has their own machine. File permissions are useless, since I'm th one person who ever uses this computer. "Permissions" in the 2014 sense is which of my facebook friends gets to see these photos.

116.

Ask HN: Has anyone ever tried building an OS that doesn't use files?

33 points · by freework · 12y ago · 64 comments

comment 12y ago · link · parent

Willy wasn't the only reason bitcoin bubbled a few months ago

comment 12y ago · link · parent

One thing people keep forgetting: GHash.io is not a single entity. GHash is made up of miners who choose to be there. It is very easy for a miner to switch to another pool.

comment 12y ago · link · parent

The difference is that if GHash.io launches an attack, miners have the choice to move to another pool. If the US government inflates the currency (yet again) there is nothing to do.
12345
13