quiz (177)


Code to ask yes/no question in javascript

I could only find the function confirm() that gives OK/Cancel buttons. Is there any way to give Yes/No buttons?…


language agnostic - Conditional logging with minimal cyclomatic complexity

After reading "What’s your/a good limit for cyclomatic complexity?", I realize many of my colleagues were quite annoyed with this new QA policy on our project: no more 10 cyclomatic complexity per fun…


Displaying the current authenticated Sharepoint user from an asp.net Page Viewer Web Part

I am creating a standalone asp.net page that needs to be embedded into a sharepoint site using the Page Viewer Web Part. The asp.net page is published to the same server on a different port, giving…


ruby on rails - User Monitoring in Rails

We have an app with an extensive admin section. We got a little trigger happy with features(as you do) and are looking for some quick and easy way to monitor "who uses what". Ideally a simple gem t…


Is Http Streaming Comet possible in Safari?

By HTTP Streaming Comet, I mean the "forever iframe"/"forever xhr" variations that don't close the connection after data has been pushed from the server, as opposed to standard polling and long pol…


Testing HTML/CSS/Javascript skills when hiring

When hiring a front-end developer, what specific skills and practices should you test for? What is a good metric for evaluating their skill in HTML, CSS and Javascript? Obviously, table-less semantic…


ruby on rails - How can I find a model's relationships?

I want to, when given a particular model, return all the related models it is associated with. For example: class Dog<ActiveRecord::Base has_many:bones belongs_to:master end d=Dog.first d…


how to combine a template from other processed templates?

I have a django project pro1 with several apps: app1, app2, app3 and so on. I want to display some top level template that contains blocks from each and every app: example_base_template.html:[header…



Create Java console inside a GUI panel

How can I create an instance of the Java console inside of a GUI panel?…


asp.net survey questionnaire engine

I am looking to implement(or build as a last resort) a type of survey engine that allows for extensibility and integration into an existing workflow engine. The survey/questionnaire engine should al…




how questions rails for ruby multiple with application choice question