Tweet If you use WP-insert for wordpress to inject ads into your posts, and wanted to exclude certain pages from triggering this plugin, you’ll notice that “browse” button in section “Exclude Pages/Posts” icon doesn’t work. I fixed this and commented on the blog of the plugin’s author where people complain about this but apparently, my [...]
Category Archives: web 2.0
How to calculate number of lines in PHP
Posted by taewoo on October 19, 2010
0 comments
Tweet If you search for this topic in a search engine, most of them will tell you that the best way is: count(explode(“\n”, $line)); But it’s not the most efficient. It’s actually substr_count($line, “\n”); On my workstation, running this 500,000 times on a line of 380 lines shows that substr_count executes in 19 seconds whereas [...]
How to Scrape Mixergy for Audio Content
Posted by taewoo on September 1, 2010
0 comments
Tweet If you’re a nerd and care about what other nerds (especially about tech companies) have to say, Mixergy is a good source of audio interviews. If you’re too lazy to click on each link and look for mp3 and wanna download the “whole site”, here’s how: 1) get sitemap.xml 2) curl each page in [...]