Monthly Archive for January, 2009

This site has some good info on ioncube error "requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator"

Read Full Post »

onClick="if($F(sandbox)) {$('customer_contact').show();} else {$('customer_contact').hide();}"

Read Full Post »

Replace parent DIV using this

onClick="this.parentNode.innerHTML='hihi'"

Read Full Post »

UPDATE demo_instances a, fullname bSET a.owner = b.usernameWHERE a.owner = b.fullname

Read Full Post »

Interesting site for Y generation

http://www.brazencareerist.com/

Read Full Post »

Microsoft Clip Art has a free site with 150,000 free images and sounds. It's a great resource for designers or artists to find something quick and mess with it.

Read Full Post »

Trick is to include the Mark of the Web after doctype declaration.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!– saved from url=(0014)about:internet –>

Read Full Post »

<a href="[^>]*[>]

Read Full Post »

<!–(.|[\n\r])*.*–>

Read Full Post »

Yun Ye and his domain empire

I was reading some articles about Yun Ye and find it fascinating. He is such a mysterious person who made over a hundred million with his domain portfolio. Just incredible story.

Read Full Post »

Google Search-based Keyword Tool

http://www.google.com/sktool
The new tool by Google makes it kind of useful for advertisers to find out search term popularity as well as suggested bidding. Might also be useful for publishers as well who use adsense.

Read Full Post »

I like asciiomatic

It's fun and beautiful design. Check it out at http://www.typorganism.com/asciiomatic/

Read Full Post »

Bigpatterns.com is great!!

I really like the simpleness and execution. It allows you to preview patterns on your page.

Read Full Post »

Softpedia.comMajorGeeks.com
These 2 sites have some amazing way of making google ads look like their content.

Read Full Post »

PHP related links code

I thought this article was interesting on finding related items using PHP and mySQL. I am thinking of building my own meme tracker. Sort of like techmeme in some ways but not tech related. And can be run on PHP shared hosting. Haha.. that's pretty hard I think but I think it might be fun [...]

Read Full Post »

Google's new Favicon

When the purple "g" first came out, I always thought it was a bit to muted. Not enough contrast with other people's favicons when I have multiple tabs open on Firefox. But the new version… hmm… I think it's probably best not to be too negative these days. There is enough negativity in the press [...]

Read Full Post »

I just want to say one of the most useful sites on the Net is Microwavedisplay.com. I had some problems with my Kitchenaid KHMS155LSS and I emailed William E. Miller at Microwavedisplay.com and he emailed me back the next day with some really useful advice for my broken microwave.
Anyways, Microwavedisplay.com is a great place to [...]

Read Full Post »

Some good WordPress Themes

I really enjoy the list of themes by Smashing Magazine.

Read Full Post »

It just stopped working for no reason. Not sure what happened. I am running Firefox 3.0.5 and when I type something in the search box and press ENTER, nothing happens. Anyone know?

Read Full Post »

I found the solution to install Ioncube Loader on Dreamhost and it's quick and simple. Just run the PHP file and it does the rest and your script will automatically work. It's quite astonishing and brilliant!
You can find the original forum post here. The author is by sXI
But if somehow it's not there, I kept [...]

Read Full Post »

found this somewhere on the net
function strip_all_HTML($content) {    $search = array('/<\?((?!\?>).)*\?>/s');    $new = strip_tags(preg_replace($search, ", $content));    return $new;}
this function strips out everything STARTING with <a
function strip_starting_LINK($content) {    $search = array('/\<a..*/s');    $new = preg_replace($search, ", $content);    return $new.'…';}

Read Full Post »

http://editplus.info/wiki/Search_and_Replace_Tricks

1 Suppress all empty lines
2 Suppress all non-empty lines
3 Comment out lines
4 Comment lines
5 Join lines
6 Split lines
7 Remove all leading spaces and tabs from every line
8 Remove all trailing spaces and tabs from every line
9 Remove consecutive spaces
10 Fix punctuation
11 Wrap a tag pair around a text
12 Delete everything inside a tag pair (keeping [...]

Read Full Post »

Sitepoint.com has a marketplace selling premium websites for $10K or above. I wonder how honest are these ads and sites. Has anyone experienced buying or selling a site there? Drop me a comment.

Read Full Post »

There's a great article on error handling in PHP.

Read Full Post »

Lets say you want to copy php.ini to all the domain directors in hostgator (but NOT the subfolders). Here's something that you can do. Just create a file called php_modifed.php and do your settings there. And copy that file and this file to the base directory and run the PHP script.
<?php        function dirTree($dir) {
    [...]

Read Full Post »

This post tells how to create php.ini symbolic links in all your domain folders and subfolders. But what if you want to get rid of them? I edited the script to delete them in case you dont want it anymore.
<?php
// File and path names for your host and website.$host_php_ini  = "/usr/local/lib/php.ini";     // your host's php.ini [...]

Read Full Post »

PHP file_get_contents require allow_url_fopen to be ON in php.ini. Not a problem for hostgator since it is ON by default. But that might be dangerous (or not). Anyways, just to be safe, I turned it off in php.ini and wrote a function to replace it using curl. I got the code from this page and [...]

Read Full Post »