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
but like I said, I know a few CCIE who don't and don't think its important at all
2019-06-05T14:36:14.201200
Romaine
pythondev_help_Romaine_2019-06-05T14:36:14.201200
1,559,745,374.2012
26,921
pythondev
help
default symlinks unless `nt`
2019-06-05T14:36:16.201300
Jesusa
pythondev_help_Jesusa_2019-06-05T14:36:16.201300
1,559,745,376.2013
26,922
pythondev
help
looks like the primary interpreter is a copy though, depends on the version however
2019-06-05T14:36:34.201800
Jesusa
pythondev_help_Jesusa_2019-06-05T14:36:34.201800
1,559,745,394.2018
26,923
pythondev
help
I'm not saying you need to know python to be CCIE, but you should know how to write a script, and understand the shell well enough to know how $PATH works
2019-06-05T14:38:50.203600
Ashley
pythondev_help_Ashley_2019-06-05T14:38:50.203600
1,559,745,530.2036
26,924
pythondev
help
you'd have to go to some extreme lengths to avoid that information when getting the CCIE cert
2019-06-05T14:39:27.204100
Ashley
pythondev_help_Ashley_2019-06-05T14:39:27.204100
1,559,745,567.2041
26,925
pythondev
help
agreed
2019-06-05T14:40:24.204300
Romaine
pythondev_help_Romaine_2019-06-05T14:40:24.204300
1,559,745,624.2043
26,926
pythondev
help
Oh, of course :thumbsup:
2019-06-05T14:42:26.205600
Catherina
pythondev_help_Catherina_2019-06-05T14:42:26.205600
1,559,745,746.2056
26,927
pythondev
help
<@Jesusa> where did you find that code?
2019-06-05T14:42:28.205900
Clemmie
pythondev_help_Clemmie_2019-06-05T14:42:28.205900
1,559,745,748.2059
26,928
pythondev
help
Not arguing, just interested
2019-06-05T14:42:35.206200
Clemmie
pythondev_help_Clemmie_2019-06-05T14:42:35.206200
1,559,745,755.2062
26,929
pythondev
help
<https://docs.python.org/3/library/venv.html>
2019-06-05T14:42:40.206500
Jesusa
pythondev_help_Jesusa_2019-06-05T14:42:40.206500
1,559,745,760.2065
26,930
pythondev
help
What I’m talking about here is how to setup a dev/qa/prod environment
2019-06-05T14:42:41.206600
Catherina
pythondev_help_Catherina_2019-06-05T14:42:41.206600
1,559,745,761.2066
26,931
pythondev
help
the official package
2019-06-05T14:42:43.206900
Jesusa
pythondev_help_Jesusa_2019-06-05T14:42:43.206900
1,559,745,763.2069
26,932
pythondev
help
something I never had to do in Amazon because it was all already there
2019-06-05T14:42:56.207200
Catherina
pythondev_help_Catherina_2019-06-05T14:42:56.207200
1,559,745,776.2072
26,933
pythondev
help
:cold_sweat:
2019-06-05T14:43:00.207400
Catherina
pythondev_help_Catherina_2019-06-05T14:43:00.207400
1,559,745,780.2074
26,934
pythondev
help
they’re hinting symlinks should be the default
2019-06-05T14:43:13.207900
Jesusa
pythondev_help_Jesusa_2019-06-05T14:43:13.207900
1,559,745,793.2079
26,935
pythondev
help
<@Jesusa> that just suggests that `nt` is the primary exception
2019-06-05T14:43:35.208800
Ashley
pythondev_help_Ashley_2019-06-05T14:43:35.208800
1,559,745,815.2088
26,936
pythondev
help
not the default
2019-06-05T14:43:38.209000
Ashley
pythondev_help_Ashley_2019-06-05T14:43:38.209000
1,559,745,818.209
26,937
pythondev
help
ah sorry I misread
2019-06-05T14:44:27.210000
Ashley
pythondev_help_Ashley_2019-06-05T14:44:27.210000
1,559,745,867.21
26,938
pythondev
help
symlinks on mine
2019-06-05T14:44:57.210600
Jesusa
pythondev_help_Jesusa_2019-06-05T14:44:57.210600
1,559,745,897.2106
26,939
pythondev
help
None
2019-06-05T14:44:57.210700
Jesusa
pythondev_help_Jesusa_2019-06-05T14:44:57.210700
1,559,745,897.2107
26,940
pythondev
help
Interesting. Historically (pre-venv) it was not. I don’t feel strongly one way or another. Also that flag help is atrocious “use symlinks if this wouldn’t by default. Where would it by default? who knows!”
2019-06-05T14:44:59.211100
Clemmie
pythondev_help_Clemmie_2019-06-05T14:44:59.211100
1,559,745,899.2111
26,941
pythondev
help
I’m torn on the idea
2019-06-05T14:45:24.211600
Clemmie
pythondev_help_Clemmie_2019-06-05T14:45:24.211600
1,559,745,924.2116
26,942
pythondev
help
I don’t care either way
2019-06-05T14:45:32.211800
Jesusa
pythondev_help_Jesusa_2019-06-05T14:45:32.211800
1,559,745,932.2118
26,943
pythondev
help
:slightly_smiling_face:
2019-06-05T14:45:33.212100
Jesusa
pythondev_help_Jesusa_2019-06-05T14:45:33.212100
1,559,745,933.2121
26,944
pythondev
help
happy to hlep
2019-06-05T14:45:35.212300
Jesusa
pythondev_help_Jesusa_2019-06-05T14:45:35.212300
1,559,745,935.2123
26,945
pythondev
help
faster setup, sure
2019-06-05T14:45:38.212500
Clemmie
pythondev_help_Clemmie_2019-06-05T14:45:38.212500
1,559,745,938.2125
26,946
pythondev
help
dirties up /usr/local though
2019-06-05T14:45:59.212800
Clemmie
pythondev_help_Clemmie_2019-06-05T14:45:59.212800
1,559,745,959.2128
26,947
pythondev
help
eh, I use containers, so it doesn’t matter
2019-06-05T14:46:10.213100
Clemmie
pythondev_help_Clemmie_2019-06-05T14:46:10.213100
1,559,745,970.2131
26,948
pythondev
help
oh wait
2019-06-05T14:46:53.213300
Ashley
pythondev_help_Ashley_2019-06-05T14:46:53.213300
1,559,746,013.2133
26,949
pythondev
help
we're reading it backwards
2019-06-05T14:46:57.213500
Ashley
pythondev_help_Ashley_2019-06-05T14:46:57.213500
1,559,746,017.2135
26,950
pythondev
help
ah nevermind
2019-06-05T14:47:27.213900
Ashley
pythondev_help_Ashley_2019-06-05T14:47:27.213900
1,559,746,047.2139
26,951
pythondev
help
I think I've read it assbackwards
2019-06-05T14:47:35.214300
Ashley
pythondev_help_Ashley_2019-06-05T14:47:35.214300
1,559,746,055.2143
26,952
pythondev
help
venv will default to symlinks for the main python interpreter, unless it is on `nt`, unless you use the `--use-symlinks` flag
2019-06-05T14:47:50.214700
Clemmie
pythondev_help_Clemmie_2019-06-05T14:47:50.214700
1,559,746,070.2147
26,953
pythondev
help
yeah
2019-06-05T14:48:02.215200
Ashley
pythondev_help_Ashley_2019-06-05T14:48:02.215200
1,559,746,082.2152
26,954
pythondev
help
one sec
2019-06-05T14:48:05.215400
Ashley
pythondev_help_Ashley_2019-06-05T14:48:05.215400
1,559,746,085.2154
26,955
pythondev
help
so that flag is (current;y) only meaningful on nt
2019-06-05T14:48:05.215500
Clemmie
pythondev_help_Clemmie_2019-06-05T14:48:05.215500
1,559,746,085.2155
26,956
pythondev
help
trying with pure venv
2019-06-05T14:48:09.215700
Ashley
pythondev_help_Ashley_2019-06-05T14:48:09.215700
1,559,746,089.2157
26,957
pythondev
help
that is pure venv
2019-06-05T14:48:16.216000
Clemmie
pythondev_help_Clemmie_2019-06-05T14:48:16.216000
1,559,746,096.216
26,958
pythondev
help
virtualenv is different
2019-06-05T14:48:32.216300
Clemmie
pythondev_help_Clemmie_2019-06-05T14:48:32.216300
1,559,746,112.2163
26,959
pythondev
help
yeah
2019-06-05T14:49:53.216500
Ashley
pythondev_help_Ashley_2019-06-05T14:49:53.216500
1,559,746,193.2165
26,960
pythondev
help
the one I pulled from earlier was made with something else
2019-06-05T14:50:06.216800
Ashley
pythondev_help_Ashley_2019-06-05T14:50:06.216800
1,559,746,206.2168
26,961
pythondev
help
so I wanted to try again with the pure venv
2019-06-05T14:50:17.217100
Ashley
pythondev_help_Ashley_2019-06-05T14:50:17.217100
1,559,746,217.2171
26,962
pythondev
help
and I stand corrected
2019-06-05T14:50:21.217300
Ashley
pythondev_help_Ashley_2019-06-05T14:50:21.217300
1,559,746,221.2173
26,963
pythondev
help
but yeah, that irks me
2019-06-05T14:50:37.217500
Ashley
pythondev_help_Ashley_2019-06-05T14:50:37.217500
1,559,746,237.2175
26,964
pythondev
help
the point of the venv is to avoid conflicts with the system level install as well as other installs
2019-06-05T14:51:00.218000
Ashley
pythondev_help_Ashley_2019-06-05T14:51:00.218000
1,559,746,260.218
26,965
pythondev
help
upgrading the system level install could break the venv
2019-06-05T14:51:20.218400
Ashley
pythondev_help_Ashley_2019-06-05T14:51:20.218400
1,559,746,280.2184
26,966
pythondev
help
<@Jesusa> :taco:
2019-06-05T14:52:12.218800
Ashley
pythondev_help_Ashley_2019-06-05T14:52:12.218800
1,559,746,332.2188
26,967
pythondev
help
what's up with `nt` though?
2019-06-05T14:53:04.219100
Ashley
pythondev_help_Ashley_2019-06-05T14:53:04.219100
1,559,746,384.2191
26,968
pythondev
help
windows, I think
2019-06-05T14:54:09.219300
Hiroko
pythondev_help_Hiroko_2019-06-05T14:54:09.219300
1,559,746,449.2193
26,969
pythondev
help
specifically windows NT versions
2019-06-05T14:54:24.219600
Hiroko
pythondev_help_Hiroko_2019-06-05T14:54:24.219600
1,559,746,464.2196
26,970
pythondev
help
comes from this: <https://github.com/python/cpython/blob/master/Python/sysmodule.c#L1957-L1982>
2019-06-05T14:57:42.220000
Hiroko
pythondev_help_Hiroko_2019-06-05T14:57:42.220000
1,559,746,662.22
26,971
pythondev
help
either `posix` or `nt`
2019-06-05T14:57:47.220300
Hiroko
pythondev_help_Hiroko_2019-06-05T14:57:47.220300
1,559,746,667.2203
26,972
pythondev
help
<https://github.com/python/cpython/blob/master/Lib/os.py#L6>
2019-06-05T14:58:16.220500
Hiroko
pythondev_help_Hiroko_2019-06-05T14:58:16.220500
1,559,746,696.2205
26,973
pythondev
help
what up
2019-06-05T15:01:43.221200
Carmon
pythondev_help_Carmon_2019-06-05T15:01:43.221200
1,559,746,903.2212
26,974
pythondev
help
<@Ashley> How is a copy of an interpreter different from a symlink?
2019-06-05T15:05:10.221700
Jesusa
pythondev_help_Jesusa_2019-06-05T15:05:10.221700
1,559,747,110.2217
26,975
pythondev
help
symlink goes to the location you have it pointed to
2019-06-05T15:06:07.222000
Holly
pythondev_help_Holly_2019-06-05T15:06:07.222000
1,559,747,167.222
26,976
pythondev
help
a copy is an instance in and of itself separate from the other
2019-06-05T15:06:16.222400
Holly
pythondev_help_Holly_2019-06-05T15:06:16.222400
1,559,747,176.2224
26,977
pythondev
help
if you change what is at the linked location - :fireworks:
2019-06-05T15:06:25.222700
Clemmie
pythondev_help_Clemmie_2019-06-05T15:06:25.222700
1,559,747,185.2227
26,978
pythondev
help
for tooling that have to have know, pinned versions, that is not great
2019-06-05T15:06:48.223300
Clemmie
pythondev_help_Clemmie_2019-06-05T15:06:48.223300
1,559,747,208.2233
26,979
pythondev
help
nothing should change the system python, ever
2019-06-05T15:06:54.223600
Jesusa
pythondev_help_Jesusa_2019-06-05T15:06:54.223600
1,559,747,214.2236
26,980
pythondev
help
this is by design
2019-06-05T15:06:59.223800
Jesusa
pythondev_help_Jesusa_2019-06-05T15:06:59.223800
1,559,747,219.2238
26,981
pythondev
help
otherwise bad things start to happen in *NIX land
2019-06-05T15:07:20.224400
Jesusa
pythondev_help_Jesusa_2019-06-05T15:07:20.224400
1,559,747,240.2244
26,982
pythondev
help
no system has 3.7 as the default yet
2019-06-05T15:07:22.224500
Clemmie
pythondev_help_Clemmie_2019-06-05T15:07:22.224500
1,559,747,242.2245
26,983
pythondev
help
so you are linkeng to an installed 3.7
2019-06-05T15:07:32.224800
Clemmie
pythondev_help_Clemmie_2019-06-05T15:07:32.224800
1,559,747,252.2248
26,984
pythondev
help
which could be fine. But maybe there is a 3.7.1 bug fix - most would install it where 3.7 is. but that might break a contract with the app that is using 3.7
2019-06-05T15:08:07.226000
Clemmie
pythondev_help_Clemmie_2019-06-05T15:08:07.226000
1,559,747,287.226
26,985
pythondev
help
that’s the equivalent of saying “you shouldn’t symlink openssh” because anyone should be able to swap the binary in /usr/bin
2019-06-05T15:08:22.226600
Jesusa
pythondev_help_Jesusa_2019-06-05T15:08:22.226600
1,559,747,302.2266
26,986
pythondev
help
also, yesterday, Apple stated they were removing system python by default in futhre releases of OSX
2019-06-05T15:08:24.226800
Hiroko
pythondev_help_Hiroko_2019-06-05T15:08:24.226800
1,559,747,304.2268
26,987
pythondev
help
but they’re keeping ruby? <@Hiroko>
2019-06-05T15:08:42.227300
Jesusa
pythondev_help_Jesusa_2019-06-05T15:08:42.227300
1,559,747,322.2273
26,988
pythondev
help
:nope:
2019-06-05T15:08:46.227700
Hiroko
pythondev_help_Hiroko_2019-06-05T15:08:46.227700
1,559,747,326.2277
26,989
pythondev
help
nope - removing all scripting languages
2019-06-05T15:08:50.227800
Clemmie
pythondev_help_Clemmie_2019-06-05T15:08:50.227800
1,559,747,330.2278
26,990
pythondev
help
<https://developer.apple.com/documentation/macos_release_notes/macos_10_15_beta_release_notes>
2019-06-05T15:08:59.228000
Hiroko
pythondev_help_Hiroko_2019-06-05T15:08:59.228000
1,559,747,339.228
26,991
pythondev
help
&gt;&gt;&gt;• Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by default, and might require you to install additional packages. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app. (49764202) • Use of Python 2.7 isn’t recommended as this version is included in macOS for compatibility with legacy software. Future versions of macOS won’t include Python 2.7. Instead, it’s recommended that you run python3 from within Terminal. (51097165)
2019-06-05T15:09:18.228500
Hiroko
pythondev_help_Hiroko_2019-06-05T15:09:18.228500
1,559,747,358.2285
26,992
pythondev
help
if I had a contract/regulation, say in healthcare, where all versions needed to be pinned and had catastrophic regulatory penalties if it changed without approval, you would be sure I am copying and not symlinking openssh too
2019-06-05T15:10:02.230100
Clemmie
pythondev_help_Clemmie_2019-06-05T15:10:02.230100
1,559,747,402.2301
26,993
pythondev
help
If I had a contract/regulation I would ensure the binaries have only executable permissions, and that’s it
2019-06-05T15:10:44.231600
Jesusa
pythondev_help_Jesusa_2019-06-05T15:10:44.231600
1,559,747,444.2316
26,994
pythondev
help
that is why we use docker with versy specific release version identifications
2019-06-05T15:10:48.231800
Clemmie
pythondev_help_Clemmie_2019-06-05T15:10:48.231800
1,559,747,448.2318
26,995
pythondev
help
docker is not invulnenable to this
2019-06-05T15:11:13.232400
Jesusa
pythondev_help_Jesusa_2019-06-05T15:11:13.232400
1,559,747,473.2324
26,996
pythondev
help
not invulnerable no
2019-06-05T15:11:21.232700
Clemmie
pythondev_help_Clemmie_2019-06-05T15:11:21.232700
1,559,747,481.2327
26,997
pythondev
help
Hi folks, have question regarding polling best practices. I have a Python/flask app that needs to request data from an external server (for example: Instagram). The intention is to check it regularly for changes. I was thinking of just making a simple beautifulsoup scraper, logging the most recent post and comparing the new one to the saved one in the DB. This comparison request -&gt; compare script would be executed by a cronjob say every 1 second. Is there a better approach?
2019-06-05T15:11:24.233100
Mariah
pythondev_help_Mariah_2019-06-05T15:11:24.233100
1,559,747,484.2331
26,998
pythondev
help
layered approach
2019-06-05T15:11:28.233300
Clemmie
pythondev_help_Clemmie_2019-06-05T15:11:28.233300
1,559,747,488.2333
26,999
pythondev
help
<@Mariah> I would look to see if the external app had an api to use
2019-06-05T15:12:01.233700
Clemmie
pythondev_help_Clemmie_2019-06-05T15:12:01.233700
1,559,747,521.2337
27,000
pythondev
help
Hi, the resource isnt what im worried about, its the polling approach.
2019-06-05T15:12:49.233900
Mariah
pythondev_help_Mariah_2019-06-05T15:12:49.233900
1,559,747,569.2339
27,001
pythondev
help
What I am saying is that a scraper to parse the html and then compare the widget every second is a little heavy. If there was an api where you could pull the last_changed of a widget, you could poll that
2019-06-05T15:14:18.234900
Clemmie
pythondev_help_Clemmie_2019-06-05T15:14:18.234900
1,559,747,658.2349
27,002
pythondev
help
If you get into running a lot of these, every second, you will end up with a backed up queue
2019-06-05T15:14:34.235300
Clemmie
pythondev_help_Clemmie_2019-06-05T15:14:34.235300
1,559,747,674.2353
27,003
pythondev
help
why do you need to parse the html? just check the site’s checksum before parsing
2019-06-05T15:15:01.235800
Jesusa
pythondev_help_Jesusa_2019-06-05T15:15:01.235800
1,559,747,701.2358
27,004
pythondev
help
I ran the scraper fleet for <http://quandl.com|quandl.com> this works nicely
2019-06-05T15:15:37.236600
Jesusa
pythondev_help_Jesusa_2019-06-05T15:15:37.236600
1,559,747,737.2366
27,005
pythondev
help
in fact, there’s a specific http request to get the checksum
2019-06-05T15:15:46.236900
Jesusa
pythondev_help_Jesusa_2019-06-05T15:15:46.236900
1,559,747,746.2369
27,006
pythondev
help
how do i get the checksum?
2019-06-05T15:16:30.237100
Mariah
pythondev_help_Mariah_2019-06-05T15:16:30.237100
1,559,747,790.2371
27,007
pythondev
help
I did this a long time ago
2019-06-05T15:16:40.237300
Jesusa
pythondev_help_Jesusa_2019-06-05T15:16:40.237300
1,559,747,800.2373
27,008
pythondev
help
I agree. A webhook would be ideal but not all platforms have this
2019-06-05T15:16:42.237500
Mariah
pythondev_help_Mariah_2019-06-05T15:16:42.237500
1,559,747,802.2375
27,009
pythondev
help
`HEAD` will work
2019-06-05T15:17:00.237700
Jesusa
pythondev_help_Jesusa_2019-06-05T15:17:00.237700
1,559,747,820.2377
27,010
pythondev
help
if they’re fully REST compliant
2019-06-05T15:17:04.237900
Jesusa
pythondev_help_Jesusa_2019-06-05T15:17:04.237900
1,559,747,824.2379
27,011
pythondev
help
you might be able to just get the Last-Modified field
2019-06-05T15:17:12.238100
Jesusa
pythondev_help_Jesusa_2019-06-05T15:17:12.238100
1,559,747,832.2381
27,012
pythondev
help
absolutely. your polling idea has a good core, I would just be aware of the cases where it might break sown
2019-06-05T15:17:28.238300
Clemmie
pythondev_help_Clemmie_2019-06-05T15:17:28.238300
1,559,747,848.2383
27,013
pythondev
help
else just `hash()` the request content
2019-06-05T15:17:43.238800
Jesusa
pythondev_help_Jesusa_2019-06-05T15:17:43.238800
1,559,747,863.2388
27,014
pythondev
help
Hey guys, anyone knows how to do this <https://stackoverflow.com/a/23069201/9456478>
2019-06-05T15:17:49.239100
Catherina
pythondev_help_Catherina_2019-06-05T15:17:49.239100
1,559,747,869.2391
27,015
pythondev
help
but in a more robust way?
2019-06-05T15:17:55.239400
Catherina
pythondev_help_Catherina_2019-06-05T15:17:55.239400
1,559,747,875.2394
27,016
pythondev
help
<@Catherina> you could just alias `python` to something else
2019-06-05T15:18:20.240100
Jesusa
pythondev_help_Jesusa_2019-06-05T15:18:20.240100
1,559,747,900.2401
27,017
pythondev
help
but this is all super fragile
2019-06-05T15:18:26.240300
Jesusa
pythondev_help_Jesusa_2019-06-05T15:18:26.240300
1,559,747,906.2403
27,018
pythondev
help
hash is super fast and is probably more reliable than that.
2019-06-05T15:18:42.240500
Jesusa
pythondev_help_Jesusa_2019-06-05T15:18:42.240500
1,559,747,922.2405
27,019
pythondev
help
sorry, I meant why did it get special treatment
2019-06-05T15:20:21.241600
Ashley
pythondev_help_Ashley_2019-06-05T15:20:21.241600
1,559,748,021.2416
27,020