« first day (164 days earlier)      last day (4789 days later) » 

Tom
12:00 AM
and not a single f*ck was given that day
 
Anyone here use Sencha Touch?
 
not me ;)
 
Tom
is this a woman on stackoverflow?
ALIEN!
 
@Tom yeah looks like that, but not the first one.
look @RebeccaChernoff is here and lots other.
 
Tom
zomfg...
 
12:12 AM
Hey there's TWO female developers where I work
 
WOW!
 
Tom
after 5 years in the business, I had given up my hopes of finding a woman
everything changed ._.
 
lol
i used to work with one
rare
 
Tom
calls his shrink
 
@Sharon no I've only dabbled with jQuery Mobile.
 
12:16 AM
Can anyone see why i cant make the date (diagonal behind post) BEHIND the post content?
i've tried z-indexing and different positions of the time elem but no luck :/
its always in the foreground
 
@MylesGray again, works for me in chrome10 on win7 :)
(please don't make me fire up firefox again!)
 
myles
 
@Nathan thats an illussion
 
what browser are you using
 
try click the links
 
Tom
12:18 AM
doesn't work for me with chrome 10 on ubuntu 10.10
 
@MylesGray oh
 
ill changge the opacity hang on
okay try that
 
position:relative; z-index: -1;
 
so one difference is that on the post page, the date is a link, but not on the index page
 
lol
or just change the order
 
12:20 AM
er, now it's borken on both for me
it was working on the index page.
 
so that the element is before the content that needs to be on top of it
 
@Nathan the post page hasnt been styled yet
 
also you're floating
i think that fucks it up
you may want to just wrap those floats in a div
 
@ChadScira the position:relative fixed it
no need for z-indexing
:)
 
Tom
awesome :D
 
12:36 AM
is there a way to test focus in chrome?
 
Tom
@MylesGray add tabindex="0" to any element and it will fire focus and blur events
 
cool :)
oh man, search form glows now, thats awesome
 
Tom
:D
ok im going to sleep now
have a nice evening/day
bye bytes
 
@MylesGray nice glow but black on gray inside the searchbox isn't very friendly :)
 
must whiten that :)
fixed
 
12:42 AM
also may I recommend wp-syntax-hacktify which you will want before too long...
 
awesome!
i was going to prettify plugin though?
 
yah sure
when I was shopping, wp-syntax was best, but there are probably better alternatives these days.
 
anyhoo bed time :)
thanks for your help!
night all
night @Nathan
 
gnight
and @MylesGray thanks for mentioning prettify, I had not seen that before.
or I guess I had seen it here, but not seen the code for it.
 
1:02 AM
 
hey can anyone explain how to get data back from a JSON request with jquery
?
 
back?
JSON response
 
yeah im using a JSONrequest with jquery
im new to JSON and im not sure how to send the data back
im trying to use tinyURL's api
i can post some code if you want
like for example i have this
function TweetThis(bigurl)
{
$.getJSON(
"http://json-tinyurl.appspot.com/?&callback=?",
{url: bigurl},
function(data){
var newurl = data.tinyurl;
return newurl;
}
);
}
and in im called it like TweetThis(url) how can i save TweetThis(url) as a variable it shows up as undefined
 
2:00 AM
Wazup?
 
 
4 hours later…
6:30 AM
5k rep :) Going to need to change my templates from jade to ejs.
 
congratulations
i made 0.5K ! lol
 
Keep going:)
 
I will :)
hey @Raynos do you know any simple jquery dropdown menu ?
 
hello all
 
holla @experimentX
 
6:40 AM
hello all
how are you doing today
 
not bad
self ?
 
@OmeidHerat simple? Write your own. There really not hard
 
well, just doing fine
 
I know, i did but it keeps going up and down :P
 
...
 
6:43 AM
@raynos have you ever used the filter :has ?
$(document).ready(function() {
("ul").removeClass("nojs");

$("ul.top-menu > li:has(ul)").hover( function() {

$("ul", this).slideDown("slow");

});

$("ul.top-menu > li:has(ul)").mouseout( function() {
$("ul", this).slideUp("slow");
});


});
 
hey @experimentX
Hey Omeid
and hello all.
 
hey @Dinzy
 
hello @Dinzy how have you been doing
 
how you going ?
 
Im good fellas, how are you doing?
 
6:44 AM
well, just fine
 
;)
 
Woho now my dropdown menu is fine and shine :D
 
congrats
 
Show real code blocks
 
tnx man
that is the real code dude
 
6:46 AM
Man. Express is awesome
$(document).ready(function() {
    $("ul").removeClass("nojs");

    $("ul.top-menu > li:has(ul)").hover( function() {
        $("ul", this).slideDown("slow");
    });

    $("ul.top-menu > li:has(ul)").mouseout( function() {
        $("ul", this).slideUp("slow");
    });
});
That is real code.
 
ahan now i got it :D
 
$(document).ready(function() {
    $("ul").removeClass("nojs").find(".top-menu > li:has(ul)").hover(function () {
         $("ul", this).slideDown("slow");
    }).mouseOut(function() {
         $("ul", this).slideUp("slow");
    });
});
And that is nicer.
 
@Raynos: Uncaught TypeError: Object [object Object] has no method 'mouseOut'
i have fixed that but yet the new code dosn't works.
 
Thats a typoe :D
 
i know, but yet it dosn't work with the find() :(
 
6:58 AM
$(document).ready(function() {
    $("ul").removeClass("nojs").filter(".top-menu").find("li:has(ul)").hover(function () {
         $("ul", this).slideDown("slow");
    }).mouseout(function() {
         $("ul", this).slideUp("slow");
    });
});
My bad. You wanted to filter the top menu and find the li's
 
Thats because the damn thing fails :P
 
i don't know why does the the slideDown or Up is triggered with the li that dosn't has a ul even though I use :has(ul) .
 
morning guys!
 
morning @luca
 
7:05 AM
hi @omeid
could you give a look to this please.. cant' get rid of the first trailing comma
 
morning luca
 
morning @Dinzy
 
@luca, if you don't want to have the comma why would you add it ?
 
i dont want the comma since there's no text before..and that happens when deleting the first user on the list
=)
it works fine for all of the other element in the list except the for the first comma..instead of removing it removes the last due to the enegative index
 
7:23 AM
@luca put the comma in a span and remove the .next() :D
 
naa
 
Anyone got an idea why Box scripts like lightbox and such dont "allow" other jquery scripts to work in them?
like lets say i have piece of code that hides element if another element is visible in the page.. this would work outside any box script but as soon as you point it to box scripts element.. it doesnt do a think
 
8:04 AM
Good morning all
 
morning indeed
 
morning!
 
First day at new work.. boss said explicitly in the new email work starts at 8:30
what time do they get here?
9:10
Standing in the cold for 40minutes :P
 
ahaha I love this:
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jque­ry/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('scri­pt');s.src=ss[i];document.body.appendChild(s);}void(0);
 
its awesome
the ball thing?
 
8:13 AM
yeah!
who wrote it?
 
aliens?
 
8:39 AM
@MylesGray
much clearn:
$(document).ready(function() {

$("ul").removeClass("nojs").filter(".top-menu").find("li:has(ul)").hover(
function() { $('ul', this).slideDown('slow'); },
function() { $('ul', this).slideUp('slow'); });
});
 
8:54 AM
cleaner*
 
it does seem to be working quite fine
 
yup, it does @Lollero
 
9:23 AM
Good morning.
 
morning
 
 
1 hour later…
10:29 AM
when you set only the width or the height of an image, so the other dimension is automatically created, how would you find out the automatic dimension?
 
offsetWidth might help.
 
10:51 AM
its so strange ! my css/javascript is fine in jsfiddle but not in side the porject :(
 
@OmeidHerat Did you have a reset stylesheet?
jsfiddle comes with a normalize stylesheet that tries to override some of the default user agent stylesheet
 
yeah but i also include that in the jsfiddle @YiJiang
 
@YiJiang fixed all the buggy stuff: beta.mutant-tractor.com/?page_id=9
 
@MylesGray What I meant by that yesterday is that when you hover over the sidebar elements, the style change, but the clickable area isn't the same as that of the area that the hover style applies to
 
10:55 AM
@YiJiang it is fine on chrome and firefox but in IE if i put that all in files and open it from my computer the drop down shows all the list items (li) and only the background color will slidedown :(
 
@OmeidHerat Do you have a valid doctype?
 
yup html5
 
@MylesGray The search button is still on the second line for me
 
I have also tried the exact doc type as jsfiddle but still the same.
 
cool
didn't know about this chat
is it better than freenode?
where can i see the nr of people that are in this room?
 
11:00 AM
top right each avatar is a person.
 
@weng it isn't as populated as freenode
 
@YiJiang still? Its fine in all my browsers :/
Ill change that clickable area too..
 
@weng we should tell the guys in freenode about it, maybe we could get a few really active chats here in SO
 
yeah but the experience is nice
smoother than irccloud.com
i wonder what tech stack they used for this chat
node.js? =)
 
there we go @MylesGray someone talks nods.js !
 
11:02 AM
Hi all, I am new to JS I need a script to zoom text in multi-column of CSS3 but if there is any image in the column is static (I mean no movement when changing font size). thanks in advance I am searching this for last two weeks please help me
 
@OmeidHerat what about it
 
@weng will there isa few people who talk about node.js and @MylesGray is a hardcore fun of node.js ;)
 
not on node.js channel on freenode=)
everyone is talking about it there
:)
this chat is awesome
so smooth
 
will we got a node.js room here as well but there is less often even more then 3 people which one of them is always @MylesGray for sure :D
 
=)
its not simple to switch
a lot of desktop irc clients like colloguy that isn't compatible with this chat
 
11:06 AM
there is work to make SO chat work on irc clients
 
but what they really need is to hook up SO into freenode
 
will this chat has no client side, its all browser based for now and @Greg said the point.
 
it has to hook up into freenode
not just using an irc client to chat
forum (SO) vs network (freenode)
SO has no chance =)
489 users in freenode javascript channel
493 on node.js
 
omg this is new to me
 
11:10 AM
@RalphCowling you are coming from freenode?
 
weng yeah, via irccloud
 
@RalphCowling: you clicked on my link?
:)
 
can you hook to an irc client from this? I'm assuming this has already been discussed in detail
/me scrolls up
 
@YiJiang did you saw my code ?
 
aha, that suggests a possible no
 
11:12 AM
it would be better if everyone could chat through freenode.js channel
no matter from which ircclients, forums, apps etc
anyway
back to irccloud =)
too empty here!
 
@OmeidHerat are you not getting me confused wiht @Raynos?
 
oh my bad @MylesGray i meant @Raynos :D
 
@weng (you are reading this with Joker's voice) "out community is small, but there is a lot of potential for aggressive expansion"
 
11:43 AM
What do you mean.
@weng there is no discussion on node.js channel. Its always dead when I go there
 
 
2 hours later…
1:30 PM
Is it possible to unit test layout?
Does anyone have a heuristic that takes a HTML file and tells me how visually pleasing it is?
 
@Raynos O_O
I'm gonna go with "no" on that one
 
Heh, just discovered that you can make console methods inherit from Function.prototype in IE 9:
2
A: Does IE9 support console.log, and is it a real function?

Andy EIn Internet Explorer 9 (and 8), the console object is only exposed when the developer tools are opened for a particular tab. If you hide the developer tools window for that tab, the console object remains exposed for each page you navigate to. If you open a new tab, you must also open the devel...

Not sure why anyone would ever need it, but I am the uncrowned king of writing useless code.
2
 
lol
 
@Andy too bad that answer will never be accepted... worst acceptance %age ever
 
@Mike: true enough, but it makes a change from writing the same old JS answers :-)
In all fairness, he only has 5 questions :-p
 
1:41 PM
And he's crushing it this week too
that might help
 
Anyway, I'd better stop answering IE related questions before @Raynos accuses me of working for MS again.
 
Weird... I always just assumed you were on the IE advocate team
You're "that" guy that works on IE7 fixes cuz China demands m$ fix it
 
haha nah, I just have to do a lot of work in IE.
 
0
Q: Automated visual layout testing

Raynos Is it possible to unit test that something is visually rendered as wanted (for some definition of wanted)? Specifically for HTML and CSS renders your page as "expected" I would personally imagine such tools allow you to define a test in a declarative manner of how something is supposed to look...

 
@AndyE You poor fellow.
 
1:43 PM
@AndyE MS EMPLOYEE!
 
There he is!
 
@AndyE Someone said same old JS answers? I give you: same old JS questions!
 
I think if we vote on it and majority rules then it must be true
 
@YiJiang that is hilarious
 
@YiJiang What's wrong with these Javascript questions?
 
1:45 PM
@YiJiang lol! Why do people think that will get their question answered...
nm actually that probably works...
cuz ppl like @AndyE will wait around all day for questions like that :P
 
@MikeFielden Because the people asking these questions are usually the ones least fit to come up with a good title?
 
What are actually appropiate tags for the above question?
 
Touche... sir
"Do my work for me"
3
Q: Going "Stateless" and loading scripts dynamically

Mike FieldenWhat I want to know is if I am approaching this from the right angle. I have an asp.net app I am building. I am using a Masterpage for the overall look of the app (below you can see the code). I'd like to have the menu system use a dynamic load like jQuery's .load() function to load the conte...

Anyone understand what im attempting to ask here?
 
Don't know. I'll actaully read/think lter (generic use require.js answer)
 
hey, I've used FileReader.readAsDataURL() to put the data into an img src ... what's the method to retrieve this data for uploading?
 
2:25 PM
Look at this:
WHO thought it was a good idea to give rows to be deleted the first and last name of DELETE
SELECT MemberID FROM Members WHERE FirstName='DELETE' AND LastName='DELETE'
In upper case too >.>
SQL fail
 
Brilliant indeed
 
Haha, quite.
 
@Greg I have no idea. Never used FileReader
 
3:07 PM
@MylesGray :D
DELETE FROM Members WHERE FirstName = 'DELETE' AND LastName = 'DELETE'
 
@Raynos I know, I'm hesitant to run the query in case some weird shit happens
 
LIMIT 1 it
 
@Greg ?
 
alllllllways LIMIT your queries
 
yeah 50K records in that table so... :P
 
3:09 PM
or add a IsDeleted column?
 
@MylesGray back ups :D
 
then the record doesn't actually go anywhere
 
Anyone a pro at ASP.NET MVC 2 ?
 
we haz backup but i dont wanna rely on that :P
 
I'd add DeletionDate
 
3:10 PM
@NickCraver o/ Your not dead?
 
for normal usage, WHERE DeletionDate IS NULL
 
ah okay cool
 
the reports of my death have been greatly exaggerated
6
 
Is Nick Craver a chat admin or something? Name is blue for me
 
I was just thinking the other day. It's not like those good old days where we had @AndyE and @NickCraver in the JavaScript room
He's a SO mod.
 
3:11 PM
ah well that explains it
 
I work for SO these days :)
hence the busy-ness
 
@NickCraver: and less time chatting? :-p
 
@NickCraver are you suggesting you work harder at SO then you do at your previous company
 
@Raynos - there's a lot less waiting on other things happening, and always stuff to do, so I'm more utilized I'd say
 
@NickCraver or you care about SO ?
 
3:13 PM
@AndyE a bit :)
 
@Loktar blue names are not admins, nor are they owners. THEY ARE GODS
 
lol
 
@Raynos eh, I care about all my jobs....don't make something if you wouldn't be proud to have your name on it
 
@NickCraver money is money?
 
SO is a bit different, it makes "agile development" look like a 110year old in a wheelchair
where else would you deploy production multiple times a day? :)
 
3:15 PM
Hmm SQL Server no likey LIMIT 10
 
can't get the trololol song out of my head
 
why limit your deletes?
 
@NickCraver its a select not a delete
the column values are "DELETE"
 
oh yeah no-go for sql server, you need rank there
 
some idiot named the values after a SQL function
 
3:17 PM
do you just want the first 10?
 
@NickCraver yep thats the one :)
 
TOP 10
 
oh okay cool thanks!
 
for ranges like .Skip(10).Take(10) style you'd need ROW_NUMBER()
np
 
hmm strange it no likey my query:
SELECT MemberID
FROM Members
WHERE FirstName='DELETE' AND LastName='DELETE'
TOP 10;
 
3:19 PM
SELECT TOP 10 MemberID
FROM Members
WHERE FirstName='DELETE' AND LastName='DELETE';
 
JavaScript === SQL ?
 
Ahhh i see
stupid
 
@Shaz - sure! in HTML5
HTML6 is all sql
 
@NickCraver True...
 
JavaScript == SQL //true
JavaScript === SQL //false
 
3:24 PM
lol
 
SELECT * FROM languages WHERE JavaScript = SQL
 
what would cause this to go into an infinite loop (but not the following)?
    function onFeedLoad(layer) {
	    var numShapes = layer.GetShapeCount();
        console.log( layer.GetTitle() + ' numShapes ' + numShapes ) //displays shapecounts of between 25 and 150, so not really a lot of looping
	    for (var iCounter = 0; i <= numShapes; ++iCounter)
	    {
		    var shape = layer.GetShapeByIndex(iCounter);
            //chrome throws error here:
            // Uncaught TypeError: Cannot read property 'IconId' of undefined
            //so we should test for undefined, which causes an infinite loop, nice
 
ew
 
    function onFeedLoad(layer) {
	    var numShapes = layer.GetShapeCount();
        console.log( layer.GetTitle() + ' numShapes ' + numShapes ) //displays shapecounts of between 25 and 150, so not really a lot of looping
	    for (var iCounter = 0; i <= numShapes; ++iCounter)
	    {
		    var shape = layer.GetShapeByIndex(iCounter);
            //chrome throws error here:
            // Uncaught TypeError: Cannot read property 'IconId' of undefined
            //behaves as expected but no infinite loop
 
function onFeedLoad(layer) {
    var numShapes = layer.GetShapeCount();
    console.log(layer.GetTitle() + ' numShapes ' + numShapes) //displays shapecounts of between 25 and 150, so not really a lot of looping
    for (var iCounter = 0; i <= numShapes; ++iCounter) {
        var shape = layer.GetShapeByIndex(iCounter);
        //chrome throws error here:
        // Uncaught TypeError: Cannot read property 'IconId' of undefined
        //so we should test for undefined, which causes an infinite loop, nice
 
3:30 PM
@Raynos save me the snobbery
 
I was complaining about not running code through jsbeautify before dumping it
Cant see why thats an infinite loop
 
i <= numShapes
 
unless numShapes is Number.Infinity
 
should be: iCounter <= numShapes
 
... That's such an annoying mistake to spot. Well done.
 
3:32 PM
the more you make it, the easier it is to spot :)
 
@NickCraver stupid coworkers code ... thanks
I knew I needed a second pair of eyes
@Raynos yeah, my apologies, thought it was gonna be another "no closures" snobbery that I get in here from time to time, also, I hit "fixed font" out of habit, even though it all had four leading spaces and then some.
thanks again @NickCraver and I'm gone again
 
anytime
 
3:49 PM
I hate it when people edit really old questions
and bump them up in the active list. I keep leaving comments telling them "Woh! don't do that"
or generally replying to questions 2 years old
 
How do I delete all references to a field across linked tables?
I have a member that is linked to a "missed class" field in another table and i just want to to delete all references to the user across all tables
 
Set the relation to CASCADING.
 
@TVK how does that work?
 
@MylesGray make sure that you dont cascade the entire database. It works like dominos. Rather then deleting a single domino your pushing it and then they all fall
 
@Raynos you mean if it deletes a value that is linked to something ese it will create a chain reaction?
 
4:00 PM
That's how cascading works, yeah. Only use it if whatever you're deleting needs to have its related entries deleted as well.
 
@TVK Well I want it to delete the entire row related to that member in every table
 
If you want to keep the entries but remove the cells that point to the newly deleted entry, use NULLIFYING.
Then cascade away. : )
 
but I dont want it to delete specifics like the classes those members were attached to
which will be referenced in a relating to them somewhere
 
It will only delete the entries that point to that one, not the ones that the entry you're deleting points to.
 
@TVK I haz this:
what exactly is it telling me?
 
4:05 PM
I think it's saying something like "Shit's messed up, yo.".
2
I'm not sure what you did, so I don't know why it's giving that. :p
 
hmm... interesting I must find "this shit"
 
@MylesGray Right-e-o. : )
 
I think it's telling you that there's a reference to a Member in the MissedSessions table. So, delete the records from MissedSessions where the member matches any you're trying to delete.
 
Dinner, brb.
 
@RyanKinal so do I need to define a foreign key then add an ON DELETE to it?
i really shouldnt be practising CASCADE DELETE on the database all the company's records are in...
 
4:23 PM
@MylesGray xD
 
@MylesGray I'm really not sure (also, sorry, got pulled away). I'm no SQL expert, but I know enough to find my way around
 
Ooh, my second silver badge. :P
 
@Shaz Congrats. : )
@MylesGray That's a very good idea. ;p
Back-ups are your friends.
I need to say more funny stuff to get stars for my silver badge.
 

« first day (164 days earlier)      last day (4789 days later) »