« first day (1446 days earlier)      last day (3507 days later) » 

8:00 PM
Or whatever the space-stretching constant is
 
@Kevin I would avoid that for now, I made the world border relatively small, I think 4000x4000
Just so we wouldn't use up too much space exploring in one direction
*hard drive space
 
@davidism we got 192gb :)
cbg @MartijnPieters
 
@JonClements I think the mc server itself doesn't do well with very big worlds, although I've never run a server
 
mostly it comes down to RAM
 
4000x4000 blocks is a lot of space, the reddit servers can develop over about 50% of that space in 6 months
 
8:06 PM
but we've got 8gb
 
I'm trying to remember if strongholds generate 1000 units away from the origin, or 10,000.
 
is it common for classes to contain layers of classes? This seems a bit odd.
 
I have put a class in my class in the past, but only rarely.
hmm, maybe it was 3,000 units.
 
> All strongholds are located at random positions in a radius between 640 and 1152 blocks from the world's original spawn point
three strongholds per world
 
I'm looking at flask-SQLAlchemy, but trying to find the Base... maybe I'm doing this wrong to begin with
 
8:08 PM
@davidism without me logging in and checking - how much RAM is the MC server allowed?
 
@corvid Base is created in __init__ with make_declarative_base
no idea, but I haven't noticed any issues looking at htop while playing
java -Xms2G -Xmx2G -jar minecraft_server.1.8.jar nogui
I guess that either means 2G or 4G
 
@davidism is it possible to access the properties of it after initialization? Sounds like it's not
 
2gb
sufficient enough I think
 
@corvid yes, you can also change how it is created, see sopy.ext.sqlalchemy.SQLAlchemy
 
I see... I think I'm gonna break SQLAlchemy now :|
 
8:21 PM
So... let's say that I want to reuse the name of a local variable name in python without overwriting the old local variable. In C++ I would just open a new scope and do it. Is that a thing in python?
Or do I just make sure to use a different variable name?
 
New reddit mc pve world looks pretty: nerd.nu/maps/pve/live
@QuestionC C++ sounds like a confusing mess
Just name your variables unique things if they're in the same scope and you don't want to overwrite them.
 
assigning to a name in one scope should have no effect on variables in other scopes. I don't think Python has any nice way of defining a new scope, though.
 
inspired by this question, stackoverflow.com/questions/16254345/… I solved this problem stackoverflow.com/questions/26149692/… I'm not sure what was the best but I decided to create a self answered question
 
Even if and for blocks don't create a new scope.
 
maybe I should have simple answer to the original question
 
8:25 PM
Programming is a confusing mess.
I thought 'with' might be how Python people define scope, no clue.
Thanks though.
 
@QuestionC def() create new scope
@QuestionC class: also
 
(if you're trying to do strikethrough, that's three hyphens)
 
modules, functions, classes, and instances are each their own scope
 
DSM
like this?
 
@Kevin too late ;_;
 
DSM
8:27 PM
Neat!
Genexps and 3 listcomps too.
 
I can see tons of slight utility for this feature.
 
there's got to be a docs page for scope
 
user559633
@QuestionC no, with is a context manager.
 
that's why I removed my original statement, not all blocks create scope
 
8:47 PM
time to relax... rbrb()
 
cbg
@davidism classes don't really create a new scope
 
Yeah, it would be a namespace
 
when a method is called the class body is not a scope.
@DSM and set comps and dict comps everywhere.
 
In [1]: x = 1

In [2]: class Test:
   ...:     x = 2
   ...:     y = x + 1
   ...:

In [3]: Test.y
Out[3]: 3
 
DSM
I'd forgotten about 2.x non-listy comps.
 
8:59 PM
looks like a scope to me...
x in the class body is preferred over x in the global scope
 
just to make sure, the message will reach all of you: Ello, Goodbye
 
what is ello?
 
some social network everybody is crazy about these days
surely just a fad
like google+ only tech oriented people are jumping on it
 
@Ahmad read the article I linked above -- worth it
 
yup just did
 
DSM
9:07 PM
I can honestly say this is the first time I'd heard of it. But then I'm not on twitter or facebook or instainterest or whatever the kids are on these days.
 
except Ello had a lovely manifesto
a one we all truly want to believe
but one which will never come true
(sadly)
 
And yes, I knew they were funded by VC money :/ which is why I didn't sign up in the first place
ikr?
 
The people I know jumping on 'ello are so not tech people. More like... people who use a lot of social media.
 
@davidism Scopes are nested, but a class body is not.
 
9:09 PM
I still believe, if we want to build a real decentralised social network, we have to go P2P and OpenSource
3
 
^
 
and ofc that modell is not worth the money for a VC to fund it
 
very true that
 
> A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained within the defining one, unless a contained block introduces a different binding for the name.
 
@QuestionC I think Ahmad talked about "like Google+ which was for (and still is) tech people"
 
9:11 PM
> The scope of names defined in a class block is limited to the class block; it does not extend to the code blocks of methods – this includes generator expressions since they are implemented using a function scope.
> This means that the following will fail:
>
> class A:
> a = 42
> b = list(a + i for i in range(10))
hrmz, no code blocks in blockquotes..
 
Thanks, makes sense
 
but the a is not looked up in the class A namespace.
because it is not a scope as far as Python is concerned.
 
I just tried it with nested classes, the inner class picked up the global, not the nonlocal
 
9:29 PM
@davidism and @IntrepidBrit I think I have found the solution, chapter 18, which i haven't reached yet while reading.. djangobook.com/en/2.0/chapter18.html thanks everyone :)
 
@JoeSaad glad you figured it out
 
okay, knocking off.
rhubarb!
 
rbrb
 
rhubarb @MartijnPieters
btw @davidism I want to say thank you for encouraging me when I asked if it worth trying out Arch
I love it still, and even if I will use something else in the future (I have no plans for that) I just learned so much about the GNU/Linux system in a very short that is amazing
 
Yeah, it's nothing very complicated, but it gets you familiar with the file system, configuration, dependencies, and background programs that other distros try to hide away.
 
9:44 PM
@davidism exactly -- now everything is so clear to me and absolutely not frightening any more
I installed Arch on my Raspberry Pi as well (Arch Linux Arm [alarm])
it is working as it should be -- only my wifi dongle is not working..
I think I have to buy a new one :(
(even the devs of alarm couldn't help me to make it work -- which is strange as it was working under Raspbian)
anyway, I think I call it a night -- rhubarb folks
~
 
@PeterVaro if you don't care about size, get an alfa, something like this: amazon.com/Alfa-Network-Wireless-802-11g-AWUS036H/dp/B000WXSO76/…
or at least something with an atheros chip
 
10:46 PM
Hi all
 

« first day (1446 days earlier)      last day (3507 days later) »