HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About
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

 

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 car”
  • “How far is [Berlin] from [Munich]?”
  • “Directions to [address / business name / other destination]”

Conversions & Calculations

  • “What is the tip for [125] dollars?”
  • “Convert [currency / length …] to [currency / length …]”
  • “How much is [18] times [48]?”
  • “What is [45] percent of [350]?”
  • “Square root of [81]”
  • “….. equals”

Sports

  • “How are [the New York Yankees] doing?”
  • “When is the next [Los Angeles Lakers] game?”
  • “Show me the [Premier League] table”
  • “Did [Bayern Munich] win their last game?”

Flight Information

  • “Flight [AA 125]?”
  • “Flight status of [AA 125]”
  • “Has [LH 210] landed?”
  • “When will [AA 120] land / depart?”

Web Browsing

  • “Go to [Huffington Post]?”
  • “Open [xda.com]”
  • “Show me [android.com]”
  • “Browse to [reddit.com]”

Entertainment

  • “Listen to / play [Intro] by [The XX]?”
  • “YouTube [fail compilation]?”
  • “Who acted in [Ocean’s 11]?”
  • “Who is the producer of [Gladiator]?”
  • “When was [Alien] released?”
  • “Runtime of [Avatar]”
  • “Listen to TV”
  • “What’s this song?”

Easter Eggs

  • “Do a barrel roll”
  • “What’s the loneliest number?”
  • “Make me a sandwich!”
  • “Sudo make me a sandwich!”
  • “When am I?”
  • “Okay Jarvis, …” (Instead of “Okay Google, …”)
  • “Who are you?”
  • “How much wood could a woodchuck chuck if a woodchuck could chuck wood.”
  • “Beam me up, Scotty!”
  • “Tilt” or “Askew”
  • “What is your favorite color?”
  • “Up up down down left right left right”
  • “Tea, Earl Grey, hot” (That’s a tricky one)
  • “Go go gadget [app name]”
  • “When does the narwhal bacon?”
  • “What is the Bacon number of [random actor]?”
  • “What does the fox say?”

other examples
http://www.addictivetips.com/android/google-now-commands-smart-cards-list/

http://phandroid.com/2014/05/29/google-now-voice-commands/

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.

不過強國咁勁, 抄左周老虎家都夠震災有突, 而且他們相信災難興邦, 又實在沒有什麼好擔心的.

...10...16171819...40...

 

如果你喜歡我的文章,請幫忙按 1-10次 LikeButton 化讚為賞,非常感謝!越喜歡當然可以越按越多 😛

搜尋 Search

簡介 Bio

香港人,現居南十字星空下。

為人貪心,科技、生活、財經、散文 皆有興趣,周身刀冇張利。

思想矛盾,喜歡現在work-life balance 既生活又懷念a city never sleep。

 

每月送我一杯咖啡支持我: liker.land/hang321




分類 Categories

  • 好文閱讀
  • 時事評論
  • 未分類
  • 生活記事
  • 科技資訊
  • 金融財經
  • 電腦編程
  • 音樂電影

文章存檔 Archives




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 嫁人要嫁工程師
    嫁人要嫁工程師 April 27, 2006

標籤雲 Tag Cloud

CentOS Character chroot Cluster crash cryptography DD-WRT debug Domino DSM Dual Core DWA email ESXi GCP git google HylaFax IE Java Javascript JRE LikeCoin Linux log LotusScript mint MX MySQL nginx PKI PowerShell Qwiklabs srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

June 2025
M T W T F S S
  « Feb    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

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