Jinghao Shi

Buffalo, NY

jhshi.me

Age: 27

Smart data structures and dumb code works a lot better than the other way around. ---- Eric S. Raymond

Dec
2
awarded Supporter
Dec
2
comment LastPass Bootstrap on New Android Phone
My Gmail password is 100 characters long...I guess I'll have to change it to a shorter one or use a readable pass phrase. I tried both Add Account in Settings app or in web browser (chrome)--can not paste password in both cases.
Dec
2
asked LastPass Bootstrap on New Android Phone
Dec
2
awarded Autobiographer
Nov
21
awarded Supporter
Nov
21
awarded Autobiographer
Nov
9
comment Problems installing gsl gem
@TamerShlash: I needed gsl 1.14 for my Jekyll/Octopress setup. Unfortunately, installing libgsl0-dev through apt-get doesn't solve the problem (on Ubuntu 14.04). I still have compilation errors when do gem install gsl -v 1.14.7. Download and install gsl 1.14 works for me.
Sep
29
comment Latex IEEETran cls use titlesec package
I was using sig-alternate.cls from ACM. This solves my pain.
Sep
20
comment RAID 0 partitioning for Linux installation
For those who came to this thread, I found my fake RAID0 device under /dev/mapper/isw_dahaeedjfb_Volume1.
Sep
15
comment Drop all tables in postgresql?
Confirmed. The two line solution (drop then create) used to work on PostgreSQL 9.1. After upgrading to 9.3, the two extra grant is necessary.
Aug
5
comment Python: read streaming input from subprocess.communicate()
@J.F.Sebastian: My code is the same with what you have in the answer. The sub process I was running is Android fastboot tool to flash a phone. And I didn't write to p.stdin during the process. Before setting bufisze to 1, I can only see the output after the flashing finishes (~2 min).
Aug
4
comment Python: read streaming input from subprocess.communicate()
@J.F.Sebastian: Yeah, I was also confused. Yet it did make a difference in my case.
Aug
3
comment Python: read streaming input from subprocess.communicate()
bufsize=1 is the key! At least it works when cmd is fastboot.
Aug
2
awarded Popular Question
Jul
30
comment How can I generate an Android Keystore from a key.pk8 and certificate.pem?
In first step, if the input pk8 file has a password, remove the -nocrypt option, openssl will prompt password input.
Jun
30
comment Unable to checkout msm source code for Android Hammerhead kernel
Thanks for sharing! Solved my pain. Also would appreciate it if anyone points out announcement/document for this.
Jun
26
awarded Notable Question
Jun
14
awarded Nice Question
Jun
7
comment list and counting repeat letters
group_by is exactly what I'm looking for. Thanks!
Apr
16
awarded Supporter
1 2 3 4 5