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
Thank you
2017-11-11T16:42:04.000099
Therese
pythondev_help_Therese_2017-11-11T16:42:04.000099
1,510,418,524.000099
100,103
pythondev
help
or via dm
2017-11-11T16:42:29.000060
Ciera
pythondev_help_Ciera_2017-11-11T16:42:29.000060
1,510,418,549.00006
100,104
pythondev
help
Ohhh, *no* web scraping library!?!??? Huh
2017-11-11T17:11:02.000014
Seema
pythondev_help_Seema_2017-11-11T17:11:02.000014
1,510,420,262.000014
100,105
pythondev
help
Sounds like a job interview/contract application/theft of code #bitternotbitter
2017-11-11T17:13:33.000023
Seema
pythondev_help_Seema_2017-11-11T17:13:33.000023
1,510,420,413.000023
100,106
pythondev
help
If I have a millisecond timestamp like ```1510350300027``` and I use ```datetime.datetime.fromtimestamp(ms/1000.0)``` i get a datetime in my local time. Is there a way I can convert the millisecond timestamp straight to UTC or whatever preferred timezone? Or do i need to create the datetime object first, and then do it...
2017-11-11T23:12:25.000048
Wonda
pythondev_help_Wonda_2017-11-11T23:12:25.000048
1,510,441,945.000048
100,107
pythondev
help
where ``` ms = 1510350300027```
2017-11-11T23:12:50.000069
Wonda
pythondev_help_Wonda_2017-11-11T23:12:50.000069
1,510,441,970.000069
100,108
pythondev
help
OK, I found a way to do it. Not sure if it's the 'right' way, but if I create a timedelta object i.e. ```td = datetime.timedelta(hours=11)``` I can then minus that from the original. to get the UTC time. Alternatively I can use datetime.datetime.utcfromtimestamp(ms/1000.0) and then add that timedelta object. Both work...
2017-11-12T00:20:48.000049
Wonda
pythondev_help_Wonda_2017-11-12T00:20:48.000049
1,510,446,048.000049
100,109
pythondev
help
<@Wonda> a timestamp has no notion of timezone. so it is in whatever timezone you are in essentially. though if you know you got it from someone with a -8 timezone, you could adjust it that way. without plugins, you could do what you did then change the time delta. But i would checkout the `pytz` module. it makes worki...
2017-11-12T00:28:11.000018
Bruno
pythondev_help_Bruno_2017-11-12T00:28:11.000018
1,510,446,491.000018
100,110
pythondev
help
<@Bruno> cool. will check out pytz. It seems when it comes to times/dates there are many different ways to do things!
2017-11-12T01:15:34.000034
Wonda
pythondev_help_Wonda_2017-11-12T01:15:34.000034
1,510,449,334.000034
100,111
pythondev
help
yea. libs like that, mostly just make it easier to do a lot of things with builtin datetimes
2017-11-12T01:24:25.000023
Bruno
pythondev_help_Bruno_2017-11-12T01:24:25.000023
1,510,449,865.000023
100,112
pythondev
help
This is parts of my API response
2017-11-12T05:07:24.000004
Carroll
pythondev_help_Carroll_2017-11-12T05:07:24.000004
1,510,463,244.000004
100,113
pythondev
help
How can I parse that time to a HH:MM:SS format?
2017-11-12T05:08:07.000018
Carroll
pythondev_help_Carroll_2017-11-12T05:08:07.000018
1,510,463,287.000018
100,114
pythondev
help
Still quite new to Python :slightly_smiling_face:
2017-11-12T05:08:15.000048
Carroll
pythondev_help_Carroll_2017-11-12T05:08:15.000048
1,510,463,295.000048
100,115
pythondev
help
the /1000 is to change the resolution to normal epoch resolution
2017-11-12T05:15:09.000097
Jama
pythondev_help_Jama_2017-11-12T05:15:09.000097
1,510,463,709.000097
100,116
pythondev
help
time.ctime(1510480071570/1000.0)
2017-11-12T05:15:20.000042
Jama
pythondev_help_Jama_2017-11-12T05:15:20.000042
1,510,463,720.000042
100,117
pythondev
help
I can't use timedelta here?
2017-11-12T05:18:59.000003
Carroll
pythondev_help_Carroll_2017-11-12T05:18:59.000003
1,510,463,939.000003
100,118
pythondev
help
Works good thanks :stuck_out_tongue:
2017-11-12T05:20:33.000021
Carroll
pythondev_help_Carroll_2017-11-12T05:20:33.000021
1,510,464,033.000021
100,119
pythondev
help
<@Meg> do you have any idea what can i do else?
2017-11-12T07:50:59.000026
Georgetta
pythondev_help_Georgetta_2017-11-12T07:50:59.000026
1,510,473,059.000026
100,120
pythondev
help
make a report on the django users google group?
2017-11-12T07:53:49.000043
Meg
pythondev_help_Meg_2017-11-12T07:53:49.000043
1,510,473,229.000043
100,121
pythondev
help
Hi, in my project I have a model called Project and a view where you can see those projects. My problem is, I don't know how to set up the view so that I can have rows with two objects per row (I'm using bootstrap and it looks nice that way)
2017-11-12T12:55:51.000094
Lorean
pythondev_help_Lorean_2017-11-12T12:55:51.000094
1,510,491,351.000094
100,122
pythondev
help
Maybe I should specify that I'm using Django
2017-11-12T12:57:14.000018
Lorean
pythondev_help_Lorean_2017-11-12T12:57:14.000018
1,510,491,434.000018
100,123
pythondev
help
How can I integrate React with Django? Which package is the best for the integration? I want to show model data to front-end.
2017-11-12T14:45:08.000016
Charisse
pythondev_help_Charisse_2017-11-12T14:45:08.000016
1,510,497,908.000016
100,124
pythondev
help
Hey Peeps, Have a question, I am parsing some json which looks like the following: ``` [{"id": 0, "title": "AAABBBCCC"} {"id": 1, "title": "SSSBBBEEE"} {"id": 2, "title": "KKKBBBFFF"} {"id": 3, "title": "KKKFFFGGG"}] ``` This is stored as a simple list containing multiple dictionary objects. From here, my next step is ...
2017-11-12T15:49:25.000077
Leanna
pythondev_help_Leanna_2017-11-12T15:49:25.000077
1,510,501,765.000077
100,125
pythondev
help
what I would do is make a class, and add in the id and title to the class on init. Implement your comparison algorithm as a method. eg, `def levenshtein` that takes in a string and returns the edit distance
2017-11-12T17:10:51.000049
Meg
pythondev_help_Meg_2017-11-12T17:10:51.000049
1,510,506,651.000049
100,126
pythondev
help
so you can initialize a list of instances, and then filter it by the result of the edit distances
2017-11-12T17:11:20.000091
Meg
pythondev_help_Meg_2017-11-12T17:11:20.000091
1,510,506,680.000091
100,127
pythondev
help
They was a package highlighted in Talk Python to Me recently that does this exact thing and even more complex stuff like William for Bill and McDonalds and MCDONALD'S , bahhh!!!!, cannot remember the package. (I'm stuck shopping for kids clothes so I'll go see if I can find it)
2017-11-12T18:17:42.000008
Seema
pythondev_help_Seema_2017-11-12T18:17:42.000008
1,510,510,662.000008
100,128
pythondev
help
Bah, it might not to be such a good for you though it might provide inspiration , <https://github.com/datamade/probablepeople/blob/master/README.md>
2017-11-12T18:21:40.000042
Seema
pythondev_help_Seema_2017-11-12T18:21:40.000042
1,510,510,900.000042
100,129
pythondev
help
So trying to install pip but was directed to download get-pip.py does it matter where I run that? It says I should have it installed (I am running Python 3) but tried to run a module install in cmd and nothing happened.
2017-11-12T23:32:52.000140
Louie
pythondev_help_Louie_2017-11-12T23:32:52.000140
1,510,529,572.00014
100,130
pythondev
help
<@Charisse> I don't know of any package which integrates react with django directly, are you trying to make a SPA? or is it for smaller parts of the site?
2017-11-13T03:57:18.000253
Vada
pythondev_help_Vada_2017-11-13T03:57:18.000253
1,510,545,438.000253
100,131
pythondev
help
hi!! Is there anyone who had setup Apache Hbase???
2017-11-13T04:13:20.000311
Jenee
pythondev_help_Jenee_2017-11-13T04:13:20.000311
1,510,546,400.000311
100,132
pythondev
help
Hi <@Louie>, are you still having issues?
2017-11-13T04:58:32.000253
Fabiola
pythondev_help_Fabiola_2017-11-13T04:58:32.000253
1,510,549,112.000253
100,133
pythondev
help
Hi, I'm using `paramiko` lib and for some reason, when I copy &gt;50 MB file, system just hags, copy process is stopped
2017-11-13T09:50:05.000212
Chaya
pythondev_help_Chaya_2017-11-13T09:50:05.000212
1,510,566,605.000212
100,134
pythondev
help
not sure why
2017-11-13T09:50:20.000379
Chaya
pythondev_help_Chaya_2017-11-13T09:50:20.000379
1,510,566,620.000379
100,135
pythondev
help
code:
2017-11-13T09:50:58.000634
Chaya
pythondev_help_Chaya_2017-11-13T09:50:58.000634
1,510,566,658.000634
100,136
pythondev
help
```import paramiko host = "ip" port = 22 # Auth password = "aaa" username = "kusssnd17" try: t = paramiko.Transport((host, port)) t.connect(username=username, password=password) sftp = paramiko.SFTPClient.from_transport(t) sftp.open('/file', '/file') finally: t.close()```
2017-11-13T09:51:01.000059
Chaya
pythondev_help_Chaya_2017-11-13T09:51:01.000059
1,510,566,661.000059
100,137
pythondev
help
You need to add the except block
2017-11-13T09:52:11.000394
Elsie
pythondev_help_Elsie_2017-11-13T09:52:11.000394
1,510,566,731.000394
100,138
pythondev
help
yes, but still having same issue
2017-11-13T09:54:21.000483
Chaya
pythondev_help_Chaya_2017-11-13T09:54:21.000483
1,510,566,861.000483
100,139
pythondev
help
not sure why, but copying for some reason stops at 28MB
2017-11-13T09:54:40.000655
Chaya
pythondev_help_Chaya_2017-11-13T09:54:40.000655
1,510,566,880.000655
100,140
pythondev
help
and no exception is raised?
2017-11-13T09:58:27.000106
Junita
pythondev_help_Junita_2017-11-13T09:58:27.000106
1,510,567,107.000106
100,141
pythondev
help
nope, just process is hanging
2017-11-13T10:03:39.000047
Chaya
pythondev_help_Chaya_2017-11-13T10:03:39.000047
1,510,567,419.000047
100,142
pythondev
help
Are there any connections to the remote host?
2017-11-13T10:07:42.000601
Kent
pythondev_help_Kent_2017-11-13T10:07:42.000601
1,510,567,662.000601
100,143
pythondev
help
yes
2017-11-13T10:08:15.000495
Chaya
pythondev_help_Chaya_2017-11-13T10:08:15.000495
1,510,567,695.000495
100,144
pythondev
help
maybe the connection is just hanging. I have no idea if `paramiko` is built to handle these types of files transfer
2017-11-13T10:08:28.000442
Ciera
pythondev_help_Ciera_2017-11-13T10:08:28.000442
1,510,567,708.000442
100,145
pythondev
help
works fine with scp
2017-11-13T10:08:50.000621
Chaya
pythondev_help_Chaya_2017-11-13T10:08:50.000621
1,510,567,730.000621
100,146
pythondev
help
28MB isn’t very big though. are you sure any data at all is being transferred? Are you seeing the first 28MB of the file on the remote server or something?
2017-11-13T10:11:45.000844
Junita
pythondev_help_Junita_2017-11-13T10:11:45.000844
1,510,567,905.000844
100,147
pythondev
help
also, do you see anything of interest when turning on logging?
2017-11-13T10:13:05.000238
Junita
pythondev_help_Junita_2017-11-13T10:13:05.000238
1,510,567,985.000238
100,148
pythondev
help
I'm running `$ watch -d ls -lah` command on local machine(copying file from remote), and can see, that copy process hangs, when file reaches 28MB
2017-11-13T10:13:35.000208
Chaya
pythondev_help_Chaya_2017-11-13T10:13:35.000208
1,510,568,015.000208
100,149
pythondev
help
how can I turn on logging?
2017-11-13T10:14:11.000534
Chaya
pythondev_help_Chaya_2017-11-13T10:14:11.000534
1,510,568,051.000534
100,150
pythondev
help
I am pretty sure `import logging; logging.getLogger('paramiko').setLevel(logging.WARN)` will work
2017-11-13T10:15:16.000325
Junita
pythondev_help_Junita_2017-11-13T10:15:16.000325
1,510,568,116.000325
100,151
pythondev
help
you can even put it on `DEBUG` directly
2017-11-13T10:15:42.000032
Ciera
pythondev_help_Ciera_2017-11-13T10:15:42.000032
1,510,568,142.000032
100,152
pythondev
help
sorry, thats `WARNING`
2017-11-13T10:15:43.000170
Junita
pythondev_help_Junita_2017-11-13T10:15:43.000170
1,510,568,143.00017
100,153
pythondev
help
Ok, checking it right now
2017-11-13T10:16:31.000570
Chaya
pythondev_help_Chaya_2017-11-13T10:16:31.000570
1,510,568,191.00057
100,154
pythondev
help
or I guess ramp it up to debug, although I’d hope it’d print some sort of error message if it were having a problem
2017-11-13T10:16:51.000300
Junita
pythondev_help_Junita_2017-11-13T10:16:51.000300
1,510,568,211.0003
100,155
pythondev
help
`No handlers could be found for logger "paramiko.transport"`
2017-11-13T10:16:52.000572
Chaya
pythondev_help_Chaya_2017-11-13T10:16:52.000572
1,510,568,212.000572
100,156
pythondev
help
is it printing out logs otherwise?
2017-11-13T10:17:53.000467
Junita
pythondev_help_Junita_2017-11-13T10:17:53.000467
1,510,568,273.000467
100,157
pythondev
help
no logs, just `No handlers...`
2017-11-13T10:18:18.000120
Chaya
pythondev_help_Chaya_2017-11-13T10:18:18.000120
1,510,568,298.00012
100,158
pythondev
help
message
2017-11-13T10:18:22.000430
Chaya
pythondev_help_Chaya_2017-11-13T10:18:22.000430
1,510,568,302.00043
100,159
pythondev
help
try logging to a file with their own util? `paramiko.util.log_to_file('foo.log')`
2017-11-13T10:18:54.000152
Junita
pythondev_help_Junita_2017-11-13T10:18:54.000152
1,510,568,334.000152
100,160
pythondev
help
yes, this works
2017-11-13T10:19:41.000056
Chaya
pythondev_help_Chaya_2017-11-13T10:19:41.000056
1,510,568,381.000056
100,161
pythondev
help
anything of interest?
2017-11-13T10:21:32.000126
Junita
pythondev_help_Junita_2017-11-13T10:21:32.000126
1,510,568,492.000126
100,162
pythondev
help
`DEB [20171113-17:20:46.499] thr=2 paramiko.transport.sftp: [chan 1] stat(`
2017-11-13T10:23:46.000212
Chaya
pythondev_help_Chaya_2017-11-13T10:23:46.000212
1,510,568,626.000212
100,163
pythondev
help
found some similar github issues, but still looking for solution
2017-11-13T10:24:24.000266
Chaya
pythondev_help_Chaya_2017-11-13T10:24:24.000266
1,510,568,664.000266
100,164
pythondev
help
```I suppose I could trap for this error and just keep trying, but if the data never gets read, there's really no point. Something is keeping the data from being read causing the timeout in the first place.```
2017-11-13T10:24:38.000812
Chaya
pythondev_help_Chaya_2017-11-13T10:24:38.000812
1,510,568,678.000812
100,165
pythondev
help
have you tried reading this file from a different machine to try and rule out whether it’s a remote or local issue?
2017-11-13T10:25:22.000184
Junita
pythondev_help_Junita_2017-11-13T10:25:22.000184
1,510,568,722.000184
100,166
pythondev
help
anything in the logs on the remote server?
2017-11-13T10:25:59.000539
Junita
pythondev_help_Junita_2017-11-13T10:25:59.000539
1,510,568,759.000539
100,167
pythondev
help
yes, tried this code, from multiple machines. I need to check logs on remote server
2017-11-13T10:26:30.000781
Chaya
pythondev_help_Chaya_2017-11-13T10:26:30.000781
1,510,568,790.000781
100,168
pythondev
help
unfortunate truism - the longer it takes to figure it out, the dumber the answer will be. :confused:
2017-11-13T10:27:15.000452
Junita
pythondev_help_Junita_2017-11-13T10:27:15.000452
1,510,568,835.000452
100,169
pythondev
help
yes :slightly_smiling_face:
2017-11-13T10:28:51.000322
Chaya
pythondev_help_Chaya_2017-11-13T10:28:51.000322
1,510,568,931.000322
100,170
pythondev
help
have you tried to ssh to localhost and do it that way ?
2017-11-13T10:32:54.000502
Ciera
pythondev_help_Ciera_2017-11-13T10:32:54.000502
1,510,569,174.000502
100,171
pythondev
help
also - is this windows?
2017-11-13T10:33:19.000626
Junita
pythondev_help_Junita_2017-11-13T10:33:19.000626
1,510,569,199.000626
100,172
pythondev
help
I think I found something
2017-11-13T10:35:45.000653
Chaya
pythondev_help_Chaya_2017-11-13T10:35:45.000653
1,510,569,345.000653
100,173
pythondev
help
still need to test it
2017-11-13T10:36:05.000868
Chaya
pythondev_help_Chaya_2017-11-13T10:36:05.000868
1,510,569,365.000868
100,174
pythondev
help
it works with scp
2017-11-13T10:36:34.000576
Chaya
pythondev_help_Chaya_2017-11-13T10:36:34.000576
1,510,569,394.000576
100,175
pythondev
help
what OS is this?
2017-11-13T10:36:45.000019
Junita
pythondev_help_Junita_2017-11-13T10:36:45.000019
1,510,569,405.000019
100,176
pythondev
help
Debian
2017-11-13T10:37:57.000807
Chaya
pythondev_help_Chaya_2017-11-13T10:37:57.000807
1,510,569,477.000807
100,177
pythondev
help
ah okay. I was thinking this sounds suspiciously like the kind of thing that happens on Windows systems with overzealous security software. there goes that idea
2017-11-13T10:39:04.000441
Junita
pythondev_help_Junita_2017-11-13T10:39:04.000441
1,510,569,544.000441
100,178
pythondev
help
after adding this: ```t.default_max_packet_size = 100000000 t.default_window_size = 100000000```
2017-11-13T10:59:06.000186
Chaya
pythondev_help_Chaya_2017-11-13T10:59:06.000186
1,510,570,746.000186
100,179
pythondev
help
code started to work
2017-11-13T10:59:34.000328
Chaya
pythondev_help_Chaya_2017-11-13T10:59:34.000328
1,510,570,774.000328
100,180
pythondev
help
interesting
2017-11-13T10:59:56.000284
Junita
pythondev_help_Junita_2017-11-13T10:59:56.000284
1,510,570,796.000284
100,181
pythondev
help
not sure why
2017-11-13T11:00:04.000148
Chaya
pythondev_help_Chaya_2017-11-13T11:00:04.000148
1,510,570,804.000148
100,182
pythondev
help
<@Chaya> :taco:
2017-11-13T11:00:13.000256
Junita
pythondev_help_Junita_2017-11-13T11:00:13.000256
1,510,570,813.000256
100,183
pythondev
help
you get a taco for solving it yourself. :stuck_out_tongue:
2017-11-13T11:00:26.000984
Junita
pythondev_help_Junita_2017-11-13T11:00:26.000984
1,510,570,826.000984
100,184
pythondev
help
thanks :slightly_smiling_face:
2017-11-13T11:00:32.000624
Chaya
pythondev_help_Chaya_2017-11-13T11:00:32.000624
1,510,570,832.000624
100,185
pythondev
help
although did it send it? I didn’t get a notification
2017-11-13T11:00:34.000146
Junita
pythondev_help_Junita_2017-11-13T11:00:34.000146
1,510,570,834.000146
100,186
pythondev
help
ah there we go, it was jsut a bit delayed
2017-11-13T11:00:58.000121
Junita
pythondev_help_Junita_2017-11-13T11:00:58.000121
1,510,570,858.000121
100,187
pythondev
help
ha. apparently you can tag your tacos now. I am going to tag them with toppings though, not things like they want you to. :stuck_out_tongue:
2017-11-13T11:01:37.000007
Junita
pythondev_help_Junita_2017-11-13T11:01:37.000007
1,510,570,897.000007
100,188
pythondev
help
yeah they made an update
2017-11-13T11:05:08.000041
Ciera
pythondev_help_Ciera_2017-11-13T11:05:08.000041
1,510,571,108.000041
100,189
pythondev
help
but it became a bit slow now
2017-11-13T11:05:15.000671
Ciera
pythondev_help_Ciera_2017-11-13T11:05:15.000671
1,510,571,115.000671
100,190
pythondev
help
Hi, can anyone help me with templating in Django? I have objects from a model that I want to put in rows, but I don't know how to handle that because its one row per two objects!
2017-11-13T11:14:57.000120
Lorean
pythondev_help_Lorean_2017-11-13T11:14:57.000120
1,510,571,697.00012
100,191
pythondev
help
The code for my website is here: <https://github.com/theletterandrew/timetracker>
2017-11-13T11:15:28.000835
Lorean
pythondev_help_Lorean_2017-11-13T11:15:28.000835
1,510,571,728.000835
100,192
pythondev
help
and the specific page I'm talking about is here: <https://github.com/theletterandrew/timetracker/blob/master/timemanager/templates/timemanager/manager.html>
2017-11-13T11:15:51.000131
Lorean
pythondev_help_Lorean_2017-11-13T11:15:51.000131
1,510,571,751.000131
100,193
pythondev
help
hello <@Lorean> we have a channel dedicated to <#C0LMFRMB5|django>
2017-11-13T11:23:44.000689
Ciera
pythondev_help_Ciera_2017-11-13T11:23:44.000689
1,510,572,224.000689
100,194
pythondev
help
thanks so much!
2017-11-13T11:23:55.000457
Lorean
pythondev_help_Lorean_2017-11-13T11:23:55.000457
1,510,572,235.000457
100,195
pythondev
help
I was able to work it out. But can pip be run from anywhere in the command line or has to be at the install location?
2017-11-13T12:34:32.000454
Louie
pythondev_help_Louie_2017-11-13T12:34:32.000454
1,510,576,472.000454
100,196
pythondev
help
Usually I run `pip install package` anywhere and the package will be installed along with my python distribution
2017-11-13T12:36:51.000165
Fabiola
pythondev_help_Fabiola_2017-11-13T12:36:51.000165
1,510,576,611.000165
100,197
pythondev
help
What OS are you running and how did you end up installing pip in the end? Most of the time pip should come with your python distribution
2017-11-13T12:37:21.000296
Fabiola
pythondev_help_Fabiola_2017-11-13T12:37:21.000296
1,510,576,641.000296
100,198
pythondev
help
How would one suggest getting the next dict obj in a list of dicts? i.e. -&gt; [dict1{key="x", key="y"}, dict2{key=x, key=y}] ?
2017-11-13T15:09:39.000555
Leanna
pythondev_help_Leanna_2017-11-13T15:09:39.000555
1,510,585,779.000555
100,199
pythondev
help
As in, I step through items in list of dicts: prev_dict_item = dict1, next_dict_item = dict2....? Any thoughts?
2017-11-13T15:10:32.000111
Leanna
pythondev_help_Leanna_2017-11-13T15:10:32.000111
1,510,585,832.000111
100,200
pythondev
help
`for adict in list_of_dicts:` seems like the easiest starting point
2017-11-13T15:25:40.000320
Sirena
pythondev_help_Sirena_2017-11-13T15:25:40.000320
1,510,586,740.00032
100,201
pythondev
help
Hi Everyone, I'm trying to integrate python automation script into Jenkins pipeline job. But i need to give some conditions manually like YES or NO in middle of the script based on output generated. Is there a way that instead of breaking script into multiple jobs to pass conditions in middle of the job.
2017-11-13T16:23:46.000262
Ok
pythondev_help_Ok_2017-11-13T16:23:46.000262
1,510,590,226.000262
100,202