Search:

Type: Posts; User: Some Penguin; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: What sort of license notices do I need for a Qt program?

    You might find http://www.slideshare.net/qtbynokia/qt-licensing-explained quite relevant.
    Also, http://stackoverflow.com/a/919665

    Use dynamic linking, and if you need to patch the library itself...
  2. Re: Why aren't more Linux applications written in Java?

    This. It's particularly well-suited for serious server work where high concurrency, high stability and the ability to easily introspect on live systems is important, and where having a JVM around...
  3. Replies
    3
    Views
    430

    Re: dealing with structures in c

    1) You never initialize n, but you do read from it.

    You're not compiling with -Wall, are you? You should -- and pay attention to every warning it spews.

    2) Whenever you have a loop like


    ...
  4. Re: Developing, for MS Sql Server, on Ubuntu Box

    It'd actually fairly problematic because SQL implementations tend to not perfectly follow SQL standards, and the standards are not entirely comprehensive, so building and testing against e.g....
  5. Replies
    17
    Views
    1,176

    Re: is this a bad programming practice ?

    Yes, avoid.
  6. Replies
    3
    Views
    1,256

    Re: Java Threading ExecutorService Question

    Oh, and if you're concerned about object churn, one thing to check would be whether it's possible to refactor



    for(int idaconfig = 0; idaconfig < 500000; idaconfig++) {
    ...
  7. Replies
    3
    Views
    1,256

    Re: Java Threading ExecutorService Question

    You can use a CountdownLatch. Initialize it with the total number of tasks, have worker threads call 'countDown' on it (in a finally block -- you probably do NOT want the application to hang if a...
  8. Replies
    46
    Views
    2,304

    Re: Five programming languages to know.

    Meh. Learn what you need for your purposes. You don't need to know *everything* for a category, and if you know one language for a particular purpose very well it's unlikely to be all that hard to...
  9. Replies
    4
    Views
    865

    Re: MySQL Database and Front-End

    https://www.djangoproject.com/ might be quite useful for your purposes.
  10. Replies
    3
    Views
    424

    Re: mysql mystery call

    Turns out its a PHP function.

    http://php.net/manual/en/function.preg-replace.php
  11. Replies
    3
    Views
    424

    Re: mysql mystery call

    Regular expression handling. Not a MySQL guru, but that line will set 'hash' to be the MD5 checksum of a modified version of 'data' where everything -except- lower-case letters (*) has been removed....
  12. Replies
    5
    Views
    625

    Re: Image transfer GUI by using c#

    This isn't a "do my homework for me" forum.
  13. Replies
    34
    Views
    1,513

    Re: DB Queries in Java Program

    As long as you're willing to look around and redesign, you might want to have a look at JDBI, which provides a more generally convenient and sane layer than raw JDBC access.

    JDBC works, but it has...
  14. Replies
    34
    Views
    1,513

    Re: DB Queries in Java Program

    Yup. So if we had a basic data structure like



    class Foo {
    private UUID id;
    private Blah someData;
    private Blah2 otherData...
    ...
    }
  15. Replies
    34
    Views
    1,513

    Re: DB Queries in Java Program

    Usually I prefer to separate storage logic from application logic -- only the internals of the storage layer need to be aware of the exact data store and its uses. The storage API provides basic...
  16. Replies
    18
    Views
    537

    Re: mysql update script from mail

    1) Preventing SQL injection attacks, as I alluded to in my earlier post:

    For just about every language with a database driver, that driver will provide a way to create a prepared statement and to...
  17. Replies
    2
    Views
    302

    Re: Input from command line in c++

    If your textbook says nothing about argument passing, look up the subject in K&R -- it's argc/argv.
  18. Replies
    18
    Views
    537

    Re: mysql update script from mail

    ...and if the third line of the email contains something like



    "; TRUNCATE database; --


    ?
  19. Replies
    8
    Views
    1,066

    Re: Pagination script?

    Approach depends on whether the results are stable or not (pages in a book are stable, searches into a real-time feed of editable content are not; the latter introduces some complexity if you're...
  20. Replies
    4
    Views
    327

    Re: plz_help me .i am new user..help me in ccs for pic 16f877a

    Aside from the nonsensical code pointed to by the above poster, which is presumably a bad attempt at a switch statement...



    int i;
    srand(i);


    Using an uninitialized variable to initialize...
  21. Replies
    9
    Views
    1,965

    [SOLVED] Re: Java: Squares less than n

    while() loops test *before* executing each iteration, only. They don't get magically retested during the execution of the loop itself.

    In your case, the fix is as simple as moving one line...
  22. Replies
    4
    Views
    380

    Re: Program Design Advice

    Spring + Hibernate is a pretty common model for that sort of thing. At work, we've taken a different approach and built up an infrastructure around Jersey (JAX-RS; HTTP layer), Jackson (JSON and...
  23. [SOLVED] Re: MySQL-Help Importing data into tables and ignoring existing data

    Adding a separate numerical column for 'month' (and dropping the twelve month-specific columns) would bypass much of the problem.

    Then either rebuild the pkey to use it, or use an independent...
  24. Replies
    12
    Views
    742

    [SOLVED] Re: code improvement?

    It could also be restructured to be more easily generalized to different N.

    pseudocode:


    print_helper: (string so far, # chars left)
    if # of chars left is less than 1, roll eyes and...
  25. Replies
    2
    Views
    242

    Re: Communication between applications

    It depends on a lot of factors, like whether objects are meant to be processed and the results returned immediately and not persisted at all, whether they're being buffered for batch processing,...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4