Archive for 'Reference'

“NOT” – Yaduk’s Music Profile – Users at Last.fm

How bizarre! From link searching I came across a profile on Last.fm with ‘Yaduk’ rather as titled yadUK. Some damn good google lurve on the seach term yaduk as one might expect!?

A quick wiggle of the ‘ol mouse finger and I’m in a strange parallel universe with a twist and an unknown music list. Now, whilst there’s some not bad music in that list … I categorically state that ain’t me! ;)

The Internet. What can one say?

  • Share/Bookmark

Exporting SharePoint People & Groups

You can export the “People & Groups” section to an XL spreadsheet by hinging through the owssvr DLL. However, you’re going to need the SSID for both your ‘List’ and whichever ‘View’ also to get it to work.

To obtain both of these:

List SSID – Goto the “People & Groups” list you want to export and goto “Settings >> List Settings”. Then click on “Create Column”. From there you see in the URL fldNew.aspx?List=%7B blah %7D

^^ Take the long string between the %7B and %7D at either end. Do not take the %7B nor the %7D at either end <– important!

View SSID – just goto your “People & Groups” list and choose the “Detail View” which will initiate it and you’ll get in the URL blahblah&View={the SSID}

^^ Take the SSID without the curly braces this time and place them in the following URL string at the appropriate places with your SITEURL also:

http://[SITEURL]/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=[LISTID]&View=[VIEWID]&CacheControl=1

From there you’ll get an export of the contents of your group from which you can copy ‘n paste the email addresses into your new site.

You’ll need to create a new XL column and concatenate the email address with a semi-colon after it prior to pasting the emails in.

  • Share/Bookmark

BCS – Social Networking Article

Fantastic article in the latest ITNow magazine in regards to Social Networking ‘in the business’. Simon Morris of Pentura lays down some great pointers on how best to manage and secure such systems against their use in collaborative and strangely ‘Social Networking’ activities.

Do look back to a post here: Building an online community organisational Intranet where a discussion on ‘Social Networking’ within your own organisational Intranet establishes collaborative activites enabling your business rather as hindering!

Further articles are available at http://www.bcs.org/socialmedia

  • Share/Bookmark

Restart haldaemon and dbus Commands for CentOS 5.2

/etc/init.d/messagebus restart
/etc/init.d/haldaemon restart

  • Share/Bookmark

Javascript English Stoplists / Stopwords

Not listed verbs, adjectives nor articles but the below arrays are very handy should one be running language based queries over rendered pages.

Why? I dunno … say you’re trying to make a tag cloud or something but it’s full of filler words!

Articles are “a”, “an” and “the” only for English. Verbs and adjectives, well that’ll be down to what you’re up to I guess?!

  • Share/Bookmark

Javascript Export HTML table to MS Excel (JScript)

Here’s a little code snippet to export an HTML table to MS Excel through utilising ActiveXObject(“Excel.Application”) from Internet Explorer.

The JavaScript (in this case utilising Microsoft’s JScript) runs over the table displayed pulling out the relevant data and exporting into the instantiated copy of Excel. This is a working example based loosely on Microsoft’s http://support.microsoft.com/kb/234774 Knowledgebase Article “How to automate Excel from an HTML Web page by using JScript”.

Worth noting is that the garbage collection between the JScript and MS Excel doesn’t work too well and more often than not one can be left with the instantiated copy of MS Excel still in memory (see it in the Task Manager). One must manually remove these instances.

Perhaps dynamically inputting a module to clean up from within MS Excel on the workbook deactivating might clear this up – not tried this though!?

  • Share/Bookmark

Export Access to Excel with Custom Headers

Have you noticed how the “out the box” solution to export your dataset from MS Access to MS Excel doesn’t give much room to give custom headers to your worksheet?

Through utlising ActiveX you can instantiate a copy of MS Excel in memory to add in your own custom headers etc. prior to exporting your MS Access dataset into the worksheet.

The below code example shows you how to add 5 custom headers to your sheet. Just add in your own SQL query where it is indicated.

  • Share/Bookmark

Script to set IE – Internet Explorer homepage

Stuck in a restrictive environment where you can’t alter your homepage settings? Check out the below WSH shell script to alter your homepage in Internet Explorer via the registry:

Set WSHShell = WScript.CreateObject(“WScript.Shell”)
‘ home page URL
StartPage = “http://www.yaduk.co.uk”
WSHShell.RegWrite “HKLM\Software\Microsoft\Internet Explorer\Main\Start Page”, StartPage
WSHShell.RegWrite “HKCU\Software\Microsoft\Internet Explorer\Main\Start Page”, StartPage

Stick in a text file with the extension .vbs

  • Share/Bookmark

XHR Connector for Internet Explorer

Below is a great code snippet to process XML dynamically through an XMLHttpRequest (XHR) request. From this further XSLT processing can be applied dynamically utilising Internet Explorers “fragment” transformations.

  • Share/Bookmark

Excel Split Firstname Lastname 2 Columns

Excellent post in the MSDN microsoft.public.excel.programming community regarding the splitting of a firstname and lastname into two seperate columns.  The honours go to someone called “Bam”.

Last Name
=IF(ISERROR(LEFT(B2,FIND(“,”,B2,1)-1)),RIGHT(B2,LEN(B2)-(FIND(” “,B2,1))),LEFT(B2,FIND(“,”,B2,1)-1))

First Name
=IF(ISERROR(RIGHT(B1,LEN(B1)-(FIND(“,”,B1,1)+1))),LEFT(B1,FIND(” “,B1,1)+1-1),RIGHT(B1,LEN(B1)-(FIND(“,”,B1,1)+1)))

  • Share/Bookmark