Slashdot Mirror


User: Srdjant

Srdjant's activity in the archive.

Stories
0
Comments
26
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 26

  1. My God, it's full of stars! on Reflectivity Reaches a New Low · · Score: 0, Offtopic

    We can use this to make machines that have proportions of 1 by 4 by 9.

  2. Re:Shock horror, stop the presses on Sort Linked Lists 10X Faster Than MergeSort · · Score: 1

    Thanks for correcting me.

    In which case, you are right about sizeof(long)>=4.

    However I don't think many compilers define it longer than 4 bytes on
    32bit machines.

  3. Re:Shock horror, stop the presses on Sort Linked Lists 10X Faster Than MergeSort · · Score: 1

    I should add, that on 64bit machines, this changes.
    On 64bit machines, long should be 64bit and thus sizeof(long) on
    those machines should be 8.

  4. Re:Shock horror, stop the presses on Sort Linked Lists 10X Faster Than MergeSort · · Score: 1

    AFAIK, K&R state that int can be 2bytes or 4bytes.
    long is 4
    long long is 8

    Try this:

    #include <stdio.h>

    int main(){
                    printf("Size of int: %d\n", sizeof(int));
                    printf("Size of long: %d\n", sizeof(long));
                    printf("Size of long long: %d\n", sizeof(long long));
                    return 0;
    }

    On a pure 32-bit machine:

    [srdjant@thor ~]$ ./sizes
    Size of int: 4
    Size of long: 4
    Size of long long: 8

    So you must be wrong in that regard.

    I can't comment for the time being on the C standard saying that sizeof(long) >= 4.

  5. Re:Shock horror, stop the presses on Sort Linked Lists 10X Faster Than MergeSort · · Score: 1

    > Also manages to not know about memset and write C code that assumes sizeof(long)==4 and
    > puts non-inline code in header files. I don't dare look at the C++ code since there's a
    > large probability it will cause permanent brain damage.

    On 32-bit machines, sizeof(long) is 4, though I think on 64-bit machines this is 8 (but I'm
    not sure).

    Please don't look at the C++ code..

  6. Re:int main on Sort Linked Lists 10X Faster Than MergeSort · · Score: 2, Interesting

    His main BitFast code is in header files...
    Messy and inconsistent indenting (check c/ and c++/ files for differences)

    Difference between c/* and c++/* is that c++/ has cout instead of printf()... well done...

    This stuff should go to worsethanfailure.com (was TheDailyWTF.com)

  7. Internet Tax? on The Taxman's Web Spider Cometh · · Score: 1

    From TFA: "...suspected internet tax cheats..."
    The Internet is now taxed by the government? Huh?

  8. Re:Links? on Market Research Company Secretly Installs Spyware · · Score: 1

    ldd /usr/bin/lynx
                    linux-gate.so.1 => (0xffffe000)
                    libz.so.1 => /usr/lib/libz.so.1 (0xb7ed8000)
                    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7ec8000)
                    libncurses.so.5 => /lib/libncurses.so.5 (0xb7e89000)
                    libssl.so.0 => /usr/lib/libssl.so.0 (0xb7e58000)
                    libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0xb7d54000)
                    libc.so.6 => /lib/tls/libc.so.6 (0xb7c38000)
                    libgpm.so.1 => /lib/libgpm.so.1 (0xb7c32000)
                    libdl.so.2 => /lib/tls/libdl.so.2 (0xb7c2d000) /lib/ld-linux.so.2 (0xb7f10000)

    So I suspect your links is a symlink to lynx. Links links with the math library, while lynx does not. It seems unlikely that math lib is stripped out of links.

  9. Re:Links? on Market Research Company Secretly Installs Spyware · · Score: 1

    $ ldd `which links` | grep png

    Links links with the png library.

  10. Linux Format on Future Publishing Loses $96 Million · · Score: 1

    Don't they write/publish Linux Format magazine? That mag is awesome. I hope this won't affect this part of their business.

  11. Re:It's Not About GMail or AJAX or... on The Troubles With the Yahool Mail Beta · · Score: 1

    They are trying make Yahoo Mail just like using Outlook......

    And that's why I don't like Yahoo Mail Beta. Not sure if others don't like it because of that too.
    And nonsensical huge flash adverts, that span over 3 or so lines of my inbox, so I can't see the latest emails...

  12. Re:root access needed? on Rootkits Head for Your BIOS · · Score: 1

    I know that under Linux you can use the nvram driver to send an ioctl() to clear the _user settings_.
    To do this, you need to issue the ioctl() call with the correct parameter as a privaleged user, such
    as root.

    As to wipeing, replacing or changing the actual BIOS program code, I have no idea if it is possible.
    I know that you can do low-level read and write operations on memory and IO ports in kernel-space,
    but I'm unsure if the entirety of the BIOS can be written to by the kernel. If so, only the kernel
    would have access. The kernel that you boot or a module that you load would have to have code to
    allow programs write access to the BIOS in order for you to be initially infected. Both of these
    operations would need root access.

  13. Re:How dumb can you be? on WMF Flaw not a Backdoor · · Score: 1

    If this was an intentional backdoor, Microsoft would be able to say "oh... would you look at that! We made a slight bug.
    whoopsie-daisy." since as you say, it's much too elaborate to be intentional.

    If they put a backdoor in an obvious place, sooner or later someone snooping will find it and Microsoft will be caught red-handed. Putting it in a less obvious place gives them the power of deniability.

    Even the Borg know that... as we found out in Star Trek First Contact.

  14. Poor benchmark writeup. MS Excel graphs? on Benchmarking Linux Filesystems Part II · · Score: 2, Informative

    What's with the Microsoft Excel style graphs? They're not very precise or professional-looking.
    You would have thought the author would use something better like gnuplot?

    The author's opinion "Personally, I still choose XFS for filesystem performance and scalability."
    is largely irrelevant here and sounds like bias, although the author acknowledges this.

    There is no discussion of the results. The text between the graphs only mentions superficially
    what is obvious to anyone looking at the graphs.

    Seems a far cry from the very nicely done BSD and Linux benchmark at http://bulk.fefe.de/scalability/

  15. Novell moves to GNOME; SuSE founder resigns? on Suse Linux Founder Exits Novell · · Score: 3, Insightful

    Could Hubert Mantel have quit due to Novell making SuSE a GNOME-centred distro instead of keeping it a KDE-centred one?

    Novell standardise on GNOME: http://linux.slashdot.org/article.pl?sid=05/11/05/ 1620206&tid=223&tid=106

  16. Re:Best KDE-centric distro now? on Novell to Standardize on GNOME · · Score: 1

    Whoops! Gotta preview more often.

    s/KDE-centric/KDE-friendly/ perhaps?

  17. Re:Best KDE-centric distro now? on Novell to Standardize on GNOME · · Score: 1

    Actually, there's Slackware. Pat has dropped GNOME support from Slackware 10.2, which makes Slackware
    a KDE-centric distro. And Slackware is great too ;-)

    http://slackware.com/changelog/i386/ChangeLog-stab le.txt

  18. The new name is... on Debian GNU/Solaris · · Score: 5, Funny

    GNU's Now UNIX

  19. Re:End point Digital on TCP/IP Speakers · · Score: 1

    Precisely what I was thinking.

    But anyone could break it open and tap off the analogue from the speaker wires. Unless they weld the
    whole speaker box up.

  20. Re:Written in Java on Columba 1.0 "Holy Moly" Released · · Score: 2, Insightful

    I'm sorry to say, Java takes up a lot of RAM.

    [srdjant@tigerclaw ~]$ ps aux
    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    [...snip...]
    srdjant   4897  5.0 21.8 322352 112756 ?     S    22:46   0:08 /usr/lib/jdk/bin/java -cp /home/srdjant/eclipse/eclipse/./startup.jar org.eclipse.core.launcher.Main -os linux -ws

    As can be seen from the 5th column (VSZ), the Java Virtual Machine eats up some 320MB. And this is
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09).

    Yes it's 2005, and yes Java's kludgy.

  21. Re:Does something weird on Firefox 1.0.3 on Linux on Unpatched Firefox Flaw May Expose Users · · Score: 1

    I forgot the hexdump:

    [srdjant@tigerclaw ~]$ hexdump -C foo.html
    00000000  3c 68 74 6d 6c 3e 3c 62  6f 64 79 3e 3c 61 20 68  |<html><body><a h|
    00000010  72 65 66 3d 68 74 74 70  73 3a ad ad ad ad ad ad  |ref=https:      |
    00000020  ad ad ad ad ad ad ad ad  ad ad ad ad ad ad ad ad  |                |
    00000030  ad ad ad ad ad ad ad ad  ad ad ad ad ad ad ad ad  |                |
    00000040  ad ad ad ad ad ad 20 3e  62 6c 61 68 3c 2f 61 3e  |       >blah</a>|
    00000050  3c 2f 62 6f 64 79 3e 3c  2f 68 74 6d 6c 3e        |</body></html>|
    0000005e

  22. Does something weird on Firefox 1.0.3 on Linux on Unpatched Firefox Flaw May Expose Users · · Score: 2, Interesting
  23. Installer runs in Real Mode? on Sun's Linux Killer Examined · · Score: 1
    From TA:
    Installation and setup are a bit of a trial, however. In fact, with Solaris 10 (although not with Solaris Express), there was too little memory on our system to run the installer. After Googling on the issue, we learned that some BIOSes don't make enough base memory available.
    This leads me to believe that the installer is running in Real Mode. If the CPU was in Protected Mode, it would be able to access all of the avaliable system RAM.

    Why would the installer run in Real Mode (where it can access at most 1MB), and why does the Solaris kernel not enter protected mode like Linux kernels do?

    If Sun can't get even this right, they have no chance of making Open Solaris into a Linux 'killer'.

  24. Initio SCSI driver support status on Linux 2.6.0-test11 Kernel Released · · Score: 1

    ARGH! I'm just waiting for the Initio ini9100 driver to be fixed in the 2.6.0 tree, and then i'll be moving to 2.6.0.

    Dammit, somebody fix that driver!

  25. Re:If the cops are looking, it's too late on Stash Your Hard Drive In The Attic · · Score: 1

    Or, encrypt your file with PGP or whatever, then rot13. When the police ask for more info and a password, just give them the password - they'll find the archive corrupt.

    You might want to chop up the file or whatever as well, to make it look more corrupt.
    Chop the file into 4 parts, then swap over the parts and put together the file, then rot13 it again.

    As long as you know how to bring it back to how it was, and you can tell them its a pgp file (or whatever), you should be able to convince them that it is corrupt.

    Or get a program that logically inverts the bits of the i-nodes that belong to the encrypted file - rendering that part of the filesystem useless - corrupt. You'd have to hide the program that does this though...