These are chat archives for FreeCodeCamp/DataScience

27th
Mar 2016
Abhisek Pattnaik
@abhisekp
Mar 27 2016 00:04

@evaristoc for tracking the usage of a particular function or functionality for working on issue based on the priority.

it's for a project.

evaristoc
@evaristoc
Mar 27 2016 11:07

@abhisekp interesting question...

If the function is called after user interaction with a front-end resource, I think GA can help as it has event-driven capabilities. Eg. we have a counter implemented in FCC implemented with GA to capture the number of times someone tries to finish a challenge. Google people are making GA available at client as well as at server but for them client interaction is the most important aspect. If your counting is related to user interfaces, GA could be an option. Let me know if you need help with this.

If the evaluation of the function call is not directly related to an event or user interaction, I suspect you may need another type of library. I don't know any as I haven't tried this before. I suspect making a customised implementation could be the way to go: what about implementing a class, eg. a decorator, to count when functions are called?

Anyway: if you find a solution, can you please let us know here?

Abhisek Pattnaik
@abhisekp
Mar 27 2016 11:17
@evaristoc there is a counting module but it passes a count as 1st param. Btw, This is for a CLI project. So e.g. when someone tries to do something using the executable, internally, various functions are executed. So a module similar to measured which would track various aspects of the app (my primary target is just function calls and functionality usuage frequency like WebStorm or any of the Jetbrains IDEs does). Then upload the usage stats to GA or any other meters/measuring free services.
evaristoc
@evaristoc
Mar 27 2016 12:09

@abhisekp interesting...

To store into GA better to use the GA tag. You can load files but that could be painstaking and not what you want. You will have to create a programmable logic to set the GA tag event tracker to capture information about function names and counting values. You can use FCC implementation as an example. However, the event tracker imposes several limits, like for example the number of events that can be collected per session during certain period of time, implying you will need to set your tool in terms of GA capabilities and make conclusions based on those limits. GA reports may disagree with your totals, only because the goals of the tools are not the same and therefore the reported values are based on different assumptions and areas of interest.

I suggest to read GA online documentation.

There are things about your project that make me feel GA is not what you are looking for... It seems to me that your project is more about better debugging, efficiency and code optimisation, not just focused on front-end optimisation and conversion analysis which is where GA is used most of the time. IMO log files, or even better a DB, could be more suitable, but you will have to face the issues of handling sessions and IPs (not recommended!!!!) if you want to make valuable aggregate stats per different types of users.

IN CASE you don't find a better option I would suggest you to understand the differences between both tools and make conclusions based on their capabilities.

Abhisek Pattnaik
@abhisekp
Mar 27 2016 12:12
@evaristoc thanks. I'll see if I could do something using the existing tools or will implement my own.
CamperBot
@camperbot
Mar 27 2016 12:12
abhisekp sends brownie points to @evaristoc :sparkles: :thumbsup: :sparkles:
:star: 243 | @evaristoc | http://www.freecodecamp.com/evaristoc
evaristoc
@evaristoc
Mar 27 2016 12:31

Hi @/People

THE DSR WEEKLY DIGEST:

DSR (DataScience Room) is an effort to gather campers of all levels and specializations willing to engage in discussion, collaboration and practice of data-related projects with focus on JS and FCC.

Previous Digest

Tentative DSR site: http://evaristoc.github.io/FreeCodeCamp_DSR/

People recommended...: http://www.gapminder.org/world, Hans Rolling work


Last Week:

  • @alicejiang1, @samosale and me working on extending samosale's 3D viz of campsites
  • me working on a real time data collection app for Network Graphing
  • me working on code comparison tool
  • FCC API (relevant project to be ready soon): @roelver's project
  • @QuincyLarson about list of possible questions for a future survey
  • @abhisekp's questions about GA
  • Other:
    • links in: Social Media Analysis, including theory and practice; specialization as strategy; problems and solutions for NP-hard problems in python; also @demipixel's article; comment about sparce matrices; @Lightwaves about reaching DataScience nirvana infographics; AI chatbots going wrong

In the WWW...:

For those who have a certain feeling about maths, I think I would recommend to watch the Erdös documentary using the link provided by @samosale. I liked it...

That... and Deadpool: sort of Blockbuster a la Tarantino. Not fan of blockbusters myself but the direction of the film and the dialogs are outstanding. For this one better to go to the cinema!!


Ok, People: Stay in touch!

CamperBot
@camperbot
Mar 27 2016 12:31

welcome to FreeCodeCamp @evaristoc!

Abhisek Pattnaik
@abhisekp
Mar 27 2016 12:31
lol
evaristoc
@evaristoc
Mar 27 2016 12:33
:)
Zac Cassini
@zcassini
Mar 27 2016 14:46
@roelver I'd be happy to test out the fcc api and report my results if you need.
Pivotal Expert
@SingaporeClouds
Mar 27 2016 15:20
@roelver I'd also be happy to test out the fcc API and provide feedback.
Lightwaves
@Lightwaves
Mar 27 2016 15:48

@evaristoc my laugh rung through the entire house when I read Data Science nirvana

I will ascend! ascend! ascend!

Ali
@yxorP
Mar 27 2016 18:57
Hey people, I'm starting a skype group dedicated to FCC. We've got a few people in here already and we skype often. If you would like to join please add me on skype @ "Kindredbay"
Roel Verbunt
@roelver
Mar 27 2016 20:05
@zcassini @SingaporeClouds @evaristoc Thanks. The first release is now live on Heroku. There are only 3 users in the database, however. I'm working on a proper documentation, now but here are a couple of shortcuts
CamperBot
@camperbot
Mar 27 2016 20:05
roelver sends brownie points to @zcassini and @singaporeclouds and @evaristoc :sparkles: :thumbsup: :sparkles:
:star: 358 | @zcassini | http://www.freecodecamp.com/zcassini
:star: 244 | @evaristoc | http://www.freecodecamp.com/evaristoc
:star: 158 | @singaporeclouds | http://www.freecodecamp.com/singaporeclouds
Zac Cassini
@zcassini
Mar 27 2016 20:08
api key does not exist
Zac Cassini
@zcassini
Mar 27 2016 20:10
that works
Roel Verbunt
@roelver
Mar 27 2016 20:10
@zcassini Sorry. Copied the URL from my local API
https://fccapi.herokuapp.com/v1/users?key=abcd1234xyz890&username=>quincy --- List users with a username > "quincy" (alphabetical)
Roel Verbunt
@roelver
Mar 27 2016 20:18
https://fccapi.herokuapp.com/v1/users?key=abcd1234xyz890&algorithmsTotal=%3E5&pointsRecent=%3C100 --- List users with more than 5 algorithmsTotal and less than 100 pointsRecent ( Note: %3E = less than char, %3C = greater than char)
Zac Cassini
@zcassini
Mar 27 2016 20:33
https://fccapi.herokuapp.com/v1/users?key=abcd1234xyz890&username=>qu --- List users with a username that starts with "qu" Might be a betterway to word this.
running these thru postman all seem good
Roel Verbunt
@roelver
Mar 27 2016 20:59
@zcassini Yes that's true
But it will also select usernames that a greater.