« first day (899 days earlier)      last day (4274 days later) » 

@Nexxpresso HOLY COW! You're iterating over all images on the page for every DOM tree modification?
We0
We0
@dystroy any idea?
@phenomnomnominal heh, you're mean.
We0
We0
or anyone
user2157210
@OctavianDamiean yeah so it is fast!
11:01
$.post("/ws-auth", fkey({roomid: window.unknown_users_roomId }), function (data) {
  var socket = new WebSocket(data.url + "?l=99999999999");
  socket.addEventListener('message', function () {
    debugger;
    var dings = document.getElementsByTagName("img");
    for (var i = 0; i < dings.length; i++) {
      dings[i].src = "http://www.pugs.nl/images/pug0607.jpg"
    }
  });
});
Maybe?
@We0 no idea because I don't want to dive into old bugged versions. Update jQuery to a newer version.
Although theres much better ways to get the right image
We0
We0
$('.test').click(function(){
alert("HERE");
});
would that bind on the newly added element without having to bind it again
$(document).on('click', '.test', function() { alert('HERE!'); });
user2157210
hmm
We0
We0
11:08
HTML:
<div id="dummy">
<a class="test" href="#">TEST CLICK</a>
</div>
<div id="new_dummy">
</div>

JS:
$(document).ready(function() {
$(document).on('click', '.test', function() {
alert('HERE!');
});
$('#new_dummy').html('<a class="test" href="#">NEW TEST CLICK</a>');
}
even though the new click has the class test it doesnt trigger cause it was inserted after the con click binding
What version of jQuery are you using?
We0
We0
1.7.1
try document.body instead of document
@phenomnomnominal How does that solve anything?
We0
We0
$(document.body).on('click', '.test', function() {
alert('HERE!');
});
like that?
11:11
I had an issue before where it wouldn't work with document, but would with document.body
Yep just try it
Hmm
WebSockets are silly
What he has to do is to check if the current message is of type image and then he can modify it. There's no reason to iterate over all image elements every time. :)
We0
We0
@phenomnomnominal THANKS A LOT IT WORKS
soz for caps
user2157210
@OctavianDamiean but thats too slow
It's so much faster than iterating over all of them...
user2157210
but but browser doesnt lagg for 5 seconds then
user2157210
11:13
sounds boring
Just get the message id, find the message element by the id, and check if it contains an image
user2157210
it always contains an image
user2157210
because the user image
Not the message element
user2157210
hmm
user2157210
11:15
i got a better idea
$('#' + messageID).children('img')
user2157210
i make an overlay and just get some bigass pug picture and lay it all over the screen
That is so much worse.
It's very inelegant.
user2157210
but its a pug
You have the power to write a userscript that overwrites every single image in a chat with another picture.
Can you not see the limitless uses for that?
11:16
document.documentElement.innerHTML = '<img src="http://www.pugs.nl/images/pug0607.jpg" />'
user2157210
@phenomnomnominal the uses
user2157210
no
TIL about documentElement
document.write('<img src="http://www.pugs.nl/images/pug0607.jpg" />')
document.write forces a reload?
Mhmm, I think I'll setup an internal XMPP server for the office so I can bug my boss. :D
Send him images of cats and pugs.
"I want the data, but I don't want the tedious task of reading it. Does jquery have a psychic plugin?"
He is a disgrace to his last name
Ouch ...
in the Browser. — Kaj Dijkstra 25 secs ago
Object.getPrototypeOf(document.body) //Object doesn't support property or method 'getPrototypeOf
user2157210
11:24
Do you never parse 250mb byte arrays?
document.body.__proto__ //undefined
I parse 250mb byte arrays for breakfast.
GoT time
11:28
!!Is it GoT time?
@OctavianDamiean Absolutely not
There you go.
user2157210
3 days to go
user2157210
?!?!?!?
user2157210
11:29
Aoe 2 HD?
@Zirak Oh, I know, IE9 doesn't do that properly, it seems fixedi n IE10 though
SO PUMPED FOR AOE
!!Is it GoT time now and is Octavian silly?
AoE as in Age of Empire?
@phenomnomnominal Yes!
user2157210
@OctavianDamiean Yes as in fuck yeah
11:30
Ewww.
I don't like that game.
@OctavianDamiean, whatever.
what's GoT? Game of Thrones?
user2157210
@OctavianDamiean Austrians ..
@Nexxpresso those bastards
user2157210
Just because you sit on an Island with kangaroos
11:32
well, phenomnomnominal is sitting on an island with sheep... what's worse?
user2157210
@GNi33 OctavianDamiean
Australia has more sheep than New Zealand.
@phenomnomnominal i'm just throwing around with prejudice again
Typical
Sheep are boring though
user2157210
Islands must be boring in general
11:36
Are you kidding?
@phenomnomnominal But they won't try to kick you in the face.
Also you don't have dropbears.
@OctavianDamiean, sheep kick a bit lower unfortunately
user2157210
@phenomnomnominal no why
user2157210
I mean you look left water
11:37
Mountains, and beaches
user2157210
you look right water
user2157210
and then there comes a little 30 meter wave and you start crying
user2157210
thats island people
Pretty sure a continent is just a big island.
user2157210
no you are wrong we are superior to islands
11:39
Well, when the rest of you are having your nuclear war, I'll be chilling down here, so, meh.
seriously, it's really hard to pick on NZ
user2157210
still with water
that country is just full of awesome
user2157210
nah
@Nexxpresso, where are you from?
user2157210
11:40
Germany
Ever been outside of Europe?
user2157210
Sure
Ever been to New Zealand?
user2157210
No its an island
So you've never been to any Islands?
user2157210
11:42
Sure I have
user2157210
I would love to go to NZ must be great over there
user2157210
but i would not live there
@phenomnomnominal how do you call the inhabitants of New Zealand?
@Nexxpresso Says the guy sitting in an office in the UK. Mint.
Yes, much better than Germany.
user2157210
11:42
New ZEDS
I was thinking of New Zealous, but that'd look racist
@FlorianMargaine, New Zealanders, or colloquially Kiwis
user2157210
@phenomnomnominal Cant say if its better than Germany
I can easily say it's better than Germany
user2157210
How can you?
user2157210
11:43
For you it might suit better
user2157210
but how dare you to say it would be better for me
I just did
user2157210
so care to elaborate why?
Because you didn't say 'For me, we are superior to islands', you stated it as a fact. Double standards are stupid.
Anyone into virtual hunting?
11:46
sure
who are we hunting?
@OctavianDamiean like, piloting war drones?
user2157210
@phenomnomnominal But why would you say NZ is better than germany for me?
Because it just is
user2157210
@phenomnomnominal Do you have big towns?
11:47
That game is awesome even if you don't actually hunt anything. :D
Largest is 1.5mil
user2157210
Thats probably ok
user2157210
i dont like nature
Capital has ~300k people
user2157210
300k?
user2157210
11:48
I mean sure NZ sounds like a paradise but wtf i dont want nature
user2157210
and they do not have good beer
Then no, don't come here
user2157210
and no currywurst
It seems dumb to not want to go somewhere because it isn't like your home
user2157210
@phenomnomnominal for holidays sure but for living
user2157210
11:50
there are things a man needs
user2157210
thats currywurst and real beer
@Nexxpresso where do you live in Germany?
Don't confuse want with need
user2157210
@GNi33 Lower-Saxony
user2157210
@phenomnomnominal You do not understand people do have different criterias for a living
11:53
Yes I do. That's not the same thing as calling someones country inferior.
I'm made a userscript to see what other variables that "users" were added by the scripts on the pages. There are many strange things...
user2157210
@phenomnomnominal I didnt specify your country this all originated out of me calling Austria an island which it is not.
@Nexxpresso That's disgusting.
user2157210
Go back to your kangaroos!
A gscheids Schnitzel ghert her!
11:55
> no you are wrong we are superior to islands
@GNi33 So ists. Mit ane Petersül Kartoffln und an Gmischtn.
Thinking you are superior to others gets you nowhere.
user2157210
This got way out of control
user2157210
Im on an island myself ..
user2157210
holy cow why should I rant about them
11:56
@GNi33 was sagst du?
Wie das Wetter in Deutschland?
So what does a developer machine really need? vim, git, nodejs, jshint, less, uglifyjs and grunt is what I have so far.
Anything I forgot?
Did you know about the Eggs.Chtulu function that we have in this chat ?
cough coffee cough
.
12:01
@dystroy yep
Grr what is it...
it shows up whenever you use a special regex to parse html
<[\>]
something like this ^
@FlorianMargaine That's what I thougt about
Nothing? That's it?
I'm so sure I forgot something ...
@OctavianDamiean, i said cough coffee cough
12:03
@phenomnomnominal huh?
the coffeescript compiler :)
OMG go away!
Hi people...
12:04
but now I don't have the problem on JS
but on the Power point
@MirkoCianfarani lol
0
Q: Why , after save, I not changed diapositive's old

Mirko CianfaraniI have two computer where: 1) In this I have the system operating Windows Vista and Microsoft Office 2010. 2) In this I have the system operating Windows Xp service pack 3 and Microsoft Office 2007 I worked on the first computer on Office 2010 and I saved in the format *.pptx on the pen drive....

Exceuse me people
@OctavianDamiean browsers :P
12:05
but not there is the chat on office
@OctavianDamiean browserify, all your settings (vimrc, npmrc, gitrc, jshintrc, etc)
@MirkoCianfarani looks more like a problem for superuser.com
@OctavianDamiean tmux
node-gyp
my install.sh file...
hm, browserify looks neat
of course it is
:P
12:07
question of taste :p
@dystroy this is what I mentioned when we had lunch ci.testling.com
Ew, the guy who plays Joffrey is 20... he looks about 12?
@jAndy you might like it too ci.testling.com
@FlorianMargaine why node 0.8.8?
because it's outdated
and I'm too lazy to update it every time there is a new version
so I just go and check the latest stable release whenever needed...
just saying because we have 0.10.2 already
I know, dw :)
wait, 0.10.2?
last week it was 0.10.1
yush. the update came some kitten ago
12:11
@dystroy thx for the suggestion!!!
superuser is for the helping on the windows
@FlorianMargaine Thanks.
  "testling": {
    "files": "test/*.js",
    "browsers": {
      "ie": [ 8, 9 ],
      "firefox": [ 13 ],
      "chrome": [ 20 ],
      "safari": [ 5.1 ],
      "opera": [ 12 ]
    }
  }
you just need this in your package.json and it will run the tests in all the browsers for you
which is pretty much awesome.
@FlorianMargaine is there something like a "latest" option?
You know what I'm wondering. Why is it that XMPP isn't more widespread? I mean how comes XMPP didn't replace IRC already? It seems quite a lot better.
@GNi33 not afaik, but this'd be ambiguous
latest stable? latest build? etc
@OctavianDamiean XMPP requires registration
12:16
that moment when your second display and your primary display are not the same clarity (same make and model display)
latest stable would be completely fine for me
@FlorianMargaine Well, that's true but so does IRC if you want to keep your nick.
@GNi33 otherwise, just ask substack on #[email protected]
@OctavianDamiean you have the option on irc :)
Yea, I guess you're right.
I always am. Never doubt.
@AmaanCheval Coolest mom ever
god she's ugly
Baby looks delicious
2
@FlorianMargaine, don't call babies ugly.
Hahahahhaa
12:19
@phenomnomnominal they are
!!/google florian margaine as a baby
Babies are ugly on the inside
...you keep your baby photos on github?
"I wouldn't take that crap from him. Go and tell him off. I'll hold your monkey for you."
12:21
@AmaanCheval who is that?
@rlemon Karmawhores on Reddit, I guess?
Do people actually trade sex for karma?
if you're going to post Karma whores at least post the right kind for this room.
hot chicks or moustaches or hot chicks in moustaches
user image
2
they trade bitcoins for naughty pictures now...
12:23
@rlemon the dog behind is ashamed
I searched for hot chicks, and not one picture of a chicken on fire...
ashamed of what? Looks like she just gave birth to the most awesome pup ever!
@phenomnomnominal Damn you internet! Maybe we want to actually find chickens on fire! (granted, that wouldn't be most times)
@phenomnomnominal jandy trades sex for rep
12:26
it's ok... he was rescued.
@rlemon Looks legit
@rlemon, A CHALLENGE: I need a picture of two monkeys in a western style show down, with bananas instead of guns, and as much wild west imagery as possible
close enough
need a code review
12:32
@rlemon nice
@rlemon boy thats awesome
@Darkyen wth indent your code :(
@FlorianMargaine ... be realistc... i copy pasted it off a script tag
wait
12:33
Here, I win. Could somebody photo shop that with guns, kthx
user image
2
Banana guns*
That's awesome
every pirate should have one
@Darkyen otherwise, I think that you don't have enough functions
the first 56 lines are doing too much
the getPic function is doing too much
and the getNextPicSet is doing too much
12:39
hmm
grr. I spent 15 minutes helping someone debug some form validation. First thing I ask him, "are you sure you're selecting all elements correctly"?, he says "yes". 15 minutes later...whoops, in the html, he accidentally inserted a capital letter.
@Zirak You've met an html troll
user2157210
be away for short time chat flooded
user1125394
does requirejs add some security, (not able to call code inside it?
user1125394
I'd like to protect a function, so that client wouldn't try it with other parameters
the javascript will always be executed on the client
so you will never have full control on it
no matter what you try
user1125394
the client has full control
user1125394
well all I could is minify it
That won't help you.
Minification is not a protection mechanism.
12:53
That's security by redirection, which is sort of like a sign hanging above an open vault saying "There is no vault"
3
user1125394
so only way is password (looks shitty subscribe("foo", "mypassword") ) /accesstoken verified by server?
huh? What are you trying to do?
Well, if you really want to make sure a certain function isn't accessible to the user then put it on the backend and don't make it directly accessible.
Look, when you visit a page, you download everything, including js. The client now owns that code. He can do whatever he wants with it.
user1125394
@Zirak ajax send, to subscribe to websockets
12:55
If you're talking about software distribution, there's nothing but licenses stopping someone from simply distributing it further.
user2157210
use some server side language
@crl And now in a sentence?
user1125394
I'm trying to secure the ajax message
From the client? Why?
user1125394
12:57
so that you can't subscribe to multiple things, not to you,
meh, I don't care. Point is, if it's on the client, it can be meddled with. If you want security, do things on the server.
user1125394
from the client it's impossible I guess
My English skills fail me.
@crl use SSL
@crl that would secure the transaction from the client to the server
user1125394
@OctavianDamiean no that's me, but thx
12:58
@crl that won't help you make sure the user is who says he is on the client
@BenjaminGruenbaum SSL is for protecting the user from 3rd party actions
user2157210
well check if user has subscribed to one thing and deny multiple
Not for helping the 1st party "defend" from the 2nd party
Yeah, the transaction, not th eclient
You can do client-side security, the problem is you can't once there is a server involved. The minute you have a server you must validate on the server
POW! I know what I'll put on my RPi! A XMPP server.
user1125394
12:59
yes, want to prevent too many subscriptions, that a client would do if playing with the js code
Then prevent it on the server.
@OctavianDamiean Nice
@crl Nope, serverside, a client can send as many requests as he'd like
user1125394
@Zirak ok

« first day (899 days earlier)      last day (4274 days later) »