Work on progress

Hello everyone.

Today i am gonna talk about my new upcoming projects.

1. oblivion

Well by using the python programme you can determine total lines of any file. The main goal of the project is that, i wanted to know how many lines of code i wrote so far.

#!/usr/bin/env python
# beta
# Lisence Under GPL2
# Author: S.Mahbub-Uz-Zaman
import fnmatch
import os
def count_lines(filePath):
f = open(filePath)
lines = sum(1 for line in f)
return lines
def main():
sum = 0
for root, dirnames, filenames in os.walk('.'):
#if root.split(os.path.sep)[-1] == "Dropbox":
#print "dropbox"
for filename in fnmatch.filter(filenames, '*.java'):
sum += count_lines(os.path.join(root, filename))
print 'whhhhat ',sum
if __name__ == '__main__':

view raw
hosted with ❤ by GitHub

2. Tech History

I am gonna put small description of tech giants like IBM, Google, Apple etc.

// Compiled by: S.Mahbub-Uz-Zamanm


# International Business Machines (IBM) (Big Blue)

Founder(s): Thomas J. Watson Charles and Ranlett Flint
Founded: June 16, 1911, Endicott, New York, U.S.


# Microsoft

Founder(s): Bill Gates and Paul Allen
Founded: April 4, 1975, Albuquerque, New Mexico, U.S.

Mou icon

It’s the 1970s. At work, we rely on typewriters. If we need to copy a document, we likely use a mimeograph or carbon paper. Few have heard of microcomputers, but two young computer enthusiasts, Bill Gates and Paul Allen, see that personal computing is a path to the future.

In 1975, Gates and Allen form a partnership called Microsoft. Like most start-ups, Microsoft begins small, but has a huge vision—a computer on every desktop and in every home. During the next years, Microsoft begins to change the ways we work.

In June 1980, Gates and Allen hire Gates’ former Harvard classmate Steve Ballmer to help run the company. The next month, IBM approaches Microsoft about a project code-named “Chess.” In response, Microsoft focuses on a new operating system—the software that manages, or runs, the computer hardware and also serves to bridge the gap between the computer hardware and programs, such as a word processor. It’s the foundation on which computer programs can run. They name their new operating system “MS‑DOS.”

When the IBM PC running MS‑DOS ships in 1981, it introduces a whole new language to the general public. Typing “C:” and various cryptic commands gradually becomes part of daily work. People discover the backslash (\) key.

MS‑DOS is effective, but also proves difficult to understand for many people. There has to be a better way to build an operating system.

Geek trivia: MS‑DOS stands for Microsoft Disk Operating System.


# Apple

Founder(s): Steve Jobs, Steve Wozniak, and Ronald Wayne
Founded: April 1, 1976, Cupertino, California

The Apple I personal computer kit, a computer single handedly designed by Wozniak. The kits were hand-built by Wozniak John Sculley became CEO of Apple on April 8, 1983, a position he held until leaving in 1993


# Oracle Corporation

Founder(s): Larry Ellison, Bob Miner, Ed Oates
Founded: June 16, 1977, Santa Clara, California, U.S.


# Cisco

Founder(s): Leonard Bosack and Sandy Lerner
Founded: 1984, San Francisco, California, U.S.


# Paypal

Founder(s): Ken Howery, Max Levchin, Elon Musk, Luke Nosek and Peter Thiel
Founded: June 1998, Palo Alto, California


# Google

Founder(s): Larry Page and Sergey Brin
Founded: September 4, 1998, Menlo Park, California

In 1995 Larry Page and Sergey Brin meet at Stanford. Larry, 22, a U Michigan grad, is considering the school; Sergey, 21, is assigned to show him around.

In 1996 Larry and Sergey begin collaborating on a search engine called BackRub. BackRub operates on Stanford servers for more than a year—eventually taking up too much bandwidth.

In 1997 is registered as a domain on September 15. The name—a play on the word “googol,” a mathematical term for the number represented by the numeral 1 followed by 100 zeros—reflects Larry and Sergey’s mission to organize a seemingly infinite amount of information on the web.



Founder(s): Jimmy Wales, Larry Sanger
Founded: January 15, 2001


# Linkedin

Founder(s): Reid Hoffman, Allen Blue, Konstantin Guericke, Eric Ly and Jean-Luc Vaillant
Founded: 2003, Santa Monica, California


# Facebook

Founder(s): Mark Zuckerberg, Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes
Founded: February 4, 2004


# YouTube

Founder(s): Steve Chen, Chad Hurley, and Jawed Karim
Founded: February 14, 2005


# Twitter

Founder(s): Jack Dorsey, Noah Glass, Evan Williams, Edward Cramer and Biz Stone
Founded: March 21, 2006


view raw
hosted with ❤ by GitHub

Enjoy 🙂

টার্মিনাল কমান্ড বাংলায় (Termianl Commands in Bangla)

Few days ago i wrote some code to execute terminal commands in Bangla.


// Author Shouro and Mahbub
// 24 February, 2014
alias লিস্ট='ls'
alias ঢুকি='cd'
alias দেখ='vim'
alias কপি='cp'
alias মুছ='rm'
alias পুস্তিকাবানাও='mkdir'

For Mac

The following command will append the code in your .bash_profile file

$ echo alias ঢুকি='cd' >> .bash_profile

To see the changes

$ cat .bash_profile

Now try the bangla command in a new Terminal window


view raw
hosted with ❤ by GitHub


Enjoy 🙂

Android Time Class

Get Old Month Using Time Class

// Author: Mahbub


just provide the month, year and day and get previous dates

Since Time class does not provides months and day name, you have to do that by yourself

public void oldDate(int month, int year, int day) {

    oldDay = 1; // here i did not vary the old months date

    String s;
    for (int i = 1; i <= 5; ++i) { // i am fetching last 5 month data
        if (month == -1) {
            month = 11;
            year = year - 1;

        oldYear = year;
        oldMonth = month;
        Time old = new Time();
        old.set(oldDay, oldMonth, oldYear);
        s = "Month of "+old.month+ +old.year;
        // update