10 June, 2011 Leave a comment
You’ve forgotten to include a script reference to the jquery cookies plugin on the page:
My thoughts on some things.
22 October, 2010 3 Comments
That’s not a suggestion.
Now you can diff and merge files (and whole folders – handy when production and source control get out of sync!) easily:
Hint: hold ALT and use the arrow keys. Up and down move you between changes, left and right copies the change from one document to the other. This allows you to find and merge the changes you need in seconds.
15 October, 2010 Leave a comment
If you’ve confirmed that jQuery itself is working fine, you might be missing an internal dependency. Apparently, sometimes the jQuery UI download page’s dependency checker can get it wrong (in my case, draggable was listed as a dependency in the comments in the code for dialog, but it wasn’t enforced as such when downloading.).
Try going back and downloading it again, but this time check everything. Replace your existing jQuery UI custom js file with the new one, and see if that fixes the problem.
23 July, 2010 Leave a comment
StackOverflow was originally designed to be about simple programming questions, as defined in the FAQ. Specific questions that have a correct answer and often contain code. Like experts-exchange, but done right. Got a compiler error you don’t understand? Trying to do something in code but not sure how? That sort of thing. Questions like:
The other official sites seem to keep this kind of question as their main focus. I agree with this direction, and I’ve asked and answered plenty of questions like this (that first question is mine). Stackoverflow includes tools allowing the community to close questions that don’t fit these guidelines, like obvious spam, exact duplicates of existing questions, anything that’s not a question, etc.
However, from very early on there was an unintended side-effect: some questions emerged that didn’t exactly fit that mould (for example, somewhat subjective, or discussion style questions) but were still interesting, and got interesting answers. They weren’t completely outside the official guidelines, but they weren’t completely inside them, either. The quality and size of the programmer community combined with the ability to vote and edit created something unique which many users considered to be worthwhile. Many of these questions became very popular.
A few examples:
In fact, looking at the top 15 questions on StackOverflow while I write this, at least 12 are subjective (e.g.: Strangest-language-feature), not strictly programming problem questions (e.g.: what is your best programmer joke) or not questions at all (e.g.: I’m graduating with a Computer Science degree but I don’t feel like I know how to program.).
Only moderators and users with fairly high reputations can vote to close questions. I’ve noticed that some of them, apparently thinking they’re “doing the right thing”, are taking the official question guidelines to the extreme – so much so that they’re actually doing more harm than good.
Once again, I’m not talking about legitimately bad questions here – spam, real duplicates, totally off-topic stuff. They need to go (of course). But I’ve noticed that any question that could be even a little bit subjective, anything that has no source code in it, anything sounding similar to an existing question (even if they are actually totally different) will get close votes and terse comments.
Some questions have survived in spite of this, but it’s frustrating to see interesting questions shot down so often. Even 2 of the top 15 questions above have been closed.
It’d be hard to argue that there was nothing interesting, important or valuable in Alan Kay’s question above (and it’s answers). And yet, the very first comment calls it “not programming related”. Another curtly states it should be closed as a discussion question.
This problem has spread to many of the other sites on StackExchange, too. At one point, if you asked a question on StackOverflow and a couple of people thought it would be better on SuperUser, it would be migrated there even though SuperUser was still in private beta. Your question would disappear and, as far as you knew, there was no way for you to see your own question, let alone any answers.
I know I’m not alone on this. There are highly upvoted comments on Kay’s question like “If this gets closed, I may never come back to this site again” and “Yeah, can we please not show Alan Kay what a bunch of children we are by having a close/open war right in front of him?” and “144 votes, 8k views, 93 favorites, a positive mention in the SO podcast, a topic of Jeff’s Coding Horror blog, and a driver for a change in functionality of the site. Yeah, this question shouldn’t be here! :rolleyes:”
Don’t get me wrong, I understand that spam, real duplicates, truly off-topic questions, and pointless opinion wars hurt the site (and if they got out of control, that would be much worse than this).
But these sites exist for the benefit of their communities. Please, think twice before voting to close.
And if you’re unsure – why not just leave it alone?
2 July, 2010 Leave a comment
I recently had a problem using ASP.NET AJAX where I got an error message something like this:
The base class includes the field ‘ScriptManager1’, but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager).
I had no idea how a particular type could be incompatible with itself, so I checked Stack Overflow (easily the best question and answer site for programmers). I found a question about this problem, but none of the existing answers worked for me. I googled around a bit, and eventually solved the problem. So here’s the answer for anyone else who might have this problem:
I managed to fix it by adding this to web.config:
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="188.8.131.52-184.108.40.206" newVersion="220.127.116.11"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="18.104.22.168-22.214.171.124" newVersion="126.96.36.199"/> </dependentAssembly> </assemblyBinding> </runtime>
I believe it forces the .net runtime to use the new versions of those assemblies.
I added this to the Stack Overflow question too, for posterity. That’s one of the cool things about Stack Exchange sites, the platform encourages questions to be solved properly, once and for all, and then easily found by anyone coming later.
Obviously it helped a lot of people – my answer fast became the top answer (by far) and I earned the rare “necromancer” badge for resurrecting an old question with a popular answer.
So there you go: if you found this through searching for answers to the above problem, I hope I’ve helped you solve it. If you’re in need of answers for programming, or a heap of other things, see if there’s a stack exchange site for you. If not, propose one.