HNHacker News
TopNewBestAskShowJobs

gabemart

5,018 karma · joined October 3, 2012

    g4bemart on gmail
    gabemart on github

    I made http://asoftmurmur.com
submissionscomments
gabemart··on Ask HN: What's the most creative 'useless' program you've ever written?
JS library to encode IP addresses as haiku

https://github.com/gabemart/hipku

demo is long since dead but the lib is just a file, should still work

edit: demo - https://jsfiddle.net/wyf9zmk4/

gabemart··on Show HN: The easiest way to find domains like “MailChimp” or “TaskRabbit”
It's using preact, the react.js alternative
gabemart··on Show HN: The easiest way to find domains like “MailChimp” or “TaskRabbit”
I've tested on a later iOS but not 10.2. I'll have a look later today - it's possible I'm missing a polyfill. All you should need to do for it to work is to enter something in the main text input and hit "search".
gabemart··on Show HN: The easiest way to find domains like “MailChimp” or “TaskRabbit”
It's supposed to show that the combination of the keyword and the suggested word is alliterative
gabemart··on Show HN: The easiest way to find domains like “MailChimp” or “TaskRabbit”
Thank you! I've found myself doing it manually too, which is where the drive for this came from. I think I would use it even if someone else had made it, if that makes sense
gabemart··on What to Do When Laptops and Silence Take Over Your Cafe?
Or play something more malevolent when people outstay their welcome...

https://asoftmurmur.com/?v=003a6400000e00000000&autoplay=1

gabemart··on Great React style guide by Airbnb
>However, for root components of a directory, use index.jsx as the filename and use the directory name as the component name

I used to do this, but I find it really confusing having dozens of files all called "index.jsx". I eventually moved to './ComponentName/ComponentName.jsx' in my personal projects. It's a bit more verbose, but I find it makes everything else do to with navigating and finding files easier.

gabemart··on What does code readability mean?
>> Exchanging a single word for another may totally alter the effect of a passage

> I think that describes code perfectly.

I wasn't very clear here: what I meant was that exchanging a single word even for its closest synonym will always change the effect of a passage to some degree, because the intrinsic aesthetic qualities of the word inevitably alter the effect of the word.

This isn't true for code, where refactoring a line of code might change how readable that line is, while conceivably having an identical effect when the line is interpreted, compiled or executed.

gabemart··on What does code readability mean?
The author consistently compares code language style to literature language style, but I don't think it's a helpful comparison at all.

Literature operates by an intractably complex interaction between the words written on the page and the mind of the reader. Exchanging a single word for another may totally alter the effect of a passage, based on factors like the meaning of the word, the associations the word has for each reader, and the aesthetic appearance and sound of the word.

Moreover, we have no objective way of measuring the effect of literature. We don't have a test that can measure how much more empathetic I become after reading a novel, or how much more I understand the human experience.

Computer code typically has measurable outcomes. While "readability" may still be a relatively subjective measure, we can at least say "these two versions of this function are equivalent" if the outcome is the same - the array is sorted correctly, the transaction amount is calculated correctly, the graph is rendered with the same pixels.

This means that editing computer code is nothing at all like editing literature. The cliff-notes version of Macbeth can never produce the same effect in the mind of the reader as reading Macbeth -- but a function that is subjectively easier to read can be shown objectively to produce the same effect as the original function.

gabemart··on Spotify hit with $1.6B copyright lawsuit
>you’re cutting it down for it’s screenplay being inspired by a fairy tale

That wasn't my reading of the parent at all.

Snow White the animated film wouldn't have been made if copyright was perpetually inherited and some distant Grimm relative refused to give Disney permission to make the film. This is relevant to your original point - that "I find complaining about someone’s artistic endeavors not being free to be absurd in it’s own way." You may find it absurd, but if it were not so, a work you seem to admire might never have been produced.

There is a cultural component to art. It draws from the culture and gives back to the culture. Long copyright terms - and I find current copyright terms very long - prevent future artists from drawing on the culture to produce new, transformative works.

Disney was able to draw on cultural material from the prior 100 years to make Snow White. But if the current copyright-extension-cycle continues, it seems plausible that Disney films - and all works created in the same period - may never fall into the public domain in the USA, and future artists will not be able to enjoy the same free use of cultural source material as Disney itself has done.

gabemart··on Bitcoin Futures Start with a Bang as Rally Trips Circuit Breaker
It's a shame that there isn't a common word in English to distinguish between positive-expected-value gambling and negative-expected-value gambling. They are fundamentally different pursuits.
gabemart··on Goodbye Google Cloud, Hello Digital Ocean
You could script something like this pretty simply with the DO api, and there might well be programs out there already that operate in a similar way.

My own needs are modest, but I have provisioning scripts that create and destroy DO droplets on-the-fly from the command line.

gabemart··on Goodbye Google Cloud, Hello Digital Ocean
I'm a bit surprised by the replies talking about serving millions of requests a second, or needing ultra-consistent packet latency. Perhaps most of the HN demo is working for companies that operate at that scale.

But the OP is talking about running dozens of servers, not hundreds or thousands. My own modest apps have held up to the traffic from being #1 on reddit and not fallen over, never been null routed or nerfed by DO, and served hundreds of millions of requests and hundreds of TBs of data. I have nothing but good things to say about DO.

I have no experience running apps at the "millions of requests a second" scale, and I'm willing to accept DO might be a bad choice at that level. But what percentage of apps will ever reach that scale?

gabemart··on Show HN: Fruits and vegetables in season in your zip code
I ran some queries and it looks like there are only about 4 weeks a year when asparagus isn't being commercially harvested somewhere in California - the first couple of weeks in December and the last couple of weeks in May (approximately)

Distribution is another matter entirely of course!

gabemart··on Show HN: Fruits and vegetables in season in your zip code
Distances are being computed from a geopoint representation of each zip code (which is a bit out of date, but which I can update fairly easily) to a set of shape files representing US counties. It's intentionally not 100% accurate because the underlying math is quite slow and using slight approximations speeds things way up.
gabemart··on Show HN: Fruits and vegetables in season in your zip code
Ah yeah, the zip database I'm using is a bit out of date (as some other people have mentioned) and you're seeing this behaviour as it thinks 22003 is in Georgia. I had a hunch people might be more interested in results from their own state even if they were a bit further away, but clearly in this case that doesn't make sense.

I'll experiment with moving the email form to under the results, or putting it behind a button. I was trying to make it low friction, but I think I might have gone a bit far.

gabemart··on Show HN: Fruits and vegetables in season in your zip code
I haven't, but a few people have mentioned LocalHarvest, so I am definitely going to look into it.

Thank you for sharing your experience, it's really interesting to hear from other people interested in this space and I haven't had a chance to do so before, so I appreciate it.

gabemart··on Show HN: Fruits and vegetables in season in your zip code
I would say that the data I have at the moment are reliable in the sense that they are collated from informed, reasonably up to date sources (mainly US government sources at the moment). I would say that they are not very complete and not very granular yet, but this is something I am working on.
gabemart··on Show HN: Fruits and vegetables in season in your zip code
Ah, that might explain it - I actually have varietal information in the database, but I'm not using it yet because it adds a ton of complexity and I really wanted to show this to people before spending more time on it.

So "peak season" might better be interpreted as "as least one variety is in peak season", at least for now. And "peak season" is a bit nebulous due to how hard it is to normalise between different data sources, but it's something akin to "most active harvest period"

gabemart··on Show HN: Fruits and vegetables in season in your zip code
thanks!
gabemart··on Show HN: Fruits and vegetables in season in your zip code
Almost all the data right now is pulled from various USDA publications which I scraped, combined, sanity-checked and cleaned up. It's not perfect, but it's the best I could do as a first-run.

I'll have a look at southern New Hampshire specifically and see if anything weird is going on.

gabemart··on Show HN: Fruits and vegetables in season in your zip code
Ha, thanks - done now
gabemart··on Show HN: Fruits and vegetables in season in your zip code
Serious question - would you pay for it?
gabemart··on Show HN: Fruits and vegetables in season in your zip code
The database is definitely incomplete - I have a ton of work left to do.

There is also the problem that just because a certain produce item is being harvested within x miles doesn't necessarily mean that produce is available at local stores, and vice-versa.

My hope is that if I can get some early adopters, I'll be able to concentrate improving the data in a smaller number of targeted areas. This is the first time I've shown the site to anyone, so I'm hoping I can get some feedback to make the most effective improvements first.

gabemart··on Show HN: Fruits and vegetables in season in your zip code
Thanks for the feedback - this is very first version, and there are a lot of improvements to make.

I think you're right about the wording, reading it with fresh eyes it is very confusing, and I'll change it ASAP.

Right now, all the farm information data is pulled from aggregated USDA data so there is a ton of work left to do to get better, finer-grained results. My plan is to look at which zip codes get the most queries and the most user sign ups, and improve results for those first.

The data wrangling aspect of this is definitely one of the biggest challenges. I've spent more time than I'd care to say extracting data from PDFs and other non-parser-friendly materials with regular expressions, and, often, manually.

gabemart··on Ironwill: My first software project
Really interesting. The still images don't do the graphics justice, they really come alive in the video.

It is sad that it was never released. Hope you find the motivation to release some version of it.

gabemart··on The Performance Cost of Server Side Rendered React on Node.js
Is anyone using React for server-side rendering of dynamic content without some kind of caching? I've done some server-side React stuff, but only in cases where only a tiny percentage of requests will ever be served uncached content. Is it common to do otherwise?
gabemart··on A paper about eye damage in astronauts got pulled for “security concerns.” Huh?
Thanks for the recommendation, I've tried it out and it seems great so far, especially for a free service
gabemart··on A paper about eye damage in astronauts got pulled for “security concerns.” Huh?
Last time I had something on the reddit front page it topped out at about 10k simultaneous users and I was serving data at over 5Gbps. Never had another traffic source come within 50% of that

I have since moved from http to https, and I'm curious if I could withstand the same amount of traffic now. I think it's pretty hard to load test at that level.

gabemart··on If you use Montserrat from Google Fonts your site is probably broken now
I find this a bit confusing. Montserrat is distributed under an open license [1] which allows commercial redistribution "as long as they [fonts] are not sold by themselves". If people want to use a specific version - and clearly, they feel very strongly about it - why not host it themselves?

    [1] https://github.com/JulietaUla/Montserrat/blob/master/OFL.txt
Page 1 of 22Next →