« first day (215 days earlier)      last day (4735 days later) » 

12:15 AM
I'm including the last 5 versions of jquery in one file, just to be safe.
And when I host on github I like to make sure my latest commit has folders for all previous versions in the root, just incase.
Also, I smear my keyboard with the blood of my ancestors.
Talk about usable documentation... code.google.com/chrome/extensions/manifest.html they list the example by importance, but sort explaination by alphabet only.
 
 
1 hour later…
1:22 AM
0
Q: Create Variable in PHP Equal to Current Time Minus One Hour

JohnHello, In PHP, how could I create a variable called $livetime that equals the current time minus 1 hour? Thanks, John

 
Could he not figure out 60*60?
 
user1385191
1:40 AM
color tween from black to white over 20 frames at one frame per second: jsfiddle.net/mkmcdonald/B8tYP
 
user1385191
blech, the init value goes down the toilet
 
thats pretty cool
 
user1385191
needs a ton of work
 
@MattMcDonald next up: adding some flame .gifs and putting it up on GeoCities with an "Under Construction" image :p
 
2:04 AM
@MattMcDonald hmmmm i see the earlier comments on chat, what was going on?
 
user1385191
your code was busted
 
user1385191
Raynos + I couldn't re-engineer it
 
@MattMcDonald what was rong with my code? it worked
 
user1385191
Raynos said it needed jQueryUI
 
@MattMcDonald it doesnt.
nm
yes
to do the .animate u need UI
that was used by the OP
not by me, the OP wants animate
 
user1385191
2:07 AM
so I've been working on something that animates color
 
"Someone suggested SAX but suddenly died when asked how?"
 
user1385191
it's still wonky because it just increases the color at an interval until it hits the end value
 
user1385191
so it's not a true "tween"
 
@MattMcDonald why are you remaking the wheel?
 
user1385191
2:08 AM
I'm assuming it would have to be a saturation tween
 
user1385191
the same reason I code at all
 
user1385191
to learn and get better
 
oook
my teacher always told me there was no reason to reinvent the wheel
 
If only programming where as simple as making wheels
 
@Neal A school project could be constructing a wheel, to learn engineering techniques.
He's reinventing color tweening to better learn how to program.
 
user1385191
2:12 AM
@Neal it's also a common term thrown around with JS when writing your own code vs. using someone else's
 
user1385191
personally, I hate it
 
Programmers solve problems. The best way to get better at solving problems is to continually solve new ones. That way, when a new problem is encountered, you have a wider toolset of possible related solutions to help approach it. A new and unique problem that you haven't taken on before can lead to new windows of opportunity into learning different ways of approaching a problem. This can hold true for any size problem.
 
oook
 
2:51 AM
0
A: c exec embeded in webpage

onteria_Looking at your comments, I hear you mention students and running simple programs. As a suggestion, you might want to look into CodePad. This will let you interpret simple C programs. Note that everything needs to be in one place, so you'll have to combine C and header files. Here is a sample: ...

Er.. I meant that as a comment link
but yeah, this feels like one of those "better than nothing" answers unfortunately :/
 
C to JavaScript compiler?
 
@Na7coldwater That sounds so evil... I be someone's already done it ;)
 
Yes, someone has.
I don't remember the url.
Nevermind, found it:
 
hah, found it right as you did
 
Could you compile Linux into JavaScript?
 
3:01 AM
Well someone posted a Linux VM here written in JS
 
Really? Where?
 
3:57 AM
The closest I'll ever be to Jon Skeet is the weekly rankings
No answer -> Write an answer -> Suddenly 4 answers
 
user1385191
c'est la vie
 
user1385191
oh, I see the question you answered
 
user1385191
yeah, don't bother with generals
 
user1385191
lol, 6 answers
 
I usually end up answering those because I don't see any answers and everything else has been answered
I should check ones with answers and no accepted anyways and see if I can provide a more in depth answer
 
user1385191
4:02 AM
try a differing answer
 
user1385191
like RegExp.test(string)
 
user1385191
var str = "Hello, World!";
var patt = /Hallo/;
alert(patt.test(str)); //false
 
I have this good/bad habit of responding to code where I notice multiple issues with detailed explanations of "by the way, about this line too".
 
user1385191
that's a good habit
 
Especially if I see unescaped user input going into the db
Though, it depends on how long the code is
If I see code for miles I'll pass :p
 
user1385191
4:04 AM
you bring value to a question with answer spam by mixing it up
 
user1385191
you could've used String.split or String.match(RegExp) as well
 
I could always learn some obscure software and answer questions about it
 
user1385191
those sections suck, trust me
 
user1385191
(used to frequent the flash section)
 
Or C#, but I don't feel like picking it up (at least not right now)
 
user1385191
4:06 AM
yeah, good luck mopping up rep from skeet
 
I have Java, python, ruby, C#, objective-c, ios, android all in my ignored tags
 
user1385191
Ignored Tags
java c# c c++ objective-c jquery
 
user1385191
;)
 
Android was the first one I ignored
 
user1385191
the last one really cuts down on the noise
 
4:08 AM
I take the bash ones sometimes
time to sleep, or attempt it
 
 
1 hour later…
5:19 AM
RT @diveintomark: Well, this is up and running: https://github.com/diveintomark/diveintohtml5
RT @beverloo: Microsoft proposes the #CSS3 Floats and Positioning module http://goo.gl/dxSgc
RT @gskinner: Committed a few bug fixes & feature additions for TweenJS: https://github.com/gskinner/TweenJS
 
5:35 AM
W3C Blog - Karl Dubost: Open Web Platform Weekly Summary http://goo.gl/cGxRA
 
 
4 hours later…
9:20 AM
$(document.body)[0] jQuery is the best.
 
RT @jreschke: for those waiting for Firefox5 beta to surface: http://blog.mozilla.com/channels/2011/05/11/merge-dates-vs-release-dates/
 
 
1 hour later…
10:27 AM
hi there
how can i add the root url to the href?



jQuery('#breadcrumb li').prepend('<li><a href="root url here">Home</a> > </li>');
 
@user472285 window.location.hostname
 
 
1 hour later…
11:46 AM
"PHP MYSQL HELP ??????please its urgent…!!!!!!" ignores
 
@onteria_ Where?
 
@YiJiang One of the recent php tag questions
 
@onteria HELP URGENT HELP PLOZ
Y U NO WARK ASP
HELP ME.
 
@Raynos "HALP ME" ftfy
 
@YiJiang ftfy ?
 
11:56 AM
@Raynos Fixed that for you
 
12:54 PM
People not getting that Unicode != UTF-8
 
1:11 PM
@onteria_ Only ancient wizards understands the dark arts of charecter encoding.
Which is why everyone should stop this stilly ASCII, ANSI, UTF, nonsense and just use EBCDIC like a real programmer.
 
what's this EBCDIC?
can you expand it..
 
1:53 PM
Mac: "Hey Windows, yo momma so FAT32, they don't put her in a partition table, they put her in a dinner table!"
@user257493 I mainly have to deal with all of it because I've been studying Japanese for awhile, so I was pretty much forced into understanding it
 
@onteria hello mate how are you today ?
 
@Xavier Enjoying the day for now, it's gonna get a bit rough later
 
@onteria typical day then :D
 
I'm thinking of picking a user name. I want to make a big deal out of it.
 
@Xavier nah, it's usually pretty smooth. Just deadlines from hell®
@user257493 I recommend "Scientology" if you want a strong impact
@user257493 I can't guarantee that it will be a positive impact though
 
2:06 PM
@onteria it's good you added the Registered symbol after hell, or you would be see'n the Vatican in court :D
 
Which one of us was the twitter hater?
 
2:24 PM
@user257493 not me that's for sure
I get this weird feeling someone's downvoting me out of pure spite
 
RT @hsivonen: Added validation of the alt attribute on <input type=image> to Validator.nu.
 
2:44 PM
why do people downvote without even giving reasons shouldnt that be disallowed?
 
Sometimes it's obvious?
"Exception of type 'System.Web.HttpUnhandledException' was thrown."
USEFUL, ASP.NET. REALLY USEFUL.
 
@LaurenceBurke Please, don't even go there
 
I mean really for answers to questions. Allowing people to downvote without even having to explain
 
@LaurenceBurke Please, read. If you think you have something new to say, after reading through this list, then by all means do so
 
just wanted to tests the waters so to speak
 
2:47 PM
You get downvoted? Oh well, answer other questions, move on, there's more important things to worry about.
That's probably directed towards myself as well
 
Karma systems have amazing psychology if you ever read up on some papers.
 
Sam
Hi all
 
I've put karma into my office's intranet.
 
hello
 
Hi sam.
 
2:50 PM
Badges too
See 4square for a great example of people going out of their way for badges
 
Sam
i have a issue
hope some one can help me
 
what kind of issue
 
early morning there/their typos for great justice :/
 
I'm using Karama as a general term for all "you're awesome here's something" systems. Badges, points, ranking, leaderboards, unlocked features, etc.
 
Sam
really appreciate it
i am using jquery.ajax call
to talk to a restAPI
 
2:51 PM
I loathe these "What's the best ..." or "What's the fastest ..." type questions
 
well rewards stimulate change in behavior is a good indication why those things are effective
 
Sam
so once i am execute the RESTAPI call
 
wretches on the floor ... we need to somehow end regex... github.com/perlpilot/perl6-docs/blob/master/intro/…
 
Sam
my jsesssionID get changed
hence
i can't proceed with my other ajax calls
i am thrown away from spring security
 
Sam
2:53 PM
i tracked it using httpFOX for firefox
 
@onteria First, I thought I was looking at 3DES blocks.
 
Sam
is there any way that i can remain the same jsessionID in javascript
?
and use it for my ajax calls?
 
user1385191
bonjour
 
Sam
hi Matt
Hi Laurence
are you there?
 
3:07 PM
0
Q: How do I enable/disable checkboxes when another checkbox is selected?

dinahI would like checkboxes to be enabled/disabled when another checkbox is checked. I go the part on how to disable them, the problem is on to enable them when user unchecked the checkboxes Here my code: <script type="text/javascript"> function HideOrShowStuff(controlToHide1) { if (...

 
user1385191
ugh, hideous code
 
user1385191
0 structure
 
user1385191
the answer is even worse
 
I know.
I'm answering it right now.
 
user1385191
 
user1385191
there's your answer if you haven't posted yet
 
Sam
hi matt
 
My answer is a slow tear apart of his code. Borderline epic/jerkface.
 
user1385191
do you mind if I post mine?
 
user1385191
also, could you test it on IE 6/7/8 for me?
 
user1385191
3:25 PM
I'll give you some rep afterwards
 
Go ahead, I don't solve the problem he's asking for anyway.
I tell him to go back to basics.
I'll test it for you.
Works in ie678, one issue however with your logic.
Default checkbox doesn't work as expected.
 
user1385191
what does it hang on?
 
user1385191
and try removing the checked="checked"
 
When it loads, box 1 is checked by default, I'd expect (as a user) that boxes 2 and 3 be disabled.
 
user1385191
right, so I removed the default
 
user1385191
 
I'm somewhat curious as to how the related questions code works on SO
 
hrmm?
Tags I'd assume
 
user1385191
ok, one more before I post
 
user1385191
 
user1385191
about to install IE 5.2 for OSX (lol)
 
3:52 PM
IE8 clicks are not always reliable, multiple clicks required before changing. Looks like you've got bubbling or something going on.
 
I get weirded out when people use "we" in their questions
 
Posted up my answer of scorn.
 
user1385191
yeah, it bubbles for the onclick on the form
 
user1385191
but does the onchange help?
 
"How can we make this script work?" like comments
 
3:54 PM
I think it's a language gap thing, the poster's grammar doesn't look like he's English as a first language.
Er, maybe not this one, I was thinking of another one I saw a while back.
 
well, my markov chain that i implemented successfully created a statistical analysis of moby dick and spat out 1000 randomly generated words from it. that only took a few hours. hah.a
 
The only reason I'd forgive JQuery meaning JavaScript is if it helped prevent people from thinking it has anything to do with Java
 
user1385191
the new edition of JS: The Definitive Guide has a section on jQ...
 
user1385191
that didn't sit well with me
 
user1385191
thankfully, I bought edition 5, not 6
 
4:01 PM
 
hahaha
 
"Programmed failed : Catastrophic Failure"
Not just aby faliure
A catastrophic failure!
Microsoft you are the man
 
Microsoft should brand software after natural disasters.
 
I wonder if I'm the minority in clicking the review link and actually reviewing new user comments
 
Windows Fukishima edition.
I used to click, but it didn't seem worth-while.
 
4:04 PM
A lot of it is users answering their own question
 
user1385191
@user257493 reading that answer now
 
user1385191
don't discourage using numbers in ids (you're not, but it's a bit open-ended)
 
user1385191
point 2 is a stylistic one, not mission critical
 
user1385191
point 3 is XHTML only
 
user1385191
points 4 and 5 are fine
 
4:07 PM
I only discourage ids with numbers if it's a numeric only id or at the beginning of the ID
otherwise I don't really mind
 
user1385191
numerals are really handy in application-style programming for quick accessing
 
user1385191
SO does the same thing
 
-3
Q: php for loop input

user761396why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why cannot accept this question?why canno...

What the
 
ids with numbers are bad if the numbers are created in a for loop
or you have
<container>
   <foo id="foo1" />
   <foo id="foo2" />
...
Basically using ids when you can use the index of the element inside the container instead
 
Wow, that was quickly deleted
I use classes or element selectors depending on what I'm dealing with
 
4:09 PM
@onteria_ "deleted by SLaks♦ 6 secs ago"
 
187 rep today :\
I didnt even try to get rep.
 
user1385191
installing IE 8 via wine, taking a long time
 
I'm at 271
I got these random upvotes on week old questions
 
@MattMcDonald Does that actually work? I thought only IE6 works with wine
 
user1385191
winebottler has 6, 7, and 8 listed
 
4:14 PM
 
user1385191
man, is the tabIndex attribute ever cool
 
@MattMcDonald Only if you feel sadistic enough to mess around with your keyboard using users
 
user1385191
well, for forms, it's a boon
 
@MattMcDonald Only if the order of form elements isn't logical enough for the browser to deduce the correct order to go in, unless you're trying to make widgets which require arbitrary elements to gain focus
 
RT @maboa: RT @popcornjs Popcorn 0.6 is out, with sequencing, map tweening, support for Facebook and Linkedin and more! http://tinyurl.c ...
RT @BoazSender: JavaScript pushState/popstate based routing library: http://davisjs.com
RT @souders: SSL performance is important. Google Chrome cuts handshake overhead by 30% via SSL False Start - via @mikebelshe - http://b ...
 
4:23 PM
@YiJiang There's always the case of help links - skipping those is a good thing
 
user1385191
I'm using the tabindex on labels for checkboxes
 
user1385191
in FF 3.6, that focuses the label, in Chrome 11, the checkbox
 
@MattMcDonald But then with for, shouldn't the two have the same effect?
 
user1385191
FF does nothing without them
 
user1385191
(when using tab)
 
4:27 PM
Interesting, hmmm
 
user1385191
opera and chrome work as expected though
 
user1385191
it was more to test some onchange code
 
user1385191
yeah, it doesn't do tabindexes on inputs
 
user1385191
curiously
 
Wow, that person that wrote that deleted PHP question
Made a new account and posted the same thing
Someone's not a happy camper
 
user1385191
4:32 PM
1
Q: Why Won't Tabindex Work with Firefox?

Jack7890I'm trying to use the tabindex text input attribute to allow users to tab between fields on this page: https://seatgeek.com/login/. This works perfectly in all browsers (event IE!) except for Firefox. I'm using Firefox 3.6.10.

 
user1385191
might be the OSX factor
 
let me check (opens up firefox on OSX)
 
user1385191
try tabbing through a form
 
Works fine here, though this is Firefox 4
 
user1385191
I think it's just checkboxes
 
user1385191
4:34 PM
trying changing the type to checkbox in firebug
 
user1385191
same for radio buttons
 
Nothing different for checkbox
same with radio
 
user1385191
sounds like an OSX issue then
 
well, this is on OSX, but like I said I'm on firefox 4 not 3
I don't have 3 laying around right now
Then again, it doesn't make the tabbed elements all that apparent (ie. putting an outline around them for non-inputs)
 
user1385191
4:38 PM
yes, I've read that
 
user1385191
which is stupid
 
user1385191
outline: none :(
 
user1385191
upgrading to 4
 
user1385191
yep, they fixed it in 4
 
user1385191
lol, the wine installer's been stalled for half an hour because the install prompt was in the background and I didn't see it
 
4:49 PM
@onteria hey your still floating around :D
 
@Xavier This is an illusion. I do not exist. There is no spoon.
 
user1385191
it seems osx has some system preference that firefox 3.6 was using
 
@onteria if there is no spoon, then what do you eat your cereal with... a fork ? LOL
 
user1385191
where it disallowed tabbing through most form elements
 
0
Q: js / jq to change orientation of iphone (mobile web) from Landscape to Portrait upon clicking / tapping an element

XavierIs there any method to change the iphone to Portrait on the click of an element; i used this code to determine the orientation that is present and apply certain actions onto that; window.onorientationchange = function() { var orientation = window.orientation; switch(orientation)...

 
4:52 PM
@Xavier I see your fork, and raise you a spork
 
@onteria lol ill raise you a whole cutlery set if you can answer my Q :D
 
hello all
 
RT @mrdoob: Found a clean way to vertical align elements with CSS ^^ http://mrdoob.com/projects/google/rome/redirect/ (view source)
 
user1385191
that second link is crap
 
user1385191
4:55 PM
say no to userAgent sniffing
 
@MattMcDonald :-P
 
user1385191
love one of the comments
 
@Neal hi dude, thats the code i have in my Q lol
 
@MattMcDonald where?
@Xavier yes, so did u read?
 
Hi can anyone help me figure out how to start a html page right at the top of the browser, without any margin or padding (at the top)
 
user1385191
4:58 PM
"The iPhone And touch have seperate useragents though. It doesn’t detect my touch."
 
user1385191
uA sniffing in a nutshell
 
it's detecting my touch
 
user1385191
the point is you can't trust it to be consistent
 
@aurel css body { margin:0;padding:0;} lol
 

« first day (215 days earlier)      last day (4735 days later) »