I want to check whether the "user" key is present or not in the session hash. How can I do this? Note that I
What's the simplest, library-free code for implementing array intersections in javascript? I want to writ
What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard
I feel a bit thick at this point. I've spent days trying to fully wrap my head around suffix tree constru
In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that?
When deleting a key from a dictionary, I use: if 'key' in my_dict: del my_dict['key']
I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the
Why this function is not working here? It's not sorting on output. Suppose if I enter 1 4 2 the output is
We are using popen and poll with timeout for reading output from a process. I have a case where we with popen
I know how to initialize strings in C in two different ways. char str[] = "abcd"; char str[] = {'a'
i'm trying to pass struct variables to a function, but i receive: error: conflicting types for 'refe
Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) rende
I have a bunch of elements with a class name red, but I can't seem to select the first element with the c
Lets say you have an array that is rendered in a ul with an li for each element and a property on the controll
How do I center a div of one column size within the container (12 columns) in Twitter Bootstrap 3? .cente