Watched 1 video

Watched 1 Video from start to finish

Subscribed for 1 month

Learning and showing your support for 1 Month

Spread the word 1 time

Referred 1 Member to Drifting Ruby

10

10 times Chatter Box

Make 10 comments to videos or replies to other comments
6/10

Share the love 1 time

Liked 1 episode

3

Welcome back 3 times

You've visited Drifting Ruby on 3 different days

4

Suggested 4 episodes

Helped the community by suggesting 4 episodes
2/4

2

Vote Suggestion 2 times

Helped the community by voting on suggestions 2 times
1/2

Vote Suggestion 1 time

Helped the community by voting on suggestions 1 time

Earned on 3/6/2019

2

Suggested 2 episodes

Helped the community by suggesting 2 episodes

Earned on 3/6/2019

Suggested 1 episode

Helped the community by suggesting 1 episode

Earned on 3/6/2019

1 time Chatter Box

Make 1 comment to videos or replies to other comments

Earned on 3/4/2019

# Name
dancinglightning said over 2 years ago on Rails API - Throttling with Rack::Attack :

Very nice. I use it on every app nowadays. Throtteling off course, but also to deal with probes:

Rack::Attack.blacklist('block admin probes') do |req|

  # Request are blocked if the return value is truthy

  block = false

  ["php" , "jsp" , "cgi", "asp", "cfm," "proxy.txt", "soapCaller", "Win32" , "HNAP1" , "w00tw00t",

    "pma" , "mysql" ,"msd" , "MySQL" , "jmx-console" , "ervlet" , "xml" , "cart" ,"install"].each do |no|

    block = true if  req.path.include?(no)

  end

  block

end

 

dancinglightning said over 2 years ago on Periodic Tasks with sidekiq-cron :

Thanks, actually for that whole series on sidekiq. Maybe some testing coming up ?

Having deployed the cron, i had to restart the sidekiq service. Off course. 

As you have everything else nicely setup for copy/paste, adding the schedule.yml file would make it even easier for the next guy.

And i must admit that at first hearing i also understood that this was only for use with enterprise edition. Only a bit of checking and listening again cleared that up.

Thanks

Torsten

dancinglightning said about 2 years ago on Routing Partials :

Nice idea of splitting large route files. 

But am i misunderstanding something or could you just as well use require_relative , either directly or instead of the instance_eval ?

dancinglightning said about 2 years ago on Plotting Points on a Map from Scratch :

Yes, thanks for that.

Did you see a way of getting from actual addresses to those coordinates that you used ?

dancinglightning said almost 2 years ago on Testing with RSpec :

Nice one.

Creating the models with factory_girl makes for much better reuse and smaller code.

And adding guard and autosave in the mix, the workflow has less steps and is much faster.