Hello /g/, show me your best code snippets
>>56216273public static void run()
{
int startsize = 8000;
int targetsize = 5000;
int maxiterations = 1000;
//conn = new SqlConnection(logconstr);
//conn.Open();
organisms = new ConcurrentBag<Organism>();
for (int i = 0; i < startsize; i++)
organisms.Add(new Organism(i));
int count = 0;
bool fail = false;
while (count < maxiterations)
{
ConcurrentBag<Organism> temp = new ConcurrentBag<Organism>();
Parallel.ForEach(organisms, (i) =>
{
var t = i.run();
if (t != null && t.isAlive)
temp.Add(t);
if (i.isAlive)
temp.Add(i);
});
if (temp.Count > targetsize && count > 100)
organisms = new ConcurrentBag<Organism>(temp.OrderByDescending(i => i.getHealth()).Take((int)(temp.Count * (-temp.Count / (targetsize * 10) + 0.90))).ToList());
else
organisms = temp;
//new Task(() =>
//{
// sqlInsert(temp.ToList(), count);
//}).Start();
Console.WriteLine("iteration: " + count + " total: " + temp.Count);
if (organisms.Count <= 100 || organisms.Count > 500000 || fail)
break;
count++;
}
generateAndInsertSummaryData(organisms);
}
<code><script>
for (
i = 0; i < 100; i++
) {
alert('Op sucks ' + i + ' cocks'); }
</script></code>
>>56216354
>Op sucks 1 cocks
>She uses a iPhone
>She uses Windows or OS X
>She says it just werks and Steve Jobs is a hero
In the trash she goes.
I'd rather keep my virginity.
Steve jobs was a manipulative prick but not everyone knows that
Not everyone has time to look for UNIX programs just for memepoints
iPhones used to be "the good phone"
She's outdated, just overclock her then your sex should be at minimum satisfactory
>>56216364
Even normies think that iPhones suck now lmao.
>>56216203
You're most likely a freetard, which means you wouldn't have lost your virginity anyway
What are you playing your music on /g/?
The same as you
>>56215842
also same, with rockbox
I just use my phone because my Sansa Fuze broke or something.
I bet none of you have as many tabs open as me
>39
Chrome fags go die
Got like 50, and that's with tab grouping
>>56215913
>doesn't post an image
Well clearly you're lying.
I have something like over 500 with treestyle open. It's a weird problem.
?????????????????????????
EMBRACE
EXTEND
EXTINGUISH
Firefox was destroyed by Mozilla.
RIP Phonix
>>56215736
Really? So if Chrome didn't exist you'd be using IE?
>>56215736
Goddamn it mozilla, keep politics out of my browser.
Desktop thread
Hello here is my virtual workstations
wtf amd adopted cuda? how?
>>56215630
wtf. I hate amd now
>>56215630
King CUDA
AMD give you everything and leave it up to the users to use it. Nvidia cut everything down but add planned obsolescence.
How does /g/ feel about no headphone jack?
Apple made the right choice. I care about phone thinness. I mean who listens to music while their phone is charging?
/g/ mocks people who listen to music on their phones and those that use spotify and apple music but they get mad when apple removes it to improve its device.
>>56215631
>who listens to music while their phone is charging?
this is the most retarded question i have heard this month, and there are only 7 days left. good job mate.
How accurate is this?
>>56215577
Not accurate at all. 90% of that python should lead to javascript. Nobody uses python.
>>56215577
>Python
>rated easiest language
>tops avg salary
whats going on
>>56215604
Nothing should ever lead to JavaScript, except for "I want to animate snowflakes on a webpage".
hey /g/uys
So i just got my certification on cisco CCNA.
What should i do next?
>>56215537
change your passowrds.
https://medium.com/@exocpm/cisco-to-plunge-on-the-release-of-nsa-spying-tools-7-layoff-c8fb3e1af6c#.vsntm4pf5
>>56215537
thread theme;
https://www.youtube.com/watch?v=5PsnxDQvQpw
>>56215639
right on the feels.
Thank anon
will those fat 3D buttons ever have a return?
look at those chunky fuckers, you want to click that shit all day
>thicc
well that's a new one
thank you for helping me explore my sexuality OP
>>56215521
They intuitively look like a button. Just started in an office job where I am forced to use win7 classic theme and I absolitely love the feel. I changed themes on my gnome to give this oldschol vibe.
Systemd.
Now with "mount".
Because fuck you /g/!
- Poottering
> Systemd-mount is the newest tool added to systemd by Lennart Poettering.
https://www.phoronix.com/scan.php?page=news_item&px=Systemd-Mount
>>56215397
At least present a reasonable argument to why that is a bad thing.
What a useless thread. Just like your life.
>>56215472
hello there, poettering.
how are you doing on this fine day?
systemd-wayland when?
>>56215653
>doesn't present an argument
>when asked for an argument, resorts to ad hominem
You won. I give up. Systemd a shit.
A SHIT, I TELL YOU!
Need a new phone and I am poor.
What's a /g/ recommended phone for someone that needs to only call and text (preferably on a reliable network, but w/e)?
Tried using my old backup Nokia but I guess tracfone dropped 2G recently, and they won't let me upgrade to a new phone for free :^)
my dick
>>56215275
nicee
ask /csg/, they got a lot of dirt cheap androids.
http://www.photo-palette.com/?g=ROAD
Compare the performance of Firefox to Chrome
>>56215106
you look beautiful OP
They both perform equally as poor. However, I'm on a mac, so...
>>56215106
>browser
>performance
Nice meme
Hey! I'm starting college today for software engineering and was wondering if my C++ textbook from 2004 is still usable and relevant in 2016? It's a huge and detailed book, I just don't want to learn irrelevant information! Thanks!
>>56215103
barely anything changed since 2008 to now so i doubt it famlam
>>56215350
c++11?!?!?!?!?
>>56215103
Doesn't your class have a book you're following?
In any case, it's still useful for learning the basics of C++.