background preloader

Work learning

Facebook Twitter

How to find mac address in c#? | The ASP.NET Forums. Tony Qu. Android Development with AndroVM | Xexex's Java 和其他二三事. Android Development with AndroVM iOS 的開發一直都有 iOS Simulator 可用,速度快功能也全,讓開發的步調變快許多。 Android 也有一個 Android Emulator,功能更多,但是開啟慢,執行更慢到爆,所以一直沒什麼人在用,大家都是拿實機來開發。 後來 Android Emulator 出了 Intel x86 版 (現在出到 4.1),這玩意我實際裝過後發現的確比原有的快很多,但是裡面沒有 Google Api,我們公司的 App 跑不起來 (Cubie Messenger 有用到 Google Map)。

所以 x86 emulator 跟我們無緣了。 今天要介紹的是另一個 Open Source Android VM,叫 AndroVM,我們公司拿它來開發了 Android 版 Cubie 一個月左右,我可以說 Android 的開發節奏總算能跟上 iOS 了。 AndroVM 是跑在 Virtualbox VM 裡,再透過內部網路跟本機 OS 溝通,所以要先安裝 VirtualBox,到官網下載直接裝就好,沒什麼難度。 再來是設定 VirtualBox 本機的 DHCP。 新增本機網路後,應該會出現一個 'vboxnet0' 的網路,double click 開啟它,切到 DHCP Server -> 勾選 Enable Server,再填入以下的值: 如果你知道 DHCP 是什麼原理你可以自己修改上面的值符合你的需求。 接下來下載 AndroVM image,先到 AndroiVM 官網有幾個 .OVA 可供下載,一般來說你是開發手機 App應該是下載 "vbox86p version with gapps & houdini" 這個版本。 Vbox86p : 手機版, 預設解析度 480×800vbox86t : Tablet 版,預設解析度 1024×600vbox86tp : Tablet 版,但有電話的功能,預設解析度 1024×600gapps : 代表包含 Google 相關服務 (有 Google Play)houdini: 代表包含 Arm emulation (AndroidVM 是跑在 x86 上,所以反過來需要去模擬 Arm) 接下來就是匯入 AndroVM .OVA 檔到 VirtualBox 裡。

Tutorial Series: using WinJS & WinRT to build a fun HTML5 Camera Application for Windows 8 (1/4) - David Rousset. Using HTML5, JavaScript & CSS3, we’re going to build a fun HTML5 camera application for Windows 8 and its Modern UI. You will learn how to use WinRT to access to the camera and the file system to take some pictures & videos. We will then work a bit on the layout with CSS3 grid & flexbox and provide some visual feedback to the user via CSS3 animations. I will also show you how to use WinJS and its FlipView control via a templating rendering JS function to embed the whole experience. At last, we will see how to manipulate the images taken with the camera to apply some filters effects via the canvas element or directly thanks to a C++ WinRT component. At the end of this 4 tutorials, you will have built this fun application: In this first tutorial, we will be concentrated on initializing the camera, displaying the live preview into a video tag & writing a picture inside the My Pictures special folder.

Pre-requisites: to follow these tutorials, you need first to: <p>Content goes here</p> Boom. How to Dynamically Generate Forms Using Form Events (current. Often times, a form can't be created statically. In this entry, you'll learn how to customize your form based on three common use-cases: Customizing your Form based on the underlying Data Example: you have a "Product" form and need to modify/add/remove a field based on the data on the underlying Product being edited. How to Dynamically Generate Forms based on user Data Example: you create a "Friend Message" form and need to build a drop-down that contains only users that are friends with the current authenticated user.

Dynamic generation for submitted Forms Example: on a registration form, you have a "country" field and a "state" field which should populate dynamically based on the value in the "country" field. Customizing your Form based on the underlying Data Before jumping right into dynamic form generation, hold on and recall what a bare form class looks like: Note Assume for a moment that this form utilizes an imaginary "Product" class that has only two properties ("name" and "price"). Or. Shell script 裡如何使用正規表示法比對字串 ? PhoneGapとSymfony2で始めるオフライン対応アプリ開発. AndroidやiPhoneのブラウザではHTML5が全てサポートされているわけではないので、PhoneGapでブラウザの差を吸収しつつ、HTML5/JavaScriptで作成したものをアプリ化して、ネットワークに接続されていない状態でも使えるようにします。 HTML5単体でもApplicationCacheなどはあるものの、初回読み込みは必要なので、完全にオフラインで動作させることはできません。

Indexed DB APIはAndroid標準ブラウザでは使えませんので、オフライン状態でかつローカルのデータベースを使いたい場合はPhoneGapやTitaniumなどを使う必要があります。 今回はPhoneGapとjQuery Mobileを使用してオフラインアプリをAndroid向けに開発します。 Android向けなんですが、たぶんiOSでも動作します。 ひとまずAndroidでビルドしてみます。 環境はMacですが、Windowsでもさほど変わらない(はず) Android SDKのインストール SDKのダウンロードはこちら EclipseにADTプラグインを追加 Eclipseの Help > install new software から このURLを指定する。 Android SDK ManagerでToolsとAndroidプラットフォームのSDKをインストール。 PhoneGapの導入 こちら からPhoneGap1.7を頂戴します。 で、このスタートガイドに従ってHello World的なものをやります。 1. Activityを書き換える assets/www/index.html を書く jQuery Mobileを配置 assets/js/jquery.mobile に jQuery Mobileからダウンロードしてきたアーカイブを展開します。 HTMLを書き換え これでひとまずPhoneGap上でjQuery Mobileが動作しました。 Behat + MinkでATDDを実施 Sahiのインストール -------- SAHI_HOME: .. List of User Agent Strings. Language Codes (Internet Explorer) JMeter - User's Manual: Elements of a Test Plan.