February 2012



  • The Itch. A mesmerizing, horrific tale of an itch that wouldn’t stop.

Detecting language without IP geolocation

Detecting language preference with Javascript. One way, using using Javascript only:

var language = window.navigator.userLanguage || window.navigator.language;

The better way is to use Ajax to grab the HTTP Accept-Language header with a server side script. The Stackoverflow thread has implementations for Python ja Node.js.

Ilya

Zipping files with AES-256 encryption in PHP

Use P7Zip from the command line or, more exotically, use DotNetZip with PHP.

Ilya

  • Looking for trim in Javascript? Here’s plenty, with some very interesting performance analysis.
  • Securimage is a good-looking and accessible CAPTCHA built in PHP.

  • Home
  • About
  • Preferences


RSS

February 2012

Mon

Tue

Wed

Thu

Fri

Sat

Sun

 

 

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

Jan   Mar

Beared souls

caught together