Tips 'n Tricks

Neko

PHP Benchmark: Calculate loop length in advance

0

As shown and tested on www.phpbench.com, calculating the size of your loop in advance can be a huge performance boost. Makes sense of course, still the nature of PHP could lead you to believe that there’s an optimization in place, even if there’s little sound logic supporting it.

1
2
3
4
// Faster
for ($i=0; $i < $size; $i++)
// Slower
for ($i=0; $i < sizeOf($x); $i++)
Count Benchmark

Count Benchmark

Neko

Improving Windows searches with Indexing Options

0

The Windows 7 omni-search-run bar is great at reducing icon clutter and much more, however when one has his own directory structure for applications, say c:\apps\dev, c:\apps\security, … Windows won’t automatically add those folders to its indexing plan. The other problem is locations like /Users and download dumps can create bogus results.

Here’s where Indexing Options show their strength. The Indexing Options FAQ at Microsoft’s website explains how to customize your search index.

Typing Indexing Options in the search bar should bring up the settings panel and after selecting “Modify” new location and exclusion rules can be set.

Indexing Options

Indexing Options

Animated

4chan – How to bypass wordfilters

3

Using zero-width characters

Animated

There are several Unicode characters that don’t display anything but are used for special text-marking purposes. These can be used within a word so that it doesn’t match the filter. Some of these are as follows, listed between the “si” and “nep”:

sinep – Soft hyphen, character U+00AD (you can type this with Alt + 0173)
sinep – Zero width non-joiner, character U+200C
sinep – Zero width joiner, character U+200D
sinep – Left to right mark, character U+200E
sinep – Left to right embedding, character U+202A
sinep – Left to right override, character U+202D

There are others that work too. Also, the right to left markings can have an interesting effect on your posts.

Shamelessly stolen from 4chan.org

Go to Top