« first day (3512 days earlier)      last day (1427 days later) » 
00:00 - 17:0017:00 - 00:00

12:06 AM
What is the best way to make an ai chatbot?
I tried using Chatterbot but its sooo slow
 
 
2 hours later…
1:59 AM
I'm unittesting a function which takes an string and returns a bool. Is it a good idea to put the test strings into a list and simply iterate over them with an assert? Otherwise I'm writing out self.assertFalse(myfunc(mystring)) over and over again.
 
2:27 AM
I was able to do it using unittest.subTest, pretty cool!
 
wim
2:44 AM
pytest.mark.parametrize is the way this is usually done
unittest.subTest is the opposite of cool. If you're stuck on unittest runner, then parametrized decorator is a popular choice.
 
aw
should I use pytest instead of unittest?
 
wim
absolutely
 
3:05 AM
oh ok, thanks
 
 
1 hour later…
4:13 AM
Is there a way to find the whole dependency tree of a package?
 
4:42 AM
Can someone with editing priviliges rollback this question stackoverflow.com/questions/62046152/… ? The author decided to delete the question by editing.
 
 
2 hours later…
6:28 AM
@jigglypuff johnnydep
 
 
2 hours later…
8:05 AM
@AntonMenshov filthy homework asker
 
8:35 AM
how can I specify a a specific range like if x is in the area of 12 - 20 == True , under, over == False ?
 
@roblox int or float?
 
float
 
12 <= x <= 20 works for both
 
ty
 
Best way to count words in a data set? Is Counter good or str.count() better?
cbg, btw
 
8:45 AM
str.count counts a specific word. Counter counts all words
 
Nice. ty
 
Can someone with Python experience tell me, if I have the following code.
 with open(self.filepath, 'rb') as f:
            raw = f.read(36)
            header = self.header_structure.parse(raw)

            raw = f.read(52)
When you call the read method a second time using read(52) does the read method continue reading from position 36 just after the position where the previous call of read(36) stopped reading, or does read(52)start reading bytes from position 0 up to position 51?
 
It continues reading where it left off
 
@Aran-Fey Great. Thanks.
 
>>> f.read()
'This is the entire file.\n'
>>> f.read()
''
"To change the file object’s position, use f.seek(offset, whence)."
etc...
 
9:02 AM
@JossieCalderon Thanks.
 
is @davidism still a mod here?
 
@faceless he's a Room Owner, yes
 
But room owners are still not mods.
@faceless But you should not ping people without good reason
 
10:10 AM
Every time I want to spread the good word about comment formatting tricks I draw a mental blank on the actual phrase and thus can't find the link. I'm enthusiastic but terrible at converting people when I can't even find the sacred text :(
 
comment box -> help -> learn more about formatting...
 
I would have hoped my brain had a capacity to just remember "comment formatting" but apparently not once I give it a few months
@AndrasDeak perfect! Thanks
 
@roganjosh Didn't close the page since someone posted the link a few weeks ago. It earned the right to living in its own, immortal tab...
 
An omnipresent tab :)
 
I could hack together a little userscript that lets you write [formatting] or whatever if you'd like
 
10:22 AM
I should be good getting to it via the "help" button in the text box rather than take up your time, but thanks :)
I think the problem with remembering the search term was that we spend so much time having to tell people how to format code in chat that "formatting" has an exclusive association with that task, rather than finding something cool
 
cbg
 
cbg
 
I don't get how marketing hasn't learned by now that the phrase: "It just works" sends shivers down my spine and most peoples who know what they are talking about. I guess, this just means that I am not the target audience for this github pages ad. But hearing It just works, makes me want to not have anything to do with it. And yes, I have been lied to too many times :D
 
It's kind of like some shampoo advert we have over here that says "a million people can't be wrong" which drives me nuts
 
It's like duh, have you heard about WW2 :D
 
10:30 AM
You don't even have to trial it with 2 million people on what our National Speed Limit is on our roads to disprove it
 
wait where do you live? And do you want to tell me that most people don't know the speed limit?
 
I'm in the UK. We work in mph rather than with km, and we have signs for 20, 30, 40, 50 but then we have one for national speed limit. That's 60 mph on single laned roads and 70 for dual carriageways and over. It's something like 60% of people that don't know that
It drives me crazy on "smart motorways" when they display the national speed limit sign and people just stick to 50 because they don't even know what the sign is telling them
 
Why do they stick to 50 when the global limit is different?
 
Because the smart motorway will transition from 50 to national speed limit. So they stick to the last speed limit they saw because they don't know the sign told them that it just changed
 
Well, in their defense it must be very exhausting to drive on the wrong side of the road.
 
10:36 AM
I'm going to pretend you didn't say that :P
I don't know what other countries employ this "smart motorway" concept but it's a monumental waste of time and money. I'd rather they played films on the screens rather than sit at standstill looking at a "40" sign
 
No idea what a "smart motorway" is, we have fixed speed limits
 
Every 200m or something, there is a set of speed cameras and screens displaying the speed limit. So the idea is that, when traffic starts, you have different portions of the motorway enforcing different speeds so you'll hit the "smart" section and it'll pull you down to 40 and then start increasing again
 
ah
way too smart
 
That smart motorway is definitely smarted than me, cause I still don't get it.
 
speed limit is adaptive both spatially and temporally
And there's a "defer to default" sign which is neither of the possible set limits. It's the default.
 
10:45 AM
This is the code i used to read 40 folders(classes), each class has 10 images and divide each classes into training and testing classes (from each folder 5 go into the training class and 5 into testing class).  How can i make this more better ?
    trainingImages = []
    testImages = []
    for Class in allClasses:
        path = folderPath + '/' + Class
        allImages = os.listdir(path)
        imageCount = len(allImages)

        # seperating training images
        randomlist = random.sample(range(imageCount), (int)(imageCount / 2))
The above code works perfectly fine. but i want to know if i can do this implementation better?
 
@MisterMiyagi traffic works a lot like a wave and can be modeled as such. That's why you emerge from traffic jams and wonder what the yam caused it. I guess it's a kind of controlled attenuation... but I'm not sure that's the word I want to use
Maybe dampening. This is why I'm not a physicist :/
 
from pathlib import Path

trainingImages = []
testImages = []
for class_ in allClasses:
    path = Path(folderPath) / class_
    allImages = [readImage(img_path) for img_path in path.iterdir()]

    imageCount = len(allImages)
    randomlist = set(random.sample(range(imageCount), imageCount // 2))

    for i, img in enumerate(allImages):
        list_ = trainingImages if i in randomlist else testImages
        list_.append(img)
@KhwajaHussamQuasmi Something like ^ that
Ideally the "split the list of images in two" part of the code should be moved to a function
 
@Aran-Fey ill try this out. Also can this be implemented using numpy random if i dont want to use more libraries?
 
Probably? Why avoid using a standard library, though?
 
11:02 AM
@Aran-Fey curiosity. like i want to implement my code with minimum libraries
 
"numpy" is not minimal. Not even close :P
but yeah, if you have numpy.random already then you probably don't have to import stdlib random
 
Err.. guys, what how does print(*<listname>) work?
like myList = list()
add items in it
and do print(*myList)
 
google "argument unpacking"
 
@AndrasDeak nice
 
So you just have to understand what the stdlib random line is doing, and implement that with numpy random
 
11:06 AM
Ah...Thanks
 
11:24 AM
Nothing like sitting bolt upright in bed at 5 AM with a solution to the problem that's been eluding one for a week
 
Nice! Was it an actual solution or a pipe dream one?
 
An actual solution to an actual problem that my actual employer pays me to actually solve
 
extra nice
 
Unusual for me, as most of my problems are nonsense related to punnett squares or whatever, instead of ASP.NET pages
 
but since you solved the problem on your free time, during sleeping, you should compensate by taking a nap during work hours
 
11:28 AM
Thanks to flex time, if I solved the problem while unconscious, then by definition that counted as work hours
Not sure how to log the duration in my time card. The clock in my dream kept changing every time I looked at it. I mean, normal clocks in reality do that too, but in a useful way.
Google tells me that REM cycles typically cap out at 1 hour, so let's call that the upper limit
I'll subtract 15 minutes for the time I spent frantically trying to find my locker in my old highschool while my teeth fell out
 
Unfortunately, Inception sets a poor precedent on dream time
 
If I was allowed to record hours in terms of how long they felt, I'd be retired already
 
I can't read in my dreams
 
Same
 
(and clocks are reading)
I wonder if that's some kind of aphasia because the higher-level brain functions needed for reading are offline.
 
11:36 AM
"Proceeding from the above meaning, we can conclude that the inability to read in a dream primarily means the inability to develop, change their views on life and gain new knowledge." Source
 
Agreed for digital clocks, but analog clocks are within the realm of possibility
 
@roganjosh I was hoping for a wikipedia link, but close enough
 
@AndrasDeak I went with a specialist site because Wikipedia can't always be trusted
 
Tangentially related: there's a popular tweet along the lines of "everyone has a cell phone these days, but has anyone seen one in a dream?". As of about a month ago, I have.
 
Did you see it before or after the tweet?
 
11:38 AM
After.
REM is similar to wakefulness, at least in comparison to any other phase of sleep. Speculation: higher-level brain functions are online, but produce garbage output as a result of garbage input.
 
I'm confused now. I assumed the "can't read" was a statement about how you can't research in your sleep but I suspect there's actually something in the fact that people don't dream of their phone
 
Research in my sleep?
 
Try* taking a cocktail of stimulants and LSD and see if the words melt in a way similar to dreaming
(*do not actually try this)
 
@AndrasDeak As in, your job involves reading research papers which you couldn't do whilst asleep. I think I misunderstood the tone of the conversation because I thought it was tongue-in-cheek
In which case, I don't believe Aunty Flo has any credibility. I linked that in jest
 
Ah, I get it. No, it was in reference to Kevin's remark about clocks not working.
I literally can't read in my dreams, so needless to say (or so I thought) clocks don't work either. But it's needful to say that, since Kevin's stance turned out to be "analog clocks are within the realm of possibility".
@roganjosh but yeah, I got that too :P
 
11:56 AM
I rate the credibility of dream interpretation in general as "mostly nonsense, with occasional nuggets of empirical truth"
 
I had a recurrent theme where I would turn a light on and it'd just be a faintly glowing bulb. Invariably, this meant that something horrendous was imminent. After years of this, I had a dream where I just changed the bulb and I've not had it since. I had some personal growth that I can't identify and I'm struggling to word it on my CV
 
If there are a million firsthand accounts of "I've been stressed lately, and having dreams about falling", there's probably a correlation there. If one dreamologer consults their tarot cards and announces that an inability to read means an inability to develop... More data is required.
 
I never understood the point of tarot, and I'm resistent to all kinds of superstition, but those are some nice designs
lol, what a typo
 
I was interested in the mystical as a preteen, but after a month of failing to develop telekinesis, even with all the assistance the ESP enthusiast message board could muster, I gave up on it
 
that's a tough one to start with
 
12:08 PM
I'll still have dreams where I can move things with my mind, and I'll always attempt to replicate the action when I wake up. But that's just good science.
 
it's better to discover your new-found powers in the controlled environment of your bedroom
 
With my family and my best friend, we have a word each and we're all committed to keeping it secret and safe. Whoever remains after the first death must go to at least 3 mediums and, if that word isn't said, then we can be convinced that it doesn't work. If it does work, it's not something to evangelise about but the remaining people would at least know
 
I dislike movies where the nerd character encounters something paranormal and they dismiss what they're seeing as impossible. The correct reaction is: "cool, now let's try to get this to work in a controlled setting"
"The ghost probably won't leave the old mansion. Can we build a lab in the mansion?"
 
or disassemble the mansion and rebuild it in a lab
the ghost of theseus
 
heh
 
12:17 PM
If I had proof of a legitimate medium, I would totally evangelize about it. Twist: all bonafide psychics foresee that becoming world-famous is more trouble than it's worth, so they only give authentic readings to people that won't evangelize about them.
People like me that enter their shop will get the boring "I see a mysterious stranger in your future, and your dead grandma says hello" treatment
 
Thing is, there's no national buy-in so I'd just end up being the new David Icke or something
Nor could there be. I disclosed this plan in my local pub once and it almost ended with people fighting because apparently the whole concept was "sick". I just saw it as a way of monkey-patching the inevitable
 
Wait, what concept?
 
My previous post
The concept of discussing "when one of us dies" is unpalatable to a lot of people, it turns out
 
Oh, they thought it was sick. On first read I thought you thought something was sick and it didn't make sense.
 
@roganjosh huh, I thought it sounded neat
 
12:44 PM
The kicker is finding a word that wouldn't come up in general conversation but could be imagined by the medium if they can only channel images :P
 
Hi
I have a gist:
https://gist.github.com/yoelpiccolo/364f5178e1990a222b1604bf2181da5a

The purpose is to create a grid of raindrops on the screen.
Then move the fleet down, like falling rain.

The first stage, creating a grid of raindrops, is fine:
I get two rows of raindrops, four raindrops in each row.
 
your whitespace is all over the place
maybe even a mixture of tabs and spaces
I very strongly suggest that you start using 4 spaces per indentation level, or just tabs at least. Never both.
I think your raindrops_falling.py has broken indentation, but I haven't run it
 
I need help
creating a grid of lines is going fine, but moving them down makes problems
a grid of raindrops, sorry
 
you are getting help
 
trying to make the raindrops fall, the second row disappears, and only the first row falls as expected, instead of both rows wil fall down together.
I will try to remove the whitespaces later, your comments help me. Thanks :-)
I use only tabs for indentation anyway.
 
1:10 PM
I'll be glad if someone runs it to find out what is the problem.
Thanks.
 
Your code has at least one syntax error (due to incorrect indentation). There isn't much we can run
 
Where is it?
I succeed to run in my computer.
 
Sorry, misread some parts.
Line 32 of raindrops_falling.py is inconsistent with the previous indentation.
 
yes, it has to be indented.
 
So fix it.
 
1:19 PM
Please consider to run black on your code to get consistent formatting. This will make people more likely to try and understand your code.
Barely related side-note: "Black doesn’t provide many options." followed by an entire page of options is thought-provoking...
 
ok.. I just have to go out...
continue fixing it later
 
@MisterMiyagi "this isn't even my final form"
 
If saw this piece of pseudo code, how would you interpret it?
for i in num_entries..1
Any ideas?
 
This again?
 
is the range counting to 1.
 
1:34 PM
Are you asking because you're curious how people interpret it or because you're trying to figure out what kind of behavior it's supposed to have?
If it's the latter, rather than trying to guess the meaning of a line of pseudo-code, it would be better to understand what the goal of the whole code is
 
@MyWrathAcademia didn't you ask that before?
 
May 25 at 9:54, by MisterMiyagi
I'd suggest to look at the source code, or ask the maintainers.
 
Face Recognition system gives each output on different form how can i make it all show in one form?
 
What kind of "form" are we talking about? That's a rather abstract word
 
The code base is no longer maintained so I couldn't ask the maintainers.
 
1:36 PM
@Aran-Fey like a window
 
@MyWrathAcademia this has already been discussed
If you can't get hold of the maintainers then I don't see what more input you think you'll get from here from last time
 
@KhwajaHussamQuasmi In that case it depends on what face recognition system you're using (and how you're using it)
 
@Aran-Fey Both. Knowing what the consensus is would give me an idea of what the person who wrote it was thinking.
 
It's like asking "I'm trying to use a library, but I won't tell you which library, to do X, but the library instead does Y. What am I doing wrong?" It's impossible to answer without knowing anything about the library
 
@MyWrathAcademia Then why are you trying to use it? Relying on unmaintained data formats is even more technical debt than relying on unmaintained libraries.
 
1:43 PM
i want to show my output in the same window but i couldn't figure it out. i have 40 test images so it open 40 windows of each test
    labels = []
    for j in range(processedTestImages.shape[1]):
        min_index = 0
        min_d = np.inf
        min_index_img = np.inf
        for k in range(processedTestImages.shape[0]):
            if (subspace_dist[k, j] < min_d):
                min_d = subspace_dist[k, j]
                min_index = k + 1
                min_index_img = j
        labels.append(min_index - 1)
    pclass.append(labels)
    f, ax = plt.subplots(1, 2)
    ax[0].imshow(testImages[i][0])
    ax[1].imshow(trainingImages[labels[0]][0])
 
What is i?
You have an outer loop that you haven't shown. You need to pull plt.show() out of that loop
 
@roganjosh the above code is in a nested loop. ill post the whole loop
 
I don't need it
 
Hello
 
@roganjosh i did but it gives the same result 40 different windows. how do i have one window but the image and labels should change and show that of the next test\
 
1:49 PM
The behaviour you describe is exactly in line with having plt.show() inside that loop. If I normalise the indentation to being within that loop not shown, then you just need to move plt.show() back one level
 
cbg all
 
Is there any way to get Tikinter scrollbar thickness?
 
We really need a flag/close reason: "we're not here to do people's homework" (my bots are going nuts identifying possible matches to my assignments which are just highschoolers)
 
@roganjosh same happens outside the loop too but all the 40 windows come at once then after some time
 
In that case, I suggest building an MCVE because I'd assume it was to do with imshow but you're defining f, ax = plt.subplots(1, 2) inside the loop too
 
1:54 PM
@MisterMiyagi Very good point.
 
@LinkBerest Homework isn't banned per se. If you find one okay question, you can dupe-close all the others to it, though.
Remember to provide a slightly faulty answer that isn't obviously wrong.
 
@KhwajaHussamQuasmi I have a feeling that building the MCVE will be enough to debug this one yourself
 
@roganjosh on it
@roganjosh ill do my best :)
@MisterMiyagi people do that?
 
Found a new gem for challenge question. The OP was adding corner cases they just made up, which made the question unsolvable.
 
@KhwajaHussamQuasmi I really hope not
Homework question or not, I'd still call it out if I saw it in an answer
 
1:59 PM
@MisterMiyagi It shouldn't be banned (just held to the same standard as asking about a work assignment your stuck on) but we don't have a "no effort" reason anymore and this should be an easy case for a "no effort homework flag" (Java tag had several copy and pasted homework assignment itself today)
 
Just close them as "needing details", since it's not clear what the OP's problem is.
 
"needs details" tends to still send it to the wrong review queue and end up in the standard loop
 
@LinkBerest one would be excused for thinking that the newer close reasons were designed to have giant holes
 
though that is the flag reason that would make the most sense :)
I should give a nice functional programming answer to a few of those Java ones though >;)
 
@LinkBerest I wouldn't mind an RTFM/NoEffort close flag, but alas, that's the way it is these days.
@KhwajaHussamQuasmi Not that I know of. Exemplary solutions often are tagged in some non-obvious way, though, making it possible to identify copies.
 
2:05 PM
@AndrasDeak Does needs more focus put it in a better review queue?
Yeah, it be nice :) but asking for that has been shot down enough times by SE, I'm done asking for it MisterM.
 
@LinkBerest close votes are reviewed once closed?
 
with flags, I deleted my account with actual CVs
 
You've lost me, sorry
I'm reading that as "I flagged my own account to death"
 
huh? Andras's comment was to someone who wouldn't have close vote priviliages. My current account (Link) doesn't have CloseVotes (on SO) and I deleted my original account because of reasons so I would have to flag stuff at this point as well. So wondered if that reason helped it avoid the standard review loop
not a big deal really, I don't think there is an optimal solution (given current tools/options)
 
2:36 PM
@LinkBerest only one close vote queue
Any close flag triggers it
@roganjosh <3k get close flags. And all flagged/voted open questions go to the close votes review queue
 
oh, with flags too; nice. (did not notice they updated that - have to read later thanks :)
 
@AndrasDeak My browser stalled on loading the link, so I didn't realise it pointed to a comment, I just saw the banner and you were the final closer. Given that, I found it weird that you were pinged about it. My bad
 
3:00 PM
Nothing like getting an error code which returns only Russian and Chinese message boards when you google it
Not even DenverCoder9 has had this problem. Just his cousin, MoscowCoder9.
 
was the error code in Russian? (I've had that before - and Korean)
 
Thankfully not
 
stupid localized Android apps
 
3:15 PM
ok..
 
The best case scenario is if the problem is caused by a race condition. I don't think the previous sentence has ever been composed before.
 
I added a comment with link to xkcd 327 to an answer that had SQL injection, accepted, and with asker commenting that "IT WORKS!!"
my comment was removed.
I am outta here.
 
sigh - I use that xkcd as the example of SQLInjection in every single class I teach that includes SQL. It simply is the best (easy to understand) example that exists
 
A comment that contains a link to xkcd 327 and nothing else is about as sassy as lmgtfy, so I can see why a mod might look at is as unconstructive
 
and SQLINjection remains what the #2 or 3 on "most exploited weaknesses" list?
 
3:21 PM
Writing a constructive comment and then adding xkcd.com/327 to the end of it is less justifiably removed
 
anyone familiar with sqlalchemy
need some help please
 
oh, actually its number 1 as of 2020 (kinda surprised by this - thought others would have been higher)
 
@THus anyone familiar with the room etiquette?
 
sorry im new to this
what have i said wrong
 
>Ask your question directly. Avoid asking if it's okay to ask, or if anyone knows about a topic. Users may want to see your question before speaking up, and users who join later can see it.
 
3:25 PM
ok thank
 
You know I'm really finding I like SQLAlchemy for spinning up small graphs using its ORM (ones too small for a full GraphDB that I just need to query a bit for cleaning)
 
Even if someone is familiar with SQLAlchemy there's no guarantee they're familiar enough to answer your question. So skip the intro and just ask your question
 
@LinkBerest it's just tradition to use "too broad" for "made no effort", unless it can be closed as unclear.
as in "the asker needs to be taught <technology> which is too broad"
 
Yeah, I just didn't realize they also redirected the flags to just go to close queue to avoid the whole review loop. Its been a while since I used flags on SO and I missed the update due to grading 250+ students with all new "we had to go online only" rules - nightmare :P ;)
 
"To avoid the whole review loop"?
the only update that has happened was the rewording of the reasons
The mechanics has always been the same: <3k have close flags, >=3k have close votes. Close flags are only useful for putting questions in the CVQ. Close votes do the same, but also add one vote out of 3 (formerly 5).
the flags also help differentiate between close reasons when you filter in the CVQ but that's extra niche information
 
3:32 PM
As I recall, might be wrong, flagging something lead it to Triage then people would say "needs edits" which would mean "help & improvement" queue then those would say "cannot be helped" which somehow lead to "Triage" then repeat
 
@LinkBerest threw me for a minute with the new name there... - how you been?
 
@LinkBerest I don't think it worked that well...
I guess it more goes like "oh 3 people said this looks OK so you should upvote it so that it doesn't get the roomba it deserves."
 
lol I was shortening the process for chat
@JonClements yeah, its been good. Teaching, living on savings, writing, surviving - weird times dog, weird times :)
 
@LinkBerest very weird times indeed... good to see you about :)
 
i couldn't find anyone tutorial or something close enough. can anyone help me out with this
https://stackoverflow.com/questions/62068661/update-plt-show-python-to-show-all-results-on-same-window
i found something related to my issue but it was on graphs
 
4:00 PM
@JonClements yeah, I have two classes I'm due to teach next Fall but its so up-in-the-air right now I decided it was time to polish off the old CV & portfolio (for Ph.D applications/just straight work) which often times finds me in this room ;) :)
 
@KhwajaHussamQuasmi We don't weigh in on answering questions that are freshly posted, but here is a suggestion on how to improve this question: delete EVERYTHING in your posted code, except that part related to showing plots one at a time. Hmm, you will need something to plot - create a plot at (x, y) = (i, i) where i is the range from 1 to 10. This will demonstrate your problem without pulling in all the extra distracting stuff.
 
cbg all. Random question: Can an OP select an answer on a closed question?
 
When your questions gets answered perfectly :D stackoverflow.com/questions/19125722/…
 
@LinkBerest that's non-close flags such as very low quality
@MattDMo sure
As far as I know
 
is this better?
https://stackoverflow.com/questions/62068661/update-plt-show-python-to-show-all-results-on-same-window
 
4:08 PM
anyone have any ideas how that could exceed a time limit?
 
@KhwajaHussamQuasmi please read the room rules which I know you've been directed to before
 
Darn. This is the question I'm thinking of. Really low quality, gimme teh codez, equally low-quality answer from sub-100 rep user. Said user claims they'll delete the answer, but haven't, and I'd hate for them to be rewarded by the OP. Oh well...
 
ignore my question
thanks
 
@Permian but I can't!!!
 
4:11 PM
@KhwajaHussamQuasmi No, I meant something like this:
for i in range(10):
    # do something that creates a plot at x=i, y=i
    plt.show()
 
with all negative rep that post might just be deleted before OP accepts
@Permian I was actually reading your code right now to see what could be the issue but with that attitude there's not much incentive for me to do that now
 
@LinkBerest sorry i thought i had fixed it
but i hadnt :(
 
Hey people o/ could I ask some linux/python people for some ideas I am really struggling with something </3 (sorry to just slide in)
 
i added some edge conditions but this didnt help
 
4:15 PM
@LinkBerest i read the rules. i'm a little unclear why i was directed to them? unsolicited ping?
 
@TheHidden hello, please read sopython.com/chatroom and see for yourself
 
@KhwajaHussamQuasmi Read the first bullet point under "Asking A Question"
 
sorry about that
 
@Permian Not an issue with the link (it works) its an issue with asking a question with people then saying "ignore my question; thanks". People are not going to help when you express that type of attitude
 
it was to save people time
 
4:18 PM
@LinkBerest it's Permian, they always work hard to be problematic
 
@AndrasDeak thanks, sorry been a while since i used one of these chat rooms
 
@TheHidden well, each room is different anyway
 
ah, garlic it is then
 
Ive been trying to find information on bash/ansi and converting it to html through python... but I think im getting the encoding all messed up and BAH I just dont even know where to begin, I have asked some questions on SO but Im so bad at questions I need a conversation with someone
 
bash? As in the scripting language?
 
4:24 PM
sorry bash shell. /bin/bash

I spawn a bash shell in pexpect spawn('/bin//bash') get the output and then convert it to html but get a load of weird characters as it cannot process them all it seems
I also just spawn nano sometimes for an example
 
to html5 or is there javascript/jquery/etc in there as well?
 
@TheHidden code fences don't work here, alas. Please see our code formatting guide to chat and practice in the sandbox if necessary
 
Hmm, my Zoom meeting went on so long that it auto-exited. I like that feature.
 
I hate that feature (but I use conferences to teach so its a different thing) ;) :P
 
4:27 PM
@LinkBerest Im just trying to get it to any front end code, i would even transfer it in raw bytes if needed and convert on front end. I see lots of options for node stuff but trying to keep vanilla js at most on front end
 
I do like the digital background when I have a bunch of random stuff on my whiteboards (so I don't have to worry as much that I have some proprietary info up)
 
@MattDMo yea i am using that! works well for most part but seems to want you to send it to a file, if you dont send it to a file you get some weird encoding
thats the output from your suggestion @MattDMo and im not sure why it has all the extra trimmings around it. its like double encoded? or something
 
What does the raw output look like? You might be able to tell by looking at that what the garbage is.
 
sure gimme a second
 
Also, have you tried running something simpler through it, like ls --color=always?
Does nano have a blinking cursor? That might be it...
 
4:33 PM
oh
maybe so yes
so maybe easiest thing would be to just trim out the garbage? or is there a soloution to keep everything?
 
If it's a consistent pattern, trimming is probably the way to go.
This issue may be what you're encountering. Unfortunately, it looks like there hasn't been any work on the repo in 2+ years...
 
awesome, if need be il build my own js code if I can identify it manually or trim the space inbetween tags
<3
helps me a lot
 
4:49 PM
glad I could help
 
I've been combing through SQLAlchemy tutorials (pure Query over ORM/core) to use for my class and its just depressing how bad those are on the whole - bad here meaning rampant with SQL Injection problems. I reject my earlier statement: that being #1 (at least with flask) makes perfect sense now
 
ugh...thanks for reminding PHP is still a thing :P ;)
also, that's awesome - thanks for the link
 
the data is a bit dated by now, although the project is on github
 
@LinkBerest dont be mean to PHP :<
 
4:56 PM
@AndrasDeak, do I create a new room to ask a stupid question (I am not asking to ask) or do I just ask it here?😅
 
I hate PHP but that has nothing to do with PHP as a language (I used to hate JS but that had nothing to do with JS and everything to do with W3 schools)
 
its the lazy developers!? RIGHT RIGHT? D:
 
@d4rk4ng31 stupid questions are best left unasked anywhere. Reasonable questions can be asked here as long as it's not asked on the main site in parallel.
 
Its the level of bad tutorials & lessons & questions (as I was once a Perl dev - I know Lazy is a virtue)
 
XD
Here I go:
How does one pass modifiable reference in python?
Like:
for string in strList:
    if len(string) is not 16:
	adjust(string)
The string function should now add extra spaces in the string and modify the original string.
 
4:58 PM
@d4rk4ng31 in general you can't
 
Strings aren't modifiable
 
hmm... then what are my options?
 
string = adjust(string)
 
and modifying your list ^
 
oh, right, I didn't notice that part
 
00:00 - 17:0017:00 - 00:00

« first day (3512 days earlier)      last day (1427 days later) »