Live data from Hacker News

WTF: A personal information dashboard for your terminal

github.com

101–110 of 121 posts

Re: WTF: A personal information dashboard for your terminal

#101
post #68

Earlier quoted context omitted.

Yes. One of go's strengths is that there are very few tricks and the language is heavily biased towards easy reading over compact code.

I'm also a Go noob. I tried writing a basic web server in Go yesterday to handle Twilio SMS callbacks. Trying to inspect the requests I was receiving was such a pain, I gave up and wrote the server with Sinatra. Am I missing something that's making this more difficult than it should be?

I'd say you were missing https://github.com/k0kubun/pp but the other tricky thing is that you can read a http.Request.Body only once unlike in Ruby. I usually use ioutil.ReadAll for that.

Re: WTF: A personal information dashboard for your terminal

#103

Earlier quoted context omitted.

At what point do we just say why not 'install a modern GUI'?

or you can compromise with an ultra minimalist GUI that runs on top of xorg, such as openbox/fluxbox and similar. https://en.wikipedia.org/wiki/Openbox Archbang , which uses openbox, is a good example of a distribution to try in a VM if anyone wants to see an example in action.

Archbang is still around??

Re: WTF: A personal information dashboard for your terminal

#104

Earlier quoted context omitted.

or you can compromise with an ultra minimalist GUI that runs on top of xorg, such as openbox/fluxbox and similar. https://en.wikipedia.org/wiki/Openbox Archbang , which uses openbox, is a good example of a distribution to try in a VM if anyone wants to see an example in action.

Archbang is still around??

It is , to the best of my knowledge, though I am not a big fan of arch. Excellent wiki however. If I were going to run openbox I would install Debian to server like setup and then manually replicate the general idea of crunchbang.

Re: WTF: A personal information dashboard for your terminal

#105
post #68

Earlier quoted context omitted.

Yes. One of go's strengths is that there are very few tricks and the language is heavily biased towards easy reading over compact code.

I'm also a Go noob. I tried writing a basic web server in Go yesterday to handle Twilio SMS callbacks. Trying to inspect the requests I was receiving was such a pain, I gave up and wrote the server with Sinatra. Am I missing something that's making this more difficult than it should be?

`httputil.DumpRequest`[1] may have been helpful in this situation. If you're on a mainstream platform, the Delve debugger is fairly reasonable these days too.

[1]: https://golang.org/pkg/net/http/httputil/#DumpRequest

Re: WTF: A personal information dashboard for your terminal

#106

I'm not sure I would find all of this terribly useful, but it does remind me of a little addition I made to my status script - the time in UTC as well as local time. If you use a system where you are easily able to add arbitrary text to your status bar, I highly recommend this addition. If you do not use such a system, I highly recommend a change ;)

I don't have my dotfile handy, but I found a good example of tmux config that puts both timezones in the status bar:

https://github.com/mikeecb/dotfiles/blob/master/.tmux.conf#L...

Re: WTF: A personal information dashboard for your terminal

#107
post #8

Anyone remembers NetBSD's wtf? http://netbsd.gw.com/cgi-bin/man-cgi/man?wtf+6+NetBSD-curren... $ wtf wtf WTF: {what,when,where,who,why} the fuck $ wtf bsd BSD: berkeley software distribution $ wtf linux wtf: I don't know what linux means!

As a non-native English speaker, I need it all the time to follow conversations on Internet. I've also made a a personal acronyms database to read GCC's internals documentation and another to translate errno codes to their constant name and vice-versa: https://github.com/lgeorget/acronymdb?files=1

> As a non-native English speaker, I need it all the time to follow conversations on Internet

I found that installing the google dictionary extension[1] for chrome solved that problem for me entirely.

you just doubleclick on the word and a popup opens with its definition.

This extension is the primary reason I'd loath to ever to switch browsers.

[1] https://chrome.google.com/webstore/detail/google-dictionary-...

Re: WTF: A personal information dashboard for your terminal

#109
post #68

Earlier quoted context omitted.

I'm also a Go noob. I tried writing a basic web server in Go yesterday to handle Twilio SMS callbacks. Trying to inspect the requests I was receiving was such a pain, I gave up and wrote the server with Sinatra. Am I missing something that's making this more difficult than it should be?

I'd say you were missing https://github.com/k0kubun/pp but the other tricky thing is that you can read a http.Request.Body only once unlike in Ruby. I usually use ioutil.ReadAll for that.

That's incorrect. Both languages require you to rewind the reader before you can read it a second time. You're probably just used to higher level frameworks like Sinatra or Rails that take care of it for you.

Re: WTF: A personal information dashboard for your terminal

#110
post #57

Earlier quoted context omitted.

Such things existed in the pre-GUI-everywhere days: https://en.wikipedia.org/wiki/DESQview is probably the most well known example. If you are not wanting a full windowing OS (just a windowing display) then https://en.wikipedia.org/wiki/Tmux may do the job for you in unix-a-like environments, with or without https://en.wikipedia.org/wiki/Byobu_(software) . In fact I sometimes have several log monitoring windows open…

For a modern *nix equivalent of DESQview take a look at Twin: https://github.com/cosmos72/twin/

Nice. I'll probably stick with tmux+byobu, but I'll have a play with that the sake of play at least! Thanks for the link.
Post reply on HN