Archive

Archive for the ‘Coding’ Category

Hey I’ve got WordPress for Windows 8

August 28, 2012 Leave a comment

So far, I’m trying to figure out how this is better for me. I’m having trouble. Metro apps are providing less information on the screen with more pictures. This is great is I’m looking for an entertainment app, but it isn’t good if I’m trying to configure my stuff first, and then, everything else. It looks like Metro is displaying everything the app wants you to see first and then your personal stuff second.

This could be my initial view of the apps I’m using. I hope that is the case.

Categories: Coding

Kill non responsive apps

August 9, 2012 Leave a comment

C:\Windows\System32\taskkill.exe /f /fi "status eq not responding"

Categories: Coding

SharePoint 2010 – Set object caching user accounts with PowerShell

July 9, 2012 1 comment
From: Chris O’Brien’s blog:

http://www.sharepointnutsandbolts.com/2010/09/set-object-caching-user-accounts-with.html


Set object caching user accounts with PowerShell

In all installations of SharePoint, it’s important to properly configure object caching so that SharePoint can efficiently retrieve cached versions of items where possible. In my experience, this is one of THE most frequently forgotten configuration steps – yet Technet is clear that SharePoint cannot perform optimally without this being done. Object caching configuration mainly involves the configuration of two specific user accounts which SharePoint will use to simulate a reader and high-privileged user. If these accounts are not configured, you’ll see entries like this in the Windows event log:

Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources.

The full details of why this configuration is necessary are in the Technet article Configuring object cache user accounts. The article outlines the process for performing the configuration, but bizarrely (IMHO) lists a process which is half PowerShell, half manual steps in Central Admin. My guess is that, just like software, shipping documentation has compromises too, and this article didn’t yet make the cut to receive the full treatment. I’ve written some PowerShell which does the full configuration – make sure you edit it to use your account names and web application URLs. You’ll need to paste this into a tool which can strip out HTML, before saving as a .ps1 file. If anyone has any trouble working with it, let me know and I’ll post the actual file somewhere.

Categories: Coding

Over 100 CRM Videos

April 13, 2012 Leave a comment
Categories: Coding

Titanium Studio

February 22, 2012 Leave a comment

IDE that seems to be able to develop Android, IPhone, Rails, PHP and native desktop apps

https://wiki.appcelerator.org/display/guides/Videos

Categories: Coding

Achievements are not for XBOX any more

February 17, 2012 Leave a comment

There is now an achievements plugin for Visual Studio.  See if you can create a class that has 10 inheritances: http://channel9.msdn.com/achievements/visualstudio

Categories: Coding

Is an app just HTML 5?

October 22, 2011 Leave a comment

I created an HTML 5 based CMS app:

http://m.wix.com/gregjonescto/icandothat

Is this the best way to build enterprise based apps – HTML 5? 

I don’t see why not.

Greg Jones

October 19, 2011 Leave a comment

This is your new Flavors.me page.

via Greg Jones.

Categories: Coding

Disable an entire CRM Form

July 27, 2011 Leave a comment

Used to disable an entire form after a certain status has occurred:

for (var index = 0; index < crmForm.all.length; index++)
{
    if(crmForm.all[index].Disabled != null)
    {
        crmForm.all[index].Disabled = true;
    }
}

Categories: Coding, CRM Tags:

Join two DataTables using LINQ

March 15, 2011 1 comment

Had to join two queries from two separate sql instances and decided to do it using LINQ to prevent having the mess of a fully qualified SQL query. Very difficult to port from dev to test to stage to prod. 

This can also be a good way if I was using two different web services:

DataTable aoTable = getAspNetDBOrgRoleTable("AO");
DataTable ctTable = getCRMContactsFromOrg();

//use LINQ to filter the ctTable to populate only those in the AO Table
var resultTable = from ct in ctTable.AsEnumerable()
                  join ao in aoTable.AsEnumerable()
                  on (string)ct["Gems_NCIDGUID"] 
                     equals (string)ao["NCID_GUID"]

                  select new
                  {
                        Name = (string)ct["Name"],
                        ContactId = (Guid)ct["ContactId"]
                  };

Categories: Coding Tags: ,