« first day (2035 days earlier)      last day (3138 days later) » 

10:00
A thousand lines of them. So function zw calls function bszf and pass in flb...
@BartekBanachewicz yeah, when they go "Surprise! We're suddenly adding this whole thing that is almost the same as that whole thing, but we want to nitpick a few things, and we don't know how different it will eventually become"
@BartekBanachewicz that is true, but if you understand the concept of DRY you won't pack functionThatDoesAThing() and functionThatDoesACompletelyDifferentThing() into one function for .. some reason?
"completely different" is a sliding scale
I have an query to select all ID's which ends with "-1". For this the below code is working fine
var queryString = ':input:focusable[id$="-' + index + '"]';
element.find(queryString);
I
you'd rather wrap that mess of a code i posted before into
10:03
I have a condition like the following ID's ends with like below..

-index
-index-0
-index-1
... so on
So how to handle this in a single query.as i mentioned above. Could any of the folks help on this??
function initiateElement(element) {
    element.onclick = showAnserByElement(element);
}
I support eliminating duplication early. It is easier to unroll and duplicate code than to make sure you caught every copy when you make a change.
@MohanRaj classes
@MohanRaj you handle that by never, ever, doing that. use a class name
2
but if someone has a gun to your head: div[id^="something"] <-- means find all divs that have an id attribute that begins with something
Thanks Ben, Doug .... I dont have class unfortunately...
I will get ID's like ends with -0, -0-1, -0-2 and -1, -1-0, -1-1 and so on...
10:05
@MohanRaj WRONG!!!
Any other way Jan, Ben, doug... Since our appln deals with fully Id's
@doug65536 i like that message, really, for obvious reasons. ugh
@ClemensHimmer and then someone asks you to code in a different behaviour for element 2. You know what a lot of badlets do?
also @MohanRaj that is a issue, not a JS issue
function initiateElement(element) {
    if (element.someProp == 2) {
        doSomething2Specific
    } else {
        element.onclick = showAnserByElement(element);
    }
}
I've seen that so many times
two functions -> generic dry elimination -> "if" abomination
10:09
What should you do instead?
the two functions at the beginning could've been perfectly fine with apt names
hmm do people still use cp instead of rsync/scp?
on the same machine?
on whereever
So you'd rather have ten-fold duplication than an if?
10:11
my interpretation of DRY is, mostly, don't go find a few lines that do something and copy and paste them somewhere else you need them. If you copy a piece of code and change a few things, it is bad
@AwalGarg why would you use scp locally?
If you actually change a few things, it might be better than having a lot of ifs in a small function
@FlorianMargaine yeah, not scp locally. rsync
because that assumption might change, or worse, a bug might be identified in that, then you have the bug duplicated in some unknown number of places that are all changed somewhat
@JanDvorak typically during the evolution of that code those small units will diverge
10:12
in fact rsync for even remote transfers when scp is not required (which is a hell lot of cases)
it can't be answered without seeing the actual code
Let's just agree there is no real way to make good code.
you mean when rsync isn't installed remotely? :)
@JanDvorak Oh that I agree with absolutely
@FlorianMargaine that's the only case I know, but I imagine there could be more (are there?)
10:13
also, have you delivered the expected work and the sudo access?
@FlorianMargaine I am writing a visual basic ui to do the work currently will do the needful asap thank you sir pls
Whenever you code by continually adapting to changing requirements via minimal changes, you'll always end up with a total mess.
anyways, that guy confused me for cyril. cyril doesn't hangout here anymore
Whenever I see someone say "sir" I think about the knights of the round table
10:14
@AwalGarg Suuuuuuuuuuuuuuuure
I think about Indians.
and it is always funny when windows users ask for sudo access
@JanDvorak yeah that too, but in the context of the round table
@JanDvorak I think of my teachers :P
like, imagine an indian programmer in front of Sir Lancelot in full suit of armor
and the former addresses the latter "sir"
10:15
Indians of the helpdesk room
it's hilarious
wait, you pinned that? fucking sly bastards :D
@BartekBanachewicz That is a thing i hate.. i do tend to generalize things as much as it makes sense (to me, at least), simply because you get a giant junk of code if you code like i initially posted. You'll have to decide for a pattern in the case you mentioned, either you tweak the generalized function, or you call another function.
I personally would decide between those two depending on how often this exact case could occur and how much different the function in the case is. Anyway, damn someone who asks you to do such things, how do you they dare to make me change my patterns :[
@AwalGarg lol wtf is that
10:16
@AwalGarg it's like windows has created a sort of waiver that you sign for any and all operations of a certain level, so that Microsoft can always say that they told you so
@ClemensHimmer well, better abstractions also help
functions are nice and useful, but it's sometimes nice to have more powerful abstractions
like functors or monads
"Did you say yes to proceed? Ah, well I am sorry, but you should have clicked no"
@AwalGarg was this guy for real?
or did he just mistake you with someone
@BartekBanachewicz my internet was down for a day and someone from my workplace confused me for some other guy. came here blasting over all the things.
Abstractions => tons of ifs. No abstractions = tons of everything.
@JanDvorak meh, with a factory, you only strictly need an if for each different case
@SterlingArcher One thing those things are bad for is actually showing time though :/
it ended up being funny everywhere anyways. told boss about it and he replied this:
@Neil fuck OOP patterns
10:20
greg is a douchebag. you or your friend should have trolled him instead
@BartekBanachewicz well fuck your thousand and one ifs
I like using objects for lookup tables for dispatch in js. you just read a property name and invoke that function, if present
@Neil TIL those are the only two abstractions that exist :)
Programming patterns = duplication.
JS needs pattern matching. Why can't we all just agree on that.
10:21
@AwalGarg inb4 greg
@doug65536 inb4 some oopjavafag calling that AbstractFactoryAbstractStrategy pattern
@littlepootis nobody cares
@JanDvorak yeah
People seem to not get that
The problem with OOP is that you can overdo the abstraction
no, the problem is idiotic unnecessary state
you can overdo any abstraction, that's like the premise of it
10:22
@BartekBanachewicz you can manage OOP with minimal state
the problem with OOP is that it is not FP :P
A composable abstraction will allow you to abstract it over itself, which means you can do it ad nausea
Instead of using the singleton pattern, let's make a function that wraps an object in a class that gives you that object.
@Neil minimal state != no state
@BartekBanachewicz brb, reading about those :P
10:23
Until you've used State monad, I don't believe you can understand how huge an impact adding state to things actually has
Excellent. A train is perching outside my window.
Partially because the thing isn't exactly the most convenient thing to use
@BartekBanachewicz i am not the world#1 programmer, it just might be that i do not understand enough of those patterns :)
Hint: no one is
I know some of these words
10:30
I am
why do java devs go crazy with patterns? do they overemphasize it in java courses or something?
@BartekBanachewicz well, if you could rank, someone would be :D
@Abhishrek is w3schools certified world#1 php programmer
3
if
@doug65536 yes, + the language doesn't really have any good abstraction mechanisms
no generic containers, no ADTs, no first-class functions, no lambdas until recently
@AwalGarg where is that coming from?
10:32
aaj tak
so expressing any non-trivial generalisation was such a pain they had to make a way to make that easier to deal with
@AwalGarg lo
Java has had generics for quite a while
!!urban lo
@AwalGarg lo Slang for Hello.
10:34
@Abhishrek hi
!!s/(.)(.)(.)\?/$3$2$1sy/
@AwalGarg $3$2psy? (source)
pussy?
10:36
@AwalGarg pussy (source)
FTFY is real in this room
what? no !!urban FTFY? :D
10:39
wiki.gandi.net/en/ssl/intermediate how are they still in business with this kind of crap
@JanDvorak bad ones
!!urban doug
@JanDvorak Doug A chain smoking Scottish cunt from Canberra
good gracias
10:41
lol
if someone could really look at this question ?
Which question?
0
Q: How to reflect URL back to query builder

MathematicsI am using this library for generating Query Builder, https://odatasamples.codeplex.com/SourceControl/latest#Tools/ODataQueryBuilder/Scripts/odata-query-builder.js Above helps me to generate adhoc reports, but what I want is to save the URL and then using this URL recreate OData Query Builder ...

Looking for something. Google doesn't help. Halp
10:58
@littlepootis don't ask to ask, just ask
@Abhishrek not like asking always help..
@Abhishrek yo. mathematics beat you. maths 1 | shrek 0
@AwalGarg In what? Making an un-understandable sentence?
yes :s
maths is always un-understandable
Your jokes are always terrible
11:02
true. you are my joke too
greetings, programs!
@AwalGarg now, now. don't shame your ancestory :3
it was the female counterpart which was the issue
Stop talking like that about your mother!
s/mother/wife/ it is time I teach you how this works, son.
11:06
@littlepootis try this: youtube.com/watch?v=ifUNsor7uIQ
@Abhishrek EDITING IS CHEATING
@AwalGarg Leave it you are too dumb to understand
come again
@AwalGarg It's ancestry anyways, not ancestory.
I'm on a 3 hour flight today, recommend me a talk to watch
11:16
@JanDvorak any programming/logic/maths/computing relevant places around? I will be leaving from mala strana. 30 mins of travelling will be acceptable
National Technical Museum might be an interesting place
@copy how Internet Explorer started as a disaster and evolved into a disaster too
@Mathematics Link?
Ever been there @JanDvorak?
Is there anything more than the usual stuff that you see in every tech museum?
And "beer holes" nearby :P
I'm OK with just coming by and saying hi btw
Not even sure what could we chat about
Ideally you'd tell me interesting stories that I could learn from and I would talk back the least amount possible
11:35
guys
i need to define a page with multiple radio buttons. If i will set the same name to all of them then i cant understand which is selected on server side. any idea ?
Use other data
The lazy way: give each radio an id
Hiiiiiiiiiiiiiii
i want to outline a selected row in my jqgrid
is this possible ?
Everything is possible. I assume you mean "without accruing immense amounts of technical debt"?
Jan read above
11:41
Not sure what you mean by "usual stuff that you see in every tech museum", but you can actually try out some of the stuff.
@JanDvorak check this please ok-soft-gmbh.com/jqGrid/…
Every museum has pics of old computers and a child explanation for binary... Then some old tech pieces, but usually not much else
This one shows actual stuff.
@JanDvorak when u select a row it turns yellow, i don't want that i want it outlined red instead
What's the price like?
11:43
There's a several floor building with life-size models of actual old planes and train engines
Actually, I should just Google it
IGTFY
But you should allocate more time for a visit than just an hour or two
Their website is not responsive, they don't deserve us
How about we just meet halfway through wherever we are?
@towc $10
Waiting for @littlepootis' joke to develop
11:46
I'll be at Nuselské Schody at 5 PM. What's the end of your current schedule?
8pm at mala strana
20:00
I can pick you up there. Plenty of time for me.
:D
I'll give you the location of the restaurant I will be leaving as soon as I get it. They said it's within 100m of the us embassy, so that's a start
Thanks
Fuck off @littlepootis
:D
@JanDvorak what do you actually look like? Do you need an image of my face? I'm pretty recognizable, almostnever wear not techy shirts
G2g again
11:54
@towc I'll have a red shirt with a cyan tie I brought specifically for you.
Easy to recognize. He's got big shoes, red nose, tiny orange hat with flower. ..
@littlepootis YT+ autoplay disable FTW. Thanks for a YT ID to block.
@SterlingArcher VapeBender
ridiculous
12:14
@Neoares where do you live?
Ah, Barcelona
@BadgerCat Siria
x)
close enough
We're flying to Madrid in 3 hours :/
:o
come to Barcelona, it's better
I know
Oh well
Holiiidays?
12:16
Yeah... kind of
We didn't choose to go there, we got it for free and wouldn't say no :P
how does that happen? Why does this not happen to me???
copy's mom didn't want to go alone
:P
is it somehow possible to detect which file called a module within that module using requirejs?
Hey folks, random question. Its not JS, but CSS, i know, no one is in there and its just something generic. Can you declare multiple things for the flexbox property justify-content? IE. justify-content: center space-around; ?
!!metal or edm or crazy idea... BOTH!
12:19
@rlemon metal
@KirstyHarris and how would that work?
firefox doesn't even know the values for justify-content here.. lol
in respect of display centred but space around it, looking at the tutorials on it so to speak i dont think it doesnt, but just wondered if anyone knew ;)
@KirstyHarris there's probably a way of obtaining what you want, but you can't accomplish this with multiple values of justify-content
loll i know @jandy lol, i know it lacks support for IE8 as well, im purely just playing with it tbf....... @neil thanks for the clarification. IT wasnt OVERLY clear, but youve confirmed my suspicions
12:26
from MDN docs, it doesn't look like you can't combine values
its ok, a 5px margin around my flex-items so it seemed to give me that little bit of scope to create space between. Oh thats ok, i will have to read up on that I was reading CSS tricks
@KirstyHarris BTW, please read theoatmeal.com/comics/apostrophe
@KirstyHarris just make it so that the margins don't leave much space to maneuver
0
Q: Iterating promise objects using generators

overexchangeFor the below code, var myGen = function*(){ one = yield $.get('profile.json'); two = yield $.get('friend.json'); three = yield $.get('tweets.json'); console.log(one, two, three); console.log('sham'); }; function smartCode(generator) { var gen = generator(); function handleN...

12:32
anyone bored enought to tell me what exactly this is good for?
I don't really see the point in combining yielding/generators with promises
takes away potential imo
@ClemensHimmer bragging
@littlepootis woah! i wanna brag too :o
How do I get added to the list?
12:36
asking me
requests to join the bragging team and hopes nobody hits him for that
@Neoares haha
requests to join the bragging team and hopes nobody hits him for that, or for chat message plagiarism
LITTLE POOTIS YOU ARE STILL HERE???
hits @Jan for chat message plagiarism
dodges Clemens
@littlepootis i can not see that, my little pootis
does a 404 trick
@ClemensHimmer ^
12:39
I know, like, 2 out of that list
wow, much requests
Many*
Is there a "onoverflow" trigger or something?
for making chat bars in a web game?
same here, and both are aproved
@Cerbrus doge
12:39
drools over approve button
!!tell Cerbrus google doge meme
@ClemensHimmer bashes the approve button
...
Anything but that crap
0
Q: Create a generic method for dynamic node from JSON using jquery?

Ram SinghI have created a functionality, that i have to do for multiple nodes, except node everything is same: here is my code: switch (a_Size) { case "XS": $.each(data.gallery.group_by_color, function (i, item) { $.each(data.product_variants.X...

please help me
not crap, just old
12:40
!!doge requests,teams,cerbrus is no fun,party pooper
@littlepootis yassss i am the unicorn :D
      wow
such requests
               so teams
                          very cerbrus is no fun
many party pooper
@CapricaSix don't ignore me pls
google is broken anyways
12:41
@ClemensHimmer Wow, there's another unicorn and a unicorn eater too.
!!google something
^ see
busted
@rlemon your bot's command syntax.. it's wierd :o
we know, 6-8 weeks for a turnaround
Unfortunately Array.prototype.find() is an ES6 feature not available in node 0.12 which results in an TypeError.
...
for fucks sake
12:42
only doge command works
new Cap feature
is anyone using webpack for a large-scale project right now? What are the build times like?
Nope, she's only partially broken
@Neoares Welcome to the JavaScript chat! Please review the room 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.
ok, Neoares ignored by bot new feature
Caprica is literally worse than useless ... oh, wait, greetings do work.
12:43
sorry
that was a friend
Yearight
has anyone used this before github.com/AshAlom/GaugeMeter?
12:44
"A friend did it" Is the most common excuse online ;-)
@littlepootis wait, urban still works? Well then...
And way, tell your friend he's an idiot
:D
Im trying to recreate one of the gauge meters but its just not working how it says it should
@Cerbrus Why else would I delete it right away?
12:45
@Cerbrus especially when you're behind on deadlines amirite
Right
I promise his name is Aiden
@thepiercingarrow Tell him "You" is still spelled with 3 letters.
Hi guys, I need help with signalmaster in relation to simpleWebRTC. Can anyone help me on that?
In the configuration it has two lines like below:

"key": "config/sslcerts/key.pem",
"cert": "config/sslcerts/cert.pem",
I contacted my hosting provider, and they said that the SSL files they use don't have .pem extensions, but instead use .key and .cert. Will they work fine for signalmaster?
@thepiercingarrow: Tie up your "friend", would you?
12:47
My is still a thing?
Consider that a warning, by the way, @thepiercingarrow.
if he continues gibberish I'm kicking him before his "friend" gets him flagged
How tough is React to learn
@rlemon My thought exactly.
and is it like Angular?
12:48
no
@GandalftheWhite if you're quick to react, then you know how tough it is
I am pretty late
sorry
um can someone delete those posts?
Yes. You can.
expired
i just got back
12:50
@think123 Why don't you just try it?
posts from "i love dragon..." to "friend whats up"..
plz can a mod delete it?
can't delete it, but I can move it
@OliverSalzburg SSL costs money... but yeah that's what I'm doing now smh
@thepiercingarrow : i.imgur.com/Ufbr5ej.webm
@rlemon thanks :) :)
12:51
@think123 how would it cost money ? (in general)
So, @thepiercingarrow, if you're not at your PC, lock it.
@KarelG I think the cheapest one is like I think 80 dollars a year...? But I just wanted to make sure it works, that's all.
[Windows key] + [L]
@Cerbrus I honestly don't know how
@think123 PEM is just a format. Certificates/keys can be converted from one certificate to the other. It's likely that the files are in PEM format though
12:51
@Cerbrus I'm using arch linux and I haven't got an xfce locker yet
641
Q: What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

Noah GoodrichI am responsible for maintaining two Debian servers. Every time I have to do anything with security certificates, I Google for tutorials and beat away until it finally works. However, in my searches I often come across different file formats (.key, .csr, .pem) but I've never been able to find a ...

@Cerbrus The onl way is to reboot - I can just log out of SO instead
@thepiercingarrow Step 1: install an OS.
You can use OpenSSL if you want to have a free SSL. I use that for my local server at home
@OliverSalzburg Oh - so if the files are .key and .cert, I can convert those to .pem anyways?
12:52
@Cerbrus its fine I can just log out of SO. and Arch Linux is an OS
@OliverSalzburg ahh that makes a lot more sense :) thank you
@think123 They probably are already, it's the most common format
The contents will be Base64 encoded and start with -----BEGIN CERTIFICATE-----
20
Q: Keyboard shortcut for Lockscreen not working

CppLearnerI tried the combination CTRL+ALT+L or L but it is not working. But if I select the menu item LockScreen from setting drop down it works. Any thoughts on how to fix keyboard shortcut? Thanks.

Plz... has no one every made a chat bar with js ever ?
@OliverSalzburg Yeah my hosting company just responded in the chat, they said that it's .key and .cert, but that you can convert it anyways... thanks for that, now I just have to wait for the SSL to start working I guess.
12:53
@thepiercingarrow "Install an OS" was a joke.
@Cerbrus okay :)
@Cerbrus nah..
Nah?
It probably doesn't work in XFCE
Unless you bind it
There's no reason you can't use async/await in endpoints, right? It seems to return immediately without awaiting
12:54
@littlepootis So bind it :P
How many characters is the typical chat bar limit in games?
16,777,216 characters
It's 140 in Twitter
I really do believe twitter should increase that limit.
it's really annoying how including tags such as @realDonaldTrump also takes up part of the character limit.
people still use phones incapable of mms
sms character limit + overhead is still a valid concern in some countries / demographics
12:58
oh that comment is a win
Probably not the first time Deadpool has been inside of Spiderman. sauce
@thepiercingarrow developer's preference because the choice is based on throughput and database

« first day (2035 days earlier)      last day (3138 days later) »