Better HN
topnewbestaskshowjobs
Log inSign up

aboutruby

1,129 karma · joined Jan 9, 2019 (7y ago) · 472 submissions

Submissions

comment 7y ago · link · parent

I tried uploading a 60MB file to those four services and apart from needing to upgrade my curl they all went fine, returned the url from curl and file was directly downloadable with wget/curl from the url provided.

comment 7y ago · link · parent

My favorite thing has been `| ruby -e "puts STDIN.to_a. ..."`, allows to run any kind of code on the standard input, much easier than remembering awk/sed various options and much more powerful.

edit: same thing can be done with Python/Perl

comment 7y ago · link · parent

The double `ls` hits home :D (more like `git s` nowadays, also <esc>:w on repeat).

comment 7y ago · link · parent

Same thing happened to NASA, started at 43.6% success rate for 1950s then 85.1% for 1960s, etc. etc. https://space.stackexchange.com/questions/1659/what-is-the-s...

comment 7y ago · link · parent

Tried top movies from The Pirate Bay and I get "Sorry the file format is not supported!".

Also your main input is a textarea instead of just an input type=text.

comment 7y ago · link · parent

I thought it was going to be about the Pixel phone and how it lasts or doesn't

comment 7y ago · link · parent

crunchbase / glassdoor / main website + archive.org / github / twitter / facebook / try out their service/app / contact customer support / emailhunter / linkedin / etc.

comment 7y ago · link · parent

Should redirect to this: https://www.emacswiki.org/emacs/Evil

And emacs.dev to: https://www.vim.org/scripts/script.php?script_id=300

comment 7y ago · link · parent

main thread: https://news.ycombinator.com/item?id=19279829

comment 7y ago · link · parent

C (C99) and Javascript (ES5) are very likely to still be supported.

Most protocols will be phased out for security reasons. So I would go with direct TCP/UDP based on Linux kernel syscall (still the weakest point) in C or with fetch in JS.

Most operating systems will be trivially vulnerable to attacks, so I would go with the minimal possible attack surface (hardened kernel, firewalled, etc.)

It should survive and TCP/UDP communication makes it easy to integrate with any other software.

For the hardware I would go with a Raspberry pi if possible (and in C), otherwise just hosted on AWS.

About its usefulness, that would be hardest point. If it was useful and not updated for 5-10 years, it will be replaced however complex it is, 100 years later the problem might be generalized or not relevant anymore.

Looking at what's there:

- 61 years old, MOCAS, OS written in COBOL used US Department of Defense, on a mainframe

- Linux, Python, glibc, perl, emacs, ...: Most old software still relevant is a core foundation (programming languages, operating systems, text editors)

- NASA's software: C, C++, Ada, Python. Linux for applications, Windows for end users.

So I would probably make a minimal programming language, maybe some kind of minimal Crystal.

comment 7y ago · link · parent

https://www.ruby-lang.org/en/news/2018/03/28/buffer-under-re...

Affected Versions:

Ruby 2.2 series: 2.2.9 and earlier

Ruby 2.3 series: 2.3.6 and earlier

Ruby 2.4 series: 2.4.3 and earlier

Ruby 2.5 series: 2.5.0 and earlier

Ruby 2.6 series: 2.6.0-preview1

prior to trunk revision r62992

comment 7y ago · link · parent

Also, usual reminder that Sci-Hub exists and has all the research papers available for free from any journal.

comment 7y ago · link · parent

"Looking for Ruby/Elixir developers" -> They just want Elixir developers but put Ruby to have more applicants.

And in general there is a lot of keyword stuffing in job descriptions.

comment 7y ago · link · parent

I was curious and just did that :) https://gist.github.com/localhostdotdev/48ed13972c3e5391a47f... (small sample of ~1500 localized tweets)

comment 7y ago · link · parent

I see there is interest in this observation so I used a little ruby (.to_s(2)[-22..-17].to_i(2)) to get the datacenter id.

Then ran it on a few Twitter accounts: https://pastebin.com/w8Dnj5kM

It does work, and it's going to be hard to patch

edit: I realized you don't only get one location but the whole location history of a Twitter user. Also locating Twitter's data centers as it doesn't seem to be public information

comment 7y ago · link · parent

That's quite amazing!

One thing is that the data center ids are in the tweet ids, so it could be used to get a rough location of Twitter users.

comment 7y ago · link · parent

That's awesome! Would love to use it on popular ruby gems to make sure they are secure (including Rails). Also having a free plan is perfect for experimenting. I predict this company will be a huge success.

comment 7y ago · link · parent

I remember having to build one with solr, that was a mess.

comment 7y ago · link · parent

I thought everyone agreed that :thumbsup: on the issue replaced the +1. Also the Github staff does read those issues.

230.

Metasploit(github.com ↗)

1 points · by aboutruby · 7y ago · discuss

comment 7y ago · link · parent

What does he really risk if found guilty of contempt? I don't think the SEC is going to settle again

comment 7y ago · link · parent

Here is a helpful chart of USB versions and their connectors: https://preview.redd.it/s9dun6a1xmpz.png?width=960&crop=smar...

e.g. USB 3.2 has the same connector as USB-C

edit: I personally care far more about the connector than exact specs of each version

comment 7y ago · link · parent

https://outline.com/tHvr8P

(I got "We've detected unusual activity from your computer network" with a captcha.)

comment 7y ago · link · parent

A lot of people say you don't need Heroku when you have Docker images, but Heroku actually takes care of the vast majority of vulnerabilities for you.

comment 7y ago · link · parent

Probably having .htaccess / .env / database configuration / files that are not supposed to be public be exposed.

For instance, Rails has a public/ folder for files that are going to be served. And jekyll hides files by pattern-matching them[1].

Zero doesn't seem to have exclude folders by default. The solution would be to run Zero is a subfoler and require file in the parent folder which would act as the tree's root.

[1]: https://help.github.com/en/articles/files-that-start-with-an...

comment 7y ago · link · parent

Reminds me more of Faker: https://github.com/marak/Faker.js

comment 7y ago · link · parent

With some automated formatting: https://pastebin.com/7F2Leqy1

238.

Over 8k marijuana convictions in San Francisco dismissed with [ ] algorithm(edition.cnn.com ↗)

1 points · by aboutruby · 7y ago · discuss

1
789
16