I am developing a GA for a school project and I've noticed that upon evaluating my functions for fitness, an individual is equivalent to its inverse.
For example, the set (1, 1, -1, 1) is equivalent to (-1, -1, 1, -1). To shrink my search space and reach a solution more efficiently, how can I avoid my crossovers from searching in this second half of the search space?
What's best method within cakephp site for-
two dropdowns
one listing cds, one listing artists
on select of either cd or artist I need my additional text to appear below dropdowns
I have been searching through tutorials and manual - with no success. I am looking to learn by basic example - from form/view and controller.
latest try was something along this example to get dropdown [http://stackoverflow.com/questions/1450457/cakephp-make-select-dropdown]
Hi, This file
String.h
i found while searching about string.h.
Where i can find functions implementation of functions defined in string.h
i.e [say] source code of "void *memcpy(void *, const void *, size_t);
"
Also i want to ask how to make ur functions as an interface with its implmentation hidden from developer as string.h functions has.
I'm planning on learning 3d game development for the iphone using a 3d engine, but because of lack of tutorials for the iphone I was planning on using C++ game tutorials and making the necessary changes.
The problem is that I've had limited success when searching for things such as 'c++ 3d fps tutorial ' I dont really get anything useful.
Are there any 3d c++ tutorials you can recommend?
Hello guys,
I have done some searching but really haven't found what I'm looking for. What I would like to do is generate a random BUT unique 5 digit number and push whatever number into an img tag on my page.
For example when people come to my page this number would generate and get pushed into this image tag:
<img src="http://www.sample.com?randomNUM=12345" height="1" width="1" />
I have a mySQL DB and am looking to do this in PHP.
Thank,
Matt
I've been doing some searching on the internet, but I can't seem to find the awnser. What exceptions can a DataContext throw? Or to be more specific, what exceptions does the DataContext.SubmitChanges() method throw?
While searching for some functions in C++ STL documentation I read that push and pop for priority queues needs constant time.
"Constant (in the priority_queue). Although notice that push_heap operates in logarithmic time."
My question is what kind of data structure is used to mantain a priority queue with O(1) for push and pop ?
I want to print the line immediately before the searched string. How can I do that?
Lets say my two lines are
AADRG
SDFJGKDFSDF
and I am searching for SDF. I have found SDFJGKDFSDF, but how can I obtain the previous line AADRG? Does file.readline()-1 work?
Hey guys,
I tried searching the forums on this one, but I wasn't able to find anything on my problem.
To describe my problem, everytime my location changes, it redraws the center maker on the map.... Only catch is that it doesn't delete the previous one. I can get it to delete the previous one when the location is changed, but I have no idea how to pass the original overlay in-between classes.
Also, pastebin here
Thanks in advance,
hwrd
The kernel is 2.4.
On a side note, does anybody knows a good place where I can search for that kind of information? Searching Google for function definitions is frustrating.
Not sure what's happening with this, but here's my question. I have a Sql Server 2008 database that I need to be able to do full-text indexing/searching but when I try to setup my indices on the table, I get the following:
I've tried running this stored procedure on my database and it's successful:
EXEC sp_fulltext_database @action = 'enable'
But I still get the above window and my full-text searches don't return any results when they should.
What am I missing?
If I have three targets, one "all", one "compile" and one "jsps", how would I make "all" depend on the other two
Would it be
<target name="all" depends="compile,jsps">
or would it be
<target name="all" depends="compile","jsps">
Or maybe something even different?
I tried searching for example ant scripts to base it off of, but I couldn't find one with multiple depends.
Thanks!
I've been searching for this for quite a while with no luck so far. Is there an equivalent to Java's ClassFileTransformer in .NET? Basically, I want to create a class CustomClassFileTransformer (which in Java would implement the interface ClassFileTransformer) that gets called whenever a class is loaded, and is allowed to tweak it and replace it with the tweaked version.
I know there are frameworks that do similar things, but I was looking for something more straightforward, like implementing my own ClassFileTransformer. Is it possible?
I need to play, pause and resume AAC (audio) files from a ruby console program (much like iTunes or any music player).
After much searching, I've come across these libraries:
mp3info
metadata
id3lib-ruby
rvideo (uses ffmpeg)
These seem to help me in getting track length and tags which i also need, but I need something to play AAC (at least) and if possible other formats. I also must be able to pause and resume (so shelling a program
like mpg321 is out).
I'm searching files and returning lines that include the search text, and I'm not really sure the best way to display the information I get. Every time I get a match, I want to show, in some sort of control, the File it came from, and the whole text line. (aka streamreader.ReadLine() result). First I tried just putting it all in a read-only text box, but it doesn't have a scroll bar.
What is the best form control to help me display this data neatly?
Hi.
A quicky: is there a way to dismiss the keyboard and the searchDisplayController without animation?
I was able to do it when the user presses "Cancel", but when the user presses the black "window thingy" above search field (only visible while the user hasn't inserted any text), the animation always occurs, even when I change the delegate functions.
Is there a way to control this, or as an alternative, to disable the user to end searching by pressing the black window?
Thanks in advance.
Hello all.
I have a C# (WPF) application which checks for all output devices (Speakers) and I need to check the Bit Depth and Sample Rate of the output device. Has anyone worked with this or know of a way to do so?
I have been searching around, but found nothing similar...
Any help is much appreciated.
Thanks
Hi I want to create contact form with SSL
I have anonymous webapplication and won't be any login usecase, so whole webapplication must work via http:// but when user go to contact form, it must work via https://
I know how to do the redirect to https:// programatically, I've been searching how to configure SSL on IIS but it seems to not be the case?? I don't wont whole webappliation to work via https, only my contact form
- how to do that and how o onfigure that?
The data from my form will be passed to database, but it is not important here.
I am looking for a Unix based application or framework that would allow me to view/edit ini files on a remote system in a Html GUI via Apache (or similar).
Searching for ini/config/GUI solutions via search engines returns a lot a false positives.
Any recommendations?
Hello,
what behaviour can I expect when I run this code:
do while(testA) {
// do stuff
} while(testB);
Will it behave like:
do {
while(testA) {
// do stuff
}
} while(testB);
Or:
if(testA) {
do {
// do stuff
} while(testA && testB);
}
Or something totally unexpected?
I ask this question because I think this is quite ambiguous, and for other people searching on this topic, not because I am lazy to test it out.
Whenever i perform a file search in eclipse, it scans all files including .svn-base file.
Provided i am using * for file name patterns.
Is it possible to scan all files for searching but skipping the .svn-base file?
I always thought the following types are "fundamental types", so i thought my anwser to this question would be correct, but surprisingly it got downvoted...
Searching the web, i found this. So, IBM says aswell those types are fundamental types..
Well how do you interpret the Standard, are following types (and similar types), "fundamental types" according to the c++ standard ?
unsigned int
signed char
long double
long long
long long int
unsigned long long int
I am searching for an expression builder GUI (like the one used in Microsoft Access). It can be plain Javascript or JQuery plugin. I am loathe to build my own and reinvent the wheel if one already exists - and yet, a search on Google does not find anything remotely useful.
Is anyone aware of any such library/plugin or article that covers this?