Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Monthly Archives: October 2009

Apache – An unknown filter was not added: DEFLATE


My ‘apache_error.log’ was logging an error ‘An unknown filter was not added: DEFLATE’ for every request. This is how I resolved it.

  • Open httpd.conf in C:\xampp\apache\conf went to line 93 and removed the # before the line LoadModule deflate_module modules/mod_deflate.so (using notepad)
  • Restart the apache.

DebugBar – Most advanced web development tool for IE


https://i0.wp.com/www.debugbar.com/data/v5/logo.gif

DebugBar V5.3 is an Internet Explorer plug-in that brings you new powerful features :

  • DOM Inspector: View DOM Tree and modify tags attributes and css attributes on the fly to test your page
  • HTTP Inspector: View HTTP/S request to check cookies, GET and POST parameters, view server info
  • Javascript Inspector and Javascript Console: View javascript functions for easier debugging, see Javascript and AJAX code
  • HTML Validator: Validate HTML code to correct and optimize your code and html size of your page
  • And many more features: See page cookies, get pixel color on a page, make a page screenshot…

DebugBar is FREE for personal use.

Internet Explorer Developer Toolbar


The Microsoft Internet Explorer Developer Toolbar provides a variety of tools for quickly creating, understanding, and troubleshooting Web pages.
https://i0.wp.com/img.microsoft.com/downloads/img/products/microsoft.gif
The Internet Explorer Developer Toolbar provides several features for exploring and understanding Web pages. These features enable you to:

  • Explore and modify the document object model (DOM) of a Web page.
  • Locate and select specific elements on a Web page through a variety of techniques.
  • Selectively disable Internet Explorer settings.
  • View HTML object class names, ID’s, and details such as link paths, tab index values, and access keys.
  • Outline tables, table cells, images, or selected tags.
  • Validate HTML, CSS, WAI, and RSS web feed links.
  • Display image dimensions, file sizes, path information, and alternate (ALT) text.
  • Immediately resize the browser window to a new resolution.
  • Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.
  • Display a fully featured design ruler to help accurately align and measure objects on your pages.
  • Find the style rules used to set specific style values on an element.
  • View the formatted and syntax colored source of HTML and CSS.

The Developer Toolbar can be pinned to the Internet Explorer browser window or floated separately.

SICSR – My Computer Masters


https://i0.wp.com/www.symbiosiscomputers.com/v5/engine/images/banner.jpg

SICSR

Established in 1985, SICSR is one of the first institutes in Maharashtra to offer high quality computer education at a time when few existed. In 2002, SICSR became a constituent of the Symbiosis International University and devised programmes, which offered two post-graduate degrees (MBA-IT and M. Sc.-CA) and two undergraduate degrees (BBA-IT and BCA).

To make the studies at SICSR an exhilarating intellectual journey, we endeavour to develop the necessary environment through synergy of well-qualified and devoted faculty, knowledge greedy students and experienced industry experts. SICSR has outstanding facilities available to support the programmes. Besides an excellent book collection and a reference library, computer access is provided through a wide variety of networking systems.

Responding to the critical needs of the industry, the Institute supports innovative projects, student internships and seminars that strengthen the link between theory and the real world’s expectations. The Institute also encourages frequent contacts with the professionals in the field through guest lectures and workshops. These contacts help us improve upon our programme inputs making them more relevant. Read more of this post

ICCR & My Scholarship


https://i0.wp.com/www.iccrindia.org/images/topbar4_1.gif

The Indian Council for Cultural Relations (ICCR) was founded on 9th April 1950 by Maulana Abul Kalam Azad, the first Education Minister of independent India. Since then we have seen in India the consolidation of Indian democracy, the establishment of an equitable social order, the rapid development of the Indian economy, the empowerment of Indian women, the creation of a vibrant infrastructure of world-class educational institutions, and the powerful revitalization of scientific traditions.
There has also been a revival, reiteration and renewal of the five-millennia old Indian culture, exemplified by the energetic projection, development and experimentation in Indian arts, the confident and creative expansion of Indian languages, and the great energy in Indian cinema. ICCR, in harmony with these developments, is in unison with contemporary India.The last five decades have been one of the most exciting periods in the arts in India’s long history. Indian literature, music and dance,
Indian paintings, sculpture and crafts, as well as Indian theatre and films, has each witnessed great outbursts of creativity. ICCR continues to encourage improvisation and experimentation with the new, while it pays homage to the classical as well as the folk forms of India’s cultural expression. Read more of this post

WinSCP – SFTP client and FTP client for Windows


WinSCP is an open source free SFTP client and FTP client for Windows. Legacy SCP protocol is also supported. Its main function is safe copying of files between a local and a remote computer.

Features:

  • * Graphical user interface
  • * Translated into several languages
  • * Integration with Windows (drag&drop, URL, shortcut icons)
  • * U3 support
  • * All common operations with files
  • * Support for SFTP and SCP protocols over SSH-1 and SSH-2 and plain old FTP protocol
  • * Batch file scripting and command-line interface
  • * Directory synchronization in several semi or fully automatic ways
  • * Integrated text editor
  • * Support for SSH password, keyboard-interactive, public key and Kerberos (GSS) authentication
  • * Integrates with Pageant (PuTTY authentication agent) for full support of public key authentication with SSH
  • * Explorer and Commander interfaces
  • * Optionally stores session information
  • * Optionally supports portable operation using a configuration file in place of registry entries, suitable for operation from removable media

Download Link

WINSCP

WINSCP

7-Zip


https://i0.wp.com/www.7-zip.org/7ziplogo.png

7-Zip is a file archiver with a high compression ratio.

  • High compression ratio in new 7z format with LZMA compression
  • Supported formats: Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR, Unpacking only: ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z.
  • For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip
  • Strong AES-256 encryption in 7z and ZIP formats
  • Self-extracting capability for 7z format
  • Integration with Windows Shell
  • Powerful File Manager
  • Powerful command line version
  • Plugin for FAR Manager
  • Localizations for 74 languages

https://i0.wp.com/www.7-zip.org/7zfm.png

Link

POP Yahoo! Mail Plus setting for Thunderbird Webmail Client


Here’s how to “POP” mail from Yahoo! Mail Plus into your Outlook Express:

  1. From the Tools menu, choose “Accounts.”
  2. Select the “Mail” tab.
  3. Click the “Add” button.
  4. From the Add menu, click “Mail.”
  5. In the text box labeled Display Name, type your name and click “Next.”
  6. In the Email Address box, type your Yahoo! Mail address (be sure to include “@yahoo.com”) and click “Next.”
  7. Under “My incoming mail server is a…” select “POP3.”
  8. Type “plus.pop.mail.yahoo.com” in the Incoming Mail (POP3, IMAP, or HTTP) Server box.
  9. Type “plus.smtp.mail.yahoo.com” in the Outgoing Mail (SMTP) Server box.
  10. Click “Next.” Read more of this post

Gmail Account Setting for Thunderbird Webmail Client


Note: if you’re using an older version of Thunderbird, we highly recommend upgrading to version 2.0.

To set up your Thunderbird client to work with Gmail:

  1. Enable IMAP in Gmail. Make sure you click Save Changes when you’re done.
  2. Open Thunderbird, and select Tools > Account Settings.
  3. Click Add Account.
  4. Select the Email account radio button and click Next. The Identity screen appears.
  5. Enter your full name in the Your Name field. Enter your Gmail address (username@gmail.com) in the Email Address field, and click Next. Google Apps users, enter your full address in the format username@your_domain.com
  6. Select IMAP as the type of incoming server you are using. Enter imap.gmail.com in the Incoming Server field.
  7. Set the Outgoing Server to smtp.gmail.com and click Next.
  8. Read more of this post

PSPad – A freeware code editor


https://i0.wp.com/www.pspad.com/css/img/headlogo.jpg
PSPad – editor for developers for Microsoft Windows systems
The universal freeware editor, useful for people who:

  • work with plain text – the editor has a wealth of formatting functions, including a spell checker
  • create web pages – as a web authoring editor, PSPad contains many unique tools that save your time
  • want to use a good IDE for their compiler – PSPad catches and parses compiler output, integrates external help files, compares versions and much more…

There is no complex installation process, PSPad is ready to work immediately without requiring customization. The editor supports many file types and languages, with syntax highlighting. There are macros, clip files and templates to automate repetative tasks. Integrated HEX Editor, Project support, FTP Client, Macro Recorder, File Search/Replace, Code Explorer, Code page conversion… these are just some of the many features that PSPad offers.
The PSPad editor was tested in the Softpedia labs. Softpedia guarantees that PSPad is 100% FREE, which means it is a freeware product (both for personal and commercial use) that does not contain any form of malware, including but not limited to: spyware, viruses, trojans and backdoors.

Link

SourceForge


http://sanjoy.prijoy.com/code/images/sf.png

SourceForge is your location to download and develop free open source software.

About SourceForge

  • About SourceForge
  • Contact Us
  • Jobs @ SF
  • Advertising

Find Software

  • Search Software
  • Browse by Category
  • Most Popular Overall
  • Most Active Overall

Develop Software

  • Create Project
  • Project Help Wanted
  • New Projects

Community

  • SourceForge Forums
  • The Blog
  • @sourceforge on Twitter
  • Calendar

Help

  • Site Documentation
  • Submit Support Requests
  • Site Outages
  • Feedback

Link

MeasureIt – Firefox Add-ons

How to use a portion of an image from a group?


HTML Block:

    	Actual Image:

        Result:
    	

CSS Block:

.logo{
	background:transparent url(../images/buttons.png) no-repeat 0 0;
	display:block;
	margin:0 0 5px;
	padding:10px 0 2px 213px;
	height:21px;
	overflow:hidden;
	clear:none;
	background-position:-307px -152px;
	/*Starting of x position, ending of y position - measure it in photoshop info viewer tool*/
	color:#7f7f7f;
	text-transform:uppercase;
	font-size:77%;
	position:relative;
}

Live Demo

Apache


https://i0.wp.com/www.apache.org/images/feather.gif

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Download Link

WampServer


WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your databases.

https://i0.wp.com/www.wampserver.com/en/data/image_menu_wamp.gif
WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files.
WampServer is the only packaged solution that will allow you to reproduce your production server. Once WampServer is installed, you have the possibility to add as many Apache, MySQL and PHP releases as you want.
WampServer also has a trayicon to manage your server and its settings.

WampServer’s functionalities are very complete and easy to use so we won’t explain here how to use them.
With a left click on WampServer’s icon, you will be able to:

  • manage your Apache and MySQL services
  • switch online/offline (give access to everyone or only localhost)
  • install and switch Apache, MySQL and PHP releases
  • manage your servers settings
  • access your logs
  • access your settings files
  • create alias

With a right click:

  • change WampServer’s menu language
  • access this page

Download Link

Fiddler Web Debugger – A free web debugging tool


https://i0.wp.com/www.fiddler2.com/Fiddler/images/FiddlerLogo.png

Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and “fiddle” with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.

Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera, and thousands more.

Download Link

https://i0.wp.com/www.fiddler2.com/fiddler2/images/tamper.png

https://i0.wp.com/www.fiddler2.com/fiddler2/images/sshot-1.png

https://i0.wp.com/www.fiddler2.com/fiddler2/images/sshot-3.png

https://i0.wp.com/www.fiddler2.com/fiddler2/images/hexinspect.png

Daylight Saving in Victoria


https://i0.wp.com/www.vic.gov.au/kernel/user_files/Images/OnSite/DaylightSaving1forward.gif
At start of daylight saving period, move clock forward one hour at 2 am.

https://i0.wp.com/www.vic.gov.au/kernel/user_files/Images/OnSite/DaylightSaving2back.gif
At end of daylight saving period, move clock back one hour at 3 am.
2009/2010
Victoria’s period of daylight saving will start at 2:00am on Sunday 4 October 2009. At 2:00am move clocks forward one hour to 3:00am.
Victoria’s period of daylight saving will end on Sunday 4 April 2010. At 3:00am move clocks backward one hour to 2:00am.
2010/2011
Victoria’s period of daylight saving will start at 2:00am on Sunday 3 October 2010. At 2:00am move clocks forward one hour to 3:00am.
Victoria’s period of daylight saving will end on Sunday 3 April 2011. At 3:00am move clocks backward one hour to 2:00am.
Source

Ten Rules for a Good Day!


  • TODAY I WILL NOT STRIKE BACK – If someone is rude, if someone is impatient, if someone is unkindI will not respond in a like manner.
  • TODAY I WILL ASK GOD TO BLESS MY ENEMY – If I come across someone who treats me harshly or unfairly, I will quietly ask God to bless that individual. I understand the enemy could be a family member, neighbor, co-worker, or a stranger.
  • TODAY I WILL BE CAREFUL ABOUT WHAT I SAY – I will carefully choose and guard my words being certain that I do not spread gossip.
  • TODAY I WILL GO THE EXTRA MILE – I will find ways to help share the burden of another person.
  • TODAY I WILL FORGIVE – I will forgive any hurts or injuries that come my way.
  • TODAY I WILL DO SOMETHING NICE FOR SOMEONE, BUT I WILL NOT DO IT SECRETLY – I will reach out anonymously and bless the life of another.
  • TODAY I WILL TREAT OTHERS THE WAY I WISH TO BE TREATED – I will practice the golden rule Do unto others as I would have them do unto me with everyone I encounter.
  • TODAY I WILL RAISE THE SPIRITS OF SOMEONE I DISCOURAGED – My smile, my words, my expression of support, can make the difference to someone who is wrestling life.
  • TODAY I WILL NUTURE MY BODY – I will eat less; I will eat only healthy foods. I will thank God for my body.
  • TODAY I WILL GROW SPIRITUALLUY – I will spend a little more time in prayer today: I will begin reading something spiritual or inspirational today; I will find a quiet place (at some point during the day)!

Can u take 10 seconds away from ur busy schedule?


Here is a chance to make a difference, by devoting JUST 10 seconds a day.
You don’t need to go anywhere, donate money, stage protests or shout slogans.
How? If you use computer to work, just remember to switch off your monitor every time you leave your desk. Very simple, isn’t it?
What difference does it make? Roughly, normal monitors consume around 150 W.
Even if your screen remains ON for 1 hour per day without any use, energy wasted per day is 150 W-h (or 0.15 ‘units’).
This is enough to light a small lamp for 10 hours! If you care to switch off your monitor each time you leave your place, you save electricity enough for basic household needs of a small family in a village!
If your monitor remains ON overnight, this figure becomes 10-fold ,so you can probably save electricity for 10 families.
And supposing that you leave your seat 5 times a day and it takes 1 second to switch the monitor ON/OFF,
you spend only 10 seconds a day for this deed which saves LOTS of energy on a long run!
I hope you will follow this practice…
Energy saved is energy produced !!

How to change the default theme in ExtJS


  • Download a theme from the extjs server. Please note that you need to register before you download the theme.
  • Copy the .css file (e.g xtheme-slate.css) to the resouces/css/xtheme-slate.css directory.
  • Copy the slate folder to the resouces/images/slate directory.
  • Copy the following line to the head section of your html/php file.

Parse .xls (Excel) using PHP


XLSParser.php:

if ($fileType !='' && $fileType == 'application/vnd.ms-excel'){
		//parse xsl file
		 $ext = 'xls';
		 $filename 	= $user.'.'.$section.'.upload.'.date('Ymd').'.'.$ext;
		 copy($_FILES['file']['tmp_name'], $UPLOAD_CSV_PATH.$filename);
		 require_once '../includes/reader.php';

		$data = new Spreadsheet_Excel_Reader();
		 //set output encoding
		$data->setOutputEncoding('CP1251');
		//read the excel file through api
		$data->read($UPLOAD_CSV_PATH.$filename);
		//prepare to retun result
		$actual_data = $data->sheets[0]['cells'];

		$rowsLength	= array();
		for($i=1; $i<$max_nos; $j++){
				$allColumns[$j] = $actual_data[$i][$j];
			}
			$newRowData[] =  $allColumns;
		}
		$data = $newRowData;
  }

Parse .CSV using PHP


CSVParser.php:

if ($fileType !='' && $fileType == 'text/comma-separated-values'){
		//parse csv file
		 $ext = 'csv';
		 $filename 	= $user.'.'.$section.'.upload.'.date('Ymd').'.'.$ext;
		 copy($_FILES['file']['tmp_name'], $UPLOAD_CSV_PATH.$filename);

		 $row 				= 1;
		$fhandle 			= @fopen($UPLOAD_CSV_PATH.$filename, "r");
		$columnHeaders		= '';
		$columnNames		= '';
		$rawData			= array();
		$count = 0;
		while (($fdata = fgetcsv($fhandle, 1000, $terminated_by, $enclosed_by)) !== FALSE) {
			$len = count($fdata)-1;
			if (strlen($fdata[$len])==0) array_pop($fdata);
			$rawData[$count] = $fdata;
			$count++;
		}
		fclose($fhandle);

		$newRowData = array();

		for($i=0; $iencode($rawData);

  }

Parse XML Spreadsheet using PHP DOMDocument


xmlparser.html:

File Name:  
Options: Column Heading Included
Column Heading & Name Included
Just Data
 
Hidden Parameters:

 

xmlparser.php:

$fileType 	= isset($_FILES['file']['type']) ? $_FILES['file']['type']: '';
if ($fileType !='' && $fileType == 'text/xml'){
	  $ext = 'xml';
	  if ($_FILES['file']['tmp_name']){
	  	  //Copy to the backup directory
	  	  $filename 	= $user.'.'.$section.'.upload.'.date('Ymd').'.'.$ext;
		  copy($_FILES['file']['tmp_name'], $UPLOAD_CSV_PATH.$filename);
		  //parse xml spredsheet
		  $dom 		= DOMDocument::load($UPLOAD_CSV_PATH.$filename);
		  $rows 	= $dom->getElementsByTagName('Row');
		  $data		= array();

		  foreach ($rows as $row){
			  $index 	= 1;
			  $cells 	= $row->getElementsByTagName('Cell');
			  $tempdata = array();
			  foreach( $cells as $cell ){
				  $ind = $cell->getAttribute('Index');
				  if ( $ind != null ) $index = $ind;
				  //echo $cell->nodeValue."
"; $tempdata[] = $cell->nodeValue; $index += 1; }//inner for loop $data[] = implode(",", $tempdata); }//outer for loop }//outer if (file temp_name compare) }

ActivePerl


https://i0.wp.com/www.activestate.com/ui/img/as_logo_web.gifActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl’s completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl Business Solutions.

  • PPM scans .packlist files newer than the corresponding PPM database for that install area.
  • On 32-bit Windows CPAN shell automatically downloads and installs the MinGW GCC compiler.
  • Modules shipped as part of core Perl now included in PPM database.
  • Bundled modules updated to latest version.
  • Security fixes.

Firebug – Web Development Evolved


https://i0.wp.com/getfirebug.com/header.png

Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
Firebug is always just a keystroke away, but it never gets in your way. You can open Firebug in a separate window, or as a bar at the bottom of your browser. Firebug also gives you fine-grained control over which websites you want to enable it for.
Firebug makes it simple to find HTML elements buried deep in the page. Once you’ve found what you’re looking for, Firebug gives you a wealth of information, and lets you edit the HTML live.
Firebug’s CSS tabs tell you everything you need to know about the styles in your web pages, and if you don’t like what it’s telling you, you can make changes and see them take effect instantly.

https://i0.wp.com/getfirebug.com/html1.gif

When your CSS boxes aren’t lining up correctly it can be difficult to understand why. Let Firebug be your eyes and it will measure and illustrate all the offsets, margins, borders, padding, and sizes for you.
Your pages are taking a long time to load, but why? Did you go crazy and write too much JavaScript? Did you forget to compress your images? Are your ad partner’s servers taking a siesta? Firebug breaks it all down for you file-by-file.
Firebug includes a powerful JavaScript debugger that lets you pause execution at any time and have look at the state of the world. If your code is a little sluggish, use the JavaScript profiler to measure performance and find bottlenecks fast.

ExtJS – Cross-Browser Rich Internet Application Framework


https://i0.wp.com/www.extjs.com/assets/images/extjs2.png

Ext JS is a cross-browser JavaScript library for building rich internet applications. It includes:

  • High performance, customizable UI widgets
  • Well designed and extensible Component model
  • An intuitive, easy to use API
  • Commercial and Open Source licenses available

Ext JS supports all major web browsers including:

  • Internet Explorer 6+
  • FireFox 1.5+ (PC, Mac)
  • Safari 3+
  • Opera 9+ (PC, Mac)

Page Auto Re-direct after few seconds


JS Code:

function redirect(){
window.location = "http://domain.com/your-redirect-page.html";
}
setTimeout("redirect()",10000);

WinMerge – Opensource merging tool for Windows


https://i0.wp.com/winmerge.org/engine/images/head.gifWinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

WinMerge is an open source project, which means that the program is maintained and developed by volunteers.

https://i0.wp.com/winmerge.org/about/screenshots/screenshot_small.png

Creating a Log File in PHP


Here is the code that can save the system process to a .log file using php:

//Function: writeToLogFile($content,$flag) - To write every steps to the specified log file.
function writeToLogFile($content,$flag){
global $LOG_FILE;
$strRootPath = dirname(__FILE__) . DIRECTORY_SEPARATOR;
$fp = fopen($strRootPath.$LOG_FILE,"a");
if ($flag)
$f_contents = date("Y-m-d H:i:s")."-".$content;
else
$f_contents = $content;
fwrite($fp,$f_contents."\r\n");
fclose($fp);
}

URL Validation


If you want to validate an URL in input fields, here is the JS code:

function isUrl(s) {
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
return regexp.test(s);
}

How to parse a URL?


If you want to parse a URL, here is the JS code: (please write a comment if you take this code)

function parseURL(buffer) {
var result = { };
result.protocol = "";
result.user = "";
result.password = "";
result.host = "";
result.port = "";
result.path = "";
result.query = "";
var section = "PROTOCOL";
var start = 0;
var wasSlash = false;
while(start < buffer.length) {
if(section == "PROTOCOL") {
if(buffer.charAt(start) == ':') {
section = "AFTER_PROTOCOL";
start++;
} else if(buffer.charAt(start) == '/' && result.protocol.length() == 0) {
section = PATH;
} else {
result.protocol += buffer.charAt(start++);
}
} else if(section == "AFTER_PROTOCOL") {
if(buffer.charAt(start) == '/') {
if(!wasSlash) {
wasSlash = true;
} else {
wasSlash = false;
section = "USER";
}
start ++;
} else {
throw new ParseException("Protocol shell be separated with 2 slashes");
}
} else if(section == "USER") {
if(buffer.charAt(start) == '/') {
result.host = result.user;
result.user = "";
section = "PATH";
} else if(buffer.charAt(start) == '?') {
result.host = result.user;
result.user = "";
section = "QUERY";
start++;
} else if(buffer.charAt(start) == ':') {
section = "PASSWORD";
start++;
} else if(buffer.charAt(start) == '@') {
section = "HOST";
start++;
} else {
result.user += buffer.charAt(start++);
}
} else if(section == "PASSWORD") {
if(buffer.charAt(start) == '/') {
result.host = result.user;
result.port = result.password;
result.user = "";
result.password = "";
section = "PATH";
} else if(buffer.charAt(start) == '?') {
result.host = result.user;
result.port = result.password;
result.user = "";
result.password = "";
section = "QUERY";
start ++;
} else if(buffer.charAt(start) == '@') {
section = "HOST";
start++;
} else {
result.password += buffer.charAt(start++);
}
} else if(section == "HOST") {
if(buffer.charAt(start) == '/') {
section = "PATH";
} else if(buffer.charAt(start) == ':') {
section = "PORT";
start++;
} else if(buffer.charAt(start) == '?') {
section = "QUERY";
start++;
} else {
result.host += buffer.charAt(start++);
}
} else if(section == "PORT") {
if(buffer.charAt(start) = '/') {
section = "PATH";
} else if(buffer.charAt(start) == '?') {
section = "QUERY";
start++;
} else {
result.port += buffer.charAt(start++);
}
} else if(section == "PATH") {
if(buffer.charAt(start) == '?') {
section = "QUERY";
start ++;
} else {
result.path += buffer.charAt(start++);
}
} else if(section == "QUERY") {
result.query += buffer.charAt(start++);
}
}
if(section == "PROTOCOL") {
result.host = result.protocol;
result.protocol = "http";
} else if(section == "AFTER_PROTOCOL") {
throw new ParseException("Invalid url");
} else if(section == "USER") {
result.host = result.user;
result.user = "";
} else if(section == "PASSWORD") {
result.host = result.user;
result.port = result.password;
result.user = "";
result.password = "";
}
return result;
}

The Trac Ticket System


https://i0.wp.com/www.edgewall.org/gfx/trac_logo.pngThe Trac ticket database provides simple but effective tracking of issues and bugs within a project.

As the central project management element of Trac, tickets are used for project tasks, feature requests, bug reports and software support issues.

As with the TracWiki, this subsystem has been designed with the goal of making user contribution and participation as simple as possible. It should be as easy as possible to report bugs, ask questions and suggest improvements.

An issue is assigned to a person who must resolve it or reassign the ticket to someone else. All tickets can be edited, annotated, assigned, prioritized and discussed at any time.

Ma Amar Ma



Without saying she understands everything, she is in our happiness, sadness, she is the best and most truthful.
She helped in every petty thing like she taught us how to walk, she led us by her finger.
In cold she is like sunlight, in summer she is like rain. She is like dreams and she is ours when we are in trouble.
She kisses our forehead, even if she is far(not with us)..she is with us day and night(in our hearts)
Thats all about our mothers…
And thats all is the song about
http://www.youtube.com/v/yM7ajRUMs9c&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1
In Bangla, as in many other languages, ‘Ma’ means Mother:
No one sings me to sleep anymore
No face around me resembles how I remember her
Her care and warmth are plain gone
The only way I can see her is when I close my eyes
Maa, oh my mother.Maa, oh my mother
There’s this illusion, and
When I see you through it,I forget all pain that surrounds me

How do I recover my Joomla admin password?


A. You cannot recover the existing password, but you can reset it to a new password. The passwords are stored using a one-way MD5 hash which prevents recovering the password.
But you can reset the password by editing the password field in the database.Set the password to a known value and then you may log-in using that new password.

The password is stored in the MySQL database jos_users table password field. (change this for your table prefix if different) Use a MySQL utility such as phpMyAdmin or MySQL Query Browser to edit this field. Open the table, find your admin username, and then select that row for editing. The password must be hashed, you cannot simply enter text into this field. Read more of this post