Allegro.cc - Online Community
Post Reply

Allegro.cc Forums » Allegro.cc Comments » Thread locks too soon

rss feed Print
Thread locks too soon
amarillion
Member #940
January 2001
avatar

Only 100 more to go!

--
Martijn van Iersel | My Blog | Sin & Cos | Tegel tilemap editor | TINS 2017

Gideon Weems
Member #3,925
October 2003

If that is true, this thread has averaged roughly 1.887 posts/day so far. Good job, guys. We are changing the world.

GullRaDriel
Member #3,861
September 2003
avatar

Then what do you propose Gideon ?

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Gideon Weems
Member #3,925
October 2003

I feel as though we should conquer a small territory, in order to send a message.

... or just share videos that feature rodents:

video

Bruce Perry
Member #270
April 2000

Awwwwwwwwwwwwwwwwwwwwwwww <3

On another note, it's taken us about 1.3 years to get to 900. So in 13 years I'll be able to post "OVER 9000!!!!!!! :o" ;D

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

amarillion
Member #940
January 2001
avatar

There will be significant milestones before that. Like 940, 1024, 1337 and 1701.

--
Martijn van Iersel | My Blog | Sin & Cos | Tegel tilemap editor | TINS 2017

GullRaDriel
Member #3,861
September 2003
avatar

Thread locks too soon. I couldn't answer the allegro5 nuklear gui port in time, I had to PM him.
That's a great GUI tool, that can be driven by OGL, D3D, SDL, or allegro5 and the whole dx/ogl/whatever !

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Derezo
Member #1,666
April 2001
avatar

if($(programmer).is(':using-javascript')) $(programmer).find('.hair').each(function() { $(this).remove(); });

"He who controls the stuffing controls the Universe"

Mark Oates
Member #1,146
March 2001
avatar

In Ruby, that would look like:

Programmer.find_by(using: 'javascript').each { |p| p.hairs.each { |h| h.remove } }

bamccaig
Member #7,536
July 2006
avatar

In Perl5 that could look like:

$_->remove for map $_->hairs, grep $_->is_using('javascript'), $programmer;

GullRaDriel
Member #3,861
September 2003
avatar

Why use such complicated things when you can just free( theprogrammer -> hairs );

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Bruce Perry
Member #270
April 2000

That leaks memory - you should call al_destroy_hairs(theprogrammer->hairs);

The main difference is it packs the hairs better without introducing all those smelly spaces :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Elias
Member #358
May 2000

for programmer in programmers:
    if "javascript" in programmer.languages:
        for hair in programmer.hairs:
            hair.pull()

--
"Either help out or stop whining" - Evert

Bruce Perry
Member #270
April 2000

Who wants to write it in 6502? I totally would but I'm at work right now :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

GullRaDriel
Member #3,861
September 2003
avatar

Today I'm gonna catch the sun. I keep you informed.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Bruce Perry
Member #270
April 2000

What are you gonna catch it in?

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Chris Katko
Member #1,881
January 2002
avatar

You guys are slowing down. 8-)

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

Gideon Weems
Member #3,925
October 2003

♫ Too old to kid, too young to lock.

Johan Halmén
Member #1,550
September 2001

I've been catching the Sun for a few weeks now with a 4 kW set of solar panels. So far the highest effect has been almost 2 kW, which is very promising.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Years of thorough research have revealed that the red "x" that closes a window, really isn't red, but white on red background.

Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest.

GullRaDriel
Member #3,861
September 2003
avatar

Nice Johan ! 8-)

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Bruce Perry
Member #270
April 2000

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Eric Johnson
Member #14,841
January 2013
avatar

I got "That Lucky Old Sun" achievement in Fallout: New Vegas. 8-)

Gideon Weems
Member #3,925
October 2003

I've been catching the Sun for a few weeks now with a 4 kW set of solar panels. So far the highest effect has been almost 2 kW, which is very promising.

Is it topic-worthy? I hope to install solar panels (or shingles) this summer but haven't quite figured out how to calculate power demand. My PC's power supply, for example, says it uses 1600W AC, whereas my bass amplifier (obscenely loud) only lists 500W (or 690VA). I find this ridiculous.

Then, there's the microwave. It lists 1430 (watts, I presume) but is only used a few minutes each day. How is that calculated? If you have any resources you've found handy, I am all ears.

MiquelFire
Member #3,110
January 2003
avatar

Your PC's power supply is listing it's max usage (Some cheaper made PSU might be over estimating how much it can supply however, but I'm not sure if any of those are in that range you listed), and your actually use may be much less. You'll need some kind of power reader (like like this) see what the actual usage is (Test under load, lots of parts inside a computer now a days may just sip on power when they're idle).

Some UPS with displays can be used as a power meter (or even the software you install on the computer itself).

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red | +Me
Windows 8 is a toned, stylish, polished professional athlete. But it’s wearing clown makeup, and that creates a serious image problem. ~PCWorld Article

Gideon Weems
Member #3,925
October 2003

Quote:

You'll need some kind of power reader (like this)...

Thanks! Now we're making sense. I still don't understand, though, how a system of solar panels uses the unit kW and not, say, kW/hour (or even electrons/hour for a certain resistance spec, because the solar panels' role is to shove electrons into batteries). In terms of planning, I figured there would be two important calculations: the largest anticipated simultaneous demand and the average demand at any given point in time, the latter being used to roughly determine how many kW/hour a system needs to provide to the battery bank for recharging.

If a system of solar panels like Johan's provides 4 kW, is that per day?

Post Reply


Go to: