Split a project between the teams and not other way around!

Software development managers accustomed to moving people around the projects. Instead they should be able to split a project between the teams and not other way around! This implies that software development manager should be a software development practitioner. There is a lot of similar ideas around this topic below by Pieter Hintjens

#SQL: Update xml field from value from other table

We are going to update Title field in XML below. Assume we have incorrect values there in our Library table. We will find the correct values by using Title field from AllBooks table. <Book xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt; <Title>Incorrect Title</Title> </Book> UPDATE Library SET info.modify(‘replace value of (/Book/Title/text())[1] with sql:column(“Title”)’) FROM Library  LEFT OUTER JOIN AllBooks ON Library.BookID=AllBooks .ID WHERE info.value(‘data((/Book/Title)[1])’,’nvarchar(max)’) likeContinue reading “#SQL: Update xml field from value from other table”

#PowerShell: Register AWS EC2 instances in Amazon Route53 (new way)

Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. Just in case – Amazon EC2 I use this script https://github.com/konstantinvlasenko/cloud/blob/master/Register-CNAME.ps1 to provide meaningful names for them. Simple usage: $config = @{ DomainName = ‘mylab.com’ } $name = “www.$($config.DomainName)” # get instances $instance = (Get-EC2Instance $InstanceId).RunningInstance # update R53 .\Register-CNAME.ps1Continue reading “#PowerShell: Register AWS EC2 instances in Amazon Route53 (new way)”

#SharePoint 2013 #PowerShell: How to get user permissions report

function Get-SPPermissionsReport($web, $recursive) { $web | Get-SPUser | % { New-Object PSObject -Property @{ UserLogin = $_.UserLogin ‘Roles given explicitly’ = $_.Roles ‘Roles given via groups’ = $_.Groups | %{$_.Roles} Groups = $_.Groups Url = $web.Url } } if($recursive) { $web.Webs | % { Get-SPPermissionsReport $_ $recursive } } } $web = Get-SPWeb http://yoursharepoint/sites/department Get-SPPermissionsReportContinue reading “#SharePoint 2013 #PowerShell: How to get user permissions report”

Apply GeoTrust certificate to AWS ELB

Here is the tool which I used to verify correctness of my AWS ELB SSL configuration. Certificate Name – put here whatever you want Private Key – copy and past content of server.key file Public Key Certificate – copy and paste content of your_site_name_ee.cer file This will be enough to pass validation by the tool.Continue reading “Apply GeoTrust certificate to AWS ELB”