Better HN
topnewbestaskshowjobs
Log inSign up

Xavi

53 karma · joined Mar 10, 2009 (17y ago) · 27 submissions

xavi.co

xavi.rmz@gmail.com

Submissions

comment 8y ago · link · parent

Not everyone "decides" to have kids. Sometimes it just happens.

comment 11y ago · link · parent

Well a package manager does much more than verify downloads, but sure you can think of it as a single featured package manager.

comment 11y ago · link · parent

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?

comment 12y ago · link · parent

Why is having node as a dependency such a bad thing? No snark. Genuinely curious.

comment 13y ago · link · parent

Neither did I, though I still enjoyed it. Really opened my eyes to aspects of web development I never considered.

comment 13y ago · link · parent

Are you paying any money to the original author?

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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...

comment 14y ago · link · parent

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/

comment 14y ago · link · parent

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.

comment 15y ago · link · parent

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/

comment 15y ago · link · parent

Out of curiosity, how do you make sure only real people are playing?

comment 15y ago · link · parent

Presumably the code snippets are meant for beginners who need/appreciate more verbose comments.

comment 15y ago · link · parent

Oops, that's a type-o. The capitalize doesn't need to change.

Thanks for the heads up.

comment 15y ago · link · parent

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

comment 15y ago · link · parent

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`.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

The performance is quite good. Is the source (the unminified version) available anywhere?

comment 16y ago · link · parent

The async and defer attributes are great. Don't forget to added them to your disqus script as well.

comment 16y ago · link · parent

I'd argue that "cute obfuscation" techniques aren't needed anymore... gmail's spam filter is pretty good...

comment 16y ago · link · parent

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...

comment 16y ago · link · parent

"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?

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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');

comment 16y ago · link · parent

I've heard similar stories form friends of mine who were also CS TAs.

comment 16y ago · link · parent

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-...