workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
might be worht asking on github
2018-02-05T10:52:04.000324
Micki
pythondev_help_Micki_2018-02-05T10:52:04.000324
1,517,827,924.000324
32,924
pythondev
help
<@Maya> you have a say a `User` table which has a column `timezone`, then you store all your dates as `Date` objects in your database at UTC (doing the conversion from whatever timezone they come from). Then when you’re loading you can do a filter `get me everything between startDate and endDate` and then convert those...
2018-02-05T10:52:26.000582
Jama
pythondev_help_Jama_2018-02-05T10:52:26.000582
1,517,827,946.000582
32,925
pythondev
help
<@Maya> `arrow` is a datetime library with some really nice timezone conversions
2018-02-05T10:52:35.000623
Porsha
pythondev_help_Porsha_2018-02-05T10:52:35.000623
1,517,827,955.000623
32,926
pythondev
help
yea - roger that. I tried that last week, and it wasn't working. Maybe I just need to look with fresh eyes. Thanks man :slightly_smiling_face:
2018-02-05T10:52:52.000163
Hayden
pythondev_help_Hayden_2018-02-05T10:52:52.000163
1,517,827,972.000163
32,927
pythondev
help
<@Maya> <http://arrow.readthedocs.io/en/latest/>
2018-02-05T10:53:07.000351
Porsha
pythondev_help_Porsha_2018-02-05T10:53:07.000351
1,517,827,987.000351
32,928
pythondev
help
feel free to share if you get an error
2018-02-05T10:53:11.000393
Micki
pythondev_help_Micki_2018-02-05T10:53:11.000393
1,517,827,991.000393
32,929
pythondev
help
Problem: I currently have an api pipeline: <https://github.com/OperationCode/operation_code_pybot/tree/master/ocbot/pipeline> Pipeline works like this. We get a formatted event from slack, depending on the type of event we route it to the correct `routeHandler` inside `/handlers`. Inside a specific handler we: 1. Pre...
2018-02-05T11:01:34.000800
Emmett
pythondev_help_Emmett_2018-02-05T11:01:34.000800
1,517,828,494.0008
32,930
pythondev
help
a threaded response isn't much different than a regular response
2018-02-05T11:03:29.000666
Micki
pythondev_help_Micki_2018-02-05T11:03:29.000666
1,517,828,609.000666
32,931
pythondev
help
or you would like to do both ?
2018-02-05T11:03:58.000246
Micki
pythondev_help_Micki_2018-02-05T11:03:58.000246
1,517,828,638.000246
32,932
pythondev
help
I need to do both
2018-02-05T11:04:12.000212
Emmett
pythondev_help_Emmett_2018-02-05T11:04:12.000212
1,517,828,652.000212
32,933
pythondev
help
I have the data for both after I call the database, but I need the message id from the slack response for a message so I can thread it.
2018-02-05T11:04:46.000726
Emmett
pythondev_help_Emmett_2018-02-05T11:04:46.000726
1,517,828,686.000726
32,934
pythondev
help
so you want to thread not on the incoming message but on the message your bot post ?
2018-02-05T11:05:12.000542
Micki
pythondev_help_Micki_2018-02-05T11:05:12.000542
1,517,828,712.000542
32,935
pythondev
help
Yes.
2018-02-05T11:05:18.000184
Emmett
pythondev_help_Emmett_2018-02-05T11:05:18.000184
1,517,828,718.000184
32,936
pythondev
help
well then you need to post the first msg and do that afterwards
2018-02-05T11:05:39.000612
Micki
pythondev_help_Micki_2018-02-05T11:05:39.000612
1,517,828,739.000612
32,937
pythondev
help
Context: summary in the main message: full text in the thread (which can be large).
2018-02-05T11:05:40.000112
Emmett
pythondev_help_Emmett_2018-02-05T11:05:40.000112
1,517,828,740.000112
32,938
pythondev
help
does `external_router` returns something ?
2018-02-05T11:06:22.000827
Micki
pythondev_help_Micki_2018-02-05T11:06:22.000827
1,517,828,782.000827
32,939
pythondev
help
maybe you get the your message id there
2018-02-05T11:06:34.000335
Micki
pythondev_help_Micki_2018-02-05T11:06:34.000335
1,517,828,794.000335
32,940
pythondev
help
yeah the json from response
2018-02-05T11:07:26.000331
Emmett
pythondev_help_Emmett_2018-02-05T11:07:26.000331
1,517,828,846.000331
32,941
pythondev
help
you could add a step in your pipeline for after the message is sent. When you want to check the slack response
2018-02-05T11:07:48.000478
Micki
pythondev_help_Micki_2018-02-05T11:07:48.000478
1,517,828,868.000478
32,942
pythondev
help
in this case to send a new message but it could be for anything else
2018-02-05T11:08:02.000540
Micki
pythondev_help_Micki_2018-02-05T11:08:02.000540
1,517,828,882.00054
32,943
pythondev
help
Can you use a snippet to get syntax highlighting?
2018-02-05T11:10:36.000476
Emmett
pythondev_help_Emmett_2018-02-05T11:10:36.000476
1,517,829,036.000476
32,944
pythondev
help
because you’re not actually saving anything
2018-02-05T11:11:20.000177
Floy
pythondev_help_Floy_2018-02-05T11:11:20.000177
1,517,829,080.000177
32,945
pythondev
help
just filter
2018-02-05T11:11:21.000823
Floy
pythondev_help_Floy_2018-02-05T11:11:21.000823
1,517,829,081.000823
32,946
pythondev
help
in essence, no insert or update in the db, just a select query
2018-02-05T11:11:33.000606
Floy
pythondev_help_Floy_2018-02-05T11:11:33.000606
1,517,829,093.000606
32,947
pythondev
help
i thought the update() function did that.
2018-02-05T11:11:41.000151
Adelina
pythondev_help_Adelina_2018-02-05T11:11:41.000151
1,517,829,101.000151
32,948
pythondev
help
ah, nevermind
2018-02-05T11:11:42.000039
Floy
pythondev_help_Floy_2018-02-05T11:11:42.000039
1,517,829,102.000039
32,949
pythondev
help
i’m using update to avoid an infinite loop caused by the `post_save` signal
2018-02-05T11:12:08.000253
Adelina
pythondev_help_Adelina_2018-02-05T11:12:08.000253
1,517,829,128.000253
32,950
pythondev
help
gotcha
2018-02-05T11:12:11.000544
Floy
pythondev_help_Floy_2018-02-05T11:12:11.000544
1,517,829,131.000544
32,951
pythondev
help
yes
2018-02-05T11:12:13.000333
Micki
pythondev_help_Micki_2018-02-05T11:12:13.000333
1,517,829,133.000333
32,952
pythondev
help
Like many things, it *was working :slightly_smiling_face:
2018-02-05T11:12:35.000323
Adelina
pythondev_help_Adelina_2018-02-05T11:12:35.000323
1,517,829,155.000323
32,953
pythondev
help
<@Floy> I ended up just having to use `libapache2-mod-wsgi` as I had no idea what to do, and it was working with it before and its what it says on the flask documentation, but why on earth the author of `mod_wsgi` told me not to I have no idea :thinking_face:
2018-02-05T11:14:58.000400
Milo
pythondev_help_Milo_2018-02-05T11:14:58.000400
1,517,829,298.0004
32,954
pythondev
help
are you using python 2 or 3
2018-02-05T11:16:07.000675
Floy
pythondev_help_Floy_2018-02-05T11:16:07.000675
1,517,829,367.000675
32,955
pythondev
help
<@Adelina> did it change after adding the signals? it’s been a while since i’ve done it but I believe mixing signals and the `filter`, `update` syntax can cause issues. also that syntax shouldn’t be emitting `post_save`
2018-02-05T11:20:19.000057
Brande
pythondev_help_Brande_2018-02-05T11:20:19.000057
1,517,829,619.000057
32,956
pythondev
help
3, sorry meant to say `libapache2-mod-wsgi-py3`
2018-02-05T11:21:37.000826
Milo
pythondev_help_Milo_2018-02-05T11:21:37.000826
1,517,829,697.000826
32,957
pythondev
help
<@Brande> I think I just found the error. My loop is giving me None, ZZZ, None - like it should. I need to restructure the loop to save the items not in the db outside the loop. The last value given to message is None
2018-02-05T11:22:02.000574
Adelina
pythondev_help_Adelina_2018-02-05T11:22:02.000574
1,517,829,722.000574
32,958
pythondev
help
<@Brande> I found when I was using save() I was getting an infinite loop - maybe that’s what a `dispatch uid` is for - to make the signal run once.
2018-02-05T11:23:02.000557
Adelina
pythondev_help_Adelina_2018-02-05T11:23:02.000557
1,517,829,782.000557
32,959
pythondev
help
yeah `save()` will emit `post_save` but `update()` won’t
2018-02-05T11:23:31.000472
Brande
pythondev_help_Brande_2018-02-05T11:23:31.000472
1,517,829,811.000472
32,960
pythondev
help
`dispatch_uid` is to allow you to differentiate between the same signal type coming from something else
2018-02-05T11:26:27.000386
Brande
pythondev_help_Brande_2018-02-05T11:26:27.000386
1,517,829,987.000386
32,961
pythondev
help
<@Adelina> yeah if you want to build up the errors you shouldn’t blow away the previous info in your `else` clause
2018-02-05T11:30:08.000170
Brande
pythondev_help_Brande_2018-02-05T11:30:08.000170
1,517,830,208.00017
32,962
pythondev
help
Thanks!
2018-02-05T11:30:42.000564
Adelina
pythondev_help_Adelina_2018-02-05T11:30:42.000564
1,517,830,242.000564
32,963
pythondev
help
In flask when running a select/inner join query is it possible to change the value of the data from the model temporarily for display purposes? As at the moment I have to convert the data from to a dictionary and then pass it to the template. But I want to be able to just pass the model data to the form that is being g...
2018-02-05T11:38:58.000429
Milo
pythondev_help_Milo_2018-02-05T11:38:58.000429
1,517,830,738.000429
32,964
pythondev
help
<@Milo> what are you using to get data from the database? flask is just the webserver, and there are a few ways to interface with the DB
2018-02-05T11:40:08.000032
Brande
pythondev_help_Brande_2018-02-05T11:40:08.000032
1,517,830,808.000032
32,965
pythondev
help
flask sql alchemy
2018-02-05T11:40:22.000828
Milo
pythondev_help_Milo_2018-02-05T11:40:22.000828
1,517,830,822.000828
32,966
pythondev
help
currently I have this within my view; ``` rows = Master.query.filter( ((Master.relevant == 1) | (Master.relevant == 0)), ((Master.displayed == 0) | (Master.displayed == 1)), Master.sent == 0, Master.date &gt;= '2017-12-31 23:59:59').order_by(Master.date.desc()) def object_as_dic...
2018-02-05T11:40:56.000606
Milo
pythondev_help_Milo_2018-02-05T11:40:56.000606
1,517,830,856.000606
32,967
pythondev
help
but I want to maybe run this query in my `forms.py` then pass the data to my template
2018-02-05T11:41:46.000652
Milo
pythondev_help_Milo_2018-02-05T11:41:46.000652
1,517,830,906.000652
32,968
pythondev
help
&gt; run the query in forms.py pls don't
2018-02-05T11:42:33.000347
Barney
pythondev_help_Barney_2018-02-05T11:42:33.000347
1,517,830,953.000347
32,969
pythondev
help
oh ok! Where should I run it?
2018-02-05T11:42:57.000322
Milo
pythondev_help_Milo_2018-02-05T11:42:57.000322
1,517,830,977.000322
32,970
pythondev
help
I found this snippet, this is the kind of thing I want to do, but now after <@Barney> comment not sure if this is good practice? <http://flask.pocoo.org/snippets/60/>
2018-02-05T11:55:38.000692
Milo
pythondev_help_Milo_2018-02-05T11:55:38.000692
1,517,831,738.000692
32,971
pythondev
help
you can use wtforms-sqlalchemy if you wish
2018-02-05T12:04:58.000808
Barney
pythondev_help_Barney_2018-02-05T12:04:58.000808
1,517,832,298.000808
32,972
pythondev
help
it's nice and helpful, and will save you time
2018-02-05T12:05:11.000335
Barney
pythondev_help_Barney_2018-02-05T12:05:11.000335
1,517,832,311.000335
32,973
pythondev
help
but I'm not fond of running queries in forms.py
2018-02-05T12:05:43.000434
Barney
pythondev_help_Barney_2018-02-05T12:05:43.000434
1,517,832,343.000434
32,974
pythondev
help
cool, I think I was misunderstanding the `wtf-forms` bit, I guess what I am trying to do is something like this; <https://stackoverflow.com/a/3859771/3416725>
2018-02-05T12:13:17.000572
Milo
pythondev_help_Milo_2018-02-05T12:13:17.000572
1,517,832,797.000572
32,975
pythondev
help
<#C0JB9ATQV|data_science>
2018-02-05T12:13:22.000503
Lorelei
pythondev_help_Lorelei_2018-02-05T12:13:22.000503
1,517,832,802.000503
32,976
pythondev
help
but was getting confused on where to store my long query as my boss want the `__init__.py` module to be clean
2018-02-05T12:14:16.000620
Milo
pythondev_help_Milo_2018-02-05T12:14:16.000620
1,517,832,856.00062
32,977
pythondev
help
also other issue, is changing some values from the model proves to be difficult unless I convert it to a dictionary
2018-02-05T12:15:38.000410
Milo
pythondev_help_Milo_2018-02-05T12:15:38.000410
1,517,832,938.00041
32,978
pythondev
help
Would it be a good idea to keep my queries in a separate module? Or within the model class it self?
2018-02-05T12:18:32.000550
Milo
pythondev_help_Milo_2018-02-05T12:18:32.000550
1,517,833,112.00055
32,979
pythondev
help
&gt; changing some values from the model proves to be difficult unless I convert it to a dictionary
2018-02-05T12:37:42.000146
Barney
pythondev_help_Barney_2018-02-05T12:37:42.000146
1,517,834,262.000146
32,980
pythondev
help
First of all, do you really need to change anything on the model (formatting things before showing them to an end-user doesn't count, it's ok)
2018-02-05T12:38:16.000339
Barney
pythondev_help_Barney_2018-02-05T12:38:16.000339
1,517,834,296.000339
32,981
pythondev
help
Because chances are you don't really need to do this and this will simplify your views a great deal
2018-02-05T12:39:00.000049
Barney
pythondev_help_Barney_2018-02-05T12:39:00.000049
1,517,834,340.000049
32,982
pythondev
help
Hey, I don't have a Python question but I'm hoping someone might be able to answer a java question on a conceptual level, is it ok to post?
2018-02-05T12:42:49.000751
Winifred
pythondev_help_Winifred_2018-02-05T12:42:49.000751
1,517,834,569.000751
32,983
pythondev
help
might as well. A number of people here work in java or have experience
2018-02-05T12:44:19.000104
Floy
pythondev_help_Floy_2018-02-05T12:44:19.000104
1,517,834,659.000104
32,984
pythondev
help
I'll try to break down my question because I'm not too expert with java but also the package I'm using isn't common and it seems like there's no more support for it (it's a work thing). <https://github.com/tail-f-systems/JNC/blob/master/jnc/src/com/tailf/jnc/NetconfSession.java> So, on line 1565 I'm trying to change wi...
2018-02-05T12:47:09.000668
Winifred
pythondev_help_Winifred_2018-02-05T12:47:09.000668
1,517,834,829.000668
32,985
pythondev
help
hmm
2018-02-05T12:51:50.000576
Floy
pythondev_help_Floy_2018-02-05T12:51:50.000576
1,517,835,110.000576
32,986
pythondev
help
this is a bit of a conundrum. I’ve come across similar instances with this, primarily using Google Web Toolkit widgets that needed more customization than the framework devs were comfortable in granting
2018-02-05T12:52:29.000554
Floy
pythondev_help_Floy_2018-02-05T12:52:29.000554
1,517,835,149.000554
32,987
pythondev
help
the solution then was to basically have a package in the project with a similar package structure as the original project, and copy the source `.java` file and make the modifications there
2018-02-05T12:53:17.000047
Floy
pythondev_help_Floy_2018-02-05T12:53:17.000047
1,517,835,197.000047
32,988
pythondev
help
then when it came time to integrate it with the overall project, rather than importing and using the third party class, we instead used the modified version
2018-02-05T12:53:55.000200
Floy
pythondev_help_Floy_2018-02-05T12:53:55.000200
1,517,835,235.0002
32,989
pythondev
help
its been a while since I’ve done Java, but can’t you inherit from that class and override?
2018-02-05T12:55:10.000203
Floy
pythondev_help_Floy_2018-02-05T12:55:10.000203
1,517,835,310.000203
32,990
pythondev
help
maybe not. the JLS says that private variables are not available in the subclass
2018-02-05T12:56:27.000499
Floy
pythondev_help_Floy_2018-02-05T12:56:27.000499
1,517,835,387.000499
32,991
pythondev
help
but nothing about package-private
2018-02-05T12:56:38.000062
Floy
pythondev_help_Floy_2018-02-05T12:56:38.000062
1,517,835,398.000062
32,992
pythondev
help
<@Floy> oh I get it, create a package in the suite I'm doing my work stuff in and try to get the important stuff. I tried extending the class linked by doing something like class MyExtendedClass extends NerconfSession. I ran into problems when the package had package protected or private (maybe even protected?) level...
2018-02-05T12:56:58.000163
Winifred
pythondev_help_Winifred_2018-02-05T12:56:58.000163
1,517,835,418.000163
32,993
pythondev
help
:disappointed:
2018-02-05T12:57:15.000446
Floy
pythondev_help_Floy_2018-02-05T12:57:15.000446
1,517,835,435.000446
32,994
pythondev
help
the case I had to deal with were due to `final` modifiers
2018-02-05T12:57:37.000599
Floy
pythondev_help_Floy_2018-02-05T12:57:37.000599
1,517,835,457.000599
32,995
pythondev
help
which gave a similar headache
2018-02-05T12:57:45.000741
Floy
pythondev_help_Floy_2018-02-05T12:57:45.000741
1,517,835,465.000741
32,996
pythondev
help
I've been banging my head on this, but mainly because I was given a task with no context so it took me days to figure out "dude, what do you want and why are you asking me to do this?" And then "oh, wait I can't change it and I see what's going on" on Friday. They didn't weren't keen on being available for questions. :...
2018-02-05T12:58:41.000753
Winifred
pythondev_help_Winifred_2018-02-05T12:58:41.000753
1,517,835,521.000753
32,997
pythondev
help
is this a common thing at your office
2018-02-05T12:59:25.000467
Floy
pythondev_help_Floy_2018-02-05T12:59:25.000467
1,517,835,565.000467
32,998
pythondev
help
Yes.
2018-02-05T12:59:30.000054
Winifred
pythondev_help_Winifred_2018-02-05T12:59:30.000054
1,517,835,570.000054
32,999
pythondev
help
It's annoying because they may expect me to be there helping them for hours, then I ask them something and they hide at best, RTFM at worst.
2018-02-05T13:00:03.000779
Winifred
pythondev_help_Winifred_2018-02-05T13:00:03.000779
1,517,835,603.000779
33,000
pythondev
help
<https://giphy.com/gifs/homer-simpson-the-simpsons-bush-4pMX5rJ4PYAEM>
2018-02-05T13:00:10.000537
Floy
pythondev_help_Floy_2018-02-05T13:00:10.000537
1,517,835,610.000537
33,001
pythondev
help
would be my reaction
2018-02-05T13:00:15.000089
Floy
pythondev_help_Floy_2018-02-05T13:00:15.000089
1,517,835,615.000089
33,002
pythondev
help
as in… ok, I’ll look for another job
2018-02-05T13:00:23.000295
Floy
pythondev_help_Floy_2018-02-05T13:00:23.000295
1,517,835,623.000295
33,003
pythondev
help
oh boy
2018-02-05T13:02:32.000017
Floy
pythondev_help_Floy_2018-02-05T13:02:32.000017
1,517,835,752.000017
33,004
pythondev
help
eject, eject, eject
2018-02-05T13:02:41.000603
Floy
pythondev_help_Floy_2018-02-05T13:02:41.000603
1,517,835,761.000603
33,005
pythondev
help
good luck :smile:
2018-02-05T13:02:52.000101
Floy
pythondev_help_Floy_2018-02-05T13:02:52.000101
1,517,835,772.000101
33,006
pythondev
help
It seems like most beginners get a whole lot of guidance on the job. I've been in more sink-or-swim situations career-wise and that really can slow me down so I thought being at a bigger office would prevent that.
2018-02-05T13:02:59.000616
Winifred
pythondev_help_Winifred_2018-02-05T13:02:59.000616
1,517,835,779.000616
33,007
pythondev
help
it can
2018-02-05T13:03:12.000103
Floy
pythondev_help_Floy_2018-02-05T13:03:12.000103
1,517,835,792.000103
33,008
pythondev
help
but it all comes down to workplace environment
2018-02-05T13:03:17.000641
Floy
pythondev_help_Floy_2018-02-05T13:03:17.000641
1,517,835,797.000641
33,009
pythondev
help
your situation would make sense for a mid to senior dev
2018-02-05T13:03:46.000042
Floy
pythondev_help_Floy_2018-02-05T13:03:46.000042
1,517,835,826.000042
33,010
pythondev
help
<https://github.com/GalvanizeOpenSource/developer-standards>
2018-02-05T13:04:08.000372
Floy
pythondev_help_Floy_2018-02-05T13:04:08.000372
1,517,835,848.000372
33,011
pythondev
help
check that out, its a pretty good breakdown of what you can be expected know and do at given levels
2018-02-05T13:04:29.000092
Floy
pythondev_help_Floy_2018-02-05T13:04:29.000092
1,517,835,869.000092
33,012
pythondev
help
I think so too regarding senior and mid level. Junior developer jobs seem to be more people than jobs from what I've seen. I've sure wanted something stable for a long time because I can get things done, but I don't want to do things this way. I'll look into that.
2018-02-05T13:04:59.000499
Winifred
pythondev_help_Winifred_2018-02-05T13:04:59.000499
1,517,835,899.000499
33,013
pythondev
help
"top engineers don't know how to use version control" wow
2018-02-05T13:05:04.000086
Garrett
pythondev_help_Garrett_2018-02-05T13:05:04.000086
1,517,835,904.000086
33,014
pythondev
help
Thank you!
2018-02-05T13:05:04.000245
Winifred
pythondev_help_Winifred_2018-02-05T13:05:04.000245
1,517,835,904.000245
33,015
pythondev
help
The commit messages they have at work drive me nuts. Every single one of them is more or less "this is a commit"
2018-02-05T13:05:30.000435
Winifred
pythondev_help_Winifred_2018-02-05T13:05:30.000435
1,517,835,930.000435
33,016
pythondev
help
hahaha
2018-02-05T13:05:37.000128
Garrett
pythondev_help_Garrett_2018-02-05T13:05:37.000128
1,517,835,937.000128
33,017
pythondev
help
_really?_ it's a commit? i would have never guessed
2018-02-05T13:05:48.000044
Garrett
pythondev_help_Garrett_2018-02-05T13:05:48.000044
1,517,835,948.000044
33,018
pythondev
help
Then they're like go look at my pull request and I'm like. -stares intensely- what are you trying to tell me to look out for?
2018-02-05T13:06:04.000060
Winifred
pythondev_help_Winifred_2018-02-05T13:06:04.000060
1,517,835,964.00006
33,019
pythondev
help
apparently mind reading was left out on the job requirements list
2018-02-05T13:06:28.000316
Floy
pythondev_help_Floy_2018-02-05T13:06:28.000316
1,517,835,988.000316
33,020
pythondev
help
It really has been left out on the requirements. Sometimes they get ballistic over me asking a question. I'm like no, I want help.
2018-02-05T13:06:52.000129
Winifred
pythondev_help_Winifred_2018-02-05T13:06:52.000129
1,517,836,012.000129
33,021
pythondev
help
Or they will be like ok, I'll help you. -doesn't show up-
2018-02-05T13:07:24.000214
Winifred
pythondev_help_Winifred_2018-02-05T13:07:24.000214
1,517,836,044.000214
33,022
pythondev
help
<https://media.giphy.com/media/HCWxjRZ1L3DAQ/giphy.gif>
2018-02-05T13:07:31.000437
Floy
pythondev_help_Floy_2018-02-05T13:07:31.000437
1,517,836,051.000437
33,023