posted on 2016-12-05 19:31:00
Mi ĵus trovis la gazeton "The Esperantist" sur Project Gutenberg, kiu estis en Londonon eldonita Gazeto el la lasta jarcento. Kelkaj monatoj auntaŭe, mi trovis la Esperanto kurson sur Duolingo, kaj mi havis interson ekde mi eklernis pri E-on kiam mi en gimnazio estis. Tiam, trovis mi profesoron el Brazilo en Babilejo kaj mi ĝojis kunparoli iun malkun anglan lingvon. Nun, mi retrovas la ĝojon por legi E-on kaj partopreni internacian komunumon.
La paĝo de la redaktulo de la unua aldono ekiĝas kun promeso ke la gazeto ne intencas esti politika. Mi interesiĝis kiam mi tion legis, ĉar E-o ankoraŭ ŝajnas por multaj homoj minaci siajn hejmlingvojn kaj kulturojn. Multoj vidas E-on kiel komunista konspiro (aŭ, alternative juda konspiro).
Ĉiukaze, mi ne kredeble legos tre multe, sed la gazeto estas aĵo el pli frua tempo, kaj interesigas min pri kiel E-on vidis gehomoj en la estinteco.
posted on 2016-12-05 14:42:00
A few months ago, I decided that lucerne had enough things missing that I was rewriting for different projects, that I would bite the bullet and try writing my own framework. I'm generally a fan of Fernando Borretti's work, and I definitely suggest looking at the different libraries he's created for common lisp webapps, but these days he's been more of an inspiration for writing my own versions than anything else.
So, I've been writing nest for a while, now, which doesn't have much documentation and very spotty test coverage, at the moment, because it is still very much in the process of spilling out of my forehead, like some halting Athena, and I wouldn't want to break anyone else's webapps while I work on it. (I am trying to version and tag it, though, so at least you'll get the same sort of broken if you stick to a tag.)
I was looking through fossdroid.com, yesterday, and noticed the shopping list app, which boasted an open source php and mysql backend. It comes with some script to set it up under apache, but the list of technologies I wasn't very familiar with was too long, so I decided to test out my framework to get it running under lisp (and whatever database you want that's supported by cl-dbi).
Happily, I didn't bite off more than I could chew on this one, and I had it all working by midnight so I could sleep, too!
I found the api very strange, because it's all implemented at one endpoint. The android app also adds a trailing slash to whatever you configure as the host, which was odd, because I would get requests to
// depending on how I configured it. The app sends what function it wants to run as a post parameter, and then, hopefully, all the parameters appropriate for that function are along for the ride, too. It was a good excuse to pull out my validation library for a ride, which I generally use with a macro like
(defmacro validated (&body body)
"Handle validation errors (`v:<validation-error>`) and respond with an error for the client."
(declare (ignore e))
(api-response :type +api-error-unknown+
:content "Invalid parameter"))))
I've also started using
validate in Podcastinet, with a similar macro that sends back a 400 error in the event validation fails. Right now, there isn't a good way to collect failed validations for a meaningful error for the API consumer, but I suppose that will come in time.
In any event, it was a fun project and made me feel pretty good about
nest, since I was able to use it to build an app in an afternoon. Now I need to make a docker image so I can throw it up on a server and keep track of my groceries! Check out the project here and let me know what you think. I'd also really appreciate feedback on validate. Maybe I'll post it to the lisp subreddit, soon, for some of that.
This blog covers 3D Printing, Anarchism, Aside, Books, Buddhism, Code, Colgate, Comics, Community, DRM, Did You Know That?, Dog, Education, Electronics, Emacs, Esperante, Fascism, Food, Gallery, Games, Gnome, Image, Information, Language, Life, Link, Links, Linux, Lisp, Music, Nest, Physics, Recipes, Repair, Research, Resistance, Rust, Uncategorized, Vegan, Work, ice cream, vegan
View content from 2017-06, 2017-02, 2016-12, 2016-11, 2016-10, 2016-08, 2016-05, 2016-01, 2015-12, 2015-11, 2015-10, 2015-07, 2015-02, 2015-01, 2014-12, 2014-11, 2014-07, 2014-03, 2014-02, 2014-01, 2013-11, 2013-09, 2013-07, 2013-06, 2013-04, 2013-03, 2013-02, 2012-11, 2012-09, 2012-08, 2012-07, 2012-04, 2012-03, 2012-02, 2012-01, 2011-12, 2011-11, 2011-10, 2011-09, 2011-08, 2011-07, 2011-06, 2011-04, 2011-03, 2011-02, 2011-01, 2010-09, 2010-08, 2010-07, 2010-06, 2010-05, 2009-12, 2009-11, 2009-10, 2009-08, 2009-07, 2009-06, 2009-04, 2009-03