www.alertonfailure.com Free BBDisplay and BBpager Monitor Service under development

Alert On Failure

  

 The Engineers at Squidworks are building another free web services site. AlertOnFailure.com is the first free public BBDisplay and BBpager compatible service available on the web. It takes the well known BB model of delivering data and packages a large scale MySql Database schema around it and a world class web interface to

Alert On Failure

  

 The Engineers at Squidworks are building another free web services site. AlertOnFailure.com is the first free public BBDisplay and BBpager compatible service available on the web. It takes the well known BB model of delivering data and packages a large scale MySql Database schema around it and a world class web interface to view and manager the data collected. The clients are freely available across the Internet, some off the better clients are BBwin, XYMon and BB4.org. If you ever used BB, Hobbit or XYmon then this will be a great experence for you.

www.AlertOnFailure.com

Hobbit / XYMON / Big Brother

Get EPOCH using DATE function on linux

If you need epoch from a shell cmd line on a linux system the date cmd is a great way to do it.
date +%s -d “$a”
This code by will print epoch out at the cmd line in a ssh window or terminal window

If you need epoch from a shell cmd line on a linux system the date cmd is a great way to do it.
date +%s -d "$a"
This code by will print epoch out at the cmd line in a ssh window or terminal window

ELGG Plugin : My Online Friends Messenger

Here is a plugin for ELGG community web framework created to popout from side of browser and show your active friends by name and picture. Each online friend listed is hyperlinked back the the email composer with that friends ID pre posted. The plugin show users as active (5 minutes) and inactive (10 minutes) variations .

myfriends-1.0.tar

Here is a plugin for ELGG community web framework created to popout from side of browser and show your active friends by name and picture. Each online friend listed is hyperlinked back the the email composer with that friends ID pre posted. The plugin show users as active (5 minutes) and inactive (10 minutes) variations .

myfriends-1.0.tar

Howto Install ImageMagick and PHP imagick extension on CentOS 5

Howto install imagemagick and PHP imagick extension on Linux CentOS 5 LAMP server. It is pretty simple really

yum install ImageMagick.i386
yum install ImageMagick-devel.i386
pecl install imagick

After the installation, create an inclusion file in your /etc/php.d directory for imagick.so module and then restart apache daemon:

echo “extension=imagick.so” > /etc/php.d/imagick.ini
/etc/init.d/httpd restart

Test the loading of the module by running:

php -m | grep imagick

Howto install imagemagick and PHP imagick extension on Linux CentOS 5 LAMP server. It is pretty simple really

yum install ImageMagick.i386
yum install ImageMagick-devel.i386
pecl install imagick

After the installation, create an inclusion file in your /etc/php.d directory for imagick.so module and then restart apache daemon:

echo "extension=imagick.so" > /etc/php.d/imagick.ini
/etc/init.d/httpd restart

Test the loading of the module by running:

php -m | grep imagick

Howto: MySQL Full Text Search in PHP

This tutorial is intended for Text Searching using MySQL (http://www.MySQL.com/) and PHP (http://www.php.net) and will focus on the Full-text capabilities presented by MySQL.

Synopsis

We run a website that hosts web blogs, we have a database that contains blog posts. We might create a table in our database using a statement like this:

CREATE TABLE blogs (body TEXT, title VARCHAR(250), id INT NOT NULL auto_increment, PRIMARY KEY(id);
 

This tutorial is intended for Text Searching using MySQL (http://www.MySQL.com/) and PHP (http://www.php.net) and will focus on the Full-text capabilities presented by MySQL.

Synopsis

We run a website that hosts web blogs, we have a database that contains blog posts. We might create a table in our database using a statement like this:

CREATE TABLE blogs (body TEXT, title VARCHAR(250), id INT NOT NULL auto_increment, PRIMARY KEY(id);
 
 
 
 
 

 

How to modify your current database to accommodate Full-text searching.

Now we want to provide a simple search form and the ability to search keywords from the body field in the table “blog” of your database. First you will need to turn on Full Text Search for the table “blog” in your MySql database. Here is how to do that in MySql.

ALTER TABLE blog ADD FULLTEXT(body, title);

How to use a simple Full-text search to quickly gather relevant responses.

Lets create our PHP form and database query to support our search. I normally create a single php file called “search.php” then I “include(“search.php”)” where ever I want my search form and returning search data go but I can see where you may want to split this up and have the form and returning data in different areas so change as you see fit.

search.php
<?php
$keyword = $_POST[‘keyword’];
//we will assume your including this search in your index.php
//if not replace index wiht search.php or any page your going to do the sql query and display
//from.
?>
<h2>Search Our Archives</h2>
<form action=”index.php” enctype=”application/x-www-form-urlencoded” method=”post”>
<input name=”keyword” type=”text” />
<input type=”submit” value=”Search” />
</form>
<br>
<?php
if ($keyword != ”) {

        mysql_connect(“localhost”, “username”, “password”);

        mysql_select_db(“database_name”);

        $sql = ”
            SELECT body,
                MATCH(body) AGAINST(‘$keyword’) AS score
                FROM blog
            WHERE MATCH(body) AGAINST(‘$keyword’)
            ORDER BY score DESC
        “;
        $myresult = mysql_query($sql);
            while($row = mysql_fetch_array($myresult)) {
                echo “<table border=”0″><tbody><tr>”;
                echo “<td>Search – SCORE</td><td>Content</td></tr>”;
                echo “<tr><td><strong>” . $row[‘score’] . “</strong></td>”;
                echo “<td>” . $row[‘body’] . “</td></tr>”;
                echo “</tbody></table>”;
            }
    }
?>

This search.php makes a quick and easy Full Test Search form and display for the data. It checks $keywords to validate data before displaying the data in a table. It includes the MySQL score returned by the Full Text Search. I hope this helps someone out there get a search up and running fast.

Enjoy..

ThumbMyWeb.com – Free website thumbnail generator service launching

[caption id="attachment_157" align="alignleft" width="500" caption="Free website thumbnail generator"]Free website thumbnail generator[/caption]

Squidworks is launching a new web service that provides free website thumbnails and image hosting. The free service allows the user to submit a website url to the thumbnail generator, the generator will go and create a thumbnail image of the website as seen in a Firefox browser. The

Free website thumbnail generator
Free website thumbnail generator

Squidworks is launching a new web service that provides free website thumbnails and image hosting. The free service allows the user to submit a website url to the thumbnail generator, the generator will go and create a thumbnail image of the website as seen in a Firefox browser. The website thumbnail generator will then update that image regularly and allow the user to either download image or link to the image letting us host the image for them. The value with allowing us to host image is your images updates at the same time we update our archive, this keeps the image fresh on your sites.

We are able to make automated services like this by using Linux servers with X installed. We use a Virtual Frame Buffer and launch a browse inside the VFB. We send in the URL’s to the Firefox browser, wait a second for site to load and then snapshot the buffer. We pipe that snapshot to our image manipulation software where we re-size and convert image to a format usable on the internet. Taking thumbnails in this fashion allows us to use browser plugin’s like Flash player and Java which greatly improve the quality of the thumbnail snapshot. Our website thumbnail images shows you the true view the designer intended.

Please visit www.thumbmyweb.com and add your favorite URL’s to our archive. Browse through our image gallery and see all the webs we have in our archives. We just might have yours..

Building lawsofaquisition.com website

Rules of Acquisition Tailored after the Rules of Acquisition, lawsofaquision.com is supplying free str trek downloads, fonts wallpaper and great trivia about the world of StarTrek.
Go checkout www.lawsofaquisition.com for free startrek swag

Rules of Acquisition Tailored after the Rules of Acquisition, lawsofaquision.com is supplying free str trek downloads, fonts wallpaper and great trivia about the world of StarTrek.
Go checkout www.lawsofaquisition.com for free startrek swag.

Remove CRLF from windows PHP files.

I have had a few guys ask me, Shannon I have a Windows guy developing web aps in PHP but I run them on a Linux (LAMP) system. Some times the code seems to fail and I find the files populated with Carrage Return Line Feed or better seen while looking at a windows file on a linux system in a text editor ( ^M ). This has been know

I have had a few guys ask me, Shannon I have a Windows guy developing web aps in PHP but I run them on a Linux (LAMP) system. Some times the code seems to fail and I find the files populated with Carrage Return Line Feed or better seen while looking at a windows file on a linux system in a text editor ( ^M ). This has been know to have adverse effects on LAMP systems at times and could cause web errors.

Great we now know the why.. How do we fix it?

Simple, Linux provides the program to review a file and make the mods and we can the loop it through a directory to do all files. Here is the cmd you want to use.
find (path to top level folder) -type f -exec dos2unix {} \;

We use the program “find” to get and pipe our files to the cmd dos2unix which is the program that is actually doing the repairs. We use both programs together to produce the desired effect of removing all CRLF from a directory of windows files like a php website.

Remember always backup your files first, be safe.

Free network tools now available at Quantumleaps.com

Quantumleaps.com is now offering a wide verity of network tools free. Tools includes a free Website monitor, free domain monitor and free ping alive monitor. Each of these monitors comes with free alerting and graphing services. www.quantumleaps.com has also a suite of free simple network tools like IP calculators, DNS Sleuth, Domain error checking, Ping, Trace route, Geo location of IP addresses and whois lookups. Truely a one stop shop

Quantumleaps.com is now offering a wide verity of network tools free. Tools includes a free Website monitor, free domain monitor and free ping alive monitor. Each of these monitors comes with free alerting and graphing services. www.quantumleaps.com has also a suite of free simple network tools like IP calculators, DNS Sleuth, Domain error checking, Ping, Trace route, Geo location of IP addresses and whois lookups. Truely a one stop shop for all your network needs.