Saturday, March 30, 2013

GSM MCC MNC FOR MALAYSIA TELCO

Malaysia - MY

MCC MNCBrand OperatorStatus Bands (MHz)References and notes
50201ATUR 450Telekom Malaysia Bhd OperationalCDMA2000 450 (depreciated)011-(6digits)
50210 DiGi Telecommunications [85]
50211TM Homeline Telekom Malaysia Bhd [86] [85]
50212Maxis Maxis Mobile Services SDN BerhadOperationalGSM 900 / GSM 1800 / UMTS 2100 [87]
50213Celcom Celcom Axiata BerhadOperational GSM 900 / GSM 1800 / UMTS 2100Formerly TMTouch
[88]
50214 Telekom Malaysia Berhad for PSTN SMS [85]
50216DiGi DiGi Telecommunications OperationalGSM 1800 / UMTS 2100
50217HotlinkMaxis Prepaid OperationalGSM 900 / GSM 1800 / UMTS 2100 Formerly TimeCel Adam017
50218 U MobileU Mobile Sdn Bhd OperationalUMTS 2100Domestic Roaming with Celcom
50218TM Homeline Telekom Malaysia BhdOperational CDMA 850[89] On MCMC website, 502-18 is allocated to U Mobile [85]
50219Celcom Celcom Axiata BerhadOperational GSM 900 / GSM 1800 / UMTS 2100[90]
50220 Electcoms Wireless Sdn BhdOperationalCDMA PTT and CDMA Technology. Uses TM CDMA [85]
502150Tune Talk Tune Talk Sdn BhdOperationalMVNO uses Celcom [85]
502151 Baraka Telecom Sdn Bhd (MVNE)OperationalMVNO SalamFone[91] (MVNO)-MAXIS,[85]Previously using DiGi.
502152Yes YTL Communications Sdn BhdOperational WiMAX 2.3 GHz / LTE 4G[85]

Thursday, March 28, 2013

Ruby: Get Value from Collection

    TITLETYPE = [['Prof.', '4'],    ['Dr.', '3'],    ['Mrs.', '2'],    ['Ms.', '1'],    ['Mr.', '0']]
    
    TYTLETYPEHASH = Hash[TYTLETYPE]  
    TYTLEHASH.key('1') # => 'Ms.' 

Tuesday, March 19, 2013

Ruby Book online

http://ruby.bastardsbook.com

ERROR: Failed to build gem native extension

# sudo gem install rails
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'

# ruby -v
ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]



# sudo apt-get install ruby1.9.1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ruby1.9.1-dev
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 1,218 kB of archives.
After this operation, 4,119 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu/ quantal-security/main ruby1.9.1-dev amd64 1.9.3.194-1ubuntu1.3 [1,218 kB]
Fetched 1,218 kB in 2s (456 kB/s)        
Selecting previously unselected package ruby1.9.1-dev.
(Reading database ... 277339 files and directories currently installed.)
Unpacking ruby1.9.1-dev (from .../ruby1.9.1-dev_1.9.3.194-1ubuntu1.3_amd64.deb) ...
Setting up ruby1.9.1-dev (1.9.3.194-1ubuntu1.3) ...
razimi@Dell-NSeries:~$ sudo gem install rails
Building native extensions.  This could take a while...
Fetching: rdoc-3.12.2.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.2.13.gem (100%)
Fetching: rails-3.2.13.gem (100%)
Successfully installed json-1.7.7
Successfully installed rdoc-3.12.2
Successfully installed railties-3.2.13
Successfully installed rails-3.2.13
4 gems installed
Installing ri documentation for json-1.7.7...
Installing ri documentation for rdoc-3.12.2...
Installing ri documentation for railties-3.2.13...
Installing ri documentation for rails-3.2.13...
Installing RDoc documentation for json-1.7.7...
Installing RDoc documentation for rdoc-3.12.2...
Installing RDoc documentation for railties-3.2.13...
Installing RDoc documentation for rails-3.2.13...




# sudo gem install rails
Building native extensions.  This could take a while...
Fetching: rdoc-3.12.2.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.2.13.gem (100%)
Fetching: rails-3.2.13.gem (100%)
Successfully installed json-1.7.7
Successfully installed rdoc-3.12.2
Successfully installed railties-3.2.13
Successfully installed rails-3.2.13
4 gems installed
Installing ri documentation for json-1.7.7...
Installing ri documentation for rdoc-3.12.2...
Installing ri documentation for railties-3.2.13...
Installing ri documentation for rails-3.2.13...
Installing RDoc documentation for json-1.7.7...
Installing RDoc documentation for rdoc-3.12.2...
Installing RDoc documentation for railties-3.2.13...
Installing RDoc documentation for rails-3.2.13...

ruby -v
ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]


DONE

Monday, March 18, 2013

Nginx 413 Request Entity Too Large


I got Nginx error 403: Request entity too large. How do I fix this problem and allow file upload upto 2MB in size?


    # vi /usr/local/nginx/conf/nginx.conf
Add client_max_body_size in http section

    http {      ....      client_max_body_size 2M;      ....  }

Save and close the file. Reload the nginx
    # /usr/local/nginx/sbin/nginx -s reload

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...