« first day (969 days earlier)      last day (3996 days later) » 

12:00 PM
@Zirak indentation is not well done there gist.github.com/Zirak/3373067#file-helloworld-js-L114-L119
 
I'm gonna start wearing diamond checkered sweater vests
 
!!s/Git/Gist/
 
@OctavianDamiean Esailija's link to Zirak's Gist a few messages ago (source)
 
I think i just pissed my pants from laughing so hard @redline
 
We0
@jan
 
12:00 PM
@FlorianMargaine Looks correct
 
We0
@jAndy I know how the on works
 
@We0 yes, my dear?
 
We0
@jAndy I just need the right event for when an element is loaded into dom
 
while
\t(
\t\tk < len
\t)
 
12:01 PM
sorry but we need SOAP support, and the ability to configure this with XML
 
@We0 Jan Dvorak is @JanDvorak not @jAndy
 
grr
 
@Esailija SOAP? This isn't a fucking shower you idiot
 
LOL
 
TIDDLES, COME AND GET HIM
 
12:02 PM
@We0 There are MutationObservers that only work in modern browsers
 
:)
 
We0
@jAndy $("#elelemt_just_loaded").on("live", function (){alert("element was just loaded");})
 
@BrandonGelfand Wait, what? I always thought it would be the other way around! Are you sure? I mean it is not very obvious that Jan Dvorak is Jan Dvorak and jAndy is jAndy.
 
@We0 also look into DOMSubtreeModified
 
@jandy catch any fish yet :)
 
We0
12:03 PM
@jAndy isnt there an equilavent for livequery in the "on"?
 
@We0 no
 
@BrandonGelfand yea i thought it was pretty good too
 
only an alternative
and that is MutationObserver()
 
@OctavianDamiean look at his comments, he was trying to talk to @JanDvorak but was accidentally putting @jAndy
 
@We0 LQ worked by monitoring the DOM every 200ms and reporting any difference
 
We0
12:03 PM
wtf
how
 
@billmalarky 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.
 
@JanDvorak lol
 
@We0 Dude, I showed you it.
RTFM
 
@BrandonGelfand common mistake, only because sneaky @JanDvorak stole my first 4 letters
 
We0
so if you have a datatable that loads data after certain element is loaded you have to use that?
 
12:04 PM
Man, I just realized that there is a second meaning to input device
 
12 mins ago, by phenomnomnominal
@We0 $(document).on("click", "a.offsite", function(){ alert("Goodbye!"); });
 
its like a man-in-the-middle-attack
jandy-in-the-middle-attack
 
@We0 look if the datatable fires an event
 
@jAndy That has to be a sexual position.
 
xD yeah IK, he was talking to you, I don't think he realized it. @jAndy
 
We0
12:04 PM
@phenomnomnominal can you read what i need?
 
you don't ever need something that tracks dom changes
 
@Zirak LMAO
 
use the proper level of abstraction
 
We0
@JanDvorak it is an example, here is what i am trying
 
@Zirak you're waiting for this kind of situations and lines right ?
:p
 
12:05 PM
@jAndy The Game
 
@jAndy That would have only worked if you'd have been a transparent proxy or gay.
 
its hard work I guess !
 
@Esailija what if you're writing a userscript?
 
!!/tell We0 format
 
@We0 Format your code - hit Ctrl+K before sending and see the faq
 
12:05 PM
!!/tell we0 format
 
@we0 Format your code - hit Ctrl+K before sending and see the faq
 
We0
$("#table_body").live(function(){
	var $table_body = $("#table_body");
			console.log("123");
	$.ajax({
		url: "data.php",
		success: function(data){
			console.log("123");
			var content = "";
			for (var i = 0; i < data.length; i++) {
				content += "<tr>";
				content += "<a title='ipsum' href='" + data[i].link + "'>Image Link</a>";
				content += "<span>" + data[i].date + "</span>";
				content += "<img src='" + data[i].img + "' width='20' height='20'>Image Link</a>";
				content += "<p>" + data[i].copy + "</p>";
 
1 message moved to Trash can
 
We0
there we go
 
!!tell we0 format
 
12:06 PM
@JanDvorak hook into events of proper abstraction
 
Also: Ew
 
crud, I am laughing so hard I woke my parents, they are pissed :/
 
@Esailija what if the website lacks proper abstraction?
 
then your user script cannot be proven to be correct and the professors are disappointed
 
@Esailija I'm out of school. Also, I don't need my userscript to be correct. I need it to work.
 
We0
12:08 PM
anyone?
 
Down with the system!
 
if it's not correct it doesn't work
it only appears to work
sometimes
 
We0
ok anyone know where i can get an older version of jquery that still supports livequery?
 
@We0 you can implement LQ's algorithm easily, and it will suck just as much as LQ does, but at least it will suck visibly and with a disclaimer (which is better in a sense)
 
@We0 sheesh, that's quite ... ugly.
 
We0
12:09 PM
i know
but it is just one thing
such a small dumb thing
just want it to ajax data and process it
 
@JanDvorak anyway, are we sure we have 1. userscript 2. website without proper hooks
 
We0
just for some fucking interview test
annoying the shit out of me
done sooooo much better stuff
but cant get that ffs
 
God damn you really have to anticipate EVERYTHING and retard proof your site, the pm's I'm getting on reddit make me wonder how these guys even turn on their computer let alone navigate the web
3
 
We0
RAGE
 
LOL
 
12:10 PM
@Esailija concerning my case: 1) yes. 2) Yes, I believe (SO chat). Or I could open yet another websocket to the server.
 
what kind of hook are you looking for in SO chat
or if you can open websocket, then that's cool
 
@Esailija I am hooking to a new user coming
 
Hello all. Anyone up for a little challenge? I've got a jQuery issue that has been bothering me for a few hours now. Basically, I'm using colorbox to pull in content to a web page, but some of the script that gets loaded with each colorbox pageview sometimes causes issues. Any takers?
 
@JanDvorak The chat has that kind of info (from the websocket/polling)
 
I can monitor DOMSubtreeModified on the user list in the right panel
@Zirak I don't like polling, and I didn't want to open yet another websocket (perhaps I should have - except my mobile operator's transparent proxy does not support websockets)
 
12:13 PM
STAHP
 
HAMMAHTIME!
 
Strangely the code seems to work every time except for one strange error case. I can't figure it out because the code is really quite simple so I don't know what else to try. Anyone want to take a second look? :-P
 
@billmalarky code link please
if you don't mind a code review session
 
Anybody in America: how are they taking the NSA stuff, and what are Americans doing about it
 
@Gacnt not in America; I'm afraid not much can be done about it
 
12:15 PM
@Gacnt You're aware that this isn't just an American issue, right?
 
@JanDvorak How do I add links in chat?
 
@billmalarky post the URL
!!/stat billmalarky
 
@JanDvorak billmalarky has 115 reputation, earned 0 rep today, asked 20 questions, gave 1 answers.
 
Your imbecile government spies on us as well.
 
@Gacnt You mean about the creation of guns through 3d printers?
 
12:16 PM
@oct I haven't been following it much tell me more
 
@JanDvorak log in here: lolbrary.com/user/loginform.php with username javachat pass javachat and then go to here lolbrary.com/user/shelf/javachat/1
 
@OctavianDamiean were you really surprised ?
 
@Oct Canada :(?
 
@jAndy Not the slightest.
 
@billmalarky java != javascript
 
12:16 PM
I think that it is near impossible to prevent the printing of guns unless 3d printers are outlawed
 
@Gacnt No, 36 other countries too.
 
@JanDvorak I know, I created that user for this chat room
 
@Oct tell me all about it :) so is this information going to be removed or what
 
And was too lazy to type out javascript
 
lol the chat is just one huge closure hard-coded to the dom... maybe domsubtreemodified is right level of abstraction after all
 
12:17 PM
I mean in fact, thats whats "EUROPE" is going to with its politics right now... creating the united nations of europe, but in a not very democratic fashion :P
 
That is worse than anything any hacker has ever done, yet they shrug about it
 
if the goverment does it, it's not illegal
immoral, maybe, but not illegal
 
@JanDvorak, that's not true
 
 
If it's outside of the law, it's still illegal
 
12:18 PM
Sony wins
 
@Gacnt best part, they sentence crackers that obtain and release such information to 10 years in prison but a rapist only to three years.
 
@JanDvorak When you get to the shelf page, click on one of the NSFW thumbnails, then go next or previous to the other nsfw thumbnail and you will see that clicking on the shield does not remove the nsfw image blocker.
 
@oct That actually makes me really sad, I read that yesterday
 
@JanDvorak Indeed, if everything a government does would be legal we wouldn't need a constitution.
 
haha, constitution... good one
 
12:20 PM
@JanDvorak You will see that it only breaks when you go from one nsfw popup to the next. If you go from a non-nsfw popup to a nsfw pop-up it works just fine.
 
@JanDvorak, of course, the government probably has to power to push through any new law they want to then make it legal
 
@GNi33 I know, but I mean the concept.
 
@JanDvorak if you go from a nsfw popup, to a nsfw popup, it breaks, but if you go from a nsfw popup to a nsfwpopup then to a non-nsfw popup and then back to a nsfw popup again it works fine. Very strange.
 
The sad thing is, they didn't learn anything from history. Upset the masses enough and you'll start a revolution, or maybe that's what they want.
 
So can this program make its way into any database take passwords cc information and all?
 
12:21 PM
@OctavianDamiean probably the other way round
 
@Esailija it took me 5 minutes to separate out all the tests but the results are night and day
 
make the masses scared of the new impending doom that hackers represent
 
@phenomnomnominal there is historically a lot of governments being caught doing illegal things and having to face repercussions for it.
 
so nobody will ever be able to question you ever again
 
@Gacnt It's probably in all the terms and conditions of Google etc.
 
12:22 PM
the Steubenville - case just shows what they want you to do: nothing, look away
 
A constitution is a guarntee made to its people
That says nothing about the legality of actions taken by the government
 
@GNi33 yea, except that only works up to some point where people no longer have something to lose, then you're fucked.
 
activism? well, don't even try
 
@billmalarky for starters, some indentation would be nice
 
@OctavianDamiean yeah, have a look at turkey
 
12:23 PM
Take away enough rights and enough of someone's freedom and you'll get him really really mad.
 
Western democracy in a nutshell: Have elections with party's, without having a real difference between them (a) and make sure the people don't care enough about politics to really change anything by voting - Use Media which is paid by private people (basically, ALL media) and spread your propaganda that way and everybody is happy with it
 
The bottom line is that the government would happily let you think they're out to make the world a better place, when reality, the government is composed of a bunch of fat politicians who make promises to get elected for another 4 years
 
what I don't understand is the role of a police-man in this
 
@redline do you have the jsperf links
 
i mean, when will they realise they're getting fucked over equally as those people they're fighting against in revolts?
 
12:24 PM
@GNi33 At some point neither will he, that's the turning point.
 
We0
Ok ffs i will pay some one
 
@JanDvorak Yeah sorry about that. The js is here lolbrary.com/scripts/shelf-popup-actions.js and just do a search for "NSFW post shield uncover" and you will see it
 
governments have "evolved" over the years going from depotism to monarchy to republic to democratic republic
 
@redline every test seems very slow in relation to what they are doing
 
12:25 PM
I think the next step will be some sort of transparent government where everything is made public. There'd be no other way to be sure there is no corruption
 
@GNi33 did you know that Brussels decided of a law, where policmen within europe are more and more mixed in european countries ?
 
what a waste of a perfectly good domain name
 
so.. italian policemen are used in austria or germany.. and the otherway around
 
Holy jQuery Batman
 
@Esailija probably because i created a 4 level proto chain?
 
12:26 PM
@phenomnomnominal ?
I just got back, what's up?
 
@redline you want to test the efficiency of reading a property from 4 level proto chain?
 
@Esailija you mean writing?
 
@Neil that sounds nice but that's also an utopia.
 
@BenjaminGruenbaum, thought you might have an answer to:
43 mins ago, by Explosion Pills
I have something of an incendiary question ... we have an existing webapp on the LAMP stack and we need to add some heavy client side stuff; is there any of the thousands of JS MV* frameworks that work best with an app that's already pretty server-side heavy?
 
@ExplosionPills FOR THE LOVE OF GOD AVOICE BACKBONE
 
12:27 PM
@OctavianDamiean You imply it's not possible?
 
@redline ? When you write to an object you always write directly to the object
 
It wouldn't have been possible prior to the internet
 
@ExplosionPills use AngularJS, or EmberJS, or KnockoutJS , depending on what you do. AVOID BACKBONE. It solves nothing
 
@Neil Indeed, the 1% that's controlling and steering everything won't let that happen.
 
We could automate everything.. it's possible from a technical standpoint..
 
12:28 PM
@Neil of course not
 
@Neil if there is any country with is runned with that kind of government, yeppay, take me there :p
 
absolutely impossible
 
@Esailija setting the property in tests 1 or 2 will be affected by the proto chain because it needs to check if a property previously exists before it can set it on "o"
 
@GNi33 People said that about democratic republic
 
@Neil democratic republic doesn't exist
 
12:29 PM
oh, where's the democracy you're talking about? because I don't really see it
 
Before women could vote, nobody ever really took the idea seriously that a woman may one day vote
 
it never did
 
@Esailija i wanted to see performance in a realistic scenario on a higher level class to get worst case scenario
 
@FlorianMargaine It depends on your definition
 
fuck, democracy in the "modern sense" is a really, really bad joke
 
12:29 PM
@Esailija and not see only the performance increases of doing it on a plain old {}
 
no government has ever existed which didn't have serious serious problems in some sense or another
 
You are aware that democracy is just hidden dictatorship, right?
 
@redline btw o["foo"] is optimized to o.foo
 
I like to pretend that NZ is fairly uncorrupt. I'm wrong, but probably less than most.
 
I mean applied democracy, not theoretical democracy.
 
12:30 PM
actually, its more than a joke, if you look behind it you already have to acknowledge the genius theory behind it... having a modern dictatorship and everybody loves it without understanding it :p
 
@Esailija oh damn i didn't think of that, i need to pull that out
 
because foo is static string that evaluates to a valid identifier
 
yep you're right
didn't notice that at all
 
@JanDvorak I saw you accidentally removed the nsfw posts from that shelf page so I added 2 back again for you.
 
Churchill said "It has been said that democracy is the worst form of government except all the others that have been tried" afterall
 
12:32 PM
@Esailija ok fixed it
 
room mode changed to Public: anyone may enter and talk
 
I want to think a transparent government is possible
 
@Neil not in this world, where "the system" is standing over "politics"
 
If democracy would work, it would've been disestablished long ago
 
12:33 PM
@SomeKittens That's pretty cool ;)
 
(system = finances)
 
Afternoon All
 
@Neil Well yea, I like I said, it is a nice idea but it's just not possible.
 
@jAndy LOL, love your conspiracy theories :P
 
@OctavianDamiean I would go so far as to say it's only a matter of time
 
@BenjaminGruenbaum where's the conspiracy there ?
 
You do know that these chats are searchable (such as in Google), right? ;)
 
@Shaz Oh really :O?
 
we usually say "indexed"
 
@Neil you mean it is a matter of time until people realize that they have to get rid of the 1% and make sure that there's not going to be another new 1% that's controlling everything? If so, yea.
 
12:35 PM
doesn't matter, the NSA has everything about us anyhow
 
@Shaz Yea, we're well aware.
 
hi there spies, how ya doin'
 
@OctavianDamiean A badly run government causes 1% to control everything
It's not the fault of the 1% so much as it is the government which allowed such a situation to arise
 
@GNi33 doing just fine, you?
 
@Neil the problem is that it is like an infection, in a weak body.
 
12:36 PM
i knew it!
 
But it's convenient for those who make such decisions
 
@OctavianDamiean the far more interesting question is, how will you ever overcome the 1%, if the elections will always end like 0.2% 0.35% 0.14% etc., which they do of course
 
Pineapples are tasty
 
Benjamin and Zirak are NSA-agents infiltrating the room!
 
If a revolution were to occur, such a transparent system maybe won't remove the 1%, but it'll ensure those in the 1% are there because they do a good job of it
 
12:36 PM
The sky is purple
 
@Esailija holy crap how the hell did you do that
 
@Zirak Don't blow my cover bro.
 
NSA Agents = Junglers in LoL
 
@jAndy I can't tell, if I had a solution for this I'd apply it.
 
@Esailija that makes me never want to touch Object.create ever again
 
12:39 PM
@Connor Somebody starred that question. :/
 
@Shaz i know wtf
 
@redline Don't worry about performance all the time. I use Object.create a lot
Big deal :)
@redline you're not building a nodejs library anyway.
 
@Esailija well yea but i mean how can you say that when the differences are so huge?
 
Morning @Connor .... -_-
 
@BenjaminGruenbaum i still feel that that is significant though, i mean, 61 million to 4 million dude
 
12:41 PM
@redline ?
 
@BrandonGelfand morning
 
If object creation is your bottleneck you're doing something wrong anyway.
be back later.
 
@BenjaminGruenbaum like writing a game?
 
@BenjaminGruenbaum peace
 
oh yeah, just dumb your 12 properties in an array
 
12:41 PM
C u on Skype sometime soon @Connor ?
 
D
 
@BrandonGelfand in a bit
 
@Esailija i do that a lot actually for standardized objects
 
you really have to write hell efficient code that Object.create performance bothers your overall performance
 
the accesses are so much faster
 
12:42 PM
also you can't hide behind application restrictions when you are doing a general purpose library
 
KK, I had a question about CSS so I will ask you then
 
it needs to be fast
because it's general purpose library
 
exactly
 
just because you have application with 10 users at max and never create more than 5 objects doesn't mean a library can get away with those specs
 
@redline I can't wait until I hear what those clients have to say to me
 
12:46 PM
@BrandonGelfand just be polite
most important
 
Yeah, I will, its gonna be funny though, I just know it.
I am glad I get to charge them for all the badgering they did to me and aggravation they gave me
 
@Esailija isn't your foo inlined though?
 
They sat in my kitchen and ate my damn cookies, I should charge em for that too....
 
Time to write some JS, Time to write some JS,
Time to write some JSSSSSS
Oh i feel so happy :D
--bah dum tss--
 
@redline yes, new calls can be inlined
 
12:48 PM
@Esailija o/
 
which can affect optimizations in 1-1000x kind of way depending on many things
 
@redline are you named after the bike company? I have one if you are...
 
@BrandonGelfand my nickname came from a video game called socom
 
@redline here's short wiki about it en.wikipedia.org/wiki/Enabling_transformation
 
redline = red lines in a crosshair
 
12:49 PM
@BrandonGelfand ProTip™: Poison the cookies next time.
 
hey octavian
 
@Esailija thanks, reading it right now
 
@redline intresting, never knew that
 
@OctavianDamiean I was originally gonna put laxatives for my dad
 
i just called crosshair , a cross hair
 
12:50 PM
Sort of wish I did now :/
 
@BrandonGelfand Yea, that's less invasive.
 
red·line
/ˈredˌlīn/
Verb
Drive with (a car engine) at or above its rated maximum rpm: "both his engines were redlined now".
 
@Esailija You can re-use objects a lot
 
@Darkyen yea i get that one a lot too
 
@BrandonGelfand btw i am named after "money" you got some i'd love if you share :D
 
12:51 PM
@BenjaminGruenbaum object pooling?
 
@Esailija very interesting, i didn't know about the looping being in parallel
 
:-( nobody talks to me :-(
 
yeah but I mean here the inlining is an enabling transformation
 
@Darkyen hi! :P
 
@Loktar awww :D
 
12:52 PM
@Darkyen I am going on a trip to Hawaii with my aunt as a gift for my birthday, I am gonna use the cash to go parasailing, rent ATV's, go snorkeling, zip lining, few other stuff
 
if you do --trace_inlining with Object.create, it says that Object.create cannot be inlined
 
:O
 
gonna be a fun week
 
@Loktar guess what
 
@Esailija so tests 1 and 2 jumped to 60ish million, and the defineProperty didn't change
as expected
 
12:53 PM
what?
 
@Esailija For example
 
@Esailija in what console are you referring?
 
it's a flag for V8
you can also do it in node.js
 
can i just use that flag in chrome's console?
 
node --trace_inlining myjsfile.js
 
12:53 PM
i've found a new low.. downloading a tutorial video for how to make a custom birt oda data source which is just audio
 
yeah I guess so, I haven't used it in chrome
 
that would be a quick way to check
 
are you on windows?
 
yep
 
then you need some kind of hack to see stdout when running chrome
 
12:54 PM
is there an extension?
i'll go check
 
@Esailija huh?
 
@Esailija i have ff as well if that doesn't need a hack on win
 
so ps4 stomped xbox one eh?
 
@Esailija sweet, that's a nice little hack
 
12:58 PM
@Esailija - You seem to be a master programmer: ariel.com.au/jokes/The_Evolution_of_a_Programmer.html
 
@Loktar what would be faster, re-drawing the gradient or looping the tiny canvas and manipulating the pixels. ?? off the top of your head
 

« first day (969 days earlier)      last day (3996 days later) »