mateus.info

Technology, Investments, Philosophy and Musical Theory

Cool things about SQL Server 2008 that you will probably like (From New Zealand Tech Ed 2007)

Filed under: Events,General/News,Technology/Development — mateus at 5:50 am on Monday, August 13, 2007

 

Automatic page repair:  You have a mirrored database, and then a single page file fails. SQL Server will automatically recognize that and obtain the copy from the mirror one. Yes, I saw that working.

                Compressed backup. This can make a 77MB backup turn into a 19MB backup. And can make the backup finish in half of the time. But the best thing is that the restore process is faster too.

                Compressed log shipping

                Transparent encryption

                You can add new CPU’s to your server on the fly

                Data auditing

                Declarative management framework: You can configure things like: It is not allowed to have objects under the dbo schema and things just happen. You have a nice console to check if there is any violated rule.

                Row Level Compression and Page Level/Dictionary compression. Imagine you have a varchar column that in 80% of the case is “New Zealand”. That could be stored only once! Cool, eh?

                Resource governor. You can set things like: Connections with the username equals “blah” cannot use more than 20% of the CPU and X Gigs of Ram. Yes, I saw that working too. So now SQL has “resource pools”.

                Disconnected scenarios without having to rewriting applications.

                Filestream Data Storage. You create a column that is a file, but you store only the file name there. SQL Server stores the file in the file system and maintains the consistency between the relational data and the file.

                You can have up to 100000 columns in a table. And if you do that, you must be a mad dude.

                Filtered indexes: I want to filter this column ONLY if this other column is greater than 56. Woohoo!

                Hierarchical data type.

                DateTime2 data type – higher precision.

                DateTime with offset data type.

                Virtual Earth integration

                Geometry location data type.

                Geography spatial data type.

                Merge T-SQL statement. If you are an Oracle Certified too you already know what that means. :)

                Data Mining in Excel

                And some details: No 60, 65 or 70 compatibility levels anymore. No pubs or northwind databases installed with SQL Server.

 

               

               

               

 

               

               

 

 

What can go wrong with your SharePoint project and what can you do to avoid that

Filed under: Events,General/News,Technology/Development — mateus at 5:26 am on Monday, August 13, 2007

Here are some valuable tips about MOSS and WSS to keep in mind, extracted from the NZ TechEd 2007:

SQL Server:

Databases can get big, really big, if you store lots of documents in SharePoint. Split your databases so they have around 50GB to 100GB. This will make many things easier, such as backup/restore for example.

Don’t update statistics for SharePoint database. Trust that SharePoint will take care of that. If you update statistics, this can actually make things worse.

During the first days, when you probably will be loading lots of documents, you will probably want to set the database recovery mode to simple to improve performance.

Use aliases when configuring database access, this will make a lot easier when moving from one SQL Server to another.

IIS:

                Do not configure IIS, configure SharePoint. Yes, I know, I don’t feel very comfortable with that too, but that’s how SharePoint works, so accept it and be happy.

                Get to know how AAM works, avoid IIS host headers.

                Get to know how Security Zones work, they can be very useful. Remember that you need a security zone with NTLM support in order to allow search.

                If you are used to ASP.Net applications, remember that web.config files work differently here. They stay at InstallDir\InetPub\wwwroot\wss\virtual directories\{GUID of Site}

                If you need your SharePoint to have internet access (read RSS’s for example) you need to change the web.config of each web site that needs this access.

                Application pools for SharePoint takes a lot of RAM (consider at least 1 GB per pool). Avoid creating too many of them. If you are considering having both SharePoint and SQL server on the same box, memory can become a serious issue.

 

Security:

                Always use domain accounts for all the SharePoint services.

                Create one domain account for each of the following:

                                -Farm account

                                -SSP account

                                -Office SharePoint Search Service

                                -Default content crawling (this one has read access to everything, so shouldn’t be mixed with others)

                                -Standard app pool account

                Do not mix these accounts

Log files:

                Always check SharePoint’s log files after setups/upgrades.

Windows Event Logs:

                Consider using MOM as your central management system, will make things easier

General:

                The first SharePoint Server in a Farm is like the first AD Server in a domain. So that requires more attention when installing/configuring.

                Features: Installing is different than activating

                You have content deployment so you can mirror your authoring server to the production server. It works incrementally by default, and is only for MOSS. But the API that supports it can be used on WSS as well. Do not edit content on the destination server when using this feature.

                You can also copy content using stsadm command line tool, site management tool, backup/restore or custom codes, but if you are replicating an authoring site to production, the content deployment is your guy.

Hotfixes:

                There are known bugs, and hotfixes for them. Remember to check in blogs and MS website.

Staging:

                There is no staging server support for content, only code. Why? Because it wouldn’t make sense. You can create/change your content in production without making it visible.

Seleção natural, as máquinas e a gente (In Portuguese)

Filed under: Philosophy — mateus at 8:19 pm on Wednesday, August 1, 2007

Sempre que eu lia sobre as teorias de Darwin eu não conseguia evitar de colocá-las em cenários que vão muito além da natureza e dos animais. 

Seleção natural existe em diversos níveis: Empresas, por exemplo, são organismos que também competem, sofrem mutações, evoluem ou morrem. No meio corporativo também existe essa competição, os mais adaptados conseguem empregos enquanto os demais acabam passando fome ou trabalhando muito para ganhar pouco. Daí o grande engano dos comunistas em achar que conseguem por decretos alterar essa lei da natureza. 

Mas uma coisa que sempre me chamou a atenção foi o papel das máquinas como “organismos” que também competem no mesmo meio que os outros animais, inclusive o homem. 

Pense em quantas profissões sumiram do mapa graças às máquinas. Você ainda conhece algum digitador?  

Muitos acreditam que se as máquinas destroem empregos na camada mais baixa da pirâmide, elas criam oportunidades nas camadas mais altas. O problema aí é que na camada mais baixa você tem centenas de empregos na proporção de apenas 1 na camada mais alta. Os demais ficam de fora. Da para ver uma tendência aqui?  

Além disso, em algum países como o nosso Brasil tenta-se em vão criar leis que segurem esse processo de seleção natural (visão distorcida da ala esquerda que infelizmente, cheia de boas intenções, acaba causando mais danos do que consegue enxergar), como o caso dos trocadores de ônibus que não podem ser substituidos por máquinas, o que iria baratear as passagens de ônibus, mas deixaria os coitados desempregados. Esse tipo de “intervenção” não funciona, é ilusório. Isso porque as leis de seleção natural são tão ponderosas que acabam sempre encontrando um meio. Por exemplo, se estamos salvando os empregos deles, estamos também acabando com outros que pelo custo da passagem se tornam inviáveis. E enquanto isso, outros países onde não existe trocador, é possível produzir produtos a preços mais baixos, que vão ser vendidos no Brasil, e por aí vai… 

Mas as máquinas estão ganhando espaço na briga com os homens. Primeiro, a evolução tecnológica por si só está desacelerando a evolução do homem. Agora podemos nascer com defeitos genéticos e ainda assim ter uma vida plena, reproduzir e etc, graças à tecnologia. O problema é que sem perceber vamos nos tornando cada vez mais dependentes dela, até o dia em que até reprodução só vai ser possível com a assistência das máquinas. Veja a engenharia genética, por exemplo. Quando for possível escolher o quão inteligente e saudável seu filho vai ser, quem é que vai querer ter um filho de forma natural, sem esse poder de escolha? Só vai conená-lo a ter uma vida miserável porque não vai conseguir sequer um emprego, já que os outros candidatos serão mais qualificados. 

Agora temos o dilema do petróleo. O petroleo está acabando, e o mais provável é que a solução sejam os biocombustíveis. 

Ora, biocombustíveis percisam ser plantados, os fazendeiros vão análisar as possibilidades e perceber que plantar para produzir combustível é mais lucrativo que plantar para produzir comida. Ou seja, os carros precisam se alimentar, assim como os homens, só que os carros vão se mostrar mais importantes, vão ter preferência quando o assunto for comida. 

Da pra ver o resultado? 

Basicamente estamos todos competindo por recursos limitados, e como o Darwin dizia muito bem, o negócio não é o mais inteligente ou o mais forte, e sim o mais adaptado. E as máquinas sempre se adaptarão mais rapidamente e facilmente que os homens. 

De um jeito ou de outro, a única certeza que eu tenho é que a raça humana vai ser extinta, cedo ou tarde, seja pela evolução, seleção, pela engenharia genética, o que for. É o caminho natural, só não vê quem não quer.