Due to the 5,000 items threshold limitation it can become very frustrating to administrate Sharepoint. For example, if your list has more than 5,000 items, you cannot add an index, delete a lookup/people column, delete the list or the website, and more ! Hopefully some of the operations can be done with REST API, and […]
Étiquette : Astuce
mysqladmin with MariaDB returns « Access denied for user ‘root’@’localhost’ (using password: NO) »
When I want to reload my MariaDB server, I receive the below error: /usr/bin/mysqladmin: connect to server at ‘localhost’ failed error: ‘Access denied for user ‘root’@’localhost’ (using password: NO)’ The solution is to provide the root’s password in the file `/etc/mysql/debian.cnf` and then the error is gone!
Invisible character with IE when using Intl.DateTimeFormat
As explained in some threads, Internet Explorer adds some invisible extra characters when returning a date from the JavaScript function new Intl.DateTimeformat. var day = « Thursday »; var intlDay = new Intl.DateTimeFormat(‘en-US’, {weekday: »long »}).format(new Date(2019,1,7)); console.log(day === intlDay); // return FALSE with IE intlDay = intlDay.replace(/\u200E/g, »); // replace \u200E console.log(day === intlDay); // return TRUE with […]
Content Security Policy (CSP) blocks scripts from Violentmonkey / Greasemonkey
I wanted to inject some codes on Github, however I received Content Security Policy errors. It’s because Github blocks this kind of injected code. To bypass this restriction I installed the addon Content Security Policy Override (if you have Firefox you can install this Chrome addon using Chrome Store Foxified) then I applied the below […]
Contrôler la Freebox avec Google Home
J’ai tout expliqué sur ce site dédié : https://assistant.kodono.info/freebox/
How to drag and drop a file into a dropzone in HTML5
We can find plenty of demo and tutorials about it on the web, but it took me a while to understand how to setup something easy and quick. The purpose is to have a zone where we can drop a file from our computer. You need: A zone where the file will be dropped (for […]
Adding a custom action to a callout in SharePoint 2013
This article has been VERY useful. But I wanted something lightly different: I wanted to add a custom action, but also have the « EDIT » button (but not the « SHARE »), and to use the current item info for my custom action. Here is the result: // source: https://www.eliostruyf.com/adding-a-custom-action-to-a-callout-in-sharepoint-2013/ // add a special callout action for our […]
How to hide the left navigation bar in Sharepoint without CSS
We can easily find some workarounds to hide the left navigation bar on Sharepoint using CSS…. But I wanted to remove it on a specific page, without using any CSS. It’s actually pretty simple. You need to add the below tag into your .aspx page: <asp:Content ContentPlaceHolderID= »PlaceHolderLeftNavBar » runat= »Server »></asp:Content> Tested with Sharepoint 2013 On-Promise.
How to cache the CSS Fonts with Sharepoint
If you use your own CSS file with your own CSS fonts, then we’ll notice that Sharepoint doesn’t send cache headers if you use the below CSS code: @font-face { font-family: ‘Roboto’; src: url(‘/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff2’) format(‘woff2’), url(‘/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.woff’) format(‘woff’), url(‘/_catalogs/masterpage/css/fonts/Roboto/Regular/Roboto-Regular.ttf’) format(‘truetype’); font-weight: 400; font-style: normal; } To have this resource sent back from the Sharepoint server with […]
Create an Unpublished Content view for the masterpage galery [Sharepoint]
With Sharepoint 2013 I wanted an easy way to list of the pages in my masterpage galery that haven’t been published yet. You first need to Create a new view named Unpublished Content. You can sort by Name, and scroll down to the Folders settings and choose Show all items without folders. We now have […]