Geeks With Blogs
Points To Share Mostly SharePoint November 2011 Entries
Ranking Part III
© 2011 By: Dov Trietsch. All rights reserved Ranking Part III In a previous blogs “Ranking an Introduction” and “Ranking Part II” , you have already praised me in “Rank the Author” and learned how to create a new element on a page and how to place it where you need it. For this installment, I just added code to keep the number of votes (you vote by clicking one of the stars) and the total vote. Using these two, we can compute the average rating. It’s a small step, but its purpose is to show that ......

Posted On Wednesday, November 23, 2011 1:13 PM

Ranking - Part II
© 2011 By: Dov Trietsch. All rights reserved Ranking Part II In my introduction to ranking I also introduced the Ranking Game. This is actually a much more sophisticated program than the one we need to simply rate an item, but it introduced you to the sophisticated results that you may achieve by a bit of code and accompanying CSS. In this installment, I am going to handle simple rating with 5 stars. The extra sophistication will come in the form of creating new elements in run time. Why do I need ......

Posted On Tuesday, November 22, 2011 5:02 PM

Ranking - an Introduction
© 2011 By: Dov Trietsch. All rights reserved Ranking Ranking is quite common in the internet. Readers are asked to rank their latest reading by clicking on one of 5 (sometimes 10) stars. The number of stars is then converted to a number and the average number of stars as selected by all the readers is proudly (or shamefully) displayed for future readers. SharePoint 2007 lacked this feature altogether. SharePoint 2010 allows the users to rank items in a list or documents in a library (the two are ......

Posted On Monday, November 21, 2011 4:04 PM

Log Blog
© 2011 By: Dov Trietsch. All rights reserved Logging – A log blog In a another blog (Missing Fields and Defaults) I spoke about not doing a blog about log files, but then I looked at it again and realized that this is a nice opportunity to show a simple yet powerful tool and also deal with static variables and functions in C#. My log had to be able to answer a few simple logging rules: To log or not to log? That is the question – Always log! That is the answer Do we share a log? Even when a file ......

Posted On Friday, November 18, 2011 9:57 AM

Missing Fields and Default Values
© 2011 By: Dov Trietsch. All rights reserved Dealing with Missing Fields and Default Values New fields and new default values are not propagated throughout the list. They only apply to new and updated items and not to items already entered. They are only prospective. We need to be able to deal with this issue. Here is a scenario. The user has an old list with old items and adds a new field. The field is not created for any of the old items. Trying to get its value raises an Argument Exception. Here ......

Posted On Friday, November 18, 2011 9:07 AM

Mathemagics - 3 consecutive number
© 2011 By: Dov Trietsch. All rights reserved Three Consecutive numbers When I was young and handsome (OK, OK, just young), my father used to challenge us with riddles and tricks involving Logic, Math and general knowledge. Most of the time, at least after reaching the ripe age of 10, I would see thru his tricks in no time. This one is a bit more subtle. I had to think about it for close to an hour and then when I had the ‘AHA!’ effect, I could not understand why it had taken me so long. So here it ......

Posted On Thursday, November 17, 2011 12:56 PM

Existential CAML - does an item exist?
© 2011 By: Dov Trietsch. All rights reserved More CAML and existence. In “SharePoint List Issues” and “Passing the CAML thru the EY of the NEEDL we saw how to use CAML to return a subset of a list and also how to check the existence of lists, fields, defaults, and values. Here is a general function that may be used to get a subset of a list by comparing a “text” type field to a given value. The function is pretty smart. It can be used to check existence or to return a collection of items that may ......

Posted On Wednesday, November 16, 2011 3:05 PM

Passing the CAML thru the EY of the NEEDL
© 2011 By: Dov Trietsch. All rights reserved Passing the CAML thru the EY of the NEEDL Definitions: CAML (Collaborative Application Markup Language) is an XML based markup language used in Microsoft SharePoint technologies Anonymous: A camel is a horse designed by committee Dov Trietsch: A CAML is a HORS designed by Microsoft I was advised against putting any Camel and Sphinx rhymes in here. Look it up in Google! _____ Now that we have dispensed with the dromedary jokes (BTW, I have many more, but ......

Posted On Wednesday, November 16, 2011 2:34 PM

What is the definition of Out-Of-Box?
© 2011 By: Dov Trietsch. All rights reserved What does Out-Of-Box really mean? We do not expect an administrator to be a developer, but the reverse is not true. It is taken for granted that the developer must be a competent admin. Any sensible person will tell you that s/he prefers an OOB solution. Development is a course of last resort. It behooves us to know where OOB ends and where development starts. I offer two definitions: It is OOB when There is no need to deploy server code It is OOB when ......

Posted On Wednesday, November 16, 2011 2:01 PM

Finding a person in the forest
© 2011 By: Dov Trietsch. All rights reserved finding a person in the forest or Limiting the AD result in SharePoint People Picker There are times when we need to limit the SharePoint audience of certain farms or servers or site collections to a particular audience. One of my experiences involved limiting access to US citizens, another to a particular location. Now, most of us – your humble servant included – are not Active Directory experts – but we must be able to handle the “audience restrictions” ......

Posted On Wednesday, November 16, 2011 1:51 PM

MatheMagics - Guess My Age By Cards 1 - 80
© 2011 By: Dov Trietsch. All rights reserved MatheMagics – Guess My Age By Using Cards 1-80 This is an interesting game. If you are under 80 – yes we discriminate – look at the 8 cards and click the check-box underneath each card where you age is listed. When this is done you have 2 options. 1: Let the Mathemagician tell you your age, or 2: click submit. To get to the game, go to: www.mgsltns.com/games.htm and then click on the link to Guess My age 1-80 or go directly to: http://www.mgsltns.com/GMAJ... ......

Posted On Wednesday, November 16, 2011 10:58 AM

MatheMagiics _Guess My Age using cards 1 - 63
© 2011 By: Dov Trietsch. All rights reserved MatheMagics – Guess My Age By Using Cards 1-63 This is an interesting game. If you are under 63 – yes we discriminate – look at the 6 cards and click the check-box underneath each card where you age is listed. When this is done you have 2 options. 1: Let the Mathemagician tell you your age, or 2: click submit. To get to the game, go to: www.mgsltns.com/games.htm and then click on the link to Guess My age 1-63 or go directly to: http://www.mgsltns.com/GMAJ... ......

Posted On Wednesday, November 16, 2011 10:56 AM

What Do I Fix>
© 2011 By: Dov Trietsch. All rights reserved. Fix The Problem Not The Blame But if all else fails. . . Blame The Consultant ......

Posted On Tuesday, November 15, 2011 1:35 PM

Recursion
© 2011 By: Dov Trietsch. All rights reserved Why Starts with a Wh and ends with another Why (Y) WhWhWhWhWhWhWh.. .. .. .. .. ......

Posted On Tuesday, November 15, 2011 1:26 PM

MatheMagics - Guess My Age - Method 2
© 2011 By: Dov Trietsch. All rights reserved MatheMagic – Guess My Age – Method 2 The Mathemagician stands on the stage and asks an adult to do the following: · Do the next few steps on your calculator, or the calculator in your phone, or even on a piece of paper. · Do it silently! Don’t tell me the results until I ask for them directly · Multiply your age by 2. · Add 7 to the result · Multiply the result by 5. · Tell me the result. I will immediately tell you what your age is. How do I do this? ......

Posted On Tuesday, November 15, 2011 12:15 PM

MatheMagics - Guess My Age Method 1
© 2011 By: Dov Trietsch. All rights reserved MatheMagic – Guess My Age – Method 1 The Mathemagician stands on the stage and asks an adult to do the following: · Do the next few steps on your calculator, or the calculator in your phone, or even on a piece of paper. · Do it silently! Don’t tell me the results until I ask for them directly · Compute a single digit multiple of 9 – any one of 9, 18, 27, … all the way to 81, will do. · Now multiply your age by 10 · Subtract the 9 multiple from this number. ......

Posted On Tuesday, November 15, 2011 12:12 PM

Calculated Fields - Idiosyncracies
© 2011 By: Dov Trietsch. All rights reserved Calculated Fields and some of their Idiosyncrasies Did you try to write a calculate field formula directly into the screen? Good Luck – You’ll need it! Calculated Fields are a sophisticated OOB feature of SharePoint, so you could think that they are best left to the end users – at least to the power users. But they reach their limits before the “Professionals “do, and the tough ones come back to us anyway. Back to business; the simpler the formula, the ......

Posted On Tuesday, November 15, 2011 9:52 AM

Rules for Naming
© 2011 By: Dov Trietsch. All rights reserved Naming Documents (or is it “Document, Naming”?) Tis but thy name that is my enemy; Thou art thyself, though not a Montague. What's Montague? It is nor hand, nor foot, Nor arm, nor face, nor any other part Belonging to a man. O, be some other name! What's in a name? That which we call a rose By any other name would smell as sweet; So Romeo would, were he not Romeo call'd, Retain that dear perfection which he owes Without that title. Romeo, doff thy name ......

Posted On Tuesday, November 15, 2011 9:24 AM

What's in a Name
© 2011 By: Dov Trietsch. All rights reserved Microsoft – What’s in a name? Long ago I heard a dentist joke. It went like this: A dentist went to a conference and at night he picked this girl and they went to his room. In the morning after, she asked: “Are you a dentist?” “Yes.” Said he. “You must be a very good one.” “I am. How did you guess?” “I didn’t feel a thing!!” That let my wild imagination roam. “Had it been Bill gates,” I thought, “the punch line would have been: ‘Now I know why you called ......

Posted On Tuesday, November 15, 2011 8:59 AM

Good SLA
© 2011 Dov Trietsch What is a good SLA? I have frequently pondered about Service Level Agreements (SLA). Yesterday after ordering and while waiting, and waiting, and waiting for the food to arrive, I passed the time reading and re-reading the restaurant menu (again and again..) until I noticed their very interesting SLA. Because (as promised) we had to wait even longer and the conversation around me was mostly in Russian, I ended doodling some of my thoughts of the menu, on the menu. People are both ......

Posted On Monday, November 14, 2011 12:33 PM

Computer Bugs - Etymology and Entomology
© 2011 By: Dov Trietsch. All rights reserved Whatever bugs you My wife and I used to take some of our summer vacation in a cabin on the shore of Lake Atsion in NJ. It is a delightful place in the Wharton forest with Brown yet fresh water, where we would canoe, swim and enjoy true rest. Alas, in the last few years, yellow flies have also discovered the area’s pastoral delights and came in swarms to bug us. So much so that we had to give up. As a computer programmer I abhor bugs. The bugs that bug ......

Posted On Monday, November 14, 2011 11:05 AM

More Fun With Math
© 2011 By: Dov Trietsch. All rights reserved More Fun with Math The runaway student – three different ways of solving one problem Here is a problem I read in a Russian site: A student is running away. He is moving at 1 mph. Pursuing him are a lion, a tiger and his math teacher. The lion is 40 miles behind and moving at 6 mph. The tiger is 28 miles behind and moving at 4 mph. His math teacher is 30 miles behind and moving at 5 mph. Who will catch him first? Analysis Obviously we have a set of three ......

Posted On Sunday, November 13, 2011 5:59 PM

JavaScript in different browsers
© 2011 By: Dov Trietsch. All rights reserved Adventures with JavaScript rendered in IE 8, Chrome 15, and Firefox 8.0 I have written a little monogram about the advantages of Math and wrote a few JavaScript applications to demonstrate them. I was a bit careless and used elements on the page in my JavaScript without using any of the GetElementsByXXXX methods to identify them. Say I had a text box named tbSeqNum into which I entered a number to be used in a computation. In my code I simply referred ......

Posted On Sunday, November 13, 2011 3:54 PM

Copyright © PointsToShare | Powered by: GeeksWithBlogs.net