Skip to content

Instantly share code, notes, and snippets.

View cgddrd's full-sized avatar

Connor Goddard cgddrd

View GitHub Profile
@cgddrd
cgddrd / Install_Parallels_11_Tools_Ubuntu_Server_16.04.md
Last active June 2, 2016 06:34 — forked from magnetikonline/README.md
Install OSX Parallels version 10 / 11 tools on Ubuntu server guest.

Install OSX Parallels version 10 / 11 tools on Ubuntu server guest

  • Create Ubuntu server instance under Parallels (obviously).

  • Start VM, goto Actions - Install Parallels Tools... to mount the ISO image.

    • Note: if this fails, or updating tools for an existing guest you can do the following:
    • Goto Devices > CD/DVD 1 > Connect Image....
    • Select the following ISO image: /Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso.
    • This will mount the tools CD image.
  • From the terminal, run the following commands:

public class StochasticUniversalSampling {
/**
*
* @param population - set of individuals' segments. Segment is equal to individual's fitness.
* @param n - number of individuals to choose from population.
* @return set of indexes, pointing to the chosen individuals in the population set
*/
public int[] execute(double[] population, int n) {
// Calculate total fitness of population
@cgddrd
cgddrd / module_pattern_init.js
Last active August 29, 2015 14:26 — forked from nathansmith/module_pattern_init.js
Init + Module Pattern JS
// JS Module Pattern:
// http://j.mp/module-pattern
// Redefine: $, window, document, undefined.
var APP = (function($, window, document, undefined) {
// Automatically calls all functions in APP.init
$(document).ready(function() {
APP.go();
});
\addcontentsline{toc}{section}{References}
\bibliographystyle{plain}
\begin{thebibliography}{1}
\bibitem{notes} {\em ``How to lock files in C/C++ using fopen"} - http://stackoverflow.com/questions/7573282/ 2011: StackOverf low, StackExchange.
\bibitem{notes} P. Prinz, T. Crawford {\em ``C in a Nutshell"} 2008: O'Reilly Media Inc.
\bibitem{notes} R. Lischner {\em ``C++ in a Nutshell"} 2009: O'Reilly Media Inc.