Why undefine failed in m4?
define(foo,0000) foo 0000 undefine('foo') foo 0000 thanks. jcyang. ...
define(foo,0000) foo 0000 undefine('foo') foo 0000 thanks. jcyang. ...
I'm trying to detect when a new file is created a directory or when an existing file is modified in a directory. I tried searching for a script that would do this (preferably in python or bash) but came up short. My environment is linux with Python 2.6 Related Questions: http://stackoverflow.com/questions/415856/how-to-detect-new-or-m...
Is there any lightweight *nix OS dedicated for programming purposes? Actually, I have a full installation of Mandriva in my computer; but sometimes in Windows I must use Virtualbox to run some *nix OS. Because I only need the OS for only programming in this case, so I just want to ask you about it. Of course, I searched about this on ...
Hi Is there a software that will convert a windows executable to linux executable rather than emulating windows api in linux(wine)? ...
I'm writing a 2D game in Java and I have a problem with input events (mouse, keyboard) not firing when they should. It works as expected in win2k & xp. As it's a game, I have a main loop which Coalesces input events (various listeners populating buffered state) Advances the scene Renders the scene Waits if necessary to maintain stable...
I have recently started using Chromium rather than Firefox on my laptop, primarily due to poor performance with Firefox. I always launched my browser via Gnome DO (Win+Space, Firefox, enter). I would like to do the same for Chromium but can't find any documentaiton in regards to adding aliases to Gnome DO. Any ideas on how I can add Chr...
I want to show the output of the Linux command dialog --menu from my C program so that the user can select an option from the menu. Also, the last line of output from the program is the option the user selected, so I need to capture that. I've tried using popen() and system() to accomplish this, and looked on the web, but couldn't find...
I know how make a pdf from LaTex. Is there a way to extract the LaTex from a PDF I created earlier? How about if someone sends me a PDF and I like the formatting. Can I extract the LaTex from it? ...
I am writing a video player on Linux and I would like to separate it into 2 process : A. decoder process B. GUI In this way, I could use different programming languages and when a problem happens, it's easier to know where is the problem. The problem is, could process A render decoded pictures onto B's surface directly? I don't want ...
What's the best place to start learning this when you already have some background ? ...
I compiled ( no warnings ) the hello-5.c example from "The Linux Kernel Module Programming Guide" and when I tried to insmod it, I received the following error: insmod: error inserting 'hello-5.ko': -1 Unknown symbol in module I thought I would try splint to see if it came up with any obvious errors, but when I ran it I got a slew of ...
I have written an open source (GPL) application for Linux and OSX and now wish to distribute it. Is it normal to distribute the source code along with the binaries by default, or just provide a link to where it can be obtained? If I include the source files, where is the normal location for writing them on the users system for Linux an...
Hello, I'm learning Objective-C and i would like to know where i can found a IDE for Objective-C on Linux? ...
How can I use shell one-liners and common GNU tools to concatenate lines in two files as in Cartesian product? What is the most succinct, beautiful and "linuxy" way? For example, if I have two files: $ cat file1 a b $ cat file2 c d e The result should be a, c a, d a, e b, c b, d b, e ...
Hi, Since you 'should' learn C/C++ and as part of 'learn as much languages as possible', i decided to learn C++ in depth. My OS is Windows and my question is should i re-install Linux as a dual boot to learn C++ on Linux? Do i miss something if I develop in C++ only on the Windows platform? (possible duplicate: http://stackoverflow.c...
I'm in the process of implementing a service -- written in Python with the Twisted framework, running on Debian GNU/Linux -- that checks the availability of SIP servers. For this I use the OPTIONS method (a SIP protocol feature), as this seems to be a commonplace practice. In order to construct correct and RFC compliant headers, I need...
which variable will capture the contents of the second argument passed to a script at the command line ...
Hi, On my website I store user pictures in a simple manner such as: "image/user_1.jpg". I don't want visitors to be able to view images on my server just by trying user_ids. (Ex: www.mydomain.com/images/user_2.jpg, www.mydomain.com/images/user_3.jpg, so on...) So far I have three solutions in mind: I tried using .htaccess to passwor...
I have written a C utility for Linux that checks the contents of /proc/net/dev once every second., I open the file using fopen("/proc/net/dev", "r") and then fclose() when I'm done. Since I'm using a 'pseudo' file rather than a real one, does it matter if I open/close the file each time I read from it, or should I just open it when my ...
Is it safe to assume that the loopback network adapter on a Linux system will always be called 'lo' - is this just a naming convention that may not be adhered to, or must it always be the case? ...