Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  37 powerful Linux shell commands

To work on Linux platform, you cannot avoid using shell commands to complete some tasks. These tasks can be as simple as list files in some directories or find some text in some file, or can be as complex as monitoring processes. In this post, we will share 37 powerful Linux shell commands. TaskCommands1Delete file with 0 byte(empty file)find . -type f -size 0 -exec rm -rf {} \;find . type f -size 0 -delete2Check process memory consumptionps -e -o "%C : %p : %z : %a"|sort -k5 -nr3Check process CPU utilizetionps -e -o "%C : %p : %z : %a"|sort -nr4Print URLs in cachegrep -r -a jpg /data/cac...

40,121 0       LIST LINUX COMMAND


  3 ways to remove duplicates in List

Frequently, we may have an ArrayList which stores many values, and we need to process the ArrayList and get what are the distinct values in the list, or we may want to count occurrence of each value in the ArrayList. We can remove the duplicates in a few ways. Here we propose 3 methods :    public static void main(String[] args){        //SuperClass sub=new SubClass();                String[] ar = { "dd", "c", "dd", "ff", "b", "e", "e" };        ArrayList list ...

8,954 0       JAVA CLEAR LIST DUPLICATE


  List of freely available programming books

Meta-ListsHow to Design Programs: An Introduction to Computing and Programming25 Free Computer Science EbooksFree Tech BooksMindView IncWikibooks: ProgrammingCheat Sheets (Free)CodePlex List of Free E-BooksBook Training - On Video!Sofware Program Managers Network - Free EBooksEBook Share @ linbai.infoFreeBooksClub.NetTheassayer.orgO'Reilly's Open Books ProjectTechBooksForFree.comGalileo Computing (German)Microsoft Press: Free E-BooksGraphics ProgrammingGPU GemsGPU Gems 2 - ch 8,14,18,29,30 as pdfGPU Gems 3Graphics Programming Black BookShaderX seriesDirectX manual (draft)Le...

4,573 0       PROGRAMMING LIST FREE EBOOK LINKS


  Python: copying a list the right way

new = old[:]Those proficient in Python know what the previous line do. It copies the list old into new. This is confusing for beginners and should be avoided. Sadly the [:] notation is widely used, probably because most Python programmers don’t know a better way of copying lists.A little bit of pythonic theoryFirst we need to understand how Python manages objects & variables. Python doesn’t have variables like C. In C a variable is not just a name, it is a set of bits; a variable exists somewhere in memory. In Python variables are just tags ...

2,562 0       PYTHON LIST COPY REFERENCE [:] LIST()