Posts

Firefox detected a potential security threat and did not continue to google

Open a new window in Firefox and type "about:config" without the quotes and hit enter Confirm that you want to continue In the search field, type in security.enterprise_roots.enabled and hit enter - you'll be left with one field If it's marked as "false" then double-clicking it should turn it to "true" Close the window, then go back to your Yahoo email login and try again. For me, this worked *perfectly*!

The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script file, or operable program

Following worked for me: Uninstall the previously installed ‘Microsoft Online Service Sign-in Assistant’ and ‘Windows Azure Active Directory Module for Windows PowerShell’. Install 64-bit versions of ‘Microsoft Online Service Sign-in Assistant’ and ‘Windows Azure Active Directory Module for Windows PowerShell’. https://littletalk.wordpress.com/2013/09/23/install-and-configure-the-office-365-powershell-cmdlets/ If you get the following error  In order to install Windows Azure Active Directory Module for Windows PowerShell, you must have Microsoft Online Services Sign-In Assistant version 7.0 or greater installed on this computer , then install the Microsoft Online Services Sign-In Assistant for IT Professionals BETA:  http://www.microsoft.com/en-us/download/details.aspx?id=39267 Copy the folders called MSOnline and MSOnline Extended from the source C:\Windows\System32\WindowsPowerShell\v1.0\Modules\ to the folder C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\

Change anchor link url in sharepoint calender

here am unsing sharepoint calender to display events. The calender list is inhereted from event content type. for every event there are several columns like event name, event link(URL), Event Date...etc. for some events there may be some url in link column some may be empty. So in calender if i click the event, suppose if that event has the LINK with url then i have to redirect to the new url, if the link url is empty then i have to redirect to the event url. here when am clilcking on anchor tag in calender am calling a rest api function to get the link value of that event. am checking the link value , if value in null then am redirecting to event details and the value is not null then am redirecting to the link which am get from rest api call. here am using two mail functions which are 1)e.stopPropagation(); means it will stop the redirecting value which is assigned initially. 2)e.preventDefault(); means it will stop the default value of the anchor tag href value.

Delete First n records from sharepoint online list

Here i have a custom list with few views. In perticular view display am getting list threshhold problem. So my requirements is that when the items in list is crossing 4990 then immediatly i need to delete first 100 records from the list. first here am getting the total records in the list, then if the cound is greter then 4990 then am getting first 100 records. then am looping each record for deletion. so i will not get list thresh hold prolem for my view. here am using sharepoint cleint object model to perform this operations for sharepoint online. I think this same code will work for onpremises also. so for logging into sharepoint online it will not accept direct password. we need to convert our password as securestring. so here am using GetPasswordFromConsoleInput() funtion for converting my login password to convert as secure string and then am passing this secure string to SharePointOnlineCredentials() method. here am used console application todo this task.

Delete First n records from sharepoint online list using Powershell

Here i have a custom list with few views. In perticular view display am getting list threshhold problem. So my requirements is that when the items in list is crossing 4990 then immediatly i need to delete first 100 records from the list. first here am getting the total records in the list, then if the cound is greter then 4990 then am getting first 100 records. then am looping each record for deletion. so i will not get list thresh hold prolem for my view. here am using sharepoint cleint object model to perform this operations for sharepoint online. I think this same code will work for onpremises also. so for logging into sharepoint online it will not accept direct password. we need to convert our password as securestring. so here is my code. Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\1

Compare Equals(==,Equal()) in C#

Image
This link Contents Introduction Point 1 :- Comparison on the basis of Equality Scenario 1:- Value type comparison Scenario 2:- Reference types comparison Scenario 3:- String comparison, interning and object type casting Point 2 :- Compile time VS RunTime Point 3 :- The NULL Situation When to use what :- Technical comparison VS Semantical comparison The Full Picture Introduction To compare equality between variables C# has provided two ways of doing comparison “==” and an overloaded method “equals()”. Most of the developers use “==” and “Equals” is hardly discussed. So in this small note we will discuss about differences between them and when to use what. Point 1 :- Comparison on the basis of Equality Answering to the point “There is no difference between equality comparison using “==” and “Equals()”, except when you are comparing “String” comparison. The common comparison Rule :-Whenever youare comparing variables they are either value types or reference types.

Programmatically Insert Editable Textbox in PDF

Image
Textbox is one type of form fields in PDF, which allows users to enter data into PDF without any editing software. It is commonly used in a document to obtain information of the readers. This article presents how to insert editable textbox in a PDF programmatically using free  PDF API  in C#. This PDF library provides a class of  PdfTextBoxField , initialize a new object of the class and set it properties like Bounds ,  BounderWidth , then you can add the textbox to PDF document by  Form.Fields.Add ()  method. Using the code //Create a new object of PdfDoument, insert a page PdfDocument doc = new PdfDocument (); PdfPageBase page = doc.Pages.Add ( PdfPageSize .A4, new PdfMargins ()); //Set font, brush PdfFont font = new PdfFont ( PdfFontFamily .TimesRoman, 12f, PdfFontStyle .Bold); PdfBrush brush = PdfBrushes .Black; float x = 50; float y = 50; float tempX = 0; //Draw sting in Pdf string text = "Phone Number: " ; page.Canvas.DrawString(text, font,