linux

Can Silverlight Run on linux

I have just read an article on microsoft brining silverlight to linux OS. Does this mean that when I create my project on windows box will it be able to run on linux? Do I need to do anything else to the code to have it run on linux? ...

Bash: redirect standard input dynamically in a script

I was trying to do this to decide whether to redirect stdin to a file or not: [ ...some condition here... ] && input=$fileName || input="&0" ./myScript < $input But that doesn't work because when the variable $input is "&0", bash interprets it as a filename. However, I could just do: if [ ...condition... ];then ./myScript <$file...

php check what server the application is running on?

How can I check in a PHP script if it's running in a windows or unix environment? ...

how do i grep recursively

how do i recursively grep all directories and subdirectories ? find . | xargs grep "texthere" * ...

How to edit Linux source code?

I want to modify the source code for Linux. I don't know from where to start. I want to study the code and then modify it and see the changes by runnng it. Where do I start? I am a college passout and I know C and C++ but never edited the source code of Linux. I want a small light-weight Linux that has small source code files so that I ...

playing with minix3 source code

I want to edit source coe of minix3 and then i want to see the changes in effect.Means i want to see the result of changes which i make.If i use minix3 vmwar images how can i edit its source. Does minix3 itslef allows u to edit its source? Will the source code come along with it by default? What tool wil be required to modify it?Are t...

Linux i/o to running deamon / process

Is it possible to i/o to a running process? I have multiple game servers running like this: cd /path/to/game/server/binary ./binary arg1 arg2 ... argn & Is it possible to write a message to a server if i know the process id? Something like this would be handy: echo "quit" > process1234 Where process1234 is the process (with sid 12...

Configuring LAMP Environment in Linux Mint using XAMPP- installing Memcache

Hi, Okies, I have successfully installed the XAMPP and added virtual hosts and am able to make database calls and stuff. The problem I am facing is while trying to enable the memcache module. Currently trying to configure using these links. http://theindexer.wordpress.com/2008/06/02/installing-a-lamp-stack-on-linux-using-xampp-for-li...

git autodeploy script within post-receive hook on ubuntu

I have an autodeploy bash script to get updated repo to /tmp in 'post-receive' hook on gitosis #!/bin/bash PWD=$PWD REPO_NAME=${PWD##/*/} cd /tmp git clone git@atom-desktop:$REPO_NAME But anytime when I push repository I got error like this: Host key verification failed. fatal: The r...

search multiple php files, and replace text ?

i have several php files, and there's references to .html files in those. I need to replace ".html" to ".php" how can i do this in bash ? ...

Ruby Gems with Persistent data

I want to create ruby application (not rails). This is a console app which will need to persist some data. I'm using pstore as the database. I want to deploy this application as a gem. My question is: where does my data live? Currently I've created a data directory as a sibling to the bin directory in a standard gem layout. I would th...

what kind of loop is for (;;)?

found in torvalds/linux-2.6.git -> kernel/mutex.c line 171 i have tried to find it on google and such to no avail. what does "for (;;)" instruct? ...

D-Bus threading model

I am starting to use D-Bus as the IPC mechanism for a new project in Linux/KDE. And I've discovered that the documentation does not really address concurrency at all. How are D-Bus services expected to deal with multiple concurrent calls coming in from different clients? What's the threading model? Can a service assume that it is single-...

Cygwin port not working => exits immediately on launch

Hi, I am trying to port a C++ program from Linux to Windows using cygwin. I have it building and linking fine now, but when I launch the program, it exits immediately with an error. When I try it in gdb, I get the following 'unknown target exception' result: $ gdb ../../bin/ARCH.cygwin/release/myApp GNU gdb 6.8.0.20080328-cvs (cygwin...

What is the equivalent of VIsual C++'s _waccess() on linux?

There is the POSIX access(), but I'm looking for a wide character version. ...

Connect to Matlab engine from C in Linux

I'm trying to call the Matlab engine programatically from a C program on Linux (Matlab r2009a, Ubuntu 9.10). I've got my own code (which works in Windows), but for now I'm just trying to get the Matlab "engdemo.c" program to work on Linux. I have managed to compile & link it (after including about 15 -l<lib> switches on the gcc command ...

List of licenses of Debian components

I'm looking for a list of all components in the Debian distribution (specifically Lenny) with indication of their respective license (GPL, LGPL etc.), where might one find such a list? ...

Can I open a socket and pass it to another process in Linux

In Linux, is it possible for me to open a socket and pass the socket to another process? If yes, can you please tell me where I can find an example? Thank you. ...

Which is easier to write drivers for? Windows or LInux?

I am trying to learn a little about driver development and my question is, which OS has an easier API to develop drivers with? Windows or Linux? Remember that I am new to this. Thanks ...

Create single python executable module

Guys, I have much python code in modules which are resides in several python packages and now I need to create single python executable module or file which will include all these files, so it will be working on windows and on linux servers. What are possible solutions and how this can be done? ...