linux

Is there a Flex IDE/development env that works on Ubuntu 64bit?

Is there a good Flex IDE/development env that works on Ubuntu? Where can this be found? ...

Gnome icons pack

Does anyone know where can i find this icon set for download (pngs + svgs) http://www.iconspedia.com/search/gnome/0/ and also, is the icons license allows it to be used in commercial applications? ...

linux threads and fopen() fclose() fgets()

I'm looking at some legacy Linux code which uses pthreads. In one thread a file is read via fgets(). The FILE variable is a global variable shared across all threads. (Hey, I didn't write this...) In another thread every now and again the FILE is closed and reopened with another filename. For several seconds after this has happened,...

Trouble with codeblocks installation on Ubuntu 9.10

I installed Code::Blocks on Ubuntu 9.10, but when I start it from terminal, it shows the following error: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference What is wrong with it? It seems to me I have installed all necessary...

Arrange Log Entries into Dated Files

I'm trying to split a large log file, containing log entries for months at a time, and I'm trying to split it up into logfiles by date. There are thousands of line as follows: Sep 4 11:45 kernel: Entry Sep 5 08:44 syslog: Entry I'm trying to split it up so that the files, logfile.20090904 and logfile.20090905 contain the entries. I'v...

mysql command line. Empty set, 1 warning (0.01 sec)

How do i view the warning(s) after a SELECT query? The results of one query is Empty set, 1 warning (0.01 sec) I am using mysql via command line on linux. ...

Python pysqlite2 dbapi2 problem

I'm having an issue with the line: from pysqlite2 import dbapi2 as sqlite The error i'm getting is: ImportError: /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so: undefined symbol: sqlite3_enable_shared_cache What can I do to solve this problem? Thanks! ...

iPod Development Under Linux

Hello, I was thinking in start to develop iPod applications, the thing is that I use Linux(Ubuntu Hardy) and I don't know if I can develop on it, then I'm here asking for some resources and tutorials to begin. Thanks. Remember that I don't want to develop for iPod Touch, but for iPod Video ...

Linux assembly woes

Is there really no way to print an ascii string in assembly to standard output without using up all four general purpose registers? ...

How to set environment variable for everyone under my linux system?

Can I have certain settings that are universal for all my users? ...

Compile mysql for AES 256bits

According to mysql document "Encoding with a 128-bit key length is used, but you can extend it up to 256 bits by modifying the source." But they didn't seem to provide instruction where to change. Anyone experience with this situation? which source file should change? Note: I use these steps to compile. ...

bash: fail if script is not being run by root

I have a bash script that installs some software. I want to fail as soon as possible if it is not being run by root. How can I do that? ...

Linux: How to get full name of shared object just loaded from the constructor?

On Windows, several arguments are passed to the DllMain constructor: BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved ); From hinstDLL I can get the fully qualified file name of the DLL itself using GetModuleFileName(): LPTSTR str = new TCHAR[256]; int libNameLength = GetM...

Create Linux install for Qt application.

Hi, I just made a great program with Qt Creator. I'm very pleased with myself. How do I move it from my desktop to my laptop? So, the best way would be an installer right? And for Ubuntu, that's a debian package right? How do I do that? Has someone done this and could they share the template files for QT 4.5? Thanks, Mike ...

I want to create this environment variable for everyone, but it does not load during startup? (linux)

I put this at the top, using "sudo vi /etc/profile": PYTHONPATH=/home/myuser:/home/myotheruser When I use putty and log in under my username, the python path does not work! I type "set", and it is there. But, importing things from that directory still does not work. When I manually do this, then it will work. EXPORT PYTHONPATH=/home...

how to set close-on-exec by default

I'm implementing a library to run commands. The library is C, on Linux. It currently does a popen() call to run a command and get output. The problem is that the command inherits all currently open file handlers. If I did a fork/exec I could close the handlers in child explicitly. But that means re-implementing popen(). Can I set clos...

detecting nic and ports on systems loaded with linux

Hello All, Is there a simple way to detect nic and associated ports on systems loaded with linux. From my study on this, i found lshw -C network would help me to some extent, by giving details on ports and interfaces. But i didn't get clear differentiation done with nic and associated ports. Say if i have 2 nic cards with one 4 ports...

Is there a good way to detect a stale NFS mount

I have a procedure I want to initiate only if several tests complete successfully. One test I need is that all of my NFS mounts are alive and well. Can I do better than the brute force approach: mount | sed -n "s/^.* on \(.*\) type nfs .*$/\1/p" | while read mount_point ; do timeout 10 ls $mount_point >& /dev/null || echo "stale...

how to determine which PHP code opens MySQL connections that aren't getting closed

We have an application that is comprised of a couple of off the shelf PHP applications (ExpressionEngine and XCart) as well as our own custom code. I did not do the actual analysis so I don't know precisely how it was determined, but am not surprised to hear that too many MySQL connections are being left unclosed (I am not surprised bec...

How to point a DomainName to an Apache Tomcat Server?

I have a domain name and I want to point it to a local apache tomcat server that I have installed and started on my machine(static IP) What kind of configuration I need to do with the DNS(at the website of the domain name company) and tomcat configuration files - I assume! PS. I am using Tomcat6 on a linux machine with static IP Man...