மலை ராமர் கோவில்

on Thursday, October 22, 2009

திருநெல்வேலி மாவட்டத்தில் ஆலங்குளம் வட்டாரத்தில் ராமர் கோவில் அமைந்துள்ளது. இக்கோவிலில் அனைத்து இந்து மத தெய்வங்களின் சிலைகள் மிகவும் அழகான முறையில் செய்யப்பட்டுள்ளது.

ஸ்ரீ ராமபிரான் இம்மலை மீது ஏறி நின்று தெற்கு நோக்கி ஒரு காலை ஊன்றியும் ஒரு காலை தூக்கி கூர்ந்து நோக்கினார். எனவே இம்மலைக்கு "ஒக்க நின்றான் மலை" என்று பெயர் வந்தது என புராண வரலாறு கூறுகிறது.

மலை ராமர் கோவில் புகைப்படங்கள்



மலைக்கு செல்லும் பாதை



திருப்பாற்கடல் நுழைவு வாயில்



திருப்பாற்கடல்












தாமரைக்குளம் ஸ்ரீ மகாலக்ஷ்மி



கிருஷ்ணன் சிலை



மலை ராமர் கோவில் வீடியோ தொகுப்பு



மேலும் விபரங்களுக்கு: +91-9865906518

ஐ. (ஹை) டி. : என்னதான் பண்றோம்?

on Friday, September 4, 2009

"ஏம்பா இந்த கம்ப்யூட்டர் படிச்சவங்க எல்லாம் நிறைய சம்பளம் வாங்கிட்டு, பந்தா பண்ணிட்டு ஒரு தினுசாவே அலையுறீங்களே? அப்படி என்னதான் வேலை பார்பீங்க?" - நியாயமான ஒரு கேள்வியை கேட்டார் எனது அப்பா. நானும் விவரிக்க ஆரம்பிதேன்.

"வெள்ளைகாரனுக்கு எல்லா வேலையும் சீக்கிரமா முடியனும். அதே மாதிரி எல்லா வேலையும் அவனோட வீட்டுல இருந்தே செய்யணும். இதுக்காக எவ்வளவு பணம் வேணுமானாலும் செலவு செய்ய தயாரா இருக்கான்."

"அது சரி பல்லு இருக்குறவன் பக்கோடா சாப்பிடுறான்".

"இந்த மாதிரி அமெரிக்கால்-ல, இங்கிலாந்து-ல இருக்குற Bank, இல்ல எதாவது கம்பெனி, "நான் செலவு செய்ய தயாரா இருக்கேன். எனக்கு இத செய்து கொடுங்க கேப்பாங்க. இவங்கள நாங்க "Client"னு சொல்லுவோம்.

"சரி"

"இந்த மாதிரி Client-அ மோப்பம் பிடிக்குறதுக்காகவே எங்க பங்காளிக கொஞ்ச பேர அந்த அந்த ஊருல உக்கார வச்சி இருப்போம். இவங்க பேரு "Sales Consultants, Pre-Sales Consultants....". இவங்க போய் Client கிட்ட பேச்சுவார்த்தை நடத்துவாங்க. காசு கொடுகுறவன் சும்மாவா கொடுப்பான்? ஆயிரத்தெட்டு கேள்வி கேப்பான். உங்களால இத பண்ண முடியுமா? அத பண்ண முடியுமான்னு அவங்க கேக்குற எல்லாம் கேள்விக்கும், "முடியும்"னு பதில் சொல்றது இவங்க வேலை.

"இவங்க எல்லாம் என்னப்பா படிச்சுருபாங்க"?

"MBA, MSனு பெரிய பெரிய படிபெல்லாம் படிச்சி இருப்பாங்க."

"முடியும்னு ஒரே வார்த்தைய திரும்ப திரும்ப சொல்றதுக்கு எதுக்கு MBA படிக்கணும்?" - அப்பாவின் கேள்வியில் நியாயம் இருந்தது.

"சரி இவங்க போய் பேசின உடனே client project கொடுத்துடுவானா?"

"அது எப்படி? இந்த மாதிரி பங்காளிக எல்லா கம்பெனிளையும் இருப்பாங்க. 500 நாள்ல முடிக்க வேண்டிய வேலைய 60 நாள்ள முடிச்சு தரோம், 50 நாள்ல முடிச்சு தரோம்னு பேரம் பேசுவாங்க. இதுல யாரு குறைஞ்ச நாள சொல்றாங்களோ அவங்களுக்கு ப்ராஜெக்ட் கிடைக்கும்"

"500 நாள்ல முடிக்க வேண்டிய வேலைய 50 நாள்ல எப்படி முடிக்க முடியும்? ராத்திரி பகலா வேலை பார்த்தாலும் முடிக்க முடியாதே?"

"இங்க தான் நம்ம புத்திசாலித்தனத்த நீங்க புரிஞ்சிக்கணும். 50 நாள்னு சொன்ன உடனே client சரின்னு சொல்லிடுவான். ஆனா அந்த 50 நாள்ல அவனுக்கு என்ன வேணும்னு அவனுக்கும் தெரியாது, என்ன செய்யனும்னு நமக்கும் தெரியாது. இருந்தாலும் 50 நாள் முடிஞ்ச பிறகு ப்ரோஜெக்ட்னு ஒன்ன நாங்க deliver பண்ணுவோம். அத பாத்துட்டு "ஐய்யோ நாங்க கேட்டது இதுல்ல, எங்களுக்கு இது வேணும், அது வேணும்னு" புலம்ப ஆரம்பிப்பான்.
"
அப்புறம்?" - அப்பா ஆர்வமானார்.

"இப்போ தான் நாங்க நம்பியார் மாதிரி கைய பிசஞ்சிகிட்டே "இதுக்கு நாங்க CR raise பண்ணுவோம்"னு சொல்லுவோம்.

"CR-னா?"

"Change Request. இது வரைக்கும் நீ கொடுத்த பணத்துக்கு நாங்க வேலை பார்த்துட்டோம். இனிமேல் எதாவது பண்ணனும்னா எக்ஸ்ட்ரா பணம் கொடுக்கணும்"னு சொல்லுவோம். இப்படியே 50 நாள் வேலைய 500 நாள் ஆக்கிடுவோம்."

அப்பாவின் முகத்தில் லேசான பயம் தெரிந்தது.

"இதுக்கு அவன் ஒத்துபானா?"

"ஒத்துகிட்டு தான் ஆகணும். முடி வெட்ட போய்ட்டு, பாதி வெட்டிட்டு வர முடியுமா?"

"சரி ப்ராஜெக்ட் உங்க கைல வந்த உடனே என்ன பண்ணுவீங்க?"

"முதல்ல ஒரு டீம் உருவாக்குவோம். இதுல ப்ராஜக்ட் மேனேஜர்னு ஒருத்தர் இருப்பாரு. இவரது தான் பெரிய தலை. ப்ராஜெக்ட் சக்சஸ் ஆனாலும், ஃபெயிலியர் ஆனாலும் இவரு தான் பொறுப்பு."

"அப்போ இவருக்கு நீங்க எல்லாரும் பண்ற வேலை எல்லாம் தெரியும்னு சொல்லு."

"அதான் கிடையாது. இவருக்கு நாங்க பண்ற எதுவும்யே தெரியாது."

"அப்போ இவருக்கு என்னதான் வேலை?" - அப்பா குழம்பினார்.

"நாங்க என்ன தப்பு பண்ணினாலும் இவர பார்த்து கைய நீட்டுவோம். எப்போ எவன் குழி பறிப்பானு டென்ஷன் ஆகி டயர்ட் ஆகி டென்ஷன் ஆகுறது தான் இவரு வேலை."

"பாவம்பா"

"ஆனா இவரு ரொம்ப நல்லவரு. எங்களுக்கு எந்த பிரச்னை வந்தாலும் இவரு கிட்ட போய் சொல்லலாம்."

"எல்லா பிரச்னையும் தீர்த்து வச்சிடுவார?"

"ஒரு பிரச்சனைய கூட தீர்க்க மாட்டாரு. நாங்க என்ன சொன்னாலும் தலையாட்டிகிட்டே உன்னோட பிரச்னை எனக்கு புரியுதுனு சொல்றது மட்டும் தான் இவரோட வேலை."

"நான் உன்னோட அம்மா கிட்ட பண்றது மாதிரி?!"

"இவருக்கு கீழ டெக் லீட், மோடுல் லீட், டெவலப்பர், டெஸ்டர்னு நிறைய அடி பொடிங்க இருப்பாங்க."

"இத்தனை பேரு இருந்து, எல்லாரும் ஒழுங்கா வேலை செஞ்சா வேலை ஈஸியா முடிஞ்சிடுமே?"

"வேலை செஞ்சா தானே? நான் கடைசியா சொன்னேன் பாருங்க... டெவலப்பர், டெஸ்டர்னு, அவங்க மட்டும் தான் எல்லா வேலையும் செய்வாங்க. அதுலையும் இந்த டெவலப்பர்,வேலைக்கு சேரும் போதே "இந்த குடும்பத்தோட மானம், மரியாதை உன்கிட்ட தான் இருக்குனு" சொல்லி, நெத்தில திருநீறு பூசி அனுப்பி வச்ச என்னைய மாதிரி தமிழ் பசங்க தான் அதிகம் இருப்பாங்க."

"அந்த டெஸ்டர்னு எதோ சொன்னியே? அவங்களுக்கு என்னப்பா வேலை?"

"இந்த டெவலப்பர் பண்ற வேலைல குறை கண்டு பிடிக்கறது இவனோட வேலை. புடிக்காத மருமக கை பட்டா குத்தம், கால் பட்டா குத்தம் இங்குறது மாதிரி."

"ஒருத்தன் பண்ற வேலைல குறை கண்டு பிடிகுறதுக்கு சம்பளமா? புதுசா தான் இருக்கு. சரி இவங்களாவது வேலை செய்யுராங்களா. சொன்ன தேதிக்கு வேலைய முடிச்சு கொடுத்துடுவீங்கள்ள?"

"அது எப்படி..? சொன்ன தேதிக்கு ப்ராஜக்டை முடிச்சி கொடுத்தா, அந்தக் குற்ற உணர்ச்சி எங்க வாழ்கை முழுவதும் உறுத்திக்கிட்டு இருக்கும். நிறைய பேரு அந்த அவமானத்துக்கு பதிலா தற்கொலை செய்துக்கலாம்னு சொல்லுவாங்க"

"கிளையன்ட் சும்மாவா விடுவான்? ஏன் லேட்னு கேள்வி கேக்க மாட்டான்?"

"கேக்கத்தான் செய்வான். இது வரைக்கும் டிமுக்குள்ளையே காலை வாரி விட்டுக்கிட்டு இருந்த நாங்க எல்லாரும் சேர்ந்து அவன் காலை வார ஆரம்பிப்போம்."

"எப்படி?"

"நீ கொடுத்த கம்ப்யூட்டர்-ல ஒரே தூசியா இருந்துச்சு. அன்னைக்கு டீம் மீட்டிங்ல வச்சி நீ இருமின, உன்னோட ஹேர் ஸ்டைல் எனக்கு புடிகலை." இப்படி எதாவது சொல்லி அவன குழப்புவோம். அவனும் சரி சனியன எடுத்து தோள்ல போட்டாச்சு, இன்னும் கொஞ்ச நாள் தூங்கிட்டு போகட்டும்னு விட்டுருவான்".

"சரி முன்ன பின்ன ஆனாலும் முடிச்சி கொடுத்துட்டு கைய கழுவிட்டு வந்துடுவீங்க அப்படித்தான?"

"அப்படி பண்ணினா, நம்ம நாட்டுல பாதி பேரு வேலை இல்லாம தான் இருக்கணும்."

"அப்புறம்?"

"ப்ராஜக்டை முடிய போற சமயத்துல நாங்க எதோ பயங்கரமான ஒன்ன பண்ணி இருக்குற மாதிரியும், அவனால அத புரிஞ்சிக்க கூட முடியாதுங்கற மாதிரியும் நடிக்க ஆரம்பிப்போம்."

"அப்புறம்?"

"அவனே பயந்து போய், "எங்கள தனியா விட்டுடாதீங்க. உங்க டீம்-ல ஒரு ஒன்னு, ரெண்டு பேர உங்க ப்ரொஜெக்ட பார்த்துக்க சொல்லுங்கன்னு" புது பொண்ணு மாதிரி புலம்ப ஆரம்பிச்சிடுவாங்க." இதுக்கு பேரு "Maintanence and Support". இந்த வேலை வருஷ கணக்கா போகும்.

"ப்ராஜக்ட் அப்படிங்கறது ஒரு பொண்ண கல்யாணம் பண்ணி வீட்டுக்கு கூட்டிட்டு வர்றது மாதிரி. தாலி கட்டினா மட்டும் போது, வருஷ கணக்கா நிறைய செலவு செஞ்சு பராமரிக்க வேண்டிய விசயம்னு" இப்போ தான் கிளைன்டுக்கு புரிய ஆரம்பிக்கும்.

"எனக்கும் எல்லாம் புரிஞ்சிடுப்பா."

Just for fun Guys - :-) :-)

Free Web Classic icons

on Tuesday, August 25, 2009

Click here to download the icons package...

Finding Mac Address of a System Using PHP

on Friday, August 14, 2009

Hi,

Here is the coding for finding the mac address of a system using php.


__server_macaddress();
}
elseif( $what == 'client' )
{
return $this->__client_macaddress();
}
else
{
return '\'client\' or \'server\' ?';
}
}
function __server_macaddress()
{
$output = Array();
exec( 'netstat -r', $output );
for( $a = 0, $b = &count( $output ); $a < $b; $a++ ) { if( preg_match( "/(?i)([a-z0-9]{2} ){6}/", $output[$a] ) == true ) { $macaddress = &$output[$a]; $uniquekey = &md5( $macaddress ); $output[$a] = &preg_replace( "/(?i)([^a-z0-9]*?)([a-z0-9]{2} ){6}/i", "\\1 {$uniquekey} ", $output[$a] ); $output[$a] = &explode( " {$uniquekey} ", $output[$a] ); $uniquekey = Array( trim( $output[$a][0] ), trim( $output[$a][1] ) ); $macaddress = &str_replace( $uniquekey, "", $macaddress ); return trim( $macaddress ); } } return 'not found'; } function __client_macaddress() { $output = Array(); exec( 'nbtstat -A '.$_SERVER['REMOTE_ADDR'], $output ); $reg = '([a-f0-9]{2}\-){5}([a-f0-9]{2})'; for( $a = 0, $b = &count( $output ); $a < $b; $a++ ) { if( preg_match( "/(?i){$reg}/", $output[$a] ) == true ) { return preg_replace( "/(?iU)(.+)({$reg})(.*)/", "\\2", $output[$a] ); } } return 'not found'; } } /****************************************** this is currently set to accept 11 parameters, although you can add as many as you want: 1. safe - returns true/false, you can determine what makes the browser be safe lower down, currently it's set for ns4 and pre version 1 mozillas not being safe, plus all older browsers 2. ie_version - tests to see what general IE it is, ie5x-6, ie4, or ieMac, returns these values. 3. moz_version - returns array of moz version, version number (includes full version, + etc), rv number (for math comparison), rv number (for full rv, including alpha and beta versions), and release date 4. dom - returns true/false if it is a basic dom browser, ie >= 5, opera >= 5, all new mozillas, safaris, konquerors
5. os - returns which os is being used
6. os_number - returns windows versions, 95, 98, me, nt 4, nt 5 [windows 2000], nt 5.1 [windows xp],
Just added: os x detection[crude] otherwise returns false
7. browser - returns the browser name, in shorthand: ie, ie4, ie5x, op, moz, konq, saf, ns4
8. number - returns the browser version number, if available, otherwise returns '' [not available]
9. full - returns this array: $browser_name, $version_number, $ie_version, $dom_browser,
$safe_browser, $os, $os_number, $s_browser [the browser search string from the browser array], $type
10. type - returns whether it's a bot or a browser
11. math_number - returns basic version number, for math comparison, ie. 1.2rel2a becomes 1.2
*******************************************/
function browser_detection( $which_test )
{
static $dom_browser, $safe_browser, $browser_user_agent, $os, $browser_name, $s_browser, $ie_version,
$version_number, $os_number, $b_repeat, $moz_version, $moz_version_number, $moz_rv, $moz_rv_full, $moz_release,
$type, $math_version_number;
if ( !$b_repeat )
{
//initialize all variables with default values to prevent error
$dom_browser = false;
$type = 'bot';// default to bot since you never know with bots
$safe_browser = false;
$os = '';
$os_number = '';
$a_os_data = '';
$browser_name = '';
$version_number = '';
$math_version_number = '';
$ie_version = '';
$moz_version = '';
$moz_version_number = '';
$moz_rv = '';
$moz_rv_full = '';
$moz_release = '';
$webkit_types = '';
$webkit_version = '';
$b_success = false;// boolean for if browser found in main test

//make navigator user agent string lower case to make sure all versions get caught
// isset protects against blank user agent failure
$browser_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
// known browsers, list will be updated routinely, check back now and then
$a_browser_types[] = array( 'opera', true, 'op', 'bro' );
$a_browser_types[] = array( 'msie', true, 'ie', 'bro' );
$a_browser_types[] = array( 'konqueror', true, 'konq', 'bro' );
$a_browser_types[] = array( 'webkit', true, 'webkit', 'bro' );
// covers Netscape 6-7, K-Meleon, Most linux versions, uses moz array below
$a_browser_types[] = array( 'gecko', true, 'moz', 'bro' );
$a_browser_types[] = array( 'netpositive', false, 'netp', 'bbro' );// beos browser
$a_browser_types[] = array( 'lynx', false, 'lynx', 'bbro' ); // command line browser
$a_browser_types[] = array( 'elinks ', false, 'elinks', 'bbro' ); // new version of links
$a_browser_types[] = array( 'elinks', false, 'elinks', 'bbro' ); // alternate id for it
$a_browser_types[] = array( 'links ', false, 'links', 'bbro' ); // old name for links
$a_browser_types[] = array( 'links', false, 'links', 'bbro' ); // alternate id for it
$a_browser_types[] = array( 'w3m', false, 'w3m', 'bbro' ); // open source browser, more features than lynx/links
$a_browser_types[] = array( 'webtv', false, 'webtv', 'bbro' );// junk ms webtv
$a_browser_types[] = array( 'amaya', false, 'amaya', 'bbro' );// w3c browser
$a_browser_types[] = array( 'dillo', false, 'dillo', 'bbro' );// linux browser, basic table support
$a_browser_types[] = array( 'ibrowse', false, 'ibrowse', 'bbro' );// amiga browser
$a_browser_types[] = array( 'icab', false, 'icab', 'bro' );// mac browser
$a_browser_types[] = array( 'crazy browser', true, 'ie', 'bro' );// uses ie rendering engine
$a_browser_types[] = array( 'sonyericssonp800', false, 'sonyericssonp800', 'bbro' );// sony ericsson handheld

// search engine spider bots:
$a_browser_types[] = array( 'googlebot', false, 'google', 'bot' );// google
$a_browser_types[] = array( 'mediapartners-google', false, 'adsense', 'bot' );// google adsense
$a_browser_types[] = array( 'yahoo-verticalcrawler', false, 'yahoo', 'bot' );// old yahoo bot
$a_browser_types[] = array( 'yahoo! slurp', false, 'yahoo', 'bot' ); // new yahoo bot
$a_browser_types[] = array( 'yahoo-mm', false, 'yahoomm', 'bot' ); // gets Yahoo-MMCrawler and Yahoo-MMAudVid bots
$a_browser_types[] = array( 'inktomi', false, 'inktomi', 'bot' ); // inktomi bot
$a_browser_types[] = array( 'slurp', false, 'inktomi', 'bot' ); // inktomi bot
$a_browser_types[] = array( 'fast-webcrawler', false, 'fast', 'bot' );// Fast AllTheWeb
$a_browser_types[] = array( 'msnbot', false, 'msn', 'bot' );// msn search
$a_browser_types[] = array( 'ask jeeves', false, 'ask', 'bot' ); //jeeves/teoma
$a_browser_types[] = array( 'teoma', false, 'ask', 'bot' );//jeeves teoma
$a_browser_types[] = array( 'scooter', false, 'scooter', 'bot' );// altavista
$a_browser_types[] = array( 'openbot', false, 'openbot', 'bot' );// openbot, from taiwan
$a_browser_types[] = array( 'ia_archiver', false, 'ia_archiver', 'bot' );// ia archiver
$a_browser_types[] = array( 'zyborg', false, 'looksmart', 'bot' );// looksmart
$a_browser_types[] = array( 'almaden', false, 'ibm', 'bot' );// ibm almaden web crawler
$a_browser_types[] = array( 'baiduspider', false, 'baidu', 'bot' );// Baiduspider asian search spider
$a_browser_types[] = array( 'psbot', false, 'psbot', 'bot' );// psbot image crawler
$a_browser_types[] = array( 'gigabot', false, 'gigabot', 'bot' );// gigabot crawler
$a_browser_types[] = array( 'naverbot', false, 'naverbot', 'bot' );// naverbot crawler, bad bot, block
$a_browser_types[] = array( 'surveybot', false, 'surveybot', 'bot' );//
$a_browser_types[] = array( 'boitho.com-dc', false, 'boitho', 'bot' );//norwegian search engine
$a_browser_types[] = array( 'objectssearch', false, 'objectsearch', 'bot' );// open source search engine
$a_browser_types[] = array( 'answerbus', false, 'answerbus', 'bot' );// http://www.answerbus.com/, web questions
$a_browser_types[] = array( 'sohu-search', false, 'sohu', 'bot' );// chinese media company, search component
$a_browser_types[] = array( 'iltrovatore-setaccio', false, 'il-set', 'bot' );

// various http utility libaries
$a_browser_types[] = array( 'w3c_validator', false, 'w3c', 'lib' ); // uses libperl, make first
$a_browser_types[] = array( 'wdg_validator', false, 'wdg', 'lib' ); //
$a_browser_types[] = array( 'libwww-perl', false, 'libwww-perl', 'lib' );
$a_browser_types[] = array( 'jakarta commons-httpclient', false, 'jakarta', 'lib' );
$a_browser_types[] = array( 'python-urllib', false, 'python-urllib', 'lib' );

// download apps
$a_browser_types[] = array( 'getright', false, 'getright', 'dow' );
$a_browser_types[] = array( 'wget', false, 'wget', 'dow' );// open source downloader, obeys robots.txt

// netscape 4 and earlier tests, put last so spiders don't get caught
$a_browser_types[] = array( 'mozilla/4.', false, 'ns', 'bbro' );
$a_browser_types[] = array( 'mozilla/3.', false, 'ns', 'bbro' );
$a_browser_types[] = array( 'mozilla/2.', false, 'ns', 'bbro' );

//$a_browser_types[] = array( '', false ); // browser array template
$moz_types = array( 'firebird', 'flock', 'seamonkey', 'phoenix', 'iceweasel', 'firefox', 'galeon', 'k-meleon', 'camino', 'epiphany', 'netscape6', 'netscape', 'multizilla', 'swiftfox', 'rv' );
$webkit_types = array( 'arora', 'midori', 'chrome', 'epiphany', 'gtklauncher', 'iphone', 'omniweb', 'konqueror', 'safari', 'applewebkit' );
$i_count = count($a_browser_types);
for ($i = 0; $i < $i_count; $i++) { $s_browser = $a_browser_types[$i][0];// text string to id browser from array if (stristr($browser_user_agent, $s_browser)) { $safe_browser = true; $dom_browser = $a_browser_types[$i][1];// hardcoded dom support from array $browser_name = $a_browser_types[$i][2];// working name for browser $type = $a_browser_types[$i][3];// sets whether bot or browser switch ( $browser_name ) { case 'ns': $safe_browser = false; $version_number = browser_version( $browser_user_agent, 'mozilla' ); break; case 'moz': $moz_rv_full = browser_version( $browser_user_agent, 'rv' ); $moz_rv = substr( $moz_rv_full, 0, 3 ); $i_count = count( $moz_types ); for ( $i = 0; $i < $i_count; $i++ ) { if ( stristr( $browser_user_agent, $moz_types[$i] ) ) { $moz_version = $moz_types[$i]; $moz_version_number = browser_version( $browser_user_agent, $moz_version ); break; } } if ( !$moz_rv ) { $moz_rv = substr( $moz_version_number, 0, 3 ); $moz_rv_full = $moz_version_number; } if ( $moz_version == 'rv' ) { $moz_version = 'mozilla'; } $version_number = $moz_rv; $moz_release = browser_version( $browser_user_agent, 'gecko/' ); if ( ( $moz_release < safe_browser =" false;" version_number =" browser_version(" ie_version =" 'ieMac';">= 5 )
{
$ie_version = 'ie5x';
}
elseif ( ( $version_number > 3 ) && ( $version_number < dom_browser =" false;" ie_version =" 'ie4';" safe_browser =" true;" ie_version =" 'old';" dom_browser =" false;" safe_browser =" false;" version_number =" browser_version(" safe_browser =" false;" version_number =" browser_version(" i_count =" count(" i =" 0;" webkit_version =" $webkit_types[$i];" webkit_version_number =" browser_version(" s_browser =" 'Epiphany';" s_browser =" $webkit_types[$i];" version_number =" browser_version(" b_success =" true;" s_browser =" substr(" s_browser =" $r[0];" version_number =" browser_version(" a_os_data =" which_os(" os =" $a_os_data[0];//" os_number =" $a_os_data[1];//" b_repeat =" true;" m =" array();" math_version_number =" $m[0];" moz_array =" array(" full_array =" array(" os =" '';" os_version =" '';" a_mac =" array(" a_unix =" array(" a_linux =" array(" a_linux_process =" array" a_os =" array(" i_count =" count(" i =" 0;" s_os =" $a_os[$i];" os =" $s_os;" os_version =" '95';" os_version =" 'me';" os_version =" '98';" os_version =" 5.0;" os =" 'nt';" os_version =" 5.1;" os =" 'nt';" os_version =" 5.2;" os =" 'nt';" os_version =" 6.0;" os =" 'nt';" os_version =" 'ce';" os_version =" 6.1;" os =" 'nt';" os_version =" 6.0;" os =" 'nt';" os_version =" 5.2;" os =" 'nt';" os_version =" 5.1;//" os_version =" 5.0;" os_version =" 4;" os_version =" 3;" os_version =" 10;" browser_name ="="" browser_name ="="" browser_name ="="">= 1.3 ) ) ||
( ( $browser_name == 'ie' ) && ( $version_number >= 5.2 ) ) )
{
$os_version = 10;
}
break;
default:
break;
}
break;
}
elseif ( is_array( $s_os ) && ( $i == ( count( $a_os ) - 2 ) ) )
{
$i_count = count($s_os);
for ($j = 0; $j < $i_count; $j++) { if ( stristr( $browser_string, $s_os[$j] ) ) { $os = 'unix'; //if the os is in the unix array, it's unix, obviously... $os_version = ( $s_os[$j] != 'unix' ) ? $s_os[$j] : '';// assign sub unix version from the unix array break; } } } elseif ( is_array( $s_os ) && ( $i == ( count( $a_os ) - 1 ) ) ) { $i_count = count($s_os); for ($j = 0; $j < $i_count; $j++) { if ( stristr( $browser_string, $s_os[$j] ) ) { $os = 'lin'; $os_version = ( $s_os[$j] != 'linux' ) ? $s_os[$j] : ''; break; } } } } $os_data = array( $os, $os_version ); return $os_data; } function browser_version( $browser_user_agent, $search_string ) { $substring_length = 12; $browser_number = ''; $start_pos = 0; for ( $i = 0; $i < start_pos =" strpos(" search_string ="="" browser_number =" substr(" browser_number =" substr(" browser_number =" '';">
getMac( 'server' ).'
CLIENT MAC: '.$mac->getMac( 'client' );
}
else
{
$mac = new NtMacAddress();
echo 'SERVER MAC: '.$mac->getMac( 'server' ).'
CLIENT MAC: '.$mac->getMac( 'client' );
}
?>

Backup of all database

on Thursday, August 13, 2009

Hi,

Here is the code for taking backup of all database and their tables as sql file.


$link = mysql_connect('hostname','username','password');
$resultdb=mysql_query("show databases");
while($rowdb = mysql_fetch_row($resultdb))
{
mkdir("/var/www/html/dbbackup_".date('d_m_Y'),0777);
chdir("/var/www/html/dbbackup_".date('d_m_Y'));
backup_tables('hostname','username','password',$rowdb[0]);
}

echo "Database Backup is Created";

function backup_tables($host,$user,$pass,$name,$tables = '*')
{
$link = mysql_connect($host,$user,$pass);
mysql_select_db($name,$link);
//get all of the tables
if($tables == '*')
{
$tables = array();
$result = mysql_query('SHOW TABLES');
while($row = mysql_fetch_row($result))
{
$tables[] = $row[0];
}
}
else
{
$tables = is_array($tables) ? $tables : explode(',',$tables);
}
//cycle through
$return.="SET FOREIGN_KEY_CHECKS=0;\n";
foreach($tables as $table)
{
$result = mysql_query('SELECT * FROM '.$table);
$num_fields = mysql_num_fields($result);
$return.= 'DROP TABLE '.$table.';';
$row2 = mysql_fetch_row(mysql_query('SHOW CREATE TABLE '.$table));
$return.= "\n\n".$row2[1].";\n\n";
for ($i = 0; $i < $num_fields; $i++)
{
while($row = mysql_fetch_row($result))
{
$return.= 'INSERT INTO '.$table.' VALUES(';
for($j=0; $j<$num_fields; $j++)
{
$row[$j] = addslashes($row[$j]);
$row[$j] = ereg_replace("\n","\\n",$row[$j]);
if (isset($row[$j]))
{
$return.= '"'.$row[$j].'"' ;
}
else
{
$return.= '""';
}
if ($j<($num_fields-1))
{
$return.= ',';
}
}
$return.= ");\n";
}
}
$return.="\n\n\n";
}
$return.="SET FOREIGN_KEY_CHECKS=1;\n";
//save file
$handle = fopen($name.'_'.date('d_m_Y').'.sql','w+');
fwrite($handle,$return);
fclose($handle);
}

Free OsCommerce Templates

Hi,



Here is the rapid share link for 13 Free osCommerce Template..



Enjoy it...!

ThickBox

on Thursday, August 6, 2009

How to Implement ThickBox:

Before you can implement ThickBox make sure the page that invokes ThickBox has a valid DTD. This is required for ThickBox to look and function correctly.

1. ThickBox requires the jQuery JavaScript library; because of this, you will need to include the jquery.js file in the head element of your web page, followed by the thickbox.js file (NOTE: jquery.js must come first in the source order). Example below:

<script type="text/javascript" src="path-to-file/jquery.js"></script>
<script type="text/javascript" src="path-to-file/thickbox.js"></script>


Once you have included the .js files, open thickbox.js or thickbox-compressed.js and locate the tb_pathToImage variable at the top of the page. Once you have found it, make sure to change the value of tb_pathToImage to the path where the loadingAnimation.gif file is located on your own server.

2. Include the ThickBox CSS file in your web page. As of version 3.1 you will also need to update the path to the macFFBgHack.png in the thickbox.css file. Example options below:

<link rel="stylesheet" href="path-to-file/thickbox.css" type="text/css" media="screen">

Or
<style type="text/css" media="all">@import "path-to-file/thickbox.css";</style>

Or, open the thickbox.css file and copy and paste the styles into an existing style sheet. Be aware that the ThickBox CSS file will remove the browsers default padding and margin for all elements.

Part time Internet Jobs

on Tuesday, March 24, 2009

Part time Internet Jobs for All

Are you looking to work from Home? Home based typing positions are now being offered by many Companies at present! Receive your paychecks every month!

Full training provided by the company itself. No Selling Required. Please visit the website http://www.earnparttimejobs.com/index.php?id=965520

Disable default Symfony Modules and Errors

on Saturday, March 21, 2009

To disable the default symfony pages like "Symfony Project Created", "Symfony 404 Page Not Found" errors to customized error message, follow the steps

1. In your project root select your application, then open the settings.yml file from config folder.

2. After that enable the selected modules which you want to work, after that edit your settings.yml below .actions as follows.,

default_module: your_module_name

default_action: your_action_name
.
.
.
.etc...

3. After that edit your routing.yml file as just change the default module to your_module_name which is mentioned in settings.yml

4. Now Clear the Cache and run your project. You Won't get any symfony pages and error messages.


Hope you will Enjoy.....! :)



Decimal Values in schema file

on Tuesday, March 17, 2009

If you are defining your schema.yml and have a field that is a decimal value, you will find you will need to somehow pass through the precision (maximum number of digits to the left of the point) and the scale (total number after the decimal point). The documentation for the syntax of this is quite poor.

For all those that want to know, in symfony 1.0 this is how you would define a decimal:

my_decimal: { type: decimal, size: 8,3 }




Symfony: website/backend.php to website/admin

on Monday, March 16, 2009



Here is the solution for rewriting website/backend.php to website/admin and makes the admin area to work.

1. Create a folder "admin" inside "web" folder. Copy here the same .htaccess file and change this line:

RewriteRule ^(.*)$ index.php [QSA,L]

to:

RewriteRule ^(.*)$ ../backend.php [QSA,L]

2. Then go to routing file for backend (app/backend/config/routing.yml) and add folder name to all your routes defined there. Ex:

# default rules
homepage:
url: /admin/
param: { module: default, action: index }
.
.
.

3. Set no_script_name to "on" in your backend settings (app/backend/config/settings.yml) file:

prod:
.settings:
no_script_name: on

4. Clear Cache and now you should be able to get to your backend using: http://mydomian.com/admin/ without problems

Hopes you enjoy...!


Symfony: How to hide the Controller Name in URL

To hide the controller name from the URL, when the project is ready for production. Follow the below steps:

  • set the no_script_name: to on under prod in settings.yml file from your application directory.

  • after that clear the cache.

Now your projects application is ready and your controller name is also hide from the URL.

Symfony Tips and Tricks

on Wednesday, March 11, 2009

How to get visitors redirected to www.yourdomain.com

Sometimes you dont have domain name but you would like to get your symfony project working. For that just place the .htaccess file from web folder to outside of the project root folder. After that edit the .htaccess file as follows.


RewriteEngine On

# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ web/index.php [QSA,L]



So, after entering the domain name it will automatically take to the production environment of your project..

Enjoy It...! Have a fun... :)