If you're going to draw lines with characters, use the line drawing characters. We have Unicode now.
I have a program which takes text files with ASCII line art and automatically turns them into text files with UNICODE line art.[1] I wrote this for some very old documents, but it's still useful.
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Source Port ┃ Destination Port ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Sequence Number ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Acknowledgment Number ┃
┣━━━━━━━┳━━━━━━━━━━━┳━┳━┳━┳━┳━┳━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Data ┃ ┃U┃A┃P┃R┃S┃F┃ ┃
┃ Offset┃ Reserved ┃R┃C┃S┃S┃Y┃I┃ Window ┃
┃ ┃ ┃G┃K┃H┃T┃N┃N┃ ┃
┣━━━━━━━┻━━━━━━━━━━━┻━┻━┻━┻━┻━┻━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Checksum ┃ Urgent Pointer ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┫
┃ Options ┃ Padding ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┫
┃ data ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Not everyone and not everywhere, and depending on the font, the line-drawing characters may not be the same width as the others even if it's a monospace font (e.g. see https://blog.helftone.com/ascii-art-unicode/ ). The whole point of text files in things like RFCs is to be as portable as possible, and using Unicode somewhat defeats that point.
Hey, I'm the author (thanks @zoodle for notifying me).
Obviously, this is a security issue that is pretty much bottom-of-the-barrel-shitty.
My explanation is that I didn't feel like standing up a middleware service to direct traffic through in order to obfuscate the server token. Especially for a tool that I anticipated being used by pretty much only me.
Not a satisfying answer, but thanks for exposing this security flaw - definitely going to add it to my project task queue.
Do tell me, why are you still using Uber? What needs to happen? Let's see: Weakening the rule of law by deliberately ignoring taxi legislation, that's not enough. Rebuilding indentured servitude via subprime mortgaged cars where the payment comes out of the drivers' wages, that's not enough. Launching self driving cars going again against regulations and putting cyclists in deadly danger, that's not enough. Treating women like shit, that's not enough. Stealing Google tech brazenly, that's not enough.
You could make the case that, since they have a -140% profit margin, the best way to hurt them is to use them all the time ^_^ Every $1.00 you give them costs them $2.40, every dollar you don't give them costs them nothing.
But ip geolocation usually gives you city or zipcode level accuracy, which may or may not be good enough to get an accurate uber estimate depending on how big your city/zip area is.
The goal of this project is to be able to check it from the command line. So while you're at the computer, you can check it via CLI rather than opening a browser.
I think the authors intent was just for his own use and some fun.
If of the all evil things Uber has done since its inception it's the harassment of an employee that brings in the most attention, then something is seriously wrong with people.
[+] [-] Animats|9 years ago|reply
I have a program which takes text files with ASCII line art and automatically turns them into text files with UNICODE line art.[1] I wrote this for some very old documents, but it's still useful.
[1] https://github.com/John-Nagle/pasv/blob/master/src/Util/picf...[+] [-] userbinator|9 years ago|reply
Not everyone and not everywhere, and depending on the font, the line-drawing characters may not be the same width as the others even if it's a monospace font (e.g. see https://blog.helftone.com/ascii-art-unicode/ ). The whole point of text files in things like RFCs is to be as portable as possible, and using Unicode somewhat defeats that point.
[+] [-] amelius|9 years ago|reply
[+] [-] mritun|9 years ago|reply
https://github.com/jaebradley/uber-cli/blob/master/src/servi...
[+] [-] jaebradley|9 years ago|reply
Obviously, this is a security issue that is pretty much bottom-of-the-barrel-shitty.
My explanation is that I didn't feel like standing up a middleware service to direct traffic through in order to obfuscate the server token. Especially for a tool that I anticipated being used by pretty much only me.
Not a satisfying answer, but thanks for exposing this security flaw - definitely going to add it to my project task queue.
[+] [-] zoodle|9 years ago|reply
[+] [-] chx|9 years ago|reply
Tell me, what would be enough?
Sources for subprime loans: http://valleywag.gawker.com/uber-and-its-shady-partners-are-... https://www.bloomberg.com/news/articles/2016-05-31/inside-ub... https://twitter.com/shashashasha/status/688734478181732352 Self driving shit: https://www.theguardian.com/technology/2016/dec/19/uber-self... the rest is either obvious or recent enough not to need a source.
[+] [-] kiproping|9 years ago|reply
[+] [-] arcticbull|9 years ago|reply
[+] [-] WillySchu|9 years ago|reply
dig +short myip.opendns.com @resolver1.opendns.com | xargs -I {} echo "ipinfo.io/"{} | xargs curl | grep loc | cut -d: -f2 | sed "s/,$//" | xargs uber time
[+] [-] coderholic|9 years ago|reply
But ip geolocation usually gives you city or zipcode level accuracy, which may or may not be good enough to get an accurate uber estimate depending on how big your city/zip area is.
[+] [-] gruez|9 years ago|reply
[+] [-] randomsofr|9 years ago|reply
[+] [-] donjh|9 years ago|reply
[+] [-] consultutah|9 years ago|reply
[+] [-] __jal|9 years ago|reply
[deleted]
[+] [-] jaytaylor|9 years ago|reply
Like many others, I'm done with the tire fire that is uber.
[+] [-] lettersdigits|9 years ago|reply
[+] [-] mahyarm|9 years ago|reply
[+] [-] arikrak|9 years ago|reply
[+] [-] justinhensley|9 years ago|reply
I think the authors intent was just for his own use and some fun.
[+] [-] aduffy|9 years ago|reply
[+] [-] divanvisagie|9 years ago|reply
[+] [-] aioprisan|9 years ago|reply
[deleted]
[+] [-] TeMPOraL|9 years ago|reply
[+] [-] mixedCase|9 years ago|reply
[+] [-] arikrak|9 years ago|reply
[deleted]