520 Posted Topics

Member Avatar for lewashby

I'M reading "Head First C#" In this book I was told that when you want to create a float that you need to add an "F" to the end. float myFloat = 14.6F; But the very first thing you type is "float", isn't that enough?

Member Avatar for ddanbe
1
108
Member Avatar for lewashby

I installed wine on my Ubuntu 9.10 and tried to run the 1998 game Thief. Everything started but the sound started to deteriorate winthin seconds until it was completely gone. Does anyone have any ideas? Also, I noticed in the Wine menu that you can choose the version of Windows …

0
68
Member Avatar for lewashby

I recently learned about a good media player for Ubuntu called Songbird. I downloaded the .tar.gz file from [url]http://www.getsongbird.com/[/url], and unloaded it to my desktop. I read from one of the post on the site that I needed to move it to my home folder and just click on the …

Member Avatar for JasonHippy
0
134
Member Avatar for lewashby

I have a desktop with no monitor and a lap top. I've purchased a cable to connect from the back of my desktop to my laptop so I could have access to my desktop, but I don't know how to make my laptop display the contents there in. Thanks for …

Member Avatar for caperjack
0
63
Member Avatar for lewashby

I have a desktop with no monitor and a lap top. I've purchased a cable to connect from the back of my desktop to my laptop so I could have access to my desktop, but I don't know how to make my laptop display the contents there in. Thanks for …

Member Avatar for techsheaven
0
65
Member Avatar for lewashby

I have a little programming experience and I'M just getting into Linux. I was wondering, how big of a deal would it be to convert some of your old classics like Half-Life and Tomb Raider from Windows to Linux? Sorry to ask such a stupid question on such a technical …

Member Avatar for khakilang
0
93
Member Avatar for lewashby

I'M wanting to get a new computer, not a typical computer from Wal-Mart or BestBuy. I want to run Linux, Windows 7, and Windows 98. Since this will be a desktop I can add new hard drives as I see fit, but here's my question. What's the best way to …

Member Avatar for caperjack
0
167
Member Avatar for lewashby

I'M trying to edit my back.bashrc file with the following aliases, but it want let me save it, only Save As. Also, I don't really know where in the file I could place these lines. [B]alias rm-'rm -i' alias cp='cp -i' alias mv=mv -i'[/B] Thanks

Member Avatar for khess
0
82
Member Avatar for lewashby

I'M currently running Vista but am trying to move at least 90% of my computer usage to Linux so I've download Ubuntu. So I burned the ISO to a CD and now I need to know how to install it but give it a separate bigger partition than my Windows. …

Member Avatar for petraarkanian
0
110
Member Avatar for lewashby

[url]http://ironpython.codeplex.com/releases/view/12482[/url] I'M running Ubuntu 9.10. On the website above, what which download should I use? I don't see a debian so I'M assuming I need to get the bin. If that's the case, I have no idea how to install a bin. Thanks for any and all replies. Wait, it's …

Member Avatar for JasonHippy
0
109
Member Avatar for lewashby

I'M new to Linux & Ubuntu. I know I could just install Open Office through the Ubuntu Software Center or the Package Manager but I wanted to do it manually. So I download the debian package from [url]www.openoffice.org[/url] and unzipped it. Now I have a folder on my desktop lapeled …

Member Avatar for necrolin
0
304
Member Avatar for lewashby

I'M reading a book on C#, here is some of the code. [CODE] public BitterCritter(): base("", 2, 2, 0){}[/CODE] I see that you can specify what attributes the child class inherits based on it's parent class through parameters. But what if you specify the base class but insert no parameters? …

Member Avatar for apegram
0
96
Member Avatar for lewashby

I'M reading the book that's in the title. Let me show you what's going on. I'M given the following code, an example of Inheritance. [CODE]using System; namespace CritClone { class CritViewer { static void Main(string[] args) { CritViewer cv = new CritViewer(); }// end main public CritViewer() { Clone myClone …

Member Avatar for apegram
0
146
Member Avatar for lewashby

I want to run my programs in a traditional Dos based screen as opposed to the new text page that it's running in now. Does anyone know how I can do that? Thanks.

Member Avatar for jonsca
0
542
Member Avatar for lewashby

If anyone is interested in bringing iTunes to linux, there is a group on facebook called "iTunes for Linux", please join. Also, this is apples feedback page. [url]http://www.apple.com/feedback/itunesapp.html[/url]

Member Avatar for here2serve
0
67
Member Avatar for lewashby

Is there a way that I can run my C# code in a traditional dos based screen unlike the white background my programs are running in at the moment? I looked though the preferences but couldn't find anything. Thanks.

Member Avatar for kvprajapati
-1
101
Member Avatar for lewashby

I'M just getting started with Linux and I'M using Ubuntu. Straight from the CD Ubuntu came loaded with Open Office - Word, Spreadsheet, & Presentation. But how do I get the whole Open Office package? And what happens with the ones already on my system? Do I need to remove …

Member Avatar for JasonHippy
0
131
Member Avatar for lewashby

I'M trying to learn to program through Mono. I'M using a book on C#. Although it isn't specifically for Mono, I haven't gotten far into the book and it's a really small example so I don't expect that it has any platform specific code. Please see what's wrong with this …

Member Avatar for ddanbe
0
113
Member Avatar for lewashby

I downloaded and unziped the Open Office Debian package to my Ubuntu desktop. Inside the folder there are a lot of .deb file and one sub folder with another .deb inside. That one being by itself I assume that would be the right one so I tried to install it …

0
80
Member Avatar for lewashby

Resolved, I figured it out. I'M getting the following error when I try to install mono on my Ubuntu OS using apturl. [COLOR="Red"] Failed to run /usr/sbin/synaptic '--hide-main-window' '--non-interactive' '--parent-window-id' '62914563' '--set-selections-file' '/tmp/tmpyUj0VR' as user root. The underlying authorization mechanism (sudo) does not allow you to run this program. Contact …

0
67
Member Avatar for lewashby

So I've downloaded the Ubuntu ISO and burned it to a CD. I want to install it along side my current Windows OS with a bigger partition. Can some one please give me some help on how to go about doing that. I know I restart my computer with the …

Member Avatar for IsharaComix
0
153
Member Avatar for lewashby

[URL="http://www.mono-project.com/Main_Page"]http://www.mono-project.com/Main_Page[/URL] On that site, what is the difference between to two blocks to the left? They read. Mono [INDENT]An open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET[/INDENT] MonoDevelop [INDENT]An open Source C# and .NET development environment for Linux, Windows, and Mac OS X[/INDENT] …

Member Avatar for vivek4020
0
131
Member Avatar for lewashby

I'M trying to learn to program through C#. The book I'M reading is trying to explain namespaces but I'M failing to understand it. As I understand it, a class is a blueprint for an object and, and a class is just a special block of code. So what exactly is …

Member Avatar for kvprajapati
0
117
Member Avatar for lewashby

I'M trying to switch from Windows to Ubuntu Linux. I'M trying to learn how to program and since I am also trying to move to Linux, thought that mono would be a good place for me to start. But I noticed when I installed mono ([url]http://www.mono-project.org[/url]), it said I needed …

Member Avatar for lewashby
0
69
Member Avatar for lewashby

I'M trying to make the switch from Windows to Linux, or at least make it a 9 to 1 ratio. I mean, I can't completely do away with windows for several reasons. I'M also interested in programming. Now, Linux is suppose to be a much better OS and that seems …

Member Avatar for sknake
0
152
Member Avatar for lewashby

I posted a thread labeled pygame, global name "glob" but am unable to resolve the issue so I was just going to ask a few question about the code. Well first of all, I ran it on Windows Vista, python 2.6 and pygame, but I'M not sure what version of …

Member Avatar for vegaseat
0
148
Member Avatar for lewashby

I'M reading "Beginning Game Develpment with Python and Pygame". In the following code, I'M gettin this error in sysfont.py [COLOR="Red"]NameError: global name 'glob' is not defined[/COLOR] [CODE]import pygame from pygame.locals import * from sys import exit pygame.init() SCREEN_SIZE = (800, 600) screen = pygame.display.set_mode(SCREEN_SIZE, 0, 32) font = pygame.font.SysFont("arial", 16) …

Member Avatar for Firewolf
0
842
Member Avatar for lewashby

First of all I'M using Ubuntu and I'M new to it, trying to make the switch. I'M reading a book on Ubuntu but it's a little out of date to the one I'M running. Anyway, the book instructs me to go to > System > Administration > Synaptic Package Manager, …

Member Avatar for Firewolf
0
259
Member Avatar for lewashby

In the following code, I don't understand the line , [COLOR="Red"]print tank_name, tanks[tank_name].[/COLOR] What I'M having trouble with is it seems a little redundant, print thank_name, then thanks(the name of the dictionary), then tank_name again. And why is the second tank_name in "[]" like a list? I can't remember, is …

Member Avatar for sneekula
0
106
Member Avatar for lewashby

In the following program, what is the "values" function? [CODE]for tank in tanks.values(): if tank.alive: print tank.name, "is the winnter!" break[/CODE] I looked it up using Wing IDE and this is what I found. [CODE]def values(self, arg): """ D.values() -> list of D's values """ return [][/CODE] Thanks for any …

Member Avatar for sneekula
0
73
Member Avatar for lewashby

In the following program, why do I need to use the name "player" rather than a regular counter like "i"? I ran the program this way and it prints out the last element in players for how ever many player elements are in players. I want to know what's going …

Member Avatar for jcao219
0
112
Member Avatar for lewashby

In the program below, I have two questions. First, the first object, card1 passes the strings A & c to it's master class. What I want to know is, what do these two strings have to do with the A & c in RANKS & SUITS? If the class had …

Member Avatar for woooee
0
100
Member Avatar for lewashby

I noticed when I first got my new Toshiba Satellite that there was some strange behavior with it's keyboard. When typing in a text document, the cursor would just jump to a random position in the text document, and no it wasn't be accidentally touching the touch pad. Then one …

Member Avatar for Seten
0
185
Member Avatar for lewashby

I'M 24 years old, a single parent in TN. I've been very interested in programming since I as probably 15, and I've been trying to learn since then. I started out with C++, didn't get far. I would start, give up, and start again. About a year ago I started …

Member Avatar for Narue
0
95
Member Avatar for lewashby

In the following program, I have three different comments each after a line of code. Please read those comments to answer my questions. [CODE] # Property Critter # Demonstrates get and set methods and properties class Critter(object): """A virtual pet""" def __init__(self, name): print "A new critter has been born!" …

Member Avatar for lrh9
0
263
Member Avatar for lewashby

In the following program, the second line in main print [COLOR="Red"]"Printing a Card object:"[/COLOR], is not showing up when I run the program. Could someone please tell me what's going on? Thanks. [CODE]# Playing Cards # Demonstrates combining objects class Card(object): """ A playing card. """ RANKS = ["A", "2", …

Member Avatar for snippsat
0
123
Member Avatar for lewashby

I have a pretty new Toshiba Satellite laptop. When I first go the thing I noticed that in the middle of me typing something on a text based document that the cursor would jump to some random position in the text document. This of course caused what I was typing …

Member Avatar for jbennet
0
120
Member Avatar for lewashby

In the following program, why is [COLOR="red"]"Ac"[/COLOR] the first thing that the program outputs? In main, [COLOR="red"]print "Printing a Card Object"[/COLOR] is the first think I see that should print anything. Is it the [COLOR="red"]__str__[/COLOR] method using the rank & suit attributes from the [COLOR="red"]__init__[/COLOR] constructor? [CODE]# Playing Cards # …

Member Avatar for snippsat
0
398
Member Avatar for rkulp

Looking at the current world I'd of to go with one of these. Chines - China is growing with a booming economy Japanese - Japan has the second largest economy in the world Polish - The U.S. THINKS that it has a vested interest in Poland and will probably continue …

Member Avatar for Rashakil Fol
0
569
Member Avatar for lewashby

Does anyone know where I can find some sort of UML (unified modeling language) tool for python? I think it might help me understand OOP a little better, but I don't really know, I just read about UML and that's all I know. Thanks.

Member Avatar for ShadyTyrant
0
90
Member Avatar for lewashby

I've been trying to learn how to program for several years now. I've struggled with everything from C++, C#, to Python, but never got passed simple DOS text based screen programs that were very short. I'M now 24 and I work in a factory. I would love to find a …

Member Avatar for GTR3521
0
84
Member Avatar for lewashby

In the following program, how does the value of [COLOR="Red"]crit_name[/COLOR], end up in the [COLOR="Red"]self.name = name[/COLOR] value? Is it because it's passed to that class and name is the only value in the [COLOR="Red"]__init__[/COLOR] parameter that has no default value? Thanks. [CODE]# Critter Caretaker # A virtual pet to …

Member Avatar for masterofpuppets
0
125
Member Avatar for lewashby

In the following code, could someone please explain these if statements? elif 5 <= unhappiness <= 10:, & elif 11 <= unhappiness <15:, they have two arguments, one on each side which is something I haven't seen before. Also, what the one to the far right for anyway? Also, this …

Member Avatar for masterofpuppets
0
154
Member Avatar for AutoPython
Member Avatar for lewashby

Please look at the program below as well as my understanding of how it flows and correct me if I'M wrong. Thanks The first line in main - [COLOR="Red"]crit = Critter("Poochie")[/COLOR], creates an object with the string "Poochie" and autmoatically calls [COLOR="Red"]__init__[/COLOR], printing "A new critter has been born!" [COLOR="Red"]__init__ …

Member Avatar for lewashby
0
175
Member Avatar for lewashby

I have to prgrams and thus, two question to ask. In the following program how does the line [COLOR="Red"]status = staticmethod(status)[/COLOR] do anything? My python programming book somehow connects it to the line [COLOR="Red"]Critter.total +=[/COLOR] 1 but I don't see how? Please explain. [CODE]# Classy Critter # Demonstrates class attributes …

Member Avatar for vegaseat
0
193
Member Avatar for lewashby

In the following program I don't understand the [COLOR="Green"]staticmethod[/COLOR] or what is has to do with [COLOR="Green"]Critter.total[/COLOR]. From what I can see, total is a class attribute and [COLOR="Green"]Critter.total[/COLOR] is accessed from the [COLOR="Green"]__init__[/COLOR] constructor method. Thanks for any and all replies. [CODE]# Classy Critter # Demonstrates class attributes and …

0
66
Member Avatar for lewashby

In the following program, I'M getting the following error message when I try to run it. [COLOR="Red"]TypeError: object.__new__() takes no parameters[/COLOR] [CODE] # Classy Critter # Demonstrates class attributes and static methods class Critter(object): """A virtual pet""" total = 0 def status(): print "\nThe total number of critters is", Critter.total …

Member Avatar for pythopian
0
550
Member Avatar for lewashby

Does anyone know how to get Wing IDE to work with iron python? But I would also like to keep quick access with WING IDE to my standard python as well. Thanks.

Member Avatar for Stefano Mtangoo
0
37
Member Avatar for lewashby

In the following program, at what point does my program call the _str__ method/constructor? I don't see it specifically being called at any point. I know it happens with this line print [CODE]"Printing crit1:" print crit1[/CODE] but I still don't see how or when this happens. Thanks for any and …

Member Avatar for mn_kthompson
0
203

The End.