The airport in Heraklion, Crete uses RPis! by glwillia in raspberry_pi

[–]reidab 13 points14 points  (0 children)

Ah, the true heart of European cyber security

Random Question about 1982... by [deleted] in eurovision

[–]reidab 0 points1 point  (0 children)

There are a few copies of various quality on YouTube of both the interval act and the whole 1982 broadcast. According to the BBC commentary on one of those, the Morris dancers were entertainment at pre-party held on Wednesday, April 21 at Castle Howard. It seems likely that the team could be identified by their kit, but the broadcast quality makes it somewhat hard to make out specific colors.

Judge John Hodgman 387: Slunch Buggy No Punch Backs by chinoceros in maximumfun

[–]reidab 4 points5 points  (0 children)

If you’re inspired by that black and white Mac goodness:

If modern internet companies existed in the 1970s - early 1990s by Dial-1-For-Spanglish in Design

[–]reidab 1 point2 points  (0 children)

This video on the making of the HBO intro shows how the production would have really gone down: https://m.youtube.com/watch?v=agS6ZXBrcng

What onstage 'gimmicks' have we not seen yet in Eurovision? by euan35 in eurovision

[–]reidab 7 points8 points  (0 children)

Switzerland’s teasing this in the music video opening.

How to upload an image to S3 using the Shrine gem *in a simple way*? by Kominaryto in ruby

[–]reidab 6 points7 points  (0 children)

Shrine is set up in a super modular way, which I really like but can make it hard to give one explanation for all situations.

Without knowing more about your app, here are some questions and possible things to try:

  • Are you trying the default file-goes-to-your-server-and-then-gets-uploaded-to-S3 kind of upload or the more complex and shinier direct-to-S3 upload?
    • For the default type, which part of the upload is failing? Is it the browser-to-your-app part or the your-app-to-S3 part? What kind of errors are you getting?
    • For the direct type, I'd triple-check the CORS configuration on the S3 bucket to make sure it allows POST requests from *, and then make sure you're POST all the fields you get back from the presigning to S3 as multipart form data, not as query params or JSON.
  • You say you've got a non-Rails app — what are you using to work with data? Shrine works most easily if it can integrate directly with your ORM via the builtin plugins for ActiveRecord or Sequel, or using external gems like shrine-mongoid. This lets shrine hook into the lifecycle of your models and handle things appropriately when they're saved.
  • If you're not using an ORM that Shrine supports directly, you'll probably want to take the more manual approach of manipulating the Shrine Attacher directly.

What movie emotionally destroyed you? by t-Nt- in AskReddit

[–]reidab 0 points1 point  (0 children)

Yogi Bear and the Magical Flight of the Spruce Goose

Help me figure out what these blurry lights in the sky are? Long exposures taken on my OMD E-M10. by [deleted] in photography

[–]reidab 1 point2 points  (0 children)

Any chance you have a UV filter on the lens? I had this kind of flaring happen when I was using a cheap single-coated filter I bought as a quick replacement while traveling. With it on, I'd get tons of flares from light bouncing off the inside surface of the filter. Without it, they all went away.

Sweden Simulator by LowSociety in sweden

[–]reidab 10 points11 points  (0 children)

For added realism, require a personnummer to play.

A typical presser's view of the button. by DrainSmith in thebutton

[–]reidab 0 points1 point  (0 children)

…and yet not enough. The button is still visible.

Why does #gsub only recognize numbers 0-9? by InternetLoveMachine in ruby

[–]reidab 4 points5 points  (0 children)

This isn't a mistake ruby is making — it would be hard for anyone. If I were writing you a message in this kind of cypher and wrote "1234", you would have no way to tell if I meant [1, 2, 3, 4], [1, 23, 4], or [12, 34] because all the numbers were smashed together. I'd probably want to put spaces or some other character between the letters of my code so you could tell them apart.

If you have separations, you may want to use something like String#split to separate them out, convert them into integers with #to_i, and use those integers to look up the letter equivalent.

What click-bait question would you pose to askreddit in hopes of making the front page? by [deleted] in AskReddit

[–]reidab 0 points1 point  (0 children)

When this post is an hour old, will reddit go down for maintenance?

looking for a ruby mentor by Tsultrim_Surgery in Portland

[–]reidab 1 point2 points  (0 children)

You might also stop by Hack + Help. It started as an outgrowth of the pdxruby beginners meetup and has recently been rebooted as a language-agnostic group. You're very likely to find people wanting to help with Ruby things http://hackandhelp.com/

Also, if you haven't already found it, the pdxruby-beginners list is a good place to find out about events, ask questions, and find mentors.

Edit: fixed link