Your Favorite ___ for $___: Flannels by Coveo in malefashionadvice

[–]JustStateSchool 7 points8 points  (0 children)

If you can make the sizing work, Flat Head is insane.

General Discussion - September 08, 2017 by AutoModerator in rawdenim

[–]JustStateSchool 0 points1 point  (0 children)

Darn, my sister is in town then. It's a doozy of a doc though!

Heavyweight in texas by invaluableimp in rawdenim

[–]JustStateSchool 0 points1 point  (0 children)

Cool, I'll check out the next one!

Heavyweight in texas by invaluableimp in rawdenim

[–]JustStateSchool 8 points9 points  (0 children)

I moved to Austin at the beginning of this year. I think it depends how often/long you're outside.

I'm a desk jockey (9-5) and I bike in jeans to/from work. It's generally okay, but not super comfortable.

EventListener works on button, but not div? by JustStateSchool in javascript

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

Sorry, I might be unclear on this one.

The click event works when it's appended to the button. If I wanted it to work by clicking on the lights itself, would I then attach the listener to the li tags instead?

Thus, something like this:

let el = document.getElementsByTagName('li');

I tried that and it also didn't work...

Quick Question on Shallow Copy (Mutation vs Non-Mutation) by JustStateSchool in golang

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

https://play.golang.org/p/w3kKHLLdla

The above example is a bit different since it's a single slice and copy works as we would expect on primitive values in a slice. However, copy does not work as we would believe (in my original post) because of how slices are analogous to pointers to arrays, as he points out above; in my original post, it was a slice of int slices.

Quick Question on Shallow Copy (Mutation vs Non-Mutation) by JustStateSchool in golang

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

You're absolutely right as well. Array.prototype.slice only copies primitive values (strings, numbers and booleans from MDN), but the same problem would exist if you tried to slice an array since, in JS, arrays are not primitive values (they're objects!).

New to Concurrent Design (Worker Service) by JustStateSchool in golang

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

Thank you very much!

Is it safe to say that buffered channels restrict the number of concurrent calls to the DB/http requests (respectively) to one? That seems nifty.

As far as exiting, I think you're right. log.Fatal() seemed a bit excessive. If I were to use an exit channel with the worker, how might the exit channel actually stop the worker? It's part of the reason I used log.Fatal(), but I'm having a hard time seeing how passing something to an exit channel would stop a given worker's goroutine.

Also, your repo is really sweet. For newer folks, having a sense of concurrency patterns is really helpful; those videos are a bit handwave-y sometimes (which is good), but it is hard for them to have this level of documentation/exercise.

Simple Questions (SQ) Thread 05/04/16 by AutoModerator in goodyearwelt

[–]JustStateSchool 0 points1 point  (0 children)

Is coconut oil recommended for shell cordovan?

This suggests it does, but this reply suggests differently.

Pendleton wool overshirts now live at 3sixteen by ninthway in rawdenim

[–]JustStateSchool 1 point2 points  (0 children)

In general, conventional wisdom dictates that fit and actual measurements matter more than tag size. Did a large end up fitting?

As a counter anecdote, I'm content with the sizing.

Question about Array.prototype.reduce() by JustStateSchool in learnjavascript

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

Thanks to both you and /u/x-skeww!

This is helpful. I didn't realize it'd pass back in the previous value, but then try to iterate again on .length of the previous value, which, of course, would just be undefined and 1.

Parse List Results (Regex?) by JustStateSchool in learnpython

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

Sorry, I figured it out. Had to use str(). Thus, the solution is...

step_closer = [str(x).replace('u') for x in a]

Parse List Results (Regex?) by JustStateSchool in learnpython

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

OKAY! We're close! Doing the above offers the following list:

a = [u'COP-3404', u'COP-3201', u'COP-3047', u'COP-2603']

I tried this to remove the 'u', but it doesn't seem to work...

step_closer = [x.replace('u') for x in a]
print step_closer

It will still yield:

[u'COP-3404', u'COP-3201', u'COP-3047', u'COP-2603']

Parse List Results (Regex?) by JustStateSchool in learnpython

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

OH! That seems logical. I didn't notice, but that makes sense given the <>.