tag:blogger.com,1999:blog-68365398816178316852024-03-06T06:27:27.662+07:00me and my stuff*nix, tech, solana, android, football and watches
All comments are welcome.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.comBlogger115125tag:blogger.com,1999:blog-6836539881617831685.post-40556104142216942292023-09-10T23:21:00.001+07:002023-09-10T23:36:03.251+07:00Wireless debugging on Android<p> I'm not sure which version of android required to have this feature. For my Redmi 9S follow steps below</p><p>navigate to </p><p>-Settings -> Additional settings-> Developer options -> Wireless debugging </p><p>and enable it then click "Pair device with pairing code"</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4Dtnaf5nkRvM9yfHMW2zGxVsxaMK-vOo-DT3eCYnXUKhxZwzaZm7Esak_Su_g7gFxi6qrgGuKj-8Ny7Q6yBykUd_7pTyN9eMHw-8Xcf5zIvPOG2WzQMXcz4Up7GrABtq_6Si5IcyHvSXGc9OT-ZaErzfXs87zWoNFw4B0FB94oRWRP7YjxuPeVrbsD-A/s1052/Screenshot_2023-09-10-22-49-13-737-edit_com.android.settings.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="780" data-original-width="1052" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4Dtnaf5nkRvM9yfHMW2zGxVsxaMK-vOo-DT3eCYnXUKhxZwzaZm7Esak_Su_g7gFxi6qrgGuKj-8Ny7Q6yBykUd_7pTyN9eMHw-8Xcf5zIvPOG2WzQMXcz4Up7GrABtq_6Si5IcyHvSXGc9OT-ZaErzfXs87zWoNFw4B0FB94oRWRP7YjxuPeVrbsD-A/s320/Screenshot_2023-09-10-22-49-13-737-edit_com.android.settings.jpg" width="320" /></a></div><br /><p><br /></p><p>then on your laptop (ip port and code are not exactly same with code below😅)</p><p><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"></span></p><blockquote><p><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">zsh </span><b style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">1010</b><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span><b style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">%</b><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> adb pair 192.168.1.213:41855</span></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Enter pairing code: 185176</span></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Successfully paired to 192.168.1.213:41855 [guid=adb-eee2c79f-MOsHVT]</span></p><p class="p2" style="color: #38b9c7; font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">[</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Sun 23/09/10 23:14 +07</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s3" style="color: #39c026; font-variant-ligatures: no-common-ligatures;">s002</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">x86_64/darwin22.0/22.5.0</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">5.9</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">]</span></p><p class="p3" style="color: #39c026; font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;"><</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">medici@medicis-MacBook-Pro</span><span class="s4" style="color: #c7c7c7; font-variant-ligatures: no-common-ligatures;">:</span><span class="s5" style="color: #aaab25; font-variant-ligatures: no-common-ligatures;">~</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">></span></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">zsh <b>1011</b> <b>%</b> flutter devices<span class="Apple-converted-space"> </span></span></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">1 connected device:</span></p><p class="p4" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 13px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64</span></p><p class="p4" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 13px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">1 wirelessly connected device:</span></p><p class="p4" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 13px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Redmi Note 9S (mobile) • adb-eee2c79f-MOsHVT._adb-tls-connect._tcp. • android-arm64 • Android 12 (API 31)</span></p><p class="p2" style="color: #38b9c7; font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">[</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Sun 23/09/10 23:14 +07</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s3" style="color: #39c026; font-variant-ligatures: no-common-ligatures;">s002</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">x86_64/darwin22.0/22.5.0</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">][</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">5.9</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">]</span></p><p class="p3" style="color: #39c026; font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;"><</span><span class="s1" style="font-variant-ligatures: no-common-ligatures;">medici@medicis-MacBook-Pro</span><span class="s4" style="color: #c7c7c7; font-variant-ligatures: no-common-ligatures;">:</span><span class="s5" style="color: #aaab25; font-variant-ligatures: no-common-ligatures;">~</span><span class="s2" style="color: #ca3323; font-variant-ligatures: no-common-ligatures;">></span></p><p><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">zsh </span><b style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">1012</b><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span><b style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">%</b></p></blockquote><p><b style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"></b><span class="Apple-converted-space" style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span></p><p>Wireless debugging menu may in others place depend on ROM but I hope you got the idea. I really like this feature. Developing app on real phone is a lot faster for me</p>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-22093946254053686462023-09-10T15:57:00.008+07:002023-09-10T16:28:45.822+07:00Connie<p></p><div class="separator" style="clear: both; text-align: center;"><br /><br /></div><br />I'm talking my latest omega. I just get into collectable vintage world few months ago, after playing around aliexpress homage watch for a while. There is nothing wrong with chinese homage watch but I will talk about that later<p></p><p>If you gonna buy a vintage omega watch. The constellation is a flagship model you have to look into. Mine is ref. 14902, caliber 561, dogleg, pie pan dial</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHXjlsfIwGUO9QhlA1t1LHzAB2jKJ9J5fRBnf_y5JelEA5k0bVfxIkXl1YC7EFYBwZwQ9mA4-zWkbtbgO8tK9i5i9h5HT0DlRKsQcEaI0awI8Q3E7bLAf6UAEqNR1FQjNq7JFi9l856Jxgli6yOUpNdfSHqRwX_nzTDLAMpEnIJatu2JSgF2BC_LQDw4Y/s3000/IMG_20230910_153542.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="3000" data-original-width="3000" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHXjlsfIwGUO9QhlA1t1LHzAB2jKJ9J5fRBnf_y5JelEA5k0bVfxIkXl1YC7EFYBwZwQ9mA4-zWkbtbgO8tK9i5i9h5HT0DlRKsQcEaI0awI8Q3E7bLAf6UAEqNR1FQjNq7JFi9l856Jxgli6yOUpNdfSHqRwX_nzTDLAMpEnIJatu2JSgF2BC_LQDw4Y/s320/IMG_20230910_153542.jpg" width="320" /></a></div><p></p><p>For this model, other than beatiful clean dial, a good condition to consider is sharp edge, correct crown(not only decagonal crown, the omega logo should also have same shape as one on the dial)</p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKeazP6jK8bmPRUXMdQgKL44ZeQWJWBGVlWNGGGl41FBgoZw3G6wSLWuGcG2-oTLCBPFxQ-zC6sYeIFjK4p86P-SdjmM-Id2jacT6c33Avzmq5WuV4xo8OEfvb_s_bbO3tg4t7fZYqAsJ2RJRsxuvcDx3qo4jkdSr3NGsSxQev_5-GZXoyF0zGiKUVP9M/s3000/IMG_20230910_153639.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="3000" data-original-width="3000" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKeazP6jK8bmPRUXMdQgKL44ZeQWJWBGVlWNGGGl41FBgoZw3G6wSLWuGcG2-oTLCBPFxQ-zC6sYeIFjK4p86P-SdjmM-Id2jacT6c33Avzmq5WuV4xo8OEfvb_s_bbO3tg4t7fZYqAsJ2RJRsxuvcDx3qo4jkdSr3NGsSxQev_5-GZXoyF0zGiKUVP9M/s320/IMG_20230910_153639.jpg" width="320" /></a></div><p></p><p>the medal on back case</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPcIxNiAQjd6hKimg57s-5IO7ngYlpQToSy26Hr8gMDggFqNwN_w-_fAfJXA-bJf2sFG8MOX-oFHuo8KU_EBJavrEe9Yfsover6OIgKlH2xuYhiyVpNN8Y5NQyLCYQpAWz3K6NaFJKVYkQ2wPfRm2-V-FgPqrCNoSdoayMdWTuWCwF9VuxLxtpNdaWAY/s3000/IMG_20230910_153652.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="3000" data-original-width="3000" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPcIxNiAQjd6hKimg57s-5IO7ngYlpQToSy26Hr8gMDggFqNwN_w-_fAfJXA-bJf2sFG8MOX-oFHuo8KU_EBJavrEe9Yfsover6OIgKlH2xuYhiyVpNN8Y5NQyLCYQpAWz3K6NaFJKVYkQ2wPfRm2-V-FgPqrCNoSdoayMdWTuWCwF9VuxLxtpNdaWAY/s320/IMG_20230910_153652.jpg" width="320" /></a></div><br /><p></p><p>I guess mine is looking good</p>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-13563908878853305372023-09-10T14:04:00.007+07:002023-09-10T16:28:29.362+07:00A Watch collector<p></p><br /> During covid time, work from home give me a new hobby, watch collecting😎. Just 1 year+ I have at maximum 11 watches in my collection. From 3861 speedy(most expensive one) to AliExpress homage 60 USD watch.<p></p><p>Currently, I sell some that I don't like. Trying to build a collection that can keep value overtime.</p><p>How can I post a picture 🥲?</p><p>update: at last i found the way. The first and the latest omega.</p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMG9SKoMgKh9I2qHxPxF74nnduwbINNKKPwagy4b2mwW2M3dVp1zH4ZYucyyw5386QNHkkjV_IFUkNdt1XqPbM7yeItR2TOtQhosmZrpUv8fuMrLrClx-CM8q8CVGlAcnNxHaQOMwswOtWdB64k7K7TDAxg73Gu09nYUNc0cJfTeIR8wya0gIR1D7Buxk/s3000/IMG_20230908_232947.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="3000" data-original-width="3000" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMG9SKoMgKh9I2qHxPxF74nnduwbINNKKPwagy4b2mwW2M3dVp1zH4ZYucyyw5386QNHkkjV_IFUkNdt1XqPbM7yeItR2TOtQhosmZrpUv8fuMrLrClx-CM8q8CVGlAcnNxHaQOMwswOtWdB64k7K7TDAxg73Gu09nYUNc0cJfTeIR8wya0gIR1D7Buxk/s320/IMG_20230908_232947.jpg" width="320" /></a></div><p></p>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-31500185168333902452023-09-10T13:47:00.001+07:002023-09-10T13:49:12.136+07:00Long time no see :)<p> it's 2023, more than 10 years i left this blog. Many thing changed include me :P. I'm still play around *nix, programing language may change. last i will try to make this blog live again</p>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-83636284424440587432012-06-17T22:17:00.000+07:002012-06-17T22:17:37.651+07:00php mail function is very slow + wordpress didn't send mailI host my another site on my own server [ubuntu+apache+wordpress] and notice that notification mail function on my site is not work. After install sendmail, php mail function is working fine but very slow. If you also have this problem, below is how i fix it.
first make sure your /etc/hosts file first line look like this
<br />
<pre class="code">127.0.0.1 localhost.localdomain localhost yourhostname</pre>
hostname can found on /etc/hostname.
Now php mail function should work correctly. But wordpress still deny to send mail out. This have to fix with little hack[ i don't have other better way yet ].<br />
<br />
1. edit file "wp-includes/class-phpmailer.php".<br />
2. Looking for the line 'public $From = 'root@localhost';'.<br />
3. Change root@localhost to something else like name@yourhost.com. I don't know why but this work for me. :)pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-14698543901147807282012-03-07T21:49:00.004+07:002012-03-07T21:57:54.744+07:00putting sqlite3 on nexus si just notice that there is no sqlite3 on samsung nexus s (official ICS ROM) and i need it in debugging my application database. so i download it from somewhere on internet can't remember. Anyway the one that come with android sdk linux version should be fine to put it on phone. and here is what i do.<br /><pre class="code">E:\android-sdk-windows-1.5_r2\platform-tools>adb shell<br />shell@android:/ $ su<br />su<br />shell@android:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system<br />mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system<br />shell@android:/ # dd if=/sdcard/sqlite3 of=/system/bin/sqlite3<br />dd if=/sdcard/sqlite3 of=/system/bin/sqlite3<br />47+1 records in<br />47+1 records out<br />24120 bytes transferred in 0.003 secs (8040000 bytes/sec)<br />shell@android:/ # chmod 4755 /system/bin/sqlite3<br />chmod 4755 /system/bin/sqlite3<br />shell@android:/ # mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system<br />mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system<br />shell@android:/ # sqlite3<br />sqlite3<br />SQLite version 3.7.4<br />Enter ".help" for instructions<br />sqlite></pre><br /><br />notice : to do this your nexus have to root first.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-40468063170212384622011-08-07T17:27:00.002+07:002011-08-07T17:35:52.951+07:00black screen on 11.04 upgradeJust have a time to upgrade my desktop to 11.04 after reboot i get black screen. ebbr.bugs from ubuntuforums said this bcoz nvidia driver was intstalled as a package not a drivers. so this two commands will help <br /><pre class="code">sudo apt-get install --reinstall linux-headers-'uname -r'<br />sudo apt-get install --reinstall linux-image-'uname -r'</pre><br />and it fix my problem :)pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-2621476738178512182010-04-20T01:19:00.003+07:002010-04-20T01:32:02.426+07:00internal mic on vaio w on karmici have vaio w for 3 five month. i install karmic on it use wubi everything work fine but yesterday i note that internal mic is not work. adding 'model=vaio' or model='sony' in "/etc/modprobe.d/alsa-base" are not work. in my case to make it work i have to add 'model=toshiba-s06' to that file like this<br /><pre class="code">options snd-hda-intel power_save=10 power_save_controller=N model=toshiba-s06</pre>then run alsamixer in terminal change input source to 'Int DMic'.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5DJqCdTRSluufMgP_KMzRY2gOcptfE_1NUAFPfS2wrg_Uq4ospeZsG1dR4dkUpviKcT41dE17OhmLG7x2U2fbN8qwoycYzCupW5PBtrNQ60_T_fhkHs8tdKeVNRYk84kyUOCSCZzU9lM/s1600/alsamixer.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5DJqCdTRSluufMgP_KMzRY2gOcptfE_1NUAFPfS2wrg_Uq4ospeZsG1dR4dkUpviKcT41dE17OhmLG7x2U2fbN8qwoycYzCupW5PBtrNQ60_T_fhkHs8tdKeVNRYk84kyUOCSCZzU9lM/s320/alsamixer.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5461918019970202098" /></a>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com2tag:blogger.com,1999:blog-6836539881617831685.post-48779188790720057142010-04-18T13:49:00.004+07:002010-04-18T18:13:43.287+07:00makeing HTK3.4 on karmicWhen do "make all" for htk3.4 on karmic, i get error "HGraf.c:73:77: X11/Xlib.h: No such file or director". this be solved by ...<br /><pre class="code">poj@ubuntu:~/Downloads$ sudo aptitude install libx11-dev<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />The following NEW packages will be installed:<br /> libpthread-stubs0{a} libpthread-stubs0-dev{a} libx11-dev libxau-dev{a} libxcb1-dev{a} libxdmcp-dev{a} x11proto-core-dev{a} x11proto-input-dev{a} <br /> x11proto-kb-dev{a} xtrans-dev{a} <br />0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 2,242kB of archives. After unpacking 6,124kB will be used.<br />.<br />.<br />. <br />Initializing package states... Done<br />Writing extended state information... Done<br /><br />poj@ubuntu:~/Downloads$ </pre><br /> now try again.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com3tag:blogger.com,1999:blog-6836539881617831685.post-71015945657343315552010-01-21T10:25:00.000+07:002010-01-21T10:26:23.425+07:00a2billing on Karmic KoalaDuring install a2billing on Karmic Koala by follow this wiki. In Step9 I get this error. <br /><pre class="code">root@freeradius:/usr/local/src/a2billing/CallBack# easy_install callback-daemon-py/dist/callback_daemon-1.0.prod_r1527-py2.5.egg<br />Processing callback_daemon-1.0.prod_r1527-py2.5.egg<br />Copying callback_daemon-1.0.prod_r1527-py2.5.egg to /usr/local/lib/python2.6/dist-packages<br />Adding callback-daemon 1.0.prod-r1527 to easy-install.pth file<br />Installing a2b_callback_daemon script to /usr/local/bin<br /><br />Installed /usr/local/lib/python2.6/dist-packages/callback_daemon-1.0.prod_r1527-py2.5.egg<br />Processing dependencies for callback-daemon==1.0.prod-r1527<br />Searching for callback-daemon==1.0.prod-r1527<br />Reading http://pypi.python.org/simple/callback-daemon/<br />Couldn't find index page for 'callback-daemon' (maybe misspelled?)<br />Scanning index of all packages (this may take a while)<br />Reading http://pypi.python.org/simple/<br />No local packages or download links found for callback-daemon==1.0.prod-r1527<br />error: Could not find suitable distribution for Requirement.parse('callback-daemon==1.0.prod-r1527')<br />root@freeradius:/usr/local/src/a2billing/CallBack# </pre><br />because installed python version is 2.6 but a2billing1.4.4.1 require version 2.5[I guess hoho]. so try to fix this by install python2.5<br /><pre class="code">root@freeradius:/usr/local/src/a2billing/CallBack# aptitude install python2.5<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />The following NEW packages will be installed:<br /> libdb4.6{a} python2.5 python2.5-minimal{a} <br />0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 4,825kB of archives. After unpacking 16.6MB will be used.<br />Do you want to continue? [Y/n/?] y<br />...<br />Reading extended state information <br />Initializing package states... Done<br />Writing extended state information... Done<br /><br />root@freeradius:/usr/local/src/a2billing/CallBack# </pre><br />then try again.<br /><pre class="code">root@freeradius:/usr/local/src/a2billing/CallBack# update-alternatives --install /usr/bin/python python /usr/bin/python2.5 1<br />update-alternatives: using /usr/bin/python2.5 to provide /usr/bin/python (python) in auto mode.<br />root@freeradius:/usr/local/src/a2billing/CallBack# easy_install callback-daemon-py/dist/callback_daemon-1.0.prod_r1527-py2.5.egg<br />Processing callback_daemon-1.0.prod_r1527-py2.5.egg<br />Copying callback_daemon-1.0.prod_r1527-py2.5.egg to /usr/lib/python2.5/site-packages<br />Adding callback-daemon 1.0.prod-r1527 to easy-install.pth file<br />Installing a2b_callback_daemon script to /usr/bin<br /><br />Installed /usr/lib/python2.5/site-packages/callback_daemon-1.0.prod_r1527-py2.5.egg<br />Processing dependencies for callback-daemon==1.0.prod-r1527<br />Finished processing dependencies for callback-daemon==1.0.prod-r1527<br />root@freeradius:/usr/local/src/a2billing/CallBack# </pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-20458592274157905462009-12-22T22:43:00.006+07:002009-12-23T00:14:58.175+07:00Arduino on Karmic Koala<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-GzbRtdEKb9Kcq4EzbRk4O520ZetMesZEJ73Awb2k7d1GqIcxWkyJAs_FvnlvSLzyBznUepBmVEDh7SMbQhL9KMjzUG6beOsfSRTKmkwoq6KIAB_Awv93OuSMPJo113JFdom0ThkvO64/s1600-h/arduino-ide.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 158px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-GzbRtdEKb9Kcq4EzbRk4O520ZetMesZEJ73Awb2k7d1GqIcxWkyJAs_FvnlvSLzyBznUepBmVEDh7SMbQhL9KMjzUG6beOsfSRTKmkwoq6KIAB_Awv93OuSMPJo113JFdom0ThkvO64/s200/arduino-ide.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5418096948273710594" /></a><br />To use arduino on karmic koala, first we need to install required package e.g. gcc-avr and jre[here i use jdk instead]<br /><pre class="code">pnix@x300:~$ sudo aptitude install gcc-avr sun-java6-jdk<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />The following NEW packages will be installed:<br /> binutils-avr{a} gcc-avr gsfonts-x11{a} java-common{a} odbcinst1debian1{a} sun-java6-bin{a} sun-java6-jdk <br /> sun-java6-jre{a} unixodbc{a} <br />0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.<br />... <br />Initializing package states... Done<br />Writing extended state information... Done<br /><br />pnix@x300:~$ </pre><br />then get latest version of arduino ide, extract and run.<br /><pre class="code">pnix@x300:~/Downloads$ wget http://arduino.googlecode.com/files/arduino-0017.tgz<br />--2009-12-22 23:05:34-- http://arduino.googlecode.com/files/arduino-0017.tgz<br />Resolving arduino.googlecode.com... 209.85.231.82<br />Connecting to arduino.googlecode.com|209.85.231.82|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 4141675 (3.9M) [application/x-gzip]<br />Saving to: `arduino-0017.tgz'<br /><br />100%[=========================================================================>] 4,141,675 10.9K/s in 8m 36s <br /><br />2009-12-22 23:14:12 (7.83 KB/s) - `arduino-0017.tgz' saved [4141675/4141675]<br /><br />pnix@x300:~/Downloads$ mkdir ~/bin<br />pnix@x300:~/Downloads$ tar xzf arduino-0017.tgz -C ~/bin<br />pnix@x300:~/Downloads$ cd /home/pnix/bin/arduino-0017/arduino<br />bash: cd: /home/pnix/bin/arduino-0017/arduino: Not a directory<br />pnix@x300:~/Downloads$ cd /home/pnix/bin/arduino-0017/<br />pnix@x300:~/bin/arduino-0017$ ./arduino <br />Experimental: JNI_OnLoad called.<br />Stable Library<br />=========================================<br />Native lib Version = RXTX-2.1-7<br />Java lib Version = RXTX-2.1-7</pre><br /><br /><span style="font-style:italic;">Update:</span><br />now the ide should start running fine. but after first compile i've got many error about can't find many avr header file so another package we need [and i forgot].<br /><pre class="code">pnix@x300:~/bin/arduino-0017$ sudo aptitude search avr-libc<br />p avr-libc - Standard C library for Atmel AVR development <br />pnix@x300:~/bin/arduino-0017$ sudo aptitude install avr-libc<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />The following NEW packages will be installed:<br /> avr-libc <br />0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />...<br />Writing extended state information... Done<br /><br />pnix@x300:~/bin/arduino-0017$ </pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-54285390399862577222009-12-11T13:17:00.002+07:002009-12-11T13:32:56.594+07:00Fixing libstdc++5 Problem in Ubuntu 9.10Trying to run X-lite on Karmic Koala[ubuntu 9.10] give me 'error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory' as you see below.<br /><pre class="code">pnix@trinity:~/Downloads$ wget http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz<br />--2009-12-11 02:08:02-- http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz<br />Resolving counterpath.s3.amazonaws.com... 72.21.202.96<br />Connecting to counterpath.s3.amazonaws.com|72.21.202.96|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 2094582 (2.0M) [application/x-gzip]<br />Saving to: `X-Lite_Install.tar.gz'<br /><br />100%[======================================>] 2,094,582 90.1K/s in 25s <br /><br />2009-12-11 02:08:32 (83.2 KB/s) - `X-Lite_Install.tar.gz' saved [2094582/2094582]<br /><br />pnix@trinity:~/Downloads$ tar xzf X-Lite_Install.tar.gz <br />pnix@trinity:~/Downloads$ ls<br />X-Lite_Install.tar.gz xten-xlite<br />pnix@trinity:~/Downloads$ cd xten-xlite/<br />pnix@trinity:~/Downloads/xten-xlite$ ls<br />README xtensoftphone<br />pnix@trinity:~/Downloads/xten-xlite$ ./xtensoftphone <br />./xtensoftphone: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory<br />pnix@trinity:~/Downloads/xten-xlite$ </pre><br />Because 9.10 use libstdc++6 instead, To fix this download and install libstdc++5 before running xlite<br /><pre class="code">pnix@trinity:~/Downloads$ wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb<br />--2009-12-11 03:22:09-- http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb<br />Resolving mirrors.kernel.org... 130.239.17.6<br />Connecting to mirrors.kernel.org|130.239.17.6|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 296434 (289K) [text/plain]<br />Saving to: `libstdc++5_3.3.6-17ubuntu1_i386.deb'<br /><br />100%[======================================>] 296,434 328K/s in 0.9s <br /><br />2009-12-11 03:22:10 (328 KB/s) - `libstdc++5_3.3.6-17ubuntu1_i386.deb' saved [296434/296434]<br /><br />pnix@trinity:~/Downloads$ sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb <br />[sudo] password for pnix: <br />Selecting previously deselected package libstdc++5.<br />(Reading database ... 141309 files and directories currently installed.)<br />Unpacking libstdc++5 (from libstdc++5_3.3.6-17ubuntu1_i386.deb) ...<br />Setting up libstdc++5 (1:3.3.6-17ubuntu1) ...<br /><br />Processing triggers for libc-bin ...<br />ldconfig deferred processing now taking place<br />pnix@trinity:~/Downloads$ ./xtensoftphone <br />bash: ./xtensoftphone: No such file or directory<br />pnix@trinity:~/Downloads$ ls<br />libstdc++5_3.3.6-17ubuntu1_i386.deb X-Lite_Install.tar.gz xten-xlite<br />pnix@trinity:~/Downloads$ xten-xlite/xtensoftphone <br />I/O warning : failed to load external entity "/home/pnix/.Xscrc"</pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-80883948386493897002008-11-12T22:32:00.003+07:002008-11-12T23:21:14.304+07:00monitor your filesystem events with inotify-toolsI looking for the way to mirror files on my server to others when something're updated and found that <a href="http://en.wikipedia.org/wiki/Inotify">inotify</a> is a good idea in this case. <br />Thanks for <a href="http://inotify-tools.sourceforge.net/">inotify-tools</a> project, c library and set of command line programs for linux provide interface to inotify, that let me avoid from c code.<br /><br />On ibex, i get it by..<br /><pre class="code">pnix@pnix-a7n:~$ sudo aptitude install inotify-tools<br />[sudo] password for pnix: <br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />The following NEW packages will be installed:<br /> inotify-tools libinotifytools0{a} <br />0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 39.0kB of archives. After unpacking 201kB will be used.<br />Do you want to continue? [Y/n/?] y<br />...<br />Writing extended state information... Done<br /><br />pnix@pnix-a7n:~$ </pre><br />Below is example shell script i use to moniter and update file to remote host<with rsync>.<br /><pre class="code">#!/bin/bash<br />while inotifywait -rq -e close_write /folder_to_moniter; do<br /> rsync -av /folder_to_moniter -e "ssh -l pnix" pnix@remotehost:/home/pnix/tmp<br />done</pre><br />for Java api look <a href="http://code.google.com/p/inotify-java/">here</a>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com3tag:blogger.com,1999:blog-6836539881617831685.post-2315847676625198682008-11-01T23:57:00.006+07:002008-11-02T04:23:59.524+07:00Many sound problems on Intrepid ibexI upgrade two ibex last night and found few sound problems below<br /><br />First, on video file(mpg,avi ..), when right click and choose >open with >mplayer. will bring up error " [AO_ALSA] Unable to find simple control 'PCM',0 ". <br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuaXctB5zitwEzBCyiHX9ww7towi5RkU3OObQvN6gT3Q8vQhn8c7Wd72Mok_hG94dP6VmsQhKLr3Zy2aDNcWgb5C1SXqZi9jyEuoLhaQ4-XKwc2jrkS5EMDYjlt81inezhrsWclBbfg8Q/s1600-h/AO_ALSA-Error!.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 90px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuaXctB5zitwEzBCyiHX9ww7towi5RkU3OObQvN6gT3Q8vQhn8c7Wd72Mok_hG94dP6VmsQhKLr3Zy2aDNcWgb5C1SXqZi9jyEuoLhaQ4-XKwc2jrkS5EMDYjlt81inezhrsWclBbfg8Q/s320/AO_ALSA-Error!.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5263744550867333042" /></a>I'm not sure what it is, maybe the config just is not right but I fix this by right click on movie window-> preference then on audio tab, select 'Enable Software Mixer'. [or you can do this by change 'softvol = "no"' to 'softvol = "yes"' in $HOME/.mplayer/gui.conf]<br /><br />Another sound issue is flash player on web[like youtube] not play sound. /var/log/message said<br /><pre class="code">pnix@pnix-a7n:_NHDT392$ tail -f /var/log/messages<br />...<br />Nov 2 00:33:14 pnix-a7n -- MARK --<br />Nov 2 00:40:51 pnix-a7n pulseaudio[23941]: sink-input.c: Failed to create sink input: too many inputs per sink.<br />Nov 2 00:40:51 pnix-a7n last message repeated 31 times<br />Nov 2 00:40:51 pnix-a7n pulseaudio[23941]: protocol-native.c: Warning! Too many connections (64), dropping incoming connection.</pre> and after run flash, no sound from other application too. I saw bug report for this issue on lunchpad <a href="https://bugs.launve chpad.net/ubuntu/+source/pulseaudio/+bug/226342">here</a> but no solution for me. I have to kill and restart pulseaudio like this to get sound back.<br /><pre class="code">pnix@pnix-a7n:~$ pulseaudio -k<br />W: ltdl-bind-now.c: Failed to find original dlopen loader.<br />pnix@pnix-a7n:~$ ps aux|grep pulseaudio<br />pnix 2510 0.0 0.0 3236 796 pts/0 S+ 04:14 0:00 grep pulseaudio<br />pnix@pnix-a7n:~$ pulseaudio -D<br />W: ltdl-bind-now.c: Failed to find original dlopen loader.<br />pnix@pnix-a7n:~$ ps aux|grep pulseaudio<br />pnix 2513 3.0 0.3 28952 3952 ? Ssl 04:14 0:00 pulseaudio -D<br />pnix 2516 0.0 0.2 7528 2516 ? S 04:14 0:00 /usr/lib/pulseaudio/pulse/gconf-helper<br />pnix 2518 0.0 0.0 3236 792 pts/0 S+ 04:14 0:00 grep pulseaudio<br />pnix@pnix-a7n:~$ </pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com2tag:blogger.com,1999:blog-6836539881617831685.post-47294310765831065652008-09-24T23:09:00.003+07:002008-09-24T23:28:28.101+07:00Fixing shutdown problem in hardyFor a long time my ubuntu box can't shutdown properly(not sure when this start to happen may be since upgrade to gusty). Shutdown progress bar will stop running, harddrive already stop spinning and hang. I guess it because my kernel option "acpi=off nolapic irqpoll" in /boot/grub/menu.lst without these option shutdown script work perfect. <a href="http://lj4newbies.blogspot.com/2007/10/pnix-report-on-gutsy.html">So, why i need that??</a><br />I just found the way to fix this from ubuntuforums. This is not new, many guy has this problem and it fixed. To solve this problem [for me]<br /><br />1.add "apm=power_off" to kernel option.<br />2.add "apm power_off=1" to /etc/modules<br /><br />Reboot and try shutdown again this time it work perfect.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-55040528517321171792008-09-24T22:22:00.003+07:002008-09-24T22:41:49.205+07:00Bootchart on Ubuntu hardyToday I'm searching for a way to make my box boot up faster and found this tool. Bootchart can use for analyze and visualization boot process. <br />To install bootchart.<br /><pre class="code">pnix@pnix-a7n:~$ sudo aptitude install bootchart<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />Building tag database... Done <br />The following NEW packages will be automatically installed:<br /> librsvg2-bin <br />The following NEW packages will be installed:<br /> bootchart librsvg2-bin <br />0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 121kB of archives. After unpacking 324kB will be used.<br />Do you want to continue? [Y/n/?] y<br />Writing extended state information... Done<br />Get:1 http://mirror1.ku.ac.th hardy/main librsvg2-bin 2.22.2-2 [21.3kB]<br />Get:2 http://mirror1.ku.ac.th hardy/main bootchart 0.9-0ubuntu7 [99.8kB]<br />Fetched 121kB in 1s (90.6kB/s) <br />...<br />Building tag database... Done <br />pnix@pnix-a7n:~$ </pre><br />then reboot to see the result[in /var/log/bootchart].<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW89N8ZVRXf5DO9Pl78CUl69bylU4iqQ7EGgd8YoZFcyr0CyubyW1OfoOdukJnOVhBV8kgHAIvD_BtyoyxVuZtIpah6kjszQSqXJCqJnlLi3ttS2qvcGTpSSchCvkCWH5yXuvqGLC4NnA/s1600-h/hardy-20080924-1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW89N8ZVRXf5DO9Pl78CUl69bylU4iqQ7EGgd8YoZFcyr0CyubyW1OfoOdukJnOVhBV8kgHAIvD_BtyoyxVuZtIpah6kjszQSqXJCqJnlLi3ttS2qvcGTpSSchCvkCWH5yXuvqGLC4NnA/s320/hardy-20080924-1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5249612323789790466" /></a><br />Mine take about 34 seconds to boot. Not too bad for six years old box(Athlon XP 1700+, A7N8X-E deluxe, 1G Memory, SATA), but I want faster.<br />From graph I found few process i install long time ago, and some default configure to autoboot. e.g. avahi-daemon, cvsd, laptop-mode[powernowd], smokeping, winbind.<br />So, take it out with rcconf, reboot again and see the result.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVsI9lpnDvZWPMjXklotA3ZzycElpmmeU-yhbhOR7Ct0Zn0JAIu5FWLqISMrtHTgTXV3jDNJS4GZx4WChhGwAt5aWeosR4sOIWHwEYPvRAKz62Wt9LzC2ZfhqynRieMC8b4BwGtD6NdF0/s1600-h/hardy-20080924-2.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVsI9lpnDvZWPMjXklotA3ZzycElpmmeU-yhbhOR7Ct0Zn0JAIu5FWLqISMrtHTgTXV3jDNJS4GZx4WChhGwAt5aWeosR4sOIWHwEYPvRAKz62Wt9LzC2ZfhqynRieMC8b4BwGtD6NdF0/s320/hardy-20080924-2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5249612807716694226" /></a><br />30 seconds wow I safe 4 sec.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-77082911957556278062008-06-19T16:25:00.001+07:002008-06-19T16:28:29.108+07:00Setup MySQL with OfbizDownload ofbiz weekily build and extract it somewhere you want. From your ofbiz directory, edit file entityengine.xml in framework/entity/config<br />add new datasources below localmysql datasource part<br /><pre class="code"> <datasource name="custommysql"<br /> helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"<br /> field-type-name="mysql"<br /> check-on-start="true"<br /> add-missing-on-start="true"<br /> check-pks-on-start="false"<br /> use-foreign-keys="true"<br /> join-style="ansi-no-parenthesis"<br /> alias-view-columns="false"<br /> drop-fk-use-foreign-key-keyword="true"<br /> table-type="InnoDB"<br /> character-set="latin1"<br /> collate="latin1_general_cs"><br /> <read-data reader-name="seed"/><br /> <read-data reader-name="seed-initial"/><br /> <read-data reader-name="demo"/><br /> <read-data reader-name="ext"/><br /> <inline-jdbc<br /> jdbc-driver="com.mysql.jdbc.Driver"<br /> jdbc-uri="jdbc:mysql://localhost/ofbiz"<br /> jdbc-username="ofbizuser"<br /> jdbc-password="mypass"<br /> isolation-level="ReadCommitted"<br /> pool-minsize="2"<br /> pool-maxsize="250"/><br /> <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> --><br /> </datasource><br /> <datasource name="custommysqlolap"<br /> helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"<br /> field-type-name="mysql"<br /> check-on-start="true"<br /> add-missing-on-start="true"<br /> check-pks-on-start="false" <br /> use-foreign-keys="true" <br /> join-style="ansi-no-parenthesis"<br /> alias-view-columns="false"<br /> drop-fk-use-foreign-key-keyword="true"<br /> table-type="InnoDB"<br /> character-set="latin1" <br /> collate="latin1_general_cs"><br /> <read-data reader-name="seed"/><br /> <read-data reader-name="seed-initial"/><br /> <read-data reader-name="demo"/><br /> <read-data reader-name="ext"/> <br /> <inline-jdbc <br /> jdbc-driver="com.mysql.jdbc.Driver"<br /> jdbc-uri="jdbc:mysql://localhost/ofbizolap?autoReconnect=true"<br /> jdbc-username="ofbizuser"<br /> jdbc-password="mypass" <br /> isolation-level="ReadCommitted"<br /> pool-minsize="2"<br /> pool-maxsize="250"/> <br /> <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/DerbyDataSource" isolation-level="ReadCommitted"/> --><br /> </datasource></pre><br />change the "default" delegator make it look like this<br /><pre class="code"><delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clea$<br /> <group-map group-name="org.ofbiz" datasource-name="custommysql"/><br /> <group-map group-name="org.ofbiz.olap" datasource-name="custommysqlolap"/><br /></delegator></pre><br /><br />put mysql driver under framework/entity/lib/jdbc<br /><pre class="code">[admin@localhost ofbiz]$ ls framework/entity/lib/jdbc<br />derby-10.4.1.3.jar mysql-connector-java-5.1.6-bin.jar<br />[admin@localhost ofbiz]$ </pre><br /><br />prepare database <create database ,grant user><br /><pre class="code">mysql> create database ofbiz;<br />Query OK, 1 row affected (0.05 sec)<br /><br />mysql> create database ofbizolap;<br />Query OK, 1 row affected (0.05 sec)<br /><br />mysql> grant all on *.* to 'ofbizuser'@'localhost' identified by 'mypass';<br />Query OK, 0 rows affected (0.03 sec)<br /><br />mysql></pre><br /><br />now we're ready to run ant to load database into mysql. Let's go.<br /><pre class="code">[admin@localhost ofbiz]$ ./ant run-install<br />...<br />[java] 2008-06-19 10:59:06,245 (main) [ ContainerLoader.java:114:INFO ] Shutting down containers<br /><br />BUILD SUCCESSFUL<br />Total time: 5 minutes 25 seconds<br />[admin@localhost ofbiz]$ </pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com8tag:blogger.com,1999:blog-6836539881617831685.post-52636162022344251732008-06-18T21:10:00.006+07:002008-06-19T16:30:16.586+07:00Cannot use SUN rmic, as it is not available.I download ofbiz weekly build[ofbiz_20080602.zip] <a href="http://sourceforge.net/project/showfiles.php?group_id=145855&package_id=188559">from sourceforge</a> and try to build it on eclipse. How to config on eclipse? How to <a href="http://lj4newbies.blogspot.com/2008/06/setup-mysql-with-ofbiz.html">use ofbiz with external database</a>? you can find out from google or may be I'll post here later.:P<br />This post is about error when I run ant build target 'run-install' to load configured data. Below error'll show on eclipse console. <br /><pre class="synt">...<br />stubs:<br /> [rmic] RMI Compiling 1 class to D:\eclipse_workspace\ofbiz2\framework\service\build\classes<br /><br />BUILD FAILED<br />D:\eclipse_workspace\ofbiz2\build.xml:125: The following error occurred while executing this line:<br />D:\eclipse_workspace\ofbiz2\framework\build.xml:142: The following error occurred while executing this line:<br />D:\eclipse_workspace\ofbiz2\framework\service\build.xml:101: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH.<br /><br />Total time: 8 seconds</pre> <br />I solve this by browse to Window->Preferences->Ant->Runtime then highlight on 'Global Entries', click 'Add Externals JARs' then select tools.jar from your $JAVA_HOME/lib directory. Try run ant build again then it sould be fine.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-84812440648862924872008-06-05T15:32:00.014+07:002008-06-07T03:08:28.487+07:00Compile subversion on Fedora core 6I just move to new company. My first job here is setup a svn on FC6 box. This post is about how i built it.<br />First download, compile and install apache[must be 2.0 version to have same apr version as subversion-deps-1.4.6.tar.bz2]<br /><pre class="code">[root@localhost ~]# wget http://mirrors.issp.co.th/apache/httpd/httpd-2.0.63.tar.bz2<br />...<br />[root@localhost ~]# tar xjf httpd-2.0.63.tar.bz2<br />[root@localhost ~]# cd httpd-2.0.63<br />[root@localhost httpd-2.0.63]# ./buildconf<br />[root@localhost httpd-2.0.63]# ./configure --enable-dav --enable-so --enable-maintainer-mode --prefix=/usr/local/apache20<br />...<br />[root@localhost httpd-2.0.63]# make && make install<br />...<br />[root@localhost httpd-2.0.63]# cd ..<br />[root@localhost ~]# </pre><br />then download subversion source code and the subversion dependencies source code, extract both then go to compile and install apr, apr-util, neon and subversion itself.<br /><pre class="code">[root@localhost ~]# wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2<br />...<br />[root@localhost ~]# wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.bz2<br />...<br />[root@localhost ~]# tar xjf subversion-1.4.6.tar.bz2<br />[root@localhost ~]# tar xjf subversion-deps-1.4.6.tar.bz2<br />[root@localhost ~]# cd subversion-1.4.6/apr<br />[root@localhost apr]# ./configure --prefix=/usr/local/apr<br />...<br />[root@localhost apr]# make && make install<br />...<br />[root@localhost apr]# cd ../apr-util<br />[root@localhost apr-util]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/<br />...<br />[root@localhost apr-util]# make && make install<br />...<br />[root@localhost apr-util]# cd ../neon<br />[root@localhost neon]# ./configure --prefix=/usr/local/neon<br />...<br />[root@localhost neon]# make && make install<br />...<br />[root@localhost neon]# cd ..<br />[root@localhost subversion-1.4.6]# ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache20/bin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-neon=/usr/local/neon/ --with-ssl<br />...<br />[root@localhost subversion-1.4.6]# make && make install<br />...<br />[root@localhost subversion-1.4.6]# </pre><br />now subversion is already installed, add apache user<br /><pre class="code">[root@localhost subversion-1.4.6]# groupadd apache<br />[root@localhost subversion-1.4.6]# useradd -g apache -d /usr/local/apache20<br />[root@localhost subversion-1.4.6]# chown -Rv apache.apache /usr/local/apache20</pre><br />edit /usr/local/apache2/conf/httpd.conf change..<br /><pre class="synt">User nobody<br />Group #-1</pre><br />to<br /><pre class="synt">User apache<br />Group apache</pre><br />and add this code to end of file.<br /><pre class="synt"><Location /subversion><br /> DAV svn<br /> SVNPath /usr/local/subversion/repository/<br /> AuthType Basic<br /> AuthName "Subversion repository"<br /> AuthUserFile /usr/local/subversion/repository/conf/svn-auth-file<br /> Require valid-user<br /></Location></pre><br />create password with this command<br /><pre class="synt">/usr/local/apache20/bin/htpasswd -cmd /usr/local/subversion/repository/conf/svn-auth-file {user-name}</pre><br />create a repository<br /><pre class="code">[root@localhost ~]# mkdir -v /usr/local/subversion/repository<br />[root@localhost ~]# svnadmin create --fs-type fsfs /usr/local/subversion/repository<br />[root@localhost ~]# </pre><br />Last to test I will try import some file to repos.<br /><pre class="code">[root@localhost src]# touch source1<br />[root@localhost src]# touch source2<br />[root@localhost src]# ls<br />source1 source2<br />[root@localhost src]# svn -m "initial import to svn" import . http://127.0.0.1/subversion/<br />Authentication realm: <http://127.0.0.1:80> Subversion repository<br />Password for 'root': <br />Authentication realm: <http://127.0.0.1:80> Subversion repository<br />Username: swd<br />Password for 'swd': <br />svn: Can't create directory '/usr/local/subversion/repository/db/transactions/0-1.txn': Permission denied</pre><br />uhh.. you need to make apache user can access all the files in the repository.<br /><pre class="code">[root@localhost src]# chown -R apache.apache /usr/local/subversion/repository<br />[root@localhost src]# chmod g+s /usr/local/subversion/repository/db<br />[root@localhost src]# svn -m "initial import to svn" import . http://127.0.0.1/subversion/<br />Authentication realm: <http://127.0.0.1:80> Subversion repository<br />Password for 'root': <br />Authentication realm: <http://127.0.0.1:80> Subversion repository<br />Username: swd<br />Password for 'swd': <br />Adding source1<br />Adding source2<br /><br />Committed revision 1.<br />[root@localhost src]# </pre><br />That's all. You can browse repos. via url 'http://127.0.0.1/subversion/'.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-43190313782614444472008-05-15T15:34:00.002+07:002008-05-15T17:07:15.799+07:00Try Asterisk on Ubuntu HardyI try install asterisk server on ubuntu hardy from repos. The 'asterisk-sounds-extra' is for testing sound[locate in /usr/share/asterisk/sounds/].<br /><pre class="code">pnix@v400ast:~$ sudo aptitude install asterisk asterisk-sounds-extra<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />Building tag database... Done <br />The following NEW packages will be automatically installed:<br /> asterisk-config asterisk-sounds-main build-essential debhelper dpkg-dev g++ g++-4.2 <br /> gettext html2text intltool-debian libc-client2007 libc6-dev libcompress-raw-zlib-perl <br /> libcompress-zlib-perl libct3 libdigest-hmac-perl libdigest-sha1-perl libfile-remove-perl <br /> libgsm1 libiksemel3 libio-compress-base-perl libio-compress-zlib-perl libio-stringy-perl <br /> libmail-box-perl libmail-sendmail-perl libmailtools-perl libmime-types-perl <br /> libobject-realize-later-perl libpq5 libpri1.0 libradiusclient-ng2 libstdc++6-4.2-dev <br /> libtimedate-perl libtonezone1 libuser-identity-perl libvpb0 linux-libc-dev mlock <br /> module-assistant odbcinst1debian1 patch po-debconf unixodbc vpb-driver-source <br />The following NEW packages will be installed:<br /> asterisk asterisk-config asterisk-sounds-extra asterisk-sounds-main build-essential <br /> debhelper dpkg-dev g++ g++-4.2 gettext html2text intltool-debian libc-client2007 <br /> libc6-dev libcompress-raw-zlib-perl libcompress-zlib-perl libct3 libdigest-hmac-perl <br /> libdigest-sha1-perl libfile-remove-perl libgsm1 libiksemel3 libio-compress-base-perl <br /> libio-compress-zlib-perl libio-stringy-perl libmail-box-perl libmail-sendmail-perl <br /> libmailtools-perl libmime-types-perl libobject-realize-later-perl libpq5 libpri1.0 <br /> libradiusclient-ng2 libstdc++6-4.2-dev libtimedate-perl libtonezone1 <br /> libuser-identity-perl libvpb0 linux-libc-dev mlock module-assistant odbcinst1debian1 <br /> patch po-debconf unixodbc vpb-driver-source <br />0 packages upgraded, 46 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 23.5MB of archives. After unpacking 73.8MB will be used.<br />Do you want to continue? [Y/n/?] y<br />...<br />Building tag database... Done <br />pnix@v400ast:~$ </pre><br />After finish, try to connect to asterisk<br /><pre class="code">pnix@v400ast:~$ sudo asterisk -rvvv<br />Asterisk 1.4.17~dfsg-2ubuntu1, Copyright (C) 1999 - 2007 Digium, Inc. and others.<br />Created by Mark Spencer <markster@digium.com><br />Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.<br />This is free software, with components licensed under the GNU General Public<br />License version 2 and other licenses; you are welcome to redistribute it under<br />certain conditions. Type 'core show license' for details.<br />=========================================================================<br />This package has been modified for the Debian GNU/Linux distribution<br />Please report all bugs to http://bugs.debian.org/asterisk<br />=========================================================================<br /> == Parsing '/etc/asterisk/asterisk.conf': Found<br /> == Parsing '/etc/asterisk/extconfig.conf': Found<br />Connected to Asterisk 1.4.17~dfsg-2ubuntu1 currently running on v400ast (pid = 5041)<br />Verbosity is at least 3<br />v400ast*CLI> </pre><br />Well.. basic installation is very smooth. I try adding sip account and test dialplan to play 'welcome' sound and it working fine too. May be i will use this to be my production server instead of trixbox if I succeed on compiling rhino driver on ubuntu.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com5tag:blogger.com,1999:blog-6836539881617831685.post-52375100663298223272008-05-15T10:59:00.004+07:002008-05-15T11:26:49.976+07:00Fixing sendmail take a long time to startI notice that my database box[FC6+Oracle10.2] take along time to startup. Sendmail and sm-client very very slow to start[ about 5 minutes ]. There's something wrong in /etc/hosts file. 'newalises' command take long time to update and finish with error below.<br /><pre class="code">[root@ora10g ~]# newaliases<br />WARNING: local host name (ora10g) is not qualified; see cf/README: WHO AM I?<br />/etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total<br />[root@ora10g ~]# cat /etc/hosts<br /># Do not remove the following line, or various programs<br /># that require network functionality will fail.<br />127.0.0.1 localhost.localdomain localhost <br />192.168.1.55 ora10g<br />[root@ora10g ~]# </pre><br />To fix this, custom hostname[ora10g] need to append to localhost line in /etc/hosts.<br /><pre class="code">[root@ora10g ~]# cat /etc/hosts<br /># Do not remove the following line, or various programs<br /># that require network functionality will fail.<br />127.0.0.1 localhost.localdomain localhost ora10g<br />192.168.1.55 ora10g<br />[root@ora10g ~]# newaliases<br />/etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total<br />[root@ora10g ~]# <br /></pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com11tag:blogger.com,1999:blog-6836539881617831685.post-35159874325037758552008-05-09T11:09:00.005+07:002008-05-10T02:14:29.592+07:00Using Datapump on oracle 10g to export/import<pre class="synt">This will be update version of <a href="http://lj4newbies.blogspot.com/2008/04/exportimport-data-in-oracle-with-expimp.html">this post</a> if you are using oracle 10g or 11g.</pre><br />Last month I post about export/import data in oracle using exp,imp utility. Actually oracle has something newer and better performance if you're using 10g or 11g.<br /><br />Assume that we want to export one table from one oracle db and import it into another oracle db. So create the folder /home/oracle/dbbackup on two oracle db server to store <.dmp> file[that will be created when exporting and importing].<br /><br />Next, we need to tell oracle to know this folder, create directory on both db by run command below in sqlplus<br /><pre class="code">SQL> create directory <em>dmpdir</em> as '/home/oracle/dbbackup';<br /><br />Directory created.<br /><br />SQL> </pre><br />Now on source database export table with command below.<br /><pre class="code">[oracle@k8n ~]$ expdp <em>username/password</em> DIRECTORY=<em>dmpdir</em> DUMPFILE=<em>filename.dmp</em> TABLES=<em>tablename</em><br /><br />Export: Release 10.1.0.3.0 - Production on Friday, 09 May, 2008 10:54<br />...<br />[oracle@k8n ~]$ </pre><br />after finish you will have filename.dmp in /home/oracle/dbbackup, ftp it to the target box make sure you are using binary mode. <br />Then on target database import the table like this. <br /><pre class="code">[oracle@dbp4 ~]$ impdp <em>username/password</em> DIRECTORY=<em>dmpdir</em> DUMPFILE==<em>filename.dmp</em> TABLES=<em>tablename</em><br /><br />Import: Release 10.2.0.1.0 - Production on Friday, 09 May, 2008 11:02:27<br />...<br />[oracle@dbp4 ~]$ </pre><br />That's it. Note that up there exporting from 10.1.0.3.0 and importing into 10.2.0.1.0 is ok but down version import[e.g. expdp with higher version and impdp with lower version]is not, you will get error like this<br /><pre class="code">ORA-39001: invalid argument value<br />ORA-39000: bad dump file specification<br />ORA-31619: invalid dump file "/home/oracle/dbbackup/filename.dmp"</pre><br />To fix this error, expdp command must append with 'version=10.target.version'.<br /><br />more detail about expdp/impdp tool<br /><pre class="synt">expdp help=yes<br />impdp help=yes</pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1tag:blogger.com,1999:blog-6836539881617831685.post-17244411341680095862008-05-06T12:50:00.004+07:002008-05-06T13:27:27.619+07:00Single user mode in fedora coreAgain that electricity in area of Sukhumvit road, Bangkok down yesterday night. This time one database refuse to boot it freeze at "Starting system logger:". Look like there's no way to get a shell from any normal run level startup.<br /> <br />Not like ubuntu that has recovery mode in grub menu. This box is fedora core, I know there's a way to get in to single user mode by pass kernel parameter at grub boot menu [but can not remember how to at that time:(].<br /><br />After some googling I found the way. To get single user mode in FC, at grub menu press <strong>a</strong> [to append kernel parameter]. Now add <strong>s</strong> to tell fedora kernel that you want single user mode. After finish, enter to continue booting.<br /><br />Now you will get root shell and can figure out what wrong with your system then fix it. In my case now I just want Oracle to come up so i need atleast two service 'network' and 'oracle'. Try to bring it up by run these two command and pray.<br /><pre class="code">sh-3.00# service network start<br />sh-3.00# service oracle start</pre><br />Not too bad that this time network and oracle are come up successfully:). But why syslogd startup caused system freeze is still no idea:(.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-17175735107065186402008-04-29T01:45:00.006+07:002008-04-29T02:38:29.525+07:00Toggle btw compiz&metacity with fusion-icon in Ubuntu Hardy<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqPXElDeM7eEn_dazOIlczcSyWl7h5TPmwQzU2boEJsPXC3j3pSNFRikdOjwZcs8Dffs2e8wasMytaclktQAh3b7TTI2twMrC8OhTpcLHkrLn824J9ePNWiHxDbm0C4X5sAi0AOlG1qRc/s1600-h/fusion-icon.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqPXElDeM7eEn_dazOIlczcSyWl7h5TPmwQzU2boEJsPXC3j3pSNFRikdOjwZcs8Dffs2e8wasMytaclktQAh3b7TTI2twMrC8OhTpcLHkrLn824J9ePNWiHxDbm0C4X5sAi0AOlG1qRc/s320/fusion-icon.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5194377701413024498" /></a><br />Since gusty, compiz-fusion will start by default. I love eye candy but for resource shortage reason on my old box, sometime i need to switch to metacity. with alt-f2 and run 'metacity replace' is just work but not convenion. Thank for <a href="http://tombuntu.com/index.php/2008/03/25/toggle-compiz-with-fusion-icon-in-ubuntu-804/">Tom</a> that point me . Fusion-icon is use to switch between compiz and metacity window manager. For hardy, fusion-icon is in repos. installation is easy like <br /><pre class="code">pnix@pnix-a7n:~$ sudo aptitude install fusion-icon<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Reading extended state information <br />Initializing package states... Done<br />Building tag database... Done <br />The following NEW packages will be installed:<br /> fusion-icon <br />0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 29.8kB of archives. After unpacking 270kB will be used.<br />...<br />Building tag database... Done <br />pnix@pnix-a7n:~$ </pre><br /><span style="font-weight:bold;">Running</span>:<br />alt-F2 and type 'fusion-icon -n' or if you want this everytime logging in add 'fusion-icon -n' to 'Sessions preference' in System->Preferences->Sessions.pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com0tag:blogger.com,1999:blog-6836539881617831685.post-71983880703957398262008-04-28T19:02:00.002+07:002008-04-28T19:13:26.232+07:00sudo: timestamp too far in the futureI just finish build the new hardy box at my office. then I go to open the file '/etc/network/interfaces' to add internal ip address and forget something. When I try to open it again, I got this. <pre class="code">pnix@hardy-dev:~$ sudo nano /etc/network/interfaces<br />sudo: timestamp too far in the future: Apr 29 01:41:32 2008<br />pnix@hardy-dev:~$ date<br />Mon Apr 28 18:48:21 ICT 2008<br />pnix@hardy-dev:~$ </pre>I'm not sure why this happen may be some parts of the system using UTC, other parts using timezone-adjusted time. To fix this try code below to clear timestamp.<br /><pre class="code">pnix@hardy-dev:~$ sudo -k<br />pnix@hardy-dev:~$ sudo nano /etc/network/interfaces<br />[sudo] password for pnix:</pre>pnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.com1