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
I'd use subprocess for ffmpeg as there is no direct interface using os
2017-11-07T09:34:29.000122
Vada
pythondev_help_Vada_2017-11-07T09:34:29.000122
1,510,047,269.000122
99,703
pythondev
help
<@Vada> what do you mean by no direct interface using OS? to me the only difference i see is in the way i use arguments.
2017-11-07T09:35:24.000287
Lahoma
pythondev_help_Lahoma_2017-11-07T09:35:24.000287
1,510,047,324.000287
99,704
pythondev
help
<http://beyondthegeek.com/2016/09/28/os-system-vs-subprocess-call/>
2017-11-07T09:35:43.000267
Lahoma
pythondev_help_Lahoma_2017-11-07T09:35:43.000267
1,510,047,343.000267
99,705
pythondev
help
You should be using subprocess.Popen :slightly_smiling_face:
2017-11-07T09:37:06.000709
Vada
pythondev_help_Vada_2017-11-07T09:37:06.000709
1,510,047,426.000709
99,706
pythondev
help
ok
2017-11-07T09:37:28.000384
Lahoma
pythondev_help_Lahoma_2017-11-07T09:37:28.000384
1,510,047,448.000384
99,707
pythondev
help
but i have to ask why?
2017-11-07T09:37:35.000027
Lahoma
pythondev_help_Lahoma_2017-11-07T09:37:35.000027
1,510,047,455.000027
99,708
pythondev
help
why choose one over the other in this case?
2017-11-07T09:37:48.000636
Lahoma
pythondev_help_Lahoma_2017-11-07T09:37:48.000636
1,510,047,468.000636
99,709
pythondev
help
<@Vada> ^^
2017-11-07T09:37:52.000529
Lahoma
pythondev_help_Lahoma_2017-11-07T09:37:52.000529
1,510,047,472.000529
99,710
pythondev
help
<https://www.quora.com/Whats-the-difference-between-os-system-and-subprocess-call-in-Python>
2017-11-07T09:38:16.000546
Vada
pythondev_help_Vada_2017-11-07T09:38:16.000546
1,510,047,496.000546
99,711
pythondev
help
subprocess gives you way more control
2017-11-07T09:38:20.000076
Suellen
pythondev_help_Suellen_2017-11-07T09:38:20.000076
1,510,047,500.000076
99,712
pythondev
help
os.system just fires a command and that's it, not really flexible
2017-11-07T09:38:37.000004
Suellen
pythondev_help_Suellen_2017-11-07T09:38:37.000004
1,510,047,517.000004
99,713
pythondev
help
plus I suspect there is this whole OS dependent behaviour
2017-11-07T09:38:56.000088
Suellen
pythondev_help_Suellen_2017-11-07T09:38:56.000088
1,510,047,536.000088
99,714
pythondev
help
Ahh i see
2017-11-07T09:39:18.000134
Lahoma
pythondev_help_Lahoma_2017-11-07T09:39:18.000134
1,510,047,558.000134
99,715
pythondev
help
you can get a program output, and separately an `stderr`, and here is the program return code for you!
2017-11-07T09:41:30.000559
Suellen
pythondev_help_Suellen_2017-11-07T09:41:30.000559
1,510,047,690.000559
99,716
pythondev
help
you can also stream output instead of getting it at the end, I dunno whether `os.system` can do such a thing somehow
2017-11-07T09:41:54.000685
Suellen
pythondev_help_Suellen_2017-11-07T09:41:54.000685
1,510,047,714.000685
99,717
pythondev
help
I see how subprocess can give you control, one gets more control however how it executes the command with the provided popen constructor rgs, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, ...
2017-11-07T09:42:25.000274
Lahoma
pythondev_help_Lahoma_2017-11-07T09:42:25.000274
1,510,047,745.000274
99,718
pythondev
help
:slightly_smiling_face:
2017-11-07T09:43:41.000604
Suellen
pythondev_help_Suellen_2017-11-07T09:43:41.000604
1,510,047,821.000604
99,719
pythondev
help
<@Lory>
2017-11-07T10:17:31.000319
Vada
pythondev_help_Vada_2017-11-07T10:17:31.000319
1,510,049,851.000319
99,720
pythondev
help
ah interesting, thanks <@Vada>
2017-11-07T10:17:48.000118
Lory
pythondev_help_Lory_2017-11-07T10:17:48.000118
1,510,049,868.000118
99,721
pythondev
help
<@Vada> :taco:
2017-11-07T10:18:20.000443
Johana
pythondev_help_Johana_2017-11-07T10:18:20.000443
1,510,049,900.000443
99,722
pythondev
help
thank you <@Johana> :slightly_smiling_face:
2017-11-07T10:18:56.000419
Vada
pythondev_help_Vada_2017-11-07T10:18:56.000419
1,510,049,936.000419
99,723
pythondev
help
:slightly_smiling_face:
2017-11-07T10:22:41.000431
Suellen
pythondev_help_Suellen_2017-11-07T10:22:41.000431
1,510,050,161.000431
99,724
pythondev
help
I need some help iterating through the data I enter into the "tkinter Entry box".
2017-11-07T13:12:06.000133
Virgen
pythondev_help_Virgen_2017-11-07T13:12:06.000133
1,510,060,326.000133
99,725
pythondev
help
line 29 prints exactly what I would expect it to print.
2017-11-07T13:12:29.000389
Virgen
pythondev_help_Virgen_2017-11-07T13:12:29.000389
1,510,060,349.000389
99,726
pythondev
help
but then when I try to iterate through the data in "data_list", line 31 prints one character at a time rather than a line at a time.
2017-11-07T13:13:29.000195
Virgen
pythondev_help_Virgen_2017-11-07T13:13:29.000195
1,510,060,409.000195
99,727
pythondev
help
Are there any terms of use for this slack channel?
2017-11-07T13:21:06.000308
Toby
pythondev_help_Toby_2017-11-07T13:21:06.000308
1,510,060,866.000308
99,728
pythondev
help
I think I figured it out. I changed line 28 to `data_list = (self.data_entry.get()).splitlines()`
2017-11-07T13:29:19.000050
Virgen
pythondev_help_Virgen_2017-11-07T13:29:19.000050
1,510,061,359.00005
99,729
pythondev
help
<@Lory> its in pm
2017-11-07T14:35:29.000069
Toby
pythondev_help_Toby_2017-11-07T14:35:29.000069
1,510,065,329.000069
99,730
pythondev
help
sorry, keep getting kicked from every channel
2017-11-07T14:35:41.000237
Toby
pythondev_help_Toby_2017-11-07T14:35:41.000237
1,510,065,341.000237
99,731
pythondev
help
definitely not implying to share that publicly, was just expressing my curiosity
2017-11-07T14:36:15.000049
Lory
pythondev_help_Lory_2017-11-07T14:36:15.000049
1,510,065,375.000049
99,732
pythondev
help
<@Meg> <@Beula> thanks to you both and any other admin involved
2017-11-07T15:12:00.000276
Toby
pythondev_help_Toby_2017-11-07T15:12:00.000276
1,510,067,520.000276
99,733
pythondev
help
So does mean that no one here works with ussd stuffs??? Or pyserial?
2017-11-07T15:26:38.000142
Cammy
pythondev_help_Cammy_2017-11-07T15:26:38.000142
1,510,068,398.000142
99,734
pythondev
help
I've used pyserial once before a few years ago when interfacing with an arduino
2017-11-07T15:31:43.000253
Lory
pythondev_help_Lory_2017-11-07T15:31:43.000253
1,510,068,703.000253
99,735
pythondev
help
it was a fairly simple library I've found, have not used anything regarding ussd though
2017-11-07T15:32:06.000498
Lory
pythondev_help_Lory_2017-11-07T15:32:06.000498
1,510,068,726.000498
99,736
pythondev
help
Hello guys, anyone know a good way to handle time series data in django database. I want to optimize in terms of query speed. Currently using postgres, and I dont want to deal with another database. what are the best options out there right now? store the times series data in (1) json, (2) a file or (3) just store the ...
2017-11-07T15:40:23.000596
Iluminada
pythondev_help_Iluminada_2017-11-07T15:40:23.000596
1,510,069,223.000596
99,737
pythondev
help
how much data are we talking?
2017-11-07T15:48:23.000387
Suellen
pythondev_help_Suellen_2017-11-07T15:48:23.000387
1,510,069,703.000387
99,738
pythondev
help
one data point for each day, for the past 30-50 years
2017-11-07T15:59:14.000010
Iluminada
pythondev_help_Iluminada_2017-11-07T15:59:14.000010
1,510,070,354.00001
99,739
pythondev
help
one per day? put it in postgres :slightly_smiling_face:
2017-11-07T15:59:48.000374
Suellen
pythondev_help_Suellen_2017-11-07T15:59:48.000374
1,510,070,388.000374
99,740
pythondev
help
I mean, it's database after all. And you already use it so no new dependencies.
2017-11-07T16:00:14.000601
Suellen
pythondev_help_Suellen_2017-11-07T16:00:14.000601
1,510,070,414.000601
99,741
pythondev
help
awesome! just store it normally with timestamp?
2017-11-07T16:01:03.000197
Iluminada
pythondev_help_Iluminada_2017-11-07T16:01:03.000197
1,510,070,463.000197
99,742
pythondev
help
Could use a timestamp or just a date if its only the date that's significant
2017-11-07T16:01:44.000567
Antionette
pythondev_help_Antionette_2017-11-07T16:01:44.000567
1,510,070,504.000567
99,743
pythondev
help
yeah of course
2017-11-07T16:01:45.000064
Suellen
pythondev_help_Suellen_2017-11-07T16:01:45.000064
1,510,070,505.000064
99,744
pythondev
help
got it, thanks guys! :slightly_smiling_face:
2017-11-07T16:05:02.000282
Iluminada
pythondev_help_Iluminada_2017-11-07T16:05:02.000282
1,510,070,702.000282
99,745
pythondev
help
<@Lory> am using it to send at command for ussd.
2017-11-07T16:06:09.000059
Cammy
pythondev_help_Cammy_2017-11-07T16:06:09.000059
1,510,070,769.000059
99,746
pythondev
help
All I get back is OK...
2017-11-07T16:06:20.000671
Cammy
pythondev_help_Cammy_2017-11-07T16:06:20.000671
1,510,070,780.000671
99,747
pythondev
help
Instead of response...
2017-11-07T16:06:36.000066
Cammy
pythondev_help_Cammy_2017-11-07T16:06:36.000066
1,510,070,796.000066
99,748
pythondev
help
Can you share the code?
2017-11-07T16:06:43.000398
Lory
pythondev_help_Lory_2017-11-07T16:06:43.000398
1,510,070,803.000398
99,749
pythondev
help
Yea
2017-11-07T16:06:54.000208
Cammy
pythondev_help_Cammy_2017-11-07T16:06:54.000208
1,510,070,814.000208
99,750
pythondev
help
I haven't used it in forever so I'll have to do a quick brush up
2017-11-07T16:06:56.000189
Lory
pythondev_help_Lory_2017-11-07T16:06:56.000189
1,510,070,816.000189
99,751
pythondev
help
<https://stackoverflow.com/questions/47160407/ussd-return-ok-instead-of-response>
2017-11-07T16:09:31.000037
Cammy
pythondev_help_Cammy_2017-11-07T16:09:31.000037
1,510,070,971.000037
99,752
pythondev
help
<@Lory> waiting for ur update
2017-11-07T16:49:02.000160
Cammy
pythondev_help_Cammy_2017-11-07T16:49:02.000160
1,510,073,342.00016
99,753
pythondev
help
Sorry, got some stuff at work I'm finishing up then I'll take a closer look
2017-11-07T16:49:39.000104
Lory
pythondev_help_Lory_2017-11-07T16:49:39.000104
1,510,073,379.000104
99,754
pythondev
help
This might be out of my reach, like I said I only used the libarary once for an arduino directly connected to my computer and it looks like you're trying to talk to your router
2017-11-07T16:50:12.000621
Lory
pythondev_help_Lory_2017-11-07T16:50:12.000621
1,510,073,412.000621
99,755
pythondev
help
hi
2017-11-07T17:03:16.000181
Viva
pythondev_help_Viva_2017-11-07T17:03:16.000181
1,510,074,196.000181
99,756
pythondev
help
i'm looking for a pythonic function name for something
2017-11-07T17:03:26.000077
Viva
pythondev_help_Viva_2017-11-07T17:03:26.000077
1,510,074,206.000077
99,757
pythondev
help
is this the right channel?
2017-11-07T17:03:29.000441
Viva
pythondev_help_Viva_2017-11-07T17:03:29.000441
1,510,074,209.000441
99,758
pythondev
help
Probably :slightly_smiling_face: Most canonical naming/styling is defined in Python Enhancement Proposal 8 (PEP8) <https://www.python.org/dev/peps/pep-0008/>
2017-11-07T17:19:27.000297
Rosamond
pythondev_help_Rosamond_2017-11-07T17:19:27.000297
1,510,075,167.000297
99,759
pythondev
help
So i'm using xlswriter to export information from my mysql database to xlsx formatted, what would be the best way to add data to a multi-teir list such as the one listed below expenses = ( ['Food', 1000], ['Gas', 100],
2017-11-07T17:46:45.000521
Chong
pythondev_help_Chong_2017-11-07T17:46:45.000521
1,510,076,805.000521
99,760
pythondev
help
)
2017-11-07T17:46:48.000047
Chong
pythondev_help_Chong_2017-11-07T17:46:48.000047
1,510,076,808.000047
99,761
pythondev
help
etc.
2017-11-07T17:46:50.000060
Chong
pythondev_help_Chong_2017-11-07T17:46:50.000060
1,510,076,810.00006
99,762
pythondev
help
I already used pymysql to append all the content from the db to a list but xlswriter is listing to many values to unpack
2017-11-07T17:47:39.000167
Chong
pythondev_help_Chong_2017-11-07T17:47:39.000167
1,510,076,859.000167
99,763
pythondev
help
hi all….openCV question: i’ve got a videocapture of a webcam feed. whenever i do `videocapture.read()` from my mac, i get back an image from the feed without any issue. when i run the same code on an ubuntu server, the frame is empty, 0 bytes. i can confirm that i can access the url from that server. any idea what ...
2017-11-07T20:06:45.000114
Dexter
pythondev_help_Dexter_2017-11-07T20:06:45.000114
1,510,085,205.000114
99,764
pythondev
help
it honestly could be a number of things
2017-11-07T20:21:06.000126
Meg
pythondev_help_Meg_2017-11-07T20:21:06.000126
1,510,086,066.000126
99,765
pythondev
help
one of the reasons why using docker or vagrant to keep environmental differences minimal has really gained popularity
2017-11-07T20:21:41.000059
Meg
pythondev_help_Meg_2017-11-07T20:21:41.000059
1,510,086,101.000059
99,766
pythondev
help
good idea. i can probably find a docker image with opencv and python already on it, right?
2017-11-07T20:27:21.000016
Dexter
pythondev_help_Dexter_2017-11-07T20:27:21.000016
1,510,086,441.000016
99,767
pythondev
help
also, thinking this may be lack of ffmpeg support on my ubuntu server…
2017-11-07T20:27:31.000042
Dexter
pythondev_help_Dexter_2017-11-07T20:27:31.000042
1,510,086,451.000042
99,768
pythondev
help
I don't believe it's a default package, ran into the same issue when running a project on a new server
2017-11-07T20:30:00.000170
Lory
pythondev_help_Lory_2017-11-07T20:30:00.000170
1,510,086,600.00017
99,769
pythondev
help
is anyone really familiar with dictionary API's (e.g. Merriam-Webster)?
2017-11-07T20:38:43.000018
Savanna
pythondev_help_Savanna_2017-11-07T20:38:43.000018
1,510,087,123.000018
99,770
pythondev
help
<@Dexter> you also might want to ensure its capturing from the correct `/dev/` endpoint and that your user has the proper permissions for it
2017-11-07T21:11:46.000192
Marcie
pythondev_help_Marcie_2017-11-07T21:11:46.000192
1,510,089,106.000192
99,771
pythondev
help
Hi, wants to ask about pycharm/virtualenv: I init a new project by pycharm virtualenv, but how can I enter the virtualenv of this project outside pycharm, there is no bin folder under this project....
2017-11-07T22:14:38.000135
Kelli
pythondev_help_Kelli_2017-11-07T22:14:38.000135
1,510,092,878.000135
99,772
pythondev
help
Open settings.search for ‘python interpreter’ copy path that you get and use it as usual to activate Env.
2017-11-07T22:19:21.000106
Ross
pythondev_help_Ross_2017-11-07T22:19:21.000106
1,510,093,161.000106
99,773
pythondev
help
``` for r in re.findall(r"(?sm)^Q\d+\..*?(?=^Q\d+\.|\Z)", soup.text): print("___________________________________------------------------------------___________________________________") print(r) ```
2017-11-08T02:44:59.000009
Jazmine
pythondev_help_Jazmine_2017-11-08T02:44:59.000009
1,510,109,099.000009
99,774
pythondev
help
I have the above dataset
2017-11-08T02:45:09.000205
Jazmine
pythondev_help_Jazmine_2017-11-08T02:45:09.000205
1,510,109,109.000205
99,775
pythondev
help
I need to get Q59. and everything in between to the next Q60
2017-11-08T02:45:37.000238
Jazmine
pythondev_help_Jazmine_2017-11-08T02:45:37.000238
1,510,109,137.000238
99,776
pythondev
help
my regex is not working
2017-11-08T02:45:52.000078
Jazmine
pythondev_help_Jazmine_2017-11-08T02:45:52.000078
1,510,109,152.000078
99,777
pythondev
help
maybe not what you are looking for but would it be possible to split it on double end of line ?
2017-11-08T02:49:11.000001
Ciera
pythondev_help_Ciera_2017-11-08T02:49:11.000001
1,510,109,351.000001
99,778
pythondev
help
The data set is not that clean
2017-11-08T02:50:36.000171
Jazmine
pythondev_help_Jazmine_2017-11-08T02:50:36.000171
1,510,109,436.000171
99,779
pythondev
help
I need everything including `Q\d+\.` and in between the next `Q\d+\.` and excluding the last `Q\d+\.`
2017-11-08T02:52:08.000154
Jazmine
pythondev_help_Jazmine_2017-11-08T02:52:08.000154
1,510,109,528.000154
99,780
pythondev
help
you can test regex on this website <https://regexr.com/>
2017-11-08T02:53:27.000123
Kelli
pythondev_help_Kelli_2017-11-08T02:53:27.000123
1,510,109,607.000123
99,781
pythondev
help
I am testing in my pycharm
2017-11-08T02:53:39.000042
Jazmine
pythondev_help_Jazmine_2017-11-08T02:53:39.000042
1,510,109,619.000042
99,782
pythondev
help
But I guess that gives instant testing
2017-11-08T02:54:14.000195
Jazmine
pythondev_help_Jazmine_2017-11-08T02:54:14.000195
1,510,109,654.000195
99,783
pythondev
help
Finally got it partly right
2017-11-08T03:04:04.000004
Jazmine
pythondev_help_Jazmine_2017-11-08T03:04:04.000004
1,510,110,244.000004
99,784
pythondev
help
``` for r in re.findall(r"Q\d+\..*?(?=Q\d+)", soup.text, flags=re.S): print("___________________________________------------------------------------___________________________________") print(r) ```
2017-11-08T03:04:09.000163
Jazmine
pythondev_help_Jazmine_2017-11-08T03:04:09.000163
1,510,110,249.000163
99,785
pythondev
help
Since the data was in `html` I used `BeautifulSoup`
2017-11-08T04:14:59.000082
Jazmine
pythondev_help_Jazmine_2017-11-08T04:14:59.000082
1,510,114,499.000082
99,786
pythondev
help
Much cleaner than `regex`
2017-11-08T04:15:10.000357
Jazmine
pythondev_help_Jazmine_2017-11-08T04:15:10.000357
1,510,114,510.000357
99,787
pythondev
help
yeah never try to parse html with regex
2017-11-08T04:16:21.000103
Ciera
pythondev_help_Ciera_2017-11-08T04:16:21.000103
1,510,114,581.000103
99,788
pythondev
help
<https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags>
2017-11-08T04:16:22.000274
Ciera
pythondev_help_Ciera_2017-11-08T04:16:22.000274
1,510,114,582.000274
99,789
pythondev
help
I actually converted the mobi book to text and then regexed it
2017-11-08T04:20:39.000064
Jazmine
pythondev_help_Jazmine_2017-11-08T04:20:39.000064
1,510,114,839.000064
99,790
pythondev
help
But I was doing it wrong by stripping tags. It made it hard since I don't know regex well
2017-11-08T04:21:44.000268
Jazmine
pythondev_help_Jazmine_2017-11-08T04:21:44.000268
1,510,114,904.000268
99,791
pythondev
help
Now comes the fun part. I hope I make the app sucessfully
2017-11-08T04:28:52.000356
Jazmine
pythondev_help_Jazmine_2017-11-08T04:28:52.000356
1,510,115,332.000356
99,792
pythondev
help
I thought I'd never be able to make an app for JVM since Java made my head spin
2017-11-08T04:29:30.000328
Jazmine
pythondev_help_Jazmine_2017-11-08T04:29:30.000328
1,510,115,370.000328
99,793
pythondev
help
But Kotlin came to the resuce
2017-11-08T04:29:38.000240
Jazmine
pythondev_help_Jazmine_2017-11-08T04:29:38.000240
1,510,115,378.00024
99,794
pythondev
help
lol! Seems like regex is better. I need to know sibling info in BS4 to do parsing
2017-11-08T04:46:34.000216
Jazmine
pythondev_help_Jazmine_2017-11-08T04:46:34.000216
1,510,116,394.000216
99,795
pythondev
help
While regex seems to do the job
2017-11-08T04:46:41.000465
Jazmine
pythondev_help_Jazmine_2017-11-08T04:46:41.000465
1,510,116,401.000465
99,796
pythondev
help
Hi all, Working on a project that is utilizing a pem file to make an API call to the server. Currently the pem file is placed as a text file and is getting read each time it makes a connection. I was thinking if i could store the pem file in a DB. (May be Redis and read it from there). Add auth for redis and export the...
2017-11-08T05:02:59.000206
Verlene
pythondev_help_Verlene_2017-11-08T05:02:59.000206
1,510,117,379.000206
99,797
pythondev
help
do you have a lot of pem file ? or just one ?
2017-11-08T05:07:17.000484
Ciera
pythondev_help_Ciera_2017-11-08T05:07:17.000484
1,510,117,637.000484
99,798
pythondev
help
I very much doubt that reading from Redis is faster than reading a file.
2017-11-08T05:07:28.000334
Suellen
pythondev_help_Suellen_2017-11-08T05:07:28.000334
1,510,117,648.000334
99,799
pythondev
help
The file is going to be cached in RAM after the first access and remain there indefinitely, unless you don't have enough RAM
2017-11-08T05:08:54.000024
Suellen
pythondev_help_Suellen_2017-11-08T05:08:54.000024
1,510,117,734.000024
99,800
pythondev
help
well if he only has one just load the file at startup and keep it in the python
2017-11-08T05:09:21.000171
Ciera
pythondev_help_Ciera_2017-11-08T05:09:21.000171
1,510,117,761.000171
99,801
pythondev
help
that's much better :slightly_smiling_face:
2017-11-08T05:10:03.000306
Suellen
pythondev_help_Suellen_2017-11-08T05:10:03.000306
1,510,117,803.000306
99,802