Archive for the ‘misc’ Category

Accidental launch of Narrator on Windows 8

January 21, 2015

enable/disable by Windows+Enter

Auto-starting Modern Windows 8/8.1 apps on startup

December 3, 2014

Autostarting Metro/Modern apps

http://community.skype.com/t5/Modern-Windows-archive/Not-starting-automatically/td-p/1203030

skype-metro

push new repo to github

November 13, 2014

1. create local repo

2. add remote

git remote add origin <remote repository URL>

3. verify remote

git remote -v

4. push

git push origin master

from:

https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

disable windows update restart nag

October 9, 2014

sc stop wuauserv

http://superuser.com/questions/190448/disable-restart-after-update-prompt-for-server-2008-r2

http://lifehacker.com/289998/disable-windows-update-restart-nag

.net regex find replace in visual studio 2013

September 23, 2014

F: Log.Write\(\”(?<all>.*)\);

R: Log.Write(string.Format(“$1));

–>

F: Log.Write(“browsers alive: {0}/{1}”, nbrOfAliveBrowsers, nbrOfTotalBrowsers);

R: Log.Write(string.Format(“browsers alive: {0}/{1}”, nbrOfAliveBrowsers, nbrOfTotalBrowsers));

git bash alias shortcuts

August 22, 2014

put into c:\users\<username>\.bash_profile

alias gs=’git status’
alias gpr=’git pull –rebase’
alias gc=’git commit -a -m’
alias ga=’git add -A .’
alias gl=’git log –graph –pretty=format:”%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset” –abbrev-commit’
alias gca=’git commit –amend’
alias gri=’git rebase -i’
alias gco=’git checkout’
alias gcob=’git checkout -b’

http://superuser.com/questions/405342/mingw-bash-profile

https://coderwall.com/p/euwpig

Alt-inserting linefeed (and other ascii codes)

June 13, 2014

I’ve learned to typ a danish Ø (as in Øredev) using “ALT + 0216”, and I love the ability to being able to type the character anywhere anytime.

So – can this be extending to typing linefeed into a Visual Studio resource field? oh yeah!

Just type “ALT + 0010” to insert a linefeed!

Looong list of chars here:

http://office.microsoft.com/en-001/onenote-help/insert-ascii-or-unicode-latin-based-symbols-and-characters-HA010167539.aspx

The SUMIFS Excel function

June 4, 2014

Often I find myself wanting to sum numbers based on critera on another column – SUMIFS to the rescue!

http://office.microsoft.com/en-001/excel-help/sumifs-function-HA010047504.aspx

Adds the cells in a range that meet multiple criteria. For example, if you want to sum the numbers in the range A1:A20 only if the corresponding numbers in B1:B20 are greater than zero (0) and the corresponding numbers in C1:C20 are less than 10, you can use the following formula:

=SUMIFS(A1:A20, B1:B20, “>0”, C1:C20, “<10”)

IMPORTANT The order of arguments differ between the SUMIFS and SUMIF functions. In particular, the sum_range argument is the first argument in SUMIFS, but it is the third argument in SUMIF. If you are copying and editing these similar functions, make sure you put the arguments in the correct order.

Syntax
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2,
criteria2], …)

my favourite tools

October 24, 2008

I guess we all have a list of these, the utils we almost can’t live without. Here’s mine…

and here for other useful apps