[Q] What are the best Python scripts you've ever written?

Win `Indian Premier League (cricket)`_ tickets Everybody knows how hard it is to get IPL tickets. CocaCola had an online voting contest, where you upload your picture and other Facebook users have to vote on the picture, at the end of the day the user with most votes will get 2 IPL tickets. I used the following script, and won 2 tickets (twice). FYI, MI v/s CSK and MI v/s RCB ;)

Read more…

Comments

Posted: | by Dhruv Baldawa

[Q] What is the most important thing you learnt as a software engineer through experience?

Couple of months back I completed my first year at Enthought. Before that I have worked twice in Google Summer of Code for Drupal. There are quite a few things I learnt while working on various projects:

Read more…

Comments

Posted: | by Dhruv Baldawa

[Weekend Project] DropHere

/images/drophere/drophere.jpg

A few weeks back, I wrote DropHere. Its written using CoffeeScript, Node.js and Express.js and some HTML5 Drag and Drop APIs.

I created this project as a simple drag-and-drop file uploading service. It uploads files to relevant file uploading service. For example, if you drop an image file, it will be uploaded to Imgur and similarly text files will be uploaded to Pastebin.

You can check out the live demo over here.

Read more…

Comments

Posted: | by Dhruv Baldawa

finally always guaranteed

Let's start off with a question. Given the following code sample:

def foo():
    try:
        return True
    except:
        pass
    finally:
        return False

What do you think the call to foo() will return ?

Read more…

Comments

Posted: | by Dhruv Baldawa

[Q] What are the reasons for poor quality in India's primary and high school education?

Recently coming out of my education, I have the following points to add, since I got educated in Mumbai, my views are mostly are from an urban point of view. These are the most general things I have found in our education system.

Read more…

Comments

Posted: | by Dhruv Baldawa

[Q] How does it feel to not qualify in IIT JEE?

I failed IIT JEE. Got an abysmal score in BITSAT, AIEEE and Maharashtra CET. Its not that I had not tried hard, and I won't be playing the blame games on anyone but the truth is "I had failed".

I was very disappointed and so were my parents, and I felt somewhere I have let them down. My father had to use his contacts and (some extra money) to get me an admission at an engineering college, and I was low on confidence.

Read more…

Comments

Posted: | by Dhruv Baldawa

[Q] Is mathematics invented or discovered?

According to me, mathematics is neither discovered nor invented, but rather observed.

If you think of Mathematics as a formal documentation of formulae or proofs, then they are discovered. But, my definition of Mathematics includes not only documentation, but also application, and application can be done without formal knowledge of mathematical theorems or proofs, but by sheer observations in the surroundings.

Read more…

Comments

Posted: | by Dhruv Baldawa

[Tutorial] Using OAuth2.0 with Google+

The initial API for Google+ was released on 15th September, 2011. But, this API currently supports only public data, and user data (which can be accessed from any web application or web site). However, there no support for building Google+ applications. It follows a RESTful API design and provides OAuth2.0 for authentication.

Read more…

Comments

Posted: | by Dhruv Baldawa

Comparison between form based and syntax based query building

Many friends of mine have questions and doubts regarding the “Specialized Syntax based Query Building” system. They would, however, prefer the “Form-based Query Building”. Why do we need such a system, when the conventional system is working fine ? Why does the user have to type a “Specialized Syntax”, can’t he just use SQL ? and many more questions arise. Lets consider the following scenario :

Read more…

Comments

Posted: | by Dhruv Baldawa

Specialized Syntax for Quick SQL Query Building

Originally, I used to call it “Natural Language to SQL Translator”, but I guess what I intend to do at this point of time is not Natural Language, it is rather a specialized syntax, which I guess can be further extended to natural language. Let me make a thing clear, about the system :

  • It is something which the user sees, and types a query in, it has nothing to do with the data-related operations in a database.
  • The only time it deals with data, is when the result-set is generated and given back to the system, so that it can be post-processed into a better manner.

Hence, its sole purpose is, to help user (end-user/client/power user/reporters) query the database and to give the user a better presentation of the result-set.

Read more…

Comments

Posted: | by Dhruv Baldawa

Dhruv Baldawa

Mumbai, India

All rights reserved.
© 2014 Dhruv Baldawa - Powered by Nikola