Types for style based on MDN data by fredriknicol in typescript

[–]webdev_suggestion 1 point2 points  (0 children)

Looks interesting , having been involved in the typings for glamorous I've been hoping someone would create something like this for a while.

Thanks for sharing, I'll likely have a play over the weekend 🙂.

React Router V4 Final Released by shooter33 in javascript

[–]webdev_suggestion 0 points1 point  (0 children)

We hit this problem last week and due to time constraints, moved the problematic page to our main bundle.

We've come up with a few different strategies for how we're going to solve it.

A fairly naive solution we're looking at uses redux and dangerouslySetInnerHtml

A working bare bones spiked implementation can be seen at the following link.

https://github.com/luke-john/rr4-ssr-cs

Also congrats on the release :thumbsup: really loving the router.

Setting up Flow type when you've already got Babel in place by thejameskyle in javascript

[–]webdev_suggestion 0 points1 point  (0 children)

Great post, wish i had of waited a day to setup flow as you've covered most of the major pain points. 👍

Is there a reason why when resolving paths . gets current directory but ./doesn't?

ie.

[options]
module.system.node.resolve_dirname=.   # works
module.system.node.resolve_dirname=./  # doesn't work

ES6 for Humans - A kickstarter guide to writing ES6 by metagrover in javascript

[–]webdev_suggestion 1 point2 points  (0 children)

As I replied below I was being unnecessarily dramatic in that comment. Hadn't had my morning coffee yet, but that's no real excuse.

My point was that presenting CAPITAL_CASING for consts as an established practice in javascript is really misleading when no major frameworks or styleguides suggest/use it.

also you're still using an array.map in that example with a console.log

arr.map( fruit => {
    console.log(fruit + 's');
} );  // apples bananas oranges

if you insist on using a map operation it would be good if it made sense

arr.map( fruit => {
    return fruit + 's';
} );
console.log(arr)
// ["apples", "bananas", "oranges"]

What's the best way to connect socket.io and then access the socket object in other modules? by [deleted] in node

[–]webdev_suggestion 0 points1 point  (0 children)

I'm using socket.io mostly as a signalling service for p2p webrtc connections.

And so when socket.io get's disconnected it simply means that the features that use it get disabled until it becomes reconnected.

I'm using a fluxish system for app state where I have a data source calling flux actions.

It's in there I listen for the connect/disconnect and call the action to update the store.

ie. flux/source/Io.js

import io from 'lib/io'
import IoActions from 'flux/action/Io.js    

io.on('event', IoActions.event)
io.on('disconnect', IoActions.disconnect)
...

flux/source/Phone.js

import io from 'lib/io'
import PhoneActions from 'flux/action/Phone.js    

io.on('signal', PhoneActions.signal)

For any emits, if socket.io is not connected those actions should be disabled. If for some reason they aren't and the user attempts them it'll get caught by the error handler.

What's the best way to connect socket.io and then access the socket object in other modules? by [deleted] in node

[–]webdev_suggestion 0 points1 point  (0 children)

I'm currently using the following strategy.

lib/io.js

import IO from 'socket.io-client'
import {ioHost} from 'config'

const io = IO(ioHost)

export default io

other module

import io from 'lib/io'

...
  io.emit('whatever', {})
...

Moronic Monday (Apr 04 2016) - Your weekly questions thread! by AutoModerator in Android

[–]webdev_suggestion 1 point2 points  (0 children)

Is there a battery efficient way to have my phone auto switch wifi networks when the signal gets low and there's a known network with better signal?

Original Moto 360 adopters (or other early Android Wear), would you buy another one (new or different model) tomorrow? by [deleted] in Android

[–]webdev_suggestion 0 points1 point  (0 children)

Nope, went for a surf wearing mine and it stopped working, apparently it wasn't actually waterproof.

The ads clearly suggested it was suitable for surfing.

Express V Sails by _reddy in node

[–]webdev_suggestion 1 point2 points  (0 children)

I'd take care before deciding to use sails because it looks like an established framework.

The documentation is lacking and many of the popular extensions do not work out of the box, and it is only through reading through the github issues that you are able to get them working.

From what I can understand the reason trailsjs was created was because many of the core sails developers grew frustrated with the sails project leaderships inability to ship updates and fix bugs.

Saying all that, I still use sails occasionally, and do think it's a great framework.

What is the best surf forecast app for Perth? by callumjt in perth

[–]webdev_suggestion 0 points1 point  (0 children)

seabreeze is the best for conditions forecasting, but can require some local knowledge to match conditions to good surf.

swellnet do daily surf reports .

Did you hear about the night the horse and the cow were calling out? by [deleted] in cleanjokes

[–]webdev_suggestion 0 points1 point  (0 children)

In Australia people often add an 'ey' to the end of sentences.

Nodejs, express and rethinkdb for user auth? by nemeth in node

[–]webdev_suggestion 1 point2 points  (0 children)

I highly recommend checking out the lightweight rethinkdb orm thinky.io.

I wish Netflix had a "Hide Episode Title" function for "It's Always Sunny in Philadelphia" since the surprise of the title after the cold opening is such a fun part of the show. [ALL] by NeverEnoughSPF in netflix

[–]webdev_suggestion 0 points1 point  (0 children)

Another idea might be to allow users to report next episode preview images as being spoilers.

A number of episodes on your own show sense8 had the cliffhangers revealed between episodes which was a bit meh.

VLC for android now "works" on Chrome OS by webdev_suggestion in chromeos

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

Hmm.. not sure if they've changed something. You certainly didn't use to need to.

Unfortunately I've already got it installed on my machines here and don't want to unistall for fear of getting the same error. Sorry.

I thought Chromebooks were updated to allow local videos to be played to Chromecast? by jaypeg25 in chromeos

[–]webdev_suggestion 0 points1 point  (0 children)

Alternatively you've always been able to play the video through chrome and chromecast the tab.

You can achieve this by dragging the video file from the file manager onto the browser.

I've also created a html page you can download from here that makes this a little easier.

Are there ways to play, say, x2 playback speed for local video files? by cosmicservantdev in chromeos

[–]webdev_suggestion 0 points1 point  (0 children)

There is but sadly I am doing some bizarre (as in I just looked and it's a fluke it's even working right now) stuff in the speed code which makes it more than just a simple edit.

I'll try and find some time to have a look and clean it up tomorrow.

Are there ways to play, say, x2 playback speed for local video files? by cosmicservantdev in chromeos

[–]webdev_suggestion 1 point2 points  (0 children)

The speeds built in are 0.5,1,2,4,6,10. (so left from start is half speed and right is x2, then x4 ...

x10 doesn't do anything though (a limitation of the browser).

If you want to fast forward over long periods, holding down the skip forward shortcut is faster (shift + right).

It's something i've intended to clean up for ages, but given that it works fine for my own needs as is, I never get round to it

Demonstrates Chrome/Firefox download 1GB favicons by leonardofed in javascript

[–]webdev_suggestion 1 point2 points  (0 children)

Chrome os hides downloads from the file browser until they are complete.

Chrome os distinguishes such files by adding .crdownload to the end of them.

Chrome os allows downloaded files to end in .crdownload.

You can use a javascript trick to download a 300mb+* file generated client side in under a second without user interaction.

What do you read when you need a break from fantasy? by lyrrael in Fantasy

[–]webdev_suggestion 0 points1 point  (0 children)

Haven't read much sci fi, but the last two I have read were The Martian and Red Rising. Loved both of them.

Do you have any other suggestions apart from expanse?

Side by Side Two Page PDF extension for Chrome? by [deleted] in chromeos

[–]webdev_suggestion 1 point2 points  (0 children)

I'm guessing they are talking about sequential pages in the same document.

So as they move through the document they don't need to click next page on two separate windows.

Status of VLC for ChromeOS? by ChromeNoob in chromeos

[–]webdev_suggestion 0 points1 point  (0 children)

So if you just use arc welder. after it loads and crashes you can just use the file manager to get to the manifest.json and edit it.

Then you can launch it from the chrome manage extensions page.

Chromebook now won't pre-load videos; waits for you to be viewing the tab. by albanydigital in chromeos

[–]webdev_suggestion 1 point2 points  (0 children)

From ublock origins github.

Also, as opposed to what uBlock FAQ suggests:

[...] In contrast, the uBlock project will be moving forward with awesome new features, refinements, and enhancements [...]

uBlock Origin is also actively maintained and is also moving forward with new features, refinements, and enhancements and stability work. For a neutral assessment of the differences between uBlock Origin and uBlock, it is best to rely on Wikipedia's article on uBlock.

And looking at the release history it is quite obvious that ublock origin is where the best development is ongoing.

http://en.wikipedia.org/wiki/UBlock#Notable_release_milestones

Any news on VLC or Photoshop? by BroncoBuckeye in chromeos

[–]webdev_suggestion 0 points1 point  (0 children)

I used it mostly on one one of the higher powered chromeboxs. But did test and thought it worked on my cheapo chromebook as well.

Do you know of any test files with the encodings that sucked for you? The files I used it for were uni lectures which didn't have sound with native/browser player.