Multi-single line comments
// Anyone who comments like this // reads like the non-K&R type.
No offense but that’s literally the truth.
WHAT.THE.ACTUAL.####
Aside
underlying hypernova
Nothing fits the angriness, rage, and sadness.
Everything just explodes with no before nor after.
All the walls break, little perks in the wind.
A never ending unfolding sound of broken glass,
everlasting high pitched pink pain.
Sure there can’t be more out of hundred millions electron-volts,
sempiternal ill witched red rain.
Is there a prime number whose…
Is there a prime number whose binary representation looks like a giraffe?
like another prime number?
like a prime number of giraffes?
like Squidward Tentacles?
You’ve probably understood the mechanism by now. Converting a binary image into a number, its nearest upper prime generally only differ in the lesser significant bits, hence most of the image pattern stays the same. So finding a prime number whose binary representation looks like a specific image is relatively easy. I say relatively, because in a computer sens it is quite really complex.
I just wrote a program to do just that. It is written in C and uses GMP. It is around 1k SLOC. It could probably have been much shorter, and even less so in another language. But I wanted something that went a little further than just of simple proof of concept.
I must admit, it’s pretty useless. But still there it is. And there is still much room for improvement. So patches are welcome on GitHub.
Союз
Aside
Live from Intel’s HQ
Disable XF86Back/Forward
Real ThinkPad keyboards (not this monstruous ignominy) have directly accessible keys for XF86Back and XF86Forward. That is really problematic with web browsers such as Firefox or Chromium since pressing those keys transparently go back or forward into your history, discarding anything you were typing in the process, including that 3 hours long bug report you were just about to submit. That’s rather annoying, to say the least.
Some other blog post suggest to simply disable them with xmodmap. That is in ~/.xmodmaprc
(or whatever it is you use):
keycode 166 = NoSymbol keycode 167 = NoSymbol
I personally prefer to remap them to Next/Prior keys. Having these near the navigation keys might come up handy:
keycode 166 = Next keycode 167 = Prior
That’s on Linux though, on FreeBSD the keycodes are 233 and 234:
keycode 233 = Next keycode 234 = Prior
Anyway use the xev
command and xmodmap -pke
to find the keycodes and remap them to any other interesting key symbol.
Intel’s big bug
That’s pretty hot fucking big deal.
If you don’t mind my saying so.
A life of adventure
Today’s movie: The Last Jedi
Star Wars: The Last Jedi by Michael Bay J.J. Abrams Rian Johnson. This movie is nothing but a vapid monumental grotesque joke. Seriously just don’t waste your time, don’t even think about buying the physical release or watching it by any other mean. You’ll just get awfully disappointed or you may also probably like it which is your choice after all. Either way that heavily marketed steamroller is unstoppable. There is no hope for Star Wars, but not only that.
There will be no spoiler ahead, even though you wouldn’t really miss anything.
It is as visually stunning as most other blockbusters nowadays, with humour and subtlety rivaling with Star Wars Holiday Special, like most other blockbusters nowadays. Not to say it is a hopeless dumb piece of garbage. But it certainly is hopeless. Imagine for an instant the archetypal CGIed bad guy, choreographically gesturing as if painfully trying to appear as human as anybody, defiantly looking down on you so you are sure that when he says he’s bad, he really means it. Imagine everything trying too hard to paint the scenery, draw the characters, outline the story. Imagine this is just your basic adventure action movie of the year, with a minor standardized twist. A movie that you must see anyway because you know, Star Wars and Porgs. Well that’s all there is to it.
Or perhaps there is more. A solemn vow not to renew itself. Ignominiously merging all the preceding episodes in one last go. Hammering the idea of making a clean sweep of the past. All that while preparing the path for a more streamlined way of storytelling, that would definitely transfer the franchise from geek and fanboys alike to the public at large.
This is not a fanboy critic, even though I liked the original trilogy so to say. Really I am not complaining that this movie wasn’t faithful or respectful to the original universe, that’s not the point. It is in fact the same story, basically following the same principles, scarily warmed over. A tired franchise repeating itself over and over again.
And this is where it gets so nightmarishly hopeless, in that you shouldn’t expect the following episodes to be any more different than this. Star Wars hasn’t got anything left to say more than a variant of the same thing. Which is easy to understand though, seeing how severely it got bashed last time it really tried to reinvent itself. But now it’s pretty dead, yet there it is, a gargantuan zombie, dead alive and still walking, pushed in the back by the Disney overlord as a carefully crafted marketing behemoth.
It is in that, that those movies are so hideously disrespectful. It’s a voyage in a museum of dead figures, figuratively speaking, all of them as convincing as mounted automatons.
Seeing how Disney is eagerly trying to bring that giant back to life, yet not instilling a single speck of life into it, is disgusting. Although they tried and did so, to a limited extent with Rogue One, a self proclaimed side story. And to be honest they tried to bring back some of that alchemy back into this installment. But clearly that wasn’t enough, and it fell apart like an ill finished Frankenstein’s monster.
Beside, there is another thing that the movie is trying to tell. That there are no real heroes, only wise leaders on various scales who somehow know the absolute right from the wrong. And that in the end, those truth holders are the ones worthy to remember, because they fight knowing that all we have is each other, and no other great cause can surpass that. The sweet tyranny of mutual love and the principle of life. But dare try to go beyond that and it’s just business as usual.
It tries to complete the simplistic manichaean view of the original story and presents this as the triangle formed by the republic, implicitly good, versus despotism, implicitly evil, versus anarchy, implicitly amoral. The intent is honorable and it goes further in developing those ideas than the preceding episode. But the movie itself screams ridicule from start to finish. Each attempt at self-reference to the original trilogy is really painful, but it never stops nor even pauses a little. Instead it comes waves after waves of throat pushed fan service, bad humour and forced acting. All of this summed up as an insincere and unconvincing piece which quickly fell into the realm of boredom.