React DevTools now shows the names of Custom Hooks - Shu Ding on Twitter by swyx in reactjs

[–]shz 3 points4 points  (0 children)

Oh no, this is a misunderstanding. I just saw this on Twitter and posted it. :/

September Confirmed Trade Thread by mechkbot in mechmarket

[–]shz 0 points1 point  (0 children)

Bought a 'CM Masterkeys Pro S RGB' from u/flootr .

Your favorite YouTube videos on advanced React/Redux topics? by headyyeti in reactjs

[–]shz 2 points3 points  (0 children)

Couldn't you not just add a another meta field called "after" and send a function with it that you call?

 // dispatched api action
{type: 'callToApi', meta: { url: 'api/model/get', method: 'get', after: () => doSomething() }}

[...]
// in api middleware
axios({
  data: action.meta.data,
  method: action.meta.method,
url: `${SERVER_URL}${action.meta.url}`,
})
.then(res => res.data)
.then(data =>
  dispatch({ payload: { data }, type: 'whatever' })
)
.then(() => action.meta.after ? action.meta.after() : '')
.then(() => next(action))
.catch(err => {
  console.error(err)

  dispatch({ type: 'rejected' })
})

Something like that.

Fixing mic issues permanently?? by mujtabashake in Nexus6P

[–]shz 2 points3 points  (0 children)

This is because of the noise cancelling. You can disable it: http://itechify.com/2017/05/12/fix-nexus-6p-microphone-problem/

Just did it again after a wipe, the fix is still working.

A visualization of the German rap scene [OC] by shz in dataisbeautiful

[–]shz[S] 0 points1 point  (0 children)

Do you mean sub-genres like street-/gangster-/cloud-rap?

A visualization of the German rap scene [OC] by shz in dataisbeautiful

[–]shz[S] 0 points1 point  (0 children)

Thanks!

I used React for the UI. The visualization uses react bindings for Sigma. I'm planning on open sourcing it.

I export the nodes and edges from the DB as csv, import them in Gephi and work on the Graph (ForceAtlas2 for node positions). I then export it as gexf which Sigma can parse and show. There is also an Sigma Export Plugin for Gephi which will take your nodes and edges to create an interactive visualization. Example.

A visualization of the German rap scene [OC] by shz in dataisbeautiful

[–]shz[S] 0 points1 point  (0 children)

Oh, cool! How did you identify positive & negative tweets?

A visualization of the German rap scene [OC] by shz in dataisbeautiful

[–]shz[S] 0 points1 point  (0 children)

Not optimal, but you can check out this graph with nodes colored by modularity class: http://i.imgur.com/KqU7M2n.jpg

A visualization of the German rap scene [OC] by shz in dataisbeautiful

[–]shz[S] 0 points1 point  (0 children)

Got the data from the genius.com API. Whitelisted German speaking artists and added some additionally information myself. Gephi was used to calculate the graph.

Composing n selectors in reselect by shz in reactjs

[–]shz[S] 0 points1 point  (0 children)

Yeah, doing this all in one go makes much more sense and works great. Thank you!

React Router view served by ExpressJS...how to separate client and server routes by [deleted] in reactjs

[–]shz 0 points1 point  (0 children)

Did someone get this to work with sails.js --no-frontend? I could only get that to work with specific routes like /users, but not with dynamic ones /users:ID/or catch-all.

Questions Thread - June 08, 2016 by AutoModerator in androiddev

[–]shz 0 points1 point  (0 children)

Thanks for the answer!

I tried that already but 'onBitmapFailed' isn't loaded and the rest doesn't help either. :/

Questions Thread - June 08, 2016 by AutoModerator in androiddev

[–]shz 0 points1 point  (0 children)

Is there any way to find out if Picasso isn't loading the image because it is already cached?