• Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Last One to Post Wins! v3

Status
Not open for further replies.
My first dog lived for 21 years :O
 
That's one of my fears for my sister's cat, that she meets a car :(
Fortunately, all my animals died of old age...
 
My family once had a rabbit named Ralph a long long time ago. Ralph seemed to think he was one of the cats, and the cats were actually cool with him, too. Unfortunately, he somehow got out, and met the same fate as some of the above mentioned pets. Keeping pets as indoor only is the way to go, their lifespan is almost always much longer.

Finally, for the first time in what feels like ages, I started working on a coding project. I would talk about this in the Coder's Lounge thread, but it's totally dead. I'm reworking this GUI complex number calculator made with python using Tkinter, even though it works 100%, it was very poorly and inefficiently written, so I'm doing almost a total rewrite. My estimation is that when I'm done, I will have removed around 300 lines of code. Just for fun, if you can tell me what this line is doing, I will give you a high five:
Code:
m1 = re.match(r"(-?\d+\.?\d*(\+|-)\d+\.?\d*i)(\+|-|\*|/)(-?\d+\.?\d*(\+|-)\d+\.?\d*i)", pat)
:P
 
The oldest cats my parents had reached the age of 26.
They already had them before I was even born though so I only experienced their last 4 or so years as a small child and don't remember all that much from them, aside from their appearance on some old photos.
 
Last edited:
Just for fun, if you can tell me what this line is doing, I will give you a high five:
Code:
m1 = re.match(r"(-?\d+\.?\d*(\+|-)\d+\.?\d*i)(\+|-|\*|/)(-?\d+\.?\d*(\+|-)\d+\.?\d*i)", pat)
:P
It'll make the person whoever has to maintain that stuff want to strangle you, that's for sure. And you didn't even take empty space and parenthesis into account. :P
 
The eldest cat we ever had lived to be about 18 or 19 years, his name was Sarge. Sarge was the boss cat, I can remember one moment that two of our other cats were facing each other off, gearing to fight. Sarge just stood up, walked over to them, and stared at them both. They both backed down and gave up before the fight even happened. Sarge was large and in charge. >:3


Easy! It means the following :

r = -?\d+1\?\d|+2\|-|\i
So, r is equal to 42!

Woah, I ran this in my program and it successfully divided by zero! :O

It'll make the person whoever has to maintain that stuff want to strangle you, that's for sure. And you didn't even take empty space and parenthesis into account. :P

Hey wait, I'm the one maintaining it! *strangles self*
It's actually a very strange use of it. Parentheses can't be used in this calculator since it's only dealing with one function (Sin, Cos, etc.) or operation at a time, so there's no need. Beside that, you can't even enter parens or spaces into it, it can only type certain things. The regex's are used to pull the complex or real numbers from the final expression string, along with the name of the function or the operator being used. If you think this whole thing seems poorly designed, believe me, it's a far better approach than the original. If you saw how that one was coded, you would likely vomit and go "Why? WHY?!" XD
 
My family once had a rabbit named Ralph a long long time ago. Ralph seemed to think he was one of the cats, and the cats were actually cool with him, too. Unfortunately, he somehow got out, and met the same fate as some of the above mentioned pets. Keeping pets as indoor only is the way to go, their lifespan is almost always much longer.

Finally, for the first time in what feels like ages, I started working on a coding project. I would talk about this in the Coder's Lounge thread, but it's totally dead. I'm reworking this GUI complex number calculator made with python using Tkinter, even though it works 100%, it was very poorly and inefficiently written, so I'm doing almost a total rewrite. My estimation is that when I'm done, I will have removed around 300 lines of code. Just for fun, if you can tell me what this line is doing, I will give you a high five:
Code:
m1 = re.match(r"(-?\d+\.?\d*(\+|-)\d+\.?\d*i)(\+|-|\*|/)(-?\d+\.?\d*(\+|-)\d+\.?\d*i)", pat)
:P

If I fix the error as I think it should be fixed, I'd say it's the regex of any binary operation between of two complex numbers :)

Why I say there's a error: https://regex101.com/
Spoiler:
 
Last edited:
If I fix the error as I think it should be fixed, I'd say it's the regex of any binary operation between of two complex numbers :)

Why I say there's a error: https://regex101.com/
Spoiler:

As promised:
Spoiler:


I thought about backslashing that '/', but since the python regex doesn't use '/' in it's pattern, it didn't seem to complain when using it.

Sorry to go off on such a tangent... On pets again, animals no doubt have empathy. If something seems wrong with my mood, my cats pick up on it in a split second, and are there to reassure me. :3
 
Finally back in this thread after 20,000 years... How's the conversation goin'?
 
StCooler being the nerd in the room again. :P
Don't tell me you can't read regex lol
You know programming as well!

StCooler can only be cool, that's a math postulate at this point.
Spoiler:


As promised:
Spoiler:


I thought about backslashing that '/', but since the python regex doesn't use '/' in it's pattern, it didn't seem to complain when using it.
When in doubt, I always escape ^^

Sorry to go off on such a tangent... On pets again, animals no doubt have empathy. If something seems wrong with my mood, my cats pick up on it in a split second, and are there to reassure me. :3
I felt my dog had empathy, and I felt my cat never cared XD
 
Status
Not open for further replies.
Back
Top