|
You are here |
javier.io | ||
| | | | |
ncona.com
|
|
| | | | | Xdebug is a PHP extension which provides debugging, tracing and profiling capabilities. Installing xDebug in an Ubuntu based distribution is very easy using apt-get: 1 sudo apt-get install php5-xdebug Just by installing xDebug you will get two very basic but useful rewards: Pretty var_dumps and pretty error messages. | |
| | | | |
ryanseddon.com
|
|
| | | | | In preparation for a talk I'm doing at Web Directions South I needed to be able to put video into fullscreen mode from within my HTML based slides. In order to do this I imagined I would of needed to use flash but thankfully Webkit nightly, Chrome dev and Firefox nightly have added the ability to put HTML5 videos, and other elements, into fullscreen mode using javascript. The FullScreen API now updated to point to official editor draft, thanks Hans!. | |
| | | | |
jcarroll.xyz
|
|
| | | | | The one-liner solution: {?(3?(0=3 5|?)?1)/'Fizz' 'Buzz' ?}¨?20 The explanation: For each value in [1, 2, ..., 20], find the boolean mask of "is this divisible by 3 or 5?" (vectorized). {0=3 5|?}¨?20 ?0 0?0 0?1 0?0 0?0 1?1 0?0 0?0 0?1 0?0 1?0 0?1 0?0 0?0 0?1 1?0 0?0 0?1 0?0 0?0 1? Union this with the value 1; if 1 doesn't already appear, add it. This is now a mask for whether the result should be "fizz" (1 0), "buzz" (0 1), "fizzbuzz" (1 1), or the number itself (0 0 1). | |
| | | | |
warsoflouisxiv.blogspot.com
|
|
| | | Can you tell I am enjoying this? New life into old drawings. | ||