How could I programmatically detect if a Linux machine is being controlled by a user that has logged in using a serial console? I would be doing the checking through BASH.
...
Hello,
I'm new to Linux development, 'make' seems to be the standard for building applications.
I'm having difficulties understanding the structure of a makefile.
Please, can you point me to good resource or documentation to look at ?
...
How do I write my application so it'll live in the system tray on Linux? In fact, just like CheckGmail.
As with CheckGmail, I'd also like some sort of popup box to appear when I hover the tray icon.
Is there an API, class or something for doing this? All I'm able to find seems to be for Windows.
If I have to be language specific, then...
I'm moved from Windows to Ubuntu Linux, and now I want to set up development environment here. The problem is that I need
C/C++ IDE comparable to Visual Studio
Way to generate Windows PE binaries
Way do debug Windows PE binaries
At first time I tried Code::Blocks. Here I find guide to setting it up for cross-development so I managed ...
Hi,
Why does this print garbage instead of exiting my program gracefully? I use system calls this way on BSD, and I wonder what would I need to make it work in Linux.
int
main(int argc, char **argv)
{
__asm ("movq $1,%rax; movq $0,%rdi; syscall"); /* exit(0) ? */
return 0;
}
Thanks.
...
I would like to collect here what happens when you run an executable on Windows, Linux and OSX. In particular, I would like to understand exactly the order of the operations: my guess is that the executable file format (PE, ELF or Mach-O) is loaded by the kernel (but I ignore the various sections of the ELF and their meaning), and then y...
Im using Liferay portal server on tomcat and Linux Ubuntu.
Liferay is generating a file that is very long. I've seen those files in windows and its working. But when i tried running it in ubuntu, it doesn't create the file and my server is giving me error. I've also tried to make a file with a very long filename and it really doesn't al...
When i use the command above, i get wrong matches.....can someone explain me, what is wrong?
I'm trying to search for the string "..." in all files in the current folder.
...
A similar question has already been asked for the .NET platform but I am on Debian Linux.
I am trying to find a solution for burning a video DVD directly from a camera attached to a capture card. The card outputs an MPEG-2 stream and I want to write it directly to a DVD disc without creating any intermediate files.
The reason is so tha...
I need to make a native gtk application which has the functionality of virtual file drag and drop. What i mean here is that when we start dragging a file from the native application then that file actually doesn't exist there but is either generated or downloaded from some remote location and is finally available at the drop location.
...
I need this info to decide on what I am going to do about my platform support of my systems in the coming year, but can't find any real info on that. Maybe someone has some just released information.
Thanks in advance.
...
I am working on a BASH script which has a global variable. The value of the variable changes in a function/subroutine. But the value doesnt change when I try to print that variable outside the function.
The Sample code is as follows:
#!/bin/bash
count=
linux_f()
{
let count=100
}
linux_f
echo $count
The echo statem...
I want to log how long something takes in real walltime. Currently I'm doing this:
startTime = time.time()
someSQLOrSomething()
print "That took %.3f seconds" % (time.time() - startTime)
But that will fail (produce incorrect results) if the time is adjusted while the SQL query (or whatever it is) is running.
I don't want to just benc...
I am developing c on linux using vim and debugging using ddd. However I find that ddd performs very poorly at scrolling on this machine so its sometimes very frustrating to use.
I like the way that ddd maps fairly closely to the gdb command set as this means I am free to use gdb commands when I choose, but using gdb itself is not an opt...
i have a linux client which uses pppoe to connect to the internet and
everytime this client comes online I wanna bind his ipadress to a subdomain.
dyndns is not an option due to their TTL.
It looks like i have to setup my own nameserver on my root server to accomplish this task because I cannot create the keys needed to run an nsupdate o...
I'm tying out a new moodle module, which provides integration with Windows Live.
When using the live authentication I get a blank page. Switch on PHP error logging and get:
Fatal error: Call to undefined function hash_hmac() in /srv/www/htdocs/moodle/auth/liveid/windowslivelogin.php on line 1293
Line 1293 is: return hash_hmac("sha25...
Hello network experts,
I have a pc with two network cards. One (eth0) is for LAN/internet and the other for UDP communication with one microcontroller (mc) device. The mc has an IP(192.168.7.2) and a MAC address. The second pc network adapter (eth1) has 192.168.7.1.
The mc has a very simple IP stack, so the easiest way for the mc to sen...
I've been using FreeMarker for a little while now, but there's one glaring piece of functionality that is either missing or I just can't figure out (I hope the latter!). If you pass cfg.getTemplate() an absolute path, it just doesn't work. I know you can specify a template directory, but I can't afford to do that, my use case could dea...
how do i install libmysqlclient.so on ubuntu
...
Hi
I want to draw a filled box in console and set colour for every single pixel.
Is it possible to achive this with ncurses?
If not - is there any other library that will do the trick?
...