I have not yet found an easy solution to copy your file to a clipboard in Linux, similarly as in Mac by
cat file | pbcopy
I tried to use the following command in Vim unsuccessfully
:copy 1,9999999
to copy the file.
How can you copy a file fast to your clipboard in Linux such that you can then paste it to dpaste?
...
I am seeing high pgfree/s values in sar for an application. Generally is this an issue I should be concerned about? If so, what is generally the cause, spending time lots of time in GC?
...
Hi.
I'm trying to find the name of the file I'm editing inside of vim. So I can use it to map F5 to compile this file, for testing purposes. Would of course be great if I could recognize the file format, and choose compiler accordingly, but realy not necessary. If I find the name of the file, I could do that myself. But I really can't f...
I'm using Apache with passenger to run a rails app. In my rails app, I have some static content in subdirectories of the public directory. Each subdirectory has an index.html in it.
So, inside the public directory, I have a subdir called 'b' and inside it, is an index.html. So it's like this:
/public/b/index.html
I have links to th...
I know there are many IDE related questions already answered on StackOverflow, but I have a strange request.
I'm looking for a C++ IDE for Windows that is designed with Linux as a destination compile point. I just want to use it for syntax highlight, code completion, basic error detection, etc. In the end all code will be sftped over ...
I'm currently deprived from any Windows machine, and Mono doesn't run my application. Is there another way that might get around any reason why Mono wouldn't work? (I don't have the error message at the moment.)
...
So yea, im working on a windows system and while this works locally, know it will break on other peoples servers. Whats a cross platform way to do the same as this
function fetch($get,$put){
file_put_contents($put,file_get_contents($get));
}
...
Is there a one line command in tcsh to change the extension of a set of files? In the various DOS shells, I used to use the following:
ren *.abc *.def
This would rename all files ending in .abc to end instead with .def. In sed terms this would perform something like the following:
sed -e 's/\(.\)*\.abc$/\1.def/'
on the file names...
As a developer, I've often downloaded and run
./configure
./make
./make install
to install apps onto my Linux system. But I've never been quite clear on the best place to keep the downloaded directory. My local Desktop is the default location, but I'd like to know what the best "official" place to keep it is. Also, does it vary by di...
Is there any difference between makefile in Windows and Linux?
If I know how to use it in Linux, is it necessary to learn
something new when in Windows system?
...
I have the following problem with my C program: Somewhere is a stack overflow. Despite compiling without optimization and with debugger symbols, the program exits with this output (within or outside of gdb on Linux):
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
The only way I could detect ...
Hello,
I've wanted to test if with multiply processes I'm able to use more than 4GB of ram on 32bit O.S (mine: Ubuntu with 1GB ram).
So I've written a small program that mallocs slightly less then 1GB, and do some action on that array, and ran 5 instances of this program vie forks.
The thing is, that I suspect that O.S killed 4 of them...
I'd like to reverse the lines in a text file (or stdin), preserving the contents of each line.
So, ie, starting with:
foo
bar
baz
I'd like to end up with
baz
bar
foo
Is there a standard unix commandline utility for this?
...
I'm testing the timing of an algorithm that does lots of recursive calls. My program dies at about 128k recursive calls, and this takes only .05 seconds. I'd like to allow more memory to have longer timings in my analysis. I'm running linux and using gcc. Is there a system call, or environment variable, or gcc flag, or wrapper, or someth...
I'm running a sort of "sandbox" in C on Ubuntu: it takes a program, and runs it safely under the user nobody (and intercepts signals, etc). Also, it assigns memory and time limits, and measures time and memory usage.
(In case you're curious, it's for a sort of "online judge" to mark programs on test data)
Currently I've adapted the safe...
How can I develop a Linux kernel module in order to make UDP reliable? This is my college assignment and I don't how to proceed. how to do change the default UDP behaviour in linux kernel by loading a new kernel module? and how to program such kernel module?
...
Let's take an example. When I run:
xkbprint $DISPLAY keyboard.ps
what happens in the system? I would like to know how the X really work because I regularly get nasty error reports such as
Fatal Error: Cannot load geometry for /tmp/launch-NawGIk/:0
Exiting
I know that the X11 was designed in a way that it i...
I have recently purchased a VPS from Slicehost with Ubuntu Hardy installed. Is it possible to set up the server to work with ASP? I have no idea if this is possible, but if it is, does anyone have any good tutorials?
Thanks.
...
What is the easiest and most elegant way to log into a fluxbox session automatically (with no action necessary, no keypress or anything) on system startup as a certain user. [Edit 2] Not even a shell login should be necessary for the user, always the preset user should be logged in graphically. [/Edit 2]
There are some setups where this...
Primarily I've done basic (novice level) software development on a Windows machine, but I've always had MS Visual Studio to help me step through the process of debugging.
Now, however, it looks like I will be on Linux, so in order to get ready for the jump I want to make sure I have a tool/tools lined up to help me step through the co...