linux

SVN checkout fails saying URL is malformed

I am trying to checkout files using subversion on RedHat Linux but the checkout fails saying URL (http/https) is malformed or the scheme or host or path is missing. I am not sure now what more configuration/setup is needed? I am able to ping the http(s) site properly. Command: svn checkout --username kdeshpa https://teamforge.wal-mart...

How to log/pinpoint which PHP script uses a lot of memory? Optimization Question

Hello, I wrote a small app that turns out to be using a lot of memory when used by a few users simultaniously. This is leading to some Fatal PHP errors and some mySQL (errcode 12) errors. My Plesk QoS page shows frequent 'kmemsize' black zone errors. My question is: What's the best method to monitor PHP script runs to pin-point which ...

Matching keys from one file to key-value pairs in another file

I have two files, A is a subset of B. Both A and B contains strings (key-value pairs) on each line. Whereas A contains the key, B has the actual key-value pair. How do I create a file which consists of the key-value pairs whose keys come from file A using Linux commands? Note: The key-value pairs are tab delimited where the key is the...

Programming Environment for a Motorola 68000 in Linux

Greetings all, I am taking a Structure and Application of Microcomputers course this semester and we're programming with the Motorola 68000 series CPU/board. The course syllabus suggests running something like Easy68K or Teesside Motorola 68000 Assembler/Emulator at home to test our programs. I told my prof I run x64 Linux and asked wh...

How do I run all my PHPUnit tests?

I have script called Script.php and tests for it in Tests/Script.php, but when I run phpunit Tests it does not execute any tests in my test file. How do I run all my tests with phpunit? PHPUnit 3.3.17, PHP 5.2.6-3ubuntu4.2, latest Ubuntu Output: $ phpunit Tests PHPUnit 3.3.17 by Sebastian Bergmann. Time: 0 seconds OK (0 tests, 0 asser...

What tools You're using to develop Windows mobile apps on Linux ?

What tools You're using ? I don't mean the text editor, but tools, libraries, debuggers, emulators and so on... ...

How to create a rounded window in Ubuntu?

How to create a rounded window in Ubuntu? Lang: C++ For example like the tipper plugin from Miranda. ...

How do I configure the Linux kernel within Buildroot?

I'm trying to build a rootfs for an x86 target, which is all simple enough. However I can't figure out how I configure the kernel that buildroot produces. The first run through came up with menuconfig, but it's cached the .config since then and I can't see where to change it. ~650MB of kernel modules don't do good things to an embedde...

How to detect vpnc disconnection ?

Hi, What is the easiest way to detect that a vpnc connection on Linux/Ubuntu has disconnected ? Manually, I think the way to detect is to check whether the interface (tun0) appears in /sbin/ifconfig output. Is there a better way to find out immediately, so that a script can be run to restart the connection ? ...

How to find which program to use for a given mime type in linux?

i need to open a viewer for a given mime type. how to do that in linux. i suppose the method would be specific to desktop environment in use. i want to do this through a C program. ...

Socket server ip/port problem

I'm trying to set up a socket server on a ubuntu machine. I've been setting up the same server-script on my own machine where it works perfectly. In my router i forwarded port 10007 to the right machine and bind the ip to my local ip (192.168...:10007). Now i need to set it up on a dedicated server though and that is where the problems ...

vmlinux ELF find offsets for members of a given struct

In the Linux kernel, I need to find the offsets of member variables of a struct that is used. For example, for the init_task which is of type task_struct, I would like the offsets of its pid and tasks. I only have the vmlinux present for this. I can refer to the open source kernel code, but it may differ from the build I have. Is it p...

Direct access to linux framebuffer - copyarea.

I want to move very quickly a rectangle over a framebuffer in an embedded linux application. I have found that the function cfb_copyarea may be useful. But I cannot find any ioctl over the /dev/fb device to call the function. Or can this function be called directly? ...

Is there a Pattern Matching Utility like GREP in Windows?

Is there a similar utility to grep available from the Windows Command Prompt, or there is third party tool for it? ...

Linux stand alone executable generation

Hi, I am a programmer with strong background in Java, Ruby, Python and other high level/dynamic languages. I am facing a problem where I need to code a Linux executable (for 64 and possibly 32-bit OSes too) and none of this languages appear to suit this task, because I end up having to distribute a runtime as well. I really can't write ...

Building a Win32 DLL from a Linux library source

Hi all, I'm trying to build a Win32 DLL from an audio-DSP related Linux library (http://breakfastquay.com/rubberband/). There are makefiles and config scripts for Linux, but no help for Windows. The author provides a Win32 binary of a sample app using the library, and I see a number of "#ifdef MSVC" and "#ifdef WIN32" scattered around, ...

Bare metal cross compilers input...

Hi, What are the input limitations of a bare metal cross compiler...as in does it not compile programs with pointers or mallocs......or anything that would require more than the underlying hardware....also how can 1 find these limitations.. I also wanted to ask...I built a cross compiler for target mips..i need to create a mips executa...

Multiple ALSA sound stream in Embedded Linux ?

Hi Friends, Currently In my embedded linux I can not open multiple ALSA sound stream. What I need is to have different sound playing at a time. Like one application is playing video and other playing some wav file at a same time. Thanks, Sunny. ...

Is there an open source alternative to the stackoverflow model?

Hello, I'm interesting in creating a web site similar to stackoverflow. As I'm usually interested in OSS I'd like to know if someone knows about the existence of other Q&A sites whose sources are licensed under an open-source license (not interested which license as long as I can use it - GPL, Apache, BSD, MIT ...). Thank you, Iulian ...

which linux to use for embedded-linux-qt 4 development ?

Hi Friends, I want to start development using qt-embedded on my embedded device project. Can you tell me which linux should I use on my computer for development. Well, It should have VMWARE-tools support ( Fedora Core 11 does not have it ). Thanks, Sunny. ...