Better HN
topnewbestaskshowjobs
Log inSign up

yaronn01

384 karma · joined Oct 2, 2012 (14y ago) · 42 submissions

https://twitter.com/YaronNaveh
Submissions

comment 9y ago · link · parent

There are some valid use cases here, I hope this will not affect users of wopr (https://github.com/yaronn/wopr).

2.

The Ops Identity Crisis(susanjfowler.com ↗)

5 points · by yaronn01 · 10y ago · discuss

comment 10y ago · link · parent

curling the markup is not for realtime. sometimes you can get away with curling in a loop with some sleep, and depending on the latency / scale you will get the same effect. however blessed-contrib can also be used as a server side component where clients curl for its endpoint (which is different than curling a static markup). that way it can return a live stream of data. you would use the same approach as https://github.com/yaronn/wopr/blob/master/server/server.js#... where your present method implementation will run in some loop / timeout and keep sending data (by calling screen.render).

comment 10y ago · link · parent

so try https://github.com/yaronn/wopr

comment 10y ago · link · parent

To visualize weather in the terminal you can also use:

$> a=$(curl -Ls "bit.ly/1OuRPDJ"); curl --data "$a" "tty.zone?cols=${COLUMNS}"

(via https://github.com/yaronn/wopr)

comment 11y ago · link · parent

That's a shortcut for the wopr page

comment 11y ago · link · parent

one use case is when ssh-ing machines you can see visual reports rather than text and numbers (think cpu metrics or app specific).

comment 11y ago · link · parent

Another example is US weather map:

$> a=$(curl -Ls "bit.ly/1OuRPDJ"); curl --data "$a" "tty.zone?cols=${COLUMNS}"

comment 11y ago · link · parent

IMO JSON is less readable for this kind of document. XML is more explicit (at the cost of being chatty) but it's actually good for markup. For example nesting is easier to visually manage with XML due to tooling and explicitness of closing tags.

JSON is good for smaller objects you normally use during coding where you do not want the format to get in your way. Here I actually do want a very explicit format as it's the main thing.

comment 11y ago · link · parent

this uses xterm, so it's more accessible to most users than the other alternatives you mentioned. also note wopr is not just about the graphs (like https://github.com/yaronn/blessed-contrib) but also about having a declarative format, and even consuming it with curl.

comment 11y ago · link · parent

XML is a standard format for markup (e.g. HTML). When XML is used where it shouldn't (object serialization) it adds complexity. Here it signals that creating a report is as simple (or at least as standard) as creating HTML. What other format you had in mind?

comment 11y ago · link · parent

Hi everyone, I am the author. Feel free to ask me anything or come up with suggestions!

13.

Show HN: WOPR – A markup for rich terminal reports(github.com ↗)

125 points · by yaronn01 · 11y ago · 37 comments

14.

Doom on Apple Watch(facebook.com ↗)

1 points · by yaronn01 · 11y ago · discuss

comment 11y ago · link · parent

Shutdownify github page now leads to 404. You would think they should know better than that. Stay classy, S9Y.

comment 11y ago · link · parent

True, thought in some parts of the world it's not sabbath anymore

17.

Show HN: US Weather Map in the Terminal

8 points · by yaronn01 · 11y ago · discuss

comment 11y ago · link · parent

For me the main thing is not how to sleep after a day of coding but how to stop the day of coding from becoming a night of coding. It's really tempting to slide into the night when I'm in my zone.

Otherwise f.lux is a must though it does not work on chromebook or ipad. Nevertheless when I'm really bothered with coding the only thing that will help is melatonin. I take it a few hours before going to bed and it ensures I can sleep reasonably but it makes me too tired to be social late nights and early mornings. The uvex glasses did not have a huge effect on me.

19.

Show HN: Simple markup for rich terminal reports

4 points · by yaronn01 · 11y ago · 1 comment

20.

Show HN: A markup for rich terminal reports, presentations and infographics(github.com ↗)

4 points · by yaronn01 · 11y ago · discuss

comment 11y ago · link · parent

blessed is an amazing engineering work! I hoped the name blessed-contrib to show the project roots.

termui is built upon termbox-go in a similar way that blessed-contrib builds on blessed, which is why I found them similar.

comment 11y ago · link · parent

HN discussion about the Node.JS implementation (blessed-contrib) a couple of months ago:

https://news.ycombinator.com/item?id=8888089

comment 11y ago · link · parent

in the node-drawille dependency:

https://github.com/madbence/node-drawille

comment 11y ago · link · parent

I was asking myself the same yesterday... I think I have memories from an old platform I used a few years ago that had a "gauge". Maybe Delphi?

comment 11y ago · link · parent

I plan to add more samples. Meanwhile you can use a module like this to get the data for you: https://github.com/kgryte/node-metrics-os

comment 11y ago · link · parent

what do you mean? You are right that in this sample I have not changed the values of the X axis but the api allows you to change its values anytime.

comment 11y ago · link · parent

I considered something like this but it felt like cheating. The beauty of standard ascii/ansi is that it is available in any terminal without any installation and it also has the same aesthetics / resolution as the text you type. Of course I will watch after iTerm2 progress.

comment 11y ago · link · parent

Initially I used chart.js to paint the charts but I had to introduce it so many flags (no label Transformation, sensitive spacing etc) that I reverted to do it myself (even though I also have a working version with an altered chart.js).

I am using node-drawville which provides an Html5 canvas Api abstraction over the terminal. D3 uses svg so it is not adequate. However I did saw a port of d3 to canvas which I didn't had time to check.

comment 11y ago · link · parent

Pull requests are more than welcome!
12