linux

How to avoid redefining VERSION, PACKAGE, etc.

I haven't seen any questions relating to GNU autoconf/automake builds, but I'm hoping at least some of you out there are familiar with it. Here goes: I have a project (I'll call it myproject) that includes another project (vendor). The vendor project is a standalone project maintained by someone else. Including a project like this is...

Globus Toolkit virtual machine

Is there anyplace where one can download a virtual machine containing a working install of some Linux distro with Globus Toolkit and some development tools (Java) for testing purposes? A real deployment of a grid is more complicated but I just need something portable, for development. ...

Should I move from C++ to Python? ... Or another language?

In the company I work for, we do a lot of file-based transaction processing. The processing centers around the conversion of files between numerous formats to suit numerous systems in numerous companies. The processing almost always involves an XML stage and can include a lot of text parsing, database lookups, data conversion and data v...

VMWare Server Under Linux Secondary NIC connection

With VMWare Server running under Linux (Debain), I would like to have the following setup: 1st NIC being used by many of the images running under VMWare, as well as being used by the Linux OS 2nd NIC being used by only 1 image and to be unused by the Linux OS (as its part of a DMZ) Although the second NIC won't be used by Linux, it ...

grep a file, but show several surrounding lines?

I would like to grep for a string, but show the preceding 5 lines and following 5 lines as well as the matched line. I'm scanning for errors in a logfile, and want to see the context. Any clues for the clueless? ...

Keep Remote Directory Up-to-date

I absolutely love the Keep Remote Directory Up-to-date feature in Winscp. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can theoretically be accomplished using changedfiles or rsync, but I've always found the tutorials for both tools to be lacking and/or contradictory. I basically just ne...

Performance critical GUI application (windows,linux)

All, I've been tasked with updating a series of applications which are performance critical VB.NET apps that essentially just monitor and return networking statistics. I've only got three requirements: convert it to C#, make it fast, and make it stable One caveat is that we "may" migrate from a .NET platform to linux "soon" I will be ...

Android Development

I am interested in trying some Android Development and I've not had much luck getting started. I'm not much of a Linux person but I have an Ubuntu box setup that I attempted to install the android SDK and plugins for Eclipse. But I'm not having much luck getting it setup. I'm looking for some guidance for what would be the best way for...

Is there a difference between the onexit() and atexit() functions

Is there any difference between int on_exit(void (*function)(int , void *), void *arg); and int atexit(void (*function)(void)); other than the fact that the function used by on_exit gets the exit status? That is, if I don't care about the exit status, is there any reason to use one or the other? Edit: Many of the answers wa...

Increasing Battery Life Under Linux

All right, this is something I think everyone can agree would be nice to have: Longer Battery Life I have a Thinkpad T61p and am currently running Fedora 9 on it. I love sitting outside and coding (required software tie-in... check) and it would be nice to not have to worry about my battery running out while I'm doing so. Vista seems...

Why Doesn't My Cron Job Work Properly?

I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP. The gzip file is created and copied successfully but it's always zero bytes. Yet i...

What's a Good Database ERD Tool for Linux?

I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Dia, but didn't see any DB tools - only UML, networking, etc. ...

Please recommend a Java profiler

I am looking for the Java equivalent of gprof. I did a little Java profiling using System.getCurrentMillis(), and saw several GUI tools which seem too much. A good compromise could be a text-based Java profiler, preferably free or low-cost, which works in either Windows XP or Linux. ...

PDF generation from XHTML in a LAMP environment

Hi, Can anyone recommend a good server-side PDF generation tool that would work in a Linux environment. I want easy as possible, pass it a XHTML file (with images) and have it generate a PDF from the rendered source. I don't have a massive budget, but anything under $1000 should be alright. Andrew ...

User script location linux (debian etch)

In the linux file system, where should user scripts be placed? I'm thinking specifically python scripts to be called by cron. ...

What's the best Linux backup solution?

We have a four Linux boxes (all running Debian or Ubuntu) on our office network. None of these boxes are especially critical and they're all using RAID. To date, I've therefore been doing backups of the boxes by having a cron job upload tarballs containing the contents of /etc, MySQL dumps and other such changing, non-packaged data to ...

Subversion Management Tools

Hi, we have a lot of users running in different shared and solo-owned repositories in Subversion. As part of our work, we do project-shared code and individual work, and we need to control access, ideally on a group basis. Currenly, we use SVNManager to allow users to manage access and create repositories. However, in order to get tha...

How do I generate ASCII codes 2 and 3 in a Bash command line?

If I press ctrl-b that ought to give me ASCII code 2, but ctrl-c is going to be interpreted as a Break. So I figure I've got to redirect a file in. How do I get these characters into a file? ...

'lsof' equivalent for windows

One of my favourite tools for linux is lsof - a real swiss army knife! Today I found myself wondering which programs on a WinXP system had a specific file open. Is there any equivalent utility to lsof? Additionally, the file in question was over a network share so I'm not sure if that complicates matters. ...

Changing the resolution of a VNC session in linux

I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900. If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the laptop's screen, and ...