2014年6月24日 星期二

android ImageView 详解----透明度+循环播放效果(二)

http://wiki.debian.org.hk/w/Install_Ubuntu_Netbook_Edition_10.04


QLabel *lbl=new QLabel(QLabel::trUtf8("這是一段測試文本-測試QLabel的具體使用方法"));

Script 指令技巧

http://wiki.weithenn.org/cgi-bin/wiki.pl?Script_%E6%8C%87%E4%BB%A4%E6%8A%80%E5%B7%A7

SET_NETWORK 0 psk "1234567890"' command timed out

http://lists.shmoo.com/pipermail/hostap/2009-December/020817.html

浅谈 Qt 布局那些事

http://mobile.51cto.com/symbian-273141.htm
http://www.cnblogs.com/qq78292959/archive/2012/08/13/2637209.html

Porting source code of the book C++ GUI Programming with Qt 4 from Qt4 to Qt5

 

https://github.com/mutse/qt5-book-code

Qt的QFile类详解
http://www.2cto.com/kf/201203/124292.html

QT4.2.1有辦法讀檔嗎?

http://moto.debian.tw/viewtopic.php?t=11639

Raspberry PI : wireless network 
http://gsyan888.blogspot.tw/2013/04/raspberry-pi-wireless-network.html

http://blog.csdn.net/fragmentalice/article/details/18940753


CENTOS 下安装 QT 遇到遇到错误 QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X1

http://blog.sina.com.cn/s/blog_48e301050101h083.html
sudo apt-get install libXrender*
http://blog.csdn.net/icedcap/article/details/20844643

android中利用ImageView 图片循环播放

http://www.111cn.net/sj/android/46512.htm

http://exilin.blog.163.com/blog/static/18275233320122300119807/

route add 10.0.0.0 mask 255.0.0.0 10.1.1.1 -p

route delete 10.0.0.0 mask 255.0.0.0 10.1.1.1

QEMU – Emulating Raspberry Pi the easy way (Linux or Windows!)
http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/


以 qemu-system-arm 運行 Raspbian

http://jamyy.us.to/blog/2013/11/5538.html

windows上搭建QEMU虚拟机笔记
http://www.2cto.com/os/201111/110753.html

http://qemu.weilnetz.de/w32/

树莓派学习9: Qemu虚拟机联网(主机和虚拟机互访、虚拟机可上网)
http://blog.csdn.net/c80486/article/details/8460755

# 增加2G大小给镜像 $ qemu-img resize ./2013-07-26-wheezy-raspbian.img +2G

跨平台虛擬機 - QEMU
如何使用 QEMU 在 Windows 上模擬 Raspberry Pi 環境?
http://blog.cavedu.com/raspberrypi-%E5%96%AE%E6%9D%BF%E9%9B%BB%E8%85%A6/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-qemu-%E5%9C%A8-windows-%E4%B8%8A%E6%A8%A1%E6%93%AC-raspberry-pi-%E7%92%B0%E5%A2%83%EF%BC%9F/

How to setup the user networking
https://docs.google.com/document/d/1JATJogszUkgWrOMzVhHrJL2ePKndFA3_qzq7bttEhag/edit?pli=1
記得要先把root的密碼變更
以利日後使用
$ sudo passwd root

連續輸入兩次新密碼即可

 turn off my Pi properly
sudo halt -p

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

Raspberry Pi 安裝心得、教學、簡介

http://wwssllabcd.github.io/blog/2013/01/31/how-to-setup-raspberry-pi/



1)、下载内核源码

# uname  -r

看一下内核什么版本。

我已经用rpi-update更新到最新,所以已经是3.10.19+。于是下载3.10.19+.
可以
也可以:
#git clone --depth 1 https://github.com/raspberrypi/linux.git

2)、清理、配置内核源码
将源码移至/usr/src目录
# mv linux-rpi-3.12.y /usr/src  
建立内核模块库目录的链接  
# ln -s /usr/src/linux-rpi-3.12.y /lib/modules/3.12.31+/build  
# cd /lib/modules/3.12.31+/build  
make mrproper可以看作更加强劲的make clean命令,用来清除环境变量,即清除配置文件,一般编译内核前都要运行  
# make mrproper 将当前正在使用的系统的内核配置生成内核配置信息  
# gzip -dc /proc/config.gz > .config  
生成编译内核所需要的东西  
# make modules_prepare  
获取内核编译时生成的内核模块导出符号文件,因为不是从头编译内核,所以没有,但是编译内核模块需要这个  

到这里,可以证实开始编译驱动了。

3)、编译驱动

小米 wifi
解压缩后,修改common/rtusb_dev_id.c文件,找到
{USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */
下面加一行
{USB_DEVICE(0x2717,0x4106)}, /* Xiaomi*/

然后回到内核源码根目录,执行
#sudo  make
然后会有一个比较久的编译时间,完成以后。os/linux目录就有了MT7601Usta.ko文件了。
可以用modinfo命令查看内核模块信息:
#modinfo MT7601Usta.ko
然后安装模块
#sudo  cp  mt7601Usta.ko  /lib/modules/3.12.31+/kernel/drivers/net/wireless/
这样还不行,还要:
在/etc/目录创建Wireless/RT2870STA/子目录。然后:
#sudo cp  RT2870STA.dat   /etc/Wireless/RT2870STA/
#sudo cp  RT2870STACard.dat   /etc/Wireless/RT2870STA/

这个时候,执行
分析可加载模块的依赖性,生成modules.dep文件和映射文件
#sudo  depmod -a
加载模块
#sudo modprobe  MT7601Usta
查看网络接口,这时候应该出来一个ar0的无线接口
#ifocnfig
然后到/etc/network/interface里面把wlan0,然后修改为ar0。可以共用wpa_supplicat配置文件。
四、总结:
该方法是一个驱动编译的通用方法。
编译好的驱动,可以直接复制ko文件给相同内核的raspberry pi使用。


VNC (VIRTUAL NETWORK COMPUTING)
http://www.raspberrypi.org/documentation/remote-access/vnc/

qemu在linux和windows下tap网络的配置方法

http://www.blogjava.net/javafever/archive/2006/11/20/82403.html

OpenVPN 2.3.4 -- released on 2014.05.02

https://openvpn.net/index.php/open-source/downloads.html

 qemu虚拟机与外部网络的通信
http://blog.chinaunix.net/uid-26061689-id-2981914.html

Windows主机的Qemu网络配置

https://www.google.com.tw/search?q=Windows%E4%B8%BB%E6%9C%BA%E7%9A%84Qemu%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE&oq=Windows%E4%B8%BB%E6%9C%BA%E7%9A%84Qemu%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE&aqs=chrome..69i57j69i61&sourceid=chrome&es_sm=122&ie=UTF-8

windows xp下qemu虚拟ubuntu的网络配置笔记

http://www.verydemo.com/cj.jsp?c=59&u=windowsxp-xia-qemu-xu-ni-ubuntu-de-wang-luo-pei-zhi-bi-ji

Raspberry Pi 筆記(八):安裝Webmin、RDP、FTP、Web、VNC、Web伺服器及無線網路

http://atceiling.blogspot.tw/2014/02/raspberry-pi-webminftpwebvncweb.html#.U-uCr_mSySo
把 vsftpd.conf 把其中 anonymous 加上註解,把 write 跟 local 拿掉註解。再用最後一行重開就好
基于Basic4android的Android应用开发指南
http://blog.csdn.net/qinix2/article/details/7729177

巧用VMware Workstation的clone来制作虚拟机模板
http://derekyang.blog.51cto.com/2083604/1206790

https://mega.co.nz/#!uVZnxTQJ!8N10Z0AU_9YHH8O7oJiC6r-JEeKDh8AXQsiYIL2JDuk


https://mega.co.nz/#!iE5BGJLJ!8IhIqj7PDzzu7Lfx9oAFdlraGlQZ64oVC8Bxa36SS4A


在 QEMU 和 KVM 上运行 OS X Mavericks

http://www.linuxidc.com/Linux/2014-06/102809.htm

QEMU 2.1.0 发布下载,开源模拟器

http://www.linuxidc.com/Linux/2014-08/105045.htm

http://qemu-buch.de/


让golang在Raspberry Pi上飞一会

http://www.lixin.me/blog/2013/02/12/29680

Qt资源
http://www.qter.org/?page_id=161
http://qt-project.org/wiki/RaspberryPi_Beginners_guide


Tutorial : apt-get install Qt4 on the Rasperry Pi

http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi

树莓派上Qt5交叉编译移植新手指南

http://blog.diveinedu.net/%E6%A0%91%E8%8E%93%E6%B4%BE%E4%B8%8Aqt5%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E7%A7%BB%E6%A4%8D%E6%96%B0%E6%89%8B%E6%8C%87%E5%8D%97/

Qt中显示连续的图片 

 http://jinhao0513.blog.163.com/blog/static/11067348120112281021459/


C++ 入門指南 - 目錄

http://pydoing.blogspot.tw/2012/10/cpp-guide.html

2014年6月18日 星期三

Android自动滚动轮播循环的ViewPager

source.list的更新源選擇可以到
https://launchpad.net/ubuntu/+archivemirrors尋找
( 找Taiwan的 )
http://www.trinea.cn/android/auto-scroll-view-pager/
爱情强气流 Amour & Turbulences
Git簡易教學
http://ncu-csie-snmg.github.io/2013-NCU-CSIE-Website-Design-Competition/git.html#section-github

簡單 Git 教學

https://github.com/dylandy/Easy-Git-Tutorial


[Mac] 安裝 Homebrew 及使用

http://devmanna.blogspot.tw/2014/01/mac-homebrew.html

brew install git

GitHub 第一個專案教學
http://techaride.blogspot.tw/2013/08/github-github.html

Eclipse上GIT插件EGIT使用手册
http://blog.csdn.net/luckarecs/article/details/7427605

EGit : 從 Github Import 專案到本地端

http://puremonkey2010.blogspot.tw/2012/05/eclipse-plugin-egit-github-import.html



GitHub設定

接著去 GitHub 申請帳號,並 create Repository ,然後按照網站給的教學來設定吧!!
  • git config --global user.name "Your Name"
  • git config --global user.email xxx@mail.com
  • 建立 private/public key : 就是建立一對密碼,把 private 存到自已電腦的 /home/name/.ssh/id_rsa , 另外一個 public key 存到 github。
    • 建立key方式 : ssh-keygen -t rsa -C "xxxm"
    • 測試進線 ssh -T git@github.com : 若收到訊息「Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access.」這樣就算成功囉。

https://github.com/ViewPic/v0.1

Android实现图片滚动控件,含页签功能,让你的应用像淘宝一样炫起来
http://blog.csdn.net/guolin_blog/article/details/8769904

 Android图片滚动,加入自动播放功能
http://blog.csdn.net/guolin_blog/article/details/8796877
Android中实现多张图片自动播放  
http://songyingjian2009.blog.163.com/blog/static/13183024220126275716891/


SD卡图片自动播放功能实现

http://www.cnblogs.com/hui-wang/archive/2012/07/24/2606565.html

Gallery元件的自動輪播與無限循環效果

http://dean-android.blogspot.tw/2013/04/androidgallery.html

【Android应用实例之一】自动播放Assets下图片

http://www.mythroad.net/2011/09/24/android_application_instance_one_autoplay_assets_under_picture/


Android程式範例] 讀取XML利用XML Pull Parsing解析政府的XML Open DATA

http://www.unood.me/2014/04/android-xml-pull-parsingxml-open-data.html#more



[Android程式範例] 利用好用的HTML Parser-Jsoup抓取網頁資料

http://www.unood.me/2014/04/android-html-parser-jsoup.html#more

2014年6月10日 星期二

Go 编程语言指南

 Go home page      http://golang.org/   http://golang.org/dl/   http://golang.tw/

http://www.golang-book.com/assets/pdf/gobook.pdf

Golang开发环境搭建(Notepad++、LiteIDE两种方式以及martini框架使用)
http://blog.csdn.net/gdutliuyun827/article/details/25142483

http://go-tour-zh.appspot.com/welcome/1

http://www.vaikan.com/go/a-tour-of-go/#1

Go 交叉編譯輸出 Android (ARMv7) 和 Windows x86 可執行檔


http://chuiwenchiu.wordpress.com/2014/03/24/go-%E4%BA%A4%E5%8F%89%E7%B7%A8%E8%AD%AF%E8%BC%B8%E5%87%BA-android-armv7-%E5%92%8C-windows-x86-%E5%8F%AF%E5%9F%B7%E8%A1%8C%E6%AA%94/


Image Gallery Example in Android

http://www.edumobile.org/android/android-development/image-gallery-example-in-android/

Android--ImageSwitcher案例分析详解

http://www.cnblogs.com/vus520/archive/2012/08/20/2647718.html


android使用Timer实现ImageSwitcher自动切换

http://qefee.com/2014/03/06/android%E4%BD%BF%E7%94%A8timer%E5%AE%9E%E7%8E%B0imageswitcher%E8%87%AA%E5%8A%A8%E5%88%87%E6%8D%A2/

Android入门教程之Gallery

http://www.linuxidc.com/Linux/2012-02/53069.htm

Android 控件之ImageSwitcher图片切换器

http://www.linuxidc.com/Linux/2012-02/53070.htm

Android中Gallery和ImageSwitcher同步自动(滚动)播放图片库

http://www.linuxidc.com/Linux/2012-02/53071.htm

自定义的图片轮询器ScrollView
http://blog.csdn.net/w54dxs/article/details/22576087

2014年6月2日 星期一

raspberry pi

2014年5月1日 星期四

XXX帳號沒有權限用sudo切換

http://goods.ruten.com.tw/item/show?21405174289328

http://download.msn.com.cn/messenger/2009/
原因:XXX帳號沒有權限用sudo切換。

解決:
修改 /etc/sudoers 的內容,
在root ALL=(ALL)  ALL下面,
加上XXX ALL=(ALL)  ALL


以Centos, Scientific Linux為例:
1.輸入su - 切換到root帳號,並輸入root密碼。
2.輸入chmod u+w /etc/sudoers,具有寫入的權限。
3.輸入vim /etc/sudoers,開始修改 /etc/sudoers檔案。
4.找出root ALL=(ALL)  ALL
5.在root ALL=(ALL)  ALL 下面按 i 進行編輯,加上XXX ALL=(ALL) ALL
6.按Esc退出編輯,輸入:wq 儲存並退出檔案。
7.輸入chmod u-w /etc/sudoers,撤銷寫入的權限。

CENTOS 6安裝VNC
http://note.tc.edu.tw/908.html


Node.js 中文学习资料和教程导航

http://www.cnblogs.com/lhb25/p/node-js-tutorials.html

【一起学node.js】再再版啦~
http://cnodejs.org/topic/519e01c563e9f8a542fa68f9

node.js学习笔记——《node.js开发指南》代码中需要注意的几点
http://rhsieh76.pixnet.net/blog/post/55914547

Delphi中如何調用C#寫的Dll

如何在Delphi 中调用C#生成的DLL类库

http://www.cnblogs.com/liaoyi/archive/2012/08/10/2631849.html

http://www.abcxd.com/delphi/abcxddelphi/delphiDLL/401/

一个进程间同步和通讯的 C# 框架

http://www.oschina.net/translate/a-c-framework-for-interprocess-synchronization-and-communication

Using Win32 Semaphores in C#

http://www.codeproject.com/Articles/2982/Using-Win-Semaphores-in-C


http://basuya.blogspot.tw/2009/10/windows-xp-sp3-windows-7.html
%windir%\system32\mstsc.exe /span

http://blog.longwin.com.tw/2007/08/programmer_best_font_monaco_2007/

2014年3月23日 星期日

初探Ember.js

http://bbs.pcbeta.com/viewthread-1431275-1-1.html

MAC安裝《Genymotion Android模擬器》

http://www.minwt.com/mac/10083.html

Android编程权威指南

http://www.ituring.com.cn/minibook/1145

Ember.js 的初学者指南

http://www.adobe.com/cn/devnet/html5/articles/flame-on-a-beginners-guide-to-emberjs.html

MVC設計模式與Yii Framework簡介
http://newsletter.ascc.sinica.edu.tw/news/read_news.php?nid=2717


如何建立和管理 NTFS 連接點

http://support.microsoft.com/kb/205524/zh-tw

安卓 Unable to resolve target 'android-XX'解决方案

androidmainfest.xml中有一行关键字
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />

还有project.properties中也有关键字,也需要改掉:
target=android-17
然后就ok了,

用tools,fix一下。

(提示不属于一个TYPE时)用Ctrl+Shift+O添加下包。


到此,问题解决。

打開“實用工具”裡面的“終端”,鍵入“sysctl machdep.cpu.brand_string”,回車,CPU具體型號就出來了。


通过Android SDK Manager安装Intel Hardware Accelerated Execution manager(Haxm)

http://www.crifan.com/adt_android_sdk_manager_install_intel_hardware_accelerator_execution_manager_haxm/

如何匯出AD登入帳號以及Email帳號
http://technet.microsoft.com/zh-tw/library/cc757566(v=ws.10).aspx

2014年3月9日 星期日

一張圖搞懂蘇格蘭威士忌分類

http://www.chnxp.com.cn/
http://www.eagleget.com/tw

/http://www.businessweekly.com.tw/KBlogArticle.aspx?ID=5272&pnumber=1

一般 Mac 的截圖都是 PNG 檔,對於一些常用 JPG 檔的人來說

都會有些許的不便,其實只要一個指令就可以解決

1. 進入 應用程式>工具程式>終端機

2. 輸入:defaults write com.apple.screencapture type jpg

截出來的圖就會變成 jpg

Mac 一定要學的螢幕抓圖技巧

http://appleuser.com/2013/08/17/taking-screenshots-in-mac/]

How To Fix Hackintosh Not Booting After the 10.9.2 Update


http://www.niresh12495.com/page/apple/articles/how-to/how-to-fix-hackintosh-not-booting-after-the-10-r29/

如何修改按鍵位置,讓一般 PC 鍵盤可以在 Mac 電腦中正常使用?

http://briian.com/8526/keyboard-remap.html

Mac - 移除 Java JDK 6 ( Remove Java JDK 6 on Mac )

http://hatemegalaxy.blogspot.tw/2013/11/mac-java-jdk-6.html

如何解决在ML 10.8.2下面基于Eclipse+JDK6进行开发的问题?多谢了!

问题补充:已找到解决办法,在这里:http://support.apple.com/downloads/#java 下载最新的 JavaForOSX.dmg 安装后即可解决。 

更新ADT 後src 及 layout 不會自動建立

http://blog.fmbase.tw/2014/03/after-update-adt-cannot-create-src-and-layout-automatically/


於 Intel® 架構加速 Android* 模擬器

http://software.intel.com/sites/landingpage/tw/speeding-up-the-android-emulator-on-intel-architecture.php


在Mac OS X上使用HAXM加速Android Emulator

http://smilejay.com/2013/10/mac-hax-android-emulator/

ntel® Hardware Accelerated Execution Manager

http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager


Windows,Mac OS X 时间不同步的解决办法
Windows与Mac缺省看待系统硬件时间的方式是不一样的:
Windows把系统硬件时间当作本地时间(local time),即操作系统中显示的时间跟BIOS/EFI中显示的时间是一样的。
Mac把硬件时间当作UTC,操作系统中显示的时间是硬件时间经过换算得来的,比如说北京时间是GMT+8,则系统中显示时间是硬件时间+8。
UTC即Universal Time Coordinated,协调世界时
GMT即Greenwich Mean Time,格林尼治平时
假如你的Mac和Windows中设置的时区都为北京时间东八区,而你在Mac中把当前系统时间更改为9:00AM。则此时硬件中存储的实际是UTC时间1:00AM。这时你重启进入Windows后,你会发现windows系统中显示的时间是1:00AM,比Mac中慢了八个小时。同理,你在Windows中更改或用网络同步了系统时间后,再到Mac中去看,系统就会快了8小时。在实行夏令时的地区,情况可能会更复杂些。
解决方法:
让Windows把硬件时间当作 UTC
开始->运行->CMD,打开命令行程序(Vista或Win7则要以管理员方式打开命令行程序方可有权限访问注册表),在命令行中输入下面命令并回车
Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1