i want know whether we need to download GTK for making graphical interfaces in c on linux,since i have read somewhare that it is bydefault installed??????????
I was looking for the best way to find the number of running processes with the same name via the command line in Linux. For example if I wanted to find the number of bash processes running and get "5". Currently I have a script that does a 'pidof ' and then does a count on the tokenized string. This works fine but I was wondering if there was a better way that can be done entirely via the command line. Thanks in advance for your help.
Is there an easy way to use emacs key-bindings when you are using a not-English (Russian) keyboard layout?
Whenever an international layout is on, all keystrokes are interpreted literally, M-? instead of M-a. As a result I can't use commands.
It would also be nice if Linux could interpret non-prefixed and shift-prefixed keys according according to an international layout, while keeping the rest English.
I'm having a code written in C that works on Linux. I want this program to work in windows, Are there any differences that I have to make in the code ?
It is a code for Server/Client communication using sockets taken from here :
http://www.linuxhowtos.org/C_C++/socket.htm
I am need to parse a pdf file. I would like to use objective-c and Cocoa classes to do so, but I need the resulting application to run on Linux. Is this possible? My experience to Objective-C revolves around the iPhone so I'm relatively new to Cocoa. Thanks.
I'm a pretty Huge n00b when it comes to Linux
exec ('whoami', $output, $return);
echo $return;
// Outputs 127
Which means the command is not executing. I can get it to execute when I root into the server.
Any help would be greatly appreciated!
Hi,
I want to learn C , UNIX and LINUX, and more about embedded systems. Very much interested in them. Are there any online courses or websites which can guide me. And please suggest books to read in learning them.
Thanks for your time.
Is there an equivalent C function in linux for reading the CPU counter and its frequency?
I am looking for something similair to GetWPC and GetWPCFreq winapi functions that uses the 64bit counters in modern cpu's
I have some experience with Eclipse and Qt creator and am somewhat disappointed in their debuggers, less so in their editors. On Windows, I like Visual Studio for debugging and SlickEdit for editing (SE is also available on Linux). Is there an IDE that is somehow better than the two mentioned?
How can I sum (using Linux shell) numbers in a column? If possible, I don't want to use powerful tools like awk or perl. I want something like giveMeNumber | sum
How can I search the memory state of an process in Linux? Specifically I wish to identify certain regions of interest, and peek at them at regular intervals, possibly occasionally poking new values.
I suspect an answer may involve calls to ptrace(), and reading /proc/[pid]/mem, but need more to go on.
Does anyone know a way to detect a change of IP address in Linux. Say I have dhcpcd running, and it assigns a new IP address, is there a way I can get a notification when it changes?
inotify on something in /proc/net/ ?
I'm curious what the CPU ordering is in Linux. Say I bind a thread to cpu0 and another to cpu1 on a hyperthreaded system, are they both going to be on the same physical core. Given a Core i7 920 with 4 cores and hyperthreading, the output of /proc/cpuinfo has me thinking that cpu0 and cpu1 are different physical cores, and cpu0 and cpu4 are on the same physical core.
Thanks.
Hello
Can anybody please post some example code on how I can reread a configuration file and restart my daemon after the daemon receives a SIGHUP signal. The daemon is a user space program written in C on Linux and is not started by inetd.
Hi,
We trying to choose an IDE for C++ development on Linux.
The proposed options are KDevelop and Eclipse.
Eclipse is highly customizable, but Java centric and heavy.
KDevelop is bounded to particular KDE (I believe because KDE API) and can not be replaced if required.
What you use and why?
Thanks
Dima
Is there a GetLastInputInfo() equivalent that can be used in Linux?
The intention is to detect the last input time (keyboard or mouse) of the user.
Am using python to script the program.
Where Linux/Unix environment variables are kept? How can I add my own environment variable and make it persistent, not only within currently running script?
How does buffering work with sockets on Linux?
i.e. if the server does not read the socket and the client keeps sending data.
So what will happen? How big is the socket's buffer? And will the client know so that it will stop sending?
Hi,
My requirement is host a silver light web site on Linux O/S on tomcat or web logic server.
would appreciate if anyone can explain the possibility and approach for this.
Regards,
vidya
I have a list of files named:
file000
file001
file002
file003
...
file1100
How can I match all files that have a number greater than 800 but less than 1000 ?
I am using linux bash
Thank you
Edit
Actually, my files are named like:
ab869.enc
cp936.enc
g122345.enc
x2022.enc
abc8859-14.enc
aax5601.enc
cp936-1.enc
so the first solution dont match the correct files :(
How can I match files that have number between 800-999 ?
I was working with Python with a Linux terminal screen. When I typed:
help(somefunction)
It printed the appropriate output, but then my screen was stuck, and at the bottom of the terminal was "(end)".
How do I get unstuck? Thanks in advance.
I don't want to use Mac or Windows at work but I have a lot of work in Photoshop when I have to create an HTML page from a Photoshop design.
What is the best way to use Photoshop CS3 in Linux, Wine, virtualization, ... ???