« first day (3267 days earlier)      last day (1680 days later) » 
00:00 - 14:0014:00 - 00:00

12:01 AM
@AndrasDeak now what's interesting is it looks like this is intended behavior
but I've never seen this in any other package, ever
unless I'm being completely ignorant
 
huh
Jun 12 '18 at 22:03, by Andras Deak
I suspect this is because the relative import puts foo into the namespace. Is there a way to avoid this other than explicitly deleting the name foo?
check previous two messages as well
 
interesting
 
so I guess that's why it rang a bell
 
looks like nothing really came out of that
 
yeah :D I think I just del'ed the name
 
12:06 AM
some apparent expert on packaging seemed really confused about why I wanted to do what I'm trying to do
 
Did they say they were an expert on packaging?
 
no but they seemed really confused about what I was doing and that means they're an expert and I'm not :P
uhh
I have no idea what this comment says stackoverflow.com/questions/58107684/…
@AndrasDeak appreciate that comment, the discussion was really going nowhere
 
we'll see if they just misunderstood or they're genuinely incredulous
 
12:28 AM
apparently the latter
 
 
5 hours later…
wim
5:16 AM
The commenter is basically correct, but isn't doing a great job about communicating it. I've upvoted the two most relevant comments here.
I'm about 80% sure I have answered this exact question before btw, but it's a hard thing to search and I couldn't find it again.
 
wim
5:33 AM
also seems like dupe no?
 
^ added
 
*swings hammer* thanks
 
just doing my part o7
@AndrasDeak thanks for the info. I noticed that I can also just test this by deleting comments myself, and now I can confirm that they do get deleted from history as well.
 
 
2 hours later…
8:03 AM
@ReblochonMasque Thanks. I was looking for the article to post as a comment on a question; I had one of those moments where you're thinking "I know there's a thing about this" and couldn't complete the thought :P
 
haha, get used to it, the frequency of this happening will increase!
 
It's odd how minds index themselves. I swear I generally retain more metadata these days on how to find resources than if I just remembered the few salient facts that I keep taking from those resources
I'm also crap with names and Jeff Knupp was in my head because I stumbled over sandman2 yesterday. I'm not sure I understand anything about what it does, but it looks interesting
Thankfully, it has helpful examples like this so I'm sure I'll figure it out :P
 
8:46 AM
Does anyone have some experience with mininet?
 
user10984358
heya guys, I have a scenario where i have to write a python script around a certain CLI, for simplicity assume the `ls` command, so the command can get different flags. (a, l, r etc), someone using my script will call something like
doOps(reverse=True,all=True), so my function run (subprocess) `ls -ar` or whatever the correct command is, now when they call the script again with different flags, is it better to run the whole command with it again or is it better to take a ls with all flags as a base and then filter it with python according to the flags? in my case there are so many flags and
 
Run the command every time and have sensible defaults?
 
Wouldn't it be better to just have a list of the possible flags and append to the ls for whatever is needed?
 
user10984358
wdym sensible?
 
user10984358
i have a list of flags, its around 40 i guess, its an internal tool
 
8:50 AM
I don't know, I don't know what the script does :P
 
@TheNamesAlc you have a list of flags, and the user will input what flags they want to use?
 
I'm not sure I understand the question. Are you trying to decide between
option 1: pass only the correct flags to `ls`, i.e. `reverse=True` adds `-r`, `all=True` adds `-a`, etc
option 2: always run `ls -ar` and write python code that parses and filters the output based on the `reverse` and `all` arguments
?
 
Re-running and changing a specified flag just means I have to press the "up" arrow and change a flag. What happens when I don't specify the 39 other flags?
 
^ In the worst case if you filter the output and a single flag is chosen, you have to filter all the others out which is a bit unnecessary
 
user10984358
well getting a tad bit "less high level", the script will tell what hard drives are online and what their types are by default, the other flags are just filter flags, you can say commandLineTool -TB 100 -RAID 5 it will list all hard drives that satisfy the condition
 
user10984358
8:53 AM
if only the base command is given with no flags, it will list like all (1000 ish) hard drives connected to the computer that the command is run on
 
user10984358
@Aran-Fey yes exactly, if nothing of the two is passed i have been told to run a specific default command
 
If they are filters, I really wouldn't expect previous calls to persist other flags (if that's what you're asking?). If my usual commands got really long, I'd probably store the ones I normally use in a text file
 
I feel like no two people here understood the question the same way...
 
user10984358
what @Aran-Fey summarized is what i have in mind
 
I'd strongly recommend option 1. Option 2 sounds like a lot of work with a high risk of bugs, for no reason.
 
8:57 AM
I will take a back seat because I guess he has the better angle
 
user10984358
i can run always but the lines are so huge, there can be 10000 lines
 
Yeah so in that case, you're asking for trouble
 
user10984358
so running everytime with specific flags is prefered?
 
if you choose opt 2
@TheNamesAlc yes.
 
user10984358
but if i had a master output, since both (opt 1 and 2 ) will output me a JSON, wouldnt the second way be better? since all i have to do is filter a dict?
 
8:59 AM
If the tool already implements those flags/filters/whatevers, why would you go to the trouble of re-implementing all of them in python?
option 1: all you have to do is pass a command line argument
option 2: all you have to do is filter a dict
Out of the two, #1 seems a lot easier, no?
 
user10984358
this is just the beginning, the whole point is to find "compatible" devices when someone says they want a RAID 5 with this this and that, i have to find how much ever compatible devices they require, and this command is needed
 
user10984358
the thing with opt 1 is that i have to call the subprocess everytime, with 2 though i dont have to but the filtering is an overhead there
 
Why don't you have to run the subprocess with option #2? Where do you get your list of disks from, if not from the subprocess?
 
user10984358
yes it is from the subprocess
 
user10984358
@Aran-Fey this?
 
9:04 AM
Why not? I don't get it
 
I'm totally confused on what this setup is
 
user10984358
i am so sorry, let me just come back a few steps
 
user10984358
things i have in mind, opt 1 : run subprocess everytime with specific flags
opt 2 : filter from a base output
 
user10984358
so this part is clear?
 
Well to me, if depends on what work you're doing behind those commands
 
user10984358
9:08 AM
the command displays a list of hardrives connected to a enterprise server as a tabular structure(\t as column separators )
 
I'm not a big CLI user, but in my head I see something like a dictionary in the script of {'l': set('thing 1', 'thing 2'), ...}` and you just look for the intersection of all the sets specified by the flags given
 
user10984358
i have a python script that i wrote that parses this output to a json/dict
 
Let me just clarify what you mean by "every time". Every time your script runs, you execute the subprocess one time to get its output, right? Or does your script run the subprocess multiple times before it exits?
 
user10984358
whenever that function is called and if a refresh flag is set to True then a subprocess is executed, else i return the output of the last run
 
Now we're getting somewhere
 
user10984358
9:11 AM
this will be used in a testing script so they can refresh after like 5 mins and see what changes have been done after something
 
So basically you have a function with a built-in caching mechanism. I'm not sure if such a design is a good idea. I think the function should always fetch the latest output from the subprocess, and if you really need a caching mechanism I'd implement it somewhere else.
 
user10984358
yes that is what i am doing
 
user10984358
where else could i keep that or what change can be done?
 
I think after going on this journey, our different understanding of your problem is converging
19 mins ago, by roganjosh
If they are filters, I really wouldn't expect previous calls to persist other flags (if that's what you're asking?). If my usual commands got really long, I'd probably store the ones I normally use in a text file
 
user10984358
store flags in a text file?
 
9:15 AM
cbg
 
The command, yes. I'd just c/p if I needed like 20 filters each time
I'm talking as a user, not from your position
 
user10984358
so i can have a function that has some predefined filter set?
 
Wait, we're diverging again. My last clarification was that I'm talking as a user of your script
 
user10984358
i mean to make it simple, if user is always going to use flag1 and flag 2 with 10 other flags
 
user10984358
i can make a function that calls that, so the user can do somethign like doOps(set='set1')
 
9:19 AM
Ok, I see where you're going. From a user perspective, I don't know how you'd make it simple for me to utilise a pre-defined filter set, but I do do guess that's what would be the actual usage in reality
 
It's hard to answer these questions because we don't really know what you're writing (a library? A full-fledged program?) or what it's going to be used for
:47406765 If you're testing a bot, can you do it in the sandbox please?
 
user10984358
a library
 
a library that does what? List and filter disks?
 
user10984358
this wont go out of my org, so i dont really have to worry about grade A security issues if that can simplify things
 
user10984358
final outcome is you as a user will do something like getCompatibleDrives({drive1 falgs},{drive2 flags}) my script will return how many ever drives that match that criteria
 
user10984358
9:22 AM
to do that i need to filter disks
 
@Aran-Fey thanks
 
My brain is now fixated on a Flask app you could throw up in a few hours to do this with checkboxes :P
 
user10984358
tbh i have been left to do this as i please, so that is something i would consider if deadlines cant be met :)
 
Ok. In that case I can't tell you whether option #1 or option #2 is better, because it depends on how long the subprocess takes to run and how difficult it is to re-implement all the filters
 
@roganjosh Like Paritosh' (?) app with 400 checkboxes :P
 
9:24 AM
If the subprocess takes an hour to complete -> go option #2. If it has crazy complicated filters built in -> go option #1
 
@AndrasDeak They only have to click the mouse.... lots of times. Very user-friendly :)
 
user10984358
sums it up, tysm both of you
 
@Aran-Fey deleted before i even saw your message
 
9:42 AM
Is there a purpose to the "(removed)" tag persisting? Presumably ROs can see the content, I'm not sure what it gives to the rest of us
 
For posterity. It doesn't show up in the transcript, just here locally. It helps make it obvious that missing references are not out of the blue.
 
makes people who responded to deleted messages look less stupid
 
Makes sense, so a reply to the message will link to "(removed)"?
 
yes, and even without that if there's "John Doe: what the hell was that???" it makes more sense if there's a (removed) before it
 
i have a variable contains html i dont know how to print
 
9:46 AM
Oki doki, thanks
 
@dinesh print(var)?
 
vari = '<b>In the summer</b>'
 
@Aran-Fey Delete that. I mean replies to comments that then get deleted :)
 
@dinesh where do you want to print it?
 
yes it printing as <b>In the summer</b> @AndrasDeak
 
9:47 AM
yes, what else should it do?
 
It's linking for me
 
@roganjosh only for you
 
i wants bolded value in browser html
 
@dinesh "in browser html", that's key
Are we missing some details? Are you using some web framework in python?
 
nope gimme a sec @AndrasDeak
 
9:48 AM
OK
 
i am creating this plot use the steps as followed and i done the plot
 
I don't see any HTML being mentioned
 
with output as file and it wrote the html file near python
 
so open the html file with a browser?
 
yes thats working wonderful
 
9:50 AM
Writing plots to HTML to display on a web page is a bad idea. Is that what you're trying to do?
 
@roganjosh how so? Interactive webappy plots sound just like plotly/bokeh/whatever
 
i need to plots 100 millions of data
 
You're not being very clear on what the issue is
 
@rogan
gimme sec let me explain my issue please
 
@AndrasDeak Because it will be a static image and there's plenty of libraries that will render the plot on the front-end
 
9:51 AM
@dinesh take all the time you need
@roganjosh so you mean HTML as opposed to JS
 
i change the output type in plot changed file to "Div" and make the output as html in a variable
 
Yes. Saving the plot as static HTML or some image vs sending the data to a JS library
 
# plot( fig, filename = 'heatmap-time-series' ) # working as html file

mychart = plot(fig, output_type='div')
 
@roganjosh OK
 
I might need to take a break from this chat room
 
9:52 AM
@Aran-Fey just use the ignore feature ;)
 
so i want to embbed the mychart variable in dash or any of python page
it will print as normal text :-(
 
@AndrasDeak eh, I'm not a fan of reading one-sided conversations
 
@dinesh sorry, I have no exprience in this field
@Aran-Fey well you can also ignore roganjosh and me :D
 
ok @AndrasDeak
is any method convert html string to print as html? in python
variab = "<b>Dines</b>" wants to print as html
is console can accept it?
 
I'm so lost
Are you asking about <pre>?
What does this have to do with the plotting?
 
9:55 AM
@roganjosh nope @roganjosh
 
@dinesh I'm afraid we have no idea what you're asking, and you seem to be missing some fundamental knowledge about python. Running python in the command line will never render HTML for you. Browsers can, with an HTML.
 
yes is dash can do? @AndrasDeak
 
you'd have to ask the dash docs and tutorial, because as I said I have no experience with this
 
What is a "python page"? Are you using a web framework like Django/Flask?
 
no i didnt @roganjosh
Ok thanks got some clear @AndrasDeak
 
10:00 AM
Right, so it's got nothing to do with Python really, once you make the plot
IIRC you can get a single, free plot on Dash but I could be wrong. I'd have to look that up, but I've never understood the value in it tbh
 
Trying to navigate their site... yeah, I still don't understand Dash since plotly.js is free
 
10:16 AM
Yes, I saw that earlier @Andras - it is wonderful!
It is a pity that the entertainment industry seems to have more financing to produce these images that NASA or similar agencies; It really looks like the Interstellar BH that was produced 4 or 5 years ago!
 
user6568562
10:37 AM
Cbg Everybody; There's a website that contains Python's source code written in Python; I stumbled upon in one of Raymond Hettinger's lectures/articles/tweets a while ago but can't remember it;
 
user6568562
Anyone knows what I'm talking about ?
 
Wait, no, written in Python...
 
user6568562
Exactly ( : I'm sure I've seen it in one of SO comments; Then, again, my browser history is even more chaotic than my soul
 
what do you mean "contains Python's source code written in python"?
A proof-of-concept of a python interpreter written in python? Perhaps you're looking for pypy (not a proof of concept, and more than just an interpreter in python)?
 
pypy? I can't see Raymond speaking much outside of those
 
user6568562
10:41 AM
For one thing, it isn't GitHub; It's kind of a repo (not GH, though) where there's the implementation of basically all Python's built-in functions and methods written in Python
 
Then I can't help you, sorry
 
user6568562
Oh man, no worries; Thank you for your time; I'm sure I'll find it some other time while needing to find some other unrelated thing
 
user10984358
10:56 AM
7
A: Duck, duck, gone!

Black Owl KaiPython 3, 267 263 bytes 4 bytes saved thanks to @ovs def f(s): for a in zip(T[2:]+T,T):s=s.replace(*a) return s T="8,9,FiveI,Nf4,MotherD herself,and allH,O1,BnoneH,T2,No1,T3,Nt2,F4,Nt3" for r in "H of theI,4ourI,3hreeI,2woI,1neL,ILs,L littleD,D duck,NBonly ,Bbut ".split(','):T=T.replace(r[0...

 
user10984358
is this type of garbling the input solution a common codegolf thing?
 
It's not garbling, it's minimizing code size. Which is code golfing, yes.
it's not intended to be unreadable, that's just a happy side-effect
 
That's far more intelligible than most code golf answers
 
yeah, it uses a full function def which is relatively rare
 
user10984358
what i meant was is that i saw one other approach like that and i was thinking if that is something i should get a hang of
 
11:00 AM
no
unless you want to play code golf
 
No. It really isn't. It serves a purpose of fun for people that-way-inclined
 
what happens in codegolf stays in codegolf(.SE)
 
user10984358
i have seen some use of concepts i didnt knew could be used that way
 
We already have enough problems of people expecting that demonic 1-liners are better and faster, we definitely don't need code golf on top
 
@TheNamesAlc that's hacker culture for you
 
11:02 AM
@TheNamesAlc to that end, you might learn something from them in terms of Python's mechanics. But it's certainly not a place to take inspiration how to write code
 
user10984358
i guess i am in that minority, i got into this mindset of syntactic sugar being "cool"
 
Syntactic sugar is good. Abuse of syntax for shorter code is not.
 
Good luck on understanding your own code in 6 months' time :P
 
Real-life code should be about readable and optimal code, code golf considers neither.
 
recbg
 
user10984358
11:05 AM
noted! also my boss said i am supposed to do both options and they would run a test and see which is better
 
user10984358
in case anyone was reading what i was asking earlier
 
user10984358
he said he could do that if i didnt, and i know that means "say bubye to this org after your internship ends"
 
It's a quote brought to my attention by PM2Ring but I *** hate the chat search system: "Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?" source
 
user10984358
yeah i remember that being said here
 
@TheNamesAlc from what I've heard about internships it might be over at this org either way, though I guess it varies a lot depending on where you are
 
11:12 AM
At least in my experience in the UK, retention is pretty high
 
I read it somewhere on the interwebs so it was probably US
 
Though I don't know about software, I know a whole lot more about Engineering/Electrician apprentices
The flip side is; would you really wanna be in a position where you're fighting over CLI? I guess the company is pretty well established. I suspect that will give you good credentials to move on to a position in a company working on bigger and more interesting problems with their systems
 
user10984358
11:36 AM
it is a company based on US but i am not working in the US, the rules would still apply i guess, then again who would say you wont get a Full Time position no matter what you do, they are getting so much work from interns for half the pay, if i knew straight up its just an experience i wont give my all, but yeah i can use this to search for other orgs
 
"US company with intern from non-US" sounds like the worst of both worlds :D
 
" if i knew straight up its just an experience i wont give my all". Well, ok. So you're invested more in the company by not knowing?
That doesn't sound particularly rational when put that way, but that's what it boils down to
 
user10984358
i mean with not knowing some unspoken rule, i can have a small fragment of hope :)
 
But that hope has no basis in the company. That's based on financial security, right?
 
user10984358
saying your conversion to full time depends on your performance is better than saying we will see what happens theres a tad bit chance you get it, the former is promising
 
11:40 AM
Still, the motive is purely financial? (this is not me having a go at you btw)
 
user10984358
ofc
 
user10984358
once i have some leverage i can go for better ones but you have to build a basement of sorts, thats what i believe
 
I'm inclined to agree, but I also think there's a lot of potential in people who go through internships
 
user10984358
it can makes you less critical in what you do, and thats a good thing, you can make mistakes and not have severe repercussions
 
I also don't think it's so black/white in terms of keeping an apprentice on. The way you've read this situation... either your boss is a bit nuts or it's their way of trying to prod you a bit
But I don't know your performance outside of this one task. Apprentices take quite a bit of work. You can give them crap pay, but there is some expectation of time investment from the company
 
user10984358
11:45 AM
my "boss" is not actually my boss, he is called a mentor here, idk what term is used elsewhere i actaully report to someone who i am sure gets reports from this "boss"
 
user10984358
he said this is what i was hired to do in the first place, there is like a 90 day period and i am about 60 days in, so this is like a milestone i have to do
 
@roganjosh there's no reason why a company should not lead on interns, whether or not they intend to hire them after
 
@TheNamesAlc personally, and it really is personally, I would just take that as a prod to try make you perform at your best
 
user10984358
thanks! well i said i would do whatever he asked for and he neednt do any of that
 
user10984358
no hard deadlines as of now so i have to just come up with something that satisfies him
 
11:49 AM
@AndrasDeak Where I'm currently at, 100% of interns will get a job if they don't screw up, but it's several years and with days out to go to college. ~3month internship, I'm less sure. I don't know if we do those in the UK#
 
user10984358
its a 11 month one
 
user10984358
3 months is like a checkpoint to access me
 
assess?
 
user10984358
yeah, assess, sorry
 
just wanted to make sure :)
 
user10984358
11:51 AM
not my first language so :)
 
On top of that, I'm muddling interns with apprenticeships.
 
user10984358
arent they the same?
 
@TheNamesAlc Yeah, and I don't like correcting non-natives. But this seemed like a possible point of confusion.
 
I.... will retreat back under my rock
 
user10984358
being a grammar nazi is one thing though
 
11:52 AM
@TheNamesAlc no. Apprenticeships will have a stronger affiliation to the company
 
I don't think we have a separate name (or concept) for interning vs apprenticeships
 
user10984358
i did sign up NDA's and stuff
 
I'm not even sure if we have to pay interns in the UK
 
yikes
 
user10984358
isnt that illegal ?
 
11:53 AM
only if they weren't in the EU...oh wait!
(just kidding, I don't know if and how it's regulated)
 
@AndrasDeak legal-smeagol
We do what we want
 
I guess you can always have an intern without making it official. No employment, no contract, no problem.
 
user10984358
where i am there are unpaid internships but they offer you stay and food for free during the period
 
user10984358
they dont pay you
 
But on a serious note; apprentices do have a fixed wage in the UK. It's diabolically bad and I think most companies should do the right thing and raise it to minimum wage at the least. Internships are shorter-lived and might be part of "work experience" as people go through college
 
user10984358
11:57 AM
i dont think i have apprentices in this place, are they like fresh graduates or like some probationary period?
 
At the end of an apprenticeship, you should expect to get a qualification... and you'll probably have a pretty good understanding of the internals of the company. For an internship, well, they're supposed to be giving you a life experience and might not be as invested. But that's the system in the UK
 
@TheNamesAlc It varies with country. In Germany there are specific apprenticeship programmes where someone does part of their university work and thesis at a company, very strong coupling between the company and the student's work
(or something like that)
 
user10984358
thats what i am doing kinda, my uni expects a report once a month from the manager here
 
user10984358
but what i do here neednt be shown to the fullest there, they just need some proof that i am not idle here
 
In either case, I think my comment stands. Whatever the setup where you are, it appears that someone is invested in what you do and they expect you to work on a company problem.
Low/No wage it's easy just to put someone in the corner. They haven't done that
 
user10984358
12:00 PM
so i have to work as a normal employee would do, maybe it could all be a test, those HR's can get inside your head
 
@AndrasDeak yep, it's called "duales studium", I supervised one when I worked at IBM.
 
neat, thanks
 
It's usually quite benefical for students, since they will get a contract offered when they finish their thesis. Unless they performed super-bad.
 
user10984358
i interned once as a sophomore and it was a nightmare interning there, they made do php and i remember nothing of it now
 
I'm still not sure if PHP itself is bad as a language or if people just write terrible code with it (or both)
 
12:04 PM
I heard that these days you wouldn't be obliged to write terrible code with it, so it's largely technical debt and people not knowing better
honestly I think "lol php" jokes should be "lol JS" jokes by now
 
user10984358
they said i could do web pages, but i see there are far better alternatives, fwiw i was asked to study Zend framework
 
Oct 4 '17 at 10:53, by poke
Btw. modern PHP done properly is kind of nice.
 
Hey, has anyone ever used the pycharm plug in to run R scripts?
 
we don't talk about R
(just kidding, I don't like it personally)
 
user10984358
maybe its not a lost cause after all, i still have it in my resume though
 
12:07 PM
Feb 17 '17 at 10:13, by poke
@AnttiHaapala The problem is mostly that PHP is so old and the better stuff (the OOP parts, and the new APIs) are still too new so there are far too many examples with the old stuff which still works and looks so much easier. So there’s a huge difference between PHP developer and PHP developer.
 
@TheNamesAlc wut? My whole point, regardless of the technicalities, was that it's not a lost cause
 
@AndrasDeak Oops. I wanna use Python, but in the git repository we are sharing, some guys do R and I wanna run their scripts, without going on RStudio
 
Feb 17 '17 at 10:01, by poke
I meant that other languages, well designed ones, make it harder to build stuff very badly. In PHP it’s dead simple to produce working garbage. So in order to end up with a properly designed application in PHP, it requires more discipline and developer guidelines than it does in other languages where a lot of good practices are already built into the language.
(I'm done quoting, sorry)
 
user10984358
i meant PHP not the internship
 
user10984358
it was a weird group internship, all of us knew next to nothing and there was this one person who did stuff and we all piggybacked
 
12:09 PM
Sounds like it was a good intro to the workplace
 
user10984358
this internship though is totally different, i actually feel like i am learning new things
 
user10984358
i am tbh, i come here often to ask doubts so i guess its yielding results
 
user10984358
i am just going to do my best and hope for the best :)
 
user10984358
@Mez13 i know this is not the best alternative, but i use sublime to run R and python if i dont have to switch apps
 
user10984358
i just go to tabs and build and it runs on R or python accordingly
 
12:15 PM
@TheNamesAlc It looks nice. Can you set a git connection in Sublime?
 
user10984358
there is a git thingy there i havent used it though
 
user10984358
its now a different app i guess
 
@TheNamesAlc I'm gonna investigate that, thanks
 
user10984358
its a paid app with indefinite trial period
 
But I admit, I'd like to stick to Pycharm, it's so great, haha. Especially, when I know there is a R plugin
 
user10984358
12:16 PM
so that might be a problem
 
@TheNamesAlc Oh, we mention this kind of things before :p
 
user10984358
i mean you can download it for free, the say you can use if forever
 
user10984358
if you like it then pay it
 
HIi
 
@TheNamesAlc True
 
12:18 PM
hello
 
cbg o/
 
user10984358
its called sublime merge, the git thing
 
user10984358
so look into that
 
cabbage
 
cbg Paul
 
12:34 PM
@TheNamesAlc thanks
I've just download it. Basically, it's a kinda notepad++ advanced? In the sense that you cant run anything from there
 
12:56 PM
Ah, my old web dev nemesis: an extremely useful feature which purports to be "available on all standards-compliant modern browsers"
Which is to say "not available on IE, and available on Firefox but only with a weird name that starts with 'moz-'"
 
1:07 PM
Has anyone here installed tensorflow 2 with CUDA 10 on Ubuntu 18? I've got everything installed and importable but tensorflow can't see my GPUs. Followed the guide exactly, wonder what I missed.
 
1:20 PM
cabbage
 
My kingdom for a display: <whatever this element's default display type is> css rule
 
haha, that is quite confusing. It turns out that Adding visible gpu devices: 0 means that device zero has been added rather than zero devices have been added. See here
@Kevin I once said that css was trivial, I fully retract that statement. What I meant was that in the capacity that I've actually used css, it was trivial :)
 
And with that, I think I'm done with the main feed for a bit before it drives me insane :)
 
I bet the code format is broken because it wouldn't have let them post so little text next to all that code
 
@Kevin Doesn't display: unset; do that?
 
1:29 PM
It makes me think it'd be nice if we had some kind of preview of our questions, maybe underneath the editor or something
 
I would insert the shrug emoji here, but I broke my emoji userscript by setting all the display styles wrong
 
@roganjosh dream on
 
never mind, you want initial
 
It certainly sounds like what I want, and yet...
 
@AndrasDeak I guess it's too much to expect people to look at that exact implementation. I've asked some seriously crap questions, but I managed to pick up the fact I could see how it's displayed... I really struggle to empathise on poor formatting
 
1:34 PM
You know those "apes with typewriters" Gedankenexperiments? Well...
 
Consider the two tables at jsfiddle.net/hz4faemx, which I really wish had identical styling
 
Huh. I'm guessing initial gives you the default value for the CSS selector, not the default value for the element that's affected by it. That's weird.
 
Based on the output of jsfiddle.net/hz4faemx/2, I think "revert" is what I want?
 
hello guys
 
1:41 PM
I'm gonna pretend the lengthy explanation over at MDN doesn't exist and say "looks like it"
 
user10984358
@Mez13 well it can run most common programs provided a build system is available. It’s like notepad++ in a way. Try the package controller. It provides some utilities you might find useful.
 
My "the only reason this is a problem is because you're three XY problems deep and you chose the worst possible solutions for each of them" sense is tingling
"Only a fool would try to hide/unhide a table using the style rules table{display:none} and .active{display: revert !important}", says the hypothetical html guru
 
is it possible to print the output from a serial communication to a tkinter scrollbar?
 
a scrollbar?
 
yes
 
1:45 PM
If by "a scrollbar" you mean "a text widget that has been hooked up to a scrollbar so I can scroll through it", then yeah
 
yes atext widget
 
a scrollbar that is really a text widget? :P
 
an undercover scrollbar yes :D
 
Run the serial communication in one thread. Run the Tkinter window in another thread. Use a Queue to send messages between them.
 
@Kevin well, it holds true for dataTables. Either suffer the poor rendering as it does its thing, or use the trick to hide the table and call a function on complete... to get the header misaligned or not visible at all
 
1:46 PM
hm
 
@Kevin Looks fine to me. But I'm only hypothetically a html guru
 
Maybe I should invert my logic and do .inactive{display:none}...
 
not sure how to do that, can i post some code here?
 
Though I guess maybe you could do table:not(.active) {display: none;}
 
@Rozakos Yeah. If it's more than ten lines, use a text hosting site such as pastebin
 
1:48 PM
@Rozakos if it's only a few lines, yes, but see sopython.com/wiki/… first. For more code ^
 
mm, this is enlightening as an issue. I thought it was localised to DataTables but I guess not
 
@Aran-Fey Ooh, not a bad idea
 
and it displays : <function win_read at 0x037BF930> instead of the feed
 
Hmm, something went wrong with your code formatting. Consult sopython.com/wiki/… and try again.
 
1:53 PM
reconsult
 
You're such an optimist Andras :>
 
By the way, with tkinter (and thus far every other GUI toolkit I've worked with) there's no need to use queues for inter-thread communication - root.after(0, some_func) is way more convenient if you need the main thread to do something
 
after and after_idle are definitely the way to go if the behavior you're periodically invoking can be guaranteed to return in a timely manner
 
...though I just realized I never actually confirmed whether root.after itself is thread-safe
 
I'm 95% sure that root.after runs in the same thread as the rest of your code, if that's what you mean
 
1:58 PM
I'm not sure what "the same thread as the rest of your code" is, considering we're talking about a multi-threaded program
Is it safe to call root.after from a non-GUI thread? (i.e. one of those threads that's not doing the tkinter mainloop)
 
Oh, I see what you're asking now. I don't know the answer.
 
00:00 - 14:0014:00 - 00:00

« first day (3267 days earlier)      last day (1680 days later) »