ubuntu

pygame not found

Hello. I am running in ubuntu and I can code in python, without problem. I have tried to install pygame and to do make it so, I did: sudo apt-get instal python-pygame When I go into the python IDLE and write: import pygame I get: Traceback (most recent call last): File "", line 1, in ImportError: No module name...

Error building 'lxml.etree' extension

I'm trying to install lxml, on an Ubuntu server running Python 2.6 (in a virtualenv - the system Python is 2.5). I've checked out via svn and as a result I've also install Cython, as per the instructions. However, I get the following error when running python setup.py build: Building lxml version 2.3.alpha1-76211. Building with Cython...

Convert vm to native/dual-boot

Long shot: I run an ubuntu 10.4 machine under VMware, Windows 7 host. I use it more and more as my primary machine, and wish now that I had installed it as a dual boot system, since the sluggishness of the vm is a continual irritation. So -- is it possible somehow to convert the ubuntu system to run natively? If not, are there any to...

C - System(""); Execute one at a time

Hello!, I've got a system("sudo apt-get update | sudo apt-get -y install apache2 zip unzip"); etc, but its doing all the same commands at once?, how do i make it so it does one after the other is finished?, also some may ask the user to enter information from apt-get, how do i allow this to show? ...

profile java memory use on linux

i have a socket server written in java, and i believe there is a memory leak. The i could not find anything in Netbeans' profiler, so i want to test it when it in deployed on my ubuntu server. How do i do this? What is an easy to install and use java profiler for ubuntu? ...

Install Panda3d to run with python

Hello. I am running Ubuntu 10.04, I have python installed and running fine. When I installed pand3d from the deb package from the site and tried to run an sample. Like it is describe in this page: http://www.panda3d.org/manual/index.php/Installing_Panda3D_in_Linux I got the error: Traceback (most recent call last): File "T...

Symfony - name based virtual servers on localhost - is this possible?

I am rapidly coming to the conclusion that this is not feasible, although for some reason, people - most likely who have not implemented the 'advice' they give, seem to think this is possible. The scenario is quite straightforward. I am developing symfony websites on my local dev machine, running Ubuntu 10.0.4 LTS. I want to be able to ...

Installing Heroku on Ubuntu Lucid Lynx is broken

I am trying to get a Ruby on Rails app hosted free somewhere, and Heroku is looking like my last resource. It is supposed to work on Linux, and the gem installs with no errors, but whenever I run any Heroku command it spits out several errors, all connected, and talking about a failed 'require.' I looked it up in the code, and it says: ...

tomcat context defined in server.xml is not loading

i have a web app deployed on path /var/lib/tomcat6/webapps/abc/ in server.xml on path /etc/tomcat/server.xml i have added following lines. <Context docBase="/var/lib/tomcat6/webapps/abc/" path="/" reloadable="true"> <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="10000" name=...

using JNI libraries in ubuntu

Im am trying to use a JNI library but unable to locate where the .so files are on my ubuntu machine? The reason I need to find it is because I suspect Im using an older version and like to replace it with a newer one. Its more of an ubuntu question rather than jni. Any help is appreciated. ...

Should I learn Python or Java to develop GUI apps for Ubuntu?

I'm a long-time Mac user making the switch to Ubuntu. I have programming experience in Objective-C and REALbasic. I want to develop native looking applications that will look pretty in the Gnome environment that Ubuntu uses. Three questions: What would fit better for me - Java or Python (I'm happy to learn something else if it is a b...

Kdbg doesn't allow inspection of contents of std::string or std::vector

I'm using Kdbg as my debugging tool for routine purposes, but it doesn't appear to have any way to inspect the contents of a std::string or std::vector. This is a bit of a drawback as use of the standard library is definitely the Approved Way. Does anyone know how to make it do this, or does anyone know of a GUI debugger that does? (Kdb...

No Java for Ubuntu?

I just installed Ubuntu 10.4 in VMWare Workstation. When I try to install java, I couldn't find the package: xxx@ubuntu:~$sudo apt-get install sun-java6-jre Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-jre is not available, but is referred to by another package. This may mea...

Anjuta IDE - Simple Python Question

I'm new to Linux, Python and the Anjuta IDE. I have created a new file called hello.py. This is the contents of that file: #!/usr/bin/env python print "Hello World!" All I want to do is run this in the terminal. I go to Run > Execute but I get the following error message: Program 'home/joe/Programming/Python//hello.py' does not h...

ORA-27101: shared memory realm does not exist

i am facing this error when i start the oracle. I checked Oracle Home and SID. everything is set properly. ORA-27101: shared memory realm does not exist please help me to find out the solution. Thanks in advance ...

How do i read single character input from keyboard using nasm (assembly) under ubuntu?

Hi, I'm using nasm under ubuntu. By the way i need to get single input character from user's keyboard (like when a program ask you for y/n ?) so as key pressed and without pressing enter i need to read the entered character. I googled it a lot but all what i found was somehow related to this line (int 21h) which result in "Segmentation F...

Ubuntu remote backup software like Windows Home Server

I'm running Ubuntu 10.04 Desktop on a headless machine to act as a server and a laptop dual-booting W7 and Ubuntu 10.04. I have a network setup so I can vnc, ssh from the laptop to the server. My question is what is some good software to run on the server that can perform scheduled full backups of clients within the network. It should b...

Logging Tomcat6 on Ubuntu

Im using ubuntu and tomcat6 for my server. When im calling a servlet or a jsp page, the "logger" (System.out.println()) logs into the syslog of the server /var/log/syslog. How can i change this, that the server will write in a own log file like the catalina.out? The problem is that there are no line breaks in my syslog (i used \n in th...

Compile/run assembler in linux?

I'm fairly new to linux(ubuntu 10.04) and a total novice to assembler. I was following some tutorials and I couldn't find anything specific to linux. So, my question is, what is a good package to compile/run assembler and what are the command line commands to compile/run for that package? ...

apt-get update, dist-upgrade, autoremove, autoclean in a single sudo command

My usual command for keeping the machine up to date is rather verbose, and it can result in more than one password prompt if any command takes a long time: sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean I'd like to shorten this down to one command (preferably without using a globa...