Skip to main content

Posts

Showing posts with the label Program

Set difference: Data provided from two big files with one number at a line

Today, I had to find out difference between two huge lists of numbers. Numbers are 17 digits long and list are of around 1 lac. PS: I'm documenting both versions here for my future reference. I used python, because diff doesn't felt good for me. because it will print both ins and outs of both files. Also, I ruled out diff's possibility, because I didn't felt it will work at that time. Later, at home: I give diff a try. Yes, it's not that beautiful as in python. I'd cut and sed a bit. But still, it's a "one liner" and I like 'em a lot.

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...

Rich Internet Application & GWT : Angel of Java Programmers

We all are hearing the buzz about Rich Internet Applications (RIA) about a year or so. But, what the heck is that beast ? You may ask. For the user's perspective, it's the desktop like experience delivered over web. Yes, you feel like you are using a real desktop application (well, at least sort of). The richness of desktop controls is transferred to web. How RIA is build? Arise another question. These all started with that amazing kid called AJAX (Asynchronous JavaScript And XML). Then more and more tools become available, like Java FX , Adobe Air , Adobe Flex (and Adobe Flash ), Microsoft Silverlight . But these tools, though it gives rapid and organized web application development, required some kind of plug-ins to be installed on your browser. There is the importance of AJAX based RIAs, because JavaScript is enabled in almost all browsers in use today. However, It's not a fool proof solution, because there are people who switch off JavaScript for some reason, lik...

Contact Manager Extended

The program I wrote recently. That I posted here in an early post. Now I made some changes. That is now you can add as many emails and phone contacts. Also you can add a new email or phone after a contact is created. ie., missing form previous version. But one ToDo is still not done. It's verifying whether email is correct format. It can be done another day. But not now. You can download source here . contact manager by Arun.K.R is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License . cb.py cm.py

My First Python Program

I am very glad today. Because I finally wrote a python program all by myself. I am programming for about 3 years. Of which 2 are using C++ (Old standard and using Turbo C++ IDE ver 3.0 and yet to master Templates and STL. [:-p]) and After starting python using Dive into Python an excellent book by Mark Pilgrim during my 1st year summer vacation, and I only completed Data Structure section. Then I found an excellent Java tutorial by Sang Shin and obtained a certificate by completing First and basic course in Java. Now I am working with My Friend to develop applications in java. We established a web site already. He started programming when he is in 10, ie. more than 2 years of experience. He has Visual Basic too in his side. Now he is doing with JSP and I am concentrating on Python, Ruby (yet to start) and CSS. Today My pleasure is that I completed a python program myself. Which is asked to do in ' A byte of Python ' by Swaroop.C.H. Which is a command line program; and he...

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...

Google Summer of Cods 2008

Hi I think you all already informed abot the opening of Google Summer of codes 2008.Here is its flyer.Take a minute to look at it. Want to write open source code? Want to make money? Want to do both? In 2007 alone, Google Summer of CodeTM brought together 900 students and nearly 1500 mentors across 90 countries to contribute to over 130 different open source software projects. We’re looking for mentors and students to join us in making 2008 the best Summer of Code yet! We’ll be offering successful student contributors a 4500 USD stipend, enabling them to focus on their coding projects for three months. The Google Summer of Code program is designed to encourage student participation in open source development. Kicking off in 2005, the program has several goals: ●Inspire young developers to begin participating in open source development ●Provide students in Computer Science and related fields the opportunity to do work rel...