Search results

  1. dap

    Question about Java exception handling

    Hello, I don't know much about Java but I have the impression that the problem doesn't come from the fact that the class is abstract. This code compiles and runs fine, for example: public abstract class Forums { public static void spam() throws SomeException { throw new...
  2. dap

    req C++ ebook

    http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html I don't think that this link is legal.
  3. dap

    what do you use to debug C/C++?

    There is a similar macro NDEBUG, which is standard (when defined, assert() calls are ignored).
  4. dap

    fprintf on a socket

    bsd_newbie asked about using fprintf(), so he or she doesn't need to redirect stdout or STDOUT_FILENO. Personnally I would use this solution: Because this way you still can easily control how many bytes will be sent on the socket.
  5. dap

    c++ segfault

    You should learn about C++ strings and iostreams or stick to C. Here is a good resource about C++ : http://bruce-eckel.developpez.com/livres/cpp/ticpp/.
  6. dap

    RPC problem with doc from freebsd.org

    Hello, The code shown in the PDF uses deprecated features but it should compile. I don't have time to dig in the article, could you post directly the code that doesn't work ?
  7. dap

    Screenshots: Poste 'Em!

    http://dapounet.deviantart.com/art/Desktop-11-109277072
  8. dap

    difference for sysctlbyname() on i386/amd64

    I think that physmem must be 64-bit wide on AMD64: sysctlbyname
  9. dap

    preventing FIFO from EOF

    IMO it would be wore straightforward to write a program. Here is a small example: #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #define FIFO_NAME "/var/tmp/foo" int main (void) { umask(0)...
  10. dap

    about gcc >=4.2 in base

    I couldn't find what it supports from C99, do you know that ?
  11. dap

    Which shell do you use?

    I use tcsh because I like the programmable completion and the completion. For scripting I use sh and Python.
  12. dap

    What about gaming on FreeBSD?

    I only play OpenTTD (which is pretty good), I would also play Quake 3 if I had a suitable driver. I quite agree on your quote, it's far easier to play games on Windows.
  13. dap

    FreeBSD as a development platform

    I'm using x86 ASM, C, C++, Java and Python. The only problem is that I couldn't find a COBOL compiler for FreeBSD that accepts the sources we write at school (with a proprietary compiler). I guess that COBOL must be quite standardized, maybe I just don't know how to write portable code with it...
  14. dap

    Is Microsoft just using its power

    According to Andrew Tanenbaum's book "Modern operating systems 2nd edition" the GPL is longer than Windows 2000's license, so... :e
  15. dap

    Screenshots: Poste 'Em!

    Wallpaper Theme : Xfce-basic (comes from ports/misc/xfce4-wm-themes I think) Icon theme Window manager style Audio player : Sonata
  16. dap

    Java developing

    The last time I installed the JDK from ports/java/jdkXX and I still had to download manually the Diablo tarballs. I guess there's a good reason for that, but could someone tell me the difference between jdkXX and diablo-jdkXX ?
  17. dap

    Python Threading question

    Could you post a more complete code that we could test ? Maybe that would help.
  18. dap

    install without CD-ROM/DVD

    Run UNetbootin and let it download automatically the FreBSD image and install it on your USB key. Then if you can boot on your key, you can install FreeBSD by FTP, or from the key itself as explained here (2.13.4 Installing from an MS-DOS® Partition). If I remember correctly I had to replace...
  19. dap

    FreeBSD on Acer Aspire One

    I don't have this problem on my Aspire with 7.0 RELEASE/i386. I don't have any idea on how to get all the peripherals working, I didn't even make Xorg work yet.
  20. dap

    Selection of books and tutorials to get started developing

    Official Python tutorial The C book - good C89 ebook C unleashed - I didn't read it yet, but it has a very good reputation Advanced programming in the Unix environment
Back
Top