Translate easily with JavaScript and the Google language API

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...
March 26th, 2008 by Michal

wow, google recently released an API for their translation services called Google language API. Thats a good news but it even gets better! The api is really easy to use and applications can be boosted within minutes. The reference can be found here

Here is a quick example of how to translate something...

JAVASCRIPT:
  1. google.language.translate('my mum is swimming', 'en', 'de', function(result) {
  2.   alert(result.translation);
  3. });

and it gets better and even easier: its possible to let the API detect the language .. so nothing you have to take care about anymore.

JAVASCRIPT:
  1. google.language.detect('Deutsch ist auch eine Sprache',
  2.  function(result) {
  3.   alert(result.language);
  4. });

Further reading: An introduction to the language API and translation tools.

Now its time to come up with some nice little tools, widgets which use this service. "a user selects a paragraph an your page, clicks a button and suddenly the text is translated into the desired language".

ajaxed google discussion group

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 3.75 out of 5)
Loading ... Loading ...
March 16th, 2008 by Michal

asp-ajaxed.gif Today i had some time and have created an own google discussion group (forum) for the ajaxed project. This will make the management of problems much easier for me. At least i hope so :) It should help you guys to communicate about your solutions and issues with ajaxed. Also all issues regarding JSON in connection with ASP should go there, and all other classic ASP topics. I can track all these stuff much better then. Thanks for your help and contributions!

ajaxed & asp JSON disussion

picnik comes with a free-to-use image editing API for your website

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3 out of 5)
Loading ... Loading ...
January 23rd, 2008 by Michal

picnic.gif Ever heard from Picnik? It allows you editing your images direclty within your browser. Forget Adobe Photoshop :) Picnik has been around for a while now but recently it started to offer its service for the public. for free! I played around a bit and must say that it is amazing .. Use it within PHP, classic ASP, .net, Ruby on Rails or whatever... especially i like the idea of the whole service which works like this...

  1. Send your images to their service (existing image via URL or encoded as multi-part)
  2. Then the user modifies the picture (size, colors, rotation, special effects...)
  3. Picnik sends you the picture back to your server (either an URL where you can download it or directly as multi-part image)

Here comes an example I have built for demonstration... read more...

automatically strip attributes of an ActiveRecord model

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4 out of 5)
Loading ... Loading ...
January 22nd, 2008 by Michal

You know the situation when some users add a couple of whitespaces to the front or/and the end of a value they just entered into your application? Yeah, and in most cases we dont really want those blanks in our data. But on the other hand we can not really blame them because sometimes it just happens by mistake. Just imagine your cat played with the space bar while you quickly went for a coffee. The solution is not to get rid of the cat, ... Its rahter an extension. And no not to your cat - small extension to ActiveRecord read more...

coding for food

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...
January 17th, 2008 by Michal

codehtmlfp2.jpg
I hope that this is not really real ;)

using gravatar in classic ASP

1 Star2 Stars3 Stars4 Stars5 Stars (12 votes, average: 4.5 out of 5)
Loading ... Loading ...
December 29th, 2007 by Michal

A gravatar is a globally recognized avatar, which means that your avatar is stored in one place and it will appear on several websites, blogs, forums (which support gravatars). Whenever you change your avatar it will be updated on your existing comments, forum posts, etc. It's a great service! Now if you know what a gravatar is you might want to use it in one of your classic ASP applications. This post describes how to solve this simple problem... read more...

webdevbros now supports gravatar.com

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
December 29th, 2007 by Michal

Gravatar logo from today we are supporting your personal avatars from gravatar.com. You will recognize them in the post comments (see this post) and in the sidebar in the recent comments. If you don't know what gravatar is, then here is a brief description:

A gravatar, or globally recognized avatar, is quite simply an 80×80 pixel avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites.

The creation is easy .. you just signup with your email and upload your avatar. Your image then appears on your webdevbros comments and hundreds other websites you comment. The nice thing is if you change it, it will affect all your existing entries on all sites. Thats cool! Long live service oriented architecture ... Get your gravatar now and be displayed on webdevbros

Library with extensions for prototypejs and script.aculo.us

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...
December 21st, 2007 by Michal

prototype extensions library Today i have found scripteka.com which is an awesome resource for prototype and scriptaculous extensions. It offers one of the best extensions around on a very clear and web2ish site. Currently they offer 88 extensions which include javascript calendars, password strength meters, reflection generators, image croppers, faders, .... Go to scripteka.com and look yourself what they offer. Its good stuff which is based on one of the best libraries out there.

Special chars like e.g. {~ are not supported within rails console on windows

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
December 20th, 2007 by Michal

When working with Ruby on Rails on a windows machine you will sometimes need the development console or the interactive ruby console (irb). Actually you need it quite often :) If you do so you'll discover that special character like the tilde (~) or the {}-brackets are not supported there. Why? I don't know but let me know if you know the reason. However, to solve this problem just create a file which has the following content:


"\M-[": "["
"\M-]": "]"
"\M-{": "{"
"\M-}": "}"
"\M-\\": "\\"
"\M-|": "|"
"\M-@": "@"
"\M-~": "~"
"\M-?": "?"

save this to e.g. c:\.inputrc and put the following to your irb.bat (which is usually located in c:\ruby\bin\) straight after the @echo off line:

SET INPUTRC=C:\.inputrc

Now you should be a more happier Rails dev.. At least i am. (I found this information at flip's blog - Thanks!)

ajaxed 0.3 released

1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4.88 out of 5)
Loading ... Loading ...
December 18th, 2007 by Michal

i have updated ajaxed (classic asp ajax library) to its 0.3 version. Thanks to all contributors who helped me with their feedback. Here are the updates... read more...