« first day (757 days earlier)      last day (3031 days later) » 

12:09 AM
CM sessions helping my JS knowledge - this kid is going through a JS book and asking me questions he doesn't understand xD
stuff that I knew JS had but hadn't really used before much
 
like?
 
using in, combining maps etc
 
eheh
@ZachSaucier naaaaaaaaaaaaaisssssss
 
i genuinely like it :D
lemme look at the code now :P
ah right there's the msie stuff in it, so lemme NOT look at the code :P
 
12:15 AM
lol
it's ugly as balls
 
12:32 AM
@Worf Just explained to him how .reduce works kind of (I've never used it before)
Had to explain that reduce doesn't step into the context of the array, just checks/passes values each iteration
because he was curious how it could step down into the values then go back up to the "parent" context of the array for another check
like [0,1,3].map().reduce().map()
which is far from my usual JS experience, haha
 
it's rare for everyone to use such functions actually
 
especially reduce :P
 
the example was sorting/getting data from some movie list obj
You liked my project but showed it no love :(
 
ahah sorry
 
12:37 AM
no worries :P
 
done :D
i think i never used reduce in js
 
I sent it to like 5 different newsletters, so I'm hoping to see it passed around a bit
I hadn't heard of it (IIRC at least) until tonight
 
cool, btw, the speech video? :D
 
still not out yet :(
conference was not exactly the most organized thing I've been to
organizers were a little bit too chill about everything
 
lol
 
12:44 AM
how is there not a gif of super mario 64's star obtaining animation?
the closest I can find is this teasing one
 
lol
i neez a massive coffee
 
1:00 AM
@Kitler How do you like your fanboy always changing his profile to match yours?
 
1:59 AM
@ZachSaucier I am his lover, not his fanboy
 
wait who is @Katler
 
xD
ill give you 3 guesses
 
mickey mouse?
donald duck?
the southafrican?
 
FUck
:/
You got me
its me, Donald :P
 
lol
 
2:07 AM
I have been awake for 47 hours
and im going to work in 2
fucking insomnia
 
can't tell if i should insult you (in case you are the south african) or if i should be caring (if you are the terrorist)
 
either way
how fucked are you?
 
the writing style looks like south african's
lol @Katler
i hate you and your nicks
 
:)
I love Bacon
BACON!
 
and i can't even pick enrique iglasias otherwise i make madara upset
 
2:09 AM
Come at me bro!
I don't think Patsy knows yet :P
 
patsy is busy watching walking dead, and he's probably getting ready for the zombie apocalypse right now
 
He still in Murica?
Fuck man I am so tired
I am going to drink Monster + coffee and not sit down today
or I may just die
 
2:31 AM
no sense in that @Katler
 
2:49 AM
morning
 
@NullPoiиteя haloooo
 
@Katler holaaaa \o/ !!!
 
rlemon, Ontario, Canada.
10.5k 5 47 83
new profile pic
 
@rlemon quite weird picture ;)
 
here is the full picture.
:D
 
3:26 AM
it feels like you swallowed the cigarette and become smoke emitting man :D
 
4:04 AM
@rlemon i'm dying
 
not anymore.
ecig bitches
:P
 
i'm not so sure
i think you better go back to regular cigs.
:P
@NullPoiиteя it seems he swallowed a 1800 factory that was burst into flames, located in a city that was burst into flames as well
 
I am using python and django for web application. Is it possible for the django signal receiver to inform the already loaded page that the data has changed and request for a reload ??
 
ask in the python room?
 
4:13 AM
ohk thank you !!
 
4:28 AM
148
Q: John Nash's Mathematical Legacy

Paul SiegelIt would seem that John Nash and his wife Alicia died tragically in a car accident on 5/23/15 (reference). My condolences to his family and friends. Maybe this is an appropriate time to ask a question about John Nash's work which has been on my mind for awhile. John Nash's best known work to t...

Humans know an awful lot
@Worf reminds me of the radium girls
Back in the early 1900s when they used to use radium paint on watches to make them glow in the dark, the girls working in the factory would lick the paint brush tips to give them a fine point
and they'd paint their nails and teeth with it so those would glow too
great way to die a terrible death
 
ahahahahahha
 
they sued their manufacturing company
that was the first case (in America, at least) that established that employees have a right to sue their employer for diseases contracted while on the job
the beginning of OSHA
 
incredible. i wonder if there's something we are doing now that in 100 years will considered just as mad
 
Probably
smoking, for starters
humans driving cars, for another
Our grand children will look at videos and pictures and say "You guys drove those things manually?!"
They didn't just... drive themselves?
 
i am afraid i don't think humans driving cars will disappear. for the simple fact that some of them get pleasure from that
some even get sexual pleasure, like me
 
4:37 AM
well it will be illegal by then probably
 
don't think so
 
in most countries anyway, I bet
Just like it's illegal now to drive without seatbelts, airbags, etc.
automatic driving cars will be so good at it that letting anyone else drive would be tantamount to attempted mass murder
at least on public/busy roads
 
i bet more on the car disappearing entirely, because we are massively failing with batteries and hydrogen
 
I'm sure private land and closed access race ways will still allow it
well cars could disappear in most countries and no one would have any problems
but if cars disappeared in the US the economy here would grind to an immediate halt
 
HAMMERZEIT!
 
4:39 AM
I saw a statistic the other day from one of the business tweeters I follow that showed something like 90-95% of people in the US drive to work in a car every day by themselves
90 - 95%
that's ridiculous
 
yeah that's ridiculous
 
the car is the lifeblood of the American way of life
 
@TylerH most countries you mean like Somalia , Afghanistan ?
 
@NullPoiиteя no I mean most as in any country not in North America
most countries are small as fuck
so their populations are all centralized
 
he meant countries not having economy built on vehicles
 
4:41 AM
so you have major cities that are hundreds of years old and established mass transit
but in the US we don't have that
even the mass transit we do have is a joke
don't ever take MARTA if you come to Atlanta
not only will it take you two hours to get anywhere but you're likely to be robbed
 
for example, most of people in italy can even consider going to work just by walking. not all of them, clearly, but most of them
 
and it of course doesn't go anywhere you want to
only sort of nearby
 
@TylerH lol
 
@TylerH is public transportation not good in US ?
 
but I drive around 15 to 25 miles a day every day just going to work and stuff, not running many errands or going on trips
by myself
and I work 7 minutes away from where I live
@NullPoiиteя no it's awful
the planes are great
we have the best air travel in the world (not the most luxurious of course, that's probably Air Singapore and other nations)
but I mean, in terms of # of flights to # of destinations
 
4:43 AM
i though your government really cares about global warming
 
@NullPoiиteя some of them do
the republican party doesn't believe in it
Literally
that's half the government (more than half right now, actually)
anyway, one of our senators (Jim Inhofe, you can look it up) brought a snowball to a session of congress earlier this year and showed it as proof that global warming was fake
so because I am full, there are no starving children in Africa, by that logic
 
and they are trying to force other country to reduce co2 emission
 
@TylerH and apart that, there's also the absurd goods transportation over countries. like us exporting olive oil to japan... for example. miles and miles and miles... why don't we just teach them how to make it?
 
of course, global warming is a bad name; it's climate change, and it's made more severe by us, but overall the planet is warming
 
@Worf lol
 
4:46 AM
@Worf Well olive trees probably can't grow in Japan
that's the main reason to export things
 
@TylerH they can
or us importing from the southern emisphere during winter stuff we normally have during summer
 
@NullPoiиteя Well there's actually an interesting thing (also it's terrible at the same time) going on called cap and trade; companies can buy and sell "credits" for how much CO2 and other emissions they produce
 
why that? just eat winter stuff for god sake
 
and if they use more credits than they have, they get fined. So you can "buy" credits from other companies who use fewer credits than they have allotted
it's great because it lets people monetize something totally fake and arbitrary, but it's terrible because it lets people monetize something totally fake and arbitrary
 
@Worf may be Japaneses are something like "take my money and give me those damn banana , though Japaneses are smart
 
4:48 AM
kind of like exchange traded futures and securities on Wall Street, aka the whole reason for the global recession in 2008
@Worf You would do well in Russia
"Life is tough. Why you want it to be nice? Just live tough life."
 
 
@TylerH what !!
 
@NullPoiиteя I'm making fun of Worf
he was saying people in Italy should just eat winter food in the winter time instead of importing summer food from elsewhere
 
i wish json had a simple way to validate the schema
simple standard
var json = JSON.parse(string);
JSON.validate(json, schema);
 
XML
 
4:57 AM
yeah
i could write one tho
JSON.validate(json, {
expectsType: 'array',
minlength: 0,
maxlength: null,
nullableContents:false
}
something like this, like xml's
 
posted on May 27, 2015

New Cyanide and Happiness Comic

 
okay, repwhored a late night question, got 45 rep
time for bed
 
@TylerH later
 
@Feeds lol
@NullPoiиteя see ya
 
5:27 AM
Need some advice for this situation:
Person – includes image, name, description, job tile, roles, expertise, publications, etc
Project – includes image, name, description
Partner – includes image, name, description
Programme – includes image, name, description, entry requirements, length of study, job opportunities etc

If someone searches for a project, the main project information will display, but so will all the people (person) who work on that project, the partners involved with the project, and any programmes that relate to the project.
Say I make it so that each person,project etc has it's own id number. How would I go about making a database structure for this? Do I:
1. Reference in only one table. For example in a column in the person table I would list the projects that a person has worked on but the project table would have no reference to the people that worked on it.
2. Reference both sides.
3. Create a separate table that contains all the relationships between two tables.
4. Something else
let me know if what I've just said doesn't make sense
 
5:51 AM
@joshhunt basically you want a search that is performed on several tables but that appears consistent with the results (a single result page for all the tables), correct?
 
yes I think so?
essentially if someone went to "John Smith" (person page) it would come up with a list of projects that he worked on (as well as all his own data)
 
still yes? :P
 
and vice versa if someone went to the project "Banana Land" it would show that John Smith worked on that project
 
well that's simple. a search engine would be different
 
so what's the most efficient way to store the data? and how would a search engine be different?
 
5:56 AM
SELECT * FROM person
LEFT JOIN person_project ON
person_worked_on_project.personID = person.personID
JOIN project ON
person_worked_on_project.projectID = project.projectID
person
personID | personName

person_projects
personID | projectID

projects
projectID | projectName
 
ah right so option 3?
 
"reference both sides" is generic but i believe that is correct :P
a search engine is different because UNION of several table searches plus consequent ORDER BY would be massively slow so you need a third party search index OR perform the search on a single table that contains a search index containing keywords of other tables
 
option 2 was more like
person
personID | personName | projects

projects
projectID | projectName | people
 
absolutely not
 
which of course means you have to save everything twice
:D and that's why I asked
 
6:03 AM
it's a common error... you were thinking to compile that field like 1,2,3,4,5,6 right? with each number being a personID
 
yup
 
that is wrong not because it can't work. but because it would be massively slow
basically every time you will be asking mysql or any other dbms to split that string into an array, then search the values etc
arrays in databases are tables
so if you have an array (a list of thing) written as a string, you are doing it wrong because it's gonna be super slow
 
makes sense
 
for example imagine listing a person's projects
select * from projects where projects.people like '%3%'
that is a substring search, no
to match the 1,2,"3",4,5
imagine having to search for a substring for each row selection you perform
:P
rather than just search for the exact match
3 === 3
that is it
 
true
if you had lots of different tables that were all related to each other I assume you would use the same approach?
 
6:11 AM
yes, always
 
so there's nothing wrong with having lots of tables then
 
unless the relationship is hierarchical. like having just parentId
 
yup
 
nope @joshhunt who says that? :D
 
?
 
6:13 AM
> having lots of tables
there's nothing wrong with that, as long they make sense
 
oh, I dunno I guess in my mind "efficient" is related to "compact" which is not always true
 
@joshhunt look at megento database they have shitload of tables ~250+
 
at least when referring to this architecture
magento god
 
@Worf thanks for the help, I really appreciate it
 
yw
 
6:33 AM
also, most likely you won't be able to register your own account for KR
 
:(
 
I bought mine for $10 from newgameway
was worth it
 
bleh bleh
 
6:53 AM
@TylerH Yeah, I'd never realized how simple it'd be to just start recreating GIFs for fun
 
7:14 AM
WHY DON'T YOU COME HANG OUT INSIDE MY HOUSE. WE CAN COOK BREAD AND CHAT ABOUT OUR INTERNAL SKELETONS.
 
Hahaha, xkcd is so awesome
!!xkcd 1530
 
There's your context ^
 
7:41 AM
@SomeGuy it's teriblé
 
Your face is teriblé
 
indeed, but not as much
:D
 
8:03 AM
Why do you think it's terrible?
 
it's not funny
-------- my face is
 
Haha, okay
 
@Worf shun the nonbeliever! shun!
 
8:33 AM
posted on May 27, 2015 by kbironneau

/* by Dédé */

 
8:44 AM
"Listening the client"....
when did the coding love get so freaking horrible
 
so guys here's an example of anti-technology json-schema.org/documentation.html fucking shit documents. they never learn
 
what is difference between section and article ?
 
in short, article makes sense on its own, section (unless it's placed under its ancestor elements) does not
 
@Worf thanks, any example of website follow them correctly ?
 
any?
 
9:05 AM
@Worf so there is no use of div in html5 anymore :/
 
:|
<div> still is what it used to be, a semanticless block container
 
anyone is there used AngularJS @all
 
9:22 AM
@NullPoiиteя yes there is, plenty
not all divs can be a section/article
 
but those can behave as section/article, right ?
 
@Allu Don't ask if anyone is anything, just ask your question and see if people respond :)
@NullPoiиteя Any element can behave as any other element (except for most inputs)
that's not what semantics are about
 
ok @StephanMuller I am new to this room so that's why?, My question when I used angualr JS in my Template some slide images is not displaying before when I used only HTML it works fine but when I added AngularJS then it is not displaying images in my page? Is there any reason? Please let me .
 
Obviously that question is impossible to answer without seeing the code. Can you reproduce the problem somewhere?
or link to the site?
 
ok where can I produce the code like some thing JSfidle like that @StephanMuller
 
9:48 AM
my timer function not working anyone guide me my code is here => jsfiddle.net/8nxz3nkg
 
@srini Please learn how to ask a question
How are we supposed to know what is wrong with it? You may want it to behave that way, in which case it is fine as is
 
Hello
Anyone knows typesafe activator?
 
10:04 AM
No, sorry
 
Thanks, anyway I don't understand why this thing is so complicate
I mean in general, developing a reactive web app you mush have dependency like 100 library dependences
Things must be simple using frameworks, but isn't enought to use a framework
 
you want to know my honest opinion? when this sort of thing starts to happen, time to start looking at alternatives
I think that if a framework is truly difficult to follow and understand, it is the framework that needs work, not me
Though in their defense, I don't like to pass judgement without trying to write a couple apps with it
 
Hey, I have a question about making a website mobile.
When you have let's say ... 3 images on a page in html <img ... >
 
Thanks Neil
 
But when you load the mobile website you don't want to show them to make the loading performance better.
When you do img { display: none; } on those images in the media query for the mobile version...
Then the image is not showing.. but isn't it loading? Because in your DOM structure the image is still being 'rendered'.
 
10:10 AM
I don't think so*
 
I think is loaded in memory
and then browser not render it
but have a reference in memory to it
 
AFAIK, if you wanted an image to load but you didn't want it visible, you'd move it off the page
 
Im not doing it right now but I was thinking just about it.. I don't want to load it at all.
I only want it to be shown on ipad and desktop versions... lets say.
Because the dom is getting interpret first? and then you attach the stylesheet which says : Hey img tag.. you are not allowed to be shown.
 
@Duikboot most browsers don't load display:none; you can test it yourself by toggling the property on a large image. I know chrome does it and I'm sure most "good browsers" do it too
 
14
Q: What browsers download hidden images

Raynos<style type="text/css"> .hidden-image-container { display: none; } </style> <div class="hidden-image-container"> <img src="lulcats.png" /> </div> I'm mainly interested in what mobile browsers make the optimization of not downloading an image that's in a hidden container. Thi...

 
10:13 AM
Indeed in the network tab the image is not being loaded.
But in the DOM the img tag is written. Thanks a lot! :) Made sense.
 
depends on the browser apparently
 
Indeed.
 
though an easier solution would probably just be to set the content url to blank in the case of mobile
or set it to the url, but only in the case in which it isn't mobile
193
Q: Is it possible to set the equivalent of a src attribute of an img tag in CSS?

Rakesh JuyalIs it possible to set the src attribute value in CSS? At present, what iI am doing is: <img src="pathTo/myImage.jpg"/> and I want it to be something like this <img class="myClass" /> .myClass { some-src-property: url("pathTo/myImage.jpg"); I want to do this without using the backgroun...

 
Cool, is that a good practice? :)
 
thats wierd I always though the content property only applied to pseudo elements
but looking at the listed browser support I would rather rely on browser not loading display:none; than supporting content:url(' ') on images
 
10:20 AM
@Duikboot Probably not
The difference between images in HTML and images in CSS is semantic
images in HTML have meaning towards the content of the document
Illustrations, graphs, related images
Images in CSS do not have meaning towards the content of the document.
Background images, pretty patterns, things that are likely to repeat across all pages of your site
Figure out which is which, and use the appropriate attribute (src= or background-image:)
Don't try to hack your way through.
 
That was I thinking as well...
Using <img src.. > is used for content related images for the specific page. Design elements which are used for generating the 'layout/design' of your website are done in CSS.
 
@Duikboot Yes. So if you already have an img element, and assuming it's the correct tag to use, just use the src= attribute and don't do it in CSS
 
10:42 AM
posted on May 27, 2015 by Jane Bailey

The position had sat open for months now; the department was straining under the load of too many projects and too few developers, but the pool of candidates was rapidly shrinking. So when Cindy found a resume that looked halfway decent, she immediately recommended tossing them a programming test and scheduling an interview. The phone screen is a bit superfluous given fifteen years exper

 
11:06 AM
posted on May 27, 2015 by kbironneau

/* by zsirbufe */

 
11:20 AM
stackoverflow.com/questions/7446067/… (duplicate, cant gold hammer it sigh)
 
@cimmanon Thought we'd never see you again after your shiny hammer
 
hmm what is the opposite of "compact" ?
@TylerH ^
 
could work
thx
 
detailed
morrrning
 
11:23 AM
morning
 
@easwee Elaborate?
Depends on the context
 
I have a component that has 2 layouts one on small one on big mobile screens 4 vs 5 inch - on small screen you swipe 2 slides left and right on big both slides are visible one under the other
I need to name the jsx template
:P
kinda trivial to the rest of code - but we take naming seriously :P
point is that layout of small screens is more compact since it takes less vertical space
 
@MadaraUchiha i didnt see a reason to be here.
 
@cimmanon :(
That's hurtful
 
no, its not you guys. i just havent taken losing my job very well.
 
11:26 AM
@easwee compact < full(width)?
 
@CSᵠ hmm or maybe I should just use "default"
 
or..
 
since I'll be using the expanded template on all other resolutions except on 4inch
 
@cimmanon every shut door opens at least 2 windows for you
maybe windows 7 and windows 8.1 :P
 
looking at the job market is incredibly depressing.
 
11:28 AM
ya...
 
you cant be a frontend person without being willing to write mountains of javascript or use angular/ember/etc., which i refuse to write because its destroying the web
2
 
@cimmanon++
 
i mean, you read shit like this (baldurbjarnason.com/notes/media-websites-vs-facebook) where people are talking about 8 second load times as being "normal"
 
lol
 
i come from the "your homepage shouldnt be heavier than 48kb, including images" days
 
11:31 AM
but that's beyond sad
@cimmanon same, but a bit more is acceptable nowadays
also.. 45 seconds is "normal" if that is what normal means for some enterprise app (no worries there)
 
backend stuff is just as bad. no one cares about quality.
anyway, watching a movie now
 
if your app is loading 8 sec you are obviously doing it wrong
 
but having to burden innocent users all over the internet with your shitty features and hip fw features is not acceptable imo
even 3s is too much for an avg site
 
Perceived load time is more important than actual load time
 
@SomeGuy that
 
11:35 AM
i believe what's over 10s is said it's taking ages to load
 
just because some devs don't know how to code doesn't mean javascript is bad
 
of course
but those are not devs..
 
yeah
 
@cimmanon I call BS
 
another issue to consider is they might not be aware...
 
11:36 AM
it's mostly that people lack knowledge and howto
 
client-side JavaScript doesn't make up even 10%~15% of all code in my system
 
@MadaraUchiha at leas job postings expect the ideal candidate to know everything anyway so...
 
@CSᵠ job postings expect the ideal candidate to know how to learn everything
 
@CSᵠ you stay away from such jobs
 
yes
@MadaraUchiha maybe feed some of those to @cimmanon that sounds better
 

« first day (757 days earlier)      last day (3031 days later) »