News for hackers. Stuff that matters.

aboutruby

Re:Ruby CVE-2018-8778 Arbitrary Memory Disclosure Vulnerability on Thursday February 28, 2019 @05:13PM (#19275784)
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

Also, usual reminder that Sci-Hub exists and has all the research papers available for free from any journal.
Re:Red Flags in Software Developer Job Descriptions on Thursday February 28, 2019 @06:30AM (#19270611)
"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.

Re:Reconstructing Twitter's Firehose on Wednesday February 27, 2019 @11:17PM (#19268915)
I was curious and just did that :) https://gist.github.com/localhostdotdev/48ed13972c3e5391a47f... (small sample of ~1500 localized tweets)
Re:Reconstructing Twitter's Firehose on Wednesday February 27, 2019 @08:28PM (#19268325)
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

Re:Reconstructing Twitter's Firehose on Wednesday February 27, 2019 @06:06PM (#19267713)
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.

Re:Launch HN: Fuzzbuzz (YC W19) – Fuzzing as a Service on Wednesday February 27, 2019 @02:57PM (#19266411)
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.
Re:Amazon Personalize: Real-Time Recommendation on Wednesday February 27, 2019 @08:38AM (#19263116)
I remember having to build one with solr, that was a mess.
Re:Show HN: Follow GitHub Organisations on Wednesday February 27, 2019 @08:14AM (#19262996)
I thought everyone agreed that :thumbsup: on the issue replaced the +1. Also the Github staff does read those issues.
What does he really risk if found guilty of contempt? I don't think the SEC is going to settle again
Re:USB 3.2 is going to make the current USB branding even worse on Tuesday February 26, 2019 @06:13PM (#19259316)
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

Re:Musk Faces U.S. Contempt Claim for Violating Accord with SEC on Tuesday February 26, 2019 @11:53AM (#19255977)
https://outline.com/tHvr8P

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

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.
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...

Re:This Startup Does Not Exist on Tuesday February 26, 2019 @09:32AM (#19254558)
Reminds me more of Faker: https://github.com/marak/Faker.js
Re:PHP code generated by GPT-2 on Tuesday February 26, 2019 @08:19AM (#19253996)
With some automated formatting: https://pastebin.com/7F2Leqy1
Re:Starbucks' music is driving employees nuts on Monday February 25, 2019 @10:52PM (#19251847)
Reddit thread: https://www.reddit.com/r/starbucks/comments/ah2m1d/if_i_have... (I couldn't find any other one than the one linked in the article).
Re:Facebook moderators in America on Monday February 25, 2019 @12:09PM (#19247179)
For those used to shock sites from 10-20 years ago, this is very different, I'm not going to link to anything but the disturbing content is on a few whole new levels.

I can't even imagine doing this job. This should be 100% automated with only 0.01% error rate for the first-pass filter (e.g. before it reaches humans).

They are willing to spare their users the horrors but not their own employees/contractors...

Its 4GB max file size was a pretty big problem near its end of life.
Re:Databases always have a schema (2018) on Monday February 25, 2019 @09:22AM (#19245756)
In my current case I have highly unstructured data stored as a jsonb in postgres with some basic fields for indexing. So the database doesn't have a schema and making many tables for each variation of the data would take an enormous amount of time.
Also I learned recently that Australia's internet is getting more censored every year: https://en.wikipedia.org/wiki/Internet_censorship_in_Austral...
Re:Ask HN: What VPN service are you currently using? on Monday February 25, 2019 @07:31AM (#19245128)
Anyone has experience with multi-hop VPNs?
Re:The CPython Bytecode Compiler Is Dumb on Sunday February 24, 2019 @09:05PM (#19242195)
Some people are working on optimizing ruby "bytecode" (what the VM interprets): https://developers.redhat.com/blog/2019/02/19/register-trans...

I'm pretty sure the same concepts could be applied to CPython.

Re:Do not donate to me (2013) on Sunday February 24, 2019 @07:03PM (#19241544)
Why not accept donations then redistribute them to those causes?

Also I recommend https://www.givewell.org

Re:Ghidra on Sunday February 24, 2019 @04:22PM (#19240692)
On a sidenote, looking at their Github, they publish a lot of names / emails in the git logs (~100). Some are encoded / anonymous, but most are real looking names and plausible email addresses.
Re:How Discord Scaled Elixir to 5M Concurrent Users (2017) on Sunday February 24, 2019 @04:05PM (#19240605)
Thanks a lot, I should have googled it, I would have seen your previous comment mentioning it which has complementary information[1].

[1]: https://news.ycombinator.com/item?id=17447355

I did some basic testing (capture an image on a warmed up macbook webcam) and the LED lights up for ~1.6s for each capture. The bigger problem is that if you are looking elsewhere / not in front of your computer you wouldn't notice the capture.

Did it using this script: https://tenderlovemaking.com/2014/03/26/webcam-photos-with-r...

Re:How Discord Scaled Elixir to 5M Concurrent Users (2017) on Sunday February 24, 2019 @08:25AM (#19238452)
I'm continuously impressed at the quality of the software coming from Discord. By far the best messaging user experience on desktop there is.

Discord already uses Cloudflare, I'm curious what they think of Workers.

edit: I'm on macOS, not an heavy user, I used Slack / Skype / Hangouts / WhatsApp / Messenger / etc. before

Older »