atraub's Profile User Rating: *****

Reputation: 822 Master
Group:
Mentors
Active Posts:
2,235 (0.92 per day)
Joined:
23-December 08
Profile Views:
54,053
Last Active:
User is offline Jul 16 2015 07:10 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Classic
Your Car:
Who Cares
Dream Kudos:
825
Expert In:
Python

Latest Visitors

Icon   atraub Don't call it a comeback!

Posts I've Made

  1. In Topic: Implementations of markdown parsers that can produce HTML

    Posted 9 Jun 2015

    you basically have to write a parser that will read it and intelligently substitute symbols. It's easy to make a simple one, but a robust one that will always work would take a bit more time and effort.
  2. In Topic: is it possible to print an integer variable into a text string?

    Posted 9 Jun 2015

    So, a couple of things. Firstly, I personally don't like printing in this style
    print("ok,so the bill was " , bill , " thanks")
    
    because the commas add extra whitespace.

    Secondly, this is perfectly acceptable
    print("ok,so the bill was " + bill + " thanks")
    
    However, if 'bill' is not a string, it'll break, as the OP would have experienced.

    The workaround for that would be
    print("ok,so the bill was " + str(bill) + " thanks")
    
    which should work most of the time.

    Granted, I don't particularly like any of these approaches. It's a shame no one ever wrote a handy Python String formatting tutorial that would walk you through how it works more properly. Maybe someday...
  3. In Topic: local variable 'ballx' referenced before assignment

    Posted 30 May 2015

    def ball(x,y):
        gameDisplay.blit(ballImg,(ballx,bally))
    
    


    There is no value called ballx or bally. However, there are values called x and y. Try
    def ball(x,y):
        gameDisplay.blit(ballImg,(x,y))
    
    
    You make the same type of mistake numerous times, so you'll need to make a lot of changes to fix it.
  4. In Topic: change the 12 hours time in object

    Posted 30 May 2015

    View Postmark103, on 30 May 2015 - 09:39 AM, said:

    It will let me to change the time to 30 mins back, e.g: from `1:30AM` to `1:00AM`. When I have the time `1:00AM`, it will not find the strings of `1:00AM` to change it to `12:30PM`. The reason for this is because I have two different type of `AM` and `PM`.

    Can you please show me an example of how can I find the time between AM and PM before changing the strings in the object to the time that I actually want?


    Sooo... you just want to know if the time is AM or PM? Like this?
    if self.getControl(344).getLabel()[-2] == "P":
        #PM stuff
    else:
        #AM stuff
    
    


    Honestly, I'm baffled as to what you're trying to ask.
  5. In Topic: Trying to make a program that loops from one menu to another.

    Posted 28 May 2015

    i don't think anyone, at any point, advocated writing a class for this. Are you just copying and pasting stuff you find online? You can't be a programmer if you don't understand what these statements are doing. Read a book, like this one, if you want to start advancing your skills. Right now, you're setting yourself up for complete failure.

My Information

Member Title:
Pythoneer
Age:
Age Unknown
Birthday:
October 24
Gender:
Forum Leader:
Python
Full Name:
Adam
Years Programming:
7
Programming Languages:
Python, Java, C/C++, C#, VB.net, PHP, SQL

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.learningpythonprogramming.com/
Twitter:
teraQuotes

Comments

Page 1 of 1
  1. Photo

    atraub Icon

    09 Apr 2015 - 19:46
    Thanks, Been waiting a long time for this very moment.
    .
    Don't call it a comeback!!
    I've been here for years,
    I'm rocking my peers,
    Puttin' suckers in fear,
    Makin' the tears rain down like a monsoon,
    Listen to the bass go boom!
  2. Photo

    jon.kiparsky Icon

    09 Apr 2015 - 16:55
    Welcome back. Time someone gave that python forum a good kickstart. Well done!
  3. Photo

    Dogstopper Icon

    07 May 2013 - 06:55
    Thanks man. Though, in my eyes, it's more like retirement. :p
  4. Photo

    atraub Icon

    06 Mar 2013 - 22:30
    This is obviously more proof that women can't resist me.
  5. Photo

    mamelove25 Icon

    19 Feb 2013 - 10:58
    Hello My Dear, My Name is Mame. i saw your profile today and became interested in you,i will also like to know you more,and if you can send an email to my email address,i will give you my pictures here is my email address (mame25live@yahoo.co.uk) I believe we can move from here! Am waiting for your mail to my email address above because i have much to tell you,
    love Miss Mame.
  6. Photo

    Simown Icon

    20 Sep 2012 - 11:01
    Wow promotion! Congratulations on becoming a mentor. See you about the forum!
  7. Photo

    VedranK Icon

    19 May 2012 - 12:54
    Bro teach to me how to haxz0r bro.
    Sorry, found your profile in the python subforum and after seeing the last comment here I just could resist ^_^
    Anyway, keep up the good work, cheers!
  8. Photo

    Motoma Icon

    21 Jun 2011 - 18:32
    how to write mad codez to steel cr3d1tc4rdz 4 money
  9. Photo

    atraub Icon

    05 Jun 2011 - 05:51
    we have forums for a reason, please use those rather than posting on my profile.
    Clarification:
    My profile wall is not a forum... especially not a Java one.
  10. Photo

    muzakir Icon

    01 Jun 2011 - 00:16
    how to write a program for maximum occurence values in java arraylist
  11. Photo

    Curtis Rutland Icon

    04 May 2011 - 06:29
    Grats on the promotion!
  12. Photo

    Dogstopper Icon

    25 Jan 2011 - 15:06
    Looking good with the Author and DIC++ badges! Thanks for your contributions!
  13. Photo

    Simown Icon

    23 Jan 2011 - 16:31
    Hey atraub, thanks for the add. I've been floating round the python forum for a while.
    I have exams all week though and then next week I can start my Django project! Which means a hell of a lot of forum questions no doubt!
    I saw your tutorial in linked lists, it looked great, I'll get more time to read it later when I'm not so tired :)
  14. Photo

    EnvXOwner Icon

    17 Jan 2011 - 16:53
    I got the image, for my wishlist on Newegg, in my blog. :)
Page 1 of 1