concepts

a signal x(n) then is this concept of shirting and folding correct?

x(n) is given need x(-n+3) so to solve it: first advance the x(n) signal by 3 units(time) then fold it, or make a reflection of it are the above steps correct or is the following correct first fold the x(n) signal then advance the signal by 3 units ? ...

conceptual "stacks" and code layers in programming

I have been thinking a lot lately about how code gets organized in a layered way. I have been thinking of four different ways: Instantiation -- specifically objects are instances of classes. However, in several languages (like python), classes are also objects that were instantiated from a metaclass. So you can end up with an instan...

Relational DB Concept

I am trying to lay out the concept for a Relational DB and I ran into some conceptual Problems: If I have multiple discrete Entities that are "nested" in each other/have a hierarchy e.g.: Bosses can have multiple Employees. These employees have different Projects they do and One Project has again multiple sections. So B1-Bn: ...

A developer's rules to live by

I was inspired by Gichin Funakoshi's Twenty Principles, and decided that we software developers ought to have some too, and I couldn't think of a better place to put this than Stack Overflow community wiki. It is not about hardware or software, it is about people Technologies and tools come and go, patterns and algorithms stay the same...

What is ‘power-to-weight ratio’ of an API?

In Bloch’s presentation, he said designer should look for good power-to-weight ratio for API. Moreover, he also stressed that ‘Conceptual weight more important than bulk’. I guess the weight is for ‘Conceptual weight’, bulk is for number of methods of a class. But I couldn’t understand what ‘Conceptual weight’ is, what ‘power-to-weight ...

Scheduling Email Notifications

I'm trying to figure out a good solution for sending email notifications based on user preference. Users can set up notifications to come Everytime the event occurs Once an hour Once a day Once a week Would the best way to do this be to set up a crontab that runs a .php every minute checking to see if anything needs to be sent out? ...

Why to use "not null primary key" in TSQL?

I am seeing too frequently "not null primary key" in scripts creating tables in TSQL in blogs, articles, books, forums, here in SO, etc. For example, BING gives 630,000 results ((just in English) if to search against "not null" NEAR "primary key" "sql server": http://www.bing.com/search?q=%22not+null%22+NEAR+%22primary+key%22+%22sql+s...

NULL permitted in Primary Key - why and in which DBMS?

Subquestioning my question "Why to use “not null primary key” in TSQL?" [1] As I understood from other discussions, some RDBMS (for example, MySQL, SQLLite, which else?) permit "unique" NULL in primary key (PK). I read-read and could not grasp - why and what's for? Update: I believe it is beneficial for communication with other...

"Warn on null primary keys" table design option in SSMS

I SSMS (2008R2) menu Tools --> Options --> Designers --> Table and Database Designers --> "Warn on null primary keys" I played checking and unchecking this checkbox but could not detect the differences. What is it for? My related questions, probably: NULL permitted in Primary Key - why and in which DBMS? Why to use “not null pr...

What is the purpose of each of the memory locations, stack, heap, etc? (lost in technicalities)

Ok, I asked the difference between Stackoverflow and bufferoverflow yesterday and almost getting voted down to oblivion and no new information. So it got me thinking and I decided to rephrase my question in the hopes that I get reply which actually solves my issue. So here goes nothing... =) I am aware of four memory segments(correct ...

What is the name of a [foo, bar] = ["foo", "bar"] feature?

I need to know a correct name for this cool feature that some languages provide. FYI: In some languages it is possible to do a multiple assignments by assigning a structure of values to a structure of "variables". In the example in the question title it assigns "foo" to foo and "bar" to bar. ...

Constraint is key is index is constraint?

in SQL Server Management Studio (SSMS) 2008 R2 Dev on the table (because I cannot ask without it) --SET ANSI_NULL_DFLT_ON ON create table B (Id int) I create unique constraint ALTER TABLE B ADD CONSTRAINT IX_B UNIQUE (ID) WITH (IGNORE_DUP_KEY = ON) SSMS shows that I do not have any constraint but have a key + index instead w...

Concept for 2D realtime character animation

Hi there, I'm looking for a good concept for realtime character animation in a 2D environment. There several ways, from prepare all the animation stuff offline or do the animation with graphic snippets in realtime. Do you have a good concept for me? Thank you ...

How is Kana sensitivy applied to non-Japanese letters?

Why is Kana Sensitivity applied to Latin and Cyrillic collations? i.e. "_KS" in, for ex., Latin1_General_100_CS_AI_KS I tried to search for Kana and get exactly what I expected: When Japanese kana characters Hiragana and Katakana are treated differently, it is called Kana sensitive. How is it applied to Latin letters? What am I l...

What are the conceptual changes that came from C to .net

5-6 years ago when i was in school, I had C as my programming language. And at that time, I read about struct and little bit about Classes. At that time I had a concept that under struct we cannot declare functions and other such things. Structure only allows value types and themself are also value types. And I was living under that s...