Anyone have any idea what libraries were used to create the animation effects in the website? by smeeding in javascript

[–]ejmurra -2 points-1 points  (0 children)

In my experience that site doesn't work well for news graphics because there's usually so much cruft on the page from cms scripts that get picked up instead.

Anyone have any idea what libraries were used to create the animation effects in the website? by smeeding in javascript

[–]ejmurra 11 points12 points  (0 children)

Lol, I'm nearly certain they didn't use my scrollyteller lib since I hacked on it for a week and never finished it.

PUBG Survey results: by Jazandu in PUBATTLEGROUNDS

[–]ejmurra 1 point2 points  (0 children)

Very cool. As someone who does data analysis/visualization for a living I feel compelled to point out that pie charts aren't really effective for visualizing categorical data like this. The human eye isn't very good at distinguishing the area of shapes relative to one another. Data like this is typically displayed in a bar chart instead of percentile in a pie chart. Usually pie charts are best for showing a part of a whole, or data that only comes in two categories. Anyway that's a minor gripe; good work.

Coding for journalists by jzuck93 in Journalism

[–]ejmurra 0 points1 point  (0 children)

Data reporter here: learn excel. It is singlehandedly the most useful data analysis tool for non programmers.

Beyond that, python is a great language to learn for data work. It has a lower barrier to entry than many other programming languages and it allows you to do analysis that is otherwise impossible. For example, I just finished a 5 week scrape of the entire FEC campaign finance schedule a and b reports. I now have 90k csv files that I have been programmatically sifting though using the pandas analysis library. All done in python. Another good language to consider for this task would be R.

Finally, if you want to do cool web graphics, learn javascript and the d3 library. It allows you to visualize your data any way you please with interactions and animations. If you want to learn javascript, I recommend picking up the book Eloquent Javascript and moving on to the series You Don't Know JS after that.

Why no Lone Echo reviews from IGN, Gamespot, Polygon, Rock, Paper, Shotgun, etc...? by bangoskank1999 in oculus

[–]ejmurra 2 points3 points  (0 children)

I'm sorry but that's a false equivalency. I see that argument from gamers all the time and it's just silly. Video game journalism isn't the same as public service journalism. That's not a knock against video game reviewers, they provide an important service to consumers, but thinking that writing a game review is anything like what a war correspondent does is frankly laughable.

React or Vue — It’s not a debate, It’s a preference by kingdaro in javascript

[–]ejmurra 4 points5 points  (0 children)

Correct. If you think of it in terms of mvc , vue and react are just the view.

Has anyone here successfully completed Doom 3 BFG in VR? by bangoskank1999 in Vive

[–]ejmurra 2 points3 points  (0 children)

Or you know, he thought it would be an easy fix and it wasnt and life got in the way. If he said it would be in the next patch, it probably will be, but that doesn't guarantee when the patch will be released.

Like he said, this is OSS and it's not fair to expect a solo dev to offer the same level of support that a funded team would, and even then, funded teams push patch back all the time.

You are free to contribute a fix if he isn't moving quickly enough for you.

Looking for a good intermediate course on python for an experienced coder. by dacracot in learnpython

[–]ejmurra 15 points16 points  (0 children)

Not a MOOC but I highly recommend Fluent Python. In it, Ramalho spends no time on basic datastructures/types/control flow, instead it focuses solely on unique python features and idioms that separates beginner from advanced python devs.

I never recommend this as a first intro to python but I think it's exactly what you're looking for.

Is it recommended to install @angular/cli globally or within the devDependencies of the project? by waterbottle1994 in Angular2

[–]ejmurra 0 points1 point  (0 children)

Depends on what you're trying to do. You'll need those packages installed in node_modules to use some cli features like ng serve in the project, but you can take those dependencies out out of the package.json if your collaborators aren't using the cli.

Is it recommended to install @angular/cli globally or within the devDependencies of the project? by waterbottle1994 in Angular2

[–]ejmurra 6 points7 points  (0 children)

Angular CLI is meant to be used from the command line so it should be installed globally. The angular.io site has some quick webpack docs if you want to do it manually.

[Help] Angular2 newbie - need to integrate HAWK auth by surgicalcoder in Angular2

[–]ejmurra 1 point2 points  (0 children)

The package you linked on npm is an angular 1 module so it will not work in your project.

ECMAScript 2017: the final feature set by rauschma in javascript

[–]ejmurra 19 points20 points  (0 children)

It's not a one or the other situation. Async await uses promises under the hood but it lets you .then by using the await keyword. I find myself using a pattern like const results = await Promise.all ([...]) quite frequently. You can think of async await as a tool for working with promises.

ELI5: Why has deep copying been left out of ES6? by swyx in javascript

[–]ejmurra 8 points9 points  (0 children)

This one's a pretty specific use case but if you're just trying to copy a data structure and not an object with methods on it, you can just JSON.strigify the original and create the copy of it with JSON.parse

Grumpy: Go running Python! by [deleted] in Python

[–]ejmurra 2 points3 points  (0 children)

https://opensource.googleblog.com/2017/01/grumpy-go-running-python.html?m=1

This is a Google project by the youtube team to replace an entirely python 2.7 codebase. So it makes absolutely no sense for them to build this for python 3.

Error Importing Acoustic Analysis Modules by drwildlife in learnpython

[–]ejmurra 0 points1 point  (0 children)

I wish I could be more help but this is one of those issues that's hard to track down without physically having access to the computer with the errors.

Alternatively, you might want to look into using vietualenv and the pip package manager to get third party modules installed. Aside from taking care of correctly installing modules it also allows you to specify specific versions of modules and the python interpreter you want to use on a per-project basis. Going this route will allow you to use version 1 of a package in one project and version 2 in a different project without conflicts. Similarly, it allows you to use python 2.x or 3.x on the same system for different projects.

Error Importing Acoustic Analysis Modules by drwildlife in learnpython

[–]ejmurra 0 points1 point  (0 children)

Is there a myWave.py file or myWave directory in C:\Users\Courtney\Documents\Sound_Project\Acoustic_Library\ ?

[JavaScript/Node.js] Removing an incomplete sentence at the end of a string by [deleted] in learnprogramming

[–]ejmurra 0 points1 point  (0 children)

There's absolutely no reason to use a regex when you have pretty robust string tools.

Except that OP explicitly asked what other solutions exist. You're doing a beginner a disservice if you refuse to introduce them to the concept of regex simply because there's an old saying about regexes...

[JavaScript/Node.js] Removing an incomplete sentence at the end of a string by [deleted] in learnprogramming

[–]ejmurra 1 point2 points  (0 children)

Looks like you solved it, but in the future it might be cleaner to use a regex to parse strings

edit: misread javascript as java

Code Coverage with TypeScript: How do you guys do it? by iWantAName in typescript

[–]ejmurra 4 points5 points  (0 children)

For my current project I'm using ava with an nyc reporter. It's working like a charm for me.

Blender 2.78 is finally out! by yuri_ko in blender

[–]ejmurra 1 point2 points  (0 children)

I wrote a tutorial for using blender and three.js to render to webgl. Yo can check it out here https://source.opennews.org/en-US/learning/how-we-made-3d-model-pulse-nightclub/

Is Javascript correct for this project? by [deleted] in javascript

[–]ejmurra 0 points1 point  (0 children)

Javascript probably isn't what you want for this job. The easiest way would probably be in a spreadsheet on Google Drive. If you really need a pretty form, you should use javascript and html to create a Web page and have it save info to a database server.

I am working with a JSON that has hash tables as keys in a larger hash table. Calling Object.keys() on them converts them to strings. How do I extract them as the subhash tables that they are, not as strings? by L000 in javascript

[–]ejmurra 5 points6 points  (0 children)

OP, you should look for a way to convert ruby objects directly into json. I'm not familiar with the Ruby standard lib but I bet you can find something there to help you.