HNHacker News
TopNewBestAskShowJobs

pkstn

760 karma · joined May 9, 2015

Senior web developer. Creator of RE:DOM, Deck of Cards. https://github.com/pakastin

[ my public key: https://keybase.io/pakastin; my proof: https://keybase.io/pakastin/sigs/Hc6PdXGGGE6Q2wtbt2nqz2s4OyQwuHrpyoRWIlBWraY ]

submissionscomments
pkstn··on Open sourced my 2D space flight sim!
Thanks for the feedback! Added link to the Github readme..
pkstn··on Open sourced my 2D space flight sim!
Contributions welcome, have fun! :)

Game itself: https://flanets.io

pkstn··on Deck.of.cards
Well graphics were easier to do as MovieClips, but otherwise not that much of a difference. Maybe overall easier with DOM actually..
pkstn··on Deck.of.cards
That is better way to do it, i should fix it
pkstn··on Deck.of.cards
That is true, i could actually finally fix that..
pkstn··on Deck.of.cards
It's using socket.io, pretty simple stuff..

Here's the car.js.org server-side as simple example: https://github.com/pakastin/car-ws/blob/master/server/index....

pkstn··on Deck.of.cards
Oh, only when pressing shuffle. In the new version in multiplayer mode the order is kept on server-side so that players can't cheat..
pkstn··on Deck.of.cards
I'm the author of Deck.of.Cards, actually did the first version with Flash back in 2008. I started with Flash back in 1999, working in major ad agencies, and nowadays work as fullstack JS developer / entrepreneur.

This project is just a small experiment of mine, wanted to fiddle around with nicer shuffle animation than what's usually seen, and inspire others as well by sharing the source code.

I've also done https://car.js.org for example, and https://flanets.io – those as well just small side experiments..

But ya, i have to agree we used to see more creative stuff when Flash was still around, and that is sad.

pkstn··on Deck.of.cards
I actually did the first version of Deck of Cards with Flash back in 2008
pkstn··on Deck.of.cards
It's fisher-yates with multiple iterations, so should be pretty random
pkstn··on Deck.of.cards
Feel free ;)
pkstn··on Deck.of.cards
I have no idea, but it was a fun surprise that of.cards was available (not very cheap though). deck.of.cards is actually a subdomain :D
pkstn··on Deck.of.cards
Might be overloaded because of HN, i'll check and add capacity..
pkstn··on Deck.of.cards
Try https://deck.of.cards it has multiplayer with "hands" area for four players ;)
pkstn··on Deck.of.cards
The new version is in the root https://deck.of.cards and includes multiplayer ;)
pkstn··on Deck.of.cards
Wow, thanks for sharing my Deck.of.Cards project! Just to let you guys know, this one is the old version. Newer version is in the root https://deck.of.cards

Old one has nicer animation treats, but the new one has multiplayer as well :)

pkstn··on MuseScore 4
Wow!
pkstn··on A circuit simulator that doesn't look like it was made in 2003
Wow, so awesome!
pkstn··on Consider Using CSV
and well, there's also BSON: https://github.com/mongodb/js-bson
pkstn··on Consider Using CSV
in client-side you can parse bunch of items by just wrapping with [ and ]
pkstn··on Consider Using CSV
Use gzip for compressing. If you want to stream, use following syntax:

[\n

  { ... },\n

  { ... },\n

  { ... },\n

  ...\n
]\n

With this simple trick you can stream easily..

pkstn··on Just use Postgres for everything
I just use MongoDB for everything. It's easy to scale both vertically but also horizontally. Also enhances availability and avoids data loss to have replica set with at least three MongoDB instances geographically distributed. MongoDB also keeps most frequent queries in memory which makes it super fast. ObjectID UUIDs are generated client-side making it fast writing. GridFS makes storing files easy, fast and robust etc...
pkstn··on StackOverflow Is Down
They're having stack overflow?
pkstn··on How I write React after 8 years
100 % agree, react is so horrible
pkstn··on Show HN: Maze Generation Visualization
Haha, a mazing!
pkstn··on Show HN: Maze Generation Visualization
Haha, me too :D
pkstn··on Show HN: Maze Generation Visualization
Cool!
pkstn··on Alpha version of my free 2D space simulator Flanets.io
Up = throttle, left / right = turn, 1–9 = speed of simulation, mouse wheel = zoom

All celestial objects are where they actually are right now and gravity physics should be quite accurate. Athmospheric drag still missing, hyperbolic trajectories look funny etc, but getting there..

pkstn··on Sweden sends just 1% of its trash to landfills
I don't think we even have landfills anymore here in Finland
pkstn··on YouTuber builds his own x-ray machine after $69k hospital bill (2021)
Here in Finland that would've cost less than 100€ total, without any insurance.
← PreviousPage 2 of 8Next →