<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-951043528505198374</atom:id><lastBuildDate>Mon, 07 Oct 2024 06:33:50 +0000</lastBuildDate><category>ubuntu</category><category>Bahasa C</category><category>Belajar</category><category>Pemrograman</category><category>linux</category><category>Android</category><category>ManBess Studio</category><category>Skyworth S7</category><category>Smartfren AndroMax Tab 7</category><category>Application</category><category>Batam</category><category>Disdukcapil</category><category>DisdukcapilBisa</category><category>Manjaro</category><category>SIMPEG Kota Batam</category><category>appication</category><category>dia</category><category>diagram</category><category>graphics</category><category>grub</category><category>lucid lynx</category><category>openvpn</category><category>pamac</category><category>timeout</category><title>eshabe&#39;s blog</title><description>about everythings ;)</description><link>http://eshabe.blogspot.com/</link><managingEditor>noreply@blogger.com (eshabe)</managingEditor><generator>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-8392280694218963270</guid><pubDate>Sat, 20 Jun 2020 10:54:00 +0000</pubDate><atom:updated>2020-06-20T04:00:34.404-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Android</category><category domain="http://www.blogger.com/atom/ns#">ManBess Studio</category><category domain="http://www.blogger.com/atom/ns#">SIMPEG Kota Batam</category><title>SIMPEG Kota Batam Android rilis 1.1.1</title><description>Pada rilis versi 1.1.0, &lt;b&gt;SIMPEG Kota Batam&lt;/b&gt; &lt;b&gt;Android &lt;/b&gt;mengubah tampilan &quot;home&quot; menyesuaikan dengan aplikasi versi web&lt;a href=&quot;https://simpeg.batam.go.id/&quot;&gt; https://simpeg.batam.go.id&lt;/a&gt;. Selain itu, juga memperbaiki beberapa &lt;i&gt;bug &lt;/i&gt;yg muncul.&lt;div&gt;
&lt;br /&gt;&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMrrjir8Lg-m82dncyrrz11gtPV7Zwg-CpXNX3VAjU7KpaOrtV98m5CTfR5LUScTeC718s7n38P19iHYVN_WBBee3nhKjTcXgUx6dwMzvSi4_JCcPd3_o-cESRfZkXmqFHQv62PqhAdfMK/s1600/Screenshot_1592650109.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;900&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMrrjir8Lg-m82dncyrrz11gtPV7Zwg-CpXNX3VAjU7KpaOrtV98m5CTfR5LUScTeC718s7n38P19iHYVN_WBBee3nhKjTcXgUx6dwMzvSi4_JCcPd3_o-cESRfZkXmqFHQv62PqhAdfMK/s320/Screenshot_1592650109.png&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Di rilis terakhir, yaitu versi 1.1.1, bug &lt;i&gt;crash&lt;/i&gt; saat &lt;i&gt;GPS disabled&lt;/i&gt; juga sedang diupayakan. Selama pengujian dengan perangkat virtual, &lt;i&gt;bug &lt;/i&gt;ini tidak terjadi. Semoga terselesaikan!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Kelemahan deteksi posisi juga sedang kembali diupayakan karena versi 1.1.0 belum berhasil mengatasi masalah deteksi posisi ketika pengguna di dalam ruangan yg menghalangi sensor GPS untuk menerima sinyal. Pada kondisi tersebut, &lt;b&gt;LocationManager&lt;/b&gt; dari &lt;b&gt;Android &lt;/b&gt;tetap memberikan respon &quot;lokasi&quot; namun setelah diperiksa ternyata umurnya sudah terlalu lama, misalnya hasil deteksi 1 jam yang lalu. Pada versi 1.1.1, seharusnya aplikasi dapat segera menggunakan pendeteksian berdasarkan jaringan seluler.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bug yg mungkin tidak akan terselesaikan adalah bug (KB-1) Android 4.4 KitKat (mungkin) tidak dapat mengunggah berkas (problem Android WebView) https://issuetracker.google.com/issues/36983532 Bug ini muncul mulai pada versi 1.0.1 karena sejak versi itu &lt;b&gt;SIMPEG Kota Batam Android&lt;/b&gt; memvasilitasi &lt;b&gt;KitKat&lt;/b&gt;.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div&gt;
  &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.eshabe.simpegbatam&amp;amp;pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1&quot;&gt;&lt;img alt=&quot;Temukan di Google Play&quot; height=&quot;124&quot; src=&quot;https://play.google.com/intl/en_us/badges/static/images/badges/id_badge_web_generic.png&quot; style=&quot;width: 50%;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2020/06/simpeg-kota-batam-android-rilis-111.html</link><author>noreply@blogger.com (eshabe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMrrjir8Lg-m82dncyrrz11gtPV7Zwg-CpXNX3VAjU7KpaOrtV98m5CTfR5LUScTeC718s7n38P19iHYVN_WBBee3nhKjTcXgUx6dwMzvSi4_JCcPd3_o-cESRfZkXmqFHQv62PqhAdfMK/s72-c/Screenshot_1592650109.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-4181329147812179234</guid><pubDate>Fri, 17 Apr 2020 08:04:00 +0000</pubDate><atom:updated>2020-04-17T01:04:40.387-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Android</category><category domain="http://www.blogger.com/atom/ns#">Batam</category><category domain="http://www.blogger.com/atom/ns#">Disdukcapil</category><category domain="http://www.blogger.com/atom/ns#">DisdukcapilBisa</category><category domain="http://www.blogger.com/atom/ns#">ManBess Studio</category><title>DisdukcapilBisa Batam versi Android terpublis di Google Play</title><description>Setelah gagal publis di versi pertama, aplikasi &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.eshabe.disdukcapilbisabatam&quot;&gt;disdukcapilBisa Batam versi Android terpublis di Google Play&lt;/a&gt; di versi 1.1&lt;span class=&quot;fullpost&quot;&gt;


&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Hal yang baru pada versi ini adalah:&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;W4P4ne &quot; style=&quot;-webkit-tap-highlight-color: transparent; background: rgb(255, 255, 255); border: 0px; line-height: 24px; margin: 30px 0px; padding: 0px 50px; position: relative;&quot;&gt;
&lt;div class=&quot;PHBdkd&quot; data-content-height=&quot;144&quot; jsaction=&quot;rcuQ6b:npT2md&quot; jscontroller=&quot;IsfMIf&quot; jsshadow=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; border: 0px; margin: 0px; padding: 0px;&quot;&gt;
&lt;span jsslot=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; font-size: 14px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span jsslot=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; font-size: 14px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;- Menghilangkan video Youtube.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span jsslot=&quot;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span jsslot=&quot;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;- Menambah drawer navigation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span jsslot=&quot;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span jsslot=&quot;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;- Memperbaiki pengambilan foto.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span jsslot=&quot;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
- Menambah kemampuan mengunduh berkas.&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
- Menambah kemampuan notifikasi.&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTx8fHnqkOkNvTfMH0OnItrZZsqwjB3O1pw6vnkyFrPAM6UFNZLLktZVp2-B3oaJOS-Pcr99X34sdGYC1FJ93y2aL-hWwSLm75NrH4WzGW-GL9tGsXB_APTRZP69QHOcbEm083UMPL4FL7/s1600/android-download.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTx8fHnqkOkNvTfMH0OnItrZZsqwjB3O1pw6vnkyFrPAM6UFNZLLktZVp2-B3oaJOS-Pcr99X34sdGYC1FJ93y2aL-hWwSLm75NrH4WzGW-GL9tGsXB_APTRZP69QHOcbEm083UMPL4FL7/s320/android-download.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;

Ini adalah aplikasi pertamaku yg publis di Google Play, BTW. :D&lt;/blockquote&gt;
</description><link>http://eshabe.blogspot.com/2020/04/disdukcapilbisa-batam-versi-android.html</link><author>noreply@blogger.com (eshabe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTx8fHnqkOkNvTfMH0OnItrZZsqwjB3O1pw6vnkyFrPAM6UFNZLLktZVp2-B3oaJOS-Pcr99X34sdGYC1FJ93y2aL-hWwSLm75NrH4WzGW-GL9tGsXB_APTRZP69QHOcbEm083UMPL4FL7/s72-c/android-download.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-4218712256928920464</guid><pubDate>Fri, 22 Sep 2017 15:31:00 +0000</pubDate><atom:updated>2017-09-22T08:33:21.857-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Application</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">Manjaro</category><category domain="http://www.blogger.com/atom/ns#">pamac</category><title>Pamac 6.0, Aku Suka!</title><description>&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Beberapa hari yang lalu, saya update&lt;b&gt; &lt;a href=&quot;https://manjaro.org/&quot;&gt;Manjaro Linux &lt;/a&gt;&lt;/b&gt;di laptop. Salah satu paket yang terupdate adalah &lt;b&gt;pamac&lt;/b&gt;, yaitu sebuah aplikasi (GUI) paket manager.&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;


&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Setelah sebelumnya saya harus &quot;hafal&quot; nama paket suatu aplikasi/librari untuk menginstal, sekarang mencarinya lebih mudah karena ada pengkategorian paket ke dalam &quot;Games&quot;, &quot;Office&quot;, dan lain- lain.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Aku suka!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/T7h40abFyhM/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/T7h40abFyhM?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2017/09/pamac-60-aku-suka.html</link><author>noreply@blogger.com (eshabe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/T7h40abFyhM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-6080814110952778681</guid><pubDate>Fri, 25 Mar 2016 08:09:00 +0000</pubDate><atom:updated>2016-12-08T07:56:07.388-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bahasa C</category><category domain="http://www.blogger.com/atom/ns#">Belajar</category><category domain="http://www.blogger.com/atom/ns#">Pemrograman</category><title>Tak Kenal Maka Tak Sayang</title><description>&lt;span style=&quot;font-size: x-large;&quot;&gt;P&lt;/span&gt;ada pembahasan &lt;a href=&quot;http://eshabe.blogspot.co.id/2013/01/ayo-mulai-saja.html&quot;&gt;sebelumnya&lt;/a&gt; telah disinggung tentang &quot;deklarasi&quot;. Kamu tentu sering mendengar kata ini, terutama saat akan dimulainya pilkada. Ada deklarasi pasangan bakal calon A, B, C. Tujuannya untuk mengenalkan pasangan bakal calon tersebut ke masyarakat. Demikian halnya dalam C ada mekanisme deklarasi sebelum sebuah variabel atau fungsi digunakan.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;P&lt;/span&gt;erhatikan kode berikut:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
/* Nama: pertama2.c */
#include &amp;lt;stdio.h&amp;gt;

void tampil ();

int main (int argc, char **argv)
{
  ke = 2; 
  tampil (ke);
  return 0;
} 

void tampil (int program)
{
  printf (&quot;Program Ke-%d Bahasa C\n&quot;, program);
}
 
&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;A&lt;/span&gt;da yang salah dalam program di atas! Silahkan tulis kode di atas dan simpan dengan nama pertama2.c, kemudian compile
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;$ gcc -o pertama2 pertama2.c
&lt;/code&gt;&lt;/pre&gt;
Muncul:
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
pertama2.c: In function ‘main’:
pertama2.c:10:3: error: ‘ke’ undeclared (first use in this function)
   ke = 2; 
   ^

&lt;/code&gt;&lt;/pre&gt;
Artinya, variabel &#39;ke&#39; dalam fungsi &#39;main&#39; tidak dikenali. Jadi, harus kenalan dulu! :D

Bentuk deklarasi atau pengenalan variabel dalam C adalah sebagai berikut:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[tipe] [nama_variable];&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Adapun bentuk pengenalan fungsi dalam C adalah:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[tipe] [nama_fungsi] ([argumen]);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;T&lt;/span&gt;ipe-tipe &lt;b&gt;dasar&lt;/b&gt; dari variabel dan fungsi C adalah:

&lt;br /&gt;
&lt;pre&gt;char&lt;/pre&gt;
karakter, dapat dikembangkan menjadi bentuk teks (&lt;i&gt;string&lt;/i&gt;).
&lt;br /&gt;
&lt;pre&gt;sort, int, long&lt;/pre&gt;
bilangan desimal.
&lt;br /&gt;
&lt;pre&gt;float&lt;/pre&gt;
bilangan pecahan.
&lt;br /&gt;
&lt;pre&gt;double&lt;/pre&gt;
bilangan dengan presisi tinggi.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;S&lt;/span&gt;edangkan tipe &lt;br /&gt;
&lt;pre&gt;void&lt;/pre&gt;
digunakan untuk fungsi yang tidak memberikan nilai. Fungsi seperti ini disebut juga dengan &lt;b&gt;prosedur&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;L&lt;/span&gt;alu, bagaimana seharusnya kode program pertama2.c di atas?&lt;br /&gt;
&lt;br /&gt;
&lt;hr size=&quot;1&quot; /&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;a href=&quot;http://eshabe.blogspot.com/2013/01/ayo-mulai-saja.html&quot;&gt;Ayo, Mulai Saja!&lt;/a&gt;
&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2016/03/tak-kenal-maka-tak-sayang.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-1357610405867603703</guid><pubDate>Mon, 28 Jan 2013 15:34:00 +0000</pubDate><atom:updated>2016-03-25T01:08:14.405-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bahasa C</category><category domain="http://www.blogger.com/atom/ns#">Belajar</category><category domain="http://www.blogger.com/atom/ns#">Pemrograman</category><title>Ayo, Mulai Saja!</title><description>&lt;span style=&quot;font-size: x-large;&quot;&gt;S&lt;/span&gt;ebuah kode program C biasanya tersusun seperti contoh berikut:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;/* Nama: pertama1.c */
#include &amp;lt;stdio.h&amp;gt;

void tampil ();

int main (int argc, char **argv)
{
  tampil ();
  return 0;
}


void tampil ()
{
  printf (&quot;Program Pertama Bahasa C\n&quot;);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Saya menggunakan kata &quot;biasanya&quot; karena memang tidak harus i itu, he he he :D&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;B&lt;/span&gt;aiklah, kita bahas satu-satu.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;/* Nama: pertama1.c */&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
adalah bagaimana kita memberi komentar dalam kode program C. Semua yang diawali &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;/*&lt;/span&gt; dan diakhiri &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;*/&lt;/span&gt; adalah komentar, tidak peduli seberapa panjang atau seberapa banyak barisnya. Selain &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;/* */&lt;/span&gt;, beberapa kompiler memperbolehkan penggunaan &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;//&lt;/span&gt; untuk mengawali komentar dalam satu baris. Contoh:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;// Bahasa C - oleh eshabe&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;G&lt;/span&gt;unanya komentar adalah agar programer dapat memberi catatan pada program yang ia buat sehingga ia atau orang lain dapat lebih memahami / mengerti tentang program tersebut. Bayangkan, jika suatu program tidak ada catatannya. Jangankan orang lain, sang pembuat pun bakal bingung saat ia membukanya setahun kemudian.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;K&lt;/span&gt;omentar tidak termasuk dalam program itu sendiri, diabaikan oleh pemroses program (&lt;i&gt;compiler&lt;/i&gt;), jadi tidak usah pelit saat memberi catatan karena ukuran program biner tidak terpengaruh.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
adalah bagaimana kita memanggil kode program lain. Biasanya program yang dipanggil adalah kode yang berisi deklarasi fungsi atau konstanta.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;void tampil ();&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
adalah pendeklarasian fungsi &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;tampil()&lt;/span&gt; yang ditulis belakangan.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;int main (int argc, char **argv) { }&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
adalah bagian utama program. Ya, ia adalah suatu fungsi! Suatu fungsi dalam C terdiri dari:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;b&gt;[tipe fungsi] [nama fungsi] ([argumen]) { [isi] }&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
- Tipe fungsi bisa int, float, double, char, void, atau yang lain sesuai tipe data.&lt;br /&gt;
- Nama fungsi diawali oleh alfabet [1] dan terdiri dari alfanumerik dan garis bawah (underscore).&lt;br /&gt;
- Argumen berisi variabel yang akan dilewatkan pada fungsi tersebut.&lt;br /&gt;
- Isi? ya isi dari fungsi...&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;K&lt;/span&gt;husus &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;main()&lt;/span&gt;, tipe fungsi dapat berupa &lt;b&gt;void&lt;/b&gt;, yang artinya abaikan. Kita tidak perlu memberi nilai &#39;&lt;b&gt;return&lt;/b&gt;&#39; saat mengakhiri fungi. Argumen juga bisa dikosongkan atau diisi &#39;&lt;b&gt;void&lt;/b&gt;&#39;, artinya kita mengabaikannya!&lt;br /&gt;
&lt;br /&gt;
Perhatikan! Isi selalu diapit dengan kurung kurawal buka tutup ({...}).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;J&lt;/span&gt;adi, bentuk berikut bisa jadi merupakan bentuk minimal dari program C:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;main(){}&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Tapi bentuk di atas saat kita &lt;i&gt;compile&lt;/i&gt; sering ditolak :) Coba saja bentuk ini:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;int main(void){}&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;S&lt;/span&gt;impan kode program dengan nama &lt;b&gt;pertama1.c&lt;/b&gt;! &lt;br /&gt;
&lt;br /&gt;
Misalnya disimpan di /home/zuper/myc/, jalankan Terminal lalu ketik perintah-perintah berikut:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
$ cd&amp;nbsp;&amp;nbsp;/home/zuper/myc/
$ gcc -o pertama1 pertama1.c
$ ./pertama1
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Apa yang terjadi?&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;gcc -o pertama1 pertama1.c&lt;/span&gt; : compile kode program &lt;b&gt;pertama1.c&lt;/b&gt; dan simpan hasilnya (program biner) dengan nama &lt;b&gt;pertama1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr size=&quot;1&quot; /&gt;
&lt;div align=&quot;right&quot;&gt;
&lt;a href=&quot;http://eshabe.blogspot.co.id/2016/03/tak-kenal-maka-tak-sayang.html&quot;&gt;Tak Kenal Maka Tak Sayang&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;a href=&quot;http://eshabe.blogspot.com/2011/03/program-pendukung.html&quot;&gt;Program Pendukung&lt;/a&gt;&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2013/01/ayo-mulai-saja.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-4010744424892784121</guid><pubDate>Sun, 23 Sep 2012 12:16:00 +0000</pubDate><atom:updated>2012-09-23T05:24:06.967-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">Skyworth S7</category><category domain="http://www.blogger.com/atom/ns#">Smartfren AndroMax Tab 7</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Agar Smartfren AndroMax Tab 7-mu Dikenali Oleh ADB (Android Debug Bridge) di Ubuntu Precise Pangoline (12.04)</title><description>Ketika terpikir untuk &lt;i&gt;rooting&lt;/i&gt;&amp;nbsp;&lt;a href=&quot;http://eshabe.blogspot.com/2012/09/update-smartfren-andromax-tab-7-ke-404.html&quot;&gt;Smartfren AndroMax Tab 7&lt;/a&gt;, segera saja saya &lt;i&gt;gugling&lt;/i&gt;. Banyak &lt;i&gt;sih&lt;/i&gt; yang saya temukan, tapi tak satupun yang menerangkan &lt;i&gt;rooting&lt;/i&gt; &lt;a href=&quot;http://eshabe.blogspot.com/search/label/Smartfren%20AndroMax%20Tab%207&quot;&gt;Smartfren AndroMax &amp;nbsp;Tab 7 &lt;/a&gt;dari &lt;a href=&quot;http://eshabe.blogspot.com/search/label/linux&quot;&gt;Linux&lt;/a&gt; atau &lt;a href=&quot;http://eshabe.blogspot.com/search/label/ubuntu&quot;&gt;Ubuntu&lt;/a&gt;. Semuanya dari Windows dengan tool &lt;a href=&quot;http://developer.android.com/tools/help/adb.html&quot;&gt;&lt;b&gt;ADB&lt;/b&gt;&lt;/a&gt;! Bahkan blog yg judulnya Linux pun menggunakan Windows! ;)&lt;span class=&quot;fullpost&quot;&gt;


&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Apa benar tidak bisa dari Linux? Bisa koq! Caranya?&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&quot;Perhatian! Pada bagian ini tidak menjelaskan cara &lt;i&gt;rooting&lt;/i&gt;. Kamu saya anggap sudah mengerti bagaimana cara membuat/menyunting berkas teks di Linux, dan sudah menginstal ADB atau Android SDK&quot;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Tambahkan baris berikut ke dalam file &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;/etc/udev/rules.d/51-android.rules&lt;br /&gt;&lt;br /&gt;SUBSYSTEM==&quot;usb|usb_device&quot;, ATTR{idVendor}==&quot;2207&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Restart udev; &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;sudo restart udev&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Tambahkan kode &lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;0x2207&lt;/span&gt;&lt;/b&gt; ke dalam file &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;~/.android/adb_usb.ini&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Tancapkan&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://eshabe.blogspot.com/search/label/Smartfren%20AndroMax%20Tab%207&quot;&gt;Smartfren AndroMax &amp;nbsp;Tab 7&lt;/a&gt;&amp;nbsp;ke Ubuntu melalui USB&lt;/li&gt;
&lt;li&gt;Periksa dengan perintah &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;$ adb devices&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Sekian.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Oh, ya. &lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;2207&lt;/span&gt;&lt;/b&gt; adalah vendor ID USB dari&amp;nbsp;&lt;a href=&quot;http://eshabe.blogspot.com/search/label/Smartfren%20AndroMax%20Tab%207&quot;&gt;Smartfren AndroMax &amp;nbsp;Tab 7&lt;/a&gt;&amp;nbsp;. Coba jalankan perintah &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;lsusb&lt;/span&gt; saat&amp;nbsp;&lt;a href=&quot;http://eshabe.blogspot.com/search/label/Smartfren%20AndroMax%20Tab%207&quot;&gt;Smartfren AndroMax &amp;nbsp;Tab 7&lt;/a&gt;&amp;nbsp;tertancap ke Ubuntu, maka akan muncul &lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;2207:0006&lt;/span&gt;&lt;/b&gt;.&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2012/09/agar-smartfren-andromax-tab-7-mu.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-5559450128437455916</guid><pubDate>Sat, 22 Sep 2012 13:01:00 +0000</pubDate><atom:updated>2012-09-22T06:01:54.208-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Android</category><category domain="http://www.blogger.com/atom/ns#">Skyworth S7</category><category domain="http://www.blogger.com/atom/ns#">Smartfren AndroMax Tab 7</category><title>Update Smartfren AndroMax Tab 7 ke 4.0.4</title><description>Saya beli&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://www.smartfren.com/andromaxtab7/index.html&quot;&gt;Smartfren AndroMax Tab 7&lt;/a&gt;&lt;/b&gt; atau &lt;b&gt;Skyworth S7&lt;/b&gt; beberapa minggu yang lalu. Secara umum sih tablet ini cukup bagus, sesuai dengan harganya :)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bagi saya dengan harga Rp1.5jt ada GPS dan modem CDMA/EVDO memang sudah cukup. Sayangnya tidak ada kompas elektronik dan tidak bisa untuk telpon :( Tidak bisa telpon sih tidak masalah, tapi tidak ada kompas elektronik... sayang banget.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Masalah lain yang mengganggu adalah &lt;i&gt;false notification / alert&lt;/i&gt; soal &lt;i style=&quot;font-weight: bold;&quot;&gt;low-bat&lt;/i&gt; padahal baterai masih banyak, dan &lt;b&gt;Google Calendar&lt;/b&gt; tidak mau sinkronisasi.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Dengan update system, dua masalah di atas bablas!!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Berikut langkah-langkahnya:&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Aktifkan &quot;Auto check update&quot; di &lt;b&gt;AndroMax&lt;/b&gt;&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiQ9bvN3aVtxibwbskS_UZkceNR0kFDF61vPQSTM7v7OP2Xcs5H0XJ5UVYJ7VfnK3V7VZWgHOSm5IESBg_RbshQH3Jv-YSexukgcqkkxuI-LVpmcw3rH-zofMWwkVfOZjEFCfgQ-WyiYUX/s1600/2012-09-22-19-12-59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiQ9bvN3aVtxibwbskS_UZkceNR0kFDF61vPQSTM7v7OP2Xcs5H0XJ5UVYJ7VfnK3V7VZWgHOSm5IESBg_RbshQH3Jv-YSexukgcqkkxuI-LVpmcw3rH-zofMWwkVfOZjEFCfgQ-WyiYUX/s320/2012-09-22-19-12-59.png&quot; width=&quot;319&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;li&gt;Unduh &lt;b&gt;update.img&lt;/b&gt;.&amp;nbsp;File update.img bisa didapatkan di forum &lt;a href=&quot;http://www.kaskus.co.id/showpost.php?p=749910479&amp;amp;postcount=4537&quot;&gt;kaskus&lt;/a&gt;. Ekstrak file zip / rar, ubah ke update.img&lt;/li&gt;
&lt;li&gt;Jika download tidak menggunakan &lt;b&gt;AndroMax&lt;/b&gt;, copy&amp;nbsp;update.img ke SDCARD. Bisa menggunakan &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.sand.airdroid&quot;&gt;AirDroid&lt;/a&gt; jika tidak punya kabel USB. Soalnya dalam paket pembelian kabel ini tidak disertakan.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;AndroMax&lt;/b&gt; akan memberi alert bahwa &lt;i&gt;update system&lt;/i&gt; tersedia dan meminta kita untuk menginstal. Cukup dengan menyentuh &quot;&lt;b&gt;Install&lt;/b&gt;&quot; maka &lt;i&gt;system&lt;/i&gt; meng-&lt;i&gt;update&lt;/i&gt; secara otomatis.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mYt7SCfcGIrdcDGz6pI56RBx5O5rZz358i-QleUPGucLiCWUT7TNlTDzJEXUJ6-I4cK175qMqqysPHc4SE9O8VZt6xBYkRHUA_ocm3aPBEgsOV0PhrmWhRjHxWFCo_gONlWWlmaxWIwV/s1600/2012-09-22+16.51.51.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mYt7SCfcGIrdcDGz6pI56RBx5O5rZz358i-QleUPGucLiCWUT7TNlTDzJEXUJ6-I4cK175qMqqysPHc4SE9O8VZt6xBYkRHUA_ocm3aPBEgsOV0PhrmWhRjHxWFCo_gONlWWlmaxWIwV/s320/2012-09-22+16.51.51.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1gBjFAUwfq_CWXRsIOyWLps_blVDgpvZZm-2HQzK988FCWXmq3b3RoXwI16PGFzusIihAHRrG75jjrvF9CAOJ8-GGIeVIIacYRuMu1IHNshiQrBHvmexdZOoRunYvaZClfPtmDWI-bQBi/s1600/2012-09-22-19-12-24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1gBjFAUwfq_CWXRsIOyWLps_blVDgpvZZm-2HQzK988FCWXmq3b3RoXwI16PGFzusIihAHRrG75jjrvF9CAOJ8-GGIeVIIacYRuMu1IHNshiQrBHvmexdZOoRunYvaZClfPtmDWI-bQBi/s320/2012-09-22-19-12-24.png&quot; width=&quot;319&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2012/09/update-smartfren-andromax-tab-7-ke-404.html</link><author>noreply@blogger.com (eshabe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiQ9bvN3aVtxibwbskS_UZkceNR0kFDF61vPQSTM7v7OP2Xcs5H0XJ5UVYJ7VfnK3V7VZWgHOSm5IESBg_RbshQH3Jv-YSexukgcqkkxuI-LVpmcw3rH-zofMWwkVfOZjEFCfgQ-WyiYUX/s72-c/2012-09-22-19-12-59.png" height="72" width="72"/><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-1822241740051905937</guid><pubDate>Thu, 17 Mar 2011 04:12:00 +0000</pubDate><atom:updated>2013-01-28T07:40:31.974-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bahasa C</category><category domain="http://www.blogger.com/atom/ns#">Belajar</category><category domain="http://www.blogger.com/atom/ns#">Pemrograman</category><title>Program Pendukung</title><description>&lt;span style=&quot;font-size: 180%;&quot;&gt;P&lt;/span&gt;ada dasarnya, untuk mengikuti &lt;a href=&quot;http://eshabe.blogspot.com/p/belajar-bahasa-c.html&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;Belajar Bahasa C&quot;&lt;/span&gt;&lt;/a&gt; boleh menggunakan program seperti Visual C, Borland C atau yang lain. Namun agar lebih mudah memahami tulisan ini sebaiknya menggunakan program pendukung berupa compiler: &lt;a href=&quot;http://gcc.gnu.org/&quot; style=&quot;font-weight: bold;&quot;&gt;GNU Compiler Collection&lt;/a&gt; atau &lt;span style=&quot;font-weight: bold;&quot;&gt;gcc&lt;/span&gt;. Untuk mengetik program, bisa menggunakan &lt;a href=&quot;http://projects.gnome.org/gedit/&quot; style=&quot;font-weight: bold;&quot;&gt;gedit&lt;/a&gt; (Linux) atau &lt;a href=&quot;http://notepad-plus-plus.org/&quot; style=&quot;font-weight: bold;&quot;&gt;Notepad++&lt;/a&gt; (Windows) atau penyunting teks lain yang selama ini telah biasa digunakan. Sebagai gambaran, penulis menggunakan &lt;span style=&quot;font-weight: bold;&quot;&gt;Ubuntu Linux &lt;/span&gt;10.04 dg &lt;span style=&quot;font-weight: bold;&quot;&gt;gcc&lt;/span&gt; versi 4.4.3 dan &lt;span style=&quot;font-weight: bold;&quot;&gt;gedit&lt;/span&gt;.
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
Lihat! Program-program pendukung yang disarankan adalah program gratis bahkan bebas (&lt;span style=&quot;font-style: italic;&quot;&gt;free software&lt;/span&gt;)!&lt;/blockquote&gt;
&lt;hr size=&quot;1&quot;&gt;
&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;http://eshabe.blogspot.com/2013/01/ayo-mulai-saja.html&quot;&gt;Ayo, Mulai Saja!&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;&lt;a href=&quot;http://eshabe.blogspot.com/2011/03/mengapa-bahasa-c.html&quot;&gt;Mengapa Bahasa C?&lt;/a&gt;&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2011/03/program-pendukung.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-6642006447275233887</guid><pubDate>Thu, 17 Mar 2011 03:03:00 +0000</pubDate><atom:updated>2013-01-28T07:38:08.946-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bahasa C</category><category domain="http://www.blogger.com/atom/ns#">Belajar</category><category domain="http://www.blogger.com/atom/ns#">Pemrograman</category><title>Mengapa Bahasa C?</title><description>&lt;span style=&quot;font-size: 180%;&quot;&gt;P&lt;/span&gt;ertanyaan semacam itu selalu muncul saat kita menawarkan sesuatu. &lt;a href=&quot;http://en.wikipedia.org/wiki/C_%28programming_language%29&quot;&gt;Bahasa C&lt;/a&gt; adalah bahasa pemrogaman  yang artinya ia hanyalah sebuah alat bantu atau bahan mentah. Alasan pemilihan alat atau bahan tentu saja tergantung kepada: hasil yang akan dicapai, kemudahan pembuatan dan ketersediaan.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Hasil Yang Akan Dicapai&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 180%;&quot;&gt;J&lt;/span&gt;ika akan membuat web maka bahasa yang utama adalah HTML. Bahasa C bisa digunakan sebagai generator HTML. C menjadi salah satu pilihan saat akan membuat &lt;a href=&quot;http://en.wikipedia.org/wiki/System_software&quot;&gt;software sistem&lt;/a&gt;, atau aplikasi. Penggunaan  C tidak terbatas pada &lt;span style=&quot;font-weight: bold;&quot;&gt;aplikasi desktop&lt;/span&gt;, aplikasi level kontroler atau prosesor pun bisa dibuat menggunakan bahasa ini.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Kemudahan Pembuatan&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 180%;&quot;&gt;K&lt;/span&gt;etika hasil yang akan dicapai sudah ditentukan, misalnya aplikasi desktop POS untuk lingkungan sistem operasi Linux, maka bahasa-bahasa seperti perl, assembly, PHP tidak mudah untuk digunakan. Sedangkan  C masih menjadi salah satu pilihan.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Ketersediaan&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 180%;&quot;&gt;C&lt;/span&gt; telah tersedia untuk berbagai platform komputer dan sistem operasi. Pengguna Windows, Linux, MacOS X dan lain-lain bisa dengan mudah mendapatkan alat bantu pemrograman dengan C baik itu yang berbayar maupun yang gratis, baik itu yang berlisensi tertutup maupun yang bebas, baik itu yang visual maupun yang ketik manual.
&lt;br /&gt;
&lt;hr size=&quot;1&quot; /&gt;
&lt;div align=&quot;right&quot;&gt;
&lt;a href=&quot;http://eshabe.blogspot.com/2011/03/program-pendukung.html&quot;&gt;Program Pendukung&lt;/a&gt;&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2011/03/mengapa-bahasa-c.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-7590640636823934638</guid><pubDate>Thu, 06 May 2010 16:32:00 +0000</pubDate><atom:updated>2010-05-06T09:50:28.258-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">lucid lynx</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>What I like and dislike from Lucid Lynx (Ubuntu 10.4)</title><description>&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;I like...&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Faster on boot and shutdown&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;More simple GUI than before&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Latest Firefox version&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Indicator Applet Session&#39;s status is work for both Empathy and Pidgin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Left side close window button&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;All of my laptop hardware is just work out of box&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;I dislike....&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;No GIMP, need to be installed&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;OpenVPN network-manager-plugin is not work well yet&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Lesser games&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;fullpost&quot;&gt;Gwibber&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://eshabe.blogspot.com/2010/05/what-i-like-and-dislike-from-lucid-lynx.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-9198513467790908027</guid><pubDate>Sat, 26 Sep 2009 17:38:00 +0000</pubDate><atom:updated>2009-09-26T11:02:40.887-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">appication</category><category domain="http://www.blogger.com/atom/ns#">dia</category><category domain="http://www.blogger.com/atom/ns#">diagram</category><category domain="http://www.blogger.com/atom/ns#">graphics</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>dia : A program for drawing structured diagrams</title><description>Word processor and spreadsheet applications can be used to draw a diagram; flow-chart or whatever diagrams. But we will find dificulties when doing in it because the applications are not designed for this job.&lt;br /&gt;&lt;br /&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.ubuntu.com/&quot;&gt;Ubuntu&lt;/a&gt;, the most growing GNU/Linux distribution, provide an application named &lt;a target=&quot;_blank&quot; href=&quot;http://www.gnome.org/projects/dia/&quot;&gt;Editor Diagram (&lt;span style=&quot;font-family:monospace;&quot;&gt;dia&lt;/span&gt;)&lt;/a&gt; as &lt;span style=&quot;font-family:monospace;&quot;&gt;dia-gnome&lt;/span&gt; package. The &lt;span style=&quot;font-family:monospace;&quot;&gt;-gnome &lt;/span&gt;sufix show this application is developed by  &lt;a target=&quot;_blank&quot; href=&quot;http://www.gnome.org/&quot;&gt;GNOME&lt;/a&gt; team and to do in GNOME desktop environment.&lt;br /&gt;&lt;br /&gt;Just install dia use  apt-get command line or Synaptic, or &quot;Add/Remove...&quot;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;http://www.flickr.com/photos/21030576@N03/3955875532&quot;&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2587/3955875532_36f5097999.jpg&quot; height=&quot;298&quot; width=&quot;413&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;After installation completed, the application can be found in Applications -&gt; Graphics -&gt; Editor Diagram Dia.&lt;br /&gt;&lt;br /&gt;There are more than 30 diagrams every simbols are provided already; flow-chart, jigsaw, logic, ladder, electrics, electronics, Gane and Sarson (DFD) and so on.&lt;br /&gt;&lt;br /&gt;dia&#39;s working file is saved with .dia suffix and it can be exported to many file formats; DXF, PNG, JPG dan SVG and so on.&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;http://www.flickr.com/photos/21030576@N03/3955875536&quot;&gt;&lt;img src=&quot;http://farm4.static.flickr.com/3533/3955875536_1293cfa6a4.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br&gt;Screenshoot&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div align=&quot;right&quot;&gt;Using Ubuntu Jaunty Jackalope  -  language-pack-id&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://eshabe.blogspot.com/2009/09/dia-program-for-drawing-structured.html</link><author>noreply@blogger.com (eshabe)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://farm3.static.flickr.com/2587/3955875532_36f5097999_t.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-7137741114398866667</guid><pubDate>Wed, 06 May 2009 16:24:00 +0000</pubDate><atom:updated>2009-06-11T01:43:58.219-07:00</atom:updated><title>Problem after update Ubuntu 8.04 Server software</title><description>I just update Ubuntu 8.04 Server software by command:&lt;p&gt;$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade&lt;/p&gt;&lt;p&gt;The process it self is ok, but my apache web server can not run.&lt;/p&gt;&lt;p&gt;$ sudo /etc/init.d/apache2 restart&lt;/p&gt;&lt;p&gt;Say error in /etc/apache2/sites-enabled/000-default.save&lt;/p&gt;&lt;p&gt;I remove the file then apache work fine again :)&lt;/p&gt;</description><link>http://eshabe.blogspot.com/2009/05/problem-after-update-ubuntu-804-server.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-1749171617971189673</guid><pubDate>Wed, 06 May 2009 14:05:00 +0000</pubDate><atom:updated>2009-05-06T07:05:56.480-07:00</atom:updated><title>Root without password in Ubuntu</title><description>Since I use Hardy Heron, I found that we can get root console / command &lt;br&gt;prompt without a password.&lt;p&gt;I do not know, why Ubuntu team do this. But it was help me when I must &lt;br&gt;enter the admin functions but I do not know the admin user name and &lt;br&gt;password.&lt;p&gt;How to get in it?&lt;p&gt;When system is booting and prompt a GRUB menu, I press ESC key. Then I &lt;br&gt;select &amp;quot;Recovery mode&amp;quot;. After the system show a selection action box, I &lt;br&gt;select &amp;quot;root&amp;quot;. Than I get a sign: #</description><link>http://eshabe.blogspot.com/2009/05/root-without-password-in-ubuntu.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-5243682457409328824</guid><pubDate>Sun, 08 Feb 2009 15:56:00 +0000</pubDate><atom:updated>2009-02-08T07:57:46.932-08:00</atom:updated><title>Deleting Old Files In Linux</title><description>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;When my scheduled database backup run, I have many old files we do not neet them anymore. So, I have a question for my self: How to remove them automatically just after backup is done?&lt;br/&gt;&lt;br/&gt;So, I try to read &#39;find&#39; command manual. The command is &quot;man find&quot; (without double quotes) if you do not know :) then I found these option:&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;       &lt;small&gt;&lt;font face=&#39;Courier New&#39;&gt;-atime n&lt;br/&gt;              File  was  last  accessed n*24 hours ago.  When find figures out&lt;br/&gt;              how many 24-hour periods ago the file  was  last  accessed,  any&lt;br/&gt;              fractional part is ignored, so to match -atime +1, a file has to&lt;br/&gt;              have been accessed at least two days ago.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;       -ctime n&lt;br/&gt;              File’s status was last changed n*24 hours ago.  See the comments&lt;br/&gt;              for -atime to understand how rounding affects the interpretation&lt;br/&gt;              of file status change times.&lt;br/&gt;&lt;br/&gt;       -name pattern&lt;br/&gt;              Base  of  file  name  (the  path  with  the  leading directories&lt;br/&gt;              removed) matches  shell  pattern  pattern.   The  metacharacters&lt;br/&gt;              (‘*’,  ‘?’,  and ‘[]’) match a ‘.’ at the start of the base name&lt;br/&gt;              (this is a change in findutils-4.2.2; see section STANDARDS CON‐&lt;br/&gt;              FORMANCE  below).  To ignore a directory and the files under it,&lt;br/&gt;              use -prune; see an example in the description of -path.   Braces&lt;br/&gt;              are  not recognised as being special, despite the fact that some&lt;br/&gt;              shells including Bash imbue braces with  a  special  meaning  in&lt;br/&gt;              shell patterns.  The filename matching is performed with the use&lt;br/&gt;              of the fnmatch(3) library function.   Don’t  forget  to  enclose&lt;br/&gt;              the  pattern  in quotes in order to protect it from expansion by&lt;br/&gt;              the shell.&lt;br/&gt;&lt;br/&gt;       -delete&lt;br/&gt;              Delete files; true if removal succeeded.  If the removal failed,&lt;br/&gt;              an  error message is issued.  If -delete fails, find’s exit sta‐&lt;br/&gt;              tus will be nonzero (when it eventually exits).  Use of  -delete&lt;br/&gt;              automatically turns on the -depth option.&lt;/font&gt;&lt;/small&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;So, with options combination I get a command:&lt;br/&gt;$ find . -name &#39;backup_*.db&#39; -ctime +30 -delete&lt;br/&gt;&lt;br/&gt;That is! I put the command in my backup script than run by cron every weeks and my old files will be deleted just after backup is done.&lt;/div&gt;</description><link>http://eshabe.blogspot.com/2009/02/deleting-old-files-in-linux.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-7292770871792029855</guid><pubDate>Fri, 17 Oct 2008 16:34:00 +0000</pubDate><atom:updated>2016-03-25T01:27:15.845-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">openvpn</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Setup OpenVPN in Ubuntu</title><description>&lt;div class=&quot;entrybody&quot;&gt;
&lt;div class=&quot;snap_preview&quot;&gt;
To get my work on time schedule, I must bring it as my homework. It is software development. For this purpose, I have to connect my office computer to home computer with VPN.&lt;br /&gt;
&lt;b&gt;1st&lt;/b&gt; - ISP&#39;s Modem&lt;br /&gt;
Open firewall or port triggering: 1194 UDP&lt;br /&gt;ThenVirtual Server, forward incoming connection 1194 port to my office computer&#39;s IP address.&lt;br /&gt;
&lt;b&gt;2dn&lt;/b&gt; - Install OpenVPN&lt;br /&gt;
Office / Server: Ubuntu 8.04 (Hardy Heron) Server&lt;br /&gt;Home / Client: Ubuntu 8.04 Desktop&lt;br /&gt;
Install openvpn in both computers:&lt;br /&gt;
&lt;pre&gt;sudo apt-get install openvpn&lt;/pre&gt;
&lt;b&gt;3rd&lt;/b&gt; - Configure the server: (see &lt;a href=&quot;http://openvpn.net/index.php/documentation/howto.html&quot; target=&quot;_blank&quot;&gt;HOWTO&lt;/a&gt; for more)&lt;br /&gt;
&lt;pre&gt;cd /etc/openvpncp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/ ./easy-rsa/cd easy-rsa&lt;/pre&gt;
(optionals)&lt;br /&gt;
&lt;pre&gt;nano ./vars&lt;/pre&gt;
Change the values:&lt;br /&gt;
&lt;pre&gt;export KEY_COUNTRY=ID
export KEY_PROVINCE=KEPRIexport KEY_CITY=BATAMexport KEY_ORG=&quot;OpenVPN-TEST&quot;
export KEY_EMAIL=&quot;eshabe@gimail.com&quot;&lt;/pre&gt;
(then):&lt;br /&gt;
&lt;pre&gt;source ./vars&lt;/pre&gt;
&lt;pre&gt;./clean-all&lt;/pre&gt;
&lt;pre&gt;./build-ca&lt;/pre&gt;
Pay attention in “Common Name”. Example answer: &quot;myfirstvpn&quot;&lt;br /&gt;
&lt;pre&gt;./build-key-server server&lt;/pre&gt;
Pay attention in...&lt;br /&gt;“Common Name” - my answer is “server”&lt;br /&gt;“Sign the certificate? [y/n]” - answer “y”&lt;br /&gt;“1 out of 1 certificate requests certified, commit? [y/n]” - answer “y”&lt;br /&gt;
&lt;pre&gt;./build-key client1&lt;/pre&gt;
&lt;pre&gt;./build-key client2&lt;/pre&gt;
&lt;pre&gt;./build-key client3&lt;/pre&gt;
&lt;pre&gt;./build-dh&lt;/pre&gt;
Copy key files:&lt;br /&gt;
&lt;pre&gt;cd /etc/openvpn&lt;/pre&gt;
&lt;pre&gt;cp easy-rsa/keys/server.crt .&lt;/pre&gt;
&lt;pre&gt;cp easy-rsa/keys/server.key .&lt;/pre&gt;
&lt;pre&gt;cp easy-rsa/keys/ca.crt .&lt;/pre&gt;
&lt;pre&gt;cp easy-rsa/keys/dh1024.pem .&lt;/pre&gt;
Copy example config file:&lt;br /&gt;
&lt;pre&gt;gunzip /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz&lt;/pre&gt;
&lt;b&gt;4th&lt;/b&gt; - Configure the client&lt;br /&gt;
Copy key files:&lt;br /&gt;
&lt;pre&gt;cd /etc/openvpn&lt;/pre&gt;
&lt;pre&gt;scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/client1.crt client.crt&lt;/pre&gt;
&lt;pre&gt;scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/client1.key client.key&lt;/pre&gt;
&lt;pre&gt;scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/ca.crt ca.crt&lt;/pre&gt;
Copy example config file:&lt;br /&gt;
&lt;pre&gt;cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf .&lt;/pre&gt;
Edit config file:&lt;br /&gt;
&lt;pre&gt;nano client.conf&lt;/pre&gt;
Change &lt;b&gt;remote&lt;/b&gt; value:&lt;br /&gt;
&lt;pre&gt;remote 125.1.2.3 1194&lt;/pre&gt;
&lt;b&gt;5th&lt;/b&gt; - Try and activate&lt;br /&gt;Try:&lt;br /&gt;(server)&lt;br /&gt;
&lt;pre&gt;openvpn server.conf&lt;/pre&gt;
(client)&lt;br /&gt;
&lt;pre&gt;openvpn client.conf&lt;/pre&gt;
Yes!! openvpn is ready….&lt;br /&gt;
&lt;pre&gt;/etc/init.d/openvpn start&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://eshabe.blogspot.com/2008/10/to-get-my-work-on-time-schedule-i-must.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-3953906583229319261</guid><pubDate>Sun, 05 Oct 2008 16:29:00 +0000</pubDate><atom:updated>2008-10-05T09:37:42.783-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">grub</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">timeout</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>HowTo: No waiting time in Ubuntu&#39;s GRUB</title><description>&lt;div class=&quot;snap_preview&quot;&gt;&lt;p&gt;By default, Ubuntu display a GRUB menu and give us ten (10) seconds waiting time for user interaction. If you feel this waiting time is disturbing, you can remove the waiting time by edit the GRUB menu. Set &#39;timeout&#39; value to 0 (zero).&lt;/p&gt;&lt;p&gt;From Terminal, type:&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo nano /boot/grub/menu.lst&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Change timeout value.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://eshabe.files.wordpress.com/2008/08/time.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-189&quot; src=&quot;http://eshabe.files.wordpress.com/2008/08/time.jpg?w=377&amp;amp;h=71&quot; alt=&quot;&quot; height=&quot;71&quot; width=&quot;377&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;And, do not forget to activate hiddenmenu option. Why? By activating the option, although the timeout is 0 second, we can enter to the GRUB menu by pressing ESC key.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://eshabe.files.wordpress.com/2008/08/hide.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-190&quot; src=&quot;http://eshabe.files.wordpress.com/2008/08/hide.jpg?w=396&amp;amp;h=61&quot; alt=&quot;&quot; height=&quot;61&quot; width=&quot;396&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Save the file!&lt;br /&gt;&lt;/p&gt; &lt;/div&gt;</description><link>http://eshabe.blogspot.com/2008/10/howto-no-waiting-time-in-ubuntus-grub.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-951043528505198374.post-1952146526423024107</guid><pubDate>Sun, 05 Oct 2008 15:38:00 +0000</pubDate><atom:updated>2008-10-05T08:58:09.927-07:00</atom:updated><title>Create &#39;tar&#39; file from a list</title><description>Creating a &#39;tar&#39; file is simple, but creating a &#39;tar&#39; file from some files have different paths/directories is another case.&lt;br /&gt;&lt;br /&gt;Example, when I want to create a tar file from path /home/eshabe/mydocs, I can use command: tar cvf mydoc.tar /home/eshabe/mydocs&lt;br /&gt;&lt;br /&gt;But when I want to create a tar file from files:&lt;br /&gt;/home/eshabe/mydocs/howto-create-tar-file-from-a-list&lt;br /&gt;/etc/apache2/site-enables/000-default&lt;br /&gt;/home/eshabe/mydocs/yes/i/am&lt;br /&gt;/home/eshabe/.gnome2&lt;br /&gt;...&lt;br /&gt;?&lt;br /&gt;&lt;br /&gt;I can create a tar file from command line: tar cvf mydoc.tar /home/eshabe/...&lt;br /&gt;&lt;br /&gt;Another way is create a shell (sh) script to read a list file then create a tar file:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);font-size:85%;&quot; &gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;#!/bin/sh &lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;# Create a &#39;tar&#39; file from a list &lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;&lt;br /&gt;n_program=`basename $0`&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;v_program=1.0.0d1 &lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;p_program=eshabe &lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;t_program=&#39;2003.08.12&#39; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;RUNNAME=&#39;./shb-tarlist-run&#39; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;info_program () &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;    cat &lt;&lt;&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$n_program v$v_program &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;by: $p_program - $t_program &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;---------------------------------------------------------------------------- &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Function : create a tar file from a list file&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Command  : $nama_program LIST_FILE FILE.tar &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;LIST_FILE = a file contains list of files or directories&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;FILE.tar  = result&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;pesan_program &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;} &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;if [ $# != 2 ] &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;then &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;  info_program &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;  exit &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;fi &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;printf &quot;tar cvf $2 &quot; &gt; $RUNNAME &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;awk &#39;{ &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;    printf &quot;%s &quot;, $0 &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&#39; $1 &gt;&gt; $RUNNAME &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;chmod a+x $RUNNAME &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$RUNNAME &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;rm $RUNNAME &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;echo Done. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://eshabe.blogspot.com/2008/10/create-tar-file-from-list.html</link><author>noreply@blogger.com (eshabe)</author><thr:total>0</thr:total></item></channel></rss>