Powershell Script to clear Blob Cache

Write-Host -ForegroundColor White ” – Enabling SP PowerShell cmdlets…”
If ((Get-PsSnapin |?{$_.Name -eq “Microsoft.SharePoint.PowerShell”})-eq $null)
{
$PSSnapin = Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | Out-Null
}
$webAppall = Get-SPWebApplication
foreach ($_.URL in $webAppall) {
$webApp = Get-SPWebApplication $_.URL
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host “Flushed the BLOB cache for:” $webApp
}

Fix the position of SharePoint 2010 ModalDialog

SharePoint ModalDialog becomes irritating if you have scroll in your page. There is an issue with the SharePoint modaldialog that it displays dialog in the center of first viewing screen meaning if your page has scroll the dialog will be displayed at top and you may even loose dialog if the page is lengthy. Secondly if you scroll up and down, dialog also moves and you loose focus. To avoid these issues, you can fix the position of the dialog. The easiest way to achieve this is to override CSS for the main dialog div which is .ms-dlgContent e.g.

.ms-dlgContent
{
position:fixed! important;
}