Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

10-25-2016 , 05:01 PM
Quote:
Originally Posted by goofyballer
Code:
var allArrays = [array1, array2, ...];

function renderItem(item) {
    // output html
}

function makeTable(reverse) {
    allArrays.map(function (array) {
        return reverse ? array.slice().reverse() : array;
    }).forEach(function (array) {
        array.forEach(renderItem);
    });
}

function makeTableAToZ() {
    makeTable(false);
}

function makeTableZToA() {
    makeTable(true);
}
This is much better obviously but I think the first map is redundant since you could just do:

Code:
function makeTable(reverse) {
    allArrays.forEach(function (array) {
        (reverse ? array.slice().reverse() : array).forEach(renderItem);
    });
}
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-26-2016 , 03:02 AM
Quote:
Originally Posted by daveT
I'm going to focus on monophonic music and go from there. This will be hard enough as it is, and the more I read and think about it, the more I appreciate how difficult this is going to be.
Progress is slow and unfortunately not as sober as I would like it to be, but learning about all the stuff (and math) involved is fascinating to say the least. FFT is truly amazing once you get the reasoning behind it.

If anyone argues with you about why a CS degree is a waste of paper, please go to github, search FFT, clone all the major projects that use it (like audacity), and ask them to read the code and then ask if this is stuff you learn in bootcamp.

Quote:
I've been thinking about a good project for finally really getting a hang of C. I feel like this will be among the worst ways to go about it, but oh well.
I kept on running into an error about how "in" isn't a pointer or array, but this is a pointer to an array of complex numbers...

Code:
in = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
I searched online, crossed confirmed my code with examples, and still, I get an error. I then copy / pasted entire codes from online: these compiled and ran as stated. I copied their functions into my code and was still getting the same silly error.

Tell me, what is wrong with this code snippet?

Code:
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <fftw3.h>
#include <sndfile.h>
If you guessed "#include <complex.h>," you are definitely a better person than I am. If you are wondering why I would add such an include in the first place, I misread the documentation.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-26-2016 , 12:21 PM
suzzer,

Think I just found the best Google spellcheck annoyance.

You get red underline with the world italian when you don't capitalize the I, but they don't even offer that as the suggestion:

** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-26-2016 , 02:52 PM
Maybe you should try being nicer to Google

** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-26-2016 , 04:20 PM
Chrome mac vs PC?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 09:07 AM
The first 100k values from the sound file I was using:

decibel chart:



unconverted, not normalized values (sort of):



Such a crazy rabbit hole to even get that little bit up. It is the most overly researched and difficult 49 LOC I've ever written. Don't ask me to clarify, lol.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 12:29 PM
Getting laid off at the end of the month but have a couple of meetings to do some knowledge transfer before then, I do not like hanging around the office with nothing to do...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 12:46 PM
Quote:
Originally Posted by kerowo
Getting laid off at the end of the month but have a couple of meetings to do some knowledge transfer before then, I do not like hanging around the office with nothing to do...
Yeah it's the worst. I've only been laid off once, and thankfully they just showed me the door. But whenever I quit they always want 20 hours of meetings in the last week, which sucks, but also leaves you with 20 hours of ****ing thumb twiddling.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 03:57 PM
"Yeah it's tough to get anything done this time of year. Not much is going to happen between now and the end of the year. Just focus on learning stuff. There will be more to do after the holidays."

My lead. Real efficient company we have here.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 05:04 PM
Quote:
Originally Posted by suzzer99
"Yeah it's tough to get anything done this time of year. Not much is going to happen between now and the end of the year. Just focus on learning stuff. There will be more to do after the holidays."

My lead. Real efficient company we have here.
Hah. I have that conversation with people the day or two before Christmas. A week tops.

Edit: Although I usually offer "Fix something that annoys you" as an alternative to learning.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 05:07 PM
Oraclol enforced mandatory vacation between xmas and new years to combat ppl just sitting there
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 11:30 PM
Quote:
Originally Posted by suzzer99
"Yeah it's tough to get anything done this time of year. Not much is going to happen between now and the end of the year. Just focus on learning stuff. There will be more to do after the holidays."

My lead. Real efficient company we have here.
Is this the startup? If so, lol that place seems destined for failure
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-27-2016 , 11:36 PM
No this is the corporate day job.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 10:14 AM
Why doesn't this work? JS.

new Array(5).map((undef, index) => index) // [undefined x5], not [0,1,2,3,4]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 10:39 AM
Quote:
Originally Posted by Grue
Why doesn't this work? JS.

new Array(5).map((undef, index) => index) // [undefined x5], not [0,1,2,3,4]
add this:

new Array(5).fill().map((undef, index) => index)

or you could do this:

Array.from(Array(5),(x,i) => i)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 11:13 AM
wow. I should pay more attention to obscure array methods instead of just "ho hum here's _.range".
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 02:34 PM
http://www.bloomberg.com/news/articl...-not-necessary

Quote:
For almost five years, Gregory Furlong worked 50-hour weeks as a shipping clerk at a Best Buy two miles from his childhood home in Wilmington, Delaware. It was a kind of employment purgatory for a computer obsessive who tinkers with motherboards in his free time.

So last year, Furlong, 30, enrolled in a three-month coding boot camp that uses HackerRank, a web platform that trains and grades people on writing computer code. After earning a top ranking for Java developers globally, Furlong was hired by JPMorgan Chase & Co. in December for its two-year technology training program.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 03:42 PM
Quote:
He’s more fulfilled, he says, and he’s paid off student loans with pay that’s double his previous earnings.
He got hired by JPM and is getting paid only twice what a best buy shipping clerk makes? I hope that's journalistic inaccuracy.

I have played with HackerRank, but how does one get a high ranking? Do lots of challenges? Get a good score first? Whenever I do one, I get the exact same score as literally almost everyone (the max # of points), but I just pick **** at random, maybe some stuff is actually graded in some way?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 10:23 PM
He's in a training program for 2 years - maybe they don't pay **** during that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-28-2016 , 10:57 PM
if anyone here is solid with linux and ruby ill pay you to help me get a ruby gem installed now which is failing. PM me please
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2016 , 12:52 AM
Quote:
Originally Posted by RustyBrooks
He got hired by JPM and is getting paid only twice what a best buy shipping clerk makes? I hope that's journalistic inaccuracy.

I have played with HackerRank, but how does one get a high ranking? Do lots of challenges? Get a good score first? Whenever I do one, I get the exact same score as literally almost everyone (the max # of points), but I just pick **** at random, maybe some stuff is actually graded in some way?
If you solve the question under run time and memory constraints you get full points.

The real ranking (and the real fun) happens when you enter a contest. After each rated contest, your ELO gets updated.

http://hackerrank.com/contests
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2016 , 08:30 AM
General thoughts on testing frameworks? I've been working in casperjs/phanotmjs. Primary alternative to that is Selenium. The main difference I'm aware of is phantomjs basically create's a webkit browser while Selenium allows you to pop up an instance of most major browsers allowing you to test browser specific quirks. For example, local/session storage won't be available in older browsers so you might want to create a test that asserts that these older browsers degrade gracefully.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2016 , 11:08 AM
This might be a silly question.

I'm working on a hobby project to teach myself Golang. There is a small but non-zero chance I might try to monetize the project later. If that happens then most of the value will be in original content that I plan to store on a CDN. The code will be mostly standard api's to serve up the content and a web front end.

I need an online git repo to store my code and I have my public github account. Is it ok to use that account for the intitial work and then move to a private account if this takes off, or can that bite me in the ass later? What would you guys do?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2016 , 12:00 PM
Bitbucket has free private repos
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2016 , 12:07 PM
You can have code on github without a license and its your own IP implied/copywrite i.e. no one can legally use it. But yeah bitbucket.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m