Thursday, 3 April 2014

JSON Example

JSON Example

<!DOCTYPE html>
<html>
<body>
<h2>Create Object from JSON String</h2>
<p>Original name: <span id="origname"></span></p>
<p>New name: <span id="newname"></span></p>
<script>
var employees = [
{ "firstName" : "John" , "lastName" : "Doe" },
{ "firstName" : "Anna" , "lastName" : "Smith" },
{ "firstName" : "Peter" , "lastName" : "Jones" }, ];
document.getElementById("origname").innerHTML=employees[0].firstName + " " + employees[0].lastName;
// Set new name
employees[0].firstName="Gilbert";
document.getElementById("newname").innerHTML=employees[0].firstName + " " + employees[0].lastName;
</script>
</body>
</html>

Sharepoint merge log files in farm server

Sharepoint merge log files in farm server
Merge-SPLogFile -Path "E:\SPLogs\MergedLogs.log" -Overwrite

Convert acsm to epub or pdf - Epubsoft

Convert acsm to epub or pdf - Epubsoft
The "acsm" file is just the KEY to get access to your new ebook.
To read eBook you need Key+Door.
You have Key, in the form .acsm
Now you need Door to place your Key.
The Door is : adobe digital edition. http://www.adobe.com/products/digitaleditions/
Just remember to make the new adobe program work you have to sign in with adobe the installation wizard it will ask you for that

Cannot perform this operation. The file is no longer checked out or has been deleted

Cannot perform this operation. The file is no longer checked out or has been deleted
Solution
The solution to this problem is to clear the cache of SharePoint Designer.
1. If opened close SharePoint Designer
2. Open the folder %APPDATA%\Microsoft\Web Server Extensions\Cache
3. Delete the contents
4. Open the folder %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
5. Delete the contents
6. Problem solved.
Close SPD and reopen.
Try now.

'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error

'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error
Solution:
Please make sure that you have installed AccessDatabaseEngine.exe provider with proper version (32 or 64bit version based on the office version installed) on the sql server machine.
You can download from below link.
http://www.microsoft.com/en-in/download/details.aspx?id=13255

SharePoint Search result customize Refinement Panel

SharePoint Search result customize Refinement Panel
Open Search result page
Edit the Refinement Panel web Part. -> Click on ‘Choose Refiners…’ button.
From the list of ‘Available Refiners’ -> Select ‘RefineableString00’ -> Click ‘Add’ button.
Change the ‘Display Name’ for it (Initially it may not show the Sample Values, wait for around 5-10 mins to take effect )
Click ‘Ok’ -> Save and Close the Page -> Check-In and Publish the Page

How to Remove Gmail Account from Samsung S4

How to Remove Gmail Account from Samsung S4
Touch on Settings
Touch on Accounts
Touch on Gmail
Touch on Stop Sync
Click on your email id
Click on Remove Account