SQL server identity column values start at 0 instead of 1

Source: http://stackoverflow.com/questions/724668/sql-server-identity-column-values-start-at-0-instead-of-1   I’ve got a strange situation with some tables in my database starting its IDs from 0, even though TABLE CREATE has IDENTITY(1,1). This is so for some tables, but not for others. It has worked until today. I’ve tried resetting identity column: DBCC CHECKIDENT (SyncSession, reseed, 0); But new records start with 0. … Read moreSQL server identity column values start at 0 instead of 1

ASP.NET Web API Exception Handling

Source: https://weblogs.asp.net/fredriknormen/asp-net-web-api-exception-handling   When I talk about exceptions in my product team I often talk about two kind of exceptions, business and critical exceptions. Business exceptions are exceptions thrown based on “business rules”, for example if you aren’t allowed to do a purchase. Business exceptions in most case aren’t important to log into a log file, … Read moreASP.NET Web API Exception Handling

Risks of using active FTP mode instead of the passive mode

Source: http://serverfault.com/questions/291539/risks-of-using-active-ftp-mode-instead-of-the-passive-mode   In a nutshell: FTP connections consist of two streams: command (control) and data When a socket is opened and code does not explicitly bind to a port, the OS will consume a high numbered port in its ephemeral port range (sysctl -a | grep ip_local_port_range) Non-root processes must use ports >1024 Active Mode … Read moreRisks of using active FTP mode instead of the passive mode

What is the difference between active and passive FTP?

Source: http://stackoverflow.com/questions/1699145/what-is-the-difference-between-active-and-passive-ftp   Active and passive are the two modes that FTP can run in. FTP uses two channels between client and server, the command channel and the data channel, which are actually separate TCP connections. The command channel is for commands and responses, the data channel is for actually transferring files. It’s a nifty way … Read moreWhat is the difference between active and passive FTP?