CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: bayard

Page 1 of 24 1 2 3 4

Search: Search took 0.16 seconds.

  1. Flexible approach = BeanComparator :) ...

    Flexible approach = BeanComparator :)

    BeanComparator is probably one of the coolest tips I know of in Java right now. One class, handles 95% of all sorting issues. Wonderful. Throw in...
  2. Replies
    4
    Views
    790

    For quality Java editing power environments...

    For quality Java editing power environments you're basically limited to two, Eclipse or Intellij's IDEA. Both ignore the waste of time of a GUI setup [well eclipse has a plugin for that]. Both have...
  3. Replies
    9
    Views
    838

    P6SPY

    Oh, P6Log from the P6Spy package is worth looking into. It monitors your SQL statements so you can see what is really happening. Google for it, though I think it's at p6spy.org
  4. Replies
    9
    Views
    838

    MS Access 97

    I remember using Java on top of Access back in 98. I'm pretty sure PreparedStatements worked, however I did come across a lot of surprising bugs that caused me to waste a lot of time.

    I would...
  5. Replies
    3
    Views
    778

    Jakarta Commons Collections

    Check out Jakarta Commons Collections, http://jakarta.apache.org/commons/,
    for many classes like this. No offense intended to the previous poster, but it's more likely that the higher peer review...
  6. Replies
    3
    Views
    727

    Look at the Jakarta POI project. Only thing I...

    Look at the Jakarta POI project. Only thing I know that could you help you here.

    http://jakarta.apache.org/poi probably.
  7. Replies
    6
    Views
    901

    You want to use the Calendar.setTime(Date)...

    You want to use the Calendar.setTime(Date) method.

    So to update the clock, you want to use:

    myCal.setTime( new Date() );

    If you want to set a certain time, then either use the 'Date(long)'...
  8. Replies
    6
    Views
    959

    cygwin

    Bad day for me I think. Misread this one based on the answers rather than the original question.

    If you install cygwin [google for it], you'll get the 'bc' command line program. Wrap this in a...
  9. Replies
    6
    Views
    959

    WinVi

    Best 'notepad' equivalent tool I've ever met is WinVi.
    http://www.winvi.de/en/

    It's very configurable, has a hex side by side with ascii view, and also has Vi commands available if you know them....
  10. Replies
    3
    Views
    655

    You want to look into Reflection. A product like...

    You want to look into Reflection. A product like Jakarta's BeanUtils would allow you to generalise and have an indirect way to call Bean methods on an unknown Object.

    Alternatively, look at...
  11. You also have the methods: ...

    You also have the methods:

    java.lang.System.getRuntime().freeMemory();
    java.lang.System.getRuntime().totalMemory();
  12. Replies
    6
    Views
    901

    Idiot me. If you want the seconds/minutes etc...

    Idiot me.

    If you want the seconds/minutes etc in int form, investigage the java.util.Calendar class.

    Something like:

    Calendar cal = Calendar.getInstance();
    int hours =...
  13. Replies
    6
    Views
    901

    You want to investigate the java.text.DateFormat...

    You want to investigate the java.text.DateFormat class.
    Also have a look at java.text.SimpleDateFormat as this tends to be the one that most people use/need.

    You want something like:
    ...
  14. Replies
    3
    Views
    3,148

    Look into any of the following packages: JAXP...

    Look into any of the following packages:

    JAXP [Sun]
    Xerces [Apache]
    IBM XML Parser [IBM, I forget the real name]
    Dom4J [dom4j.org]
    JDom [jdom.org]
    Digester [Apache]
    nanoxml [sourceforge]
  15. You probably want to look into an embedded Java...

    You probably want to look into an embedded Java rule engine, your user would add rules, and you would evaluate these in the engine. Droolz is one such rule engine, another is JESS, I think there's...
  16. Replies
    2
    Views
    3,321

    I can only guess it must be an attempt at I18n. A...

    I can only guess it must be an attempt at I18n. A friend told me that sigma in Greek has two different lowercase variants, but that they both have the same uppercase. So if we assume that capital...
  17. Replies
    2
    Views
    3,321

    I could understand doing toLowercase instead of...

    I could understand doing toLowercase instead of toUppercase, due to the existence of toTitlecase and the vague attempt to be i18nised. But Upper and Lower together seems odd.

    Looking at the source...
  18. Oracle specific

    The creator of the code you post is using Oracle specific libraries. The creation of the Connection appears to be hidden behind a static method in TransactionScope.
    Which I assume is in:...
  19. Replies
    1
    Views
    767

    Article + Code

    Try this article I wrote a while back. It has a link to the open-sourced code.

    http://builder.com.com/article.jhtml?id=u00220020624yan01.htm

    Email/reply me if you have questions.
  20. Replies
    2
    Views
    727

    Environment variables

    It depends somewhat on your shell.

    It's either a csh/tcsh based one, in which I _think_ it's:

    set GLOBUS_LOCATION /opt/globus/foo

    or wherever you installed GLOBUS.

    With sh/bash/zsh it's:
  21. Thread: What Java IDE ?

    by bayard
    Replies
    8
    Views
    1,495

    Maven

    I use vi a lot. But also use Intellij's IDEA. If not for having a copy of IDEA, I would look at Eclipse next. [eclipse.org]. I used to use Ant a lot, but am now looking at Jakarta's Maven more often....
  22. Replies
    4
    Views
    1,089

    Method Overloading

    Hey Justis,

    What you are describing is method overloading. So you'd have:

    public class FooBear {

    public void foo() {
    foo(9);
    }
  23. using int for Date

    Just as a reply to a reply [and why no threaded replies here anymore? :(]

    Using an int as a Date timstamp would be bad. What value would you store in there???

    Please don't tell me you store:...
  24. java.sql.Date

    Java.sql.Date only stores Dates. If you want Date and Time, then use java.sql.Timestamp.
    Similarly, java.sql.Time only stores the Time.

    I tend to use java.sql.Timestamp a **** of a lot and...
  25. Replies
    8
    Views
    1,332

    I'm with dlorde on IntelliJ's IDEA. It's pretty...

    I'm with dlorde on IntelliJ's IDEA. It's pretty impressive.

    I've heard good things about Eclipse and would probably be looking at this if not for using IDEA at work currently.

    The only plus...
Results 1 to 25 of 594
Page 1 of 24 1 2 3 4





Click Here to Expand Forum to Full Width

Featured