News for hackers. Stuff that matters.

akrasuski1

Re:Adventure Games and Eigenvalues (2017) on Tuesday June 18, 2019 @06:27AM (#20211406)
That is not enough, since you may still get stuck in a loop.
40 microwatts of power, to be precise. Compared to, say, 5V*1A=5W of typical phone charger, this is impractical by a large margin.
Another nice site aggregating many clever tiny x86 programs: https://www.xorpd.net/pages/xchg_rax/snip_00.html
Re:CLI: Improved on Friday August 31, 2018 @01:47AM (#17883237)
This could actually be caused by disk caching effects. Have you tried running cloc second time afterwards?
Re:Mod and remainder are not the same on Thursday August 23, 2018 @08:10AM (#17826518)
Well, that's why I always define RED(x) (for reduce modulo) as ((((x) % MOD) + MOD) % MOD). Quite useful in algorithmic competitions, which often ask you for answer modulo some prime.
Re:GitHub is down on Monday July 16, 2018 @03:52PM (#17544501)
And thus you used a throwaway account...
Re:A Linguistic Enclave in Central Europe on Monday June 11, 2018 @05:32AM (#17282950)
From the listed words only two have immediately obvious Polish connotations (dźjada (grandpa), and dziadek is grandpa in Polish; śpjelik (sparrow), where śpiewać is "to sing"). Most words have German-ish sound to them, somewhat similar to Silesian subdialect of Polish (though Silesia was occupied by Germany, which is the reason for its influence). The spelling is mostly Polish-like, perhaps from older centuries though; except for some umlauts which clearly originate in German and similar.
Re:The Emerald Programming Language on Thursday June 07, 2018 @04:15PM (#17259805)
Looks like jewellery is popular in language namimng: we've got Ruby, Crystal, now Emerald...
Re:Signed Integers Are Two’s Complement on Thursday May 31, 2018 @12:36AM (#17193989)
It's done so that the bits will compare the same way whether treated as float or int. (modulo NaNs and stuff)
The decreasing health bar looks like a really weird idea. I don't like to be forced into thinking fast, I prefer to make a clear point even if it takes longer.
Re:Angr – User-friendly binary analysis platform on Sunday May 20, 2018 @07:09PM (#17115220)
Hm, if the example written on README is representative for current usage, then it surely changed a lot recently. I remember checking angr out a few months ago, and simply running a binary required a few dozens of, mostly boilerplate, code. I may try it again now, looks like it improved since then.
I'm pretty sure it doesn't matter whether the eneergy is stored in rotating body, or one moving in a straight line. Kinetic energy of rotation is 0.5 * I * w^2, or for that extreme case of "concrete ring" - 0.5 * m * r^2 * w^2, which is exactly equal to 0.5 * m * v^2, or kinetic energy as calculated for body moving in straight line.
Re:The Kruskal Count Card Trick on Friday May 04, 2018 @01:28PM (#16996386)
It's really unrelated - it's more about the hash domain being rather small, i.e. 52. I would think that if you substitute the counting (go to card N+value) to proper hashing (go to card md5(value)%52) you would get the same, if not stronger, result.
It is possible to generate a lower bound, so it can be compared with usual numbers, like g_64 etc.
Actually, the mentioned GitList exploit hinges on yet another vulnerability: lack of distinction of command-line flags and arguments. Where user expected to put "normal" name (say a-zA-Z0-9), attacker actually supplied --flag=exploit.
Re:Google is testing expiring emails in the new Gmail on Friday April 13, 2018 @10:52AM (#16830503)
Uhmm... screenshot the mail; self-destruction circumvented.
Re:The secret life of NaN on Thursday April 05, 2018 @05:19PM (#16768862)
I wouldn't be surprised if the future compilers would optimize it away as well, since ffast-math basicly makes NaN's equivalent to undefined behaviour.
Re:A meta-analysis of C++ projects on Thursday April 05, 2018 @12:52PM (#16766582)
It would be nice to divide the cooccurence count by counts of respective two headers, to get a sort of correlation. Now it's quite hard to see anything beyond "most popular things are paired with most popular things" which is obvious.
Re:Beep security update on Wednesday April 04, 2018 @05:36AM (#16753269)
Re:Discontinue support for weak cryptographic standards on Wednesday January 31, 2018 @07:49PM (#16278919)
That is honestly a great idea for safe-ish deprecation in uninformed environment!
Re:GDB 8.1 Released on Wednesday January 31, 2018 @07:43PM (#16278887)
Presumably the stackexchange answer is what OP meant by it being an idiom.
Re:3D scatterplot of an image on Friday December 15, 2017 @08:01AM (#15931442)
Hmm, I guess someone would have thought of that, but this could probably be used for compressing images by reorienting the color axes so that one of them is perpendicular to this color plane, and then sending less information about that coordinate.
Re:Avast open-sources its machine-code decompiler on Wednesday December 13, 2017 @07:47AM (#15913864)
There has been some malware that did just that - it was still possible to record the trace of instructions being executed along with the current instruction pointer to be able to reconstruct the binary quite well.
Re:Quantum Game with Photons on Tuesday December 12, 2017 @02:41PM (#15908776)
Can anyone explain why these two arrangements are not equivalent? They seem to both cause same phase shift and reflections, but the first one causes the photon to pass to the right, and the second - to split.

https://imgur.com/a/OkEQY

https://imgur.com/a/Byo8E

Re:Quantum Game with Photons on Tuesday December 12, 2017 @01:49PM (#15908255)
Vertical and horizontal here seem quite confusing. The absorptive polarizer with vertical lines drawn on it passes through photons passing through PBS, which game calls horizontal. So either the polarizer lines have negative logic (indicating what is absorbed, not passed through), or there is some inconsistency. Similarly, the horizontal polarization is represented as photon bouncing up and down ("vertically") if it travels right. This can get confusing.

I wonder if some polarization arrow can be drawn somehow, like: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTAlDUU...

Re:Lightbot: Puzzles Game Using Programming Logic on Tuesday December 05, 2017 @10:50AM (#15852438)
I can recommend one of his older flash games: KOHCTPYKTOP. Awesome, about making silicon-level transistors, gates, eventually chips...
Re:How to Learn Vim: A Four Week Plan on Friday October 06, 2017 @10:38AM (#15417098)
Actually, they're not unit. When you type "abcd", then (without exiting insert mode) move left twice and type "xx" (resulting in "abxxcd"), then undoing once will leave you at "abcd".
Re:Stream VByte: breaking new speed records for integer compression on Wednesday September 27, 2017 @09:02PM (#15353686)
Using fixed-point representation would allow using this compression method.

Older »