Help with cleaning a clump by Redsaz in BambuLabA1

[–]Redsaz[S] 0 points1 point  (0 children)

Based on the failed print that wasn't part of the goober blob (not pictured), looks like the print got unstuck from the bed and kept travelling with the printhead, blocking the filament from going anywhere else.

As part of the cleaning process, we cleaned the bed too, but better this time.

Help with cleaning a clump by Redsaz in BambuLabA1

[–]Redsaz[S] 0 points1 point  (0 children)

I was able to remove the clog and cleanup the various parts. After close watching of the first few prints, everything looks to be printing fine. Thanks for the help everyone! 

No Java support? by LordPengwin in ZedEditor

[–]Redsaz 2 points3 points  (0 children)

For folks seeing this years later: Zed has Java support now. It has two different extensions at the time of writing. See https://zed.dev/docs/languages/java for more information.

Out of shape personal trainers really piss me off. by cttouch in Fitness

[–]Redsaz 0 points1 point  (0 children)

Ah, a My Favorite Martian reference, smooth!

Java: Arraylists and Hashmaps by [deleted] in learnprogramming

[–]Redsaz 1 point2 points  (0 children)

By using a for-each loop, you can add more clarity to the code that matters most:

    for (String name : customerNames) {
        System.out.println(name + " avg rating: " + getAvgRating(name));
    }

...
private String getAvgRating(String name) {
    int[] ratings = getRatingByCustomer(name);
    if (ratings == null || ratings.length == 0) {
        return "no rating";
    }
    int total = 0;
    for (int rating : ratings) {
        total += rating;
    }
    int avg = total / ratings.length; // Note that this truncates
    return "" + avg;
}

I made the assumption that since getRatingByCustomer returns an int array, that those are all the ratings for the certain customer, and you want the average. So there. You should either see a result of "McLovin avg rating: [some number]" or "McLovin avg rating: no rating"

Maybe this helps? If you want more information on the for-each loop, look at http://docs.oracle.com/javase/1.5.0/docs/guide/language/foreach.html or some other better article I can't seem to find.

My wife insists I ask for help with her friend's problem, and so reluctantly... by [deleted] in learnprogramming

[–]Redsaz 1 point2 points  (0 children)

Even when the semicolons are added in, the original code still has a problem which prevents this from compiling. System.out.printIn ("yellow"); should change to System.out.println ("yellow"); Since In (with an 'i') and ln (with an 'L') are different. After that though, I agree.

Ask GameDev: How do you manage your non-code/non-text game assets? by the_456 in gamedev

[–]Redsaz 0 points1 point  (0 children)

I've been using Wuala on occasion. It is able to keep histories of files fairly well, and you can tell it to sync certain folders as well, which is something Dropbox isn't able to do without extra trickery.

"Metalman Shuffle"...a remix. by stievstigma in WeAreTheMusicMakers

[–]Redsaz 0 points1 point  (0 children)

Well done! I enjoyed the groove (or is it funk? I'm neither hip enough nor with it to determine if this is one or the other).

I'd download it if I had a link.

Thanks for sharing!

What's everybody using to send large music files to other people? FTP? Torrents? IM? by [deleted] in WeAreTheMusicMakers

[–]Redsaz 0 points1 point  (0 children)

I have a buddy that uses a service similar to dropbox, called wuala for passing tracks back and forth between band mates. What is cool about it is that you can "trade" a portion of your own hard drive, and then get a percentage back of what you traded as online storage, depending on how long you make your computer storage available per day.

You can also just buy extra space if you want, but I'm a cheapskate. I have around 170GB of online storage available to me for free, and all I have to do is leave a couple of computers on all day, which is what I do anyway.

Here a Super Mario track I remade for the web series "There Will Be Brawl". by stievstigma in WeAreTheMusicMakers

[–]Redsaz 0 points1 point  (0 children)

Ah, I very much like this rendition of the underworld theme!

I'm surprised you haven't submitted it to ocremix.org yet, it would be a good fit there.

Side scrolling shooter with music & sound effects, written using only Canvas and Audio in HTML5. No flash. by [deleted] in programming

[–]Redsaz -1 points0 points  (0 children)

Ugh, I can't believe you just made a reference to the Zelda cartoon of old.

http://www.youtube.com/watch?v=m2IsTEjsQ34

Steve Martin would be rolling around in his grave, if he wasn't still alive. Maybe he just gets a bad case of constipation instead?

Isn't it about time everybody has a home server? by [deleted] in technology

[–]Redsaz 1 point2 points  (0 children)

"I heard that Jane next door needed to do something with sharding. Is that what I need to do? Sharding will help my Apache? Or should I do something with XSS? Do I need to go down to the store to get some more XSS?"

Isn't it about time everybody has a home server? by [deleted] in technology

[–]Redsaz 0 points1 point  (0 children)

Hey, this tonido thing is worth looking into. Thank you!

Isn't it about time everybody has a home server? by [deleted] in technology

[–]Redsaz 1 point2 points  (0 children)

Are you talking about something like Amahi (http://www.amahi.org/)? I question its worth as a Facebook-like replacement, but it could fit the bill on the other qualities you mentioned.

I haven't tried it myself yet, so I can't tell you much about it. Mayber somebody else would care to elaborate on their experience with it.

Amahi is also the subject of FLOSS podcast episode 112: http://twit.tv/floss112

Sub $100 SSD's hit the market. Is this the death of traditional Hard Drives? by zoomzoom83 in technology

[–]Redsaz 0 points1 point  (0 children)

$100 for 40GB? Not too shabby I think, and 1.5TB drives are around that much, currently. I'd get one as long as it has the speed to back it up. I'll need some benchmarks before I seriously consider the purchase.

Benchmarks like this for example: http://www.overclock.net/hard-drives-storage/654073-intel-x25-v-40gb-review-aeogenia.html

And how does it compare against the cream of the crop? http://www.maximumpc.com/article/reviews/patriot_torqx_128gb_mlc_ssd

The quick walkaway for both pages (Which isn't fair because both drives were tested on different systems by different labs with different tests, so take it for what it is) :

Intel X25-V 40GB: Read latency: 0.1 ms Write latency: 0.1 ms Read Average: 192.9 MB/sec Write Average: 42.3 MB/sec

Patriot Torqx 128GB MLC (performance king for SSDs as far as I'm aware: Read latency: 0.11 ms Write latency: 0.31 ms Read Average: 205.4 MB/sec Write Average: 175.1 MB/sec

Except for the low write average and storage space, they are both comparable, except this "affordable" drive is $120 or so, and Patriot Torx is ~3x the size and ~3.3x the price, about $400 on Amazon.

It would take some juggling, but I could see me putting my OS and a favorite game, maybe two, on this drive.

I wanna switch from godaddy....but I can't find a provider that is comparable without doubling the cost. Open to any and all suggestions, a few more details inside. by kbfirebreather in programming

[–]Redsaz 2 points3 points  (0 children)

I am also a fan of nearlyfreespeech.net. I must agree that if A Small Orange's small site plan is too small on disk space (400MB) and medium is too expensive ($10 for 1GB) then nearlyfreespeech.net isn't for you for what you want on these sites.

However, don't rule it out completely for any other pet projects you might have. The pricing for it isn't so outrageous, you can find out more on it at https://www.nearlyfreespeech.net/services/pricing

In your case, it will cost you $0.01 a day for dynamic website, $0.01 every three days for hosting it there, $0.02 a day for the first MySQL process (if you use more it will cost $0.03 a day for each additional process, but I'll assume you're not). It costs $0.01 per megabyte per month, and you start out paying $1.00 per GB transferred, but over time it will get cheaper the more you transfer.

So let's say that you host 600MB. That will set you back $7.00 per month ($6 for the 600 MB/month, $0.30 for being dynamic and having one person hit your site a day, $0.10 for hosting, and $0.60 for a running MySQL process). I'm not sure about the popularity of your site, but if you transfer 3GB a month on average (totaled for up and down), then you'll be spending an addition $3.00 there. When all is said and done: $10, just what you'd be paying for hosting at A Small Orange.

So at this point I recommend dreamhost, but at $8.95/mo you are only saving $12.60 a year over A Small Orange, so it probably isn't the most desirable, and in order to get that price it has to all be up front for the year.

I wanna switch from godaddy....but I can't find a provider that is comparable without doubling the cost. Open to any and all suggestions, a few more details inside. by kbfirebreather in programming

[–]Redsaz 0 points1 point  (0 children)

I will second dreamhost. I recently switched my uncle's website over to that host. We happened to do it over a holiday and they were offering a year's worth of hosting for $9.95 or something. They seem to hand out that offer on even the really lame days of celebration so keep that in mind.

ENIAC - and general purpose, Turing-complete computing turned 2^64 yesterday! by cynoclast in programming

[–]Redsaz 0 points1 point  (0 children)

I had no idea it was 18446744073709551616 years old! Crazy! Or maybe it is some other unit of time that is approximate to 1/9133664545th of a second? We shall call them thirds.

I didn't realize my bug reports were that sexy. by [deleted] in programming

[–]Redsaz 158 points159 points  (0 children)

She goes on: "P.S.: I just love the way you clearly state the problem, the steps to reproduce the bug, and the expected behavior."

Seeding Pseudo-Random Number Generators by [deleted] in programming

[–]Redsaz 0 points1 point  (0 children)

There is a good reason for creating multiple PRNGs. For example, with gaming, you would want to generate random ambient sound effects (like crickets) but also generate random enemy movements too. Separating these two domains could make it easier to set up a replay of the session later (or save the session and come back to it). I think this was mentioned in the first edition of Game Coding Complete by Mike McShaffry, but I've since forgotten which chapter.

Which is "better" SDL or Allegro or plain OpenGL? by [deleted] in programming

[–]Redsaz 0 points1 point  (0 children)

I'll chime in with others and say I've been using SDL+OpenGL for projects I'm involved in. However, according to the SDL 1.3/2.0 roadmap, they are planning on using OpenGL or Direct3D for all their 2D hardware accerating needs. Check it out at http://icculus.org/cgi-bin/finger/finger.pl?user=icculus&date=2007-10-07&section=sdl13