There are 502 zeros.
The question is asking for the consecutive zeros at the end of 2016! <-- notice the factorial
There are 502 zeros.
The question is asking for the consecutive zeros at the end of 2016! <-- notice the factorial
Heh, thatās pretty funny actually lol
The trick is to count how many multiples of 5 there are in the series of numbers + how many multiple of 25 + multiples of 125 + ā¦
2016! has 403 multiples of 5 + 80 multiples of 25 + 16 multiples of 125 + 3 multiples of 625 = 502 zeroes.
The reason for this is you can pair up any multiple of 5 with an even number to get a zero. 25 is 55 so thereās an extra 5. 125 is 55*5 so itās a multiple of 5 and 25 and has an extra 5.
Hi, i think almost half year since my last activity here?
Productive part: researching gossip and consensus protocol (work thingy)
Unproductive part: Halo 3 ODST
I used noctariusā :point: borabora library to write a simple & easy to use archive (.pak file) format.
The CBOR graph basically just mirrors a folder structure. Files are zip-compressed and stored as byte sequences. They are also XXH64 hashed (via LWJGL3 bindings) on the fly during (de-)compression for easy file validation.
First tests with a game asset archive of ~120 MB (raw data: 280 MB, zipped data: 70 MB) look promising. The reader memory-maps the archive, and boraboraās queries seem nice&fast enough for pretty well performing lookups. Iāll see how well it performs when I get to put all of that into use with Pathway.
Thatās the readerās full public API so far:
try (PakFileArchive archive = new PakFileArchive(Paths.get("archive.pak"))) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
archive.read(Paths.get("path/to/asset/inside/archive.txt"), bytes);
System.out.println(bytes.toString());
}
Interesting. Also interesting that Eclipseās compiler does flag the Unsound class on page 3 as an error:
[quote]The method upcast(Unsound.Constrain<U,B>, B) in the type Unsound.Bind is not applicable for the arguments (Unsound.Constrain<U,capture#1-of ? super T>, T)
[/quote]
EDIT: About javac. Yeah, javac of 1.8.0_112-b15 SDK says everything is okay with the Unsound class.
I hadnāt tried it yet. You try javac?
Interestingā¦that probably mean this isnāt new to everyone. (I get the same error BTWā¦but no surprise Iāve the latest eclipse).
EDIT: Figure 3 does compile, but not Figure 4.
IntelliJ gives me an error at the bind.upcast call saying parameter B is not within its bounds, should extend U.
Javac compiles without a problem though, and I get the ClassCastException.
Wrote a cheap real time 60FPS smoke generator (kinda like cigarettes or candles)
Jitter and bad framerate in the following gifs are not my fault :
I put in the buttons on my arcade cabinet. Itās coming along nicely! The buttons all worked right away, so that was cool. Hereās a pic of them:
And hereās a pic of it put together playing my Arc game:
Next up-putting the t-molding on and putting in the speakers.
Yesterday and today Iāve worked on my rendering pipeline, and especially the lightning part:
ZMa758SgYm4
In this test scene I placed 256 spheres which represent lights, which are either point lights or spot lights. For the spot lights, I add every update cycle a random fraction to the x, y, and z axis of the direction and renormalize them to get some random displacement (some may be facing upwards in the video :persecutioncomplex:).
Iām using deferred rendering with (currently) one pass per light source. Iām going to optimize this a bit, but itās a good start. The lightning itself is based on the phong model.
Nice cabinet, but are you sure, that you put in the panel in the right orientation? From the curve of the buttons, I would guess, they need to be the other way around⦠:persecutioncomplex:
I made a Chrome Extension version of RFLEX
And almost instantly got issued a DMCA by the almighty wessles
Maybe you should throw in some ambient occlusion. SSAO is almost a must-have for any game engine these days. Of course, you should probably optimise your lighting first, before implementing any performance-intensive techniques like SSAO or anything.
Fidel Castro is dead at the age of 90.
Thatās what you did today?
Hmm⦠Are you using Unity editor or other tool for that?