F16


My twitter friends mosaic.

Get your twitter mosaic here.


Twiiter mosaic

http://sxoop.com/twitter/mosaic.pl gives you the change to create your twitter mosaic. This is a “picture” that contains pixels of all your followers in Twitter.com. Nice


Marwa El-Sherbini

A real drama. The short life (aged 32) and death of a young Egyptian woman in Germany is described in http://en.wikipedia.org/wiki/Death_of_Marwa_El-Sherbini. It is worth to read the whole article from Wikipedia, however the big problem here is that the murder of this Egyptian Muslim lady – just because she wore a hijab – was not mentioned a lot by the European and US press.

The incident in a few words: A year before her murder, a 28 year old man of Russian origin had insulted her by calling her a “terrorist” and “Islamist whore” for wearing a hijab when she asked him to let her son sit on a swing. As Marwa, pregnant, was in the dock recalling the incident, the accused walked across the courtroom and plunged a knife into her 18 times. What is even more horrific is that as her husband,  ran to save her he, too, was brought down, shot by a police officer who declared that he mistook him for the attacker.

Again, a real drama.


Project Natal

The new immersive gaming system is Project Natal and it is being developed from Microsoft Corp. The ETA is 2010. A camera tracks gamers and matches their real life movements to those of an on-screen character. This tracking system is quite accurate and is based on Infrared technology. This is Microsoft’s response to Nintento’s Wii and the moto here is “You are the controller”. No more remote controllers or nunchucks.  In the following video a gamer expreriences the well known “Crysis”.

Milo is a character that can recognize us, talk to us and interact with us. Our motions reflect to Milo’s face. This is an amazing video.

Your days of escaping reality are numbered…

More details about this project at the official web page.

Blogged with the Flock Browser

Ahh… the good life! HD memories from China, summer 2009.

these images are from a trip to China and Hong Kong, August 2009. Click on the images to enlarge

cholesterol bug free god

The fat Buddha is a monk named "Butai", who appeared in Tang Dynasty of China, who acted very much like Santa Claus of our times. (PS. "Butai" literally means bag made out of cloth.)

the three gorges dam, siemens is involved in the project

The Three Gorges Dam (simplified Chinese: 长江三峡大坝; traditional Chinese: 長江三峽大壩; pinyin: Chángjiāng Sānxiá Dàbà) is a hydroelectric river dam that spans the Yangtze River in Sandouping, Yiling District,Yichang, Hubei, China. It is the world's largest electricity-generating plant of any kind

dazu cavings, the circle of life

The steep hillsides of the Dazu area contain an exceptional series of rock carvings dating from the 9th to the 13th century. They are remarkable for their aesthetic quality, their rich diversity of subject matter, both secular and religious, and the light that they shed on everyday life in China during this period. They provide outstanding evidence of the harmonious synthesis of Buddhism, Taoism and Confucianism.

dazou2

The Dazu carvings represent the pinnacle of Chinese rock art for their high aesthetic quality and their diversity of style and subject matter

detail

Chinese imperial roof decoration or roof charms or roof-figures was only allowed on official buildings of the empire. Chinese roofs are typically of the hip roof type, with small gables. Variant versions are still widespread in Chinese temples and has spread to the rest of East Asia and parts of Southeast Asia.

details_religion

Buddhism as traditionally conceived is a path of salvation attained through insight into the ultimate nature of reality. Buddhism encompasses a variety of traditions, beliefs and practices that are largely based on the teachings of Siddhartha Gautama, commonly known as the Buddha

entrance

Mountains surround the Three Gorges Dam in China on the Yangtze River. The Yangtze River is one of the most fascinating rivers in the world, and a river cruise is a wonderful way to see the river scenery and learn about the history and importance of the Yangtze

exit

The Yangtze River, or Chang Jiang is the longest river in China and Asia, and the third-longest in the world, after the Nile in Africa and the Amazon. The river is about 6300 km long (3915 mi).

firefox

A firefox (not mozilla). The Red Panda, also called the Firefox or Lesser Panda (Latin name: Ailurus fulgens, "shining cat"), is a mostly herbivorous mammal, specialized as a bamboo feeder. It is slightly larger than a domestic cat.

forb_city

The Forbidden City was the Chinese imperial palace from the Ming Dynasty to the end of the Qing Dynasty. It is located in the middle of Beijing, China, and now houses the Palace Museum. For almost five centuries, it served as the home of the Emperor and his household

hk1

Shanghai (Chinese: 上海) is the largest city in China, and one of the largest metropolitan areas in the world, with over 20 million people. This a a view from the Pudong skyline

hk2

Victoria Peak a mountain in Hong Kong. It is also known as Mount Austin, and locally as The Peak. The mountain is located in the western half of Hong Kong Island. With an altitude of 552 m (1,810 ft), it is the highest mountain on the island proper.

hong kong

The "Star" Ferry Company Ltd. is a passenger ferry service operator in Hong Kong. Its principal routes carry passengers across Victoria Harbour, between Hong Kong Island and Kowloon. It was founded in 1888 as the Kowloon Ferry Company, adopting its present name in 1898.

jk3

Hong Kong is a global metropolitan and international financial centre, and has a highly developed capitalist economy. Under the "one country, two systems" policyand according to Basic Law, it has a "high degree of autonomy" in all areas except foreign affairs and defence, which are the responsibility of the PRC Government

mao

the Meridian Gate (午门) is the first entrance to the Forbidden City proper, while Tiananmen was the entrance to the Imperial City, within which the Forbidden City was located. The red placats say "1000 for years for China". Mao in the middle

ocean park

The gondola lift system that connects the two parts of Ocean Park at Hong Kong. This is totally amazing. Fantastic ocean view from above

ocean park2

View from the lift at the Ocean Park. In fiscal year 2007/2008, Ocean Park received 5.03 million visitors awarding it the position of the world's number 15 theme park by annual attendance

the good life

Giant pandas. A pair of Giant Pandas, a male named An An (安安) and a female called Jia Jia (佳佳), were given to Ocean Park by the central government in 1999.

the great wall

The Great Wall stretches from Shanhaiguan in the east to Lop Nur in the west, along an arc that roughly delineates the southern edge of Inner Mongolia. The most comprehensive archaeological survey, using advanced technologies, has recently concluded that the entire Great Wall, with all of its branches, stretches for 8,851.8 km (5,500.3 mi).

the three gorges

Environmental issues with the Three Gorges Dam, which is currently under construction on Yangtze River, include degraded water quality, detriments to wildlife, potential riverbank collapses, and potential silt related falling of coastal areas. Currently, the quality of water in the higher banks of Yangtze is slowly worsening, due to the dam's preventing dispersal of pollutants; algal blooms have risen progressively since the dam’s construction

xian army

The Terracotta Army is a form of funerary art buried with the First Emperor of Qin in 210-209 BC. Current estimates are that in the three pits containing the Terracotta Army there were over 8,000 soldiers, 130 chariots with 520 horses and 150 cavalry horses, the majority of which are still buried in the pits

xitang

Xitang is an ancient scenic town in Jiashan County, Zhejiang Province, China. Xitang is level, densely distributed with rivers, and has a very quiet natural environment. With nine rivers converging at this town, dividing it into eight sections, there are many stone bridges linking it together.

yimu impressions

Zhang Yimou (born November 14, 1951) is an internationally acclaimed Chinese filmmaker and former cinematographer and one of the best known of the Fifth Generation of Chinese film directors. Picture from Hangzhou Impression West Lake.

Enjoy,
Lefteris


Turorial HelloWorld AIR application in Linux. Create a package from scratch

I am running a Fedora 11 Linux in my laptop. These days I decided to spend some time reading about Adobe AIR/FLEX application frameworks. I don’t want to extend this article writing theory and arguments, however it is my feeling that these applications will be prefered in the near future from desktop users. I am reading a book from Wrox, Adobe AIR Create Modify and Reuse (2008) and the first milestone for the developer is to create a “blank” application that prints the canonical programming string to stdout, ie “Hello World”.

Based on the walk-through of this book I will try to describe the steps in order to run your first application in less that half an hour, including the download time of the prerequisites.

  1. First you need Adobe AIR run time. AIR stands for Adobe Integrated Runtime. Adobe AIR is a cross-platform runtime that runs desktop applications compiled under the AIR framework. Go to google.com and search for “Adobe AIR Linux”. The results will send you to the Adobe.com site for AIR. Download the appropriate file. Once you are down you must have a file called AdobeAIRInstaller.bin in your downloads directory. Make this executable and from the command line enter ./AdobeAIRInstaller.bin. A GUI application will be launched and will guide you for the AIR installation. You must be root in order to install. If care about disk quota you can delete the AdobeAIRInstaller.bin after this step.
  2. You now need to proceed to the installation of FLEX SDK. Adobe AIR is the runtime environment of your application and FLEX SDK contains the tools you need to compile, debug and deploy your HelloWorld application. Once again use google.com or search via adobe.com for FLEX 3 SDK. I downloaded flex_sdk_3.4.0.9271.zip and extracted the contents under /home/lefteris/flex. The download takes some time.
  3. Add the bin directory of FLEX SDK to your PATH. This is easy. Open ~/.bash_profile and append the new bin to your PATH variable. Like this PATH=$PATH:$HOME/bin:/home/lefteris/flex/bin. Save this file and use the source command in order to update your system without logging out. source ~/.bash_profile. Now you can use the binaries under flex/bin without using the absolute path at your prompt.

Now you need to type some code. Basically you need two files.

  • a main file – this can be either an MXML (.mxml) or ActionScript (.as) file
  • An application descriptor file using the XML markup

I created a directory HelloWorld in my workspace. The two files that we need for our minimal application are below.

[lefteris@localhost helloworld]$ cat HelloWorld.mxml
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:WindowedApplication
xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
windowComplete=”completeHandler();”>
<mx:Script>
<![CDATA[
// window has completed initial layout and is made visible.
private function completeHandler():void
{
}
]]>
</mx:Script>
<mx:Label text=”Hello World” />
</mx:WindowedApplication>
[lefteris@localhost helloworld]$ cat HelloWorld-app.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<application xmlns=”http://ns.adobe.com/air/application/1.0″>
<id>com.aircmr.HelloWorld</id>
<version>0.1</version>
<filename>HelloWorld</filename>
<name>Hello World</name>
<description>An AIR app to say Hello</description>
<initialWindow>
<content>HelloWorld.swf</content>
<title>Hello World</title>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
</initialWindow>
<installFolder>AIRCMR/HelloWorld</installFolder>
<programMenuFolder>AIRCMR</programMenuFolder>
</application>

So our dir contains HelloWorld.mxml and HelloWorld-app.xml. We are almost there. Ready to compile. cd to your dir and enter the following command

amxmlc -load-config “/home/lefteris/flex/frameworks/air-config.xml” -output HelloWorld.swf HelloWorld.mxml

This will compile your code and create the HelloWorld.swf. Perfect, now let’s run our first app. To launch and preview the application, run the AIR Debug Launcher (ADL) tool found in the /bin folder of your installation directory. A single argument of the application descriptor file is needed to run the ADL. If you look at the descriptor file (HelloWorld-app.xml), you’ll notice that the content value of the initialWindow element is set to the SWF you previously compiled. Type

adl HelloWorld.xml.

Unfortunatelly this did not work for me the first time I run it. I got the error “cannot execute binary file”. I searched a little bit and I realized that I needed to overlay the AIR SDK on top of the FLEX SDK in order to invoke the correct adl. The book described the procedure for MAC and Windows but not for Linux (that is the reason I am typing right now).  So I browsed adobe’s blogs that indicates that we need AIR SDK for Linux. Again search for Adobe AIR SDK for Linux and you will conclude to have a new file under your Downloads directory called air_1.5_sdk.tbz2.  Create a new directory for Adobe AIR SDK, mine is ~/airsdk move your tbz2 file here and trigger the command “tar jxvf ~/air_1.5_sdk.tbz2″.  Now you need the next hack in order to make your stuff moving:

  • cd bin
  • mv adl adl_lin
  • mv adt adt_lin

Don’t ask, do it. Remember that you came here, searching for direction creating a HelloWorld app, right?

Add the new bin directory to your PATH again. My path contains PATH=$PATH:$HOME/bin:/home/lefteris/flex/bin:/home/lefteris/airsdk/bin. So we are almost done:

[lefteris@localhost helloworld]$ ls
HelloWorld-app.xml  HelloWorld.mxml  HelloWorld.swf
[lefteris@localhost helloworld]$ adl_lin HelloWorld-app.xml
error while loading initial content
[lefteris@localhost helloworld]$

What went wrong? What is “error while loading initial content” message mean. This is a known bug/issue to Adobe and is already resolved. You need to make the last change before you launch your application. Open your HelloWorld-app.xml file and change the line <application xmlns=”http://ns.adobe.com/air/application/1.0″> to <application xmlns=”http://ns.adobe.com/air/application/1.5“>.

Now run adl_lin HelloWorld-app.xml again and this is it. We are done.

Hello World from AIR and FLEX

Hello World from AIR and FLEX

Our application is up and running. It just prints a message to the screen however it is an application. Close it by pressing ‘x’ at the top right corner.

Do you want to go a little bit further? In a few steps your project can be turned from a binary file to a complete package. Take 5 more minutes and you will not regret it. Let’s package our application. Go to your prompt and create a certificate in order to sign your applications. This will inform your client about your identity.

adt -certificate -cn HelloWorld 1024-RSA certificate.pfx password

You just created a certificate.pfx file in the current directory. Now let’s package.

adt -package -storetype pkcs12 -keystore certificate.pfx HelloWorld.air HelloWorld-app.xml HelloWorld.swf

Once prompted enter the password. Your directory now contains

directorya file called HelloWorld.air. Let’s try to install it. Double click the .air icon to launch the installer. Just a note here. I faced some problems at the beginning with the permissions and I ran the installer like this

[lefteris@localhost 1.0]$ pwd
/opt/Adobe AIR/Versions/1.0
[lefteris@localhost 1.0]$ ls
Adobe AIR Application Installer  Adobe AIR Application Installer.swf  airappinstaller  libCore.so  Resources
[lefteris@localhost 1.0]$ sudo Adobe\ AIR\ Application\ Installer /home/lefteris/714/air/helloworld/HelloWorld.air

as a sudoer things are always easier. Anyway either by double click or with the above sudo command you will see the following

install_promptClick the install button

install_contselect the directory you want to store the files of the application and press the “Continue” button.

licenceAgree with the terms and conditions. You are done. Your application is installed in the system. Go to the your Menu and launch it

hello_applicationsIn case you need to uninstall it use the Adobe Uninstaller from your Menu

helloworld_uninstallYou see that Hello World is there. You may receive this error message if you try to uninstall this package:

not_allowed_uninmeaning that you need to be root to uninstall. (try to do it using sudo).

Conclusion: We started this small project from scratch. We gathered all the prerequisites in order to create an *.air package, ie AIR/FLEX sdks AIR runtime, we wrote two simple scripts and we finally created a signed package.

I hope you liked this small tutorial. Please send me feedback.

Regards,

Lefteris


Goog11e, Google is 11 years old

hb google :->

hb google :->

Google is 11 years old. This logo is created for this special day. I was always complaining for the similarity of character ‘l’ (for letter) and the digit 1. I guess most of us have the same problem. Now this similarity takes effect in this nice marketing gif.


Kopraina, Arta

The wetland of the Amvrakikos Gulf, the biggest wetland in Greece, hosts a complex ecosystem consisting of remarkable floral and faunal species.

One of my favotire spots of Amvrakikos is Kopraina. This uninhabited small spot onetime was a prosperous small port well known for the salt production. At 1927 this place was officially renamed to Aluki be the Greek Government. Aluki means a place here salt is being generated. However this name was never utilized be the local people. The traditional Kopraina prevailed.

After the second World War things changed. Moreover the Greek Civil War (1946-1949) led to the decadence of the whole area.

Small boats in Kopraina

Small boats in Kopraina

Traditional salt buggy

Traditional salt buggy

amvrakikos sunset from kopraina

amvrakikos sunset from kopraina

kopraina scenery

kopraina scenery

in the small square

in the small square

stone steps

stone steps


I Have A Link (3)

Sniffing SSL Traffic using SSLStrip  with video
http://www.securitytube.net/Sniffing-SSL-Traffic-using-SSLStrip-video.aspx


students launched a digital camera into near-space to take photographs of the earth from high up above
http://space.1337arts.com

searching for jobs related to SOAP
http://swick.co.uk/index.php/2009/07/15-creative-soap-designs/

Microsoft already had its own open source (OSI-approved) licenses, its own open source project hosting
site and now it’s adding its own non-profit open source foundation
http://www.codeplex.com/

visual search from bing.com, article @rrw
http://www.readwriteweb.com/archives/bing_launches_visual_search.php

Video course @MIT. Rocks
http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/LectureVideos/index.htm

Recipes in Greek.
http://tastefull.wordpress.com

travel around: the great ocean road
http://www.greatoceanrd.org.au/

One year after the worst week of the financial crisis, some of the most famous names on Wall Street are still
looking for jobs or fighting lawsuits

http://www.nytimes.com/interactive/2009/09/13/business/20090913-where-are-they-now.html

Research
http://research.microsoft.com/en-us/

Interesting, quote from inside “Somewhat like a communication dance”
http://en.wikipedia.org/wiki/Mirroring_(psychology)

Blogged with the Flock Browser

Follow

Get every new post delivered to your Inbox.