units-of-measurement Questions

3

Solved

Objective: return a value from a function in the units (or any trivial modification) requested by the caller. Background: I am running Python 2.7 on a Raspberry Pi 3, and use the function distanc...
Strophic asked 29/6, 2016 at 18:41

1

Solved

Is the memory returned by adb shell dumsys meminfo in kB or KB? where: kB = 1000 bytes KB = 1024 bytes
Emit asked 3/5, 2016 at 19:45

1

Solved

I am having trouble with F# Units of Measure when defining an operator that has a parameter with a generic unit of measure defined in terms of the generic unit of measure from another parameter. Fo...
Jump asked 11/3, 2016 at 22:53

3

Solved

I am developing a scalable mobile/desktop friendly website using CSS rem units based on the average viewport size of the site. I have been setting rem sizes as low as 0.001rem for certain padding ...
Antidote asked 18/2, 2016 at 21:33

2

Solved

I'm going after a layout that would scale nicely along with zoom (user pressing ctr/cmd + [plus]). For that I need dimensions to scale along with font-size. Using em units is too tricky, so I'm thi...
Morose asked 15/12, 2011 at 11:42

6

I am a visual designer, working on an android design and I"m trying to spec my PSD file for our engineers. I cannot seem to find any documentation regarding the conversion of point size to SP for t...
Kazbek asked 15/11, 2012 at 19:5

2

Solved

I was trying a simple demo where I gave colors to elements in hsl. From all my experience I know that 0(ZERO) in CSS is unitless. If you want to specify 0 as a value, you may leave the unit. This ...
Modestia asked 9/10, 2015 at 9:30

3

Solved

And in general, are the units used for the -Xmx, -Xms and -Xmn options ("k", "M" and "G", or the less standard possibilities "K", "m" or "g") Binary prefix multiples (i.e. powers of 1024), or are t...
Auriol asked 30/9, 2015 at 0:42

2

Conceptually it seems to me that using unit enforcing based types (Meters, Seconds, Kilograms) would have massive benefits (extra checking in passing args, getting rid of unit names in vars, etc) a...
Onder asked 25/9, 2012 at 16:24

3

When executed with all logging enabled (e.g. test --log_level=all), a unit test created with the Boost Unit Test Framework will report how long an individual test case took with a message like this...

2

Solved

F# has a units of measure capability (there's more detail in this research paper). [<Measure>] type unit-name [ = measure ] This allows units to be defined such as: type [<Measure&gt...
Preconcert asked 3/2, 2014 at 21:50

3

Solved

I want to draw text with an specific height(in pixels) on a view using Canvas. Can you simply use Paint.setTextSize(float) with the number of pixels or is this using dp or sp?
Eft asked 30/7, 2012 at 10:57

4

Solved

Is there a standard pythonic way to treat physical units / quantities in python? I saw different module-specific solutions from different fields like physics or neuroscience. But I would rath...
Sarcophagus asked 28/7, 2009 at 12:51

1

Solved

Are there any Hungarian-in-spirit style guides for appending (SI or Imperial) units to variable names for physics-intensive C/C++? I'd expected that this wheel had already been invented, but ...
Hedve asked 19/11, 2014 at 17:41

0

I'm trying to use the UOMo java library in eclipse: http://www.eclipse.org/uomo I've installed it correctly (or at least I believe I have) via Help -> Install New Software..., dropped the reposito...
Overreach asked 11/11, 2014 at 16:49

1

Solved

I use ems everywhere in my style-sheets rather than px. But the computed styles/metrics in Chrome Developer Tools seem to default to showing me px, even for elements where I've explicitly used ems ...
Iny asked 23/10, 2014 at 12:45

1

I am working on a page layout with a horizontal scrollbar. I have some panels with fixed widths in a horizontal order, which should all have the viewport height. I decided to test the vh unit to do...
Heeling asked 29/10, 2013 at 20:2

4

Solved

I am currently building a site from a PSD. Most of the fonts have a letter-tracking of -25 ( <- AV-> : I'm guessing that is the symbol for letter spacing?). How would I get the same effect i...
Imbibition asked 22/11, 2012 at 9:42

4

Solved

I'd like to implement measurement unit preferences in a Ruby on Rails app. For instance, the user should be able to select between displaying distances in miles or in kilometers. And, obviously, n...

2

for my Rails project, I'm looking for a library, that can convert mass, volume and other units. I need to convert kilogramms to gramms, liters to tablespoons etc. I think, it should look like thi...

2

Solved

I want to be able to do this: let duration = 1<hours> + 2<minutes> + 3<seconds> with the following types and functions (and possibly more units of measure): type [<Measure&...
Offence asked 18/2, 2014 at 18:26

4

Solved

Is there built in version of the type casting functions that preserves units and if not how would I make them? So for example with this code how would I cast intWithSecondsMeasure to a float withou...
Heptad asked 12/12, 2009 at 18:12

6

Solved

I know Rails has some nice helpers for date and time management. Is there an already-working project consisting of, or incorporating a clean DSL for standard units and their conversions? Any projec...
Garget asked 21/11, 2010 at 0:22

1

Solved

To practise a little F#, I'm building myself a simple game. The game involves resources that players can spend. There are 3 kinds of resources. Items and actions in the game have an associated cost...
Hagiology asked 11/2, 2014 at 13:48

2

I am looking for a PHP library/class to manipulate units and quantities in a similar way to what the ruby-units gems does. I have found a port of that Ruby library to JavaScript called js-quantitie...
Slain asked 29/11, 2012 at 12:30

© 2022 - 2024 — McMap. All rights reserved.