HNHacker News
TopNewBestAskShowJobs

Xavi

53 karma · joined March 10, 2009

xavi.co

xavi.rmz@gmail.com

submissionscomments
Xavi··on Living in a parking lot in Santa Barbara
Not everyone "decides" to have kids. Sometimes it just happens.
Xavi··on Show HN: Inspect questionable scripts before piping them to sh or bash
Well a package manager does much more than verify downloads, but sure you can think of it as a single featured package manager.
Xavi··on Show HN: Inspect questionable scripts before piping them to sh or bash
Just brain storming... could another possible solution be to create a public list of hashes of well known scripts, and then write a small `sh` wrapper that verifies that hash of the script it's about to execute?
Xavi··on Jq: A lightweight and flexible command-line JSON processor
Why is having node as a dependency such a bad thing? No snark. Genuinely curious.
Xavi··on How well do you know HTML?
Neither did I, though I still enjoyed it. Really opened my eyes to aspects of web development I never considered.
Xavi··on Show HN: How I turned an old book into a (barely) profitable website
Are you paying any money to the original author?
Xavi··on A programmer’s guide to healing RSI
When I used to work on windows I created a little AutoHotKey script that remapped my keyboard when ever the capslock key was on: https://github.com/xavi-/Keyboard-Remapper

It mapped I,J,K,L to the arrow keys, U to the home key, O to the end key, N to backspace, M into the del, and etc... Did wonders for my wrists.

Xavi··on Inbox Pause - A pause button for incoming mail in Gmail [Chrome extension]
There's an option to turn on/off the auto responder. Checkout the second image in the slide show: https://chrome.google.com/webstore/detail/illgajkjilbddcllil...
Xavi··on Facebook machine learning technology improves; Redditors alaramed.
BTW, Google seems to be pretty open with what they know about you. Here are two links where they display an explicit list: https://www.google.com/dashboard/ and http://www.google.com/ads/preferences/
Xavi··on [dead]
I understand in principle this is true, but in reality what kind of performance hit are you looking at?

I've never seen any real stats.

Xavi··on LiveReload: Reflect CSS Changes Instantly, with No Browser Reload
Quickly switching of themes is one reason why you would want to make it easy to change css: http://xavi.co/articles/jquery-ui-css-themes-hosted-on-cdn

I can also be quite useful during development. One cool trick to achieve something similar is to add a contentEditable attribute to a style tag: http://css-tricks.com/8618-show-and-edit-style-element/

Xavi··on What happens when a Social Game - is run with Bots?
Out of curiosity, how do you make sure only real people are playing?
Xavi··on Simply Lift
Presumably the code snippets are meant for beginners who need/appreciate more verbose comments.
Xavi··on JavaScript Interview Question
Oops, that's a type-o. The capitalize doesn't need to change.

Thanks for the heads up.

Xavi··on JavaScript Interview Question
Yep, that is exactly the solution I would be looking for.

I would be blown a way if someone came up with solution that could handle arbitrary function returns. My friend actually wrote an interesting article on the subject. Here's the link if you're interested: http://msdn.microsoft.com/en-US/scriptjunkie/gg575560.aspx

Xavi··on JavaScript Interview Question
Many interviewees, when presented with `say("hello")("world")`, understood that `say` was a function that returned a function, but few were able to actually implement `say`.
Xavi··on JavaScript Interview Question
A while back a couple of colleagues sat down and came up with our own set of JS interview questions. Here's what we came up with:

Can the interviewee code: https://gist.github.com/633341

Can the interviewee read/debug code: https://gist.github.com/633087

I used these questions during a couple of interviews. They seemed to work well.

Xavi··on RAPT: A physics-intensive HTML5 Platformer
The performance is quite good. Is the source (the unminified version) available anywhere?
Xavi··on HTML5 introduces a new attribute on the script tag called async
The async and defer attributes are great. Don't forget to added them to your disqus script as well.
Xavi··on Request HN: Please all update contact info in your profile
I'd argue that "cute obfuscation" techniques aren't needed anymore... gmail's spam filter is pretty good...
Xavi··on The Rust programming language
I agree, TypeState seems especially interesting. This paper from one of the comments does a good job describing it: http://www.cs.cmu.edu/~aldrich/papers/classic/tse12-typestat...
Xavi··on DSLs in JavaScript
"I know many of you think JavaScript is a toy language..."

hmm, I thought the dev community got over the javascript-is-a-toy-language mentality 3 or 4 years ago?

Xavi··on Raising money for StackOverflow
I agree, this does help fix the "fastest gun in the west" issue, but I don't think it eliminates the problem.

A mediocre answer that was posted one minute after the question was submitted often has more votes than a well thought answer posted several hours later.

A better solution might be to randomly order answers, regardless of votes, for the first couple of hours (maybe even day). This will further help remove any ordering bias.

I also feel that authors of answers should be hidden for the first couple of hours (or day). Just because John Resig answered a question, doesn't necessarily mean it's the best response.

Xavi··on Sarcastic Font
I know it's fun bashing IE, but if anyone cares, this css rule achieves the same effect in IE:

  filter:progid:DXImageTransform.Microsoft.Matrix(M11=1,M12=.2679,M21=0,M22=1,sizingMethod='auto expand');
Xavi··on My lazy American students
I've heard similar stories form friends of mine who were also CS TAs.
Xavi··on Google Analytics unblocks the Web w/ Async support
They've also moved away from document.write. Now we can use google analytics on pages served as XHTML without resorting to these types of hacks: http://www.the-xavi.com/articles/operation-is-not-supported-...