« first day (2673 days earlier)      last day (2259 days later) » 
00:00 - 18:0018:00 - 00:00

12:11 AM
This is an interesting one, no idea what causes that.
 
python reports errors on the wrong line all the time *shrug*
all you need is an expression/statement that spans multiple lines
 
Hi, I'm looking for some pointers on where to read and practice making dynamic functions and classes. I'm finding myself writing the same code over and over again. I had no problem with javascript but think I'm missing some fundamentals. Is there a book or website that's recommended?
 
What exactly do you mean by "dynamic" functions and classes?
 
12:27 AM
I'm working with tkinter at the moment, making a program that reads databases and performs some analytical functions. I'm manually building each grid item when many of them follow the same rubric. I know this can be done dynamically but I don't know how.
 
Sorry, but I'm not sure I get it. I think you're looking for higher-order functions, i.e. functions that take other functions as arguments?
 
If you can give us a small (emphasis on small) snippet of code showing you constructing two similar but repetitious things, we might be able to help.
 
I'll do that thanks, just reading a little about higher-order functions.
 
Remember that basically whatever fancy stuff javascript can do with its functions, python can do the same.
 
I forgot how to add snippets here rather than pasting...
 
12:38 AM
If it's less than 12 lines, you can just paste it in and use Ctrl+K to format it. If it's longer, use something like dpaste (as mentioned in the room rules)
 
def load_vehicle_list(self, event=None):
    self.db_box_ah.delete(0, "end")
    self.db_box_year.delete(0, "end")
    try:
        result = self.db_cursor.execute(
            "SELECT auction_house, year, name, model, odometer, auction_date, transaction_price FROM vehicles WHERE manufacturer = " +
            '"manufacturer"')  # +'"search_conditions"')
        for row in result:
            self.db_box_ah.insert(END, row[0])
            self.db_box_year.insert(END, row[1])
    except sqlite3.OperationalError:
In this snippet I have deleted many of the grid items; name, model etc. This is a first draft of the program, the database has about 20 parameters I can search/filter through
 
@Bonstark That sure looks like you're using string concatenation to create your query
 
You're open to SQL injection if you implement that " + search_conditions" as shown.
 
That's right yes. The program is local, only I will be using it but thanks for the input!
 
Two thoughts. One, tkinter might have a shorter way to do this-- some sort of table type. I don't know enough tkinter to help you with that.
 
12:43 AM
I should be using something like c_vdb.execute("SELECT* FROM vehicles WHERE %s %s" %(manufacturer, search_parameters))
 
Same problem
 
@Bonstark no it shouldn't
 
What's the question anyway?
 
oh lol. I'm not too concerned about sql injection as it will only be used by myself. although it would be good practice to do it properly.
 
But anywho, those boxes and the functions you call on them can be first-class objects. You can just maintain a list of them in the class, and make a "do on each" function that does just that
 
12:44 AM
ha ha derailed
 
@KevinMGranger maybe I'm missing something, but how did you figure out that's what they were asking for?
 
their first 2 messages
 
using something like
for condition in condition_list:....?
 
Meh, ok, if you say so. I say garlic.
 
garlic?
 
12:46 AM
I thought your question was about the .insert lines, not the execute call?
 
@Bonstark I'm having trouble understanding exactly what you're asking. What, exactly, do you not like and want to change about the current code you've shown?
 
Something like for box, value in zip([self.db_box_ah, self.db_box_year], row): box.insert(END, value)?
 
The current code has many (20 or so) possible db_box items, it seems inefficient to constantly refer to them individually whenever I use them.
 
Put them in a list. Problem solved.
 
Aran-Fey, thank you I have tabbed a zip search and will read more into it as well as higher-order functions.
 
12:50 AM
OK, but you haven't shown us enough information about these items, or why you're referring to them, or what you want to end up with, for us to constructively give you anything. Instead, we've spent pages going over what you want without getting anywhere.
 
I almost immediately understood what they wanted until they were derailed by everyone else talking about sql injection :/
 
I'm not trying to be difficult, I really can't tell. It seems like a list and zip is correct, but it could be interpreted a bunch of other ways.
 
I'd agree. I wanted them to work towards that on their own ideally
 
That span me out as well. I was trying to put as little code as possible in the chat. Apologies for the lack of clarity. The purpose of my question was asking for reading materials on how to consolidate my code from writing everything out manually.
 
1:08 AM
Thank you for the pointers. Kevin, I'd always rather read about something than be given an answer so thank you for that. RoganJosh, my mistake, to avoid the possibility of sqlinjection, should I be using ...('?', '?')'search_conditions)
 
The intro to the sqlite module says what you should be doing
 
Ok, thanks!
 
Does anyone have an example of a simple Scrapy spider using files pipeline (i.e., a spider that downloads files) they can point me to on GitHub or elswhere?
Having trouble figuring out how spider.py, items.py, and pipelines.py work together...but I'm sure I could figure it out if I found a simpler example. Searching for a while has yielded nothing that fits the bill.
 
 
6 hours later…
7:16 AM
cbg
 
cbg
 
8:10 AM
cbg
 
8:26 AM
morning
 
9:09 AM
morning
 
10:01 AM
cbg
I was so proud of a trick this morning that I ended up writing an SO Q/A. stackoverflow.com/questions/48703231/…
 
jjj
matplot-cabbage
I just need to say it: I really love matplotlib :)
 
Good afternoon, I am learning Python and Databases. I came up with mysqlclient, well that is fine. In Java JDBC I am used to catch exceptions with SQLException and would print all the errors/exceptions with .printStackTrace(). Now I am wondering what is the equivalent of that in Python 3 with mysqlclient?
 
are you asking about how to handle exceptions in general, or sqlexceptions in particular?
 
10:21 AM
@Arne sqlexceptions
 
after getting an EPIPE for a file descriptor, should you close said file descriptor?
 
@JWizard sorry, can't help with those. I keep as far away from DBs as much as I can.
 
@Arne Oh, I get it...half part of the question done now through stackoverflow.com/questions/9555133/…
 
Hi all,
I want to learn Python, what IDE do you recommend to use?, (I'm coming from C# and .NET world)
 
I used NetBean, use Eclipse and heard pyCharm is good.
 
10:33 AM
Sublime Text 3 is doing fine for me
 
pyCharm is good
 
hah. no wait. NetBeans was with PHP
 
PyCharm is great
I heard VSCode and Atom are nice as well; never used them though.
 
jjj
I kinda like spacemacs
 
and yes. depending on your project size, a simple editor with a bit of context coloring might be fine. the less help you get, the more you have to think yourself.
 
10:34 AM
it seems I have to try all :)
 
but I definetly cannot comprehend how people do major projects with an editor. not an IDE shrug
 
will start with VS code
 
in that case, I'd like to quote someone else "use the tools with the best debugging"
and (while i have never used it extensively) i believe pyCharm was purposely built for python (no?)
 
jjj
Also, maybe just use what you already using and check if it has a python plugin
 
good call, too!
that is how i ended up with Eclipse, indeed.
 
10:37 AM
@Chris yuck!
 
what is Python mysqlclient equivalent of JDBC SQLException?
 
ya, i know. i've had lots of problems with eclipse, too.
 
promising
 
If you can live with the 20 minutes bootuptime for VS. Or has that gotten better?
 
VS code is doing well for small projects, I don't use it as much as the grand Visual studio which is my favorite IDE, if I could run Python on it, I would certainly give it a try
 
10:45 AM
Sublime Text 3 is a lot faster, but you need customize it for Python realpython.com/blog/python/…
find it here
 
11:43 AM
What's the not-stupid way to process a potentially gigantic string/bytes in python? I don't like to a) have it all in memory and b) repeatedly slice away small chunks from the start. I'm thinking of using a file-like object instead, but the problem is that once I've read some data from it, it's gone forever. I'd need some sort of file object that allows me to "peek" at the data without consuming it
or, even better, a file object which supports string functions like .find('some text') and .startswith('foobar')
 
@Aran-Fey you could memory map it?
 
I'll have to read up on memory mapping. Thanks for the suggestion!
Hmm, it seems mmap only works with actual files (i.e. files that exist on the file system)
 
You can have anonymous mappings; pass -1 as the fileno.
 
Ah, but then I have to specify the size, right?
 
Yeah.
 
11:58 AM
I'd like to make this work with arbitrary file-like objects. Looks like I've found myself a 7th project to work on \o/
 
Cabbage
 
jjj
cbg poke
 
12:18 PM
@Aran-Fey If you want it neither in memory nor as a file on disk.. where is it?
 
It could be downloaded from the web or generated on the fly
 
jup, sounds like a good problem
It kind of sounds like you'd want swap space, but not in a way that I ran into before
 
I basically just need a string that can be sliced efficiently *shrug*
and doesn't need to be in memory in its entirety, so yeah, you're right
Hmm, does slicing a string actually create a copy?
 
always, [:] is how i like to copy my strings.
 
What I meant is, does CPython actually allocate new memory for the sliced string or does it re-use the other string's memory?
I guess I could test it. Brb, blowing up my PC
Turns out is does copy the underlying memory :(
 
12:32 PM
Depends on the length though, right?
 
Not sure. I tested it on a 1GB string
 
id("abc") == id("abc") >> True
id("abcd") == id("abcd") >> False
 
For bytes-like things you can use memoryview objects in order to create slices that are views.
 
But i don't how deep down id goes
 
Oh yeah, very short strings are interned. I'm fairly sure my data will be longer than 2-3 characters though ;)
@IljaEverilä Oooh, that might come in handy
 
1:30 PM
no, spaceless strings are interned
>>> a = 'AVeryLongStringWhereThereAreNoSpaces'
>>> b = 'AVeryLongStringWhereThereAreNoSpaces'
>>> a is b
True
>>> a = 'a b'
>>> b = 'a b'
>>> a is b
False
or something like that
 
Currently irritated that the top google hit for "python string interning" does not give the rules for which strings are interned other than "all zero and one length strings are interned"
Or, no, it does, but not in a way that was obvious to me...?
TLDR: zero length strings, one length strings, and strings composed only of "ascii letters, digits or underscores"
 
And strings that aren't longer than 20 characters
 
It goes on to say "i.e. strings looking like identifiers" but "like" is doing some work here because "1foo" gets interned despite not being a valid identifier
@vaultah Hmm, the article doesn't mention that, I don't think
Nope, I'm wrong there it is buried again
"sequences generated through peephole optimization are discarded if their length is superior to 20."
 
id("abcd")
139826735513136
id("abcd")
139826735067240
what now
 
what python is that?
2 does that for me
 
1:40 PM
Although I think that's slightly different than "strings longer than 20 are never interned". I think it's more like "string literals that are usually created at compile-time by performing simple arithmetic such as "a"*10 don't get interned if the result is large"
>>> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
True
 
that's tricky ^ because it might get peephole-optimized which is not interning, right?
 
@AndrasDeak 3.5.2
 
@Arne huh
cpython?
 
yes
 
must be a windows thing :D
 
1:41 PM
ubuntu x.x
 
48
A: About the changing id of an immutable string

Martijn PietersCPython does not promise to intern strings by default, but in practice, a lot of places in the Python codebase do reuse already-created string objects. A lot of Python internals use (the C-equivalent of) the intern() function call to explicitly intern Python strings, but unless you hit one of tho...

 
> CPython does not promise to intern strings by default,
huh
 
See the very bottom of Martijn's answer
 
The article has code snippets that show that [someLiteral] is [someLiteral] doesn't get peephole-optimized, so I assume it also doesn't do it on my machine.
Oops, I'm wrong.
"foo!" is "foo!" evaluates to True on my machine even though it's false in the article
>>> "foo!" is "foo!"
True
>>> a = "foo!"
>>> b = "foo!"
>>> a is b
False
 
incidentally, that also describes your reaction
 
1:43 PM
Nonetheless,
>>> a = "foo!"
>>> b = "foo!"
>>> a is b
False
>>> a = "foo"
>>> b = "foo"
>>> a is b
True
>>> a = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
>>> b = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
>>> a is b
True
This three-line approach seems to be free of the optimization, yet these thirty length strings are apparently interned
 
my long interned example had 36 characters...
 
I see. So you pre-disagreed with vaultah before the conversation even started.
 
it's how I roll
FWIW the statement that "strings not longer than 20 characters get interned" doesn't imply that longer ones don't get interned
 
Correction: strings produced by constant expressions are not interned if they are longer than 20 characters
 
What are constant expressions? For instance the concatenation of two literals?
>>> a = '1234567890'*2
>>> b = '1234567890'*2
>>> a is b
True
>>> a = '12345678901'*2
>>> b = '12345678901'*2
>>> a is b
False
neat
 
1:52 PM
o_0
 
@AndrasDeak Yes, or literal multiplication. Literals are constant expressions too, but I meant "expressions that are subject to constant folding by peephole optimizer"
 
@vaultah thanks, I'll revisit that when I'll have learned about constant folding :)
 
@AndrasDeak Sure, but it does imply that "foo!" gets interned
 
yeah, I guess
 
But the statement """the statement that "strings not longer than 20 characters get interned" doesn't imply that longer ones don't get interned""" is still itself true
 
2:08 PM
weekend rbrb =)
 
\o cbg
 
I think I gave myself an ulcer by playing the super-difficult DLC sidequest in Zelda last night.
30+ minutes of meticulous combat scenarios with no intervening checkpoints followed by a one-hit kill from a miniboss that erased all my progress is not a recipe for a relaxing evening
 
@Kevin Sounds super frustrating. I got 2nd place in a PUBG game a couple times last night so I understand your frustration with games
 
if it helps, cities skylines is free to play this weekend, and it's 75% off.
 
2:23 PM
That game is a fun one for sure. Its my childhood of Sim City 3000, just to the max now.
 
But I have 89/90 sidequests done soooo I guess I'm going to run face first at this brick wall until it falls down
I plan to apply the time-tested strategy of "git gud"
"Running face first at this brick wall" is a good description of how I died, come to think of it. Stone golems ain't no joke.
 
for the dark theme fans out there. The SO Dark Theme by Stylish is actually greatly improved from when I last used it
I'm enjoying it so far. The GitHub one too for that matter
 
2:43 PM
are you subtly asking us to join the dark side?
 
yes I am
 
Just passed 50k. Only 50k more to go.
 
Can I be on the gray side ?
@davidism Pineapples on the reps!
 
"visited 1134 consecutive days" send help
 
you want some more pineapples? because that's how you're going to get em if you keep this up
 
2:46 PM
@davidism Goals... Maybe one day! Congrats though!
 
@davidism everything you did to get up to there, you have to do again.
that's what's painful about the half way mark
hehe
 
If you account for "long tail" effects of old questions getting occasionally upvoted, then he probably passed the halfway point W.R.T. labor a couple of months ago
 
I get about 30 rep per day (with variation) without doing anything. But even when actively answering questions I've only hit the rep cap 5 times, and never just from upvotes.
 
Theres a cap??
 
200 rep a day
 
2:59 PM
I think I reached it exactly once, when I wrote something that became inexplicably popular
 
I'm on more of a bi/tri-weekly basis of getting rep without doing anything. So it's a much slower climb
 
If you look at the top answerers for Flask, I'm #3 but have almost 300 more answers than @MartijnPieters, who's #1.
I just don't get the views / votes that he does.
Actually, I just have a low rep to answer ratio compared to that entire leaderboard.
 
Perhaps you spend too much time metaphorically nursing baby birds back to health
Your reward is seeing them take flight :'^)
Which is worth 0 reputation.
 
Yea, you take the 3 birds in hand (that's like... 6 birds in bush) and you release them. so you get -3 birds. which is -6 in bush. I need the reputation to bird ratio to finish this calculation.
 
but nursing baby birds back to health surely would merit karma points instead, would it not?
 
3:10 PM
Boy I hope so because I'm not doing anything else in life to counterbalance my rampant selfishness and consumerism
 
@MooingRawr how many karma points per bird? I'm curious for analysis purposes.
 
Karma points cannot be viewed or spent at will. Karma points are the ultimate black box in terms of real life point stats.
 
DSM
Snowy Friday cabbage for all!
 
cbg! Snowing here for me as well
 
cbg, it is sunny and warm here, as it has been for the past month
 
3:16 PM
Cbg
 
I got a letter this week from my water company saying "as winter approaches, maintenance of your water heater is more important than ever", and I thought "approaches?" and looked out the window at the ice floes drifting down the river
 
It's beautifully crisp and cold here in Bonnie Scotland. You guys can keep the snow
 
@Kevin Winter really sneaks up on you like that.
 
DSM
I'm thinking of visiting the branch of the family which stayed in Scotland later this year, which would be a lot of fun.
@davidism: does it ever snow there?
 
I'm sitting here waiting for the mountain of snow that the weather network has promised me, while my co worker is sitting here praying it won't come.
Kevin, I wonder what has happen in the past to warrant one of those letters to be issued.
 
3:20 PM
Snow is amazing Mon-Fri. Terrible on the weekends.
 
@MattR So true. Nothing like waking up and being told to work from home. Only sucks for those that cant WFH
 
@DSM it rained for a week in December
 
Snow is amazing any time. but I would worry about snow in mid June...
 
DSM
I have almost the opposite feeling. During the week it's an inconvenience 'cause that's when I work. During the weekend I can enjoy it because (except for certain fixed meetings) I can set my own schedule.
 
@MooingRawr They wanted money. ten dollars a month for a heater repair policy.
 
3:22 PM
@davidism it’s a matter of time and a bit of luck, as specific posts gain Google juice and views / votes increase.
 
@DSM - you should.
 
@Kevin I read it as: from my work company so I was super confused on why your work place would care about your home water heater.... makes more sense after you explain it
 
Also, dedicated persistence in answering questions tends to dilute your votes to answers ratio anyway.
 
I thought maybe majority of work place had experience a water heater malfunction to yield them not able to make it to work, thus causing productivity issues, thus you got a letter but eh...
 
@davidism I wish we had that kind of weather in Indiana. We only have 2 seasons. Way too cold and road construction...
 
3:24 PM
@MartijnPieters where can I get this Google juice? I'm looking for new emerging markets in my stock portfolio
 
@MartijnPieters More importantly, I'm one spot behind you on the top dupe hammer board: data.stackexchange.com/stackoverflow/query/425986/…
* for the past year
 
Google juice can only be extracted from the golden fruits that grow within the confines of the Google server farm
It is guarded by the biggest spider you can imagine. Try imagining it. No, not like that -- bigger.
 
This sounds like a really good movie idea...
 
cabbage
 
IMAX only, natch
Actually we might need those 360 degree screens they have at planetariums
 
DSM
3:33 PM
I don't even mind spiders, but giant spiders you need a planetarium screen for? Nope.
 
PLOT TWIST like the planetarium inside the Google Server Farm?
 
Quick question, creating a "email dev" option. Whats a good way to get similar functionality to a mailto: link? I dont want to assume they have outlook, but probably can do that.
 
@MattR So the spider was a projection all along... And Google would have gotten away with it, if it wasn't for you meddling kids
 
Perfect! I hadnt found that page yet. Thank you
 
how can I do this in python < 3.5?
myFunc(**my_dict, additional_parameter=1)
it says that can not add additional parameters after using **
 
3:40 PM
Are you calling the function or defining it?
 
hm... wait, I added it after, and it seems to work
calling
 
Oops I forgot that I uninstalled 2.7
 
the editor doesn't complain if I put the **dict at the end
 
Yeah conventionally it's good to put them at the end
 
well, conventionally in 3.5+
it seems to be mandatory prior to that version
 
3:44 PM
Sounds like you answered your question.
 
I did
because I read the error again, and it says "Python versions <3.5 do not allow keyword arguments after ** expressions"
> after
 
@ZackTarr I'm surprised Android, at least, if not Chrome itself, doesn't direct mailto towards the users default email app, or a list of their email options.
 
so I was like "ok, let's put it in the end :D"
worked
 
MGE
Hello, I have a txt file with this:
[[47000,47200,0],[47200,47400,0],[53800,54000,0]]
and I want to import it and use as List
like list = [[47000,47200,0],[47200,47400,0],[53800,54000,0]]
 
Thats what my goal was. I was trying to avoid something like this, http://2ality.com/2009/02/generate-emails-with-mailto-urls-and.html
But the link kevin found works perfect.
 
3:49 PM
@toonarmycaptain I think it does, and Zack was asking "how do I replicate the behavior of an HTML mailto link, in my application which does not exist in the browser?"
 
@MGE with open('data_file') as f: data = json.load(f)
 
@Kevin Fair enough, I misinterpreted slightly.
 
MGE
@davidism syntax error with as
need to import something?
 
DSM
.. how old a Python are you using?!
 
MGE
lol need to use with
haha, thanks
 
3:53 PM
Rule of thumb: imports can't change the syntactical structure of the language.
... At least until they implement from __past__ import print_statement
 
or from __future__ import braces
 
Python 3.7 will add the first Python 3 future statement.
 
Get on it, developers
 
DSM
@davidism: huh! What?
 
Oh wait, technically that happend with generator_stop in 3.5.
 
DSM
3:56 PM
(I agreed to give a cross-company intro to 3.7 in a while, so really I should be paying more attention.)
 
(•_•)
Looks like the __future__
( •_•)>⌐□-□.
is already here.
(⌐□_□)
11
 
@DSM 3.7 is changing annotations to be parsed lazily: python.org/dev/peps/pep-0563
from __future__ import annotations enables the behavior in Python 3, it's the default in Python 4.
 
@Kevin that lloks like a common joke here, isn't it?
 
Don't say "annotations" and "mandatory" in the same sentence in DSM's presence, please
 
DSM
Yeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahh!
That was a fortunate coincidence, where my scream can be interpreted as agreement with Kevin or celebration of Horatio!
Today's looking up.
 
3:59 PM
I also appreciated that.
 
MGE
@davidism if I want to save in the txt again with the list format? because with this it shows me an error that cannot save because is not string
 
I think that's the first acknowledgement that there will be a Python 4 as well.
 
MGE
with open('savetext.txt', 'w') as file_handler:
file_handler.write(prices)
 
@MGE read the docs for the json module.
 
MGE
@davidism okey thanks!
 
4:00 PM
@Neoares The putting-on-glasses emoticon sequence? Yes. Making a pun on the __future__ module and the phrase "the future is already here"? I haven't heard it before, but it's a simple enough gag that somebody probably thought of it already, sure
 
btw, in the starred comments it looks different
like, no pun at all
 
Yeah, I was just looking at that. I wonder if it would be code-formatted if I had inserted backticks?
 
DSM
Dunderbold!
 
_
with backslash
__future__
star that one to check
 
They usually don't render for multiline messages but maybe it renders it the same line as a single-line message in the star list
 
4:06 PM
nailed it
\_\_future\_\_
 
I have a problem with deep copy py2.7 when applied to an object, which is an instance of a class:

File "c:\Anaconda2\lib\copy_reg.py", line 93, in __newobj__
return cls.__new__(cls, *args)
TypeError: Call to rgb_color() with invalid arguments.
 
Testing...
backticks: `__future__`
backslash: \_\_future\_\_
End test
Yep, both work
 
but with backsticks it looks with a different font
 
The inconsistencies in chat markdown grow ever more mysterious.
 
which, in the case of this pun, makes sense
 
4:08 PM
@noumenal Interesting. Got an MCVE?
 
@Kevin Unfortunately this is a class in an external closed source library...
The class does have the following method:
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
 
Oh, I was going to say "if you're the one that defined the class, you can implement __copy__ and/or __deepcopy__ to have the correct behavior" but since you're locked out I guess that's not the easiest solution
 
Every class has those methods.
 
Yeah, I have been considering that...
I think I will just contact the maintainer for advice. But thanks!
 
4:38 PM
rb folks
 
@davidism I thought there was a promise that 4 comes after 3.9, nothing more
Why Python 4 won't be like Python 3: http://www.curiousefficiency.org/posts/2014/08/python-4000.html
Nick in 2014
> My current expectation is that Python 4.0 will merely be "the release that comes after Python 3.9". That's it.
So not even a promise
 
He walked it back just a bit: "the release after 3.9 will probably just be 3.10. However, a 4.0 will presumably still happen some day, and the premise of this article is expected to hold for that release: it will be held to the same backwards compatibility obligations as a Python 3.X to 3.X+1 update."
 
oooh, I missed that, thanks
 
4:54 PM
"4 comes after 3.9" is still, strictly speaking, true
 
of course the gist of it is probably the same: no breaking 4 to be expected
 
Yeah that's the important bit
Save that for Python 1.0.0.0
All versions numbers currently in use will be retconned as alpha releases, e.g. 0.3.6.3
 
5:09 PM
Looks like we have a kevin impostor stackoverflow.com/questions/48710817/…
 
Jan 16 at 19:12, by Kevin
Sep 8 '16 at 18:44, by Kevin
Jul 17 '14 at 13:52, by Kevin
All apparent Kevins are just the 3d cross-sections of a single four dimensional hyperKevin as it intersects our universe.
 
@Kevin What's your opinion on miegakure? Would that be a boring game for you?
 
I can't wait for it, I've been following it for years.
 
I've seen a video or two of it and while I very much admire the idea and implementation, I'm not sure that it would actually make a fun game
The higher-dimensional entity I claim to be a component of would probably find it about as entertaining as we'd find a 3d game, which is to say highly variable based on qualities not directly related to number of dimensions
 
@Aran-Fey wow. I never knew this existed. I want this too
 
5:18 PM
So you are in a 3d game then you can switch to what looks to be a 2d version? What exactly are they saying is the 4th dimension?
Im only going off of images and wikipedia. Work blocked that website sadly
 
You are always viewing a 3D slice of a 4D world. The 2D stuff is because the author uses it to explain the concept, 2D -> 3D is the same idea but easier to visualize.
 
Imagine you had to play Mario 64 but it would only render a two dimensional slice of the world. Not a two dimensional projection, but literally just the bodies that exactly intersect a single flat plane. It would make 90% of jumps impossible to judge.
 
@davidism I know, right. The development is way too yammin' slow!
 
Interesting. That would add a lot of possibilities in terms of the puzzle aspect Im sure
 
Hey, wondering if anyone could help me please. If I multi-thread a function, and that function calls other functions within it - will all the 'inner functions' also be multi-threaded with their own instances or can they cause errors and "overlap"?
 
5:22 PM
Mm, I'm imagining it as more frustrating than intriguing. In regular mario 64, you can see the entire level in a single frame. In sliced mario 64, you have to traverse the entire level from front to back before you know where everything is.
Miegakure would have the same restriction. The macguffin you're looking for might be six inches away from you in the Q dimension, but it won't appear unless you press the "move in Q direction" button on a blind guess
Granted there are a million ways the developer could ameliorate this. I dunno, like a radar that tells you how far away the macguffin is. If it reads "six inches" and it's not visible on the screen, then you'd know to search nearby Q slices.
 
Well, you can shift dimensions and look around to get an overview of the area. But it's true that you can't see everything at the same time.
 
@Kevin I'm waiting for the day where the quotes stacked up will cause the message to be just a column of chars :D
 
I would be so bad at this game haha. I would always forget that I can just switch between dimensions.
 
i.e. seeing only a 2d slice of the mario world isn't too bad if you can "rotate" the camera and look at the world from different angles
 
@ExamOrph The inner functions will all get their own independent local variables so you should be good
 
5:27 PM
@Kevin Thank you! You saved a newbie from much headache :)
 
FYI for anyone interested in the game, I'm pretty sure there's already physics software out that lets you play with a variety of 4D scenarios
I remember seeing it on Youtube. Tossing tesseractical dice and stacking hypercubes on top of one another and such
 
Yeah, it's from the same guy. He was procrastinating [citation needed].
 
@davidism sometimes I'm amazed at how long I've been waiting
oh, there's a new item in my rss feed from Miegakure, now I need to read the transcript to see if there was a connection or blind chance :P
 
He updated his blog in the last 24 hours, so
 
I remember the "4d equivalent of quaternions" post, that was posted in 2011
 
5:32 PM
@AndrasDeak Pure coincidence. I only noticed that the blog had been updated after I brought it up.
 
nice
how's that for synchronicity cc @DSM
 
Dev says that the puzzles are done, and only polishing remains: "my programming tasks will be small things like fix[ing] collision bugs"
"""small"""
 
Last mention of Mark Ten Bosch here: last June. Last blog post: last June. The next time both happens on the same day by accident
 
Collision bugs are hard enough when you're only doing them in 2d
 
I want to learn the word "sexagesimal"
 
5:35 PM
You do not have enough language merit badges to use that word
 
I'll just readjust my skill points. How much Social do I really need?
 
If you buy a case of Mountain Dew you can get a 2X multiplier on your merit badges for the next 24 hours
 
@AndrasDeak *Marc ten Bosch
 
5:58 PM
@Kevin That reminds me of the time Battlefield 1 put the 2x code on the outside of doritos bags. This lead to my friend who worked at a grocery store to go through and scan each bags code while he was stocking shelves. There was probably a lot of angry people once the found their code had been used.
 
As penance your friend must step barefooted on a lego
 
00:00 - 18:0018:00 - 00:00

« first day (2673 days earlier)      last day (2259 days later) »