ubuntu

New to SDL OpenGL on Linux, whats wrong with this?

I have written some code to experiment with opengl programming on Ubuntu, its been a little while but I used to have a reasonable understanding of C. Since c++ i'm told is the language of choice for games programming I am trying to develop with it. This is my first real attempt at opengl with sdl and I have gotten to this far, it compil...

To get no warning in running PHP in Ubuntu's terminal

I run php test_code.php I get PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mcrypt.so'...

has anyone tried installing ruby & rubygems from source on ubuntu (preferably unbuntu 9)?

The Ruby on Rails website recommends installing Ruby from source under Linux. I encountered a number of C library problems building ruby from source on a clean install of Unbuntu 9. All the instructions I found on the net about installing ruby on ubuntu have involved using the prepackaged (.deb-based) ruby. Clearly this isn't what the r...

Is there a way I can find out why a module fails to load? some kind of trace/verbose mode?

The ruby extensions in the "ext" directory of my ubuntu ruby interpreter i.e. zlib, etc, io, ... fail to load. I mean they're recognized as extensions - I don't get a "no such file" error, yet they fail to load (i.e. return false). Running this: puts require 'zlib' prints "false" Is there a way of tracking down why a module fails...

How to handle multiple keypresses at once with SDL?

Hi, been getting myself familiar with OpenGL programming using SDL on Ubuntu using c++. After some looking around and experimenting I am starting to understand. I need advice on keyboard event handling with SDL. I have a 1st person camera, and can walk fwd, back, strafe left and right and use the mouse to look around which is great. Her...

Installing Libboost 1.38 on Ubuntu 8.10

Is there a way to Install Libboost 1.38 on Ubuntu 8.10? The highest version in my repositories is 1.35. It has been suggested that there may be some repositories I could add to accomplish this, but my searches haven't yielded anything. Do I have to resort to source code? If so, what is the best way to accomplish this? Thanks ...

To get colors to Less in Ubuntu's Zsh

How can you get similar highlightings to Zsh's Less than Bash's Less in Ubuntu? I switched from OS X to Ubuntu. My Less do not work as expected in Zsh. Manuals in my Less are green and black with or without the following code. # comment these out in Ubuntu export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking exp...

Apt-Pinning: Installing libboost from Jaunty repository into Intrepid Ubuntu

I'm trying to install libboost 1.38 in Ubuntu 8.10 using a Ubuntu 9.04 repository since it isn't avalable in any of the 8.10 repositories. I'm trying to use an Apt-pinning by adding the following lines of code: /etc/apt/sources.list: deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe /etc/apt/preferences (Which I had to create):...

How to search and replace text in a file from a shell script?

I'm trying to write a shell script that does a search and replace inside a configuration file upon start-up. The string we're trying to replace is: include /etc/nginx/https.include; and we want to replace it with a commented version: #include /etc/nginx/https.include; The file that contains the string that we want to replace...

Connecting to Gmail through IMAP with PHP - SSL context failed

I'm trying to connect to Gmail through IMAP with PHP running in Apache. This is on an Ubuntu 9.04 system. I've got some sort of PHP configuration issue that is keeping this from working. First, here's what I did to setup IMAP for PHP: sudo apt-get install libc-client2007b libc-client2007b-dev sudo apt-get install php5-imap sudo /etc/...

To use Xdebug2's profiling data in debugging PHP by Ubuntu

My question is based on this article. How can you make the profiling data about a PHP code by Xdubug2 and then put it to an app like KCacheGrind? I have used successfully Xdebug in my Ubuntu, since it highlights my error messages in the browser. However, I have not find any terminal tool like xdebug. I would like to have a visual view...

Swing on Ubuntu font height

Running a Java Swing program on Ubuntu Linux, I'm getting an odd bug where the font height is too large for the actual font size, that is, every piece of text (in menus, buttons, text areas etc.) has excess blank space underneath the text itself. This does not depend on which font I select. It also does not depend on the font size chose...

compile shell script so can use suid

I need to suid a script so that it can be executed by users with less permissions. Since you can't suid a script and can only suid an executable I wanted to use the generic script compiler "shc" to create an executable and then set that executable's suid bit. Only problem is that on ubuntu jaunty I can't find shc or when I do apt-get i...

To understand the same inode numbers for different objects in Ubuntu

Why does /cdrom has the same inode -number than /sys/devices/platform/power in Ubuntu? The following have the same inode number in my Ubuntu ./media/BACKUP_1/MISC ./cdrom ./sys/devices/platform/power I get them by running the following at root find . -inum 12 2> /dev/null Reply to Leffler's answer I run stat cdrom I get F...

Which Ubuntu images for AWS: Hammond's or Canonical's?

I've used AWS and various forms of Linux over the past few years, but am wondering if anyone has any experience using Canonical's AWS Ubuntu images and can compare them to Hammond's. Hammond's images are very well put together, with a deep understanding of AWS optimizations and such, but Canonical has more intimate knowledge of their di...

Python sendto() not working on 3.1 (works on 2.6)

Hi! For some reason, the following seems to work perfectly on my ubuntu machine running python 2.6 and returns an error on my windows xp box running python 3.1 from socket import socket, AF_INET, SOCK_DGRAM data = 'UDP Test Data' port = 12345 hostname = '192.168.0.1' udp = socket(AF_INET,SOCK_DGRAM) udp.sendto(data, (hostname, port)) ...

USB Ubuntu Hardware Compatibility

Hi All, I'm writing software that needs to run on customer laptops in a fully controlled environment and I'm considering a system based on a bootable OS run from an USB stick. The keyboard, mouse, wi-fi, soundcard and screen need to work out-of-the-box with minimal configuration but I don't care about secondary functions such as powersa...

Qt does not create output files in debug/release folders in Linux

When I build Qt applications on Ubuntu it puts the output files in the main solution folder as opposed to release/debug folders as it does on Windows. This is problematic because sometimes the output files need to be run as part of the build process (for example to run unit tests). I have an idea this has something to do with the qmake...

Monitor Postfix Server and Ruby response on Ubuntu

I am building a ruby application that grabs emails sent to a server and logs them to a database. Right now I don't have is a way to fully test the (Email -> Ruby -> Database) stack for downtime. I am using services that test the server the ruby is running on for downtime, and i'm using monit to make sure that the ruby daemon doesn't go d...

setting option in config file using SafeConfigParser

I'm trying to set an option (xdebug.profiler_enable) in my php.ini file using python's ConfigParser object. here is the code: section in php.ini file im trying to modify [xdebug] ;XDEBUG SETTINGS ;turn on the profiler? xdebug.profiler_enable=0 xdebug.profiler_append=1 xdebug.profiler_enable_trigger=0 xdebug.trace_output_name="%R" xd...