Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Brosyl3411129dI find this idea wonderful and I'm definitely going to use it! I also love this wttr.in thing! When I start my computer I have a welcome desktop with some info drawed in terminals, like top, screenfetch, clock,etc. That's mainly eyecandy, but a weather service would be a must.
However I haven't had much luck with it so far. Out of 6 requests, I only got results 2 times. One was your 'external program' request, but in C, and the other was java/arrays ("declare+array" or "array" didn't held anything). Maybe I have to get the hang of it to understand how to format my requests ☺.
Anyway, really good job, a big thanks.
Very happy to hear that you are a wttr.in user!
I've just checked your requests and they look quite good.
Can you please show your other requests that did not work?
We had some problems because of the high load that we are currently experiencing, but I've already fixed those problems. Maybe that was the reason why it didn't work.
Could you please retry + show your requests that do not work (if they still do not work)?
By the way, if you don't like some answer,
you can see other ones by adding /1, /2 etc to the request:
Please try different requests, even completely crazy, so that you don't get the impression that my requests are hand-picked.
Brosyl3411129d@igor-chubin Well fuck me, it works like a charm now, kudos. I don't know what happened. I thought it was because I checked through my browser instead of a curl command, but I still had a page with a failed request open, and after a refresh it showed me exactly what I wanted.
That is really awesome since I hate having to go out of my terminal just to check some quick info. Thanks a lot.
As I said, the problem was on our side, we are trending on Github currently and it causes a high load on the service. But as I said, the problem was fixed, so it should work now.
Your point with the terminal is fair, it is true, that it somehow perverse to open the browser only to see how do you convert a string into an int or something like that.
Even more, the thing can be accessed directly from Vim/Emacs with a keystroke!
Write a query and press <leader>KP (in Vim) to convert it into code. That's how it looks like:
Pr0methean7129dFor rate.sx, are there any plans to support a fiat currency other than US$ as the unit?
stackler208129dHoly shit.. 😯
Wack5478129dLooks really nice. Do you on the serverside check if it's an actual webbrowser or a commandline tool?
GMR5163949129dWoah, this is cool.
Sure! In all cases (wttr.in, rate.sx, qrenco.de, cheat.sh) we do analyze the user agent of the query, and depending on that we generate ANSI sequences or HTML (or even PNG if needed).
For example, for PNG:
And you will get a PNG-file with the same output as for
Even more than that: for cheat.sh we want to go even one step further and not only generate HTML output that looks like terminal output, but give a shell access to our shell client with the same name: cht.sh.
Try to open this in browser to get some impression how it will look like after we activate it for all pages (now it is only accessible via this secret URL that is known only to our developers and the devrant users):
type there help for more.
They are available, but without plots.
to know what is 100 USD in EUR and what is 100 EUR + 200 USD in GBP.
You mean it would be great to have fiat to fiat conversion rates plots too?
The only reason (I think) that they are not so volatile and probably nobody would use it, but why not? Actually it might be the only reason why we do not have it still. And if you ask about it, then there is at least one user who could need it
OMG, I've just reread my post. So many typos!
Sorry for that!
I think that it is already too late to fix the post, at least I didn't find any method how it could be possible.
I'm really sorry for that, that you had to use the embedded spell-checkers and correctors of your minds while reading the post.
Thank you! It was my first post on devrant, and I'm very glad you liked it (I mean not the post itself but everything: the services and the curl oriented approach).
(and devRant is cool. I discovered it for me a couple of weeks ago thanks to @RantSomeWhere and I'm totally fascinated with it)
Wack5478129dDamn, I like what you did there!
Mathtauathogen163129dI tried a few commands but they didn't work.
and both gave an "unknown topic" error.
xzvf9018129dAWESOME! Thank you so much. I currently use a hacky approach that queries SO and outputs the accepted answer to the console, but THIS is SO much better!!
The problem is that because of the extreme popularity of the service (it is currently number one on github.com/trending), we are getting an enormous stream of queries, that we can't handle.
We are trying to fix the issues, but it will take some time.
As soon as the problem is fixed, you can use both cheat.sh and cht.sh (cht.sh is an alias of cht.sh).
(I've changed the error message from the ambiguous "unknown topic" to the clear "too much traffic").
I hope that the service will be back soon
No, no, they will work with both.
The only difference between cheat.sh and cht.sh is that cht.sh support the experimental web shell mode I've mentioned above.
And the second: command line client is called cht.sh (but the domain names are pointing to the same service).
It's something that we used to do on rants to basically say "this is interesting"/"I'm saving this for later" also, it's a way of getting notifications for a rant's comments without having to write something yourself.
I think people have switched over to using the pin emoji (📌) but I like the old way.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job
gururaju32*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
creedasaurus64Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
linuxxx63This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...