Saturday, September 29, 2012

Android HSPA settings & MMS settings for Mobitel


Go to ,
Settings --> Wireless and Network --> Mobile Networks -- > Access Point Names

HSPA settings

Tap menu and select New APN.

Enter the following settings. ( for none and not set fields leave them empty )

Name: Mobitel
APN : mobitel3g
proxy : 192.168.050.163
port : 8080
User Name : not set
Password : not set
Server : not set
MMSC : not set
MMS proxy : not set
MMS port : not set
MCC : 413
MNC : 01
Authentication type : none
APN tpe : internet

Tap menu , tap save and tap back.


MMS settings


Tap menu and select New APN.

Enter the following settings. ( for none and not set fields leave them empty )

Name: MobitelMMS
APN : wapmms
proxy : none
port : none
User Name : not set
Password : not set
Server : not set
MMSC :  http://192.168.050.165
MMS proxy :  192.168.050.163
MMS port : 8080
MCC : 413
MNC : 01
Authentication type : none
APN tpe : mms


Tap menu , tap save and tap back.

Tuesday, September 18, 2012

How to activate hutch midnight packages



Hutch Srilanka has introduced a prepaid data plan that gives u a bundle of data plus talk time in two flavors.

One way to activate this package is mentioned in their web site. Where you have to reload the specific amount and the system will activate the package for you.


Other way is as follows, where you can use existing balance of your account to activate the data plans without reloading it.

  1   Type *131# on your phone                                                           
  2   Select 5 from the menu and reply                                                 
  3  Select the appropriate number for you package and reply again  
  4  You will receive a conformation message in a while                    



Or the short code type *131*5*1# for 2GB package or *131*5*2# for 4GB package and dial.



Thursday, September 13, 2012

Toward more categorized web ...

Identify to which category a URL belongs will be a crucial matter when it comes to web semantics. Also for other ongoing research areas such as unsupervised machine learning, networking systems it is a must to have a catalog of web.

But the problem is that it is hard to find affordable such catalog. Also when it comes to categorizing web, human interfere is preferred rather than using computer algorithms to do so. But to find such a man made web category which is affordable is hard. Where the www.dmoz.org comes in.

Dmoz is also called as the "Open Directory Project", named after its original domain name "direcotory.mozilla.org". This is owned by netscape which still maintained by lot of  human participation.

Dmoz has a catalog over 2 million URLs which has been categorized in to 605228 categories and growing. RDF dumps of the dmoz has been available  under open directory license and from 2011 it started  to use creative common license.

RDF

RDF known as "resource description framework" is one of W3C specification which has been used as a meta data model. This has been used as a method to model web resources. Also RDF is XML based language.

Dmoz RDF dumps.

RDF dumps of the dmoz is available at the this URL.

But for me it was bit harder to process RDFs since no proper library with documentation available for me in python so i use this script with some modifications to convert RDF dump to a SQL dump. (Modifications has to be done since the script us old PHP versions. So if you use new PHP interpreter please check the script for deprecated functions etc. )





Sunday, August 12, 2012

When nvidia driver update make a mess of your Ubuntu ...

I have to face this issue after i update my nvidia graphics card driver in my Dell xps L502 which set the resolution of the display to 640X480 with 4:3 ratio.

I have tried almost all the things that could find in google but nothing work for me other than removing all the nvidia drivers, which include "nvidia current" and others.

After removing all nvidia drivers it still did not fixed the issue.

So i rename the xorg.conf in "/etc/X11" directory and then it worked for me.

PS: before doing that i also followed the instructions in below post also.

http://askubuntu.com/questions/127851/change-boot-screen-resolution


  1. We will have to edit grub configuration. Open a terminal and paste this:
    sudo gedit /etc/default/grub
    Hit Enter. It will open grub preferences in Gedit.
  2. Locate the line "# GRUB_GFXMODE=800x600" (resolution may be different).
You have to change the resolution to actual resolution of your screen, for example mine is 1240x1024. Next step is to uncomment this line (remove the # and and the empty space if is, so the letter G of the word GRUB will be the first letter in this line). After u r done, save the file and close.
3 . Now paste this line in terminal:
sudo gedit /etc/grub.d/00_header .
Hit Enter. It will open a text file with a lot of stuff. Use the search option at the top of the window to locate this line:
gfxmode=${GRUB_GFXMODE} 
After u successfully find it, u will have to add this line: "set gfxpayload=keep" (of course without the " sign) just under the gfxmode=${GRUB_GFXMODE}. Make it look like this:
set gfxmode=${GRUB_GFXMODE}
set gfxpayload=keep
Now, save the file and close.
4 . In terminal paste:
sudo update-grub 
Hit enter, it will generate new grub.cfg file so the changes u made will be saved.
Reboot and enjoy your new boot screen resolution.
In case u don't know what is your screen resolution
Go to System settings - Displays

Sunday, June 24, 2012

Stop browsing facebook From windows OS

I m sure most of you guys have fed up with facebook already. No doubt it is a huge waste of time. You waste your time that you have for reading, watching movie or most probably time for do studies to browse facebook.

As from medical aspects doctors have recognize the highly addiction to facebook is a mental illness and i m sure most of the facebook users like us have this since we waste approximately 3/4th of our day on facebook.


For me when i logged in to my windows or linux operating systems and start the browser, first thing i do is, type www.facebook.com, go there and see what are the news, status updates and photos of my friends. Then somebody come online and chat with me, some one else join to the chat and so on. Which make my 5 minutes browsing session goes on for more that 6 hours sometimes.

I dont to deactivate my account neither, because it is the only medium that connect all the friends i know since i was in nursery to university. And temporarily deactivation is humiliating since its like you log out and login by blocking your account.

Most of the time i use windows as my operating system (it is dual boot machine). So i did blocked facebook to my windows OS by the operating system level. There are software like anti virus programs which let you do this in more easy way, but it is very easy to undone that too. That is why i used the hard way because no body wants to do the hard things again and again, humans are lazy from their nature.

Let us stop facebook hardway ....

This is a simple method, for non IT people we do little mapping to facebook URL to our localhost so when you type the an URL starting from www.facebook.com it will give you 403 error saying "access forbidden to the content you request" because there in no facebook.com in our local machine. So lets start little hacking then,

1. Go to the location "C:\windows\system32\drivers\etc\"



2. Copy the file named "hosts" to desktop (also copy and back up this file to separate location in case things gone wrong.)

3. Open the copied hosts file with your favorite editing program (notepad, wordpad, notepad++ ) and add the following line to the end of the file and save it back to the desktop.

                    127.0.0.1         www.facebook.com                                 



3. After editing and saving the file back to the Desktop, copy the edited file back to the "C:\windows\system32\drivers\etc\"  location and replace the original file.

4. Check if everything is ok by typing the "www.facebook.com" into your browser's address bar. If things were alright it will give you HTTP 403  or ACCESS FORBIDDEN error. 




Monday, June 4, 2012

UnPlug - No more guarding , when your phone is charging




UnPlug mobile security is a free tool that has been written for android platform version 2.1 and above. This app is simply guarding your phone in a public place when you want to charge the phone. 

Imagine a scenario such that you are in your office, gym or even in airport and you want to charge your phone. Before UnPlug mobile security you have to wait beside the phone for 3 or 4 hours until it gives you 100% charged notification. But with UnPlug you can get your life along while the phone is charging.

Yes.. No more guarding while your phone is charging. You do not need to afraid bout those phone thieves anymore, UnPlug mobile security will take care about your phone even you are not there. 

How this happens ? Its a very simple answer. When a power  source connected, UnPlug mobile will identify the power connected event and it will keep watching your phone's back.  Before the phone is disconnected from the power source you have to enter the password and unlock the phone because if not the phone will start a loud siren which will take the attention of each and every living being in that area and also it will self generate a message and send it to your back up phone number that has been given to the app at it's installation process. 

You can download it from android market ( click here ).










Sunday, May 6, 2012

Mysql Connector/C++ build and install from source

1. Install Cmake build tool


sudo apt-get install cmake


2. Install libmysqlclient16-dev library



sudo apt-get install libmysqlclient16-dev



3. Install squeeze (stable) Build platform



sudo apt-get install squeeze




4. Go to the Mysql download page and download the source for c++ connector, extract it and go into the folder using terminal.

5. Set the following  environment variables


export CC=gcc
export CFLAGS=-O1-g
export CPPFLAGS=-DNDEBUG
export CXX=g++
export CXXFLAGS=-O1-gexport CC=gcc
export CFLAGS=-O1-g
export CPPFLAGS=-DNDEBUG
export CXX=g++
export CXXFLAGS=-O1-g
export LDFLAGS=-static-libgcc
export PICOPT=-fPIC
export LDFLAGS=-static-libgcc
export PICOPT=-fPIC


6. Edit file in following locations and add missing includes.

   i.  Add #include <cstdio>  to driver/mysql_art_resultset.cpp 
   ii. Add #include <stdio.h>  to driver/mysql_resultbind.cpp 
   iii. Add #include <stdio.h>  to test/unit/classes/resultsetmetadata.cpp

7.  Run


cmake .
make 
make install