How do I remove the last two chars from each line in a text file using just Linux commands?
Also my file seems to have weird ^A delimiters in it. What char does ^A correspond to?
Inspired by the maturity problems I am facing porting on Mono Mac & Linux. I am investigating the use of Qt as an alternative. I am curious to hear about your favorite Qt experiences, tips or lesser known but useful features you know of.
Please, include only one experience per answer.
How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program?
Edit: Im using the DrScheme implementation.
i wonder how one can monitor a lamp server (ubuntu) on production.
are there any standard tools for this to watch the server performance/load in realtime via the browser? how mysql, linux, apache etc are doing...
what is best practice regarding this?
any tutorials would be great. thanks!
Hi!
I was wandering if it's possible to run an Ubuntu virtual machine using VirtualBox in background, I mean, without any window open.
The idea is to conect via SSH to the linux host, that would be running in background.
Have you ever done somenthing like this? Is it possible?
Thanks!
What is the standard way to retrive and check for the argc and argv and what is the best usage and how to do that in linux?
Please provide examples.
Thanks
Hello everyone,
i want to get the intellisense in GTkmm application, similarly as we get in dot net under windows. However this time i am using Linux, C++, Gtkmm and Geany as my editor. Please guide how to get the intellisense. Moreover, if any kind of editor supports the property of intellisense, please mention that also.
Thanks and Regards
Owais Masood
I'm using objcopy on bash (ubuntu linux) and im trying to copy 2 sections from an ELF file using the folowing commend:
objcopy -j .section1 -j .section2
The problem is the objcopy is adding some padding between the sections. Is there a way (a flag?) that can stop objcopy from padding the sections?
the sections are placed one after the other in the file so there is no need for any kind of padding....
Using C on Linux, how would I go about triggering a signal handler every time I write data to a buffer using the write() function. The handler will be reading all data written to the buffer at the time of execution.
I have a ASUS U50AG Notebook, with a normal Power On and an Express Gate Power On Button.
Now i will install a Windows and a Linux. To start one of the OS i will use one of the Button. Und use no Boot Manager.
How can i do that?
Hi all,
Is it possible to run my cron job according to the GMT where as, my server is cosidering IST time formats. In future is it possible to use different time zones...? To do this can anyone suggest what all steps i need to follow as i am working on linux.
Thanks in advance....
Hello,
I try to get a coredump, so i use :
ulimit -c unlimited
I run my program in background, and I kill it :
kill -SEGV %1
But i just get :
[1]+ Exit 1 ./Test
And no coredumps are created.
I did the same with other programs and it works, so why that didn't work with all ? Anybody can help me ?
Thanks. (GNU/Linux, Debian 2.6.26)
I get this error when trying to use wxPython's NotificationMessage class:
wx.NotificationMessage("", "Hello world!").Show()
AttributeError: 'module' object has no attribute 'NotificationMessage'
The code is quite simply:
#!/usr/bin/python
import wx
app = wx.App()
wx.NotificationMessage("", "Hello world!").Show()
app.MainLoop()
What am I missing?
This is running on Linux Mint 13, MATE 1.2 desktop environment, Python 2.7.3.
I have a Linux daemon that forks a few children and monitors them for crashes (restarting as needed).
It will be great if the parent could monitor the memory usage of child processes - to detect memory leaks and restart child processes when the go beyond a certain size.
How can I do this?
Hey! I've searched high and low for this, and no luck. Is there a way that CRUD methods for a MySQL install (Linux box) be exposed via ADO.NET WCF Data Services? I would really love to leverage this in my WPF app :)
Thank u!
Hi,
Im doing a small project in C++ in LINUX PLATFORM.i need to search 10 or more PDF files and find required data.how can i do so?.
i will make my question more clear with following eg
suppose i have ten text books all about c++ and i need info about the topic array and how i can search the pdf and find data?
thanks in advance
On a standard linux set up, where can I add a directory to the @INC variable?
In the /etc/profile file, I added:
export PERLLIB=$PERLLIB:/foo/bar
export PERL5LIB=$PERL5LIB:/foo/bar
Thanks
I want to learn the following:
apache - i don't know for sure what is for
linux - server edition, the os of the server
python - for server side scripting
java - sockets, jsp, other
Am I missing anything? Are there better alternatives ? How should I start? What is apache for ?
How do I manually convert jiffies to milliseconds and vice versa in Linux? I know kernel 2.6 has a function for this, but I'm working on 2.4 (homework) and though I looked at the code it uses lots of macro constants which I have no idea if they're defined in 2.4.
Looking for a free service, or software to monitor 2 websites, one is hosted on a linux machine, and the other a windows machine (though, shouldn't really matter).
Any suggestions?
Hi
I want to close an open port which is in listening mode between my client and server application.
Is there any manual command line option in Linux to close a port ??
NOTE: I came to know that "only the application which owns the connected socket should close it, which will happen when the application terminates."
I dont understand why it is only possible by the application which opens it ... But still eager to know if there is any another way to do it ??
I'm trying to create something that will be playing some sound and music for some things in Mono+C#, but I'm not sure what the best thing will be for that.
I'm trying to make it usable with things like Ogg Vorbis, MP3s, and wave files.
My primary platform will be Linux, although a cross platform solution would be nice.
Anyone have any suggestions for libraries for playing audio files?