The following is an example of what I currently have:
\setcounter{secnumdepth}{3}
\chapter{The Chapter}
\section{First Section}
\subsection{First sub Section}
\subsubsection{First sub sub Section}
which renders something like this:
Chapter 1
The Chapter
1.1 First Section
1.1.1 First Sub Section
1.1.1.1 First sub sub Section
Now…
I have a non-binary tree.
I want to find all "sub-trees" that are connected to root.
Sub-tree is a a link group of tree nodes.
every group is colored in it's own color.
What would be be the best approach?
Run recursion down and up for every node?
The data structure of every treenode is a list of children, list of parents.…
I have a site, actually a "portal"/ "directory" for service providers.
Now, for start, we opened every service provider own page on our site, but now we get a lot of applications from those providers that thy want sites from their own.
We want to make every service provider his own site, but on sub domain url. ( they don’t mind… its…
I hate sub reports and always consider them the last resort in any reporting solution. The negative effect on performance and maintainability is just not worth the easy ride they give the report writer. Nine times out of ten reporting requirements can be met using a little forethought and planning (and a solid understanding of…
I hate sub reports and always consider them the last resort in any reporting solution. The negative effect on performance and maintainability is just not worth the easy ride they give the report writer. Nine times out of ten reporting requirements can be met using a little forethought and planning (and a solid understanding of…
I have a tile based 2D engine where the projection matrix is an orthographic view of the world without any scaling applied. Thus: one pixel texture is drawn on the screen in the same size.
That all works well and looks nice but if the camera makes a sub-pixel movement small lines appear between the tiles. I can tell you in…
I have a site with multilingual website with many pages (40M). The site has UGC, and each translation is actually for the titles. Each sub-domain points to the same content with different titles per language. As far as I understand, each sub-domain should be indexed by search engines, meaning they will actually need to crawl…
I have a page for a doctor's practice. In the summary page for the practice there is a list of subsections such as Women's, Men's, Children, Sport, etc. Some of these sub sections are very large, others can be a paragraph or more with a short unordered list.
In terms of content volume, the large subsections warrant their…
This article explains how to implement a sub application such as a blog in your website without experiencing dependency issues. A common problem that developers experience is when their sub applications accidentally inherit requirements of the parent website. This is actually by design but read on if this is causing…
I recently ran up against a wall doing some bash shell programming where an associative array would have solved my problems. I googled about features of the Korn shell and learned that it supports associative arrays, so I installed Cygwin's pdksh (public domain korn shell).
However, when trying to create an…
I know the question sounds silly, but consider this: I have an array of items and a labelling algorithm. at any point the item is in one of three states. The current version holds these states in a byte array, where 0, 1 and 2 represent the three states. alternatively, I could have three arrays of boolean -…
Situation:
I have a DAY structure. The DAY structure has three variables or attributes: a Date (NSString*), a Temperature (float), and a Rainfall (float).
Problem:
I will be iterating through an array of about 5000 DAY structures and graphing a portion of these onto the screen using OpenGL.
Question:
As…
This is a homework question. They say it takes O(logN + logM) where N and M are the arrays lengths.
Let's name the arrays a and b. Obviously we can ignore all a[i] and b[i] where i k.
First let's compare a[k/2] and b[k/2]. Let b[k/2] a[k/2]. Therefore we can discard also all b[i], where i k/2.
Now we…
Say, I have an array with months
$months = array('Jan', 'Feb', 'Mar'...'Dec');
And another, with days (say, for year 2010)
$mdays = array(31, 28, 31...31);
I want to merge/combine these two arrays, into an array like this:
$monthdetails[0] = ('month' => 'Jan', 'days' => 31)
$monthdetails[1]…
I have two arrays of strings that I would like to compare for equality:
my @array1 = ("part1", "part2", "part3", "part4");
my @array2 = ("part1", "PART2", "part3", "part4");
Is there a built-in way to compare arrays like there is for scalars?
I tried:
if (@array1 == @array2) {...}
but it just…
Hello.
I’m starting to plan an architecture for a big web application, and I wanted to get suggestions and/or recommendations on where to begin and which technologies and/or frameworks to use.
The application will be an Intranet-based web site using Windows authentication, running on IIS and…
Hi, I'm trying to join two associative arrays together based on an entry_id key. Both arrays come from individual database resources, the first stores entry titles, the second stores entry authors, the key=value pairs are as follows:
array (
'entry_id' => 1,
'title' => 'Test…
I have an array of double arrays, they are within a specified time window (8am-5pm), and are in order of last created over a period of several days. They are all timestamped and as such I have access to all C# DateTime methods.
I then have a different iterative function that goes in the…
I have a method studentSummary, that scans the input and creates three arrays examMark,courseworkMark and courseworkWeight. I need these arrays passing over to a different method, so I can use them to calculate moduleResult.
heres my code:
public static int[] studentSummary(int[]…
I'm taking my first dive into creating a very simple entity framework. The key concepts (classes) are:
Entity (has 0+ components, can return components by type)
SpriteEntity (everything you need to draw on screen, including lighting info)
PhysicsEntity (velocity, acceleration,…
i am getting error whenever tring to install or update anything.
"Sub-process /usr/bin/dpkg returned an error code (1)"
please help me i am just stopped with my ubuntu 11.10.
no installation or update.
th unknown argument `triggered'
dpkg: error processing mtools…