Articles Tagged 'Internet'


The Ballad of the programmer

The Ballad of the programmer Since Undolog a Blog dedicated to programming from the point I could not avoid this "remake" - The Rime of the programmer - really well done. Attention by Alex Microsmeta , is a "remake" or reinterpretation of the famous song by Fabrizio De André The Fisherman. Congratulations to the authors for having achieved something really "nice" and - as Alex said - true! You can download the mp3 file by clicking here :

In the shadow of the last sunshine fell asleep in his arms a programmer a manual dreaming of tropical sea - the firm was a contractor with a project inconsistent requests from scary "before yesterday because I care" - and asked for a huge work with specific strangest "I want everything fast and pay nothing I have a client" - the software engineers eyes opened its only a video view from dawn till evening gray chained to the keyboard - the keys to tapping mo 'a maniac and neglecting food and sex could one day deliver a pre-release - And now he was happy but was relieved to have recalled a time that customer "here does not work a damn" - restart the program to toil for hours over a problem very intricate hidden inside a listing - was again the principal said, "so it is better than nothing, however, important to me to make one small change" - But the shadow of the last sun was already asleep in his arms the programmer a manual dreaming the tropical sea

Text
Enrico Colombini
http://www.erix.it

Voice
Dominic Agostino

Choirs and arrangement
Marco Di Francesco
http://www.myspace.com/difra
email: marco.difra (at) gmail.com

Continued ...

Flash Actionscript contest: erase tool

I state it now: you do not win anything! Apart from pride - if anything - to have solved the problem.

QUEST - APPLICATION

How to create a tool to erase, delete, clear, a "portion" of the graphics API designed with Actionscript 3.0?

, espongono la proprietà graphics , un puntatore ad un altro oggetto che “serve” tutte le funzioni grafiche di disegno runtime. With Actionscript 3.0 Some visual objects, such as MovieClip or Shape , exhibit the property graphics , a pointer to another object that "serves" all graphic design runtime functions. For example, you can develop a simple drawing application. , in modo semplice e rapido. This object graphics can draw whatever you want, for example, an object of Shape , easily and quickly. The problem is that once something is drawn can clean out all but a single part.

Draw a line is easy:

1
2
3
4
5
6
Shape = new Shape ( ) ; var myShape: Shape = new Shape ();
myShape ) ; addChild (myShape);
/ /
. lineStyle ( 2 , 0xff0000 , 1 ) ; myShape. graphics. lineStyle (2, 0xFF0000, 1);
. moveTo ( 0 , 0 ) ; myShape. graphics. moveTo (0, 0);
. lineTo ( 100 , 100 ) ; myShape. graphics. lineTo (100, 100);

Drawn something you can clean everything with the simple call to clear() :

1
. clear ( ) ; myShape. graphics. clear ();

But if I want to "delete" only one point? Or coordinates from 50.50 to 100.100?

Searching the Internet I found several examples of "design applications" and, in fact, offers no support or tool "delete".

Do you have any solution?

Continued ...

Yahoo! ASTRA: suite of components for Flash and Flex

image Yahoo! has just released ASTRA , a suite of components for Adobe Flash and Flex . I must say that, at least for the components for Flash, I had half a disappointment (if not total). Most interesting, perhaps, is the TabBar ... the rest leaves much to be desired. They look for some components developed their project - internal - and now released as open product! Perhaps, at Yahoo!, we are already aligned to the policies ... Microsoft saw that today the software company founded by Bill has offered 44.6 billion dollars to buy Yahoo!! 44.6 billion, I have not misspelled!

But take a trip on the website where you can find several useful resources. We trust in the near future.

Continued ...

Actionscript 3.0, all with the new operator

. Again in the "uniform", as happened with the events (see the new event handling of Flash CS3 and Flash CS3: The new event management ), one of the many new features in ActionScript 3.0 is the disappearance of all those ad hoc methods dedicated to the creation of special items, such as: createEmptyMovieClip() or the famous attachMovie() . With Actionscript 3.0 the operator new is sufficient to perform all the operations building. A new MovieClip, for example, is created (runtime) with the following code:

1
2
MovieClip = new MovieClip ( ) ; var mioClip: MovieClip = new MovieClip ();
mioClip ) ; addChild (mioClip);

image But let's go! If I want a symbol in the library and add it as a runtime happens if attachMovie() is gone? The solution is not very dissimilar from what happened in Actionscript 2.0. First you need to go into the library, select the symbol and open the Properties window. At this point, check the Export for ActionScript box chaining - as they did in Flash 8. A symbol library as a base class has always flash.display.MovieClip , but this does not interest us much. The interesting thing, however, is the parameter class that is set by default (when you check Export for ActionScript) with the symbol name. What is important to emphasize is that this is a new mode of Flash CS3 (and ActionScript 3.0). The symbol to be exported must have a Class reference. The curiosity is that we are not necessarily forced to create our own class (extended from flash.display.MovieClip ), even if we could do it.

Continued ...

Farewell IE7, followed by Sage: Read RSS feeds on Windows

Honestly I have tried everything! I did not want to use an external application to read RSS feeds! I thought (and I have changed his mind) that having a browser open already was uncomfortable bind to a different application.

So I started with the RSS reader in Internet Explorer 7. But since I installed Windows Vista I view the feed is denied ... security issues. If you "unlock" IE7, in due time, I let us start to appear "alert" spread (a little 'Windows and a little' good from Norton 360) who invite me to restore the security settings of your browser properly, be worth "broken" from around the world. In short, with IE7 - at least on Windows Vista - this is not possible to read RSS feeds in peace.

Abandonment IE7 (was now) and promote good FireFox as your default browser (it was really now). image Then install Sage , an extension for FireFox . Maybe too easy ...! image Let's just say "limited". However, today, I downloaded FeedReader , version 3.12, one of the best known, at least taking a look around the Web Cool! A new world indeed. Stumble this player also, again for Windows, FreeDeamon , I did very well ... even though in some ways I prefer FeedReader .

image

Continued ...

The new event handling in Flash CS3

I had already spoken in Flash CS3: The new event handling . I'll be back on the issue sublists for the difference of this new approach compared to previous versions of ActionScript. Schematically we have a general situation of this type:

addEventListener

Any object that supports events, ultimately exposing itself the addEventListener (). In the documentation, among other things, we read:

What's new for event listeners in ActionScript 3.0

[...] To add event listeners in ActionScript 2.0 is sometimes uses addListener () and sometimes addEventListener (), whereas in ActionScript 3.0 using addEventListener () in all situations.
[..]

Event management, then, is standardized at the level of real listeners. All the "features" of listening, in fact, have the following structure:

1
2
3
eventObject : EventType ) : void { eventResponse function (eventObject: EventType): void {
/ / The actions in response to the events are defined here.
}

o una sua sottoclasse. EvenType is always an object of class Event or a subclass. . This allows for more informations specific to the particular event in addition to handling standard properties such as target or currentTarget .

An important difference with previous versions of ActionScript, with respect to the listener, is that:

In ActionScript 2.0, event listeners can be either functions, methods or objects, whereas in ActionScript 3.0, event listeners can be only functions or methods.

In short, having used for some 'time to event structure from earlier versions of Flash, I must say that this new approach is really nice. It's a bit 'that development with Actionscript 3.0 and, after a small initial loss (just to regain what was taken for granted) now I can not understand how could I bear the "old" method of the events of the previous versions.

Continued ...

Google Maps component for Flash

AFComponents UMAP

Google has APIs - Javascript - to put its maps in any web site . vied how to accomplish the same thing with Flash!

image We start from a free component, UMAP (Universal ActionScript 3.0 Mapping API - Integrated with Google Maps), developed by AFComponents , a vertically organized companies of components for Flash / Flex really interesting and affordable. On the site, where you need to register to take advantage of free downloads, there are also versions of UMAP for ActionScript 2.0: MAP G Ver.2.6.1 . In this case we will analyze the version 0.4 Beta UMAP for ActionScript 3.0 (inside the package there is also a Flex component). That we're going to see is - obviously - a beta version and lacks, therefore, some features in version for Actionscript 2.0 ( G Ver.2.6.1 MAP ). However, watchman at the future, it seems more interesting to focus attention on this release, I tried both and, despite the release of more complete for Actionscript 2.0, Actionscript 3.0 beta version is considerably more powerful.

Continued ...

Restyling and Rebloging

Thin Thoughts

With the new year is always nice to freshen up the rooms, even the virtual ones of Blog. I have reviewed the background graphic Undolog.com, which is now far more harmonious.

More complex was moving Subtle Thoughts from Blogger to WordPress! But in the end the result was very rewarding!

Continued ...

FireFTP: FTP client for FireFox

logo128 Simple things sometimes work better than those that appear best but complex. I personally use most often FTP applications, either as a desktop client like real tools that present the whole in some other applications such as Adobe Dreamweaver CS3 or UltraEdit. As a client I have bought real, long, FTP Voyager , now arrived at version 14.1. Despite the excellent product quality, FTP Voyager crashes when browsing a folder with many files. I have found, in fact, in the unfortunate position of having to make a backup for a client who had collected a nauseating amount of files within a folder. Luckily I had the idea of ​​installing this extension for FireFox (Recommended already from Yuma) who solved the problem, otherwise I would have to "zip" folder as a file and pull it down.

FireFTP allows configurations of minimal but sufficient in maggiornza cases. Excellent ability to run a confroto remote files and folders, even if this version is the comparison solely on the presence or absence of the file.

In short, FireFTP FTP client will not be definitive, but it can be very useful, since then it is free unlike FTP Voyager !

Continued ...

EditArea: a rich Sourcecode Editor in Javascript

EditArea is a different way to use HTML editing features allowed online. This technique, used most often to create WYSIWYG editor , in this case is used to provide a real code editor.

EditArea

A regular textarea field is transformed into a real editor with the ability to format the text, searching and replacing words and get a color code in real time. Among its features we note:

  • Simple integration through a single JavaScript script and a single call to a function of patch.
  • Support tab
  • Search and replace with regexp
  • Support the color code for PHP, CSS, JavaScript, Python, HTML, XML, VB, C, CPP, Pascal, Basic, Brainf * ck
  • Auto-indenting of new lines
  • Numbering lines of code
  • Multilanguage support: Croatian, Danish, English, French, German, Italian, Japanese, Polish, potoghese)
  • Support for gzip
  • Multiple instances
  • Fullscreen
  • Resize the window in real time
  • Possibility to extend the features through plugins
  • Save and Load callback
  • Work with prototype and mootools

An example of how to use it:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
editAreaLoader. init ({
// id of the textarea to transform id: "exemple_3" / / id of the textarea to transform
true , Start_highlight: true
"8" , Font_size: "8"
"verdana, monospace" , Font_family: 'verdana, monospace "
"y" , Allow_resize: "y"
false , Allow_toggle: false
"fr" , Language: "fr"
"css" , Syntax: "css"
"new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight, |, help" , Toolbar: "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlights, reset_highlight, |, help"
"my_load" , Load_callback: "my_load"
"my_save" , Save_callback: "my_save"
"charmap" , Plugins: "charmap"
"arrows" , Charmap_default: "arrows"
});

Continued ...