Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yaronn01
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
yaronn01
9y ago
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
|
0 comments
3.
▲
by
yaronn01
10y ago
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 com
4.
▲
by
yaronn01
10y ago
so try https://github.com/yaronn/wopr
5.
▲
by
yaronn01
10y ago
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 )
6.
▲
by
yaronn01
11y ago
That's a shortcut for the wopr page
7.
▲
by
yaronn01
11y ago
one use case is when ssh-ing machines you can see visual reports rather than text and numbers (think cpu metrics or app specific).
8.
▲
by
yaronn01
11y ago
Another example is US weather map: $> a=$(curl -Ls "bit.ly/1OuRPDJ"); curl --data "$a" "tty.zone?cols=${COLUMNS}"
9.
▲
by
yaronn01
11y ago
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 clo
10.
▲
by
yaronn01
11y ago
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
11.
▲
by
yaronn01
11y ago
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
12.
▲
by
yaronn01
11y ago
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
|
0 comments
15.
▲
by
yaronn01
11y ago
Shutdownify github page now leads to 404. You would think they should know better than that. Stay classy, S9Y.
16.
▲
by
yaronn01
11y ago
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
|
0 comments
18.
▲
by
yaronn01
11y ago
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
19.
▲
Show HN: Simple markup for rich terminal reports
4 points
by
yaronn01
11y ago
|
1 comments
20.
▲
Show HN: A markup for rich terminal reports, presentations and infographics
(github.com)
4 points
by
yaronn01
11y ago
|
0 comments
21.
▲
by
yaronn01
11y ago
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.
22.
▲
by
yaronn01
11y ago
HN discussion about the Node.JS implementation (blessed-contrib) a couple of months ago: https://news.ycombinator.com/item?id=8888089
23.
▲
by
yaronn01
12y ago
in the node-drawille dependency: https://github.com/madbence/node-drawille
24.
▲
by
yaronn01
12y ago
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?
25.
▲
by
yaronn01
12y ago
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
26.
▲
by
yaronn01
12y ago
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.
27.
▲
by
yaronn01
12y ago
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.
28.
▲
by
yaronn01
12y ago
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
29.
▲
by
yaronn01
12y ago
Pull requests are more than welcome!
30.
▲
by
yaronn01
12y ago
It's easy to do. The grid layout is optional. You can give relative and absolute positions. The first code sample in the readme shows something like this (though position is implicit there). You can also read about blessed (=ncurses fo
More ›