Search found 37 matches

by xGeovanni
Mon Sep 23, 2013 9:05 am UTC
Forum: Religious Wars
Topic: Python 2.x vs. python 3.x
Replies: 16
Views: 25914

Re: Python 2.x vs. python 3.x

cemper93 wrote:pygame and mutagen don't support it yet


I've been using Pygame with Python 3 for ages now. You can download Pygame for Python 3 here.
by xGeovanni
Wed Sep 18, 2013 8:56 am UTC
Forum: Coding
Topic: Why Python is the best programming language in the world
Replies: 116
Views: 27705

Re: Why Python is the best programming language in the world

Please do avoid having this thread turn in to another religious war. We all want to share interesting code here. I have some kinda-kinda-interesting code to share. Here's a function to "invert" a 2D list (Turn it from [(1, 2, 3), (4, 5, 6), (7, 8, 9)] to [(1, 4, 7), (2, 5, 8), (3, 6, 9)] )...
by xGeovanni
Wed Sep 04, 2013 5:23 pm UTC
Forum: Coding
Topic: Why Python is the best programming language in the world
Replies: 116
Views: 27705

Re: Why Python is the best programming language in the world

EvanED wrote:

Code: Select all

class Marker:
    pass

...

    marker = first = Marker()



You can't convince me that this is anything but immensely icky and weird.
by xGeovanni
Wed Sep 04, 2013 12:07 pm UTC
Forum: Coding
Topic: Why Python is the best programming language in the world
Replies: 116
Views: 27705

Re: Why Python is the best programming language in the world

I'm using Python 3. Really, that's what "Python" should mean by now. I was under the impression that "all" didn't work with generators. There are so many oddities about what you can and can't do with each of the many different iterable classes in Python. (Why the hell are there a...
by xGeovanni
Wed Sep 04, 2013 8:01 am UTC
Forum: Coding
Topic: Why Python is the best programming language in the world
Replies: 116
Views: 27705

Why Python is the best programming language in the world

Code: Select all

def checkSorted(_list, comparison = operator.le):
   return all([comparison(*x) for x in [(_list[i], _list[i + 1]) for i in range(len(_list) - 1)]])


I invite other examples of Python awesomeness.
by xGeovanni
Fri Apr 19, 2013 6:51 pm UTC
Forum: Coding
Topic: Idea: cheap cloud storage by MP3 uploading
Replies: 11
Views: 8929

Re: Idea: cheap cloud storage by MP3 uploading

Could it possibly be as simple as opening your file in notepad++, saving it as all files with the extension .mp3, uploading it and changing it back via the same process after downloading? I've tried it (Sans upload/download), and the file seems to be preserved perfectly.
by xGeovanni
Sun Apr 14, 2013 3:36 pm UTC
Forum: Coding
Topic: ARGH! What's your favorite coding horror story?
Replies: 18
Views: 14797

Re: ARGH! What's your favorite coding horror story?

During my first attempt at OOP, I wrote this gargantuan piece of shit . I recommend you read the whole thing to get a true grasp of how horrible, broken and buggy it really is, but I will tell you that it contains such redundancies as: def name(name): #The player's name return name And such woeful p...
by xGeovanni
Sun Apr 07, 2013 1:16 am UTC
Forum: Hardware
Topic: Where might I find a decent charger?
Replies: 3
Views: 4278

Where might I find a decent charger?

I have a laptop which has it's chargers constantly die. I suspect it's because average chargers cannot handle such prolonged usage (I find the box thing is often very hot). I have begun to unplug them when my laptop is sufficiently charged, but this does not seem to fix the problem entirely. Please ...
by xGeovanni
Tue Mar 05, 2013 8:27 pm UTC
Forum: Coding
Topic: Is this a good encryption algorithm?
Replies: 9
Views: 3095

Re: Is this a good encryption algorithm?

I would like to clarify that it is indeed just a fun programming challenge. I probably won't do much in the way of actual encryption, because it does seem rather hard. I just got excited about the idea after reading about the enigma machine.
by xGeovanni
Tue Mar 05, 2013 4:44 pm UTC
Forum: Coding
Topic: Is this a good encryption algorithm?
Replies: 9
Views: 3095

Is this a good encryption algorithm?

I've never had a serious attempt at writing an encryption algorithm before, and haven't read much on the subject. I have tried to write an encryption algorithm (of sorts) in Python 3, I would just like to see if anyone thinks it's any good. (Obviously, it's not going to be comparable to those actual...
by xGeovanni
Sun Sep 02, 2012 11:50 am UTC
Forum: Coding
Topic: A tale of long forgotten code.
Replies: 8
Views: 3783

A tale of long forgotten code.

Once, a long long time ago, I was staring intently at IDLE, a python IDE. I had been searching for something to code, and I decided to create a text based Japanese style RPG. This was a foolish choice, as I had only just learned the basics of OOP, but still, I made a valiant effort, and in the end I...
by xGeovanni
Wed Aug 29, 2012 6:40 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1101: "Sketchiness"
Replies: 168
Views: 30127

Re: 1101: "Sketchiness"

International ring
Grotto
Theme park
Abyss
Matrix
-y mother for a threesome
Rhapsody
Drawer
Livestream
Therapy
Showdown

and my personal favourate: "offender trial".
by xGeovanni
Sun Mar 11, 2012 8:51 pm UTC
Forum: Hardware
Topic: RAM not working
Replies: 8
Views: 4080

Re: RAM not working

Any advice on where to get one?
by xGeovanni
Sun Mar 11, 2012 8:39 pm UTC
Forum: Hardware
Topic: RAM not working
Replies: 8
Views: 4080

Re: RAM not working

The ram sticks are identical and are the same ones that came with the computer, I have tried switching them.
by xGeovanni
Sun Mar 11, 2012 8:20 pm UTC
Forum: Hardware
Topic: RAM not working
Replies: 8
Views: 4080

Re: RAM not working

I've just taken it out and put it back in (1337 haxxor skillz), no change.
by xGeovanni
Sun Mar 11, 2012 7:44 pm UTC
Forum: Hardware
Topic: RAM not working
Replies: 8
Views: 4080

RAM not working

I have in my laptop two 2GB RAM sticks, yet only 2GB of ram according to my system properties.
I use a HP G56 laptop running Windows 7 Home Premium 64 bit, and I believe it to be DDR2 RAM.

If you require any further information please ask.
by xGeovanni
Tue Feb 07, 2012 5:56 pm UTC
Forum: Gaming
Topic: LethalWare: New Indie Startup
Replies: 7
Views: 1425

Re: LethalWare: New Indie Startup

-snip- Good point, but the whole slogan thing is mostly in jest. I'm working on "blue ball scribble land" and want to be able to notify people of my progress. I admit we could have started on a stronger note, but still, games are games, and as I said before, all I want to do is share them...
by xGeovanni
Tue Feb 07, 2012 4:26 pm UTC
Forum: Gaming
Topic: LethalWare: New Indie Startup
Replies: 7
Views: 1425

Re: LethalWare: New Indie Startup

-snip- Honestly, not much makes us special, we just want to make some games and share them. We don't expect to get very far on what we have to offer at present, we're making more games and hope you will like them. We will most likely continue to make our games free and open source, donations are ni...
by xGeovanni
Sun Feb 05, 2012 5:19 pm UTC
Forum: Gaming
Topic: LethalWare: New Indie Startup
Replies: 7
Views: 1425

LethalWare: New Indie Startup

Hello, I want to tell you about our new indie games and software company called LethalWare.

We currently have 2 members:
xGeovanni - CEO and Coder
Charzy - musician


We have just started and would like to become known.

Our Website: http://www.lethalware.co.uk/

Feel free to ask any questions!
by xGeovanni
Sun Jan 29, 2012 2:24 pm UTC
Forum: Gaming
Topic: Games you have programmed
Replies: 93
Views: 39879

Brick Breaker!

Hello people, I have created a game called Brick Breaker, in which you play as a paddle smashing a ball in to bricks. I'm looking for feedback and bug reports, if you would be so kind to offer them. Download http://www.mediafire.com/download.php?miabu9s3pz5a3xb Source (python 3) http://pastebin.com/...
by xGeovanni
Wed Jan 25, 2012 2:17 am UTC
Forum: Coding
Topic: Cx_Freeze DLL load failed
Replies: 0
Views: 1304

Cx_Freeze DLL load failed

I have been trying to use cx_freeze for some time now, and yet the same error always occurs import cx_Freeze.util ImportError: DLL load failed: %1 is not a valid win32 application I have tried with both 32 and 64 bit, and have tried both setup.py and cxfreeze.bat I am running 64-bit windows 7, with ...
by xGeovanni
Mon Jan 02, 2012 10:24 pm UTC
Forum: Coding
Topic: Python try/except
Replies: 8
Views: 2412

Re: Python try/except

This has nothing to do with the try-except statement: "int(x)" doesn't modify x, it returns a new value. So you want "x = int(x)" to make it work. Or some other name, because switching the type of a variable midway through a function is a great way to write confusing code. Thank...
by xGeovanni
Mon Jan 02, 2012 9:45 pm UTC
Forum: Coding
Topic: Python try/except
Replies: 8
Views: 2412

Python try/except

I have code similar to this: try: int(x) y = True except: pass if y: x -= 1 ... this is the problem area, I assure you The error is that it x is still a string, and the strange thing is that y is true, why is it that one of these changes is made but not the other? and these errors appeared while x c...
by xGeovanni
Fri Dec 23, 2011 1:17 am UTC
Forum: Coding
Topic: What language(s) to learn? (again)
Replies: 6
Views: 2477

Re: What language(s) to learn? (again)

Good companies care about r/matlab/octave, because they like to know that their workers enjoy programming enough to learn uncommon language, same goes for the other languages listed, especially Lisp.
by xGeovanni
Thu Dec 22, 2011 11:07 pm UTC
Forum: Coding
Topic: Something to laugh about
Replies: 9
Views: 3158

Something to laugh about

My father asked me to make a program to help him win online poker (Programmers = Genies) I gave him this: import time, random moves = ["Fold", "Small Bet", "Call/Check", "Medium Bet", "Large Bet"] while True: print("Scanning...") time.sleep...
by xGeovanni
Thu Dec 22, 2011 1:39 pm UTC
Forum: Coding
Topic: Python "global"
Replies: 8
Views: 1985

Re: Python "global"

Out of interest, what are the better ways than randint to randomly choose from possibilities?
by xGeovanni
Thu Dec 22, 2011 1:28 am UTC
Forum: Coding
Topic: Python "global"
Replies: 8
Views: 1985

Re: Python "global"

Here is the latest version: #Math questons #Asks basic math questions and gives a score import random #random numbers are needed to generate questions def getquestion(): #generates information for the question num1 = random.randint(1, 12) #numbers for num2 = random.randint(1, 12) #the question getfu...
by xGeovanni
Wed Dec 21, 2011 11:06 pm UTC
Forum: Coding
Topic: Python "global"
Replies: 8
Views: 1985

Python "global"

I am a beginner to python, and have written the following program: #Math questons #Asks basic math questions and gives a score import random #random numbers are needed to generate questions def getquestion(): #generates information for the question global num1 = random.randint(1, 12) #numbers for gl...
by xGeovanni
Fri Oct 21, 2011 7:32 pm UTC
Forum: Coding
Topic: Advice with java
Replies: 5
Views: 1820

Re: Advice with java

If you know any glue languages, you could use that...
...I think.

I'm not an expert by any means, but I try to contribute.
by xGeovanni
Fri Oct 21, 2011 4:00 pm UTC
Forum: Coding
Topic: Anyone else participating in the AI Challenge?
Replies: 4
Views: 1361

Re: Anyone else participating in the AI Challenge?

It sounds fun, if only I knew how to create AI.
how often is it held? I could enter next time.
by xGeovanni
Tue Oct 18, 2011 12:27 pm UTC
Forum: Coding
Topic: Is this hard to read?
Replies: 15
Views: 3648

Re: Is this hard to read?

stuff thanks, I didn't know I could use dictionaries like that. also, homework . Where I live, the curriculum has a very low focus on ICT. I'm in High school, and I get 1 period of ICT (there is no 'computing') every two weeks. Not to mention that in the first 2 years, all we did was word/excel/pow...
by xGeovanni
Mon Oct 17, 2011 3:23 pm UTC
Forum: Coding
Topic: Is this hard to read?
Replies: 15
Views: 3648

Re: Is this hard to read?

Thanks for all the replies, even if some are off-topic.
and the extra parenthesis were recommended by the book I'm using.

PM 2Ring wrote:I hope that last bit wasn't too confusing. :)

don't worry about it, that makes sense.
by xGeovanni
Sun Oct 16, 2011 3:46 pm UTC
Forum: Coding
Topic: Is this hard to read?
Replies: 15
Views: 3648

Re: Is this hard to read?

About the comments, the basic program is from a tutorial book, I was then challenged to make several edits to it.

anyway, thanks for the reply, it just seemed strange to me.
by xGeovanni
Sun Oct 16, 2011 1:25 pm UTC
Forum: Coding
Topic: Is this hard to read?
Replies: 15
Views: 3648

Is this hard to read?

Is this (python) code hard to follow? and how do I improve it if it is? (I'm a beginner, by the way) #word jumble #the computer picks a random word and then jumbles it #the player must guess the original word import random #create a sequence of words WORDS=("python", "jumble", &q...
by xGeovanni
Mon Oct 10, 2011 6:10 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571836

Re: The "IT DOESN'T WORK!" thread

Thanks, the solution was simple when you told me, can't believe I didn't think of it.
by xGeovanni
Sun Oct 09, 2011 6:47 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571836

Re: The "IT DOESN'T WORK!" thread

Hi, I'm just starting to learn how to program, can anyone help me find the problem with this? (It's Python) import random print( """ -The Number guesser- Think of a number between 1 and 100 and I will try to guess it mode 1 is 1-10, mode 2 is 1-100 reply "yes" or "no&qu...

Go to advanced search