« first day (1866 days earlier)      last day (3083 days later) » 

crl
11:01 AM
please review my DnD (what's bad, what could be improved for UX)
 
:/
function $$(s)
$(id) is something what i do understand, since it's a frequently used shorthand for dgebi
but that ;_;
 
@KarelG it's a console function
 
@crl why do I always think of Dungeons and Dragons first when I read DnD
 
it would be familiar if you had used prototype.js :D
 
crl
Dragons and Dropeons
 
11:10 AM
@crl what about the pizza
 
@FlorianMargaine i clearly didn't knew. So TIL
 
@KarelG one of the lucky 10 000 :)
also
it's "didn't know"
 
crl
!!> var o={a:[{}]}; for (var e of o.a) e.i=1; JSON.stringify(o)
 
@crl "{\"a\":[{\"i\":1}]}"
 
@FlorianMargaine Ah oui. Je ne le sais pas
 
11:19 AM
I am trying to save the previous url in session in nodejs ... using a middleware , so should I have an array of length two and save the urls .. then get the previous url by req.shift ? or do I do req.header('Referer') ?
 
crl
Je ne le susse pas
 
@crl que sucez-vous alors?
 
crl
rien à ce que je sache
 
I18n ^
 
mdr
 
crl
11:22 AM
!!> Array.isArray([])
 
@crl "true"
 
@shortCircuit Referer can be faked
How much do you care about that?
 
from 0 to 10, how much do you care?
10 = a lot, 0 = zero fucks given
 
@Neoares Could be simplified to "How many fucks do you give? Between 0 and 1"
 
@MadaraUchiha dafuq man!! your name is blue!!
are you k? D:
 
11:28 AM
That it is
 
congratulations!!! :)
 
Thanks :D
 
I thought you were the 4th
 
@Neoares 3rd
207
Q: November 2015 Stack Overflow Community Moderator Election RESULTS

Shog9Stack Overflow's November 2015 moderator election has come to a close, the robots have transferred many single votes to tally up the results, and the 3 new moderators are: They'll be joining the existing crew shortly — please thank them for volunteering, and share your assistance and advice...

 
where's the number of votes? :P
 
omg that was so close
 
@MadaraUchiha oh my you are blue !
you ascended !
 
@Neoares Yeah, like 70 votes
3rd place is always very close.
 
I'm glad I voted you, then
 
Indeed
 
11:35 AM
@MadaraUchiha Sorry grand ninja I was sleeping while the voting was on.
xD
 
@Abhishrek You slept for a week?
 
how do the "rounds" work?
 
i voted in the primaries (or i mean the one where bjb was issue)
 
there are like 12 rounds
 
then I just forgot about them, due to work x_x
I hope you won't cv my questions in your wrath xD
 
11:36 AM
how do you transfer points after each round?
 
182
Q: How are moderator election votes counted, in plain English?

PopsThe election pages' sidebars state that Stack Exchange elections use the Meek STV vote-counting method: After m days, the final voting results will be freely downloadable from this page forever, and we will calculate the n winners using OpenSTV with the Meek STV method. How does that work? ...

 
isn't it better to choose the 3 most-voted? :o
I mean the result seems to be the same
 
FPTP isn't known to be the most fair voting system.
 
oh wait, each one casts 3 votes, I missed that
 
@Neoares The advantage of this method is that you don't throw your vote away if you just vote for the most popular or least popular candidates
 
crl
11:39 AM
!!> var o={}; for (var i of o.a) console.log(i);
 
@crl "TypeError: o.a is undefined"
 
crl
@CapricaSix gah.. just don't loop then
 
it checks the reference ... ofc an error occurs
 
ok, so if a canditdate is eliminated, and people who voted that man still has a "next-vote", it is transferred
 
@KendallFrey open a meta with a better alternative ?
 
11:41 AM
and what about if someone overpass the threshold
all votes are transferred, or only the overflow?
 
If I had the solution to the world's politics, would I be puttering my time away here?
 
> If Candidate A has received 10 votes when the threshold is 6, then only 6/10 of each vote is needed to elect Candidate A. Therefore the remaining fraction (4/10) of each of those votes is transferred to each votes' next choice down the list of candidates on that ballot.
 
@MadaraUchiha I think it won't be good to use referer then. what is the general approach for the problem?
 
which 4 votes do you transfer
 
@Neoares all 10 of them
 
11:42 AM
multiplied by 4/10 ?
 
oh it makes sense
it's actually a great system :)
 
Anyone using PHPStorm in here?
 
@KendallFrey that's a good answer. Should i star it ?
 
11:45 AM
Or any JetBrains IDE
 
you can ask your question
been a while that i have touched that PHPStorm
 
@rlemon you can swap "disney princesses" for any random string
or substantive
 
@KarelG is there a good way to see every changed file after a git merge inside the IDE? With the possibility to do a sync to the server of all those right after the merge?
my workflow right now is far from ideal
 
@shortCircuit Using a 2 element array and shifting sounds like a good approach to me.
 
ok.. thanks
 
11:47 AM
@Neoares no shit, sherlock
the Disney princesses bit makes it funny though
 
@GNi33 elementary, my dear Watson
 
crl
mon cher lock holmes
 
• Maintenance tools are currently inadequate for maintaining server libraries.
^ Ouch
 
@GNi33 I can only reply to the first question: PHPStorm has Differences viewer. Try to use that.
 
11:52 AM
@KarelG yep, I can do a compare before merging. I'd need the same after the merge for the current repository though
like a list of merged files
 
i know a git command for that: git log -m
for a list of file names, i think git log -m --name-only (edit: looked up)
 
yeah, I'm using git diff with --name-status
but I have to manually walk through the files in PHPStorm afterwards to sync them to the server
which I'm getting tired of
 
yes true
 
crl
12:06 PM
!!> yes==true
 
@crl "false"
 
crl
I never know what to expect with ==
 
!!> "yes"==true
 
@GNi33 "false"
 
crl
!!> var i=2, j=1; test${i+j}==='test3'
 
12:11 PM
@crl "true"
@crl "true"
 
Q: how to stringify JSON but have the corresponding keys non-stringified?
 
may i ask question related to fabric js?
 
@yogeshwari Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@deostroll you have to give an example of that
@crl "yes true" is a saying here. i only translated that to english :p
 
crl
!!> var o={0:0}; for (var k in o) console.log(typeof k)
 
12:15 PM
@crl "SyntaxError: missing ; before statement"
@crl "undefined" Logged: string
 
crl
@deostroll you can't
 
in the output you find the property type is stringified
 
crl
read the json spec
 
ohkk..i am working with fabric js..to draw a room structure for that i have dropped objects on canvas and after that on modifying any one object i want to get name or id of that object..pls help how can i get that
stackoverflow.com/questions/33916195/… i have post this question too.
 
12:20 PM
i'm curious how you ended on that. It's not what json spec specifies
@deostroll : i had to read the documentation. stringify() - replacer has an opposite: parse() - reviver ... Maybe you can try it
 
@Trasiva You never logged in>:(
 
@Cereal Trasiva is afk: Heading home, tired of dealing with the stupid.
 
12:36 PM
Heh, I just joined the 30k club :-)
 
@Cerbrus Congrats
 
@Cerbrus grats!
 
@Cerbrus 1 point above :P * goes to downvote a post *
 
12:58 PM
sigh, buying groceries is as much painful as writing CSS
 
hi @AwalGarg
 

« first day (1866 days earlier)      last day (3083 days later) »