Categories
Development mental note

Weekend curated links #03

https://forge.medium.com/the-best-questions-to-ask-at-your-performance-review-5aba3fb86528

https://medium.com/better-programming/why-do-incompetent-managers-get-promoted-815165a03bee

Categories
Development mental note

Weekend curated links #02

https://medium.com/personal-growth/4-habits-that-will-dramatically-improve-your-productivity-6c451f55f71

https://medium.com/swlh/use-the-pareto-principle-to-simplify-your-life-b9da4c49f3e9

Categories
Development mental note

Weekend curated links #01

https://medium.com/the-post-grad-survival-guide/3-lessons-from-a-75-year-old-to-save-your-20s-12ad9901352a

https://medium.com/better-programming/8-really-terrible-tips-when-working-from-home-9b7683d566db

Categories
Development

Creating and debugging regular expressions online

If you want to work quick and fast online with regular expressions and you don’t have a machine with Regex Buddy close by, I’d recommend the following 3 tools :

Categories
Development

Windows PowerShell Script: How to stop multiple windows services

If for some reason you might find yourself in the situation that you need an elegant method of stopping a bunch of windows services automagically you can always turn for help to the friendly and almighty Windows PowerShell…

# Get a list of Windows services with a specific filter criteria
$services = Get-Service |
Where-Object {$_.displayname -like "BloatedWithUselessServicesAntivirusName*"}

# Iterate through the bastard list of memory consuming services
if ($service -ne $null)
{
foreach ($service in $services)
{
# Get the service name
echo $service.name

# Kill it with a passion or ...
Stop-Service -Name $service.name

# Start it with hatred
#Start-Service -Name $service.name
}
}
else
{
echo "You are in luck, you don't have crappy av installed"
}

PS: in case your working environments security policy is constipated administer the following pill in a ps ISE with admin rights:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Categories
Development

Windows Server 2008 și ASP.NET

Trecem peste proasta inspirație de a instala Windows Server 2008 Server pe laptop… asta după o serie neagră de evenimente și crash-uri cu Vista.

Ocazional, windowsul se trezește să-mi strice din setările de securitate ale lui IIS, lucru ce apare mai ales după instalarea unor updateuri windows(știți și voi că updateurile windows mai mult strică decât repară pornind servicii oprite după placul lor, ștergând drepturi de securitate de pe diferite foldere din \win, activând firewall-ul default deși există altul activ, etc.).

Eh și cum lucram eu cu spor îmi apare eroarea :

CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\BlaFolderAppNameMoriWindows\blafile.dll ‘Access is denied.’

Pe care am întâlnit-o de cel puțin 10 ori de când instalez updateuri pe 2008 server și pe care am gougleuit-o de atâtea ori.

Soluția (o scriu aici mai mult pentru mine decât pentru voi ca să nu mai stau să caut iar pe net  😀 data viitoare) :

Grant pt. userii NETWORK SERVICE și \IIS_IUSERS cu drepturi depline pe folderele :

  • C:\Windows\Temp
  • C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Hai spor!