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
Jeez haha
2019-03-28T21:07:06.142900
Huong
pythondev_help_Huong_2019-03-28T21:07:06.142900
1,553,807,226.1429
15,621
pythondev
help
To be fair you'd be making premature improvements to something (I'm not trying to make assumptions as to what you're doing, but in general unless you NEED it you don't need it)
2019-03-28T21:07:23.143300
Candra
pythondev_help_Candra_2019-03-28T21:07:23.143300
1,553,807,243.1433
15,622
pythondev
help
would definitely agree with this
2019-03-28T21:07:36.143700
Hiroko
pythondev_help_Hiroko_2019-03-28T21:07:36.143700
1,553,807,256.1437
15,623
pythondev
help
and if you do want to log to a db, don’t
2019-03-28T21:07:45.144100
Hiroko
pythondev_help_Hiroko_2019-03-28T21:07:45.144100
1,553,807,265.1441
15,624
pythondev
help
use elastic search or solr instead
2019-03-28T21:07:53.144500
Hiroko
pythondev_help_Hiroko_2019-03-28T21:07:53.144500
1,553,807,273.1445
15,625
pythondev
help
All of the logs at my company, unless transaction audit log, use normal rotating file handlers for logging.
2019-03-28T21:08:30.145800
Candra
pythondev_help_Candra_2019-03-28T21:08:30.145800
1,553,807,310.1458
15,626
pythondev
help
Logging is already hard, don't make it harder :slightly_smiling_face:
2019-03-28T21:08:37.146300
Candra
pythondev_help_Candra_2019-03-28T21:08:37.146300
1,553,807,317.1463
15,627
pythondev
help
if you’re logging to your own db which your app relies on, you’re dumping a ton of writes into your db
2019-03-28T21:08:39.146500
Hiroko
pythondev_help_Hiroko_2019-03-28T21:08:39.146500
1,553,807,319.1465
15,628
pythondev
help
so, therefore performance will go south from what it already is
2019-03-28T21:08:55.147100
Hiroko
pythondev_help_Hiroko_2019-03-28T21:08:55.147100
1,553,807,335.1471
15,629
pythondev
help
Ok I'll have to check that handler out. Thanks!
2019-03-28T21:08:56.147200
Huong
pythondev_help_Huong_2019-03-28T21:08:56.147200
1,553,807,336.1472
15,630
pythondev
help
No problem!
2019-03-28T21:09:01.147600
Candra
pythondev_help_Candra_2019-03-28T21:09:01.147600
1,553,807,341.1476
15,631
pythondev
help
Thanks <@Hiroko> as well
2019-03-28T21:09:48.148900
Huong
pythondev_help_Huong_2019-03-28T21:09:48.148900
1,553,807,388.1489
15,632
pythondev
help
Check this out as well <@Huong> it brings up some good points and options to eventually save items to a database if you want to be able to query
2019-03-28T21:11:03.149800
Candra
pythondev_help_Candra_2019-03-28T21:11:03.149800
1,553,807,463.1498
15,633
pythondev
help
<https://softwareengineering.stackexchange.com/questions/313582/logging-into-text-file-or-database>
2019-03-28T21:11:04.150000
Candra
pythondev_help_Candra_2019-03-28T21:11:04.150000
1,553,807,464.15
15,634
pythondev
help
Thanks again. Going to read through it now.
2019-03-28T21:11:36.150500
Huong
pythondev_help_Huong_2019-03-28T21:11:36.150500
1,553,807,496.1505
15,635
pythondev
help
Hey guys, a general design question: I have a table in Postgres which would be used to generate many charts (most probably R markdown for that), and those charts will eventually go in reports. Now those charts will be using subset of data from that table with some form of aggregation/group by, and filters. I want to design a process which should be scalable if anyone wants to add new metrics/charts. How should I go about it? Should I have some lookup tables and then functions that would generate dynamic queries for each chart’s data, or what other ways/techniques/tools are there? We have Tableau too and that can also be considered.
2019-03-28T21:14:21.150700
Raguel
pythondev_help_Raguel_2019-03-28T21:14:21.150700
1,553,807,661.1507
15,636
pythondev
help
My new notebook <https://github.com/paulgureghian/Visualizing_Trends_in_a_Time_Series>
2019-03-28T21:49:22.151800
Clayton
pythondev_help_Clayton_2019-03-28T21:49:22.151800
1,553,809,762.1518
15,637
pythondev
help
I've file blocks in variable chunks. Good idea to store meta data in RDBMS &amp; chunks (millions of them) in key-value database?
2019-03-29T01:10:04.154100
Cathi
pythondev_help_Cathi_2019-03-29T01:10:04.154100
1,553,821,804.1541
15,638
pythondev
help
How to parametrize pytest instance methods
2019-03-29T01:55:12.155100
Merlyn
pythondev_help_Merlyn_2019-03-29T01:55:12.155100
1,553,824,512.1551
15,639
pythondev
help
I want to begin learning TDD. Would be appreciative of great resources for it :pray:
2019-03-29T02:14:17.156200
Conchita
pythondev_help_Conchita_2019-03-29T02:14:17.156200
1,553,825,657.1562
15,640
pythondev
help
there's this (ridiculously named) book called obey the testing goat
2019-03-29T02:20:01.156600
Conrad
pythondev_help_Conrad_2019-03-29T02:20:01.156600
1,553,826,001.1566
15,641
pythondev
help
<http://www.obeythetestinggoat.com/>
2019-03-29T02:21:14.156800
Conrad
pythondev_help_Conrad_2019-03-29T02:21:14.156800
1,553,826,074.1568
15,642
pythondev
help
<@Merlyn> <https://pytest.readthedocs.io/en/2.7.3/example/parametrize.html>
2019-03-29T02:27:30.157100
Valeri
pythondev_help_Valeri_2019-03-29T02:27:30.157100
1,553,826,450.1571
15,643
pythondev
help
That's a good example
2019-03-29T02:27:36.157400
Valeri
pythondev_help_Valeri_2019-03-29T02:27:36.157400
1,553,826,456.1574
15,644
pythondev
help
Thanks here's a :taco: <@Conrad>
2019-03-29T02:28:09.157800
Conchita
pythondev_help_Conchita_2019-03-29T02:28:09.157800
1,553,826,489.1578
15,645
pythondev
help
gracias
2019-03-29T02:28:25.158000
Conrad
pythondev_help_Conrad_2019-03-29T02:28:25.158000
1,553,826,505.158
15,646
pythondev
help
I mean methods inside the class with self as first param how to parametrize that methods
2019-03-29T02:30:19.159900
Merlyn
pythondev_help_Merlyn_2019-03-29T02:30:19.159900
1,553,826,619.1599
15,647
pythondev
help
What do you mean you want to parametrize `self`?
2019-03-29T02:48:54.160400
Valeri
pythondev_help_Valeri_2019-03-29T02:48:54.160400
1,553,827,734.1604
15,648
pythondev
help
`@pytest.mark.parametrize`
2019-03-29T02:50:15.161300
Valeri
pythondev_help_Valeri_2019-03-29T02:50:15.161300
1,553,827,815.1613
15,649
pythondev
help
You need to add the above decorator and add the fields you need to parametrize inside the decorator and provide test data
2019-03-29T02:50:38.161800
Valeri
pythondev_help_Valeri_2019-03-29T02:50:38.161800
1,553,827,838.1618
15,650
pythondev
help
You need not worry about `self`
2019-03-29T02:51:27.162200
Valeri
pythondev_help_Valeri_2019-03-29T02:51:27.162200
1,553,827,887.1622
15,651
pythondev
help
``` @pytest.mark.parametrize('a, b, c', [ [1, 2, 3], ]) def func(self, a, b, c): # Write your test here ```
2019-03-29T02:52:30.162800
Valeri
pythondev_help_Valeri_2019-03-29T02:52:30.162800
1,553,827,950.1628
15,652
pythondev
help
Does that make sense? <@Merlyn>
2019-03-29T02:53:25.163300
Valeri
pythondev_help_Valeri_2019-03-29T02:53:25.163300
1,553,828,005.1633
15,653
pythondev
help
Yes
2019-03-29T02:53:30.163500
Merlyn
pythondev_help_Merlyn_2019-03-29T02:53:30.163500
1,553,828,010.1635
15,654
pythondev
help
But its giving missing param error
2019-03-29T02:53:45.164000
Merlyn
pythondev_help_Merlyn_2019-03-29T02:53:45.164000
1,553,828,025.164
15,655
pythondev
help
Please show what you've done
2019-03-29T02:54:18.164300
Valeri
pythondev_help_Valeri_2019-03-29T02:54:18.164300
1,553,828,058.1643
15,656
pythondev
help
And the error traceback
2019-03-29T02:54:25.164500
Valeri
pythondev_help_Valeri_2019-03-29T02:54:25.164500
1,553,828,065.1645
15,657
pythondev
help
<@Merlyn>
2019-03-29T02:57:38.164800
Valeri
pythondev_help_Valeri_2019-03-29T02:57:38.164800
1,553,828,258.1648
15,658
pythondev
help
None
2019-03-29T02:57:51.164900
Merlyn
pythondev_help_Merlyn_2019-03-29T02:57:51.164900
1,553,828,271.1649
15,659
pythondev
help
<@Valeri>
2019-03-29T02:59:45.165300
Merlyn
pythondev_help_Merlyn_2019-03-29T02:59:45.165300
1,553,828,385.1653
15,660
pythondev
help
What does `pytest -h ` give you?
2019-03-29T03:00:32.165600
Valeri
pythondev_help_Valeri_2019-03-29T03:00:32.165600
1,553,828,432.1656
15,661
pythondev
help
Help
2019-03-29T03:01:10.165800
Merlyn
pythondev_help_Merlyn_2019-03-29T03:01:10.165800
1,553,828,470.1658
15,662
pythondev
help
Config file settings?
2019-03-29T03:01:49.166000
Valeri
pythondev_help_Valeri_2019-03-29T03:01:49.166000
1,553,828,509.166
15,663
pythondev
help
No that i have printed i for config file
2019-03-29T03:03:03.167100
Merlyn
pythondev_help_Merlyn_2019-03-29T03:03:03.167100
1,553,828,583.1671
15,664
pythondev
help
The error clearly mentions that your config file is missing
2019-03-29T03:03:40.167400
Valeri
pythondev_help_Valeri_2019-03-29T03:03:40.167400
1,553,828,620.1674
15,665
pythondev
help
No its optional
2019-03-29T03:04:11.167900
Merlyn
pythondev_help_Merlyn_2019-03-29T03:04:11.167900
1,553,828,651.1679
15,666
pythondev
help
But just print ed msg
2019-03-29T03:04:28.168300
Merlyn
pythondev_help_Merlyn_2019-03-29T03:04:28.168300
1,553,828,668.1683
15,667
pythondev
help
Try `('QTP', 0)`
2019-03-29T03:05:37.168900
Valeri
pythondev_help_Valeri_2019-03-29T03:05:37.168900
1,553,828,737.1689
15,668
pythondev
help
You have QTP and 0 both in a single string
2019-03-29T03:05:52.169300
Valeri
pythondev_help_Valeri_2019-03-29T03:05:52.169300
1,553,828,752.1693
15,669
pythondev
help
Tried same error
2019-03-29T03:06:11.169700
Merlyn
pythondev_help_Merlyn_2019-03-29T03:06:11.169700
1,553,828,771.1697
15,670
pythondev
help
How are you running the test?
2019-03-29T03:08:44.169900
Valeri
pythondev_help_Valeri_2019-03-29T03:08:44.169900
1,553,828,924.1699
15,671
pythondev
help
Python -m pytest
2019-03-29T03:10:12.170300
Merlyn
pythondev_help_Merlyn_2019-03-29T03:10:12.170300
1,553,829,012.1703
15,672
pythondev
help
Hello, does anyone know how to install couchbase client for python? I have installed necessary development packages and libraries but still couldn't compile... Error compilation....
2019-03-29T03:55:19.170600
Elmira
pythondev_help_Elmira_2019-03-29T03:55:19.170600
1,553,831,719.1706
15,673
pythondev
help
Hello guys, I've got this Flask app that we're making, and I noticed that our app does not close a session upon request end likeso ```@app.teardown_appcontext def shutdown_session(exception=None): print("closing session on request end") db.session.remove()```
2019-03-29T04:22:00.172500
Philip
pythondev_help_Philip_2019-03-29T04:22:00.172500
1,553,833,320.1725
15,674
pythondev
help
Is there a reason to not use it?
2019-03-29T04:22:05.172800
Philip
pythondev_help_Philip_2019-03-29T04:22:05.172800
1,553,833,325.1728
15,675
pythondev
help
<@Valeri> I created one more class with parametrize test just to print it's running successfully but the class in screenshot is getting error
2019-03-29T05:51:40.178100
Merlyn
pythondev_help_Merlyn_2019-03-29T05:51:40.178100
1,553,838,700.1781
15,676
pythondev
help
<@Merlyn> awesome. Can you show what you did?
2019-03-29T05:52:32.179500
Valeri
pythondev_help_Valeri_2019-03-29T05:52:32.179500
1,553,838,752.1795
15,677
pythondev
help
And please don't share photos
2019-03-29T05:52:41.179800
Valeri
pythondev_help_Valeri_2019-03-29T05:52:41.179800
1,553,838,761.1798
15,678
pythondev
help
Share markedown code
2019-03-29T05:52:52.180400
Valeri
pythondev_help_Valeri_2019-03-29T05:52:52.180400
1,553,838,772.1804
15,679
pythondev
help
Well thanks a lot
2019-03-29T05:54:03.181800
Florencio
pythondev_help_Florencio_2019-03-29T05:54:03.181800
1,553,838,843.1818
15,680
pythondev
help
can I design my own `404` page? instead of using the defaults
2019-03-29T05:56:16.182400
Florencio
pythondev_help_Florencio_2019-03-29T05:56:16.182400
1,553,838,976.1824
15,681
pythondev
help
yes
2019-03-29T05:58:00.182600
Jimmy
pythondev_help_Jimmy_2019-03-29T05:58:00.182600
1,553,839,080.1826
15,682
pythondev
help
<https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-to-use-custom-error-pages-on-ubuntu-14-04> example for nginx
2019-03-29T05:58:31.182900
Jimmy
pythondev_help_Jimmy_2019-03-29T05:58:31.182900
1,553,839,111.1829
15,683
pythondev
help
okay
2019-03-29T06:20:47.184200
Florencio
pythondev_help_Florencio_2019-03-29T06:20:47.184200
1,553,840,447.1842
15,684
pythondev
help
but this is different
2019-03-29T06:24:24.184500
Florencio
pythondev_help_Florencio_2019-03-29T06:24:24.184500
1,553,840,664.1845
15,685
pythondev
help
How?
2019-03-29T06:25:52.184700
Hiroko
pythondev_help_Hiroko_2019-03-29T06:25:52.184700
1,553,840,752.1847
15,686
pythondev
help
I mean, <@Jimmy> provided an answer to your question based on the information you provided
2019-03-29T06:26:37.185900
Hiroko
pythondev_help_Hiroko_2019-03-29T06:26:37.185900
1,553,840,797.1859
15,687
pythondev
help
the 404 page that shows in Django if what is requested doesn't exist
2019-03-29T06:45:29.186600
Florencio
pythondev_help_Florencio_2019-03-29T06:45:29.186600
1,553,841,929.1866
15,688
pythondev
help
This is probably because you have DEBUG set to TRUE in your Django settings <@Florencio>
2019-03-29T06:53:37.187300
Vanessa
pythondev_help_Vanessa_2019-03-29T06:53:37.187300
1,553,842,417.1873
15,689
pythondev
help
ohh... so that means I can only create my own 404 page in production then
2019-03-29T06:54:26.187900
Florencio
pythondev_help_Florencio_2019-03-29T06:54:26.187900
1,553,842,466.1879
15,690
pythondev
help
or turn off the debug setting?
2019-03-29T06:54:35.188100
Hiroko
pythondev_help_Hiroko_2019-03-29T06:54:35.188100
1,553,842,475.1881
15,691
pythondev
help
I read somewhere that it's necessary during dev/testing
2019-03-29T06:55:12.188800
Florencio
pythondev_help_Florencio_2019-03-29T06:55:12.188800
1,553,842,512.1888
15,692
pythondev
help
thanks for the clarity
2019-03-29T06:55:28.189100
Florencio
pythondev_help_Florencio_2019-03-29T06:55:28.189100
1,553,842,528.1891
15,693
pythondev
help
not really
2019-03-29T06:55:41.189300
Hiroko
pythondev_help_Hiroko_2019-03-29T06:55:41.189300
1,553,842,541.1893
15,694
pythondev
help
its useful, sure
2019-03-29T06:55:46.189500
Hiroko
pythondev_help_Hiroko_2019-03-29T06:55:46.189500
1,553,842,546.1895
15,695
pythondev
help
but not necesary
2019-03-29T06:55:49.189700
Hiroko
pythondev_help_Hiroko_2019-03-29T06:55:49.189700
1,553,842,549.1897
15,696
pythondev
help
ohh
2019-03-29T06:56:01.189900
Florencio
pythondev_help_Florencio_2019-03-29T06:56:01.189900
1,553,842,561.1899
15,697
pythondev
help
and in your case, with a custom 404 page, you won’t get it, because you’ll get the django debug error stack trace
2019-03-29T06:56:49.190500
Hiroko
pythondev_help_Hiroko_2019-03-29T06:56:49.190500
1,553,842,609.1905
15,698
pythondev
help
yeah, that shows too
2019-03-29T06:57:05.190800
Florencio
pythondev_help_Florencio_2019-03-29T06:57:05.190800
1,553,842,625.1908
15,699
pythondev
help
okay maybe I'll do this later
2019-03-29T06:57:38.191200
Florencio
pythondev_help_Florencio_2019-03-29T06:57:38.191200
1,553,842,658.1912
15,700
pythondev
help
i have a question about file uploads or some questions
2019-03-29T06:58:02.191700
Florencio
pythondev_help_Florencio_2019-03-29T06:58:02.191700
1,553,842,682.1917
15,701
pythondev
help
If you have a question, please just ask it. Please do not ask for topic experts; do not DM or ping random users. We cannot begin to answer a question until we actually get a question. <http://sol.gfxile.net/dontask.html|*Asking Questions*>
2019-03-29T06:58:21.191800
Leana
pythondev_help_Leana_2019-03-29T06:58:21.191800
1,553,842,701.1918
15,702
pythondev
help
what I want to achieve is for admin to create holidays/events products sales for a particular period and then when it's time it automatically goes off
2019-03-29T07:00:04.193400
Florencio
pythondev_help_Florencio_2019-03-29T07:00:04.193400
1,553,842,804.1934
15,703
pythondev
help
e.g Easter is coming
2019-03-29T07:00:15.193700
Florencio
pythondev_help_Florencio_2019-03-29T07:00:15.193700
1,553,842,815.1937
15,704
pythondev
help
so we have like discounts for our iPhone s7, Samsung 8s, Gionee s11 lite
2019-03-29T07:01:05.194700
Florencio
pythondev_help_Florencio_2019-03-29T07:01:05.194700
1,553,842,865.1947
15,705
pythondev
help
this is an ecommerce thing?
2019-03-29T07:02:04.195800
Hiroko
pythondev_help_Hiroko_2019-03-29T07:02:04.195800
1,553,842,924.1958
15,706
pythondev
help
sort of
2019-03-29T07:02:15.196100
Florencio
pythondev_help_Florencio_2019-03-29T07:02:15.196100
1,553,842,935.1961
15,707
pythondev
help
on my admin panel, I click on `create feature` inputs `event name`-this name will be the name of the folders all the images i'll put will be saved and the paths save in db
2019-03-29T07:03:09.197100
Florencio
pythondev_help_Florencio_2019-03-29T07:03:09.197100
1,553,842,989.1971
15,708
pythondev
help
pretty standard
2019-03-29T07:03:40.198000
Hiroko
pythondev_help_Hiroko_2019-03-29T07:03:40.198000
1,553,843,020.198
15,709
pythondev
help
so when I'm done and click save. It starts appearing on the user end
2019-03-29T07:03:46.198200
Florencio
pythondev_help_Florencio_2019-03-29T07:03:46.198200
1,553,843,026.1982
15,710
pythondev
help
now when the last day reach, it should automatically take it off
2019-03-29T07:04:20.198900
Florencio
pythondev_help_Florencio_2019-03-29T07:04:20.198900
1,553,843,060.1989
15,711
pythondev
help
again, standard
2019-03-29T07:05:38.199100
Hiroko
pythondev_help_Hiroko_2019-03-29T07:05:38.199100
1,553,843,138.1991
15,712
pythondev
help
you have a model with a start timestamp and an end timestamp
2019-03-29T07:05:52.199500
Hiroko
pythondev_help_Hiroko_2019-03-29T07:05:52.199500
1,553,843,152.1995
15,713
pythondev
help
yes
2019-03-29T07:06:00.199800
Florencio
pythondev_help_Florencio_2019-03-29T07:06:00.199800
1,553,843,160.1998
15,714
pythondev
help
confused about the imagefield
2019-03-29T07:06:15.200400
Florencio
pythondev_help_Florencio_2019-03-29T07:06:15.200400
1,553,843,175.2004
15,715
pythondev
help
what’s the question?
2019-03-29T07:08:02.200700
Hiroko
pythondev_help_Hiroko_2019-03-29T07:08:02.200700
1,553,843,282.2007
15,716
pythondev
help
according to docs `photo = models.ImageField(upload_to='cars')` where `cars` is the folder the images will be uploaded into
2019-03-29T07:09:11.201400
Florencio
pythondev_help_Florencio_2019-03-29T07:09:11.201400
1,553,843,351.2014
15,717
pythondev
help
i want mine to be inputted by the admin when creating
2019-03-29T07:09:33.201900
Florencio
pythondev_help_Florencio_2019-03-29T07:09:33.201900
1,553,843,373.2019
15,718
pythondev
help
<https://stackoverflow.com/questions/5135556/dynamic-file-path-in-django>
2019-03-29T07:10:40.202100
Hiroko
pythondev_help_Hiroko_2019-03-29T07:10:40.202100
1,553,843,440.2021
15,719
pythondev
help
have you looked at that?
2019-03-29T07:11:03.202400
Hiroko
pythondev_help_Hiroko_2019-03-29T07:11:03.202400
1,553,843,463.2024
15,720