« first day (2648 days earlier)      last day (2293 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
Hi, I know this is not an XML chat, but there is not chat for it, and Regex chat is "offline"
I'm writing/editing XML
But when I want to create a tag with an attribute that have Regex
That pattern always fail
How should I write regex in XML?
How can it be that patterns...
I'm trying to allow A-Z and 0-9 and &
If I do [A-Z0-9\&]* that fails.
:(
The XML is for Android Application.
 
You are in the Python room. What does this have to do with Python?
 
Sorry @MáximaAlekz but, asking for off-topic help is really frowned upon in general in other active rooms as well.
 
There is no room for XML
 
What can be term if i want to group post,put,delete?
Can anybody suggest me good technical term for this?
 
4:02 PM
Understood @MáximaAlekz . But, that does not mean that other language tags need to carry the burden of answering questions that have nothing to do with the language-room you are in
Please respect the room rules. If you want to test regex check out regex101.com
 
More than one people === more than zero answer.
 
DSM
"I know you're not an accountant, but I don't have one, and you're reading the business section so you must be interested in finance, so can you help me do my taxes?"
 
and fix my printer while you're at it since you're using a computer
 
@idjaw What's a computer?
 
4:04 PM
@JonClements It's the thing you get me to use to distract me to steal my snacks....
 
@MáximaAlekz in any event, maybe you're in that soft spot, where you could actually conceive writing a question for main. don't take this encouragement as a reason not to respect standard question quality guidelines.
 
@idjaw Indeed.... thanks again... they're yummy.... burps a bit
 
DSM
Maybe we should consider adding a few lines about off-topic questions to the room rules. We can discuss it at the GM!
 
@JonClements just don't take the chocolate ones, pup
@DSM we shall add it to the agenda
adds it to the agenda
can't find the agenda
 
awwww
I was almost about to say that this was incredibly constructive, as room description says
 
4:07 PM
@idjaw I won't... doesn't appear they're puppy friendly ones :*(
 
you can use them to distract my little ones. They are turning in to good spies for sneaky pups looking to steal snacks.
 
will you think of the puppies idjaw!?
 
I have human puppies. They're already giving me quite the challenge.
 
DSM
Where do we put the agendas? I was about to copy an older one and use it as a framework for the pending but couldn't find any on the wiki. Or is my search-fu failing me on a Monday morning?
 
Didn't we keep this on the site?
hmm
 
4:08 PM
Perhaps it's private
 
maybe on the trellolololo?
 
DSM
Oh, maybe.
.. but apparently not.
 
This is what happens when don't have enough meetings. We found the threshold of "not enough meetings"
I never thought we'd find it
 
DSM
Wait, maybe it was only ever put at the top of the transcripts, e.g. here
 
4:13 PM
daaaaaaw...tristan
pours a drink
 
morning cabbage
 
whaddup
 
not much. Just starting the work day
 
just came out of a meeting. I propose to rewrite a function because it was poorly written and didn't scale well, not to mention configuration is a nightmare. Boss ask if the function will work with the upcoming project as is. I told him it could but I don't think we should since it was created for another purpose. Boss asked what's the issue. I told him it's not pulling future date records and that we- Boss interrupted saying so there's no issue, just feed the date as 3000-01-01.
yay for hacky spaghetti mess...
 
we should just time warp to 3000 AD
all your legacy code will still be running and PHB will still be just as clueless
 
4:22 PM
I mean like... okie I don't think this company will survive 1000 year but really ? ... I guess he's is technically not wrong....
it does work but I feel dirty :\ need a shower
 
Hello
 
cbg
 
I could use a bit of help on how I get to review the current state of closure type variables (hope I'm phrasing myself correctly)... example:
def makeftn2(seq):
    def foo (y):
        return seq[0] + y
    return foo
z = [7, 8, 9]
m = makeftn2(z)
Assuming a lot has happened, and I'd like direct access to it from m, how could I reach z?
(view the z associated with m)
 
print(m.__closure__[0].cell_contents) # -> [7, 8, 9]
 
DSM
Aargh, the transcript page won't let me enter my notes without selecting a window, it seems. Maybe I'll just make a wiki page in the meantime.
 
4:27 PM
yeah let's keep it simple and easy to find for next time
 
Wonderful... I already reached the cell list of methods but missed the 'cell_contents' command
heh
is there a way to know that this data is bound to a variable that goes by the name 'z' ?
 
No
 
@ofer.sheffer Are you trying to determine if you have a variable called 'z' that holds some value, you want to know that the name is in fact 'z'?
I'm going to say No. But, also you probably can, but most definitely whatever method you find will most definitely be unconventional and not recommended
 
the main object is m, the function that has a binding to z.
 
oh so you are checking for an attribute in an object?
 
4:32 PM
if I do z[0]=30, then the z inside m will be changed.
if I reassign z (e.g. z=[2,3]), m will not know about it.
so... let us say, I have reassigned it... but want to go back and change it in m.
 
Time for the weekly discussion about how Python names work
 
and then there's a bug in the program... so I'd like to look for z and see what it is
 
well now I'm confused and stepping away because I'm confused.
 
(probably just zany ideas that shouldn't be done)
 
^^ exactly that
:)
 
4:34 PM
fair enough... an exploration for times of need.
thanks for the help.
 
try to keep it simple
if you are in a scenario where you are nesting "things" and deep inside that nesting you all of a sudden need to start tearing things apart to analyze particulars, you might need to take a step back and think about whether you really need to be going that deep.
 
DSM
Okay, I made a wiki page for the pending general. Closer to the meeting date we can pin an announcement for people to add their topics, and then pin the invitation.
 
thanks for doing that
is it on the sopython site?
 
Looks great @DSM. Thanks again
 
4:46 PM
So.. it seems pycharm uses tabs shivers by default when indenting code. Are python users... also tab users!!!!!?????!!!!!1111111
is the python standard in favor of tabs!!!!?????
 
there are two kinds of people: people who use spaces, and cannon fodder.
fight me
 
I'm totally with you
 
@idjaw <drops gloves and stick>
 
oh it's on Maple Leaf
 
DSM
I'm a little surprised that pycharm would default to tab indentation.
 
4:49 PM
better hide your beard if you have it
 
lol
I do have a beard too
 
tabbery is winnery.
 
1600 UTC = 21 1100 EST ? hmm I think I can make it
 
@DSM with reason, I'm obviously retarded and probably hit a key that gave me the impression it went all four characters to the right.
I swear to god, it seemed to skip a whole tab when pressing right key
 
Since SO's survey didn't ask a tab vs 4 spaces question, can we ask that in the meeting ?
 
DSM
4:51 PM
@MooingRawr: other direction, I think.
 
ah no, it's because the backspace key deletes whole 4 space characters.
intredasting...
 
@DSM thanks I don't do time zone well :( should have googled it lack of research from me.
 
just keep everything in UTC and call it a day
 
that seems local to pycharm, other jetbrains delete one character at a time from indentation
 
DSM
Sep 9 '14 at 23:00, by DSM
The world would indeed be a better place if everyone used Mountain Standard everywhere. Plus it has the best name.
 
4:55 PM
I will change my stand on UTC for mountain
adjourned
 
I added a link to WolframAlpha that converts UTC time to local time
Fizzy used to do it for previous meetings: sopython.com/transcript/6/summer-2015-general-meeting
 
Cbg, all
 
5:13 PM
hey holden!
 
Yo!
 
cbg
 
cabbages
will this weird feeling saying that disappear after a while?
It seems the terminal is "overriden" with the python venv I configured at project creation, yet I can't seem to find how to get a "normal" shell back. I see this (venv) N:\projects\python\learnding>. "bash" and "zsh" do not seem to be valid commands in it (somewhat logically I guess).
I try to use git add -i, which venv git's version does not seem to support?
 
5:30 PM
venv's git?
if that was a simple venv, something like deactivate should give you a normal shell (in linux)
 
yes, indeed, it does \o/
ta!
 
but my hunch is that a python venv shouldn't mess with non-python things, so that might not fix your git problem
 
well... apparently it does. I must have configured something wrong
 
Or it might be pycharm, or something I didn't think of. I'm glad it's working now :)
 
DSM
5:32 PM
@AndrasDeak: "Az utolsó Jedik" is not a phrase I expected to see today
 
blech, Hungarian movie titles creep me out
 
DSM
?
 
We have the worst habits of messing up title translations. At least this one is an accurate translation (although by linguistic necessity it breaks the singular/plural ambiguity of "jedi" in the original title).
funnily, "The Return of the Jedi" was translated to "The Return of the Jedi [you know that single one jedi]"
and no, the Hungarian title was in Hungarian
Anyway, my disdain is due to gems such as the title of the Alien series. Alien = "The eighth passenger: Death". Aliens = "The name of the planet: Death". Alien 3 = "The final solution: Death". Alien 4 = "Death resurrected"
there's a same thing for the Die Hard series... it's just so annoying
 
DSM
What's the Hungarian just for "alien"?
 
Andras
that was way too easy
 
5:42 PM
:|
 
I love you too
 
best translation is "idegen" which also means "foreign" or "foreign person" (just like alien)
 
coincidentally, I just saw Alien Covenant this weekend. It wasn't terrible, albeit some cliches
 
yeah, that's similar to our impressions
 
DSM
I don't mind "the eighth passenger: Death". It has a certain old-school appeal.
 
5:45 PM
Oh, a more recent example: the movie "The Help" was translated as "The Help [as in the noun created from the verb help rather than a noun for a servant]", because the translator only knew the one meaning of the verb. Incidentally, the result is completely nonsense in Hungarian
 
DSM
I've actually only seen the first half of Covenant. I should get around to finishing it. It was okay.
@AndrasDeak: oh, so it reads more like "The Assistance"?
 
yeah, that's pretty accurate
 
co-workers tell me a lot about horrible movie title translations in to French (from France)
 
Oh, "idegen" (the word for alien) also means stranger. So I guess stranger things could be sewn into the "...: Death" translation scheme :P
 
In English, "alien" also means "strange" (as an adjective). For a "stranger" I see at the grocery store, I wouldn't use "alien", though.
 
DSM
6:00 PM
Depends on the number of eyestalks, I guess.
 
 
1 hour later…
7:06 PM
@DSM yeah... gotta avoid those alien crabs in the fish section...
 
cbg - what's with the change of picture? :)
 
Ah, just taking a break from it. Love L though, he'll be making a comeback soon ;)
Though I've noticed more of my answers are better received since the removal. I wonder what correlation avatars have with votes and rep
 
8:00 PM
cbg - Does anyone have any libraries that allow you to run AutoHotKey functions in a python script? Ive looked at one called PAHK but am not sure if it will do what I need. Looking to explore my options. Thanks!
 
8:25 PM
@PeterVaro link
 
Hi there!
I have a question
I got a tkinter gui that is for reading files word by word. And I have implemented changing label with text. The matter is how to stop text changing (and save the position) and how to regulate the speed. Thank you.
 
@БеляковаАнастасия Have you posted a question on the main site? We likely will need to see your code for your question. Which would be better placed on the main site.
 
No, have not.
Sorry, a bit large.
 
How can you even program that without knowing how to regulate the speed?
ctrl+c, ctrl+v?
 
8:32 PM
Well, I am just learning
 
@БеляковаАнастасия use an external paste tool sopython.com/chatroom
 
You can look into the time.sleep function possibly to regulate it. Not sure without looking at the code. Past a link so we can view.
 
uh, no, time.sleep is a terrible idea in combination with a gui
 
Right after I said it I though of that. Yes disregard. Thats my bad!
 
besides, there's already a mechanism in place that updates the label every so often. Changing the speed is just a matter of changing an argument to a function.
 
8:35 PM
@Rawing Yep, just didnt think my comment through before clicking enter. Rookie mistake on my part.
 
Actually the change may be during the text run. while the function actually runs
And how to stop changing text?
 
How often are you trying to get it to refresh the text?
 
I want the speed to be changeble
from this graphic window
 
I'm confused... this code works, but I don't know why
master.after(1000, label.configure(text=i)) looks like the typical rookie mistake, yet somehow it doesn't prevent the program from working
 
@Rawing Whats the typical mistake? Just curious. Trying to learn some :D
 
8:40 PM
@Rawing Thanks for noting. What is wrong with that?
 
What you're doing there is calling label.configure(text=i), which returns None. So that line is effectively master.after(1000, None).
What you should be doing is passing a function object to master.after (instead of None)
 
Thank you.
This is great.
How can I break this for loop in show_text() from tkinter window?
 
@JohanLarsson I'm not really in the mood for that, sorry :) It is promising though, I may listen to it later.. Nowadays I'm mostly into stuff like this: youtu.be/tERRFWuYG48
 
nice one
 
afternoon cabbage
 
8:48 PM
@БеляковаАнастасия Here's a small showcase for you: dpaste.com/06G3R55
 
@JohanLarsson and on the other side of the spectrum, tunes like this: youtu.be/22Jt3N5sTCk
 
@PeterVaro I can't understand what he is singing but he can sure tinkle the ivories and has a reasonable voice.
 
@Rawing This is really awesome!
 
@Code-Apprentice me neither, that's the beauty of it I guess :) but here's one you may do: youtu.be/QxUcmf8PI4o ;)
 
 
1 hour later…
9:58 PM
Hi, I have this function in PHP
`function($v) use($key,$find) { return $v[$key] == $find; }`
It's a anonymous function, but in Python how can I do "use" PHP function?...
It's confusing for me.
So, I go to PHP group to ask how the code will be in Python?
What the heck.
 
Oops. Misread. You're looking for lambda functions.
 
What's the connection between PHP and python here? Why call a php function from python?
 
All I know is variable = lambda x: x
But, multiline is missing...
Multi-parameter is missing(?)
 
lambda x, y: ...
 
I wanna make a callback for filter's Python function but with lambda just let me write one line code.
...
 
10:02 PM
So the question is just "how do I define a function in python"?
 
No, the question is "How do I create a (multiline) callback function in Python?"
 
What's the difference?
 
Callback is not like a normal function.
In Python.
 
How so?
 
lambda functinos.
functions.
Is not really the same.
 
10:03 PM
You can't make a multiline lambda function. So use a normal function instead.
 
Well, I'll try.
Thank you
 
I have a django example form I've been following from a tutorial. You select an item in a list to "favorite", and then when you submit it redirects to the page but adds a favorite icon to the item. So it's spread between 3-4 files and a sqlite db
My issue is that the form doesn't update the db
html:

<h1>{{album.album_title}} </h1>
<h2>{{album.artist}} </h2>

{% if error_message %}
<p><strong> {{error_message}} </strong></p>
{% endif %}

<form postaction="{% url 'music:favorite' album.id %}" method="post">
{% csrf_token %}
{% for song in album.song_set.all %}
<input type="radio" id="song{{forloop.counter}}" name="song" value="{{song.id}}" />
<label for="song{{forloop.counter}}">
<span>{{song.song_title}}
{% if song.is_favorite %}
<img src="http://i.imgur.com/b9b13Rd.png" />
{% endif %}
I've also tried action="{}"
 
10:21 PM
I think none of our django users (which we don't have many of) are online at the moment, sorry
 
I use django a bit, can you post your "music:favorite" view code?
 
I'm honestly not sure who of our regulars knows how much django
Besides, it's probably easier to ask your question on SO than trying to snipe our django experts
*looks at the mess up there* We could use some late-night ROs, couldn't we?
 
well it's not late night in the Americas :)
 
there we go, wanted the whole file to make things work
 
10:32 PM
@AndrasDeak I'll recommend you for the position of late-night/american afternoon RO, you're always online :D
 
details is the page that redirects to favorites btw
 
Oh no, not more reasons to make his head bigger
Jk, I'm sure you'd make a great RO, Andras ;) I'm actually surprised you're not yet.
 
anything seem dysfunctional to you @AndrasDeak?
 
@Rawing hehe, thanks, but I'm not sure that's necessary:) We have plenty of room owners in the US/Canada timezones. And I don't think my abrasive style and views are something that should represent the sopython community, plus I'm still a python noob :D And I'm so happy having a dozen people on my ignore list, and not worrying about baggage when I speak my mind :P I'm exclusively a room owner in non-moderated rooms (plus the fact that I'm the loudest doesn't mean anything)
@Skyler I don't know any django, but now your code is presented in a way that when someone who knows it arrives, they'll be able to assess it
 
@cᴏʟᴅsᴘᴇᴇᴅ The thing is, you can never be too careful when selecting ROs. For all you know, he might go mad and abuse his new powers. I couldn't blame him, either. Some of the RO powers are just so tempting, you know?
Jul 25 '17 at 14:59, by Kevin
The RO powers are: Kick user, move message, margarita delivery via drone
I'd press the yam out of that "margarita delivery" button.
 
10:39 PM
Wow. Where do I sign up?
 
I've never had margaritas. Let meg google that.
 
I guess I should add the urls.py for good measure then
 
blech, no thanks :D
29 mins ago, by Rawing
https://stackoverflow.com/help/mcve
 
On a srs note, on what criteria are ROs selected?
 
@AndrasDeak does mcve work for something like this, it has db, django dependencies, etc
 
10:41 PM
probably a secret vote by current ROs following a last-man-standing kind of deathmatch of all candidates
@Skyler MCVE is a completely general concept. You have a problem, you need to present it with as much information as needed to answer it, but not more because anything in excess just makes debugging/understanding more difficult and wastes time.
 
@Skyler I think I got it, try casting request.POST["song"] to int.
 
Whenever you ask for help in whatever field of life, MCVE or equivalent is what you should start with. What is your situation, what does it do, what should it do instead. Do all the work you can for the person who you're asking help from.
 
Oh, they're elected? Ah, so, they work like moderator elections.
 
except mods aren't chosen by mods
 
And I'm guessing following the same protocols as moderator elections, and held with no set schedule
@Rawing Entrusting someone with power is the fastest way to figure out whether they're capable of handling it or not. OTOH, disastrous if you didn't make the right choice
 
10:47 PM
Surprisingly difficult to find information about RO-ship. Don't quote me on this, but I think every RO has the power to make another user a RO; with or without election
 
that is correct
and to de-RO anyone
 
@internet_user hmm, tried int(request.POST['song']) that and it did nothing
 
elections or any other process is simply by local customs
 
14
A: How are the SO Python chat room owners chosen?

KevinIt seems that moderation is quite hands-off when it comes to chat rooms. A room with no active room owners will eventually be appointed a new one automatically. In exceptional circumstances, a room owner may be removed by moderators , although I have only found a single public instance of this. O...

 
@internet_user or didyou mean typecasting the stuff in the request such that request.POST[int('song')], trying that now
nope, that didn't work either
 
@vaultah Thanks. That last criterium tho
Hmm, around what time UTC do automated voting rollbacks occur? I'm pretty sure it happens around a particular time, but I forget.
 
@internet_user got an error now actually
thats for typecasting in the request
 
11:32 PM
@cᴏʟᴅsᴘᴇᴇᴅ that's not really an issue here considering the exceptional mod/user ratio ;)
 
00:00 - 16:0016:00 - 00:00

« first day (2648 days earlier)      last day (2293 days later) »