Skip to main content

Posts

Wifi passwords via ADB

Common locations where the wifi credentials are stored in plain text are: /data/misc/wifi/wpa_supplicant.conf /data/wifi/bcm_supp.conf /data/wifi/ /data/etc/wifi/ /data/misc/wifi/ Copied From : http://android.stackexchange.com/questions/21296/how-can-i-find-a-saved-wi-fi-password

Installing the OAuth Packages

The OAuth extension requires both PEAR (which enables you to install the package) and libpcre3-dev, which enables the OAuth package to be compiled. To install the packages and confirm that OAuth is enabled, enter the following commands in the order shown: apt-get install php-pear apt-get install libpcre3-dev pecl install oauth If the following displays, you must edit your php.ini file to find the OAuth library:     configuration option “php_ini” is not set to php.ini location     You should add “extension=oauth.so” to php.ini Open php.ini in a text editor (location in /etc/php5/apache2/) and add the following anywhere in php.ini:     [OAuth]     extension=oauth.so Save your changes to php.ini and restart the Apache web server. Now check again if that OAuth is Installed Successfully. http://ralph.soika.com/magento-rest-api/

MAGENTO 503 ERROR AFTER UPGRADE

503 Error Magento version ကုိ upgrade ပီးမွာ 503  အယ္ရာျဖစ္တာက root directory ထဲမွာ maintenance .flag ဆိုတာရွိေနလို ့ပါ။အဲဒါကုိ ဖ်က္ေပးဖုိ့လိုပါတယ္။ 500 Error 500 အယ္ရာျပတာကေတာ့ file permission ေတြေၾကာင့္ျဖစ္တာပါ။ အဲဒါအတြက္ ေအာက္က ဖိုင္ေတြကုိ ၇၅၅ ေပးလိုက္ရင္ျပန္ဆင္ေျပႏုိင္ပါတယ္။ CHMOD 755 the following: - magento/index.php - magento/downloader/ - magento/js/* ျပီးရင္ေတာ့ browser cookie/ cache ေတြရွင္းျပီးေတာ့ magento backend ထဲကေန system=> cache management မွလဲ ရွင္းေပးလုိက္ရင္ ျပန္ဆင္ေျပႏုိင္ပါတယ္။ refrence : http://www.measureddesigns.com/magento-503-error-upgrade/ Thanks  ANDREW TAYLOR 

Call to undefined method Illuminate\Cookie\CookieJar::get()

ဒီအယ္ရာက Sentry သံုးထားတဲ့laravel 4.0 ကေန 4.2 ကုိေျပာင္းလိုက္တဲ့အခါမွာ ေပၚတဲ့ အယ္ရာပါ။ 4.0 တုန္းကေတာ့ Sentry က version 2.0 ပဲရွိေသးတယ္။အခုက laravel 4.2 ေျပာင္းလိုက္ေတာ့ Sentry 2.0 က အလုပ္မလုပ္ပဲ အဲဒီ အယ္ရာျပပါတယ္။ အဲဒီအတြက္ composer.json ထဲက sentry မွာ 2.0.* ကုိ 2.1.* ကုိေျပာင္းလုိက္ျပီး composer update လုပ္လုိက္ရင္ ပံုမွန္အလုပ္လုပ္သြားပါတယ္။

Oh! Yes Yes Force In Ubuntu Terminal update/upgrade

ဒီကြန္မန္းက ကုိကိုရဲ သံုးတာ ေတြ့ဖူးတာၾကာပီ။ လက္ဖက္ရည္ဆုိင္ဆင္းေတာ့မယ္ဆုိရင္ သူက ေနအုန္း ငါ update/upgrade လုပ္ခဲ့ဦးမယ္လုိ့ေျပာတယ္။ျပီးရင္သူက yes yes force ေလးလုပ္ျပီးဆင္းသြားေရာ။ ေလးစားပါတယ္ဆရာ :D ဒီတခါေတာ့ က်ဳပ္အလြတ္ရသြားျပီ။ ပံုမွန္ဆုိရင္ upgrade ျပီးရင္ Yes ကုိေရြးေပးမွ ေဒါင္းထားတဲ့ ဖုိင္ေတြသြင္းမွာပါ။ Yes ေရြးစရာမလုိပဲ အလိုေလ်ာက္ သြင္းသြားဖုိ့အတြက္ ေအာက္ကပံုစံအတုိင္း သံုးလုိ့ရပါတယ္။ sudo apt-fast update; sudo apt-get --yes --force-yes upgrade အဲဒါဆိုရင္ ပထမအဆင့္က update လုပ္မယ္။ ဒုတိယဆင့္က upgrade လုပ္မယ္။ေဒါင္းျပီးရင္ သူ့အလိုလို အကုန္လုပ္လုပ္သြားမယ္။ update လုပ္ျပီး လက္ဖက္ရည္ဆုိင္ဆင္းရတဲ့ ကြ်န္ေတာ့အတြက္ေတာ့ ေတာ္ေတာ္အသံုးဝင္ပါတယ္။ေက်းဇူးပါဆရာေရ။

Error: couldn't connect to server 127.0.0.1:27017

အဲလိုျပသနာျဖစ္ရင္ ေအာက္က ႏွစ္ေၾကာင္းနဲ့ အလုပ္ျဖစ္သြားပါတယ္။ sudo rm /var/lib/mongodb/mongod.lock sudo service mongodb restart  ေအာက္က command ကုိသံုးျပီး ဘာျပသနာျဖစ္လဲဆုိတာ ၾကည့္ႏုိင္ပါတယ္။ tail -f /var/log/mongodb/mongodb.log  source: stackoverflow

Array key ကုိ random ယူျခင္း။

php array ထဲက keys ေတြကုိ random ထုတ္ခ်င္တဲ့အခ်ိန္ေတြရွိမွာပါ။ ေအာက္က ပံုစံအတုိင္းသံုးရင္ ဆင္ေျပပါတယ္။ <?php             $cities = array(1 => yangon , 2 =>  mandalay , 3 => Pathein , 4 =>  Dawei);               $random_key =  array_rand( $cities, 1 ) ;              print $random_key; ?> array_rand ဆိုတဲ့ function သံုးရမွာပါ။  $cities က ေတာ့ ကုိယ္သံုးခ်င္တဲ့ array ျဖစ္ျပီး 1 က ေတာ့ ဘယ္ႏွစ္ခုဆြဲမလဲလုိ့ ေရြးရတာျဖစ္ပါတယ္။ အေသးစိတ္ကုိ php.net မွာ သြားဖတ္ႏုိင္ပါတယ္။ Source : http://www.homeandlearn.co.uk/php/php6p7.html