DART on Googlen avoimen lähdekoodin ohjelmointikieli, joka toimii verkkosivuilla ja servereissä, ja jolla voi JavaScriptiä paremmin hoitaa suurten verkkosovellusten koodaamisen. DART kielen kehitys aloitettiin 9/2011 ja 1.0-versio kielestä julkistettiin loppuvuodesta -2013. Nyt jo on olemassa lähes valmiit työkalut Chrome selainta varten. Blogger-blogien pitäjiä varten saamme ehkä kiintoisia Gadgetteja sivupalkkeihin ja muuta toiminnallisuutta verkkosivuille.
TÄMÄ blogi sisältää pääosin omia pohdintojani ja muistiinpanoja, eikä se varmaankaan tuo kovinkaan paljon uutta DART-kielen opiskeluun. Materiaali on pääosin KOPIOITU :( Dartlang-sivustoilta, josta kannattaa KÄYDÄ TARKISTAMASSA kielen viimeiset syntaksit.

keskiviikko 29. elokuuta 2012

Can't send FeedBack in Dart Editor. Palautteen lähettäminen DartEditorissa ei onnistu.

Maaliskuusta lähtien palautteen lähettäminen on onnistunut.. en onnistunut selvittämään, miksi se ei aikaisemmin onnistunut.


Ongelman pohtimista aikaisemmin:  
Hmm.  This might be related to:

This versions of dart seem to demand  Java 6 !!
You have not jre,  or Java development kit; jdk.
I installed jdk  under my dart program directory, and now it works

or:   Try DartEditor in Linux/Ubuntu system....


And same in finish language:
Ja sama suomeksi:

Palautteen lähettäminen Dart Editorissa ei onnistu.  Editorit 10994,  11397

Ratkaisu:  
Ehkä Sinulla ei ole jre, Java Runtime environment
tai                           jdk, Java Development Kit  
Nämä DartEditorin versiot siis taitavat vaatia   version   6 noista edellämainituista.

Tai:     Asenna koneeseen Linux, vaikka Windowsin sisälle ja käytä Editoria sieltä.

kokeilin lopulta kaikenlaista, sorkin joka paikkaa.. ehkä uusi editorin versio korjasia asian...
.

Ongelma Dart-editorin asentamisessa. RATKAISTU

(Huom, nämä DartEditorin versiot näyttävät vaativan jre tai jdk version 6.  Kun latasin JDK 6:n dart-hakemistooni, niin kaikki näyttää toimivan hyvin.)
Klikkaan editorin asennuspaketin kuvaketta (darteditor.exe)  se avautuu, logo näkyy noin 5 sekunnin ajan, sitten Editori antaa pitkän virheilmoituksen:  
"   \DartEditor\.metadata" is read-only.  " 

Tällainen voisi liittyä ongelmaan, joka minulla oli editorien 10994 ja 11397 kanssa:

Windows Defender esti DartEditorin asentamisen, eikä edes antanut mitään varoitusta tai tiedotusta siitä.  Ei, vaikka olen koneeni "Administrator".  

DART-editori asennetaan toistaiseksi muista ohjelmista poikkeavalla tavalla; Siinä ei ole erillistä asennusohjelmaa, VAAN käyttäjän on avattava se "Windows pääkäyttäjänä", Administraattorina.  

Vasta kun avasin kuvakkeen vartavasten hiiren OIKEAN painikkeen kautta "Windows Administrator:ina", sain asennusohjelman käynnistymään.  Sitten minun piti normaaliin tapaan vastata:  "Kyllä, haluan antaa tämän ohjelman tehdä muutoksia koneeseeni"  

Nyt näyttää siltä, että minun on jatkossakin avattava DartEditori AINA Administratorina.  Toisessa koneessani ei tätä ongelmaa ole, koska olen ymmärtänyt laittaa Windows Defenderin pois toiminnasta.  Myöskin tämän koneen Linux/Ubuntu puolella asennus sujui ongelmitta.  
Eiköhän tämäkin ongelma ratkea joskus...

Kysyin neuvoa tähän ongelmaan Dartlang keskusteluryhmässä:  
Dart Editor FirstRun and missing User\Settings File 


Minä törmäsin tähän ongelmaan, koska tavallisessa koneessani en käytä *Windows Defenderiä.  Siksi se pääsi yllättämään niin pahasti toisessa koneessa. 

Ohjelmoijat eivät yleensäkään käytä Windowsia juuri tämänkaltaisten asioiden takia. 
Suosittelen Linuxia.

Huom!   Nämä DartEditorin versiot näyttävät vaatiivan jre tai jdk 6-version.  
Asensin JDK:n (Java Development Kit) 6:n  dart hakemistooni, ja kaikki näyttää sitten toimivan hyvin. 



Problem installing Dart Editor, caused By Windows Defender. Solved.

Click EditorFile to install it, Logo is seen for 5 seconds, then you get long error message:  
"   \DartEditor\.metadata" is read-only.  " 

This might be connected to same problem, that I had with editors 10994 and 11397. 

Windows Defender prevented DartEditor/installation from launching, and WD gave no warning or information about it. Editor logo was  visible for 5 sec, and then I got DartEditor error message..  And I am The administrator in computer.  

When I launched DartEditor "as Windows administrative"  and answered: "Yes I want to allow this unknown program to ....", I got it installed.  Now I must use this option also when launching editor, but I hope it will be solved soon... 

I asked about this in:  Dart Editor FirstRun and missing User\Settings File 
.

tiistai 28. elokuuta 2012

DartEditor (11434) in windows7 Vista with Problems

Cant Launch DartEditor, it can't create Settings Folder, because: "Read Only"   ??
Settled partly:  Look at the end:  

Editor 11434  Loaded To my bigger computer, HP,  OK.  (tought it was 11397---)

In smaller PB, also windows Vista, same problems contiunue...

DartEditor dont start...  It cant make its settings file to <users personal folder>
I try to move folder from my HP, no succes.
    .metadata is read only...

So, what next?   Go to work?   No.   Seems I like to be stucked with problems.  Can't leave them behind.       And I know that only stupid and lazy people use Windows.  I AM ashamed.
Any plans?  little something:

A.   Do check, what are the differencies between my 2 computers.

B.    Try, try, boy...  stuck your head to thick wall.. (never ever even dream of reading instructions).

C.     Conflicting with Eclipse?  so. settings...  And why are Dart folders full of Eclipse stuff?
         I thought i read ALL dart material, but this Eclipse thing i must have partly missed...

D.     Windows security / FireWall, and so.

E.       In HP /DartEditor I can not send FeedBack to Editor Group!  Why?
          How can i send mail directly to EditorTeam?  where can I find their GMail @ ?

..to be continued..   forever...   :)

Seems that this was all about stupid Windows Defender! 
I opened now installation file in Windows with administrative priviledges.  !!  Neither Windows or editor warned me, that I must do it.  Seems that I must now do it every time.  I AM in Windows with full administrative priviledges!  
Dart Editor is functionin, but I do not have now that    .metadata folder.  
     Maybe I should put Windows defender to sleep, when I first time install DartEditor.
In my HP-computer I do not use defender and there I did not have these problems.  

to be continued...







keskiviikko 22. elokuuta 2012

Dart Editor 10994 Problem ... With Eclipse Workspace (?)

I have downloaded about 20 versions of DART editors to my 2 computers without big problems.
I Uploaded 22.8.2012  DartEditor 10994 to my HP Computer without much problems, Java just had to be updated to both computers.    

Settled partly:  Look at the end of my next blog post.  

For PB computer, Win 7, 64 Bit, i get problems.  They are maybe connected to either:
1.   Conflicting settings with Eclipse
I do have Eclipse/Java in my Public folder...

If Dart Editor and Eclipse share the same workspace directory, they'll save conflicting settings, resulting in warnings and errors from both Dart Editor and Eclipse. 
The fix: Don't use the Dart installation directory for any other Eclipse-based software.
Hmm. How is it done?

Or.   2     Missing DART settings directory in my personal Folder,  Public/ USER / DartEditor
       Folder is deleted by me.
- DART editor settings folder in <user's home directory>\DartEditor  Dont exist.


DART EDITOR.INI     File is like this in both computers:

-data
@noDefault
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m


CONFIG.INI  in  DART / Configuration is in both computers:

#Product Runtime Configuration File
eclipse.application=com.google.dart.tools.deploy.application
org.eclipse.update.reconcile=false
osgi.bundles.defaultStartLevel=4
eclipse.product=com.google.dart.tools.deploy.product
osgi.splashPath=platform:/base/plugins/com.google.dart.tools.deploy
osgi.bundles=org.eclipse.equinox.simpleconfigurator@1:start
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info

AND THIS CONFIGURATION FOLDER IS FULL OF ECLIPSE STUFF   WHY?


.Eclipseproduct file:

#Eclipse Product File
#Mon Aug 20 11:42:11 PDT 2012
version=1.0.0.201208201142
name=Dart Editor
id=com.google.dart.tools.deploy.product



=======================================================
When I try to run Dart Editor, I can see DART logo for 5 seconds,  then I get error log :

!SESSION 2012-08-22 17:40:03.005 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY com.google.dart.tools.deploy 4 0 2012-08-22 17:40:12.126
!MESSAGE The folder "C:\Users\  *MY_OWN_DIRECTORY_*    \DartEditor\.metadata" is read-only.
!STACK 0

*   *    *    *    *     And much other stuff here.....

========================================================

The File:   C:\Users\  *MY_OWN_DIRECTORY_*    \DartEditor\.metadata" is read-only...
BECAUSE...   I have deleted The directory.     Why?
BECAUSE...   I had problems with Java and coult not run editor...
Got Java updated, and NOW editor could run,  BUT...

...   There is a conflict with   ECLIPSE..??   wich  I dont want, and wich  I dont need.

IT SEEMS THAT DART EDITOR CANT RECOVER FROM THIS.
Maybe Dart Editor cant create new     User\DartEditor    folder....
It cant do itself a new metadata....

In case that this could bring problem to other users, i had to make this public. 
Trying to find answer:

1.  I hope that someone who knows things, reads this, and could gave the right solution.

2.  Maybe I wait for the new editor version to solve this....
     Check this 64 or 32 bit system in your computer, and load THAT editor.
      Load bleeding edge versio every day, and try it...    23.8. it did not help.

3. Should I file a BUG or ask in Google+/DART?  When I know exactly WHAT to ask.

4. Try to UNDELETE that METADATA-file....    No possible. 
     Copied it from another computer, no succes. 

5. Compare DART in my HP-computer to DART in my PB-Computer, and....

6.  Forget this and load DartEditor to LINUX-system in my PB-Computer..    Works.
      But I did not forget this....

7.  Read these and other articles....
http://blog.dartwatch.com/2011/10/step-by-step-building-dart-eclipse-ide.html

https://plus.google.com/107675318329982835686/posts/W73PjjuZ7Qi

8.   Delete   ALL DART FOLDERS AND FILES  and hope that new installation will correct things.
      So that it acts like a new application....  Start from new....  Did not work. 
22.8.2012  klo  21.46   UIT +2  Helsinki  Time:
I DELETED  *ALL*  DART FILES AND FOLDERS FROM MY COMPUTER.  LOADED DART AGAIN.  RUN IT.   FAIL.   What then...  Go to  Ubuntu.... ?
      Maybe Dart should have an Uninstaller  ??

9    Try with other windows user profile.     No succes.  Same errors.

10.  Find OLDER VERSION of editor and hope that it makes directories, where all Dart Editor settings are saved.  And THEN the new versio...

11.   Delete temporarily Dart-settings directory in my other, HP-computer. Do I get an error? 

12   http://code.google.com/p/dart/issues/list?can=2&q=label%3AArea-Editor
       Did read it, no help.

13.   Is there a "first run" -option in Dart Editor?

14.   Loadeddart to my personal folder.  No Succes.
        Deleted all Java-Eclipse applications.  No Succes.
 
15.  Be clever and try to think something new answer.

And if i can make some useful material out of this for other users, so I must  File BUG /  Ask it in Stack Overflow /  or  ask in Dart Discussion..  so. collect all facts concerning this case..
But first I must understand what is essential in this matter.

In Linux / Ubuntu  Dart Editor loaded and run without problems in my PB-computer.  But it does not solve this problem.   But before I start disturbing Dart group programmers, I really must read everything in here:   http://www.dartlang.org/docs/editor/getting-started/
I wish I had more time and patience.   :(

I tried to send FeedBack to DartEditor team, from my HP-Computer, where DART is functioning.
I can not send FeedBack from Dart Editor!!  Is 2 pages too much?    Even 3 rows cant be sent.
And error message box is put UNDER text, so that I cant quit it... Without going to Windows Work-Control.

Now it seems I have very little that I can try...    exept to stop trying...
I mus do another blogtext,  some text have already disappeared from this file....


27.8.    FOUND THIS:      http://code.google.com/p/dart/issues/detail?id=702
Dart Editor as an Eclipse plugin [+10]
Is this accidentally  loaded to my PB-computer.  I read this and I must have pressed link.  !!    And now Editor thinks it is Eclipse Plugin?!

https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/XQMT0FVLt_A
Dart Editor Plugin for Eclipse (Alpha) 15 viestiä 8 käyttäjältä ryhmässä Dart Discussion

27.8 Deleted all ALL!  *DART*  material from PB-computer.  New Download.  No Work.  :(  

28.8.  So the problem might be there in the  "Other, quick installation", The "Second Click".  Seems that  in PB i do not have that   MyPersonalWindowsAccount \ darteditor folder...  .metadata ...
When in UBUNTU it works, so this might be  WINDOWS-related problem ?  

By asking in Dart Discussion croup I wanted to close away some alternatives...
https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/os00Yjx_UVs
Maybe I did not quite success....

Altogether, this must be something very simple and stupid mistake here, but I just cant figure it out.

Disabled Windows Defender.  No help.  New Editor 11397, same Problem.
DartEditor dont now make this  "Settings Directory.
!MESSAGE The folder "C:\Users\   <user's home directory>  \DartEditor\.metadata" is read-only.
!STACK 0
java.io.IOException: The folder "C:\Users\   <user's home directory>           \DartEditor\.metadata" is read-only.  







Yksinkertainen DART-koodi Videon esittämiseksi ja siihen liittyvä keskustelu


    Dart keskustelussa on yksinkertainen esimerkki videon esittämisestä:
    show a simple video using VideoElement
      #import('dart:html');

      void main () {
      var videoClip = new VideoElement();
      videoClip.src = "http://slides.html5rocks.com/src/chrome_japan.webm";
      videoClip.height = 100;
      videoClip.width = 100;
      videoClip.on['canplay'].add((_) {
      videoClip.play();
      });
      document.body.nodes.add(videoClip);
      }
Pastasin tämän koodin editoriin:  10993  ja se toimi. 


Bob Nyström esitti paremman version:   (joka tosin ei toimi minulla...  piti palata edelliseen )
    Vanhempi editori vaati päivitystä, ennenkuin suostui ajamaan koodin.