Monday, May 15, 2017

Mac Learning


1.  Double Click
        - Click with 2 fingers

2.  Home Button
       - Command + Left Key

3.  End Button 
       - Command  + Right key

4.  Page Up
      - Command + Up Key

5.  Page down
       - Command + Down Key

6.  Start of document
      - Fn + up key

7.  end of document
      Fn + down key

8. To Go Desktop
    Fn + F11

9.  Install subversion
brew install subversion

10. Set up Ssh

https://docs.joyent.com/public-cloud/getting-started/ssh-keys/generating-an-ssh-key-manually/manually-generating-your-ssh-key-in-mac-os-x


11. set sort command
nano .bash_profile
alias test="command"

12. Delete current cursor
ctrl +D

13. print screen and desktop
shift +command + 3

14.  print screen in cursor
shift + command + ctrl +3

15. Best SQL connector
Sequel Pro

16. Best Editor
Sublime

17. Delete anything
Command + delete

18. option + command  + Q


19. Sublime replace in mac
commad + option +f

20. find and replace in nano
ctrl + \


21. start apache , stop and restart
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
apachectl configtest


22. Apache version
httpd -v

23. Apache troubleshott
pachectl configtest
 
 
24.System Level Web Root
/Library/WebServer/Documents/
 
  
25. Setup php
http://www.alphansotech.com/blogs/setup-apache-mysql-php-phpmyadmin-mac-osx/


26. run command with super user
sudo su -


27. Clean up by Name
command + option +1  



       


     

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