Author: Aymeric

Play with ribbon on Sharepoint

In Sharepoint 2010 and 2013, there are some existing functions to deal with the ribbon. Below an example of what we can do: // we need the file “sp.ribbon.js” SP.SOD.executeOrDelayUntilScriptLoaded(function () { // use PageManager var pm = SP.Ribbon.PageManager.get_instance(); // define a function to call when the ribbon is loaded var DoSomethingWithRibbon=function(ribbon) { // For […]

Mise à jour mysql 5.5 vers 5.6, sur Debian Wheezy

1) Nouveau repo On crée d’abord le fichier /etc/apt/sources.list.d/mysql.list avec les deux lignes ci-dessous : deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6 deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6 2) Clé publique du repo On crée un fichier mysql.key dans lequel on copie/colle la clé publique de mysql. Puis on l’ajoute à apt : apt-key add mysql.key 3) Export / Backup […]

How to change the default logon name on Windows 7

On a remote PC it was another logon name that appeared by default… In that case I had to click on “Switch User”, then “Other User”, and finally enter my username and password. Very frustrating. After a few searches I found we can change the default name using the registry and with the below commands […]

VirtualBox qui utilise le VPN de la machine hôte

Dans le cadre de mon travail j’ai dû utiliser VirtualBox afin de pouvoir tester différentes versions d’IE. Mon problème est que mon PC utilise normalement un VPN pour accéder au réseau de l’entreprise et que ma VM n’arrive pas à y accéder de base…. Pour y remédier il faut d’abord définir deux adaptateurs dans l’onglet […]

Change screen saver timeout [Windows]

Let’s say your network admin blocked the default screensaver timeout to 15 minutes, but you want more…. You can change this timeout by running as an administrator the regedit then use the “Find…” command to look for “ScreenSaveTimeOut”. It should be under Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop The timeout is defined in seconds. Just change the value and […]

http://www.iegallery.com/addonsie7/ is returned when trying to change the default search engine for Internet Explorer

I have IE11 on my pro laptop, with Bing, while I want to use Google as my default search engine. However it keeps returning me the page http://www.iegallery.com/addonsie7/ with no way to install another search provider… After looking for a solution, I found you can use the direct link http://www.iegallery.com/addonsie7/Detail?resourceId=13555 to be able to install […]

Excel file as an HTML table and Date formatting

If you create an Excel file using an HTML Table, then it exists a way to format the cells based on some CSS rules. Some examples can be found on this blog post. I spent some time trying to figure out how to display correctly the dates, whatever your regional settings are ; for exemple […]

Pure Javascript Drag and Drop cross browser from IE8

I was looking for a simple JavaScript to drag a div element around, and that would work with IE8 and without any third party libraries (like jQuery). It’s been very difficult to find a simple code ! Finally http://news.qooxdoo.org/mouse-capturing saved me with some code… but there was still a problem with IE8 due to the […]

How to expand Sharepoint 2013 calendar by default [JavaScript]

This code has been tested for Sharepoint 2013 only. It permits to expand by default (so as soon as the page is loaded) the events in the Month calendar view. See here a solution for Sharepoint 2010. Tested with IE8 and Firefox 41. You’ll have to add the below JavaScript code into your calendar page: […]