yes i want to control keyboard and mouse basically Google Chrome as i have made my own rapportive extenstion in python which sometimes get down due to internet connectivity issue so i just want to refresh or start the Google Chrome again and load that
I don't think anything like that already exists, but you can easily roll your own. Controlling the mouse is easy, controlling the keyboard is easy, and sending messages is easy.
i have 3 tables for analytics, t1 with [clicks, revenue] by hours and t2 with [clicks, revenue] by day, t3 with [clicks, revenue, campaign] would u rather have it all in one table and do the math, i chose to have t3 because if i store t2 with campaign, and add it up, what if user deletes the campaign, i would like to remove all those rows, im not sure if im doing it right here.
pycharm bug of the day: PyCharm decides that my project that I used yesterday, now doesn't have project interpreter configured. I add the interpreter and it scans everything for 5 minutes before I can start "working"
@IljaEverilä i don't know what you're talking about but it doesn't help. This is the example setting class attributes stackoverflow.com/questions/2519807/… I just don't want to define manually form by form — TomSawyer16 mins ago
Ok in fairness one of the "functions" is actually a... function delegate thing... Which C# uses to simplify the process of using functions as first-class objects in a statically typed language. So both variables do need to exist*, I just don't like the naming strategy.
(*Well, there might be a way to do what this code is trying to do using only one object, but it's not completely trivial. The two-name approach is what you'd get if you were trying to get something running with the least amount of labor & time)
Readers tend to view those as both opinion-based and too broad. They don't want to have to explain everything related to the concept in one huge post, and they don't want their labor to be rewarded with a comment saying "this is well-written but I still don't get it :-("
Most of all, "I don't understand X" is not a useful question. If anything, you have to ask "I don't understand X because of Y". There are dozens/hundreds of explanations available on the internet, and you're asking us to write another one specifically for you without explaining why you didn't understand the other ones.
@Prakhar That sounds like it would be more likely to be on-topic in ProgrammingSoftware Engineering. Perhaps you could get help in formulating a good question in one of their chat rooms.
In my experience, answerers most enjoy writing answers that they can verify as correct before submitting them. The solution to "I wanted output X but I'm getting Y" can be verified by running their proposed code and seeing if it produces X; the solution to "I'm confused about Z" can't be verified beforehand unless the OP is physically in the room with them and they say "having read this text, I am no longer confused about Z"
Rule of thumb: problems that take place in the code are more well-received on Stack Overflow, compared to problems that take place in the asker's mind
I kind of went off on a tangent there since the question you have isn't really the kind of question I was talking about. Your question has more concrete details, which is good.
I don't know what the downvote is for, specifically... Maybe they want you to provide a more formal definition of your table schema. Maybe they want a series of CREATE TABLE commands that they can run in their local environment and play around with.
I'm not really sure what Software Engineering's standards of replicability are
... Or maybe they think it's just off-topic, if the comment there is an indicator of general sentiment
Ya, then they'd say "this sounds like it would be more on-topic at DBAs" and hopefully when you go to the DBAs chatroom they won't say "this sounds like it would be more on-topic at Stack Overflow" ;-)
I get the feeling that this OP still doesn't really understand what's wrong with their original code, but at least they seem keen to learn. stackoverflow.com/questions/46586008/…
Hmm, trying to word "the answer to this question will inform the final solution" without actually using the term "final solution". End-state solution? Meh.
Hi guys, I have a question about "activation" of a python program. I'm talking about obitools. This section talks about activating obitools before being able to use "functions" within them. Is there a way to have this always loaded so that I don't have to activate the tools every time I use them?
Background information: the Widget Search page crashes when it tries to display a Widget with a negative number of tines. In an email, I asked management "should negative tine count be considered a data integrity problem, which we should fix at the DB level? Or should we accept it as valid, and fix the problem at the display layer? The answer to these questions will inform the final solution"
Then wait 6 to 12 months for the end-users to use the page (something only 1% of users do), trigger the corner case (which only happens 0.1% of the time), and complain about it (0.01%)
@AndrasDeak As Kevin said, using "inform" like that is perfectly cromulent, although a little obscure, and it sounds very formal. I'd probably say "impact", although that has a more American feel and "inform" has a more British feel. IMHO.
In hindsight I probably shouldn't have used "inform" in the email, because not all of the recipients have a great track record of understanding English idioms.
en.wikipedia.org/wiki/Lisa_the_Iconoclast «The episode features two neologisms, embiggen and cromulent, which were intended to sound like real words but are in fact completely fabricated (although it was later discovered that C. A. Ward had used "embiggen" in 1884).»
I wonder if trophy designers take into consideration the fact that people may want to drink beer out of them, and choose resistant/cleanable materials accordingly
You don't want your cup to tarnish immediately as soon as a recipient does something to it that any recipient would want to do
@toonarmycaptain Google tells me that it's safe to clean gold with rubbing alcohol, so I assume drinking alcohol also has no negative effect on gold. I don't know about any of the other ingredients though.
I know that sometimes people will put engagement rings in champagne glasses, as a kind of cutesy surprise-slash-choking-hazard. They probably wouldn't do that if champagne was bad for gold and diamonds.
Then again, they do it in spite of the fact that it's bad for human airways, so
A few days ago I made the mistake of agreeing I'd have a look at a difficult problem involving a complicated mix of data analysis and reverse engineering. Unfortunately it has a pretty short deadline, and it's sufficiently gruesome that I'm going to have to take it on myself.
I'm not sure what the moral is. It could be "don't agree to look into things", but it's possible that the only thing which would have changed if I hadn't agreed would have been that I'd have less time to work but still get stuck with the job.
Ah, "noble metal", that's the term I was grasping for. I had gotten as far as "probably something to do with its position in the periodic table" mentally
> An English professor stood up one day and said, "Double negatives make a positive, for example, 'I did not not take out the trash.' But there are no double positives that make a negative". Someone piped up from the back of the room, "Yeah right!"
I'm curious to know if there is any history between the usages of "yeah-no" and "no-yeah" in English, and if the usage of the two terms or an equivalent is used in other languages. Also, is there a distinct difference in meaning between the two phrases in terms of usage and context or are they in...
hi, I'd like to substract two time objects, but I'm getting weird result : (0001-01-01 15:30:00) - (0001-01-01 14:13:28.848399) -1 day, 22:43:28.848399
The noble metals Wikipedia page says, "Platinum, gold and mercury can be dissolved in aqua regia". But mercury is a liquid, so how can you dissolve it? :thinking emoji:
Probably because like most of us they're making an effort - and that effort ends out explaining what they do know and what they don't, or they misunderstand
@JacqueGoupil Specifically accessing attributes whose name start with an underscore? If you were the author of both files, I'd say it's fine, but since it's a third party class, I would advise proceeding only if you're prepared to update your class if necessary every time the library publishes a minor update
@AndrasDeak I don't normally think of alloying as a chemical reaction, but I guess it sort of is, since the energies of the metals' delocalized electrons get affected.
@Kevin THink along the lines of pouring a bunch vegetable oil into a pot of water - it doesn't dissolve into the water, it remains distinct, and separates again when allowed to settle even if you mix it by stirring a lot. Mercury in aqua regia doesn't have this behaviour. Which means it's less work if you're cooking with it and aqua regia.
@AndrasDeak ooooh yeah, my chem prof in university did his PhD on fluorine. He taught us why that should scare you more than anything else, pretty much ever.
Hydrochloric acid? Yeah, it's gonna burn, but wash that stuff off
Hydrofluoric acid? You get one drop of that on your skin, and it's not hydrophilic like hydrochloric acid. It likes skin more than water. Know what it likes more than skin? Fat. So it will absorb through your skin into your fat. Know what it likes more than fat? Bone. So it will absorb through your fat into your bone. Which it will also dissolve.
@AndrasDeak Another fun thing: dissolve sodium into mercury, making sodium amalgam, and then let that react with a concentrated aqueous solution of ammonium chloride to produce so-called ammonium amalgam.
a while back the mercury-filled ones were banned in Europe, but it turned out that there are alloys such as galinstan (Ga+In+Sn) that are liquid metals and only a bit more tedious than mercury en.wikipedia.org/wiki/Galinstan
"bit more tedious" means that unlike mercury it wets glass which is a bit of a PITA, but it's manageable
so I was really happy to learn about these because I just don't trust crappy electronic thermometers at all
Sometimes I see people on TV using digital thermometers. They're typically lying in bed, and they pull the thermometer from underneath the covers to look at it, and I'm like "Do I want to know where that was previously?"
The only receptacles for thermometers I'm familiar with are mouth, nose, and, --cough-- south of the border
Hey guys, quick question, I want to add a column in the first data frame of a nested list. I m doing, `for i in range(len(full_list)):
full_list[i][0]['anomaly'] = anomalyIQR(full_list[i]['log_rates'], 3)`. What am I missing?
@Sotos Looks like syntactically correct Python to me. If you're getting a runtime error, it may be necessary to provide an MCVE before we can diagnose any more deeply
This is one of those problems where conveniently we don't need to see the proper indentation of the original code, because you don't actually need a newline between a for loop and the following statement if the block is only one line long
There's only one possible interpretation of the intended behavior that isn't "crash with an IndentationError"
Your object either doesn't like being indexed with "anomaly", or it doesn't like being indexed with "log_rates"
I notice that full_list[i][0]['anomaly'] has three bracket pairs, and full_list[i]['log_rates'] has only two. I wonder if that has anything to do with anything? Can't say for sure without knowing the complete composition of full_list
@PM2Ring I've probably learnt more chemistry/biochem from his blog than I learnt in highschool (in class, anyway). That category there is also a short list of things I'd like to see for myself if I ever become wealthy.
Huh... I never noticed that! You definitely get some street cred for taking an actual photo. Or at least doll photo cred... maybe you don't want that. Sorry, I'm rambling. That's cool!
But I can see it is confusing at the smaller scales.
@piRSquared Heh, I didn't take the photo ;-) It was an internet nab.
Story time: Once upon a time an OSS project founder left me a very generous LinkedIn review, that started with the line Invisible Framework Coding Ninja. I made that line my tagline almost immediately. When I joined Stack I wanted to use that tagline theme in my avatar image, but didn't want to come over as aggressive either. So I searched for cute ninja and similar keywords, and this image came up as a candidate.
5
I've stuck with it ever since. But it isn't mine exclusively, and there is one other user that has been using the very same image for longer.
@PM2Ring you can test lengths that are not multiples of 4... Not sure if that is helpful though. I might have another function to test. Lemme see if I can whip it up
@piRSquared Hmm. I guess eliminating lengths that are not multiples of 4 would be a good initial filtering process. OTOH, my tests simply assume that the input data length is a multiple of 4.
I dear. I posted a clarification comment on a new question and then the OP started asking me stuff related to a question I answered yesterday. A quick check revealed that it was the same OP, so I told them to ask about that stuff on the old question. But now I realise that the new question is essentially a follow-on from yesterday's. And just to add to the confusion the OP decided to change their user name a few minutes ago.
I had a problem in the C# room the other day that was solved by "have you tried googling C# <obvious term for exactly what I needed which would have occurred to me with thirty more seconds of thought than I gave it>?". It's interesting to have that conversation from the other end.
@Kevin I'm somewhat worried that the induction plate would be less than happy if I put too small of a thing on it. If it's large/dense enough it might trip the "is there anything sufficiently large on the plate?" sensor, but I'd be worried that it damages the plate