I don't know why they went that way :/ I haven't had chance to go through all their different styles, maybe some are more rational. At least it does like 95% of the heavy lifting and the rest is search+replace
Oh, and thinning down the border on the left, because why on Earth do you want a wonky bounding box? :P
Hi, i was hoping someone can point me in the right direction, i have images and I want to select out any that have any text in the image at all. i have tried to google but not sure what to look into?
Just fyi, prepare yourself to invest some amount of time in getting such a solution up and running. It's not as trivial as it may appear at first. Spend some time getting familiar with how images are actually stored and represented, that will help you get a better understanding as you go along.
Scientists say that thinking burns calories. A headline like that could solve quite a few issues
Since I'm bored, trivia question: Do you know what a calorie is? People talk about them all the time in the UK (and I assume the US) but I wonder how many know what that unit actually is.
Ha, well yeah, if we just did things with water all day, it'd be peachy :P It's also not great because KJ/kg.K changes with water temperature, so I find it an odd unit, frankly
But calories are more annoying, due to the Calorie == kilocalorie of nutritionists. Fortunately, the food people here in Australia switched to kilojoules years ago. But when I was doing science in high school we used calories not joules.
I still remember a couple of things in calories: water's latent heat of fusion is 80 cal & latent heat of boiling is 540 cal. Once again, I can't remember if that's per mL or per gram.
All of these values are tabulated and it's a must-have for a chemical engineer. Boring as pages of data may be, it's important for things like boilers and they're everywhere from homes to mega-factories
@roganjosh That's one of the great things about the Net, that it makes it easy to access vast amounts of tabulated data, lots of it for free. When I was in school, I used to browse through the library's copy of the CRC Handbook of Physical and Chemical Data. :)
@roganjosh Yes, of course, but we were discussing that 1 mL of liquid water has a mass of 1 gram.
> At the bottom of the trench the water column above exerts a pressure of 1,086 bars (15,750 psi), more than 1,000 times the standard atmospheric pressure at sea level. At this pressure, the density of water is increased by 4.96%
It isn't very compressible, no, but you can't rely on a single figure for everything. The fact is that it does change with pressure, so does its vapour pressure and heat capacity
> "Decree on weights and measures". April 7, 1795. Gramme, le poids absolu d'un volume d'eau pure égal au cube de la centième partie du mètre, et à la température de la glace fondante.
@AndrasDeak It's not easy to get a lot of decimal places from weighing a mL of ice water. You have to deal with stuff like evaporation, and chemical and isotopic purity.
@roganjosh When you want to measure stuff to as many significant figures that you can possibly get with modern technology, things get complicated. ;)
I can certainly see the need for solid definitions, but I don't think that discussion would have changed anything I was doing as an engineer. I think that discussion is just out of my scope.
When you're dealing with a tonnes of b being combined with c tonnes of d, the precision of the measurements takes a bit of a back seat. Which is totally contradictory with my standpoint on the properties of water. Thankfully I don't need to resolve that contradiction :)
@roganjosh It's probably out of most technical people's scope, and lightyears out of the scope of the general public. But somebody has to deal with these messy details.
@JackM I was using pycharm on Windows. pycharm is very close to Android Studio w.r.t. features; it's easy for me to start with. But my colleagues use vscode. I think I should give it a try ?
I've recently grudgingly accepted to use something other than VS Code when doing Java, really just because the intellij support in jetbrains is so good
Actually I do frequently find the IDE features in vscode are lacking for python, like it has a hard time guessing the type of a symbol, but I don't know if Pycharm is any better
the one place vscode blows away jetbrains is Git integration
that Source Control panel in VSCode is so comfortable to use
@JackM That question looks ok to me. It definitely doesn't deserve to be closed as a resource request. But I don't know how you can improve your question. Maybe explain more clearly why you want to look at Ethernet frames.
@JackM A lot of people will look at that question, see it has a minimal code snippet, and assume you want someone to write you a bunch of code for you, hence the downvotes & close votes. But even if your question were perfect, there's still a chance that some robo-voter will close vote or downvote it. :(
@JackM But it looks like you've got an answer, so it's all good. :)
@roganjosh Mostly because so few on-hold questions actually get fixed. OTOH, it's a flaw in the system that down & close voters don't get notified when a question is edited.
@TheLittleNaruto Not really; it's the deficiency that PM 2 Ring has stated. If I vote to close, I never get notified on whether the OP actually changes the question. I rely on lots of tabs, and eventually I need to clear up space so the tabs get closed.
It's not so bad on the slower sites, but on SO edited questions rapidly get displaced by the torrent of new questions. Also, the quality of the people working the review queues seems to be a lot higher on sites like Physics, compared to SO, where there are a lot of newbies and robo-reviewers.
If I think a question may get improved by the OP I tend to leave a comment. And then I can quickly check questions that I commented on after a few hours, or the next day, to see if there's been any progress.
Don't take anything I say for granted, I've been using firefox for a looong time and I've only had a short run-in with chrome and didn't like it. And I don't want google in my internet.
This might be an opinion based question, but is there a standard on what to name a variable with a string value, which has been converted from a number
So if number = 1, should it be str_number = int(number) or number_str = int(number)
So the str prefix before of after the original variable name
@RaphX I wouldn't know because I don't know what you want to match. You want "alphanumerics", but oh, just letters or just numbers don't work somehow. But "p0tayto !?!?!?!?!?! p0tatoh" is unlikely to come up so it's OK to match it. Do you seriously not see anything wrong here?
str.islanum returns true for pure numbers and pure letters , if I use it I will be getting the whole dataset itself which would be 100% then compared to the total
So my dataset only contains pure numbers or pure letters or a mixure of both
@RaphX It returns false if there is atleast one character in the string which is not alphanumeric, so '123abc'.isalnum() == True but '123abc$'.isalnum() is False, so I think you might need to subdivide the notion of "mixture of both"?
anyways, if the suggestion by Andras works for you, that should be great
I've come across some weird behaviour in my dataframe. In one of the series, the rows consist of \n characters and I can see them clearly in the dataframe/series output..but when I do series.str.contains('\n'), I only get False. Similarly, series.replace('\\n',' ', regex=True) does not do anything.