topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 19, 2026, 6:47 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 157 158 159 160 161 [162] 163 164 165 166 167 ... 386next
4026
Living Room / Re: I'm sooo exhausted with the overhyping of everything.
« Last post by Deozaan on July 15, 2013, 06:39 PM »
And here I thought it was just an effect caused by the current generation's Short Attention Span Disorder that results in everything needing to be repeated ad infinitum.

tl;dr
4027
DC Gamer Club / Re: Steam Summer Getaway Sale!
« Last post by Deozaan on July 15, 2013, 03:31 PM »
Anybody want to join in on a 4-pack for Sins of a Solar Empire: Rebellion?

That would make each copy $7.50 while it's currently 75% off. I've already got myself and another person in on it. So I'm looking for two more people to join in.

EDIT: I just bought a copy for myself since nobody else seemed interested.
4028
Developer's Corner / The Danger of Naïveté
« Last post by Deozaan on July 11, 2013, 02:07 AM »
I recently thought it would be fun to program a simple card game and was wondering how to simulate a deck of cards being shuffled. I asked about it in the DC Chatroom and got a few helpful hints from people. Hamradio found this particular one from Coding Horror:

In my previous post on shuffling, I glossed over something very important. The very first thing that came to mind for a shuffle algorithm is this:

Code: C++ [Select]
  1. for (int i = 0; i < cards.Length; i++)
  2. {
  3.   int n = rand.Next(cards.Length);
  4.   Swap(ref cards[i], ref cards[n]);
  5. }

It's a nice, simple solution to the shuffling problem:

1. Loop through each card in the deck.
2. Swap the current card with another randomly chosen card.

At first blush, this seems like a perfectly reasonable way to shuffle. It's simple, it's straightforward, and the output looks correct. It's the very definition of a naïve algorithm:

A naïve algorithm is a very simple solution to a problem. It is meant to describe a suboptimal algorithm compared to a "clever" (but less simple) algorithm. Naïve algorithms usually consume larger amounts of resources (time, space, memory accesses, ...), but are simple to devise and implement.

An example of a naïve algorithm is bubble sort, which is only a few lines long and easy to understand, but has a O(n2) time complexity. A more "clever" algorithm is quicksort, which, although being considerably more complicated than bubble sort, has a O(n log n) average complexity.

But there's a deep, dark problem with this naïve shuffling algorithm, a problem that most programmers won't see. Do you see it? Heck, I had the problem explained to me and I still didn't see it.

He then goes on the explain the problem, using charts and graphs and things. Pretty interesting stuff.

I had found Jeff's original post on shuffling and thought it was useful, but Hamradio's link to The Danger of Naïveté was particularly insightful to a noob like myself.
4029
Living Room / Re: Possibly the ultimate $21,000 computer desk/chair combo?
« Last post by Deozaan on July 10, 2013, 11:39 AM »
porters and a retinue
i swear man, every post...every single one...turns into a mini-research project.  Love it!  :Thmbsup:

That's why I like the Google Dictionary Extension for Chrome. Just double click a word you don't know and a definition pops up. :Thmbsup:

Screenshot - 13-07-10, 10-37-12.png
4030
DC Gamer Club / Re: Rogue likes for PC
« Last post by Deozaan on July 08, 2013, 05:31 PM »
I made a DonationCoder themed ship with Mouser, Josh, and Gothic. (Josh had already died by this point, due to some infectious space disease.)

Here's the full nearly hour-long video of this play session:



DoCoShip's Final Battle
Here's a video of the final battle of the DoCoShip.


4031
Living Room / Re: Gadget WEEKENDS
« Last post by Deozaan on July 07, 2013, 05:41 PM »
So the first step, in my opinion, is to get a pointing device so I can point it out to others.

Uhm, I don't think that laser pointer is going to be powerful enough to mark a star.  Plus it would take the laser months to years before it reached the star in question, depending on the distance in light years.  If you did get a laser that powerful, it would be military grade and illegal to own.  Like, you could shoot down aircraft with it.   ;D

The purpose of pointing at something is that you don't need to be able to actually touch it. :-P You just need to single it out from the other options.

the green lasers have been getting very popular in Egypt.

Very interesting. I wonder why pointing (green) lasers at aircraft is illegal in the USA, but doesn't seem to cause any problems in Egypt. . .
4032
Living Room / Re: Time lapse video (thread)
« Last post by Deozaan on July 06, 2013, 04:54 PM »
Wow. That's amazing! Interesting how at about 3:15 the trees ripple in the wind like a grassy lawn. Thanks for sharing! :-*
4033
Living Room / Re: Gadget WEEKENDS
« Last post by Deozaan on July 06, 2013, 04:33 PM »
for star identification, in case you are not aware of it, get the software stellarium.
http://www.stellarium.org/

Thanks! I've just downloaded the PortableApps version.
4034
Living Room / Re: DonationCoder Recipe Sharing Thread
« Last post by Deozaan on July 06, 2013, 04:27 PM »
I don't drink alcohol at all. In fact, buying the vodka for the vanilla extract was the first (and only) time I've ever purchased or had an alcoholic beverage in my home.

As for what I intend to use the vanilla for: Last night it was used in a no-bake cookies recipe. I also like having home-made maple syrup on my french toast, and the recipe I use requires vanilla. Basically, I intend on using it from now on in all of the baking/cooking/goodies recipes that ask for vanilla, where the alcohol will cook out and only the delicious vanilla flavor will remain. :Thmbsup:
4035
Living Room / Re: DonationCoder Recipe Sharing Thread
« Last post by Deozaan on July 06, 2013, 03:52 PM »
I bought a homemade vanilla extract kit in May and used my vanilla for the first time last night.

Vanilla Extract

Ingredients:
  • Vanilla Beans
  • Alcohol (Any of: Vodka, Bourbon, Light Rum, or Brandy)
  • You'll also need a bottle to put the beans and alcohol in for the extraction process.

Here's a picture of the ingredients/tools I used, as well as the instructions:
2013-05-08 13.20.27 small.jpg

Instructions:
1. Prepare your bottle by cleaning it with hot, soapy water and dry thoroughly after rinsing.

2. Using a sharp knife (or kitchen scissors), split each vanilla bean lengthwise, end to end.

2013-05-08 16.24.03 small.jpg

3. Place split beans in bottle and fill with either vodka, bourbon, light rum, or brandy. For a lighter extract, use vodka; for a heavier extract, use brandy. Be sure the beans are completely covered with alcohol.

2013-05-08 16.33.41 small.jpg

4. Seal tightly and store in your cupboard. (It's important that your vanilla is kept out of the light.) Lightly shake the bottle from time to time.

5. Your extract will be ready in approximately four weeks, but this isn't an exact science. The darker it gets, the stronger your extract.

2013-06-11 23.30.09 small.jpg

6. Each time you use your extract, refill the bottle with your alcohol of choice so that the beans are always covered. You'll have the best tasting extract for years to come!
4036
Living Room / Re: Gadget WEEKENDS
« Last post by Deozaan on July 06, 2013, 03:20 PM »
I just bought one of these:

5mW 532nm Green Light Laser Pointer - Deep Blue + Silver (2 x AAA)
sku_213201_1.jpg


It will be a couple of weeks before it arrives, but I'm hoping it will be of decent enough quality to be able to point at stars with it. I love me some stargazing, and it would help to be able to point out which star exactly I'm talking about when trying to show people the star I call the "Up" star (because in the summers around midnight-1AM it seems it is almost exactly up above my head). And it would be nice if someone who actually knew the constellations and star names could tell me the real name of that star. . .

So the first step, in my opinion, is to get a pointing device so I can point it out to others.
4037
DC Gamer Club / Re: Rogue likes for PC
« Last post by Deozaan on July 04, 2013, 08:13 PM »
Another one that is very popular at the moment is 'FTL: Faster Than Light' . Set in space.  Very basic,  very lightweight indie game that I have really enjoyed.  Not enough space here to do a full review but check out totalbiscuit's review on YouTube if you want a look at it. Costs about $5 for a DRM free edition or a steam key from ftlgame.com. I'm not affiliated at all just a happy gamer.

I just bought this from http://ftlgame.com/ for $2.50 (using Humble Store which means it's also redeemable on Steam) (and the game is also available on GOG.com for the same price) (both prices are sales that end in about 11 hours!) and it's awesome. I just wanted to say: Get it now while it's cheap. Or don't, and pay full price for it. It's worth it either way.
4038
I guess that explains this:

4039
Living Room / Re: Interesting Amazon MP3 development
« Last post by Deozaan on June 28, 2013, 04:40 PM »
What Amazon is doing is actually likely to encourage the sale of new CDs, which can only help the artists music labels.

FTFY. :P
4040
Living Room / Re: Recommend some music videos to me!
« Last post by Deozaan on June 28, 2013, 03:49 PM »
4041
It's a Magic Eyew (aka Autostereogramw):

ascii magic eye.jpg
4042
They replied to me:

Hi,

Thank you for your feedback. At this time the DNSCrypt client can only be run as an administrator. Our engineers are aware of the behavior with the UAC prompt and hope to have it resolved in future releases. Thanks for your patience while we continue to improve this service.

Daniel Gifford
Customer Support Manager
OpenDNS.com
4043
OK. I've done that.

Just out of curiosity, did you install the client from the earliest version? Or did you install it later on? I kind of wonder if my UAC problem is due to having it installed since the first beta was available. . . Maybe they didn't know how to properly request permissions, or not require certain permissions or something. I don't know. Just a guess/wonder.
4044
It didn't work. It still pops up the UAC thing and makes me click to get it to work.
4045
Select the Log On tab and ensure that the correct user account Password and corresponding Confirm Password have been entered, thus: (click the Apply button after making any necessary changes)

Um... I'm pretty sure my account doesn't have a password. I never have to type one in to login to windows, anyway. Maybe that's why?
4046
General Software Discussion / Re: Shift to Linux
« Last post by Deozaan on June 07, 2013, 04:56 PM »
I really like CrunchBang. But that's me saying it after trying it out on my netbook a couple of years ago and then again just using it in a VM for about half an hour the other day.

I've never used Linux on a daily, real world, get stuff done basis. But I like CrunchBang, and I think I'd try that one if I were going to attempt moving to Linux on a more serious/permanent basis.
4047
The main problem I have with DNSCrypt is that it pops up a UAC permission thing every time I boot my computer. And if I'm not there to click the button to give it permission, my computer does not have internet access. Normally this isn't a big problem, but in the case of power outages or whatever the case may be that my computer reboots while I'm not there, it means I can no longer remotely access my PC.

I wish there was a way to get DNSCrypt to run automatically without needing to manually click the go button each time my PC starts up. Other than that, it's mostly been pain free and transparent.
4048
DC Gamer Club / Humble Indie Bundle 8
« Last post by Deozaan on June 06, 2013, 10:10 PM »
The latest Humble Indie Bundle 8 includes 11 games:

Little Inferno
Awesomenauts
Capsized
Thomas Was Alone
Dear Esther

Beat the average (under $6 as of this writing) to get:

Proteus
Hotline Miami
Tiny and Big: Grandpa's Leftovers
Intrusion 2
English Country Tune
Oil Rush



Get the Humble Indie Bundle 8.

If you get it, let's play some Awesomenauts together! (It's like a 2D version of Dota/League of Legends)
4049
Living Room / Re: Animal Friends thread
« Last post by Deozaan on June 06, 2013, 02:41 AM »
I really liked that. Thanks Edvard.
Pages: prev1 ... 157 158 159 160 161 [162] 163 164 165 166 167 ... 386next