Programming, computers, etc. [Serious]

All things asdf (and anything else)
Post Reply
User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 7273
Joined: Sat Jan 02, 2010 9:30 pm

Re: Programming, computers, etc. [Serious]

Post by assdef » Sat Dec 17, 2011 4:03 pm

2 of my divers were eaten. :cry:
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37528
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Dec 17, 2011 5:10 pm

they are expendable :)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Mon Dec 19, 2011 7:29 pm

They forgot to leave the shark bait at home.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37528
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Mon Dec 19, 2011 7:51 pm

they are the shark bait
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Mon Dec 19, 2011 9:02 pm

Ah. That makes sense, then.

I'm setting as one of my New Years goals to put at least one app on the Android marketplace.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Flying Sheep
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9120
Joined: Wed Jun 02, 2010 12:10 am
Location: Under the shade of a coolabah tree
Contact:

Re: Programming, computers, etc. [Serious]

Post by Flying Sheep » Tue Dec 20, 2011 9:49 am

Wow, good luck with that AF! ^^

So I like computers. I still lack the motivation to get seriously into any kind of programming, which is kind of depressing. I made a mediocre forum from scratch throughout the course of the year with MySQL for my IST, but I never ended up finishing it properly or getting any nice features on it. It just has a working log in system with boards and threads and posts and stuff. And a cool orange colour scheme. B)
~I disapprove of what you say, but I will defend to the death your right to say it.
S.G.Tallentyre

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Tue Dec 20, 2011 6:09 pm

It would be fairly easy to set up a forum in Python with the Django extension. Maybe I should try it sometime.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

asdfFTW
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 36
Joined: Tue Apr 19, 2011 7:30 pm

Re: Programming, computers, etc. [Serious]

Post by asdfFTW » Thu Dec 22, 2011 10:44 pm

I'm going to make a signature image generator with your posts and stuff on it.
I've done it for another forum I frequent, should just be a matter of changing a few lines. Althought this is a very different style. :L
Anyway, when that's done, I'll post the source and let you guys tell me how I could've done it 1000x better. :D
:D

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Thu Dec 22, 2011 11:30 pm

That sounds like a cool idea.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

asdfFTW
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 36
Joined: Tue Apr 19, 2011 7:30 pm

Re: Programming, computers, etc. [Serious]

Post by asdfFTW » Fri Dec 23, 2011 10:07 am

Turns out it won't work because you've got to be logged in to view profiles. :L
:D

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37528
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Dec 23, 2011 2:25 pm

what info would you need from the profiles?
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Fri Dec 23, 2011 7:06 pm

asdfFTW wrote:Turns out it won't work because you've got to be logged in to view profiles. :L
That does make things more secure.

Edit: Decided to test my birthday counter from before, for time in the same year after the birthday, and it broke. Apparently datetime.year is read only. So I fixed it. Here's the correct code:

Code: Select all

import Tkinter

root = Tkinter.Tk()
root.title("Time until AF's Birthday")

Tkinter.Label(root, text="Time until Dale's Birthday:", font=(None,18)).pack()

lblTimeLeft = Tkinter.StringVar()

Tkinter.Label(root, textvariable=lblTimeLeft, justify = Tkinter.RIGHT).pack()

import datetime

def getTime():
    now = datetime.datetime.now()
    birthday = datetime.datetime(now.year, 12, 24)
    if (birthday-now).days < 0:
        birthday = birthday.replace(year=now.year + 1)
    difference = birthday-now
    retval = "Days: " + "%02d"%(difference.days)
    secondsLeft = difference.seconds + 1
    retval += "\nHours: " + "%02d"%(secondsLeft/3600)
    secondsLeft %= 3600
    retval += "\nMinutes: " + "%02d"%(secondsLeft/60)
    secondsLeft %= 60
    retval += "\nSeconds: " + "%02d"%(secondsLeft)
    lblTimeLeft.set(retval)

import threading

class RepeatTimer(threading.Thread):
    def __init__(self, elapse, function, *args):
        self.function = function
        self.elapse = elapse
        self.ticking = True
        self.args = args
        self.myThread = None

    def start(self):
        if self.myThread != None:
            raise Exception("Cannot start thread that is already running")
        def tick():
            import time
            while self.ticking:
                time.sleep(self.elapse)
                self.function(*(self.args))
        self.myThread = threading.Thread(target = tick)
        self.myThread.start()

    def stop(self):
        self.ticking = False

    def restart(self):
        if self.myThread == None or self.ticking:
            raise Exception("Cannot restart what has not been started")
        self.myThread = None
        self.ticking = True
        self.start()

    def is_alive(self):
        return self.ticking
        
countDown = RepeatTimer(0.1, getTime)
countDown.start()

root.mainloop()

countDown.stop()
"birthday.year += 1" was replaced with "birthday = birthday.replace(year=now.year + 1)"
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37528
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Dec 23, 2011 9:35 pm

Okay, Dale, now I know one more thing about you. One step closer to emptying your bank account :twisted:
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Fri Dec 23, 2011 9:57 pm

Noo!!! I only fixed one part! Oh well. :)
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37528
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Dec 23, 2011 9:59 pm

just so you know, the pronounced version of your name means noon in Hungarian. (Dél) Ah, it's also South.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

dewero
ASDF Prophet
ASDF Prophet
Posts: 3869
Joined: Mon Dec 07, 2009 11:06 pm
Location: Nowhere
Contact:

Re: Programming, computers, etc. [Serious]

Post by dewero » Sat Dec 24, 2011 12:15 am

Tkinter? why that?
If two wrongs don't make a right, try three. - Laurence J. Peter

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Sat Dec 24, 2011 4:26 am

Tkinter is the built-in Python GUI library. That's why that.

It also means valley. Dale = vale = valley.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

asdfFTW
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 36
Joined: Tue Apr 19, 2011 7:30 pm

Re: Programming, computers, etc. [Serious]

Post by asdfFTW » Sat Dec 24, 2011 10:41 pm

atomtengeralattjaro wrote:what info would you need from the profiles?
Just the post count and the username.

Anyway, today I made an IRC bot in Python. I would post the source here, but I'm on my 3DS right now. :D
:D

User avatar
Dreams
ASDF High Priest
ASDF High Priest
Posts: 2306
Joined: Tue Nov 29, 2011 7:04 pm
Location: STOP STALKING ME! I'M INSECURE!
Contact:

Re: Programming, computers, etc. [Serious]

Post by Dreams » Sun Dec 25, 2011 2:16 am

is the forums in 3D

asdfFTW
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 36
Joined: Tue Apr 19, 2011 7:30 pm

Re: Programming, computers, etc. [Serious]

Post by asdfFTW » Sun Dec 25, 2011 9:13 am

Lolno
Btw Merry Christmas and shit.
:D

Post Reply