Live data from Hacker News

WTF: A personal information dashboard for your terminal

github.com

61–70 of 121 posts

Re: WTF: A personal information dashboard for your terminal

#61
post #22

Earlier quoted context omitted.

That's an excellent idea! It could be called I don't know... maybe "tmux"? Or "screen"?

Hmm, let's also allow you to edit text in those windows. And it should be extensible, of course. With a dialect of LISP! We could call it "emacs".

Hah, my first thought when I saw this - looks awesome, but I want to have less standalone programs in my workflow, not more. More than half of those things I already do within Emacs, all it needs is a little bit of elisp to set it up as a dashboard...

Re: WTF: A personal information dashboard for your terminal

#62
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!

I maintain my own set of modern internet acronyms for it. Speaking of which, I need to merge a pull request for that.

Re: WTF: A personal information dashboard for your terminal

#64

I don't know any go. I was able to read everything, like I wrote the code. Is go usually that easy? If yes, I think I should learn it.

you don't need to learn it. :-D you already know it, you just need to write it. There are a few things to understand defer, goroutines,channels, interfaces, structs etc.

We also have to give credit to the author. Good programmers have programs that are easy to read and understand.

However like all languages that are easy to read, it can be deceptive. Once you dive into any big/complex project. Context and design decisions matter more than anything else.

Re: WTF: A personal information dashboard for your terminal

#65

I don't know any go. I was able to read everything, like I wrote the code. Is go usually that easy? If yes, I think I should learn it.

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.

[deleted]

Re: WTF: A personal information dashboard for your terminal

#66

I don't know any go. I was able to read everything, like I wrote the code. Is go usually that easy? If yes, I think I should learn it.

In my experience, Golang was designed to be safely written and understood by people of just about any skill level, assuming basic programming competency. There's basically only one or two neat hacks in the language that are somewhat unintuitive at first, but that stuff is almost entirely relegated to library development.

Re: WTF: A personal information dashboard for your terminal

#67
post #59

Earlier quoted context omitted.

Got a good pointer to more details? I don't know anything about that spec.

See https://specifications.freedesktop.org/basedir-spec/basedir-... The main idea. You read $XDG_* variables, and use them if defined, and use spec defaults if not. It declutters $HOME from dot directories.

I'll take a look, thanks.

Re: WTF: A personal information dashboard for your terminal

#68

I don't know any go. I was able to read everything, like I wrote the code. Is go usually that easy? If yes, I think I should learn it.

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?

Re: WTF: A personal information dashboard for your terminal

#69
post #7

Can't this be made more general and modular by creating a windowing system for terminals first, and then write little programs that operate in that system?

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.

Re: WTF: A personal information dashboard for your terminal

#70

This is pretty neat. A dashboard screen isn't my style, but I've taught my assistant program to answer a lot of the same questions.

Could you tell us more about your assistant program?

It's a (bad) Visual Basic program that also runs my house and logs the GPS in my car. And while it's meant to have voice recognition, it doesn't, because I haven't found a good solution yet that meets my needs. It has a significant number of half-implemented features, because I only invest time in it when inspired to and only so far as it makes my life easier. There is no machine learning of any kind and the command structure is quite static.

For instance, I found I was often asking my house a couple times throughout the day for the thermostat status when I was at work (I have a fairly temperature sensitive pet). This week I went ahead and just told it to go ahead and wrote a little 'status report' email, and then call for it a couple times a day in Windows Task Scheduler.

https://github.com/ocdtrekkie/HAController

Post reply on HN