Search Results
Monday, August 18th, 2008
If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!So after about 2 months on slicehost, I have yet to finish setting up my server. It seems to be the busy season and I’ve only been able to finish my local servers.
So to recap I know have a […]
Sunday, August 17th, 2008
just a quick tip for anyone using .inc files via apache.
add the following to your apache configuration to prevent viewing of .inc files via the web. This will not prevent php from including the files locally
<FilesMatch “\.inc$”>
Deny From All
</FilesMatch>
There ya go, now feel free to use .inc files as much as you’d like. Also an […]
Friday, August 15th, 2008
I don’t remember if i’ve already posted this.
Sometimes you need to extract a domain name from a url. The following regex will do just that regardless of subdomains, etc.
/^[a-z0-9.-]*?[.]{0,1}([a-z0-9-]*?\.[a-z.]{2,7})$/i
Wednesday, August 6th, 2008
I got a T_PAAMAYIM_NEKUDOTAYIM error in php a few days ago. I feel special as this appears to be considered an elusive error, but then again I’ve been feeling special since yellow buses.
heres what created my error :
if(empty(SOME_SYSTEM_DEFINED_CONST))
You can find out more here:
www.johnlamansky.com/blog/t_paamayim_nekudotayim/
Monday, July 7th, 2008
When you first install centos 5, you’ll notice your unable to build from source (make / make install)
On ubuntu theres a package called build-tools that contains everything you need to build from source.
On centos you install them individually :
yum install gcc gcc-c++ autoconf automake rpm-build make which libtool
Or install everything you’ll need […]
Friday, May 9th, 2008
I have a friend I’m teaching foundation security to. This post is for him, but also as a protest to some of the materials I’ve found when looking for reference material for him.
Security at it’s simplest form is common sense. ask yourself, how can I make sure I get exactly what I want? How do […]
Thursday, May 8th, 2008
After months trying to figure out a name to use for releasing the code thats been sitting in my head: I Was Sams Reeses came to be while working on bacon 100%.
So keep an eye out for it, the preview of bacon should be going sometime within the next 6 weeks ( It better […]
Sunday, May 4th, 2008
So last night I decided it would be pretty cool and take the information access process from the DOD and figure out how you could apply them to a php application.
After a few hours spec’ing out the system i got to coding. I now have a quick and easy class I call Cryption. Its built […]
Wednesday, April 23rd, 2008
Having issues getting wp-cache and apc to play nice? So was mark, luckily he found the answer so I can link to him
APC (Alternative PHP Cache) is great for WordPress. It caches the
compiled WordPress PHP files and greatly speeds up subsequent loads. I
even wrote a WordPress plugin to make WordPress store its objects in
APC instead […]
Wednesday, April 23rd, 2008
Keep an eye on this project. libin at libinpan.com has started a wordpress plugin to translate your text using ajax and google’s translation service
Google just released a new API yesterday: Google AJAX Language API.
AJAX Language API is built on top of Google Translate, it current supports 13 languages and 29 translation pairs. It is new […]