|
Looking for a book or website recommendation concerning radiosity rendering. I need something that a beginner can digest but is detailed enough that the reader could then actually implement something.
Started by gshauger on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I also have 3D Computer Graphics....
It covers radiosity, but doesn't seem to have it all in one place, but is rather discussed as part of illumination in general .
Not a light read, but clear and comprehensive.
The classic is Foley, van Dam, thingy, thingy.
|
|
E.g. Is it more secure to use mod_php instead of php-cgi? Or is it more secure to use mod_perl instead of traditional cgi-scripts?
I'm mainly interested in security concerns but speed might be an issue if there are significant differences.
Started by Corporal Touchy on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
In the default configuration they are pretty much the same, but cgi allows some more secure configurations that builtin modules... .
The security implications depend on the configuration.
Using a builtin module is definitely going to be faster than using CGI .
|
|
I have a byte array that has hex values and I initially put those values in a unsigned long. I am using a 32 bit processor via Ubuntu at the moment. But, i might have to port this program to a 64 bit processor.
now I am aware of strtoul function but since...
Answer Snippets (Read the full thread at stackoverflow):
Instead of using long or long long you should use a typedef like uint32_t , or something similar, so it can be 32-bits on all platforms, unless this isn't what you want?
It seems you do have a potential problem with endianness though, if you are simply... .
|
Ask your Facebook Friends
|
By picking MVC for developing our new site, I find myself in the midst of "best practices" being developed around me in apparent real time. Two weeks ago, NerdDinner was my guide but with the development of MVC 2, even it seems outdated. It's an thrilling...
Started by Martin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Sorry, I can not just add a comment to the main post, maybe... .
I don't know how to update an entity simply.
When I try to update a subset of fileds, find some fileds that are not used in the form are set to the default value .
I met the UPDATE problem too.
|
|
In my javascript I have this
loopDeLoop: while (foo !== bar) { switch (fubar) { case reallyFubar: if (anotherFoo == anotherBar) { break loopDeLoop; } break; default: break; } }
But JSLint says... lint warning: use of label
Here's the notes from JSLint...
Started by W4IK on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Var done = false; while (foo !== bar && !done) { switch (fubar) { case reallyFubar: if (anotherFoo == anotherBar) { done = true; } break; default: break; } if(!done)... .
You could set a flag that determines whether or not you are done working in the loop .
|
|
Hi,
I think this is a pretty common problem.
I've got a table user(id INT ...) and a table photo(id BIGINT, owner INT) . owner is a reference on user(id) .
I'd like to add a constraint to the table photo that would prevent more than let's say 10 photos...
Started by jeje on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If that's not a concern for you it would be best to remove the locking.
You to go 1 over the limit.
|
|
I've got a model like this:
class Thing(models.Model): property1 = models.IntegerField() property2 = models.IntegerField() property3 = models.IntegerField() class Subthing(models.Model): subproperty = models.IntegerField() thing = modelsForeignkey(Thing...
Started by andybak on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Using (instead of final_q=Q() in the beginning)
final_q=Q(subthing_set__main=True) sub_vals = map(lambda v: v['value'], filters) if sub_vals: final_q = final_q & Q(subthing_set__subproperty__in=sub_vals)
should get you what you want, you can also adjust... .
|
|
I have some rudimentary knowledge of cabling and wiring but I would like to expand my knowledge. Currently, if we need any rewiring done for our PBX system we call in contractors which is expensive. I'd like to find some resources and guides that can ...
Started by elistp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Cable ends and punchdowns:
http://www.cabling-design.com/references/pinouts/
Color coding:
http://www.cabling-design.com/references/colorcodes/
Punchdown eHow:
http://www.ehow.com/how_5113846_use-punch-down-tool.html
Tonegenerator eHow:
http://www.ehow....
|
|
Hi!
We have a situation where a C# application is working with SQL CE 3.5 . To allow for a legacy program to use some of its features we have produced a C++ dll which uses interop to extract the info that it needs from the C# program. For this to work...
Started by Presidenten on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Good luck!
add the following....
You just need to make sure that you have code in your DLL to determine where it lives on disk, and read the configuration from the same location .
You can add a foo.dll.config file and make sure it lives alongside the DLL .
|
|
Hi, I have literally the same problem, as described here http://www.iphonedevsdk.com/forum/iphone-sdk-development/968-breakpoints-dealloc.html#post7406
Sorry for the quote, but the description is perfect.
Because my dealloc is also not called automatically...
Started by neil on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you have non-memory-related cleanup to do (perhaps save temp info to a file), that should go in applicationWillTerminate... .
You don't need to worry about 'cleaning up' memory when your app quits; the OS will nuke your address space from orbit (it's the only way to be sure) .
|