Skip to main content

Posts

Showing posts with the label Reference

Correct way to structure your Django 1.4 projects

PS: This post is written assuming you're familiar with Django and at-least have some basic experience trying to set-up a Django project (for learning or for some cool project). Purpose: To show how to properly set-up your Django1.4 project after seeing other developers getting it wrong (seen it wrongly structured by my mentee, senior developers and junior developers at my firm.). Django 1.3 Project structure: Initial structure followed by two apps added to the project. Refer above picture, where I shown a Django < 1.4 project structure. (I know, at least Django 1.2 & 1.3 follows this structure). First tree view is of the initial structure that you will get by calling $ django-admin startproject Proj Take a note that manage.py, settings.py, urls.py are in the main folder. Following  tree display is after creating two apps named app1 & app2. You'll do it as follows $ ./manage.py startapp app1 $ ./manage.py start...

Finding per user contributions in an SVN repo

There was a need to get per user contributions in a project last year. That project was versioned using Subversion (svn). At last we came up with the following script, which surely is not fool proof, provides an over all per user contribution. Here it's: However, I left it to you to improve further; who knows the unmodified version might be good enough for you.

Finally, I have my hands on them

It had been so long, since I started to think about buying a book titled " The C Programming Language " by Bryan W. Kernighan and Dennis M. Ritchie . If I put it as accurately I can as possible now a days, It'll be 3 year after I learned how to program (Obviously, In C, we initiated). This book is a standard reference for "C" language till the date, a gift from authors of the language, themselves. It wasn't available at local book stalls. (I do think, that's the case, even now.) The other book shown here, Is called " Hacker's Delight .". Well, it's no immediate use to me. But I liked the content of that Book. It's a bible of Bit level Algorithms and techniques. What I already know about bit arithmetic become nothing in front of this Excellent book. A must have, If you want to know your machine. Want to become a Embedded expert and so on.  And If I say, these are first Computer Science books that I'm buying wit...

Software Engineering - Continues refinement

Every programmer wishes to write some code, which is both elegant, and readable. A master piece to reference to... And there may not be a single programmer, who said at least once in their life time that, "If I had time, I'd rewrite it" or any similar one. Today, let's discuss, how the idea of sorting a list of list went on,   I had to sort a list of lists, that's the result of a search, comes from Web Service. After that, the result is extracted from the XML document that's returned and formatted for front end. So, now all the data is in the form of strings. And I'm ended up with the task of sorting a list of list of strings, based on different items in the inner lists @ different times. And Obviously we can't compare the data as strings, we have to convert them into their proper data type before comparison. Since, I works on a Python based project, First thing, that came to mind is to use, sorted inbuilt function, and pass it a functi...

Start on Microchip programming... for hobby or for money

One of my friend asked me today the following question,  I'm often asked about this, someway or other. Let me answer this now for all.... Q: " I want to start programming on chip.. Can you suggest a good chip and a device to program it? Also tell me any sites which can help me ." A:" Simple one is Arduino. You will get it packaged with a programmer. If you want some more powerful and commercial one, Go for Microchip's PIC family of processors. After you are familiar with those, and need even more power, try AVR from ATMEL ." Some resources from my Bookmarks is given below: http://www.voti.nl/swp/ http://www.embedds.com/ http://www.instructables.com/id/Business-Card-PIC-Programmer/step2/Parts/ http://www.arduino.cc/playground/Main/ElectroInfoResources http://www.piclist.com/techref/microchip/index.htm My bookmarks become so messy now a days, and I'm not getting time to organize them. So, these are the quickest ones that I pic...

Files in C++

I know all of you, who tried to learn C++, someday wishes to have a good understanding on Files in C++. But It's not easy to find all that stuff in one place. Today I completed writing a seminar paper on the same topic. Although it's for my collage, and is a work given by my C++ lecturer, I decided to publish it for interested audience. So I uploaded it to my Google Docs account. You can find it here . But still you may find that it's not so explanatory or there is not so enough examples., etc. But don't worry, I am going to write a series on the same topic. So wait for it. And I guarantee to provide many examples too. One more thing this document is published under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Science: Physics: Animated Wave Diagrams on the Wave Structure of Matter

Science: Physics: Animated Wave Diagrams on the Wave Structure of Matter : "http://www.spaceandmotion.com/science-physics-wsm-wave-diagrams.htm" Very nice blog with a lot of visualizations. Do you know that a image or video enhances our interest in subject and what we understand out of theory. So if you are struggling with waves just have a look.

Java Certification

There is no validity for this course. I mean currently no institution or firms consider this as a qualification. But may be in future they consider so. This course differs from ordinary course. There is no projects or assignments. All we want to do is study the material provided by them and submit the home works. We have more than five months of time for that. And in total more than twenty home works. This course covers Basic of Java or Core Java. It starts from novice (ie., loops and declaring variables too ) and advances from there. This covers swing, File handling, Little bit RMI and client/server networking, Threads, Java Beans etc. etc. ... The course is maintained and developed by Mr. Sang Shin. Also there are many to help him. We get support from class mailing list. And if we complete the course successfully, we also get a certificate like above one that get to me. There are other courses too. For example Java Performance tuning, Java EE, Java FX etc. And like th...

Want your personality boost up? You Must read it!

Want your personality boost up? You Must read it ! I am referring to a book named "Handwriting Analysis Putting It to Work for You" by Andrea McNichol with Jeffrey A. Nelson. Its ISBN is 81-7224-064-3. It has about 328 pages and cost of RS. 275.00(Indian rupees) I liked this particular book very much and I wants the world know about this.Of course if my friends read my blog they are too.I think they get befitted from it.any more. Now lets have a look what it conveys with us...... If you want a preview of the books use this link to see it in Google reader service. what it refers is as follows It is a good book which analysis the science of handwriting very attractively. Which enable us to decipher others just by seeing there handwriting samples. Which also enables us to get rid of traits associated with bad attitudes their by unknowingly improve our personality. If you interested enough to know more about hand writing related topics look here .