These are chat archives for MontCode/GeneralChat

26th
Jul 2016
Lily Romano
@Lilyheart
Jul 26 2016 00:35
That sounds interesting
David Castner
@davidjcastner
Jul 26 2016 16:12
Anyone know what or where to find out a estimate/data of image file sizes? Example: what is the average file size in (bytes, kilobytes, or megabytes) of a 1024x768 jpg or a 1024x768 png?
Lily Romano
@Lilyheart
Jul 26 2016 16:35
The best option is probably take a few different sample images at the compression rate you want and see what the average is. There are too many variables to just give a flat answer. Here is a page that shows different file sizes of a same image at the same size with different compression ratings https://www.siggraph.org/education/materials/HyperVis/asp_data/compimag/jpeg.htm . Different pictures would have different numbers based on their specific color (how often a certain color shows up, etc etc (oversimplifed)).
David Castner
@davidjcastner
Jul 26 2016 16:40
@Lilyheart thanks for your suggestion, maybe the context will help explain it a little better. I am looking to make a reasonable restriction on image uploads and understand that not everyone is going to use the same compression for images. I am having trouble finding a large dataset to make an education restriction size, or find a resource that has a recommended file restriction.
Eric Phy
@SimplyPhy
Jul 26 2016 16:41
I agree with @Lilyheart , image size has a ton of variability. Image data is really diverse, even when factoring for resolution and file type.
here is a quick look at the file size of iphone 6s images, which might make a good benchmark
Lily Romano
@Lilyheart
Jul 26 2016 16:46
Off the cuff suggestion for dataset. You can google search images at a very specific size (that is 1024x768) and get sizes from there.
I know there are chrome exts that can get you image size without downloading, but I haven't used any in awhile. I usually only care about dem these days and the Web Developer ext does that (but I don't see size option)
afk. gotta scrub the fridge and start the crockpot today. /sigh
David Castner
@davidjcastner
Jul 26 2016 16:49
alright thanks again for the suggestions @SimplyPhy & @Lilyheart
MontBot
@MontBot
Jul 26 2016 16:49
:cookie: 2 | @simplyphy |http://www.freecodecamp.com/simplyphy
davidjcastner sends brownie points to @simplyphy and @lilyheart :sparkles: :thumbsup: :sparkles:
:cookie: 323 | @lilyheart |http://www.freecodecamp.com/lilyheart
SimplyPhy @SimplyPhy got brownie points :D
Lily Romano
@Lilyheart
Jul 26 2016 17:07
Heh <3
Keith
@keithdoyle9
Jul 26 2016 19:16
@davidjcastner Not sure if this is something you're comfortable with but you could possibly allow a very high upload, then run it through some image optimization on the back end like imagemagick and save that instead of the large original.
Frank Van Emburgh
@FVANE
Jul 26 2016 19:25
Quick question. I'm almost done Javascript in the FCC course. However, I really feel like I was handheld through the entirety and wanted extra practice. Does anyone suggest anything that could help me further myself. I want to make a run at this as a career, the front end development, just looking at the best way to ease myself in. (Desktop and Application support at a non-profit hospital just doesn't pay like it used to.)
Keith
@keithdoyle9
Jul 26 2016 19:29
I've been in the same boat as you. The best advice I can say is to think of something and build it. If you can't think of anything, take a simple application and build it piece by piece. Just build stuff and share it on a place like Github.
@FVANE See above, forgot to mention you
Lily Romano
@Lilyheart
Jul 26 2016 19:30
Hi Frank! As for free resources, @lantech19446 seems to be enjoying https://watchandcode.com/courses/practical-javascript . If you don't mind paying a little, I did https://www.udemy.com/the-web-developer-bootcamp/learn/v4/overview and quite enjoyed it. @dcpking is going through that course now as well. You end up with several small fun projects using js in both the front end and back end. I can't vouch for it, but this book has been highly recommended in several groups I'm in
To top it off, @FVANE here is a nice curated list of even more JS resources. https://medium.com/javascript-scene/learn-javascript-b631a4af11f2#.jwve0qow2
I've also heard good things about the KhanAcademy JS resources but it's not for everyone.
David Castner
@davidjcastner
Jul 26 2016 20:29

@keithdoyle9 thanks, I'm aware that the best solution is to handle the image on the backend, and it is planned for the future but I needed to get something up and running for the short term.

Ideal solution

Slingshot upload from client to staging aws s3 bucket
-> triggers aws lambda function to create images for all image sizes (thumbnail, etc..)
-> upload to public aws s3 bucket
-> send request to change the image keys on server
-> delete photo from staging bucket
and the slingshot tool I'm using would allow for large uploads because the client uploads directly to aws s3 rather than having the image touch the server, meaning if someone tried something funny it would only bottle neck their own system
David Castner
@davidjcastner
Jul 26 2016 20:35
It's pretty cool, if you want to know more @keithdoyle9 send me a message
Also found this really awesome resource yesterday for building a drag and drop zone. Thought this might be a good place to share it http://bitwiser.in/2015/08/08/creating-dropzone-for-drag-drop-file.html
Lily Romano
@Lilyheart
Jul 26 2016 21:12
That's pretty awesome @davidjcastner !
I love sites that incorporate that feature
David Castner
@davidjcastner
Jul 26 2016 21:13
I love it because it doesn't suggest to use some library and actually explains how to do it in pure javascript
Lily Romano
@Lilyheart
Jul 26 2016 21:14
More things should be like that.
David Castner
@davidjcastner
Jul 26 2016 21:14
Yes they are rare resources and when I find them I immediately bookmark it
Lily Romano
@Lilyheart
Jul 26 2016 21:37
I think I'm going to "waste" more time on the guess-the-rgb game I have. I really should work on some FCC challenges but I'm not sure if I have the brain bandwidth for it tonight.
How have you been making out @lantech19446 ?
Jonathan Herman
@lantech19446
Jul 26 2016 21:41
I've been so busy recently that I haven't even gotten half way through the javascript lessons yet. Starting to feel very much left behind because of it.
Lily Romano
@Lilyheart
Jul 26 2016 21:42
You are never late, nor early, you arrive precisely when you mean to.
I haven't had much time to sit at the computer lately either.
Jonathan Herman
@lantech19446
Jul 26 2016 21:45
I just don't want to lose the motivation for it and the harder it's becoming to actually keep moving through it the more likely that is, but I have like no time left in the day
Lily Romano
@Lilyheart
Jul 26 2016 21:47
Did you get an invite to the enki app yet (I have some left)? It would give you 5 short javascript lessons each day (single phone screen each). I've been hitting the bookmark button on any lessons I don't understand yet so I can go over them later, but it at least allows me to do a little something each day.
Jonathan Herman
@lantech19446
Jul 26 2016 21:47
I didn't but if it keeps me doing something I'll give it a shot
Lily Romano
@Lilyheart
Jul 26 2016 21:47
@davidjcastner have you been doing any of the enki Javascript lessons? I've mostly done git and I'm just curious as to what type of stuff they cover.
I'll send you a PM here
Jonathan Herman
@lantech19446
Jul 26 2016 21:48
ok thanks
David Castner
@davidjcastner
Jul 26 2016 21:58
@Lilyheart I've been doing all css since that's what I'm weakest with except I tried js once. It covered es6 and either I knew most them already or I didn't find it useful. I prefer to be humble, but I don't know if there is much js I will learn from enki. The css is great because it highlights niche properties, so I can know what can be done in css rather than html or js
Mike
@dcpking
Jul 26 2016 22:01
Finally made it here! @lantech19446 : I know what you mean about busy! I've had two releases in the last two weeks and another probably on Thursday night. <rolls over and waggles paws in air>!
Keith
@keithdoyle9
Jul 26 2016 22:01
@davidjcastner Looks awesome!
Mike
@dcpking
Jul 26 2016 22:05
@Lilyheart btw, if I get html/css/javascript job notifications should I post them up here for people to see?
Jonathan Herman
@lantech19446
Jul 26 2016 22:05
It's nuts @dcpking not only am I pulling full time at my library I've been doing contractor hours at Jeanes helping with the upgrade to 10 etc
Mike
@dcpking
Jul 26 2016 22:06
@lantech19446 Really? The free 7/8.1 to 10 only goes until the 29th, I believe
(if you need a hand I'll help, but take no $$)
Jonathan Herman
@lantech19446
Jul 26 2016 22:07
yea we're coming to the end now I think today may have been the last of my hours from that project
Lily Romano
@Lilyheart
Jul 26 2016 22:08
Sure @dcpking here and Facebook (as on Facebook I can share with the college group as well!)
@davidjcastner thanks for the input. I've done some of the JavaScript games. They were fun.
Mike
@dcpking
Jul 26 2016 22:09
ok. Just remember I'll be leaving Friday lunch to go to Albany for SQL Saturday this coming weekend (it never stops!) :)
Jonathan Herman
@lantech19446
Jul 26 2016 22:10
sounds like a fun trip
Mike
@dcpking
Jul 26 2016 22:11
Oh it will be, with lectures like "My brain just blue-screened - let's laugh" to round off the day :)
Jonathan Herman
@lantech19446
Jul 26 2016 22:13
lol nice
Mike
@dcpking
Jul 26 2016 22:13
@Lilyheart ok. Here's one link - sorry it's so long). I don't know if the reqs are beyond anyone here, but even if they are, knowing what to aim for is always a good thing.. click here
David Castner
@davidjcastner
Jul 26 2016 22:14
speaking of sql, mongodb 3.2 has join satements! and it is now supported for the platforms I use!
@dcpking check the link you sent, it says the job posting has been removed
Mike
@dcpking
Jul 26 2016 22:15
@davidjcastner The one of the link, yes, but there's a heap on the same page that are mostly in PA, which is why I still put it up here
Lily Romano
@Lilyheart
Jul 26 2016 22:15
@dcpking you can make links like [text goes here](http://www.urlhere)
David Castner
@davidjcastner
Jul 26 2016 22:16
@dcpking ah ok, thought you were referring to a specific posting
Mike
@dcpking
Jul 26 2016 22:16
Trying: Text goes Here
Lily Romano
@Lilyheart
Jul 26 2016 22:16
someone make my chicken cook faster.
Mike
@dcpking
Jul 26 2016 22:16
Whatcha cookin?
Lily Romano
@Lilyheart
Jul 26 2016 22:16
xD you can edit posts too :p
David Castner
@davidjcastner
Jul 26 2016 22:17
:fire: :fire: :fire: :chicken: :fire: :fire: :fire:
Lily Romano
@Lilyheart
Jul 26 2016 22:17
um... What David said xD
Mike
@dcpking
Jul 26 2016 22:17
@Lilyheart (sorry) :)
Lily Romano
@Lilyheart
Jul 26 2016 22:17
Honey sesame chicken in the slow cooker.
Jonathan Herman
@lantech19446
Jul 26 2016 22:18
you need an instantpot @Lilyheart
Mike
@dcpking
Jul 26 2016 22:18
Plug it into the 240v outlet?
David Castner
@davidjcastner
Jul 26 2016 22:18
:warning: :fire: :fire: :house: :fire: :fire: :fire_engine:
Lily Romano
@Lilyheart
Jul 26 2016 22:18
heh, I like the tenderness of slow cooked things.
Mike
@dcpking
Jul 26 2016 22:19
Then get ya fangs into some gummies for practice and be patient :)
Jonathan Herman
@lantech19446
Jul 26 2016 22:19
You'll get that from a pressure cooker too because it's still wet heat like the slow cooker is but it'll be done in like 20 minutes
Lily Romano
@Lilyheart
Jul 26 2016 22:20
It's not quite the same xD
Jonathan Herman
@lantech19446
Jul 26 2016 22:25
I'll have to take your word for it, we don't eat meat in my house.
Lily Romano
@Lilyheart
Jul 26 2016 22:45
Afkish. Fixing dinner (so weird as we didn't have a usable kitchen for soooooon long)
Keith
@keithdoyle9
Jul 26 2016 22:52
macadamia crusted mahi mahi with gnocchi & brussel sprout leaves
Mike
@dcpking
Jul 26 2016 23:02
Eating chicken soup and bread (sorry I was away!)
Lily Romano
@Lilyheart
Jul 26 2016 23:09
I'm back.
So recommend the recipe from dinner. I don't cook often or well (not something I enjoy) but so very tasty.
Mike
@dcpking
Jul 26 2016 23:11
(anyone know if it's possible to get Chrome to display two rows of tabs? somewhere around 55 I lose all the icons! It's that or get a wider screen :) )
Lily Romano
@Lilyheart
Jul 26 2016 23:13
Chrome locks a lot of that stuff down. I think there are some addons that give you a listing of tabs down the side like IE does bookmarks.
Keith
@keithdoyle9
Jul 26 2016 23:17
55 tabs?!?
Lily Romano
@Lilyheart
Jul 26 2016 23:21
I believe him. I used to be that way. I've found it much nicer (inner peace and zen and all that) if I close tabs I'm not using and bookmark those I need. I also use multiple chrome profiles to give context to my tabs.
Mike
@dcpking
Jul 26 2016 23:23
I already have 15 menus of links saved. The problem is that I'm too fragmented, with studying several things, working, and a little play (FB, tc).
Lily Romano
@Lilyheart
Jul 26 2016 23:23
Might I suggest chrome profiles then?
keeps the fragments separate. Then each can have an organized bookmark bar.
Mike
@dcpking
Jul 26 2016 23:26
I'll take a look, @Lilyheart - thanks for the suggestion.
Lily Romano
@Lilyheart
Jul 26 2016 23:30
For instructions on the guess-the-rgb game, how does this sound? Select the color that you think matches the RGB value listed in the title above
Mike
@dcpking
Jul 26 2016 23:40
@Lilyheart That looks good; the famous pair of P and C - Precise and Concise!
Lily Romano
@Lilyheart
Jul 26 2016 23:46
xD Thanks. Now with instructions! https://lilyheart.github.io/guess-the-rgb/
Mike
@dcpking
Jul 26 2016 23:48
with user do until success{ compare colours to rgb; select colour; acknowledge failure;}
Lily Romano
@Lilyheart
Jul 26 2016 23:51
Did you get to the point of making the game yet? @dcpking ?
Mike
@dcpking
Jul 26 2016 23:58
Not yet, @Lilyheart - sorry! I'm doing bootstrap right now, but also working on getting rid of resource blocking on multi-user databases at work, and ( of course) helping out on Experts Exchange. <grin> Helping people learn what they're doing wrong in ETL (data loading), reporting, and just general SQL.