ubuntu

Phusion Passenger on Ubuntu 8.10: how to setup gem directory and users?

I am actually running phusion passenger on ubuntu for a while. today i updated Ruby Enterprise Edition to the latest version - now it seems i have to reinstall all the gems that were installed on the system. so here are my questions what is the best way to setup phusion passenger and ruby enterprise edition to easily maintain gems afte...

Rails - Creating temp files in a portable way

My rails application runs on a Ubuntu server machine. I need to create temporary files in order to "feed" them to a second, independent app (I'll be using rake tasks for this, in case this information is needed) My question is: what is the best way of creating temporary fields on a rails application? Since I'm in ubuntu, I could creat...

Where's the font setting for folders in the Package Explorer?

I'm talking about Eclipse (3.5 = Galileo), running under Kubuntu 9.10 and I have the Subversive plugin. I've been moved from Gnome-Ubuntu to Kubuntu, and one side effect was that some fonts are now just too tiny to read. File names in the explorer have a decent size, but folders are shown in a too-small font, and after having adjusted...

how to add session start-up program

Edited: How do I programmatically add programs to launch on user session startup on Ubuntu? I know how to perform this operation through Nautilus but I'd like to know how do this through a script. ...

What's the best way to modify/compile source code of open source projects?

Like PHP and ubuntu. Is there a convenient way to see the modification alive? ...

how to install open-library on ubuntu?

i want to install openlibrary in my ubuntu system and i followed the instruction from the below link http://openlibrary.org/dev/docs/setup $ ./scripts/openlibrary-server openlibrary.yml while i am using the above command it shows infogami module not found error message ...

How to set up Django development environment without installing?

Hi, I'm a student and the lab staff has set up permissions that won't students install software on the machines (or to our profiles). I'm curious how I can develop Django application in a contained environment. I checked out the Django trunk to my Ubuntu home directory and added the bin path to my .bashrc. But when I try to use django-a...

Ogre3d restoreConfig causes app to hang on Ubuntu

Building an app for Ubuntu using Ogre3D, CEGUI, OIS which is now all compiling and running as expected. Having got the basic app running I decided to now build a custom config file which I can store both graphics settings (ie. resolution, fullscreen, etc) as well as other configurable settings I will need in the app down the track. As a...

Eclipse on Ubuntu: How do I access projects remotely over mounted SFTP connections?

Ubuntu allows you to create and "bookmark" connections to other servers via either Public FTP or SSH. I want to work with projects on a remote server this way. However when I attempt to create a project, I cannot browse to the bookmarked connection; it does not show up in the explorer window. Truth is, I know I've done this in the past,...

How to make a shortcut/script that checks and toggles screen orientation in Ubuntu 9.10

I have a screen with pivot functionality, and I'd very much like just one shortcut/launcher on my desktop that toggles between two orientations. In my case that would be the two commands: xrandr -o left xrandr -o normal How can I make this a shortcut that checks which orientation is used and make it take appropriate action? I use nvi...

R: apt-get install r-cran-foo vs. install.packages("foo")

When installing R packages (say mcmcpack in this example) under Ubuntu I have the choice between the following two methods of installation: # Let the distribution's packaging system take care of installation/upgrades apt-get install r-cran-mcmcpack # Let R take care of installation/upgrades install.packages("mcmcpack") Questions: I...

where are the opengl libraries get stored on ubuntu : i need this to mention in my make file

where are the opengl libraries get stored on ubuntu9.10 : i need this to mention in my make file and what are all the link files i need to mention ...

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., a...

On LINUX O.S., how to get the name of files that has been dropped onto shell script to boot JAR with the name of file as a argument to JAR

I have a shell script file to run jar on Linux O.S which contains #!/bin/sh #MyApplication MyApplication_home='/Desktop/MyApplication' chkpath="$MyApplication_home/jre6/bin/java" if [ -e $chkpath ] then export PATH=$MyApplication_home/jre6/bin:${PATH} export CLASSPATH=$MyApplication_home/MyJar.jar:${CLASSPATH} java -Xmx512M -jar MyJar.j...

Python code to create a password encrypted zip file?

What is the Python code to create a password encrypted zip file? I'm fine with using some apt-get'able utilities using system on the command line. ...

Error while compiling GTK+ app with g_rename func

I'm trying to use g_rename and compiler gives me strange message "error: called object ‘rename’ is not a function" for line in code "if (g_rename(old_file_name, full_new_file_name) == -1)". I don't understand why. I'm compiling with command "cc -Wall -g pkg-config --cflags --libs gtk+-2.0 app.c -o app". Gcc version = gcc (Ubuntu 4.4....

Mac vs. Ubuntu for C/C++ development?

I'm looking to buy a personal machine for development and I'm deciding whether to go with a Mac or a PC (on which I'd run Ubuntu). My plans for the next year or so involve getting more heavily into C/C++ and networking than I currently am. Are there any differences I should be aware of between the two OSes as far as C/C++ system librar...

adding a start up via command line (Ubuntu)

Hey, I'm trying to have a graphical program and I want it to start after I log in. How do I do so? I know there's a GUI program, but I want to use a command line here. GUI tool: http://www.thegeekstuff.com/2009/07/ubuntu-open-applications-automatically-during-system-startup/ now, there is update-rc.d, however, it seems to run before I ...

Utilize ubuntu workspace for eclipse

I find the workspace division of Ubuntu very helpful. I can place several maximized windows on different workspaces and use keyboard to quickly switch between them. In eclipse, there's sometime I want to have quick access to two different documents. Eclipse have a feature that allow me to dock two document in parallel, but it has a limi...

Setting up a Proxy to record Firefox requests

I'm using Ruby+Watir to request pages through Firefox. I would like to record the headers and content of every http request made through the browser. Would it be possible to configure a proxy solution to store this information, either in a file or pipe it straight into an application? Could I use something such as squid or nginx to rec...