Skip to content

Tag: linux

Octave strcat ignores added spaces

Octave adds spaces with strcat In Octave I run these commands: I get this result: Instead of what I expected: strcat to me sounds like “concatenate strings”. A space is a valid character, so adding a space should be OK. Matlab has the same behaviour, so it’s probably intended. I find it coun…

Externalizing Tomcat webapp config from .war file

I am having trouble with configuring a webapp in Tomcat 7. In my WAR file, there is a properties file myApp/WEB-INF/classes/myProps.props, and it contains environment-specific properites. I am trying to override that configuration file on the server, so that the same WAR file will deploy to multiple environme…

Recursion using main() function [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I am writing a prog…

Why can the value of the symbol returned by dlsym() be null?

In Linux. Per the dlsym(3) Linux man page, Why is this, when can a symbol (for a function, specifically) be actually NULL? I am reviewing code and found a piece using dlerror to clean first, dlsym next, and dlerror to check for errors. But it does not check the resulting function from being null before callin…

Use of floating point in the Linux kernel

I am reading Robert Love’s “Linux Kernel Development”, and I came across the following passage: No (Easy) Use of Floating Point When a user-space process uses floating-point instructions, the kernel manages the transition from integer to floating point mode. What the kernel has to do when us…

How can I install Hjelmslund USB485 in debian

As the title says! I can read info from the device with “dmesg” and see it when “lsusb” but how do I attach/install it as for example dev/ttyUSB2 Answer One way is to change the VID and PID with FTDI software FT Prog (utility for programming the EEPROM of FTxxx devices). Change to 0403…

How can I set rpath on gcc binaries during bootstrap?

I am trying to build gcc 4.7.2 using a custom prefix $PREFIX I have built and installed all the prerequisites into my prefix location, and then successfully configured, built and installed gcc. The problem that I now have is that $PREFIX is not in the library search path, and therefore the shared libraries ca…