MrPoopypants

Member
  • Content count

    1049
  • Joined

  • Last visited

Community Reputation

124 Neutral

About MrPoopypants

  • Rank
    Contributor
  1. libpcap-0.9.3 install

    Hello, Using linux, where do I need to extract the libpcap directory? I've tried extracting it to /usr/share/doc and /lib/, but it still doesn't work when I try to compile... Anyone know what do do, this is getting really frusterating. Thanks
  2. United Flight 93 -- saw the movie this weekend..

    I don't think there is anything wrong about making a film about flight 93, what I think is wrong is that many people will go out to see this movie the same way they went out to see titanic, for friday-night entertainment. Once this movie comes out for TV, intersperced with commercials every 20 minutes, i think ill probably kill myself.
  3. Linux Distributions [update 4]

    Ok guys, almost there. just need to figure out how to create a username and password. Thanks for all your help everyone!
  4. Linux Distributions [update 4]

    So do I have to reinstall everything?
  5. Linux Distributions [update 4]

    Ok so I installed slackware, but it doesnt run when i turn on the computer! "Operating System not Found"
  6. Linux Distributions [update 4]

    Hi guys, I got DSL up and running off LiveCD, but it wont install to the HDD... Whenever i try to create a Linux partition with sfdisk it crashes....
  7. Linux Distributions [update 4]

    [update 4] OK. So I did a full re-install of the Slackware and made a boot disk. It loads up, except I did one stupid mistake... I didnt specify a user name and password! When i try to run the setup utility and select configure (to see if I can create one there), nothing happens... it just takes me back to the setup menu. How can I specify a username and pass?! Thanks!! [Edited by - MrPoopypants on March 13, 2006 4:05:30 PM]
  8. Free graphics software

    Hello, I'm in need of a free (or very cheap) piece of software that can easily edit .gif files (unlike MSPaint). Anyone know of anything? Thanks
  9. Hello, I have a question for all of the coldfusion users out there: How do I set up a mysql datasource in the coldfusion administrator? More specifically, what do i put for Database, Server, Username, and Password, and Port? I'm running it through localhost. I've tried putting in my own IP in the Server text box but that doesnt work... any help would be great. Thanks
  10. [web] mysql

    thanks, I also have another question though. For those of you who use ColdFusion: How do i add a myaql datasource in the coldfusion administrator? What is the difference between the database name and the datasource name? I assume i just put my IP address in the "server" textbox (since i'm running it through localhost). Thanks
  11. [web] mysql

    Hello, I just got mysql and have been fooling around with it for a while trying to figure it out. I couldn't figure out how modify the columns themselves (for example, how do you delete a table, remove/add a data-column, etc... ?). I couldn't find any information pertaining to this in the reference manual.. Any help would be great... thanks
  12. How to get the transpose of 3x3 matrix?

    in code: public static int [] [] MatrixTranspose ( int [] [] A ){ int [] [] TransposedMatrix = new int [ A.length ] [ A[0].length ]; for ( int a = 0 ; a < A[0].length ; a++ ){ for ( int b = 0 ; b < A.length ; b++ ){ int temp = A [ a ] [ b ]; A [ a ] [ b ] = A [ b ] [ a ]; A [ b ] [ a ] = temp; } } return TransposedMatrix; } Hope this helps
  13. Hello, I'm writing a class in Java called VERTEX4D and I want it to be as similiar to a c-style struct as possible. I want the data for the vertex to be held in two ways: the first as x , y , z , w coordinates and the other in an array with four elements. However, I want to do this as simply as possible, and dont want to have to write several methods constantly setting the data equal to each other. I want x, for example, to be: COORDS4D [ 0 ] = &x , using C-style pointers, so when accessing this class both *COORDS4D [ 0 ] and x always equal the same thing. Obviously, the * and & operators do not exist in java, so I'm at a loss of what to do. Any help would be great, thanks.
  14. Matrix Mulitplacation Method

    Hello, I wrote this matrix multiplacation method in Java. I'm pretty proud of it and I think it is an elegant little solution. I was just wondering if there is a more optimized version of it. public static int [] [] MatrixMultiply ( double [] [] A , double [] [] B ){ int y0 = A[0].length; int x0 = A.length; int y1 = B[0].length; int x1 = B.length; if ( x0 == y1 ){ int [] [] ProductMatrix = new int [ y0 ] [ x1 ]; for ( int a = 0 ; a < y0 ; a++ ){ for ( int b = 0 ; b < x1 ; b++ ){ for ( int c = 0 ; c < y1 ; c++ ){ ProductMatrix [a][b] += A[c][a] * B[b][c]; } } } return ProductMatrix; } int [] [] InvalidReturn = { { -1 } }; return InvalidReturn; }
  15. Rendering 3D-Coordinates into 2D

    Use Thales theorum: X = x/z , Y = y/z Your function should look something like: float [] project2d ( float [] coords3d ){ float [] coords2d = new float [ 2 ]; coords2d [ 0 ] = ( DistProjectionPlane * coords3d [ 0 ] ) / ( coords3d [ 2 ] + DistProjectionPlane ); coords2d [ 1 ] = -1 * ( DistProjectionPlane * coords3d [ 1 ] ) / ( coords3d [ 2 ] + DistProjectionPlane ); coords2d [ 0 ] += SCREEN_WIDTH / 2; coords2d [ 1 ] += SCREEN_HEIGHT / 2; return coords2d; } Where: DistProjectionPlane = the distance between the "eye" and the "screen" (where the points will be projected) coords3d[0] = x coords3d[1] = y coords3d[2] = z This is a good site.