I can’t agree with this statement: “IronPython is actually doing quite a lot at startup time” http://ironpython-urls.blogspot.com/2009/08/good-mix-20-startup-time-inline-c.html If you are doing again and again the same thing and it affects users of the language why don’t you do it by some other way? Probably it could be possible to pre-compile the parts of CPython standard library IronPython uses. It is not a big deal to have couple more dlls required if you get 10 times faster startup time. Now for example it is not possible to write ‘unit tests’ by using IronPython. Just because ‘unit test’ is a code taking less than 10ms for run.
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.
GitHub Network Graph
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.
Git and testing lab
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
GitHub and ssh_agent
For communicating with remote github.com repository from your local clone you need SSH Keys.
Peopleware: Jelled Teams
“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.
F# is very concise
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.
#googlewave hit space!
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
#powershell and #lambda
>>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.
Credential Security Support Provider (CredSSP) in Windows XP Service Pack 3
http://support.microsoft.com/kb/951608
CredSSP is a new Security Support Provider (SSP) that is available in Windows XP SP3 by using the Security Support Provider Interface (SSPI).
PowerShell 2.0 plus Fitnesse SLIM plus PowerSlim
Very simple scenario
|import |
|powerslim|
!|scenario|given user: _ with password: _ |user, pwd |
|start |PowerShell |
|eval |^s = new-object -typeName System.Security.SecureString |
|eval |foreach(^a in "@pwd".ToCharArray()) { ^s.AppendChar( ^a ) } |
|eval |^creds = new-object -typename Syst
Selecting Specific Properties of an Object #powershell
http://technet.microsoft.com/en-us/library/ee176955.aspx
Get-Process | select name,id
Windows PowerShell | Where {$_.property -eq statement}
http://www.computerperformance.co.uk/powershell/powershell_where.htm
gwmi -list | ? {$_.name -match "Network"}
Waferslim 1.0 released #fitnesse #slim #python
http://withaherring.blogspot.com/
This major release supports fitnesse release 2010-01-03 and slim protocol v0.1:
-Added support for delegating from fixture to system under test with fixture.sut()
-Added support for library fixtures
-Added EchoFixture for use as a library fixture
-Added support
Fit is Dead, Long Live Fitnesse - with Ward Cunningham and James Shore
http://www.hanselminutes.com/default.aspx?showID=169
There is no Fit anymore, but there is Fitnesse plus SLIM from Uncle Bob! Also interesting points about Domain Language. Do recommend.
Top 10 reasons why teams fail with Acceptance Testing
http://gojko.net/2009/09/24/top-10-reasons-why-teams-fail-with-acceptance-testing/
...
Microsoft PowerShell's Syntax
http://www.computerperformance.co.uk/powershell/powershell_syntax.htm
"The fact that you almost don't need this page is a testament to the intuitive nature of PowerShell.
Getting Credentials From The Command Line
http://goo.gl/9hgU
"When you use the Get-Credential cmdlet, you get a GUI dialog box to enter the credentials. This is the "Common Criteria Certified" way of handling credentials. It is also a pain in the butt at times.
PowerShell 2.0: How to specify credentials to Invoke-Command
Something like this :)
$s = New-Object -TypeName System.Security.SecureString
$s.AppendChar( '1' )
$creds = new-object -typename System.Management.Automation.PSCredential -argumentlist product\Administrator, $s
invoke-command -ComputerName sp2010dc -Credential $creds {Get-Process}
PowerShell 2.0 multi-hop authentication
Within the remoting session to computer B, we want to execute a command — as below — to create test.txt on computer C.
PowerShell 2.0 Enable-PSRemoting
http://www.ravichaganti.com/blog/?p=1064
The Enable-PSRemoting cmdlet configures the computer to receive Windows PowerShell remote commands that are sent by using the WS-Management technology.
Switching to Cassandra?
http://goo.gl/GVOa
"With Twitter going public with their plans to switch to Cassandra, a lot of people are asking if they should switch too.
Plan browser support (SharePoint Server 2010)
http://technet.microsoft.com/en-us/library/cc263526(office.14).aspx
"SharePoint Server 2010 supports several Web browsers that are commonly used. However, certain browsers might cause some SharePoint Server 2010 functionality to be downgraded, limited, or available only through alternative steps.
Resource Monitor on W2k8 and W7
if you are using netstat -a -b, then try "Resource Monitor", it looks very good.
View comments