« first day (895 days earlier)      last day (4038 days later) » 

9:00 PM
Design barriers, yes.
 
Hey all, good morning.
 
10pm here
hello anyways
 
Do you have any awesome recommendation for XSS related JS articles? (How to prevent it)
@JanDvorak Yo
 
@Jan-StefanJanetzky guess where does my game bugs now
 
@TemporaryNickName server-side validation FTW
 
9:05 PM
going up for the ball is damn too fast and when it comes down its damn too slow -_-
why u webkit ?
 
@TemporaryNickName tag, attribute and value whitelisting
 
and they have a whole bunch of XSS attacks listed XD
Can you prevent all of them from serverside?
 
Whitelist everything
 
m going to finish my C++ version and grab some sleep
cya all
 
@TemporaryNickName remove everything not on the whitelist
 
9:07 PM
1) Don't use JSONP
2) Sanitize inputs/outputs
 
damnit...I had such a pretty solution...so close...why is there no array.negativeFilter
Wanted to filter an array of userids to exclude the ones already present. array.negativeFilter( bot.users.hasownProperty.bind(bot.users) );
 
make a not monad
function not(f){return function(){return !f.apply(this,arguments)}}
 
eh, use case was partially flawed anyway. Of course, I need a better condition than it just exists...
Programming is hard
 
array.filter(not(bot.users.hasOwnProperty.bind(bot.users)));
let's go shopping
 
@BenjaminGruenbaum So far I have "Welcome to the JavaScript chat! Please review the rules" with the link. Sufficient?
There needs to be something about asking to ask.
 
9:13 PM
@Darkyen dunno. tell me
 
"Please read the [rules for this chat room]"
 
I bet $5 I made a syntax error
 
Is there a jQuery room?
 
@Zirak In what code?
 
Bot. Just made an update. It'll break.
 
9:16 PM
@bryanlewis It's in the 7th layer of hell
 
TypeError: undefined is not a function
Fuck
I have no idea where it comes from
 
@Zirak Welcome is good/enough
 
@Zirak error message not helpful?
 
I thought that was [object Object] has no method foo?
 
@Shmiddty Without a line number, no
 
9:17 PM
Line number not useful?
 
No line number. I executed in console
 
oh
 
@Zirak put a debugger; statement and run step by step?
 
break on exceptions
 
9:18 PM
No, I'll just gist it and run it from there
 
!!/mustache PimpTrizkit
 
@Shmiddty Could not process input. Error: Cannot call method 'check' of undefined
 
o.O
 
in da hizouse
 
9:19 PM
@Zirak Maybe switch over to VisualStudio IDE, I saw last time it has a really cool feature to check type error from IDE itself. like @var1 has to be integer
 
Next person to suggest an IDEish solution will be decapitated
 
@TemporaryNickName I think he's running linux
 
Notepad++ FTW
 
I like VS
 
9:21 PM
@Zirak Have you tried jQuery? It is great and does all things.
 
@Zirak just tell chrome to break on exceptions from dev tools and run
 
@Shmiddty can anyone here help me out?
 
ah, I see the error source. It's in hoisting.
 
its a jquery issue
 
@bryanlewis You should read the room rules
 
9:21 PM
@bryanlewis Probably not, jQuery is really hard
 
@bryanlewis don't ask to ask
 
@Shmiddty you are so dumb, that when you will eventually die , you will leave a dumb corpse
 
But we're probably not smart enough to help you with jQuery questions
@BenjaminGruenbaum Dude, get out of my head.
 
ninjad.
jQuery is the pinnacle of programming
 
@JanDvorak oh my okay.
i believe this issue is impossible...
 
9:23 PM
@bryanlewis everything is possible if you believe in yourself. You must unlock the jQuery within
5
 
jQuery is sweet.. but usually i end up just reinventing the wheel for the one thing i would have needed jQuery for so I dont have to import a whole library for one thing
 
@TemporaryNickName TS is actually more compact than JS if you choose that.
 
@BenjaminGruenbaum haha well i've been at it for 5 days straight
I'm not the best at it.
 
@bryanlewis To defeat the bug you first must be the bug. Don't fear anything but fear itself.
 
just ask the damn question already
 
9:24 PM
lo
l
 
okay okay... pastie.org/7166152 -> this code is working on the id. but I need it to be dynamic because I have other id's that have galleries in them.
 
!!/choose glee no-glee
 
@copy Command chose does not exist. Did you mean: choose
 
yay :)
 
!!/undo
 
9:25 PM
I have a link to show if that helps
 
I honest never had type error issues in Javascript. Most annoying thing I had so far was scope issues
 
lol
@TemporaryNickName That just means you haven't written enough JS :P
 
The bot just decided my new haircut.
 
@bryanlewis why are you checking e.target instead of attaching the event to the elements themselves to begin with?
 
@tereško Yo mama's so fat that your father no longer finds her attractive and they are getting a divorce.
 
9:26 PM
typeError usually means nullPointerException
 
@bryanlewis what type of event is it?
 
click.
$('.superbox').on('click', '.superbox-list', function(e)
like I said I'm really confused at the moment.
 
@bryanlewis Sound's like a job for class names. Next question!
 
class names.
 
@bryanlewis ok, what's wrong with adding another class to the ones you want the first action on, and another for the one you need the second behavior for and selecting based on that?
Also, I really don't understand your question :P
 
9:27 PM
@Shmiddty they got divorced 23 years ago
 
I'm going to link to the issue real quick.
bvh.delineamultimedia.com/?page_id=2 -> if you click the first image that is the id that i'm calling.
but the second image has a gallery in it as well and its not showing because I'm not calling the id in the js
 
darkyen is gone now?
 
@bryanlewis Why is the gallery only on the small portion of the width?
 
@BenjaminGruenbaum Can you please leave the room and join back? I need to test stuff
 
9:29 PM
that is css I can fix that once its showing properly.
 
what the f*? a cutie in SO chat? hey badger, you need a job? i got a corner available
hahah
 
I know css much better than js
 
@copy I'll hold you back, bro
 
@PimpTrizkit Your kind is not welcome here
 
9:31 PM
Back
 
ya, i get that alot
 
ah crap, I think I messed the test up...
Sorry @BenjaminGruenbaum, can you do that again? Leave, wait ~10 seconds, join?
 
welcome back
 
...something's off
 
9:33 PM
@bryanlewis add a class to ones who are galleries, and attach events based on that
 
I need a sock-puppet
 
SOBot won't do as a sock?
 
@Zirak Most dudes are fine with just the sock.
 
@BenjaminGruenbaum is there a way to grab an example? I'll sure as heck try!
 
9:34 PM
ahaha, watch it Shmiddty... copy is gonna tell you that your not welcome
 
I'm not sure how the chat will handle multiple browsers & leaving
So sorry, the bot may be offline for a bit
 
@PimpTrizkit I'd tell you you were not welcome if you were hitting on my girlfriend too :P
 
@PimpTrizkit You don't know this because you're new, but Copy & Badger are a couple.
 
lol, i wasnt asking her out or anything!
 
@PimpTrizkit No, but you were being rude :P
 
9:35 PM
@PimpTrizkit Nah, you were just disrespecting her
 
Speaking of rude, wonder where @Porizm is :P
 
@BenjaminGruenbaum Tag team!
lol
 
actually i was complimenting her.. then making a joke
 
@PimpTrizkit Thanks Chad, but I'm taken.
 
9:36 PM
!!/urban chad
 
@Jan-StefanJanetzky Nice ping poong man
 
oh, the bot is dead
 
no worries, i wasnt asking you out anyhow
 
@PimpTrizkit Are you really a pimp?
 
0
Q: Javascript lightweight Cookiemanager. How can we improve it?

ngrI've been working on a lightweight cookiemanager and version 1 has been completed and works perfectly as intended. I would love to get a review to see where we can improve it. A small question i also have is where i should throw logical errors, for now i only log. Many thanks! Here's the code: ...

 
9:37 PM
no i just play one at DragonCon
 
@BenjaminGruenbaum like this? $("li").has(".royalSlider").addClass("addclass-galleries");
 
@bryanlewis You are attaching the same event to gallery and non-gallery items, attach different events
 
!!/urban chad
 
@PimpTrizkit, that's the most hilarious thing i have ever read.
 
lol, which part?
 
9:39 PM
@Shmiddty Oh it's just his name.
 
Wow, your website is terrible. And coming from a person with a terrible website, I really mean it.
 
lol, pimptrizkit.com is horrible ^_^
@phenomnomnominal try opening the chat
 
ill take that as a compliment!
haha
 
It's really not
 
it was open Atrium...
then i got tired of having to debug OpenAtrium... so i just threw something together quickly so to host my game tool
i could care less how "good" it is...lol
 
9:42 PM
@PimpTrizkit I just donated under 2$ because I love paypal
 
haha, nice!
 
So you don't care about your game tool then?
 
@PimpTrizkit wow, that's an unique website man
 
my game tool is fine, most just link to it directly anyhow... seeing that i provide a direct link to the tool (so it is in its own window) ... the main site is really not needed
 
9:44 PM
unique -> special -> strange
 
@BenjaminGruenbaum any chance I could score an example or a link to some docs? sorry to bug i'm learning
 
@bryanlewis Instead of adding one handler, add two handlers, add a different class to places that open a gallery and attach the listener based on that selection
 
Jo people
 
Can I just reject the following JS synonym suggestions: stackoverflow.com/tags/synonyms?tab=newest&filter=suggested?
 
9:47 PM
@PeeHaa JS library to JS sure, I think JS-Library is a bad tag name to begin with and should be deleted
@PeeHaa JavaScript Framework to JavaScript as well, also JS framework is a bad tag-name
 
@BenjaminGruenbaum agreed
 
If someone is using a library or a framework he/she should tag with that
 
ditto
 
[javascript-library] -> [jquery]
 
!!s/library/bug/
 
9:49 PM
@david not sure if troll or just drunk ;)
 
...just to be sure, I'm not hallucinating, these are the same, right:
userregister
userregister
Then why won't the event fuckin fire!?
 
Who's up for some old school Hip Hop?
 
oh i just noticed you guys actually tried the stupid mibbit chat
ya, that thing is junk.. was just messing around one day... tryin to find a free javascript irc embedable chat
but i really dont have the control of the chat that i wanted
 
So...close...just one more corner to round...
 
@rlemon That's fucking right, she is smoking hot.
 
9:57 PM
Welcome to the JavaScript chat! Please review the {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.
NOOOOOOO
SO CLOSE
 

« first day (895 days earlier)      last day (4038 days later) »