Showing posts with label how-to. Show all posts
Showing posts with label how-to. Show all posts

Friday, July 1, 2011

How-to Repair an Oracle Database using Putty, SQL Developer GUI and some trial-and-error

I had a problem earlier when I made some changes to the test/dev DB and didn't know how to revert back to correct state.

Issue:
I couldn't delete a row in a table containing incorrect data as the row's primary key was acting as a foreign key in some other table. If I deleted this row it would violate the integrity of the other table(s).

Process:
So I took a backup of the entire DB (just in case I needed it  and I did need it!!).
Dropped the constraints, deleted all the related rows (or something like that)
Recreated the constraints and the DB was restored to correct state.
In the process I learned quite a bit about DB's.

Tried out individual commands in the GUI.
Then copied multiple commands into a script.
Ran the scripts, corrected any errors till I got a working script.
Liberally used transaction and rollback to help in the trial-and-error process.

----
I don't remember the specific details but basically
I used a GUI DB browser (SQL Developer) to connect to a Remote DB by port forwarding from my Unix machine.

Working with command-line client is ok if you're really good at it and know all the command syntax etc.
But using a GUI browser really speeds things up as it can manage things like transactions, rollback etc all at the click of a button.

Database GUI SQL Developer allows you to
+ Try out individual commands (with rollback) to see if you're getting the right results.
+ Copy paste small commands into a bigger sql script (with start transaction at start and commit or rollback at script end)
+ Browse a remote DB in GUI mode using a DB connection (using ssh tunnel),
+ backup the entire database (for safety)
+ maybe try out things on a local database first, before attempting the same on the actual DB.

You can export the original DB. Import into a local DB. Try out the operations to check it works.
It may also help to create try out your modifications on a duplicate DB on remote machine instead of touching the problematic DB directly.

1) SQL Developer Setup and Tunneling (port forwarding) instructions are available here.
http://www.cs.tau.ac.il/~boim/courses/databases2009/slides/moreinfo/connection-guide.htm#_Toc150420090
http://www.madirish.net/?article=152
2) You may need to tweak a few things on your Unix machine to get the tunnel working though.
3) Finding somebody in your/other teams who's good at Databases will be a big help.
    Local person who can see what the problem is and give quick suggestion is always better.
4) Searching on error messages would help find howto's for fixing the problem.
5) Search error messages in forums like stackoverflow.com will help to quickly find the info or relevant links.

HTH.
----
Oracle SQL Developer

PDF - Oracle SQL Developer User Guide
Oracle SQL Developer at wikipedia
Oracle SQL Developer Tutorial
Connecting Oracle SQL Developer to MS SQL Server
How-to Export Tables/Entire DB with Oracle SQL Developer

Oracle SQL*Plus command line interface (CLI)

SQL*Plus CLI FAQ
SQL*Plus CLI command reference
SQL*Plus Tutorial

Sunday, November 7, 2010

Debugging Multiple Processes/Threads with GDB

Debugging multiple inferiors and programs
Gdb allows you to debug multiple programs at once without exiting the process you're currently running.
Gdb uses an inferior as a handle for a process. An inferior  is attachable/detachable from a process
    info inferiors    # display list of current inferiors.

     (gdb) info inferiors
       Num  Description       Executable
       2    process 2307      hello
     * 1    process 3401      goodbye
Switch to another inferior:
    inferior infno   # make inferior number infno the current inferior

Loading multiple inferiors:
1)    add-inferior [ -copies n ] [ -exec executable ] # n defaults to 1 and optional exec gives an empty inferior
2)    clone-inferior [ -copies n ] [ infno ]    # n defaults to 1 and infno defaults to current inferior number

Ending the inferiority complex:
remove-inferior infno        # Remove the empty inferior Note: Can't remove an inferior with a running assoc. process.
detach-inferior infno         # detaches from an inferior from assoc. process
kill-inferiror infno             # kills the process attached to the inferior. It can be removed or re-attached to some process.

Debugging Multi-threaded Programs:
    info threads    # displays thread info - thread number, thread-id,  stack frame summary
    thread threadno     # make threadno as active current thread and shows stack frame summary

Starting and Stopping Multi-thread Programs
2 modes of debugging:
1) All stop mode: aka 3 musketeers mode i.e. "All-for-one, One-for-all"
2) Non-stop mode:
    set target-async on|off    # Switch asynchronous mode.
    show target-async         # Show the current target-async setting.

    interrupt    # suspend execution of the running program (whole process in all-stop, current thread in non-stop modes)
    interrupt -a    # stop the whole program in non-stop mode

Saturday, October 30, 2010

The Pyramid of Knowledge

Knowledge can be thought of as a Pyramid of Information, like the predator-prey biological pyramid or energy distribution in an ecosystem.

Building the Knowledge Pyramid is like a "Fox and Hounds Paper Chase" so that the Walk-The-Long-Road on the Information Trail/Path becomes much easier.

First need to categorize learning resources into 3 levels:
1) Top-Down: Solution Space - What problems does this technology address and solve?
2) Middle-Up/Down: Module level concepts like Manager code e.g. Virtual Filesystem Cache Manager, Storage Manager
3) Bottom-Up:

Search for Short-Intros materials like ppts, podcasts, pdfs, research papers, articles, blogs, videos, mindmaps, TOC
Find the Gurus in the trade and their JourneyMan followers
Subscribe to RSS Feeds to blogs by them
1) JourneyMen in the domain like Yeshawant Kanetkar who explain things well to Apprentices (WalkInThePark Pattern)
2) MasterCraftsMen in the domain like Stroustrup, Richter, Butenhof (WalkInTheForest Pattern)

0) Blogs, articles or PPTs doing a system walk-through relating how various things and flows through the system
     like "Gusatvo Duartes blogs on Operating Systems"
1) General books to get a feel for the domain and common constraints, solutions, patterns and principles
    like "Operating System Principles", "Distributed Systems: Principles and Paradigms"
2) Applied Books using APIs, Frameworks
    like"Linux System Programming", "Windows Application Programming by Richter"
3) System/Sub-System Level books describing internals of APIs, Frameworks
     like "Understanding the Linux Kernel", "MFC Internals"

Categorizing Method Applied to Information Trail:
    Follow most referred book/white-paper trail in collections like Bibliographies, Appendices, References etc.
    This method works on any of the above 3 levels,
    Example:
   Get generic Distributed domain book from amazon and follow Up/Down to higher/lower levels of Pyramid.  
    "Distributed Systems: Principles and Paradigms" -> "C++ Network Programming" ->
     a) POSA2 (Basic Distributed Patterns)-> POSA3 (Resource Mgmt Patterns) - (Design Level Classics)
     b) Operating System -> "Operating System Principles" by Galvin -> "Understanding theLinux Kernel" by Bovet and Cesati
     c) Module Level Concepts -> Caching Virtual FileSystems, Remoting Patterns -> Research Papers -> Classic Books referring to the Research Papers
     d) Networking -> "Programming the Sockets API" by Stevens -> ... -> "Linux Network Internals" (Implementation Level Classics)

On a Related Note:
A Concept Map can very nicely simulate such a Tree of knowledge.
Hmmm.... kind of like the way WikiMindMap hierarchically orgranises a Wikipedia article into a tree structure. So we can do the following to convert a wiki/webpage into a concept map:
1) Use WikiMindMap to convert wikipedia article into a Freemind MindMap and export it as a .mm file
2) Use XMind to convert the .mm file into an XMind Concept Map which is shareable and editable with friends.

Howto Learn in Small Chunks - (Bite Sized Learning)

Many of the curious and interested people always end up saying at one time or another....
"I've really wanted to learn more BUT I can't seem to find the time for it...."

What happens to our time, after all as someone said "God gave each one of us 24 hours".
So how is that some people seem to make so much more use of them than others?


Apart from the solid block of time allocated for our salary-paying masters what's left of them?

Waiting in queues for doctors, meetings to start, buses to show up.... these are the places we lose our free-time 24 hours.

a) The main problem is these time-chunks are fragmented i.e. the free chunks occur in-between major tasks. We need some method to connect these small fragments together
b) Mostly these free-time chunks are too small to do any significant work.
c) Sometimes we cannot predict when we'll get these free minutes/hours. So we tend to browse stuff and use up these fragments of time.

But there is a way that we can make full use of these time-chunks if we learn how to
a) Learn in small chunks by finding bite-sized activities.
b) Actively Record-What-You-Learn so that you can continue where you left off last time. This way the task switching overhead is minimized as you save your work every few minutes - kinda like saving that important file so you don't lose all your work when the computer hangs.

1) Subscribe to RSS Feeds to blogs by Gurus in the trade and their followers (WalkInThePark, WalkInTheForest Patterns)
2) Browse constantly using a phone/iPad to browse the net on idle time-chunks like waiting for the bus, doctor, queue etc.
3) Keep a book handy for power-cuts, reading on bus etc. (Make sure that it's small enough and has big letters for easy reading). StudyTheClassics to avoid wasting time on useless stuff. Amazon ratings may not be the best guide at all times. A classic is normally referenced by many books even the time-waste ones. Utilize the bibliography at the end of most books.
4) Learn Research-Techniques like Skimming, SpeedReading, Mindmapping on a book for quick outline of the book to be added in the book review.
5) Capture the essence of what you understood by taking notes a book for quick reference later.

Use the book fully -
1) Annotate the TOC with educated guesses and already known-facts gathered from Short-Intros. Peek into topics which you can't explain well to yourself or to refresh/cross-check your memory.
2) Categorize the bibliography into ShortIntros, Mid-Stuff, Adv-Stuff to build up your Knowledge Pyramid
3) Keep incrementing your blog on the topic with all resources - links, notes, thoughts, questions.
4) Keep Reviewing your blog to reduce/add TODOs:
    correct grammatical mistakes,
    add further links for later annotation,
    cleanup and reorganize information,
     re-view the gathered information with a fresh eye,
     simplify, clarify, generalize, specify, elaborate, concise information,
     split of a huge post into different blog posts
     (each post should not be more than 2 PageDowns for the reader)
5) IMPORTANT: Blog should not be a place where information goes to die but a place where it comes alive.
With each review and update it should spawn a new generation of Rise-From-The-Ashes-Phoenixes.
6) You'll be surprised to see how much you can achieve in small bites spread across time.

See Also:
How to Read A Book And Why (from bookshelved wiki)

Wednesday, October 6, 2010

Understand Source Code by Reading Code and Refactoring for Maintaining Large Projects

This list consists of one-liner tips to be used for easy lookup and reference.

Rewriting Code for Better Understanding (Coding Horror)

  • What I cannot create, I do not understand. [Richard Feynman]
  • "What I do not create, I do not understand."[Chris]
  • "It's easier to understand 600 tables than 100,000 lines of code." [PaulC on comp.databases.theory/2005]
  • Create a new project with blocks of code copied from old code. Refactor to reduce "old code smell"
  • Start refactoring by adding small tests to better understand code and act as regression tests.
  • Just scan through huge amounts of code till it starts making sense - "understand by constant exposure".
  • Create a text file to capture your understanding - briefly describe how the component works, realtions to other components, what it persists, its states, and source browsing/debugging tips you found useful.
  • Manually reformat a copy of the code - white space, and indented as per your personal style.
References:
  1. Working Effectively with Legacy Code
  2. Object Oriented Reengineering Patterns
  3. Refactoring: Improving the Design of Existing Code

Tuesday, October 5, 2010

Howto Improve your Blog's design


Accessibility: Does the title grab the attention of your intended audience?
  1. Does the title have keywords used by the audience while searching google?
  2. Does google index your blog regularly?
  3. Push your blog updates to blog broadcastors like weblogs.com
  4. Does your blog load up fast? Use the "Jump/Read More" feature and Optimize load time.

    Retention: Is it easy for a casual browser to remember your blog and info you pain-stakingly put in?

    Tuesday, September 28, 2010

    mmap() is not the territory!! Part 2

    Final code at end of debugging:

    bool testFileCopyWithSharedMem(const string &srcFileName, const string &destFileName)
    {
        bool isCopyOk = false;
        string diffCmd = "diff " + srcFileName + " " + destFileName;
        int retval = system(diffCmd.c_str());
        cout << "system(" << diffCmd << ") returned: " << retval << endl;
        if( retval == 0 )
        {
            isCopyOk = true;
        }
        return isCopyOk;
    }

    int doFileCopyWithSharedMem(const string &srcFileName, const string &destFileName, size_t sharedMemSize)
    {
        //int retval = 0;

        //Map SourceFile
        errno = 0;
        int srcfd = open(srcFileName.c_str(), O_RDONLY);
        if (srcfd < 0) {
            const char * causeOfError = strerror(errno);
            cout << "open() returned:" << causeOfError << " at:" << __LINE__ << " in:" <<__FUNCTION__ << endl;
            cout << "open(" << srcFileName << ") returned: " << srcfd << endl;
            return -1;
        }
        struct stat sb;
        fstat(srcfd,&sb);
        long pageSize;
        //pageSize = sb.st_size;
        pageSize = sysconf(_SC_PAGESIZE);
        errno = 0;
        char *srcFilePtr = 0;
        srcFilePtr = (char *) mmap(0, pageSize, PROT_READ, MAP_SHARED, srcfd, 0);
        if (srcFilePtr == MAP_FAILED)
        {
            const char * causeOfError = strerror(errno);
            cout << "mmap() returned:" << causeOfError << " at:" << __LINE__ << " in:" <<__FUNCTION__ << endl;
            return -1;
        }

        //Map Dest File
        errno = 0;
        int destfd = open(destFileName.c_str(), O_RDWR|O_CREAT|O_TRUNC, 0600 );
        if (destfd < 0) {
            const char * causeOfError = strerror(errno);
            cout << "creat() returned:" << causeOfError << " at:" << __LINE__ << " in:" <<__FUNCTION__ << endl;
            cout << "creat(" << destFileName << ") returned: " << destfd << endl;
            return -1;
        }
        errno = 0;
        char *destFilePtr = 0;
        destFilePtr = (char *) mmap(0, pageSize, PROT_WRITE|PROT_READ, MAP_SHARED, destfd, 0);
        if (destFilePtr == MAP_FAILED) {
            const char * causeOfError = strerror(errno);
            cout << "mmap() returned:" << causeOfError << " at:" << __LINE__ << " in:" <<__FUNCTION__ << endl;
            return -1;
        }

        ftruncate(destfd, sb.st_size);
        cout<< "PID:" << getpid() <
        //cout << srcFilePtr << destFilePtr <
        system("cat /proc/self/maps");

        memcpy(destFilePtr, srcFilePtr, sb.st_size);
        //msync(destFilePtr, pageSize,MS_SYNC);

        munmap(srcFilePtr, pageSize);
        munmap(destFilePtr, pageSize);
        close(srcfd);
        close(destfd);
        return 0;
    }
     
    ----------------------------------------------------------------------------
    Time required:  
    Debugging 1 AM to 5:40 AM. 
    20 Minutes to note down these points in the blog. 
    2 hrs to massage it into shape.

    Interesting Links:
    DevShed : development tutorials: http://www.devshed.com/
    Gentoo Bug Reporting Guide: http://www.gentoo.org/doc/en/bugzilla-howto.xml 
    C sample source on Gnu/Linux : http://www.c.happycodings.com/Gnu-Linux/index.html
    Mmap() security bug with Null Pointers: http://blog.ksplice.com/2010/03/null-pointers-part-i/
    Wiki on Chromium multi-process debugging with gdb: http://code.google.com/p/chromium/wiki/LinuxDebugging
    BugReport: http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg2333427.html 


    mmap is not the territory Part 1 : http://techtalkies.blogspot.com/2010/09/mmap-is-not-territory-or-mapfail-sigbus.html

    mmap() is not the territory!! Part 1

    (OR) how MAP_FAIL, SIGBUS,
    beg to differ with mmap!!
    Wrote a small program using mmap() to copy a fromFile.txt to toFile.txt using virtual memory

    --------------------------------------------
    Issue#1: mmap() returns MAP_FAIL
    mmap() requires exactly the same flags as the filedescriptor/fd as when it was open()/creat()-ed
    i.e. if you used O_RDONLY in open() then you can't mmap() it as PROT_WRITE.

    chmod basics: http://www.linux.org/lessons/beginner/l14/lesson14b.html
    creat/open man page: http://linux.about.com/od/commands/l/blcmdl2_open.htm
    -------------------------------------------------
    Issue#2:
    Error Message: In gdb getting SIGBUS with error coming from inside memcpy!!

    108        memcpy(destFilePtr, srcFilePtr, pageSize);
    5: pageSize = 14
    4: destFilePtr = 0xb7ffc000

    3: srcFilePtr = 0xb7ffd000 "hello, world\n\n"
    2: destfd = 6
    1: srcfd = 5
    (gdb) n

    Program received signal SIGBUS, Bus error.
    __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
    75    ../sysdeps/i386/i686/multiarch/../memcpy.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../memcpy.S
     
    Searching on this gave no direct answers on the error message but gave some pointers on causes.
    Tried all the below tools but still getting the same error message:
    0) used apt-get update and rebooted "just-in-case"
        https://help.ubuntu.com/8.04/serverguide/C/apt-get.html
    1) used strace ./file-copy-vm to check the system calls were getting called properly.
       getting SIGBUS on write() ostensibly called from inside the memcpy
    2) used ldd ./file-copy-vm to check that the libstdc++ - and libc.so were existent.
       They were present
    3) Installed glibc-dbg and libstdc++-devel etc for debugging the library.
        No change.
    Finally found the problem in an off-by-N error in memcpy(dest,src, pageSize)

    Since SIGBUS comes when a page worth is allocated but size of mapping is less than pagesize. 
    i.e. the accessed address is more than filesize but inside pagesize.

     So realized my mistake and changed:
            memcpy(destFilePtr, srcFilePtr, pageSize); //WRONG.
    Corrected it to:
            memcpy(destFilePtr, srcFilePtr, sb.st_size); //Correct
    ------------------------------------------------------------------------------------------------------------------
    Issue#3: Still getting SIGBUS from memcpy() AND
    out of bounds>

    Breakpoint 3, doFileCopyWithSharedMem (srcFileName=..., destFileName=..., sharedMemSize=8192) at ../src/file-copy-vm.cpp:104
    104        cout<< "PID:" << getpid() <
    4: destfd = 6
    3: srcfd = 5
    2: srcFilePtr = 0xb7ffd000 "hello, world\n\n"
    1: destFilePtr = 0xb7ffc000
    0xb7ffc00 out of bounds>

    (gdb) n
    PID:7136
    106        system("cat /proc/self/maps");
    4: destfd = 6
    3: srcfd = 5
    2: srcFilePtr = 0xb7ffd000 "hello, world\n\n"
    1: destFilePtr = 0xb7ffc00
    0xb7ffc00 out of bounds>

    (gdb) shell cat /proc/7136/maps
    [SNIP]
    08048000-0804a000 r-xp 00000000 08:01 933913     /home/gurud/cdt-linux-tools-workspace/file-copy-vm/Debug/file-copy-vm
    0804a000-0804b000 r--p 00001000 08:01 933913     /home/gurud/cdt-linux-tools-workspace/file-copy-vm/Debug/file-copy-vm
    0804b000-0804c000 rw-p 00002000 08:01 933913     /home/gurud/cdt-linux-tools-workspace/file-copy-vm/Debug/file-copy-vm
    0804c000-0806d000 rw-p 00000000 00:00 0          [heap]
    b7fec000-b7fee000 rw-p 00000000 00:00 0
    b7ffb000-b7ffc000 rw-p 00000000 00:00 0
    b7ffc000-b7ffd000 rw-s 00000000 08:01 933725     /home/gurud/cdt-linux-tools-workspace/file-copy-vm/Debug/toFile.txt
    b7ffd000-b7ffe000 r--s 00000000 08:01 933672     /home/gurud/cdt-linux-tools-workspace/file-copy-vm/Debug/fromFile.txt
    b7ffe000-b8000000 rw-p 00000000 00:00 0
    bffeb000-c0000000 rw-p 00000000 00:00 0          [stack]

    Hmmm... here the destFilePtr seems to be pointing to the correct memory-mapped file i.e. toFile.txt
    The destFilePtr
    is pointing to out-of-bounds accesss.
    Also the SIGBUG seems to suggest that I'm trying to write/access to an address in memory that's allocated but out of bounds of the empty dest file. Otherwise I'd have got a SIGSEGV if the memory had not been allocated.
     
    I observed that toFile.txt is showing filesize as zero on the disk. Aha!!
     
    Robert Love in his book "Linux System Programming" had mentioned files with slack-space/holes (in memory as well as disk respectively). Could this be the reason??!! 
    http://www.devshed.com/c/a/BrainDump/Using-mmap-for-Advanced-File-IO/
    Finally I cross-checked my code with a sample implementation for mmap() file copy program.
    Found out that they used lseek() to expand the memory mapping instead of ftruncate() to expand file size with a hole instead of ftruncate().
    http://www.c.happycodings.com/Gnu-Linux/code6.html

    So we just need to increase the size of the dest-file using ftruncate.

    (gdb) help call
    Call a function in the program.
    The argument is the function name and arguments, in the notation of the
    current working language.  The result is printed and saved in the value
    history, if it is not void.

    (gdb) call ftruncate(destfd,sb.st_size)
    $1 = 0

    doFileCopyWithSharedMem() returned:0
    system(diff ./fromFile.txt ./toFile.txt) returned: 0
    testFileCopyWithSharedMem() returned:0

    (gdb)

    Hurray!! the unit testcase passes!! 
    It's 6 AM!! Tiring but worth it!! Gotta go and sleep now

    ----------------------------------------------------------------------------

    See Also : 
    mmap is not the territory Part 2 : http://techtalkies.blogspot.in/2010/09/mmap-is-not-territory-part-2.html

    Friday, September 24, 2010

    Howto subscribe to this (and other) RSS Feeds.

    RSS feeds push the blog content to you, instead of you having to check for updates to the site.
    All this from within your browser or RSS feed client s/w.


    You can very simply subscribe to any of the below options:
    1. The whole blog, (or)
    2. Individual blog-posts, (or)
    3. Even just the comments part of the blog.

    Howto:

    0) Just use the newly added gadgets at top of the blog:
       Subscribe to: Posts Comments

    1) If you're using Firefox just click on the Orange Icon in your address-bar.
        And choose which folder to save your "Live Bookmark"/RSS feed into.
       Howto subscribe to RSS feeds in FireFox in seconds: http://johnbokma.com/firefox/rss-and-live-bookmarks.html


    2) You can also use the below URLs:


    3) Also Rss feeds to subscribe to blog comments can be found at the bottom of the blog:
            "Subscribe to: Posts (Atom)"

    Reference Links:

    Thursday, September 23, 2010

    How to find an answer to (some) of your questions - in Life, the Internet and Other Forums ;-) !!!

    Self-Learning


    Heuristics and Problem solving


      Asking Questions on Online Forums

      + Video - Learning from Stackoverflow : http://www.youtube.com/watch?v=NWHfY_lvKIQ
















      + Video - Good Stack Overflow Citizen by Jeff Atwood : https://www.youtube.com/watch?v=HRRWDf-xB2Y















      + Article - Writing the Perfect Question by Jon Skeet : http://blogs.msmvps.com/jonskeet/2010/08/29/writing-the-perfect-question

      + Article - Answering Technical Questions Helpfully by Jon Skeet : https://codeblog.jonskeet.uk/2009/02/17/answering-technical-questions-helpfully

      + Stackoverflow Checklist for Writing a Good Question : http://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist

      ============

      1. How to Ask Questions the Smart Way (on forums)"by Eric S. Raymond : http://catb.org/%7Eesr/faqs/smart-questions.html 
      2. Stackoverflow guidelines on how to ask questions on the forum : http://stackoverflow.com/questions/ask 
      3. How to search in a smart way for previously answered questions on stackoverflow : http://stackoverflow.com/search 
      4. Questions NOT to ask : http://www.catb.org/esr/faqs/smart-questions.html#classic 
      5. Examples of Good and BAD questions : http://www.catb.org/esr/faqs/smart-questions.html#examples 
      6. How to Ask Questions (Simple English) at perlmonk : http://www.perlmonks.org/?node_id=788576 
      7. How NOT to ask a Question at perlmonk : http://www.perlmonks.org/?node=How%20%28not%29%20to%20ask%20a%20question 
      8. Before you ask the question : http://catb.org/%7Eesr/faqs/smart-questions.html#before
      9. What to Ask : http://www.catb.org/esr/faqs/smart-questions.html#asking 
      10. What to do if You Can't Get An Answer : http://www.catb.org/esr/faqs/smart-questions.html#id383575%20 
      11. How to Keep Cool and Deal With Rudeness  : http://www.catb.org/esr/faqs/smart-questions.html#keepcool 
      12. How to search for code : http://www.google.de/codesearch

      ====

      Researching

      1. Get Connected section  of  "How to do Research at MIT AI Labs"   
      2. Collected Advice on Research and Writing : http://www.cs.cmu.edu/afs/cs.cmu.edu/user/mleone/web/how-to.html  
      3. PDF- Brief advice on How to sift through research papers in your domain : http://blizzard.cs.uwaterloo.ca/keshav/home/Papers/data/07/paper-reading.pdf
      4. Videos on How to Build Your Research Career : https://www.quora.com/Are-there-good-blogs-and-books-on-how-to-do-good-scientific-research/answer/Gurudutt-Mallapur

        Monday, September 20, 2010

        Installing Eclipse C++ CDT with Linux Tools for debugging and profiling applications on Linux

        The Eclipse incubation project Linux Tools integrates C/C++ Development tools.
        It's a GUI plugin to integrate tools like Valgrind, GProf, GCov, SystemTap etc into the Eclipse C++ CDT IDE.

        [Articles on Linux Tools]
        Download page of Eclipse Helios gives 2 good alternatives for C++ developers on Linux:
        • Java6 JRE update :apt-get install sun-java6-jre
        • Unzip the Eclipse tarball and run the eclipse binary from inside the tarball: 
                  tar -zxf eclipse-cpp-helios-linux-gtk.tar.gz && ./eclipse

        [Website]
        [Usage]
        [Docs]
        [Whitepapers]

        [Interview]



        [Cpp Check tool integration with Eclipse]
        • cppcheclipse integration of with Eclipse CDT from (google code):
        • About: http://code.google.com/a/eclipselabs.org/p/cppcheclipse/
        • Wiki: http://code.google.com/a/eclipselabs.org/p/cppcheclipse/wiki/Installation
        • Download: http://code.google.com/a/eclipselabs.org/p/cppcheclipse/downloads/list