November 12, 2007

tips: eclipse, plugin, refresh

eit lite tips dersom ein plugin ikkje vil trø i kraft...

Frequently Asked Questions - JUtils ToString Generator Plugin for Eclipse
# I installed the plugin properly but can't see it anywhere:
This can happen sometimes. All you have to do is close the IDE and start it using the -clean option from command line.

# How do I use the -clean option?
-clean is a command line switch for the eclipse.exe executable. To use this, you have to open your command prompt/shell and navigate to the Eclipse installation directory. From there, type either eclipse clean or eclipse -clean. That should start the IDE.

# How will the -clean option help?
Eclipse stores lot of workspace specific data in local file system for better performance. When a new version of some plugin is installed, it's quite possible that the new version is using the plugin specific data such as preference stores created by the older version. To clean this up and aid recreation of preference stores, the -clean option is recommended.

November 8, 2007

Enkle screenshots i firefox

https://addons.mozilla.org/en-US/firefox/addon/5648

Ser temmelig pen ut. Mye mindre smertefullt å illustrere bugs.

(Inge via epost)

October 4, 2007

annotation: @SuppressWarnings

Excluding warnings using SuppressWarnings

Help - Eclipse SDK (at the bottom of this page...)

Java 5.0 offers the option to the user to disable compilation warnings relative to a subset of a compilation unit using
the annotation java.lang.SuppressWarning.

 @SuppressWarning("unused") public void foo() {
String s;
}

Without the annotation, the compiler would complain that the local variable s is never used. With the annotation, the compiler silently ignores this warning locally to the foo method. This enables to keep the warnings in other locations of the same compilation unit or the same project.

The list of tokens that can be used inside an SuppressWarning annotation is:

  • all to suppress all warnings
  • boxing to suppress warnings relative to boxing/unboxing operations
  • cast to suppress warnings relative to cast operations
  • dep-ann to suppress warnings relative to deprecated annotation
  • deprecation to suppress warnings relative to deprecation
  • fallthrough to suppress warnings relative to missing breaks in switch statements
  • finally to suppress warnings relative to finally block that don't return
  • hiding to suppress warnings relative to locals that hide variable
  • incomplete-switch to suppress warnings relative to missing entries in a switch statement (enum case)
  • nls to suppress warnings relative to non-nls string literals
  • null to suppress warnings relative to null analysis
  • restriction to suppress warnings relative to usage of discouraged or forbidden references
  • serial to suppress warnings relative to missing serialVersionUID field for a serializable class
  • static-access to suppress warnings relative to incorrect static access
  • synthetic-access to suppress warnings relative to unoptimized access from inner classes
  • unchecked to suppress warnings relative to unchecked operations
  • unqualified-field-access to suppress warnings relative to field access unqualified
  • unused to suppress warnings relative to unused code

October 3, 2007

ms ie 6, headache for developers


6 Reasons Why IE6 Must Die
[my italic]
Internet Explorer 6, released on August 27, 2001, was a package of problems right from the start. Within a year of release, Microsoft silently declared that IE6 would not make enough money for them to support as closely as a browser should supported. The result has been numerous security problems, unfixed browser bugs, and a daily migraine for developers.
....
Lack of PNG Transparency Support
....
CSS Float + Margin / Padding Issues
....
Lack of CSS Pseudo-Class & Pseudo-Element Support
....
No Min-Height CSS Support
....
CSS Anchor Background Image Flicker
....
Crashing With Code

September 28, 2007

project, bug, tools

ting å vurdera: trac, ny mantis

dersom me vurderer svn: trac

The Trac Project - Trac
Trac is an enhanced wiki and issue tracking system for software development projects.
....
provides an interface to Subversion, an integrated Wiki and convenient reporting facilities.
....
A timeline shows all project events in order, making the acquisition of an overview of the project and tracking progress very easy.
kan også koplast (litt) til mantis...
Also, it's quite simple to write a plugin to redirect ticket references
to your legacy ticket system: e.g. mantis_tickets.py.
ny mantis - utvalg av nye features:
  • Wiki Integration (#7075): This involves integration with a Wiki where issues, projects, project versions, and users have Wiki pages.
  • project page
  • Limit width/height of Image Previews (#6252)
    - It is now possible to configure the maximum width and height of an
    image preview. This is useful for keeping the issue readable when users
    attach big screenshots.
  • Screenshots for Mantis (#7053)
    - This is not really a Mantis feature, but a plug-in was developed for
    the free Cropper screen capture tool to simplify the process of taking
    a screen shot, cropping it, compressing it and attaching it to a Mantis
    issue. This tool is for Windows users and requires .NET 1.1 framework
    to be installed.

September 27, 2007

jf mantis, xp-plan, etc

stikkord: wiki, prosjekt, bugs, estimering, eclipse-plugin, mm

FogBugz
FogBugz is a complete project management system designed to help software teams communicate. It helps them work together by tracking, prioritizing, and coordinating the thousands of small tasks a development team has to do.
godbitar: eclipse-plugin, automatiske release-notes

om estimering
FogBugz displays a probability curve of ship dates
....
it will show you each developer’s ship date graphically so you can find bottlenecks
....
FogBugz combs over historical data to build a statistical model of how good each developer is at estimating
....
By adjusting a slider, you can see how implementing low priority features would change your schedule.
bottlenecks - rett inn på critical chain-tenkning...

ms ie 6 duplicate characters bug

moglege fiksar (av eigen erfaring):
  • setja layout på div m/zoom:1
  • placeholder-div etter problematisk div
IE Duplicate Characters Bug - CSS fixes and workarounds
Internet Explorer 6 has a puzzling bug involving multiple floated elements; text characters from the last of the floated elements are sometimes duplicated below the last float. This bug is a real headbanger because there seems to be nothing triggering it. However, by now everyone should know that IE needs no excuse to misbehave.
....
any elements .... that don't actually display for some reason [will induce the bug]. Apparently the act of hiding a source element is the critical trigger for this bug.
....

Fixes and Workarounds

One easy fix is to put a -3px right margin on the last left float. The
opposite can be done for layouts with right floats.
....
Another fix is to give the container element 3px of extra width, so that it is 3px
larger than the last float.
....
conditional comments may be used in place of normal HTML comments
....

Special Info

The murky veil surrounding the need for a box dimension to prevent so many IE bugs has been partially lifted, due to the discovery of a heretofore
obscure page in the massive Microsoft website. There is no real explaination of this
"hasLayout" property, but now there is at least some structure to the madness that has been inflicted on us by Microsoft, for what it's worth. Apparently a box needs "Layout" or all heck can break loose, bug-wise. MS does not state that specifically, but their browser behaviors leave no doubt whatsoever.


hasLayout, ms ie-bugs

On having layout — the concept of hasLayout in IE/Win
A lot of Internet Explorer's rendering inconsistencies can be fixed by giving an element “layout.”
....
“dimensional bugs” ... can often be solved by applying a width or height.
....

The hasLayout problem affects designers (and coders) at
all experience levels. Layout has unusual and hard to predict effects
on the display of boxes, as well as implications for their descendant
elements.

Consequences of an element having, or not having “layout” can include:
  • Many common IE float bugs.
  • Boxes themselves treating basic properties differently.
  • Margin collapsing between a container and its descendants.
  • Various problems with the construction of lists.
  • Differences in the positioning of background images.
  • Differences between browsers when using scripting.

September 15, 2007

slik bør gode utviklere jobbe...


Slik jobber de beste utviklerne - digi.no
En god utvikler holder sin egen kode i hodet ... Det gjør det mulig å bearbeide programmet på en helt annen måte enn hvis man hele tiden er nødt til å skrive ned og lese gjennom koden.
....
[det tar] som regel en halvtime bare å komme inn i rett modus. Det er ikke mulig hvis man hele tiden blir forstyrret .... i et åpent landskap, er dette gjerne en praktisk umulighet.
....
utviklere gjør det best når de får sitte i fred og jobbe mange timer på rad, mens de hele tiden har programmet og alle dets detaljer i hodet. 12 timer er en passe arbeidsøkt, ifølge Graham. Han ser ikke noe galt i å strekke det helt til 36 timer, hvis det føles riktig for utvikleren.

- Hvis man ser på hvordan programvare blir utviklet i bedrifter, ser det nesten ut som om de med vilje prøver å gjøre alt feil
.... organisasjoner stort sett behandler individene som jobber for dem som utskiftbare deler, noe som fungerer bra for parallelliserte oppgaver, som å utkjempe kriger, men som på ingen måte fungerer når det er snakk om å komme opp med gode ideer.

- Det å ha ideer er ikke parallelliserbart, og det er det programmer i virkeligheten er: Ideer
....
Slik bør gode utviklere jobbe, ifølge Graham:
  1. Unngå forstyrrelser
  2. Jobb lange skift
  3. Bruk kortfattede programmeringsspråk
  4. Omskriv programmet mange ganger
  5. Skriv lesbar kildekode
  6. Jobb i små grupper
  7. Ikke la flere jobbe på den samme koden
  8. Start i det små

April 18, 2007

large text file viewer

tips av Inge

Large Text File Viewer
This program was designed for viewing large (>1GB) text files. It uses little memory and is able to open a gigabyte file instantly.
kanskje noko å settja som automatisk program på *.log ...

April 17, 2007

lokal epost-tenar

jf tips frå Inge - td til bruk ved testing som inkluderer epost (jf innstillingar som går på localhost som epost-tenar).

Mobilefish.com - A tutorial about Apache James. Installing James 2.2.0. Includes examples.
The Java Apache Mail Enterprise Server (a.k.a. James) is a 100% pure Java SMTP and POP3 Mail server and NNTP News server designed to be a complete and portable enterprise mail engine solution. James is based on currently available open protocols.

April 16, 2007

skjermbilete til bugs

mi fyrste anbefaling: ifranview

IrfanView - Official Homepage - one of the most popular viewers worldwide
IrfanView is a very fast, small, compact and innovative FREEWARE ... graphic viewer .... It is trying to be simple for beginners and powerful for professionals.
enkel oppskrift:
  • "print screen" (ev m/alt-tast) ved interessant skjermbilete,
  • opna ifranview,
  • ctrl-v (lim inn),
  • marker firkant rundt relevant område,
  • ctrl-y (crop),
  • s (save),
  • bruk i bug-verktøy "of choice"
eit anna verktøy som ser interessant ut: Screenshot Captor
Screenshot Captor is a program for taking screenshots on your computer. ....
  • Optimized for taking lots of screenshots with minimal intervention.
  • Smart autonaming of files, and ability to embed textual comments in files.

March 7, 2007

tomcat 6

ny stabil tomcat:

TSS: Tomcat 6 released and stable
Apache has announced that Tomcat 6.0.10 has been released and is considered stable. Tomcat 6 ... implements the "Servlet 2.5 and JSP 2.1 specifications, a refactored clustering implementation, advanced IO features, and improvements in memory usage."

Raible designs: Upgrading to Tomcat 6
it has to be the least painful major Tomcat upgrade I've ever done

March 2, 2007

dynamisk resize av tekstfelt?

la dei brukarane som vil ha større plass ordna det sjølv i gui?...

JSAN - Form.Element.Resize 0.03
Unobtrusive javascript class for make a standard form field resizable with the mouse
....
This nice class implement some methods for add a mouse-driven resize
feature on form fields such as text inputs, textareas and select
controls. Clicking and dragging the borders or the corners of the form
element will resize it while double clicking inside the element will
restore its original dimensions

February 28, 2007

banner blindness

jf hjelpetekstane våre...

Banner Blindness in Ballot Design (Case Study Sarasota, FL, 2006)
People have a tendency to never look at a slim rectangular area that's above the page's main headline. Banner blindness has been documented since 1997 and has been confirmed in recent eyetracking studies.

February 5, 2007

db-monitor

dette ville vel vore nyttig for oss?

Monitor JDBC Performance with JDbMonitor
JDbMonitor is a tool to monitor and analyze database performance down to specific SQL statements in any Java/J2EE application without code changes.

With JDbMonitor you can determine database bottlenecks during development and testing phases to identify areas to improve and SQL statements to optimize.

January 11, 2007

prototype som jsp taglib

interessant å kikka på... på SF

NetBeans IDE Allows JDJ Contributing Editor to Build JSP Tag Library @ JAVA DEVELOPER'S JOURNAL
With the ever growing popularity of the Prototype JavaScript library, ... Jason Bell ... has created an alpha release of a JSP Tag library on sourceforge.net.

Called "prototaglib" it enables JSP developers to create the required AJAX calls to the Prototype library. It's similar to the Ruby On Rails way of doing things.
....
The taglib enables developers to create link or form based remote tags that call either servlet or jsp pages to populate the required div tags. There are also tags to update a div over a specific period of time.

Currently at an alpha release it is hoped that the community will aid in feedback and request features that can be worked on.