linux

Using Linux vs Windows for development

On my servers I run everything on Linux/ Apache, but for offline preparation before upload of the projects I'm using Windows (Vista) with a local Apache/ WAMP, PHP, Python, GD_image installation and so on. My question, would it be much easier in terms of setting up a good environment if I were to use Linux, e.g. Ubuntu distribution, as d...

Change the ruby process name in top

I would like to change the name of the ruby process that gets displayed in the linux/unix top command. I have tried the $0='miname' approach but it only works with the ps command and in top the process keeps getting displayed as "ruby" Thanks for any hints in advance. ...

Why KeyTyped event does not show under Linux when typing unicode?

I have a Swing Application running under Linux, that has problems to display accented characters. Looking into the application, I tracked the problem to the Keyboard. I added a new EventQueueManager to intercept all events received. I typed the "[dead acute] [a]" sequence on both systems. In windows I get: D 090116 100330.015000 AW...

Linux command to sum integers, one per line?

I am looking for a command that will accept as input multiple lines of text, each line containing a single integer, and output the sum of these integers. As a bit of background, I have a log file which includes timing measurements, so through grepping for the relevant lines, and a bit of sed reformatting I can list all of the timings in...

What is the equivalent to Posix popen() in the Win32 API?

Is there a rough equivalent to the Linux/Unix stdio.h popen() function in the Win32 API? If so, where can I find it? Edit: I need to know this to patch an omission in the D standard library. Any answer must use only standard Win32 API, no MSVC-specific functions. Also, I'd prefer something that's not horribly low-level, if it exists...

Do you recommend SharpDevelop for trying out C# on Linux?

I'm going to try c# on my linux box.... Do you recommend SharpDevelop as IDE or just a notepad + compiler? tnx Alberto Berengo ...

List free flash space on WRT54GL with DD-WRT v24sp1 firmare?

I'm trying to develop some custom apps to run on top of DD-WRT. I'm using the Linksys WRT54GL as my dev platform, but the flash space is limited. I think I'm almost out of room, but I can't figure out how to show the used / free flash space. Linux command "df" only shows the ramdisk. DD-WRT command "nvram" accesses the configuration, ...

How to learn your way through Linux's shell

I want to stop losing precious time when dealing with linux/unix's shell. If I could get to understand it all so well, that would be so great. Otherwise: I may end up loosing a day just for setting up a crontab. I'll keep wondering why the shebang in this script doesn't work. I'll keep wondering what's the real difference between: . ...

Basic unit test and C, how do I get started?

Hi After reading quite some threads here at StackOverflow, I have come to the conclusion that I should adopt to some form of test driven development/unit test (or at least explore the area). And since we are talking about c code under Linux, I decided to give check a try (I don't know if this is the right choice but if it's no goo...

To what extent can Version Control help in system administration?

I'm currently tinkering at an OpenBSD system with a view to building myself a firewall and some other bits and bobs. As this is fairly experimental (I'm an OpenBSD n00b, and I've already trashed my system 3 or 4 times), I wonder what experience others have of making part or all of the file system (I'm thinking in particular of /etc) a w...

In Unix, can I run 'make' in a directory without cd'ing to that directory first?

In Unix, can I run 'make' in a directory without cd'ing to that directory first? ...

Shell Script Tilde Expansion

Here is my script: #!/bin/bash echo "Digite o local em que deseja instalar o IGRAFU(pressione enter para instalar em ${HOME}/IGRAFO):" read caminho if test -z $caminho then caminho="${HOME}/IGRAFO" fi echo "O IGRAFU será instalado no diretório: $caminho" mkdir -pv $caminho mv -v ./* $caminho echo "Pronto!" At 'read caminho' I may ...

Port c# 2.0 BL/DL and webservice/wcf code to linux (with oracle DB)

I have this typical scenario. I have a smartclient application built on .net 2.0 framework on windows. The details of the application is irrelevant. This is not a learning project but a real mid level enterprise application which I need to port. I need to port my BusinessLayer and DataLayer to Linux (with oracle as backend). I am on...

Keystroke dynamics in Linux

I'm thinking of implementing a keystroke dynamics (authenticating people based on their typing patterns) application for Linux. As I see it, I have two alternatives: Extend the Linux logon to support keystroke dynamics Create a desktop-locker program which "locks" the screen and can only be unlocked by a typist with a particular typing...

Speech to text conversion in Linux

I am planning to start an application which converts the speech to text in Linux. Are there any existing interfaces so that I can extend them? or Is there any such existing application in Linux? Any inputs on this? EDIT: The application that I am planning to write should be able convert every word that we speak to text, not just the Yes...

What are some minimal requirements of a device in order to make it possible to write a device driver for it?

I started lately reading some articles about the kernel space and especially about device drivers. So I was wondering are there some minimal requirements for a device in order to make it easy to write a device driver for it? ...

how do I check that two folders are the same in linux

hi I have moved a web site from one server to another and I copied the files using SCP I now wish to check that all the files have been copied OK. How do I compare the sites? Count files for a folder? Get the total files size for folder tree? or is there a better way to compare the sites? Paul ...

Process Deluge on Linux.

I tried this experiment on my Linux desktop: int main() { while(1) fork(); return 0; } I ran this program as normal user(not root), i was surprised to find that it brought down my system, it has become unresponsive. I had hoped that due to resource limit exhaustion my process would have been killed,but apparently this is not ...

Formating file on windows

Hi, Following my question about creating files. After fast creation of large file, now i need to create a file system on this file. How can i create something like Loop device on Linux. After this i guess formatting will be really easy. Any alternative method (instead mounting) for formatting file to different FAT (12/32) and ext3 are ...

External raid / network storage using IDE hard drives

Here's the situation: I have numerous old hard drives, all of which are at least 120GB. I'd like to be able to combine these together into a big network share with maybe some kind of RAID option. How best to do this? I've a slightly older PC (about 2GHz) that I'd like to use as a server across my network. Ideally I'd like to be able...