Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Submission Summary: 0 pending, 41 declined, 9 accepted (50 total, 18.00% accepted)

Submission + - Is there a "standard" way of formatting a number ? 8

Pieroxy writes: I recently created a small open source project to monitor one's computer "essential" metrics: Conkw.

As I was writing it I had to come up with a way for users to format a number. I needed a small string the user could write to describe exactly what they want to do with their number. Some examples can be: write it as a 3-digit number suffixed by SI prefixes when the numbers are too big or too small, display a timestamp as HH:MM string, or just the day of week, eventually cut to the first three characters, do the same with a timestamp in milliseconds, or nanoseconds, display a nice string out of a number of seconds to express a duration ("3h 12mn 17s"), pad the number with spaces so that all numbers are aligned (left or right), force a fixed number of digits after the decimal point, etc.

In other words, I was looking for a "universal" way of formatting numbers and failed to find any kind of standard online. Do Slashdot readers know of such a thing or should I create my own?

Submission + - New W3C Proposal could end the CSS Prefix Madness (webmonkey.com)

Pieroxy writes: The W3C is proposing a set of new rules for CSS prefixing by Browser vendors. This would greatly mitigate the problem caused today where vendor specific prefixing is seeing its way through production sites. The problem is so bad that some vendors are now tempted to support other browsers prefixing. The article also has a link to an email from Mozilla’s Henri Sivonen that does a nice job of addressing many potential issues and shortcomings of this new proposal.
Cellphones

Submission + - Apple vs Google: Who will control the iPhone?

Pieroxy writes: "Theiphoneblog carries a nice article on the reason Apple rejected the Google Voice application even though it doesn't violate any terms and services. The article goes in depth over the issue of controlling the hardware (Apple) vs controlling the software (Google & Apple so far) and how Apple doesn't want Google to take over a critical part of its phone. Just like Google is going into the OS business to make sure it gets never cut out, Apple is also building a huge datacenter to — they guess — take over some online cloud computing business of their own and be less dependent on Google for these services."

Slashdot Top Deals

"Virtual" means never knowing where your next byte is coming from.

Working...