« first day (86 days earlier)      last day (4865 days later) » 
01:00 - 17:0017:00 - 23:00

1:40 AM
Oooo... there's a website called arguments.callee.info. Brilliant.
 
1:53 AM
nice
 
 
10 hours later…
11:29 AM
Morning
 
@Raynos Good morning
 
@IvoWetzel whats a good way of showing a printer friendly version of a page
 
@Rayn print stylesheets
 
For example: the same page but without the navigation menu bar on the left
 
@MathiasBynens Exactly that, also didn't know you had the same name as me!
 
11:35 AM
Rayn: @media print { nav { display: none; } } in your CSS
Ivo: So why pretend your name is Ivo? :p
 
@MathiasBynens is two extra letters too much effort.
 
@r yes
 
@MathiasBynens Turning things off is a nightmare. Its significantly more useful to be able to selectively turn things off. I.e. whitelist for printing rather then blacklisting.
 
@Raynos Fine, then just use @media screen {} for your screen CSS and @media print {} for your print CSS
 
@MathiasBynens I was thinking more along the lines of adding class="Printable" and then picking up all those elements and printing them.
 
@Raynos Just make a @print stylesheet :P
 
@IvoWetzel Is there some kind of way to display none to everything and selectively display block to other elements.
 
@Raynos Uh, last time I checked CSS was missing boolean logic...
(CSS sucks anyways)
You could try to use SASS or less
and then generate your CSS from that
 
Is it standard practice to make a user view a printer friendly version? or is using print stylesheets good enough?
 
depends on your data
 
11:50 AM
I guess so.
Theres only 2000 lines of CSS to go through and split up into media screen & media print :) lovely.
 
12:10 PM
@Raynos You don't have to split - usually the print stylesheet simply overrides the screen one
 
@YiJiang Hi there, any ideas on the garden CSS yet? If not, I'd like it to be HTML5, have thought about using html5reset.org
 
@IvoWetzel Think about the poor poor IE users! :P
 
@YiJiang :(
@YiJiang Do you really the the current site works in IE? :P
 
@IvoWetzel Erm...
IE6 will probably timeout because too many people are requesting it, but the other two are due in 5 min
 
waaaaaaay a ton of blinky images
I can check IE6 myself later
horray for job coaching centers still having only IE6 and an awesome Win Domain Lockdown
I can't think of anyone that still uses IE6 on non intranet
I mean... look at it
95% of the sites are completely broken...
Well leaving now, but don't worry...
@CodingKitten is here!
 
12:20 PM
@IvoWetzel I want to post that thing on SO
 
@CodingKitten Go ahead!
 
@IvoWetzel Well, that's the beauty of this room.
 
Sentences make too much sense...
Well I'll leave you with out SkyNet kitty :)
 
Source for the start of that 'Beauty' message:
2 days ago, by ircmaxell
Well, that's the beauty of Code-Bowling, you can pick a number of different meanings of it.
Nov 4 '10 at 6:28, by Tek
I wanted to post to a certain $_GET
Hmm... no not quite right
@CodingKitten Don't kill me! You're not an Insane Rogue AI, right?
 
@YiJiang Thank you have to something
 
12:25 PM
@CodingKitten Awww... sure you do
 
@YiJiang just earned my highest voted question)
 
1:11 PM
^ Looks okay, though there's some selector errors there I think
The pre code selector is been ignored I'm guessing
Truthfully speaking, the current style works okay - it's not very pretty, but it sort of works
 
1:33 PM
if (/^Good (Morning|Afternoon|Evening|Night)$/.test(this.toString())) alert(this.toString())
 
Can I overwrite parent inheritance in CSS ? (jsfiddle.net/Raynos/TjKbz/5 making this work)
 
@Raynos Can you be a bit more specific than that? You've got a syntax error there - the !important should be inside the ;
Anyway, no - the problem isn't inheritance
 
@YiJiang my bad. It's not inheritance I'm having trouble with. It's the concept of hiding a top level container and its children except for a specific child
 
@Raynos Yup.
 
1:49 PM
jsfiddle.net/Raynos/TjKbz/9 I actaully wanted something like this
Some kind of everything else on the page selector
 
@Raynos :not?
 
@YiJiang IE8 will complain wont it ?
 
Alternatively, use JavaScript to pull out that element on click of the Print this page button, then put it back after printing.
@Raynos It would, though I think ie9.js should support it
 
@YiJiang I want to show that element on printing and hide everything else. I dont want to show that element when not printing
 
Add a display: none in the screen CSS?
 
1:53 PM
@YiJiang its the hiding everything else when printing that doesnt work nicely. Because a parents display none effects all its children.
 
@Raynos Pull that element out and put it in a different element than the rest of the page
 
@YiJiang don't worry visibility hidden & visible fix it.
 
@YiJiang Holy, guess I can write magic CSS code that nearly works in IE6 without even knowing that I can write magic CSS code that nearly works in IE6
 
@IvoWetzel why bother to make it look good in IE6. I'm sure you can redirect the entire page through a proxy where it renders it in a real browser
 
@IvoWetzel Well, not really. position: fixed doesn't work in IE6, so...
 
1:58 PM
@YiJiang That's the problem with magic, you can't test it :P
@Raynos Let's just run Node.js in the Background, grab out the rendering from WebKit throw that into a .node module and if IE6 requests the page send out an image...
 
@IvoWetzel Brilliant idea!!
 
Anyone tell why this doesn't match?
Regex: /((^|>)[^<]*)(heart)/i, String "Heart Treatment"
 
@ircmaxell Because of the second Problem
 
:kitten quote
 
2:03 PM
> "There are only two kinds of languages: the ones people complain about and the ones nobody uses." - Bjarne Stroustrup
 
(including the literal quotes, that's included in the string)
 
@ircmaxell which regex type/language?
Matches in JS
 
PHP
Ahhh
I see what's going on
 
Hi.
 
I'm using that regex in preg_replace, but since the first capture group is greedy, it only matches the last occurance of heart, so only one gets highlighted instead of all
 
2:25 PM
hm
reading through the new websocket draft
can't find any big chances due to the the proxy problem so far
ahhhhhhhhhhhh
great!
So what do you do in order to prevent one from mis configured proxies?
Hm? Anyone wanna guess?
 
test?
 
Well, you throw on RSA encryption on the whole thing...
yes, each message now has an 32bit masking key...
based on the initial handshake value and some other stuff...
 
wait, what? To prevent misconfigured proxies, you encrypt the proxy?
wtf
 
  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-------+-+-------------+-------------------------------+
 |M|R|R|R| opcode|R| Payload len |    Extended payload length    |
 |O|S|S|S|  (4)  |S|     (7)     |             (16/63)           |
 |R|V|V|V|       |V|             |   (if payload len==126/127)   |
 |E|1|2|3|       |4|             |                               |
 +-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - +
>_>
 
curious
 
Are there any alternatives to CSS3 :not selector?
0
Q: Alternative to css3 not selector

RaynosAre there any alternatives to the :not css3 selector that are compliant with IE8 (and quirks mode). Either in css or javascript/jquery that emulates the selector or something similar. I am using *:not as follows below. Feel free to recommend a solution that avoids the use of :not completely. ...

@IvoWetzel Doesn't the whole RSA encryption through a huge bottleneck on trying to use TCP for realtime purposes over websockets?
 
@Raynos Bah! In the worst case it's just TCP -> TLS -> HTTP -> WS RSA
That will never be inefficient when used with games....
 
-.- People dont read the question and post an answer I specifically state is useless.
 
Wait, is this over HTTP? Or is it a new protocol over TCP? (Is it a level 8 or level 7 OSI protocol)?
 
It's still over HTTP
 
2:34 PM
@IvoWetzel I thought websockets are over tcp. And the handshake/connection alone is over http?
 
@Raynos It's all running over HTTP
 
So they built a binary protocol over a non-binary protocol over a binary protocol... Really?
 
@IvoWetzel then why call it a TCP socket :\
 
Ah wait ok
it's TCP
 
@Raynos Maybe #container * { visibility: hidden; } and #container #print { visibility: visible; }?
 
2:36 PM
But the handshake is being interpreted as HTTP
Still it's ridiculous to throw on RSA because of some broken proxies -.-
 
Handshake as HTTP?
 
@YiJiang that could work. I'll just replace #container with html
 
If it doesn't work... just add one more layer of abstraction
@ircmaxell Yes, it's an upgrade request
 
Ahhh
   The WebSocket protocol is an independent TCP-based protocol.  Its
   only relationship to HTTP is that its handshake is interpreted by
   HTTP servers as an Upgrade request.

   Based on the expert recommendation of the IANA, the WebSocket
   protocol by default uses port 80 for regular WebSocket connections
   and port 443 for WebSocket connections tunneled over TLS.
 
  User agents must not convey any failure information to scripts in a
   way that would allow a script to distinguish the following
   situations:
 
2:39 PM
That could be interesting...
 
@ircmaxell It was, now you'll have to write C code to get the shit fast and scalable...
Oh and those situations include everything
 
Nah
 
All you get is "was closed"
 
wireline is easy in most languages
Heck even in PHP it isn't bad...
 
@ircmaxell Yeah, bit manipulation is sooo fast in JS :P
 
2:41 PM
Well, does it even have the shift-operators?
<< and >>?
 
yes
 
Oh, and I've come up with an interesting solution to the Bowling challenge we described...
 
2
A: hasOwnProperty and ECMAScript 5 strict mode

Ivo WetzelAnd? I can kill of Object.prototype completely if I wanted to, don't include such code in your project/site, no do something better, find those idiots who are doing such things and make sure to kick'em in the balls. I mean, I can even screw up any given Python (2.x) program by doing True = False...

Gimme some upvote love :P
@ircmaxell That is?
@CodingKitten Vote me up!
 
@IvoWetzel i 11 in the past 30 days (+118 upvotes) dont really know what was really hard, adding all the typos...
 
@CodingKitten Then make that 119
 
2:45 PM
@IvoWetzel Is there some fancy way to guess how to pass this test, without checking the lack of any reference to do is to guess how to be async only
 
Well, I think I've come up with a way of encrypting off of the key where it first transposes the string (rot13, but the number is based of the key), then converting to brainfuck, then transposing the BF string based off the key, then compressing by moving all adjoined characters to one with a number after it (aaab becomes a3b). Then rotating the string by the key again.
If all comes out correctly, the original string should be retreivable by simply taking adding the value of the letter to the value of the number, and you get that character...
 
:D
Just make sure non one ever gets told how it works!
Oh and I addes some technical info to the answer :P
So it's not just ranting
 
This one hurt to post:
0
A: Is it possible to disable the iPhone's automatic hyperlinks?

ircmaxellIt's very hacky, but without knowing the internals of Safari and its auto-linking it should work as long as it's a HTML browser viewing it. Just toss some HTML comments in the middle of the link: http<!--dead-->://www.<!--dead-->foobar.<!--dead-->com/whatever... It's not per...

 
Jesus, each time I make a critique on w3schools, people gets angry
 
lol
Wow, only 1 more answer to 600...
 
2:58 PM
0
Q: Performance of OOJS over functional JavaScript programming

RyanP13This question relates to a previous question here: Reducing number of calls to the methods of a JavaScript object When profiling these two code snippets with Firebug: function ie6PNGFixLoader(scriptURL) { if(arguments.length > 0) { for (var i = 0; i < arguments.length; i++) {...

yay
slow use of arguments!
... is slow
 
Come on... not using a plain Array?
 
Reminds me of this question from last week:
0
Q: Efficiency of PHP arrays cast as objects?

keithjgrantFrom what I understand, PHP stdClass objects are generally faster than arrays, when the code is deeply-nested enough for it to actually matter. How is that efficiency affected if I'm typecasting to define stdClass objects on the fly: $var = (object)array('one' => 1, 'two' => 2); If the ...

 
are there any websites like jsfiddle.net and jsbin.com that don't put your content in a iframe but instead link you to a real html file with your content. Never mind jsbin does this
 
WTF?
Now I'm getting downvoted with a link to a post which proves my answer?!?!
I don't get it anymore
-1
A: Performance of OOJS over functional JavaScript programming

Ivo WetzelArguments is not Array it's an Object that somewhat behaves like an array. if(arguments.length > 0) { // Slow AND superfluous for (var i = 0; i < arguments.length; i++) { // Even SLOWER arguments[i]; // Holy... Cache the length, accessing the property is slow, IE6 won't have ...

would you downvote this? And why?
 
3:09 PM
People are assholes. Welcome to the internet.
 
+3 / -2 lol
SO you fail, you fail so hard...
 
+1
 
@IvoWetzel I think Pointy's answer is correct here
 
And I replied
 
I'm guessing a flaw in the benchmarking is the problem
 
3:13 PM
@ircmaxell Thx
@YiJiang Oh yes, should have ranted about that one too...
At first I just wanted to write about stupid premature optimization but thought "meh while you're right you'll get downvoted for sure" and it doesn't explain it to the OP
 
hehehe
I always go for the premature-optimization rant. Because it points out the user is stupid for even putting enough importance on the question to ask it. Then go into answering why...
 
I added it as an edit now
 
15
A: Is micro-optimization worth the time?

ircmaxellWell, for a trivially small array, $array === (array) $array is significantly faster than is_array($array). On the order of over 7 times faster. But each call is only on the order of 1.0 x 10 ^ -6 seconds (0.000001 seconds). So unless you're calling it literally thousands of times, it's not go...

(Proof that micro-optimization is bad)
 
God
Skeet has 256k
That should be enough for him now :P
Freeze his rep
Also while === is faster in JS, I wouldn't recommend it because of that, but because of all the coercion magic
 
0
Q: Using PHP SPL RecursiveArrayIterator with CakePHP find('threaded') results

atomicguavaI was wondering if this is possible? As an example, CakePHP find('threaded') gives you the following sort of data structure: Array ( [0] => Array ( [ArticleCategory] => Array ( [id] => 55 [title] => 2010 ...

is giving up on that
 
3:18 PM
Wat?
The guy has 30 rep and a goldy?
Ah...
question with 14k views
gosh...
there are 5 answers, 4 with +0 and one with +1 on that question :D
 
LOL
And it's a confusing question too. Not the straight-forward type that usually gets viewed/upvoted like that...
 
@IvoWetzel Flag for mod attention - that question seriously need cleaning up
The only answer is the accepted one - all others are... well, oddities of first-time-userness
 
@YiJiang Done
@ircmaxell ...
 
@ircmaxell Ohhh nice one here
 
3:34 PM
Code review: stackoverflow.com/questions/4639319/… I suspect that I did something wrong with my first method, causing the link to be changed somehow and not work
Since I really doubt that removing a http image request would affect the functioning of the button
On the surface at least the first method works - the popup opens and you're presented with a login window
0
A: How to stop Javascript from showing default image and only text for link?

Yi JiangAssuming this is legal (it may not be legal to embed this script in your site if you make modifications to it), we can decompress the script using an online JavaScript beautifier. The result is this: http://www.jsfiddle.net/T4Rrh/ The bit we're interested in is the last for loop there, whe...

 
  ("https:" == document.location.protocol) // I hate this...
 
@IvoWetzel Yup, esp. with protocol independent URLs
 
uhhh
 
@YiJiang Actually I was talking about that C coding style
"Oh no! I'm so stupid I might forget a = !"
 
Well, it shifts responsibility to the compiler for detecting mistakes.
 
3:39 PM
@IvoWetzel Heh...
 
I don't do it often, but I don't mind it either
 
@ircmaxell ===, JSLint, brains :P
Also, there's no compiler....
 
Well, the interpreter at least
 
Nothing will complain about "https" = foo until it's being run
 
@IvoWetzel And a good editor with detection for this sort of illegal code
 
3:41 PM
So in the end, your code still breaks, because you didn't use the right tools but stupid coding style... entering rant mode...
@YiJiang I already type === out of habit in none JS code...
 
Well, it's a convention. A convention that's designed to prevent bugs. There are lots of them, including always using braces, indenting properly, etc. This is just one that doesn't also enhance readability.
 
dude...
Now that this OOP answer got accepted
I'm down to -1 on it
Then why downvote in the first place?!?!
 
down to -1?
 
é_è
 
@ircmaxell It was a -2 /+5 now it's only -1/+5
0
Q: JSON: retrieving data from http

LewisI am new in JSON. This is the code that I make an attempt to retrieve data from http Json. But it doesn't display anything when I run it <html> <head> <title></title> </head> <body> <div id="result"> </div> <script type="text/javascript"> f...

ahhh eval, and maybe even cross domain...
 
3:51 PM
Wow...
people are/can be stupid...
 
lol to the first comment.
 
2
Q: JavaScript: Array Rename Key

Jean VincentIs there a clever (i.e. optimized) way to rename a key in a javascript associative array? A non-optimized way would be: a[ new_key ] = a[ old_key ]; delete a[ old_key ]; Thanks in advance for your help.

god...
stupidity
the first answer
 
good god
 
he fixed it now
 
@IvoWetzel The Object prototype, should have stated that explcitly
 
4:00 PM
@YiJiang Gnah... you're right
only 3 days or so left to 10k...
Then I can spend all the new rep on downvotes >:D
 
lol
-1
Q: Using PHP SPL RecursiveArrayIterator with CakePHP find('threaded') results

atomicguavaI was wondering if this is possible? As an example, CakePHP find('threaded') gives you the following sort of data structure ($cats): Array ( [0] => Array ( [ArticleCategory] => Array ( [id] => 55 [title] =&g...

 
4:16 PM
im writting a firefox extension and can get content.localStorage.getItem('foo') to return information by not content.localStorage.length.
 
wow. He just doesn't get it...
 
any reason why?
 
4:37 PM
hi everyone
 
I want to ask a question incredibly similar to a question I already have on stackoverflow (one of the critiria changed subtly and broke the accepted solution) How do i go about doing this?
 
Guys need urget help , can i post a link to my question in stackoverflow here ?
 
@Raynos Ask the new question, refer to the old one and place special emphasise on the parameter that has changed, so people don't mistake the old question for the new one
@RonanDejhero Sure, but it's not going to get anymore eyeballs than it will on SO
 
@YiJiang the title will be the same :\
 
@Raynos If it's that minute a change, consider editing the old question? How old is the old question anyway?
 
4:45 PM
@RonanDejhero If it's urgent, go and tell us
quick !
 
0
Q: js not working on IE , but working of ff and gc

Ronan Dejherohi all , i have this line of code : document.getElementById(object).innerHTML=data; where object is equal to 'index' (which is an id for a div in the html) and data is some text ... no errors on firefox or chrome , but internet explorer gives me "Unknown runtime error" !!! i'll become bald soo...

 
@YiJiang a few hours. The one about the print style sheets. and an alternative to :not It's just making edits like that breaks other people's answers.
 
@Raynos If so then you probably might want to ask a new question
 
@RonanDejhero > did that , the code worked ... – Ronan Dejhero <-- it means object or data is wrong. Can you post your js in an edit of your question ?
 
<tr class="Heading3">
;_; HTML like this makes me want to cry
 
4:50 PM
@YiJiang whats wrong with that?
 
@Raynos First, he's using tables for layout. Second, he's using a table row to emulate a <h3> element.
 
@YiJiang ;_;
 
T-T
 
@YiJiang is it valid to delete the old question?
 
@Raynos No, absolutely not
 
01:00 - 17:0017:00 - 23:00

« first day (86 days earlier)      last day (4865 days later) »