Showing posts with label Personal. Show all posts
Showing posts with label Personal. Show all posts

Tuesday, May 28, 2013

Fuga di cervelli dall'Italia?

Secondo questi dati (figura) [ref] in effetti la percentuale di italiani con educazione superiore che si trasferiscono all'estero e' + bassa che per gli inglesi e i portoghesi, ed e' persino calata dal '90 al 2000.



Allora la cosidetta "fuga di cervelli" potrebbe essere l'ennesima bufala inventata dai media italiani :p


Thursday, December 06, 2012

What language for learning programming?

''A Comparison of C, MATLAB, and Python as Teaching Languages in Engineering'' [source]

It seems that Python wins this one :)

Wednesday, December 05, 2012

Few simple (FREE) ways to know where colleagues are

''Employee In/Out Board Software
InOutBoard.com is an easy-to-use web-based software solution for tracking employee attendance and current work status, delivering company announcements, managing online time sheets, creating events in shared calendars, sending phone messages, and access to timecard reports. Use the InOutBoard Online to eliminate your wall-mounted peg board, old receptionist software, resource sign-up sheets, and paper phone messages. You get a complete web-based solution including mobile access for quick status updates.'' [source]  ONLY FREE FOR 30 DAYS :(


'' Free EIOBoard In Out Board Alternative '' [source]




This one is actually FREE:
'' Tabzon is a free online in-out board designed to help you keep track of friends & colleagues. '' [source] 


And the same company also provides this service: http://pinterest.com/
"Pinterest is an online pinboard. Organize and share things you love."

Sunday, September 16, 2012

Zaxxon lives again!

I had this game on my C64, in my garage room, in the early 80's


and we used to play it a lot with my dad, it was perhaps the first game he played on a computer, that really "got him" :)
[Download it FREE from: source]

Friday, September 14, 2012

The magic of global warming...

'' Arctic Ice Melt Could Mean More Extreme Winters For U.S. And Europe '' [source]

So now global warming predicts colder winters for half of the planet.
Or: the planet gets warmer AND it gets colder, so if you go out and find any kind of weather, it is still consistent with global warming...
Terrific way to present a scientific theory :D

Monday, August 27, 2012

A NEW KIND OF SOCIAL SCIENCE FOR THE 21st CENTURY

'' If you had asked me a few years ago, "does our DNA vary for the purposes of social science?" I would have said, "No, it's not changing." But I don't feel that way anymore. I think it is changing. '' [source]

Sunday, July 22, 2012

Interactive videos

''Create Your Own Interactive Videos
Have you ever wanted your media to interact with your audience? We'll show you how easy it is to turn your ordinary YouTube videos into interactive experiences. ...'' [source]

In general interactive videos are considered a kind of non-linear narrative. A list of non-linear editing tools is here.

Evaluation and circular evaluation

Take an interpreted programming language (say javascript), then implement an interpreter of another programming language (say BASIC, if anybody still remembers it :D ). Doable.

Now what about implementing a javascript interpreter in javascript? Or a python interpreter in python?
Also doable ... but why?

'' The Metacircular Evaluator ...
Our evaluator for Lisp will be implemented as a Lisp program. It may seem circular to think about evaluating Lisp programs using an evaluator that is itself implemented in Lisp.
...
Given the evaluator, we have in our hands a description (expressed in Lisp) of the process by which Lisp expressions are evaluated. One advantage of expressing the evaluator as a program is that we can run the program. This gives us, running within Lisp, a working model of how Lisp itself evaluates expressions...
'' [source]



'' PyPy is a fast, compliant alternative implementation of the Python language (2.7.2). ...
PyPy's sandboxing is a working prototype for the idea of running untrusted user programs.'' [source]


'' Its name is based on the mythical figure of Narcissus, who fell in love with himself. This relates to the fact that this JavaScript engine is a metacircular interpreter, because the engine itself is also written in JavaScript, albeit using non-standard extensions that are specific to SpiderMonkey. ''  [source]






Fact1: A meta-interpreter must have a representation for all the instructions of its language: a data structure (a tree possibly) is used to represent code.
Fact2: JSON is used to serialize data and de-serialize it, also across different languages (e.g. Javascript and python).
Question: Would it be possible to write/modify a meta-circular interpreter for python and one for javascript, so that I could take a program in python, represent it as a data-structure, pass it to javascript via JSON, then run it as javascript code?
That would be a quick way to translate python into javascript, and the data-structure passed in JSON would probably be like an AST (abstract syntax tree)...

Functional programming ... in mainstream languages

JAVASCRIPT
''An Introduction to Functional Programming in JavaScript '' [source]
and
'' Functional Programming ... from Eloquent JavaScript'' [source] 

PYTHON
'' Charming Python: Functional programming in Python, Part 1... [source] 


 And to understand monads, check out this great article (with code in javascript):
''Translation from Haskell to JavaScript of selected portions of the best introduction to monads I've ever read'' [source]
Terrific examples!


Saturday, July 21, 2012

Non-Turing-Complete languages

''Practical non-Turing-complete languages?'' [source]

''... BlooP and FlooP are simple programming languages designed by Douglas Hofstadter to illustrate a point in his book Gödel, Escher, Bach.BlooP is anon-Turing-complete programming language whose main control flow structure is a bounded loop (i.e. recursion is not permitted). All programs in the language must terminate, and this language can only express primitive recursive functions.'' [source]




Perhaps the many editor and environments to define games in a high-level fashion can also be considered non-TC languages :)

Tuesday, July 03, 2012

A page with all the 1D games... so far :)

Here is a page with all the 1D games I have so far, but I'm working on a few more :)

Monday, July 02, 2012

Bloxorz remake in 1D on its way...

This is an initial attempt to recreate a bloxorz-like game, but with only 1 dimension.
The trick here is to find a way to transpose the key elements and play dynamics of bloxorz to a poorer, 1D  space. [game]

Monday, June 25, 2012

What other game could shrunk to 1D ?

I think the experiment of squeezing tetris in 1D worked OK.
Now I was thinking, perhaps I should take another game and squeeze it into 1D... just for the fun of finding a reasonable mapping of operations and concepts :D

I was considering perhaps Mario, since it is a total classic and the gameplay is kind of linear already, but perhaps puzzles would be more interesting, like sokoban(?).

Any suggestions?

"Mu" :p

Two of my favorite books EVER, free online!

''101 Zen stories'' [book]

''The Gateless Gate'' [book]

PS I'm not a mystical person, but while reading GEB I got interested in Zen from a philosophical/computer scientific view point (if such a thing exists :D )...

One of my favorite story has to be Joshu's Dog: MU really is a fascinating concept. Working with scientific research myself I can see that many times it is more a question of getting the question right than actually finding an answer.

Final note: I also got a very nice feeling of understanding yet not being quite there, reading the 10 bulls. I think if one reads it keeping a possible mapping open between one's experiences and what is written, the book really seems to talk about familiar sensations and problems, even if it was written ages ago. Quite a nice achievement for such a short text :>

Sunday, June 24, 2012

1Dminos [one-d-minos]

A game like Tetris, but with only 1 dimension [game], still retaining some of the good rotate-place-and-match-colors, that was so nice in the original Tetris :)

The game is in javascript (and still rather ugly if you are brave enough to check the source code...) and it works on Windows (Chrome and IE8) and Mac (Safari).

Anyways... still lot of stuff to improve before it's close to an actual game... any suggestion is welcome :D

Friday, June 22, 2012

Tetris 1D now exists :)

I guess I wanted to challenge the idea (nicely expressed here http://www.kongregate.com/games/zigah111/tetris-1d-2-0?referrer=zigah111 ) that a 1 dimensional tetris is obviously stupid.

In the standard 2D tetris you have shapes and colors, and the feeling you have when playing is that you control the way your pieces fall, sometimes their speed, their position and rotation.
I wanted to see if some of the feeling could be kept in 1D. I think colors are clearly allowed in 1D, so I decided to use them as shapes are used in 2D, to classify the pieces.
Rotation would not make sense with simple square pieces in 1D, so I went for swapping the falling piece with the top of the pile below; I thought this might keep the impression of being in control of the falling piece during its fall. However swapping alone was too limited to make the game fun or non-trivial :)
So I (and the nice folk that suggested so many variations on facebook) explored a few other options: a good one is reversing of the pile, which to me has a kind of formal-methods, string-manipulation feeling that fits well with a single dimension. Other operations that were considered are right shift of the pile, swap of the first and second half of the pile, and randomization of the pile.

Anyways...
The current version of the game is playable with keyboard or mouse, it works at least on chrome for windows.
HERE IS THE GAME.



New features:
- audio
- experimental support for touch for android
- levels

It would be nice to have the time to clean up the code (which is so horrible that it might have been written by a bunch of visually impaired monkeys, with limited understanding of scripting), and improve the levels. I would like to be able to change few things from a level to the next:
- how many colors are possible for the blocks in that level
- speed of the falling block (a classic!)
- enable or disable special operations, like in some levels you might have the randomize button active
- mirror the game left-to-right
and more advanced things could be:
- have many pieces to fall at the same time (a very interesting suggestion from Arturas)
- bonus pieces that allow to destroy all pieces in the pile with a specific color (for example)
- pieces falling from both sides


Also adding a few special effects, like rotation of pieces when swapped or splash screens between levels.
Perhaps using a spline instead of a straight line, to align the pieces in a more creative way, also to play a bit with the fact that it is a 1D game, but the screen is 2D anyway ... :D

Monday, June 18, 2012

Attempt to make a game in 1D

Hello, here you have a simple attempt to make a Tetris in 1 dimension, aka Tetris1D (version 0.1.2  0.1.4 0.1.5 0.1.6).

It is a javascript app that requires a browser with html5 and canvas support. So far I tested it only on Chrome, but it works OK.

The idea should be that you have a stack of colored cubes, i.e. a 1D version of the pentominoes that are in the actual Tetris. The challenge here would be to retain some of the gameplay of the original game, while still having just 1 dimension available to move about...
So here it is: you can only let your piece fall, you can see the next piece; you can also switch the piece that is currently falling with the top of the pile of the already-still pieces, or you can reverse the entire pile.

Still working on possible improvement of the concept :>
Feedback is very welcome. Bye,
   Andrea

Tuesday, June 05, 2012

Future user interfaces

'' Amazing hologram technology '' - an interesting concept, in between holography and controllable play doh [video]

'' Future Holographic Video Game Console '' [video]

Monday, May 14, 2012

2 (or 3) movies, very very related

'' 12:01 (1993) 
... Barry Thomas is the average office worker. He becomes attracted to Lisa Fredericks who works in the same company. After work, Barry witnesses the murder of Lisa and goes to a bar to get drunk. Later that night, there is a storm and Barry gets a shock from a lamp's faulty power wire at exactly 12:01 am. The next morning, he realizes that everything is happening exactly as it did the previous day.'' [source] SCI-FI



'' Groundhog Day (1993) 
... A weatherman finds himself living the same day over and over again.'' [source]

And possibly also this one, is remarkably similar...
'' In this version, Kurtwood Smith plays Myron Castleman, an everyman-type who keeps repeating the same hour of his life, from 12:01pm to 1:00pm. The character is fully aware that the time loop is occurring, and nobody else appears to be aware of it. Each time the hour resets, Myron retains his memory (or as the film puts it, his consciousness), and despite his best attempts to understand what is happening, he ultimately realizes that he is entirely helpless to prevent the time bounce. Myron cannot even break the loop by killing himself, as he reappears, alive, at the next iteration; he is trapped in the loop for eternity. '' [source]

See here for more details ;)

Sunday, May 13, 2012

Don't study too much... or you'll go blind :>

'' East Asia's nearsighted-child epidemic: Is over-studying to blame?
A new study finds that a shocking 90 percent of schoolkids in Asia's obsessively school-focused big cities have myopia 
...
In most Western nations, 20 to 40 percent of children have myopia, the technical term for nearsightedness. In the cities of East Asia, that number jumps as high as 90 percent, according to a new study in the British medical journal The Lancet.

...
In the major cities in Japan, China, South Korea, Taiwan, Hong Kong, and Singapore, 80 to 90 percent of teens had myopia upon leaving high school. More worrisome, 10 to 20 percent of the high school grads were afflicted by high myopia, a more serious strain that can lead to blindness. The main problem, say the researchers, is lack of exposure to sunlight.
'' [source]