units-of-measurement Questions

34

Solved

What is the difference between the units of measure px, dip, dp, and sp?

7

Solved

I'm getting the weather for a city using openweathermap.org. The jsonp call is working and everything is fine but the resulting object contains the temperature in an unknown unit: { //... "main...

2

Solved

I would like to implement different systems of measurement in my Django project, so that users can choose wether they want to use metric or imperial units. However, I don't know what is the correct...
Kramlich asked 30/4, 2014 at 8:49

4

Solved

JSR-275 has been rejected, the Units of Measurement API for Java project is a set of interfaces, but haven't found an open source implementation. On this post: Which jsr-275 units implementation ...
Tod asked 24/6, 2011 at 23:16

2

When should I use rem over px? I see a lot of articles saying that I should use REM to respect the user preferences, but the examples always says about font size, not the about the whole style - ma...
Differentia asked 22/8, 2017 at 16:0

5

Solved

I have a dataset that abbreviates numerical values in a column. For example, 12M mean 12 million, 1.2k means 1,200. M and k are the only abbreviations. How can I write code that allows R to sort th...
Wisner asked 16/5, 2019 at 0:2

2

Solved

I'm creating linked data of materials and their physical properties, and I'm having trouble with setting units for certain properties. My individual material :AlMg3 has some mechanical properties l...
Scauper asked 27/11, 2013 at 16:51

7

Solved

I have been trying to learn a bit more about delegates and lambdas while working on a small cooking project that involves temperature conversion as well as some cooking measurement conversions such...
Beria asked 21/10, 2011 at 15:10

7

Solved

How do I know which is the default measure system (imperial or metric) on iOS ? How do I get this preference from the device settings, so I know what to display in my app ? thanks
Confidence asked 14/9, 2011 at 8:8

14

Solved

I have strings containing numbers with their units, e.g. 2GB, 17ft, etc. I would like to separate the number from the unit and create 2 different strings. Sometimes, there is a whitespace between t...
Hadron asked 10/2, 2010 at 20:59

4

Solved

I'm working on a game engine, and currently I'm stuck designing the IO system. I've made it so, the engine itself doesn't handle any file formats, but rather lets the user implement anything he wan...
Mezzosoprano asked 19/2, 2014 at 0:13

4

Solved

What I want to achieve: Using CSS Grid Layout, to have a page with a right column which size is derived from its content, but only up to 20% of the window width. How I thought it would work: ...
Flimflam asked 2/8, 2017 at 11:7

10

Solved

I've seen three ways of doing conversion from bytes to megabytes: megabytes=bytes/1000000 megabytes=bytes/1024/1024 megabytes=bytes/1024/1000 Ok, I think #3 is totally wrong but I have seen it....
Coulometer asked 2/3, 2010 at 17:11

13

Solved

I'm working on a project that lets users track different data types over time. Part of the base idea is that a user should be able to enter data using any units that they need to. I've been looking...
Vivyanne asked 23/1, 2010 at 23:2

6

Solved

Just curious - is there a package or dataset somewhere containing values for physical constants? I only ask because I've now typed in 273.15 (Celsius to Kelvin conversion) wrong several times. =)
Mathian asked 10/11, 2011 at 22:43

6

Solved

(Not to be confused with Xunit, a popular .Net unit testing library.) Today in a fit of boredom I started inspecting Gmails DOM (yes, I was very bored). Everything looked pretty straightforward u...
Foray asked 28/5, 2009 at 0:21

3

Solved

Is there a way to use Python type hints as units? The type hint docs show some examples that suggest it might be possible using NewType, but also those examples show that addition of two values of ...
Cock asked 26/6, 2020 at 22:22

2

Solved

I've got some data manipulation code which spits out csv at the end. I started upgrading it to add units of measure everywhere, but I now have a problem with my csv function: val WriteCSV : strin...
Hersh asked 5/1, 2009 at 7:1

4

Say I have a set of strings like the following: "5 m^2" "17 sq feet" "3 inches" "89 meters" Is there a Python package which will read such strings, convert them to SI, and return the result in a...
Plotinus asked 1/3, 2013 at 15:17

3

Solved

I wrote some code in https://github.com/p6steve/raku-Physics-Measure that looks for a Measure type in each maths operation and hands off the work to non-standard methods that adjust Unit and Error ...
Allison asked 29/12, 2021 at 22:31

4

Solved

Microsoft uses dialog length units (DLU) in their guidelines for UI. How can I convert them into pixels? As I know, DLU depending on system font size. Can you advise some simple method of such co...
Launcher asked 29/7, 2011 at 8:25

3

Solved

I got the designs for a new app. All the dimensions are Android-ready and are given in DP - (Density-independent Pixels). How can I convert these values to Flutter's LP (Logical Pixels). I know th...
Dilatant asked 6/3, 2019 at 22:1

2

Solved

this new question is a follow up to my previous that has emerged as I flesh things out. Please note that I have also done some research and I am consciously skirting the Scalar Mixins bug mentioned...
Lawana asked 8/9, 2021 at 10:36

1

Solved

I could use some help to work out if overloading math operators can be made to work with mixin via does (or but) in a way that avoids the ambiguity error below... this module: unit module Physics::...
Spondaic asked 5/9, 2021 at 19:4

4

Solved

I'm writing a function to take shorthand values and convert them into a standardized numeric format. Is there any standard code out there that would do "best possible" conversion of arbitrary measu...
Boabdil asked 27/5, 2011 at 21:26

© 2022 - 2024 — McMap. All rights reserved.