2015年10月8日 星期四

Android Tutorial

瘋狂Android講義


給Mac添加wget功能

http://www.arefly.com/mac-wget/

目前Mac平台上受到KeRanger惡意程式感染的軟體為BitTorrent,建議目前使用v2.90版本的用戶能儘速升級至v2.92(據悉,v2.91也有受惡意程式感染的可能性)。當然,如果沒有使用這個軟體的Mac用戶可不用擔心。

How To Change Resolution Display Mac OS X On VMware

https://www.youtube.com/watch?v=46GL3YW-r50#t=295.473708
VMware Workstation How to make Mac OS X Full Screen
https://www.youtube.com/watch?v=ynCuhJLe4FA


https://source.android.com/source/index.html


更新git

使用的是ubuntu 10.04,出現這個問題
fatal: git 1.7.2 or later required
git版本太舊
處理的方法如下:
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git
就可以更新到新版的git



git的版本号就是最新的
$      git --version
git version 1.8.5.2
错误:sudo apt-add-repository ppa:git-core/ppa时出现错误:gpg: requesting keyE1DF1F24from hkp server keyserver.ubuntu.com / gpgkeys: HTTP fetch error 7: couldn't connect to host
原因:keyserver.ubuntu.com使用非标准的11371端口,而一般公司的防火墙都屏蔽掉了该端口,而允许标准的80端口。
所以可以以如下方式强行使用80端口添加软件源:
$       sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 E1DF1F24
绿色部分是你要请求的Key.



JDK path 36241

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home

SDK path /Users/stephen/Library/Android/sdk
NDK path /Users/stephen/android-ndk-r10e
Ant path /Users/stephen/apache-ant-1.9.6/bin/ant

http://www.codedata.com.tw/mobile/android-tutorial-the-1st-class-3-app-project/

http://blog.burrowsapps.com/2015/02/how-to-completely-remove-android-studio.html


MAC 


Uninstalling the JDK

To uninstall the JDK, you must have Administrator privileges and execute the remove command either as root or by using the sudo(8) tool.
Navigate to /Library/Java/JavaVirtualMachines and remove the directory whose name matches the following format:*
    /Library/Java/JavaVirtualMachines/jdk<major>.<minor>.<macro[_update]>.jdk
For example, to uninstall 7u6:

    % rm -rf jdk1.7.0_06.jdk

Remix Mini Server - 远程访问之 SSH / SFTP

https://bbs.jide.com/forum.php?mod=viewthread&tid=4244&extra=page%3D3

https://www.computersnyou.com/2756/ati-amd-radeon-5450-fixed-graphics-kexts-hackintosh-osx10-9-mavericks/

GALAX GT610 1GB 網路價$990


Copy your custom splash image to /etc/ and name it “splash.png”.

GT210 -> PCIRootUID=1 IGPEnabler=No
GraphicsEnabler=Yes and UsekernelCache=Yes

GraphicsEnabler=Yes is the correct option for your card. Try adding IGPEnabler=No at boot screen. PCIRootUID=1 or a different value may work for your installation - try without it too. 
I had a GT210 that I bought just for testing about six months ago - I couldn't get it to work at the time properly with Snow Leopard, Mountain Lion or Mavericks. I tried it yesterday on an existing Yosemite and Mountain Lion installation and it worked both times. All that I did was use the GE=Yes and with Yosemite I added IGPEnabler=No flag. All memory was recognised and QE/CI works fine.

安裝 OSX 10.11 El Capitan 到 Intel PC

http://www.metamuse.net/2015/10/2015-osx-1011-el-capitan-intel-pc.html

歌手/创作人必备的8款插件

http://www.logiclocmusic.com/2015/07/12/eight-essential-plugins-for-singer-songwriters/Android Tutorial 

http://www.0daydown.com/09/240768.html

http://www.codedata.com.tw/mobile/android-tutorial-the-1st-class-1-sunwukong/

https://console.developers.google.com/freetrial

in MAC

Symbolic links in /usr/local/bin have been created for the following commands:


_php_runtime.py _python_runtime.py api_server.py appcfg.py backends_conversion.py bulkload_client.py bulkloader.py dev_appserver.py download_appstats.py endpointscfg.py gen_protorpc.py google_sql.py php_cli.py remote_api_shell.py run_tests.py wrapper_util.py 


In addition, /usr/local/google_appengine points to the SDK.


python 顯示中文在第一行加上, 下面任一行 code 即可正常執行

#-*- coding: UTF-8 -*- 

#coding=utf-8


如何在 GAE 上佈署 jQuery 與 ExtJS 專案

http://yhhuang1966.blogspot.tw/2014/03/gae-extjs.html

https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python

https://download.qt.io/archive/qt/4.8/4.8.5/
http://download.qt.io/official_releases/qtcreator/2.8/2.8.0/

https://www.gitbook.com/book/ycheng/qt5_cadaques-zh_tw/details

http://www.qtcn.org/bbs/i.php

https://download.qt.io/official_releases/qt/5.2/5.2.0/
http://doc.qt.io/qt-5/androidgs.html
http://blog.csdn.net/foruok/article/details/17305697

B4A中文学习资料

http://cmf2014.ys168.com/

https://community.spiceworks.com/appcenter/app/language_pack_1404

How Do I Install Shared Language Packs?

If someone else has already created a language pack, there's no need to do it again, right?
Navigate to SettingsAdvanced & International Options.
Scroll down to International Settings and find Locale:.
Click Browse Language Packs next to the drop-down menu.
Find the language pack you want to install and click it to go to its install page.
Click on the Install button to install that language pack into your Spiceworks Desktop.

https://community.spiceworks.com/appcenter/app/language_pack_1184

If that alone does not help you see a desktop, you must remove the ATI kexts from /S/L/E , because as long as they are in the System OSX will try to load them.

Boot into single user mode with -s ( US english keyboard layout ! )

then mount the partition read-writeable :

/sbin/mount -uw /

and move all ATI drivers to a backup folder :

mkdir /atibackup

cp -R /System/Library/Extensions/ATI*.* /atibackup

then delete them fully from /S/L/E :

rm -R /System/Library/Extensions/ATI*.*


reboot with

shutdown -R now

then boot with the -f parameter to create the mkext kextcache new.

you should now get into a basic 1024x768 desktop from where you can operate.

the troublesome kexts are in your HDD in folder atibackup.

Good Luck.

UBUNTU 14.04 it worked (system restart may be required):
sudo apt-get install xrdp
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install ubuntu-mate-core ubuntu-mate-desktop

echo mate-session >~/.xsession
sudo service xrdp restart

使用 XRDP 從 win7 遠端 Ubuntu 12.04LTS 桌面

以前大家用 VNC 來連遠端桌面

後來 XRDP 似乎可以讓 windows 不需要裝額外 client 就能遠端 Ubuntu

看了網路上說從 win7 連到 Ubuntu 12.04LTS 是OK的

於是我也來試試看

(1) 從軟體中心安裝 xrdp

或者 sudo apt-get install xrdp

(2) Dash -> 輸入"桌面分享" -> 允許其他使用者觀看/控制您的桌面打勾

網路上提供的地方是系統設定、應用程式、網際網路之類

但我在 Ubuntu 12.04 卻找不到,猜想是 11.04 以前的版本吧

我是從 Dash 搜尋「桌面」才找到的


然後就可以試試看從 win7 連過來了,要記得 ip 後面必須加 ":3389"

(可以 gedit /etc/xrdp/xrdp.ini 裡面更改預設 port)


如果連上去看不到畫面的話,可能是下列兩種情況之一:


1. 有桌布但除此之外什麼都沒有

網路上很容易找到的解法:

(1) 新增 ~/.xsession 這個檔案,在裡面寫

gnome-session --session=ubuntu-2dor
gnome-session --session=gnome-classic

兩種都可以,只是介面不同,可以自己使用看看介面差異在哪


我確定上面是需要的,但如果上面方法做了還是不行

那可能是少裝了以下套件:

(2) 安裝 gnome-session-fallback

sudo apt-get install gnome-session-fallback