Author: margusja
Minu esimene iPhone iAd
Ei midagi erilist kuid SDK-4 beeta testimine millega kaasneb iAd framework on minu enda silmis omaette saavutus. Nüüd natuke sisu ka ja saabki raha teenima hakata.
[kml_flashembed movie="http://www.youtube.com/v/y3PveiWob1c" width="425" height="344" allowfullscreen="true" fvars="fs=1" /]
Andruse versioon Mr. Lawrence – stoney ground
Originaal Mr. Lawrence
Mr. Apple & Mr. Microsoft
selenium-rc
Testin kas selenium-rc server toimib. Enne sisenen serverisse ssh serverinimi -X ehk siis X over ssh.
[22:40:50 margusja@arendus ~]$ java -jar /usr/local/bin/selenium-server.jar -interactive
22:42:00.790 INFO - Java: Sun Microsystems Inc. 1.6.0_0-b12
22:42:00.791 INFO - OS: Linux 2.6.27.38-170.2.113.fc10.i686 i386
22:42:00.798 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
22:42:00.864 INFO - Version Jetty/5.1.x
22:42:00.865 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
22:42:00.866 INFO - Started HttpContext[/selenium-server,/selenium-server]
22:42:00.866 INFO - Started HttpContext[/,/]
22:42:00.871 INFO - Started SocketListener on 0.0.0.0:4444
22:42:00.872 INFO - Started org.mortbay.jetty.Server@6e70c7
Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)
cmd=open&1=http://margusja.pri.ee
22:42:28.559 INFO - ---> Requesting http://localhost:4444/selenium-server/driver?cmd=open&1=http://margusja.pri.ee&sessionId=
22:42:28.765 INFO - Checking Resource aliases
22:42:28.771 INFO - Command request: open[http://margusja.pri.ee, ] on session
22:42:28.780 ERROR - Exception running 'open 'command on session
java.lang.RuntimeException: sessionId doesn't exist; perhaps this session was already stopped?
at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:218)
at org.openqa.selenium.server.commands.SeleniumCoreCommand.execute(SeleniumCoreCommand.java:34)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:549)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
22:42:28.781 INFO - Got result: ERROR Server Exception: sessionId doesn't exist; perhaps this session was already stopped? on session
cmd=getNewBrowserSession&1=*firefox&2=http://margusja.pri.ee
22:43:22.731 INFO - ---> Requesting http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*firefox&2=http://margusja.pri.ee
22:43:22.736 INFO - Command request: getNewBrowserSession[*firefox, http://margusja.pri.ee] on session null
22:43:22.738 INFO - creating new remote session
22:43:22.933 INFO - Allocated session ef946e17e9634c00b94683cf65c81dd8 for http://margusja.pri.ee, launching...
22:43:23.023 INFO - Preparing Firefox profile...
Xlib: extension "RANDR" missing on display "localhost:11.0".
Xlib: extension "RANDR" missing on display "localhost:11.0".
22:43:54.433 INFO - Launching Firefox...
22:44:47.477 INFO - Got result: OK,ef946e17e9634c00b94683cf65c81dd8 on session ef946e17e9634c00b94683cf65c81dd8
^C22:47:08.004 INFO - Shutting down...
22:47:08.065 INFO - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
Valmis ka esimene IPhone simple app
Sai katsetatud ka IPhone SDK-d. Iseenesest mõtetu app kuid edev. Kui leian mõne IPhone millega testida siis ehk see osa saab ka arenev.
Minu esimene veebilehitseja
Kuna hello world osutus natukene liiga lihtsaks ning tegelikult sai ka teostatud (mõistlik), soovisin teada mida Xcode IDE plus webkit framework koos pakuvad. Olen üllatunud kui lihtne on luua töötavat lahendust.
Siin on minu esimene browser 🙂
Peida-näita apple app
Tutvumiseks Xcode IDE-ga on hea treening n.n peida/näita applicationi ehitamine. Annab ülevaate hästi sellest kuidas siduda nupp või nupud eeldefineeritud tegevustega. Või siis kutsume neid build-in tegevustega.
Kokku on lastud app 64 bitise X-code 3.2 peal. OS 10.6.x
Programm lihtsalt peidab ülejäänud aknad vajutades nupule peida ning taastab olukorra kui vajutate nuppu näita.