I am a proud owner of 2009 Bajaj Pulsar 150cc DTSi. I rarely find complete specification on Internet so I uploaded myself.
Curl – A gentle slope system
Recently I (Shishir Sharma ‘criss’ )came to know about Curl Language. It’s a MIT – DARPA project. It’s a multi-paradigm hybrid functional language. Curl is reflective, homo-iconic, object oriented programming language. It supports closures, macros and declarative layouts.
Its syntax is based on TEX and has a big set of formatting operations. Curl is very scientific language, As they state …
“one uses the same easy-to-learn syntax to create interactive documents as to create regular text documents.”
How to know the current version of a repository on the SVN server.
$ svn info -r HEAD
In the case of Git/SVN, this will be.
$ git ls-remote --heads origin
We surf the internet. We do it every day. Nowadays, I have a 2Mbps broadband connection, but life needs more.
I used to have a slow connection of 56Kbps a few months back. Bandwidth was a big issue at that time (It’s still an issue 😂). But India is “shining” we have a cheap broadband connection now.
When I was on 56Kbps, I had this habit of making an offline cache of useful pages. I usually used the HTTrack Website Copier
“It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuilt relatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one to another. You can, also, update an existing mirror site, or resume an interrupted download””
SpiderZilla is intended to be a Firefox and Mozilla Suite extension for offline browsing. It is only a front-end for the open-source command-line program HTTrack Website Copier.
If you can keep your head when all about you
Are losing theirs and blaming it on you;
If you can trust yourself when all men doubt you,
But make allowance for their doubting too;
If you can wait and not be tired by waiting,
Or, being lied about, don’t deal in lies,
Or, being hated, don’t give way to hating,
And yet don’t look too good, nor talk too wise;
If you can dream – and not make dreams your master;
If you can think – and not make thoughts your aim;
If you can meet with triumph and disaster
And treat those two imposters just the same;
If you can bear to hear the truth you’ve spoken
Twisted by knaves to make a trap for fools,
Or watch the things you gave your life to broken,
And stoop and build ’em up with wornout tools;
If you can make one heap of all your winnings
And risk it on one turn of pitch-and-toss,
And lose, and start again at your beginnings
And never breath a word about your loss;
If you can force your heart and nerve and sinew
To serve your turn long after they are gone,
And so hold on when there is nothing in you
Except the Will which says to them: “Hold on”;
If you can talk with crowds and keep your virtue,
Or walk with kings – nor lose the common touch;
If neither foes nor loving friends can hurt you;
If all men count with you, but none too much;
If you can fill the unforgiving minute
With sixty seconds’ worth of distance run –
Yours is the Earth and everything that’s in it,
And – which is more – you’ll be a Man my son!
– Rudyard Kipling
As we all know, all the windows user are cursed by proprietary tools. It’s tough to find standard tools which are available on Linux.
I was looking for a code indenting tool on Windows XP. The obvious choice is GNU indent, I have used it on Fedora. Thanks to GnuWin32 which provides ports of gnu indent with an open source license, on Windows.
GnuWin32 provides ports of tools with a GNU or similar open source license, to MS-Windows (Microsoft Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista / 2008).
The GnuWin32 project provides Win32-versions of GNU tools, or tools with a similar open source licence. The ports are native ports, that is they rely only on libraries provided with any standard 32-bits MS-Windows operating system, such as MS-Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista. Native ports do not rely on some kind of Unix emulation, such as CygWin or Msys, so that there is no need to install additional emulation libraries.
At present, all developments have been done under MS-Windows-XP, using the MinGW port of the GNU C and C++ (GCC) compilers. Utilities and libraries provided by GnuWin32, are used and distributed with packages such as GNU Emacs and KDE-Windows.
The packages that have been ported, fall into four broad categories:
I always appreciate coding in standard C++. Desktop Calculator is a application coded in Standard C++. It is a application based on the example 6.1 in the book “The C++ Programming Language”, Third Edition by Bjarne Stroustrup. Desktop Calculator is a GPL software.
Working with command prompt on windows is messy. Working with multiple version of a language/compiler on windows is a trip to hell.
Possible workarounds are:
- Set all the paths and add tags in names of binaries
(stupid. You would have to remember all names or you will have to use some naming convention; still you will keep guessing).
- Create users and set different versions in each user’s paths
(Foolish. Then changing version will be like logging as different user).
- Use a Customized Command Prompt
(Elegant. Developers friendly)
How to Customize Command Prompt.
Create a file Called
YOURSYSTEM-VER-cofig.bat. Where YOURSYSTEM is the name of the system you are using and VER is the version of that specific system like python-2.6-config.bat.
Now put some codes in the file. Like:
Then create a new shortcut Right click on empty space or
File -> New -> Shortcut.
%COMPSPEC% /K "C:pathtoyourfile" in it
Then Rename the shortcut to a proper name.
Then click on Finish. Now Right click on the shortcut.
Select shortcut properties.
We can set the Fonts of the Command prompt.
We can set the color of the command prompt. like BACKGROUND, FOREGROUND.
We can even set the buffer and the screen layout of the shell window.
Now you are ready to enjoy this very good feature.
I recommend you to keep all these files in one folder say with name config-all and with attribute as hidden.
Well, Python has good news. Python Enhancement Proposal 3000 (pep 3ooo) states that py3k project will lead to a new version of python which will be no longer compatible to 2.x.
The original pep 3ooo was written in Apr 2006, and since then developers are constantly improving the language.
The pep 3ooo states Python 3.0 will break backwards compatibility with Python 2.x.
Welcome to my blog. I will try to write something or other here. But mostly this will be my public archive of things I found useful — kind of my online notes.
Your feedback is welcome.