Archive for the ‘Flash’ Category

Android vs. iOS for developers

Friday, November 11th, 2011

Here are my thoughts on Android vs. iOS for developers:

Pros and cons for Android:

Pros:

  • Android is open source
  • Android runs on many platforms. For instance: many different smartphones, laptops, netbooks, tablets, Google TV, etc.
  • You develops apps mainly in Java
  • Java apps runs on most platforms like Windows, Linux, Mac, BlackBerry and all Android-based products, + +
  • You can develop apps in C++ if you need the extra performance
  • Android takes more and more smartphone market shares, and I have read that it is likely that it will exceed iOS in 2012.
  • Android runs Flash
  • You are not locked into one hardware manufacturer.

Cons:

  • Android App Store, or the lack of a good App Store.
  • Customers have often little or no knowledge of Android

 

Pros and cons for iOS:

Pros:

  • Customers wants it (if it is an advantage or not can be debated, but there is a large customer base there)
  • Apple has very good development tools, but they exist, unfortunately, only for Mac. It is possible to develop iOS apps on Windows-based platforms, but as far as I know, it is not a good option.
  • IPad and iPhone are great products, although they are quite overpriced.
  • App Store works well. You can be confident that the app you buy are safe and secure. Or can you?: http://onforb.es/tW94L2 … Notwithstanding, it is safer and easier than Android so far.
  • You develop a low-level programming language that runs faster than for example Java and Flash

Cons:

  • Comprehensive and time-consuming approval process. Even updates to the existing products must go through the approval process. I have heard of developers who have waited up to two months to get their approval.
  • You have to pay a fee to be developer.
  • Apple takes 30 percent of revenues sold through the App Store.
  •  iOS apps has to be sold through the App Store.
  • You can be thrown out of the developer program by Apple: http://zd.net/sTM4el
  • You need a Mac to develop Apps for the iPhone and the iPad. There are alternative solutions for Windows, but they are not very good so far I know

 

I do not like Apple’s rough business strategy. Apple’s products are good, but somewhat overpriced. It is already some good Android-based pads. Have you seen the Asus Eee Pad Transformer TF101 yet?  A lecturer at the University showed it to me here the other day, and it was sexy! I believe Google will launch a pad very soon as well.

 

I would like to hear your thoughts on this subject?

Jeg beklager

Friday, May 27th, 2011

I forrige uke sendte jeg en epost til Det mosaiske trossamfund i Norge med spørsmål om hva de mente om Senter mot antisemittisme (SMA). Jeg må skamfullt medgi at jeg verken har fulgt med i timen eller gjort god nok research. Hadde jeg besøkt mitt favoritt nettsted Wikipedia og søkt etter “Senter mot antisemittisme” ville jeg ha funnet ut følgende:

  • Grunnlegger av SMA Erez Uriely og hans kone Rachel Suissa ble i 2004 ekskludert fra Det Mosaiske Trossamfunn
  • tidligere overrabbiner i Norge Michael Melchior har beskrevet Erez Uriely som et kahanistisk element i Norge
  • I 2005 anklaget SMA Ariel Sharon for å planlegge «etnisk rensning» av jøder fra Gaza, og hevdet at Sharons mål er å gjøre Gaza «Judenrein», i forbindelse med Sharons evakueringsplan for Gaza
  • I 2009 anklaget SMA Anne Sender for:
    • å ha stått bak en avn«de mest antisemittiske norske hendelser anno 2008-2009»
    • å demonisere«jøder, deres rabbinere og jødedommen».
  • Bakgrunnen for anklagen var Senders kritikk av de ekstreme israelske settlere.

Lista er lang, resten kan leses på Wikipedia.

Poenget er at jeg burde selvsagt ha forstått at Det Mosaiske Trossamfunn ikke støtter ytterliggående organisasjoner som SMA, og sitter her nå er litt flau over å ha sendt eposten.

Senter mot antisemittisme er etter min oppfatning en organisasjon hvor alt som kan tolkes som kritikk, og dette er de gode på, blir sett på som antisemittisme. De kastet meg ut av Facebook-gruppa og slettet alle kommentarene/innleggene uten begrunnelse, men sannsynligvis fordi jeg var kritisk til SMAs karakteristikker av muslimer og arabere som gruppe som går langt over grensen for rasisme og høyreekstremisme. De virker som de har lullet seg inn i en ubestridelig virkelighet man ikke kan motsi, og jeg tror det er lenge siden kampen de kjemper virkelig handlet om antisemittisme.

Adobe Air, SQLite, and apostrophes

Tuesday, March 16th, 2010

I’m currently developing an Air application and I run into a problem inserting file names with apostrophe (because apostrophe are used as string delimiter). There are several ways to handle this problem. You can add two apostrophes, and Jake Churchill has made a function for this.

While working with back-end I’ve used PHP’s utf8_encode edit: I meant rawurlencode() quite a lot, and AS3 has several similar functions, but there is only one that encodes apostrophes, and it’s called escape(). So what you can do is escape() the strings to be inserted into SQLite, and use unescape() after receiving the string back from the database.

Here is an example with escape() and unescape() used in AS3:

var testString:String = "This is a test ' with ' several apostrophes'";
trace( testString ); // This is a test ' with ' several apostrophes'
testString = escape( testString );
trace( testString ); //This%20is%20a%20test%20%27%20with%20%27%20several%20apostrophes%27
testString = unescape( testString );
trace( testString ); //This is a test ' with ' several apostrophes'

Here is an example with rawurlencode and rawurldecode() used in PHP:

$testString = "This is a test ' with ' several apostrophes'";
echo $testString . "
"; // This is a test ' with ' several apostrophes'
$testString = rawurlencode( $testString );
echo $testString . "
"; // This%20is%20a%20test%20%27%20with%20%27%20several%20apostrophes%27
$testString = rawurldecode( $testString );
echo $testString . "
"; // This is a test ' with ' several apostrophes'

Christmas Card

Wednesday, December 23rd, 2009

This was my first AS3 attempt that I did at Christmas 2007. I been too busy to create a new one so I reuse it with a new image :-)

Merry Christmas And Happy New Year all friends and fellow Flashers out there!

PS: You can drag, shake and throw me around!


Get Adobe Flash player

Nigerian lottery mail in Norwegian

Tuesday, October 27th, 2009

Today I finally got what I’ve been waiting for in many years; A business proposal that is too good to be true, in Norwegian. Mr. Patrick Chan sounds credible and I have allready contacted him. He only needed $10.000 to get started, the money is allready transfered to his (nigerian) account and I’m very excited while I’m waiting for my profit.

Here is the letter in full if others want to do business with him as well. His Norwgian is pretty good as well, almost as good as google translater:

Subject: Jeg trenger din partnerskap

Attention

Jeg er Mr. Patrick KW Chan direktшr og finansdirektшr i Hang Seng Bank Ltd, Hong Kong. Jeg har en lukrativ forretning forslaget av gjensidig interesse е dele med dere, det innebжrer overfшring av en stor pengesum. Jeg fikk referanse i mitt sшk etter noen som passer mine foreslеtte forretningssamarbeid. Hvis du er interessert i е jobbe med meg kontakte meg via min private e-post (ptrcchnn@yahoo.com.hk) for ytterligere detaljer

Ditt tidligst svar pе dette brevet vil bli verdsatt.

Mr. Patrick Chan

E-post: ptrcchnn@yahoo.com.hk

I just say: Go for it! :-)

Attention

Jeg er Mr. Patrick KW Chan direktшr og finansdirektшr i Hang Seng Bank Ltd, Hong Kong. Jeg har en lukrativ forretning forslaget av gjensidig interesse е dele med dere, det innebжrer overfшring av en stor pengesum. Jeg fikk referanse i mitt sшk etter noen som passer mine foreslеtte forretningssamarbeid. Hvis du er interessert i е jobbe med meg kontakte meg via min private e-post (ptrcchnn@yahoo.com.hk) for ytterligere detaljer

Ditt tidligst svar pе dette brevet vil bli verdsatt.

Mr. Patrick Chan

E-post: ptrcchnn@yahoo.com.hk