Better HN
topnewbestaskshowjobs
Log inSign up

johncs

204 karma · joined Dec 23, 2014 (11y ago) · 43 submissions

https://johncs.com
Submissions

comment 1mo ago · link · parent

Needs difficulty modes, or a steeper curve. Too easy for too long.

comment 1y ago · link · parent

Basically the same as Python’s zipapps which have some niche use cases.

Before zipapp came out I built superzippy to do it. Needed to distribute some python tooling to users in a university where everyone was running Linux in lab computers. Worked perfectly for it.

comment 2y ago · link · parent

Thank you! It’s the Solarized color scheme which is definitely a bit low-contrast. I probably don’t notice it only because I’ve been using the color scheme across apps for so long.

comment 2y ago · link · parent

I do wish monospace designs were at least a _little_ trendier. My blog uses one, but honestly I feel like I should change it up since I'm looking for roles right now and I worry it doesn't _delight_ like modern designs right now.

comment 2y ago · link · parent

> I have been manually copying my resume source into ChatGPT for feedback

That’s what I started out doing as well. At some point I got tired of it, and after writing the script I realized the tighter feedback loop was really nice.

6.

Iterating on an HTML resume with GPT-4o via cURL(johncs.com ↗)

4 points · by johncs · 2y ago · 2 comments

comment 2y ago · link · parent

    Location: Portland, OR
    Remote: Yes
    Willing to relocate: Yes (Only to the Bay Area)
    Technologies: Most recently TypeScript, Python, React, PostgreSQL, GCP.
    Resume: https://resume.johncs.com
    Email: johnsullivan.pem@gmail.com
Full-stack engineer with professional experience in other areas including Unity, desktop, mobile, and set-top boxes. I've founded two small businesses with modest success but prefer the life of an IC.

I started programming 24 years ago when I was 7 and have been continuously loving and learning more about my craft since.

I've very recently started looking for a new IC role once again. I am interested in Senior/Staff roles that will allow me to continue expanding my knowledge.

8.

Which grid cells does an ellipse overlap?(medium.com ↗)

1 points · by johncs · 2y ago · discuss

comment 3y ago · link · parent

A small little toy: https://particles.johncs.com

comment 3y ago · link · parent

There's a great Computerphile video from 2015 that introduced me to the idea of AI safety awhile ago. It seems like some good context to this article: https://www.youtube.com/watch?v=tcdVC4e6EV4

comment 4y ago · link · parent

Yes. I run a small website and a friend of mine has agreed to take it over if I die. I've shared the passwords of the services that the website is hosted on with them via a package manager.

I do not have anything similar for my bank accounts or personal subscriptions.

comment 4y ago · link · parent

This article asserts SOLID and MVC is good with basically no justification. It also doesn’t show how non-hooks code would be better.

comment 4y ago · link · parent

Ah of course you meant in a word processor...

    $ never mind
    -bash: never: command not found
Thought I was about to learn about a new utility for a moment.

comment 4y ago · link · parent

For those of you who like the idea of GNUCash but are looking for an easier tool to use (for us developer folks), check out https://plaintextaccounting.com.

comment 4y ago · link · parent

Seems to be going after the same problems that https://shmeppy.com does. The specific choices are different though (like drawing is much different).

comment 4y ago · link · parent

You got a good laugh out of me with the meow in your description.

comment 4y ago · link · parent

Ended up sniping myself . Made a fairly complete version of what I was imagining: https://github.com/itsjohncs/construct-json#readme

comment 4y ago · link · parent

In the common case where you trust your input entirely you can just interpret your string as JavaScript. Then you don't even need to use quotes for the key names.

    $ alias fooson="node --eval \"console.log(JSON.stringify(eval('(' + process.argv[1] + ')')))\""
    $ fooson "{time: $(date +%s), dir: '$HOME'}"
    {"time":1457195712,"dir":"/Users/jpm"}
It may be a bit nicer to place that JavaScript in your path as a node script instead of using an alias.

    #!/usr/bin/env node
    console.log(JSON.stringify(eval('(' + process.argv[2] + ')')))
Since fooson's argument is being interpreted as JavaScript, you can access your environment through process.env. But you could make a slightly easier syntax in various ways. Like with this script:

    #!/usr/bin/env node
    for(const [k, v] of Object.entries(process.env)) {
        if (!global.hasOwnProperty(k)) {
            global[k] = v;
        }
    }
    console.log(JSON.stringify(eval('(' + process.argv[2] + ')')))
Now environmental variables can be access as if they were JS variables. This can let you handle strings with annoying quoting.

    $ export BAR="\"'''\"\""
    $ fooson '{bar: BAR}'
    {"bar": "\"'''\"\""}
If you wanted to do this without trusting your input so much, a JSON dialect where you can use single-quoted strings would get you pretty far.

    $ fooson "{'time': $(date +%s), 'dir': '$HOME'}"
    {"time":1457195712,"dir":"/Users/jpm"}
If you taught the utility to expand env variables itself you'd be able to handle strings with mixed quoting as well.

    $ export BAR="\"'''\"\""
    $ fooson '{"bar": "$BAR"}'
    {"bar": "\"'''\"\""}
You'd only need small modifications to a JSON parser to make this work.

comment 4y ago · link · parent

Oh hey, it’s one of Fable’s mini games! Very cool to see

comment 5y ago · link · parent

I've been contributing to the IRC ecosystem again. Working on bringing some IRCv3 [1] features to The Lounge [2] right now.

Tryna do some neat things with the virtual tabletop I've built (Shmeppy [3]) as well. Getting its renderer off of the 2D Canvas API and onto WebGL, as well as some of its more perf-sensitive code onto WASM.

[1] https://ircv3.net [2] https://github.com/thelounge/thelounge [3] https://shmeppy.com

21.

Added intervention during registration for comcast.net users(forum.shmeppy.com ↗)

2 points · by johncs · 6y ago · discuss

comment 6y ago · link · parent

> This pattern of access is simple and intuitive but causes huge problems in even small projects. Retrieving whole rows is hugely wasteful when only part of the row is required to resolve a user request.

Retrieving a whole row rather than just a single column from a database that's likely on a local network definitely doesn't seem "hugely wasteful", especially for smaller projects.

comment 6y ago · link · parent

I set failglob: `shopt -s failglob`. Makes the whole command fail if there's no matches. That combined with `set -e` which aborts the script in the event of any command failing makes me feel somewhat safe.

Indeed I add the following two lines to every bash script I write:

    set -exu
    shopt -s failglob

24.

Show HN: A pretty toy I made with canvas(johncs.xyz ↗)

16 points · by johncs · 9y ago · 4 comments

25.

Evolving our content infrastructure at Khan Academy(engineering.khanacademy.org ↗)

3 points · by johncs · 10y ago · discuss

26.

A Case for Time Tracking: Data Driven Time-Management(engineering.khanacademy.org ↗)

2 points · by johncs · 10y ago · discuss

27.

Principles of Building a Simple Site(johncs.com ↗)

1 points · by johncs · 10y ago · discuss

12