January 2008
5 posts
Linux Job Control
While running a job you can suspend a job using ctrl -z or terminate a job using ctrl -c.
You can list the current jobs using the command jobs. The list will show a number next to each job. You can control each job referencing using these numbers.
A job can be moved to the foreground by fg %N .
A job can be moved to the background by bg %N .
A job can be killed by kill %N && fg.
A...
Stopping maven checking for new snapshots
If you are having problems building with maven because it’s trying to grab online resources try running mvn –o …. It won’t work if there are missing dependencies but it will stop it check online for new snapshots.
Delete all the text in a file in vi
Go to the start of the file and type not in edit mode and type dG
Object-Oriented Software Metrics
The levels to strive for An application should consist of no more than 40 stories and no more than 100 classes. The application’s entire business domain should not require more than 1000 classes. 25-30% of the code should be discarded after each iteration. Responsibilities per class: average of 7. Methods per class: average of 12. Lines of code per method: ...
Getting round "Terminal Server Has Exceeded the...
Connect to the server using ‘mstsc /v:servername /f /console’ if the server is running windows server 2003. Credit to http://geeksaresexy.blogspot.com/2007/02/rdp-magic.html