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
:wink:
2018-02-08T16:55:12.000080
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:55:12.000080
1,518,108,912.00008
33,624
pythondev
help
you can do a cheap method and do `len(str(1577750400000))`
2018-02-08T16:58:12.000318
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:58:12.000318
1,518,109,092.000318
33,625
pythondev
help
in case you get a mix of seconds and miliseconds
2018-02-08T16:58:21.000093
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:58:21.000093
1,518,109,101.000093
33,626
pythondev
help
if its 10, its seconds
2018-02-08T16:58:36.000457
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:58:36.000457
1,518,109,116.000457
33,627
pythondev
help
if 13, *.001 for miliseconds
2018-02-08T16:59:09.000306
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:59:09.000306
1,518,109,149.000306
33,628
pythondev
help
srr
2018-02-08T17:00:06.000336
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:00:06.000336
1,518,109,206.000336
33,629
pythondev
help
sorry, youll need to typecast it to str
2018-02-08T17:00:14.000665
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:00:14.000665
1,518,109,214.000665
33,630
pythondev
help
the fun part, is when python gives it to you in miliseconds, and you turn right back around and use it somewhere that asks for seconds
2018-02-08T17:01:38.000641
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:01:38.000641
1,518,109,298.000641
33,631
pythondev
help
and you spin around for 1hr trying to figure out whats happening
2018-02-08T17:01:48.000214
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:01:48.000214
1,518,109,308.000214
33,632
pythondev
help
also, 64bit vs 32bit int, only difference is how large the int value can be
2018-02-08T17:03:04.000639
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:03:04.000639
1,518,109,384.000639
33,633
pythondev
help
you could technically also have a 64bit seconds as well coming from an api, just means they are ready for the end of 32bit time in 2030's iirc
2018-02-08T17:03:43.000580
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:03:43.000580
1,518,109,423.00058
33,634
pythondev
help
the int value for say `100` in 64bit and 32bit, when read as an int, is still `100`
2018-02-08T17:04:17.000045
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:04:17.000045
1,518,109,457.000045
33,635
pythondev
help
(hopefully that makes sense)
2018-02-08T17:04:22.000353
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:04:22.000353
1,518,109,462.000353
33,636
pythondev
help
their api should also specify that its miliseconds instead of seconds
2018-02-08T17:04:46.000401
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:04:46.000401
1,518,109,486.000401
33,637
pythondev
help
<https://pastebin.com/qYSmzi8S> <https://i.imgur.com/RI6O7p8.png>
2018-02-08T17:06:45.000319
Eddie
pythondev_help_Eddie_2018-02-08T17:06:45.000319
1,518,109,605.000319
33,638
pythondev
help
How is this an infinite loop?
2018-02-08T17:06:49.000134
Eddie
pythondev_help_Eddie_2018-02-08T17:06:49.000134
1,518,109,609.000134
33,639
pythondev
help
<@Jacquelyn> Yeah, i'll let them know that it would be nice if it was specified. Though its obvious to others. :stuck_out_tongue: haha. Anyways, thanks for the tips!
2018-02-08T17:09:21.000418
Loren
pythondev_help_Loren_2018-02-08T17:09:21.000418
1,518,109,761.000418
33,640
pythondev
help
I don’t even know why I didn’t consider doing name separately as first and last.. :face_palm::skin-tone-2: <@Kathlyn> :taco:
2018-02-08T17:09:47.000037
Breana
pythondev_help_Breana_2018-02-08T17:09:47.000037
1,518,109,787.000037
33,641
pythondev
help
yeah np, just depends on what gives the return value really :slightly_smiling_face: every language is different, and even python will give it to you in both sometimes, depending on how you are using `time`
2018-02-08T17:10:07.000148
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T17:10:07.000148
1,518,109,807.000148
33,642
pythondev
help
:pacman:
2018-02-08T17:10:52.000089
Kathlyn
pythondev_help_Kathlyn_2018-02-08T17:10:52.000089
1,518,109,852.000089
33,643
pythondev
help
neverm ind
2018-02-08T17:15:06.000616
Eddie
pythondev_help_Eddie_2018-02-08T17:15:06.000616
1,518,110,106.000616
33,644
pythondev
help
i think i figured it out
2018-02-08T17:15:10.000021
Eddie
pythondev_help_Eddie_2018-02-08T17:15:10.000021
1,518,110,110.000021
33,645
pythondev
help
It's because you start with a payment that isn't high enough when you add interest back to make the new balance at the next payment lower I believe
2018-02-08T17:15:50.000175
Juan
pythondev_help_Juan_2018-02-08T17:15:50.000175
1,518,110,150.000175
33,646
pythondev
help
<@Eddie> just a heads up you don’t need that if statement since the highest value of the range for your for loop would be 12
2018-02-08T17:23:06.000159
Brande
pythondev_help_Brande_2018-02-08T17:23:06.000159
1,518,110,586.000159
33,647
pythondev
help
It’s just at the payment rate it will never pay off the whole balance in 12 months, which is all the for loop checks, so the balance stays positive
2018-02-08T17:27:21.000608
Brande
pythondev_help_Brande_2018-02-08T17:27:21.000608
1,518,110,841.000608
33,648
pythondev
help
thanks, joe
2018-02-08T17:47:02.000183
Eddie
pythondev_help_Eddie_2018-02-08T17:47:02.000183
1,518,112,022.000183
33,649
pythondev
help
i'm trying to find lowest payment via bisection search
2018-02-08T18:29:22.000131
Eddie
pythondev_help_Eddie_2018-02-08T18:29:22.000131
1,518,114,562.000131
33,650
pythondev
help
<https://pastebin.com/1nvcmMtz>
2018-02-08T18:29:24.000074
Eddie
pythondev_help_Eddie_2018-02-08T18:29:24.000074
1,518,114,564.000074
33,651
pythondev
help
i dont'know where i'm wrong
2018-02-08T18:29:28.000231
Eddie
pythondev_help_Eddie_2018-02-08T18:29:28.000231
1,518,114,568.000231
33,652
pythondev
help
where my code is wrong
2018-02-08T18:29:35.000301
Eddie
pythondev_help_Eddie_2018-02-08T18:29:35.000301
1,518,114,575.000301
33,653
pythondev
help
code goes on an infinite loop
2018-02-08T18:31:31.000394
Eddie
pythondev_help_Eddie_2018-02-08T18:31:31.000394
1,518,114,691.000394
33,654
pythondev
help
<@Eddie> your balance never changes
2018-02-08T19:28:13.000067
Kacie
pythondev_help_Kacie_2018-02-08T19:28:13.000067
1,518,118,093.000067
33,655
pythondev
help
In your while loop is looking at balance, and it’s never changing
2018-02-08T19:28:49.000160
Kacie
pythondev_help_Kacie_2018-02-08T19:28:49.000160
1,518,118,129.00016
33,656
pythondev
help
So you will infinitely keep doing it because the condition never changes
2018-02-08T19:29:18.000032
Kacie
pythondev_help_Kacie_2018-02-08T19:29:18.000032
1,518,118,158.000032
33,657
pythondev
help
i solved it
2018-02-08T19:34:19.000357
Eddie
pythondev_help_Eddie_2018-02-08T19:34:19.000357
1,518,118,459.000357
33,658
pythondev
help
thanks, guys
2018-02-08T19:34:21.000096
Eddie
pythondev_help_Eddie_2018-02-08T19:34:21.000096
1,518,118,461.000096
33,659
pythondev
help
:slightly_smiling_face:
2018-02-08T19:34:23.000031
Eddie
pythondev_help_Eddie_2018-02-08T19:34:23.000031
1,518,118,463.000031
33,660
pythondev
help
<@Kacie>
2018-02-08T19:34:25.000078
Eddie
pythondev_help_Eddie_2018-02-08T19:34:25.000078
1,518,118,465.000078
33,661
pythondev
help
thanks
2018-02-08T19:34:26.000145
Eddie
pythondev_help_Eddie_2018-02-08T19:34:26.000145
1,518,118,466.000145
33,662
pythondev
help
xoxo
2018-02-08T19:34:30.000050
Eddie
pythondev_help_Eddie_2018-02-08T19:34:30.000050
1,518,118,470.00005
33,663
pythondev
help
thanks man! that was realy helpfull! somehow those packages weren't on google search
2018-02-09T00:17:51.000033
Corrinne
pythondev_help_Corrinne_2018-02-09T00:17:51.000033
1,518,135,471.000033
33,664
pythondev
help
hello everyone, i am new to python kindly tell which IDE is better for python developer
2018-02-09T01:16:52.000205
Leone
pythondev_help_Leone_2018-02-09T01:16:52.000205
1,518,139,012.000205
33,665
pythondev
help
Hi <@Leone>, there is an <#C5CAD2J67|editors> channel for discussing the best editor. But I would say that if you're new not only to Python, but to the programming in general, I would suggest you to pick just any editor which can highlight syntax and go learn :slightly_smiling_face:
2018-02-09T01:28:07.000082
Sadye
pythondev_help_Sadye_2018-02-09T01:28:07.000082
1,518,139,687.000082
33,666
pythondev
help
So you won't be spending too much time to set it up
2018-02-09T01:28:32.000171
Sadye
pythondev_help_Sadye_2018-02-09T01:28:32.000171
1,518,139,712.000171
33,667
pythondev
help
<@Leone> `sublime text editor` is the best choice for the new learners.
2018-02-09T01:37:07.000158
Dorothea
pythondev_help_Dorothea_2018-02-09T01:37:07.000158
1,518,140,227.000158
33,668
pythondev
help
be aware though that it's not free (although you can technically use it without paying)
2018-02-09T01:38:21.000076
Sadye
pythondev_help_Sadye_2018-02-09T01:38:21.000076
1,518,140,301.000076
33,669
pythondev
help
<@Leone> I have a very strong opinion that in order to learn a programming language you need to start writing the code in something like notepad Simply because an IDE will take care about proper indentation, imports and attribute access even if you need to face those kinds of errors to learn What I'm trying to say is t...
2018-02-09T01:41:32.000122
Aleida
pythondev_help_Aleida_2018-02-09T01:41:32.000122
1,518,140,492.000122
33,670
pythondev
help
I'm doubling <@Aleida> on this
2018-02-09T01:44:01.000002
Sadye
pythondev_help_Sadye_2018-02-09T01:44:01.000002
1,518,140,641.000002
33,671
pythondev
help
Hey :slightly_smiling_face: Got a question for `subprocess`
2018-02-09T02:00:50.000169
Gwyn
pythondev_help_Gwyn_2018-02-09T02:00:50.000169
1,518,141,650.000169
33,672
pythondev
help
I'm trying to run a command called `norminette` with a bunch of filenames as an argument
2018-02-09T02:01:10.000093
Gwyn
pythondev_help_Gwyn_2018-02-09T02:01:10.000093
1,518,141,670.000093
33,673
pythondev
help
Here's what the subprocess call looks like :
2018-02-09T02:01:26.000235
Gwyn
pythondev_help_Gwyn_2018-02-09T02:01:26.000235
1,518,141,686.000235
33,674
pythondev
help
`print(subprocess.run(['norminette', files], shell=True, stdout=subprocess.PIPE).stdout.decode('utf-8'))`
2018-02-09T02:01:47.000218
Gwyn
pythondev_help_Gwyn_2018-02-09T02:01:47.000218
1,518,141,707.000218
33,675
pythondev
help
the `files` variable contains the filenames
2018-02-09T02:02:11.000019
Gwyn
pythondev_help_Gwyn_2018-02-09T02:02:11.000019
1,518,141,731.000019
33,676
pythondev
help
the command, ran from a normal terminal, looks like this :
2018-02-09T02:02:25.000156
Gwyn
pythondev_help_Gwyn_2018-02-09T02:02:25.000156
1,518,141,745.000156
33,677
pythondev
help
<https://asciinema.org/a/UluFfwwhMiQGqt3ViMWwMtnkn>
2018-02-09T02:03:15.000105
Gwyn
pythondev_help_Gwyn_2018-02-09T02:03:15.000105
1,518,141,795.000105
33,678
pythondev
help
It looks like it's executing the command from the script directory
2018-02-09T02:04:21.000227
Gwyn
pythondev_help_Gwyn_2018-02-09T02:04:21.000227
1,518,141,861.000227
33,679
pythondev
help
and not using the files passed as argument
2018-02-09T02:04:29.000213
Gwyn
pythondev_help_Gwyn_2018-02-09T02:04:29.000213
1,518,141,869.000213
33,680
pythondev
help
any ideas why ?
2018-02-09T02:04:34.000042
Gwyn
pythondev_help_Gwyn_2018-02-09T02:04:34.000042
1,518,141,874.000042
33,681
pythondev
help
I found a hack that works `print(subprocess.run('norminette' + files, shell=True, stdout=subprocess.PIPE).stdout.decode('utf-8'))` but it's kinda ugly and it isnt the way it's done in the subprocess doc
2018-02-09T02:05:55.000023
Gwyn
pythondev_help_Gwyn_2018-02-09T02:05:55.000023
1,518,141,955.000023
33,682
pythondev
help
Try `print(subprocess.run(['norminette'] + files, stdout=subprocess.PIPE).stdout.decode('utf-8'))`
2018-02-09T02:09:00.000211
Carly
pythondev_help_Carly_2018-02-09T02:09:00.000211
1,518,142,140.000211
33,683
pythondev
help
`shell` doesn't need to be `True` if you don't need to pass an entire string
2018-02-09T02:09:39.000242
Carly
pythondev_help_Carly_2018-02-09T02:09:39.000242
1,518,142,179.000242
33,684
pythondev
help
Actually, I'm not sure if your `files` is a list or something else
2018-02-09T02:10:13.000296
Carly
pythondev_help_Carly_2018-02-09T02:10:13.000296
1,518,142,213.000296
33,685
pythondev
help
files is just like this : `PATHTOAFILE PATHTOANOTHERFILE etc...`
2018-02-09T02:25:44.000257
Gwyn
pythondev_help_Gwyn_2018-02-09T02:25:44.000257
1,518,143,144.000257
33,686
pythondev
help
just paths separated by spaces
2018-02-09T02:25:51.000161
Gwyn
pythondev_help_Gwyn_2018-02-09T02:25:51.000161
1,518,143,151.000161
33,687
pythondev
help
``` File "/Users/jlasne/PycharmProjects/42PyChecker/42PyChecker.py", line 68, in check_norme print(subprocess.run(['norminette'] + files, stdout=subprocess.PIPE).stdout.decode('utf-8')) TypeError: can only concatenate list (not "str") to list``` <@Carly> with your solution :confused:
2018-02-09T02:27:04.000234
Gwyn
pythondev_help_Gwyn_2018-02-09T02:27:04.000234
1,518,143,224.000234
33,688
pythondev
help
Ahhh..
2018-02-09T02:27:31.000114
Carly
pythondev_help_Carly_2018-02-09T02:27:31.000114
1,518,143,251.000114
33,689
pythondev
help
Well then, you need to separate the paths by space
2018-02-09T02:27:44.000052
Carly
pythondev_help_Carly_2018-02-09T02:27:44.000052
1,518,143,264.000052
33,690
pythondev
help
`print(subprocess.run(['norminette'] + files.split(), stdout=subprocess.PIPE).stdout.decode('utf-8'))`
2018-02-09T02:27:59.000281
Carly
pythondev_help_Carly_2018-02-09T02:27:59.000281
1,518,143,279.000281
33,691
pythondev
help
let me try
2018-02-09T02:29:07.000273
Gwyn
pythondev_help_Gwyn_2018-02-09T02:29:07.000273
1,518,143,347.000273
33,692
pythondev
help
Yes it worked nice :smile:
2018-02-09T02:29:21.000003
Gwyn
pythondev_help_Gwyn_2018-02-09T02:29:21.000003
1,518,143,361.000003
33,693
pythondev
help
Thanks :heart:
2018-02-09T02:30:00.000139
Gwyn
pythondev_help_Gwyn_2018-02-09T02:30:00.000139
1,518,143,400.000139
33,694
pythondev
help
You might want to look at strings and lists.
2018-02-09T02:30:38.000352
Carly
pythondev_help_Carly_2018-02-09T02:30:38.000352
1,518,143,438.000352
33,695
pythondev
help
<https://docs.python.org/2/library/subprocess.html#frequently-used-arguments> That function takes `args` as the first argument, and you should give it a sequence of strings.
2018-02-09T02:32:14.000300
Carly
pythondev_help_Carly_2018-02-09T02:32:14.000300
1,518,143,534.0003
33,696
pythondev
help
Ah, I used <https://www.google.nl/search?q=python+bindings+avlib>
2018-02-09T02:32:38.000033
Kay
pythondev_help_Kay_2018-02-09T02:32:38.000033
1,518,143,558.000033
33,697
pythondev
help
oooh okay will do
2018-02-09T02:47:53.000024
Gwyn
pythondev_help_Gwyn_2018-02-09T02:47:53.000024
1,518,144,473.000024
33,698
pythondev
help
(using `python 3.6` tho)
2018-02-09T02:48:01.000279
Gwyn
pythondev_help_Gwyn_2018-02-09T02:48:01.000279
1,518,144,481.000279
33,699
pythondev
help
Yeah but i’m not able to figure out what is wrong with this query and what can be fixed to make it work.
2018-02-09T02:51:46.000072
Mafalda
pythondev_help_Mafalda_2018-02-09T02:51:46.000072
1,518,144,706.000072
33,700
pythondev
help
Yep :slightly_smiling_face: You knew what to look for, my search was "python mp3 to flac"
2018-02-09T03:36:36.000320
Corrinne
pythondev_help_Corrinne_2018-02-09T03:36:36.000320
1,518,147,396.00032
33,701
pythondev
help
Is there a simple way of counting the number of files that arent listed in a variable ?
2018-02-09T03:56:47.000003
Gwyn
pythondev_help_Gwyn_2018-02-09T03:56:47.000003
1,518,148,607.000003
33,702
pythondev
help
Like I have this like : `files = ['1.txt', '2.txt', '3.txt']`
2018-02-09T03:57:04.000248
Gwyn
pythondev_help_Gwyn_2018-02-09T03:57:04.000248
1,518,148,624.000248
33,703
pythondev
help
and in the directory, I have those three files and also 4.txt and 5.txt
2018-02-09T03:57:50.000375
Gwyn
pythondev_help_Gwyn_2018-02-09T03:57:50.000375
1,518,148,670.000375
33,704
pythondev
help
is there any easy way of counting the number of `.txt` files that arent listed in `files` ?
2018-02-09T03:58:14.000046
Gwyn
pythondev_help_Gwyn_2018-02-09T03:58:14.000046
1,518,148,694.000046
33,705
pythondev
help
you can list the total in the dir minus the total in the list ?
2018-02-09T04:00:04.000065
Micki
pythondev_help_Micki_2018-02-09T04:00:04.000065
1,518,148,804.000065
33,706
pythondev
help
i'll try that right away :smile:
2018-02-09T04:06:39.000054
Gwyn
pythondev_help_Gwyn_2018-02-09T04:06:39.000054
1,518,149,199.000054
33,707
pythondev
help
``` file_list = [] for file in glob.glob(project_path + '/*.c'): file_list.append(file.replace(project_path + '/', '')) extra_files_not_in_list1_and_list2 = [item for item in file_list if item not in list1 and list2] print(extra_files_not_in_list1_and_list2)``` Here's how I did it :slightly_smili...
2018-02-09T04:14:53.000229
Gwyn
pythondev_help_Gwyn_2018-02-09T04:14:53.000229
1,518,149,693.000229
33,708
pythondev
help
<@Micki> :smile:
2018-02-09T04:15:45.000127
Gwyn
pythondev_help_Gwyn_2018-02-09T04:15:45.000127
1,518,149,745.000127
33,709
pythondev
help
`if item not in list1 and list2` this doesn't do what you expect
2018-02-09T04:15:51.000200
Micki
pythondev_help_Micki_2018-02-09T04:15:51.000200
1,518,149,751.0002
33,710
pythondev
help
what do you mean ?
2018-02-09T04:16:25.000166
Gwyn
pythondev_help_Gwyn_2018-02-09T04:16:25.000166
1,518,149,785.000166
33,711
pythondev
help
try something similar in the interpreter and try to understand why
2018-02-09T04:16:34.000190
Micki
pythondev_help_Micki_2018-02-09T04:16:34.000190
1,518,149,794.00019
33,712
pythondev
help
sure
2018-02-09T04:16:39.000113
Gwyn
pythondev_help_Gwyn_2018-02-09T04:16:39.000113
1,518,149,799.000113
33,713
pythondev
help
Hi guys!
2018-02-09T04:20:22.000496
Lorna
pythondev_help_Lorna_2018-02-09T04:20:22.000496
1,518,150,022.000496
33,714
pythondev
help
I need help about pytest
2018-02-09T04:21:28.000124
Lorna
pythondev_help_Lorna_2018-02-09T04:21:28.000124
1,518,150,088.000124
33,715
pythondev
help
(Using thread to not interfere with Nelson :slightly_smiling_face: ) I don't see the prolem here :thinking_face: It is working fine for what I want to use it, and I can't figure out what could be wrong with the condition there
2018-02-09T04:22:44.000057
Gwyn
pythondev_help_Gwyn_2018-02-09T04:22:44.000057
1,518,150,164.000057
33,716
pythondev
help
Anyone knows?
2018-02-09T04:22:48.000139
Lorna
pythondev_help_Lorna_2018-02-09T04:22:48.000139
1,518,150,168.000139
33,717
pythondev
help
Ask your question :slightly_smiling_face:
2018-02-09T04:26:12.000201
Gwyn
pythondev_help_Gwyn_2018-02-09T04:26:12.000201
1,518,150,372.000201
33,718
pythondev
help
I have this code:
2018-02-09T04:29:26.000361
Lorna
pythondev_help_Lorna_2018-02-09T04:29:26.000361
1,518,150,566.000361
33,719
pythondev
help
def test_sign_up_success(): driver = webdriver.Firefox() SetUp(driver, URL) home_page = HomePage(driver) home_page.click_sign_up() sign_up = SignUp(driver) # fill in form sign_up.first_name(_FIRST_NAME) sign_up.last_name(_LAST_NAME) sign_up.email(_EMAIL) sign_up.password(_PASS...
2018-02-09T04:29:30.000108
Lorna
pythondev_help_Lorna_2018-02-09T04:29:30.000108
1,518,150,570.000108
33,720
pythondev
help
And I'd like to create [separate] def setup (driver = webdriver.Firefox() SetUp(driver, URL)), def teardown (driver.close())
2018-02-09T04:31:03.000038
Lorna
pythondev_help_Lorna_2018-02-09T04:31:03.000038
1,518,150,663.000038
33,721
pythondev
help
But after I changed the code like that:
2018-02-09T04:31:54.000270
Lorna
pythondev_help_Lorna_2018-02-09T04:31:54.000270
1,518,150,714.00027
33,722
pythondev
help
ef set_up(): driver = webdriver.Firefox() SetUp(driver, URL) def test_sign_up_success(): # driver = webdriver.Firefox() # SetUp(driver, URL) home_page = HomePage(driver) home_page.click_sign_up() sign_up = SignUp(driver) # fill in form sign_up.first_name(_FIRST_NAME) sign_up....
2018-02-09T04:31:59.000274
Lorna
pythondev_help_Lorna_2018-02-09T04:31:59.000274
1,518,150,719.000274
33,723