Dec 20, 2013

Upgrade (and keep synced with system update) git version on ubuntu 12.04

My git version was 1.7.9.5, while the latest version is 1.8.5.2, wanted to upgrade it to use the --diff-dir option available from version 1.7.11.

Tried the way of download source code and build locally (https://www.digitalocean.com/community/articles/how-to-install-git-on-ubuntu-12-04), not working for me.

Finally, found this page:

and steps are:

1. add git ppa
$sudo add-apt-repository ppa:git-core/ppa
2. update
$sudo apt-get update
3. upgrade git
$sudo apt-get install git

Check version with command
$git --version
git version 1.8.5.2

Yeah~

Dec 6, 2013

[Resolved] Eclipse 4.3.1 has no PHP perspective after PDT installed

Last night I installed Eclipse 4.3.1 on my iMac under ubuntu 13.10, all good till I found that no matter how I tried, Eclipse wouldn't show out the PHP perspective. The PHP perspective even did not exist in Window->Open Perspective->Other... dialogue.

This made me a bit crazy.

However, finally, here is the dramatic end of the story.

After struggling with uninstall/reinstall several versions of several plugins, and searched online, no luck though. But one thread made me thought about the permission of the path I installed Eclipse, /opt/eclipse.

Then I entered in plugins folder in that path, no PDT plugin found there, and no CDT plugin I installed for testing either. Then this came to a 99 percent fact that it was a permission issue.

Think I could install PDT again under sudo executing eclipse, but I chose another way, installed another eclipse 4.3.1 in user folder this time, ~/ide/eclipse, where I have full privilege.

And the ending was happy.

Although it was my stupid, and this story maybe not worth telling, but considering I almost gave it up, and there was not any really helpful clue online, so I tell it out here.

Cheers and good night~~

Dec 5, 2013

Install PDT 3.1.1 on Eclipse 3.7 (Indigo)

At first, when I tried to install PDT 3.1.1 on Eclipse 3.7 (Indigo), there was an error that a dependency software missing: DLTK 4.0.

It recalled me about the similar issue when I tried to install ShellED, a bash editor plugin of Eclipse, last month.


While I couldn't update DLTK from Indigo repository:


  http://download.eclipse.org/releases/indigo/

Or

  http://download.eclipse.org/technology/dltk/updates/

But there's a link for the nightly build on DLTK's page http://www.eclipse.org/dltk/install.php

I tried this link in Eclipse install new software dialogue window, this time it returned all DLTK 4.0 packages, wonderful!

After DLTK 4.0 installed, just install PDT 3.1.1 via this source in the installation dialogue:

  http://download.eclipse.org/tools/pdt/updates/release

and finally, as a frosting on the cake, I installed ShellED via this soource:

  http://sourceforge.net/projects/shelled/files/shelled/update/

Happy happy~~

Nov 1, 2013

郁闷啊,OSX 升级10.9后一周,WiFi找不到了

郁闷。
我的iMac27 2012一周前升了苹果最新的OSX 10.9.0 Maerick后,昨晚突然搜不到家里的WiFi信号了,而其它的设备,包括家里的所有平板,手机,还有我的笔记本(Windows7)都没有问题。
尤其严重的是,试图设置WiFi时,竟然导致系统假死,无限风火轮,甚至连勉强打开的Terminal都无法用键盘输入,程序切换倒还好用。
无奈之下,用时光机恢复了前天晚上的备份,好在这几天都在忙活试图在外置硬盘上给这台iMac装Windows7的事,没有太多需要备份的东西。
恢复之后,倒是不假死了,但是WiFi的问题依旧。
上网查询,原来我并不孤单,网上早已是哀鸿遍野,而且似乎没有什么准灵的解决办法。
难道真的要降回到山狮10.8.5?
今早到公司又查了一下,似乎编辑一下网络的Location可以解决,等回家试一下。

System Preferences -> Network -> Location -> Edit Locations.. -> make a new location, call it anything and then switch to that location and click apply.

另外的招数包括:
1 更改路由器无线设置,改用5G频段 (我的Netgear貌似不支持)
2 还是改路由器无线设置,改为802.1 b n g only (我的Netgear貌似已经是如此)
3 暂时用网线连接,等待苹果解决问题
4 降级,等苹果解决问题之后再升级

最后只能说一句,免费的苹果真的不那么好吃啊。

Jan 4, 2013

Bring PHP core auto-complete back in Eclipse 3.7

Imported a project from git server, found that I could not 'Add PHP Support...' to it to get php core function and keyword auto-complete during coding, it was really annoying...

Finally found this solution on Stackoverflow, it works for me.

1. Open file .buildpath in project root path.
2. Add following lines if there is no <buildpath> section:


<buildpath>
 <buildpathentry kind="src" path=""/>
 <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>

3. If there is <buildpath> already, just add this line:

<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>

4. Restart Eclipse.

source link: http://stackoverflow.com/questions/1232647/code-completion-assist-for-built-in-php-functions-in-eclipse-pdt