I am a happy BASH user. I do not want to switch to another shell (in this case ZSH).
ZSH has this ability to change a directory without necessarily typing:
cd /to/a/directory
What would the correct alias (or maybe BASH function) to change directories without having to type 'cd'?
On my above example, moving to /to/a/directory would b...
I recently went through this little noob adventure on a Linux desktop:
Take a text file with sensitive info
PGP-encrypt it (e.g. with Seahorse)
Back it up
Reinstall OS, erase hard drive, drop computer in pool, etc, etc
Retrieve the encrypted file from backup, and gasp in horror to realize you can't decrypt it, even though you know the ...
I need to make my Delphi solutions available on Linux and I have tested them on both Wine and Lazarus. What are the technical considerations I should take into account (Programming, Deployment, Maintenance etc.) on the longer term in order to avoid landing in a maintenance nightmare. I keep my Windows components used pretty standard to a...
A Windows endpoint booted over iSCSI blue-screens and reboots as soon as the failover target source comes up. Till that point, Windows appears to be "frozen". The blue screen codes are sometimes 0x00000f4 and sometimes 0x000007a. Now, on failover, the secondary maintains the same iqn and the source of the Windows disk is independent of t...
I have 2 server programs that must be started with the use of GNU Screen. I'd like to harden these servers against crashes with a Python based program that kicks off each screen session then monitors the server process. If the server process crashes, I need the python code to kill the extraneous screen session and restart the server with...
Are there any Linux administaration related peer-run websites out there where people could ask questions in stackoverflow fashion?
Yes, I am aware that it's not really a programming question, however I guess it would be handy to know where to go with such non-programming, but closely-related stuff.
...
I have a server with lots of video files. After a restore, I noticed that the checksum of a couple of files changed. Since I don't have checksums for all files, I wanted write a script to verify the file integrity. It's simple for archives (tar t, unzip -t, rar t, etc) or images (convert image.jpg /tmp/test.png).
Which options do I need...
I am trying to write cross platform i18n C++ code. Since most linux system prefer to use UTF-8 as the character encoding, I thought that I should use string on linux and wstring on Windows. Is tchar.h available on linux? What is an equivalent replacement on for tchar.h on Linux?
...
I'm trying to do some tuning for Oracle on Linux boxes living on SAN based infrastructure. I'm looking specifically for tools that would allow us to profile IO per process (or per process tree would be even better). My questions are?
What are the tools that would be recommended for this kind of task?
What other useful metrics should I ...
Possible Duplicate:
What IDE / Editor do you use for Ruby on Linux?
what do you consider the best ide for developing ruby and rails on linux? thanks.
...
I have a game that currently runs under Windows and Mac OS X and I'd like to make it available under Linux. The porting should be fairly easy since it's a Java based game and uses portable libraries that are available on all 3 platforms.
The hard part and the reason for this question is packaging it so that it works on as many modern Li...
Hey everybody,
I wrote a program that forks some processes with fork(). I want to kill all child- and the mother process if there is an error. If I use exit(EXIT_FAILURE) only the child process is killed.
I am thinking about a system("killall [program_name]") but there must be a better way...
Thank you all!
Lennart
...
So i want to try a new concept that involves deep modifications of the Linux kernel, and i wanted to know if is it worth to try or if it is too complicated ?
...
I am frustrated of not having a good Linux GUI administration and development tool for PostgreSQL.
pgAdmin III is buggy and unusable piece of... hmm, software, compared to Windows-only PostgreSQL Maestro and EMS PostgreSQL manager.
phpPgaAmin does not looks promising.
EMS PostgreSQL manager can work under Wine, but such setup have a n...
The CM108 from C-Media has 4 GPIO pin that you can access via a hid interface.
Using the generic write function in Windows I was able to write to the gpio pins.
However I'm trying to do the same thing in Linux without success.
The linux kernel detect the device as a hidraw device.
Note: I was able to read from the device, just not w...
I am getting thousands of pictures uploaded by thousands of users on my Linux server, which is hosted by 1and1.com (I believe they use CentOS, but am unsure of the version). This is a language agnostic question, however, for your reference, I am using PHP.
My first thought was to just dump them all in the same directory, however, I rem...
Hi all,
I've got a C program I'm writing. Here's what it does:
Create n fifos using mkfifo
Open them for read (with the O_NONBLOCK flag set)
Open them for write
Spawn a thread
In the thread, run in a loop:
Create an fd_set of the file descriptors for all n fifos
Call select(n, &my_set, NULL, NULL, NULL)
For each fd ready for I/O (...
webmin is a administration/UI framework for configuring software. I am curious if anyone know what the Java equivalent might be?
...
Hello,
How to get the ip of the computer on linux through Java ?
I searched the net for examples, I found something regarding NetworkInterface class, but I can't wrap my head around how I get the Ip address.
What happens if I have multiple network interfaces running in the same time ? Which Ip address will be returned.
I would reall...
I need to detect when a program crashes or is not running using python and restart it. I need a method that doesn't necessarily rely on the python module being the parent process.
I'm considering implementing a while loop that essentially does
ps -ef | grep process name
and when the process isn't found it starts another. Perhaps thi...