linux

How to access Team Foundation Server (TFS) from Linux

If this question weren't specific to a VCS (and therefore be the kind of thing that programmers would know more about than sys admins) then I'd ask it on server fault or superuser... That said, how can I access TFS from Linux? Is there a client app that will run on Linux, or perhaps a TFS-to-SVN bridge that could run on Windows and be ...

mysql_real_escape_string - access denied, depending on user who executes script?

Hello All.. My setup: Ubuntu LAMP, application built w/ zend framework My Problem: I have a few php scripts that I trigger via cron - daily email reports, rrd data capture etc.. I launch them via a cronjob like 'php -f scriptname.php'. When I test the scripts from the commandline, logged in as myself, everything works fine. However, wh...

php project deployment new problem

i have done one php project and i have uploaded it on server.I had devlopveped it on windowas and now i am trying to deploy it on remote linux server. But i am geting error. Some parts of page are not shown i donr know why? For example i have one page appply as follows . i can see only top part other parts i cant see. <?php require 'i...

Eclipse fails to start via an application launcher

Hi everybody. The problem: elcipse-3.5.0 (Galileo) spits with an error when I try to launch it by clicking its launcher. The curse sound like this: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location...

How to Create OpenGL 3 Context with Qt 4?

I would like to learn graphics programming with OpenGL. And since I will just start learning it I decided to learn the new/OpenGL3 way of doing things.As far as I can see one has to create an OpenGL 3 context for this (Core profile in the new OpenGL 3.2 if I understand this correctly). Well I thought about using Qt for this, currently us...

compiling 64 bit linux kernel with gcc

While trying to compile a 64 bit linux kernel using gcc, I see the following error : kernel/bounds.c:1: error: code model ‘kernel’ not supported in the 32 bit mode kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in This is what gcc -v reports : Using built-in specs. Target: i586-redhat-linux Configured with: ../conf...

"Minus" operation on two files using Linux commands

I have 4 files sorted alphabetically, A, B, C, and D. These files contain a single string on each line. Essentially, what needs to happen is that anything in B gets deleted from A. The result of that will then be stripped of anything in C. And similarly, the result of that will be stripped of D. Is there a way to this using Linux comman...

display message on command "cd production"

I wish to accomplish the following: If I execute "cd production" on bash prompt, I should go into the directory and a message should be displayed "You are in production", so that the user gets warned. ...

Getting Java JDK to compile on ubuntu

I'm trying to start working with Java, but so far haven't been able to get it on my machine properly. I'd really like to be able to compile from command line. After following the instructions here with no errors I can't compile with javac. Here's what I have so far: When I enter: $ java -version I get: java version "1.6.0_16" Java...

Linux IDE with proper support for STL debugging

I am looking for a Linux IDE with support for STL debugging. the problem is that with Eclipse CDT, if I inspect the vector after the push_back: int main() { vector<string> v; v.push_back("blah"); return 0; } I get something hostile like {<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, st...

Porting WISA stack to Linux + Mono

We're currently running a Windows/IIS/MSSQL/ASP.Net3.5 stack for internal development and it's great, mostly for the developers who are enjoying the tight integration with Visual Studio etc. Problem is, we want to scale and don't want to be tied to a Microsoft OS. These days Linux+Mono is looking very interesting, but I don't know of ma...

Buffering filtering pipe on Linux

I commonly build up long, multi-command pipes on Linux/Unix to process large text files (sed | grep | sort | less , etc.). I would like to be able to use a pipeline element that would buffer everything received via stdin until a key phrase/string is detected (e.g. "SUCCESS"), at which point it releases everything received up to that poi...

kernel source code location in linux

Hi all.. i am working in Fedora OS.. actually i am working in windows and running fedora through VMware (as u all know, VMware is used to load the OS image, thus running a different OS being in one OS).. by default the kernel source tree should be in usr/src/ directory.. instead i could find only an empty directory called kernels.. the a...

Ruby daemon not working

I need to run a standalone ruby script as Unix (linux) daemon. After running that daemon I need to run another Ruby method with it. I installed the ruby-daemon gem on my machine by using the gem install daemon. I did the test daemon program. My test.rb file is : module Test def test_method @s =" ITS WORKING !" f...

How can I find the calling routine for a symbol in case of a linker error "undefined reference"?

Hello, I have a problem linking an application for an embedded target. I'm developing on a windows box using Min-GW for an ARM9 target that runs under Linux. Actually I'm switching from static linking to dynamic linking with .so-libraries to save memory space. I get the error message libT3Printer.so: undefined reference to `__ASSERT' ...

Adding custom struct types to strace

I'm trying to reverse-engineer a user-mode shared object that interacts with a kernel driver via ioctl syscalls. I have a header file with definitions for the kernel driver's ioctl interface (i.e. #defines for ioctl command numbers, and struct definitions for the various data sent to ioctl). I see that strace has the ability to de-refe...

Linux sftp Renaming during file transfer

Hi, I just want to confirm something I noticed when downloading a file through sftp on linux. I renamed the file (mv file.tar.gz newfile.tar.gz) during the transfer (usually would wait to transfer was complete) and the download kept going. Im I right to be amazed? How did this happen, and surely you cant do this on windows. --Mark ...

How do I throttle my site's API users?

The legitimate users of my site occasionally hammer the server with API requests that cause undesirable results. I want to institute a limit of no more than say one API call every 5 seconds or n calls per minute (haven't figured out the exact limit yet). I could obviously log every API call in a DB and do the calculation on every request...

Counting machine instructions of a process using PTRACE_SINGLESTEP

Hi, on a Linux machine, I am using ptrace with the PTRACE_SINGLESTEP parameter to count the number of machine instructions of a program. I followed this article: http://www.ncsu.edu/it/mirror/ldp/LDP/LGNET/81/sandeep.html. However, the result seems odd to me. For a very simple program, over 95000 machine instructions are counted. The t...

C++: Safe to use longjmp and setjmp?

Hi, Is it safe to use longjmp and setjmp in C++ on linux/gcc with regards to the following? Exception handling (I'm not implementing exception handling using longjmp/setjmp. I want to know what side effects longjmp/setjmp will have on standard exception handling) *this pointer Signals Smart pointers (boost's shared and intrusive point...