« first day (2894 days earlier)      last day (2058 days later) » 

3:05 AM
parser = argparse.ArgumentParser(
                    formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# Data and model checkpoints directories
parser.add_argument('--data_dir', type=str, default='data/tinyshakespeare',
                    help='data directory containing input.txt with training examples')
how does this work in Python? it uses the arguments passed via the command prompt ?
[this](https://pastebin.com/kNDKkBPZ) is the code: I'm confused because this part of the code isn't inside any function
 
3:16 AM
Also, why am I getting this [error traceback](https://pastebin.com/vqhQSGiq) when calling `python sample.py` ?
(Using [this RNN](https://github.com/sherjilozair/char-rnn-tensorflow) repo)
Apparently this "wheel" thing (not sure what it is) is supposed to help with my issue, but I'm unsure how to install it. The instructions in the repo are unclear.
 
3:32 AM
requestString() is not working
name 'requeststring' is not defined
 
 
1 hour later…
4:43 AM
@poke Sorry, that's Aran-Fey's mega-question-and-self-answer on using super() which got closed and may get deleted. See its history.
 
5:07 AM
print(model.sample(sess, chars, vocab, args.n, args.prime,
                   args.sample).encode('utf-8'))
I'm getting stuff like this as output:
par un immeuble de ses frais par territourant mettre que le loy\xc3\xa9gataire\r\n\r\n1501. Toute faite, lesquels Si s\xe2\x80\x99il a exercer ou \xc3\xa0 l\xe2\x80\x99\xc3\x89tat \xc3\xa0 d\xc3\xa9faut n\xe2\x80\x99eppose, pour un tout n\xc3\xa9gl\xc3\xa9. Il peut le repreneur ou titre ne prouver et aux frais et sans ol au jugemnit\xc3\xa9e par le droit de tout, ententeur des communs,
notice the \xZZ all around? Shouldn't that be taken care of by the .encode('utf-8') ?
please ping me if you have an answer, I'm going to sleep, and didn't think this was good enough for an SO question (and couldn't find one about this problem neither)
 
5:32 AM
cbg
 
 
1 hour later…
6:34 AM
Cabbage.
 
6:44 AM
@payne That's odd. Are you sure there isn't a b' before that stuff? ;)
 
cbg-ning
 
7:22 AM
cabbage in the morning
 
 
1 hour later…
8:40 AM
The video of my PyConUK talk is up: youtu.be/3K0yGMxraAk
8
 
 
2 hours later…
10:50 AM
@MartijnPieters So is this the correct pronunciation of your name? youtu.be/NMLTkzyeanE?t=25s (00:25 sec to 00:30)
 
here's a [full transcript](https://pastebin.com/Zi11EycM). There indeed is a `b'` at the beginning.
Does displaying in a command prompt console mess with the encoding?
 
nvm, it is, you do pronounce it yourself at around the minute mark :-p
 
It's probably the correct english pronunciation, but not the correct dutch pronunciation
 
@payne The b' means that you're seeing the representation of a bytes string. You have the correct UTF-8 bytes in that bytes string. But print expects a text string, not bytes, and it will encode it itself. So don't encode it manually, let print do that for you. Of course, your terminal & Python environment need to be set up so that UTF-8 is the default encoding.
 
so I remove the .enconde('utf-8')and it should be alright?
 
11:02 AM
It should, if your system is set up to use UTF-8.
 
tesing it out
it worked O.O
 
Excellent. :)
 
Hey, I have to write a big assignment about subject of my choice and I choose AI. Now, I have to somehow connect this topic (AI) to marketing without it getting too difficult, as I have never done this before.

- What marketing problem can I solve with a simple neural network?
 
@PM2Ring see, that's why I'm affraid to start moving to 3. I just know how 2's encoding works and I fear adding 3's knowledge will scramble everything up.
 
recbg
 
11:09 AM
@Chillie Sorry, Python 2's Unicode handling is a horrible mess. Yes, it takes a little while to get used to the Python 3 way, but once you do, you will wonder how you managed to put up with the Python 2 insanity.
 
I've promised myself I'll start moving everything when this hits one year.
 
@Chillie I don't believe you.
 
^ seconded
 
I didn't say I've tried it...
 
json.dumps({'foo': '\xE4', 'bar': u'a'})
please tell me what this throws in Python 2 without running it
 
11:13 AM
The clear separation between text strings and bytes strings in Python 3 is its biggest feature, IMHO. The other stuff is nice, but the improved Unicode handling is the main reason to use Python 3, IMHO.
 
and I'll agree you do know your Python 2 encoding mess
well, you too ^ can try to guess it
of course the funny thing is that if you do
json.dumps({'foo': '\xc3\xb6', 'bar': u'a'}) what's the output? :D
how about
json.dumps({'foo': '\xc3\xb6', 'bar': u'a'}, ensure_ascii=False)
 
As has been said here numerous times, there is a ton of Py2 code out in the wild that allegedly handles Unicode, but it doesn't really work correctly. It handles anything in the 7 bit ASCII range fine, and it may look ok when using codepoints < 256 with certain encodings. But when those conditions aren't true, all hell breaks loose.
Python 2 lets you get away with that sort of stuff, but Python 3 will tell you straight up that you're doing the wrong thing. So some people think that Python 3 does Unicode wrongly, because they get all these errors when they try to port their code. But in fact, it's their old code that's the real problem.
 
I'll admit I have no idea what it'll throw, but I know what to do next and how to fix it. I'll feel like a helpless duckling if 3 throws me en encoding exception because I haven't spent the time accumulating that knowledge.
 
@Chillie python 3 will always throw an exception
Python 2 will throw an exception only when the phase of the moon is wrong
or someone has a nasty name. like @IljaEverilä
 
Rude! :D
 
11:22 AM
 
@Chillie I get what you're saying. Im a relative latecomer to Python 3: I jumped directly from 2.6 to 3.6. It was a bit scary at first, and I cursed the bytes vs text gotchas for a couple of weeks. But it didn't take me long to learn the new ways because they're actually much simpler.
 
cabbage
 
umm... I doubt I'll get a reply... so can anyone think of what the OP in stackoverflow.com/questions/52385280/… could think that's doing?
Bloomin' heck... has room 6 turned into a publishing company or something... davidism and Martijn doing stuff... :p
 
@smci Re: stackoverflow.com/questions/52383948/… Sure, you could do this with Decimal, but where's the fun in that? :) IMHO, it's a good exercise to do this using integer arithmetic. Python makes it easy with arbitrary precision integers. In Ancient Times, we had to do it using machine integers.
 
can someone help me deploying flask in apache with mod_wsgi? i have more than a month trying but cant :(
 
11:34 AM
@AndrasDeak Thanks, will keep that in mind in 3 months.
 
it's like a bandaid, better to rip it off with one swift movement than to brood about it for a long time ;)
better to hit the ground running
uuuh I'm running out of commonplaces
 
I wonder how "hit the ground running" came to be. Did people jump out of moving carts/trains/horses often enough?
Oh, military makes sence. Like when you parachute down.
 
Yeah... for some reason I've got "horses" in the back of my head...
 
Parachuting horses into the battlefield?
 
Someone must have asked that already on one of the SE English sites...
@roganjosh yeah that's it.... I was thinking of horse jumping/racing...
 
So yeah.... I was completely correct about horses then... :p
 
Being parachuted in to battle :P I do like the image though
 
I've started typing "This is such a good image for a pre-steampunk society!" but is a world with planes that could hold horses but no tanks believable?
 
blimps
 
Genious!
 
11:47 AM
I read an article a few years back that suggested the military was re-investigating blimps for battle
It just seems like the most ridiculous idea
 
"You can drop a mouse down a thousand-yard mine shaft; and, on arriving at the bottom, it gets a slight shock and walks away, provided that the ground is fairly soft. A rat is killed, a man is broken, a horse splashes." — J.B.S Haldane, On Being the Right Size
Q: Why aren't their many blind skydivers? A: It scares the hell out of their dog.
 
Hmmm, I wonder if it would be possible to hold a sufficient vacuum that gives more lift than helium. I imagine it would collapse too easily, that'd be a lot of external pressure
 
@roganjosh Galileo wondered the same thing. They tried to do it centuries ago, using copper, but it tends to collapse.
 
I think even now, we'd still hit a catch22 where the weight of the container rises faster than you could improve the vacuum
 
@roganjosh not really
 
11:52 AM
I don't know why they don't just use anti-gravity drives... I'm sure our @Kevin's got a prototype knocking about somewhere... :p
 
See this old XKCD forum thread: Vacuum Zeppelin
 
@roganjosh 1 mol of He <-> ~23 liters of He <-> 4 grams of He <-> 0.174 g/l of He <-> 174 g/m^3 He, this is what you can spare with a vacuum
so replacing He with a vacuum would give you roughly 175 grams of additional lift per m^3 of blimp buffer
 
But you wouldn't even be able to get close to that before it imploded
 
That's an engineering matter. We're already stuck on physics ;)
 
Even small vacuums exert huge external pressures on large cylinders
Haha, fair enough
 
11:56 AM
Actually, I've linked that thread here previously. Here's my contribution: forums.xkcd.com/viewtopic.php?t=13811&start=40#p2025145 :)
 
technically it's the outer atmosphere that exerts the pressure, but yeah
 
Yes sorry, but you knew what I meant :)
 
yup
 
I can't remember the equation of the top of my head but once upon a time I had to use it for reactor design. You end up with 6 inches of steel pretty quick :)
 
Isn't that a case where there's high pressure on the inside?
 
11:58 AM
No
Reactors are much more stable in that circumstance
 
What was the use case?
 
Think of the sides of a shaken coke can - they hold out well
 
I know, that's why I asked
 
but small pressure on an empty can will deform it really quickly
Evaporators can run under reduced pressure
 
not to harrass you but FYI you can edit chat messages for 2 minutes :P
 
12:00 PM
Yeah, habit sorry. I normally do
 
I've seen multiple gifs of "oops, forgot to open the valve on this tank truck" imploding
 
Helium is very common in the universe, but pretty rare down at the bottom of this gravity well. It's far too precious to waste on blimps. Hydrogen is fine, if you're careful with it.
 
You might be able to get better thermal efficiency in an evaporator if you run it under reduced pressure (in cases where energy for a small vacuum far outdoes the thermal input). In mixtures of liquids, it will also affect their relative evaporation
 
@PM2Ring "this is fine" -- captain of the Hindenburg
 
@PM2Ring umm... but I like a nice cosy proper burning fire in my blimp palaces :)
 
12:02 PM
If you're lucky enough, the walls are thin enough to crumple straight away, otherwise you wanna be getting well away from that thing :)
 
@roganjosh yeah, I understand
 
Is this like an experiment in Physics I remember at school... you had a metal petrol can, filled it with a bit of water at the bottom, then basically put it on the bunsen until it'd all evaporated, then put the lid tight back on and remove it from the heat... and then watch it basically crumple?
 
could be, and you can also make a beaker suck in a hard-boiled egg that way
 
Yes, hydrogen does get somewhat explosive when mixed with sufficient oxygen. But the idea is to make sure that doesn't happen. :) If you don't have an explosive mixture (2 parts hydrogen to 1 part oxygen, by volume) it will of course burn in the presence of oxygen, but it's pretty sedate. In fact, pure hydrogen that's leaking into the atmosphere can be dangerous because it can be burning and you don't know it's burning because the flame is virtually invisible.
 
Uuuuuh 2:1 H2:O2 is called "bang gas" in Hungarian, and it's anything but sedate en.wikipedia.org/wiki/Oxyhydrogen
oh you meant unless you have that mix, sorry
 
12:10 PM
I think the one we did was similar but petroleum in the bottom of a water cooler bottle, light it and watch it suck the egg in
As long as you saturate the atmosphere inside the bottle fully, you'll see a wall of fire descend down into the bottom
 
One of my pastimes in my teenage years was to make hydrogen and use it to fill soap bubbles. When you put a match to them they give a very gentle "pop" sound. Unless the hydrogen is mixed with air, in which case you get a much louder sound reminiscent of a dog's bark.
 
"Did I ever tell you about the time I lost 3 fingers and an eye?" :P
 
Once in my Chemistry class I spilled a load of bromine and they had to call the fire brigade
That was a fun day
 
Did you get bromine your clothes?
(here's hoping that you pronounce it as "brome-een")
 
I'm missing the pun :/
 
12:19 PM
it's not a good one :(
 
Shall we move swiftly on, save you having to also explain it? :P
 
@roganjosh it probably requires having Hungarian accent to be funny :D
 
in my defense I'm preparing for some teaching duties
 
@AnttiHaapala we'll go with that explanation :)
It seems strange looking back at school chemistry. We'd have just carried on at Uni. Stuff was exploding all the time. Once a reactor went off and blew the top out of the fume cupboard and they were just filming it. Incidentally, it was the same research group that admitted they were microwaving us for months in the office
 
@roganjosh as part of a government experiment into genetic mutations? :p
 
12:24 PM
no! Wait! Let's explore this. Assuming we got the pun that is either 'Brom in your clothes' which makes no sense or 'Bro in your clothes' which ignores the 'mmm' sound but this could have questionable interpretations or 'Bro mean your clothes' which is back to not making sense.
 
@JonClements thankfully it's non-ionising radiation. We just had crappy WiFi and reduced heating bills
 
No extra heads or anything then? How boring...
 
All this is an attempt to make @ad roll his eyes as he decides between further preparation of a days lecture or painfully explaining himself. If eyes were rolled then my goal was accomplished.
 
Single-mode microwaves are terrifying. Thankfully this was multimode. They were using single mode rays to blow concrete apart. Legitimately like some invisible death ray
 
Tom Van Baak, the time hacker responsible for leapsecond.com has a hydrogen maser, for when a caesium atomic clock just isn't good enough. :)
 
12:36 PM
Time keeping seems a little off. The "live" stream is from 2005. Although time does appear to fly, I think that was a little over 30 mins ago :P
 
Yeah. I get the feeling that some of those pages are no longer active. :) Still, he's got some nice toys.
 
I was probably copy/pasting some awesome HTML theme to my myspace around that time
 
And he doesn't just do electronic timekeeping, he also messes around with pendulums. His pendulum clocks are sufficiently sensitive that by comparing them to his more precise timepieces he can detect the effects of the tides on the local gravitational acceleration and hence on the pendulum period.
 
What terminology do I need to look for to do heat maps on custom shape/vectorised data... so like a heatmap for the world and countries, but in this case, it's a car park with parking bays that need the "heat"...
I'm guessing I can just use any shape file on whatever background and it's no different?
 
choropleth map?
seaborn.pydata.org/generated/seaborn.heatmap.html also has square-based heatmaps. The ones I've made in the past are based on point density more like this kind but I imagine you're not looking for those?
 
12:48 PM
I always forget about seaborn... if nothing else - it at least has non eye-jarring colours :)
 
On the shapefile side, I'm not overly sure sorry
Presumably it could be converted to a 2D matrix easily enough?
 
I know I've seen it done in d3.js... but don't think I particularly need to go that route...
 
@JonClements I would think so, plotting the background and plotting the heatmap should be independent
in mpl.basemap you'd plot the map and then plot against it whatever you want
 
There is also support.google.com/fusiontables/answer/1032332 that takes custom boundaries but I don't know if the format is suitable having it in a file
 
as far as I know you either need pyplot.pcolormesh (for regularly gridded data) or pyplot.contourf with a fine level resolution (for arbitrary data)
 
12:52 PM
Right... I don't do a lot of this stuff... is there a way... (this is how I'm envisaging it).... I have a canvas... of some sorts... and around that canvas at certain positions are certain "named" objects (in this case rectangles) that map to a field in a dataframe... when I heatmap those, it should affect the named rectanges in the canvas?
 
with pyplot you'd have to compute the positions of each rectangle and fill it with the appropriate data
meaning that if the rectangle or "parkbay1" would have to be plot with x_pb1, y_pb1, heat_pb1 where each array is 2d, first 2 as if from np.mgrid/np.ogrid
or have one big dataset with NaNs in the empty places, but I suspect the former is much more convenient for your purposes
 
The first is along the lines I'm thinking...
 
if you set the same vmin, vmax and cmap then multiple calls to pcolormesh or contourf will look as if it's the same single heatmap (and you can add a single colorbar at the end)
 
So if I create an SVG... put the rectangles in that... then I suppose... I could read in the XML for that SVG data to get the boundaries for the named rectangles? Then if anything needs changing or things move... I can move the rectangles in the svg editor etc...?
 
Uuuh, that sounds ew :P The way your data is given should already guide how you'll want to approach this. The heatmap can be definied in a large number of ways...
(but I have to leave soon so I'll leave you in the caring hands of roganjosh :P)
 
12:57 PM
Brace, brace, brace
 
@Andras I'm doomed then... that guy can't even remember to bring a poor, poor, starving puppy wuppy a simple extra large Gregg's sausage roll :p
 
hehe
 
Let me have a look at the choropleth implementation
That might give you a starting point even if the end format is slightly different
Looks like geopandas does what you envisaged. It will take a shapefile as input
 
Yeah... that looks like the route my head was taking me...
So if it's doing the plotting/mapping on shapes that happen to have a name of "borough" or whatever... I can create a shape file of the parking spaces instead... and then overlay it on a satellite photo or something.
 
Yep
In basemap you can pick the lat/long of each corner for a background image which helps with orientation. I'll have to look at how to do that in pyplot
 
1:11 PM
Don't forget the timeit's :)
 
So demanding... ! :)
Does it have to be responsive?
Like, properly smooth
 
yes... and served with a nice bit of pie'n'mash
 
If it has to be responsive I'm not sure matplotlib is the right library
 
Nope... it doesn't... it's fine... it's going in a powerpoint presentation :(
 
It tends to be quite slow at rendering, it might end up with a jarring effect
 
1:13 PM
But if you can make a 3d version for VR headsets that'd be awesome :p
 
Sure, np
There is always the free-hand square approach and colour-fill. Just sayin'
 
and since it's all quite boring... maybe add some NPC Zombies in there to spice it up?
 
Mmm, we may need to switch to pygame
 
@roganjosh the MS Paint approach to professional reporting? :p
 
With comic sans labels
They'd be all over that
Let me know if you start making progress with the geopandas approach and then we can look how to align the background. I have some stuff I need to be working on at the same time :/
 
1:17 PM
I've bookmarked stuff for now... I'm looking at other bits... just jotting down possible ideas I can use when I get to that one :)
 
I find heatmaps quite frustrating. It always seems to come down to needing combinations of things from different approaches to actually make what you want
Look cool though, when you get them right :)
 
But they are oh so lovely to look at!
 
There is that.... you get that "ooo!" moment and then everyone that's meant to be paying attention just starts picking at the free sandwiches and snacks again and thinking that it won't be much longer until the meeting's over :)
 
\o cbg
 
cbg
 
1:28 PM
cbg
https://stackoverflow.com/questions/25020451/no-activate-this-py-file-in-venv-pyvenv

i used this in my project, but when use from flask import Flask cant find the module
Do i need use from __file__ import Flask?
 
1:40 PM
Hmm, it's surprisingly hard to draw a curve that passes through a given collection of points. It takes math.ucla.edu/%7Ebaker/149.1.02w/handouts/dd_splines.pdf 15 pages to draw a squiggle that any ten year old could do in five seconds
 
cabbage cabbage
 
cbg
 
Sir Pupsalot!!!!!!! Got some new snacks for you
catch!
 
@JonClements I do suggest trying out contourf if your heatmaps are continuous enough. I always use those to visualize surfaces in2d.
And you don't need pixels for that
 
1:43 PM
quick change your brackets!!!!
lol
:P
 
@Kevin *a continuously differentiable curve ;) Connecting dots with lines is easy
Bonus points for minimal integrated curvature
 
print sys.path show only python2.7 libraries, how can change to 3.6?
 
Use python 3?
 
Have you installed it first?
 
If you're using Python 2.7, then naturally you won't be able to see any libraries that are exclusive to 3.6
 
1:47 PM
And did you check the dupe target?
 
If they were trivially intercompatible then they wouldn't have different numbers
 
pip install make_my_python_betterer should be a valid command
 
in my os i have python2.7 and 3.6
 
if you type python and it takes you to python2.7 it's pretty much the python name is aliased to python2.7
 
Rbrb :P
 
1:48 PM
if you type python3 it should take you to 3.6
 
in the virutalenv i have 3.6.5, when i run my script WITHOUT a virtuarlenv in syspath appear only 2.7, but if i activate the venv appear 3.6
 
yes, it seems like you need to configure your sys path then
all this makes sense
 
i want change to python 3.6
how can change to python3.6?
 
you're looking to set python3 as your default interpreter. Did you checkout the steps for that?
 
you can't change from python 2 to 3 on the fly
 
1:51 PM
I occasionally hear interesting idioms from users angrily pinging me about duplicates. "Do you have fruit on your neck?" is pretty good.
 
the problem is this
 
Something like this might help you -> askubuntu.com/questions/320996/…
but I suggest reading through that first before jumping in to it, and search around configurations like that to see what it is exactly you want to do on your system.
I take no responsibility for providing you with a configuration that ultimately puts your system in a state where you have what you don't want 😀
 
i can use python (python2.7), python3 (python 3.4.2) and python3.6(python 3.6.5)
can i only left python3.6 and remove others?
 
don't remove your default python
if you are on a *nix system, it is actually part of its fundamental OS functionality
 
if i use python3.6 app.py virutalenv works fine
 
1:53 PM
so do that
 
garlic
 
@VictorAlvarado you seem to have things configured exactly as they should be on your system
if you are looking for "python" to take you straight to python3 then look at the link I sent and read carefully to see if that is what oyu want
if you want to uninstall things, please look up how to uninstall python and follow those steps.
 
cabbage
 
It is not within the norms of this room to provide step-by-step system level instructions.
whaddup @Code-Apprentice
 
@LinuxUser welcome, please read our room rules: sopython.com/chatroom. Please use a paste service like dpaste.com for large blocks of code.
 
1:54 PM
sorry
This is my first time..
Didn't know that
Let me fix
 
@idjaw thanks a lot, know how can set "gunicorn --bind 0.0.0.0:5000" use python3.6 ?
 
@LinuxUser no worries. Welcome to the room
 
@AndrasDeak I'd just be happy with a blob that vaguely resembles the polygon I already have, except with rounder corners
 
@VictorAlvarado .... dude. Did you look this up at all?
 
I'm three sub-problems deep into this project that I thought would take fifteen minutes... I don't even know if I really need curve fitting.
 
1:56 PM
@VictorAlvarado unfortunately, it seems like chat is not going to get you the help you need. Please take your question to the appropriate main site. Be sure to include a minimal, complete, and verifiable example.
 
Really I just want to plot the closed path of a point on a torus that moves over the surface in an "interesting" way.
 
@VictorAlvarado we provided you with some information to get you started on configuring your system per what you are looking to do. From there, take your time to look up how to configure gunicorn. Per davidism's requirement, it would be beneficial to read how to put together the MCVE
 
@idjaw Just waking up and getting ready for the day. And you?
 
been here for 2 hours already.
found a funny bug in my bumpversion implementation. But, actually really happy with how I have it all configured
and my containerized testing and deployment in my CI
fun stuff
 
what's bumpversion? Is it for making releases?
 
2:01 PM
@Code-Apprentice -> github.com/peritus/bumpversion
it's mostly pretty neat. Python based, so even better 😃
 
@VictorAlvarado this isn't a good time for you to be posting more questions. Please review our previous messages and the room rules about what questions are appropriate in chat and take time to review things on your own for a while.
 
I have a flask app (using Python version 3.7) running on an Apache server (version 2.4), using mod_wsgi (version 4.6.4), and SQLAlchemy (1.2.11).

I am trying to get the value of REMOTE_USER variable in Python by:
`request.environ.get('REMOTE_USER')`

It is returning None

My apache virtual hosts configuration looks like this:
http://dpaste.com/019BYXT#
 
You set X-Remote-User, not REMOTE_USER.
 
Followed everything that is explained here as well
https://stackoverflow.com/questions/20994329/apache-how-to-get-remote-user-variable
 
Yup. was just gonna mention the same thing
per your config your env var is actually: X-Remote-User
 
2:04 PM
Print out request.environ and find the key you're looking for.
 
ohh. Thank you
Let me try that..
Will get back to you
 
@idjaw yah, that looks like a useful tool
 
@Code-Apprentice I can illustrate the pipeline I have configured for this if you're interested
 
@LinuxUser please stop typing one message on three lines.
 
@idjaw sure. Got a gist or something?
 
2:05 PM
@Code-Apprentice I'll put something together soon and ping you
 
idjaw, how did you get around that # issue you were hitting ?
 
oh the suspsense!
 
@Kevin you can try doing physics with arbirary acceleration
 
@MooingRawr I completely forgot that "====" does the same thing as #
😛
so that workaround worked out beautifully
 
2:06 PM
yes
 
z z z z z z z :D welp good enough I guess.
 
lol not as exciting as you were hoping for
haha
 
I was fully expecting some sort of next level hacking where you then become the good guy and get a pull request to fix the issue. But I guess keeping it simple works too.
 
Sep 11 '17 at 11:38, by Andras Deak
don't fix what ain't broken has a workaround
 
Can we hire you as our PM so you can implement that philosophy at my company :D ?
 
2:09 PM
@MooingRawr That would be interesting, but considering it uses ConfigParser under the hood, the pound sign in a ini file ends up being really hard to escape, especially since the main docs specify that a pound is omitted
 
But then again, work around is what is causing other issues atm so maybe nvm.
 
@idjaw what does \# do? Line continuation?
 
@idjaw I see... But that's why I was hoping for some next level hacking :\ oh well at least everyone is happier. Maybe next time you can flex.
 
@AndrasDeak Yeah I tried that...It ends up taking the \#
so it does the "escape" but then takes the \# with it...I tried then doing \\#
and no dice either 😛
it was smart at making my life difficult
 
I figured, but can't hurt to ask ;)
 
2:12 PM
request.environ.get('X-Remote-User') also returns None.
 
did you output all your env vars to see what is at your disposal
 
What does request.environ holds ? kevin'd
 
you could be dealing with a contextual issue as well where you are in a different context and don't have access to what you think you should have
 
@idjaw next up: "'#' works, guys how do I remove the '?"
 
😃
 
2:14 PM
Hmm, I don't actually need the curve to pass through the points I generated, because there's nothing special about those points. I just want to stitch together quadratic bezier curves so that they don't join at a sharp angle.
 
@Kevin acceleration!
dv = a*dt; dr = v*dt + a/2 dt**2
 
I think this algorithm works: for each point P in the polygon, locate the neighbor vertices of P, called O and Q. draw a bezier curve with control points [midpoint(O,P), P, P, midpoint(P,Q)].
 
@AndrasDeak I don't know why, but that just gave me a rush of exam anxiety
you academics.....
too much math....EWwWwWw
 
numbers idjaw, numbers what do they mean?!?!
 
I stopped numbering....I make the computer do my numbering. And even then, I keep it super simple. Tip calculation and interest rate charges
that's it. Get your curves, calculus and hibiddy jibiddy away from me
 
2:18 PM
This creates a curve that starts/ends at midpoint(O,P) and midpoint(P,Q). So this creates a continuous curve. Using P as the second control point ensures that the curve at midpoint(O,P) will be parallel to line segment OP. And by reflection, the curve drawn before this curve will also be parallel to that line segment at midpoint(O,P). So the curves have no sharp corners when stitched together.
 
If I ever meet you, I'm buying you a calculus text book, and if you run away from me, I will chase you waving the book screaming "love the hibiddy jibiddy!!"
 
What is a jibiddy and why is it hibiddy? :p
 
No clue, must be a regional thing.
 
The jibiddy exists where the hibiddy meets the bibiddy. But only when you solve the area under the curve
 
Ok. I don't see X-Remote-User variable in print(request.environ). Does that mean I am not setting Request Header properly?
If yes, then how to fix this?
 
2:20 PM
I'm hoping that if these control points are evenly distributed on the torus, the curve will also be. If such a thing is even a definable concept.
 
integrate the area under the curve between the hibiddy and the bibiddy. That is how you get your jibiddy. That is all folks. That is my math lesson for today
thank you for playing. QED Math
I just silenced the room. What do I win
 
Hmm, is "midpoint" even a well-defined concept on a torus?
There are multiple possible straight-line paths between two points, but I guess I can just iterate over all of them and pick the shortest one
 
@idjaw the awkward silence you've created!
 
@Kevin I saw some neat torus stuff the other day on Anders Sandberg's site: Torus Earth and Throwing balls on torus Earth. Anders is a regular on SE.Physics. He posted those links on this answer
 
I'm putting this up on my wall of achievements
 
2:31 PM
Download stats for Flask and Django are really weird this month. Normally they're both around 1.5 to 2 million. Last 30 days: 4.6 million for Flask, 2.3 million for Django.
 
Based on the number of users asking questions about Flask in this chat room and on the site (whenever I view new questions), I could believe Flask is slowly gaining on Django
 
Maybe because of the Talk Python session?
 
I wonder if they're being used as part of some Uni course since it's start of term
 
(very wishful thinking)
 
Maybe, but that much?!
 
2:33 PM
Up until this point I've just been drawing paths on a plane and then using modulus to project it onto a torus, but my closed-stitched-bezier-curve algorithm only works if the start and end coordinates are identical without modulus. Which is a pain in the butt because my start and end control points are only identical with modulus.
 
They fluctuate pretty regularly between one being on top by a small margin, I'm more surprised by the raw numbers.
 
I think to your point... Some event must of occurred that explains it.
 
@davidism Thanks for your help so far.
Is RequestHeader set X-Remote-User %{REMOTE_USER}s the correct way to set REMOTE_USER variable?
I am not seeing X-Remote-User variable in request.environ
 
I wonder if this and the article here had something to do with django/flask uplift
Do you get a breakdown of the OS downloaded for?
 
2:48 PM
'morning cabbage all
@davidism maybe the start of a MooC?
 
\o cbg Wayne how goes it
 
Re: our paradropping horses discussion. Would centaurs have parachutes on their human backs or their horse backs?
 
I think it would have to be a harness on their front horse shoulders
Otherwise they'd be well off-balance
And they can't hit the ground running if they don't have all legs landing around the same time
 
Hello, I want to write a lazy evaluator on an AST and I wonder the common practice in this case. I am afraid that if I use recursion too much, stack size may be a problem. So I am considering coroutine to reduce recursion, but I am not sure since the code repeats itself (= =| I know little about common practice here so sorry if I prove stupid)
 
I'm not convinced a human pelvic area could take the strain of holding up the entire lower half of a horse. So necessarily the parachute should be affixed closer to the center of gravity.
 
2:59 PM
@Thiner welcome, please read our room rules: sopython.com/chatroom. Please use a paste service like dpaste.com for large blocks of code.
 

« first day (2894 days earlier)      last day (2058 days later) »