Programming, computers, etc. [Serious]
Re: Programming, computers, etc. [Serious]
2 of my divers were eaten.
- atomtengeralattjaro
- Site Admin
- Posts: 37528
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
They forgot to leave the shark bait at home.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- atomtengeralattjaro
- Site Admin
- Posts: 37528
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
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.
I'm setting as one of my New Years goals to put at least one app on the Android marketplace.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- Flying Sheep
- 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]
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)
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
S.G.Tallentyre
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
It would be fairly easy to set up a forum in Python with the Django extension. Maybe I should try it sometime.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
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.
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.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
That sounds like a cool idea.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Turns out it won't work because you've got to be logged in to view profiles. :L
- atomtengeralattjaro
- Site Admin
- Posts: 37528
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
That does make things more secure.asdfFTW wrote:Turns out it won't work because you've got to be logged in to view profiles. :L
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()
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- atomtengeralattjaro
- 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]
Okay, Dale, now I know one more thing about you. One step closer to emptying your bank account
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Noo!!! I only fixed one part! Oh well.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- atomtengeralattjaro
- 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]
just so you know, the pronounced version of your name means noon in Hungarian. (Dél) Ah, it's also South.
Re: Programming, computers, etc. [Serious]
Tkinter? why that?
If two wrongs don't make a right, try three. - Laurence J. Peter
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Tkinter is the built-in Python GUI library. That's why that.
It also means valley. Dale = vale = valley.
It also means valley. Dale = vale = valley.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Just the post count and the username.atomtengeralattjaro wrote:what info would you need from the profiles?
Anyway, today I made an IRC bot in Python. I would post the source here, but I'm on my 3DS right now.
- Dreams
- 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]
is the forums in 3D
Re: Programming, computers, etc. [Serious]
Lolno
Btw Merry Christmas and shit.
Btw Merry Christmas and shit.