inside (4,525)


language agnostic - Split a string ignoring quoted sections

language agnostic - Split a string ignoring quoted sections

Given a string like this: a,"string, with",various,"values, and some",quoted What is a good algorithm to split this based on commas while ignoring the commas inside the quoted sections? The output…


algorithm - Puzzle: Find largest rectangle(maximal rectangle problem)

What's the most efficient algorithm to find the rectangle with the largest area which will fit in the empty space? Let's say the screen looks like this('#' represents filled area):....................…


c++ - GCC issue: using a member of a base class that depends on a template argument

The following code doesn't compile with gcc, but does with Visual Studio: template<typename T> class A{public: T foo;}; template<typename T> class B: public A<T>{public: void bar(){…


Calling the base constructor in C#

If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that? For example, If I inherit from the Excepti…


How to modify the style property of a font on Windows?

Note that this question continues from Is it possible to coax Visual Studio 2008 into using italics for comments? If the long question title got you, here's the problem: How to convert the style p…


In C#, do you need to call the base constructor?

In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called? class BaseClass{public BaseClass(){…


Best way to encapsulate complex Oracle PL/SQL cursor logic as a view?

I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic…


Nesting HTML- anchor tags

Today I was working on a tab navigation for a webpage. I tried the Sliding Doors approach which worked fine. Then I realized that I must include an option to delete a tab(usually a small X in the ri…


How do I search content, within audio files/streams?

I have always wondered how many different search techniques existed, for searching text, for searching images and even for videos. However, I have never come across a solution that searched for conte…


Abstraction away from CSS

Let me make something quite clear. I. Hate. CSS. It is a never-ending nightmare. Every minor layout change feels like a hack. Solutions to problems seem to often involve jiggering numbers around like…





how example with not from javascript html function class css