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
wasted a lot of time
2018-02-08T11:23:39.000642
Deja
pythondev_help_Deja_2018-02-08T11:23:39.000642
1,518,089,019.000642
33,524
pythondev
help
youre good
2018-02-08T11:23:40.000002
Kacie
pythondev_help_Kacie_2018-02-08T11:23:40.000002
1,518,089,020.000002
33,525
pythondev
help
happens to experts (im not there yet)
2018-02-08T11:23:51.000476
Kacie
pythondev_help_Kacie_2018-02-08T11:23:51.000476
1,518,089,031.000476
33,526
pythondev
help
me neither <@Kacie>
2018-02-08T11:24:08.000095
Deja
pythondev_help_Deja_2018-02-08T11:24:08.000095
1,518,089,048.000095
33,527
pythondev
help
hey guys, would you reccomend any singleton decorator package proven to be working without issues?
2018-02-08T11:38:39.000445
Lesley
pythondev_help_Lesley_2018-02-08T11:38:39.000445
1,518,089,919.000445
33,528
pythondev
help
I've preferred the meta-class way from here: <https://stackoverflow.com/a/6798042/1584762>
2018-02-08T11:41:12.000478
Rafael
pythondev_help_Rafael_2018-02-08T11:41:12.000478
1,518,090,072.000478
33,529
pythondev
help
looks like this is the same implementation <https://github.com/romaryd/python-singleton>
2018-02-08T11:43:08.000024
Lesley
pythondev_help_Lesley_2018-02-08T11:43:08.000024
1,518,090,188.000024
33,530
pythondev
help
I just don't want to overload the codebase with custom implementation, better to use packages
2018-02-08T11:43:40.000152
Lesley
pythondev_help_Lesley_2018-02-08T11:43:40.000152
1,518,090,220.000152
33,531
pythondev
help
From PythonNotesForProfessionals.pdf ``` Section 26.6: Create singleton class with a decorator A singleton is a pattern that restricts the instantiation of a class to one instance/object. Using a decorator, we can define a class as a singleton by forcing the class to either return an existing instance of the class or c...
2018-02-08T11:46:08.000315
Monroe
pythondev_help_Monroe_2018-02-08T11:46:08.000315
1,518,090,368.000315
33,532
pythondev
help
thanks
2018-02-08T11:46:29.000673
Lesley
pythondev_help_Lesley_2018-02-08T11:46:29.000673
1,518,090,389.000673
33,533
pythondev
help
OK, that formatting sucked, here's the book <http://books.goalkicker.com/PythonBook/>
2018-02-08T11:47:23.000225
Monroe
pythondev_help_Monroe_2018-02-08T11:47:23.000225
1,518,090,443.000225
33,534
pythondev
help
has anyone used coinbase api before?
2018-02-08T11:49:37.000890
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:49:37.000890
1,518,090,577.00089
33,535
pythondev
help
plz look at code
2018-02-08T11:49:49.000059
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:49:49.000059
1,518,090,589.000059
33,536
pythondev
help
from coinbase.wallet.client import Client client = Client( &lt;api_key&gt;, &lt;api_secret&gt;, api_version='YYYY-MM-DD') accounts = client.get_accounts() for account in accounts.data: balance = account.balance print "%s: %s %s" % (account.name, balance.amount, balance.currency) print account.get_tra...
2018-02-08T11:49:52.000616
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:49:52.000616
1,518,090,592.000616
33,537
pythondev
help
got a gist?
2018-02-08T11:50:18.000689
Kacie
pythondev_help_Kacie_2018-02-08T11:50:18.000689
1,518,090,618.000689
33,538
pythondev
help
or can you use slack's code input
2018-02-08T11:50:31.000053
Kacie
pythondev_help_Kacie_2018-02-08T11:50:31.000053
1,518,090,631.000053
33,539
pythondev
help
i have not used slack before where i can find
2018-02-08T11:51:22.000219
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:51:22.000219
1,518,090,682.000219
33,540
pythondev
help
do you see the '+' sign
2018-02-08T11:51:33.000134
Kacie
pythondev_help_Kacie_2018-02-08T11:51:33.000134
1,518,090,693.000134
33,541
pythondev
help
yes
2018-02-08T11:51:41.000509
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:51:41.000509
1,518,090,701.000509
33,542
pythondev
help
oh thank you so much!
2018-02-08T11:51:45.000951
Lesley
pythondev_help_Lesley_2018-02-08T11:51:45.000951
1,518,090,705.000951
33,543
pythondev
help
where you type in input
2018-02-08T11:51:48.000846
Kacie
pythondev_help_Kacie_2018-02-08T11:51:48.000846
1,518,090,708.000846
33,544
pythondev
help
select the 'code or text input'
2018-02-08T11:51:58.000507
Kacie
pythondev_help_Kacie_2018-02-08T11:51:58.000507
1,518,090,718.000507
33,545
pythondev
help
done
2018-02-08T11:52:13.000494
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:52:13.000494
1,518,090,733.000494
33,546
pythondev
help
so whats up
2018-02-08T11:53:14.000282
Kacie
pythondev_help_Kacie_2018-02-08T11:53:14.000282
1,518,090,794.000282
33,547
pythondev
help
whats your question
2018-02-08T11:53:16.000904
Kacie
pythondev_help_Kacie_2018-02-08T11:53:16.000904
1,518,090,796.000904
33,548
pythondev
help
by default the coinbase api creates bitcoin address anyone knows to set it to Ethereum
2018-02-08T11:53:23.000401
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:53:23.000401
1,518,090,803.000401
33,549
pythondev
help
i asked it on thier stack overflow no one replies
2018-02-08T11:54:12.000393
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:54:12.000393
1,518,090,852.000393
33,550
pythondev
help
what?
2018-02-08T11:54:19.000209
Kacie
pythondev_help_Kacie_2018-02-08T11:54:19.000209
1,518,090,859.000209
33,551
pythondev
help
whats your question
2018-02-08T11:54:22.000375
Kacie
pythondev_help_Kacie_2018-02-08T11:54:22.000375
1,518,090,862.000375
33,552
pythondev
help
how to create ethereum address
2018-02-08T11:54:49.000176
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:54:49.000176
1,518,090,889.000176
33,553
pythondev
help
using coinbase ?
2018-02-08T11:55:00.000965
Kacie
pythondev_help_Kacie_2018-02-08T11:55:00.000965
1,518,090,900.000965
33,554
pythondev
help
yes
2018-02-08T11:55:10.000515
Shaniqua
pythondev_help_Shaniqua_2018-02-08T11:55:10.000515
1,518,090,910.000515
33,555
pythondev
help
thats from their docs
2018-02-08T12:00:04.001028
Kacie
pythondev_help_Kacie_2018-02-08T12:00:04.001028
1,518,091,204.001028
33,556
pythondev
help
it doesnt specify address it seems
2018-02-08T12:00:15.000071
Kacie
pythondev_help_Kacie_2018-02-08T12:00:15.000071
1,518,091,215.000071
33,557
pythondev
help
its possible it auto generates one/defaults to the one you have?
2018-02-08T12:00:30.000540
Kacie
pythondev_help_Kacie_2018-02-08T12:00:30.000540
1,518,091,230.00054
33,558
pythondev
help
if youre trying to make an etherum address you can
2018-02-08T12:00:39.000076
Kacie
pythondev_help_Kacie_2018-02-08T12:00:39.000076
1,518,091,239.000076
33,559
pythondev
help
but that might just be easier outside of coinbase
2018-02-08T12:00:46.000682
Kacie
pythondev_help_Kacie_2018-02-08T12:00:46.000682
1,518,091,246.000682
33,560
pythondev
help
also please realize that coinbase isnt really a wallet
2018-02-08T12:01:02.000167
Kacie
pythondev_help_Kacie_2018-02-08T12:01:02.000167
1,518,091,262.000167
33,561
pythondev
help
yes its easier but i have to work with geth and its takes too much bandwidth to download the whole chain,i m making a bot for auto transactions
2018-02-08T12:03:03.000208
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:03:03.000208
1,518,091,383.000208
33,562
pythondev
help
i found this <https://stackoverflow.com/questions/46905362/coinbase-work-with-ethereum-in-stead-of-bitcoin>
2018-02-08T12:03:35.000525
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:03:35.000525
1,518,091,415.000525
33,563
pythondev
help
if you look at the github repo
2018-02-08T12:04:04.000548
Kacie
pythondev_help_Kacie_2018-02-08T12:04:04.000548
1,518,091,444.000548
33,564
pythondev
help
you could pass in params as well when you create_account()
2018-02-08T12:04:21.000151
Kacie
pythondev_help_Kacie_2018-02-08T12:04:21.000151
1,518,091,461.000151
33,565
pythondev
help
<https://github.com/coinbase/coinbase-python/blob/master/coinbase/wallet/client.py>
2018-02-08T12:04:30.000468
Kacie
pythondev_help_Kacie_2018-02-08T12:04:30.000468
1,518,091,470.000468
33,566
pythondev
help
ok wait
2018-02-08T12:04:33.000462
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:04:33.000462
1,518,091,473.000462
33,567
pythondev
help
so specify currency = 'ETH'
2018-02-08T12:04:38.000450
Kacie
pythondev_help_Kacie_2018-02-08T12:04:38.000450
1,518,091,478.00045
33,568
pythondev
help
<https://developers.coinbase.com/api/v2?python#create-account>
2018-02-08T12:05:06.000561
Kacie
pythondev_help_Kacie_2018-02-08T12:05:06.000561
1,518,091,506.000561
33,569
pythondev
help
their client api is just a simple request
2018-02-08T12:05:19.000689
Kacie
pythondev_help_Kacie_2018-02-08T12:05:19.000689
1,518,091,519.000689
33,570
pythondev
help
from your own example ```account = client.create_account(name="New Wallet") ```
2018-02-08T12:06:30.000055
Kacie
pythondev_help_Kacie_2018-02-08T12:06:30.000055
1,518,091,590.000055
33,571
pythondev
help
you could just as easily try and pass ```account = client.create_account(name="New ETHEREUM WALLET ", currency='ETH') ```
2018-02-08T12:07:00.000429
Kacie
pythondev_help_Kacie_2018-02-08T12:07:00.000429
1,518,091,620.000429
33,572
pythondev
help
oh thanks very much.
2018-02-08T12:07:36.000294
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:07:36.000294
1,518,091,656.000294
33,573
pythondev
help
one more thing is there any option to configure gas limits?
2018-02-08T12:10:01.000681
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:10:01.000681
1,518,091,801.000681
33,574
pythondev
help
idk bro is that even a thing with coinbase?
2018-02-08T12:10:32.000365
Kacie
pythondev_help_Kacie_2018-02-08T12:10:32.000365
1,518,091,832.000365
33,575
pythondev
help
i guess transfer fees?
2018-02-08T12:10:45.000704
Kacie
pythondev_help_Kacie_2018-02-08T12:10:45.000704
1,518,091,845.000704
33,576
pythondev
help
i think theres a way check the docs
2018-02-08T12:10:53.000773
Kacie
pythondev_help_Kacie_2018-02-08T12:10:53.000773
1,518,091,853.000773
33,577
pythondev
help
u mean api reference right?
2018-02-08T12:11:31.000077
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:11:31.000077
1,518,091,891.000077
33,578
pythondev
help
yes
2018-02-08T12:11:40.000106
Kacie
pythondev_help_Kacie_2018-02-08T12:11:40.000106
1,518,091,900.000106
33,579
pythondev
help
ok
2018-02-08T12:11:46.000070
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:11:46.000070
1,518,091,906.00007
33,580
pythondev
help
thanks for ur help
2018-02-08T12:12:06.000780
Shaniqua
pythondev_help_Shaniqua_2018-02-08T12:12:06.000780
1,518,091,926.00078
33,581
pythondev
help
is there a way for a class to conditionally return an instance of itself or None depending on a condition within it's initialization
2018-02-08T12:28:36.000377
Shante
pythondev_help_Shante_2018-02-08T12:28:36.000377
1,518,092,916.000377
33,582
pythondev
help
:open_mouth:
2018-02-08T12:29:08.000550
Barney
pythondev_help_Barney_2018-02-08T12:29:08.000550
1,518,092,948.00055
33,583
pythondev
help
you could override `__new__`
2018-02-08T12:29:22.000751
Barney
pythondev_help_Barney_2018-02-08T12:29:22.000751
1,518,092,962.000751
33,584
pythondev
help
why tho
2018-02-08T12:29:27.000187
Barney
pythondev_help_Barney_2018-02-08T12:29:27.000187
1,518,092,967.000187
33,585
pythondev
help
I have some database handles I don't want to have to keep creating and destroying all over the place and I'd rather have them defined to the instance of my user class since that's the only place I need them for this web app
2018-02-08T12:30:10.000025
Shante
pythondev_help_Shante_2018-02-08T12:30:10.000025
1,518,093,010.000025
33,586
pythondev
help
so within the init, I want to check the database for the user, if there's no user match then I want my user variable to be None
2018-02-08T12:30:43.000190
Shante
pythondev_help_Shante_2018-02-08T12:30:43.000190
1,518,093,043.00019
33,587
pythondev
help
unless what I am trying to accomplish can be done more elegantly
2018-02-08T12:30:54.000665
Shante
pythondev_help_Shante_2018-02-08T12:30:54.000665
1,518,093,054.000665
33,588
pythondev
help
``` self.handler = SomeClass(**data) if some_variable else None ``` ?
2018-02-08T12:31:18.000273
Barney
pythondev_help_Barney_2018-02-08T12:31:18.000273
1,518,093,078.000273
33,589
pythondev
help
well the username comes in over the post request
2018-02-08T12:31:44.000075
Shante
pythondev_help_Shante_2018-02-08T12:31:44.000075
1,518,093,104.000075
33,590
pythondev
help
the idea I had was `user = User(username)`
2018-02-08T12:31:58.000056
Shante
pythondev_help_Shante_2018-02-08T12:31:58.000056
1,518,093,118.000056
33,591
pythondev
help
then `__init__` would create a database handle and a cursor on itself, check the databse and return
2018-02-08T12:32:34.000603
Shante
pythondev_help_Shante_2018-02-08T12:32:34.000603
1,518,093,154.000603
33,592
pythondev
help
although I can just internally set the user data to None as well now that I think about it
2018-02-08T12:32:56.000407
Shante
pythondev_help_Shante_2018-02-08T12:32:56.000407
1,518,093,176.000407
33,593
pythondev
help
Anyone here familiar with TDD by Example (Kent Beck)? I'm having some difficulties figuring out something in part 2
2018-02-08T12:47:08.000247
Elijah
pythondev_help_Elijah_2018-02-08T12:47:08.000247
1,518,094,028.000247
33,594
pythondev
help
specifically, how to write a test for a broken `set_up()` in the test harness
2018-02-08T12:52:09.000264
Elijah
pythondev_help_Elijah_2018-02-08T12:52:09.000264
1,518,094,329.000264
33,595
pythondev
help
Hey guys, virtual environment question
2018-02-08T13:30:31.000435
Lesia
pythondev_help_Lesia_2018-02-08T13:30:31.000435
1,518,096,631.000435
33,596
pythondev
help
I am using PyCharm, and every time I try to activate my local venv it jumps to another venv in a separate folder
2018-02-08T13:31:11.000432
Lesia
pythondev_help_Lesia_2018-02-08T13:31:11.000432
1,518,096,671.000432
33,597
pythondev
help
Has anyone experienced this?
2018-02-08T13:31:24.000254
Lesia
pythondev_help_Lesia_2018-02-08T13:31:24.000254
1,518,096,684.000254
33,598
pythondev
help
no
2018-02-08T13:34:21.000503
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T13:34:21.000503
1,518,096,861.000503
33,599
pythondev
help
are you sure your root python env are setup correctly?
2018-02-08T13:34:33.000421
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T13:34:33.000421
1,518,096,873.000421
33,600
pythondev
help
Unsure
2018-02-08T13:39:30.000039
Lesia
pythondev_help_Lesia_2018-02-08T13:39:30.000039
1,518,097,170.000039
33,601
pythondev
help
<@Lesia> How do you activate your venv, what are your PyCharm settings (specifially go have a look at File-&gt;Settings-&gt;Project Interpreter), do you have something that messes with your environment (e.g. pyenv shims etc)? Are you using any helper scripts?
2018-02-08T13:44:15.000199
Elijah
pythondev_help_Elijah_2018-02-08T13:44:15.000199
1,518,097,455.000199
33,602
pythondev
help
Where I am at now: I deleted all venvs and am starting fresh.
2018-02-08T13:44:55.000251
Lesia
pythondev_help_Lesia_2018-02-08T13:44:55.000251
1,518,097,495.000251
33,603
pythondev
help
:+1:
2018-02-08T13:45:03.000029
Elijah
pythondev_help_Elijah_2018-02-08T13:45:03.000029
1,518,097,503.000029
33,604
pythondev
help
I activate via terminal
2018-02-08T13:45:09.000279
Lesia
pythondev_help_Lesia_2018-02-08T13:45:09.000279
1,518,097,509.000279
33,605
pythondev
help
But was unsure if PyCharm interfered in some way
2018-02-08T13:45:27.000106
Lesia
pythondev_help_Lesia_2018-02-08T13:45:27.000106
1,518,097,527.000106
33,606
pythondev
help
Anyone familiar with the Zeep Soap Client?
2018-02-08T13:45:59.000138
Neida
pythondev_help_Neida_2018-02-08T13:45:59.000138
1,518,097,559.000138
33,607
pythondev
help
Naah, PyCharm shouldn't interfere. Do you also create via terminal, or do you create the venvs from within PyCharm?
2018-02-08T13:48:02.000305
Elijah
pythondev_help_Elijah_2018-02-08T13:48:02.000305
1,518,097,682.000305
33,608
pythondev
help
Anyone know how to generate `Faker` names without titles? So I’m getting things like `Mrs. First Last` when I do `fake.name()`.
2018-02-08T15:32:29.000367
Breana
pythondev_help_Breana_2018-02-08T15:32:29.000367
1,518,103,949.000367
33,609
pythondev
help
`'%s %s' % (fake.first_name(), fake.last_name())`
2018-02-08T16:21:44.000347
Kathlyn
pythondev_help_Kathlyn_2018-02-08T16:21:44.000347
1,518,106,904.000347
33,610
pythondev
help
Anyone have any insight on converting 64bit unix epoch time to 32bit, as time.localtime() seems to only accept 32bit?
2018-02-08T16:48:27.000059
Loren
pythondev_help_Loren_2018-02-08T16:48:27.000059
1,518,108,507.000059
33,611
pythondev
help
got some code to show?
2018-02-08T16:51:19.000652
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:51:19.000652
1,518,108,679.000652
33,612
pythondev
help
like what you are doing, and where its messing up
2018-02-08T16:51:47.000207
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:51:47.000207
1,518,108,707.000207
33,613
pythondev
help
```&gt;&gt;&gt; time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1577750400000)) '51966-12-02 19:00:00'```
2018-02-08T16:52:02.000362
Loren
pythondev_help_Loren_2018-02-08T16:52:02.000362
1,518,108,722.000362
33,614
pythondev
help
Should be 2019-12-30 19:00:00
2018-02-08T16:52:48.000552
Loren
pythondev_help_Loren_2018-02-08T16:52:48.000552
1,518,108,768.000552
33,615
pythondev
help
you are giving it miliseconds instead of seconds
2018-02-08T16:52:49.000051
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:52:49.000051
1,518,108,769.000051
33,616
pythondev
help
1518126823 in seconds right now
2018-02-08T16:53:48.000020
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:53:48.000020
1,518,108,828.00002
33,617
pythondev
help
Ah. The API says its 64-bit int - Unix epoch. Ill check that out though, thanks!
2018-02-08T16:53:55.000471
Loren
pythondev_help_Loren_2018-02-08T16:53:55.000471
1,518,108,835.000471
33,618
pythondev
help
(at least, it looks like you are giving mili seconds)
2018-02-08T16:54:09.000653
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:54:09.000653
1,518,108,849.000653
33,619
pythondev
help
`time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1577750400000 *.001))`
2018-02-08T16:54:28.000562
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:54:28.000562
1,518,108,868.000562
33,620
pythondev
help
what does that give you?
2018-02-08T16:54:32.000086
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T16:54:32.000086
1,518,108,872.000086
33,621
pythondev
help
The correct date, ofc. :stuck_out_tongue:
2018-02-08T16:54:58.000342
Loren
pythondev_help_Loren_2018-02-08T16:54:58.000342
1,518,108,898.000342
33,622
pythondev
help
Thank you!
2018-02-08T16:55:03.000130
Loren
pythondev_help_Loren_2018-02-08T16:55:03.000130
1,518,108,903.00013
33,623