HNHacker News
TopNewBestAskShowJobs

deniska

270 karma · joined February 24, 2012

submissionscomments
deniska··on Asus replaced the touchpad on its new ZenBook Pro with a 5.5-inch touchscreen
IIRC touchpads and capacitive touchscreens use the exact same technology, so there shouldn't be any difference.
deniska··on REST is the new SOAP
HTTP server following the spec can omit the body from a GET request.
deniska··on Desktop compositing latency is real
That's why I prefer to play games in fullscreen as opposed to "borderless windowed", I have noticed quite a bit of input lag in the latter mode.
deniska··on “Last Mile” Barriers to Removing Legacy BIOS [pdf]
* Laughs in pirate
deniska··on YouTube is cracking down on external links in videos
If only there was a way to actually edit a video.
deniska··on Without Flash the current web tech stack might look different
QtCreator has a similar feeling too it, albeit using much more convoluted language.
deniska··on Without Flash the current web tech stack might look different
> Was anything "amazing" every created in Flash?

> Google Maps

Here you go.

deniska··on What’s New In Python 3.6
Be careful with named tuples:

    >>> from collections import namedtuple
    >>> Time = namedtuple('Time', ['hours', 'minutes'])
    >>> Point = namedtuple('Point', ['x', 'y'])
    >>> t = Time(hours=7, minutes=40)
    >>> p = Point(x=7, y=40)
    >>> p == t
    True
They're still tuples. They're meant more as a tool for making an already existing tuple mess slightly more managable rather than creating a new mess.

For making plain data objects take less boilerplate to create have a look at attrs: https://attrs.readthedocs.io

deniska··on Tabs or spaces – Parsing a 1B files among 14 programming languages
Python treats a tab character as the amount of spaces needed to go into the nearest multiple of 8 column. With py2 ability to mix different indentation as far as it amounts to the same column, you can format your code in pretty interesting ways.
deniska··on A rant about application configuration
Never managed to achieve what I want in gulp. Switched to makefiles.

Make just needs executables. It doesn't need specific plugins for each compiler. Its syntax is arcane but it was much easier to make it up and running.

deniska··on Perl 6 Released
I personally like the idea of using good old Make for that task. You don't need "huge plugin ecosystem", you just need executables to use it. And unlike many other systems it does incremental builds without any special machinery.
deniska··on Python Extension Proposal 498: Literal String Formatting
You can even hack it into a string class if you don't mind using even more scary hacks like monkey patching built in classes.

    def I(s):
        import inspect
        frame = inspect.currentframe()
        caller_locals = frame.f_back.f_locals
        return s.format(**caller_locals)

    def main():
        a = 12
        b = 10
        print I('A is {a} and B is {b}')

    if __name__ == '__main__':
        main()
deniska··on CGI Using Node.js
I still prefer PyHP: http://www.ccraig.org/software/pyhp/manual/sample.html
deniska··on Yes, we’re being bought by Microsoft
For now this folder consists of opensource libraries (lwjgl).
deniska··on Microsoft takes down No-IP.com domains
And I was wondering, why did my no-ip.biz subdomain stop working…
deniska··on Windows is not a Microsoft Visual C/C++ Run-Time delivery channel
When glibc guys changed memcpy implementation which changed its undefined behavior, it broke Flash Player and Linus got pissed off. Afair they reverted the change.

https://bugzilla.redhat.com/show_bug.cgi?id=638477#c129

deniska··on Mozilla bug 923590: Pledge never to implement HTML5 DRM
You can just point real world hardware camera on the screen. Sure quality won't be perfect, but it will be decent, better than if same thing is done in a cinema.
deniska··on Write Android apps in Google Go
Actually Clojure and some other JVM hosted languages don't work on android as is because they rely on JVM while android uses bytecode converted from jvm to dalvik.

Edit: clojure works on android now but it needed additional porting efforts

deniska··on Amazon stops selling Sim City V over game issues
> key parts of the game logic and performed server side so you would need to reimplement the server in order to crack it

But game runs just fine for twenty minutes after disconnect (at least it simulates one city fine). You just may lose your progress because game saves "in the cloud".

deniska··on USSD code to factory data reset a Galaxy S3 can be trigged from a HTML page
I opened it in my desktop firefox and it showed «Sent to phone» notify of firefox2phone plugin which uses chrome2phone protocol.
deniska··on Pacman running on DCPU-16
I found a bug in minesweeper. Start new game, don't move selection, press F, press F again and enter.
deniska··on Google Begins Testing Its Augmented Reality Glasses
It's the eyePhone from Futurama.
deniska··on USRobotics PalmPilot Personal review
My Palm IIIe has 2 mb RAM and 16 mhz CPU. But it was much less laggy than most modern android devices with dual core CPUs and gigabytes of RAM while doing same tasks.

I even used internet (through irda gprs phone) on it.

Unfortunately now its touchscreen is broken and I haven't managed to find another compatible touch panel on ebay or dx.

deniska··on What I hate about “beginner” programming books
It seems to be not only programming language books' fault. And not only books' fault. Even teachers at schools and universities sometimes show wrong way of doing something.
deniska··on Bret Victor's live editable game in ClojureScript
If simulation runs (and it should) in the different thread, then nothing bad happens.
deniska··on Visual Studio '11' Announced
Using tools in wrong way is a kind of entertainment for hacker. But hacker shouldn't complain if something breaks.
← PreviousPage 3 of 3