https://www.niche-museums.com/about
Read niche-museums.com, powered by Datasette for a detailed explanation of how this all works.
The content on this site (primary contained in museums.yaml
) is licensed CC BY-NC-SA 4.0
A website recommending niche museums to visit
Home Page: https://www.niche-museums.com/
https://www.niche-museums.com/about
Read niche-museums.com, powered by Datasette for a detailed explanation of how this all works.
The content on this site (primary contained in museums.yaml
) is licensed CC BY-NC-SA 4.0
There is an osm_country
column at the moment but it's inconsistent:
It's included in the FTS configuration so ideally searching for "japan" would return all museums in Japan - but that doesn't actually work.
Solution: populate a new country
column derived from the osm_country_code
column, which appears to be more reliable.
https://css-tricks.com/how-do-you-remove-unused-css-from-a-site/ is a useful guide to doing this.
I'm seeing promising results from https://purifycss.online/ by pasting in these two URLs (to ensure I get the "permanently closed" styles): https://www.niche-museums.com/
and https://www.niche-museums.com/browse/museums/3
See https://www.mmuseumm.com/ and https://en.wikipedia.org/wiki/Mmuseumm
Happy to open a PR if it can help! Thanks
The misalignment museum moved to out in front of Chase Stadium. I'm not sure how long their deal to stay there lasts. Might be nice to email them to ask, and ask for updates if/when the move again.
Line 2986 in 8917152
Requested here: https://projects.metafilter.com/5697/Niche-Museums#14011
Prototype:
It looks like a change to Datasette has caused datasette-atom
to start outputting feed items like this:
https://www.niche-museums.com/browse/feed.atom
<content type="html">
<img src="https://niche-museums.imgix.net/hearst-castle.jpeg?w=800&amp;h=400&amp;fit=crop&amp;auto=compress">
&lt;div style="white-space: normal"&gt;<p>In 1919 press baron William Randolph Hearst commissioned ...
That &lt;div style="white-space: normal"&gt;
should not be there!
Right now they are:
https://www.niche-museums.com/browse/museums/102
I'd like to shorten these to just:
https://www.niche-museums.com/102
Using the new custom template page parameters feature in Datasette 0.49.
The reverse geocoding annotation script currently runs against every single museum on every commit, which is inefficient.
Instead, it should download the previous version of the database from https://www.niche-museums.com/browse.db and only run against the records that have not yet had their various osm_ columns populated.
This depends on simonw/sqlite-utils#66 so I can use a corrected version of upsert.
I have an API key setup for this account. I want to tweet new listings from it.
This search: https://www.niche-museums.com/browse/search?q=Train
Did not return this museum, which mentions "trains" in the description: https://www.niche-museums.com/13
Or this one (Mail Rail): https://www.niche-museums.com/68
Currently on https://www.niche-museums.com/map (tried in FF and Chrome)
Also sanity check existing dates - I think the jAdis one is incorrect for example.
I can clean this up:
museums/templates/row-browse-museums.html
Lines 69 to 74 in 842dfb9
The site deserves a map.
There's a secret one at https://www.niche-museums.com/browse/museums but I want an appropriately styled one at /map
that's linked from the navigation.
Depends on simonw/datasette#648
Zeit v1 is being turned off in August.
Caused by #7.
https://circleci.com/gh/simonw/museums/123
Traceback (most recent call last):
File "annotate_timestamps.py", line 39, in <module>
for id in current
File "annotate_timestamps.py", line 40, in <listcomp>
if json.dumps(current[id], sort_keys=True)
File "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__)
TypeError: Object of type 'date' is not JSON serializable
Split from #20
Needed for #5. I can use a similar technique to the code in https://github.com/simonw/pge-outages/blob/master/build_database.py
Originally I had intended to accept submissions, but over the past few weeks I've really enjoyed writing my own editorialized captions and using photos I've taken on the site (e.g. https://www.niche-museums.com/browse/museums/43)
But... now I'm getting offers of submissions! https://twitter.com/davidnunez/status/1199424444541751297 and https://twitter.com/brycem/status/1199415935263625216 for example.
I want both. I want to be able to keep my personal "museums I've been to" vibe going, but I also want to collect tips from other people (so when I'm traveling the "Use my location" button can show me places people have suggested).
Need to figure out the neatest way to combine tips from other people with my own personal notes on niche museums that I've visited and loved.
I don't even have server logs at the moment. Would be nice to know if anyone is using it!
Lines 3 to 4 in bc06dd7
These hacks are so I can have custom templates for the /about
and /map
pages - but they are no longer needed thanks to this Datasette feature: https://docs.datasette.io/en/stable/custom_templates.html#custom-pages
A few museums have press articles in the YAML file but these are not yet displayed on the site:
Lines 30 to 35 in 4e61f4a
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="{{ ">
<meta name="twitter:creator" content="@author_handle">
<-- Twitter Summary card images must be at least 120x120px -->
<meta name="twitter:image" content="http://www.example.com/image.jpg">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
I started using markdown in a9e1051 but it's not rendered in the Atom feed.
Since the feed is rendered using a SQL query and https://github.com/simonw/datasette-atom I can solve this by adding markdown rendering as a custom SQL function.
I used it for this and really liked it: https://simonwillison.net/2022/May/16/weeknotes/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.