Friday, January 28, 2011
Google Talk and Pidgin
Basic Tab
protocol : xmpp
domain : googlemail.com
resource : Home
Advanced Tab
Require SSL/TLS, Force old port (5222), Allow plain text .... : All Unchecked
Connect Port: 5222
Connect Server: talk.google.com
File Transfer Proxies : proxy.jabber.org
Thursday, November 4, 2010
ZTE MF 628 Unlock කර ගන්නෙ මෙහෙමයි
මේක මම මුලින්ම දැක්කෙ ලහිරු මල්ලිගෙ බ්ලොග් එකෙන්.
කොතනින්ද හොරකම් කලේ කියල මුලින්ම කියන්න එපැයි :)
* මුලින්ම කරන්න තියෙන්නෙ මෙතන ඔබලා මේ software එක බාගන්න.
* දැන් බාගත්තු rar file එක unzip කරගන්න. (winrar පාවිච්ච් කරල මෙක කරගන්න පුලුවන්)
* දැන් dccrap.exe file එක double click කරල open කර ගන්න.
* ඊට පස්සේ පහල රූපයේ විදියට open උනාට පස්සේ මොඩෙම් එකට වෙනත් ජාලයක සිම් පතක් දමා (උදා-Dialog එකෙන් දුන්න එකකට Mobitel එකක් දමා) USB port එකකට පල්ග් කරන්න.
ඊට පස්සේ මොඩම් එකට අදාල connection manager software එක (උදා-Dialog Manager) ධාවනය වුනොත් විතරක් ඒක close කරලා දාන්න.මොඩම් එකට memory card එකක් ගහගෙන ඉන්නවනම් card එක මුලින්ම ඉවත් කරලා ඉන්නවානම් හොදයි.මොකද unlock කරන අවස්ථාවේ වෙනත් මෘදුකාංග මොඩමයට සම්බන්ධ වීම බාධාවක් නිසා.
ඊට පස්සේ රූපයේ
01 ලෙස දක්වා ඇති drop down menu එකෙන් ZTE data cards කියන ඒක select කර ගන්න.
02 ලෙස දක්වා ඇති drop down menu එකෙන් Auto Detect කියන විකල්පය select කරගන්න.
03 ලෙස දක්වා ඇති Find button එක ඔබන්න. ඉන්පසු ටික වේලාවකින් සම්බන්ධ කොට ඇති මොඩමයේ වර්ගය පහල text box එකේ සටහන් වේවි.
04 ලෙස දක්වා ඇති Unlock button එක ඔබන්න.තප්පර කිහිපයකට පසු මොඩමය සාර්ථකව unlock වූ බව පහල text box එකේ සදහන් වේවි.
පහත රුපය බලන්න
ඊට පස්සේ ඉතින් මැසිම restart කරන්න.
Wednesday, October 13, 2010
‘බොක්සිං මංජු’ ලක්දිවට රන් ගෙනේ
Tuesday, September 14, 2010
Clean Your DNS Cache to Fix Browsing Problems
ipconfig /flushdns
net stop dnscache
net start dnscacheThe Geek also shows you how to restart the service in Windows XP or Vista's DNS service from the graphical services menu.Friday, May 7, 2010
Unit testing with PHPUnit
PHPUnit
In the last decade, PHP has developed from a niche language for adding dynamic functionality to small websites to a powerful tool making strong inroads into large-scale Web systems. Critical business logic like this needs to work correctly. But how do you ensure that it does? You test it, of course.
To make code testing viable, good tool support is needed. This is where PHPUnit comes into play. It is a member of the xUnit family of testing frameworks and provides both aframework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.
Features
- Complete port of JUnit 3.8.1 to PHP 5.
- Integrates ideas from TestNG, such as
- Annotation-based @grouping of test cases.
- Suite-Level setUp() and tearDown().
- Testing for failures.
- Supports Mock Objects (port of jMock).
- Supports database testing (port of DbUnit).
- Supports Code Coverage Analysis (utilizing the Xdebug extension for PHP) and can generate reports based on this information.
- Supports the calculation of software metrics.
- Can be used as a Project Mess Detector (PMD).
- Supports storing test result and code coverage data in a Test Database.
- Supports Incomplete Tests (port of junitour) and the skipping of tests.
- Supports Agile Documentation (port of TestDox).
- Supports generation of test code skeletons for existing code.
- Supports logging of test execution in an XML Format, as JavaScript Object Notation (JSON) messages, using the Test Anything Protocol (TAP), in GraphViz Markup, and to PEAR::Log sinks.
- Integrates with Selenium RC for web application user interface testing.
- Integrates with Apache Maven, Bamboo, Bitten, CruiseControl, and Parabuild for Continuous Integration.
- Integrates with Phing.
- "Self-Hosted" and Robust: PHPUnit is covered by a Test Suite that ensures it works correctly.
Fiddler
What is Fiddler?
Fiddler is a Web Debugging Proxy which logs all
Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera, and thousands more.
Friday, April 16, 2010
PHP, PHPUnit, Selenium and NetBeans IDE
1. Go to the \bin\php\phpX.X.X directory
2. Run the following command
php.exe -d phar.require_hash=0 PEAR/go-pear.phar
3. And then open php.ini, find the key "error_reporting". Set it as below
error_reporting = E_ALL & ~E_DEPRECATED
4. Restart all servers in wamp
Installing PHPUnit
1. Go to the \bin\php\phpX.X.X directory
2. Run the following command
aptitude install phpunit
3. Then the following
aptitude install php-pear
4. Then the following...
pear install phpunit/PHPUnit
5. If you are getting an error as “No valid packages found Install failed” then run the following command
pear upgrade-all
6. Upon successful completion of Step 5, re-run the command in Step 5
If you are not able to create PHPUnit tests via “Create PHPUnit tests” please follow the below steps.
1. Go to the \bin\php\phpX.X.X directory
2. Edit phpunit.bat
3. Verify “set PHPBIN” value. Provide the exact location of php.exe file.
Example: If php.exe and phpunit.bat are in the same directory and if the phpunit.bat shows as set PHPBIN=".\php.exe", it should be corrected as set PHPBIN="php.exe"
4. Verify the value of %PHPBIN% and correct it as required
Installing Selenium in NetBeans IDE
1. Go to the \bin\php\phpX.X.X directory
2. Run the following command
pear install Testing_Selenium-beta
3. Open IDE and go to Tools -> Plugins
4. Install Selenium Module for PHP
Ref by Bhagya's blog

