Open Source at Google | Android Scripting Environment is noy open

The Android Scripting Environment (ASE) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to:

  • Handle intents
  • Start activities
  • Make phone calls
  • Send text messages
  • Scan bar codes
  • Poll location and sensor data
  • Use text-to-speech (TTS)
  • And more

Scripts can be run interactively in a terminal, started as a long running service, or started via Locale. Python, Lua and BeanShell are currently supported, and we're planning to add Ruby and JavaScript support, as well.


Scripts can be edited directly on the phone.


The script manager displays available scripts.




Scripts can be launched interactively or as background services.



Interactive terminals can be started for interpreters that support it.



Scripts can use the Android UI to get user input.

You may ask, why write scripts instead of real Android applications? Admittedly, Android's development environment makes life pretty easy, but you're tied to a computer to do your work. ASE lets you develop on the device itself using high-level scripting languages to try out your idea now, in the situation where you need it, quickly. Have a look at the following example Lua script to see for yourself:
--Placing the phone face down will disable the ringer. Turning it face up again will enable
--the ringer.
require "android"
android.startSensing()
android.sleep(1) --Give the sensors a moment to come online.
silent = false
while true do
s = android.readSensors()
facedown = s.result and s.result.zforce and s.result.zforce > 9
if facedown and not silent then
android.vibrate() --A short vibration to indicate we're in silent mode.
android.setRingerSilent(true)
silent = true
elseif not facedown and silent then
android.setRingerSilent(false)
silent = false
end
android.sleep(1)
end

Here's another useful script, this time in Python.
"""Say chat messages aloud as they are received."""

import android, xmpp

_SERVER = 'talk.google.com', 5223

class SayChat(object):
def __init__(self):
self.droid = android.Android()
username = self.droid.getInput('Username')['result']
password = self.droid.getInput('Password')['result']
jid = xmpp.protocol.JID(username)
self.client = xmpp.Client(jid.getDomain(), debug=[])
self.client.connect(server=_SERVER)
self.client.RegisterHandler('message', self.message_cb)
if not self.client:
print 'Connection failed!'
return
auth = self.client.auth(jid.getNode(), password, 'botty')
if not auth:
print 'Authentication failed!'
return
self.client.sendInitPresence()

def message_cb(self, session, message):
jid = xmpp.protocol.JID(message.getFrom())
username = jid.getNode()
text = message.getBody()
self.droid.speak('%s says %s' % (username, text))

def run(self):
try:
while True:
self.client.Process(1)
except KeyboardInterrupt:
pass

saychat = SayChat()
saychat.run()


These scripts demonstrates several of the available APIs available for both Lua and Python. It is intended to be run as a service and silences the ringer when the phone is placed face down. For some scripting languages, like BeanShell, it's possible to access Android's Java API directly. To simplify things, ASE provides the AndroidFacade class. For other languages, like Python and Lua, the API is made available via JSON RPC calls to a proxy. Naturally this means that only the part of the API which has been wrapped by the AndroidFacade and AndroidProxy are available to cross-compiled interpreters like Python and Lua. Thankfully, both AndroidFacade and AndroidProxy are simple to extend.

If you'd like to give ASE a try, it's not yet published to the Market, but will be soon. You can download the latest APK from our project page. Some sample scripts and documentation are also included there to help you get started. We always love to hear what you think, so please send us feedback or ask your questions in the ASE discussion group.

IELTS

About IELTS

This test is for people who intend to study or work where English is the language of communication. It measures ability to communicate in English across all four language skills – listening, reading, writing and speaking IELTS is jointly managed by British Council, IDP: IELTS Australia and the University of Cambridge ESOL Examinations (Cambridge ESOL) through more than 350 locations in 120 countries.

Why IELTS

It opens doors for you to more than 2000 educational institutions, government agencies and professional organizations across 120 countries where IELTS scores are recognized as a trusted and valid indicator of ability to communicate in English. IELTS is an English Language Proficiency test that is required to be taken by non-native students for study in countries where the medium of instruction is English. Among the popular study destinations IELTS is accepted by universities in UK, Australia, New Zealand, Canada and USA.

It has become a mandatory test for students of many nationalities to obtain student visas to Australia. You cannot be granted an Australian student visa without an IELTS score if you are from India, Pakistan, Bangladesh, Nepal and many other countries, TOEFL is not accepted. All other study destinations either require you to take the TOEFL or IELTS. IELTS is however not accepted by most universities in USA. TOEFL is required as a proof of English proficiency to study there.

IELTS Test Structure

IELTS tests the ability to listen, read, write and speak in English. Band scores are used for each language sub-skill (Listening, Reading, Writing, and Speaking). The Band Scale ranges from 1 (”Non User”) to 9 (”Expert User”) the four Band Scores, one for each section are added together and averaged for an Overall Band Score. Each Band has a statement giving a summary of the English at that level. There are nine Band levels, from one (non-user) to nine (expert user). All candidates must complete four Modules - Listening, Reading, Writing and speaking to obtain an IELTS Test Report Form. Total Test Time 2 hours 45 minutes.

The first three modules - Listening, Reading and Writing - must be completed in one day. The Speaking Module may be taken, at the discretion of the test centre, in the period seven days before or after the other Modules. The tests are designed to cover the full range of ability from non-user to expert user.

IELTS level for admission to the academic world

The minimum score accepted for a course ranges from 5.0 to 7.5, depending upon courses and institutes you are applying to. The most common requirement is a band score of 6 to 6.5.

click the following links for detail information:

Website Development Using PHP


PHP 4 was officially released on May 22, 2002, and today its installed base has surpassed 15 million domains. In the late 1998, Zeev and Andi looked back at their work in PHP 3 and felt they could have written the scripting language even better and they started yet another rewrite. While PHP 3 still continuously parsed the scripts while executing them, PHP 4 came with a new paradigm of compile first, execute later. The compilation step does not compile PHP scripts into machine code; it instead compiles them into byte code, which is then executed by the Zend Engine (Zend stands for Zeev & Andi), the new heart of PHP 4. Because of this new way of executing scripts, the performance of PHP 4 was much better than that of PHP 3, with only a small amount of backward compatibility breakage 4. Among other improvements was an improved extension API for better run-time performance, a web server abstraction layer allowing PHP 4 to run on most popular web servers, and lots more.
Introduction
PHP is a language that was designed to be easily embedded i...
Variables
Variables in PHP are denoted by the "$". To assig...
Strings
String variables are used to store and manipulate a piece o...
Operators
Operators are used to manipulate or perform operations o...
If…Else Statement
One of the most common PHP language constructs that you wil...
Loops
Loops are used to repeat statement or block of statement...
Functions
In addition to PHP's built-in functions, you can create you...
Forms
Forms are the most fundamental method of interaction for yo...
Sessions
You cannot track variables across a user session unless you...
Cookies
A cookie is a small bit of information stored on a viewe...
Files
PHP is a very useful language for working with files. Altho...
E-mail
mail() function is used to send emails from inside a script...
Error Handling
Error handling is the process of changing the control fl...
File Upload
You must first build an HTML form that lets users select a ...
PHP Databases
A database is a collection of data that is stored indepe...
Connecting to a MySQL Database
In order to pull information from a MySQL database to...
MySQL Data Types
Numeric Data Types:...
Inserting Data Into a Table
The INSERT INTO SQL statement impregnates our table with da...
Select Statement
The select query is used to retrieve records from a databas...
Where Clause
In Select Query we use WHERE clause to select only data tha...
Order By
We use Order By Keyword to sort the records in a recordset....
Update Statement
Update statement is used to modify the data in a database t...
Delete From Statement
DELETE FROM statement is used to delete rows from a data...