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
Do you need lower level glue? If so - maybe. Buy Cython can get you a lot of the way there I believe
2018-03-07T13:59:19.000329
Rafael
pythondev_help_Rafael_2018-03-07T13:59:19.000329
1,520,431,159.000329
37,824
pythondev
help
it's cryptic for sure, but I assume somebody with more CS background or who knows a lower level language at least has a better chance of reading it than me
2018-03-07T13:59:41.000306
Concha
pythondev_help_Concha_2018-03-07T13:59:41.000306
1,520,431,181.000306
37,825
pythondev
help
i don't know what domain of knowledge it falls under exactly
2018-03-07T14:00:55.000289
Concha
pythondev_help_Concha_2018-03-07T14:00:55.000289
1,520,431,255.000289
37,826
pythondev
help
however I have an ancient copy of "the joy of C" i snatched from a 'free book' pile at my university
2018-03-07T14:01:55.000095
Concha
pythondev_help_Concha_2018-03-07T14:01:55.000095
1,520,431,315.000095
37,827
pythondev
help
(oh ignore the stuff after the semi colon, that's me trying to figure it out)
2018-03-07T14:02:05.000531
Concha
pythondev_help_Concha_2018-03-07T14:02:05.000531
1,520,431,325.000531
37,828
pythondev
help
and it seemed to have some of the knowledge I was lacking
2018-03-07T14:02:16.000099
Concha
pythondev_help_Concha_2018-03-07T14:02:16.000099
1,520,431,336.000099
37,829
pythondev
help
quite possibly there is a python book that explains these things as well
2018-03-07T14:02:26.000689
Concha
pythondev_help_Concha_2018-03-07T14:02:26.000689
1,520,431,346.000689
37,830
pythondev
help
(I was being sarcastic about needing C to write Python)
2018-03-07T14:02:33.000821
Garrett
pythondev_help_Garrett_2018-03-07T14:02:33.000821
1,520,431,353.000821
37,831
pythondev
help
<@Concha> I think this is a C code
2018-03-07T14:02:54.000670
Sheryl
pythondev_help_Sheryl_2018-03-07T14:02:54.000670
1,520,431,374.00067
37,832
pythondev
help
I thought it was a description or psuedocode maybe.
2018-03-07T14:03:28.000237
Concha
pythondev_help_Concha_2018-03-07T14:03:28.000237
1,520,431,408.000237
37,833
pythondev
help
<https://stackoverflow.com/questions/252780/why-should-we-typedef-a-struct-so-often-in-c/252810#252810>
2018-03-07T14:03:33.000326
Kristin
pythondev_help_Kristin_2018-03-07T14:03:33.000326
1,520,431,413.000326
37,834
pythondev
help
that explains what the part of the code you posted is doing, dunno if it helps
2018-03-07T14:03:59.000751
Kristin
pythondev_help_Kristin_2018-03-07T14:03:59.000751
1,520,431,439.000751
37,835
pythondev
help
yeah, definately points me in the right direction
2018-03-07T14:04:20.000785
Concha
pythondev_help_Concha_2018-03-07T14:04:20.000785
1,520,431,460.000785
37,836
pythondev
help
thanks
2018-03-07T14:04:27.000230
Concha
pythondev_help_Concha_2018-03-07T14:04:27.000230
1,520,431,467.00023
37,837
pythondev
help
did you find the code on a Python program ?
2018-03-07T14:04:29.000357
Sheryl
pythondev_help_Sheryl_2018-03-07T14:04:29.000357
1,520,431,469.000357
37,838
pythondev
help
I should read context of conversations :smile:
2018-03-07T14:04:39.000132
Rafael
pythondev_help_Rafael_2018-03-07T14:04:39.000132
1,520,431,479.000132
37,839
pythondev
help
Along that vein... You better learn ASM first
2018-03-07T14:04:55.000608
Rafael
pythondev_help_Rafael_2018-03-07T14:04:55.000608
1,520,431,495.000608
37,840
pythondev
help
no, I'm writing a program in python to parse out some data coming from the register (for testing purposes). But reading from the comm spec for the register, which I guess is written with a C programmer in mind
2018-03-07T14:05:52.000441
Concha
pythondev_help_Concha_2018-03-07T14:05:52.000441
1,520,431,552.000441
37,841
pythondev
help
to me it seems to resemble type hinting in python <https://docs.python.org/3/library/typing.html>
2018-03-07T14:07:05.000830
Kristin
pythondev_help_Kristin_2018-03-07T14:07:05.000830
1,520,431,625.00083
37,842
pythondev
help
Gotta work on steadying my hand when using a magnetic needle.
2018-03-07T14:07:23.000789
Garrett
pythondev_help_Garrett_2018-03-07T14:07:23.000789
1,520,431,643.000789
37,843
pythondev
help
makes sense. I've been suspecting this is where there is a gap in my knowledge for awhile
2018-03-07T14:09:57.000725
Concha
pythondev_help_Concha_2018-03-07T14:09:57.000725
1,520,431,797.000725
37,844
pythondev
help
see this help if can help: <https://stackoverflow.com/questions/30896489/why-is-u8-u16-u32-u64-used-instead-of-unsigned-int-in-kernel-programming>
2018-03-07T14:10:35.000435
Sheryl
pythondev_help_Sheryl_2018-03-07T14:10:35.000435
1,520,431,835.000435
37,845
pythondev
help
<@Roxanna> you could run it in Jupyter notebook and have it write to a file i do it all the time
2018-03-07T15:01:05.000375
Raelene
pythondev_help_Raelene_2018-03-07T15:01:05.000375
1,520,434,865.000375
37,846
pythondev
help
if you ever wanna use arduinos in the education space knowing some arduino-c is nice
2018-03-07T15:03:31.000789
Brande
pythondev_help_Brande_2018-03-07T15:03:31.000789
1,520,435,011.000789
37,847
pythondev
help
Yeah, I'm gonna have to learn a bit of that for my upcoming <http://keyboard.io|keyboard.io> keyboard
2018-03-07T15:04:55.000781
Garrett
pythondev_help_Garrett_2018-03-07T15:04:55.000781
1,520,435,095.000781
37,848
pythondev
help
also, i need to be a grown up and start using list comprehensions
2018-03-07T15:05:11.000646
Concha
pythondev_help_Concha_2018-03-07T15:05:11.000646
1,520,435,111.000646
37,849
pythondev
help
Has anyone else ever installed PyOCR on Windows 7?
2018-03-07T15:10:16.000168
Delsie
pythondev_help_Delsie_2018-03-07T15:10:16.000168
1,520,435,416.000168
37,850
pythondev
help
I am having trouble getting PyOCR to access Tesseract
2018-03-07T15:11:24.000170
Delsie
pythondev_help_Delsie_2018-03-07T15:11:24.000170
1,520,435,484.00017
37,851
pythondev
help
ok that was easy.
2018-03-07T15:27:13.000665
Concha
pythondev_help_Concha_2018-03-07T15:27:13.000665
1,520,436,433.000665
37,852
pythondev
help
i don't know why I thought it wouldn't be. maybe I'm thinking of lambdas
2018-03-07T15:29:39.000816
Concha
pythondev_help_Concha_2018-03-07T15:29:39.000816
1,520,436,579.000816
37,853
pythondev
help
im in the same boat
2018-03-07T15:34:00.000373
Elisha
pythondev_help_Elisha_2018-03-07T15:34:00.000373
1,520,436,840.000373
37,854
pythondev
help
basic list comprehensions are okay, they're like 1 liner for loops
2018-03-07T15:34:10.000649
Elisha
pythondev_help_Elisha_2018-03-07T15:34:10.000649
1,520,436,850.000649
37,855
pythondev
help
I've ripped some lambda stuff off SO that i have no idea how it works
2018-03-07T15:35:03.000395
Elisha
pythondev_help_Elisha_2018-03-07T15:35:03.000395
1,520,436,903.000395
37,856
pythondev
help
Python lambdas aren't awful since they are intentionally dwarfed. It's generally just best to pass a named function reference
2018-03-07T15:36:18.000241
Rafael
pythondev_help_Rafael_2018-03-07T15:36:18.000241
1,520,436,978.000241
37,857
pythondev
help
i plan on getting in to them when the project im working on gets more into the analysis side of stuff
2018-03-07T15:37:31.000334
Elisha
pythondev_help_Elisha_2018-03-07T15:37:31.000334
1,520,437,051.000334
37,858
pythondev
help
soon as I finish redoing my data model
2018-03-07T15:37:52.000303
Elisha
pythondev_help_Elisha_2018-03-07T15:37:52.000303
1,520,437,072.000303
37,859
pythondev
help
I've been noodling around with python for.... eh 3-4 months now and I'm excited to come home to it
2018-03-07T15:38:28.000071
Elisha
pythondev_help_Elisha_2018-03-07T15:38:28.000071
1,520,437,108.000071
37,860
pythondev
help
I got a five line function down to 2 with a list comprehension, not that # of lines is a measure of 'good code'
2018-03-07T15:38:33.000320
Concha
pythondev_help_Concha_2018-03-07T15:38:33.000320
1,520,437,113.00032
37,861
pythondev
help
Indeed :slightly_smiling_face: &gt; Readability counts
2018-03-07T15:38:51.000473
Rafael
pythondev_help_Rafael_2018-03-07T15:38:51.000473
1,520,437,131.000473
37,862
pythondev
help
i could probably get it down to 1 with a lambda if I understood it - (same disclaimer)
2018-03-07T15:38:54.000201
Concha
pythondev_help_Concha_2018-03-07T15:38:54.000201
1,520,437,134.000201
37,863
pythondev
help
"If it was hard to write, it should be hard to read"
2018-03-07T15:39:04.000133
Elisha
pythondev_help_Elisha_2018-03-07T15:39:04.000133
1,520,437,144.000133
37,864
pythondev
help
personally I’d avoid `lambda`, it’s not very performant
2018-03-07T15:39:20.000218
Brande
pythondev_help_Brande_2018-03-07T15:39:20.000218
1,520,437,160.000218
37,865
pythondev
help
but concise + readable is always nice
2018-03-07T15:39:41.000487
Concha
pythondev_help_Concha_2018-03-07T15:39:41.000487
1,520,437,181.000487
37,866
pythondev
help
There's literally no need for it in my case, other than to turn my current little scripts into a learning experience
2018-03-07T15:40:06.000755
Concha
pythondev_help_Concha_2018-03-07T15:40:06.000755
1,520,437,206.000755
37,867
pythondev
help
as I am wont to do
2018-03-07T15:40:14.000061
Concha
pythondev_help_Concha_2018-03-07T15:40:14.000061
1,520,437,214.000061
37,868
pythondev
help
with my personal projects it's fun to try and do it with minimum lines just for the challenge
2018-03-07T15:40:16.000028
Elisha
pythondev_help_Elisha_2018-03-07T15:40:16.000028
1,520,437,216.000028
37,869
pythondev
help
heh
2018-03-07T15:40:28.000411
Concha
pythondev_help_Concha_2018-03-07T15:40:28.000411
1,520,437,228.000411
37,870
pythondev
help
lol
2018-03-07T15:40:30.000155
Elisha
pythondev_help_Elisha_2018-03-07T15:40:30.000155
1,520,437,230.000155
37,871
pythondev
help
jynx
2018-03-07T15:40:33.000450
Elisha
pythondev_help_Elisha_2018-03-07T15:40:33.000450
1,520,437,233.00045
37,872
pythondev
help
I would say the function reference (if appropriately named) is more readable than a lambda: ``` filter(lambda x: x % 2 == 0, range(100)) # vs filter(even_number, range(100)) ```
2018-03-07T15:42:26.000489
Rafael
pythondev_help_Rafael_2018-03-07T15:42:26.000489
1,520,437,346.000489
37,873
pythondev
help
hah
2018-03-07T15:42:38.000189
Rafael
pythondev_help_Rafael_2018-03-07T15:42:38.000189
1,520,437,358.000189
37,874
pythondev
help
actually can't decide on which of those I prefer <@Rafael>
2018-03-07T15:44:45.000323
Concha
pythondev_help_Concha_2018-03-07T15:44:45.000323
1,520,437,485.000323
37,875
pythondev
help
That's quite a trivial example, so they aren't far off
2018-03-07T15:45:00.000009
Rafael
pythondev_help_Rafael_2018-03-07T15:45:00.000009
1,520,437,500.000009
37,876
pythondev
help
the second is definitely more natural language, of course
2018-03-07T15:45:16.000138
Concha
pythondev_help_Concha_2018-03-07T15:45:16.000138
1,520,437,516.000138
37,877
pythondev
help
in my personal projects i would use the first
2018-03-07T15:45:25.000651
Elisha
pythondev_help_Elisha_2018-03-07T15:45:25.000651
1,520,437,525.000651
37,878
pythondev
help
But say a `map` function that transforms the iterable, for example
2018-03-07T15:45:27.000010
Rafael
pythondev_help_Rafael_2018-03-07T15:45:27.000010
1,520,437,527.00001
37,879
pythondev
help
if other people had to read it, probably the second
2018-03-07T15:45:41.000093
Elisha
pythondev_help_Elisha_2018-03-07T15:45:41.000093
1,520,437,541.000093
37,880
pythondev
help
or if `even_number` was something i was going to be modifying i would go with the second
2018-03-07T15:46:17.000525
Elisha
pythondev_help_Elisha_2018-03-07T15:46:17.000525
1,520,437,577.000525
37,881
pythondev
help
personally i find functions much easier to read than lambda's
2018-03-07T15:46:26.000525
Kristin
pythondev_help_Kristin_2018-03-07T15:46:26.000525
1,520,437,586.000525
37,882
pythondev
help
basically my function is going through a list and converting each value from hex to int, or from hex to ascii
2018-03-07T15:46:40.000233
Concha
pythondev_help_Concha_2018-03-07T15:46:40.000233
1,520,437,600.000233
37,883
pythondev
help
way easier to tweak the referenced function that to dig through some complex lambda
2018-03-07T15:46:41.000469
Elisha
pythondev_help_Elisha_2018-03-07T15:46:41.000469
1,520,437,601.000469
37,884
pythondev
help
but for funsies on my own, one liners all day
2018-03-07T15:46:55.000044
Elisha
pythondev_help_Elisha_2018-03-07T15:46:55.000044
1,520,437,615.000044
37,885
pythondev
help
That's kind of my point though with lambda simplicity, they can't be complex in python
2018-03-07T15:46:59.000159
Rafael
pythondev_help_Rafael_2018-03-07T15:46:59.000159
1,520,437,619.000159
37,886
pythondev
help
single statements only
2018-03-07T15:47:02.000628
Rafael
pythondev_help_Rafael_2018-03-07T15:47:02.000628
1,520,437,622.000628
37,887
pythondev
help
Why is your LIST a global? :wink:
2018-03-07T15:47:21.000452
Rafael
pythondev_help_Rafael_2018-03-07T15:47:21.000452
1,520,437,641.000452
37,888
pythondev
help
I was wondering if a lambda would make it even shorter, but like Iike I said,just as an exercise
2018-03-07T15:47:25.000020
Concha
pythondev_help_Concha_2018-03-07T15:47:25.000020
1,520,437,645.00002
37,889
pythondev
help
idunno probably a dumb name for a variable?
2018-03-07T15:47:38.000117
Concha
pythondev_help_Concha_2018-03-07T15:47:38.000117
1,520,437,658.000117
37,890
pythondev
help
You can drop the parens in the return, that's rarely used (unless you're returning a tuple)
2018-03-07T15:47:40.000678
Rafael
pythondev_help_Rafael_2018-03-07T15:47:40.000678
1,520,437,660.000678
37,891
pythondev
help
ok, got it
2018-03-07T15:48:36.000467
Concha
pythondev_help_Concha_2018-03-07T15:48:36.000467
1,520,437,716.000467
37,892
pythondev
help
comprehensions are great though, part of why guido doesn't like `map` IIRC
2018-03-07T15:49:27.000066
Rafael
pythondev_help_Rafael_2018-03-07T15:49:27.000066
1,520,437,767.000066
37,893
pythondev
help
Hi , Does any one know scrapy + splash + docker deploying in heroku ? please let me know
2018-03-07T16:41:38.000585
Rosia
pythondev_help_Rosia_2018-03-07T16:41:38.000585
1,520,440,898.000585
37,894
pythondev
help
Super question. How to insert an element into array and avoid index shifting? This is about crypto. I have 2 strings (let it be ‘abcdef’ and ‘ghijkl’), and i have a rule, for ex. i want to put 1st letter from ‘abcdef’ to 4th position in ‘ghijkl’, and then c to 2nd. As you see, when using any kind of loop, after ‘a’ is ...
2018-03-07T17:20:31.000452
Barbar
pythondev_help_Barbar_2018-03-07T17:20:31.000452
1,520,443,231.000452
37,895
pythondev
help
<@Barbar> This isn't a super difficult one, but I don't believe theres a native way to do this. If you know that the items in the list are unique this helps, but if not you have to do it the old fashions way
2018-03-07T18:01:43.000232
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:01:43.000232
1,520,445,703.000232
37,896
pythondev
help
I did it using hash tables.
2018-03-07T18:02:57.000416
Barbar
pythondev_help_Barbar_2018-03-07T18:02:57.000416
1,520,445,777.000416
37,897
pythondev
help
Hash tables with indexing???
2018-03-07T18:03:48.000321
Monroe
pythondev_help_Monroe_2018-03-07T18:03:48.000321
1,520,445,828.000321
37,898
pythondev
help
I could see using dictionaries for mapping the item to insert to the index where every time you insert an item into the list, you check all the values for the keys and any value which is at a high index you increment by 1 to properly move it.
2018-03-07T18:07:30.000387
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:07:30.000387
1,520,446,050.000387
37,899
pythondev
help
рщц сфт ш штыуке ф сщву (гыу ащкьфеештп)?
2018-03-07T18:07:45.000398
Barbar
pythondev_help_Barbar_2018-03-07T18:07:45.000398
1,520,446,065.000398
37,900
pythondev
help
whoops
2018-03-07T18:07:50.000132
Barbar
pythondev_help_Barbar_2018-03-07T18:07:50.000132
1,520,446,070.000132
37,901
pythondev
help
how can i insert a code sample (use formatting)?
2018-03-07T18:08:03.000277
Barbar
pythondev_help_Barbar_2018-03-07T18:08:03.000277
1,520,446,083.000277
37,902
pythondev
help
I say yes
2018-03-07T18:08:04.000354
Brande
pythondev_help_Brande_2018-03-07T18:08:04.000354
1,520,446,084.000354
37,903
pythondev
help
Backticks or the plus next to the input box for a snippet
2018-03-07T18:08:23.000124
Brande
pythondev_help_Brande_2018-03-07T18:08:23.000124
1,520,446,103.000124
37,904
pythondev
help
"` `"
2018-03-07T18:08:24.000064
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:08:24.000064
1,520,446,104.000064
37,905
pythondev
help
“`cipher = list(‘abcdefgh’) session_auth_key = list(‘ijklmn’) session_id_key = [5, 3, 6, 1, 2, 7] # set() # ОБЯЗАТЕЛЬНО УЗНАТЬ ЧТО ЭТО ТАКОЕ? И ОТКУДА БЕРЕТСЯ? # по идее len(session_auth_key) == len(session_id_key) !!!!! # по идее len(session_auth_key) &lt;= len(cipher) # по идее session_id_key - это список чисел в ди...
2018-03-07T18:08:36.000031
Barbar
pythondev_help_Barbar_2018-03-07T18:08:36.000031
1,520,446,116.000031
37,906
pythondev
help
Just the back ticks
2018-03-07T18:08:41.000428
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:08:41.000428
1,520,446,121.000428
37,907
pythondev
help
eeehm
2018-03-07T18:08:44.000221
Barbar
pythondev_help_Barbar_2018-03-07T18:08:44.000221
1,520,446,124.000221
37,908
pythondev
help
not quotes lol also
2018-03-07T18:08:46.000396
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:08:46.000396
1,520,446,126.000396
37,909
pythondev
help
rofl
2018-03-07T18:08:50.000154
Barbar
pythondev_help_Barbar_2018-03-07T18:08:50.000154
1,520,446,130.000154
37,910
pythondev
help
use 3 back ticks
2018-03-07T18:08:50.000221
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:08:50.000221
1,520,446,130.000221
37,911
pythondev
help
Yeah snippet longer code please
2018-03-07T18:08:50.000414
Brande
pythondev_help_Brande_2018-03-07T18:08:50.000414
1,520,446,130.000414
37,912
pythondev
help
Put in snippet using plus sign to the left of the input field
2018-03-07T18:09:01.000562
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:09:01.000562
1,520,446,141.000562
37,913
pythondev
help
nevermind russian comments
2018-03-07T18:09:54.000547
Barbar
pythondev_help_Barbar_2018-03-07T18:09:54.000547
1,520,446,194.000547
37,914
pythondev
help
Whats the reason for multiplying by 1.0?
2018-03-07T18:10:35.000376
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:10:35.000376
1,520,446,235.000376
37,915
pythondev
help
Float cast probably
2018-03-07T18:10:50.000407
Brande
pythondev_help_Brande_2018-03-07T18:10:50.000407
1,520,446,250.000407
37,916
pythondev
help
Was gonna say
2018-03-07T18:10:55.000420
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:10:55.000420
1,520,446,255.00042
37,917
pythondev
help
Still not sure why though
2018-03-07T18:11:15.000288
Brande
pythondev_help_Brande_2018-03-07T18:11:15.000288
1,520,446,275.000288
37,918
pythondev
help
Guys, its 2 am here and i am not sure if i should live or die right now
2018-03-07T18:11:43.000150
Barbar
pythondev_help_Barbar_2018-03-07T18:11:43.000150
1,520,446,303.00015
37,919
pythondev
help
damned university project
2018-03-07T18:11:47.000415
Barbar
pythondev_help_Barbar_2018-03-07T18:11:47.000415
1,520,446,307.000415
37,920
pythondev
help
Go to bed, solve it in the morning
2018-03-07T18:11:57.000486
Garrett
pythondev_help_Garrett_2018-03-07T18:11:57.000486
1,520,446,317.000486
37,921
pythondev
help
You'll be alright
2018-03-07T18:11:58.000262
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:11:58.000262
1,520,446,318.000262
37,922
pythondev
help
You basically need to solve the issue of
2018-03-07T18:12:20.000179
Cherlyn
pythondev_help_Cherlyn_2018-03-07T18:12:20.000179
1,520,446,340.000179
37,923