« first day (2074 days earlier)      last day (2872 days later) » 

4:01 PM
On the bright side, if I stick with the gym I'll be in good shape because despite the massively ripped dudes, there's tons of ripped women there too
Time to get buff and make strong friends
 
@ndugger try not to lapse or you might blurt out your opinion like that and escalate things; I don't know what you mean by "date", but you'll probably end up getting a bashing
 
@Loktar they didn't have to open air case at the store, so I got this one instead: amazon.com/Corsair-Carbide-High-Airflow-Cube/dp/B00D6GINF4
 
nice, I saw that one too
lil fat chubby case
well not so little actually
 
It's pretty big, but the cable management and airflow in it is pretty amazing
 
4:08 PM
I don't get it
 
bootstrap dropdown button broken ?
 
yep
looks like its broken world wide
 
@ndugger it's from Dodgeball lol "It's a metaphor"
 
@ndugger I have that case, I really like it.
 
4:10 PM
For now, I'm just using a crappy GTX 720 until my 1080 comes in the mail
I can still play Skyrim on high detail with it at least
 
@Loktar really?
 
When I tried to run it on Ultra using the 720, ther was about a 100ms delay when I moved the mouse
 
@FastSnail nah I was just messing around
 
you ..
 
is there an accepted best practice for where to place <script> tags? should i look into using async/defer?
 
4:17 PM
not really. do what's best for your project.
 
In the head; after the CSS, or in the body; at the very end
 
other than <head> vs before closing body
ofc
 
depending on what your script does and what it's dependent on, you might need to put it somewhere specific
and it would also determine if you can use async/defer
 
When I do "inheritance" like this:

Enemy.prototype = Object.create(Entity.prototype);
Enemy.prototype.constructor = Enemy;

And then add stuff to the "Enemy.prototype" I'm really just adding properties and methods on the one instance of "Entity" created with Object.create?
I thought this would be a lot less intuitive so I wanted to check if I misunderstood something.
 
@VeronicaDeane there's a new one...
 
4:23 PM
I've already posted it here twice
 
oh
 
@rlemon @SterlingArcher oh ffs
 
Is that a pregnancy test
!!afk shit shit shit shit shit shit brb
 
nah, it's one of these vaping thingys I just got
 
ah, im sry
 
4:29 PM
because why the hell not. I just hope I don't joint the dark side completely and start talking about vaping all day
 
\/ /\
 
4:46 PM
guys please small css hack amig.ga/mediacenter/index.php how to add a margin between fb and youtube logo on mobiles? i still havent perfected the responsive design
on small screen, the fb and youtube are on top of each other, thats my only question
you can see in the source code that im messing with media query, no luck
 
user1596138
@SterlingArcher Dude hahahahahahaha....
 
@Josiah SterlingArcher is afk: shit shit shit shit shit shit brb
 
I just spent god knows how long chasing a squirrel out of the office
 
Your problems are so fascinating.
 
He tried to get into the SCIF and 3 women screamed
 
4:59 PM
Why would they scream? Squurells are cute
 
Who the hell lets a squirrel in and doesn't report it ._.
 
@SterlingArcher fun people
 
@ndugger grills
 
5:21 PM
@Lynob with a table layout you should begin by going back to basis
before trying to do anything responsive.
Why the hell are all your links forms ?
omg is that real
 
off topic but nice article
 
If I learn Unityscript, will I keep confusing it with Javascript proper?
 
@bitten republicans are the problem with politics
other then that I agree
 
anyone explain the reason of this scenario?
 
@nickborti your code is the worst I have seen but the formatting is definitely pretty bad
 
5:35 PM
okk. sorry about the inconvinience
 
Hey, it's indented.
Very indented.
 
I meant your code isn't the worst
 
too late
 
but never forget to downvote right?
 
I didn't downvote
 
5:38 PM
I didn't forget
 
Why is their dark theme ugly? It also doesn't even match the other UI's colours
 
@JanDvorak haha
 
Also, the code in this picture is fucking god awful developer.xamarin.com/releases/studio/xamarin.studio_6.0/…
Why would they use it as an example?
 
Meh
 
5:41 PM
don't care. It's dark so it's easier on the eyes until I get around to converting the project to VSCode.
 
@William I agree I'm not awesome rockstar javascript developer. I agree I don't write cool codes. But I indented every bit of it as mush as I can.
 
but yea.. it's even less pretty in person.
 
as mush, yeah
 
@nickborti For future reference, we don't like titles like "rockstar" or "ninja"... they're demeaning.
 
cool
@JanDvorak typo. :D
 
5:45 PM
it works and it's a school project for someone, if it ain't broke don't fix it, if you're hiring me and want to see my coding skills then i'll clean my code, i won't clean my code for some dude paying me 300$ for his school project...

now do you have any hacks just to make the icons not overlap on mobile? sorry for not being a designer, i should throw my cs degree, get a web design and graphic design
 
display:table isn't always bad
 
no dislay table
the code is a table
 
with form inside
the forms are here instead of <a>
 
yuck
 
5:47 PM
<form action="facebok.com"><input type=image src=... /></form>
SERIOUSLY?
 
wat
 
even in the dumbest tutorial out since 2005 there is no way someone does that
 
y u no <a><img/>
 
@Lynob Someone is paying you to do their school work? Dude, come on...
 
@Lynob But you need to go out of your way to do some of these things
It's a lot easier using links than forms
 
5:48 PM
@JanDvorak he doesn't know how to html. I would be really happy if someone would give me 300 euros for this code
Or sad
 
Could just be a startling level of incompetence
 
If you accept payment for homework, you're a part of the reason why we get so many bad developers
4
 
Then you don't ask money for that...
 
I'm not ok with this
 
I would be really sad if someone gave me his code for 300 euros
 
5:49 PM
his page (amig.ga/mediacenter/index.php) could probably be done in 15 minutes
 
Tiled background????
 
yikes
 
oh god
 
Well what I saw here I would do in 15 minutes without doubt and cross-browser
 
image map?
 
5:51 PM
he needs an image for the bg, one for the title, 5 for the links
 
> The funniest 10 second video ever.mp4
 
@dievardump ouch
 
@dievardump yeah, those image effects
 
looks more like an opacity
 
Wait, the video page has the background stretched horizontally, but tiled vertically
Opacity isn't cross-browser enough. I mean, you need different syntax for IE8.
 
5:53 PM
who cares about ie8
 
Copyrighted music for download
 
I charge xx days (depending on the project) for every browser that's not the last version
Since I do that, it's crazy how I can use display:flex everywhere.
 
does IE11 count as latest version, since they tout Edge as being a different browser?
 
Or not. If I try to play something, the audio element just disappears
@ndugger no.
 
ie11 is the last on windows 8 no ?
 
5:55 PM
I think so
 
windows 8 is still too used to charge for it
but it's more than good enough for browser
 
Can't we just force everyone to use Win10?
 
Yeah, you don't need a ton of extra leg work to work on IE11
 
I only develop from Chrome. Just kidding
 
Google fanboy
 
5:57 PM
@JanDvorak was that a joke?
 
Chrome is the best browser for now; knowing this doesn't make anyone a fanboy
Firefox is rubbish, Opera isn't even its own browser anymore, and Edge is just a rehash of a sad joke
 
WAT
 
@GNi33 I don't know, but that's a brilliant idea.
 
Firefox > Chrome
4
 
Firefox sux
 
5:58 PM
You know nothing, Jan Snow
 
Firefox is sloooooooooooooow
 
user1596138
@SterlingArcher a squirrel in the office? lol
 
user1596138
How does that even happen
 
At least it doesn't force an ugly button nobody uses down your throat
 
the name button? Most people do sign into chrome...
 
5:59 PM
@Josiah He came for the nuts.
 
for deez nuts
 
I can sign through the options menu, thank you - and nobody will see my name whenever I screencast
 
Firefox is good, but the dev tool is still far from being as good as Firebug (for html/css purpose)
 
@JanDvorak you can name that "button" whatever you want
 
It does have the 3d view
 
6:00 PM
mine just says "me"
 
I never use it
 
@GNi33 mine says . and it's still ugly af
 
Hey guys I was wondering why my react-router wont redirect from homepage to user-search
` <Redirect from='/' to='user-search' />
`
 
I never use it either, it doesn't bother me at all though
 
Firefox on Linux has no touch support..
 
6:01 PM
My button says 'Jan Dvorak'.
 
@FizzyTea You think I have an identity crisis.
 
the only way firefox is usable on my computer is if I disable javascript
 
:-)
There, that's my contribution for the day. Time for pasta and football.
 
there's a flag that you'd think would hide that button, but it doesn't seem to have any effect whatsoever
 
@ndugger by school, I mean Their CCE thesis, this what you see on the site, is supposed to run on pi 2 and there's more to it, and im just coding
 
6:06 PM
@KevinB code simplification
 
user1596138
@JanDvorak Why do you care if people see your name during screencast
 
user1596138
Seems pretty silly.
 
^
 
I do care that Google is lying to my eyes that nobody doesn't want the thing.
 
user1596138
Go Incognito. It goes away
 
user1596138
6:10 PM
@JanDvorak Who cares lol. Why remove it..? Some people use F5 instead of the reload button, should it be possible to remove the reload button ;P
 
Then I have some other button in that place, I can't go incognito and my session disappears when I need to restart.
 
user1596138
it completely goes away in Incognito.
 
user1596138
You're having a secret session, you don't want your name seen. Makes sense to delete the session afterwards anyway.
 
user1596138
I'm js, this seems like about the most petty thing you could bitch about haha.
 
At least you can always vindicate Google's decisions
 
6:12 PM
Switch Person > Add Person > No thanks > Have fun.
 
@MadaraUchiha why links are easier? what makes them so different, apart from not liking the coding style, and the reason i used form because i needed them, client changed his mind, i removed them and used them just to hold images, I can use likes, why the hell not but what makes them that easier?
 
@Lynob Because <a href="link"><img src="image.jpg" /></a> is easier to use and read than constructing a form with controls
 
@Lynob there's really no good reason to use forms to imitate the function of links
 
@Lynob because semantics?
 
first: semantics
and that point is so huge that I don't even need to add a second
 
6:16 PM
holy shit. wtf.
 
@littlepootis what happened?
 
> <table align='center' style='width:100%'><tr><td><form action="photos.php" method="post"><input type="image" src="images/photo.png" \></form></td><td>
 
yuck
 
uhm, yeah
 
Why the hell is it a post?
 
6:20 PM
someone could tell you that it's intentional for some reason, I doubt it in this case
 
it probably wasn't working so they tried post, that didn't work either, so they tried something else and it worked, and left the post there
or... their autocomplete suggested it and thought it was a good idea
 
I want to see his reaction when he learns about links...
 
anyways, you're making it harder to maintain for yourself down the road even if it might work fine for now, you're making it harder for yourself to style and you make your markup and thus probably your CSS more complicated for no reason
 
6:33 PM
I actually hate mobile chrome on the iphone
safari works much better
 
Does anyone have any recommendation for where to start learning AngularJS 2 with Typescript?
 
Not to
 
@JanDvorak not to? b:
 
In moment, does myTime.add(1, 'day') update the moment object "in place"?
 
6:50 PM
Wouldn't it be easier to try?
 
moment's docs are clear about how when the methods mutate the existing moment and when they return a new moment.
 
@ndugger to be fair in my experience the tests in school do a pretty good job of weeding out the bad developers.
 
lol no
 
Doesn't excuse the shady behaviour of doing school work for others
 
except when said tests are projects that people instead pay others to do.
 
6:57 PM
anyone seen this error before?
Response validation failed: void does not allow a value
i can't seem to figure out what's teh problem
nodejs
 
Can I declare an array of key-value pair in JSON schema?
 
If you did, it wouldn't be an array.
 
@mikeTheLiar you mean a dictionary object?
 
@ndugger possibly, I'll look into it
 
6:58 PM
@mikeTheLiar yes you can
 
@corvid seriously, though.. you'll have to check the docs. I am not sure moment's behavior is consistent between methods, but they do at least document it.
 
@JoeSaad No, he can't
Don't try to help others if you can't even help yourself
 
@ndugger you can have arrays in json
 
@JoeSaad Maybe you should read his entire question
 
yes i can't help myself. does this mean i can't help others?
 
7:00 PM
You can have arrays, and you can have key/value pairs, the two aren't the same
 
Basically here's what I've got:
"add": {
    "type": "array",
    "items": {
        "type": ???
    }
},
 
That's like asking, "Can I walk on water?" and answering with, "Yes, just use your legs to walk"
 
how do you send a tidle on skype?
 
seems like items should be an array, not an object
 
@mikeTheLiar that's not an array
 
7:01 PM
"add" property should be an array of key-value pairs of string/string
 
it just .. disappears
 
@ndugger to be clear I'm not trying to declare this in json but in the schema definition
 
mongoose schema?
 
@mikeTheLiar JSON doesn't support schemas... what are you talking about?
 
7:02 PM
Booking a vegas penthouse at the MGM :D
 
@mikeTheLiar That tool is a third party addition to JSON; it has nothing to do with JSON itsself
 
@SterlingArcher get the steak au poivre
blinks
Yes I understand that
 
you'll have to be a bit more clear in what exactly you mean by "array of key/value pairs"
 
I like things I can't pronounce
 
I'll have the steak allah akbar please
 
7:03 PM
show an example maybe, because arrays don't have keyvalue pairs. you could have an array of objects though.
 
well.. JS does let you put arbitrary keys on an array...
but yea.. you'd never persist it like that in JSON.. I don't think it supports that.
 
@mikeTheLiar items can be array of objects
 
yeah json doesn't allow that
 
@mikeTheLiar Then what's your problem? You're not making enough sense for us to answer your question
 
@ndugger you'll have the steak in charred bits laying around the plate?
 
7:06 PM
sorry
 
//I think you need:

{"add": {
    "type": "array",
    "items": {
        "type": "object"
    }
}}
 
anyone seen this error before?
Response validation failed: void does not allow a value
i can't seem to figure out what's teh problem
nodejs
 
well, what's the line with the error?
 
basically means you'll have an array of objects. [{a:1,b:1},{a:2,b:2}]
 
Showing us a random error message without code is entirely useless
 
7:07 PM
when i use postman to do a simple post, i get this error
i'm using Swagger for creating restful api
 
@KevinB yeah this is exactly what I need. Thanks.
 
my assumption is that the res is coming void
 
depends on where the error is
 
i don't know in nodejs why would this happen? I'm able to make a get and it works fine
 
seems like it's server-side, with the little to no background you'r giving.
 
7:10 PM
check your assumptions.
 
I'd think you have something set to respond with void, and void doesn't allow a value but your endpoint is trying to respond with one
 
@KevinB here's my code:
function jobspost(req, res) {

    //var location = req.swagger.params.location.value || 'stranger';
    //console.log('req.swagger.params.location.value : '+req.swagger.params.location.value);

    var jobs =[
        {
            "id": 1,
            "name": "Sonair",
            "country": "Cyprus"
        }, {
            "id": 2,
            "name": "Voyatouch",
            "country": "Philippines"
        }, {
            "id": 3,
            "name": "Span",
            "country": "Sweden"
i have no idea where that void came from..
 
could it be the statuscode
 
i don't think so
i even have all those lines commented, cause i tried each one of them
 
and they all still use 201, not 200. i'm not sure if swagger or whatever you're using allows 201 to have a response body.
 
7:40 PM
starts stagger.js project
 
7:59 PM
@KevinB yes it allows
 

« first day (2074 days earlier)      last day (2872 days later) »