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
|
on my keyboard it's `alt-gr + 7`
|
2017-08-20T07:10:22.000006
|
Ciera
|
pythondev_help_Ciera_2017-08-20T07:10:22.000006
| 1,503,213,022.000006 | 90,303 |
pythondev
|
help
|
Thanks. I got a Swedish keyboard. Lots of meatballs everywhere. :wink:
|
2017-08-20T07:11:29.000019
|
Gisela
|
pythondev_help_Gisela_2017-08-20T07:11:29.000019
| 1,503,213,089.000019 | 90,304 |
pythondev
|
help
|
hmm, so I should add a class to the first. I'll google it.
Thanks!
|
2017-08-20T07:11:56.000040
|
Gisela
|
pythondev_help_Gisela_2017-08-20T07:11:56.000040
| 1,503,213,116.00004 | 90,305 |
pythondev
|
help
|
Hard to know what to google for when you don't know the lingo.
|
2017-08-20T07:12:11.000016
|
Gisela
|
pythondev_help_Gisela_2017-08-20T07:12:11.000016
| 1,503,213,131.000016 | 90,306 |
pythondev
|
help
|
not to the first, to the element. Like `<div class="col-md-4 my-padding-top">`
|
2017-08-20T07:12:48.000017
|
Ciera
|
pythondev_help_Ciera_2017-08-20T07:12:48.000017
| 1,503,213,168.000017 | 90,307 |
pythondev
|
help
|
ah, cool. Thanks.
|
2017-08-20T07:24:45.000069
|
Gisela
|
pythondev_help_Gisela_2017-08-20T07:24:45.000069
| 1,503,213,885.000069 | 90,308 |
pythondev
|
help
|
I got bootstrap 4 implemented so I think I'll find something.
|
2017-08-20T07:25:08.000007
|
Gisela
|
pythondev_help_Gisela_2017-08-20T07:25:08.000007
| 1,503,213,908.000007 | 90,309 |
pythondev
|
help
|
Hi. I’ve a typing question, does anyone have any ideas how to calculate the type of a nested, specialised generic (in the above example, how would code work out that ‘prop’ is an `int`?
|
2017-08-20T10:58:54.000053
|
Cristy
|
pythondev_help_Cristy_2017-08-20T10:58:54.000053
| 1,503,226,734.000053 | 90,310 |
pythondev
|
help
|
<@Cristy> `get_type_hints` is just a proxy for `__annotations__` with a bit of additional reverences
|
2017-08-20T11:54:19.000009
|
Collette
|
pythondev_help_Collette_2017-08-20T11:54:19.000009
| 1,503,230,059.000009 | 90,311 |
pythondev
|
help
|
You're looking for `mypy` (<https://github.com/python/mypy/tree/master/mypy>) and how it can infer types
|
2017-08-20T11:54:50.000063
|
Collette
|
pythondev_help_Collette_2017-08-20T11:54:50.000063
| 1,503,230,090.000063 | 90,312 |
pythondev
|
help
|
<@Collette> - Thanks for the hints, from what I’ve read, neither `__annotations__` or `get_type_hints` provide the info I was looking for. I can see it would be possible to walk the `__dict__`s and contextually resolve the TypeVars, but this seems like a lot of work. Could you point me to the mypy docs that talk about resolving generic types? I wasn’t able to find any
|
2017-08-20T15:08:52.000061
|
Cristy
|
pythondev_help_Cristy_2017-08-20T15:08:52.000061
| 1,503,241,732.000061 | 90,313 |
pythondev
|
help
|
so what im doing with this is just dumping a bunch of tsv files into a structured folder, what i do works but im wondering whether there is a better simpler way, or whether any one has any input in what could possibly go wrong with what i did
|
2017-08-20T18:35:48.000024
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:35:48.000024
| 1,503,254,148.000024 | 90,314 |
pythondev
|
help
|
all critique and suggestions welcome
|
2017-08-20T18:36:46.000026
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:36:46.000026
| 1,503,254,206.000026 | 90,315 |
pythondev
|
help
|
the structured folder is based on info gathered from the data itself, i was tempted to use regex to affirm an int followed the data i used to generate the folder but decided this was overkill
|
2017-08-20T18:38:17.000037
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:38:17.000037
| 1,503,254,297.000037 | 90,316 |
pythondev
|
help
|
can i do this in a more pythonic way, am i missing something obvious
|
2017-08-20T18:39:25.000009
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:39:25.000009
| 1,503,254,365.000009 | 90,317 |
pythondev
|
help
|
On the `__init__` you are handling the exception by just printing it. That will cause that when there is a connection problem your script will just print the error and continue. I think that's not what you want
|
2017-08-20T18:54:56.000025
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:54:56.000025
| 1,503,255,296.000025 | 90,318 |
pythondev
|
help
|
Don't catch exceptions for just printing
|
2017-08-20T18:55:16.000008
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:55:16.000008
| 1,503,255,316.000008 | 90,319 |
pythondev
|
help
|
unless you are doing something with value with it. Dont do it. Let your program crash
|
2017-08-20T18:55:35.000008
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:55:35.000008
| 1,503,255,335.000008 | 90,320 |
pythondev
|
help
|
nice catch and thanks
|
2017-08-20T18:55:49.000072
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:55:49.000072
| 1,503,255,349.000072 | 90,321 |
pythondev
|
help
|
for example in your case: you could catch the exception to try to retry the request
|
2017-08-20T18:56:06.000042
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:56:06.000042
| 1,503,255,366.000042 | 90,322 |
pythondev
|
help
|
although i think `requests` can do that for you
|
2017-08-20T18:56:16.000025
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:56:16.000025
| 1,503,255,376.000025 | 90,323 |
pythondev
|
help
|
thats a great idea tbh
|
2017-08-20T18:56:16.000049
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:56:16.000049
| 1,503,255,376.000049 | 90,324 |
pythondev
|
help
|
and yeah thats exactly the behaviour i would like, thank you <@Mariano>
|
2017-08-20T18:57:09.000009
|
Tandra
|
pythondev_help_Tandra_2017-08-20T18:57:09.000009
| 1,503,255,429.000009 | 90,325 |
pythondev
|
help
|
check this: <https://www.peterbe.com/plog/best-practice-with-retries-with-requests>
|
2017-08-20T18:59:12.000026
|
Mariano
|
pythondev_help_Mariano_2017-08-20T18:59:12.000026
| 1,503,255,552.000026 | 90,326 |
pythondev
|
help
|
<@Mariano> :taco:
|
2017-08-20T19:00:13.000005
|
Tandra
|
pythondev_help_Tandra_2017-08-20T19:00:13.000005
| 1,503,255,613.000005 | 90,327 |
pythondev
|
help
|
You are doing the same con `create_dir`. How things are right now. If the user doesn't have the permission. It will print the error and continue. Which will cause that `save_dump` will try to create a file on a dir that can't be created. Unless you have a workaround the permission problem, let it crash on `create_dir`
|
2017-08-20T19:02:25.000093
|
Mariano
|
pythondev_help_Mariano_2017-08-20T19:02:25.000093
| 1,503,255,745.000093 | 90,328 |
pythondev
|
help
|
That's all. Everything else looks good to me. Although the class might not be needed, but that is a design choice
|
2017-08-20T19:03:11.000052
|
Mariano
|
pythondev_help_Mariano_2017-08-20T19:03:11.000052
| 1,503,255,791.000052 | 90,329 |
pythondev
|
help
|
Well the class is ok. My bad on that
|
2017-08-20T19:03:28.000016
|
Mariano
|
pythondev_help_Mariano_2017-08-20T19:03:28.000016
| 1,503,255,808.000016 | 90,330 |
pythondev
|
help
|
you are right, thanks again :slightly_smiling_face:
|
2017-08-20T19:04:11.000049
|
Tandra
|
pythondev_help_Tandra_2017-08-20T19:04:11.000049
| 1,503,255,851.000049 | 90,331 |
pythondev
|
help
|
thanks for the help dude/et :smile:
|
2017-08-20T19:04:54.000059
|
Tandra
|
pythondev_help_Tandra_2017-08-20T19:04:54.000059
| 1,503,255,894.000059 | 90,332 |
pythondev
|
help
|
Anyone have a good resource for some basic documentation on flask-jwt with a dynamodb backend?
|
2017-08-20T20:48:08.000047
|
Emelina
|
pythondev_help_Emelina_2017-08-20T20:48:08.000047
| 1,503,262,088.000047 | 90,333 |
pythondev
|
help
|
Additionally I'm looking for the jwt Auth to be between a set of api's not users, is jwt the best way to go? I would have to set no expiration on those keys which I would think is quite the security "faux pas"
|
2017-08-20T20:52:45.000071
|
Emelina
|
pythondev_help_Emelina_2017-08-20T20:52:45.000071
| 1,503,262,365.000071 | 90,334 |
pythondev
|
help
|
hello all i need a bit help with some wordpress apache issue
|
2017-08-20T23:37:24.000112
|
Jeanett
|
pythondev_help_Jeanett_2017-08-20T23:37:24.000112
| 1,503,272,244.000112 | 90,335 |
pythondev
|
help
|
I am adding wordpress to a website i built, with laravel
|
2017-08-20T23:37:46.000046
|
Jeanett
|
pythondev_help_Jeanett_2017-08-20T23:37:46.000046
| 1,503,272,266.000046 | 90,336 |
pythondev
|
help
|
<http://domain.com/blog|domain.com/blog>
|
2017-08-20T23:37:55.000134
|
Jeanett
|
pythondev_help_Jeanett_2017-08-20T23:37:55.000134
| 1,503,272,275.000134 | 90,337 |
pythondev
|
help
|
i was asked to edit the nginx file but i dont know how to locate it
|
2017-08-20T23:38:21.000019
|
Jeanett
|
pythondev_help_Jeanett_2017-08-20T23:38:21.000019
| 1,503,272,301.000019 | 90,338 |
pythondev
|
help
|
I use shared hosting
|
2017-08-20T23:38:59.000051
|
Jeanett
|
pythondev_help_Jeanett_2017-08-20T23:38:59.000051
| 1,503,272,339.000051 | 90,339 |
pythondev
|
help
|
Folder Name: PrettyGraphs
Files in PrettyGraphs: __init__.py and PrettyGraphs.py
Created test.py to test.
Contents of __init__.py:
> `from PrettyGraphs import PrettyGraphs`
Contents of PrettyGraphs.py:
```
class PrettyGraphs:
def __init__(self):
self = plt.subplot2grid(1, 1), (0, 0), frameon=False)
def my_dot_plot(self, ax, the_data, title=''):
y_labels = []
x_axis_max = 0
ax.set_title(title)
for k, v in the_data.items():
...
```
From test.py
```
import matplotlib.pyplot as plt
from matplotlib.pyplot import subplots_adjust
import numpy as np
from PrettyGraphs import PrettyGraphs as PG
def main():
if __name__ == '__main__':
main()
```
There is NOTHING in main(), yet if I run it, it displays a graph (identical to previous graph that I plotted). I have rebooted, blanked out main(), and ran test.py, and it displays the same exact graph. Why?
|
2017-08-21T00:11:48.000062
|
Deedee
|
pythondev_help_Deedee_2017-08-21T00:11:48.000062
| 1,503,274,308.000062 | 90,340 |
pythondev
|
help
|
Hi, I have an list of dictionary, each dict, I can create multiple new objectY.
How can i create iterators to yield those objectY, and should I?
|
2017-08-21T00:41:18.000075
|
Hermina
|
pythondev_help_Hermina_2017-08-21T00:41:18.000075
| 1,503,276,078.000075 | 90,341 |
pythondev
|
help
|
those objectY later will be stored to file as csv file.
|
2017-08-21T00:42:02.000176
|
Hermina
|
pythondev_help_Hermina_2017-08-21T00:42:02.000176
| 1,503,276,122.000176 | 90,342 |
pythondev
|
help
|
I know nothing about wordpress, but I’d be very surprised if you had access to the nginx file on shared hosting. Can you ssh in?
|
2017-08-21T00:48:02.000066
|
Britteny
|
pythondev_help_Britteny_2017-08-21T00:48:02.000066
| 1,503,276,482.000066 | 90,343 |
pythondev
|
help
|
<@Collette> :
So i have used remote_pdb like below:
in code, i have added below at the place where i want debugger prompt:
```
from remote_pdb import RemotePdb
RemotePdb('127.0.0.1', 4444).set_trace()
```
In my container, there are 5 processes running & one of the process is where i have added above snippet
After running this, i am able to get following message in my logfile
```
Aug 21 05:13:08 97dec1a33242 agent[818] root: CRITICAL - RemotePdb session open at 127.0.0.1:4444, waiting for connection ...
```
But i am not able to connect rather i'm not able to get pdb prompt.
```
# telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
```
Let me know if you could provide any help on this.
|
2017-08-21T01:24:00.000169
|
Florene
|
pythondev_help_Florene_2017-08-21T01:24:00.000169
| 1,503,278,640.000169 | 90,344 |
pythondev
|
help
|
<@Florene> remote-pdb should listen on `0.0.0.0`, not `127.0.0.1`
|
2017-08-21T01:25:28.000094
|
Collette
|
pythondev_help_Collette_2017-08-21T01:25:28.000094
| 1,503,278,728.000094 | 90,345 |
pythondev
|
help
|
<@Collette> :
So i have used remote_pdb like below:
in code, i have added below at the place where i want debugger prompt:
```
from remote_pdb import RemotePdb
RemotePdb('127.0.0.1', 4444).set_trace()
```
In my container, there are *5 processes Running*
and
One of the process is where i have added above snippet to enable remote-pdb.
After running this, i am able to get following message in my logfile, which means the remote pdb is been used and executed.
```
Aug 21 05:13:08 97dec1a33242 agent[818] root: CRITICAL - RemotePdb session open at 127.0.0.1:4444, waiting for connection ...
```
But i am not able to connect rather i'm not able to get pdb prompt.
```
# telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
```
Let me know if you could provide any help on this.
|
2017-08-21T01:25:30.000005
|
Florene
|
pythondev_help_Florene_2017-08-21T01:25:30.000005
| 1,503,278,730.000005 | 90,346 |
pythondev
|
help
|
<@Emelina> what do you mean between a set of api's and not users?
|
2017-08-21T05:34:43.000106
|
Suellen
|
pythondev_help_Suellen_2017-08-21T05:34:43.000106
| 1,503,293,683.000106 | 90,347 |
pythondev
|
help
|
<@Deedee> does the same thing happen when you have `pass` in `main`:
|
2017-08-21T06:28:40.000237
|
Meg
|
pythondev_help_Meg_2017-08-21T06:28:40.000237
| 1,503,296,920.000237 | 90,348 |
pythondev
|
help
|
<@Florene> is port 4444 open in your instance?
|
2017-08-21T06:29:38.000206
|
Meg
|
pythondev_help_Meg_2017-08-21T06:29:38.000206
| 1,503,296,978.000206 | 90,349 |
pythondev
|
help
|
if you’re using AWS, for example, you have to open that port otherwise it will be blocked from external access
|
2017-08-21T06:30:04.000161
|
Meg
|
pythondev_help_Meg_2017-08-21T06:30:04.000161
| 1,503,297,004.000161 | 90,350 |
pythondev
|
help
|
Maybe <@Florene> missed my answer in the thread. You need `RemotePdb` to listen on `0.0.0.0` instead of `127.0.0.1`
|
2017-08-21T06:30:21.000121
|
Collette
|
pythondev_help_Collette_2017-08-21T06:30:21.000121
| 1,503,297,021.000121 | 90,351 |
pythondev
|
help
|
that’ll do it.
|
2017-08-21T06:33:24.000198
|
Meg
|
pythondev_help_Meg_2017-08-21T06:33:24.000198
| 1,503,297,204.000198 | 90,352 |
pythondev
|
help
|
yeah, you won’t be able to do that on shared hosting
|
2017-08-21T06:37:11.000209
|
Meg
|
pythondev_help_Meg_2017-08-21T06:37:11.000209
| 1,503,297,431.000209 | 90,353 |
pythondev
|
help
|
<@Meg> : i am using a physical ubuntu machine
|
2017-08-21T07:17:09.000070
|
Florene
|
pythondev_help_Florene_2017-08-21T07:17:09.000070
| 1,503,299,829.00007 | 90,354 |
pythondev
|
help
|
and in 'netstat -plunt ' i can see port opened and in LISTEN mode
|
2017-08-21T07:17:25.000274
|
Florene
|
pythondev_help_Florene_2017-08-21T07:17:25.000274
| 1,503,299,845.000274 | 90,355 |
pythondev
|
help
|
<@Suellen> these would be some flask backeds, no direct user interaction. So I'm looking for a way to do Auth without having to have the applications handle refreshing their tokens.
|
2017-08-21T07:29:26.000030
|
Emelina
|
pythondev_help_Emelina_2017-08-21T07:29:26.000030
| 1,503,300,566.00003 | 90,356 |
pythondev
|
help
|
<@Collette> : even with `0.0.0.0` behavior is same.
|
2017-08-21T07:32:11.000235
|
Florene
|
pythondev_help_Florene_2017-08-21T07:32:11.000235
| 1,503,300,731.000235 | 90,357 |
pythondev
|
help
|
```
# netstat -plunt | grep 4444
tcp6 0 0 :::4444 :::* LISTEN 30082/docker-proxy
```
In logfile:
```root: CRITICAL - RemotePdb session open at 0.0.0.0:4444, waiting for connection ...```
But this is NOT working ...
```
$ telnet -l tuser 10.182.110.3 4444
Trying 10.182.110.3...
```
|
2017-08-21T07:33:41.000030
|
Florene
|
pythondev_help_Florene_2017-08-21T07:33:41.000030
| 1,503,300,821.00003 | 90,358 |
pythondev
|
help
|
<@Collette> :
oh
*it worked *
only from the same host :slightly_smiling_face:
Thanks!
|
2017-08-21T07:38:39.000132
|
Florene
|
pythondev_help_Florene_2017-08-21T07:38:39.000132
| 1,503,301,119.000132 | 90,359 |
pythondev
|
help
|
Has anyone used Hug? How do you make a route accept a binary file? The documentation doesn't say anything... the first argument is always an empty dict, even though it should contain the file
|
2017-08-21T10:31:44.000306
|
Lanita
|
pythondev_help_Lanita_2017-08-21T10:31:44.000306
| 1,503,311,504.000306 | 90,360 |
pythondev
|
help
|
Hm, finally got it to work by manually setting `@hug.default_input_format("application/x-www-form-urlencoded")`
|
2017-08-21T10:34:26.000441
|
Lanita
|
pythondev_help_Lanita_2017-08-21T10:34:26.000441
| 1,503,311,666.000441 | 90,361 |
pythondev
|
help
|
<@Lanita> a lot of the times you’ll have to look at the falcon docs
|
2017-08-21T10:51:10.000329
|
Orpha
|
pythondev_help_Orpha_2017-08-21T10:51:10.000329
| 1,503,312,670.000329 | 90,362 |
pythondev
|
help
|
i love hug, but find it extremely hard to use sometimes due to the lack of documentation
|
2017-08-21T10:51:50.000260
|
Orpha
|
pythondev_help_Orpha_2017-08-21T10:51:50.000260
| 1,503,312,710.00026 | 90,363 |
pythondev
|
help
|
wtf... any call I make to the hug api calls the function twice, once with bytes as a falcon stream-thingy and once as a bytes... stupid magic :disappointed:
|
2017-08-21T11:06:01.000631
|
Lanita
|
pythondev_help_Lanita_2017-08-21T11:06:01.000631
| 1,503,313,561.000631 | 90,364 |
pythondev
|
help
|
I have the following with me
```
>>> import datetime
>>>
>>> some_date = datetime.datetime.strptime('2017-07-03T20:35:45.000Z', '%Y-%m-%dT%H:%M:%S.%fZ')
>>> some_date
datetime.datetime(2017, 7, 3, 20, 35, 45)
>>> datetime.datetime.now()
datetime.datetime(2017, 8, 21, 22, 4, 20, 215391)
>>>
```
I wanted to find out whether `some_date` is N days older than today or not? Like lets' take N as 2. Then I wanted to find whether some_date came two days ago or not. How should I subtract both?
Would this work? <https://stackoverflow.com/a/441152/3834059>
|
2017-08-21T12:36:14.000037
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:36:14.000037
| 1,503,318,974.000037 | 90,365 |
pythondev
|
help
|
yes, timedelta is made for exactly this sort of purpose
|
2017-08-21T12:38:32.000131
|
Gabriele
|
pythondev_help_Gabriele_2017-08-21T12:38:32.000131
| 1,503,319,112.000131 | 90,366 |
pythondev
|
help
|
Let me try it out.
|
2017-08-21T12:40:04.000266
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:40:04.000266
| 1,503,319,204.000266 | 90,367 |
pythondev
|
help
|
<@Gabriele> What I am trying to find out is whether the day difference between the two is more/less than N days. A bit confused over how should I proceed :sweat_smile:
|
2017-08-21T12:45:32.000330
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:45:32.000330
| 1,503,319,532.00033 | 90,368 |
pythondev
|
help
|
Create a timedelta of N days. Compare that to the timedelta you get from the difference between the days.
|
2017-08-21T12:46:09.000113
|
Gabriele
|
pythondev_help_Gabriele_2017-08-21T12:46:09.000113
| 1,503,319,569.000113 | 90,369 |
pythondev
|
help
|
> Create a timedelta of N days.
how should I do it?
|
2017-08-21T12:48:20.000196
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:48:20.000196
| 1,503,319,700.000196 | 90,370 |
pythondev
|
help
|
```
>>> datetime.timedelta(days=90)
datetime.timedelta(90)
>>>
```
|
2017-08-21T12:48:30.000326
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:48:30.000326
| 1,503,319,710.000326 | 90,371 |
pythondev
|
help
|
^ this would not the way I assume
|
2017-08-21T12:48:44.000153
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:48:44.000153
| 1,503,319,724.000153 | 90,372 |
pythondev
|
help
|
yes, that is the way
|
2017-08-21T12:50:52.000377
|
Gabriele
|
pythondev_help_Gabriele_2017-08-21T12:50:52.000377
| 1,503,319,852.000377 | 90,373 |
pythondev
|
help
|
<@Gabriele>
```
>>> timedelta_today = datetime.datetime.today() - datetime.timedelta(days=90)
>>> timedelta_today == datetime.timedelta(days=90)
False
>>>
```
|
2017-08-21T12:52:20.000038
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T12:52:20.000038
| 1,503,319,940.000038 | 90,374 |
pythondev
|
help
|
date object - timedelta object => new date. or date - date => timedelta, and check the n on that (if you go the second route, timedelta_object.days will give you the day diff
|
2017-08-21T12:52:30.000003
|
Carri
|
pythondev_help_Carri_2017-08-21T12:52:30.000003
| 1,503,319,950.000003 | 90,375 |
pythondev
|
help
|
<@Carri>
I think I figured it
```
>>> some_date = datetime.datetime.strptime('2017-07-03T20:35:45.000Z', '%Y-%m-%dT%H:%M:%S.%fZ')
>>> some_date
datetime.datetime(2017, 7, 3, 20, 35, 45)
>>> datetime.datetime.today() - some_date
datetime.timedelta(49, 7033, 562942)
>>> (datetime.datetime.today() - some_date).days
49
```
|
2017-08-21T13:04:15.000058
|
Gabrielle
|
pythondev_help_Gabrielle_2017-08-21T13:04:15.000058
| 1,503,320,655.000058 | 90,376 |
pythondev
|
help
|
<@Meg> Got it working. :smile:
Was the exact same graph (with data) as when I had last ran it. Turned out that although I was editing a new file, it was still running the previous file. Error alerted me after I erased the earlier file. Also, did not make it a class. Maybe it should be, but I'll wait until a future version.
|
2017-08-21T13:05:31.000133
|
Deedee
|
pythondev_help_Deedee_2017-08-21T13:05:31.000133
| 1,503,320,731.000133 | 90,377 |
pythondev
|
help
|
ah, makes sense.
|
2017-08-21T13:13:03.000030
|
Meg
|
pythondev_help_Meg_2017-08-21T13:13:03.000030
| 1,503,321,183.00003 | 90,378 |
pythondev
|
help
|
glad it was a simple issue!
|
2017-08-21T13:13:12.000168
|
Meg
|
pythondev_help_Meg_2017-08-21T13:13:12.000168
| 1,503,321,192.000168 | 90,379 |
pythondev
|
help
|
what ways would you guys automate adding new users at a company, to remote servers? the most open way i can think of is just a simple bash script for setting up a users local environment, to also add their user/key to a remote server.
|
2017-08-21T16:42:38.000284
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:42:38.000284
| 1,503,333,758.000284 | 90,380 |
pythondev
|
help
|
ansible ?
|
2017-08-21T16:43:15.000293
|
Ciera
|
pythondev_help_Ciera_2017-08-21T16:43:15.000293
| 1,503,333,795.000293 | 90,381 |
pythondev
|
help
|
yea. we use salt stack at work so i was looking into that too.
|
2017-08-21T16:44:53.000158
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:44:53.000158
| 1,503,333,893.000158 | 90,382 |
pythondev
|
help
|
I like making them set it up following a guide, myself. Then they actually know what's up
|
2017-08-21T16:46:21.000424
|
Beula
|
pythondev_help_Beula_2017-08-21T16:46:21.000424
| 1,503,333,981.000424 | 90,383 |
pythondev
|
help
|
i already have a bash script made to do the process. part of the process of me moving to ops at work. i think for normal stuff though a bash script is probably going to be my best bet.
|
2017-08-21T16:46:23.000604
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:46:23.000604
| 1,503,333,983.000604 | 90,384 |
pythondev
|
help
|
Then have them enter their stuff in a web-form or whatever for the remote server
|
2017-08-21T16:46:41.000192
|
Beula
|
pythondev_help_Beula_2017-08-21T16:46:41.000192
| 1,503,334,001.000192 | 90,385 |
pythondev
|
help
|
yea. they want to make it all automated.
|
2017-08-21T16:46:45.000407
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:46:45.000407
| 1,503,334,005.000407 | 90,386 |
pythondev
|
help
|
i just ask questions with bash `read` on the cli
|
2017-08-21T16:47:00.000161
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:47:00.000161
| 1,503,334,020.000161 | 90,387 |
pythondev
|
help
|
They are shooting themselves in the foot if the people who know how things really work leave - but aight
|
2017-08-21T16:47:18.000028
|
Beula
|
pythondev_help_Beula_2017-08-21T16:47:18.000028
| 1,503,334,038.000028 | 90,388 |
pythondev
|
help
|
well to be fair, most of the devs dont need to ssh into remote servers. we do use vagrant for local dev. we do have a guide for getting into those and debugging
|
2017-08-21T16:48:29.000249
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:48:29.000249
| 1,503,334,109.000249 | 90,389 |
pythondev
|
help
|
we can already deploy testing setups based on the current app that are short lived anyways (default 24hrs). mostly just for testing
|
2017-08-21T16:49:23.000214
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:49:23.000214
| 1,503,334,163.000214 | 90,390 |
pythondev
|
help
|
and we dont allow people into normal staging/prod
|
2017-08-21T16:49:39.000020
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:49:39.000020
| 1,503,334,179.00002 | 90,391 |
pythondev
|
help
|
what about LDAP?
|
2017-08-21T16:50:47.000424
|
Johana
|
pythondev_help_Johana_2017-08-21T16:50:47.000424
| 1,503,334,247.000424 | 90,392 |
pythondev
|
help
|
we dont have an ldap server
|
2017-08-21T16:51:03.000175
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:51:03.000175
| 1,503,334,263.000175 | 90,393 |
pythondev
|
help
|
that’s what i mean. set one up.
|
2017-08-21T16:51:11.000317
|
Johana
|
pythondev_help_Johana_2017-08-21T16:51:11.000317
| 1,503,334,271.000317 | 90,394 |
pythondev
|
help
|
would be another way too though.
|
2017-08-21T16:51:18.000261
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:51:18.000261
| 1,503,334,278.000261 | 90,395 |
pythondev
|
help
|
that’s probably more long term.
|
2017-08-21T16:51:42.000020
|
Johana
|
pythondev_help_Johana_2017-08-21T16:51:42.000020
| 1,503,334,302.00002 | 90,396 |
pythondev
|
help
|
i’ve had to use a number of approaches at different jobs. the most simple i can think of atm is ansible but saltstack can do the same.
|
2017-08-21T16:54:00.000376
|
Johana
|
pythondev_help_Johana_2017-08-21T16:54:00.000376
| 1,503,334,440.000376 | 90,397 |
pythondev
|
help
|
ive never set one up? are they hard?
|
2017-08-21T16:54:08.000254
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:54:08.000254
| 1,503,334,448.000254 | 90,398 |
pythondev
|
help
|
i’ve only setup windows AD before.
|
2017-08-21T16:54:29.000304
|
Johana
|
pythondev_help_Johana_2017-08-21T16:54:29.000304
| 1,503,334,469.000304 | 90,399 |
pythondev
|
help
|
ah
|
2017-08-21T16:54:34.000197
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:54:34.000197
| 1,503,334,474.000197 | 90,400 |
pythondev
|
help
|
i should set one up. they can be useful for businesses and all sorts of applications.
|
2017-08-21T16:54:46.000013
|
Johana
|
pythondev_help_Johana_2017-08-21T16:54:46.000013
| 1,503,334,486.000013 | 90,401 |
pythondev
|
help
|
im not sure we would need that though. since devs are limited to what they can ssh into remotely anwyas
|
2017-08-21T16:54:56.000064
|
Bruno
|
pythondev_help_Bruno_2017-08-21T16:54:56.000064
| 1,503,334,496.000064 | 90,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.