.JARa's Bilingual Weblog

Life's better with NetBeans
photo of Jara

(EN) Plugin Manager can work in background ( 20080130 Středa leden 30, 2008 )
English flag The tool for plugin installation and update was completely rewritten in NetBeans 6.0 so that the Update Center Wizard was removed and we have the Plugin Manager instead. It was long way to stabilize the Plugin Manager and find the best way of presenting the logic to users. I think that now there are no big problems with this tool (of course there are some low priority issues that are always in any software smile). It is available in main menu Tools | Plugins.
Current daily builds include one improvement in the area of Plugin Manager. It can Run in Background. This feature was highly required by users so that they may now continue with coding their sources while new plugins are being installed.
The Run in Background feature can be activated by the checkbox in the installer and once the user activates Run in Background it cannot be switched to the foreground (until the current instance of installation is finished).
Run in Background
Run in Background checkbox.

During the Run in Background the Plugin Manager will have disabled actions and the process of the installation is displayed at the status line as the standard NetBeans progress tool.
Progress of install
Progress of installation can be viewed.

When the installation (Run in Background) is finished then the bubble and the restart icon appears at the bottom of the NetBeans IDE in case that some plugin requires restart (the bubble stays there only for a while).
Bubble with the restart icon
Bubble and the restart icon in IDE status line.

Posted by jara ( I 30 2008, 03:02:00 dop. CET ) Permalink Comments [1]
(CS) Plugin Manager dovede pracovat na pozadí ( 20080130 Středa leden 30, 2008 )
Czech flag Nástroj na instalaci a update pluginů byl kompletně přepracován v NetBeans 6.0 takže byl odstraněn nástroj nazvaný Update Center Wizard a namísto něj teď máme Plugin Manager. Plugin Manager prošel dlouhou cestou stabilizace a bylo obtížné najít pravou cestu jak prezentovat uživateli jeho logiku. Myslím, že nyní s ním nemáme žádné větší problémy (samozřejmě kromě issues s nižší prioritou, které jsou součástí každého softwaru smile). Dostupný je z hlavního menu Tools | Plugins.
Současné daily buildy obsahují jedno vylepšení v oblasti Plugin Manageru. Ten je možné totiž běžet na pozadí(Run in Background). Tato vlastnost byla hojně vyžadována uživateli, takže je nyní možné programovat v průběhu instalace pluginů.
Run in Background lze aktivovat pomocí checkboxu v installeru. Ovšem poté co je Run in Background aktivován, není možné přepnout Plugin Manager znovu do popředí (dokud není aktuální instalace ukončena).
Run in Background
Run in Background checkbox.

Během Run in Background jsou akce v Plugin Manageru disablovány a proces instalace je zobrazen ve stavové řádce jako standardní NetBeans progress.
Progress of install
Progress instalace.

Jakmile je instalace (Run in Background) u konce, objeví se v na chvíli pravém dolním rohu NetBeans IDE bublina a restart ikona (v případě, že některý z pluginů vyžaduje restart).
Bubble with the restart icon
Bublina a restart ikona ve stavové řádce IDE.

Posted by jara ( I 30 2008, 03:00:00 dop. CET ) Permalink Comments [0]


(EN) NetBeans repository moved to Mercurial ( 20080128 Pondělí leden 28, 2008 )
English flag As many users already know the NetBeans repository migrated from CVS (cvs.netbeans.org) into Mercurial(hg.netbeans.org). I have already installed Mercurial binaries from http://mercurial.berkwood.com/ on my Mac OS X (running with Leopard). I have met the problem with running of hg. It was not possible to clone testing repository from command line. The command hg clone http://hg.netbeans.org/main finished with the following output:
[.JARa]/space/tmp/tmprepository #hg clone http://hg.netbeans.org/main
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in 
    mercurial.dispatch.run()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 26, in dispatch
    except util.Abort, inst:
  File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 74, in __getattribute__
    self._load()
  File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 46, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.5/site-packages/mercurial/util.py", line 32, in 
    _encoding = locale.getlocale()[1]
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 373, in _parse_localename
ValueError: unknown locale: UTF-8

The problem is that the system property LANG was set to UTF-8. There are 2 solutions how to make hg to be working correctly:
1. Simply execute command export LANG="" or better just unset LANG. The disadvantage is that this doesn't work globally so that you may want to write it to the proper user config files.
2. The second option is to go to the Terminal Preferences, then select the tab Advanced in Settings category. You need to deselect the checkbox on the bottom of the dialog.

Terminal's settings
The Settings dialog of Terminal.

You can find useful some links related to NetBeans migration to Mercurial:
-http://wiki.netbeans.org/wiki/view/HgMigrationDocs - NetBeans hg migration document
-http://wiki.netbeans.org/HgHowTos - How To page
-http://mercurial.berkwood.com/ - hg binaries
-http://www.selenic.com/mercurial/wiki/ - selenic home page
Posted by jara ( I 28 2008, 09:45:58 dop. CET ) Permalink Comments [0]
(CS) NetBeans repository je na Mercurialu ( 20080128 Pondělí leden 28, 2008 )
Czech flag Jak už mnozí asi vědí NetBeans repository přešla z CVS (cvs.netbeans.org) na Mercurial(hg.netbeans.org). Když jsem si nainstaloval Mercurial "binárky" z http://mercurial.berkwood.com/ na můj Mac OS X (běží mi tam Leopard), narazil jsem na problém při spouštění hg. Nebylo možné si naklonovat repozitory z command line. Příkaz hg clone http://hg.netbeans.org/main skončil vždy s následujícím výstupem:
[.JARa]/space/tmp/tmprepository #hg clone http://hg.netbeans.org/main
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in 
    mercurial.dispatch.run()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 26, in dispatch
    except util.Abort, inst:
  File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 74, in __getattribute__
    self._load()
  File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 46, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.5/site-packages/mercurial/util.py", line 32, in 
    _encoding = locale.getlocale()[1]
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 373, in _parse_localename
ValueError: unknown locale: UTF-8

Problém byl v tom, že systémová proměnná LANG byla nastavena na UTF-8. Jsou 2 možnostu jak přimět hg aby začal fungovat správně:
1. Jednoduše příkazem export LANG="", nebo lépe unset LANG. Nevýhoda je, že tohle nefunguje globálně takže je možné zapsat to do příslušného konfiguračního souboru uživatele.
2. Druhá možnost je přes Terminal Preferences, pak vybrat záložku Advanced v Settings categorii. Tam je potřeba odznačit checkbox, který se nachází dole na dialogu.

Terminal's settings
Settings dialog pro Terminál.

Následující linky vztahující se k migraci NetBeans na Mercurial mohou být užitečné:
-http://wiki.netbeans.org/wiki/view/HgMigrationDocs - NetBeans hg migration dokument
-http://wiki.netbeans.org/HgHowTos - stránka s HowTo
-http://mercurial.berkwood.com/ - stránka s binární soubory hg
-http://www.selenic.com/mercurial/wiki/ - selenic home page
Posted by jara ( I 28 2008, 09:45:44 dop. CET ) Permalink Comments [1]


(EN) Sun acquires MySQL - starting blogging again ( 20080122 Úterý leden 22, 2008 )
English flag The subject of this entry tells enough. I can only say that for me MySQL is "The world's most popular open source database" which is motto of http://www.mysql.com/. You can find more details about the acquisition at Jonathan's blog. Unfortunately Jonathan is not blogging in Czech so that readers of my Czech entry need to switch to EnglishSmile. MySQL logo
Posted by jara ( I 22 2008, 11:01:00 odp. CET ) Permalink Comments [3]
(CS) Opět začínám blogovat - "Sun koupil MySQL" ( 20080122 Úterý leden 22, 2008 )
Czech flag Titulek tohoto článku je dostačující. Na mně je jen abych řekl, že MySQL je i pro mne "The world's most popular open source database" - což je heslo na http://www.mysql.com/. Více informací o akvizici je možné najít na Jonathan's blog. Jonathan bohužel nebloguje v Češtině, takže čtenáři této české verze musí přepnout do angličtinySmile. MySQL logo
Posted by jara ( I 22 2008, 11:00:00 odp. CET ) Permalink Comments [0]


Archives
Search
Contact
Links
Visits map
Referrers

   Disclaimer: This blog contains my own opinions which may differ from viewpoints of Sun Microsystems.