timezone-boundary-builder
awesome-falsehood
Our great sponsors
timezone-boundary-builder | awesome-falsehood | |
---|---|---|
7 | 50 | |
818 | 23,015 | |
- | - | |
8.0 | 7.5 | |
about 1 month ago | 10 days ago | |
JavaScript | ||
MIT License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
timezone-boundary-builder
-
Falsehoods programmers believe about time zones
They don't really bother me. They aren't AI spam, and some folks may enjoy them. It's pretty easy to not click on a link, for me.
TZ are a fun project. I found that it's difficult to translate a long/lat into a TZ ID, so I wrote this[0].
Works a charm. It's based on the Timezone Boundary Builder[1].
[0] https://github.com/LittleGreenViper/LGV_TZ_Lookup
[1] https://github.com/evansiroky/timezone-boundary-builder
-
SpatiaLite: Library extending SQLite to support Spatial SQL capabilities
I wrote a tutorial on SpatiaLite here: https://datasette.io/tutorials/spatialite - "Building a location to time zone API with SpatiaLite"
It shows how to use SpatiaLite + Datasette to build an API that can tell you what timezone a latitude/longitude point is in, using data derived from OpenStreetMap via https://github.com/evansiroky/timezone-boundary-builder
Here's a demo: https://timezones.datasette.io/timezones/by_point?longitude=... - add ".json" to the URL for the JSON output.
- Does a country's legislated time zones extend to the limit of its territorial sea or its exclusive economic zone?
-
Falsehoods programmers believe about time
I have never had an opportunity to deploy this tool, but here's a program for generating a TZ shapefile from OpenStreetMap data:
https://github.com/evansiroky/timezone-boundary-builder
In principle a calendar program could use its output to perform GIS lookups of locations then use the tzinfo DB to get the correct timezone at the given location and specified time.
-
How can I get a user's timezone based on location and create a DateTime() based on that timezone?
You could ask google. Amazon or Microsoft probably offer similar APIs. Or you can do it yourself. It's a very complicated topic, though.
-
Big problems at the timezone database
There is a separate timezone boundary builder which maps geography to timezones using a shapefile, and the shapefile is >35MB uncompressed. By comparison the latest tzdata is 1.2M uncompressed.
- how do i konw the datum for a country? in postgis?
awesome-falsehood
-
Ask HN: Did you encounter any Leap Year bugs today? How bad was it?
Billing. It always has to be the billing. For a list of all other edge cases, you have: https://github.com/kdeldycke/awesome-falsehood#readme
-
24 GitHub repos with 372M views that you can't miss out as a software engineer
Falsehoods Programmers Believe in: https://github.com/kdeldycke/awesome-falsehood
-
Why is it still a practice to not allow special characters in name fields?
Also, a list of other falsehood-programmers-believe collections: awesome-falsehood.
-
Bjarne Stroustrup Quotes
> I feel like there's a "Fallacies programmers believe about text" that should exist somewhere
I got you covered.
https://github.com/kdeldycke/awesome-falsehood#international...
http://garbled.benhamill.com/2017/04/18/falsehoods-programme...
https://jeremyhussell.blogspot.com/2017/11/falsehoods-progra...
https://wiesmann.codiferes.net/wordpress/archives/30296
-
Ask HN: How to handle Asian-style “Family name first” when designing interfaces
There's an excellent GitHub repo that lists a lot of common falsehoods regarding names. I'm not sure how useful it'll be to OP, but the repo in general should probably have way more attention than it already does.
https://github.com/kdeldycke/awesome-falsehood#human-identit...
-
Facebook must pay $100.000 to Norway each day for violating our right to privacy
A decent list for this about prices and currency https://gist.github.com/rgs/6509585 and the full list of other falsehoods https://github.com/kdeldycke/awesome-falsehood
- Falsehoods Programmers Believe In
-
How to organize structs in the code
If you're interested in this sort of thing there's a whole bunch more: https://github.com/kdeldycke/awesome-falsehood
-
Store your epoch times as 64-bit floats
It's saddening to see the number of people who critique the idea of storing time as an unsigned integer by immediately responding that that means that times before 1970 cannot exist. This bespeaks of a continuing poor knowledge of the subject, despite all of the "falsehoods that programmers believe about" documentation that has grown up.
* https://github.com/kdeldycke/awesome-falsehood#dates-and-tim...
Microsoft, for one example, has been modelling times as a 64-bit unsigned 100-nanosecond count since 1601 (proleptic-Gregorian proleptic-UTC) for about 30 years, now.
* https://learn.microsoft.com/en-us/windows/win32/api/minwinba...
Daniel J. Bernstein in the late 1990s chose a 0 point for an unsigned count so far back that it pre-dates most estimates of the point of the Big Bang.
* http://cr.yp.to/libtai/tai64.html
1970 is not the mandatory origin for every timescale. (Indeed, in the early years of Unix itself there wasn't even a stable origin for time.) It is not a valid reason for dismissing the idea of storing time as an unsigned integer.
It's also sad to note that the headlined page's first sentence has one of the very falsehoods that programmers believe about time in it.
What are some alternatives?
geolocator - A utility for getting geo-location information via HTML5 and IP look-ups, geocoding, address look-ups, distance and durations, timezone information and more...
libphonenumber - Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world's railway infrastructure.
nocode - The best way to write secure and reliable applications. Write nothing; deploy nowhere.
openinframap - Open Infrastructure Map
tinygettext - A simple gettext replacement that works directly on .po files
js-joda - :clock2: Immutable date and time library for javascript
awesome-gbadev - A curated list of Game Boy Advance development resources
vscode-gitlens - Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
awesome-remote-job - A curated list of awesome remote jobs and resources. Inspired by https://github.com/vinta/awesome-python
awesome-onboarding - 😎 A curated list of awesome resources for software engineer onboarding
awesome-javascript-learning - A tiny list limited to the best JavaScript Learning Resources