HanG321 Blog
Be Shine, Be Smile, Be Wild
install Gradle and Groovy on Mint 17

install Gradle and Groovy on Mint 17

August 6, 2014|gradle, groovy, mint, ubuntu|電腦編程

Initially found a script to install gradle, but later on found out that script is not required because groovy environment manager can also install gradle.

Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
 
gradle_version=1.12
gradle_path=~/gradle
 
wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip -P /tmp/
sudo unzip -q /tmp/gradle-${gradle_version}-all.zip -d ${gradle_path}
sudo ln -sfn gradle-${gradle_version} ${gradle_path}/gradle
sudo printf "export GRADLE_HOME=${gradle_path}/gradle/\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
 
# check installation
gradle -v

GVM – Groovy enVironment Manager official webpage: http://gvmtool.net/

Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## install gvm
$ curl -s get.gvmtool.net | bash
 
## isstall groovy on default version
$ gvm install groovy
 
## see avaliable version of gradle
$ gvm list gradle
$ gvm install gradle 1.12
 
## verify
$ gvm current
Using:
gradle: 1.12
groovy: 2.3.6

 

Read more »
Google Now Launcher and voice command

Google Now Launcher and voice command

August 5, 2014|科技資訊

https://play.google.com/store/apps/details?id=com.google.android.launcher&hl=zh-HK 主要功能: • 在主螢幕上顯示 Google 即時資訊:及時取得個人所需資訊,便利程度更勝以往。 • 直接說出「Ok Google」:您只要在主螢幕上說出「Ok Google」啟動語音輸入,隨後即可接著說出搜尋查詢,或是對手機下達操作指令,例如傳送簡訊、規劃路線或播放歌曲。 • 加快搜尋速度:輕按搜尋框便可立即輸入查詢。 • 輕鬆存取您愛用的 Google 產品和服務,例如 Gmail、YouTube 和地圖。 • 加大檢視區域:狀態列和導覽列現已設計成半透明狀態,讓桌布的顯示效果更加清晰,即使展開應用程式導覽匣 (如果裝置支援的話),仍可看見桌布。 • 簡單易用的桌布挑選器:您可以選擇儲存在裝置或雲端上的任何圖片,然後調整位置並預覽畫面,最後再設為桌布。   Some commands: General Commands “Search for [chicken recipes]?” “Say [where is the supermarket] in [Spanish]?” “What is [Schrodinger’s cat]?” “Who invented [the internet]?” “What is the meaning of [life]?” “Who is married to [Ben Affleck]?” “Stock price of [Apple]” “Author of [Game of Thrones]” “How old is [Michael Jordan]?” “Post to Google+ [feeling great]” Notes & Reminders “Remind me to [buy milk] at [5 PM]” “Remind me [when I get / next time I’m at] [home / work / other location] [to send an email to John]” “Wake me up in [5 hours]” “Note to self: [I parked my car in section D]” “Set alarm for [8 PM]” Time & Date “What time is it in [Tokyo]?” “When is the sunset [in Chicago (optional)]” ”What is the time zone of [Berlin]” “Time at home” “Create a calendar event: [Dinner in New York] [Saturday at 8 PM]” Communication “Call [Daniel]” “Call [mum / dad / wife / uncle / aunt …]” “Send [email] to Daniel, [Subject: Meeting], [Message: Will be there in 5]” “Send [SMS] to Philipp mobile, don’t forget to buy milk” ”[Contact name]” Weather “Weather” “Is it going to rain [tomorrow / Monday]” “What’s the weather in [Boston]?” “How’s the weather in [Portland] on [Wednesday] going to be?” Maps & Navigation “Map of [Flagstaff]” “Show me the nearby [restaurant] on map” “Navigate to [Munich] on …

Read more »

News feed

August 4, 2014|生活記事

今早回到公司, 係pantry有個強國同事問我知唔知雲南地震. 其實我係有D 老派, 我lunch time 有時間就睇下appledaily 個apps, 放工回家or 臨訓係床上先掃下副刊財經港聞. instant news 反而係fb news feed. 突發野朋友間share / like 已經會知道. 今晚回家後再check 多一次news feed, 高雄有朋友RIP, 雲南真係冇, 唔知係因為強國天災人禍太多已經麻目, 又或者係fb 白痴既filter 冇display 個d 相關news feed. 不過強國咁勁, 抄左周老虎家都夠震災有突, 而且他們相信災難興邦, 又實在沒有什麼好擔心的.

Read more »
...10...16171819...40...

搜尋 Search

Copyright © 2004-2021 hang321.net. All Rights Reserved