Tuesday 12 August 2014

MTS MBlaze ubuntu setup


Bought an MTS MBlaze and set it up on Ubuntu Precise (12.04). I tried the autorun.sh script provided with the USB, in its flash storage. They described this in a How-to-install.txt. Script didn't work.

So, I tried using it through the detected CDMA connection. Enabled networking, manually edited the connections and set username:internet@internet.mtsindia.in and password : MTS. This didn't work either. The MTS network was detected but it could not be connected to. DuckDuckGo'ed the problem and found a soution.

Here, I followed exactly these steps:

  • Issue at terminal:
    sudo apt-get install wvdial
  • Issue at terminal:
    sudo apt-get install usb-modeswitch usb-modeswitch-data
  • Edit /etc/wvdial.conf and add this to it:
    [Dialer mts]
    Stupid Mode = 1
    Inherits = Modem0
    Password = mts
    Username = internet@internet.mtsindia.in
    Phone = #777
    [Modem0]
    Init1 = ATZ
    SetVolume = 0
    Modem = /dev/ttyUSB0
    Baud = 115200
    FlowControl = Hardware (CRTSCTS)
    Dial Command = ATDT
    
  • Save the file (make sure you edit it as root).
  • Issue@Terminal:
    sudo wvdial mts

wvdial then starts the connection and you can start browsing.

wvDial is a point-to-point protocol dialer [P2P Protocol]. It is used to establish a direct connection between nodes.
About usb-modeswitch, it is needed in Linux. The USB modem comes with on-board drivers for windows, and when plugged in, the drivers are installed (normal for flash storage devices). If the drivers are already installed the USB modem comes up.
In Linux, this usb-modeswitch tool is needed to switch flash-storage to usbserial.

Wednesday 6 August 2014

Room Allocation : Results

Allotted Rooms


5Deepankar ChaudharyNachiketa PrakashVACANT
6Aman goswamiBhupesh NegiPanaj singh
7Sharukh KhanSalman KhanAamir Khan
8Aseem RainaNavodit MehtaVACANT
9Rajvardhan KaviSiddharth NegiVACANT
10bharat kumar satiVACANTVACANT
11PARANTAP JOSHIANIRUDH TRIPATHIHarshit Joshi
12Jiteen BhandariVACANTVACANT
13VACANTVACANTVACANT
14VACANTVACANTVACANT
15VACANTVACANTVACANT
16VACANTVACANTVACANT
17atul prakashkamlesh pratap pandeyVACANT
18Shivam Mamgainnaveen chauhanvivek kumar
19VACANTVACANTVACANT
20VACANTVACANTVACANT
21rohit joshiVACANTVACANT
22Anurag Dudejauday pratapVACANT
23VACANTVACANTVACANT
24VACANTVACANTVACANT
25VACANTVACANTVACANT
26TUSHAR JOSHIBIRENDRA VIKRAM SINGHVACANT
27VACANTVACANTVACANT
28VACANTVACANTVACANT
29Trinayan BhattVACANTVACANT
30VACANTVACANTVACANT
31VACANTVACANTVACANT
32VACANTVACANTVACANT
33Rohan ZutshiKartikey MamgainAyush Bhandari
34VACANTVACANTVACANT
35VACANTVACANTVACANT
36VACANTVACANTVACANT
37VACANTVACANTVACANT
38VACANTVACANTVACANT
39VACANTVACANTVACANT
40VACANTVACANTVACANT
41VACANTVACANTVACANT
42VACANTVACANTVACANT
43VACANTVACANTVACANT
44VACANTVACANTVACANT
45VACANTVACANTVACANT
46VACANTVACANTVACANT
47VACANTVACANTVACANT
48VACANTVACANTVACANT
49VACANTVACANTVACANT
50VACANTVACANTVACANT
51Somesh LohaniHitesh LohaniAnmol Ratna Pant
52SANCHIT GOELHARSH BANSALABHISHEK SOI
53Mayank SaxenaROHIT RAKSHITSHUBHAM CHAUBEY
54YASH BHANDARIVACANTVACANT
55Ayush SharmaSuyash PandeyGAURAV CHAND
56Prakamya JoshiUmang KumarVACANT
57Aman pandeysiddarth bistAbhishek Chandra
58Angelina jolieMegan FoxSATYAVRAT SARAN
59AJAY RAWATVACANTVACANT
60SHANTANU VERMAAJAY JOSHIVACANT
61VIJAY ARORAVACANTVACANT
62VACANTVACANTVACANT
63VACANTVACANTVACANT
64VACANTVACANTVACANT
65Aditya KumarSaurabh ThakurVACANT
66VACANTVACANTVACANT
67VACANTVACANTVACANT
68VACANTVACANTVACANT
69VACANTVACANTVACANT
70VACANTVACANTVACANT
71VACANTVACANTVACANT
72VACANTVACANTVACANT
73VACANTVACANTVACANT
74VACANTVACANTVACANT
75VACANTVACANTVACANT
76VACANTVACANTVACANT
77VACANTVACANTVACANT
78VACANTVACANTVACANT
79VACANTVACANTVACANT
80VACANTVACANTVACANT
81VACANTVACANTVACANT
82VACANTVACANTVACANT
83VACANTVACANTVACANT
84VACANTVACANTVACANT
85VACANTVACANTVACANT
86VACANTVACANTVACANT
87VACANTVACANTVACANT
88VACANTVACANTVACANT
89VACANTVACANTVACANT
90VACANTVACANTVACANT
91VACANTVACANTVACANT
92VACANTVACANTVACANT
93VACANTVACANTVACANT
94VACANTVACANTVACANT
95VACANTVACANTVACANT
96VACANTVACANTVACANT
97VACANTVACANTVACANT
98VACANTVACANTVACANT
99VACANTVACANTVACANT
N-1Karan kanwalRajendra Singh MerVACANT
N-2vaibhav bijolaVACANTVACANT
N-3PrateekVACANTVACANT
N-4VACANTVACANTVACANT
N-5VACANTVACANTVACANT
N-6VACANTVACANTVACANT
N-7VACANTVACANTVACANT
N-8Prince KumarHimanshu SindhwaniVACANT
N-9VACANTVACANTVACANT
N-10Akhilesh YadavVijay KumarVACANT
N-11Shankar BatraAkash GangwarKishore Kumar
N-12Ankush kumar singhalshivi bansalVACANT

Tuesday 5 August 2014

Tagore Hostel : Room Allocation started

Tagore Room Allocation

The 81 days long Summer Vacation is now coming to an end. 21st August, 2014 is the Registration Day. Happy, that boring holidays are getting over. Angry, that our Batch has been alloted the same Hostel, Tagore (rumours or truth, vo to abhi pata nahi). With the Fine(st) facilities and the Best Mess, Tagore Hostel is one of the worst places to reside. So, what could could be more intimidating than the fear to spend another year in Tagore...
I guess, Starting an Online Room Allocation Website and ditching the rumours aside would be a cool prank.

Developing the Site

I needed something for students to trust the site, 'Office of Registrar, Pantnagar' anyone??...To make students believe, I had to imitate the front-end very closely. Saving the entire webpage through chrome isn't difficult.
Here's the difficult part. Developing the back-end with PHP and MySQL. Actually, it wasn't tough either. What annoyed me the most, was to think of an idea to make sure that every guy allocates a room only once, given I had no way to check if he has already done that (there was no way for me to identify unique visitors). The Solution was an obfuscated use of Cookies and Databases. I won't go into detail, but the code had loopholes. And I could only hide them by making the users trust the site, or else the plan fails.

Plan

is simple. Gain user trust at the first page, request their IDs and Passwords, albeit passwords had no importance. Even if you entered an invalid one, there was no way for me to check. The IDs were required to make sure students allocate room only once. Besides this, there were other loopholes too. One was inadvertent. The user could use the back button of browser and allocate rooms as many times he likes. Fortunately, I figured it out when Neeraj started doing it, and had that resolved.

As I told, there was no way to check the entered passwords, some students figured that out, and the site was soon declared "FARZI". But, still it wasn't clear to most. It was only after Megan Fox and Angelina Jolie Allocated a room for themselves (with Satya, :D), people declared it fake.
I didn't use student IDs to fill the Allocated_Rooms table, Instead I used their names provided (when requested) at Room-selection-page. This idea makes the site more engaging,,,whos-with-whom?? kind of thing.

Result

Awesome, yeah! Pretty Awesome. The site was online for only 4.5 hours (after that it got disabled by the host becoz of the CPU usage limit.


TheQuestion

If we entered the correct passwords at the site, Were they saved in Db?
The answer is : ABSOLUUUUUTELY
But I don't have them anymore, I deleted the table from the Database.You may check (or even change) your passwords if you are skeptical. Besides, the table had a lot invalid IDs (many entered by myself) and invalid passwords too. I won't go all the way through checking what ones are correct.

Sab Simtate hue aur Maff-iya mangte hue

Jis kisi ko, meri taraf se thes pahuchi ho....usse..me...maaffi
.
.
.
.
.
.
.
.
.
.
.
.
bhala kyu maangu?? :P .
I mean I helped you change "SYST", something you don't consider important.