HN user

recurser

440 karma

http://www.daveperrett.com/

hello@daveperrett.com

Posts35
Comments86
View on HN
www.youtube.com 1y ago

Rubber Soul, but it's Motown [video]

recurser
1pts0
www.youtube.com 2y ago

The King of Microrhythm (YouTube) [video]

recurser
3pts0
www.motifanalytics.com 2y ago

A Beginner's Guide to Sequence Analytics in SQL

recurser
1pts0
www.youtube.com 2y ago

Four year renovation time-lapse of an abandoned Japanese house (YouTube)

recurser
1pts0
www.youtube.com 2y ago

Using AI to Decode Animal Communication (YouTube)

recurser
2pts0
string.is 4y ago

Show HN: String.is – an open-source, privacy-friendly online string toolkit

recurser
6pts5
twitter.com 6y ago

Ministry of Health will not release data on pneumonia patients in Japan

recurser
1pts0
watchesbysjx.com 7y ago

Masahiro Kikuno, Japanese Independent Watchmaker (2017)

recurser
178pts97
devcenter.heroku.com 8y ago

Multi-Tenant Kafka on Heroku Generally Available

recurser
2pts0
www.technologyreview.com 9y ago

Google plans to reach a Quantum Computing milestone before the year is out

recurser
147pts49
devcenter.heroku.com 9y ago

Heroku autoscaling in beta

recurser
1pts0
www.larrysalibra.com 10y ago

How Chinese Tinder clone screws you

recurser
5pts0
www.be9.io 10y ago

How I spent two weeks hunting a memory leak in Ruby

recurser
2pts0
readwrite.com 12y ago

Why Are Dead People Liking Stuff On Facebook?

recurser
2pts0
github.com 13y ago

Ask PG: Would it be possible to include id=xxxx in the RSS feed?

recurser
4pts2
www.daveperrett.com 13y ago

Recreating the Reeder Two-tone Horizontal Rule in Pure CSS

recurser
11pts8
recursive-design.com 13y ago

EXIF orientation handling is a ghetto

recurser
6pts2
musicmachinery.com 14y ago

Roadtrip Mixtape

recurser
1pts0
golancourses.net 14y ago

SketchSynth: A Drawable Open Sound Control Control Surface

recurser
1pts0
recursive-design.com 14y ago

Underscores are stupid? Get a Japanese keyboard

recurser
50pts40
recursive-design.com 15y ago

Continuous integration for PHP with phpUnderControl

recurser
1pts0
happymagicfuntime.com 15y ago

Making Friends

recurser
1pts0
webdesigneraid.com 15y ago

Minimalist infographic designs

recurser
2pts0
recursive-design.com 15y ago

Simple video remixes using The Echo Nest API

recurser
1pts0
recursive-design.com 15y ago

Face detection with OS X and python

recurser
37pts5
recursive-design.com 15y ago

CompSci 101 - Big-O notation

recurser
2pts3
news.ycombinator.com 15y ago

Ask HN: Review my side project - Rails Kitchen Sink

recurser
4pts0
recursive-design.com 15y ago

Static blogging the Jekyll way

recurser
3pts0
recursive-design.com 15y ago

How to create a TextMate bundle

recurser
1pts0
recursive-design.com 15y ago

Security testing with Google's ratproxy

recurser
1pts0

Try and make a new folder and drag a chat into it. Web works, desktop doesn’t. Try to copy paste deep-research json via the copy button they provide. Web copies json, desktop includes attribution links from the ui that breaks json parsing. It’s not easy to make a desktop app worse than the web, especially when you have that much money to spend, but it’s clearly possible

The reason so few people acquire Japanese citizenship is not because of the difficulty doing so, but because it offers little in terms of tangible benefits beyond those already acquired by virtue of having permanent residency status.

This. I've been in Japan for 15 years, and have permanent residency. Citizenship would basically only grant me the right to vote for (or against, I guess) the party that has been in power almost uninterrupted since the 50s. In exchange for that, I would have to give up 3 other citizenships. Not a great deal...

I'm wary of using closed-source online string formatters and converters, so I've been working on https://string.is/ as a safe, open-source alternative. I had a couple of goals when building it:

1. It should be open-source.

2. It should not set any cookies.

3. It should have a strict Content Security Policy.

4. It should be opinionated about dependancies, and only use well-known, well-supported libraries.

5. It should try to detect the format of the input, and intelligently choose output options.

The last point in particular I feel is an improvement on most existing services - paste in some text and it will try to auto-detect the format and convert it accordingly (although admittedly detection of some formats is a bit primitive currently).

It's built with TypeScript + Next.js. In addition to the hosted version, the GitHub README has one-click install buttons for Vercel and Heroku, plus Docker images.

Source: https://github.com/recurser/string-is

Demo: https://string.is/ (click 'load an example' to get a random converter)

More info: https://string.is/about

There are a couple of other tools in this space if you're interested in alternatives:

  - https://gchq.github.io/CyberChef/ (online)
  - https://devutils.app/ by HN member trungdq88 (MacOS)
  - https://devtoys.app/ by HN member veler (Windows)
  - https://boop.okat.best/ (MacOS)

I work on the project discussed in the article. We're running puma in clustered mode, with multiple workers per dyno and multiple threads per worker. 1GB is plenty in this context - each worker is pretty lightweight. At the time this was written we were running ~10 2x dynos, but we've since switched to 3 performance-m dynos with more puma threads/workers.

I don't think it's any less crazy than being forced to chase a GC white whale for two weeks on a tiny memory leak to avoid a huge rate hike on your hosting bill.

The main issue we were facing wasn't the hosting bill, but high (for us) traffic, that was leaking memory on every request. Under low traffic it was unnoticeable, but at peak load the leak would cause dyno memory to max out pretty quickly, which would cause timeouts and increase the traffic to other dynos, causing cascading failures. Having more memory available would definitely have made things a lot easier, but we would have run out eventually either way.

Just a random data point, but one of my apps with a definite non-technical demographic gets 97% of logins via facebook, 2.5% via twitter, and 0.5% via email/password registration. I haven't tested it obviously, but I don't think removing Facebook login would do much for conversions.

    These personal details could then be used to access the users' bank 
    details. That's also more than enough information to be able to access 
    your other devices which could also be mined for more data - insurance 
    information, other credit cards -  which could then be used to access 
    your banking credentials.
Do developers have access to users' bank details? How would anyone access 'other devices' with just a name, address and email? This seems a little far-fetched.
Heroku API down 14 years ago

Our production site has been down for an hour (a separate staging site on heroku is still up and running), and it does appear to be Elastic Load Balancer-related from what I can tell.

Notch has made a couple of comments on reddit :

http://www.reddit.com/r/programming/comments/146v69/how_notc...

    Please do NOT write code like this. It was originally written for the Java4k 
    competition, which focuses on executable code size, and is as a result almost 
    intentionally poorly written. It got even worse when I ported it to JS.
    It was mainly meant as a test for me to see what HTML5/JS can do, and an 
    exercise in porting code over.
http://www.reddit.com/r/programming/comments/146v69/how_notc...
    It would run a bit smoother if it was written in C++ (mainly due to not having 
    to rely on the GC, and having it precompiled gets rid of the warmup time), and 
    modern OpenGL would help quite a lot as well. A lot of the stuff done in CPU 
    now could be moved to a shader, which both makes code simpler, and gets rid of 
    the slow JNI calls required now.
    The main reason why Minecraft is slow is mainly 1) There's a LOT of polygons, 
    combined with 2) The difficulty of making an efficient culling algorithm in a 
    dynamic world.
    If someone solves #2, very interesting things could be made with a game similar 
    to Minecraft.
http://www.reddit.com/r/programming/comments/146v69/how_notc...
    No, they don't get merged because the textures are all pulled from the same atlas 
    to avoid texture swapping. With GLSL, they could be merged, saving quite a lot of 
    polygons. For a while, I did attempt switching the atlas from a 16 x 16 grid to a 
    1 x 256 grid and merging horizontal runs of the same texture, but the resulting 
    texture size was to tall some graphics cards (on low end computers) would 
    automatically downsample it.
    The problem with the occlusion culling is not about knowing what parts are static, 
    but rather figuring out what occluders there are. It would be very beneficial not 
    to have to render caves under ground below the player, for example, or not to 
    render the entire outside when a player is inside a small closed house. Figuring 
    this out in runtime on the fly as the player moves around is.. expensive.

'JavaScript: The Good Parts' by Douglas Crockford is a great place to start[1].

    This authoritative book scrapes away these bad features
    to reveal a subset of JavaScript that's more reliable, 
    readable, and maintainable than the language as a 
    whole-a subset you can use to create truly extensible 
    and efficient code.
The other thing that has had a huge impact on my coding style is learning to write tests for everything with Jasmine[2]. Forcing myself to write tests has basically forced me into better design practices, since it's nigh-on impossible to test javascript callback-spaghetti.

Doing a couple of backbone.js[3] tutorials may be a bit of an eye-opener too.

[1] http://shop.oreilly.com/product/9780596517748.do

[2] http://pivotal.github.com/jasmine/

[3] http://backbonejs.org/

SEEKING FREELANCER – Remote (Aus/NZ/Asia timezone preferred) - Rails backend developer

Work on an exciting and fast moving project built with Ruby on Rails.

Our company is growing rapidly, and we're looking for outstanding Rails developers. The product is built on Rails/Postgres/Heroku/S3, and we are in the process of integrating heavily with social platforms (Facebook, Twitter, Instagram etc).

Excellent Rails and TDD/BDD skills are a must, plus reasonably good written/spoken English. Experience with Cucumber, Rspec, jQuery and Backbone preferred. Front-end and IOS/Android skills a plus. Remote OK, Aus/NZ/Japan/China timezones preferred.

We have a lot of work coming up for the right developer(s), and look forward to hearing from you!

Please provide: - Samples of your work (e.g. github, blog etc) - Availability for a skype chat in the next week between 9am and 10pm New Zealand time.

Contact email in profile.

Totally. It looks like it should be straightforward, until you find out you're not sure what width and height mean anymore, and suddenly there's edge cases all over the place.

Yeah I don't really like them either, and I wrote them. I thought twice about including the percentages, and I did try to highlight that fact:

    Note that the percentages below are only relative to
    these 2 sets of 3 characters, and don’t represent the 
    total percentage of keystrokes saved.
The percentages are only really there to provide an easier way to compare the (relatively small) Ruby sample, and the (relatively large) PHP sample. Simply saying that one project saved 6000 strokes vs. the other with 100,000 strokes seemed a bit meaningless given the relative sizes of the projects, and doing a full-on frequency analysis of modifier key usage seemed like more trouble that it was worth... perhaps in hindsight I should have done it anyway.

zokier provided an interesting link to a previous discussion below (http://news.ycombinator.com/item?id=2973776, specifically http://news.ycombinator.com/item?id=2977303) which does a much more thorough analysis of Finnish/Swedish vs. US layouts - I'd like to run his code using the Japanese layout when I get a chance.