For example :
name of our application : myApp
location of our application : /home/binaryvi/Desktop/App
I try check app is running or not using terminal in ubuntu. I use shell script. Here we go:
#!/bin/bash
if ps aux | grep "[m]yApp" > /dev/null
then
echo "Running"
else
echo "Stopped"
export DISPLAY=::0.0
fi
If app is stopped, i want run the app. This is the code:
#!/bin/bash
if ps aux | grep "[m]yApp" > /dev/null
then
echo "Running"
else
echo "Stopped"
export DISPLAY=::0.0
/home/binaryvi/Desktop/App/myApp&
fi
Selasa, 28 April 2015
Note Vi - Show the Keyboard Automaticcally in Ubuntu (OnBoard)
pic 1. automatic onboard
1. search and open onboard setting
pic 2. onboard setting
2. click general -> aotu-show when editing text
pic 3. setting onboard's window
3. click close. In ubuntu, it'll automatically save
4. search and open universal access
pic 4. universal access
5. click typing -> switch the button to On
pic 5. setting universal access
6. close window
taraaam.. Done!!
Note Vi - Edit Vim di Ubuntu
Jadi ceritanya tuh tadi nginstal library biar bisa kirim email via terminal di ubuntu 14.04, salah satu yang dioprek-oprek adalah 'sudo vim . . .'
setelah bisa masuk vim, tampilannya begini :
Cap cis cuuus,, makasih udah mampir. Hope u have excited day ^_^
setelah bisa masuk vim, tampilannya begini :
gbr 1.tampilan vim
berhubung ada yang salah, dengan senang hati vi hapus hapus hapus semua yang salah. terus ketik ketik ketik tapi oooh em jiiii kagak bisa #hwuuuaaaa..
setelah coba begini coba begitu kagak berhasil juga dan udah puas nangis kokosehan di dalam hati, tanpa salat istikoroh ahirnya vi memutuskan untuk menggunakan senjata pamungkas "nanya ke senior". ahihihihi
Ternyata biar bisa diedit,,, eng ing eeeeng setelah masuk ke vim, ketik huruf i. cuma gara-gara huruf i. Fiuuuh...
Trik-trik tambahan:
untuk keluar dari vim tanpa menyimpan hasil edit :
- ketik tombol escape (esc)
- ketik q
- ketik tanda !
- enter
- ketik tombol escape (esc)
- ketik w
- ketik q
- ketik tanda !
- enter
Cap cis cuuus,, makasih udah mampir. Hope u have excited day ^_^
Senin, 27 April 2015
GDE - Go
Right now i want to share about profile of TOP Expert - Go. This is the most handsome, the most clever, the most cute (because he the only one) in Google Developer Expert - Go :
Alexander Surma
He has organised several Go workshops, while also using Go professionally as well as a consultant. He lives in Berlin, Germany.
Here his contact.
short time, short post, but i hope you have long nice day ^_^
Alexander Surma
gbr 1. alexander surma
He has organised several Go workshops, while also using Go professionally as well as a consultant. He lives in Berlin, Germany.
Here his contact.
short time, short post, but i hope you have long nice day ^_^
Note vi - Configure Postfix to Use Gmail SMTP on Ubuntu
This post 100% from https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/ . It's my note, just for remember me.
If you want to use a Gmail account as a free SMTP server on your Ubuntu-Linux server, you will find this article useful. This guide is tested with Ubuntu 12.04. If you face any issue, feel free to use comments-section below.
Relaying Postfix mails via smtp.gmail.com:
First, install all necessary packages:
sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules
If you do not have postfix installed before, postfix configuration wizard will ask you some questions. Just select your server as Internet Site and for FQDN use something like mail.example.com
Then open your postfix config file:
vim /etc/postfix/main.cf
and following lines to it:
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
You might have noticed that we haven’t specified our Gmail username and password in above lines. They will go into a different file. Open/Create
vim /etc/postfix/sasl_passwd
And add following line:
[smtp.gmail.com]:587 USERNAME@gmail.com:PASSWORD
If you want to use your Google App’s domain, please replace @gmail.com with your @domain.com
Fix permission and update postfix config to use sasl_passwd file:
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
Next, validate certificates to avoid running into error. Just run following command:
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
Finally, reload postfix config for changes to take effect:
sudo /etc/init.d/postfix reload
Testing
Check if mails are sent via Gmail SMTP server
If you have configured everything correctly, following command should generate a test mail from your server to your mailbox.
echo "Test mail from postfix" | mail -s "Test Postfix" you@example.com
To further verify, if mail sent from above command is actually sent via Gmail’s SMTP server, you can log into Gmail account USERNAME@gmail.com with PASSWORD and check “Sent Mail” folder in that Gmail account. By default, Gmail always keeps a copy of mail being sent through its web-interface as well as SMTP server. This logging is one strong reason that we often use Gmail when mail delivery is critical.
Once configured, all emails from your server will be sent via Gmail. This method will be useful if you have many sites on your server and want them all to send emails via Gmail’s SMTP server.
Alternatively, you can use a plugin like WP Mail SMTP so that mails from your particular WordPress site will be sent using Gmail’s SMTP server.
Please note that Gmail’s SMTP server has a limit of 500 emails per day. So use wisely! :-)
Troubleshooting
Error: “SASL authentication failed; server smtp.gmail.com”
You need to unlock the captcha by visiting this page https://www.google.com/accounts/DisplayUnlockCaptcha
You can run test again after unlocking captcha.
source : https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/
If you want to use a Gmail account as a free SMTP server on your Ubuntu-Linux server, you will find this article useful. This guide is tested with Ubuntu 12.04. If you face any issue, feel free to use comments-section below.
Relaying Postfix mails via smtp.gmail.com:
First, install all necessary packages:
sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules
If you do not have postfix installed before, postfix configuration wizard will ask you some questions. Just select your server as Internet Site and for FQDN use something like mail.example.com
Then open your postfix config file:
vim /etc/postfix/main.cf
and following lines to it:
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
You might have noticed that we haven’t specified our Gmail username and password in above lines. They will go into a different file. Open/Create
vim /etc/postfix/sasl_passwd
And add following line:
[smtp.gmail.com]:587 USERNAME@gmail.com:PASSWORD
If you want to use your Google App’s domain, please replace @gmail.com with your @domain.com
Fix permission and update postfix config to use sasl_passwd file:
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
Next, validate certificates to avoid running into error. Just run following command:
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
Finally, reload postfix config for changes to take effect:
sudo /etc/init.d/postfix reload
Testing
Check if mails are sent via Gmail SMTP server
If you have configured everything correctly, following command should generate a test mail from your server to your mailbox.
echo "Test mail from postfix" | mail -s "Test Postfix" you@example.com
To further verify, if mail sent from above command is actually sent via Gmail’s SMTP server, you can log into Gmail account USERNAME@gmail.com with PASSWORD and check “Sent Mail” folder in that Gmail account. By default, Gmail always keeps a copy of mail being sent through its web-interface as well as SMTP server. This logging is one strong reason that we often use Gmail when mail delivery is critical.
Once configured, all emails from your server will be sent via Gmail. This method will be useful if you have many sites on your server and want them all to send emails via Gmail’s SMTP server.
Alternatively, you can use a plugin like WP Mail SMTP so that mails from your particular WordPress site will be sent using Gmail’s SMTP server.
Please note that Gmail’s SMTP server has a limit of 500 emails per day. So use wisely! :-)
Troubleshooting
Error: “SASL authentication failed; server smtp.gmail.com”
You need to unlock the captcha by visiting this page https://www.google.com/accounts/DisplayUnlockCaptcha
You can run test again after unlocking captcha.
source : https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/
Minggu, 26 April 2015
GDE - Android Wear / Glass
Hi, how are you today? Right now, i want write profile of Google Developer Expert - Android Wear / Glass. Enjoy reading ^_^
1. Macy Kuang
5. David Cuartielles
So sad, i can't find anything about him. :'( i'm sorry
Thanks for coming and have a great day ^_^
source: https://developers.google.com
1. Macy Kuang
gbr 1. macy kuang
First time i look that picture, i say 'she is cute and wow she is a developer. So cool..'. She come from Toronto, Canada. This cute girl is an experienced game and aplication developer with over six years. Uwow. Here her skills :
Mobile and Wearable Gaming and Application
C#
C++
Java
Objective C
If you want to know her account, just click this link.
2. Justin Ribeiro
gbr 2. justin ribeiro
He lives in Oakdale, United States, with his wife and three daughters. Justin has worked on enterprise and consumer based software product for the last 18 years. That's very very very wow. This is his skills:
Wearables
Android
Chrome
HTML5
Client-Server Architecture
Backend and APIs
This handsome papa have google account if you want contact him.
3. E John Feig
gbr 3. e john feig
E John Feig from Redwood City, United States. He have so many skills, here they are:
Android
Java
Wearable UX
Android Wear
Google Glass
Glass GDK
JavaScript
AngularJS
Node.js
Startups
SQL
Mobile Application
NoSQL
He is very kind and we can contact him because i think he will happy to help us.
4. Allen Firstenberg
gbr 4. allen firstenberg
Allen is both a developer expert for google+ and wearable. He lives in New York, United States. And this is his skills:
Wearable DEsign
Google+ API
Client-Server
Java
Mirror API
GDK
Android Wear
It's his account, if you want keep in touch with him.
5. David Cuartielles
So sad, i can't find anything about him. :'( i'm sorry
Thanks for coming and have a great day ^_^
source: https://developers.google.com
Label:
Allen Firstenberg,
Android Wear,
David Cuartielles,
Developer,
E John Feig,
Expert,
GDE,
Glass,
Google,
GoogleDevExpert,
Justin Ribeiro,
Macy Kuang,
Top Expert
Sabtu, 25 April 2015
GDE - Chrome
Taraaam, welcome to my blog ^_^
I wanna post about GDE android but that's very much, so i think post profile of GDE-Chrome is much better for this time. Hehehe
OK, i will not explain about chrome coz everybody know what is google chrome. So, let's see what we found:
1. Stephen Fluin
Stephen Fluin, he is handsome, right? He come from Eden Prairie, United States. Beside his handsome face, he have brilliant brain. This is list of his skills :
sumber : https://developers.google.com
I wanna post about GDE android but that's very much, so i think post profile of GDE-Chrome is much better for this time. Hehehe
OK, i will not explain about chrome coz everybody know what is google chrome. So, let's see what we found:
1. Stephen Fluin
gbr 1. stephen fluin
Stephen Fluin, he is handsome, right? He come from Eden Prairie, United States. Beside his handsome face, he have brilliant brain. This is list of his skills :
HTML5
AngularJS
Mobile Applications
Chrome Cordova Applications
Strartup Operations
Wearables
Cross Platform Application Development
Chrome Apps
It's his account. I think we can ask anything about chrome.
2. Konrad Dzwinel
gbr 2. Konrad Dzwinel
He have five years experience as a back-end developer. In my mind, that's great. Konrad also have so many skills like :
HTML5
Hybrid Mobile Applications
Chrome Extensions
Chrome DevTools
Single Page Applications
AngularJS
Web Performance
Teaching Workshops
Public Speaking
He like share about technology in this link.
3. Umar Hansa
gbr 3. umar hansa
He is a front-end web developer based on London, UK. And this is his skills:
HTML5
CSS3
JavaScript
DevTools
Web Development Workflows
If you want to know more about Umar Hansa, just follow this account.
4. Yoichiro Tanaka
gbr 4. yoichiro tanaka
This guy is google developer expert from Saitama Prefecture, Japan. Skill : Development and Publishing Chrome Apps and Extensions (including NaCl)
Account Yoichiro Tanaka is this.
5. Joshua Woodwart
gbr 5. joshua woodwart
Joshua is a good father from Morgna Hill, United States. He was a founder of GDG Fresno. This is his skills :
JavaScript
HTML5
CSS3
AngularJS
JSON
AJAX
RESTful APIs
If you want to know about joshua woodwart, you can follow his google+ account.
6. Oren Ruben
gbr 6. Oren Ruben
Oren is graduated from Israel institute of Technology. Yap, he come from Tel Aviv, Israel. Let's see his skills:
Large Scale Web Application Architecture
AngularJS
MVC frameworks Development
Unit Testing
End-to-ENd Test Automation
Distrubted Computing
Compilers
Release Cycle Management
UX/UI
Product Strategy
Business Development
You can keep in touch with this guy here.
7. Jared Williams
gbr 7. jared williams
Jared stay in Winthrop, United States. I think he is awesome and clever. If you don't believe me, just check this is his list skills:
Front-End Development
Chrome DevTools
JavaScript
HTML5
CSS3
AngularJS
jQuery
He active on this account.
Ok, jared is the last, so... thank for coming and have a nice day ^_^
Label:
Chrome,
Developer,
Expert,
GDE,
Google,
GoogleDevExpert,
Jared Williams,
Joshua Woodward,
Konrad Dzwinel,
Oren Rubin,
Stephen Fluin,
Top Expert,
Umar Hansa,
Yoichiro Tanaka
Langganan:
Postingan (Atom)










