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
Yeah you probably have to separate them
2017-12-18T14:58:02.000144
Myong
pythondev_help_Myong_2017-12-18T14:58:02.000144
1,513,609,082.000144
104,703
pythondev
help
its kind of unwieldy but i have like 9 arguments to pass
2017-12-18T14:58:05.000709
Fabian
pythondev_help_Fabian_2017-12-18T14:58:05.000709
1,513,609,085.000709
104,704
pythondev
help
Yeah you may want a more interactive script
2017-12-18T14:58:18.000318
Myong
pythondev_help_Myong_2017-12-18T14:58:18.000318
1,513,609,098.000318
104,705
pythondev
help
instead of 9 arguments of the command line
2017-12-18T14:58:25.000419
Myong
pythondev_help_Myong_2017-12-18T14:58:25.000419
1,513,609,105.000419
104,706
pythondev
help
im seperating them with a space, did the tuples in a tuple, but i think its still reading all of em at once
2017-12-18T14:58:26.000445
Fabian
pythondev_help_Fabian_2017-12-18T14:58:26.000445
1,513,609,106.000445
104,707
pythondev
help
wanted to try something quick and dirty but yeah i probably should
2017-12-18T14:58:58.000279
Fabian
pythondev_help_Fabian_2017-12-18T14:58:58.000279
1,513,609,138.000279
104,708
pythondev
help
so i switched all the code to ask for inputs
2017-12-18T15:08:53.000116
Fabian
pythondev_help_Fabian_2017-12-18T15:08:53.000116
1,513,609,733.000116
104,709
pythondev
help
```PS C:\Users\lerug\Desktop\VASSAL WORK\Tarwa & Saipan> py .\counter-cutter-beta.py testcounters.png Coordinates of first cell: (107, 25) Traceback (most recent call last): File ".\counter-cutter-beta.py", line 21, in <module> start_pos = start_x, start_y = input("Coordinates of first cell: ") Value...
2017-12-18T15:09:13.000048
Fabian
pythondev_help_Fabian_2017-12-18T15:09:13.000048
1,513,609,753.000048
104,710
pythondev
help
thats the error message I keep getting
2017-12-18T15:09:21.000035
Fabian
pythondev_help_Fabian_2017-12-18T15:09:21.000035
1,513,609,761.000035
104,711
pythondev
help
`start_pos = start_x, start_y = input("Coordinates of first cell: ")`
2017-12-18T15:11:44.000028
Ciera
pythondev_help_Ciera_2017-12-18T15:11:44.000028
1,513,609,904.000028
104,712
pythondev
help
what is the goal of this line ?
2017-12-18T15:11:52.000166
Ciera
pythondev_help_Ciera_2017-12-18T15:11:52.000166
1,513,609,912.000166
104,713
pythondev
help
to get the x,y coordinate of the first piece of a counter that I'd be cutting
2017-12-18T15:14:18.000312
Fabian
pythondev_help_Fabian_2017-12-18T15:14:18.000312
1,513,610,058.000312
104,714
pythondev
help
im thinking it may just be easier to read all this from a file
2017-12-18T15:14:33.000063
Fabian
pythondev_help_Fabian_2017-12-18T15:14:33.000063
1,513,610,073.000063
104,715
pythondev
help
rather than ask the user for input
2017-12-18T15:14:42.000363
Fabian
pythondev_help_Fabian_2017-12-18T15:14:42.000363
1,513,610,082.000363
104,716
pythondev
help
when you use `input("Coordinates of first cell: ")` you get a string back
2017-12-18T15:14:56.000387
Ciera
pythondev_help_Ciera_2017-12-18T15:14:56.000387
1,513,610,096.000387
104,717
pythondev
help
you can't unpack a string in two variables
2017-12-18T15:15:10.000537
Ciera
pythondev_help_Ciera_2017-12-18T15:15:10.000537
1,513,610,110.000537
104,718
pythondev
help
unless you're using python 2, right? then it's eval'd
2017-12-18T15:16:01.000069
Frieda
pythondev_help_Frieda_2017-12-18T15:16:01.000069
1,513,610,161.000069
104,719
pythondev
help
(don't use python 2, and don't use `input` in python 2 especially)
2017-12-18T15:16:11.000327
Frieda
pythondev_help_Frieda_2017-12-18T15:16:11.000327
1,513,610,171.000327
104,720
pythondev
help
ah yeah im using 3, used to use 2 years ago
2017-12-18T15:16:13.000313
Fabian
pythondev_help_Fabian_2017-12-18T15:16:13.000313
1,513,610,173.000313
104,721
pythondev
help
``` coords_input = input("Coordinates of first cell: ") coords = coords_input.split(',') ```
2017-12-18T15:16:14.000080
Ciera
pythondev_help_Ciera_2017-12-18T15:16:14.000080
1,513,610,174.00008
104,722
pythondev
help
ahhh i knew I forgot the split
2017-12-18T15:16:29.000177
Fabian
pythondev_help_Fabian_2017-12-18T15:16:29.000177
1,513,610,189.000177
104,723
pythondev
help
<@Frieda> I don't know but it wouldn't surprise me :stuck_out_tongue:
2017-12-18T15:16:34.000154
Ciera
pythondev_help_Ciera_2017-12-18T15:16:34.000154
1,513,610,194.000154
104,724
pythondev
help
you should also check that `coords` is only a len of 2. To be sure your users don't enter crap
2017-12-18T15:17:15.000020
Ciera
pythondev_help_Ciera_2017-12-18T15:17:15.000020
1,513,610,235.00002
104,725
pythondev
help
I figured I would add error checking on a later version, right now I just have like 3000 counters to cut and doing them by hand I think would take 30+ hours haha
2017-12-18T15:18:10.000534
Fabian
pythondev_help_Fabian_2017-12-18T15:18:10.000534
1,513,610,290.000534
104,726
pythondev
help
thank you guys i appreciate it
2017-12-18T15:19:04.000654
Fabian
pythondev_help_Fabian_2017-12-18T15:19:04.000654
1,513,610,344.000654
104,727
pythondev
help
huh
2017-12-18T15:20:26.000311
Fabian
pythondev_help_Fabian_2017-12-18T15:20:26.000311
1,513,610,426.000311
104,728
pythondev
help
```Traceback (most recent call last): File ".\counter-cutter-beta.py", line 41, in &lt;module&gt; for col_m in range(major_columns): TypeError: 'str' object cannot be interpreted as an integer PS C:\Users\lerug\Desktop\VASSAL WORK\Tarwa &amp; Saipan&gt;```
2017-12-18T15:20:35.000010
Fabian
pythondev_help_Fabian_2017-12-18T15:20:35.000010
1,513,610,435.00001
104,729
pythondev
help
i was able to input all the info, but it seems i need to explicitly convert these?
2017-12-18T15:21:01.000224
Fabian
pythondev_help_Fabian_2017-12-18T15:21:01.000224
1,513,610,461.000224
104,730
pythondev
help
yes, you'll have to convert everything
2017-12-18T15:21:12.000604
Frieda
pythondev_help_Frieda_2017-12-18T15:21:12.000604
1,513,610,472.000604
104,731
pythondev
help
`"2, 2".split()` results in `["2", "2"]`
2017-12-18T15:21:27.000466
Frieda
pythondev_help_Frieda_2017-12-18T15:21:27.000466
1,513,610,487.000466
104,732
pythondev
help
`coords = [int(x) for x in coord_input.split()]`
2017-12-18T15:22:16.000360
Myong
pythondev_help_Myong_2017-12-18T15:22:16.000360
1,513,610,536.00036
104,733
pythondev
help
that gives a list of ints
2017-12-18T15:22:44.000190
Myong
pythondev_help_Myong_2017-12-18T15:22:44.000190
1,513,610,564.00019
104,734
pythondev
help
ahhh ok
2017-12-18T15:22:54.000697
Fabian
pythondev_help_Fabian_2017-12-18T15:22:54.000697
1,513,610,574.000697
104,735
pythondev
help
and you can set x, y = coords
2017-12-18T15:22:57.000330
Myong
pythondev_help_Myong_2017-12-18T15:22:57.000330
1,513,610,577.00033
104,736
pythondev
help
<@Myong> Python says you can't have a generator running in 2 or more threads
2017-12-18T15:23:52.000187
Suellen
pythondev_help_Suellen_2017-12-18T15:23:52.000187
1,513,610,632.000187
104,737
pythondev
help
I actually got the previous thing to work properly
2017-12-18T15:24:16.000192
Myong
pythondev_help_Myong_2017-12-18T15:24:16.000192
1,513,610,656.000192
104,738
pythondev
help
would this also work? `int(input("Counter Width and Height: ").split(','))`
2017-12-18T15:24:30.000380
Fabian
pythondev_help_Fabian_2017-12-18T15:24:30.000380
1,513,610,670.00038
104,739
pythondev
help
you'd basically be doing `int(["2", "2"])`
2017-12-18T15:25:05.000459
Myong
pythondev_help_Myong_2017-12-18T15:25:05.000459
1,513,610,705.000459
104,740
pythondev
help
no, that won't work because you can't turn a list into an int
2017-12-18T15:25:27.000344
Frieda
pythondev_help_Frieda_2017-12-18T15:25:27.000344
1,513,610,727.000344
104,741
pythondev
help
you need to pull each value out
2017-12-18T15:25:29.000363
Myong
pythondev_help_Myong_2017-12-18T15:25:29.000363
1,513,610,729.000363
104,742
pythondev
help
got it
2017-12-18T15:25:34.000102
Fabian
pythondev_help_Fabian_2017-12-18T15:25:34.000102
1,513,610,734.000102
104,743
pythondev
help
wait im sorry i'm still a little confused
2017-12-18T15:27:49.000240
Fabian
pythondev_help_Fabian_2017-12-18T15:27:49.000240
1,513,610,869.00024
104,744
pythondev
help
been working with rust recently so my understanding of python is out of whack
2017-12-18T15:28:03.000163
Fabian
pythondev_help_Fabian_2017-12-18T15:28:03.000163
1,513,610,883.000163
104,745
pythondev
help
No problem what's up
2017-12-18T15:28:30.000164
Myong
pythondev_help_Myong_2017-12-18T15:28:30.000164
1,513,610,910.000164
104,746
pythondev
help
i need to try to keep the variable names the same so they work with the code at the bottom
2017-12-18T15:28:35.000637
Fabian
pythondev_help_Fabian_2017-12-18T15:28:35.000637
1,513,610,915.000637
104,747
pythondev
help
Okay
2017-12-18T15:28:42.000126
Myong
pythondev_help_Myong_2017-12-18T15:28:42.000126
1,513,610,922.000126
104,748
pythondev
help
just take input in a different variable like `coord_input = input("Enter coordinates (x, y)")`
2017-12-18T15:29:25.000505
Myong
pythondev_help_Myong_2017-12-18T15:29:25.000505
1,513,610,965.000505
104,749
pythondev
help
Then do the following
2017-12-18T15:29:31.000106
Myong
pythondev_help_Myong_2017-12-18T15:29:31.000106
1,513,610,971.000106
104,750
pythondev
help
`start_pos = start_x, start_y = [int(x) for x in coord_input.split(",")]`
2017-12-18T15:29:52.000321
Myong
pythondev_help_Myong_2017-12-18T15:29:52.000321
1,513,610,992.000321
104,751
pythondev
help
awesome, I think I see whats going on there
2017-12-18T15:30:31.000736
Fabian
pythondev_help_Fabian_2017-12-18T15:30:31.000736
1,513,611,031.000736
104,752
pythondev
help
So if someone inputs "2,2,2" you will get a list of [2,2,2]
2017-12-18T15:30:55.000233
Myong
pythondev_help_Myong_2017-12-18T15:30:55.000233
1,513,611,055.000233
104,753
pythondev
help
we need the for loop to extract the ints
2017-12-18T15:30:59.000211
Fabian
pythondev_help_Fabian_2017-12-18T15:30:59.000211
1,513,611,059.000211
104,754
pythondev
help
Yeah it's just a clean way to do a for loop
2017-12-18T15:31:19.000589
Myong
pythondev_help_Myong_2017-12-18T15:31:19.000589
1,513,611,079.000589
104,755
pythondev
help
So it iterates over the items returned by `coord_input.split(",")` which basically splits the strings at the comma
2017-12-18T15:31:47.000501
Myong
pythondev_help_Myong_2017-12-18T15:31:47.000501
1,513,611,107.000501
104,756
pythondev
help
and removes whitespace
2017-12-18T15:31:57.000001
Myong
pythondev_help_Myong_2017-12-18T15:31:57.000001
1,513,611,117.000001
104,757
pythondev
help
It returns a list object
2017-12-18T15:32:05.000334
Myong
pythondev_help_Myong_2017-12-18T15:32:05.000334
1,513,611,125.000334
104,758
pythondev
help
but the items are strings, we want integers
2017-12-18T15:32:15.000097
Myong
pythondev_help_Myong_2017-12-18T15:32:15.000097
1,513,611,135.000097
104,759
pythondev
help
i was wondering how it returned a list, because we enclosed it in a list?
2017-12-18T15:32:25.000169
Fabian
pythondev_help_Fabian_2017-12-18T15:32:25.000169
1,513,611,145.000169
104,760
pythondev
help
.split just splits the string up, and each actual charcter in the string is placed into the list
2017-12-18T15:32:53.000373
Myong
pythondev_help_Myong_2017-12-18T15:32:53.000373
1,513,611,173.000373
104,761
pythondev
help
so if I did `"my name is kbman".split(" ")` I'd get `["my", "name", "is", "kbman"]` back
2017-12-18T15:33:29.000341
Myong
pythondev_help_Myong_2017-12-18T15:33:29.000341
1,513,611,209.000341
104,762
pythondev
help
ah ok
2017-12-18T15:33:54.000338
Fabian
pythondev_help_Fabian_2017-12-18T15:33:54.000338
1,513,611,234.000338
104,763
pythondev
help
But it doesn't modify the original string
2017-12-18T15:34:02.000240
Myong
pythondev_help_Myong_2017-12-18T15:34:02.000240
1,513,611,242.00024
104,764
pythondev
help
it simply returns a value
2017-12-18T15:34:06.000580
Myong
pythondev_help_Myong_2017-12-18T15:34:06.000580
1,513,611,246.00058
104,765
pythondev
help
now I could use the same coord_input variable for counter size right? I can maybe format the message to reference counter size?
2017-12-18T15:34:46.000578
Fabian
pythondev_help_Fabian_2017-12-18T15:34:46.000578
1,513,611,286.000578
104,766
pythondev
help
You can reassign the variable but when it takes the input the `coord_input` variable is a string of values entered by the user
2017-12-18T15:35:51.000281
Myong
pythondev_help_Myong_2017-12-18T15:35:51.000281
1,513,611,351.000281
104,767
pythondev
help
right
2017-12-18T15:36:03.000680
Fabian
pythondev_help_Fabian_2017-12-18T15:36:03.000680
1,513,611,363.00068
104,768
pythondev
help
what would I do for just one value? assuming that whatever the user sends back is going to be a string
2017-12-18T15:39:08.000277
Fabian
pythondev_help_Fabian_2017-12-18T15:39:08.000277
1,513,611,548.000277
104,769
pythondev
help
agh
2017-12-18T15:40:18.000387
Fabian
pythondev_help_Fabian_2017-12-18T15:40:18.000387
1,513,611,618.000387
104,770
pythondev
help
I got an error from the split method
2017-12-18T15:40:26.000047
Fabian
pythondev_help_Fabian_2017-12-18T15:40:26.000047
1,513,611,626.000047
104,771
pythondev
help
```Enter coordinates of first cell (x, y): (107, 25) Traceback (most recent call last): File ".\counter-cutter-beta.py", line 22, in &lt;module&gt; start_pos = start_x, start_y = [int(x) for x in coord_input.split(",")] File ".\counter-cutter-beta.py", line 22, in &lt;listcomp&gt; start_pos = start_x, start...
2017-12-18T15:40:34.000070
Fabian
pythondev_help_Fabian_2017-12-18T15:40:34.000070
1,513,611,634.00007
104,772
pythondev
help
you can make it into whatever data type you'd like (assuming you have all values required like a key and value for dictionary)
2017-12-18T15:40:38.000119
Myong
pythondev_help_Myong_2017-12-18T15:40:38.000119
1,513,611,638.000119
104,773
pythondev
help
Looks like you input it incorrectly
2017-12-18T15:40:59.000069
Myong
pythondev_help_Myong_2017-12-18T15:40:59.000069
1,513,611,659.000069
104,774
pythondev
help
you dont need the prentheses
2017-12-18T15:41:08.000179
Myong
pythondev_help_Myong_2017-12-18T15:41:08.000179
1,513,611,668.000179
104,775
pythondev
help
just put it in a `""`
2017-12-18T15:41:17.000328
Myong
pythondev_help_Myong_2017-12-18T15:41:17.000328
1,513,611,677.000328
104,776
pythondev
help
Oh!
2017-12-18T15:41:19.000269
Fabian
pythondev_help_Fabian_2017-12-18T15:41:19.000269
1,513,611,679.000269
104,777
pythondev
help
got the same error
2017-12-18T15:42:03.000229
Fabian
pythondev_help_Fabian_2017-12-18T15:42:03.000229
1,513,611,723.000229
104,778
pythondev
help
is it "107 now
2017-12-18T15:42:11.000179
Myong
pythondev_help_Myong_2017-12-18T15:42:11.000179
1,513,611,731.000179
104,779
pythondev
help
'"107'
2017-12-18T15:42:25.000284
Fabian
pythondev_help_Fabian_2017-12-18T15:42:25.000284
1,513,611,745.000284
104,780
pythondev
help
Yeah
2017-12-18T15:42:28.000204
Myong
pythondev_help_Myong_2017-12-18T15:42:28.000204
1,513,611,748.000204
104,781
pythondev
help
Hmmmm
2017-12-18T15:42:30.000224
Myong
pythondev_help_Myong_2017-12-18T15:42:30.000224
1,513,611,750.000224
104,782
pythondev
help
Wait is this on the commandline
2017-12-18T15:42:48.000112
Myong
pythondev_help_Myong_2017-12-18T15:42:48.000112
1,513,611,768.000112
104,783
pythondev
help
or a separate input I apologize
2017-12-18T15:42:52.000576
Myong
pythondev_help_Myong_2017-12-18T15:42:52.000576
1,513,611,772.000576
104,784
pythondev
help
seperate
2017-12-18T15:42:58.000496
Fabian
pythondev_help_Fabian_2017-12-18T15:42:58.000496
1,513,611,778.000496
104,785
pythondev
help
well wait
2017-12-18T15:43:03.000057
Fabian
pythondev_help_Fabian_2017-12-18T15:43:03.000057
1,513,611,783.000057
104,786
pythondev
help
Okay okay gotcha,
2017-12-18T15:43:03.000319
Myong
pythondev_help_Myong_2017-12-18T15:43:03.000319
1,513,611,783.000319
104,787
pythondev
help
Just put the two numbers
2017-12-18T15:43:08.000607
Myong
pythondev_help_Myong_2017-12-18T15:43:08.000607
1,513,611,788.000607
104,788
pythondev
help
i mean like yeah its using the command line
2017-12-18T15:43:10.000308
Fabian
pythondev_help_Fabian_2017-12-18T15:43:10.000308
1,513,611,790.000308
104,789
pythondev
help
separated by comma
2017-12-18T15:43:13.000026
Myong
pythondev_help_Myong_2017-12-18T15:43:13.000026
1,513,611,793.000026
104,790
pythondev
help
ok no string i see
2017-12-18T15:43:20.000550
Fabian
pythondev_help_Fabian_2017-12-18T15:43:20.000550
1,513,611,800.00055
104,791
pythondev
help
YEah but not as argv
2017-12-18T15:43:26.000308
Myong
pythondev_help_Myong_2017-12-18T15:43:26.000308
1,513,611,806.000308
104,792
pythondev
help
right
2017-12-18T15:44:06.000256
Fabian
pythondev_help_Fabian_2017-12-18T15:44:06.000256
1,513,611,846.000256
104,793
pythondev
help
ok making progress i think
2017-12-18T15:44:12.000205
Fabian
pythondev_help_Fabian_2017-12-18T15:44:12.000205
1,513,611,852.000205
104,794
pythondev
help
Okay
2017-12-18T15:44:14.000678
Myong
pythondev_help_Myong_2017-12-18T15:44:14.000678
1,513,611,854.000678
104,795
pythondev
help
```Traceback (most recent call last): File ".\counter-cutter-beta.py", line 45, in &lt;module&gt; for col_m in range(major_columns): TypeError: 'str' object cannot be interpreted as an integer PS C:\Users\lerug\Desktop\VASSAL WORK\Tarwa &amp; Saipan&gt; ```
2017-12-18T15:44:20.000080
Fabian
pythondev_help_Fabian_2017-12-18T15:44:20.000080
1,513,611,860.00008
104,796
pythondev
help
link your code again
2017-12-18T15:44:38.000073
Myong
pythondev_help_Myong_2017-12-18T15:44:38.000073
1,513,611,878.000073
104,797
pythondev
help
1 sec
2017-12-18T15:44:45.000312
Fabian
pythondev_help_Fabian_2017-12-18T15:44:45.000312
1,513,611,885.000312
104,798
pythondev
help
oh wait, i think i know what it is
2017-12-18T15:45:08.000427
Fabian
pythondev_help_Fabian_2017-12-18T15:45:08.000427
1,513,611,908.000427
104,799
pythondev
help
It's the same thing
2017-12-18T15:45:17.000190
Myong
pythondev_help_Myong_2017-12-18T15:45:17.000190
1,513,611,917.00019
104,800
pythondev
help
`input(" how many whatever")`
2017-12-18T15:45:25.000334
Fabian
pythondev_help_Fabian_2017-12-18T15:45:25.000334
1,513,611,925.000334
104,801
pythondev
help
you gotta make any inputs that need to be an integer actual integers
2017-12-18T15:45:28.000110
Myong
pythondev_help_Myong_2017-12-18T15:45:28.000110
1,513,611,928.00011
104,802