In python 3 you need to have brackets around what you are printing because print is now a function.
Use:
print("hello world")
instead.
Type: Posts; User: dv3500ea; Keyword(s):
In python 3 you need to have brackets around what you are printing because print is now a function.
Use:
print("hello world")
instead.
I have this problem. According to the Debian Python Policy we are supposed to put python modules that work across versions in /usr/share/pyshared but python doesn't seem to have this in its default...
Try gambas http://bit.ly/software-small.
A few members of the Ubuntu Community got together to write a message of support to the Japanese Ubuntu Loco following the earthquake and tsunami.
It is hosted at http://ourfriendsinjapan.com.
...
It's great that you want to help :)
There is no 'chart' of progress as such, but we track bugs and features on sourceforge.
Make sure you check out the irc channel. Feel free to post any...
New packages for Lucid, Maverick and Natty are building in ppa:lavida-team/ppa :)
A HP DV3500EA (I was incredibly unimaginative when I joined the forums, hence the name).
Never mind. It was because I had a newer (beta) version of Blender installed. Reverting to the version from the official repositories fixed this.
I'm having problems running the current trunk - it opens a few Blender windows then exits. Does anyone else have this problem? I'm using Ubuntu 10.10 and python 2.6.6.
$ pwd
/tmp/la-vida
$...
I would just use the event system supplied by the 'gobject' module. Simply subclass your object classes from gobject.GObject and you have a simple event system.
eg.
import gobject
...
Shutter is a screenshot app that can do all of this. You can install it from the 'shutter' package.
From what I remember, once it has 'compiled' you get a link to a page with download links for Linux, Mac and Windows. For each, you can download a 'bundled' version which is an installer that...
You should have a look at Appcelerator Titanium. It is like Adobe Air in that it is cross platform bundled apps but it uses less resources, is open source and is more flexible. You create...
For a web automation script like this, I would suggest using the *mechanize* modules for Ruby, Perl or Python. This is available from the software repositories for all 3 of these languages - just...
This is already available as a C library called libquvi. It is available from the repositories but is currently broken for Youtube (but fixed in newer versions).
You are calling the new method of the Rating class. This creates a new object of class Rating and calls the initialize method. The
:rating => params[:rating] is passed as an argument to the...
We don't have to pay for insanely expensive software licence fees so we have more to spare. Also, we have a vested interest in showing that Linux is a financially viable gaming platform so that more...
I can confirm the PPA is not working for 10.10. It is currently only packaged for 10.04. I'll try to fix that ASAP.
This is not just a problem in javascript - it is a problem with floating point arithmetic in general. You will get the same problem in other languages.
Ruby. Which I consider the first best option.
Why do you dislike python?
1) No
2) There is no standard library but the environment in which javascript is embedded may have a standard library for that particular environment. Seed, for example, has an imports object...
Javascript is not powerless, and comparing the 'power' of turing complete programming languages is just silly. Javascript is being widely adopted, not just in browsers but on the desktop, on servers...
This code is pygtk, but it should be similar for gtk for any language:
button = gtk.Button()
container = gtk.HBox()
button.add(container)
container.show()
image = gtk.Image()...
Ruby is a really good programming language (my favourite) because it is very expressive and has strong support for object oriented and functional and meta programming.
I have heard a lot of praise...