At Campfire’09 google launches Java support for App engine. (Source: Techcrunch)
With App Engine, you can build web applications using standard Java technologies and run them on Google’s scalable infrastructure. The Java environment provides a Java 6 JVM, a Java Servlets interface, and support for standard interfaces to the App Engine scalable datastore and services, such as JDO, JPA, JavaMail, and JCache. Standards support makes developing your application easy and familiar, and also makes porting your application to and from your own servlet environment straightforward.
The Google Plugin for Eclipse adds new project wizards and debug configurations to your Eclipse IDE for App Engine projects. App Engine for Java makes it especially easy to develop and deploy world-class web applications using Google Web Toolkit (GWT). The Eclipse plugin comes bundled with the App Engine and GWT SDKs.
Checkout developers guide here.
You can download SDK from here.
Tags:
google,
gwt,
java
Forgot to send an attachment.. Sent a mail too early or to a wrong person.. worry not, gmail labs has introduced an undo function now.. which right now gives you 5 secs (plans to extend it to 10) to undo mail after it has been sent. Read complete article here !!
p.s. : This post is an entry for OG Contest
Tags:
gmail,
gmail labs
Probelm :- Your page with domainA.com has an iFrame of domainB.com. You have some task, that needs you to call a javascript function in main page (domainA.com) from iFrame (domainB.com).
Hack :- I googled and found two solutions, both work for most common browsers but both have some limitations. ( Obiously its a security issue )
- First one I found at pipwerks. For it to work you must have access to web directory of parent frame (domainA). You need to upload a file there (proxy.html). According to it, you can put nested iframe from domainA into domainB. And call a function from this iframe instead, using top.functionName
- Other hack is from tagneto. To use this, you need to change parent.location adding a hash(#) to it. This won’t reload the page and hence it works. Here is a test page as well. See the source of test page and embedded iframe to check how it works.
If you know about any others? Lemme know.
Update :- approach 2 has some issues with IE7, its fixed here.
Tags:
crossdomain,
javascript,
web development
Found a new addon for firefox, FireScope. It extends Firebug with reference material for HTML and CSS. Look out for items in the context-menus, that say things like Look up “blah” attribute
, or Show Code Example
.
The add-on is being developed by SitePoint an online resource for Web professional market, specifically Web Developers and Designers.
Tags:
firebug,
firefox,
firescope

World Domain Map
A new way of looking at world. It shows country code top-level domains (ccTLDs) with font size relative to population. It shows about 245 different codes. It will be good to see a similar map with no. of registerd domains for that TLD as well. Source [bytelevel] :- you can buy a copy for you from their website.
Tags:
domains,
map,
tld
I got some weird “Duplicate Entry” Exceptions on creating content after doing a database migration to Drupal. It comes after registration if you added few users to db directly, or will come on creating new content if you added nodes directly to db.
Actually there is no AUTO_INCREMENT set for db tables in drupal, instead there is a ’sequences’ table. So make sure you make appropiate changes to numerical values after migration.
BTW, if you came here looking for how to migrate to Drupal from other CMS (wordpress, geeklog etc.. ) read these articles on drupal handbook.
Tags:
CMS,
drupal
Since last 2 years I’ve been using and creating various web-services. I had very basic idea about these and never thought about going into the details. Y’day night I somehow got enthu to digg into it and findout what are best practices, when to use what, differences and other details.. so here are some pointers on what I read..
- SOAP – Simple Object Access Protocol
- REST – Represntational State Transfer
- RPC – Remote Procedure Call
- REST is not simply XML+HTTP, it is valid to anything which conforms to RESTFul principals.
- REST vs RPC = noun vs verb… i.e exchanging resources and concept vs exchaging methods : A good example.
- REST vs SOAP : With SOAP, data exchange takes place with a additional Soap layer. It contains a SoapEnevlop which further contains header and body. With REST the request or response could be in any format, just that it should have a unique resource(URL) and it should specify a valid http method (GET,POST,PUT,DELETE).
- REST : secure, easy to use and light weight.
- REST isn’t best for every case : Sending secured data as params or sending large amount of data could be a problem. In which case you might want to use SOAP.
Further these articles (other then wiki) are worth reading.
Tags:
AJAX,
REST,
RPC,
SOAP,
WebServices
Work on HTML5 is still going ( joint effort by W3C and WHATWG ), but there’s a lot of buzz around about it.
Again googled and saw many articles on it, so no point writing about same again. I didn’t find wiki enough informative.. but liked these two posts on phpGuru and aListApart.
The idea of having a async attribute is cool, which means script can be executed asynchronously and won’t block loading rest of the page. Also something new will be tags like video, auido & canvas.. and a few interactive elements including menu and datagrid.
There’s a list of elements which will be dropped including frame, font, center, applet etc
, make sure you don’t use them now.
I heard a lot about support of drag and drop API in HTML5, seems like its started with IE + safari and now firefox is also supporting it. A post by Neil on how to use it and more info on developer docs.
Tags:
drag & drop,
html5,
web development
Nice plugin I found today for eclipse. Its a script editor for Nullsoft Scriptable Install System(NSIS) – which is an open source system for creating Windows Installer.
Earlier we were using Venis for the same, which is ok too. But Its really helpful to have a plugin like this, if you are working with nsis and are addicted to eclipse like me
.
If you are new to NSIS and want to know how to create windows installers, read this tutorial and few examples here.
Tags:
eclipse,
EclipseNSIS,
nsis,
venis,
windows installer