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 | are there any alternative in stead of `*` | 2018-02-14T17:47:32.000474 | Jenna | pythondev_help_Jenna_2018-02-14T17:47:32.000474 | 1,518,630,452.000474 | 34,324 |
pythondev | help | spark doesn’t support `*` i think | 2018-02-14T17:47:54.000569 | Jenna | pythondev_help_Jenna_2018-02-14T17:47:54.000569 | 1,518,630,474.000569 | 34,325 |
pythondev | help | but that’s fine i could just use the index | 2018-02-14T17:48:40.000222 | Jenna | pythondev_help_Jenna_2018-02-14T17:48:40.000222 | 1,518,630,520.000222 | 34,326 |
pythondev | help | hmm... it says SyntaxError: invalid syntax does it have any more information ? | 2018-02-14T17:57:34.000149 | Monroe | pythondev_help_Monroe_2018-02-14T17:57:34.000149 | 1,518,631,054.000149 | 34,327 |
pythondev | help | Does it say anything like "Item not subscriptable"? | 2018-02-14T17:58:38.000466 | Monroe | pythondev_help_Monroe_2018-02-14T17:58:38.000466 | 1,518,631,118.000466 | 34,328 |
pythondev | help | Probably a stupid question, but I’m doing ``` gb_faker = Faker('en_GB')
print(gb_faker.longitude)``` and getting printed out `<bound method Provider.longitude of <faker.providers.address.en_GB.Provider object at 0x7f750f572b38>>`, whereas docs say ```fake.longitude()
# Decimal('-137.746732')``` any ... | 2018-02-14T18:05:10.000334 | Breana | pythondev_help_Breana_2018-02-14T18:05:10.000334 | 1,518,631,510.000334 | 34,329 |
pythondev | help | Oh.. missing `()` :facepalm: | 2018-02-14T18:05:30.000158 | Breana | pythondev_help_Breana_2018-02-14T18:05:30.000158 | 1,518,631,530.000158 | 34,330 |
pythondev | help | It’s late. :smile: | 2018-02-14T18:05:33.000293 | Breana | pythondev_help_Breana_2018-02-14T18:05:33.000293 | 1,518,631,533.000293 | 34,331 |
pythondev | help | getting faked out? | 2018-02-14T18:08:47.000115 | Monroe | pythondev_help_Monroe_2018-02-14T18:08:47.000115 | 1,518,631,727.000115 | 34,332 |
pythondev | help | Lol | 2018-02-14T18:19:04.000154 | Shaun | pythondev_help_Shaun_2018-02-14T18:19:04.000154 | 1,518,632,344.000154 | 34,333 |
pythondev | help | i should have really read the source code first, why did I just assume that `Faker('en_GB')` would provide only UK long/lats :smile: | 2018-02-14T18:25:05.000040 | Breana | pythondev_help_Breana_2018-02-14T18:25:05.000040 | 1,518,632,705.00004 | 34,334 |
pythondev | help | fun fact, it doesn’t. | 2018-02-14T18:25:14.000098 | Breana | pythondev_help_Breana_2018-02-14T18:25:14.000098 | 1,518,632,714.000098 | 34,335 |
pythondev | help | <@Monroe> what do you think ^? | 2018-02-14T18:28:03.000307 | Jenna | pythondev_help_Jenna_2018-02-14T18:28:03.000307 | 1,518,632,883.000307 | 34,336 |
pythondev | help | What is the type of item at that point? | 2018-02-14T18:37:16.000025 | Monroe | pythondev_help_Monroe_2018-02-14T18:37:16.000025 | 1,518,633,436.000025 | 34,337 |
pythondev | help | My brain hurts, can you star-arg a mapped object in a tuple result of an interation??!? | 2018-02-14T18:44:04.000363 | Monroe | pythondev_help_Monroe_2018-02-14T18:44:04.000363 | 1,518,633,844.000363 | 34,338 |
pythondev | help | <@Jenna> lambda doesn’t take parentheses | 2018-02-14T19:13:50.000118 | Reynalda | pythondev_help_Reynalda_2018-02-14T19:13:50.000118 | 1,518,635,630.000118 | 34,339 |
pythondev | help | lambda (user, domain): should be lambda user, domain: | 2018-02-14T19:14:00.000264 | Reynalda | pythondev_help_Reynalda_2018-02-14T19:14:00.000264 | 1,518,635,640.000264 | 34,340 |
pythondev | help | Hi guys, I would like to verify something. Is `newid()` in `mssql` same as any immutable UUID objects within the `uuid` module? | 2018-02-14T20:55:58.000266 | Margert | pythondev_help_Margert_2018-02-14T20:55:58.000266 | 1,518,641,758.000266 | 34,341 |
pythondev | help | <@Margert> nope, Microsoft doesn’t use any `uuid` implementation, they have their own GUID implementation | 2018-02-14T21:06:08.000078 | Brande | pythondev_help_Brande_2018-02-14T21:06:08.000078 | 1,518,642,368.000078 | 34,342 |
pythondev | help | They both, however, will return GUIDs of the same structure | 2018-02-14T21:06:42.000130 | Brande | pythondev_help_Brande_2018-02-14T21:06:42.000130 | 1,518,642,402.00013 | 34,343 |
pythondev | help | Oh, I see. Thanks for the feedback <@Brande>. So is it safe to use `uuid.uuid4()` as a representation of a `newid()` in `mssql` when using `sqlalchemy`? I came upon a column that has a default value of `newid()` so I’m not sure how I should proceed. | 2018-02-14T21:08:38.000121 | Margert | pythondev_help_Margert_2018-02-14T21:08:38.000121 | 1,518,642,518.000121 | 34,344 |
pythondev | help | If the column has a default value, then don’t give it any value at all, let the database insert it | 2018-02-14T21:09:11.000120 | Brande | pythondev_help_Brande_2018-02-14T21:09:11.000120 | 1,518,642,551.00012 | 34,345 |
pythondev | help | It’ll generate/insert the GUID faster than doing it on the code-side, and it’s better for the database to enforce the data for the column with a default | 2018-02-14T21:09:48.000162 | Brande | pythondev_help_Brande_2018-02-14T21:09:48.000162 | 1,518,642,588.000162 | 34,346 |
pythondev | help | Also if you give it `uuid4`s then it may increase the likelihood of a collision because of using 2 different algorithms, but I’m just speculating. tl;dr, just use one type | 2018-02-14T21:11:14.000010 | Brande | pythondev_help_Brande_2018-02-14T21:11:14.000010 | 1,518,642,674.00001 | 34,347 |
pythondev | help | Sorry, my mistake, the column has no default value, is not nullable, but expects a `newid()` as a value. I’ve verified this by checking the table structure and the stored procedure that inserts values into it. | 2018-02-14T21:11:39.000171 | Margert | pythondev_help_Margert_2018-02-14T21:11:39.000171 | 1,518,642,699.000171 | 34,348 |
pythondev | help | Ah, okay, then yes go ahead and use a `uuid4` | 2018-02-14T21:12:28.000139 | Brande | pythondev_help_Brande_2018-02-14T21:12:28.000139 | 1,518,642,748.000139 | 34,349 |
pythondev | help | Great! One last thing | 2018-02-14T21:12:56.000211 | Margert | pythondev_help_Margert_2018-02-14T21:12:56.000211 | 1,518,642,776.000211 | 34,350 |
pythondev | help | Since you mention a possible collision, should I declare this block of code within a `try ... except`? I would declare the column as `unique=True`, but I’m not sure if `sqlalchemy` would generate a new `uuid4()` if ever the generated GUID already exists in the database. | 2018-02-14T21:14:39.000158 | Margert | pythondev_help_Margert_2018-02-14T21:14:39.000158 | 1,518,642,879.000158 | 34,351 |
pythondev | help | The possibility is so small of a uuidv4 collision I wouldn’t worry unless you’re doing a lot of inserts | 2018-02-14T21:16:38.000060 | Brande | pythondev_help_Brande_2018-02-14T21:16:38.000060 | 1,518,642,998.00006 | 34,352 |
pythondev | help | Noted <@Brande>! Thank you so much! :simple_smile: | 2018-02-14T21:18:40.000166 | Margert | pythondev_help_Margert_2018-02-14T21:18:40.000166 | 1,518,643,120.000166 | 34,353 |
pythondev | help | Hey everyone! Am I right in saying that the big O efficiency of this function is O(n^3)?
```
def question1(s, t):
if s and t:
first_occurence = 0
for index, source in enumerate(s):
for target in t:
if target is source:
first_occurence = index
... | 2018-02-15T02:13:44.000231 | Lucina | pythondev_help_Lucina_2018-02-15T02:13:44.000231 | 1,518,660,824.000231 | 34,354 |
pythondev | help | Let's say I have the following code:
```
class A:
def run(self):
print("A")
class B:
def run(self):
print("A")
class C(A, B):
def run(self):
super().run()
print("A")
c = C()
c.run()
```
In this example. would there be a difference if I call B.run() instead of super.run()... | 2018-02-15T02:15:55.000139 | Hank | pythondev_help_Hank_2018-02-15T02:15:55.000139 | 1,518,660,955.000139 | 34,355 |
pythondev | help | <@Hank> this stack overflow post give a nice explanation of `super` with multiple inheritance | 2018-02-15T02:23:09.000082 | Micki | pythondev_help_Micki_2018-02-15T02:23:09.000082 | 1,518,661,389.000082 | 34,356 |
pythondev | help | <@Lucina> let's say the length of `s` is N and the length of `t` is M
```
for index, source in enumerate(s):
for target in t:
```
gives you O(N*M)
If the length of `substring` is K,
```
for char in t:
if substring.find(char) < 0:
```
gives you O(M*K)
In total it's O(N*M + M*K) which roughly equals to O(N^2) ... | 2018-02-15T02:31:51.000068 | Aleida | pythondev_help_Aleida_2018-02-15T02:31:51.000068 | 1,518,661,911.000068 | 34,357 |
pythondev | help | I think you forgot to add the link, Ovv | 2018-02-15T02:39:08.000143 | Hank | pythondev_help_Hank_2018-02-15T02:39:08.000143 | 1,518,662,348.000143 | 34,358 |
pythondev | help | sorry :smile: <https://stackoverflow.com/questions/3277367/how-does-pythons-super-work-with-multiple-inheritance> | 2018-02-15T02:39:29.000100 | Micki | pythondev_help_Micki_2018-02-15T02:39:29.000100 | 1,518,662,369.0001 | 34,359 |
pythondev | help | crash course into CS by <@Aleida> :smile: | 2018-02-15T02:48:28.000171 | Sadye | pythondev_help_Sadye_2018-02-15T02:48:28.000171 | 1,518,662,908.000171 | 34,360 |
pythondev | help | As a self learner O notation is something I never understood :smile: but I don't really try to understand it... | 2018-02-15T02:50:28.000200 | Micki | pythondev_help_Micki_2018-02-15T02:50:28.000200 | 1,518,663,028.0002 | 34,361 |
pythondev | help | <@Micki> there's a very simple mnemonic you can easily remember - find loops in your program, each inner loop gives you `* iterable_length`, each sibling loop gives you `+ iterable_length` to the total complexity you calculated so far | 2018-02-15T02:51:52.000155 | Aleida | pythondev_help_Aleida_2018-02-15T02:51:52.000155 | 1,518,663,112.000155 | 34,362 |
pythondev | help | If there's recursion involved you're likely to end up with a factorial of the input | 2018-02-15T02:52:47.000261 | Aleida | pythondev_help_Aleida_2018-02-15T02:52:47.000261 | 1,518,663,167.000261 | 34,363 |
pythondev | help | Sometimes clever algorithms multiply by a logarithm which is likely not the case in your program | 2018-02-15T02:53:21.000121 | Aleida | pythondev_help_Aleida_2018-02-15T02:53:21.000121 | 1,518,663,201.000121 | 34,364 |
pythondev | help | Pretty much everything else is a constant | 2018-02-15T02:53:29.000126 | Aleida | pythondev_help_Aleida_2018-02-15T02:53:29.000126 | 1,518,663,209.000126 | 34,365 |
pythondev | help | Seems simple enough | 2018-02-15T02:56:10.000302 | Micki | pythondev_help_Micki_2018-02-15T02:56:10.000302 | 1,518,663,370.000302 | 34,366 |
pythondev | help | <@Aleida> ahh, okay. i originally had O(n^2) but thought since I had that second for loop that iterated through `t` and `substring` that it would give me `n^3`... wasn't entirely sure that was correct, which is why i came here to ask heh | 2018-02-15T02:58:12.000187 | Lucina | pythondev_help_Lucina_2018-02-15T02:58:12.000187 | 1,518,663,492.000187 | 34,367 |
pythondev | help | also, thank you sir for the great explanation. | 2018-02-15T02:58:21.000311 | Lucina | pythondev_help_Lucina_2018-02-15T02:58:21.000311 | 1,518,663,501.000311 | 34,368 |
pythondev | help | N^3 would be if you had a third inner loop | 2018-02-15T02:58:40.000172 | Aleida | pythondev_help_Aleida_2018-02-15T02:58:40.000172 | 1,518,663,520.000172 | 34,369 |
pythondev | help | ahh gotcha | 2018-02-15T02:58:47.000040 | Lucina | pythondev_help_Lucina_2018-02-15T02:58:47.000040 | 1,518,663,527.00004 | 34,370 |
pythondev | help | i don't really understand why it would greatly increase the complexity if N and M were smaller. that just means `substring` would be smaller and thus less complex, no? | 2018-02-15T03:00:39.000273 | Lucina | pythondev_help_Lucina_2018-02-15T03:00:39.000273 | 1,518,663,639.000273 | 34,371 |
pythondev | help | not increase, but influence | 2018-02-15T03:05:03.000269 | Sadye | pythondev_help_Sadye_2018-02-15T03:05:03.000269 | 1,518,663,903.000269 | 34,372 |
pythondev | help | <@Lucina> in big-O notation constants are thrown away so O(2N) == O(N). Even O(100N) == O(N). But you can't really throw away these constants if N is small | 2018-02-15T03:08:16.000334 | Aleida | pythondev_help_Aleida_2018-02-15T03:08:16.000334 | 1,518,664,096.000334 | 34,373 |
pythondev | help | hmm, ok. well i appreciate the input guys. trying to get my head wrapped around how to decipher what my code's efficency is a struggle, but i'm slowly figuring it out. | 2018-02-15T03:08:22.000306 | Lucina | pythondev_help_Lucina_2018-02-15T03:08:22.000306 | 1,518,664,102.000306 | 34,374 |
pythondev | help | hmm... ok, i think i see what you're saying. | 2018-02-15T03:09:14.000265 | Lucina | pythondev_help_Lucina_2018-02-15T03:09:14.000265 | 1,518,664,154.000265 | 34,375 |
pythondev | help | For example if you have a 128*N algorithm and N is 2, in a big-O notation you have a O(N) algorithm. But in reality you have roughly O(N^8) | 2018-02-15T03:09:49.000349 | Aleida | pythondev_help_Aleida_2018-02-15T03:09:49.000349 | 1,518,664,189.000349 | 34,376 |
pythondev | help | Hey :smile: Have any of you used `argparse` before ? | 2018-02-15T10:46:29.000899 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:46:29.000899 | 1,518,691,589.000899 | 34,377 |
pythondev | help | I'd like to have something to disable the use of option `-x -y -z` if option `-a` is not enabled | 2018-02-15T10:46:59.000331 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:46:59.000331 | 1,518,691,619.000331 | 34,378 |
pythondev | help | I haven’t done that in argparse, but I’ve done it in Click. The approach in Click revolved around writing a custom validator that inspected the provided arguments and raised a usage error if the desired combination was not found. | 2018-02-15T10:48:47.000141 | Zack | pythondev_help_Zack_2018-02-15T10:48:47.000141 | 1,518,691,727.000141 | 34,379 |
pythondev | help | Not sure if there’s something similar in argparse | 2018-02-15T10:48:56.000014 | Zack | pythondev_help_Zack_2018-02-15T10:48:56.000014 | 1,518,691,736.000014 | 34,380 |
pythondev | help | Let's say I have these options set with argparse:
```
--foo
--bar
--me
--to
--roses
```
And i only want to be able to have the options `--foo` and `--bar` available if `--me` is set but `--to` can be used on `--me` and `--roses` | 2018-02-15T10:49:05.000891 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:49:05.000891 | 1,518,691,745.000891 | 34,381 |
pythondev | help | Click looks nice but I went with argparse because I'm trying to only use standart lib (Because reasons :stuck_out_tongue: but basically I "can't" use other libs using pip because users would have to install the modules everytime and that sucks (unless it can be automated)) | 2018-02-15T10:50:23.000280 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:50:23.000280 | 1,518,691,823.00028 | 34,382 |
pythondev | help | You could just parse them and throw an error accordingly:
```
if <http://args.me|args.me>:
if args.foo is None or args.bar is None:
parser.error('error message')``` | 2018-02-15T10:51:47.000672 | Brande | pythondev_help_Brande_2018-02-15T10:51:47.000672 | 1,518,691,907.000672 | 34,383 |
pythondev | help | I know that’s not the exact logic you want but it can be handled that way | 2018-02-15T10:52:22.000756 | Brande | pythondev_help_Brande_2018-02-15T10:52:22.000756 | 1,518,691,942.000756 | 34,384 |
pythondev | help | could also do it in a custom action it seems: <https://docs.python.org/3/library/argparse.html#action> | 2018-02-15T10:52:23.000169 | Zack | pythondev_help_Zack_2018-02-15T10:52:23.000169 | 1,518,691,943.000169 | 34,385 |
pythondev | help | <@Brande>’s suggestion sounds easier though. :stuck_out_tongue: | 2018-02-15T10:53:05.000544 | Zack | pythondev_help_Zack_2018-02-15T10:53:05.000544 | 1,518,691,985.000544 | 34,386 |
pythondev | help | ``` if args.no_libftest and args.project != "libft":
parser.error("`--no-libftest' can only be applied if libft is selected "
"with `--project'")
```
That's what i've been doing but I have a lot of them (See below) and I was wondering if there was an easier way | 2018-02-15T10:54:34.000045 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:54:34.000045 | 1,518,692,074.000045 | 34,387 |
pythondev | help | ``` 42PyChecker Copyright (C) 2018-present Jules Lasne <jules.lasne@gmail.com>
This program comes with ABSOLUTELY NO WARRANTY; for details run with `--show-w'.
This is free software, and you are welcome to redistribute it
under certain conditions; run with `--show-c' for details.
usage: 42PyChecker.py [-h] [-... | 2018-02-15T10:54:47.000767 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:54:47.000767 | 1,518,692,087.000767 | 34,388 |
pythondev | help | (And a lot more to come) | 2018-02-15T10:54:57.000600 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:54:57.000600 | 1,518,692,097.0006 | 34,389 |
pythondev | help | The custom action might be a good choice then, just because it would allow you to define per-argument what the restrictions are, and if you remove it, at least part of the logic is sure to get cleaned up (obviously other arguments might still to refer to it though) | 2018-02-15T10:56:01.000899 | Zack | pythondev_help_Zack_2018-02-15T10:56:01.000899 | 1,518,692,161.000899 | 34,390 |
pythondev | help | They will be "obsolete" when I add a GUI (well still usefull if ran with `--go-gui`) | 2018-02-15T10:56:03.000916 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:56:03.000916 | 1,518,692,163.000916 | 34,391 |
pythondev | help | Either that or you could just abstract it out into a validation function and put it somewhere else so as to not overwhelm the entrypoint of your program with all that validation | 2018-02-15T10:56:32.000030 | Zack | pythondev_help_Zack_2018-02-15T10:56:32.000030 | 1,518,692,192.00003 | 34,392 |
pythondev | help | Yep that's what I'm thinking about :slightly_smiling_face: | 2018-02-15T10:57:14.000489 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:57:14.000489 | 1,518,692,234.000489 | 34,393 |
pythondev | help | Is there a way to easily
```
- Start a python script.
- Catch an error from one or more libs not being installed
- Run the pip install on the user's computer
- Run the script again and not have the error
``` | 2018-02-15T10:58:13.000437 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:58:13.000437 | 1,518,692,293.000437 | 34,394 |
pythondev | help | I've just ran into this SO, might want to look into that, unless there's a better way to do it
<https://stackoverflow.com/questions/12332975/installing-python-module-within-code> | 2018-02-15T10:59:21.000126 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:59:21.000126 | 1,518,692,361.000126 | 34,395 |
pythondev | help | Yes you could catch an error and subprocess a `pip` call, but I’d recommend against it. Let users install packages, don’t do that for them | 2018-02-15T10:59:22.000408 | Brande | pythondev_help_Brande_2018-02-15T10:59:22.000408 | 1,518,692,362.000408 | 34,396 |
pythondev | help | > Let users install packages, don’t do that for them
That's why I'm trying to go FULL STDLIB :slightly_smiling_face: | 2018-02-15T10:59:55.000281 | Gwyn | pythondev_help_Gwyn_2018-02-15T10:59:55.000281 | 1,518,692,395.000281 | 34,397 |
pythondev | help | Include a `requirements.txt` or `setup.py` and the command for the user to run to install them in an error message if a package is missing | 2018-02-15T10:59:57.000694 | Brande | pythondev_help_Brande_2018-02-15T10:59:57.000694 | 1,518,692,397.000694 | 34,398 |
pythondev | help | Sure :slightly_smiling_face: I'll do that when and if I ever need to install external packages for this project | 2018-02-15T11:00:52.000741 | Gwyn | pythondev_help_Gwyn_2018-02-15T11:00:52.000741 | 1,518,692,452.000741 | 34,399 |
pythondev | help | ```list1=[(u'<http://michaelkors.com|michaelkors.com>', 1),
(u'<http://bestbuy.com|bestbuy.com>', 2),
(u'<http://hrblock.com|hrblock.com>', 3)]
array1=array([6, 4, 8])
desired_output=[(u'<http://michaelkors.com|michaelkors.com>', 1,6),
(u'<http://bestbuy.com|bestbuy.com>', 2,4),
(u'<http://hrblock.com|hrblock.com>'... | 2018-02-15T12:49:21.000403 | Jenna | pythondev_help_Jenna_2018-02-15T12:49:21.000403 | 1,518,698,961.000403 | 34,400 |
pythondev | help | what’s the best way to make this happen? | 2018-02-15T12:49:32.000793 | Jenna | pythondev_help_Jenna_2018-02-15T12:49:32.000793 | 1,518,698,972.000793 | 34,401 |
pythondev | help | <@Jenna> you can tuple "append" with a trailing comma. `des_out= list[1] + (array1[1],)` Note the trailing comma after the `array[1]`. Be attentive of the input and output types. Obviously the above solution would need to be extended | 2018-02-15T13:50:13.000406 | Monroe | pythondev_help_Monroe_2018-02-15T13:50:13.000406 | 1,518,702,613.000406 | 34,402 |
pythondev | help | <@Monroe> does that mean i need a for loop in order to go through all elements | 2018-02-15T13:53:12.000401 | Jenna | pythondev_help_Jenna_2018-02-15T13:53:12.000401 | 1,518,702,792.000401 | 34,403 |
pythondev | help | yes, there's probably a more elegant form of zip or map here, but I don't know it | 2018-02-15T13:58:47.000459 | Monroe | pythondev_help_Monroe_2018-02-15T13:58:47.000459 | 1,518,703,127.000459 | 34,404 |
pythondev | help | :thumbsup_all: | 2018-02-15T13:59:17.000134 | Jenna | pythondev_help_Jenna_2018-02-15T13:59:17.000134 | 1,518,703,157.000134 | 34,405 |
pythondev | help | If anyone knows django_otp at all, @ me please - I can not for the life of me figure out how it is expiring before my session expiration since the device key is in the session and I don't see a method to `del` it based on some sort of expiration | 2018-02-15T20:56:07.000211 | Huong | pythondev_help_Huong_2018-02-15T20:56:07.000211 | 1,518,728,167.000211 | 34,406 |
pythondev | help | Hello to All | 2018-02-16T04:53:25.000159 | Jed | pythondev_help_Jed_2018-02-16T04:53:25.000159 | 1,518,756,805.000159 | 34,407 |
pythondev | help | I just want to spread a bit of information in this section | 2018-02-16T04:53:44.000199 | Jed | pythondev_help_Jed_2018-02-16T04:53:44.000199 | 1,518,756,824.000199 | 34,408 |
pythondev | help | Hello <@Jed> if we are talking about paid support please post that in <#C080T8XT2|job_board> this channel is not really the place. Otherwise we usually prefer for help request to be public to share knowledge | 2018-02-16T04:55:49.000358 | Micki | pythondev_help_Micki_2018-02-16T04:55:49.000358 | 1,518,756,949.000358 | 34,409 |
pythondev | help | Thanks Ovv,
I would request you to please share some job boards or forums in your place that are good for the same so that I can post | 2018-02-16T04:57:00.000388 | Jed | pythondev_help_Jed_2018-02-16T04:57:00.000388 | 1,518,757,020.000388 | 34,410 |
pythondev | help | If you click on the link in my message :point_up: it will lead you to the channel | 2018-02-16T04:58:10.000134 | Micki | pythondev_help_Micki_2018-02-16T04:58:10.000134 | 1,518,757,090.000134 | 34,411 |
pythondev | help | Thanks | 2018-02-16T04:58:51.000403 | Jed | pythondev_help_Jed_2018-02-16T04:58:51.000403 | 1,518,757,131.000403 | 34,412 |
pythondev | help | Hey :slightly_smiling_face: Is there any way to remove all escape sequences from a file ? like those: `\033[0;32mok\033[0m` | 2018-02-16T06:19:24.000325 | Gwyn | pythondev_help_Gwyn_2018-02-16T06:19:24.000325 | 1,518,761,964.000325 | 34,413 |
pythondev | help | <@Gwyn> <https://superuser.com/a/380778> | 2018-02-16T06:47:52.000321 | Barney | pythondev_help_Barney_2018-02-16T06:47:52.000321 | 1,518,763,672.000321 | 34,414 |
pythondev | help | there's a Regex which you can plug anywhere | 2018-02-16T06:48:03.000353 | Barney | pythondev_help_Barney_2018-02-16T06:48:03.000353 | 1,518,763,683.000353 | 34,415 |
pythondev | help | if I have made two directories, where should my `run.py` live? | 2018-02-16T06:49:54.000140 | Milo | pythondev_help_Milo_2018-02-16T06:49:54.000140 | 1,518,763,794.00014 | 34,416 |
pythondev | help | ignore, managed to solve it, I created another directory and housed it outside this | 2018-02-16T06:52:28.000377 | Milo | pythondev_help_Milo_2018-02-16T06:52:28.000377 | 1,518,763,948.000377 | 34,417 |
pythondev | help | <https://stackoverflow.com/questions/48826986/how-do-i-use-sqlalchemy-session-to-persist-data-to-relationships> | 2018-02-16T08:07:53.000194 | Heath | pythondev_help_Heath_2018-02-16T08:07:53.000194 | 1,518,768,473.000194 | 34,418 |
pythondev | help | Help needed | 2018-02-16T08:07:58.000258 | Heath | pythondev_help_Heath_2018-02-16T08:07:58.000258 | 1,518,768,478.000258 | 34,419 |
pythondev | help | It's a many-to-many relationship actually | 2018-02-16T08:28:34.000376 | Barney | pythondev_help_Barney_2018-02-16T08:28:34.000376 | 1,518,769,714.000376 | 34,420 |
pythondev | help | since user can bookmark multiple feeds, and one feed can be bookmarked by multiple users | 2018-02-16T08:28:48.000298 | Barney | pythondev_help_Barney_2018-02-16T08:28:48.000298 | 1,518,769,728.000298 | 34,421 |
pythondev | help | User.bookmarks should be:
```
bookmarks = relationship('Feed', secondary='user_feeds', ...)
```
Note the `secondary` keyword | 2018-02-16T08:30:15.000263 | Barney | pythondev_help_Barney_2018-02-16T08:30:15.000263 | 1,518,769,815.000263 | 34,422 |
pythondev | help | And then you have an association table (needed for many-to-many):
```
user_feeds = Table('user_feeds', Base.metadata,
Column('user_id', Integer, ForeignKey('users.id')),
Column('feed_id', Integer, ForeignKey('feeds.id'))
)
``` | 2018-02-16T08:31:48.000309 | Barney | pythondev_help_Barney_2018-02-16T08:31:48.000309 | 1,518,769,908.000309 | 34,423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.