Weed…like Mint

Categories: Uncategorized

If you enjoy a mint, you might want to try weed… it’s an open-source project that is similiar to mint, the web site traffic statistical package. If you want to try, just add the following to your web site:

<script src='http://weed.rbse.com/javascripts/weed.js' type='text/javascript'></script>
Read More

Changing GIF image color palette

Categories: Uncategorized

An interesting piece of code using coldfusion, that allows you to change the color in a .gif image:

<cfscript>  imagepath = "relative/path/to/image.gif";  templatepath = "absolutepath	oimage	emplate.gif";  desiredcolor = Replace(form.newcolor, "##", "", "one");  originalcolor = "E0F0FF"</cfscript><cfif Not FileExists(imagepath)>  <cffile action="readbinary" file="#templatepath#" variable="binimg" />  <cfscript>    binencode = BinaryEncode(binimg, "Hex");    newimage = Replace(binencode, originalcolor, dividercolor, "one");    bindecode = BinaryDecode(newimage, "Hex");  </cfscript></cfif><cffile action="write" file="#imagepath#" output="#bindecode#" addnewline="No" />
Read More

Who will get AOL’s users?

Categories: Uncategorized

The fight for the millions of AOL users is on, and Microsoft(MSFT) and Google (GOOG) have been working Time Warner for months.

The skinny:

AOL will prabably accept Microsoft’s offer becuase they are willing to guarentee returns to the Time Warner (TWX) executives and stockholders. It seems that this will lower the risk for Time Warner, which is TimeWarner’s incentive for selling the AOL division; which has put a burden on management and stockholders since the it was acquired. The stock price for TimeWarner has gone from over $50 a share, to the current $17.76 per share with a P/E of 31.32.

Read More

Getting Apache to recognize ruby on rails application

Categories: Uncategorized

  1. In order to get Apache to run your ruby application, there are a couple of steps that should be followed: Ensure that you have the handler and rewrite rule added to your .htacess file in the public folder:
    AddHandler fastcgi-script .fcgiRewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

  2. If your typo installation is in a subdirectory, you have to have the ReWrite in your .htaccess file to forward the user to the public folder. If you do not want to use Apache to do this, you can use a SymLink:
    ln -s [target] [link-name]
  3. Make sure you chmod 755 the dispatch.fci file in the public folder:
    chmod 755 dispatch.fci
  4. If you are still have problems, check your database.yml file to make sure you have the database setup properly.
Read More