News for hackers. Stuff that matters.

clarete

Re:Weblorg: A Static HTML Generator for Emacs and Org-Mode on Monday February 01, 2021 @01:50PM (#25991967)
I'm excited to share a project that I've been working on. It is a tool that aims to be a friendly and powerful static HTML site generator backed by Org-Mode files. It should be very familiar for those who have used tools like hugo or jekyll. It's far away from being as comprehensive and stable as such tools, though I do aim to get there :)

Weblorg is a declarative API that defines routes similar to how lean HTTP application frameworks are structured. With a file at the root of the website conventionally called publish.el. It contains the routes with information to find Org-Mode files and templates to render them. It's backed by a powerful templating language and we're working on a more thorough and thorough documentation. You can check out some examples and learn more about it on our website:

   website: https://emacs.love/weblorg/
   release post: https://emacs.love/weblorg/posts/v0-1-1-we-re-live.html
   github: https://github.com/emacs-love/weblorg
   templatel: https://github.com/clarete/templatel
Re:Emacs and Magit on Friday July 21, 2017 @12:16PM (#14821678)
I saw this on Reddit, lwn and now here and I didn't see anyone comment on license upgrades. when FSF released GPLv3 they migrated a ton of software from one version to another.

although GPL is usually forward compatible with its newer versions I still wonder if that's the concern behind Stallman's opinion.

Re:Fidel Castro has died on Saturday November 26, 2016 @08:43AM (#13043452)
I'm not sure I'd count that source as valid after reading what they wrote in /brazil. The text has the same opinion as the media they rate as "partially free". They're defending the side that won without really understanding what happened there. I wonder how better the analysis on Cuba could be.
Re:Show HN: Simple Hacker News Client for Emacs on Saturday October 19, 2013 @12:46AM (#6575370)
Hmm, bad news. I'll work on polishing the new proxy support that is almost done in another branch, so we'll be able to use more reliable services for now.

And then, when I have some time, I'll write the full thing on lisp! Thanks for the heads up!

Re:Show HN: Simple Hacker News Client for Emacs on Friday October 18, 2013 @05:59PM (#6574289)
Yeah! Thank you for the contribution, I'll apply your patch and release another version as soon as I get the chance to open my computer!
Re:Show HN: Simple Hacker News Client for Emacs on Friday October 18, 2013 @02:54PM (#6573282)
So, hackernews.el is actually a very simple front-end for the guy that really has to deal with hackernews. I'm using a library that I built on top of `ruby-hackernews`, you can see what I did here: https://github.com/clarete/rhn
Re:Show HN: Simple Hacker News Client for Emacs on Friday October 18, 2013 @01:55PM (#6572838)
Thank you man!

Show HN: Simple Hacker News Client for Emacs

https://github.com/clarete/hackernews.el

I wrote this small client to read hackernews from my favorite editor. It's currently using an external HTTP API [0] but I'm working on my own proxy [1].I'd love to actually scrape and cache all the info I need using lisp. However, my time constraints are keeping me away of that goal. I could definitely use some help here! :)I'm also planning to add support for comments and posting new things....

( Read More... | 27 comments | 81 points | on HN )
Re:S3sync – Tool belt for managing your S3 buckets on Thursday September 26, 2013 @05:50PM (#6453867)
First things that come to my mind:

s3cmd: * might be considered more robust and battle tested as people already commented here; * is written in python, so if you have a python environment running, you might be more comfortable with it;

s3sync * Smaller codebase, might be easier to keep things simpler and well tested, achieving the same stability with less time/effort; * Error reporting. One of my main reasons to keep working on s3sync was its better error reporting. I just go crazy when something wrong happens and I don't know why. * It's in ruby, if you have a ruby environment and you don't want to add any python dependencies, you might choose it

Re:S3sync – Tool belt for managing your S3 buckets on Thursday September 26, 2013 @05:43PM (#6453832)
Hi, thanks for asking! I definitely tried this guy before putting more effort on s3sync. Unfortunately their cli experience is really poor and its error report didn't help me understand why synchronizing my stuff with s3 was not working.

In the end of the day, I had an unreadable file inside of the directory that I was trying to back up. I found that out using `--debug` option of the official client, but I couldn't actually continue copying the files cause of that error.

When I tried with s3sync, as I expected, it just yielded a warning about the single file I had with problems and kept working until my backup was done!

Sorry for the wall of text, I just think it's funny cause this exact question came to my mind a couple days ago and that's how I answered my self! :)

Re:S3sync – Tool belt for managing your S3 buckets on Thursday September 26, 2013 @05:04PM (#6453642)
Not currently! Please feel free to open a ticket about that! Thank you! :)
Re:S3sync – Tool belt for managing your S3 buckets on Thursday September 26, 2013 @01:58PM (#6452454)
So, basically, the main difference is the language they're implemented in. I started working on s3sync cause I found its code easier to read and I really needed to practice my ruby skills.

Although s3cmd is older and has more features, s3sync was designed to grow stable and well tested. I'm definitely planning to write benchmarks to s3sync and improve its performance as much as I can.

S3sync – Tool belt for managing your S3 buckets

https://github.com/clarete/s3sync

I started contributing to s3sync before hearing about the official amazon s3 tool written in python. However, after testing the official tool for a couple minutes, I decided to spend more time working on s3sync and here's the result.Thanks to Michael Grosser for his support and patches!

( Read More... | 20 comments | 40 points | on HN )
Re:Show HN: Forbidden Fruit – Patch built-in Python objects on Wednesday April 03, 2013 @03:45PM (#5488530)
I don't think that there's any implications for that, but I'll probably relicense this library as MIT or at least LGPL pretty soon.

I just used my default licence template, which defaults to GPL.

Re:Show HN: Forbidden Fruit – Patch built-in Python objects on Wednesday April 03, 2013 @03:44PM (#5488524)
I might be wrong, but I don't think that it's actually possible to mock built-in objects (written in C, not in python) using pytest.

A very quick test would be trying to do something like this:

>>> monkeypatch(str, "blah", "bleh") >>> assert str.blah == "bleh"

I tried it here with no success though.

Re:Show HN: Forbidden Fruit – Patch built-in Python objects on Wednesday April 03, 2013 @03:23PM (#5488406)
I have two main use cases in my mind right now.

1) Making it easier to write tools for testing python code, like sure[0] and freezegun[1]

2) Prototyping new features for python without touching the C code.

[0] http://github.com/gabrielfalcao/sure -- where forbiddenfruit started) [1] http://github.com/spulec/freezegun

Re:Show HN: Forbidden Fruit – Patch built-in Python objects on Wednesday April 03, 2013 @03:18PM (#5488380)
That's the idea. Everything to make testing easier! :)