Friday, 19 December 2014

How to connect to LDAP with Jabber

Edit the following file

%userprofile%\AppData\Roaming\Cisco\Unified Communications\Jabber\CSF\Config\jabber-config-user.xml

add following information to file

 

<?xml version="1.0" encoding="utf-8"?>

<config version="1.0">

 

<Directory>

<DirectoryServerType>EDI</DirectoryServerType>
   <PrimaryServerName>russellreynolds.com</PrimaryServerName>
   <ServerPort1>389</ServerPort1>
   <SecondaryServerName>russellreynolds.com</SecondaryServerName>
   <ServerPort2>389</ServerPort2>
   <UseSSL>0</UseSSL>
   <UseSecureConnection>0</UseSecureConnection>
   <UseWindowsCredentials>0</UseWindowsCredentials>
   <ConnectionUsername>CN=Merrick Chaffer,OU=Elevated Users and Computers,OU=Users and Workstations,DC=RussellReynolds,DC=com</ConnectionUsername>
   <ConnectionPassword>***EnterPasswordHere***</ConnectionPassword>
   <SipUri>mail</SipUri>
  
   <DomainName>russellreynolds.com</DomainName>
   <BaseFilter>(&amp;(objectCategory=person))</BaseFilter>
   <UserAccountName>mail</UserAccountName>
  


    <ConnectionType>1</ConnectionType>
  
   <BDIPrimaryServerName>russellreynolds.com</BDIPrimaryServerName>
  
   <BDIServerPort1>389</BDIServerPort1>
  
  
   <BDIConnectionUsername>CN=Merrick Chaffer,OU=Elevated Users and Computers,OU=Users and Workstations,DC=RussellReynolds,DC=com</BDIConnectionUsername>
  
   <BDIConnectionPassword>***EnterPasswordHere***</BDIConnectionPassword>
  

<SearchBase1>ou=users and workstations,dc=russellreynolds,dc=com</SearchBase1>

<BusinessPhone>ipPhone</BusinessPhone>

</Directory>

 

<Policies>

<EnableBFCPVideoDesktopShare>true</EnableBFCPVideoDesktopShare>

<File_Transfer_Enabled>false</File_Transfer_Enabled>

<EnableVideo>false</EnableVideo>

<enableLocalAddressBookSearch>true</enableLocalAddressBookSearch>

</Policies>

 

<Options>

<Start_Client_On_Start_OS>true</Start_Client_On_Start_OS>

</Options>

 

 

</config>

Monday, 8 December 2014

Data dash attributes in ASP.NET MVC

http://stackoverflow.com/questions/4844001/html5-data-with-asp-net-mvc-textboxfor-html-attributes

You could use underscore (_) and the helper is intelligent enough to do the rest:

Html.TextBoxFor(
model => model.Country.CountryName,
new { data_url = Url.Action("CountryContains", "Geo") }
)

And for those who want to achieve the same in pre ASP.NET MVC 3 versions they could:

<%= Html.TextBoxFor(
model => model.Country.CountryName,
new Dictionary<string, object> {
{ "data-url", Url.Action("CountryContains", "Geo") }
}
) %>

How to find all your shelve sets in Visual Studio 2013

The Visual Studio 2013 IDE will by default only list the first 100 shelve sets that you have under your name.

To find all shelve sets for every developer, you can change the name filter to *

To find all the shelve sets for yourself, you can change the filter text box to *, and then hit Enter. This will then list all the shelve sets that you have not just the first 100 of them.

Thursday, 9 October 2014

How to remove history from chrome for a single site

1. Open the chrome://history/ page in Google chrome, and search for the site that you wish to delete history from.

image

2. Inspect the chrome://history/ page in F12 dev tools, then change the frame selected to target this history frame

image

3. Run the following javascript lines from the Console window (Esc)...

var checkBoxes =document.getElementsByClassName('entry-box');

for (i = 0; i< s.length; i++) {checkBoxes[i].childNodes[0].checked = true;}

document.getElementById('remove-selected').disabled = false;

4. Now just click the Remove selected Items button that should be enabled.

image

Alternatively as my colleague Joseph pointed out, you can just use this browser extension if you like,...

https://chrome.google.com/webstore/detail/better-history/obciceimmggglbmelaidpjlmodcebijb?hl=en

Search your history, then this will let you delete the search results.

Thursday, 18 September 2014

Watermarks in ASP.NET MVC 4

...using the jquery.overlabel plugin

1. Stick a DisplayName attribute for the watermark on your model property

[RequiredIf("Mode", UnderOfferModelMode.SetUnderOffer, ErrorMessage = "Please enter a comment")]

[DisplayName("Please enter your comment text here")]

public string UnderOfferComment { get; set; }

2. Add an Html.LabelFor and an Html.TextAreaFor your model property

3. Import the jquery.overlabel.js by including "overlabel" in your require imports

4. Add a line in the document.ready to call the .overlabel() method on the label selector (or use a class selector as I have)

clip_image001

5. In your css then you just need

label.overlabel {

position: absolute;

margin-left: 70px;

margin-top: 10px;

z-index: 1;

color: #999;

}

And you end up with a lovely little unobtrusive watermark that doesn't interfere with your model validation in anyway.

Wednesday, 13 August 2014

Hyperlinks not opening immediately from emails

If this happens then follow the steps below to fix it...

To reset Internet Explorer Settings, follow these steps:

  1. Close all Internet Explorer windows.
  2. Click Start, type inetcpl.cpl in the Search box and then click inetcpl.cpl on the Programs list.
    The Internet Options dialog box appears.

     

    Note for Windows XP, click Start, click Run, type inetcpl.cpl in the Open box, and then click OK.

  3. Click the Advanced tab.
  4. Under Reset Internet Explorer Settings, click Reset. Then, click Reset again.
  5. When Internet Explorer finishes resetting, click Close in the Reset Internet Explorer Settings dialog box.
  6. Start Internet Explorer again.
    Your changes will take effect the next time that you open Internet Explorer.


Tuesday, 12 August 2014

Resharper equivalent for clipboard ring

Assigned Ctrl+Shift+V to ReSharper.ReSharper_PasteMultiple instead as I find this to be a much more useful interface than trying to guess what the last 10 items on your clipboard are.
Plus it supports way more items than just the 10 you get with Visual Studio.
image