Generating first names based on race/ethnicity [closed] - names

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to generate some fake people for a piece of software I'm writing. These people also have ethnicities, and I'd prefer not to have names that don't look totally out of place when compared to those ethnicities.
My first idea was to base it on data. There is a table of first and last names from the 1990 US census with attached frequencies, but that says nothing about ethnicity. There is also a table of last names from the 2000 US census which is broken down by ethnicity, but it says nothing about first names.
So I need some way of generating first names based on ethnicity. Any ideas?

Use behindthename.com. They have very extensive lists of names by usage, including lists of popular names.

The site http://www.babynamefacts.com/ contains lists of most popular baby names per country. This may be a good starting point. For example, this page shows the most popular baby names for Serbia in 2009: http://www.babynamefacts.com/popularnames/countries.php?country=SRB .

Related

How can the machine generate random numbers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
The Computer is designed to execute certain tasks exactly.
It is not able to make arbitrary tasks : So how can It generate random numbers?
Yes, you are right. Computers cannot generate Purely Random numbers. Therefore, they are called Pseudo Random. Most common technique used, today, to generate a random number is by reading the machine time in milliseconds and perform arithmetic operations on it to get a new number every time. You can read more about it here

indesign cs5 numbered lists not sequencing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am trying to create a paragraph style for number lists. Pretty basic, just some customized indents etc. But each item in my list is not sequentially numbered, i.e., each item starts with 1.
Please advise.
Have you looked at "Numbering style" option ?
In my french version, "Suite…" means increment previous number. And "Commencer…" means "Starts at…"

what are the fields of the 'ls -l' call under bash [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
What are the fields in listed order when one makes the call: ls -l in a bash shell. First I know is file type and permissions, next are a series of 4 integers that I do not know or am uncertain about, then is a date permissions were assigned then another integer and a time, then finally the file name. What I really want to know is what are the 4 integers between file permissions and permission assignment dates? The assignment dates follow a format of, ie "Oct 2 03:15"?
Considering the four integers you mention:
Hard Link Count. See this site.
Group of the user that
owns the file. Shouldn't be a number. If you get a number on your
system this would be a non-standard.
User that owns the file. Again, shouldn't be a number.
File size

What's the meaning of GW in GW-BASIC? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
GW-Basic was my first programming language. And i never found out what the 'GW' stands for.
From the Wikipedia article:
There are several theories on what the
initials "GW" stand for. Greg Whitten,
an early Microsoft employee who
developed the standards in the
company's BASIC compiler line, says
Bill Gates picked the name GW-BASIC.
Whitten refers to it as Gee-Whiz BASIC
and is unsure if Gates named the
program after him. The Microsoft
User Manual from Microsoft Press also
refers to it by this name.
It may have also been nicknamed
Gee-Whiz because it had a large
number of graphics commands.
Other common theories as to the
initials' origins include "Graphics
and Windows", "Gates, William"
(Microsoft's president at the time),
or "Gates-Whitten" (the two main
designers of the program).

Latex: Change the numbering style for algorithms [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
My problem is that I do not know how to change the numbering style for algorithms. I have created an algoritm and its number is "Algorithm 1", but I want to have "Algorithm N.1", where N is the number of current chapter.
Let assume I have something like below
\begin{algorithm}
\begin{algorithmic}
\FOR{$i = 1$ till end}
\STATE do something
\ENDFOR
\end{algorithmic}
\label{aForLoop}
\caption{some caption}
\end{algorithm}
Any help will appreciated.
As in the documentation:
The numbering of algorithms can be influenced by providing the name of the document component within which numbering should be recommenced. The legal values for this option are: part, chapter, section, subsection, subsubsection or nothing. The default value is nothing which causes algorithms to be numbered sequentially throughout the document.
So, I think it will be enough determining the section value, like that:
\begin{algorithm}[section]
...
Didn't test, but should work.
This question is already 8 years old and the link in the accepted answer doesn't work anymore, so I'll post an answer here for future reference. Also, it belongs on tex.stackexchange.com.
Just add the [chapter] (or [section]) to the package declaration
\usepackage[chapter]{algorithm}
and make sure to have a caption and a label in the algorithm, in that order:
\caption{The Foo Algorithm}
\label{algorithm:foo}
This page explains it quite well: https://web.archive.org/web/20100901100351/https://www.iam.ubc.ca/old_pages/newbury/tex/numbering.html
I assume this would work for algorithms as well by redefining the \thealgorithm command, in fact I read on a German forum that a user managed to disable numbering for algorithms by redefining this, so it should work.

Resources