Skip to main content

Posts

Numix-uTouch Icon in ubuntu 14.04

(၁) Repository ထည့္ျခင္း။ sudo add-apt-repository " deb http://ppa.launchpad.net/numix/ppa/ubuntu trusty main " အေပၚက ကုတ္ကုိ Termianl ထဲမွာထည့္Runပါ။ (၂) Update ျပဳလုပ္ျခင္း။      Terminal ထဲမွာ sudo apt-get update ျပဳလုပ္ပါ။ (၃) သြင္းျခင္း။ ျပီးရင္ေတာ့ ေအာက္က ကြန္မန္းသံုးျပီးေတာ့ သြင္းလို့ရပါျပီ။ sudo apt-get install numix-icon-theme-utouch  သြင္းျပီးရင္ေတာ့ Ubuntu Tweak(http://ubuntu-tweak.com/) ျဖစ္ျဖစ္ ဆင္ေျပတာတခုသံုးျပီးေတာ့ icon ကုိေျပာင္းႏုိင္ပါတယ္။ Thanks : https://launchpad.net/~numix/+archive/ppa &&  မိႏုိင္

Laravel 4 တြင္ Workbench သံုးျပဳျခင္း။

workbench အသံုးျပဳျခင္းအားျဖင့္ အက်ိဳးကေတာ့အမ်ားၾကီးပါပဲ။ project တခုကုိ လူဝုိင္းေရးတဲ့အခါ မင္းက ဘယ္အပုိင္းယူ ငါကဘယ္အပုိင္းယူဆိုပီးေတာ့ လုပ္ပါတယ္။ ဒါဆုိရင္ workbench တခုေဆာက္ေပးျပီးေတာ့ ေရးခိုင္းထားလုိ့ရပါတယ္ ။ အေပၚက main ကုိ ထိစရာမလိုေတာ့ပါဘူး။ အျခားေကာင္းတာေတြလဲအမ်ားၾကီးရွိပါေသးတယ္။ ၁။ Workbench သြင္းျခင္း။ ပထမဆံုးသံုးျပဳႏိုင္ဖုိ့အတြက္  app/config/workbench.php ထဲမွာ name နဲ့  email ထည့္ေပးရမယ္။ ျပီးရင္ေတာ့ Terminal ထဲမွာ ေအာက္က ကြန္မန္းနဲ့ bench တခုျပဳလုပ္ပါတယ္။ php artisan workbench vendor/package --resources vendor ကေတာ့ ကုိယ့္ကုမၸဏီ သို့မဟုတ္ ကုိယ့္နာမည္ထည့္လဲျဖစ္ပါတယ္၊package ကေတာ့ ကိုယ္ေရးမယ့္ package နာမည္ပါ။ ဥပမာ Dasbroad အတြက္ဆိုရင္  dashboardေပ့ါ။ ဒါဆိုရင္ root folder ထဲက workbench ထဲမွာ ကုိယ္ထည့္လိုက္တဲ့  vendor နာမည္နဲ့ ထဲမွာ ထည့္ထားတဲ့ package နာမည္တဲ့ ဖိုင္ေတြတခုေဆာက္လုပ္ျပီးျဖစ္ေနပါလိမ့္မယ္။( ဒီအဆင့္က အင္တာနက္လုိပါတယ္ ) ဒါျပီးရင္ေတာ့ verdor ထဲက package ထဲမွာ composer install ျပဳလုပ္ေပးရပါမယ္။မလုပ္ရင္ File not found ျပေနပါလိမ့္မယ္။ သူ ့ဖုိင္ structure ေ

Networking auto Disabled After Suspend Ubuntu 14.04

On the fly fix for  temporary  with Terminal  sudo service network-manager restart Thank  user210011  ,  asdfadsf  &  fbab . [ http://askubuntu.com/questions/362933/network-disabled-on-some-wake-ups-on-saucy-laptop ]

Install node.js in ubuntu

ပ ထမဆံုး http://nodejs.org/ မွာ သြင္းမယ့္ ဖိုင္ကုိအရင္ေဒါင္းလိုက္ပါ။ ျပီးရင္  dependencie လိုအပ္တာေတြကုိ ေ အာက္က  ကြန္မန္းနဲ့ ႏွစ္ခုသြင္းပါ။ sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core ျပီးရင္ေတာ့ ေအာက္က ကြန္မန္းနဲ့တဆင့္ျခင္းသြင္းရင္ ဆင္ေျပပါျပီ။ cd node { download ဆြဲထားတဲ့ဖိုင္ကုိ ျဖည္ျပီးေတာ့ အဲဒီဖိုင္ထဲဝင္ } ./configure make sudo make install ရမရစမ္းဖုိ့အတြက္က ေအာက္က tut ေလးစမ္းျပီးသိႏုိင္ပါတယ္။ ေအာက္က ကုတ္ေတြကုိ test.js ဆိုျပီးတခုခုေပးပီး တေနရာရာသိမ္းလုိက္ပါ။ var http = require ( 'http' ); http . createServer ( function ( req , res ) {   res . writeHead ( 200 , { 'Content-Type' : 'text/plain' });   res . end ( 'Hello Node.js\n' ); }). listen ( 8124 , "127.0.0.1" ); console . log ( 'Server running at http://127.0.0.1:8124/' ); သိမ္းျပီးရင္ Terminal ထဲကေန node test.js ဆိုျပီးေခၚရင္   Server running at http://127.0.0.1:8124/ ဆိုျပီးေပၚေ

ErrorException SessionHandler::read() in Laravel 4

Download the whole website in Ubuntu

Ubuntu မွာ website တခုလံုးကုိေဒါင္းဖုိ့အတြက္ wget ကုိသံုးျပီးေဒါင္းရင္ အရမ္းလြယ္ပါတယ္၊ ေအာက္က ကြန္မန္းကုိ Terminal ထဲမွာ ထည့္ျပီးစမ္းၾကည့္ပါ။ wget -mirror --convert-links -P ~/download-site website-url အဲဒါကုိ Terminal ထဲကေနတဆင့္ shortcut command လုပ္ျပီးသံုးႏုိင္ပါတယ္။ cd ~ gedit .bashrc .bashrc ပြင့္လာရင္ ေအာက္ဖက္ လြတ္ရာေနရာမွာေအာက္က ကြန္မန္းထည့္လုိက္ပါ။ alias downsite="wget -mirror --convert-links -P ~/download-site" ~ = home အခုေဒါင္းလုပ္ဆြဲမယ္ဆုိရင္ terminal ထဲကေန "downsite www.google.com" ဘာညာရိုက္ထည့္ရင္ home ေအာက္မွာ download-site ထဲမွာ website နာမည္နဲ့ဖိုဒါတခုေရာက္ေနပါလိမ့္မယ္ အဲထဲက indexကုိဖြင့္ပီး ဖတ္လုိ့ရပါျပီ။ Thank you , dv 3500ea & shellholic :)

Commands at Ubuntu Startup

Ubuntu စက္စတက္ခ်ိန္မွာ run ခ်င္တဲ့ command ေတြကုိ ေအာက္ကဖုိင္ထဲမွာ သြားထည့္လိုက္ရင္ ဆင္ေျပပါတယ္။ sudo nano /etc/rc.local

Remove index.php in url (.htaccess)

php ျဖင့္ေရးထားတဲ့ application မွာ index.php ေဖ်ာက္ခ်င္ရင္ .htaccess ထဲမွာ ေအာက္ပါအတုိင္းေရးျပီး သံုးလုိက္ရင္ဆင္ေျပပါျပီ။ <IfModule mod_rewrite.c>     Options +FollowSymLinks -Indexes     RewriteEngine On     RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule> /etc/apache2/site-available ထဲက default မွ ာေအာက္က အတုိင္း လုိအပ္သလိုျဖည့္ေပးလုိက္ရင္ရပါျပီ။ <VirtualHost *:80> ServerName www.yts.me DocumentRoot /var/www/ <Directory /var/www> AllowOverride all </Directory> </VirtualHost> all ဆို စာသားက အေရးၾကီးဆံုးပါ။ A အၾကီးဆုိရင္ေတာင္အလုပ္မလုပ္ဘူး ။

Virtual Host in Lampp (Ubuntu)

ကုိယ့္စက္ထဲမွာ Local နဲ့ www.lartest.lo ဆိုျပီးေခၚရင္ var/www/{folder name} ကုိေထာက္ထားခ်င္တယ္ဆိုရင္ ဒီနည္းက အသံုးဝင္မွာပါ။ ပထမဆံုး Terminal ထဲမွတဆင့္ ေအာက္ပါ command သံုးျပီး file အသစ္ေဆာက္ပါ။ sudo subl /etc/apache2/sites-available/{sitename}.conf *subl က Sublime Text Editor ျဖစ္ပါတယ္။ sublime မရွိရင္ subl ေနရာမွာ gedit ျဖင့္အစားထိုးသံုးျပဳႏိုင္ပါတယ္။ sublime ပြင့္လာရင္ ေအာက္ပါကုတ္ေတြေရးထည့္ပါ။ NameVirtualHost *:80 <VirtualHost *:80>     ServerAdmin {master@server.com}     ServerName {www.lartest.lo}     ServerAlias {lartest.lo}     DocumentRoot {/var/www/Mydev/lartest/public}     LogLevel warn     ErrorLog {/var/www/Mydev/lartest/log/error.log}     CustomLog {/var/www/Mydev/lartest/log/access.log combined } </VirtualHost> * {} ထဲမွာ ကိုယ့္စက္နဲ့ကိုက္ညီေအာင္ထည့္ပါ။ ထည့္ျပီးရင္ save လုပ္ျပီးပိတ္လုိက္ပါ။ ေနာက္ Terminal ထဲမွာ ေအာက္ပါ command သံုးျပဳျပီး domain ကုိ Enable ျပဳလုပ္ပါခင္ဗ်ာ။ sudo a2ensite { file name }  // tab ခုန္ရင္ေပၚလ

Add New Css file to magento theme

ပထမဆံုး Skin ထဲက ေအာက္ပါလင့္တုိင္းဝင္ျပီး css ဖိုင္ကုိထည့္ပါ။ public_html/skin/frontend/default/{Theme_Name}/css ထည့္ျပီးရင္ေတာ့ ေအာက္ပါလင့္တိုင္း file ခ်ိတ္ဖုိ့သြားပါ။ public_html/app/design/frontend/default/{theme name}/layout layout ထဲေရာက္ရင္ page.xml ကုိဖြင့္ပါ။ ျပီးရင္  <block type="page/html_head" name="head" as="head">  ေအာက္တြင္ ေအာက္ကအတိုင္းဖုိင္ကုိခ်ိတ္ပါ။ <action method="addCss"><stylesheet>css/{New-File.css}</stylesheet></action> ထည့္ျပီးရင္ေတာ့ Var ေအာက္က Cache ကုိရွင္းျပီးရင္ css ဖိုင္အလုပ္လုပ္ပါျပီ။

show admin bar in wordpress frontend

(၁) header.php ထဲမွာ   <?php wp_head(); ?> ကုိထည့္ပါ။ (၂)footer.php ထဲမွာ  <?php wp_footer(); ?> ကုိထည့္ေပးလုိက္ရင္ေပၚလာပါျပီဗ်ာ။ 

can't login to backend even right username and password in magento

app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

Install Drupal 7 into the lampp

ပထမဆံုး ကုိ drupal ကုိ သြင္းမယ့္ဖုိင္ထဲကုိ Terminal ထဲကေနအရင္သြားလုိက္ပါ။ ေရာက္ျပီဆိုရင္ ေအာက္က ကြန္မန္းကုိ ကူးျပီး terminal ထဲမွာ paste လုပ္ျပီး durpal 7 ကုိ ေဒါင္းလုပ္ဆြဲလုိက္ပါ။ wget http://ftp.drupal.org/files/projects/drupal-7.21.tar.gz  ေဒါင္းလုပ္ျပီးရင္ေအာက္ ေအာက္က ကြန္မန္းနဲ့ tar ဖိုင္ကုိ ျဖည္ပါ။ sudo tar -xvzf drupal-7.21.tar.gz  ျပီးရင္ druapl အတြက္ database ကုိ ေအာက္က ကြန္မန္းသံုးျပီးလုပ္လုိက္ပါ။ mysqladmin -u root -p create drupal_database_name ျပီးရင္ေတာ့ durpal ဖိုင္ေတြကို permission ေပးဖုိ့အတြက္ ေအာက္ကကြန္းေတြတေၾကာင္းျခင္းထည့္ပါ။ sudo chmod a+rx drupal-7.21 ျပီးရင္ေတာ့ drupal အတြက္ config ဖိုင္ေတြအလုပ္လုပ္ဖုိ့အတြက္ေအာက္က ကြန္မန္းေတြနဲ့ဖုိင္လုပ္ပါ။ mkdir sites/default/files chmod a+w sites/default/files sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php sudo chmod a+w drupal/sites/default/settings.php ျပီးရင္ေတာ့လုပ္ေနၾကအတုိင္းပဲ http://localhost/ ေနာက္မွာ drupal ဖုိင္ထားထားနဲ့ေနရာ

Install New Theme In Sublime Text 3

Sublime မွာ ကုိယ္ၾကိဳက္တဲ့ theme ေတြလဲသြင္းျပီးေတာ့ သံုးလုိ့ရပါတယ္။ ကြ်န္ေတာ္ေတာ့ အခု Phoenix Dark ဆိုတဲ့ theme ကုိ သြင္းဖုိ့ေျပာျပပါမယ္။ ပထမဆံုး Ctrl+Shift+p နဲ့ package control ကုိ ဖြင့္ျပီးေတာ့ Install Package ဆိုပီးရိုက္ထည့္လုိက္ပါ။ ျပီးေတာ့ အဲဒီထဲမွာ  Theme - Phoenix   ဆုိျပီးရွာျပီး Enter ေခါက္လုိက္ပါ။ ေအာက္က foot bar မွာ status ၾကည့္လုိ့ရပါတယ္ခင္ဗ်ာ။ သြင္းျပီးရင္ေတာ့  ဒီလင့္မွာ   (Direct Links)  theme folder ကုိ ေဒါင္းလုပ္သြားဆြဲပါ။ ေဒါင္းျပီးရင္ေတာ့ Sublime text menu က Preferences ထဲက Browse Packages ကုိေရြးျပီးဖြင့္လုိက္ပါ။ ပြင့္လာတဲ့ ဖိုဒါထဲကုိ Download ဆြဲထားတဲ့ ဖုိင္ကုိ ျဖည္ထည့္ပါ။ ဒါျပီးေတာ့ activate လုပ္ဖုိ့ပဲက်န္ပါျပီ။ activate လုပ္ဖို ့အတြက္ menu ထဲက Preferences ထဲကပဲ  Setting-User ကုိ ေရြးလုိက္ပါ။ ဖုိင္တခုဖြင့္လာပါလိမ့္မယ္။ အဲဒီဖုိင္ထဲကုိ ေအာက္ကစာေတြကူးထည့္လုိက္ပါ။ {     "theme": "Phoenix Dark.sublime-theme",     "phoenix_color_red": true,     "phoenix_highlight_current_tab": true,     "phoenix_e

Install Zawgyi Font and Keyboard ( xkb ) in Ubuntu 13.10

ပထမဆံုး ေအာက္က ဖုိင္ကိုဆြဲလုိက္ပါ။ Click Here To Download  ေဒါင္းလုပ္ျပီးရင္ေတာ့ ဖုိင္ကုိ ျဖည့္ျပီးေတာ့ ZawgyiOne2008.ttf ကုိ ဖြင့္ျပီး Install ႏုိပ္ျပီးသြင္းလိုက္ပါ။ (၁) Keyboard သြင္းဖို့အတြက္က Termianl ဖြင့္ပါ။ (၂) cd နဲ့ download ဆြဲထားတဲ့ဖိုဒါထဲ၀င္လုိက္ပါ။ (၃) ေရာက္ျပီဆိုရင္ ေအာက္က အတုိင္းရိုက္ထည့္ျပီး password ျဖည့္ေပးလိုက္ပါ။ sudo sh zawgyi_xkb.sh ျပီးရင္ေတာ့ Use Ctrl + Alt to Change En MM ဘာညာဆိုျပီးေပၚလာရင္ keyboard သြင္းျပီးပါျပီ။ Zawgyi Keyboard ကုိ Active လုပ္ဖုိ့အတြက္ကေတာ့ Super Key ( Window Key ) ကုိႏုိပ္ျပီး Text Entry လုိ့ရိုက္ျပီးရွာျပီး ဝင္လိုက္ပါ။ (၄) Text Entry ထဲေရာက္ရင္ Input sources to use ေအာက္မွာ အေပါင္းနဲ့အႏုတ္ ေလးေတြရွိပါတယ္။ အေပါင္းကုိႏုိပ္လုိက္ျပီး zaw ဆိုပီးရိုက္ထည့္လိုက္ရင္ Burmese( mm- zawgyi ) ဆိုပီးေပၚလာပါလိမ့္မယ္။ အဲဒါကုိေရြးျပီး Add ကုိႏိုပ္လုိက္ရင္ဆင္ေျပပါျပီ။ (၅) Keyboard Shortcut အတြက္ကေတာ့ လြယ္ဆံုးနည္းက Tweak Tool သြင္းလိုက္ရင္ဆင္ေျပပါတယ္။ Tweak Tool ကုိ ဒီလင့္ကုိ ကလင့္ျပီး Software center ကေန သြင္းလုိက္ပါ။ ( conf

Install Sublime Text 3 with Emmet in ubuntu 13.10

First the first , we have to download sublime text 3 deb package at www.sublimetext.com  . After finished , it will be in the Download Folder .and then , we should install it in terminal. (1) Open Terminal ( Ctrl + Alt +t ) (2) In Terminal => " sudo dpkg -i sublime-text_build-3047_i386.deb"  | in this step , we can use tab after typed first word for sublimetext package like that " sub > tab " , it will fill automatically! yethusoe@yethusoe-hz:~/Downloads$ sudo dpkg -i sublime-text_build-3047_i386.deb [sudo] password for yethusoe: Selecting previously unselected package sublime-text. (Reading database ... 185921 files and directories currently installed.) Unpacking sublime-text (from sublime-text_build-3047_i386.deb) ... Setting up sublime-text (3047) ... Processing triggers for hicolor-icon-theme ... Processing triggers for gnome-menus ... Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /us

Learning English Through Laughter : 3

Mr.Green went to Germany, because he had some work there.He came back last Monday, and his young wife met him at the airport. They walked to their car and passed a tall, pretty air-hostess. Mr. Green said to her , ' Goodbye, Miss Harris, ' and the air-hostess smiled and said, 'Good bye' too. Mrs. Green stopped and looked at the air-hostess .Then she said to her husband, 'How did you know her name?' 'That was easy,'answered Mr.Green. 'The names of the captain and all the screw were on a piece of paper in front of our seates.' 'What was the name of the captain?' Mrs. Green asked with a smile. Mr.Green launged and answered ,'I don't remember any of the other names.' 4/\/\@

Learning English Through Laughter : 2

Jean and Mark were twins . They were then years old, and they were in the same class at their school . A few weeks ago , their English teacher said to the children, ' I haven't given you any homework for two weeks , children . Now this week, write a composition about " Our Cat " , and give it to me next Monday. Have you all got a cat at home ? ' ' Yes , Miss Jones,' all of them answered . All the pupils did the composition, and they gave it to the teacher on Monday . The teacher read all the compositions and then she gave them back to the pupils on Tuesday. 'Jean,' She said, ' Your composition is the same as your brother's.' 'Yes,'answered Jean quickly .' It's the same cat!' 4/\/\@