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 | i'm not sure if `--install-option="--prefix=/install"` is the best approach here but i couldn't find a better solution | 2019-03-16T19:33:55.845800 | Mckinley | pythondev_help_Mckinley_2019-03-16T19:33:55.845800 | 1,552,764,835.8458 | 13,821 |
pythondev | help | (i need some help :slightly_smiling_face: ) | 2019-03-16T19:35:00.846100 | Mckinley | pythondev_help_Mckinley_2019-03-16T19:35:00.846100 | 1,552,764,900.8461 | 13,822 |
pythondev | help | using venv and copying it is a sure solution but i'm looking for a solution without it | 2019-03-16T19:37:49.846600 | Mckinley | pythondev_help_Mckinley_2019-03-16T19:37:49.846600 | 1,552,765,069.8466 | 13,823 |
pythondev | help | If I have stored this in a dictionary. How do I extract all values from the key `phoneNumber`? | 2019-03-16T22:52:06.847400 | Conchita | pythondev_help_Conchita_2019-03-16T22:52:06.847400 | 1,552,776,726.8474 | 13,824 |
pythondev | help | It looks like you want to loop over `data['search']['wp']['features']`, and for each feature, loop over `feature['phoneNumbers']`. However, it's not necessarily clear from this example whether that will always work, or if there are other places phone numbers could show up in `'geo'` or `'yp'`, etc. | 2019-03-16T23:00:04.849200 | Sasha | pythondev_help_Sasha_2019-03-16T23:00:04.849200 | 1,552,777,204.8492 | 13,825 |
pythondev | help | I'd also be wary of assuming that every feature has a phone number associated with it, so you probably want a lot of error-checking. | 2019-03-16T23:02:09.850100 | Sasha | pythondev_help_Sasha_2019-03-16T23:02:09.850100 | 1,552,777,329.8501 | 13,826 |
pythondev | help | That worked! Thanks <@Sasha> here's a :taco: | 2019-03-16T23:03:25.850500 | Conchita | pythondev_help_Conchita_2019-03-16T23:03:25.850500 | 1,552,777,405.8505 | 13,827 |
pythondev | help | A *real* newbie here. Q: Is there a char version of range(10)? ex: “for somechar in range(a-z)” perhaps? Thanks! | 2019-03-16T23:39:52.852600 | Rob | pythondev_help_Rob_2019-03-16T23:39:52.852600 | 1,552,779,592.8526 | 13,828 |
pythondev | help | Good question. I'm not aware of one, unfortunately. The usual practice would be either to have an explicit alphabet string constant to iterate through, or to construct the values from `range()` integers using `ord()` and `chr()`. | 2019-03-16T23:44:27.854100 | Sasha | pythondev_help_Sasha_2019-03-16T23:44:27.854100 | 1,552,779,867.8541 | 13,829 |
pythondev | help | Excellent, thanks Ed! | 2019-03-16T23:48:37.854400 | Rob | pythondev_help_Rob_2019-03-16T23:48:37.854400 | 1,552,780,117.8544 | 13,830 |
pythondev | help | Per your input, I tried this and it appears to work:
`asciiint: int
for asciiint in range(97, 123):
print(chr(asciiint))` | 2019-03-17T00:06:20.856900 | Rob | pythondev_help_Rob_2019-03-17T00:06:20.856900 | 1,552,781,180.8569 | 13,831 |
pythondev | help | sorry: new to this. I’ll try formatted for code :
`asciiint: int`
`for asciiint in range(97, 123):`
`print(chr(asciiint))` | 2019-03-17T00:08:12.857800 | Rob | pythondev_help_Rob_2019-03-17T00:08:12.857800 | 1,552,781,292.8578 | 13,832 |
pythondev | help | Great! For ease of readability, you can also do `range(ord('a'), ord('z') + 1)` if you want. | 2019-03-17T00:09:10.858500 | Sasha | pythondev_help_Sasha_2019-03-17T00:09:10.858500 | 1,552,781,350.8585 | 13,833 |
pythondev | help | ah, very good! | 2019-03-17T00:09:28.858700 | Rob | pythondev_help_Rob_2019-03-17T00:09:28.858700 | 1,552,781,368.8587 | 13,834 |
pythondev | help | The easiest method I can think of is to start from the K+1 position (if there is one), then iterate backwards until you hit a space (or the beginning of the string), and truncate there. | 2019-03-17T11:52:04.865100 | Sasha | pythondev_help_Sasha_2019-03-17T11:52:04.865100 | 1,552,823,524.8651 | 13,835 |
pythondev | help | Hmm interesting solution <@Sasha>, thanks! But to be honest I still don’t know how to properly solve it in Python. Mine solution had loops in it and it didn’t end up well. :grin: | 2019-03-17T11:54:02.867300 | Taylor | pythondev_help_Taylor_2019-03-17T11:54:02.867300 | 1,552,823,642.8673 | 13,836 |
pythondev | help | I think something like this would do it: | 2019-03-17T12:03:46.867400 | Sasha | pythondev_help_Sasha_2019-03-17T12:03:46.867400 | 1,552,824,226.8674 | 13,837 |
pythondev | help | Wow awesome thanks <@Sasha>! | 2019-03-17T12:08:27.868200 | Taylor | pythondev_help_Taylor_2019-03-17T12:08:27.868200 | 1,552,824,507.8682 | 13,838 |
pythondev | help | <@Sasha> :taco: | 2019-03-17T12:08:49.868600 | Taylor | pythondev_help_Taylor_2019-03-17T12:08:49.868600 | 1,552,824,529.8686 | 13,839 |
pythondev | help | <@Sasha> nice solution, and sim to what I was thinking. But your first conditional will return true if the last character is a space | 2019-03-17T12:24:02.870500 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:24:02.870500 | 1,552,825,442.8705 | 13,840 |
pythondev | help | Would return it with a `strip` call to ensure leading and trailing spaces are removed | 2019-03-17T12:25:12.871700 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:25:12.871700 | 1,552,825,512.8717 | 13,841 |
pythondev | help | Good point. I was wondering whether the input is allowed to have leading or trailing spaces. The problem statement is ambiguous there, but maybe some of the examples would have shown that. | 2019-03-17T12:27:40.872900 | Sasha | pythondev_help_Sasha_2019-03-17T12:27:40.872900 | 1,552,825,660.8729 | 13,842 |
pythondev | help | The input, yes. But not the output, it seems | 2019-03-17T12:28:15.873500 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:28:15.873500 | 1,552,825,695.8735 | 13,843 |
pythondev | help | But overall, this is a problem that can easily be optimized for linear time execution | 2019-03-17T12:29:23.874500 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:29:23.874500 | 1,552,825,763.8745 | 13,844 |
pythondev | help | And a decent junior interview question :ok_hand: | 2019-03-17T12:29:44.875000 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:29:44.875000 | 1,552,825,784.875 | 13,845 |
pythondev | help | Hmm, I'm not sure how one can come up with a non-linear solution here | 2019-03-17T12:30:26.875700 | Chester | pythondev_help_Chester_2019-03-17T12:30:26.875700 | 1,552,825,826.8757 | 13,846 |
pythondev | help | Sub-linear, no. But I know a former classmate of mine came up with a n^2 solution in response to a test question | 2019-03-17T12:31:50.877700 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:31:50.877700 | 1,552,825,910.8777 | 13,847 |
pythondev | help | We were comparing answers after they were graded, and he got some points taken off | 2019-03-17T12:32:41.879500 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:32:41.879500 | 1,552,825,961.8795 | 13,848 |
pythondev | help | Do you remember the question? | 2019-03-17T12:33:14.879900 | Chester | pythondev_help_Chester_2019-03-17T12:33:14.879900 | 1,552,825,994.8799 | 13,849 |
pythondev | help | I mean, n^2 solutions for linear problems often appear when the task asks you to watch for multiple things at once | 2019-03-17T12:33:59.880900 | Chester | pythondev_help_Chester_2019-03-17T12:33:59.880900 | 1,552,826,039.8809 | 13,850 |
pythondev | help | The specific, no. But it was a text truncation problem combined with algorithmic analysis | 2019-03-17T12:34:46.882800 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:34:46.882800 | 1,552,826,086.8828 | 13,851 |
pythondev | help | Like in "in a given sorted list of numbers, find two so their difference is no more than a given k" | 2019-03-17T12:35:16.883800 | Chester | pythondev_help_Chester_2019-03-17T12:35:16.883800 | 1,552,826,116.8838 | 13,852 |
pythondev | help | Apparently about half the class did the same thing as my friend. That teacher had a good eye for questions with easy answers that always looked much more complex at first glance | 2019-03-17T12:36:30.885400 | Hiroko | pythondev_help_Hiroko_2019-03-17T12:36:30.885400 | 1,552,826,190.8854 | 13,853 |
pythondev | help | hi does anyone know how to view an .mha image in python (tensorflow library ) i didn’t find any useful tutorials thank you in advance:slightly_smiling_face: | 2019-03-17T14:15:50.887700 | Katia | pythondev_help_Katia_2019-03-17T14:15:50.887700 | 1,552,832,150.8877 | 13,854 |
pythondev | help | have you googled anything? | 2019-03-17T14:19:05.887900 | Hiroko | pythondev_help_Hiroko_2019-03-17T14:19:05.887900 | 1,552,832,345.8879 | 13,855 |
pythondev | help | I have no clue what a `mha` image is, but googling `mha image python` returned a number of responses | 2019-03-17T14:19:31.888500 | Hiroko | pythondev_help_Hiroko_2019-03-17T14:19:31.888500 | 1,552,832,371.8885 | 13,856 |
pythondev | help | mha its similar to .mhd but with only difference that its a Single file containing the header and the image data , yes i have googled and i cannot load this image using python :disappointed: | 2019-03-17T14:25:16.890100 | Katia | pythondev_help_Katia_2019-03-17T14:25:16.890100 | 1,552,832,716.8901 | 13,857 |
pythondev | help | <https://stackoverflow.com/questions/47151562/open-mha-image-files-in-python-2015-brats-challenge-dataset?rq=1> | 2019-03-17T14:25:47.890300 | Hiroko | pythondev_help_Hiroko_2019-03-17T14:25:47.890300 | 1,552,832,747.8903 | 13,858 |
pythondev | help | other responses like this don’t work for you? | 2019-03-17T14:26:09.890800 | Hiroko | pythondev_help_Hiroko_2019-03-17T14:26:09.890800 | 1,552,832,769.8908 | 13,859 |
pythondev | help | and its helpful to include what you’ve tried with a help request :slightly_smiling_face: | 2019-03-17T14:26:22.891200 | Hiroko | pythondev_help_Hiroko_2019-03-17T14:26:22.891200 | 1,552,832,782.8912 | 13,860 |
pythondev | help | okay i will recheck it thank you | 2019-03-17T14:40:02.891900 | Katia | pythondev_help_Katia_2019-03-17T14:40:02.891900 | 1,552,833,602.8919 | 13,861 |
pythondev | help | Kinda a "high level" question (so not sure if this is the right channel). I've been spending a fair amount of time digging into Pandas (and I really enjoy it!). Both tutorials as well as using it to automate some internal reporting. I'm wondering if I might start to suffer "when all you have is a hammer...everything looks like a nail" mentality. Basically, using pandas when a simple list or dictionary might work better. At the end of the day, I suppose as long as it works "right" there's not a huge problem with using pandas (except perhaps some performance issues? but for what I generally do, this isn't a major concern). Anyone have any thoughts regarding if there is a good way to know (or questions I should be asking myself) to identify 'X' as well suited to Pandas and 'Y' better served by a dictionary, list or other 'internal' data data structures? Thanks! | 2019-03-17T18:52:13.893100 | Marth | pythondev_help_Marth_2019-03-17T18:52:13.893100 | 1,552,848,733.8931 | 13,862 |
pythondev | help | I'm not an expert, but I'd say that Pandas is a good tool for multidimensional data (rows and columns, or more), whereas native Python data structures are nicely suited for one-dimensional data (lists, key-and-value, etc.). | 2019-03-17T18:58:57.894900 | Sasha | pythondev_help_Sasha_2019-03-17T18:58:57.894900 | 1,552,849,137.8949 | 13,863 |
pythondev | help | also, pandas is pretty heavyweight to install | 2019-03-17T18:59:48.895400 | Hiroko | pythondev_help_Hiroko_2019-03-17T18:59:48.895400 | 1,552,849,188.8954 | 13,864 |
pythondev | help | since it relies on numpy, IIRC | 2019-03-17T19:00:20.896000 | Hiroko | pythondev_help_Hiroko_2019-03-17T19:00:20.896000 | 1,552,849,220.896 | 13,865 |
pythondev | help | would also suggest that knowing how things work behind the code is invaluable too, so if/when the case comes, you can know when you should do your own thing vs bring in the entire lib dependency stack when its just used in a couple small things | 2019-03-17T19:01:11.897000 | Hiroko | pythondev_help_Hiroko_2019-03-17T19:01:11.897000 | 1,552,849,271.897 | 13,866 |
pythondev | help | awesome. Excellent feedback! Thanks to ya both! <@Sasha> <@Hiroko> :taco: have a Sunday taco :slightly_smiling_face: | 2019-03-17T19:02:22.897700 | Marth | pythondev_help_Marth_2019-03-17T19:02:22.897700 | 1,552,849,342.8977 | 13,867 |
pythondev | help | hello everyone, Do you know some people who works with Hexagonal image processing. I really need someone to answer particular question which is in this link. Thank you! <https://stackoverflow.com/questions/55194091/typeerror-expected-cvumat-for-argument-src-applying-filter-on-a-hexagonall> | 2019-03-17T21:03:03.898300 | Josef | pythondev_help_Josef_2019-03-17T21:03:03.898300 | 1,552,856,583.8983 | 13,868 |
pythondev | help | what's going on. Would greatly appreciate some help with google-cloud-storage | 2019-03-17T22:40:25.899100 | Sima | pythondev_help_Sima_2019-03-17T22:40:25.899100 | 1,552,862,425.8991 | 13,869 |
pythondev | help | getting some client module error
AttributeError: module 'google.cloud.storage' has no attribute 'Client' | 2019-03-17T22:40:30.899300 | Sima | pythondev_help_Sima_2019-03-17T22:40:30.899300 | 1,552,862,430.8993 | 13,870 |
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-17T22:41:52.899400 | Leana | pythondev_help_Leana_2019-03-17T22:41:52.899400 | 1,552,862,512.8994 | 13,871 |
pythondev | help | When I try to run this code to apply a 2D filter on the image (h) which was hexagonally sampled, i get this error "File "preprocessing.py", line 29, in <module>
img = cv2.cvtColor(h, cv2.COLOR_BGR2GRAY)
TypeError: Expected cv::UMat for argument 'src'" | 2019-03-17T22:49:21.899900 | Josef | pythondev_help_Josef_2019-03-17T22:49:21.899900 | 1,552,862,961.8999 | 13,872 |
pythondev | help | <@Josef> What library is `hipsample()` coming from? It doesn't seem to be returning an image in the format that `cvtColor()` expects. | 2019-03-18T01:07:56.902100 | Sasha | pythondev_help_Sasha_2019-03-18T01:07:56.902100 | 1,552,871,276.9021 | 13,873 |
pythondev | help | yes that's what I suspect because this image "image = Image.open('anna.jpg')" is a normal image and after this "h = hipsample(image,6,1.0,BCUBIC)" the square pixel is converted into hexagonal pixel. The hipsample() came from this (<https://drive.google.com/file/d/1FzuK8faIi1lgZitBFtHlf5Nbyc8ifkaZ/view?usp=sharing>) library which was made by another researcher, a method used to convert square pixel into hexagonal pixel. Here are other prerequisites before you can run the hipsample() function . 1. Hexarray (<https://drive.google.com/file/d/1c0p9ZePX7Qra_sO7c6xpkjFdbuNXakLT/view?usp=sharing>) 2.Addressing (<https://drive.google.com/file/d/1CTxfKxKbHhuUsS5Tufw8_BvLkx_yfXQK/view?usp=sharing>) 3.Hexint (<https://drive.google.com/file/d/15Om3yIcREezT__FoBpXYPKMENeIseZb9/view?usp=sharing>) 4.Displaying Hexagonally sampled Image (<https://drive.google.com/file/d/1o7t3aWLIlDTUmciRqd44v5fVlI8b6BVM/view?usp=sharing>) | 2019-03-18T01:15:42.902400 | Josef | pythondev_help_Josef_2019-03-18T01:15:42.902400 | 1,552,871,742.9024 | 13,874 |
pythondev | help | <@Sasha> yes that's what I suspect because this image "image = Image.open('anna.jpg')" is a normal image and after this "h = hipsample(image,6,1.0,BCUBIC)" the square pixel is converted into hexagonal pixel. The hipsample() came from this (<https://drive.google.com/file/d/1FzuK8faIi1lgZitBFtHlf5Nbyc8ifkaZ/view?usp=sharing>) library which was made by another researcher, a method used to convert square pixel into hexagonal pixel. Here are other prerequisites before you can run the hipsample() function . 1. Hexarray (<https://drive.google.com/file/d/1c0p9ZePX7Qra_sO7c6xpkjFdbuNXakLT/view?usp=sharing>) 2.Addressing (<https://drive.google.com/file/d/1CTxfKxKbHhuUsS5Tufw8_BvLkx_yfXQK/view?usp=sharing>) 3.Hexint (<https://drive.google.com/file/d/15Om3yIcREezT__FoBpXYPKMENeIseZb9/view?usp=sharing>) 4.Displaying Hexagonally sampled Image (<https://drive.google.com/file/d/1o7t3aWLIlDTUmciRqd44v5fVlI8b6BVM/view?usp=sharing>) | 2019-03-18T01:18:20.902900 | Josef | pythondev_help_Josef_2019-03-18T01:18:20.902900 | 1,552,871,900.9029 | 13,875 |
pythondev | help | Gotcha. You may need to implement your own color-space conversion on a pixel-by-pixel basis instead of relying on OpenCV for that. Alternately, can you perform the conversion on the original square-pixel image first before the hex step? | 2019-03-18T01:18:44.903000 | Sasha | pythondev_help_Sasha_2019-03-18T01:18:44.903000 | 1,552,871,924.903 | 13,876 |
pythondev | help | In general, I would not expect things to "just work" between OpenCV and the hex-image libraries. | 2019-03-18T01:20:05.903700 | Sasha | pythondev_help_Sasha_2019-03-18T01:20:05.903700 | 1,552,872,005.9037 | 13,877 |
pythondev | help | what do you mean by performing the original sqaure-pixel image first? | 2019-03-18T01:24:52.903800 | Josef | pythondev_help_Josef_2019-03-18T01:24:52.903800 | 1,552,872,292.9038 | 13,878 |
pythondev | help | Well, you appear to be calling `cvtColor()` to convert the image to grayscale. Can you do that on the original JPEG instead? | 2019-03-18T01:26:47.904000 | Sasha | pythondev_help_Sasha_2019-03-18T01:26:47.904000 | 1,552,872,407.904 | 13,879 |
pythondev | help | yes of course, so you mean to say I perform OpenCV processing first before converting the image to hexagonal pixel? Doesn't it change the main goal of hexagonal image processing where we convert image to hex then do some image processing after? | 2019-03-18T01:29:00.904200 | Josef | pythondev_help_Josef_2019-03-18T01:29:00.904200 | 1,552,872,540.9042 | 13,880 |
pythondev | help | Depends on what your goal is, I guess. But the main point is that you probably shouldn't expect OpenCV to operate on hexagonal images, so you may have to implement your own image processing. | 2019-03-18T01:31:14.904400 | Sasha | pythondev_help_Sasha_2019-03-18T01:31:14.904400 | 1,552,872,674.9044 | 13,881 |
pythondev | help | How can I make a function where I can Apply a 2DFilter on an image? Can I do that ? please help. I want it to be Like this one "cv2.filter2D(img, cv2.CV_8UC3, g_kernel)" because I already have the filter for hexagonal Image but the problem lies on applying the filter on the resampled image. | 2019-03-18T01:33:15.904600 | Josef | pythondev_help_Josef_2019-03-18T01:33:15.904600 | 1,552,872,795.9046 | 13,882 |
pythondev | help | No idea, I'm afraid. You know a lot more about hexagonal images than I do. It's not at all obvious how to generalize 2D filters to hex pixels since the axes are no longer orthogonal. Sounds like some math may be necessary to figure that out. | 2019-03-18T01:43:39.904800 | Sasha | pythondev_help_Sasha_2019-03-18T01:43:39.904800 | 1,552,873,419.9048 | 13,883 |
pythondev | help | Yeah I think so too. Thank you sir. :slightly_smiling_face: | 2019-03-18T01:44:22.905000 | Josef | pythondev_help_Josef_2019-03-18T01:44:22.905000 | 1,552,873,462.905 | 13,884 |
pythondev | help | hi, i am confused by that problem.
in Yellow line, list - char_dic[c] are using c before " for c in x_str "
what is it grammar in python | 2019-03-18T04:26:52.905900 | Kendall | pythondev_help_Kendall_2019-03-18T04:26:52.905900 | 1,552,883,212.9059 | 13,885 |
pythondev | help | If you're asking how do we call such constructions in python it's list comprehension | 2019-03-18T04:39:55.908500 | Russ | pythondev_help_Russ_2019-03-18T04:39:55.908500 | 1,552,883,995.9085 | 13,886 |
pythondev | help | <@Russ> oh Thank your for reply, So You mean That Constructions is valid on only list? | 2019-03-18T04:59:50.909800 | Kendall | pythondev_help_Kendall_2019-03-18T04:59:50.909800 | 1,552,885,190.9098 | 13,887 |
pythondev | help | ehh.. that particular construction is valid for everything "list-like" (sets, tuples, etc). And in `char_dic` you're using dictionary comprehension, so it's valid too, but it has slightly different syntax. But I recommend you to read about comprehensions in general. It's a very powerful tool that save tons of time. And if you're ready for it, then generators as well. | 2019-03-18T05:05:08.915100 | Russ | pythondev_help_Russ_2019-03-18T05:05:08.915100 | 1,552,885,508.9151 | 13,888 |
pythondev | help | Hello
I'm trying to use a variable introduced in one function in another one.. but it gives that its not defined.. how could this be done, I'm new in python
My code is attached | 2019-03-18T05:05:13.915300 | Tanja | pythondev_help_Tanja_2019-03-18T05:05:13.915300 | 1,552,885,513.9153 | 13,889 |
pythondev | help | With respect to list comprehensions, can somebody explain this behaviour:
```
a = [1,2,3]
[a for a[0] in a]
>>> [[3, 2, 3], [3, 2, 3], [3, 2, 3]]
```
I can’t wrap my head around what is going on. | 2019-03-18T05:06:24.917200 | Berenice | pythondev_help_Berenice_2019-03-18T05:06:24.917200 | 1,552,885,584.9172 | 13,890 |
pythondev | help | <@Tanja> Variables are scoped, so they cannot be accessed outside their scope (function, class, ...)
If you need to use it elsewhere, return it from the first function | 2019-03-18T05:06:43.917600 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:06:43.917600 | 1,552,885,603.9176 | 13,891 |
pythondev | help | <@Tanja> Try to not use `global` (which will pop up if you google for variable scoping). It's usually regarded as bad practice and usually allows for other errors to occur. | 2019-03-18T05:08:53.919200 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:08:53.919200 | 1,552,885,733.9192 | 13,892 |
pythondev | help | <@Tanja> in your case you're passing variable `lines` in second function, but not doing it with `n_verticles`... Have I pointed you in right direction? :yum:
And :+1: to everything <@Yaeko> said | 2019-03-18T05:12:21.922900 | Russ | pythondev_help_Russ_2019-03-18T05:12:21.922900 | 1,552,885,941.9229 | 13,893 |
pythondev | help | <@Russ> oh, Thank you for Your Comment. So now i can find what i have to find! | 2019-03-18T05:12:42.923800 | Kendall | pythondev_help_Kendall_2019-03-18T05:12:42.923800 | 1,552,885,962.9238 | 13,894 |
pythondev | help | <@Berenice> Interesting case, it's the same if you split it up in a for loop:
```
In [12]: for a[0] in a:
...: print(a[0])
...:
1
2
3
In [13]: a
Out[13]: [3, 2, 3]
``` | 2019-03-18T05:12:42.924000 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:12:42.924000 | 1,552,885,962.924 | 13,895 |
pythondev | help | But I don't really know what's going on. | 2019-03-18T05:12:51.924200 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:12:51.924200 | 1,552,885,971.9242 | 13,896 |
pythondev | help | Yeah I noticed that too, there is a reassignment of the first element but still odd. | 2019-03-18T05:13:21.924600 | Berenice | pythondev_help_Berenice_2019-03-18T05:13:21.924600 | 1,552,886,001.9246 | 13,897 |
pythondev | help | <@Yaeko> sorry what you mean from the first function..
What I'm trying to do is kind of formatting my code as functions to be well suited :woman-facepalming::skin-tone-3:
But I need some variables extracted from one function to use in another.. that's the idea 🥺:thinking_face:
<@Russ> you mean both variables should be passed in order to be used correct! | 2019-03-18T05:20:13.929100 | Tanja | pythondev_help_Tanja_2019-03-18T05:20:13.929100 | 1,552,886,413.9291 | 13,898 |
pythondev | help | yep | 2019-03-18T05:20:47.929800 | Russ | pythondev_help_Russ_2019-03-18T05:20:47.929800 | 1,552,886,447.9298 | 13,899 |
pythondev | help | And I might be asked this question before.. anyone had worked with .OFF files for 3d models?!
| 2019-03-18T05:21:14.930500 | Tanja | pythondev_help_Tanja_2019-03-18T05:21:14.930500 | 1,552,886,474.9305 | 13,900 |
pythondev | help | <@Russ> thanks :) | 2019-03-18T05:21:37.931000 | Tanja | pythondev_help_Tanja_2019-03-18T05:21:37.931000 | 1,552,886,497.931 | 13,901 |
pythondev | help | What I think is happening
for a[0] in a
iteration 1: a[0] = first element of a == 1
iteration 2: a[0] = second element of a == 2
iteration 3: a[0] = third element of a == 3 | 2019-03-18T05:23:23.931100 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:23:23.931100 | 1,552,886,603.9311 | 13,902 |
pythondev | help | You can also copy between lists that way,
```
In [1]: a = [1,3,4,5,6]
In [2]: b = [7,8,9,10,11]
In [3]: for i, b[i] in enumerate(a):
...: print(b)
...:
[1, 8, 9, 10, 11]
[1, 3, 9, 10, 11]
[1, 3, 4, 10, 11]
[1, 3, 4, 5, 11]
[1, 3, 4, 5, 6]
In [4]: b
Out[4]: [1, 3, 4, 5, 6]
``` | 2019-03-18T05:26:40.931300 | Yaeko | pythondev_help_Yaeko_2019-03-18T05:26:40.931300 | 1,552,886,800.9313 | 13,903 |
pythondev | help | <@Yaeko> Sorry I didn't knew before about global variables.. I know checked it.
But still didn't get the way to solve this you mentioned it.. if using global is a bad practice.. how could I use variables returned from one function in another function.
Thank you | 2019-03-18T05:42:47.934600 | Tanja | pythondev_help_Tanja_2019-03-18T05:42:47.934600 | 1,552,887,767.9346 | 13,904 |
pythondev | help | … what was the problem in the end? | 2019-03-18T05:48:14.934700 | Melynda | pythondev_help_Melynda_2019-03-18T05:48:14.934700 | 1,552,888,094.9347 | 13,905 |
pythondev | help | <@Tanja> You are returning `lines`, `n_vertices`, `n_faces`, `n_edges` from `read_off`, so assign these variables in the main loop:
```
if __name__ == '__main__':
lines, n_verticel, n_faces, n_edges = read_off('your-file-name')
read_vertices(lines, n_vertices)
``` | 2019-03-18T06:40:29.937700 | Yaeko | pythondev_help_Yaeko_2019-03-18T06:40:29.937700 | 1,552,891,229.9377 | 13,906 |
pythondev | help | And of course update the `read_vertices` function to take two arguments | 2019-03-18T06:40:48.938200 | Yaeko | pythondev_help_Yaeko_2019-03-18T06:40:48.938200 | 1,552,891,248.9382 | 13,907 |
pythondev | help | <@Tanja> And just for the future, it's easier to help if you paste the code directly, using the + sign next to the text box in Slack :) | 2019-03-18T06:49:53.939300 | Yaeko | pythondev_help_Yaeko_2019-03-18T06:49:53.939300 | 1,552,891,793.9393 | 13,908 |
pythondev | help | Ok great
<@Yaeko> Much appreciated
I get the idea :)
Kindly do you have any info about my previous question regarding the .OFF files , or even dealing with faces in 3d models.. I read the vertices from the file.. know I should follow to faces | 2019-03-18T07:39:08.942500 | Tanja | pythondev_help_Tanja_2019-03-18T07:39:08.942500 | 1,552,894,748.9425 | 13,909 |
pythondev | help | No, never worked with 3d models or off files | 2019-03-18T07:39:37.942800 | Yaeko | pythondev_help_Yaeko_2019-03-18T07:39:37.942800 | 1,552,894,777.9428 | 13,910 |
pythondev | help | Ok thank you :blush: | 2019-03-18T07:40:20.943200 | Tanja | pythondev_help_Tanja_2019-03-18T07:40:20.943200 | 1,552,894,820.9432 | 13,911 |
pythondev | help | Who in here does computer vision and does not mind a beginner asking them a few basic questions on how to get started through PM's? Can answer sales related questions in return (but no one is interested in that! :D) | 2019-03-18T09:56:21.945700 | Arcelia | pythondev_help_Arcelia_2019-03-18T09:56:21.945700 | 1,552,902,981.9457 | 13,912 |
pythondev | help | Please ask publicly, don't be embarrassed | 2019-03-18T10:00:11.946100 | Jonas | pythondev_help_Jonas_2019-03-18T10:00:11.946100 | 1,552,903,211.9461 | 13,913 |
pythondev | help | Alright, I want to somehow create the following:
- Record/ingest a stream of certain application windows
- Analyze its contents
- Identify certain objects and actions
- Construct logical sequences from the perceived actions
- Save those to a database (this part I have covered) | 2019-03-18T10:04:13.948700 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:04:13.948700 | 1,552,903,453.9487 | 13,914 |
pythondev | help | I would like to know which subjects I need to invest time in to get to a level of understanding where I can:
- Analyze video content
- Make it robust (learning model?) enough so that even if the contents change slightly (i.e. a different window theme) it can still identify the objects and actions | 2019-03-18T10:05:57.950400 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:05:57.950400 | 1,552,903,557.9504 | 13,915 |
pythondev | help | I'd suggest starting with a PhD :joy: | 2019-03-18T10:06:15.950900 | Jonas | pythondev_help_Jonas_2019-03-18T10:06:15.950900 | 1,552,903,575.9509 | 13,916 |
pythondev | help | Think a game of checkers for example | 2019-03-18T10:06:21.951000 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:06:21.951000 | 1,552,903,581.951 | 13,917 |
pythondev | help | Would need a masters for that to start with :wink: | 2019-03-18T10:06:39.951400 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:06:39.951400 | 1,552,903,599.9514 | 13,918 |
pythondev | help | :smile: it sounds pretty complex. Start small, and ask for help with each section | 2019-03-18T10:06:58.951800 | Jonas | pythondev_help_Jonas_2019-03-18T10:06:58.951800 | 1,552,903,618.9518 | 13,919 |
pythondev | help | I think it's a bit out of scope for this channel, or even this slack. it's more of a generic ML question than Python | 2019-03-18T10:07:40.952600 | Jonas | pythondev_help_Jonas_2019-03-18T10:07:40.952600 | 1,552,903,660.9526 | 13,920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.