Wednesday, November 20, 2013

Eclipse Usefull shortcuts

1.  Open file in Particular directory

  • Use Ctrl+Shift+R to bring up the 'Open Resource' dialog
  • Type '*X/' to list all files in the folder X

Monday, August 12, 2013

remove duplicate rows in mysql

ALTER IGNORE TABLE jobs ADD UNIQUE INDEX idx_name (site_id, title, company );\

http://stackoverflow.com/questions/3311903/remove-duplicate-rows-in-mysql

Monday, August 5, 2013

usefull regular expression

/\*(.|[\r\n])*?\*/   for removing comments
^\s*\n  for removing blank lines
//.*$   for single line comment

\d+:  for line removing

Sunday, July 28, 2013

Team Planning

Create Team Leader Projects
Create xls for projects  Create Sheet to manage for each projects
Create xls for team work . Create Sheet to manage for each employee work
Create management xls and note down each point of xls


Everyday Process

A .Come office
B. Start PC
C. Check First management xls and check deadline and Time Frame
D. Now open projects xls and check if there is anything critical and manage task.
E.  Now open xls for developer  and manage task

Now Open Jira and bug tracking tools.

1. Check Client issues and manage project excel

Now take Scrum meeting
 1. Manage developer xls

Now Send email to management or take meeting with project manager and update status of each project , task and developer status













 


 


1. Create Excel For each Project

Wednesday, July 24, 2013

set up viertual host in window apache

<VirtualHost 127.0.0.1:80>
    ServerName  www.test.com
    ServerAlias www.test.com
    ServerAdmin test@test.com
    DocumentRoot "d:/test/"
    ErrorLog d:/test/error.log
    <Directory "d:/test">
    Options Indexes FollowSymLinks
    AllowOverride FileInfo
    Order allow,deny
    Allow from all
   </Directory>
</VirtualHost>

php unit testing


I am using simpletest.org

class test extends unitTestCase{

 function test_pass (){

$bool=false;
$this->assertFalse($bool) ;


}

}


assertTrue($x) asserts that $x is true
assertFalse($x) asserts that $x is false
assertEqual($x, $y) asserts that $x is equivalent to $y
asserNotEqual($x, $y) asserts that $x is not equal to $y
assertNull($x) asserts that $x is null
assertNotNull($x) asserts that $x is not null
assertIsA($x, $t) asserts that $x is of type $t
assertNotA($x, $t) asserts that $x is not of type $t
assertWithinMargin($x, $y, $m) asserts that |$x-$y| < $m is true
assertOutsideMargin($x, $y, $m) asserts that |$x-$y| < $m is false
assertIdentical($x, $y) asserts that $x == $y and that $x and $y are of the same type
asserNotIdentical($x, $y) asserts that either $x != $y and/or $x and $y are of a different type
assertClone($x, $y) asserts that $x and $y are identical copies
assertReference($x, $y) asserts that $x and $y are the same variable
assertPattern($p, $x) asserts that the regular expression $p matches $x
assertNoPattern($p, $y) asserts that the regular expression $p doesn't match $x
expectError($x) swallows any upcoming matching error
assert($e) asserts that we get error error $e




Sunday, July 21, 2013

spring learning tutorial without theory

Do not try to learn what spring do ..you will confuse?
make spring programs then you will know what spring can do ?

Start

1. Download Eclipse -
   do googling download enterprise eclipse

2. make dynamic project and run index php
 
 ------------------------------------------------------------

Start Spring Tutorial
-------------------------------------------------

1. make spring-servlet.xml in WEB-INF folder.

Then Write below code in spring-servlet.xml




2. Do below changes in web.xml
3. Now create app-config.xml
4. Now Create package.
A. com.study.controllers