background preloader

List of User Agent Strings

List of User Agent Strings

PhoneGapとSymfony2で始めるオフライン対応アプリ開発 AndroidやiPhoneのブラウザではHTML5が全てサポートされているわけではないので、PhoneGapでブラウザの差を吸収しつつ、HTML5/JavaScriptで作成したものをアプリ化して、ネットワークに接続されていない状態でも使えるようにします。 HTML5単体でもApplicationCacheなどはあるものの、初回読み込みは必要なので、完全にオフラインで動作させることはできません。 Indexed DB APIはAndroid標準ブラウザでは使えませんので、オフライン状態でかつローカルのデータベースを使いたい場合はPhoneGapやTitaniumなどを使う必要があります。 今回はPhoneGapとjQuery Mobileを使用してオフラインアプリをAndroid向けに開発します。Android向けなんですが、たぶんiOSでも動作します。 ひとまずAndroidでビルドしてみます。 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を実施 Symfony2のBehat Bundleで受け入れテストを日本語で記述して自動化します。 Sahiのインストール behat+minkの設定

100 jQuery Sliders for Images/Content (Part 1) It seems image and content sliders are getting more and more popular amongst most websites these days. So how do you find a decent one that will be suitable for your webiste? Well, we have collected 100 jQuery image and content sliders & plugins for you to check out. Below is the first part (plugins 1-50) of our huge collection of jQuery sliders for your images and content! Related Posts: 1. RoyalSlider for WordPress is a cross-device jQuery content slider with touch-based navigation and fluid layout. Source Demo 2. “Estro” meaning “creativity”, “talent” or “inspiration”, in Italian, is a fitting moniker for this beautiful slider. Source Demo 3. Slider Evolution is a jQuery plugin that lets you easily create powerful JavaScript sliders with very nice transition effects. Source Demo 4. liJQuery Image Slider Is a jQuery plugin for WordPress carefully crafted slider/banner image rotator, full of features, easy to install and customize. Source Demo 5. Source Demo Source Demo 7. Source Demo 8. 9.

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

Browser Display Statistics 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.

CSS3 in practice, maddesigns (Sven Wolfermann) #css3 maddesigns | Sven Wolfermann WebDevCon Hamburg, 17.10.2011 use arrow keys to navigate rounded corners! YEAH!!!!111eleven border-radius border-radius: 20px; border-radius: 10px 40px; border-radius: 10px 40px 40px 10px; border-radius: 10px / 40px; border-radius » enlarge box border-radius: 50px; border-radius: 50%; border-radius » browser-specific prefixes -webkit-border-radius: 4px;-moz-border-radius: 4px;-o-border-radius: 4px;-khtml-border-radius: 4px; border-radius: 4px; all modern browsers and IE9 understand border-radius: 4px; border-radius » browser support Chrome for sure Firefox from version 4, a bit buggy in 3.6 Opera from version 11.5 Safari a bit buggy with border and percentage values Internet Explorer from version 9 ”But my IE7 does not show rounded corners! It doesn't have to! There is no good (simple) way to show rounded corners in IE6-8. The content will not get better with rounded corners. Browser market in Europe rounded corners web DevCon The Conference for web developer

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)。 今天要介紹的是另一個 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 裡。 原來的名字太長了,你可以自己改。 $ . . 結語

The Easiest Way to Build your First iPhone App Mobile websites have come a long way, but if you want to take full advantage of a smartphone's hardware, or get listed in the iTunes App Store, you need to compile your code. In this tutorial, we'll show you how to create a mobile web app with an iPhone look and feel using jQTouch, then turn it into a native iPhone app using Phonegap. No Objective-C necessary. Tutorial Details Program: PhonegapVersion: 0.80Difficulty: IntermediateEstimated Completion Time: 1 hour Requirements To complete this tutorial, you'll need the following: Mac OS XXCode (included with Mac OS X, but installed separately)iPhone SDK (registration required)PhoneGap 0.80 Introduction to PhoneGap PhoneGap is an open-source framework that can turn any web app into a native app for iPhone, BlackBerry and Android. Included in the PhoneGap distribution is everything you need to build and run an iPhone app. Building and Running an iPhone App First, open up the iPhone folder, and double-click on PhoneGap.xcodeproj: That's it!

Tony Qu

Related: