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

8:00 AM
i've been a firmware dev there
 
especially when you want to support IE 3 versions back
 
Oh... this language lacks parentheses...
 
They use <i> instead of <em>
 
@dystroy "IE 3 versions back"
 
especially when you want to support (IE ((3 versions) back))
 
8:01 AM
IE8 + IE7 + IE6
hehe
switch to lisp
:D
 
OK, 5 versions
IE6..IE10
 
@Lee its not working...
 
I'll propose a new version of English to ISO comitee. With less ambiguites. And more parentheses. And forced scoping.
 
Thing is streetinsider.com is huge , and I have to run a content script htere
 
> try{...}catch(err) {}
@BenjaminGruenbaum then you don't really have to care about IE6 behavior
+1 for deditec for using transparent PNGs correctly. -1 for using GIFs where PNGs would be more appropriate
 
8:07 AM
@JanDvorak did i mention they use trainees for coding?
they get fired after they want the job
i fired myself.
 
isn't that abuse?
 
it is
but thats how business in germany is
 
I'm not going to germany. And it's just 100km
 
at least i fired without giving out my sources.
 
i want to go in germany
is it good to go there/
?
 
8:08 AM
the project i was working on is incomplete on his side. and my javascript is way to advanced for him to understand. basicly.. dunno what they do now. i heard the boss had a burn out
 
@Jan-StefanJanetzky You can't generalize it.
There are bad companies and good companies.
 
@OctavianDamiean well true. i just said how it is.
now i work for a company that i srsly love
 
Lee
@Michel06 Show me your code. Invite me to a new room if you like.
 
Once I got fired before I even started
err... downsized
 
@Lee ya sure
 
8:10 AM
!!/info
 
@JanDvorak I awoke on Mon, 01 Apr 2013 12:29:27 GMT (that's about 19 hours ago), got invoked 257 times, learned 87 commands, but forgotten 8 commands
An organisation that treats its programmers as morons will soon have programmers that are willing and able to act like morons only. — Bjarne Stroustrup
3
 
@JanDvorak IE6 acts in quirks mode just like IE9 in quirks mode
 
user2157210
Morning
 
anyone see any problems with this>?

jQuery(function() {
	jQuery("img").load(function() {
		jQuery(this).parent().removeClass('loading');
                console.log('done')
	});
});

i dont even get a console.log
 
to note what i did at deditec: i got invited for an interview, got told to write a plain simple database in c as test, asked but never got the chance to show that database, got directly involved into the main projects, coded my ass off and got yelled, almost lost my interest in software engineering, got yelled for showing code that is more advanced than the boss wanted, created a webserver in plain c, made certain server and client applications etc.
by that time i finished evening school, got invited by a huge ISP in germany, got the job and quit the old one by sending a fax through a servi
@OctavianDamiean ^
 
user2157210
8:19 AM
216€/month?
 
user2157210
sounds great
 
you kidding?
 
@Jan-StefanJanetzky DUDE WHAT!?
That's slavery.
 
its a true story.
 
user2157210
well for 216 euro a month i wouldnt even move my ass out of my bed
 
8:20 AM
Me neither ...
Nothing under 1800€/Month (for 40hours/week that is) ...
 
he "told" me to get the job after trial. his trial was around 10 months
in that time i had creepy degrees in school etc.
i finished evening school and voila.. got taken with kiss hand
 
user2157210
i made more than that when i was 14 .. working less
 
user2157210
Sure there is some point where you want to get experience and such
 
you could say in germany it does not matter if you know the job and know how to work. it matters if you have friends who could get you into a good employment or good degrees to find a good employment
 
user2157210
you do not even need good degrees
 
user2157210
8:23 AM
you need a good school name on your cv and some contacts
 
Contacts is generally all you need in Austria.
You have contacts, you're the boss.
 
user2157210
@RED.Skull no you do not have contacts do you?
 
does anyone see my messages?
 
@Connor nope
 
8:25 AM
:8610307

        anyone see any problems with this>?

        jQuery(function() {
        	jQuery("img").load(function() {
        		jQuery(this).parent().removeClass('loading');
                        console.log('done')
        	});
        });

        i dont even get a console.log
 
@Nexxpresso I am new to this chat room. So i didnt get u
 
@RED.Skull that was a joke related to previous exchange.
 
@Jan-StefanJanetzky Can you see now?
 
If somebody here is interested in pan things, he'll answer.
 
@dystroy Oh k
 
8:27 AM
@Connor then propably the image is not loading? what does your debug console say?
 
@Jan-StefanJanetzky the NET part?
 
Holy fuck this server is loud as hell ...
 
user2157210
It's like with cars
 
Like a goddamn vacuum cleaner that's right next to you ...
 
user2157210
8:28 AM
you want the loudest server in town
 
Mhmm, ney. :D
 
@Connor api.jquery.com/load-event oh this right?
look at the Caveats
 
@Jan-StefanJanetzky yes, thats what im using
 
@Connor You should read the caveats.
 
@OctavianDamiean the only one that may apply is the cache, ill try now
 
user2157210
8:31 AM
point 1
 
user2157210
it doesnt work
 
heh
Love that. :D
 
user2157210
stopped reading there
 
> Use our API but note that it might just not work.
Brilliant.
 
@OctavianDamiean still not working
@Jan-StefanJanetzky is there any other way?
 
8:33 AM
@SOChatBot dahell this quote fits
@Connor why would you want to check if that image is loaded anyways?
 
@Jan-StefanJanetzky to have a loading overlay
 
user2157210
so he can put an alert box where it says all images loaded
 
you could create an image element, directly attach that function to the onload event and then add the src. i guess that would work if the image exists.
 
Why not?
@Nexxpresso HAHAHAHAAH
 
user2157210
Can be done has to be done in production server please
 
8:36 AM
@Nexxpresso dont touch the dev environment! the production server already has newer sources. use that instead!
 
@Connor Works fine on my machine™ jsfiddle.net/G6uVJ
 
user2157210
is the img you load sfw?
 
user2157210
holy shit a naked cat
 
nsfw I know.
 
hmmm
 
8:38 AM
However! Once in cache it obviously doesn't fire that event again.
 
user2157210
 
lol
You crippled my fiddle :(
 
as i said. you could do var img = document.createElement("img"); img.onload = function(){console.log("creepy creeptz")}; img.src = "your image url here";
 
@OctavianDamiean im loading the images via ajax from flickr if that makes any difference
 
user2157210
@OctavianDamiean i think about putting this into our opac just for lulz
 
user2157210
8:41 AM
spam dem austrian
 
lol
damn minimalism
@Connor Uhm, why?
 
@OctavianDamiean Uhm, why not?
 
Guys, what's the benefit of using Google hosted JS libs instead of putting it on your own server? Does it save some resources used for downloading?
 
8:43 AM
@Connor Well you know that the image element already does that for you right?
 
@OctavianDamiean its a difference!
 
@OctavianDamiean maybe becuase there is 180
and then its Dynamic
 
@OctavianDamiean CAT! MEOW!
 
8:45 AM
@TemporaryNickName not too much, at least of what i heard recently
 
i'd say jsfiddle.net/G6uVJ/2 this way it even works if its cached.
 
@TemporaryNickName most people already have it in their cache
that's the main interest
 
@FlorianMargaine that's the point
people have had a look at it, the amount of people that already had it cached is very, very little
 
yeah, i was surprised myself
 
8:46 AM
surprising
 
Cool, would it be better than using caching mechanism provided by Grails framework?
 
people all include their own version of jquery?
 
@Jan-StefanJanetzky I don't see why you would create a new image element and with that increase the requests.
 
on the other hand, a cdn has all the content gzipped
of course, that's something you can/should do on your server as well, but people tend to forget about that
 
ok, so no 1 knows?
 
8:47 AM
@OctavianDamiean to be sure the onload event will be fired. the browser would take it from cache.
you can do image preloading with this
 
@Connor You're probably doing something wrong.
 
Google -.-, will you put MDN results at the top of javascript searches
 
@Jan-StefanJanetzky But if it is in the cache I don't care. :D
 
@OctavianDamiean well, i showed you what i have done and the images are loading
 
8:48 AM
@OctavianDamiean but if its in the cache, be sure onload fires!
it could be done by checking if it is loaded already and else creating that onload event
but i dunno if jquery does that.
i guess so.
 
That works with revision 3 just as fine.
 
but that would not explain why it does not work crossbrowser
 
No need to create a new image element for that.
 
not sure though, i'd need to read up a little on it myself
big problem seems to be the vast amount of different versions if I take jQuery for example
 
hello people, could i have some help with this pleeease
 
8:53 AM
Top 10 jQuery versions loaded from Google CDN
Version	Protocol	%age	Count
1.4.2	http	2.7%	945
1.3.2	http	1.3%	460
1.6.2	http	0.8%	285
1.4.4	http	0.8%	270
1.6.1	http	0.7%	247
1.5.2	http	0.7%	231
1.6.4	http	0.5%	192
1.5.1	http	0.5%	173
1.4	http	0.4%	145
1.4.2	https	0.4%	141
 
jsfiddle.net/rusticblonde/BG8dV/11... im trying to make the box visable on hover which is hidden
im assuming ive got to do it to maybe children
 
@FlorianMargaine That metric must be old.
 
Or incomplete
 
8:57 AM
awesome, your a star :)
 
yeah it is
 
@FlorianMargaine
 
november 2011
 
i didnt know i could do that with CSS
 
9:00 AM
@KirstyHarris css can do alot: jsdo.it/GeckoTang/4rXg
 
var str = 'something ##.#';
how would you replace the hashes with numbers one by one. Say run a function to get the value for each hash
 
oh my @Jan-StefanJanetzky
 
the only idea i have right now if do an .indexOf() in a loop, increasing the starting point each time.
 
hi
@KirstyHarris :D heyyyyyyyyyyyyyyyy
 
@Darkyen hey beau!
 
9:05 AM
@KirstyHarris How u doing ?
 
all good!! :) how are you?
 
How could a modern browser on a modern computer be so slow :(
 
Firefox?
 
user2157210
@OctavianDamiean cats i hate cats
 
@BenjaminGruenbaum IE ?
 
9:09 AM
@Nexxpresso I hate you!
 
user2157210
 
@BenjaminGruenbaum talking about IE 10?
 
No, that was Chrome in linux...
Of course it was IE
 
user2157210
@OctavianDamiean took me 3 hours to create it just for you
 
@FlorianMargaine yeah, the article is pretty old, but i guess that "version-fragmentation" hasn't changed too much
 
9:13 AM
@Nexxpresso No no no no no, I won't let you puggify my browser!
 
user2157210
@OctavianDamiean but but it took me hours to create it for you
 
user2157210
hm how long would it take to make our company proxy replace all images with pugs
 
just doing a psd to wordpress @Darkyen.. wanna c? :P
 
@Nexxpresso I don't know but you'll probably be booted within five. :D
 
user2157210
sounds like a great idea for last day of work
 
user2157210
9:17 AM
i mean everyone likes pugs
 
user2157210
quality lectures im sure
 
I need DOM help
I'm supporting IE.OLD
I need to find all text nodes
Find a name in the text nodes, let's say "Mister"
And wrap it in a tag, let's say "B"
So
<div>Hello Mister Blue</div>
 
ie.old means below ie 15?
 
Becomes
<div>Hello <b>Mister</b> Blue</div>
(This is what I have for finding all text nodes so far, pastebin.com/mh4SxwDM)
It's much more primitive than the version for the other browsers
 
What you describe, wrapping text in an element, is a surprisingly difficult job because of several aspects of js. Anyway, I've written that: gist.github.com/Zirak/4225242
You can port that to IE without too much trouble I believe
 
9:29 AM
I have a version that works in other browsers, I'll look at it, thanks
basically I need to replace the text node with 3 children right?
One text node (left), one element (center,what I matched) and one text node (right) right?
 
@BenjaminGruenbaum right. I've done that before. Be careful about your iteration order : you don't want to go again in the node you add... That's how I crashed Chrome a few days before ^ ^
 
it's barbaric, but it works.
 
@BenjaminGruenbaum Yep, that's the gist
 
user2157210
wtf is fuzzy passwords and why would I use it
 
9:32 AM
@FlorianMargaine that's not what I need, I need to replace text nodes, you can't just innerHTML them or stuff, thanks though
 
it'd work...
 
@Nexxpresso Did the cute girl from the pet store tell you about them?
 
<div>Hello Mister Blue</div> will be replaced with <div>Hello <b>Mister</b> blue</div>
isn't that what you want?
 
@FlorianMargaine No, I need to go through all the text nodes and make them do this, yours takes an ID and changes its innerHTML
 
replace the ID with document.body and you're done
 
9:34 AM
@FlorianMargaine It isn't working with a text node, it's working on an element
@FlorianMargaine That would change the HTML structure of the page, I don't want to do that
 
it wouldn't
 
@FlorianMargaine yes, it would... Mister could be an element ID, a class name, a meta tag, whatever,
 
@Nexxpresso Seems like a fuzzy password system is a system that accepts several passwords as valid
 
@FlorianMargaine look at @Zirak 's , that's pretty close to how I do it in modern browsers.
 
To be rigourous, most passwords systems accept several passwords as valid... due to hashing
 
user2157210
9:36 AM
@Zirak yeah but why
 
Because people are stupid? Don't do it
 
oh yeah my bad
 
user2157210
@Zirak i can look over ones shoulder and just type in what i saw even if its wrong im in
 
uh, what? If you have access to the person, just chloroform him after he logs in.
 
user2157210
thats so so harsh
 
9:39 AM
hey! When we started this you promised to do whatever it takes. So yeah things got a little ugly. But don't back away from me now
I need you damn it
You grab his head, I'll get his legs
 
user2157210
but but I don't want this anymore
 
That's what little girls say when they see me coming down the street
 
@dystroy If I traverse the dom post-order instead of pre-order I think that fixes that problem, right?
 
user2157210
@Zirak I see
 
Now, are you going to be a little girl and cry, or are you gonna be a man!?
 
9:42 AM
@BenjaminGruenbaum probably. If you code in jsbin, uncheck the permanent executing checkbox : I was very pissed the other day to lose all my code due to jsbin crashing the browser because it was executing the unfinished code...
 
okay this is losing direction. I'd like to thank all those who helped us make this production come true. Nexxpresso, I couldn't have done it without you, and especially me, Zirak, the amazing.
2
 
I should look at the jsbin history... maybe my replacing code is still here...
 
user2157210
@Zirak tho you are complety fucked up you deserve a star sir
 
Why did the boy drop his ice-cream? He was hit by a bus
 
falg +=1;
 
user2157210
9:51 AM
!!/karma Nexxpresso
 
@Nexxpresso Nexxpresso has 5 karma
 
Why the fuck is LaTex so big?
 
All the better to typeset you with
 
2 gig???
 
What latex distribution? How many packages are included? What about converters (dvi, pdf, images...)?
 
Never used that one, but it's definitely a bit odd.
 
BasixTeX looks a bit better
64MB
 
Texlive (linux) and MikTeX (windows) aren't even nearing those sizes
I'd go with Texlive if possible
 
Welcome to a world of awesome
 
10:06 AM
Exception is a great feature when you want to keep bugs for another day
 
Very interesting. The browser desktop notifications cause a system freeze when you use the nouveau drivers (on my machine that is).
 
you got a really bad driver
 
I think the combination is the problem, a pretty old Quadro FX and the nouveau drivers don't play nice together.
 
user2157210
@OctavianDamiean cats.
 
10:23 AM
hello guys. I have very simple problem and I don't know where I'm wrong:

var reloadedMatrix = loadedMatrix;
window.console.log( loadedMatrix === reloadedMatrix); // true

// so i do this to copy the array
var reloadedMatrix = loadedMatrix.slice(0);
window.console.log( loadedMatrix === reloadedMatrix); // false

but when I modify any of two matrixes, the changes apply to both of them
 
@Nexxpresso Turned it off obviously. :P
 
@erik1001 the matrixes are arrays of arrays?
 
yes
 
because when using .slice(0), you're not slicing the inner arrays
 
omg
thanks :D
I forgot about that
 
10:25 AM
some recursive function should help you...
if there are only 2 levels, you can do it manually though
 
yeah, sorry for this stupid question, but I'm just wondering here for 10 minutes why it doesn't work
 
:-)
it's ok, we all do those kind of mistakes...
except Zirak.
 
:D there are some inside jokes I don't know :D
thanks again, now I'll continue my work :)
 
help my pencil is stuck up my nose
 
...
this is the first result when image googling "help my pencil is stuck up my nose"
@Zirak feature request: google images queries
 
10:33 AM
@FlorianMargaine No expanding images though, right?
 
that'd be pointless
 
of course I want it to expand images
 
user2157210
meh @OctavianDamiean my catlover script doesnt replace posted images in chat :(
 
@phenomnomnominal skydiving brings up physics question
how fast can you go?
 
10:34 AM
CCInc or whatever his name is added it some time ago. It's probably the most annoying thing in the world
 
Terminal velocity
 
because you go faster every time the gravity brings you down, yet you're always falling
 
@phenomnomnominal Back scratching...that's genius
 
@Zirak alright
 
As far as i know, portals don't provide any thrust?
 
10:35 AM
/image porn
 
@phenomnomnominal I have no idea.
 
/image ziraks house
 
user2157210
@Zirak well isnt the safe filter applied by google?
 
@Nexxpresso Well it needs to connect to the websocket, listen for new messages and check if those are images.
Then you can replace every incoming image with your pugs.
 
@Nexxpresso, do you want code for connecting to the websocket?
It's easy, just annoying to work out
 
user2157210
10:38 AM
@phenomnomnominal yeah would be nice tho the code wont be done until i am out of work i dont think my boss would be happy paying me for bringing pugs everywhere
 
$.post("/ws-auth", fkey({roomid: window.unknown_users_roomId }), function (data) {
    var socket = new WebSocket(data.url + "?l=99999999999");
    socket.addEventListener('message', yourMessageHandlerFunction);
});
 
@phenomnomnominal wut?
Why are you parsing the room id off the location?
 
Where is a better place to get it from?
 
where do you want to get it from?
 
window.unknown_users_roomId
 
10:40 AM
Beautiful.
 
Boom. Nice
 
good luck finding out on your own though
 
:)
Oh fancy!
window.users
 
when your user id is 811, you're winning.
 
user2157210
Im deploying the pugs in office
 
user2157210
10:42 AM
coworker is on toilet will come back to pugs
 
lol
@Zirak did you know about window.users?
 
@OctavianDamiean Yep
That's what I'm using now
 
Ah, alright.
 
user2157210
lets see if i can get it done without connecting
 
user2157210
10:52 AM
works
 
user2157210
like a charm
 
user2157210
someone post a picture!
 
 
user2157210
oh cute a pug
 
!!/should i a or b
 
10:54 AM
@phenomnomnominal Command should does not exist.
 
!!should i a or b?
 
@phenomnomnominal b
 
!!should i keep playing bass or watch game of thrones
 
@phenomnomnominal You should keep playing bass
 
user2157210
10:54 AM
it is completly useless and the browser laggs for 5 seconds on every new message
 
Well done.
 
Sounds like some top notch code you got there laddie.
 
user2157210
let me show you the top class of coding
 
Can you execute a userscript before the page loads ?
 
user2157210
var el = document.getElementById("chat");
el.addEventListener("DOMSubtreeModified", Pugsallover, false);

function Pugsallover(){
dings = document.getElementsByTagName("img");
for (var i = 0; i < dings.length; i++) {
    dings[i].src = "http://www.pugs.nl/images/pug0607.jpg"
}
}
 
We0
10:56 AM
Hey guys
can i drop a random question quick?
 
5
Q: how to run greasemonkey script before the page content is displayed?

khr2003I am writing a plug-in for Firefox and using greasemonkey script to do that (I compile the user script using this tool http://arantius.com/misc/greasemonkey/script-compiler). The issue is that the script is run after the page is fully loaded. Meaning the user would see the viewed page in its or...

 
Bad bad bad
 
We0
?
 
user2157210
Let me call it the best performing JS you will ever see
 
We0
$('.test').live('click', function(){
alert('HERE');
});
 
10:58 AM
@OctavianDamiean thanks
@We0 live was deprecated for a long time and was removed in recent jquery versions
 
We0
yeah we use old version still
question being
now i add another element with class 'test'
but it isn't binded on the new element
 
We0
what is the best solution for this?
 

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