1881 1858 1898 1404 1842 1311 1155 1706 1808 1477 1830 1685 1503 1396 1186 1030 1480 1186 1869 1368 1852 1201 1092 1330 1592 1949 1448 1439 1445 1614 1096 1696 1659 1375 1641 1715 1938 1782 1159 1465 1086 1231 1998 1725 1419 1327 1297 1272 1926 1071 1731 1440 1988 1121 1689 1498 1486 1500 1299 1986 1139 1837 1890 1110 1882 1237 1612 1893 1001 1073 1632 1685 1610 1943 1325 1507 1793 1047 1177 1211 1716 1543 1030 1438 1197 1664 1999 1603 1326 1785 1773 1592 1929 1351 1648 1179 1232 1455 1871 Concerning Cassini | PHPnews.io


Concerning Cassini

Written by Derick Rethans / Original link on Mar. 15, 2022

Concerning Cassini

London, UK
Tuesday, March 15th 2022, 14:30 GMT

At the beginning of the year, I saw a tweet by my friend Ben Ramsey, where he quoted Carolyn Porco's tweet requesting help saving CICLOPS, the web site of the Cassini Imaging Central Laboratory for Operations, which was under threat of disappearing off the internet.


I have been enthusiastic about space since I was in my early teens, with at some point expressing the interest to be an astronaut. I never pursued that, but I have continued to express great interest in space exploration.

Comet C/2020 F3 NEOWISE

I have dabbled in some astrophotography, having some mediocre successes with last year's comet NEOWISE. I never got into the field of astronomy nor photography. Instead I started doing web technology, including PHP, which how I know Ben.

Tech is cool too, but I always hoped to do something for, and with, space exploration.

So when I saw Ben's tweet, I thought this would be something I could help with, so I reached out to Carolyn via DM.

The task at hand at that time seemed to create a static copy of the existing CICLOPS website, but after some twitter to-and-fro, an additional ask seemed to be to create a functionally equivalent static search.

Over night, Ben had mirrored the CICLOPS website with wget and I took his copy to make some improvements, and started doing some research into how to do a static search. I had quite some experience with SOLR as well as full text search in general and with MongoDB. The problem was that all of these needed something to run on, which would create complications and costs, beyond just hosting a static site on something like S3.

After some research through DuckDuckGo, I found a neat JavaScript library, called Lunr, which looked perfect for a quick-and-dirty static search engine. Like most other more complex search engines, Lunr creates a reverse index that maps every word back to a location in a document, with some clever maths to rank more specific words higher in the results.

I started writing a script to extract the text from the crawled CICLOPS site to pick out the actual descriptions of each post and media item, and then made that index into Lunr's full text search index. With that, I set up a static site on S3 as a demo. This demo could have become a crude final result, and would have saved all the original content and images of the Cassini space probe.

That was the easy part.

In the course of several weeks, I worked with Ben, Carolyn, Jakub and David to refine the search index, split it into several different categories (the one with the images is my favourite!), added pagination, phrase searching, and a ton of other tweaks to make the static CICLOPS site an excellent simile of the original dynamic site, which turned out to be written in PHP!

To be honest, this took a lot more work than I originally had thought, with many hours spend on my side, all in the name of science.

Planet Six — http://ciclops.org/view/8697/Planet-Six.html

The resulting site is something to be proud of. The search is faster and more capable: look at the instructions! I finally managed to do something space related—and that all for my favourite planet!

I would explore you to have a search through the rich set of images that is available on the CICLOPS site, and let me know what's your favourite!

CICLOPS lives!


« NexoPOS is an Open-Source Point of Sale System Built With Laravel - Submit a Guess »