Meta tags:
description= Just another WordPress.com weblog;
Headings (most frequently used words):
sitecore, blog, and, net, richard, has, moved, setting, up, project, works, with, both, versions, telligent, community, integration, asp, service, faulting, error, workaround, how, to, destroy, cookie, use, your, own, authentication, store, multilist, related, content, within, local, item, on, save, custom, text, field, archives, categories, blogroll, meta,
Text of the page (most frequently used words):
the (106), sitecore (65), string (47), and (43), this (42), using (34), system (29), field (28), have (26), for (25), new (24), web (21), that (21), salt (21), text (19), you (19), item (19), will (19), password (19), items (18), with (17), #content (16), hash (16), blog (15), net (15), fields (15), random (15), name (14), return (14), data (14), multilist (14), returns (14), not (13), 2008 (12), public (12), within (12), event (12), summary (12), project (11), class (11), can (10), from (10), community (9), custom (9), here (9), example (9), our (9), each (9), get (8), site (8), create (8), posted (8), richdias (8), permalink (8), macrotext (8), type (8), following (8), user (8), description (8), builder (8), now (7), visual (7), studio (7), endregion (7), value (7), region (7), true (7), code (7), then (7), current (7), tostring (7), false (7), chosen (7), into (7), key (7), com (6), source (6), telligent (6), tagged (6), namespace (6), your (6), case (6), collections (6), are (6), also (6), needed (6), which (6), simple (6), website (6), function (6), one (6), solution (6), hiddenfield (6), want (6), just (6), param (6), generate (6), error (6), wordpress (5), richard (5), server (5), cryptography (5), categories (5), february (5), entry (5), base (5), message (5), null (5), functions (5), template (5), some (5), add (5), control (5), has (5), time (5), comment (5), subject (5), change (5), relateditem (5), security (5), all (5), these (5), there (5), given (5), gethashkey (5), passencrypt (5), convert (5), int (5), byte (5), crypto (5), application (5), cms (4), march (4), comments (4), structure (4), datacom (4), fieldtypeextensions (4), via (4), break (4), generic (4), another (4), may (4), only (4), menu (4), seems (4), but (4), made (4), found (4), check (4), was (4), make (4), how (4), save (4), leave (4), metadata (4), subjects (4), hidden (4), related (4), named (4), folder (4), two (4), page (4), out (4), encrypt (4), stringbuilder (4), lowercase (4), size (4), randompassword (4), input (4), passandsalt (4), plaintxtpass (4), use (4), asp (4), service (4), like (3), manage (3), log (3), 2005 (3), october (3), config (3), seen (3), below (3), handlemessage (3), messagetext (3), 256 (3), void (3), macron (3), working (3), extra (3), created (3), should (3), way (3), inheriting (3), directly (3), complicated (3), very (3), existing (3), does (3), sitecorescd1labs (3), itemonsavingevents (3), method (3), setvalue (3), else (3), fieldname (3), exists (3), about (3), its (3), pull (3), work (3), around (3), would (3), wanted (3), able (3), username (3), array (3), append (3), generates (3), tmphash (3), tmpsource (3), saltinbytes (3), generaterandomsalt (3), newpass (3), interface (3), own (3), cookies (3), mycookie (3), cookiename (3), set (3), http (3), counters (3), faulting (3), integration (3), multiple (3), started (2), sign (2), subscribed (2), subscribe (2), account (2), 2010 (2), 2011 (2), mode (2), assembly (2), edited (2), next (2), copy (2), paste (2), shell (2), applications (2), contenteditor (2), actually (2), indentation (2), clear (2), note (2), had (2), because (2), otherwise (2), keep (2), box (2), down (2), templates (2), same (2), basically (2), far (2), too (2), tried (2), properly (2), find (2), used (2), better (2), when (2), htmlcontrols (2), based (2), author (2), update (2), once (2), any (2), saved (2), needs (2), even (2), onsave (2), onitemsavingpopulatehidenfields (2), run (2), relateditemguids (2), mlf (2), foreach (2), guid (2), database (2), currentdb (2), configuration (2), multilistfield (2), args (2), events (2), webcontrols (2), best (2), referenced (2), thats (2), contains (2), common (2), point (2), associate (2), category (2), per (2), going (2), problem (2), them (2), their (2), they (2), store (2), hashing (2), passhash (2), resulthash (2), crypt (2), pwd (2), dataservice (2), bool (2), library (2), randomnumber (2), 1000 (2), randomstring (2), getpassword (2), private (2), min (2), max (2), tobase64string (2), getbytes (2), rngcryptoserviceprovider (2), randpassgenerator (2), generatenewpassword (2), generatekeysalt (2), html (2), tool (2), three (2), elements (2), authentication (2), generated (2), destroy (2), cookie (2), httpcontext (2), httpcookie (2), date (2), forum (2), aspx (2), 11838 (2), performance (2), functionality (2), enabled (2), setting (2), show (2), version (2), virtual (2), rest (2), media (2), files (2), versions (2), www (2), read (2), article (2), need (2), please (2), company (2), projects (2), running (2), instance (2), layouts (2), requirements (2), moved (2), weblog (2), design, collapse, bar, subscriptions, view, reader, report, privacy, already, meta, james, blogroll, archives, hopefully, someone, finds, helpful, controlsources, prefix, fieldtypeextension, properties, image, switch, clearfield, empty, capitalamacro, override, sheer, overrides, constructor, sccontentcontrol, activation, xml, uploaded, retains, notice, actual, currently, chuck, space, where, says, between, converting, end, result, trying, achieve, regular, drop, authoring, implemented, behaves, allow, authors, characters, overriding, could, initially, sent, near, future, however, constraints, take, alternative, approach, describe, off, checkbox, unfortunately, changes, automatically, reflect, reflected, those, reason, edit, smal, sort, fire, clicked, most, likely, ones, drawbacks, saving, handler, populate, descriptions, pipe, delimitered, factory, getdatabase, master, getitem, corresponding, object, sender, eventargs, extractparameter, fieldcollection, webparts, pasted, sorry, isnt, retrieve, being, multilists, onsaving, holds, sure, called, lie, must, added, visible, correspond, contain, seperating, delimeter, demo, think, situation, average, background, every, load, did, devised, let, retain, useability, discussed, above, ave, available, served, cleanest, define, bunch, specfic, multi, lists, respective, directories, clients, list, assign, subset, keywords, whole, requirement, local, correct, getuserhash, getusersalt, gethashpassword, hashed, reference, send, containing, somewhere, names, 9999, tolower, tochar, toint32, floor, nextdouble, math, char, length, generator, modify, according, computehash, md5cryptoserviceprovider, compute, ascii, asciiencoding, cryptographically, strong, stored, implement, man, lowing, generation, gets, specific, didnt, forms, decided, hell, implementation, goal, users, increased, yay, downloaded, response, expires, adddays, datetime, request, destroycookie, expire, past, lasted, day, enough, sdn5, showpost, postid, see, more, details, rid, issue, sitecores, backend, monitoring, causes, guess, enable, indicates, default, provided, 100, computer, sctest, w3wp, exe, 3790, 3959, module, unknown, fault, address, 0x709a2075, environments, machines, cause, seemingly, intervals, leading, total, loss, 9only, viewer, workaround, potentially, give, access, required, separate, drive, widgets, embedded, theme, ability, upload, straight, forward, sounds, poorly, supported, strongly, suggest, waste, heading, path, avoid, provides, other, were, thinking, pulling, dated, latest, management, fairly, white, paper, been, published, split, parts, claims, integrated, convenient, combining, power, social, networking, collaboration, platform, flexibility, cmswire, integrate, online, engagement, 005991, php, fair, bit, write, slowly, updating, anyone, desperate, information, right, try, speed, things, worked, safely, say, come, proven, recommend, everyone, follow, developer, cookbook, ever, renderings, sub, associated, css, etc, dll, independent, child, websites, post, attempt, tell, exactly, assuming, environment, decent, pretty, good, start, quite, meet, works, both, cmssource, home,
Text of the page (random words):
ting it if anyone is in desperate need to this information right now then please leave a comment and i will try to speed things up read the rest of this entry 15 comments sitecore sitecore v6 visual studio 2005 visual studio 2008 tagged sitecore project structure permalink posted by richdias sitecore and telligent community integration march 29 2010 you may have read the following article http www cmswire com cms web cms sitecore and telligent integrate for better online engagement 005991 php this claims that sitecore and telligent have integrated to make a convenient solution combining the power of a social networking collaboration platform with the flexibility of a cms system there is a fairly complicated white paper that has been published by sitecore which is split into two parts security integration content management integration this solution is not as straight forward as it sounds and it is very poorly supported i strongly suggest that you do not waste your time heading down this path if you can avoid it it provides a way for you to use community functionality within a sitecore site not the other way around in case you were thinking about pulling sitecore content into a community site the solution is out dated and will not work with the latest versions of sitecore we needed to drive a community server site and pull content media out of sitecore which will be used within telligent community server via widgets we also embedded content from sitecore directly into some of the community theme aspx files the community server web site also needed the ability to upload media items directly into sitecore i found that the best method to pull out content from sitecore into another web application is via a web service or potentially a rest service which will run within the sitecore web application this will give you the access required to update create sitecore content via a separate web application 4 comments net 2 sitecore v6 telligent community server permalink posted by richdias asp net service faulting error sitecore 6 workaround october 5 2008 we have sitecore 6 environments working on virtual machines vm s sitecore 6 seems to cause an asp error at seemingly random intervals leading to a total loss of service 9only on vm s event viewer will show you the following error event type error event source application error event category 100 event id 1000 date 8 8 2008 time 4 09 35 pm user n a computer sctest description faulting application w3wp exe version 6 0 3790 3959 faulting module unknown version 0 0 0 0 fault address 0x709a2075 sitecore have provided a work around for this set the following web config entry to false as show below enable counters indicates if performance counters are enabled default value true setting name counters enabled value false we have made this change and it seems to get rid of the issue seems like sitecores backend performance monitoring may be using some net 3 5 functionality that causes this error this is just a guess see the sc forum for more details http sdn5 sitecore net forum showpost aspx postid 11838 11838 5 comments sitecore tagged sitecore 6 permalink posted by richdias how to destroy a cookie c net february 5 2008 basically have to set its expire date to the past the cookies we created for our site lasted a day so 1d was enough for this example public void destroycookie string cookiename if httpcontext current request cookies cookiename null httpcookie mycookie new httpcookie cookiename mycookie expires datetime now adddays 1d httpcontext current response cookies add mycookie leave a comment net 2 tagged net asp net asp net 2 c net 2 destroy cookie permalink posted by richdias use your own authentication february 5 2008 i didnt want to use forms authentication once and i decided to make my own password hashing just for the hell of it here is a very simple implementation the goal was to save a user and the users password as a hash a random salt string for increased security also wanted to be able to generate a new password and have a hash salt created for that new password i generated as can be seen from the following interface crypto cs note yay downloaded a tool that actually generated html from my code properly from here using system using system collections generic using system text namespace passencrypt interface crypto summary gets the hash key and salt for a specific password summary returns will return a string with three elements 1 hash key 2 salt returns string generatekeysalt string plaintxtpass summary change the password summary returns will return a string with three elements 1 new password 2 hash key 3 salt returns string generatenewpassword string gethashkey string input and now to implement this interface with the encrypt cs class p s man i am lowing this new html generation from code tool using system using system collections generic using system text using system security cryptography namespace passencrypt public class encrypt crypto region generate the hash key and salt for a given password summary returns a salt value and a hash key to be stored in the database for the given user summary param name plaintxtpass param returns returns public string generatekeysalt string plaintxtpass string s new string 2 string salt generaterandomsalt string passandsalt plaintxtpass salt string hash gethashkey passandsalt s 0 hash s 1 salt return s endregion region generate a new password summary generates a new random password and returns a string array with 1 new password 2 hash key 3 salt value summary returns returns public string generatenewpassword string s new string 3 randompassword randpassgenerator new randompassword string newpass randpassgenerator getpassword string salt generaterandomsalt string passandsalt newpass salt string hash gethashkey passandsalt s 0 newpass s 1 hash s 2 salt return s endregion region generate random salt summary generates a cryptographically strong salt string summary returns returns public string generaterandomsalt rngcryptoserviceprovider crypto new rngcryptoserviceprovider byte saltinbytes new byte 5 crypto getbytes saltinbytes return convert tobase64string saltinbytes endregion region get the hash key for a given string public string gethashkey string input byte tmpsource byte tmphash convert input to a byte array needed for hash function tmpsource asciiencoding ascii getbytes input compute hash based on source data tmphash new md5cryptoserviceprovider computehash tmpsource return convert tobase64string tmphash endregion the following class randompassword cs contains my random password generator you may want to modify it according to the type of password you would like to generate using system using system collections generic using system text namespace passencrypt class randompassword private int randomnumber int min int max random random new random return random next min max summary generates a random string with the given length summary param name size size of the string param param name lowercase if true generate lowercase string param returns random string returns private string randomstring int size bool lowercase stringbuilder builder new stringbuilder random random new random char ch for int i 0 i size i ch convert tochar convert toint32 math floor 26 random nextdouble 65 builder append ch if lowercase return builder tostring tolower return builder tostring public string getpassword stringbuilder builder new stringbuilder builder append randomstring 4 true builder append randomnumber 1000 9999 return builder tostring thats all there is to it i just made this is a class library project names passencrypt just reference passencrypt and for a new user send their password in and get an array containing the hash salt store these somewhere and associate them with the username region get hashed password public bool gethashpassword string username string password encrypt crypt new encrypt string user username string pwd password string salt salt dataservice getusersalt user if salt string passhash dataservice getuserhash user string resulthash crypt gethashkey pwd salt if passhash resulthash password correct return true else return false else return false endregion 1 comment c net cryptography tagged c net cryptography password hashing system security cryptography permalink posted by richdias sitecore store multilist related content within local item on save february 5 2008 the requirement our clients have subject and function metadata fields within their web page they wanted to be able to content manage this subject and function list they then wanted to be able to assign a subset of these function and subject keywords into each web page item so all the subjects and functions are common to the whole site the problem the cleanest solution to this problem was to define a bunch of simple text items for each of the subjects and functions within specfic folder items we would then create two multi lists in the metadata base template one for subject and one for function and point them at these respective source directories now think of the situation we have 5 subjects and 3 functions on average per web page in the background we are going to have to pull out data from 8 related content items every time we load a given page we did not want to do this so we devised a simple work around that would let us retain the useability of the method discussed above but also ave all this related content available on the one item when it needs to be served up the solution i will be using a simple category multilist example as a demo here we added two hidden not visible to author text field within the metadata base template to correspond with each multilist these two text fields will contain the content not the id s of the description field of the referenced items seperating each with a delimeter as can be seen below the categories associate to a simple text field item which must have a field named description within it all the categories should lie within a common folder item so that we can point our multilist source at that folder in the template that holds the multilist make sure that you create a text field with the name chosen multilist name i e in our example our multilist is named categories so our hidden text field will be called chosen categories now we create an onsaving event which does the following 1 check if the item thats being saved contains any multilists 2 if 1 true then for each multilist named name in the current item 3 check if there is a field named chosen name of the current multilist from 2 4 if 3 true then clear the chosen name field of its content retrieve all the items referenced by the current multilist for each of these items check if a description field exists if description exists and there is content within it add this content to chosen name i have pasted the code for the itemonsavingevents cs class here sorry about the indentation copy paste into blog isnt the best using system using system data using system configuration using system web using system web security using system web ui using system web ui webcontrols using system web ui webcontrols webparts using system web ui htmlcontrols using sitecore using sitecore data events using sitecore data using system collections namespace sitecorescd1labs public class itemonsavingevents public void onitemsavingpopulatehidenfields object sender eventargs args sitecore data items item item sitecore events event extractparameter args 0 as sitecore data items item sitecore collections fieldcollection fields item fields foreach sitecore data fields field field in fields if field type multilist sitecore data fields multilistfield mlf sitecore data fields multilistfield field string fieldname field name if item fields chosen fieldname null hidden field for corresponding multilist exists sitecore data fields field hiddenfield item fields chosen fieldname hiddenfield setvalue false populate the hidden field with the descriptions from the related items pipe delimitered string relateditemguids mlf items foreach string guid in relateditemguids sitecore data database currentdb sitecore configuration factory getdatabase master sitecore data items item relateditem currentdb items getitem guid if relateditem null if relateditem fields description null if hiddenfield tostring hiddenfield setvalue relateditem fields description tostring false else hiddenfield setvalue hiddenfield tostring relateditem fields description tostring false add a web config entry in the item onsave event to run your code event name item saving handler type sitecorescd1labs itemonsavingevents sitecorescd1labs method onitemsavingpopulatehidenfields event drawbacks of this solution unfortunately if the content author changes an existing subject or function then the current items will not automatically change to reflect the new update the new change will only get reflected on existing items once those items get edited for any reason and re saved i have found that some edit needs to be made i e even a smal re sort of one of the metadata multilist fields otherwise the item onsave event does not fire even if save is clicked in our case the user will most likely only add new subjects and functions and not change existing ones leave a comment sitecore tagged multilist on save sitecore permalink posted by richdias sitecore custom text field february 3 2008 in this blog i will describe how to create a very simple custom text field in sitecore i have based this off the example of a custom checkbox field that can be found in the sitecore website from here i have found that this example is far too complicated i tried to create a custom control by inheriting sitecore web ui htmlcontrols control but i could not get it working properly initially i find the custom check box control that sitecore has used as an example is far too complicated i was sent a better example by sitecore and i will make the same custom control by inheriting this class in the near future when i find the time however because of current time constraints i had to take an alternative approach the control i have made is inheriting sitecore shell applications contenteditor text directly and then overriding the handlemessage event i needed to create a custom text field which behaves the same way as sitecore s text field but i needed some extra menu items basically i needed to allow my authors to add some extra text macron characters e g ā here is the sitecore field type item i have created this should be implemented following the sitecore example base template is sitecore templates system templates template field type this is the macron menu item i will be using as an example this is the end result i am trying to achieve a regular text box with extra drop down menu items in authoring mode here is the code macrotext cs as you may notice only the clear field and the actual macron menu functions are currently working note i also had to chuck a space where it says 256 betw...
|