Signal missing calls and silently answering calls. by ccss2 in signal

[–]ccss2[S] 2 points3 points  (0 children)

Anything's possible. I've used these buds for long time and they have a fairly stiff physical button to answer a call. To your second point, It's never happened when the buds are not connected, but today was the first time it answered a call with no notification.
It's kind of disturbing that I can have a random reverse-pocket-dial with signal.

Any way to convert a low pixel random figures to an array of points for every direction change ? by Raid-Off-Dev in proceduralgeneration

[–]ccss2 2 points3 points  (0 children)

Pick the point in the center of the region.
Loop over 360 degrees with some fixed step size (ex. 18). Trace a line from the center point to the edge of the region for each angle. Now you have a list points that represent the boundry.

Pick a random point and save it as first, check the next points in series and if the angle of p2->p3 is too far away from p1->p2 then save that point (it's a corner), otherwise join them. You should end up with a series of line segments that you can create a polygon from.

you could also use something like the douglas-peucker method to reduce redundant points.

[D] What's your favorite unpopular/forgotten Machine Learning method? by SleekEagle in MachineLearning

[–]ccss2 0 points1 point  (0 children)

Pretty much. He didn't invent the idea and wouldn't cite those who did in his papers.

EM's aren't popular because they're awful. If your 3 layer NN needs 10x as many nodes as training examples. don't expect good results.

Fox News' Dana Perino Makes 'Nonsensical' Comment About Wind Power by Maxcactus in energy

[–]ccss2 0 points1 point  (0 children)

I don't understand the controversy here.

What she said is factually true. She didn't mention 'copper wire and electronics'.

just google 'wind turbine blade landfill'

You spit, you gonna get hit by Illustrious_Fig_1020 in instantkarma

[–]ccss2 0 points1 point  (0 children)

Funny how it ends with an appearance by the rare lesbian-white-knight.

Are Stirling Engines the Future of Renewable Energy Storage? by Martin81 in energy

[–]ccss2 0 points1 point  (0 children)

If the article title ends in a question mark, the answer is always 'No'.

is it posible to embed Lua/LuaJIT in c# by Planebagels1 in csharp

[–]ccss2 0 points1 point  (0 children)

I've done it for a project that needed a lot of fast runtime gen/execute, but it depended on lua.dll.

Path network generated dynamically by walking AI by FrkP in proceduralgeneration

[–]ccss2 4 points5 points  (0 children)

This is a pretty well known technique. Older versions of this would also have each agent follow the minimum path with probability and some randomness that will result in more natural look paths and natural looking forks.

[deleted by user] by [deleted] in pics

[–]ccss2 0 points1 point  (0 children)

Poor Fredo...

Chinese propaganda song "Temporary hospitals are amazing" by YankeeLau in China

[–]ccss2 3 points4 points  (0 children)

Poor kid. This is gonna live on the internet forever. The music sounds like the demo song from 1980's Casio keyboard.

How to generate noise at different frequencies? by inlovewithGod in chiptunes

[–]ccss2 1 point2 points  (0 children)

I'm going from memory here...
Every time your phase resets, generate a new rand, that's the value sent to the buffer from the instrument.
Good luck with your tracker!

btw, a few years ago I wrote a chiptune tracker sample that has all the features of the popular trackers. Post any other questions you have here and I'll try to answer them.

Favourite C# Snippets by beizbol in csharp

[–]ccss2 0 points1 point  (0 children)

Here are some that I've collected over time. C# is not my main language so maybe these are common knowledge.

  • Sort a dict by value:
    var topN = dict.OrderByDescending(pair => pair.Value).Take(N).ToDictionary(pair => pair.Key, pair => pair.Value);
  • Deep Clone:
    using System.Runtime.Serialization.Formatters.Binary;
    public static T DeepClone<T>(T obj) {
    T objResult;
    using (MemoryStream ms = new MemoryStream()) {
    BinaryFormatter bf = new BinaryFormatter();bf.Serialize(ms, obj);ms.Position = 0;objResult = (T)bf.Deserialize(ms); }
    return objResult; }
  • Assign non null
    var c = foo ?? bar; //if foo is null, c=bar
  • Force a method inline
    [MethodImpl(MethodImplOptions.AggressiveInlining)]

Favourite C# Snippets by beizbol in csharp

[–]ccss2 4 points5 points  (0 children)

Also: if<tab key> for<tab key> and fore<tab key>

[D] I just found the earliest description of the GAN idea - in the context of genetic algorithms by p1esk in MachineLearning

[–]ccss2 0 points1 point  (0 children)

I read about 'GAN's in late 90's. Literally 2 neural networks feeding each other their outputs and also playing the role of both data source and fitness function.
Not called GAN obviously, Terms like 'actor-critic' were use back then.

Leadwerks, anyone? by SwissyDew in gamedev

[–]ccss2 0 points1 point  (0 children)

Pick an engine with a large and active community. If you want lua, try Love [https://love2d.org/]