« first day (3781 days earlier)      last day (1168 days later) » 

4:45 AM
How do I embed unicode in a string literal? For e.g I have two unicode chars with values 2350(म) and 2381(्) and wish to include them in a string like x = 'helloम्' However, I would like to do this without typing out the actual uniocde strings and use their number representation
 
 
1 hour later…
5:51 AM
This is one way to do it: 'hello' + chr(2350) + chr(2381) I'm curious to learn if this can be done differently.
 
6:20 AM
@toonarmycaptain yep massive time sink
 
@linuxfan The default encoding for Python 3 source files is UTF-8, so that assignment to x is valid; alternatively (which is what you might be looking for) is to use whatever escape sequence or method as documented in the linked section.
 
 
3 hours later…
8:51 AM
Finally, physicists got round to the toilet paper dilemma. Tis the start of a brighter future :)
 
@roganjosh just think we could have made progress on that sooner if we weren't faffing around thinking about black holes and sub-atomic particles and all that :p
 
No kidding :( Oh well, maybe those learnings fed into solving this mystery
 
probably the lockdown and people stock piling loo roll has helped as well - some science guys had a surplus and thought umm... should really clear up some space - I don't need all that loo roll... I know what I can do... :p
 
9:54 AM
@linuxfan Do you mean \u escapes, as in "\u2350" == "म"?
@roganjosh Just logged in only to upvote these. Scientific rigour must be rewarded.
 
@MisterMiyagi I was pondering that... but the \u2350 escape takes 4 hex digits which isn't the same character as using chr(2350)...
 
10:13 AM
what is Quabr? I just saw my ques that I posted on Stackoverflow, copied as it is on Quabr...Came across it when was googling for something similar
original question
1
Q: How to convert to dynamic type/ apply multiple functions on same 'pack' in KQL/Kusto

pyeR_bizI am absolutely in love with ADX time series capabilities; having worked tons on sensor data with Python. Below are the requirements for my case: Handle Sensor data tags at different frequencies -- bring them to all to 1 sec frequency (if in milliseconds, aggregate over a 1sec interval) Convert ...

 
@JonClements Right, sorry. That should have been "\u092e" == "म".
 
@pyeR_biz There are some sites that just scrape content from SO and other Q&A sites.
 
ok...was creepy
 
10:33 AM
@MisterMiyagi Can't wait to see what the next topic is - we might be on a roll here. ... I'll see myself out.
 
 
2 hours later…
12:43 PM
@roganjosh needs more cats
 
I dread to think of the "discoveries" made if I were to let Monty near our toilet roll. Actually, I don't even have to speculate; I've seen it :/
 
1:18 PM
I can attest that 2 out of 2 murder beasts have no interest at all in murdering toilet rolls.
Either that, or they have become frighteningly good at burying the bodies.
 
Oh. Monty took it upon himself to do a little re-decorating when he got the opportunity with one. It... wasn't to my taste
 
1:39 PM
True art is not bound by such mundane ideas as "taste". Or "who is going to clean up this mess?!?"
 
@MisterMiyagi are they installed the right side up?
 
The murder beasts are always right side up.
 
@MisterMiyagi unless, of course, you strap some buttered toast their back, butter-side-up. Is there any physicist around today that disputes that this is a perpetual motion motor?
 
physicists are not all what they used to be
hopefully no flat earthers yet ;)
 
1:55 PM
Have you considered the fact that we might just be accelerating upwards at 9.81 m/s/s indefinitely? It's quite a compelling argument! (one day I might just run that through a calculator to see just how fast we're actually apparently going "up") :P
 
just make sure to account for relativistic momentum, assuming that's still on the table
 
Seems to be about 1,546,840,800,000,000 km/hr. Seems cromulent.
 
I'm still convinced that at least 50% of FE people are trolls having a laugh at the other FE people.
@roganjosh Take that, Einstein!
 
@MisterMiyagi probably. But even if the ratio or real flatearthers is 5%, it's a startling number
 
@MisterMiyagi Yes, I want to the \u notation to embed unicode bytes within the string literal
 
2:05 PM
Oops, I think that was actually km/s, not km/hr. I best check my sums before I really drive the point home to Einstein
 
@linuxfan did you see metatoaster's earlier message telling you that you can just embed those characters directly?
 
AAB
2:21 PM
@ThiefMaster hidden form on some other website? like a normal POST request?
 
 
2 hours later…
4:38 PM
think I've already said, but 3.9 being able to do:
with (
    open('something.in') as fin,
    open('something.out', 'w') as fout
):
without it being a syntax error now is awesome
 
Wait, why was that a syntax error? with couldn't span multiple lines or something?
 
@Aran-Fey yup
At least I think the parentheses were OK. Not sure.
 
it got confused about the parameters being a tuple or something I think
 
ah, that sort of makes sense
 
and it's not uncommon to want 3/4 contexts at the same time... and while I'm not a stickler to 80 / 100 character limits for a line... being forced to do nearly 200 (or just in a weird way) - just glad that one's fixed.
 
4:59 PM
@JonClements that's going to be in 3.10, isn't it?
 
@MisterMiyagi nope that part is fixed in 3.9
 
nice
 
5:53 PM
@AAB yes
 
6:11 PM
@ThiefMaster this is the most around I've seen you here for a while... you all good?
 
 
2 hours later…
7:56 PM
yeah, just not that much into SO lately - still have this room as one of my pinned tabs though ;)
 
AAB
@ThiefMaster thanks. I need to read a bit more on this :P
 
8:23 PM
@ThiefMaster always good to see you around - you're always welcome - don't be a stranger.
 

« first day (3781 days earlier)      last day (1168 days later) »