ubuntu-9.04

Using Boost on ubuntu

陌路散爱 提交于 2019-12-30 00:58:14
问题 I've heard a lot of good comments about Boost in the past and thought I would give it a try. So I downloaded all the required packages from the package manager in Ubuntu 9.04. Now I'm having trouble finding out how to actually use the darn libraries. Does anyone know of a good tutorial on Boost that goes all the way from Hello World to Advanced Topics, and also covers how to compile programs using g++ on ubuntu? 回答1: Agreed; the boost website has good tutorials for the most part, broken down

how can i associate/use PDT with eclipse in ubuntu?terr

偶尔善良 提交于 2019-12-23 10:13:04
问题 I want to use PDT to debug PHP with eclipse. I am using ubuntu 9.04. Can any one help me? please give details if possible. 回答1: Considering this thread and this one: You have to ensure that xdebug is definitely loaded on the version of php you are using. To do this, use the launch configuration you are using to try to run your script in debug mode and change it to run a script with phpinfo.php in it. Also a Debug log would be good. Add: xdebug.remote_autostart=On xdebug.remote_log="c:\temp

google app engine (python): ImportError no module named django

跟風遠走 提交于 2019-12-23 00:27:29
问题 So I'm trying to use the django 1.1 template engine with the google app engine web app framework, from here. This is on Ubuntu Jaunty, I've made sure that the PYTHONPATH contains the location of Django-1.1.1 yet I'm getting this 'ImportError: No module named django' error when it tries to execute the use_library() line below. Again, could somebody help me? I'm stumped. import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from google.appengine.dist import use_library use_library('django

ubuntu: sem_timedwait not waking (C)

佐手、 提交于 2019-12-20 15:25:44
问题 I have 3 processes which need to be synchronized. Process one does something then wakes process two and sleeps, which does something then wakes process three and sleeps, which does something and wakes process one and sleeps. The whole loop is timed to run around 25hz (caused by an external sync into process one before it triggers process two in my "real" application). I use sem_post to trigger (wake) each process, and sem_timedwait() to wait for the trigger. This all works successfully for

How to use external makefile in Eclipse

可紊 提交于 2019-12-18 12:52:14
问题 I have a source code of an OpenSource project which I get from SVN. I was able to run autogen --> configure --> and make successfully (through the terminal). But I want to build the same project with Eclipse, and I can't port manually those source files to eclipse though. So, How can I set Eclipse to use external make files ? can anyone please help me ? Thanks. 回答1: Ok, I got it, It was straightforward. Just go to project properties --> C/C++ Build --> Make file generation --> and untick

permission denied running my own program (ubuntu)

試著忘記壹切 提交于 2019-12-10 03:32:00
问题 Not exactly programming related... I've built the program, some basic opengl, then run it and sh: /blabla permission denied. How can I make that dissaper? the program just makes a rotating square and I have ubuntu 9.4 just found out that even int main(){} doesn't work 回答1: I had the same problem and it appeared that my partition was mounted as noexec cat /etc/mtab When I configured options in /etc/fstab I wrote exec,user but it appears that "user" option by default sets up "noexec". When I

How to install Rails 2.3.2 and 2.3.4 simultaneously on Ubuntu 9.04?

送分小仙女□ 提交于 2019-12-09 18:59:01
问题 I need to install Rails 2.3.2 and Rails 2.3.4 simultaneously on my Ubuntu 9.04 server. How do I do this? When I run: sudo gem install rails ...it installs version 2.3.4. Is there a single command I can use to also install 2.3.2 parallel to the default (latest) version? Thanks! 回答1: use the -v option to gem: sudo gem install rails -v=2.3.2 you'll have to do a separate install for 2.3.4 though 回答2: once installed you can specify which version you want to use for a specific rail app by editing

Feasibility of C# development with Mono

浪子不回头ぞ 提交于 2019-12-09 05:19:30
问题 Recently, I came across Mono and MonoDevelop packages in Ubuntu linux. They claim to have a .NET runtime in accordance with CLI. Before installing the packages myself, I would like to know the following: How powerful is Mono? Can I develop GUI application for linux like developing WinForm applications for Windows. Is MonoDevelop IDE compatible with Visual Studio IDE. Can I import VS 2008 solutions to MonoDevelop and work? Does it support .NET 2.0 and above? EDIT: Adding one more doubt Is

google app engine (python): ImportError no module named django

荒凉一梦 提交于 2019-12-06 13:12:59
So I'm trying to use the django 1.1 template engine with the google app engine web app framework, from here . This is on Ubuntu Jaunty, I've made sure that the PYTHONPATH contains the location of Django-1.1.1 yet I'm getting this 'ImportError: No module named django' error when it tries to execute the use_library() line below. Again, could somebody help me? I'm stumped. import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from google.appengine.dist import use_library use_library('django', '1.1') Came up with the following solution: Get django 1.1 and put it under your project root. Add

How to get F# working with Mono?

北城以北 提交于 2019-12-04 07:37:00
问题 I can't seem to find a compiler/plugin for mono. Does one exist? 回答1: Go here and download fsharp.zip Unzip it and open the created folder Open the terminal and run ./install-mono.sh as root (On some systems, it is necessary to convert the newline characters in that script from CRLF to LF) This will give you the basic functionality which means you will be able to run "mono fsi.exe" and compiled F# apps as "mono myApp.exe". Usefull tips: It makes sense to create scripts for the compiler and F#