These are chat archives for CodeHubOrg/discussions

11th
Feb 2017
Dave Thomson
@rinse0ut
Feb 11 2017 13:04 UTC
@TimHandy Running your app on 0.0.0.0 instead of localhost allows you to access your app via your computers external ip. This is useful for example if you wanted to test how your app runs on different devices eg your mobile or tablet.
To find you computer’s ip use the ifconfig command.
Tim Handy
@TimHandy
Feb 11 2017 13:05 UTC
@rinse0ut when you say external...
...ahh, you don't mean external external
you mean the LAN IP
now I understand
Dave Thomson
@rinse0ut
Feb 11 2017 13:05 UTC
@TimHandy Thanks for links. Can I suggest we keep the doc just for titles and links and add comments using the comments functionality please.
Tim Handy
@TimHandy
Feb 11 2017 13:06 UTC
yes boss :-)
I will make the amends
Dave Thomson
@rinse0ut
Feb 11 2017 13:06 UTC
Yes I just did a test on the 0.0.0.0 and now I understand it properly too. Got me foxed before and had to set up virtual host etc.
BTW This is a cool GUI for managing your app processes: https://github.com/typicode/hotel
Basically you can start and stop your apps in the browsers and it assigns a random port if you like so that you don’t get conflicts
Tim Handy
@TimHandy
Feb 11 2017 13:09 UTC
I thought before, you were suggesting to make it available on the web... that would also involve some port forwarding on the router end... I totally get what you're saying now... though when I've accessed websites on the lan... oh, but I used apache etc... ahh not done this with node before... yes, I'll have to try that
Dave Thomson
@rinse0ut
Feb 11 2017 13:09 UTC
Found a new linux command ‘tree’ try it out in your project directory
Tim Handy
@TimHandy
Feb 11 2017 13:09 UTC
yeah, I saw the hotel video months ago... looks good if you're working on multiple websites, like in an agency environment
I use tree sometimes
it makes nice ascii folder structures for documentation
Dave Thomson
@rinse0ut
Feb 11 2017 13:10 UTC
ttly
Tim Handy
@TimHandy
Feb 11 2017 13:10 UTC
i also use 'silver searcher'
for quick searching...
top tip from David at hack night...
Dave Thomson
@rinse0ut
Feb 11 2017 13:11 UTC
it’s like an easy ‘grep’ ?
Tim Handy
@TimHandy
Feb 11 2017 13:13 UTC
a faster grep
Dave Thomson
@rinse0ut
Feb 11 2017 13:14 UTC
searching your project is a really useful skill
Tim Handy
@TimHandy
Feb 11 2017 13:14 UTC
i'm no pro, but David says it's da-bomb, and it seems to find stuff when I look.
Dave Thomson
@rinse0ut
Feb 11 2017 13:14 UTC
now combining it with Regex expressions is like next level shit
Tim Handy
@TimHandy
Feb 11 2017 13:14 UTC
no doubt!
Dave Thomson
@rinse0ut
Feb 11 2017 13:14 UTC
I’ve got a new reggae reggae react logo lol
Yeah David know’s his shit.
Tim Handy
@TimHandy
Feb 11 2017 13:16 UTC
hey @katjad maybe one for your next workshop... a unix superuser tricks of the trade class!
@rinse0ut: logo whatnow?
Dave Thomson
@rinse0ut
Feb 11 2017 13:17 UTC
I think getting the digital ocean server going and deployments with docker would be awseomes.
Tim Handy
@TimHandy
Feb 11 2017 13:20 UTC
yeah, a good tool in the toolbelt to have had some experience with for sure.
Dave Thomson
@rinse0ut
Feb 11 2017 13:22 UTC
I’ve not used nodemon, just hot reloading
Main issue is I don’t quit my node apps properly and they hog the port so I have to kill all node process and re run the app
Dave Thomson
@rinse0ut
Feb 11 2017 13:33 UTC
I’ve created a new shared doc called TIL: Today I Learned for sharing hot tips!
@katjad Can we add this as a feature to our app please!?
Tim Handy
@TimHandy
Feb 11 2017 13:51 UTC
@rinse0ut knock knock... let me in
I have TIL to add!
Dave Thomson
@rinse0ut
Feb 11 2017 13:51 UTC
yay!
thought it was public, let me check
Just found out my friend’s company have been hosting all of their repos on my personal bit bucket account and I’ve reached my user limit!
Tim Handy
@TimHandy
Feb 11 2017 13:53 UTC
haha, nice
Dave Thomson
@rinse0ut
Feb 11 2017 13:53 UTC
some of their repos are 400mb!
Tim Handy
@TimHandy
Feb 11 2017 13:53 UTC
ransom?!
blackmail... money cash?!!! $$$
Dave Thomson
@rinse0ut
Feb 11 2017 13:53 UTC
haha maybe I just restrict acces to the junor dev asshole
or revoke access rather
Tim Handy
@TimHandy
Feb 11 2017 13:58 UTC
those junior devs hey!
Dave Thomson
@rinse0ut
Feb 11 2017 13:59 UTC
I have no probs with juniors, however this one was really rude and arrogant depsite all the help I gave him
Most annoying thing is he wouldn’t put spaces between operators
soreadinghiscodewaslikethis
Tim Handy
@TimHandy
Feb 11 2017 13:59 UTC
... did I say thanks for your help ?! :-/ Thanks.
oh... I hate that
Dave Thomson
@rinse0ut
Feb 11 2017 14:00 UTC
no probs, I learnt something as well so cheers
Tim Handy
@TimHandy
Feb 11 2017 14:01 UTC
and I also hate x or y, or k or whatever letter for variables... give em an effing name for gods sake!
Dave Thomson
@rinse0ut
Feb 11 2017 14:01 UTC
yep he did that as well
most annoying thing is that he thinks he know’s it all and is an amazing programmer
his code was not readable at all
the great thing about this group is that you have to consider other people reading your code not just your self.
Tim Handy
@TimHandy
Feb 11 2017 14:04 UTC
I almost had webpack 2.0 working yesterday. Gonna try it again tomorrow I think. I wasn't far off.
Dave Thomson
@rinse0ut
Feb 11 2017 14:04 UTC
I’m going to try configing webpack from stratch this afternoon using this tutorial:
Please let me know if you have any other good webpack tutorials
will look into webpack 2 cheers
Tim Handy
@TimHandy
Feb 11 2017 14:10 UTC
don't forget the .babelrc file... you can do that in the webpack config, but i found other modules don't like it that way
Dave Thomson
@rinse0ut
Feb 11 2017 14:10 UTC
used json-server last week too
Tim Handy
@TimHandy
Feb 11 2017 14:11 UTC
that's a pretty old article isn't it?
Dave Thomson
@rinse0ut
Feb 11 2017 14:11 UTC
2015?
yeah maybe I should see what others are about
Tim Handy
@TimHandy
Feb 11 2017 14:11 UTC
for React land? that was written before Jesus!
Dave Thomson
@rinse0ut
Feb 11 2017 14:13 UTC
think it’s 9 months old
cool, I’ll use the latest version
hope it’s easier to use!
Tim Handy
@TimHandy
Feb 11 2017 14:14 UTC
they just renamed stuff, and added an array here and there
Dave Thomson
@rinse0ut
Feb 11 2017 14:14 UTC
I’m going on lunch, brb.
Tim Handy
@TimHandy
Feb 11 2017 14:15 UTC
i'm semi-ok with webpack now i have a working config and know what to change when I copy between projects.
yeah, mee too... hungry.
Dave Thomson
@rinse0ut
Feb 11 2017 14:33 UTC
Sweet, I might ask you for help!
BTW a TIL feature would be a cool project for our app! @TimHandy @katjad
Dave Thomson
@rinse0ut
Feb 11 2017 15:07 UTC
Webpack 2 released 1st Feb with ES6 support. Nice one Tim, would have totally missed that using boilerplates.
Dave Thomson
@rinse0ut
Feb 11 2017 16:14 UTC
@katjad Yes just logged into the codehub digital ocean account. Once I get Docker set up I’ll sort out a demo!
:package:
Dave Thomson
@rinse0ut
Feb 11 2017 17:23 UTC
Coffee has just kicked in...
TIL Google Form!
Let’s collect data for our new project to access from Google spreadsheets as a data source..
Tim Handy
@TimHandy
Feb 11 2017 17:35 UTC
Haha, data validation... I like it. I have one like it for when I have a weigh-in! Gotta keep track of your vital stats! Never thought about it for our use though... didn't know they have an API for that though... way cool.
Dave Thomson
@rinse0ut
Feb 11 2017 17:35 UTC
Are you the next Conor McGregor!? :facepunch:
Tim Handy
@TimHandy
Feb 11 2017 17:36 UTC
aye! but without the sharp suits
I did used to train in MMA and Krav Maga
Dave Thomson
@rinse0ut
Feb 11 2017 17:36 UTC
MMA?
What do you do now?
Tim Handy
@TimHandy
Feb 11 2017 17:36 UTC
yeah, MMA, mixed martial arts... cage fighting stuff
I mostly increase my girth, by doing very little exercise... it's going well.
Dave Thomson
@rinse0ut
Feb 11 2017 17:37 UTC
nice, you need to work on your coliflower :ear:
I do hand of wind kung fu and tai chi
All the google drive app have a js API btw
Tim Handy
@TimHandy
Feb 11 2017 17:44 UTC
bugger... think I accidentally deleted the Name field... I'll fix it..
so the field name is back... but you might have to manually add my name to those first couple of entries...
The reason it happened, was that I didn't realise that you'd sent the form builder version rather than the form... so I started typing away and overwrote the title with my name... sorry about that
Dave Thomson
@rinse0ut
Feb 11 2017 17:48 UTC
I was thinking we could set up a Registration Form to record new members and goals. Get this outputing via an api end point as json and then put a react front end on it.
No worries
Tim Handy
@TimHandy
Feb 11 2017 17:49 UTC
yep, I think the other Dave filled one of those in, in response to Katja's message on the git issues thingy maybe? or was it an email I saw it in?
Dave Thomson
@rinse0ut
Feb 11 2017 17:50 UTC
yes I saw that, it was a great response
on the discussion board
Tim Handy
@TimHandy
Feb 11 2017 17:51 UTC
ahh, i see your icon now.
Dave Thomson
@rinse0ut
Feb 11 2017 17:52 UTC
I’m gonna revert to my old logo
Tim Handy
@TimHandy
Feb 11 2017 17:52 UTC
where's your face? are you hiding?
Dave Thomson
@rinse0ut
Feb 11 2017 17:52 UTC
beard is out of control
Tim Handy
@TimHandy
Feb 11 2017 17:53 UTC
I get advised (told) to shave when it's too long
Dave Thomson
@rinse0ut
Feb 11 2017 17:53 UTC
I was gonna have a trim but it’s too cold
How did you voting app go? Is that from a tutorial?
Tim Handy
@TimHandy
Feb 11 2017 18:04 UTC
yeah, it's an FCC assignment
ongoing... big job.
back end is done... well, it works... little in the way of being a robust app, but there's limits to how long you can spend on a toy app.
front end just started... spend the day on Friday wrestling with Bootstrap... think it's sorted now got head around how you use it with React. Should be able to plough ahead with React on Monday.
Tim Handy
@TimHandy
Feb 11 2017 18:23 UTC
Had a good day of random IT today... got rid of two failing drives with bad sectors, replaced with another drive, migrated SSD, got my linked-in profile together in prep for job searching, updated a bit on my portfolio, booked a blood donor session, installed Xbuntu on an old laptop, unbricked my router I broke when I tried to upgrade the firmware... and did the laundry! Might even have a beer now!
Dave Thomson
@rinse0ut
Feb 11 2017 18:37 UTC
:beers:
Btw let me know how you included bootstrap, I just included a style sheet
Tim Handy
@TimHandy
Feb 11 2017 18:53 UTC
Yeah, including the stylesheet won't give you any interactivity jquery type stuff, dropdowns and such... hold on