Using AWS Autoscaling with Spot Instances
The goal:
You have AWS load-balancer with spot-instances. You need the engine starting spot instances automatically when existing ones die.
How to mount EBS volume into EC2 Ubuntu Instance
First see if it is attached with:
>> sudo fdisk -l
Disk /dev/xvdf: 10.7 GB, 10737418240 bytes
Then format it (if you haven't already done it)
>> sudo mkfs -t ext4 /dev/xvdf
Create dir where it will be mounted:
>>mkdir /mnt
That's it you can mount it:
>>sudo mount /dev/xvdf /mnt
Check if it
Google Chrome Log in Acceptance Tests
If you run Google Chrome with these parameters:
--enable-logging --v=1 http://goo.gl/BL4bP
--user-data-dir http://goo.gl/BCkal
you get absolutely independent instance of Chrome logging a lot of interesting things and among them all calls from JavaScript to console.log, console.info, console.error
Thoughts about Pivotal Tracker
Pivotal Tracker is suitable for almost 100% for what I need to track 5 small teams: 4 in SPb and one in Zhuhai.
It is fast (rich JavaScript UI). It is very simple from usability perspective: rare case when you need to click twice to get what you need.
Function Hoisting or one more gotcha from JavaScript you should have known about!
Started reading great book ‘JavaScript Patterns’ http://goo.gl/51wTa and want to share very interesting example from there.
The beginning is here “2.2.5.
There is a great article describing this Network Graph. https://github.com/blog/39-say-hello-to-the-network-graph-visualizer
I have no intent to repeat it here. Just want to say that It is very useful! It makes teams work very transparent.
You’ve got all your product on github, great! You have your local clone of github repository, even better!
But what will you do when your product is installed on testing virtual environment and you see a problem? Fix that on your dev machine in your local repository and then copy files to testing m
For communicating with remote github.com repository from your local clone you need SSH Keys.
“No one can be part of multiple jelled teams. The tight interactions of the jelled team are exclusive.
Peopleware: Defensive management
“You can’t protect yourself against your own people’s incompetence. If your stuff isn’t up to the job, you will fail. Of course, if the people are badly suited to the job, you should get new people. But once you’ve decided to go with a given group, your best tactic is to trust them.
let data = [1;2;3;4]
let r1 =
data
|> List.map (fun x -> x + 1)
|> List.sum
printfn "Adding '1' using map and then summing = %A" r1
14
Short version of Fitts' law: Put commonly accessed UI elements on the edges of the screen
http://bit.ly/daF035
"The short version of Fitts' law, to save you all that tedious reading, is this:
- Put commonly accessed UI elements on the edges of the screen. Because the cursor automatically stops at the edges, they will be easier to click on.
- Make clickable areas as large as you can.
The Software Craftsmanship Manifesto extends and challenges further the assumptions of the Agile Manifesto
http://en.wikipedia.org/wiki/Software_Craftsmanship
"Software craftsmanship is an approach to software development that emphasizes the coding skills of the software developers themselves.
Twitter co-founder Evan Williams: Experimentation lets you create value
http://techcrunch.com/2010/03/15/ev-williams-sxsw/
"UH: What makes 21st century businesses different? Like Twitter? The first principle to me is experimentation. Why are you willing to explore different possibilities?
EW: Experimentation lets you create value.
SLIM: beware of overdoing it! #fitnesse
http://gojko.net/2010/03/12/fit-vs-slim/
"For using acceptance tests as a guide for development, beware of overdoing it. I am very concerned about long-term maintenance costs of such tests.
http://googlewave.blogspot.com/2010/02/ten-tips-for-waving.html
Move through the unread messages in a wave by pressing the spacebar.
Waferslim 1.0.1 released #python #fitnesse
http://withaherring.blogspot.com/2010/03/waferslim-101-released.html
WEDNESDAY, 10 MARCH 2010
This is a bug fix release targeting:
- Undefined symbols in tables raise an exception
- Multi-line data in fitnesse table cells causes exception
- Test fails when __repr__ raises exception while loggin
Using the SharePoint 2010 Client Object Model - Part 1 and #powershell
Using the SharePoint 2010 Client Object Model - Part 1
http://goo.gl/mgOu
Tried it from powershell - doesn't work
This works:
>>Add-Type -Path Microsoft.SharePoint.Client.dll
>>$client = New-Object Microsoft.SharePoint.Client.ClientContext "http://sp2010dc"
This doesn't
>>$client.LoadQuery( $
#powershell Piping Objects to Functions
from >>get-help about_functions
Any function can take input from the pipeline. You can control how a
function processes input from the pipeline using Begin, Process, and End
keywords.
- The Begin statement list runs one time only, at the beginning of the function.
Introducing the Windows #powershell ISE
http://technet.microsoft.com/en-us/library/dd315244.aspx
Applies To: Windows PowerShell 2.0
The Windows PowerShell Integrated Scripting Environment (ISE) is a host application for Windows PowerShell.
How to Ease Customer Pain
http://goo.gl/RpfJ
- Explain what exactly the end result will be
- Tell the customer what you will be doing
- Explain what the customer will need to do
- Outline anything the customer will experience (wait, discomfort, etc.)
- Call the customer by name to personalize the experience
- If tensio
#powershell job can be run as 32 process even if computer has 64-bit OS
just run this and check example 6
get-help start-job -examples
exploring wsman configuration, the core of remoting in #powershell
>>cd wsman:
>>ls
ComputerName Type
------------ ----
localhost Container
>>cd localhost
>>ls
Name Value
---- -----
MaxEnvelopeSizekb 150
MaxTimeoutms 60000
MaxBatchItems 32000
MaxProviderRequests 4294967295
Client
Service
Shell
Listener
Plugin
ClientCertificate
>> cd client
>> ls
SQL Server #powershell Extensions (SQLPSX)
http://sqlpsx.codeplex.com/
The primary goal of SQL Server PowerShell Extensions (SQLPSX) is to provide intuitive functions around the SMO objects which are backward compatible with SQL 2000. A secondary goal is to provide an application which reports flatten/effective security settings.
How to restore from SharePoint 2010 Recycle Bin through PowerShell 2.0
Search for what you need:
>>(Get-SPWeb "http://sp2010dc" ).RecycleBin | ?{$_.Title -match "cool"}
Web : Home
ID : b23d2d41-cd6a-4471-a891-c86f83563e11
ItemState : FirstStageRecycleBin
ItemType : ListItem
Title : Would be cool
DirName : Lists/Tasks
LeafName : 1_.000
Author : PRODUCT\administ
How to call SharePoint 2010 remotely through PowerShell 2.0
you are on computerA, SharePoint is on computerB
on computerA:
>>Enter-PSSession -Computer computerB
>>Add-PsSnapin Microsoft.Sharepoint.PowerShell
Enjoy :)
SharePoint 2010 Backup/Restore from PowerShell 2.0
>>Invoke-Command -session $session {Get-Command Restore* | ?{$_.ModuleName -eq "Microsoft.SharePoint.PowerShell" } |select Name}
Restore-SPEnterpriseSearchServiceApplication
Restore-SPFarm
Restore-SPSite
>>Invoke-Command -session $session {Get-Command *Backup*|?{$_.CommandType -eq "CmdLet"}|sele
#powershell 2.0 modules, you don't need to be Administrator to call them
http://huddledmasses.org/powershell-modules/
"Modules appear destined to replace snapins as the main way to extend PowerShell.
What’s New In PowerShell 2?
http://huddledmasses.org/whats-new-in-powershell-2/
Advanced Functions
Modules
Help
Remoting
Eventing
Integrated Script Editor (debugging)
Transaction support
>>function test ($x) { &$x(3) }
>>test { param($x) $x + 2 }
5
:)
SharePoint 2010 Products administration by using Windows PowerShell
http://technet.microsoft.com/en-us/library/ee806878(office.14).aspx
- To retrieve a list of all SharePoint 2010 Products cmdlets using the Noun parameter, at the Windows PowerShell command prompt, type the following command: Get-Command –module Microsoft.SharePoint.PowerShell
- To retrieve a list
#powershell Using the Get-Command Cmdlet
http://technet.microsoft.com/en-us/library/ee176842.aspx
Can’t remember the name of each and every Windows PowerShell cmdlet? Don’t worry about it; that’s one of the things Get-Command can help you with.
Get-Alias | sort #powershell
gets alphabetic listing of all currently defined aliases, want to assign alias? check Set-Alias
get-help about #powershell
shows a list of all about documents, very helpful
powershell 2.0 and credssp, works just great
powershell 2.0 and credssp, works just great
First I thought it is like Kerberos delegation. That is a pain, you have to do bunch of tricks with SPN and AD accounts. But credssp is much easier to turn on and use.
View comments