Facing new challenges everyday

.NET XMLBuilder, a .NET port of Java XMLBuilder

November 30th, 2009

Yesteday I finished the port of Java XMLBuilder to .NET, now you can use any .NET language to easily create xml documents, .NET XMLBuilder is written in Delphi Prism and released under Apache 2.0 license. The current release of XMLBuilder can be download here.

XMLBuilder is very easy to use, it contains a kind of DSL, a basic example can be checked below:
(more…)

Post to Twitter

Writing a command line translation tool with Go language

November 14th, 2009

Go is a new language coming from Google, it isn’t fully object oriented as Java, or completely dynamic typed as Python, Go is in the middle of both worlds, it aims to be clean, fast to compile, safe and fun.

I wrote a small program where I can call the google translator service on the web to translate a text, and to be honest, its a very simple task, I wrote this tool in less than 5 hours without any previous experience with Go.

The entire program code can be checked below:

(more…)

Post to Twitter

Taking control of Lift’s snippet rendering

September 26th, 2009

One of the features that I always pay attention in a framework is how we can control what can be rendered in a view and what not, many frameworks uses a scriplet language, some others uses a kind of template system for this purpose and a few give to the user a object oriented way to do it.

In this article I’ll show an example of how we can take the control of view rendering on lift framework with the help of snippets. With snippets you will be able to perform any server side interaction that you need, you can call a snippet by placing a tag on view code, this tag has a naming convention required to call the snippet properly, a snippet always emmit markup back to the user.
(more…)

Post to Twitter

Writing MacOSX System Services with RubyCocoa

September 7th, 2009

Today I started my study about RubyCocoa and how it works, my first project was a simple system service for MacOSX Leopard where the user can type a portuguese text, select it and translate to english, the user can also type the text in english and execute the system service to translate it back to portuguese.

Here’s what I did:
(more…)

Post to Twitter

Playing with AppleScript

August 22nd, 2009

ApplesScript is a very interesting scripting language that allows the user to write scripts to automate computer tasks, it differs from the other script languages because of its syntax that is pretty closer to natural language.

I spent few hours this morning trying to understand how to write AppleScript scripts, It’s very simple, please read the AppleScript Language Guide to learn more about how to use AppleScript with your favorite applications.

The scripts below give to us an idea about how we can use AppleScript to change the behaviour of 4 most popular applications for MacOSX: iChat, Growl, Adium and Skype.

iChatStatus

1
2
3
tell application "iChat"
    set the status message to "New iChat status message"
end tell

iChatStatus can be used to change status message of the user on iChat. The first line starts with “tell” statement, we use this statement to specify the target of all commands on this script, in the second line we are using the “set” command to change a the value of “status message” property value on application to “New iChat status message”, the third line finishes the “tell” statement.

(more…)

Post to Twitter

Next Page »

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

hosted by easy2use.net