10h
awarded Caucus
10h
awarded Constituent
13h
comment How to escape regular expression special characters using javascript?
@Viliam I don’t know the exact details, but IIRC the , needs to be escaped for backwards compatibility with some old/buggy JavaScript engines.
May
17
awarded Good Question
May
15
awarded Nice Answer
May
14
comment Reversing a string in JavaScript
This is broken for strings that contain astral Unicode symbols, i.e. characters outside of the Basic Multilingual Plane. It will also give funny results for strings containing combining characters, e.g. a diaeresis might appear on the following character. The first issue will lead to ‘invalid’ strings (with the surrogate pairs for any astral symbols in the wrong order), the second to valid strings that look funny.
May
11
comment How do you access the matched groups in a javascript regex?
@Bergi, just take a look at my answer instead: stackoverflow.com/a/14210948/96656
May
11
awarded Necromancer
May
10
comment Keyboard response rate is too low, and character suggestion popups appear periodically
Related: to set a [blazingly fast keyboard repeat rate](mths.be/osx), use defaults write NSGlobalDomain KeyRepeat -int 0 and reboot. This probably doesn’t help in your situation, though.
May
10
revised Keyboard response rate is too low, and character suggestion popups appear periodically
added 4 characters in body
May
10
revised Why does getElementById not work on elements inside the document element?
added 3 characters in body
May
9
comment Do I really need to switch from VARCHAR to VARBINARY for UTF-8 in Mysql & PHP?
That linked article explains how to use MySQL’s utf8, which does not correspond to proper UTF-8 encoding. Ignore the link, and use utf8mb4 instead. See mathiasbynens.be/notes/mysql-utf8mb4 for more information.
May
9
comment Do I really need to switch from VARCHAR to VARBINARY for UTF-8 in Mysql & PHP?
See How to support full Unicode in MySQL databases for more info.
May
9
answered How to list folders using bash commands?
May
8
comment Changing website favicon dynamically
There was a typo in the code. There should be parentheses surrounding the assignment expression, like in the example gist. Fixed.
May
7
comment fastest MD5 Implementation in JavaScript
@LeeOlayvar The slower a cryptography function is, the longer it would take to bruteforce a given hash using that function.
May
7
awarded Popular Question
May
7
comment Create your own MD5 collisions
Actual code for testing this in JavaScript: gist.github.com/mathiasbynens/5525001
May
2
comment Please share your hidden OS X features or tips and tricks
My collection of OS X tweaks (hidden or not) can be found here: mths.be/osx
May
2
comment What's the best way to distribute Lua and libraries?
To minify Lua code, you could also use luamin which is available as a binary for use in shell scripts and as an npm module. Online demo: http://mothereff.in/lua-minifier
1 2 3 4 5