Mobile detection in Classic ASP | Design & Code Blog At TRS Design we love classic ASP, most of our sites are classic ASP – yes it’s a little old now but it’s powerful, it’s secure and it’s stable. It allows us to write great sites that always work for our clients! We’re fans. In this post we’re sharing how we do mobile device detection, whether it’s phone or tablet, Apple or Android, we basically pass through an array of devices to see if there’s a match, if there is we set a variable, session or cookie, else we just display the page. The Code: Dim user_agent, mobile_browser, Regex, match, mobile_agents, mobile_ua, i, size user_agent = Request.ServerVariables("HTTP_USER_AGENT") mobile_browser = 0 Set Regex = New RegExp With Regex .Pattern = "(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|windows ce|pda|mobile|mini|palm)" .IgnoreCase = True .Global = True End With match = Regex.Test(user_agent) If match Then mobile_browser = mobile_browser+1 Categorized as Classic ASP Coding
Coding in Objective-C 2.0 About this Screencast After watching these video tutorials, you’ll be more confident to start writing high-quality iPhone and Mac applications. You’ll not just know how to write code, you’ll also understand why it works. You’ll feel more comfortable with the Objective-C syntax and object-oriented programming in general. Watch a free sampler movie of this screencast series Contents and Extracts In addition to the videos, you can also download the source code for each episode so you can follow along and experiment on your own. Episode 1: Classes, Objects, and Messages (59 minutes) In this episode, we’ll write a small program in Xcode to learn the basics of object-oriented programming with Objective-C. If you’ve purchased an episode in this series, and your account is configured to receive e-mail announcements from us, we’ll send you an e-mail when new episodes are released. Audience These screencasts are ideal for programmers who are new to object-oriented programming and Objective-C.
Basic4android (Basic for Android) - Rapid Application Development Cocoa Dev Central: Learn Objective-C Objective-C Objective-C is the primary language used to write Mac software. If you're comfortable with basic object-oriented concepts and the C language, Objective-C will make a lot of sense. This tutorial is written and illustrated by Scott Stevenson Copyright © 2008 Scott Stevenson Calling Methods To get started as quickly as possible, let's look at some simple examples. [object method]; [object methodWithInput:input]; Methods can return a value: output = [object methodWithOutput]; output = [object methodWithInputAndOutput:input]; You can call methods on classes too, which is how you create objects. id myObject = [NSString string]; The id type means that the myObject variable can refer to any kind of object, so the actual class and the methods it implements aren't known when you compile the app. In this example, it's obvious the object type will be an NSString, so we can change the type: NSString* myString = [NSString string]; Notice that there's a asterisk to the right of the object type. Init
android-scripting - Scripting Layer for Android brings scripting languages to Android. SL4A's source has moved to github. The issue tracker, wiki, and downloads will continue to be hosted here. Scripting Layer for Android (SL4A) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. Scripts can be run interactively in a terminal, in the background, or via Locale. SL4A is designed for developers and is alpha quality software. To install SL4A, you will need to enable the "Unknown sources" option in your device's "Application" settings. Still have questions? Want to learn more? Start by reading "Introducing SL4A: The Scripting Layer for Android" by Pieter Greyling and "Packaging and Distributing" by Paul Ferrill. You can buy "Practical Android Projects" on Amazon or directly from Apress. Apress is happy to provide 25% off the price of the "Practical Android Projects" eBook. You can buy "Pro Android Python with SL4A" directly from Apress. What's Powered by SL4A? Want to see SL4A in action?
Programming With Cocoa The Cocoa programming environment is used to create native Mac OS X applications. Mac DevCenter features a variety of tutorials covering Cocoa. If you're just getting started and don't have an extensive background in "C," then start with Seth Roby's "C is for Cocoa" tutorial. As you become more comfortable in this environment, try some of Mike Beam's more advanced lessons. New tutorials are constantly being added, so be sure to check back regularly. Understanding the NSTableView Class This article will provide you with an in-depth introduction on how to use the NSTableView Cocoa class to display tabular data. Inside StYNCies, Part 2 In the first part of this two-part series, Matthew Russell showed you how to develop a user interface that lives up in your menubar like the system clock. Inside StYNCies Stickies is one of the handiest little apps out there. BYOB: Build Your Own Browser, Part 2 In part one Andrew Anderson showed you how to get your hands dirty with WebKit.
Learning Objective-C: A Primer Objective-C is the primary programming language you use when writing software for OS X and iOS. It’s a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime. At a Glance This document introduces the Objective-C language and offers extensive examples of its use. An App Is Built from a Network of Objects When building apps for OS X or iOS, you’ll spend most of your time working with objects. If you’re writing your own class, start by providing a description of the class that details the intended public interface to instances of the class. Categories Extend Existing Classes Protocols Define Messaging Contracts Blocks Simplify Common Tasks
simple - Simple Compiler And Runtime Update: We fixed a couple more problems with the Windows binary distribution. The download file has been updated. Our apologies! Version 0.1.1 also contains a new component for a location sensor. In the 90s, a big company from up north was extremely successful with a dialect of the programming language BASIC (acronym for Beginner's All-purpose Symbolic Instruction Code). One of the reasons it was so successful was that the language was easy to learn and use. Bringing an easy to learn and use language to the mobile world and the Android platform is the goal of the Simple project. Similar to its 90s relative, Simple programs are form definitions (which contain components) and code (which contains the program logic). Below you find screenshots from two sample applications written in Simple - EtchSketch and a version of Tetris. For more information on writing Simple application see HowToWriteASimpleApplication.
Learn RFO Basic - The Easiest Way To Create Android Apps rhomobile/rhodes Tapucco's Lab: BASIC interpreter for Android I've always been a fan of programming especially on cellphone but the thing is I really don't have much time learning complex concept in programming language,I have a life you know. That's where BASIC programming language comes in. They are easy to learn and grasp for beginners in programming language although lacking in speed of execution. However here I have list down some of the great BASIC interpreter for android,all of them which you can get from Android market. 1. Description:Mobile BASIC is an Android Application that allows you to easily develop small program directly on your Android Phone or Tablet. 2. Description The power of a programming language in the palm of your hand. Basic provides you with a rich and powerful Basic language programming environment. Now with Bluetooth serial communications! Create your own custom solutions to everyday problems. You can place shortcut icons on your desktop to run Basic programs with a single touch. 3.