<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1288315491465836110</id><updated>2024-09-10T07:36:02.989-07:00</updated><category term="dpkg"/><category term="errors"/><category term="lock"/><category term="status"/><category term="ubuntu"/><title type='text'>technical blog</title><subtitle type='html'>Temp personal website, friend abroad could follow my status by this site</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-3399272481310016364</id><published>2015-07-11T04:50:00.001-07:00</published><updated>2015-07-11T05:03:25.931-07:00</updated><title type='text'>math input test</title><content type='html'>&lt;pre class=&quot;greybox&quot;&gt;Einstein&#39;s most famous equation is $E=mc^2$.
Newton derived the equation [s=ut+\sfrac{1}{2}at^2]&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/3399272481310016364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2015/07/math-input-test.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/3399272481310016364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/3399272481310016364'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2015/07/math-input-test.html' title='math input test'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-6124787920667105848</id><published>2015-07-11T04:29:00.001-07:00</published><updated>2015-07-11T04:54:23.519-07:00</updated><title type='text'></title><content type='html'>$\sum_i^2$</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/6124787920667105848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2015/07/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/6124787920667105848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/6124787920667105848'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2015/07/blog-post.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-3711311451337261390</id><published>2012-10-25T07:36:00.003-07:00</published><updated>2012-10-25T07:36:58.721-07:00</updated><title type='text'>PyPI mirror error</title><content type='html'>&lt;br /&gt;
Copying /packages/source/Q/Quotient/Quotient-0.3.0.tar.gz&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
&amp;nbsp; File &quot;/usr/local/bin/pep381run&quot;, line 30, in &amp;lt;module&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; state.synchronize()&lt;br /&gt;
&amp;nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pep381client/__init__.py&quot;, line 119, in synchronize&lt;br /&gt;
&amp;nbsp; &amp;nbsp; self._synchronize()&lt;br /&gt;
&amp;nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pep381client/__init__.py&quot;, line 159, in _synchronize&lt;br /&gt;
&amp;nbsp; &amp;nbsp; self.maybe_copy_file(project, file)&lt;br /&gt;
&amp;nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pep381client/__init__.py&quot;, line 247, in maybe_copy_file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; data = r.read()&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/httplib.py&quot;, line 548, in read&lt;br /&gt;
&amp;nbsp; &amp;nbsp; s = self._safe_read(self.length)&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/httplib.py&quot;, line 647, in _safe_read&lt;br /&gt;
&amp;nbsp; &amp;nbsp; chunk = self.fp.read(min(amt, MAXAMOUNT))&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/socket.py&quot;, line 380, in read&lt;br /&gt;
&amp;nbsp; &amp;nbsp; data = self._sock.recv(left)&lt;br /&gt;
socket.error: [Errno 104] Connection reset by peer&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/3711311451337261390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2012/10/pypi-mirror-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/3711311451337261390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/3711311451337261390'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2012/10/pypi-mirror-error.html' title='PyPI mirror error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-1232201562559645147</id><published>2012-10-23T19:17:00.002-07:00</published><updated>2012-10-23T19:17:28.767-07:00</updated><title type='text'>latex bibtex installation and usage under ubuntu</title><content type='html'>&lt;br /&gt;
#install latex under ubuntu&lt;br /&gt;
sudo apt-get install texlive&lt;br /&gt;
sudo apt-get install texlive-ful&lt;br /&gt;
sudo apt-get install gedit-latex-plugin # need to activate the plugin in the gedit-&amp;gt;edit-&amp;gt;preferences-&amp;gt;plugins&lt;br /&gt;
&lt;br /&gt;
#other packages recommended&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install texlive-fonts-recommended latex-beamer texpower texlive-pictures texlive-latex-extra texpower-examples imagemagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#using in the bash console&lt;br /&gt;
latex filename.tex&lt;br /&gt;
bibtex filename.aux&lt;br /&gt;
latex filename.tex&lt;br /&gt;
latex filename.tex&lt;br /&gt;
&lt;br /&gt;
#view the file&lt;br /&gt;
xdvi filename&lt;br /&gt;
dvips filename &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;# change into .ps file&lt;br /&gt;
gv filename.ps &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;# view the .ps file with gv&lt;br /&gt;
ps2pdf filename.ps &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;# change into .pdf file from .ps file&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&amp;nbsp;http://linuxandfriends.com/2009/10/06/install-latex-in-ubuntu-linux/&lt;br /&gt;
&amp;nbsp;https://help.ubuntu.com/community/LaTeX&lt;br /&gt;
&amp;nbsp;http://www.ccrnp.ncifcrf.gov/~toms/latexforbeginners.html&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/1232201562559645147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2012/10/latex-bibtex-installation-and-usage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1232201562559645147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1232201562559645147'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2012/10/latex-bibtex-installation-and-usage.html' title='latex bibtex installation and usage under ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-1159688022580257861</id><published>2012-10-22T19:37:00.000-07:00</published><updated>2012-10-22T19:37:16.151-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dpkg"/><category scheme="http://www.blogger.com/atom/ns#" term="errors"/><category scheme="http://www.blogger.com/atom/ns#" term="lock"/><category scheme="http://www.blogger.com/atom/ns#" term="status"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu dpkg no lock and status file</title><content type='html'>Problem:&lt;br /&gt;
&lt;br /&gt;
Upgrade Ubuntu from 12.04 to 12.10 needs a long time, so I just keep the laptop to upgrade unplugged, when getting up, found the dpkg locked for the unusual shutdown, the stupid thing I did is:&lt;br /&gt;
&lt;br /&gt;
Delete the lock, and the dpkg folder&lt;br /&gt;
&lt;br /&gt;
The errors I got is:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1) Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2) Unable to lock the administration directory (/var/lib/dpkg/), are you root?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
1) sudo mkdir /var/lib/dpkg/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; error 1) and 2) would disappear, however when apt-get update, a new error comes out:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Could not open file /var/lib/dpkg/status - open (2: No such file or directory)&lt;br /&gt;
&lt;div&gt;
2)&amp;nbsp;sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now it works fine.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Thanks the following references:&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.linuxquestions.org/questions/linux-software-2/e-unable-to-lock-the-administration-directory-var-lib-dpkg-are-you-root-886443/&quot;&gt;http://www.linuxquestions.org/questions/linux-software-2/e-unable-to-lock-the-administration-directory-var-lib-dpkg-are-you-root-886443/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=2008867&quot;&gt;http://ubuntuforums.org/showthread.php?t=2008867&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/1159688022580257861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2012/10/ubuntu-dpkg-no-lock-and-status-file.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1159688022580257861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1159688022580257861'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2012/10/ubuntu-dpkg-no-lock-and-status-file.html' title='ubuntu dpkg no lock and status file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-1408669621934190964</id><published>2012-08-27T09:15:00.005-07:00</published><updated>2012-08-27T09:15:49.990-07:00</updated><title type='text'>bible for phd</title><content type='html'>Since the master period, I am often excited when finding some academic advices, online academic tutorials and public courses online, however, just after a while, I will lost them, even I often bookmarks them. This needs becoming much more strong when stepping into the phd candidates group. So this ideas comes out, why not build a site to share the open sources for the phd guys, and provide a way to find the online related material quickly and easily. This is the &lt;a href=&quot;http://www.bible4phd.com/&quot;&gt;bible4phd&lt;/a&gt; mainly for. Hoping it works. Cheers.</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/1408669621934190964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2012/08/bible-for-phd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1408669621934190964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/1408669621934190964'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2012/08/bible-for-phd.html' title='bible for phd'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1288315491465836110.post-4072557759734708396</id><published>2012-08-23T04:42:00.000-07:00</published><updated>2012-08-23T04:42:03.346-07:00</updated><title type='text'>Double Seventh Festival </title><content type='html'>Today is the Double Seventh Festival of China, just like the valentine&#39;s day in the western country. This is also my fouth thursday since arriving in Singapore, where I will spend my next four years or more. So I am thinking why not record the hard life so called, for english practice, or for watching my struggling lives.</content><link rel='replies' type='application/atom+xml' href='http://shujihao.blogspot.com/feeds/4072557759734708396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shujihao.blogspot.com/2012/08/double-seventh-festival.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/4072557759734708396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1288315491465836110/posts/default/4072557759734708396'/><link rel='alternate' type='text/html' href='http://shujihao.blogspot.com/2012/08/double-seventh-festival.html' title='Double Seventh Festival '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10924121662186003053</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>