Installing VMware Tools for Arch based distros

by in , , 0

  1. Login as root
     su 
  2. Update your system
     pacman -Syu 
  3. Install VMware tools
     pacman -S open-vm-tools open-vm-tools-modules 
  4. Enable VMware tools
    systemctl start vmtoolsd
    systemctl enable vmtoolsd
    cat /proc/version > /etc/arch-release 
  5. Install Mouse and Display Integration
    pacman -S xf86-input-vmmouse xf86-video-vmware svga-dri 
  6. Open following file to configure it
     vim /etc/X11/xorg.conf.d/20-gpudriver.conf 
    Insert following line
    Section "Device"
            Identifier "Card0"
            Driver     "vmware"
    EndSection
    
  7. Get Enabled Copy & Paste between Host and Guest
     
    pacman -S gtkmm 
  8. Exit from root and then enable the VMware-Tools Integration
    exit 
    vmware-user-suid-wrapper
    

Ref:

Set hardware clock to UTC on Windows

by in , 0

မေ့သွားတဲ့အခါ ကွကို ပြန်ဖတ်ဖို့ ရေးထားတာပါ။ တကယ်လို့ vmware မှာပဲဖြစ်ဖြစ် dual boot မှာ ဖြစ်ဖြစ် linux တို့ mac osx တို့ တင်တဲ့အခါ တခါမဟုတ်တခါတော့ vm တွေထဲမှာ အချိန်လွဲနေတတ်ပါတယ်။ linux os တော်တော်များများက bios ကအချိန်ကို UTC အနေနဲ့ ယူပြီး time zone နဲ့ ပြန်ပြောင်းပါတယ်။ ဝင်းဒိုးတခုပဲ ကပေါက်တိကပေါက်ချာနဲ့ RTS ကို local time ထားတာဆိုတော့ ရှိသမျှ vm တွေ မှာ လိုက်မချိန်းပဲ၊ ဝင်းဒိုးမှာပဲ ချိန်းလိုက်တာ ခေါင်းကိုက်သက်သာပါတယ်။ window registry ထဲမှာ

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001 


အဲဒါ သွားထည့်လိုက်ရုံပါပဲ။
မူရင်း ပို့စ်က ဒီကပါ

How to use Putty with Console 2

by in , 0

This post is meant for me to remember when I change my laptop again. 
I love GNULinux but as I am currently working in 100% window only environment, I can’t let go of window yet. I love to do stuffs in Terminal. My choice of terminal in window is Console 2. I don’t want to use CygWin for no reason. I set up a folder for batch scripts and put in window’s path, so that from Console 2, I can do many common tasks. Such as poweroff, vim,curl, nmap, clear, ls, nc, etc.. . When It comes to ssh, I like Putty. Here is how to use putty in Console 2 via @jimueller

The following is as it written in his blog


Instructions
  1. Download ANSICON (Github Repo) and extract the contents from the x86 or x64 folders to your Console2 installation folder.

    I now have the following files in my C:\Program Files\Console2\ directory:
    • ANSI32.dll
    • ANSI64.dll
    • ansicon.exe
    • ANSI-LLW.exe
       
  2. Open Console2 and create a new tab with the command line:
    C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load aPuttyProfileName


But I don't want to make new tab just for each ssh profile, I make ssh.bat inside my batch folder and put this one in ssh.bat instead.
@C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load %*

So whenever i type
 ssh myserver 
it will load my server instantly inside Console 2. Awesome!.

Start Google App Engine - PHP with your own batch command (Windows)

by in 0


Google Apps engine now can run PHP
Here is hello world tutorial from Google, 
What I know is I have to run dev_appserver.py inside sdk folder and  type path to php-cgi.exe and path to the application folder.
It’s quite long for me to type whenever I want to test the app locally.
So I made a batch file inside my [appengine projects] folder and named it appstart.bat
You can save the sdk folder and php-cgi in anywhere you like, just put absolute path inside your batch file.

This is my sample batch file

E:\sandbox\appengine\sdk\dev_appserver.py --php_executable_path=C:\ProgramFilesPortable\php-5.4.20\php-cgi.exe %*
My folder structure is like
+[appengine projects]
    +helloworld
    +testproject1
    +testproject2
    -appstart.bat
So when I want to run helloworld app I just go to command prompt and type, 

e:\appengine projects>appstart helloworld

I am not sure whether or not it's best practice but as for lazy person like me, its works ok. :D
If you have any other tips please let me know also, I am just start learning GAE with PHP. 

Update
Actually I don't need to type it so many times while developing. While running the project also can edit the file. The server will auto reload if necessary as it mentioned at the helloworld example.
You can leave the web server running while you develop your application. The web server knows to watch for changes in your source files and reload them if necessary.

Oracle 10g and Perl

by in 0

When I run my perl script before installing oracle, it is fine with no error. But when I installed oracle 10g I got this error

Use of :unique is deprecated at c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-threa d/Config.pm.. ..

I don't even use oracle in my Perl script. So I am totally confused.
It took me a while to google it and I found this solution.

Just go to environment variable and remove PERL5LIB variable or set it to your perl installaton folder. That fixed it like a charm. 
Oracle comes with its own perl and that one is making me crazy. :D

Dell VOSTRO 3460, Battery (Plugged in, not charging) Fix

by in 2

I intentionally used my laptop given from office until 10% battery last night to discharge battery. This morning when I switched on my laptop it show
 " Battery cannot be identified press F1 for skipped and F2 for setup"
 I skipped with F1 but when charging the battery, It showed Plugged in, not charging
It took me a while to google it for the fix. If it's happened to you also, It is dell being stupid, your battery is still ok.
 It is easy to fix, 

  1. power off your laptop 
  2. take the battery out 
  3. Press power button for 10 second 
  4. put the battery back. 
  5. switch it on. 
That's all.

Unicode Table

by in 0



http://unicode-table.com/en/#myanmar
မြန်မာ ယူနီကုတ် အပါအဝင် ကမ္ဘာသုံး ယူနီကုတ် ကုတ်ပွိုင့်များနဲ့ စာလုံးများကို လွယ်လွယ်ကူကူနဲ့ ကြည့်လို့ရပါတယ်။ 

Standalone Charting Library With HTML5 Canvas

by in , 0


Chart.js is an impressive JavaScript charting library that is built on top of HTML5 canvas.
It currently supports 6 chart types (line, bar, radar, pie, column and polar area) and all this comes in a standalone, <5kb package.
Chart.js
Colors, fonts, borders and their sizes can all be customized. Also, optionally, charts can be loaded with an animation.

The making of the world's thinnest watch

by in 0


In January, Jerry O’Leary and I launched a Kickstarter campaign (currently <3 days to go) for the world’s thinnest watch, the CST-01. This is a watch we have worked on outside of project work while here at IDEO. On IDEO Labs, our aim is to share our process and give our readers an “under-the-hood” look at some of the things happening here at IDEO and, occasionally, beyond our walls. With that in mind, we wanted to recount the evolution of the design of the CST-01 from early CAD sketches to fully working “design validation units” made from real production parts. 
Read more..


Titan Cray XK47, The world's fastest supercomputer so far.

by 0

Titan,  supercomputer at US government’s Oak Ridge National Laboratory has become the world’s fastest computer.
According to Top 500 supercomputer ranking, the Cray XK7, Titan achieved a sustained computing capability of 17.5 petaflops - or 17.5 million billion mathematical calculations per second – on Linpack's benchmark scale. 

The supercomputer cost $200 million and is powered by 18,688 Nvidia Tesla K20X GPUs and over 560,640 AMD processors. 

Photograph courtesy Charles Brooks, Oak Ridge National Laboratory



Sources
 National Geographic
 Anandtech




Credit Card Numbers

by in 0

Via MakeUseOf.COM

understand credit card numbersYou may have heard before that credit card numbers follow a certain pattern and structure so that they can be validated before a transaction is accepted. However, it’s one thing to know that the structure is there and another thing entirely to understand how credit card numbers work.
Why would this knowledge be useful? Well, if you run a small business that doesn’t process credit card payments immediately, you could save yourself money by ensuring the card details are valid. If you don’t, well it could still be fun to show off your skills at parties. Here’s how you do it.

Learning Where The Numbers Come From

Credit card numbers are not random. There’s a special set of numbers to show information about the card issuer and another set to show information about the card holder. One other number is also important, but we’ll come to that later.
The very first number is the Major Industry Identifier (MII) and it tells you what sort of institution issued the card.
  • 1 and 2 are issued by airlines.
  • 3 is issued by travel and entertainment.
  • 4 and 5 are issued by banking and financial institutions.
  • 6 is issued by merchandising and banking.
  • 7 is issued by petroleum companies.
  • 8 is issued by telecommunications companies.
  • 9 is issued by national assignment.
The first six digits are the Issuer Identification Number (IIN). These can be used to look up where the card originated from. If you have access to a list that details who owns each IIN, such as this list of popular IINs on Wikipedia, you can see who issued the card just by reading the card number.
Here’s a few you might recognise:
  • Visa: 4*****
  • American Express (AMEX): 34**** or 37****
  • Diner’s Club International: 36****
  • Mastercard: 51**** to 55****
The seventh digit to the second-to-last digit is the customer account number. Most companies use just 9 digits for the account numbers, but it’s possible to use up to 12. This means that using the current algorithm for credit cards, the world can issue about a trillion cards before needing to change the system.
understand credit card numbers
We often see 16-digit credit card numbers today, but it’s possible for a card issuer to issue a card with up to 19 digits using the current system. In the future, we may see longer numbers becoming more common.
The very last digit of each credit card is the check digit, or checksum. It is used to validate the credit card number using the Luhn algorithm, which we will now explain in detail.

The Luhn Algorithm Validation Check

The Luhn Algorithm is used to validate all sorts of numbers, including credit cards, IMEI numbers and some social security numbers. It’s not designed to be a cryptographically secure hash function, but merely a way to check errors are not made when recording numbers. It is not foolproof, but is generally considered to be useful.
Take the credit card number and read the digits from the right. Double every other number and write them down – if you do it in the same order as your card is written it will help with clarity. Now, wherever you have calculated a double-digit number, change it so that it reads as “first digit + second digit” (in other words, sum the digits of the products). Finally, take your calculations and add those numbers to the numbers remaining on your card that you didn’t double. A legitimate credit card number will give you a result that is divisible by 10.
For instance, let’s use a number I’ve just made up: 4634 8932 1298 2767. I’ll enter it into a table to make it easier to understand the steps.
understand credit card numbers
Try it yourself using the card from the picture earlier in this article. What can you learn from it?

Original Article
http://www.makeuseof.com/tag/credit-card-numbers-random-read-understand/

CSSHórus (Another Css Framework :[X-Browser, X-Plactform])

by in 0

Just found another CSS framework called CSSHórus.
Seem nice..
Can download and test from github.

Setting up GPS data in Android Emulator

by in 0

B4 I forget_
If you have to use android emulator to test GPS related application, you can set up the mock up GPS data for your emulator.
This example is in Ubuntu Linux, connect to emulator by using telnet command.

telnet localhost 5554
geo fix -82.411629 28.054553
geo nmea $GPGGA,001431.092,0118.2653,N,10351.1359,E,0,00,,-19.6,M,4.1,M,,0000*5B
 Via http://stackoverflow.com/questions/1972895/testing-gps-in-android

Awesome Super Computer build with 64 Raspberry Pi + Lego

by in , 0

Computational Engineers at the University of Southampton have built a supercomputer from 64 Raspberry Pi computers and Lego.
Please read the details about this project here 
http://www.southampton.ac.uk/mediacentre/features/raspberry_pi_supercomputer.shtml 


After reading this, my raspberry pi disease getting worse :D I want it so desperately. I really have to order Raspberry Pi this weekend. Can't wait any longer.

Javascript library that can create PDF.[jsPDF]

by in 0

jsPDF
Javascript တမျိုးတည်းကိုသာ အသုံးပြုထားပြီး Server side script တခုမှမလိုတဲ့ pdf creation library ပါ။ browser အဟောင်းတွေအတွက်လည်း flash fall back ထည့်ထားပေးပါတယ်။
http://jspdf.com/ မှာ အသုံးပြုပုံ demo များကို ကြည့်နိုင်ပါတယ်။ 
full source code  ကို https://github.com/MrRio/jsPDF မှာ ကြည့်နိုင်ပါတယ်။

Awesome Media Queries in JavaScript [enquire.js]

by in , 0

Enquire.js က Css Media queries တွေကို programmatically response လုပ်ဖို့အတွက် သုံးတာပါ၊ ဖိုင်ဆိုဒ်က 1kb အောက်မှာပဲရှိပါတယ်။ CSS Media query တွေနဲ့တင် မတူညီတဲ့ screen တွေအတွက် ဒီဇိုင်းလုပ်ရာမှာ တော်တော်အလုပ်ဖြစ်နေပါပြီ၊ အဲဒိထက်ပိုပြီး javascript ကနေ control ပါလိုချင်တယ်ဆိုရင်တော့ Enquire.js  ကိုသုံးတာ အလွယ်ဆုံးပဲလို့ ထင်ပါတယ်။
Documentation နဲ့ အသုံးပြုပုံကို  http://wickynilliams.github.com/enquire.js မှာ သွားကြည့်နိုင်ပါတယ်။

 

Recently in Web Development (August ’12 Edition)

by in , 0

August 2012 ကတော့ ကုန်သွားပြန်ပါပြီ။ August လထဲမှာ Web Developer လောကကြီးမှာ ဖြစ်ပျက်ပျောင်းလဲ ခဲ့သမျှတွေကို စုစည်းတင်ပြထားတဲ့ ပိုစ်တခုပါ။ (သိုင်းလောက လိုမျိုးပါပဲ ရှုပ်ထွေးပွေလီလှပါတယ် :D )  Web Developer တိုင်း ဖတ်သင့်ပါတယ်။ ကျနော်တို့အတွက်ကတော့ အမြဲ up to date ဖြစ်နေလေ ကောင်းလေပါပဲ။

ဖုန်းလောကထဲမှာက Samsung နဲ့ Apple နဲ့ အကြိတ်အနယ် ဖိုက်တင်ပွဲမှာ ဒိုင်လူကြီးက Apple ကို အနိုင်ပေးလိုက်ပါတယ်။

သိပ္ပံပညာ လောကမှာတော့ လကမ္ဘာပေါ် ပထမဆုံး ခြေချတဲ့ Neil Armstrong ကြီးလဲ ကွယ်လွန် အနိစ္စရောက်ပါတယ်။


မူရင်းလင့်ကို အောက်မှာ ဖော်ပြပေးထားပါတယ်

Via NetTuts


News and Releases

All of the important news in a single place: releases, announcements, companies bickering, security issues and all related hoopla.
Nettuts image

jQuery Now Runs on Every Second Website

You could argue, successfully, that jQuery ushered in an era of JavaScript awareness and dominance. Be it the developer friendly, CSS selector-esque DOM querying or the mind boggling number of plugins and the resulting ecosystem that sprung around it, jQuery has been adopted a massive portion of the web.
This recent statistic tells us that jQuery now runs on every other website. Amazing, considering it’s been roughly seven years since its inception. And it’s even more amazing considering the sheer number of websites out there!
Read more
Nettuts image

Textmate Goes Open Source

In the recent deluge of editors, IDEs and cloud whamathingies, it’s safe to say that TextMate has lost a lot of mind share. Well, its developers have just gone ahead and open sourced the entire thing.
Of course, it’s all still OS X only so it’s a bit of a bummer for us Windows fans but hey, a win is a win regardless of the platform you’re rooting for. Mac aficionados, hit the Github repo below.
Read more
Nettuts image

jQuery Hits Version 1.8

The jQuery juggernaut rolls on ahead as version 1.8 is now live. Some new features to look forward to include automatic CSS prefixing, a revamped animation system, a rewrite of the Sizzle selector engine and much more!
Read more
Nettuts image

Firefox 15 is Upon Us

Another month, another major version of Firefox. I wouldn’t have mentioned this update here but it ships with support for SPDY [look it up!], a ton of WebGL improvements and a brand new interactive JavaScript debugger.
Read more
Nettuts image

Phusion Passenger Enterprise Released

To directly quote their site: “Phusion Passenger is an Apache and Nginx module for deploying Ruby and Python web applications. It has a strong focus on ease of use, stability and performance. Phusion Passenger is built on top of tried-and-true, battle-hardened Unix technologies, yet at the same time introduces innovations not found in most traditional Unix servers.”
While it may not be a well known name elsewhere, it definitely is in the Ruby ecosystem, specially Rails. This enterprise versions aims to introduce a lot more features than the free version but it’s not clear as to what they’ll be. Guess we’ll have to wait and watch!
Read more
Nettuts image

Bootstrap 2.1.0 Released

Let’s face it: everyone loves Bootstrap. This huge updates ships with new documentation, numerous bug fixes, block leve buttons, brand new typography and tons more. Make sure to hit the change log below.
Read more
Nettuts image

PHP Gets Some Minor Improvements

Forever the nerd, I was trolling through the PHP change log page when I found out that both the 5.3.x and 5.4.x branches received some minor improvements and bug fixes.
My experience with computing has taught me that if it says segfault somewhere, you better darn pay attention to it!
Read more
Nettuts image

Neil Armstrong Passes Away at 82

I’m completely aware this has nothing to do with web development but this man deserves a mention and a moment of silence.
“I think we’re going to the moon because it’s in the nature of the human being to face challenges. It’s by the nature of his deep inner soul… we’re required to do these things just as salmon swim upstream.”
- Neil Armstrong

New Kids on the Block

As web developers, the sheer amount of resources we can tap into increases exponentially with time. Here is just a quick look at some recently created resources that deserve your attention — everything from new books to scripts and frameworks.

Vanilla JS

Vanilla JS is a fast, lightweight, cross-platform framework for building incredible, powerful JavaScript applications.
Read more

Toro

Toro is a PHP router for developing RESTful web applications and APIs. It is designed for minimalists who want to get work done.
Github Repo

normalize.css

Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.
Github Repo

t.js

t.js is a simple solution to interpolating values in an html string for insertion into the DOM via innerHTML.
Github Repo

Piecon

Pie charts in your favicon! A tiny javascript library for dynamically generating progress pie charts in your favicons.
Github Repo

Github.js

Github.js provides a minimal higher-level wrapper around git’s plumbing commands, exposing an API for manipulating GitHub repositories on the file level. It is being developed in the context of Prose, a content editor for GitHub.
Github Repo

reveal.js

reveal.js comes with a broad range of features including nested slides, markdown contents, PDF export, speaker notes and a JavaScript API. It’s best viewed in a browser with support for CSS 3D transforms but fallbacks are available to make sure your presentation can still be viewed elsewhere.
Github Repo

prism

Prism is a new lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s a spin-off from Dabblet and is tested there daily by thousands.
Github Repo

Best of the Internet

Often, you’re not really looking for a tutorial as much as you’re looking for a rant, an opinion or the musings of a tired developer or just something cool with absolutely zero real world use. This sections contains links to precisely those — interesting and cool stuff from the developer community.
Nettuts image

Rich JavaScript Applications – the Seven Frameworks

The aim of the article is to take the seven top JavaScript frameworks/libraries for single-page and rich JavaScript applications — AngularJS, Backbone, Batman, CanJS, Ember, Meteor, Knockout, Spine — get the creators of all of them in one location, and compare the technologies head to head.
Read more
Nettuts image

Break Apart Your Backbone.js Render Methods

A fairly in-depth look at Backbone’s Render method. Lots of insights if you’re a JavaScript developer.
Read more
Nettuts image

REST – Epic Semantic Fail

Is your REST implementation good or not? Find out here!
Read more
Nettuts image

Teaching my 10 year old niece how to program.

A great read regardless of whether you have an affectionate underling to teach your craft to.
Read more



Via NetTuts

Adafruit Raspberry Pi Educational Linux Distro

by in , 0


Adafruit Raspberry Pi Educational Linux Distro

When I got my Raspberry PI, I will test with that.
Link here

လောလောဆယ်တော့ မမှာရသေးသော  Raspberry PI လေး ရခဲ့လျှင် ဆိုပြီး စိတ်ကူးနဲ့ နှုတ်ခမ်းနာက ဘယ်စီနေမှန်းမသိ မုန့်ဆီကျော် စားလို့ရပါ့မလား ဆိုသလို လုပ်ကြည့်နေတယ် :D

Actual Invention vs Patent

by in 0

ဘယ်သူစတည်ထွင်လဲဆိုတာထက် မူပိုင်ခွင့် ဘယ်သူ့မှာရှိလဲဆိုတာက စကားပြောသွားတာပါပဲ။ ဘယ်သူတွေ အရင်လုပ်ထားလုပ်ထား မူပိုင်ခွင့် ဦးအောင် အရင်တင်တဲ့နေရာမှာတော့ Apple က ပြိုင်စံရှားပါပဲ၊ ပြီးရင် ပြသနာ ရှာခံရပြီသာမှတ်ပေတော့ :D


It doesn't matter who invented it first, the only thing that matters who has the patent.





 via World of Technology

Do you love iPhone? Buy Samsung !

by in 0

Apple said its just like iPhone. Basically the save but cheaper, better, more apps, more openness and more awesome :D

via MakeUseOf