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
<@Carmen> no just basic commands like 'start'
2019-01-29T14:22:36.096400
Nenita
pythondev_help_Nenita_2019-01-29T14:22:36.096400
1,548,771,756.0964
5,121
pythondev
help
Anyone else using VSCode ever have an issue where it will sometimes not pause execution at breakpoints you’ve set?
2019-01-29T14:22:47.097000
Magdalena
pythondev_help_Magdalena_2019-01-29T14:22:47.097000
1,548,771,767.097
5,122
pythondev
help
This is the output it has would items not be a field?
2019-01-29T14:23:32.098300
Mozelle
pythondev_help_Mozelle_2019-01-29T14:23:32.098300
1,548,771,812.0983
5,123
pythondev
help
basic commands that return data work perfectly like their suppose to. It just hangs with certain commands.
2019-01-29T14:23:37.098700
Nenita
pythondev_help_Nenita_2019-01-29T14:23:37.098700
1,548,771,817.0987
5,124
pythondev
help
<@Nenita> one thing I did learn the hard way, SSH’ing into a Linux environment though (not Windows), is that this didn’t work to run commands that are aliases in the bash profile on the other machine
2019-01-29T14:23:59.099500
Cherish
pythondev_help_Cherish_2019-01-29T14:23:59.099500
1,548,771,839.0995
5,125
pythondev
help
not sure if that might be what you’re running into
2019-01-29T14:24:13.100000
Cherish
pythondev_help_Cherish_2019-01-29T14:24:13.100000
1,548,771,853.1
5,126
pythondev
help
<@Nenita> It honestly sounds like the system is trying to do the thing, but the SSH server doesn't have the appropriate permissions or capabilities to handle whatever the command is supposed to do.
2019-01-29T14:24:27.100400
Carmen
pythondev_help_Carmen_2019-01-29T14:24:27.100400
1,548,771,867.1004
5,127
pythondev
help
that is the only option i have left to conclude
2019-01-29T14:24:43.100900
Nenita
pythondev_help_Nenita_2019-01-29T14:24:43.100900
1,548,771,883.1009
5,128
pythondev
help
i was reading that on one post
2019-01-29T14:24:48.101100
Nenita
pythondev_help_Nenita_2019-01-29T14:24:48.101100
1,548,771,888.1011
5,129
pythondev
help
<@Carmen>
2019-01-29T14:25:04.101600
Nenita
pythondev_help_Nenita_2019-01-29T14:25:04.101600
1,548,771,904.1016
5,130
pythondev
help
In Linux, I'd think it was related to not having a Windowing system like X available, but I'm not sure how Windows environments handle that sort of thing.
2019-01-29T14:25:17.102100
Carmen
pythondev_help_Carmen_2019-01-29T14:25:17.102100
1,548,771,917.1021
5,131
pythondev
help
Ok I get that but I am misunderstanding then. How do I get to the values in the json then?
2019-01-29T14:25:21.102300
Mozelle
pythondev_help_Mozelle_2019-01-29T14:25:21.102300
1,548,771,921.1023
5,132
pythondev
help
Plus you have the interaction with the SSH server process trying to start it up, and all the permissions that would involve, as well as then how the SSH server is going to send that back to you.
2019-01-29T14:25:43.103700
Carmen
pythondev_help_Carmen_2019-01-29T14:25:43.103700
1,548,771,943.1037
5,133
pythondev
help
i think a good option to wing out is to test out ssh from linux to windows and see if these commands execute on my own pc through vm
2019-01-29T14:25:49.103900
Nenita
pythondev_help_Nenita_2019-01-29T14:25:49.103900
1,548,771,949.1039
5,134
pythondev
help
if it works through vm to my pc, then its concluded that it may be permission based
2019-01-29T14:26:10.104400
Nenita
pythondev_help_Nenita_2019-01-29T14:26:10.104400
1,548,771,970.1044
5,135
pythondev
help
Out of curosity, what actual programs are you trying to execute with `start`?
2019-01-29T14:26:41.104800
Carmen
pythondev_help_Carmen_2019-01-29T14:26:41.104800
1,548,772,001.1048
5,136
pythondev
help
just open a folder lol
2019-01-29T14:26:52.105200
Nenita
pythondev_help_Nenita_2019-01-29T14:26:52.105200
1,548,772,012.1052
5,137
pythondev
help
simplest test to see if the commands affected the remote pc
2019-01-29T14:27:03.105600
Nenita
pythondev_help_Nenita_2019-01-29T14:27:03.105600
1,548,772,023.1056
5,138
pythondev
help
That sounds like a GUI-based thing, tbh. I'd probably have gone for a Windows equivalent of `touch` though. <https://superuser.com/a/764721>
2019-01-29T14:28:27.106500
Carmen
pythondev_help_Carmen_2019-01-29T14:28:27.106500
1,548,772,107.1065
5,139
pythondev
help
Using a string. "key", not key
2019-01-29T14:30:32.107700
Jonas
pythondev_help_Jonas_2019-01-29T14:30:32.107700
1,548,772,232.1077
5,140
pythondev
help
this is a <#C07EW4DNE|learning_python> question IMO
2019-01-29T14:30:41.108300
Jonas
pythondev_help_Jonas_2019-01-29T14:30:41.108300
1,548,772,241.1083
5,141
pythondev
help
im not sure if that's gunna help me get far. ultimate throughout all the trouble i've been accruing, ultimately i just want to be able to run a single bat file just so I have control on my end.
2019-01-29T14:30:48.108700
Nenita
pythondev_help_Nenita_2019-01-29T14:30:48.108700
1,548,772,248.1087
5,142
pythondev
help
so you might get better help there
2019-01-29T14:30:51.108900
Jonas
pythondev_help_Jonas_2019-01-29T14:30:51.108900
1,548,772,251.1089
5,143
pythondev
help
Well, you said you were wanting to test if the commands affect the remote PC. That would let you know that you can affect it. If you need to interact with specific programs in specific ways, that's a whole different ballgame.
2019-01-29T14:32:07.111100
Carmen
pythondev_help_Carmen_2019-01-29T14:32:07.111100
1,548,772,327.1111
5,144
pythondev
help
Usually `start` will execute a program in a different window. If you're in an SSH session, you won't see that other window.
2019-01-29T14:32:20.111800
Raven
pythondev_help_Raven_2019-01-29T14:32:20.111800
1,548,772,340.1118
5,145
pythondev
help
And depending on what you're aiming for, you might be better served with using a Windows integration library via Python script.
2019-01-29T14:32:29.112400
Carmen
pythondev_help_Carmen_2019-01-29T14:32:29.112400
1,548,772,349.1124
5,146
pythondev
help
<@Carmen> oh i see now
2019-01-29T14:32:29.112500
Nenita
pythondev_help_Nenita_2019-01-29T14:32:29.112500
1,548,772,349.1125
5,147
pythondev
help
good idea. my apologies
2019-01-29T14:32:36.112800
Nenita
pythondev_help_Nenita_2019-01-29T14:32:36.112800
1,548,772,356.1128
5,148
pythondev
help
any good libraries?
2019-01-29T14:32:56.113400
Nenita
pythondev_help_Nenita_2019-01-29T14:32:56.113400
1,548,772,376.1134
5,149
pythondev
help
It's been years. Let me grab my Grey Hat Python book and see what he uses, and go from there.
2019-01-29T14:33:16.114200
Carmen
pythondev_help_Carmen_2019-01-29T14:33:16.114200
1,548,772,396.1142
5,150
pythondev
help
<@Mozelle> the issue is that the key you put in between the `[…]` braces is a python expression. You're giving an expression of `items` - which means to look up the name `items` in the current symbol table and find the value associated with it. You haven't defined any name `items`, so it's telling you that the name `...
2019-01-29T14:33:53.114900
Kiera
pythondev_help_Kiera_2019-01-29T14:33:53.114900
1,548,772,433.1149
5,151
pythondev
help
so specifically, you should be looking for `test["items"]`
2019-01-29T14:34:35.115300
Kiera
pythondev_help_Kiera_2019-01-29T14:34:35.115300
1,548,772,475.1153
5,152
pythondev
help
Thanks, I do not know why I was forgetting the "
2019-01-29T14:35:26.115500
Mozelle
pythondev_help_Mozelle_2019-01-29T14:35:26.115500
1,548,772,526.1155
5,153
pythondev
help
Yes thanks I do not know why in my mind I had added the "
2019-01-29T14:36:04.116500
Mozelle
pythondev_help_Mozelle_2019-01-29T14:36:04.116500
1,548,772,564.1165
5,154
pythondev
help
<@Raven> yea i was hoping it would execute it on the remote pc. thankfully i am visually remoted in so i can see if anything happens
2019-01-29T14:36:26.116900
Nenita
pythondev_help_Nenita_2019-01-29T14:36:26.116900
1,548,772,586.1169
5,155
pythondev
help
And is this batch file on the remote pc?
2019-01-29T14:37:54.117400
Raven
pythondev_help_Raven_2019-01-29T14:37:54.117400
1,548,772,674.1174
5,156
pythondev
help
yea
2019-01-29T14:38:04.117800
Nenita
pythondev_help_Nenita_2019-01-29T14:38:04.117800
1,548,772,684.1178
5,157
pythondev
help
Ah, so he uses `ctypes` and directly uses the system DLLs. I'm not sure that's the best way to go about things.
2019-01-29T14:38:17.118400
Carmen
pythondev_help_Carmen_2019-01-29T14:38:17.118400
1,548,772,697.1184
5,158
pythondev
help
i have a full environment set up so thankfully i can see and manage everything on my pc.
2019-01-29T14:38:24.118600
Nenita
pythondev_help_Nenita_2019-01-29T14:38:24.118600
1,548,772,704.1186
5,159
pythondev
help
If you're running GUI stuff, you might give <https://pywinauto.github.io/> a shot.
2019-01-29T14:39:40.119100
Carmen
pythondev_help_Carmen_2019-01-29T14:39:40.119100
1,548,772,780.1191
5,160
pythondev
help
oh yea. that will defintely make up for what i am trying to do
2019-01-29T14:40:20.119600
Nenita
pythondev_help_Nenita_2019-01-29T14:40:20.119600
1,548,772,820.1196
5,161
pythondev
help
its frustrating that i sometimes am unable to find solutions like so
2019-01-29T14:40:39.120100
Nenita
pythondev_help_Nenita_2019-01-29T14:40:39.120100
1,548,772,839.1201
5,162
pythondev
help
I find that it's all about knowing what keywords to smash together in a Google search bar.
2019-01-29T14:41:24.120600
Carmen
pythondev_help_Carmen_2019-01-29T14:41:24.120600
1,548,772,884.1206
5,163
pythondev
help
In that case, "python windows gui automation" popped up that project as the top result.
2019-01-29T14:41:47.121100
Carmen
pythondev_help_Carmen_2019-01-29T14:41:47.121100
1,548,772,907.1211
5,164
pythondev
help
right lmao
2019-01-29T14:41:49.121200
Nenita
pythondev_help_Nenita_2019-01-29T14:41:49.121200
1,548,772,909.1212
5,165
pythondev
help
speaking; do you know if pywinauto is functional over networks?
2019-01-29T14:42:11.121700
Nenita
pythondev_help_Nenita_2019-01-29T14:42:11.121700
1,548,772,931.1217
5,166
pythondev
help
You'll need to have it installed locally AFAIK. The Python script will need to be locally running as well.
2019-01-29T14:42:36.122500
Carmen
pythondev_help_Carmen_2019-01-29T14:42:36.122500
1,548,772,956.1225
5,167
pythondev
help
ah shoot
2019-01-29T14:43:17.123400
Nenita
pythondev_help_Nenita_2019-01-29T14:43:17.123400
1,548,772,997.1234
5,168
pythondev
help
If it's driving GUI stuff, it's going to be making system-level calls, and I don't know of any way to be doing that remotely without *something* running on the target system.
2019-01-29T14:43:21.123700
Carmen
pythondev_help_Carmen_2019-01-29T14:43:21.123700
1,548,773,001.1237
5,169
pythondev
help
im trying to avoid having to install anything on our remote server
2019-01-29T14:43:29.123900
Nenita
pythondev_help_Nenita_2019-01-29T14:43:29.123900
1,548,773,009.1239
5,170
pythondev
help
but its something i can work with
2019-01-29T14:44:16.124500
Nenita
pythondev_help_Nenita_2019-01-29T14:44:16.124500
1,548,773,056.1245
5,171
pythondev
help
i bet i can fool around and get something going
2019-01-29T14:44:24.124800
Nenita
pythondev_help_Nenita_2019-01-29T14:44:24.124800
1,548,773,064.1248
5,172
pythondev
help
this may be useful <https://ss64.com/nt/schtasks.html>
2019-01-29T14:47:28.125000
Nenita
pythondev_help_Nenita_2019-01-29T14:47:28.125000
1,548,773,248.125
5,173
pythondev
help
Seriously thanks, every where else in my code I had the correct string represented and I just got stuck...
2019-01-29T14:51:10.125200
Mozelle
pythondev_help_Mozelle_2019-01-29T14:51:10.125200
1,548,773,470.1252
5,174
pythondev
help
I appreciate all the help
2019-01-29T14:51:12.125400
Nenita
pythondev_help_Nenita_2019-01-29T14:51:12.125400
1,548,773,472.1254
5,175
pythondev
help
Does anyone know if there's a point where you would use a nested function over a class?
2019-01-29T15:23:18.126200
Granville
pythondev_help_Granville_2019-01-29T15:23:18.126200
1,548,775,398.1262
5,176
pythondev
help
decorators
2019-01-29T15:28:20.126500
Ashley
pythondev_help_Ashley_2019-01-29T15:28:20.126500
1,548,775,700.1265
5,177
pythondev
help
classes are good for when you need to keep track of the state of some data and need functionality that's dependent on that data's state
2019-01-29T15:29:16.127400
Ashley
pythondev_help_Ashley_2019-01-29T15:29:16.127400
1,548,775,756.1274
5,178
pythondev
help
Or if you want a custom handler for a callback. Like in the pybreaker circuit breaker library
2019-01-29T15:30:48.128900
Hiroko
pythondev_help_Hiroko_2019-01-29T15:30:48.128900
1,548,775,848.1289
5,179
pythondev
help
that too
2019-01-29T15:31:07.129100
Ashley
pythondev_help_Ashley_2019-01-29T15:31:07.129100
1,548,775,867.1291
5,180
pythondev
help
sometimes you just want the ability to create a one-off function that you can change a little bit about without going through the hassle of making a class with callable instances
2019-01-29T15:32:43.130500
Ashley
pythondev_help_Ashley_2019-01-29T15:32:43.130500
1,548,775,963.1305
5,181
pythondev
help
I would argue that unless you explicitly have a package of state _and_ operations that operate primarily on that state alone, you shouldn't have a class
2019-01-29T15:32:44.130600
Raven
pythondev_help_Raven_2019-01-29T15:32:44.130600
1,548,775,964.1306
5,182
pythondev
help
I think Java has a lot to answer for, with the "everything should be a class" attitude it created
2019-01-29T15:33:02.131100
Raven
pythondev_help_Raven_2019-01-29T15:33:02.131100
1,548,775,982.1311
5,183
pythondev
help
yeah, not a bad argument
2019-01-29T15:33:05.131300
Ashley
pythondev_help_Ashley_2019-01-29T15:33:05.131300
1,548,775,985.1313
5,184
pythondev
help
haha I agree
2019-01-29T15:33:16.131500
Ashley
pythondev_help_Ashley_2019-01-29T15:33:16.131500
1,548,775,996.1315
5,185
pythondev
help
``` def call_api_many(self, url, param_sets=None, max_workers=settings.INDEXING_MAX_THREADS): max_workers = util.clamp(max_workers, 2, settings.INDEXING_MAX_THREADS) timeout = self.timeout with FuturesSession(session=self, max_workers=max_workers) as fsession: def validate_respons...
2019-01-29T15:34:05.132200
Hiroko
pythondev_help_Hiroko_2019-01-29T15:34:05.132200
1,548,776,045.1322
5,186
pythondev
help
that’s inside a class, so you can see there’s a defined method inside the context
2019-01-29T15:34:20.132600
Hiroko
pythondev_help_Hiroko_2019-01-29T15:34:20.132600
1,548,776,060.1326
5,187
pythondev
help
so, the seesion executes, and the callback executes when complete. It just updates the data
2019-01-29T15:35:03.133200
Hiroko
pythondev_help_Hiroko_2019-01-29T15:35:03.133200
1,548,776,103.1332
5,188
pythondev
help
`FuturesSession` comes from `requests_futures`
2019-01-29T15:35:18.133700
Hiroko
pythondev_help_Hiroko_2019-01-29T15:35:18.133700
1,548,776,118.1337
5,189
pythondev
help
so that allows a bulk broadcast call to execute over a number of workers to different services, and act as a generator
2019-01-29T15:36:13.134300
Hiroko
pythondev_help_Hiroko_2019-01-29T15:36:13.134300
1,548,776,173.1343
5,190
pythondev
help
``` futures = self.call_api_many(url, param_sets=param_sets, max_workers=page_count) for future in futures: data = future.result().data chapters.extend(util.deserialize_many( ChapterSerializer, data.get('results', []), book_data=book_data, ...
2019-01-29T15:36:15.134600
Hiroko
pythondev_help_Hiroko_2019-01-29T15:36:15.134600
1,548,776,175.1346
5,191
pythondev
help
so in this case, `validate_response` has just one thing to do, and its used in one place only
2019-01-29T15:37:02.135200
Hiroko
pythondev_help_Hiroko_2019-01-29T15:37:02.135200
1,548,776,222.1352
5,192
pythondev
help
so it makes sense to have it as a nested function inside a context manager
2019-01-29T15:37:15.135700
Hiroko
pythondev_help_Hiroko_2019-01-29T15:37:15.135700
1,548,776,235.1357
5,193
pythondev
help
I think that's another good point - nested functions (and classes) mean you can avoid polluting the global namespace with things that aren't going to get used outside of a specific context
2019-01-29T15:43:37.136800
Raven
pythondev_help_Raven_2019-01-29T15:43:37.136800
1,548,776,617.1368
5,194
pythondev
help
precisely, and for my purposes, that’s pretty much the primary usage
2019-01-29T15:44:14.137600
Hiroko
pythondev_help_Hiroko_2019-01-29T15:44:14.137600
1,548,776,654.1376
5,195
pythondev
help
True, but isn't that what namespaces in general are supposed to handle?
2019-01-29T15:44:25.138100
Carmen
pythondev_help_Carmen_2019-01-29T15:44:25.138100
1,548,776,665.1381
5,196
pythondev
help
I use inheritance and composition alot, which means mixins and base classes. and this usage pattern tends to clean things up a bit more and increase understandability
2019-01-29T15:44:49.139000
Hiroko
pythondev_help_Hiroko_2019-01-29T15:44:49.139000
1,548,776,689.139
5,197
pythondev
help
I was trying to come up with an equivalent of "related function aggregation" as per Scala objects, but really, namespaces should do that AFAIK.
2019-01-29T15:45:03.139300
Carmen
pythondev_help_Carmen_2019-01-29T15:45:03.139300
1,548,776,703.1393
5,198
pythondev
help
So I am playing with some parsing and processing of an html doc in the same folder as the python doc I'm working in but I continue to get an error from debug in VS code that the doc I'm referencing doesn't exist. Is there something I need to type before the name of the doc?
2019-01-29T15:53:52.141000
Sylvie
pythondev_help_Sylvie_2019-01-29T15:53:52.141000
1,548,777,232.141
5,199
pythondev
help
would help to see what you’re doing
2019-01-29T15:54:33.141400
Hiroko
pythondev_help_Hiroko_2019-01-29T15:54:33.141400
1,548,777,273.1414
5,200
pythondev
help
None
2019-01-29T15:54:58.141500
Sylvie
pythondev_help_Sylvie_2019-01-29T15:54:58.141500
1,548,777,298.1415
5,201
pythondev
help
It's line 15
2019-01-29T15:55:07.142000
Sylvie
pythondev_help_Sylvie_2019-01-29T15:55:07.142000
1,548,777,307.142
5,202
pythondev
help
either make sure you're in the directory that the html file exists or `open()` the absolute path to the file
2019-01-29T15:55:56.142700
Gemma
pythondev_help_Gemma_2019-01-29T15:55:56.142700
1,548,777,356.1427
5,203
pythondev
help
Exception has occurred: FileNotFoundError [Errno 2] No such file or directory: 'samplehtml.html' File "C:\Users\n0080\Documents\Education\Lynda Learning\Master Python for Data Science\Learning Python\Exercise Files\Ch5\htmlparsing_start.py", line 15, in main f = open("samplehtml.html") File "C:\Users\n0080\Docu...
2019-01-29T15:56:45.143100
Sylvie
pythondev_help_Sylvie_2019-01-29T15:56:45.143100
1,548,777,405.1431
5,204
pythondev
help
The file is in Ch5
2019-01-29T15:56:53.143500
Sylvie
pythondev_help_Sylvie_2019-01-29T15:56:53.143500
1,548,777,413.1435
5,205
pythondev
help
when it comes to files and opening them, being precise is good
2019-01-29T15:56:53.143700
Hiroko
pythondev_help_Hiroko_2019-01-29T15:56:53.143700
1,548,777,413.1437
5,206
pythondev
help
also, the conditional is redundant
2019-01-29T15:56:59.144100
Jonas
pythondev_help_Jonas_2019-01-29T15:56:59.144100
1,548,777,419.1441
5,207
pythondev
help
making assumptions can bite you hard
2019-01-29T15:57:00.144400
Hiroko
pythondev_help_Hiroko_2019-01-29T15:57:00.144400
1,548,777,420.1444
5,208
pythondev
help
`with open('samplehtml.html') as fd:`
2019-01-29T15:57:08.144700
Jonas
pythondev_help_Jonas_2019-01-29T15:57:08.144700
1,548,777,428.1447
5,209
pythondev
help
if you want to debug this issue, add this line to the main(): `print(os.getcwd())`
2019-01-29T15:57:40.145400
Jonas
pythondev_help_Jonas_2019-01-29T15:57:40.145400
1,548,777,460.1454
5,210
pythondev
help
and add `import os` at the top
2019-01-29T15:57:47.145700
Jonas
pythondev_help_Jonas_2019-01-29T15:57:47.145700
1,548,777,467.1457
5,211
pythondev
help
Yes, remember that when you run a Python script, it doesn't necessarily mean that the current working directory is the one with the script in
2019-01-29T15:57:59.146200
Raven
pythondev_help_Raven_2019-01-29T15:57:59.146200
1,548,777,479.1462
5,212
pythondev
help
you will find that visual studio is running your script in a different directory, so you may need to change the configuration in visual studio to point to the right place.
2019-01-29T15:58:15.146900
Jonas
pythondev_help_Jonas_2019-01-29T15:58:15.146900
1,548,777,495.1469
5,213
pythondev
help
yeah, all good suggestions here
2019-01-29T15:58:21.147100
Gemma
pythondev_help_Gemma_2019-01-29T15:58:21.147100
1,548,777,501.1471
5,214
pythondev
help
I took the path from the error and plopped it in there and it's throwing more errors :expressionless:
2019-01-29T15:59:31.147900
Sylvie
pythondev_help_Sylvie_2019-01-29T15:59:31.147900
1,548,777,571.1479
5,215
pythondev
help
I would take a look at some of the suggestions above and see if they help
2019-01-29T15:59:58.148400
Jonas
pythondev_help_Jonas_2019-01-29T15:59:58.148400
1,548,777,598.1484
5,216
pythondev
help
Show the errors
2019-01-29T15:59:59.148500
Raven
pythondev_help_Raven_2019-01-29T15:59:59.148500
1,548,777,599.1485
5,217
pythondev
help
(and the new code)
2019-01-29T16:00:06.148700
Raven
pythondev_help_Raven_2019-01-29T16:00:06.148700
1,548,777,606.1487
5,218
pythondev
help
I'm trying them as much as I can
2019-01-29T16:00:15.148900
Sylvie
pythondev_help_Sylvie_2019-01-29T16:00:15.148900
1,548,777,615.1489
5,219
pythondev
help
I'm looking where I can add the suggestions
2019-01-29T16:00:23.149300
Sylvie
pythondev_help_Sylvie_2019-01-29T16:00:23.149300
1,548,777,623.1493
5,220