tag:blogger.com,1999:blog-31643152697501880232024-02-21T11:38:53.757+07:00栄壮 A6plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-3164315269750188023.post-30941352440020087102020-02-04T21:49:00.000+07:002020-02-04T21:49:18.814+07:00install wifi and xpt2046 to raspi 1B+RTL8188FU<br />
XPT2046<br />
<br />
sudo rpi-update<br />
<br />
sudo wget <a href="http://downloads.fars-robotics.net/wifi-drivers/install-wifi" rel="nofollow noreferrer">http://downloads.fars-robotics.net/wifi-drivers/install-wifi</a> -O /usr/bin/install-wifi<br />
<br />
sudo chmod +x /usr/bin/install-wifi<br />
<br />
sudo install-wifi<br />
<br />
sudo reboot<br />
<br />
plgsekip@my-Vostro:~/Downloads$ wpa_passphrase HOME HomeSweetHome<br />
network={<br />
ssid="HOME"<br />
#psk="HomeSweetHome"<br />
psk=cc7724fc84fc63842fe458ac8e47ce2a59684327b698fc53758bc56a6eb90b53<br />
}<br />
<br />
copy this output to /etc/wpa_supplicant/wpa_supplicant.conf<br />
<br />
edit /etc/network/interfaces<br />
<div class="code">
auto wlan0 </div>
<div class="code">
iface wlan0 inet dhcp </div>
<div class="code">
wpa-driver wext </div>
<div class="code">
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf</div>
<div class="code">
<br /></div>
<div class="code">
sudo reboot</div>
<div class="code">
<br /></div>
<div class="code">
https://www.elecrow.com/wiki/index.php?title=3.5_Inch_480x320_TFT_Display_with_Touch_Screen_for_Raspberry_Pi</div>
<div class="code">
<br /></div>
<div class="code">
<b></b></div>
<pre><b>git clone <a class="external free" href="https://github.com/Elecrow-keen/Elecrow-LCD35.git" rel="nofollow">https://github.com/Elecrow-keen/Elecrow-LCD35.git</a></b></pre>
<pre><b> </b></pre>
<pre><b><b><pre>cd Elecrow-LCD35
sudo ./Elecrow-LCD35</pre>
</b> </b></pre>
plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-61060969853161351002019-09-29T05:40:00.002+07:002019-09-29T05:41:25.531+07:00Installing CVXOPT1. Install Microsoft Visual C++ Build Tools<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS5pbdOvxEsdE6CgspVW562Qi4iV3GTQuoXXWFTmh4d8Pg813uqew8dv2jEmkXVc9jc0vKlDvPRq7mdaTrDMwQ8-QhxQZiaqLcTghizwEPMQuuHk_RtzLgsQQHI1sRklTDJ8y7STUaL18/s1600/mvs_build_tool.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="728" data-original-width="1366" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS5pbdOvxEsdE6CgspVW562Qi4iV3GTQuoXXWFTmh4d8Pg813uqew8dv2jEmkXVc9jc0vKlDvPRq7mdaTrDMwQ8-QhxQZiaqLcTghizwEPMQuuHk_RtzLgsQQHI1sRklTDJ8y7STUaL18/s320/mvs_build_tool.png" width="320" /></a></div>
<br />
2. Install Intel Math Kernel Library<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFo1U6LUMoiUgQ4UlgIsIeTPuFamGUBgj97xQI9hQensuzehppyDJWEPeOkiDOayazPpS7WxpZcY3GXIclQcF3raox6ki-AuBSl3lagaLMfYt7_bC8pa4OhkpnZxPAJpbYtS6xPU3tGIk/s1600/intel_mkl.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="728" data-original-width="1366" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFo1U6LUMoiUgQ4UlgIsIeTPuFamGUBgj97xQI9hQensuzehppyDJWEPeOkiDOayazPpS7WxpZcY3GXIclQcF3raox6ki-AuBSl3lagaLMfYt7_bC8pa4OhkpnZxPAJpbYtS6xPU3tGIk/s320/intel_mkl.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
3. Install Python 3.6 (currently supported by cvxopt)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkly3kOBhKCOKAvviJ8ekyBTsPrwdsPS7R9ApnmSUMb6iA_vmiNuc3tVrw8x0_nELnRMFqeoBgtfVt5C3Jej6jvPx0tfGr5uI5i6SJWJuIDi5VSNlOU033jUuuGHlyus1A22W1vEyUheI/s1600/python_3.6.8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="728" data-original-width="1366" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkly3kOBhKCOKAvviJ8ekyBTsPrwdsPS7R9ApnmSUMb6iA_vmiNuc3tVrw8x0_nELnRMFqeoBgtfVt5C3Jej6jvPx0tfGr5uI5i6SJWJuIDi5VSNlOU033jUuuGHlyus1A22W1vEyUheI/s320/python_3.6.8.png" width="320" /></a></div>
<br />
<br />
4. Install Python MKL --> Use PIP<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0wnEFmA_4R0WtguEJgltdolL0SiQWrsBRqNcO2ewF2oPlLNyOu3wW5RFc89HmVWscnQUL47hrlWeijBOETewoO5jVB7f_K_Y24HX1-lMiOP0BHMyidNphZcNUNKUSlu0IsViNYMO93uI/s1600/python_mkl.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="728" data-original-width="1366" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0wnEFmA_4R0WtguEJgltdolL0SiQWrsBRqNcO2ewF2oPlLNyOu3wW5RFc89HmVWscnQUL47hrlWeijBOETewoO5jVB7f_K_Y24HX1-lMiOP0BHMyidNphZcNUNKUSlu0IsViNYMO93uI/s320/python_mkl.png" width="320" /></a></div>
<br />
<br />
5. Install numpy, scipy, cvxoptplgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-30446985435615547452019-09-29T05:23:00.000+07:002019-09-29T05:23:39.198+07:00Latest Update of My LM1875Well, LM1875 is an interesting chip to play with. The number of components are so few that it is easy to build and less expensive if boutique components are to be used. I have bought complete Takman metal film resistor sufficient enough to build the amp, however, a friend of mine argued that I should use carbon film and he recommended his Allen-Bradleys for R-in and R-feedback of 22k. So in January 2015, I built the amp using combination of Takman REY 1k and two A-B 22k per channel. The result was satisfactory, but hey, I am still a human and never gets satisfied. :-D<br />
<br />
So after these eight months of listening to A-B and Takman (carbon and metal film), it's time to rebuild the amp. This time, all resistors must be of Takman Rey Metal Film. PSU stays the same only swapping all the carbons with metal films.<br />
<br />
In this setup, I replaced all carbon resistors previously used (those were Allen-Bradley) with metal film of Takman REY. PSU uses 2 x Nichicon FineGold 2200 uF and snubberized with 2 x ( Dale wirewound 0.47 ohm + WIMA FKP 220 nF ).<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIUk10mZIW1njy1oi1FowjpVzZ-sbvFpSLK9pg6RgKuCjoRd1cYeBng76MzeFwkPGXP3uiF5nzLU2uSkw84HAtfcOQYtGeQtLyYqJxSmtPMyaJnbCkYhPKs7R__VraGpFIsRM9o3zOtE/s1600/P_20150825_081811_BF.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIUk10mZIW1njy1oi1FowjpVzZ-sbvFpSLK9pg6RgKuCjoRd1cYeBng76MzeFwkPGXP3uiF5nzLU2uSkw84HAtfcOQYtGeQtLyYqJxSmtPMyaJnbCkYhPKs7R__VraGpFIsRM9o3zOtE/s320/P_20150825_081811_BF.jpg" width="180" /></a></div>
<br />
For this system setup, I use LAN Cable Cat. 6 as I had access to the used ones. I can not comment on how this setup differs from or whether this sounds better than any other cables because I do not have those other so-called audiophile cables. :-)<br />
My suggestion on using this twisted pair cable is to separate the twisted pairs. We can see that each pair consists of solid color cable and its pair with with color. Just aggregate all solid color cables into one and their respective pair into another one.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPsHKizr0LRVB9wfORnsBdcdjLtrOTqLXZt1bmzwJbuCZgQwDGFq8Wi28xz-yjSQ2BMtI98f7i-fqi4vt1HkCxoxGP_Z1u8ESV9gfTqUJTzycEiyAZApqjrqV_rdJ1sr2XarYs53Sg4Oo/s1600/P_20150825_081840_BF.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPsHKizr0LRVB9wfORnsBdcdjLtrOTqLXZt1bmzwJbuCZgQwDGFq8Wi28xz-yjSQ2BMtI98f7i-fqi4vt1HkCxoxGP_Z1u8ESV9gfTqUJTzycEiyAZApqjrqV_rdJ1sr2XarYs53Sg4Oo/s320/P_20150825_081840_BF.jpg" width="180" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfAe6ZGqBmPf_4Yg1-8axZgZxdBYbcIAyo3OwOYUM8tx11Ms5ELOOTnBeDhkqDoe2KRWQBdFgR1DqSuybubdRbdsDozelGbpvGMEqquWEvow7nmSwEfmZsRs1YWYnl-L8Zq9G-NXqgB6I/s1600/P_20150825_081854_BF.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfAe6ZGqBmPf_4Yg1-8axZgZxdBYbcIAyo3OwOYUM8tx11Ms5ELOOTnBeDhkqDoe2KRWQBdFgR1DqSuybubdRbdsDozelGbpvGMEqquWEvow7nmSwEfmZsRs1YWYnl-L8Zq9G-NXqgB6I/s320/P_20150825_081854_BF.jpg" width="320" /></a></div>
<br />plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-75152946985043044342015-03-24T10:42:00.000+07:002015-03-24T10:42:08.741+07:00Where is Python in Solaris Studio 12.4 ?I've been using Solaris Studio for quite some time and it is newly installed in my new Lenovo G40-SID. It was surprising that yesterday I noticed its different appearance compared to 12.2 version. Moreover, no more Python plugin is there! After reading here and there, I found Python plugin is no longer supported by Netbeans (the parent of Solaris Studio).<br />
<br />
In order to enable Python plugin into Solaris Studio, I downloaded the Python plugin for Netbeans from <a href="http://plugins.netbeans.org/plugin/56795?show=true" target="_blank">here</a>. After downloading and extracting the package, I opened my solaris from terminal.<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">$solstudio &</span><br />
<br />
From Solaris Studio, go to "TOOLS" and then "PLUGINS" and from the plugins dialog, click on "DOWNLOADED" tab.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8i7wjuT7uc7HQq8C4tpBSTUVYgx-jZugsktQaAVpL0M2xTZwt1A_bwt4xTr9j347N51RSU9X7ipQbLmdmjLXGa_XagHgOmWh-85bfW5fqLuiWXynu5AA8ooc0Pj1UBJMVEoEnEuby3x8/s1600/Screenshot+from+2015-03-24+10:38:11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8i7wjuT7uc7HQq8C4tpBSTUVYgx-jZugsktQaAVpL0M2xTZwt1A_bwt4xTr9j347N51RSU9X7ipQbLmdmjLXGa_XagHgOmWh-85bfW5fqLuiWXynu5AA8ooc0Pj1UBJMVEoEnEuby3x8/s1600/Screenshot+from+2015-03-24+10:38:11.png" height="179" width="320" /></a></div>
<br />
<br />
And then, point to the extracted folder of Python Netbeans Plugins and select all plugins and the install them.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy42-J_GNkJvpE2ofgx2afR10E9paDYmFbQ9UZUg9cfS7VPWl1IAk2JEOKWYP7iLraYUoWT9u0Vn-KLNaJUbst3MIVG18rRdjQwbquMe4-PVJZp3HL8PpodaeDliXkyM9SPyCxZxciyzM/s1600/Screenshot+from+2015-03-24+10:38:28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy42-J_GNkJvpE2ofgx2afR10E9paDYmFbQ9UZUg9cfS7VPWl1IAk2JEOKWYP7iLraYUoWT9u0Vn-KLNaJUbst3MIVG18rRdjQwbquMe4-PVJZp3HL8PpodaeDliXkyM9SPyCxZxciyzM/s1600/Screenshot+from+2015-03-24+10:38:28.png" height="179" width="320" /></a></div>
<br />
Done !plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-41924308338545275132014-07-09T17:39:00.002+07:002020-03-04T14:50:44.372+07:00Python User-wide Installation on CPanel Platform<div align="left" style="box-sizing: border-box;">
<h3 style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
Objective:</h3>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
To run a python script with Numpy and Scipy from a web server hosted on a CPanel Hosting Provider.</div>
<h3 style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
Problem:</h3>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
1. CPanel is using Python 2.6.6, hence older version of Numpy and Scipy installed do not agree with the previously developed program under Python 2.7.x and newer Numpy and Scipy.</div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
2. Web hosting does not allow system-wide upgrade of the Python because this upgrade will affect the operating system's certain functions.</div>
<h3 style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
Proposed Approached:</h3>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
User-wide installation of Python and other supporting libraries</div>
<h3 style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
Limitation:</h3>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
User must be allowed to make secure shell connection to the server in order to install</div>
<h3 style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
Installation Procedures:</h3>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
1. <b>Download Python</b></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
mkdir ~/python</div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px;">
<span style="line-height: normal; white-space: pre-wrap;"> cd ~/python</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px;">
<span style="white-space: pre-wrap;"> wget http://www.python.org/ftp/python/2.7.x/Python-2.7.x.tgz</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px;">
<span style="white-space: pre-wrap;"> tar zxfv Python-2.7.x.tgz</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px;">
<span style="white-space: pre-wrap;"> find ~/python -type d | xargs chmod 0755</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px;">
<span style="white-space: pre-wrap;"> cd Python-2.7.x</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<br /></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
2. <b>Install Python</b></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="line-height: normal; white-space: pre-wrap;"> ./configure --prefix=$HOME/python</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="line-height: normal; white-space: pre-wrap;"> make</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="line-height: normal; white-space: pre-wrap;"> make install</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<div>
<br /></div>
</div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<b>3. Modify the Environment</b></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<b> </b><span style="white-space: pre-wrap;">vi ~/.bashrc</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"> <b>Add this line at the end of the file: </b></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"> export PATH=$HOME/python/Python-2.7.x/:$PATH</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"> source ~/.bashrc</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"><br /></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"><b>4. Add Apache Handlers on User's CPanel control panel</b></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"> cgi-scripts .py</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"><b><br /></b></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"><b>5. Testing</b></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="white-space: pre-wrap;"> vi tes.py</span><br />
<span style="white-space: pre-wrap;"> #!/home/username/python/Python-2.7.x/bin/python</span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> import cgi</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> import cgitb</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> print "Content-type: text/html\n\n"</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> cgitb.enable()</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> print "Hello, world!\n"</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> print "<p>"</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> import sys</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif;"><span style="white-space: pre-wrap;"> print "Python version is ",sys.version</span></span><br />
<span style="white-space: pre-wrap;"><br /></span>
<span style="white-space: pre-wrap;">note: /home/username is user home directory on CPanel</span><br />
<b style="font-size: medium; white-space: pre-wrap;"><br /></b>
<b style="white-space: pre-wrap;">6. Check the result</b></div>
<div>
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium; line-height: 22.399999618530273px; white-space: pre-wrap;"><b> </b>http://xxx.somedomain.com/tes.py</span><br />
"<br />
Hello, world!<br />
Python version is 2.7.8 (default, Jul 9 2014, 11:18:17) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]<br />
"<br />
<br />
<div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<b style="font-size: medium; white-space: pre-wrap;">7. Install PIP</b></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; white-space: pre-wrap;"><b> </b>wget </span><span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; line-height: normal;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;">https://bootstrap.pypa.io/get-pip.py</span></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"> python get-pip.py</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<b style="font-size: medium; white-space: pre-wrap;"><br /></b>
</div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<b style="font-size: medium; white-space: pre-wrap;">8. Install Numpy, Scipy, Matplotlib</b></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"> pip install numpy</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"> pip install scipy</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"> pip install matplotlib</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"><br /></span>
<span style="font-size: medium; white-space: pre-wrap;">One last thing to remember, do not forget to change file permission to 755 to make it executable. This should be enough :-)</span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;"><br /></span></div>
<div style="color: #6d6e71; font-family: 'Segoe UI', 'Gill Sans', 'Gill Sans MT', GillSans, 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 22.399999618530273px;">
<span style="font-size: medium; white-space: pre-wrap;">[Update July/14/2014]</span></div>
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;"><b>Install PYRAMID</b></span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;">pip install --install-option="--prefix=/home/username/python" pyramid</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;"><br /></span></span>
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;">--> Installation OK, however, this line:</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium; line-height: 22.399999618530273px; white-space: pre-wrap;">server = make_server('0.0.0.0', 80, app)</span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium; line-height: 22.399999618530273px; white-space: pre-wrap;"><br /></span>
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium; line-height: 22.399999618530273px; white-space: pre-wrap;">raised an error --> </span><span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;">socket.error: [Errno 13] Permission denied</span></span><br />
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;"><br /></span></span>
<span style="color: #6d6e71; font-family: "segoe ui" , "gill sans" , "gill sans mt" , "gillsans" , "trebuchet ms" , "arial" , sans-serif; font-size: medium;"><span style="line-height: 22.399999618530273px; white-space: pre-wrap;">which is understandable. Pyramid installation is not a success yet.</span></span></div>
</div>
</div>
plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com1tag:blogger.com,1999:blog-3164315269750188023.post-87420606669705600452013-12-29T20:08:00.001+07:002014-07-09T12:52:18.451+07:00My LM1875 Evolution<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuiaxSscAXJQgnjARVzV9sJ-NVkULeGak8hNx3XFbdNAN_bzCQ-Ld5CgvabSJXb37RWqWqHzJRqWeXHeOFshfqefhj60bOE6Y8NxIeKL-bON7xu108bU7LFhm_edieMCaP0daFfmGvpCU/s1600/PC246199.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuiaxSscAXJQgnjARVzV9sJ-NVkULeGak8hNx3XFbdNAN_bzCQ-Ld5CgvabSJXb37RWqWqHzJRqWeXHeOFshfqefhj60bOE6Y8NxIeKL-bON7xu108bU7LFhm_edieMCaP0daFfmGvpCU/s320/PC246199.jpg" width="320" /></a></div>
<br />
I've been quite some time away from the DIY world actually, and even decided to give up the idea of building my own sound system. Further, I bought a 2.1 system, an Edifier C3 to be precise, and decided to stop my DIY hobby. Then I started collecting FLAC files from the Internet, listening to some audiophile musics through this nice Edifier C3 which is not bad at all. But the same old nostalgic feeling came across and I started to question my listening experience with Edifier. Later, I started to check my account at diyaudio.com and renew my password since I have long forgotten it. The rest is, you've probably guessed that<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1gSMHfvi5PguQ6248AwcjgUEaBsEg_6c_jy03PN4ReSYELbmVh9h-cePP4sQ6qs_qpqLLwmfMofQEG2kA7m_9juB9zRxXkS1qU2HLlOdFaGj35JnoT8uANIZ5lzkZP_zZNAdN0DlTSus/s1600/schematics.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="293" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1gSMHfvi5PguQ6248AwcjgUEaBsEg_6c_jy03PN4ReSYELbmVh9h-cePP4sQ6qs_qpqLLwmfMofQEG2kA7m_9juB9zRxXkS1qU2HLlOdFaGj35JnoT8uANIZ5lzkZP_zZNAdN0DlTSus/s320/schematics.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
On December 29, 2013 the schematic was updated as follows:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7NcCuwwqOdXfbD5GaMl5cbDWgJLvGSpWJ73PdIzwoQ3TXVjCW1fQHmzCIq5tgo-rvXrfrLbuZjHHA5zozCi6CP-xEx0Of9d51b-lTm7FmaSLOE1VmzTB_iyUpgjNVeSxfbACP8EXScYQ/s1600/revisi_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7NcCuwwqOdXfbD5GaMl5cbDWgJLvGSpWJ73PdIzwoQ3TXVjCW1fQHmzCIq5tgo-rvXrfrLbuZjHHA5zozCi6CP-xEx0Of9d51b-lTm7FmaSLOE1VmzTB_iyUpgjNVeSxfbACP8EXScYQ/s320/revisi_1.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
A fellow DIYer reminded me to route the blocked DC offset to ground through 22 k resistor from entering IN(+) of the amplifier. Another fellow recommends higher value (470 uF) of NFB-shunt capacitor. A zobel of 10 ohm resistor in series with 100 nF capacitor is installed before the output capacitor (4700 uF) near the speaker terminals. Now this amp plays Deep Purple's Pictures of Home, Duran Duran's Rio and Avenged Sevenfold's This Means War very nice. Treble and bass are just enough. :-D</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlj8aS6oh2mbxoSDdd12kM7VukcmmG-AN0CioNh8NSLZuosGm1TOBMeo1OCSVw8PH9_e1z0WVW_1awU6BTRwE-0I-6E0WgGoSIFXT03w-gE-39fIaLcQy6eu6_DeHJ4PpkdfOHNDDUsGs/s1600/PC276209.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlj8aS6oh2mbxoSDdd12kM7VukcmmG-AN0CioNh8NSLZuosGm1TOBMeo1OCSVw8PH9_e1z0WVW_1awU6BTRwE-0I-6E0WgGoSIFXT03w-gE-39fIaLcQy6eu6_DeHJ4PpkdfOHNDDUsGs/s320/PC276209.jpg" width="240" /></a></div>
<br />plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-18669610013147000462013-05-11T08:38:00.001+07:002013-05-11T08:41:38.853+07:00Node Ordering (1)<div class="separator" style="clear: both; text-align: center;">
Random matrix of 20 x 20</div>
<div class="separator" style="clear: both; text-align: center;">
Maximum number of branches per node is 4</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYyIVDEdeVYu0fJMxEjcLTETDM9Lw5ta-xXvAHXmirHMM09hiRHLIfW8fBvCacsTaVNuuDR_haMYfUI-CBQJYbk530CtiMafyyvMt-AmNr-qHadYxS-h_R4KsW4L7xDWIXl5ei3PjggxM/s1600/20-before.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYyIVDEdeVYu0fJMxEjcLTETDM9Lw5ta-xXvAHXmirHMM09hiRHLIfW8fBvCacsTaVNuuDR_haMYfUI-CBQJYbk530CtiMafyyvMt-AmNr-qHadYxS-h_R4KsW4L7xDWIXl5ei3PjggxM/s320/20-before.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9eCn1LTs37j_u8sxLqLIfHHEd9sGEa2Ij3rTdVsTLV2xFxXPuURwr6OoQp1fLbmju8DXKz65LrYKxFOj-2vSEB44QhwC53DdcrXg8_V2QsZXFsd3go2DcyLQUvKJRjTPeZbx7OTVWH8U/s1600/20-after.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9eCn1LTs37j_u8sxLqLIfHHEd9sGEa2Ij3rTdVsTLV2xFxXPuURwr6OoQp1fLbmju8DXKz65LrYKxFOj-2vSEB44QhwC53DdcrXg8_V2QsZXFsd3go2DcyLQUvKJRjTPeZbx7OTVWH8U/s320/20-after.png" width="320" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
Random matrix of 200 x 200</div>
<div class="separator" style="clear: both; text-align: center;">
Maximum number of branches per node is 200</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZcksEDpkn2q0lD5xEyk8nXOhx8Y4Pb3h5p037Wdepko-GhDBftY3eNJjezunIO4vGjq2b4krs5cT-dwJmAmF2UX9NYd1UX5S9nblwfOJrCYgGQICJcdDJ0FEmrwXvqeNAKej1Ewk59c/s1600/200-before.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZcksEDpkn2q0lD5xEyk8nXOhx8Y4Pb3h5p037Wdepko-GhDBftY3eNJjezunIO4vGjq2b4krs5cT-dwJmAmF2UX9NYd1UX5S9nblwfOJrCYgGQICJcdDJ0FEmrwXvqeNAKej1Ewk59c/s320/200-before.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm-xb-hywJdQterMVmW3Tc3hPQohqSaiDEXNLGnPfmr0fUINI5muXPIY3dLDmpcAP-tEt3BZdWrAfbbFje9mz2fLsM6Uaq7Qngg5gxcAzvruhPUj3iiZbXrjW8KCujn9ApL7RoCHr3hKg/s1600/200-after.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm-xb-hywJdQterMVmW3Tc3hPQohqSaiDEXNLGnPfmr0fUINI5muXPIY3dLDmpcAP-tEt3BZdWrAfbbFje9mz2fLsM6Uaq7Qngg5gxcAzvruhPUj3iiZbXrjW8KCujn9ApL7RoCHr3hKg/s320/200-after.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
Random matrix of 1000 x 1000</div>
<div class="separator" style="clear: both; text-align: center;">
Maximum number of branches per node is 1000</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwrXHFWMzy_9nGbLHFSJ1nZdmoVC2h5Vt3X9ZD3YPgob1qhhJF82y-waZRKHm4ZOYKPvw_vfi-ZXIYXOJqGpZ24dbLTbnKyJkljrrC7eI6EEVCzjhW-675hiH4ydoJneKFdHJ3mikJwFA/s1600/1000-before.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwrXHFWMzy_9nGbLHFSJ1nZdmoVC2h5Vt3X9ZD3YPgob1qhhJF82y-waZRKHm4ZOYKPvw_vfi-ZXIYXOJqGpZ24dbLTbnKyJkljrrC7eI6EEVCzjhW-675hiH4ydoJneKFdHJ3mikJwFA/s320/1000-before.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib-3-WJ6u0W7IMq4LyA7idWUTeNbh6WrZc30bs8_DnUbYerDK97Tg9F9EojJD-c1dHrypYThCpLPuG-pgKFPHEVJJ2mT88rvM4AG8XmUnF8k2qaJAg1myHLhyphenhyphenEGyXvY__ZS8igA0U02h0/s1600/1000-after.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib-3-WJ6u0W7IMq4LyA7idWUTeNbh6WrZc30bs8_DnUbYerDK97Tg9F9EojJD-c1dHrypYThCpLPuG-pgKFPHEVJJ2mT88rvM4AG8XmUnF8k2qaJAg1myHLhyphenhyphenEGyXvY__ZS8igA0U02h0/s320/1000-after.png" width="320" /></a></div>
<br />
<br />plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-27293244966893402062013-01-15T11:40:00.001+07:002013-01-15T11:58:18.219+07:00Raspberry Pi and OpenELEC. From a not-so-smart TV to a smarter one. :-)So here I am, getting into this Raspberry Pi world. After reading here and there, I decided to give it a go. I contacted a so-called distributor in Jakarta (not sure if it's an authorized dealer) as I can remember the nearest one is in Singapore. This guy sell Raspberry Pi with a good price as I reckon from various sellers in Indonesia. A friend of mine in Jakarta helped me buying four of them from this store. So I got it now. Well, my motivation initially was trying to implement a "cheap" parallel computing for my spare time (night time as I am a bit busy day time). I encountered a blog page called "<a href="http://www.myraspberrypi.info/?p=348">My Life with Pi</a>" and inspired by this blog, I thought this might be interesting to try it.<br />
<br />
However, my first attempt in using Raspberry Pi was for a home entertainment application. It was because my other friend whom I asked to buy from the Internet before I got a contact of a seller in Jakarta, informed me that my order had arrived at his home. Now there were 5 Raspberry Pis with me and 4 would be configured for a parallel computing application. What about this newly arrived Raspi? Hmmm.... thinking of an entertainment center then I thought it would be a good idea to implement it for a home entertainment center.<br />
<br />
After reading some arguments on which XBMC implementations is the best performer (among Raspbmc vs XBian vs OpenELEC), I was convinced that OpenELEC should have its opportunity to serve for my need. Well, I've got a 21" LCD TV by LG which was not so-smart but equipped with a USB port (for maintenance, the manual said and therefore is not capable of reading data from any USB storage) and an HDMI port. I also already got a 2 GB MicroSD+adapter from my old mobile phone including a microUSB cable for charging that good old phone. Lucky me, I could save much of my time building the XBMC by only downloading the already-prepared image from this guy <a href="http://sparky0815.de/openelec-download-images-fat-files/">SPARKY0815</a>. I downloaded the 2GB image of Raspberry Pi already configured for OpenELEC.<br />
<br />
Following the instruction from <a href="http://askubuntu.com/questions/179437/how-can-i-burn-a-raspberry-pi-image-to-sd-card-from-ubuntu">ASK UBUNTU</a>, I managed to burn the image to my MicroSD. Here are the commands:<br />
1. Find out which device to burn by checking the change before and after issuing this command<br />
<span style="background-color: white; color: #222222; font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 17px; text-align: left;">ls -la /dev/sd*</span><br />
<br />
2. Locate where I put the downloaded image, in my case it's here:<br />
<div style="text-align: left;">
<span style="background-color: white; color: #222222; font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 17px;">/media/DATA/Works/RASPBERRY/OpenELEC\ Image/2GB/OpenELEC-RPi_2GB_SDCARD.img\</span></div>
<div style="text-align: left;">
<span style="text-align: -webkit-auto;"><br /></span>
<span style="text-align: -webkit-auto;">3.Issue this command to burn the image onto the SD Memory:</span><br />
<span style="background-color: white; color: #222222; font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 17px;">sudo dd if=</span><span style="color: #222222; font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 17px;">/media/DATA/Works/RASPBERRY/OpenELEC\ Image/2GB/OpenELEC-RPi_2GB_SDCARD.img\</span><span style="background-color: white; color: #222222; font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 17px;"> of=/dev/sdb</span></div>
<br />
Please note the escape "\" was used because we have a space between the words.<br />
<div style="text-align: left;">
<span style="text-align: -webkit-auto;"><br /></span></div>
<div style="text-align: left;">
<span style="text-align: -webkit-auto;">After waiting for a while. The burn process is finished and it is ready to install. So I inserted the SD into Raspberry Pi and connect the HDMI and the USB ports on my old LG LCD TV. Switch it on and Raspberry Pi booted. And the CONFLUENCE interface appeared on my screen. What fascinated me more was when I found out that my remote control could be used to interact with the OpenELEC menu. Now I have these devices (my laptop, a Samsung Smart TV and a newly-smarter LG LCD TV) connected through a TCP/IP network at home and share the files through Windows Share (Samba) service.</span></div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div style="text-align: left;">
<span style="text-align: -webkit-auto;">I also found that my Samsung SmartTV's remote control works better when I connect the OpenELEC to it. But this TV is already smart and no need a knowledge upgrade :-D</span></div>
<div style="text-align: left;">
</div>
<span style="text-align: -webkit-auto;"><br class="Apple-interchange-newline" />Well, my previously not-so-smart TV is now smarter enough by only adding about 500K rupiahs. :-D</span><br />
<br />plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0tag:blogger.com,1999:blog-3164315269750188023.post-14411821976198410352012-05-09T16:07:00.001+07:002012-05-09T16:12:30.930+07:00Upgrading to Ubuntu 12.04? Do you really wanna do that? :-pYesterday, I decided to upgrade my Ubuntu 11.10 to Ubuntu 12.04. I just wanted to have a feeling of how it feels. But today I just realised that it was one of my big mistakes (well, I am exaggerating), which costed me one full day of searching and hacking back my system.<br />
<br />
The screen shows similar to the following line:<br />
...GLIBC_2.14 not found (required by /lib/libply.so.2)...<br />
<br />
After browsing and reading a whole day, I got this recipe:<br />
1. On the prompt line, run this:<br />
# mount -o remount,rw /<br />
<br />
2. On the prompt line, run this:<br />
# dpkg --configure -a<br />
Some guys suggested to run this over and over again. <br />
<br />
3. I think I also ran this:<br />
# fsck<br />
<br />
4. Then I remember that I also ran this:<br />
# apt-get -f install<br />
<br />
5. Finishing off and reboot the system. If it asks to fsck the system, just follow the instruction on the screen<br />
<br />
6. I think that's all and I got my previous Ubuntu 11.10 back online. <br />
<br />
This is my personal note which may not be applicable to the reader's system. :-)plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com1tag:blogger.com,1999:blog-3164315269750188023.post-86675496362463948572011-10-28T22:11:00.001+07:002011-10-28T22:11:00.150+07:00A Yellow Card StoryIt happened in September 2008. On a one fine morning, when I checked my mailbox, a yellow card was there. This only meant that a parcel sent by my sister back in home country had arrived. So at 9 am, I brought the card with me and went to Aki-saijyou post office, Higashihiroshima City to claim my parcel.<br /><br />After waiting in a queue for a couple of minutes, I gave the card to the officer. That's the procedure I learned from my friend when he claimed his parcel. Unfortunately, the parcel was not in the office. I was confused but feeling sorry to see that the officer so worried that my parcel was not found. She took out a number of packages from Indonesia (even some packages from Malaysia!) for my other friends, thinking that they might be for me. Finally, the officer realized that the package was out and explained it. Later she asked me to write what time I would claim my packet. At least, that was what I understood with my very limited Japanese skill. So I wrote down 6 pm to be the time. She took the yellow card and this even confused me more since I did not have any proof in hand to claim the parcel later. I could not explain what I thought in Japanese so I decided to leave it be. Then I left the post office with a feeling of disappointment and confusion.<br /><br />At 6 pm, I came back to the post office with my wife and daughter and hoped that we could claim the parcel using my Alien Registration Card (外国人登録証明書 - Gaikokujintourokushoumeishou). I was not sure I could do that but that was the only option I had. And as I expected, the post officer was a new person (from the next shift) and I had to explain all from the start. What a nightmare! After struggling with my poor Japanese skill, finally came another officer with good English and asked what happened. Because they were still unable to find my parcel, then they asked me to leave my mobile number with a promise to call me once they found my parcel. So, we left the post office with even more disappointment! We were almost sure that it's already lost and would not reach us. We went home then.<br /><br />After arriving at home, suddenly my mobile rang and a Japanese greeting on the phone with a familiar voice of a Japanese lady was heard. Fortunately, she quickly switched to English after I replied with my magic words "Eigo de, oneigaishimasu" (English, please). This lady said she was from the post office and she explained that the parcel had been found. She said that when we came to the post office at 6 pm, a postman actually came to our house for delivering the parcel. That happened because I wrote 6 pm as the time of delivery. Oh, God! I thought it was meant to be the time for me to pick up the parcel from the post office. So this lady asked me to wait at home until 9 pm because the postman would come again to deliver the parcel at 9 pm. What a relief! Finally, we received that parcel and said a lot of apologies to the postman. Thanks to Japan Post Office for its super service!plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com2tag:blogger.com,1999:blog-3164315269750188023.post-75443154535681032652011-10-21T11:37:00.001+07:002011-10-21T11:37:00.503+07:00Prosedur Pindah Sekolah dari Luar Negeri ke IndonesiaSekedar berbagi pengalaman mengurus pindah sekolah anak dari Luar Negeri (Jepang) ke Indonesia. Mudah2an bermanfaat bagi rekan2 semua.<br /><br />A. DI JEPANG<br />A.1. Mendapatkan surat keterangan dari SD di Jepang yang menjelaskan anak ybs duduk di kelas/grade/level berapa. Surat keterangan ini dalam Bahasa Inggris.<br /><br />A.2. Mendapatkan surat keterangan pindah dari KBRI Tokyo. Syarat2nya sebagai berikut:<br />A.2.1. Mengajukan surat permohonan dari orang tua kepada Bagian Pendidikan dan Kebudayaan KBRI Tokyo perihal "Permohonan Surat Keterangan Pindah Sekolah untuk NAMA_ANAK_YBS".<br />A.2.2. Surat permohonan ini dilengkapi dengan surat keterangan dari SD di Jepang yang menjelaskan bahwa anak ybs saat ini sedang bersekolah di SD tersebut pada tingkat/level/ kelas berapa.<br />A.2.3. Amplop balasan yang sudah ditulisi alamat lengkap dan ditempeli perangko<br /><br />B. DI INDONESIA<br />B.1. Surat keterangan pindah sekolah dari KBRI Tokyo pada point A.2 beserta rapor anak kita dari SD Jepang serta keterangan SD Jepang pada point A.1 dibawa ke SD di Indonesia yang dituju. Adalah penting untuk memastikan apakah sekolah di Indonesia tersebut bersedia menerima anak kita atau tidak sesuai daya tampung kelasnya.<br />B.2. Kepala SD di Indonesia kemudian akan membuat surat rekomendasi kepada Dinas Pendidikan di Kota/Kabupaten tempat SD tersebut berada. Surat rekomendasi ini berisi penjelasan bahwa SD ybs bersedia menerima anak kita sebagai murid baru di SD tsb disertai tabel penjelasan daya tampung kelas ybs. Surat rekomendasi ini ditandatangani oleh kepala sekolah dan diketahui oleh Kepala Cabang Dinas Pendidikan (kasus saya namanya Kepala UPTD Pendidikan atau nama lainnya Kandepdikbudcam di kecamatan tempat SD ybs).<br />B.3. Surat rekomendasi dari SD yang sudah ditandatangani oleh Ka. SD serta Ka. UPTD tersebut serta surat keterangan pindah dari KBRI Tokyo serta rapor anak kita di Jepang dibawa ke Kantor Dinas Pendidikan di Kota/Kabupaten ybs ke Bagian atau Bidang TK/SD. Untuk kasus anak saya, karena belum memiliki Nomor Induk Siswa Nasional (NISN), maka belum ada data anak saya tersebut di basis data DIKNAS. Oleh karena itu, berkas anak saya tersebut diteruskan ke bagian Validasi Data di kantor dinas tersebut. Oleh petugas di Bagian Validasi Data, data anak saya dimasukkan/didaftar kan ke basis data DIKNAS dan kemudian diperoleh NISN.<br />B.4. Report dari Sistem DIKNAS tersebut beserta NISN dicetak lalu dibawa ke SD yang dituju.<br /><br />TAMBAHAN:<br />- menurut informasi dari SD dan petugas di Dinas Pendidikan, setiap siswa di Indonesia HARUS terdaftar di basis data sistem DIKNAS tersebut dan memiliki NISN.<br />- untuk buku pelajaran, silahkan kunjungi website DIKNAS untuk mendownload BUKU SEKOLAH ELEKTRONIK (BSE) bagi anak kita sesuai dengan kelas/level/ grade nya. kasus saya, buku sekolah yang digunakan di SD anak saya menggunakan BSE yang free tersebut.<br /><br />Semoga bermanfaat bagi teman2 yang akan pulang ke Indonesia dan memindahkan sekolah anaknya.plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com31tag:blogger.com,1999:blog-3164315269750188023.post-67929781886319320732011-10-15T22:29:00.009+07:002012-01-03T08:19:36.134+07:00Installing Matplotlib Basemap 1.0.1 on Ubuntu 11.04 64bit<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxP0oaWYWKTOVziOKtwdZG_ePleM-vXZZBIrAYuNy4aGjg-39oj-7ZcXMtJcEmr1yXsi2-2uqZznFZA1-oFBA6FBy-zSQ-87wTcMsiWLcSZMEM-qpuL4Num_omgwezVBTHDInet_RzZtk/s1600/Screenshot.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxP0oaWYWKTOVziOKtwdZG_ePleM-vXZZBIrAYuNy4aGjg-39oj-7ZcXMtJcEmr1yXsi2-2uqZznFZA1-oFBA6FBy-zSQ-87wTcMsiWLcSZMEM-qpuL4Num_omgwezVBTHDInet_RzZtk/s320/Screenshot.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5661811583564552354" /></a><br />Recently I've spent much of my time trying to plot a map and visualizing data resulted from my simulation program. After reading here and there I found basemap and matplotlib to be the most suitable choice in my opinion. This short tutorial is posted as a personal note which might be useful in the future, in case I need to reinstall basemap on my PC.<br /><br />1. Using Synaptic Package Manager, do install python 2.7.1, numpy 1.5.1, python-matplotlib 0.99.3, libgeos-dev 3.2.0-1, shapelib 1.2.10-5, python-imaging 1.1.7-2build2 and all of their respective dependencies.<br /><br />2. Download the basemap-1.0.1.tar.gz from here:<br />http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.1/<br /><br />3. Using Archive Manager, extract the file: basemap-1.0.1.tar.gz<br /><br />4. Run the following commands:<span ><br />username@my-ubuntu:~Downloads$ cd basemap-1.0.1/</span><span ><br />username@my-ubuntu:~Downloads$ python setup.py install</span><br /><br />5. Check the installation:<span ><br />username@my-ubuntu:~Downloads$ cd examples/</span><span ><br />username@my-ubuntu:~Downloads$ python simpletest.py</span><br /><br />If it displays a map on the screen, then all is set. This works for me, so I hope this will also work for you!<br /><br />Cheers!<br /><br /><br /><br />Added on Oct. 17:<br /><br />I just got my Ubuntu 11.10 upgrade and suddenly basemap error occurs. It could not find libgeos-3.2.0.so which was understandable because Ubuntu upgrade remove this "old package" of libgeos-3.2.0.so and install the new libgeos-3.2.2.so.<br /><br />ImportError: libgeos-3.2.0.so could not be found by this line: import _geoslib<br /><br />However, when I tried reinstalling basemap, libgeos-3.2.2.so could be found when running<br />my-ubuntu$ sudo python setup.py install<br /><br />So problem was _geoslib.so which somehow was still looking for libgeos-3.2.0.so. I needed to build a new _geoslib.so with the new libgeos-3.2.2.so<br /><br />The following steps are to cure this:<br />1. Remove _geoslib.so in /usr/local/lib/python2.7/dist-packages/<br />2. Change directory to <extracted directory="">/basemap-1.0.1/build/<br />3. Remove this folder --> lib.linux-x86_64-2.7/<br />4. Reinstall basemap-1.0.1 by running sudo python setup.py install</extracted>plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com22tag:blogger.com,1999:blog-3164315269750188023.post-8858477048104641832011-10-07T11:00:00.005+07:002011-10-08T20:46:52.389+07:00Installing Oracle Solaris Studio 12.2 on Ubuntu 11.04 64bitSince my first encounter with Sun Studio in 2007, it is always of my intention to have Sun Studio installed on my PC. Now, I have my Dell Inspiron N4030 with its "good look" and I think it's good to spend much of my work hours with it. As Linux is the only supported operating system by Oracle Solaris Studio (Sun Studio's present name) apart from Solaris, so I decided to install the latest Ubuntu 11.04 64 bit on it. And here is what I did to get my N4030 with Ubuntu 11.04 works hand in hand with the "new Sun Studio" called Oracle Solaris Studio 12.2.<br /><br />1. Download the latest JRE from here<br />http://www.java.com/en/download/linux_manual.jsp?locale=en<br />In my case I downloaded Linux x64 with size of about 20.2 MB<br />It's a free download! --> filename: jre-6u27-linux-x64.bin<br /><br />2. Download Oracle Solaris Studio 12.2 from here<br />http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.html<br />You need to have an account (free registration --> used to be Sun Developer Network)<br />It's also a free download! --> filename: SolarisStudio12.2-linux-x86-tar-ML.tar.bz2<br /><br />3. Run the following command and it will extract to a directory:<br /><span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/Downloads$ ./jre-6u27-linux-x64.bin</span><br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/Downloads$ sudo mkdir /usr/java</span><br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/Downloads$ sudo cp -R jre1.6.0_27/ /usr/java/</span><br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/Downloads$ gedit ~username/.bashrc &</span><br /><br />--> add the following line at the end of <span style="font-family:courier new;">.bashrc</span>:<br /> <span style="font-family:courier new;font-size:100%;"> export PATH=$PATH:/usr/java/jre1.6.0_27/bin/:/usr/java/jre1.6.0_27/lib/:/usr/java/jre1.6.0_27/man/</span><br /><br />--> save <span style="font-family:courier new;">.bashrc</span>, exit gedit and load the new PATH environment:<br /> <span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/Downloads$ source ~username/.bashrc</span><br /><br />--> check your installation:<br /> <span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/Downloads$ java</span><br /><br />4. Extract SolarisStudio12.2-linux-x86-tar-ML.tar.bz2 using ArchiveManager<br /><br />5. Change directory to the folder created by extracting the file and run the following commands:<br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/SolarisStudio12.2-linux-x86-tar-ML$ sudo mkdir /opt/oracle</span><br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/SolarisStudio12.2-linux-x86-tar-ML$ sudo cp -R solstudio12.2/ /opt/oracle/</span><br /> <span style="font-family:courier new;font-size:100%;">username@my-ubuntu:~/Downloads$ gedit ~username/.bashrc &</span><br /><br />--> add the following line at the end of this file (<span style="font-family:courier new;">.bashrc</span>):<br /> <span style="font-family:courier new;font-size:100%;">export PATH=$PATH:/usr/java/jre1.6.0_27/bin/:/usr/java/jre1.6.0_27/lib/:/usr/java/jre1.6.0_27/man/:/opt/oracle/solstudio12.2/bin/:/opt/oracle/solstudio12.2/lib/:/opt/oracle/solstudio12.2/man/:/opt/oracle/solstudio12.2/include/</span><br /><br />--> save <span style="font-family:courier new;">.bashrc </span> , exit gedit and load the new PATH environment:<br /> <span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/Downloads$ source ~username/.bashrc</span><br /><br />--> check your installation:<br /><span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/Downloads$ solstudio & </span><br /><br />I guess you're all done! In case you have problem with running the program, please check file permission. If it's a file permission problem, then run the following command:<br /> <span style="font-family:courier new;font-size:100%;"> username@my-ubuntu:~/SolarisStudio12.2-linux-x86-tar-ML$ sudo chmod 755 -R /opt/oracle/solstudio12.2/</span><br /><br />Thank you. This works for me and my Ubuntu 11.04 64 bit and I hope it will work for you too. <br /><br />Cheers!plgsekiphttp://www.blogger.com/profile/15555916145617317734noreply@blogger.com0