Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fishtastic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
fishtastic
11y ago
If your engine doesn't need to render objects outside the viewport, then you don't need to generate those objects until you actually need to render it.
2.
▲
by
fishtastic
11y ago
If the design of your roguelike limits player vision so they only see their surroundings, then instead of generating the 512 x 512 map in one go, you can improve the performance/memory usage by generating only the blocks around the pla
3.
▲
by
fishtastic
11y ago
Every few seconds the screen freezes for a fraction of a second. This happened to me on both Chrome and Firefox. I suspect the lag is caused by garbage collection taking too much time. I ran into a similar issue on Firefox when working on m
4.
▲
by
fishtastic
12y ago
Screamed at JavaScript for failing at big integer multiplications. Got it after rewriting in python. Here is my poorly written explanation. --------- MAJOR SPOILERS --------- Let's multiply unique prime numbers and count their factors.
5.
▲
by
fishtastic
12y ago
This game is quite different from Conway's Game of Life because it's not deterministic. During a turn, cells will rely on Math.random to find whether to move or divide; the direction that the cell move into is also randomized.
6.
▲
by
fishtastic
12y ago
Can you simplify the form and save user's time by figuring out the type credit card from the number? (IIRC, all Visa cards start with 4)
7.
▲
by
fishtastic
13y ago
I recently found that AngularJS has supports for promises. I replaced some of the callback code to use promises and it's a lot more readable. Callbacks: Backend.CallA(param, function() { aDone = true; if (aDone &
8.
▲
by
fishtastic
15y ago
I've started reading this after I found it on an old HN post. I went through everything except chapter 12, 13, and the latest one that just came out. I would highly recommend learning OpenGL from this tutorial if you have no prior experienc
9.
▲
by
fishtastic
15y ago
As someone who's been watching professional Korean SC competition for almost 10 years, the strategy described by your brother can be found from many high class players. Unlike Warcraft3 or other RTS, units in SC have very low health. Even i
10.
▲
by
fishtastic
15y ago
Sold out online at future shop, was going to get one. I could try door crashing the store tomorrow and see if they still have the one for demo... http://www.futureshop.ca/en-CA/product/hewlett-packard-hp-16...
11.
▲
by
fishtastic
15y ago
As someone who also like random candies, I wonder if it is cheaper to just order candies straight from Japan (Amazon Japan or maybe Ebay?) I am stealing idea here, but that would be another way to get more candies.
12.
▲
by
fishtastic
15y ago
How was the rendering done? I guess that some facial features are made from blended texture mapped polygons (the hair and the neck). The face and the eyes might require some other tricks. What amazes me is how efficient the rendering is. It
13.
▲
by
fishtastic
15y ago
This explains many mysteries from Starcraft 1: bad replay file after patching, small replay file sizes, low network traffic usage from multiplayer even on big maps. The hash value sent between player also hints the mechanism for drop hack.
14.
▲
by
fishtastic
15y ago
I wonder if the accuracy of this report was just base on some lucky guesses. Right now, there are probably hundreds of such predictions about the future. Look at them again in 20 years, most of them will probably be incorrect. Yet there is
15.
▲
by
fishtastic
15y ago
That was a great use of a huge magnifying glass. If he can somehow mass produce this, it would bring the cost of making planting pots to almost nothing. One problem with this design is that the light would deflect off the center particle an
16.
▲
by
fishtastic
15y ago
I found a way to do this in XP. (Vista or 7 should be similar) 1. Open "Documents and Settings\<user name>\Application Data\Mozilla\Firefox\Profiles\<profile>\extensions 2. Find the folder for the unsupported extension, ther
17.
▲
by
fishtastic
15y ago
Hard to believe there will be an event like this in Waterloo, I am really interested. Hope you are okay with some newbie uw co-op students.
18.
▲
by
fishtastic
16y ago
So the "popular I love anal" was just an accidental discovery having no relation with the actual encryption method.