This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add reference to project | |
System.Windows.Controls.Pivot | |
// Create a Silverlight User Control and add the following namespace | |
xmlns:pivot="clr-namespace:System.Windows.Controls.Pivot;assembly=System.Windows.Controls.Pivot" | |
// Add PivotViewer control to page | |
<Grid x:Name="LayoutRoot" Background="White"> | |
<pivot:PivotViewer x:Name="pivotViewer1"> | |
<pivot:PivotViewer.PivotProperties> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to Initially RDP into EC2 Windows Instance | |
Assuming the default security group for an EC2 instance was selected during its initial setup, a new security rule must be created before the machine is accessible through RDP. | |
From the AWS Management Console select the Amazon EC2 tab. Then: | |
1) Select 'Security Groups' in the 'Navigation' pane | |
2) Select your security group (e.g., default) | |
3) Select the 'Inbound' tab | |
4) Select RDP from the 'Create a new rule:' dropdown. | |
5) Click the 'Add Rule' button | |
6) Click the 'Apply Rule Changes' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%SystemRoot%\System32\DNS\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Create a simple test method. | |
// Example test harness calls: | |
// public static void AlgUtil_Harness() { | |
// Test_CountTwos(232); | |
// Test_CountTwos(-232); | |
// } | |
private static void Test_CountTwos(int n) { | |
Console.WriteLine("The number of twos in {0} are: {1}", n, AlgUtil.CountTwos(n)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MonoDevelop # | |
############### | |
bin/ | |
*.userprefs | |
*.pidb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prepare OSX to use Pygmantize. | |
# Assumes using RVM, multiple ruby versions installed, & gemset has been created. | |
# Commands are executed via bash. | |
# More Info: https://github.com/injekt/rack-pygmentize | |
# http://pygments.org/ | |
ruby -v # Check ruby version. Default is ruby 1.8.7. | |
rvm 1.9.3-head # Switch to ruby version. | |
rvm gemset use SOME_GEMSET_NAME # Specify gemset to use. | |
sudo easy_install Pygments # Install Pygments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /usr/share/dict/words > words.txt # Gets dictionary of words & saves to file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used to set text field with the value of a Lookup entity. | |
function Replace() | |
{ | |
var lookupItem = new Array(); | |
lookupItem = Xrm.Page.getAttribute("schema_field_name").getValue(); | |
if (lookupItem != null) | |
{ | |
var name = lookupItem[0].name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django installation steps for OS X | |
# 1) install virtualenv and pip | |
curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py | |
python virtualenv.py my_new_env | |
. my_new_env/bin/activate | |
(my_new_env)$ pip install ... | |
# 2) get the latest django source | |
git clone git://github.com/django/django.git django-trunk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Issue: | |
Try to load solution with a service project and get the following message: | |
"Creation of the virtual directory http://localhost:8888/service failed with the error: | |
Could not find the server 'http://localhost:8888' on the local machine. | |
Creating a virtual directory is only supported on the local IIS server." | |
Solution: | |
Edit the project file, look for <iisurl> node, remove the port number from the URL. | |
BEFORE: |
OlderNewer