Skip to content

Where is the itoa function in Linux?

itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, “%d”, num)? Answer EDIT: Sorry, I should have remembered that this machine is decidedly non-standard, having plugged in various no…

Is it possible to unlisten on a socket?

Is it possible to unlisten on a socket after you have called listen(fd, backlog)? Edit: My mistake for not making myself clear. I’d like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it (or worse, some nefarious pr…

IDE’s for C# development on Linux?

What are my options? I tried MonoDevelop over a year ago but it was extremely buggy. Is the latest version a stable development environment? Answer MonoDevelop 2.0 has been released, it now has a decent GUI Debugger, code completion, Intellisense C# 3.0 support (including linq), and a decent GTK# Visual Desig…

How do I find my PID in Java or JRuby on Linux?

I need to find the PID of the current running process on a Linux platform (it can be a system dependent solution). Java does not support getting the process ID, and JRuby currently has a bug with the Ruby method, Process.pid. Is there another way to obtain the PID? Answer If you have procfs installed, you can…

Handling file paths cross platform

Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I’d like to be able to read the path for the other configuration file into a class which would work on both Linux …

svn over HTTP proxy [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I’m on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed). W…