Posts

Ausbau unseres Stealth-Campers

wwwww

ServiceNow - Nach Submit einen Redirect ausführen

UI-Action "Submit" 1: answer = current.insert(); 2: gs.include('ActionUtils'); 3: var au = new ActionUtils(); 4: au.postInsert(current); 5: 6: var view = action.getGlideURI().get('sysparm_view'); 7: if (view = 'vendor'){ 8: action.setRedirectURL('/core_company_list.do?sysparm_query=vendor=true^EQ&sysparm_view=vendor'); 9: }

Windows 7 oder "Wie mache ich mir das Leben schwer?"

Das Business hat mich mal wieder auf den Boden der Tatsachen herunter geholt! Wähnte ich mich gestern noch weich gebettet, weiß ich heute um so mehr:  Die 0815-IT braucht die Knute, sonst kann sie nicht sein!  Als bekennender Linux-Jünger und Java-Entwickler hatte ich bislang das Privileg durch eine rosa-rote Brille schauen zu dürfen .... alles war irgendwie smart und fluffig. Die Community: zu meist wissend und loyal! Meine ersten Schritte als Windows7-Knecht und dotNet-Hansel lehren mich das Fürchten. Die Community, so fern man sie so nennen darf: Vollpfosten, Besserwisser und Script-Kiddies. Das Betriebssystem .... nein, ich möchte nicht anfangen zu flamen! Die Entwicklungsumgebung? Boaa, was für 'n fettes Teil .... kann alles, macht alles und frisst all' meine Rechner-Resourcen. Nach Installation von Windows7, Visual Studio und gefühlten 20 GB empfohlenen Updates von Microsoft darf ich endlich die IDE öffnen ..... und zwischenzeitlich eine Kanne Kaffe...

Schön gesehen!

Bild

ServiceNow-Beispiel 1

Übernahme von Daten aus einem Problem-Ticket in einen Problem-Task: 1: function onLoad() { 2: try{ 3: if(g_form.isNewRecord()){ 4: var problemID = g_form.getValue('problem'); 5: var problem = new GlideRecord('problem'); 6: problem.get(problemID); 7: 8: g_form.setValue('u_business_service', problem.u_business_service); 9: g_form.setValue('cmdb_ci', problem.cmdb_ci); 10: g_form.setValue('due_date', problem.due_date); 11: g_form.setValue('priority', problem.priority); 12: g_form.setValue('assignment_group', problem.assignment_group); 13: g_form.setValue('short_description', problem.short_description); 14: } 15: } 16: catch(exception) 17: { 18: alert("Error: " + exception); 19: } 20: }

Service-Now: Verdammt noch einmal! Wo sind die Übersetzungen?

Immer wieder auf's Neue suche ich mir einen Wolf, wenn ich die Beschriftung der Formular-Buttons anpassen möchte. Hier eine Liste der möglichen Tabellen, in denen alle Translations untergebracht sind. Languages [sys_language] Translated Name / Field [sys_translated] Message [sys_ui_message] Field label [sys_documentation] Choices [sys_choice] Translated Text [sys_translated_text] Diese Tabellen sind zum Beispiel, wenn nicht unter System-Definition zu finden, über die URL https://demo.service-now.com/sys_translated_text_list.do  zu erreichen.

Ubuntu 11.04 / Acer Aspire slow WLAN connection?

If your WLAN connection get very slow under Ubuntu 11.04, create file /etc/modprobe.d/ath9k.conf and add the line options ath9k nohwcrypt=1 than reboot your system.

Switching between Stage & Production DB with Tapestry5 & Hibernate3

create a hibernate.cfg.xml like this sample and put it into your classpath <hibernate-configuration> <session-factory> <property name="hibernate.connection.provider_class"> org.hibernate.connection.C3P0ConnectionProvider </property> <property name="hibernate.c3p0.max_size">5</property> <property name="hibernate.c3p0.min_size">1</property> <property name="hibernate.c3p0.timeout">5000</property> <property name="hibernate.c3p0.max_statements">100</property> <property name="hibernate.c3p0.validate">false</property> <property name="hibernate.cache.provider_class"> org.hibernate.cache.EhCacheProvider </property> <property name="hibernate.cache.provider_configuration_file_resource_path"> /ehcache.xml </property> <property name=...

scene from my daily misery in the office

Bild
Reference: http://www.dilbert.com/

Linux/KDE ! What else ?

now i work since 2 months with Kubuntu and every day again i tell my self "10 years wasted with MS Windows!". My computer story begun in the mid 80th of the last century with my first computer and two 5,25" disks with IBM DOS 3.3 included. A 286XT 16MHz was the next step running with MS DOS 5.0 and Borlands Tubo Pascal 5.0. and in the night time a BBS system. This was the first time  i have contact to OS/2 and it was my favourite OS at this time. I never had any contact with Windows 3 /Windows 95 or Windows 98. After IBM lost the OS war and stopped the OS/2 development i was changing to Windows/NT and Windows/XP as my workstation OS. The contact to Unix was limited by server adminstration via telnet/ssh. In my "Windows-time" i played sometimes with SuSE Linux and KDE but my development speed slows down dramaticly and i choose back to Windows/XP. Now, i think my time with KDE is come, i cant remember why i was working all the time with Windows. After i stop to p...

IntelliJ IDEA 7.04 and KDE 3.5 (the soloution)

after a while seeking google, i found a soloution: Download and install SUNs Java 1.7 beta change the IDEA_JDK env.-var. to point where the new Java version is installed add the line "-Didea.no.jdk.check=true" to IDEAs "idea.vmoptions" after this changes, all works fine for me ...

IntelliJ IDEA 7.04 and KDE 3.5

last week i switched my development environment from Windows/XP to Ubuntu ... to work with linux is not new; i collect all my experience under telnet/ssh sessions on servers (AIX, Linux, SCO) but never via GUIs. so i work with the the KDE first time and wondering about the bad presentation of the fonts. after some testing and "googling" i have the same clear font look as under windows. now i struggle with the next problem: if i work with IDEA 7.04 somtimes the dialoges are grayed complete and i must cancel this dialog and start again. this game i must repeating sometimes about ten times until the dialog looks clear. after a while i found some people in the net, with the same problem. they offer to set the enviromnent var. AWT_TOOLKIT to "MToolkit" because there is a bug in Sun's Java 1.6 This workaround helps for me to display all dialogs regular and i feel good again under KDE environment .... ... for a short while!!! After some lines in the code base i realize...

iterating a HashSet ...

Sometimes i miss some people around me at work or home that can feed me with some java facts. The last week i work on a from component that contains an AjaxFormLoop to edit a set of drivers (removing/adding) to an parent entity. Thanks Tapestry it was a fine quick job to design the UI but than began the fight to save the modified HashSet, many pitfalls i tapped but now the job is done. my first solution was: void onAfterSubmit() { for (FreightDriver driver : entity.getDrivers()) { boolean mustRemoved = true; for (FreightDriver freightDriver : DB.values()) { if (driver.getId() == freightDriver.getId()) { mustRemoved = false; break; } } if (mustRemoved) entity.getDrivers().remove(driver); } } but this throws a ConcurrentModificationException after a while i found the right (IMHO) solution: ...

interresting performance tip for MySQL

... readed at H2 project site The setting innodb_flush_log_at_trx_commit (found in the my.ini file) was set to 0. Otherwise (and by default), MySQL is really slow (around 140 statements per second in this test) because it tries to flush the data to disk for each commit. For small transactions (when autocommit is on) this is really slow. But many use cases use small or relatively small transactions. Too bad this setting is not listed in the configuration wizard, and it always overwritten when using the wizard. You need to change this setting manually in the file my.ini, and then restart the service.

IntelliJ IDEA and my fight with Manifest.mf

Bild
since a long time i try to insert an Manifest.mf into my projects during development time. deployment generation is easy: ant do the job form me. now i have find a way: add a new Deployment Descriptor that points to your Manifest file and set the deployment location relative to your deployment root.

Maven2, oder "Mir platzt der Schaedel"

4 Tage bastel ich jetzt an der "mavenisierung" der T5Components -Library rum. Man kann keinesfalls bestreiten, dass Maven eine feine Sache ist und die Code-Qualitaet drastisch anhebt, aber leichte Kost ist es wirklich nicht.

Web-Applikation konfigurieren (IOC)

buildApplicationDAOFactory (tarnt mehrere GenericDAOFactory's aus verschiedenen Modulen als eine DAOFactory .) buildAuthService contributeDefaultSessionSource contributeASOs

Howard Lewis Ship (Tapestry)

Ich moechte an dieser Stelle einmal meine Bewunderung fuer den OpenSource-Entwickler Howard Lewis Ship zum Ausdruck bringen. Das Tempo und die Qualitaet seiner Entwicklungen (z.B.: Tapestry und HiveMind) sind wirklich bemerkenswert, zumal man bedenken muss, dass er "nebenbei" auch noch seinen Unterhalt bestreiten muss. Wenn ich dagegen mein eigenes Entwicklungstempo ... (ohne Worte) Hochachtung Howard und weiter so ...