gnu

how can I make vim send command to gnu screen session

I am trying to figure out how to script vim to send a message to a gnu screen "window". i.e. I have a screen session open and in one window I have a vim session and in the other a scheme interpreter. When I save my vim session I would like it to restart the interpreter in the other window loading in the new environment. I can figure out ...

How to make GNU Screen start a new window at the CURRENT working directory?

By default, when you create a new window in GNU Screen, it will start in the directory where screen is invoked. I want to start a new window in GNU Screen at the current working directory of the window I'm currently in. How to do that? Thanks! ...

gnu screen - changing the default escape command key to ALT-X?

In GNU screen, I want to change the default command binding to Alt-s (by tweaking .screenrc) instead of the default C-a, the reason is I use emacs hence GNU screen binds the C-a key, sending "C-a" to the emacs becomes tedious (as @Nils said, to send "C-a" I should type "C-a a"), as well as "C-a" in bash shell, and I could change the esca...

Good SMTP + SSL/TLS Library for C?

I apologize if this question has been asked before. I did a rather extensive search for similar questions, however all I could find were answers related to C++ or C#. I'm using GNU C. I'm writing a daemon that needs to be able to send e-mail using SMTP. I need to be able to login to an external mail server, send the email and interpret ...

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can just run /usr/bin/vdbfs.py /srv/virtual-db from some init script, but that's not exactly...

In what order prerequisites will be made by the GNU make?

Assuming we have the rule: a: b c d e and b, c, d and e are independent of each other. Is the order of making b, c, d, e defined? It seems that generally they will be made in order b, c, d, e, but may it sometimes happen, that the order will be different? ...

Is the code generated by a gnu program is under gnu gpl too?

In my case, I am using gperf, I didn't fint it in the gnu gpl. The C code generated by gperf, is very simple, and doesn't have any licensing header. I guessed that a file without a licence at the beginning is totaly in the domain public. Am I right? ...

Do you have to pay for GNU GPL software that is "for sale"?

I've seen some software (a Joomla component, to be exact) for sale on a web site. The web site says it is licensed under the GNU GPL2. However it also says you need to pay for every site you use the software on (with bulk discounts). I know it's perfectly acceptable to sell software under the GPL, however the license implies that the so...

Is the iTextSharp DLL free to use and redistribute with my web application project?

Is the iTextSharp DLL free to use and redistribute with my web application project which i will be selling? ...

Making a perfect hash (all consecutive buckets full), gperf or alternatives?

Let's say I want to build a perfect hash table for looking up an array where the predefined keys are 12 Months, thus I would want hash("January")==0 hash("December")==11 I run my Month names through gperf and got a nice hash function, but it appears to give out 16 buckets(or rather the range is 16)! #define MIN_HASH_VALUE 3 #define M...

How to avoid misformatting of binary values with GNU indent?

When GNU indent (at least version 2.2.6 and 2.2.10) is used on the following code... void main () { int i = 0b01010101; } it will be reformatted into this ... void main () { int i = 0 b01010101; } Is there any option in indent that avoids this behavior? ...

C++ GNU Linker Errors

I'm trying to complie my program on Windows via Cygwin with the compilation command: g++ ping.cpp -I./include -L./lib -lchartdir50 I'm using an API called ChartDirector which draws charts for me. I've never linked libraries this way before (usually I do it through Visual Studio) so i'm a little new to this. I've got a really large lis...

GNU Autotools: How do you include source files in the 'make dist' tarball that are above the root source directory?

I've got a Subversion project that uses Gnu Autotools (i.e., automake, autoconf, and libtool) to manage source code within a subfolder (called 'subpackage'). The subpackage references source files that are above the subpackage's root source directory, and are common to other subpackages. Unfortunately, when running 'make dist' to creat...

OEM zip licensing

Hi, does anyone know of a good OEM zip utility that we can use to integrate into our release package. We dont want to use GNU (GPL). Cheers Pete ...

C++ Switch won't compile with externally defined variable used as case

I'm writing C++ using the MinGW GNU compiler and the problem occurs when I try to use an externally defined integer variable as a case in a switch statement. I get the following compiler error: "case label does not reduce to an integer constant". Because I've defined the integer variable as extern I believe that it should compile, do...

gnu assembler: get address of label/variable [INTEL SYNTAX]

Hi guys. I have a code like this: .bss woof: .long 0 .text bleh: ...some op codes here. now I would like to move the address of woof into eax. What's the intel syntax code here for doing that? The same goes with moving bleh's address into, say, ebx. Your help is much appreciated! ...

C++ static library link with shared lib. Compiling would be fine?

Here is a C++ project, and its lib dependency is Hello.exe -> A.so -> B.a B.a -> A.so Hello.exe depends on B.a and A.so, and B.a depends on A.so. GCC compiler will link Hello.exe successful? And if there is a b.cc file in B.a which includes a header file a.h of A.so, and also uses some interfaces of A.so, then with rig...

How Big Should main() Be, in C?

I'm learning a little C over the holiday weekend, and I started to look at other programs written in C. I ended up looking at GNU Netcat, thinking it would be a good example. I was a bit shocked to see a 600 line main() function. Is this normal? If it is normal is this considered good C coding practices? ...

Control GNU autotools make output

I am using GNU autoconf/automake. Is there any way I can control what make prints to stdout from configure.ac or Makefile.am? For example, suppress mv and cp commands being printed out to the screen, only print the name of the file being compiled by gcc rather than the whole command line, highlight gcc warnings in some way. ...

Best Program To Develop Using GNU Smalltalk

I'm reading Computer Programming Using GNU Smalltalk, but I want to know with is the best program to write my Smalltalk sources, because I don't know if I use Notepad++, a editor or a IDE, then I want a suggestion for a beginner. Remember that I'm using Windows XP. ...