Better HN
topnewbestaskshowjobs
Log inSign up

codesnik

1,035 karma · joined Mar 11, 2009 (17y ago) · 496 submissions

Submissions

comment 5y ago · link · parent

when bottom is actually reached that point of evaluation, does haskell provide any indication on where it came from? stacktrace or something?

comment 5y ago · link · parent

i'm pretty sure boats (especially big ones) are one of the potential markets for starlink, so even if current receiver will lose a connection, there will be special receiver for boats eventually. Stabilizing phased array shouldn't be that hard, even without adjusting motors constantly.

comment 5y ago · link · parent

how do you set an initial orientation of the cursor? how does it know, where's "up" cursor direction?

comment 5y ago · link · parent

Pascal is under-appreciated. TurboPascal was my first programming language/platform on PC (used 286 in 1994) and the only problem I had was lack of documentation on actual video and sound hardware, not with the language itself. I was surprised to learn that many DOS-era games I loved were written in pascal actually, some of them were pretty performant (Tyrian, for example).

Almost on the topic: in Russia there were popular school computers UKNC https://en.wikipedia.org/wiki/UKNC, pdp-11 clones with deep changes, with an RT-11 compatible OS. They were everywhere, well into late 199x, when they were deeply obsolete, because schools didn't have funding to upgrade classrooms. It was my first computing platform when I was a kid, but the only language accessible was BASIC, with a line editor (pretty strange concept nowadays), line numbers, no named subroutines, etc. In 1997 I was suprised to find in a new school I've transfered to the same old computer but with Pascal compiler on it. With an actual editor, a very fast compilation time, and all still crammed into 64kb of memory. I was really impressed.

comment 5y ago · link · parent

no more mentions of Virgin Mary on twitter I suppose?

comment 5y ago · link · parent

well, true, but people are still reporting very high amount of short positions.

comment 5y ago · link · parent

diesel? I doubt you have jet-a seaplanes there. It's gasoline, (though, the nasty kind, with lead)

comment 5y ago · link · parent

somewhat related: in Russia, mobile phones are illegal in prisons, but somehow ends up available to some inmates. Sizeable amount of scam calls from "banks" etc are coming from there. Problem isn't solved for many years, of course prison management tolerates if not directly profits from that, but yeah: internet and mobile connectivity will be used for crimes, unless something else in how prisons work would change as well.

comment 5y ago · link · parent

I have no idea what marbles are made of, but if they are even remotely similar to actual marble and not, say, glass, I'm sure it'll react with acid in the wine.

comment 5y ago · link · parent

from inside should be better for actually keeping air from leaking. I wonder why it isn't working 100% well

comment 5y ago · link · parent

huh. It's printed. Is it common to have a personal printed phonebook? How does it work?

comment 5y ago · link · parent

hm. do many people in silicon valley buy their apartment or house there these days? Is it even accessible?

comment 5y ago · link · parent

meanwhile I've heard siberia is also famous for considering just a normal business a 300 km fishing trip in all-terrain vehicles via something barely resembling a road.

comment 5y ago · link · parent

but it's really weird to look on those in hexdump

comment 5y ago · link · parent

magnetic film!

comment 5y ago · link · parent

catalysts are not consumed in the reaction, by definition

comment 5y ago · link · parent

AFAIK COBOL was never popular in ex-Soviet republics, but "natural programming language" was taught in most schools in some form. Usually it wasn't considered a real programming language, though, just something like a pseudocode before translating it to basic or pascal.

comment 5y ago · link · parent

omg. Do yourself a favor, come visit Italy one day and go the museum or two. See whole range of stuff from stone age, to etruscan art, to roman, to early medieval. It's not like it was buried only in one particular place, and period attribution isn't that hard and very visible from the art style. Italy is a giant museum under the open sky, some buildings are still standing, rebuilt and repurposed multiple times.

comment 5y ago · link · parent

"compelling"?!

comment 5y ago · link · parent

if you ask for next page of results, with parameters like offset=20&limit=10, then you, as a client, can try to reason and manipulate those parameters. Ask for multiple pages in parallel, ask for offset=18 etc. Make calculations on those parameters. If you only providing a token, like "next_page=abcdef1234" with some encoded structure, you're limiting your client in what it can actually do, but simultaneously simplify backend architecture and make it more forward compatible with future changes in backend (after all, that next_page token can actually be just an offset and limit encoded)

comment 5y ago · link · parent

I love idea of "json lines" which is implicitly here, in jq. You can convert giant json array of objects to "json lines" and back with jq. A lot of tools could produce them, and then you can mix and match jq, simple unix grep, head etc, because each unix line of your stream is a complete parsable json, guaranteed.

back in a day I've loaded a lot of data to postgresql and elastic search after preprocessing it with very simple but powerful chain of CSV parsers (I've used CSVfix), jq, sort, grep, etc.

comment 5y ago · link · parent

interesting. that huge transparent block is here for aesthetics only?

comment 5y ago · link · parent

"lotska" is not a russian word. It was probably "liozhka", ("process of lying for a long time"), if it is something to believe at all.

comment 5y ago · link · parent

though, station doesn't have to be a torus. Zubrin said something about two starships chained together with a loong cable. That could work.

comment 5y ago · link · parent

I once made napkin calculations that for 1g "gravitation" a station even about 50 meters in diameter would introduce coriolis force so great you'll have a lot of trouble even trying to stand up from a chair.

comment 5y ago · link · parent

I used to have the same kind of migraines. So much sharp smells everywhere, smell people across the street, things like that. Sadly headache didn't allow to enjoy that superability, even for normally pleasant smells.

comment 5y ago · link · parent

video shows just a weird positioning of letters, like that's how zodiac had put them into cypher (one down, three to the left). It seems to me that originally text was written in some geometric shape, mostly from top to bottom, then was copied to the paper from left to right. This could explain "mistakes", "life is" part written horizontally etc. I wonder, what the shape was.

comment 6y ago · link · parent

minor unwarranted tip: you don't need "|" between letters in character sets in regexps. grep "[r|R]elocate" would match "relocate", "Relocate", yes, but also "|elocate". You probably want grep '[Rr]elocate' or grep '\(R\|r\)elocate' or just grep -i relocate

comment 6y ago · link · parent

you don't need anything else. Just Monica.

comment 6y ago · link · parent

on mac: Preferences > General > "Click in the scroll bar to:" > "Jump to the spot that's clicked". Though with mac touchpads, I forgot when was the last time I ever clicked the scrollbar.
1
121314
17