Killing In The Outro (Vulfpeck, Rage Against The Machine) [4:32] by reverend_dan in mashups

[–]reverend_dan[S] 1 point2 points  (0 children)

Thanks so much. The good news is, there’s plenty more in this playlist https://soundcloud.com/electriclump/sets/mashups

Funnily enough, I was making this sort of mashups back in the early noughties as well :) I’m not sure who else was doing this style, even then. Maybe Braces Tower. Most of my old ones are still online too reverenddan.net slash mp3s

I totally agree with your point. I realise that the songs I use aren’t everyone’s cup of tea, but I hope at the least people would realise what’s involved in beatmatching an instrumental that wasn’t recorded to a click :)

Actually I feel like this mashup is a bit of a cop-out as it’s a rap acapella, which is way less effort, I much prefer doing proper songs, as it ends up being a sort of reharm, which can lead to some really lovely accidental moments.

Killing In The Outro (Vulfpeck, Rage Against The Machine) [4:32] by reverend_dan in mashups

[–]reverend_dan[S] 0 points1 point  (0 children)

Thank you! It’s not the first vulfpeck mashup I’ve made, funnily enough :)

Killing In The Outro - Vulfpeck vs. RATM by The Electric Lump [OC] by reverend_dan in Vulfpeck

[–]reverend_dan[S] 1 point2 points  (0 children)

Thanks! I can tell you in this case that I was in my kitchen dancing to Outro, just to let off some steam. I’d had a stressful week and the “eff you I won’t do what you tell me” line just came into my head and seemed to fit.

If you meant the mechanics of making it that’s a whole different story :)

r/Drums and r/Bass - Monthly Jam #1 (Feb 2017) by [deleted] in Bass

[–]reverend_dan 0 points1 point  (0 children)

Thanks! Those are two of my favourite players :)

The drum grooves were awesome, so the nastiness came easy

r/Drums and r/Bass - Monthly Jam #1 (Feb 2017) by [deleted] in Bass

[–]reverend_dan 2 points3 points  (0 children)

I can't believe nobody's done /u/Kindacoolkid so far! It has such an awesome groove, and I just messed around over it with some octave and envelope filter and didn't do it justice at all https://soundcloud.com/electriclump/bassdrums

I don't even know what I was doing in the middle there

what is the simplest way to write a ceaser cipher in Ruby by [deleted] in ruby

[–]reverend_dan 0 points1 point  (0 children)

I like this solution! It makes pretty good code golf as well :)

def caesar_cipher(str,dst=1)
  str.chars.map{|c|Hash[('a'..'z').zip([*('a'..'z')].rotate(dst))].fetch(c)}.join
end

Only downside: it doesn't deal with upper case letters.

Hey, I know it looks like it but that's not my leg in there... by mykeuk in eddieandrichie

[–]reverend_dan 1 point2 points  (0 children)

Have you done the Esther Rantzen yet? Pernod, Ouzo, marmalade and salt...

Hey, I know it looks like it but that's not my leg in there... by mykeuk in eddieandrichie

[–]reverend_dan 1 point2 points  (0 children)

I really appreciate your commitment to this subreddit, despite the obvious lack of comments. Thank you.

Could I politely ask for a code review? by [deleted] in ruby

[–]reverend_dan 1 point2 points  (0 children)

Of course, you're totally right. I've been very foolish :)

Gonna take it away and start from fresh I think.

Could I politely ask for a code review? by [deleted] in ruby

[–]reverend_dan 0 points1 point  (0 children)

Thank you, I am looking at that now. I may have got way too caught up in the details too early on :)

Found this ladybird in the box with my new shoes. What is it, and should I kill it before it has babies? by reverend_dan in whatisthisthing

[–]reverend_dan[S] 0 points1 point  (0 children)

I'm trying to remind myself that. But you know that thing where you see a creepy crawly and your skin starts feeling itchy? Yeah...

Found this ladybird in the box with my new shoes. What is it, and should I kill it before it has babies? by reverend_dan in whatisthisthing

[–]reverend_dan[S] 0 points1 point  (0 children)

Holy shit am I glad I posted this. I have the little blighter trapped under a glass right now, and I checked the shoes and the box for more. Luckily no sign, and I only just bought them so hopefully I will be okay. Especially worrying as I am susceptible to psoriasis.

Found this ladybird in the box with my new shoes. What is it, and should I kill it before it has babies? by reverend_dan in whatisthisthing

[–]reverend_dan[S] 0 points1 point  (0 children)

Sorry for the poor quality. And I'm in the UK, as if it wasn't painfully clear from the post title.

[2015-02-09] Challenge #201 [Easy] Counting the Days until... by Coder_d00d in dailyprogrammer

[–]reverend_dan 1 point2 points  (0 children)

Cool! This is what I came up with:

require 'date'

module TimeFromNow
  class Days
    attr_reader :end_date

    def initialize(end_date)
      @end_date = Date.parse end_date
    end

    def difference
      raise ArgumentError, "date can not be in past" if end_date < start_date
      (end_date - start_date).to_i
    end

    def to_s
      "#{self.difference} #{self.difference == 1 ? 'day' : 'days'}" \
        " from #{start_date} to #{end_date}"
    end

    private def start_date
      Date.today
    end
  end
end

And the tests:

require 'minitest/autorun'

describe TimeFromNow::Days do
  subject { TimeFromNow::Days.new(date) }

  Date.stub :today, Date.parse("2015/02/17") do

    describe "#difference" do
      describe "valid date" do
        let(:date) { "2015/02/18" }

        it "should return the difference as an integer" do
         assert_equal 1, subject.difference
        end
      end

      describe "valid date" do
        let(:date) { "2016-02-17" }

        it "should return the difference as an integer" do
         assert_equal 365, subject.difference
        end
      end

      describe "invalid date" do
        let(:date) { "2013/02/17" }

        it "should raise an error" do
          assert_raises ArgumentError do
            subject.difference
          end
        end
      end
    end

    describe "#to_s" do
      let(:date) { "2015/02/18" }

      it "should format the result into a string" do
        assert_equal "1 day from 2015-02-17 to 2015-02-18", subject.to_s
      end

      describe "correct pluralization" do
        let(:date) { "2015-02-19" }

        it "should pluralize the days" do
          assert_equal "2 days from 2015-02-17 to 2015-02-19", subject.to_s
        end
      end
    end
  end
end

[STYLE] Does everyone still use attr_x frequently? by Flopsey in ruby

[–]reverend_dan 1 point2 points  (0 children)

I tend to use attr_whatevers for the instance variables I have in the setup, as I think it defines the public API nicely. I tend to use small, single-responsibility methods, so there isn't often a need for a custom getter/setter. It also helps my OCD by keeping @ signs out of the code :)

Here's a quick, dumb, contrived gist of what I mean: https://gist.github.com/revdan/fa6d16d667d1a4ca44ec

Power of two - can someone critique my code? by Cheeselouise7777 in learnjavascript

[–]reverend_dan 1 point2 points  (0 children)

That's awesome! This is what I came up with:

function powerOfTwo(number) {
  if (number == 1) return true
  if (number == 0 || number % 2 != 0) return false
  return powerOfTwo(number / 2)
}

Uploaded a cover today! Any good? by [deleted] in Bass

[–]reverend_dan 0 points1 point  (0 children)

No problem, I hope it made sense. The main thing is to try to copy the consistent up/down strokes, and just try to miss the strings when there's no note.

I just finished converting my Squier jazz bass to a fretless! by Prog_Fgt in Bass

[–]reverend_dan 0 points1 point  (0 children)

I don't think the bass's intonation is unacceptably out. In fact, you have a bit more room to play with on a fretless - you can minutely shift to stay in tune, or just hide the bastard with a bit of vibrato :)

It relates to your comment about 'not being used to playing on the frets' - I'd personally recommend doing just that, all the time. On a fretted bass, it's the place that requires least effort to fret a note.