« first day (3395 days earlier)      last day (1776 days later) » 

07:41
@Code-Apprentice I meant the DetailView UI. I am thinking it should be possible to use one edit button to update the whole models. Maybe a picture will make my point clearer.
cbg
How do I post picture here? I can't seems to see an option for that. Thanks.
08:18
upload your picture somewhere and post an url to it
08:39
the desktop version of the chat interface has an upload button next to the button to send a message ... I'm on mobile right now so I can't show a screen shot, but to the right of the input box where you type in your chat message
by default it sends just an image, but you can go back and edit that chat message to add some text around the link (which then also disables the inline rendering and changes the image link to just a link)
every chat message is editable for a couple of minutes, there’s an arrow icon on it where you can star, edit, dilete, report to moderator etc
(as demonstrated vividly where I updated the above messages by fixing typos... damn screen keyboard; sorry for any remaining typos)
@tripleee not for 21 rep users though
ah really? TIL
requires 50 rep IIRC
@Aran-Fey Thanks
09:40
I've watched so many documentaries on space and listened to so many presentations, all of which try to convey the enormity of space and yet still, this answer seems ludicrous.
why do many developers prefer linux to windows? any ideas :)
10:08
1) they know it exists 2) they aren't afraid of trying it 3) they get used to all the little things that it does better than windows (workspaces, package manager, tabs, ...)
imagine having only one workspace
or a file explorer that doesn't have tabs
or having to read terms and conditions when you install a program hahaha
@Aran-Fey and transparent configurability, in my case
the thing I hate worst about windows is that I don't feel like I'm in control of the yamming OS, and what's worse I don't even know what it's doing on its own
nothing screams "the user is in control" like your PC automatically rebooting at 3AM to install updates and then staying turned on even after the updates are finished, am I right
10:29
I'm told it also does things like popping up a window for a few minutes that says "dude, I'm going to reboot in 11 hours, k?" which disappears without a trace...so if you're not in front of the screen you're in for a treat
If it's the same one I'm thinking about, I think there is a way to do something about the scheduled reboot, but it's definitely very confusing and poorly made (as evidenced by the fact that I'm not sure about its function)
lol... but does it increase productivity as a developer? As I am thinking of switching to LInux, hence the question.
not by much, probably
Thanks for the input.
11:00
@Aran-Fey It was broken for me on one of my PCs. You can turn off automatic updates but on one particular PC you could save the settings and then it just turned it back on. No amount of regedit fiddling could change it
@superv If you don't want to make the full switch in one go, why not just create a virtual machine running Linux?
@roganjosh slooow
In fact, I've had to have virtual machines running some stuff because some things that I need just don't compile on Windows
@AndrasDeak I have to be honest; I've never had an issue with speed if you give it enough resources
@superv I'm quite busy for a few days. You could better drop in at the dedicated Django (IRC) chatroom on freenode mentioned in the official community docs.
@shad0w_wa1k3r I understand. I have fixed the issues tho. How are you?
@roganjosh I've always struggled with it the other way around (linux host, windows guest)
11:07
@superv I'm good, thanks for asking. On a short vacation, so little to no connectivity.
Interesting. I've put mine through some pretty solid work using OSRM. A 1000*1000 real-road distance matrix is not easy but I wouldn't be able to tell if I was running the server on a VM or an actual server, given equal specs
@shad0w_wa1k3r Relax and enjoy your vacation :)
I mean, there probably is a measurable difference, but it's not got to the point that I needed to investigate
Now that I think about it, what would you need a Windows box for if you're comfortable with Linux? Proprietary stuff like Excel files?
11:25
@roganjosh yeah. To date: national driving license test practice software, and one journal where proofs must be annotated in adobe (wty)
Every 5 years I have to install virtualbox and borrow a windows for something idiotic
Perhaps I'm just too strict with resources. Last time I needed this I still had 8 GB ram.
Windows is pretty heavy. I think Vista was 1.5GB of idle RAM, I don't actually know whether 10 is getting to that region actually, but Vista was just abominable. I'll have to check next time I reboot
 
2 hours later…
13:59
hi guys, small question here. If I have a defined function with three inputs like this:
`def function(input1, input2, input3):`
`return output`
@Leon please see our code formatting guide for chat and practice in the sandbox if necessary
def function(input1, input2, input3):
     return output
Thanks
And I have an excel file with multiple rows: column A = input1, column B = input2, column C = input3. How can I take the respective column values as inputs for my function?
14:22
That's a bit vague, but if you google "argument unpacking" you'll probably find what you need
14:33
Simply if you have a function with three arguments/inputs.
In addition you have an excel file with the input values. You want the values in Column A to be the input for input1, Column B for input2, and column C for input3.
Ok. I still recommend googling it though
actually, scratch that. I forgot that people always get this mixed up with the opposite thing (varargs)
Try function(*row)
@Leon you'll be looking for itertools.starmap. As for reading excel, there are packages for that.
Thanks guys, will take a look
14:49
@Aran-Fey there's a suspicious lack of excel-related code
'suspicious'
well if excel is the problem then google probably knows more about it than we do
 
2 hours later…
16:51
typo at first, many other problems down the line stackoverflow.com/questions/60018978/…
17:19
I'm curious about what hooks can be used to make that error in Python
How does it know that I failed in launching an application previously?
(also I need to fix whatever issue Spyder actually has, which is a bit of a mystery but, eh)
nm, I found the origin, I just need to trace back from there
@superv Yes, you should be able to have a single Save button to save your edits in the detail view.
17:36
@roganjosh lock files?
Also: looking for a job? :P
@AndrasDeak as it happens
2 days ago, by roganjosh
It wouldn't be so bad if you could make upper management see. They paid 3 hours of overtime to 4 staff per day for "training" on a machine that physically couldn't run because it had no power. For 4 months. At least it's an opportunity to work on my own CV and there's worse places to be with a laptop handy :)
right!
I wasn't kidding :P
Though I can't now launch Spyder and I just went through a slightly odd BIOS update on restarting the laptop... and Spyder worked "fine" yesterday so I'm becoming a tad suspicious
I see you also like to live dangerously
17:51
Yeah, I think something may have gone a tad wrong on this end. But my perfectly-good car failed its MOT today; the day I'm trying to move out, Brexit day and the end of the tax year. So, you know, it's all perfectly logical.
Keep calm...
conda update spyder worked. Oddly. Since I didn't change anything (that I know of) in the base environment. That's now catapulted me to Pandas 1.0.0. It'll be fun floundering around there :P
18:12
stackoverflow.com/questions/60019700/… nonsense. It can't be fixed, I'd rather stop others having to read it
^ closed
18:45
anyone know how to display a <bytearray> with cv2?
@JimmyLeahy nobody does. Bytearray is 1d data, cv2 plots images as far as I know
Haha that makes a lot of sense
I am trying to use cv2.imdecode but it always returns null
imageBuffer = camera.get_current_image()["buffer"]
imageData = np.asarray(imageBuffer, dtype=np.byte)
imageMat = cv2.imdecode(imageData, cv2.IMREAD_UNCHANGED)
imageBuffer is a bytearry.
Null as in None
@JimmyLeahy triple ticks don't work in chat
18:51
What is None? Nothing there seems to work in-place
5 hours ago, by Andras Deak
@Leon please see our code formatting guide for chat and practice in the sandbox if necessary
@JimmyLeahy reshape the result of asarray to 2d
At least that's my guess
imdecode doesn't like that: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:732: error: (-215:Assertion failed) buf.checkVector(1, CV_8U) > 0 in function 'cv::imdecode_
What kind of object does camera.get_current_image() return?
The docs claim it returns a bytearray, but some_bytearray["buffer"] makes no sense
ok, so the docs are lying. Good to know
19:04
thats what i think it is actually returning
I think the problem is that imdecode is for loading image formats (jpg, png, etc), but what you have is just RGB data
I assume opencv has a function for creating an image from RGB bytes, but I don't know what it is
stackoverflow.com/q/60020190/4799172 needs more focus. I'm off to do more productive stuff. Anything, actually.
@Aran-Fey I always plug in numpy arrays
no idea, then
I just want to convert my 1d bytearray to a cv2 mat
20:08
I was able to get the mat using gray = cv2.cvtColor(imageShaped.astype(np.uint8), cv2.COLOR_GRAY2RGB)
Are any of the core devs chatting here sometimes? (I mean people involved in providing CPython)
20:22
Ethan Furman visits sometimes
@JimmyLeahy imageShaped sounds like I was right about the shape
@AndrasDeak Yes you were, thank you!
No problem, it was just an educated guess
 
1 hour later…
21:32
Dina, just to double check, you also clean up the conda env folder?
user FullStack
$ conda info --envs
# conda environments:
#
base * C:\Users\user\Anaconda3

user FullStack
$
hmm ok
try type python
for those curious this is related to stackoverflow.com/questions/60020620/…
hi Andras, thank you for the link
21:36
Is their any command to clean up things?
I am wondering why this problem appear though once I installed ipython it worked perfectly !!!
clean up as in cleaning up conda env?
what OS are you on?
ah Windows
Windows 10 64 bits
should I use conda clean --all?
I am afraid it will remove everything
you don't seem to have other virtual env though based on your pasted output
yeah I removed them all :p
lol...
tbh i'm a bit out of depth with windows, it's the trickiest OS for python environment
21:41
aha I have understood you point
hold on, i'm scouring the docs
hey; I wrote some unittests a few hours ago which were passing. Now I wrote another test that passes itself but results in a previously written test failing. If I comment out this new one then everything passes again. How is this possible?
conda comes with its own python interpreter, Dina
But it really doesn't make sense
https://travis-ci.com/SwagLyrics/SwagLyrics-For-Spotify/jobs/282673721
Exact same test was passing in previous build
Yeah but you can use the option conda create -n env_name python=3
21:44
can you do conda search python
in every env you should specify the python u wana use
and when you mentioned ipython, did you install it through conda?
$ conda search python
Loading channels: ...working... done
# Name Version Build Channel
python 2.7.13 h1b6d89f_16 pkgs/main
python 2.7.13 h9912b81_15 pkgs/main
python 2.7.13 hb034564_12 pkgs/main
python 2.7.14 h2765ee6_18 pkgs/main
python 2.7.14 h3e68818_15 pkgs/main
python 2.7.14 h4084c39_22 pkgs/main
in my first env python3 I install ipython via pip and it worked perfectly
ok, try creating a virtual env with more specific version of python, e.g. python=3.7 or python=3.8 instead of python=3
i don't think reinstalling python in conda hurts anything
if you install ipython via pip within a virtual env it should be contained within that virtual env, yes
but it's not necessarily related to the python setting within conda
since ipython is piggybacking python if that makes sense
so ipython command is calling an ipython construct that's based on python engine, but python command/binary is independent on how ipython is set/run
I did what you siad by specifying the verision still does not work !
21:52
hmm well, i can't really help then, i don't have windows. you can uninstall & reinstall conda safely as long as your project files are safely backed up
sorry
No pb and sorry for taking from ur time
no worriess
I will try before reistall anaconda
good luck, Dina
Thank you so much @deadvoid
21:53
my pleasure .
if i'm on windows i'd probably use docker to avoid any mishaps :p
Is it like conda?
@deadvoid next time I suggest using the "start a new room with this user" feature in chat rather than dropping in an existing room without context
it's not, it's a container engine based on vm that you use to create static OS
@AndrasDeak thanks, I will
my first time using chat
@deadvoid aha thank you for this info. now let us not annoy others hh. thank you for eveything peace.
I can also move this discussion to another room if you want to continue
21:57
good luck Dina
@AndrasDeak do not worry we finished :)

« first day (3395 days earlier)      last day (1776 days later) »