Archive for the ‘Blog’ Category
-
Server Load for android 2.1
Server load is open source widgets for android that retrieve your current server average load and display it on a widget on your android home screen, you can add more widgets for each server. The widget will update every 30 min to display your server’s current average load. Check the php example for extracting your [...]
-
Firefox chrome function : Read/write file on disk
tested on Firefox 7.0.1 const Ci = Components.interfaces; const Cc = Components.classes; function ReadWrite( data ){ try{ Components.utils.import("resource://gre/modules/NetUtil.jsm"); [...]
-
Support Egypt Revolution
Show your support for the Egyptian revolution by adding this code to your website and blog <img border="0" id="corner-ad" src="http://gadelkareem.com/tmp/jan25.jpg" width="222" height="111" /> <style>#corner-ad { display: block; width: 222px; height: 111px; position: fixed; top: -16px; right: -70px; [...]
-
jQuery plugin : monnaTip 0.1
This the simplest tooltip jQuery plugin you can find around. features: takes advantage of live(), mouseenter and mouseleave methods tracks mouse movement right and bottom viewport border tracking can be applied on any element Demo – download – Google code
-
use name attribute for input instead of id for use with label
you need Jquery: <label for="myinput"></label><input name="myinput" type="text" value="text here" /> $(‘label’).live(‘click’, function(e){ if( $(e.target).is(‘:input’) ) return; var i = $(‘:input[name="' + $(this).attr('for') + '"]‘) i.is(‘:checkbox’) ? i.attr(‘checked’, !i.attr(‘checked’) ) : i.focus().select(); })
-
Convert html to vbcode and post to vbulletin
using vbulletin files : chdir(‘/path/to/forum’); define(‘THIS_SCRIPT’, ‘login’); require_once( ‘./global.php’); require_once( DIR . ‘/includes/functions_wysiwyg.php’ ); echo convert_wysiwyg_html_to_bbcode(‘<i>hello world</i>’); using external function :
-
Configure sendmail to accept emails only if “from”, “to” or specific field matches
you can exclude an email address or even a host that is spamming you using the access file located in your etc directory, the bad news is that it does not support regex or even wildcards.
-
Sort Unix processes on ps by highest memory usage
just a snippet, –sort is not good for me..try ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r | more
-
Sitemap Creator 0.2a: Create sitemaps 09 valid for Google, Yahoo, MSN, Ask.com and moreover sitemaps
New Sitemap Creator Beta available Sitemap Creator 0.2a is different from version 0.1, The script now is able to crawl/spider your website, create your sitemaps, ping Google, Yahoo, MSN, Ask.com, moreover.com with the location of your sitemaps and send you alerts by email when sitemaps are created or crawled by the search bot. The crawler [...]
-
Fixing Flickr FAlbum rewrite rules, thumbnails, javascripts and more …
This is not working anymore FAlbum is a WordPress Plug-in that adds your Flickr photo albums to your blog without redirecting the viewer to Flickr or leaving your blog. It is very useful and unique, I have always needed that plugin on my blog, however, some features needed a lot of digging into the code [...]
-
BPEL4WS Series
Process Modeling Abstract In this article, we will walk through modeling a sample process using the Business Process Execution Language for Web Services. This article uses Sybase PowerDesigner as the modeling tool and J2EE 1.4 as the programming and deployment platform. The article assumes basic knowledge of BPEL4WS, UML, WSDL and J2EE technologies.
-
GoodBye IE6..please don’t come back!
Since IE6 was released it has been a pain for every designer, the browser has its own world leaving behind web standards, forcing designers to add hacks, extra code and scripts just to fix its stupid bugs, bugs and more Bugs.
-
Dynamic Content Caching using Lighty + mod_magnet + lua
*Updated 11 Jan 2007 to include luazlib, fix lighty config file and add zlib decoding to cache.lua for older browsers Since I read the documentations for mod_cml, I was very excited to use this module since caching using PHP running as FastCGI is not helping much during server peak load. However, mod_cml was replaced by [...]
-
Compressing your HTML, CSS and Javascript using simple PHP Code
Although Compression is a very important method of making your pages lighter and easier for users to download, it’s definitely going to cost you more CPU and on high load servers it’s not recommended unless you already know how to cache your HTML pages.
-
Google rank is the 14th on “search” query while Live is the 1st
is it a googlebot failure? or Google is not into SEO ? check : http://www.google.com/search?q=search
-
install / compile MYSQL 5 on RHEL / CentOS 4
There not much performance difference between MYSQL 4 and 5 as far as you’re not using mysqli ext for your PHP scripts, but it nice to find rpms ready on Centos.org which makes the job much easier.
-
Using iptables to block ips that spam or attack your server
Why should you do that while APF or CSF can do it automatically? Because APF/CSF could block an important bot testing your server to add to search index. So reviewing every ip would be a daily task! Ok, so how? using RHEL4, centos4
-
get an array containing random integers between $min and $max integers
Trying to pick up random keys from an array but don’t want any duplicates? try this
-
Using Google AJAX API to copy google results in array
This is some way you can get Google results as a JavaScript array that you can display on any page, you first need to get your Google API Key then try this code…
-
Sitemap Creator 0.1 : Create Sitemaps 0.9 valid for Google, Yahoo! and MSN Sitemaps
New Sitemap Creator 0.2a available Sitemap Creator is a php script making use of the announced new standard SiteMaps protocol supported by Google, Yahoo and MSN.
