I need to know the current time at CDT when my Python script is run. However this script will be run in multiple different timezones so a simple offset won't work.
I only need a solution for Linux, but a cross platform solution would be ideal.
...
How to get directory inode number say /home/laks/file.txt
I need the inode number of laks directory. Any built-in function is already available?
I think i could use stat() if i cut the file name...but any other solution to this without removing file name.
...
I want to pull the text out of html files for indexing purposes, and do so as fast as possible. Rather than create something from scratch, I want to see how much I can find already done for me.
Currently I'm just piping the output of html2text, which works, but between being python and trying to prettify the text, I'm sure the speed cou...
Using C, I'm trying to concatenate the filenames in a directory with their paths so that I can call stat() for each, but when I try to do using strcat inside the loop it concatenates the previous filename with the next. It's modifying argv[1] during the loop, but I haven't worked with C in a long time, so I'm very confused...
#include <...
Hello,
I generated some Boost librairies with bjam, and I get many symbolic links.
For date_time :
libboost_date_time-gcc41-mt-1_39.a
libboost_date_time-gcc41-mt-1_39.so -> libboost_date_time-gcc41-mt-1_39.so.1.39.0
libboost_date_time-gcc41-mt-1_39.so.1.39.0
libboost_date_time-gcc41-mt.a -> libboost_date_time-gcc41-mt-1_39.a
libbo...
Hi.
What is the best way to force a configure script to build a 32-bit code?
I have a 64-bit machine, and trying to build a 32-bit code.
Tried setting the --build type with several options, but this just doesn't work.
Thanks!
...
I am digging deep into the ALSA HDA codec HDA source code to resolve an issue and would like to know why so many of the structures and functions are prefixed with azx.
Can anybody point me any websites/docs?
I would also be interested into any sites that give some background information on codecs, CORB/RIRB and BDL etc
...
How can i include a license agreement interaction in a .deb file? The question http://stackoverflow.com/questions/668838/linux-support-for-click-thru-licenses only asks if its possible, but not how. Also, I'm not sure if http://stackoverflow.com/questions/1884753/license-info-of-a-deb-package is actually something one could use...
I kno...
Does anybody know an ISO image of a up-to-date Linux distribution aimed at web developers with one, some or all of the following features:
LAMP stack readily set up (Readily installed Apache 2, virtual sites directory structure (hosting), PHP installed, mySQL installed)
Ruby/RoR set up for a beginner to start with
Subversion set up for...
Hello, all.
I am programming something that needs an interface to Bash. At first I thought I could just use popen or QProcess. ( I'm using QT C++ ) They work fine but I can't get them to run Bash in a tty, which you need if you are going to use anything like sudo, which requires a tty/pty to accept a password.
I found some things like ...
How would one go about adding fl.controls.* to AS3 projects developed under Linux?
Apparently it is not part of Flex 3SDK for Linux (which is what I am using to compile) or maybe it is and I am not importing it correctly..I downloaded this SDK last March, maybe time for update?
Looking at Adobe Official Docs for fl.controls does not me...
Hi I'm making an app using GTKMM. The screenshot is below:
Screenshot
The Problem is, I'm not able to position the "My Label" to align at the top, just below the Search box.
I'm packing Name,Search box, Search Button into a HBox, which is packed into a VBox, and then MyLabel is packed into the VBox.
I think the problem is that the V...
Is there a GUI for GDB that will allow me to debug applications that create threads using clone() syscall? I tried Insight and KDBG, but for some reason when the new cloned thread is created, I can't see it in the thread list. The clone syscall is called through inline assembly. Is it not possible because the thread created shares PID wi...
I've been messing around with getaddrinfo and getnameinfo but the closest I got to useful output was "localhost.localdomain". I'm not sure what to pass in for the "node" or "service" args of getaddrinfo, although I think it's the function I want.
...
Is a program shipped in assembler format portable between Linux distributions (modulo CPU architecture differences)?
Here's the background to my question: I'm working on a new programming language (named Aklo), whose modus operandi will be the classic compiling to .s and feeding the result to the GNU assembler.
Obviously it would be ni...
I'm now extending more my x86 Assembly knowledge and one of the best tools for learning is DEBUG. When I was learning Assembly(past 4 years) I was on Windows, but now I'm on Linux Ubuntu and the DEBUG tool is only for Windows. Then I want to know is there is any port or equivalent for Linux.
Remember that I don't want to debug my code, ...
I'm now developing on Assembly under Linux, but I love to develop on a editor that have syntax highlight feature. Then I want to know what is the best one for Assembly(that has syntax highlight).
...
Hi I'm trying to show an error mesaage using a dialogbox. However when I run the code I get segmentation fault.
Here's the function:
void ShowErrorMessage(string message)
{
Gtk::MessageDialog dialog(message,true,Gtk::MESSAGE_ERROR,Gtk::BUTTONS_CLOSE,true);
dialog.run();
}
I try to open a file, if the file can not be open I wanna ...
Hi - I have an application which uses gtkmm. The client's machine does not have this library installed. When he runs my application on his Red Hat Linux he gets the error:
libgio-2.0.so.0: cannot open share d object file: No such file or directory
How can i install it on the client's machine? I know I can do yum install, but since its R...
Hi all,
I'm new to 64-bits architecture. Could you tell me what's MAX file size supported by file mapping in 64 bits linux machine. I want to open more than 20GB files by file mapping, is it available? Thanks
Thanks for your replies.
Now I write a sample code. But it causes Bus Error when I get the value of the pointer in GBSIZE off...