Search results

  1. F

    Big double arrays in C HELP!!!

    Hi, I want to run this program: #include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { double y[100000000]; # that's a double array of size 10^8 y[0] = 1; y[99999999] = 1; printf("%f %f\n", y[0], y[size - 1]); } I have a dual 2.5GHz G5 w/ 2.5G of...
  2. F

    ulimit and hard limits

    I'm using 10.3.9, and I wrote a program that needs to access a lot of memory, so I wanted to do ulimit -s unlimited but OS X won't let me. I did a ulimit -H -a and found stack size is hard limit is 64M. I know on Linux, there is a /etc/security/limits.conf file root can edit...
  3. F

    Did I just find a bug in gcc/g++?

    Hello, I'm doing some calculations for my master's thesis, and I think I found a bug in gcc/g++. So can some knowledgeable person tell me whether it is/isn't a bug, and if so, should I report it to Apple? So I boiled the problem down to 2 simple programs, one buggy and the other not...
  4. F

    Javascript/OpenSource question

    Hi, one day a long time ago (3 yrs), I was working on Javascript where I really wanted to be able to use Java/C++ style inheritance instead of the built in prototype inheritance, so I came up with a scheme to do this. Now I'm working on some ActionScript in Flash and needed this facility yet...
  5. F

    Login Screen Customization

    Is there a way to customize the wallpaper of the login screen? thanx
  6. F

    PHP error_log on Console

    Does anyone know how to make the error_log () function print out to Console.app? I want to call error_log(message, 0) I know there is a variable in php.ini called error_log = syslog. I've tried error_log = "/dev/console" in php.ini, and no cigar. :confused:
  7. F

    Some Qs

    A while ago, I started a thread about why C is so hard to learn. See, I am not a CS student or a computer professional. A long time ago I bought K&R's C Programming Language for a summer job in college, I was so clueless that I did a void main() { int *i; for( *i = 0; *i < 5...
  8. F

    Running remote X Win apps on OS X

    I have OS X running in my apt, and I want to run an X app from school, so I start OroborOSX on my machine and type xhost <remote machine name> on my terminal, and xhost adds the remote machine to the access control list. Then I set the DISPLAY variable on the remote machine to...
  9. F

    Idea for a better 2 button + scroll Mac mouse

    Last week I finally layed my hockey puck mouse to rest in favor of a Logitech wheel mouse because I downloaded Quake III and hated not having at least 2 buttons and a wheel. As much as I was loathe to get such an unattractive looking mouse (well, not that bad, but ugly compared to one of those...
  10. F

    Why is writing C so hard!

    Okay, I'm not a REAL programmer (I know java, js, you know, fluff languages), but I did read K&R's "C" book way back when. my question is, why are actual UNIX C programs out there so hard to read and compile? i guess it is because of the fact that they were written to compile on like a billion...
  11. F

    Mozilla + OS X is awesome, but...

    I think I'm gonna make a switch to Mozilla from IE. I read about Mozilla in Time today, but was skeptical, because I've used NS6.2 before, and the experience stank. But Time had glowing things to say about Mozilla's speed, and being a non-geek publication, I felt those words had to mean...
  12. F

    Trouble shooting network connection

    Hi. I have a G4 350MHz with OS X 10.1.3, and for some reason, the network connection through my cable modem no longer works. My question is, how does one trouble shoot problems like this? I seem to remember when I ran Linux a long long time ago, there were utilities that checked stuff like...
Back
Top