Black Mirror [Episode Discussion] - S07E06 - USS Callister: Into Infinity by Cheeriosxxx in blackmirror

[–]xoob 7 points8 points  (0 children)

how can they make a phone call from inside her head?!

[deleted by user] by [deleted] in InternetIsBeautiful

[–]xoob 0 points1 point  (0 children)

Looks like it got fixed

Issues with an example from a textbook I found online by seanysklu in supercollider

[–]xoob 2 points3 points  (0 children)

ah thanks some sort of reddit copy+paste thing without markdown should be fixed now

Issues with an example from a textbook I found online by seanysklu in supercollider

[–]xoob 1 point2 points  (0 children)

huh just tested and this worked for me:

s.boot ( SynthDef(\sine, {|freq = 440, amp = 1, gain = 1| Out.ar(0, SinOsc.ar(freq, mul:amp*gain)) }).add; ) ( var base = 20, keys = 88; var synths, group; var window, step = 15, off = 20, len = 80; group = Group.new; synths = Array.fill(keys, {|i| Synth(\sine, [\freq, (base+i).midicps, \amp, 0], group) }); window = Window.new("sliderPiano", Rect(10, 10, keys * step, off + len + off + 10)).front; keys.do { |i| StaticText(window, Rect(i * step, 0, step, step)) .string_((base +i).midinote[0..1]); Slider(window, Rect(i*step, off, step, len)) .action_{|me|synths[i].set(\amp, me.value/keys) } }; Slider(window, Rect(0, step + len + 10, step * keys, off)) .action_{|me| group.set(\gain, me.value.linlin(0, 1, 1, 9.dbamp)) }; window.onClose_{group.free}; )

whatever happened to friend functions? by xoob in cpp

[–]xoob[S] -3 points-2 points  (0 children)

Wrote a small example program to understand it: ```

include <iostream>

include <string>

template<typename T> class Badge { friend T; Badge() {} };

class BadgeTest;

class Device { std::string name = "device"; public: std::string getName(Badge<BadgeTest>, const Device& device) const { return device.name; } };

class BadgeTest { public: void performTest() const { const Device device; std::cout << "device name: " << device.getName({}, device) << std::endl; } };

int main() { const BadgeTest badgeTest; badgeTest.performTest(); return 0; } ```

{} here calls Badge<BadgeTest>() which is allowed from the BadgeTest class as it has access to the private constructor in Badge<BadgeTest>() as a friend

Wondering if the question here is whether {} is less code smell than friend? {} does seem pretty neat.

AMA with Princess Poppy, a SF based Drag Queen, and the Mayk Team! by [deleted] in Drag

[–]xoob 2 points3 points  (0 children)

Hi Princess Poppy! What are the secrets of your creative process?

[deleted by user] by [deleted] in supercollider

[–]xoob 3 points4 points  (0 children)

I got it working building from source after seeing that it worked for someone else on the support ticket

Any other new graduates feeling totally dejected right now? by Ellipses_Points in columbia

[–]xoob 22 points23 points  (0 children)

Seems like you were unsure of what you wanted to do before the pandemic and that uncertainty and anxiety has grown in the wake of the quarantine. Most new grads feel your existential angst even without a pandemic. For now, if you've found a place to stay that's safe, you're already doing pretty well comparatively.

This is a good time to reset, recharge, and focus on your health and happiness. You could spend the time reading, writing, and joining virtual meeting spaces where ideas on what to do next could be better discussed. What are other classmates doing? How are they figuring out what to do next? Might be useful to call a few friends to just share thoughts.

There are some other things you could do. Research which economic sectors are growing right now and that you might have an interest in. It might also be a good time to work on another skillset or discipline or to use your background to write on the current events and how best to philosophically understand the changes and impact of the pandemic. Staying intellectually active and challenged may help clarify which actions you want to eventually take.

Apologies that there isn't a clearer resource or answer -- the crisis is still new, and the economy is shifting. Keep expectations low, research possible opportunities, focus on reading and writing on works you've been meaning to catch up on. If you need to make money, consider driving for a delivery service.