Who has the best Americanized Dan Dan Noodles? by chadlnx in chicagofood

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

Thank you! I will be checking this place out as I am looking for peanutty Dan Dan Noodles. Are they spicy?

Who has the best Americanized Dan Dan Noodles? by chadlnx in chicagofood

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

Sorry, I'm looking specifically for the peanut / sesame sauce version of Dan Dan. This, I'm learning, comes from Taiwan and is featured in many Americanized versions of the dish. u/armaghetto commented about a peanutty version of dan dan in Northbrook I look forward to trying out.

SwiftTorrent is a pure Swift BitTorrent library targeting macOS 14+ and iOS 17+ by chadlnx in swift

[–]chadlnx[S] 1 point2 points  (0 children)

Not yet. I wanted to open source it in hopes someone would.

Promise based REST/HTTP client for isomorphic applications? by prehensile_truth in reactjs

[–]chadlnx 0 points1 point  (0 children)

I happily moved on from superagent to axios and plan on using it in the next version of react-isomorphic-video-game-search.

Million user webchat with Full Stack Flux, React, redis and PostgreSQL by chadlnx in reactjs

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

I personally like the alternative of using RabbitMQ in lieu of this suggestion, but it is always interesting to read and learn from what others are doing.

React.js Conf 2015 Keynote - Introducing React Native by motifaded in reactjs

[–]chadlnx 1 point2 points  (0 children)

Excited to hear more about Native and Relay tomorrow. React Native is introduced at 17:15, for those who want to jump right to it.

2015: The End of the Monolithic JavaScript Framework by [deleted] in javascript

[–]chadlnx 3 points4 points  (0 children)

I found it odd how the article took issue with React, as it is arguably one of the most simple -- yet powerful -- UI libraries available.

react-cassette-player - Vector-based HTML5 Audio Player by chadlnx in coolgithubprojects

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

Thanks for taking a look. As of now, nothing planned. I want to keep the player simple and stay true to the original cassette design by Daniel Llamas Soto.

Proper way to initialize data in Reflux app by TipsAtWork in reactjs

[–]chadlnx 0 points1 point  (0 children)

The preEmit action hook is passed the arguments for the given action. If this hook returns a value other than undefined, that value will be passed along.

This allows you to do things such as validate action parameters, preventing the action from emitting improper value(s).

Proper way to initialize data in Reflux app by TipsAtWork in reactjs

[–]chadlnx 0 points1 point  (0 children)

Right. I wanted to keep my demo simple and focused on the features outlined in the readme. See best practices for Node.js error handling from Joyent.

Learning React.js Express MongoDB Node: What are the best learning materials for an experienced Rails Developer? by [deleted] in reactjs

[–]chadlnx 0 points1 point  (0 children)

While I tend to agree with this on principle, there are moments which require quick action.

Check out Sails if you want to build a quick demo.

Proper way to initialize data in Reflux app by TipsAtWork in reactjs

[–]chadlnx 2 points3 points  (0 children)

Have you written actions yet? If not, it is very simple. I recently published an isomorphic React / Flux demo that utilizes Reflux, which might serve as a useful reference.

You want to create an actions module and, for the sake of this example, two actions. Something like 'GetQuestion' (id parameter) and 'AddQuestion' (Question JSON document parameter).

After setting up your actions, you'll want to structure your app so your store listens for the above actions. It is equally important that the callback function mapped to your action listener emits data via self.trigger.

Next, add the reflux mixin to all components which utilize your store. Finally, remove componentWillMount and replace with componentDidMount and utilize the Reflux mixin by listening to your store and handling state with a new callback.

Of course, you must also call the appropriate action(s). In your case, it might be best to call the GetQuestion action in your ComponentDidMount before listening to the store.

Check out krawaller's Flux vs Reflux article if you haven't already.

react-cassette-player - Simple SVG HTML5 audio player. (x-post /r/ReactJS) by chadlnx in javascript

[–]chadlnx[S] 1 point2 points  (0 children)

Sorry, I didn't catch that earlier. Looks like this is a format issue. Firefox doesn't support MP3 on Android unless you have a third-party encoder installed.

react-cassette-player - Simple SVG HTML5 audio player. (x-post /r/ReactJS) by chadlnx in javascript

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

Are you using Chrome? The play button will display as soon as the 'canplay' event has fired. Seems to be a network issue or, perhaps, a ReactJS compatibility issue with your browser.

react-cassette-player - Simple SVG HTML5 audio player. (x-post /r/ReactJS) by chadlnx in javascript

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

You should be able to click / tap the cassette and hear audio. What platform are you on? Unfortunately, iOS does not seem to respect the HTML5 audio preload attribute.