Skip to content


How to move Livedrive’s cache folder

In its older versions, Livedrive had many “advanced” settings. Notably, it was possible to move around its cache folder (which is the folder where, notably, files are temporarily stored while they’re being uploaded to the briefcase, or permanently if you choose to keep them both locally and “in the cloud”), which I found quite useful so as to avoid filling up, or simply wearing out the SSD where Windows resides. Sadly, the new, redesigned version came with many oversimplifications, and this setting was removed. However, I noticed that my upgraded version did retain the modified value from the previous version. So I dug around a little, and found there is a registry setting for it 🙂

So, simply run regedit, then go to key HKEY_CURRENT_USER\SOFTWARE\Livedrive\Users\[your email], and edit the string (REG_SZ) value CacheLocation. Default value is C:\Users\[username]\AppData\Local\Livedrive. Make sure Livedrive is not running when you change that. Also, I think it’s a good idea to manually move the contents of the cache folder from the old location to the new one.
On a side note, it seems that all settings are stored in this key: it might be a convenient way to modify them without looking everywhere in the control center.

Posted in software.


aToad #22: Dillinger.io

Online Markdown editor

I’m really not a fan of Markdown, as I’ve been used to MediaWiki syntax, BBCode, or even more simply, plain HTML (HTML is so trivial, I don’t really get why so many people feel the necessity to invent their own markup language over it…). But with Github’s quasi-monopoly on easy Git hosting (I personally like Bitbucket though – but they use Markdown too) it seems to become kind of a necessary evil.

Dillinger.io provides an easy way to edit your markdown readmes, with a simple and efficient interface: code to the left, “what you see is what you get” (just a non-editable preview) on the right. It lacks a syntax help, but the provided example document already has plenty of the useful syntax and you probably won’t need more than that.

Posted in A Tool A Day.


How to disable Vivaldi’s disk cache

I recently changed computer, and in the process I manually migrated some stuff, notably my browsers’ data folders (if you’re looking for them, they’re usually located in C:\Users\[username]\AppData\Local or C:\Users\[username]\AppData\Roaming). To speed up the transfer as those USB keys can be quite slow when dealing with many files, I packed them each in a 7-zip archive. And I noticed Vivaldi’s folder was huge. Like, 1+GB huge 😮

It turned out Vivaldi inherits from a behavior inherent to Chrome and forks, which is to stuff its cache in the same main folder as your profile. Or more specifically in:
C:\Users\Admin\AppData\Local\Vivaldi\User Data\Default\Application Cache and
C:\Users\Admin\AppData\Local\Vivaldi\User Data\Default\Cache

Of course, I didn’t really want to transfer those. So I looked for a way to disable disk cache (I’ve got RAM for fuck sake, use it you stupid damned browsers), then emptied those folders and transfer the profile without the cache.

Sadly, Vivaldi doesn’t provide an easy option to turn off disk cache (comparatively, in Firefox and forks you just need to go to about:config and set browser.cache.disk.enable to false). You need to launch it with the --disk-cache-size=0 command like option. So basically, edit Vivaldi’s shortcut so that the target becomes something like "C:\Program Files\Vivaldi\Application\vivaldi.exe" --disk-cache-size=0. Source is here.

Note that this actually doesn’t totally prevent that annoying browser from junking said cache folders: I usually have about 350 MB of stuff in those folders. Hopefully some day it will be cleaner…

Posted in Chrome/Chromium/Vivaldi, Firefox.


How to get rid of Intel(R) System Usage Report

This executable, who also apparently goes by the nickname of “Energy Server Service WILLAMETTE” or SystemUsageReportSvc_WILLAMETTE (located, by default, in C:\Program Files\Intel\SUR\WILLAMETTE\ESRV), is installed along with the Intel(R) Driver Update Utility. And it appears that you cannot prevent its installation when you install that update utility.
The problem is, it will keep running in the background, and try to send mysterious data to who knows who (Intel, I guess). That’s actually how I caught it: it popped up a firewall alert. Some people also reported CPU usage issues, with the executable (esrv_svc.exe) eating up a whole CPU core.
You can try to disable it in your Services configuration, however in my case it still kept running after I disabled its service! So the only option left for me was to uninstall the Intel(R) Driver Update Utility, which is much useful once you’ve figured out precisely which drivers you need anyway.

Posted in Intel.


Windows special folders short names (%something%)

I always forget some of those ones, so let’s have a recap of short names for Windows folders, and the full path they point to (in Windows 7, although 8 or 10 shouldn’t be much different, or probably exactly the same). Note that all those short names are NOT case-sensitive. Also, apparently the official name of those %ShortNames% is “Windows Environment Commands”.

  • %HomeDrive% => C:\ (NB: all the full paths I give here assume Windows is installed on C:\)
  • %AllUsersProfile% => C:\ProgramData
  • %AppData% => C:\Users\[username]\AppData\Roaming
  • %HomeDrive% => C:\Users\[username] (NB: accessing this folder by using the short name will actually NOT show you the full path)
  • %Temp% => C:\Users\[username]\AppData\Local\Temp (NB: can be different if you moved the temporary folder, obviously – but who does that?)
  • %SystemRoot% => C:\Windows

%AppData% is supposed to be the folder where most programs put their user data. For instance, that’s where you can hope to find your saved games (also some are located in “%userprofile%\Documents\My Games), or your browser settings. However, it seems that as many or more programs use the C:\Users\[username]\AppData\Local folder instead. Some, rarer, use the C:\Users\[username]\AppData\LocalLow folder. All in all, just go to C:\Users\[username]\AppData and then try the various subfolders there.
Some programs store stuff both in Local and Roaming, notably Firefox and its forks: Roaming contains the settings, Local contains the disk cache.

See also: a list of run commands / common program names

If you know more of those pretty convenient shortcuts, please post them in the comments and I’ll add them!

Posted in Windows.


Some Windows 10 post-installation customizations

How to install gadgets

I was quite surprised to see Microsoft removed gadgets after making such a fuss about them in Windows 7. Although I didn’t like many of them, CPU meter turned out to be a must have and I really missed it. Gladly, a third-party software, 8GadgetPack, will let you install most gadgets. And it even bundles quite many of them, including the CPU meter one.

How to disable Windows Update

Sounds to good to be true, so time will tell how well it works, but apparently all you need to do is to go to Services and disable the Windows Updates service. Source.
Also, you can set “Configure Automatic Updates” to disabled in group policies in Computer Configuration → Administrative Templates → Windows Components → Windows Update

How to disable Telemetry

First, there are a bunch of options that pop up during the initial set up. Then you should also have a look in the system settings (apparently that’s not called control panel anymore?). All in all, you should already have seen a bunch of options to drastically reduce the amount of collected data.
And finally, the last touches:
– using the registry editor ([windows key] + R, then “regedit”), go to key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection, create a 32-bit DWORD value named AllowTelemetry and set it to 0
– go to Services and disable the Connected User Experiences and Telemetry service (NB: it used to be named Diagnostics Tracking Service before the 1511 update) and the dmwappushsvc service
Source: http://winaero.com/blog/how-to-disable-telemetry-and-data-collection-in-windows-10/
There might be more, as I believe I remember from previous readings that there are quite many things to edit for a complete removal… I’ll edit this post when I find more.

How to disable Windows Defender

That annoying thing can only be disabled temporarily. The settings reads “if it’s disabled for too long, it will re-enable automatically”, but it turns out that “too long” barely means “until the next restart” :s
Anyway:
– run ([windows key] + R) gpedit.msc
– select Computer Configuration
– go to Administrative Templates → Windows Components → Windows Defender
– double click the Turn off Windows Defender policy and enable it
You should immediately notice that the Windows Defender icon in the task bar shows and alert indicating it’s disabled, and that you can’t open Windows Defender anymore.
Source: Microsoft Community – How to disable Windows Defender in Windows 10

How to disable Cortana

Not only that piece of **** has a questionable privacy behavior, it can also make your start menu lag like hell. Two ways to disable it:
1) via regedit: create dword value HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowCortana and set it to 0.
2) via group policies (Win 10 Pro or Enterprise only): run gpedit.msc, then go to Computer Configuration → Administrative Templates → Windows Components → Search, and disable the Allow Cortana setting

How to disable Search on the web

By default, when you search for something in the start menu, it also fires a web search (hurray for privacy again). This behavior can be disabled via group policies: go to Computer Configuration → Administrative Templates → Windows Components → Search, and enable Don’t search the web or display web results in Search

How to disable fast startup

Fast startup allows to start up the computer a bit faster. But this isn’t that noticeable on a fast SSD, and it comes at a cost: the computer writes an image of its current running state when you shut it down, so it wears out the SSD (and shutdown is a bit longer). Not worth it IMO (more reasons to hate it there). You can disable it via the power options (see there for a detailed guide), or simply via regedit:
go to key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power, create a DWORD value named HiberbootEnabled, and set it to 0.

How to add stuff to the Start menu

Similarly to Windows 7, you can copy/paste shortcuts into %appdata%\Microsoft\Windows\Start Menu (for the current user, it’s the short name for C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Start Menu) or C:\ProgramData\Microsoft\Windows\Start Menu (for all users).
However, unlike in Windows 7, you’ll probably run into permission issues if you try to right-click-and-drop and executable in order to directly create a shortcut to it in the Start menu. To bypass this, just create the shortcut somewhere else first, then cut/paste it into the Start Menu folder.

Once you placed your shortcut there, you can right-click it in the Start Menu to Pin it, etc. Cf here for many ways to customize the Windows 10 Start Menu: those tiles are pretty handy IMO, and I find they make a decent replacement to the long-gone Quick Launch that I used to miss so much in Win 7. That is, once you’ve removed all the default junk that’s there.

Miscellaneous other things

Update list (can be used to download update packages manually)

Various safe-to-block crap

Those Windows components will try at some point to access Internet and I found the simplest way to deal with them is just to block them at the firewall level:

  • BackgroundTransferHost.exe (might be related to Windows Update, or just App Updates in general?)
  • InstallAgentUserBroker.exe
  • slui.exe
  • SpeechModelDownload.exe

You can also disable those services:

How to disable Quick access

In File Explorer, go to File → Change folder and search options. Then in the General tab, choose “open file explorer to: this PC”. You can also disable showing recently used files and folders at the bottom of this tab.

Posted in Windows 10.


How to install Serverless locally

Serverless recommends to install itself globally. This is notably required to make commands such as “serverless” or the shortcut “sls” available in the command line.

However, projects created to Serverless 0.5 cannot be deployed using Serverless 1.x. So, with the official instructions, if you have one project in Serverless 0.5 and the other in Serverless 1.x, you’re basically screwed.

Gladly, it’s actually fairly easy to use a non-global installation of Serverless.
Basically, you just need to install Serverless locally (and while you’re at it, mark it as a development dependency):
npm install serverless@0.5.5 --save-dev
You might want to have a look in your package.json file and lock down the version completely, if that you want (I believe that by default, minor revisions are allow, ie 0.5.5 may get upgraded to 0.5.6).

Then, you need to recreate the “serverless” or “sls” command (or whatever alias you want). For this, simply create a bash file (Windows .bat, Linux/Mac .sh), in your project’s root folder, with the following content:
– on Windows:
node node_modules\serverless\bin\serverless %*
– on Linux or Mac:
node node_modules\serverless\bin\serverless $*

Finally, to run serverless dash deploy, for instance, if you named your bash file slslocal.bat, just run instead:
slslocal dash deploy

Posted in JavaScript / TypeScript / Node.js.


My Cinebench R15 bench results

For some reason I’m always a bit wary of the benchmark results I find here and there on Internet, so I thought I’d make sure I store mine in an easy to find place. I.e., as usual, here ^^
Usual reminder: benchmarks are a way to very quickly compare various hardware in a standardized fashion, however they are not as relevant as real-life applications. Just to give an example, between the 3rd and 4th generation, Intel CPUs got a new instruction set (AVX2), which brings large improvement speed to some algorithms, such as x265 encoding. This isn’t reflected in this benchmark.

Intel i7-6700K (quad core, 4.0 GHz) + GeForce GTX 1060 (mobile). Factory voltage and clock for both.

  • CPU (multithread): 873
  • CPU (single core): 177
  • OpenGL: 145.19 FPS

Intel i5-6500 (quad core, 3.2 GHz). Factory clock, no discrete GPU. 130 mV undervolt, but it shouldn’t impact performance.

  • CPU (multithread): 542
  • CPU (single core): 140
  • OpenGL: 36.49 FPS

Intel i7-3632QM (quad core, 2.2 GHz) + AMD Radeon HD 7970M. Factory voltage and clock for both, except that I ran the OpenGL benchmark both in “performance” mode (= normal clock) and energy-saving mode (= the clock is about half slower). The computer is a Schenker XMG P702.

  • CPU (multithread): 508
  • CPU (single core): 102
  • OpenGL: 57.94 FPS
  • OpenGL (“maximize battery life” setting in Catalyst): ~43 FPS

On a side note, the reference benchmarks (bundled in Cinebench) for CPU single core indicate 101 for the i7-3840QM (which is 2.8 GHz) and 122 for the i7-3720QM (which is 2.6 GHz). Doesn’t sound very logical and supports my mistrust in published benchmarks.

AMD A6-3500 (tri core, 2.1 GHz). Factory voltage and clock, no discrete GPU.

  • CPU (multithread): 166
  • CPU (single core): 61
  • OpenGL: 19.65 FPS

AMD Phenom II N930 (quad core, 2.0 GHz) + AMD Mobility Radeon HD 5650. Factory voltage and clock.

  • CPU (multithread): 188
  • CPU (single core): 49
  • OpenGL: 14.15 FPS

Posted in hardware, Schenker XMG P702.


Watch out, Android Studio leaves tons of junk files behind on the system partition

As I was just looking for the folder holding Fallout Shelter save files, I noticed my user folder (%USERPROFILE%) contained a few folders named .AndroidStudio[insert number here]. More specifically, .AndroidStudio1.5, .AndroidStudio2.0, .AndroidStudio2.1 and .AndroidStudio2.2.
It’s sadly very common for uninstalled application to leave such folders behind, however they often empty it, and in almost all other cases at least such folders contain barely a few small files. However, in this case, those folders contained each 400MB to almost 3GB of data, for a total of around 4.5GB in 6000 files!!

So, next time you upgrade Android Studio to a new version, you know what to do: remove their previous data folder once you’re done migrating the old one.

Posted in Android.


Manually reassigning bad blocks on Linux

This is just a note I found on my computer while doing some clean up, and I thought I’d put it here rather than just delete it.
Basically, it’s just some commands + links I found while desperately trying to eliminate a bad block on a hard drive by forcing it to be reassigned. As far as I remember, this didn’t work quite well, and I ended up just requesting the disk to be changed (this happened on a rented dedicated server that I had just ordered).

root@81-7-14-247:~# sg_verify --lba=1909768496 /dev/sda

root@81-7-14-247:~# sg_verify --lba=1909768503 /dev/sda
verify (10): Descriptor format, current; Sense key: Medium Error
Additional sense: Unrecovered read error - auto reallocate failed
Descriptor type: Information
0x0000000071d4c137
medium or hardware error, reported lba=0x71d4c137

root@81-7-14-247:~# sg_reassign --address=0x71d4c130 -v /dev/sda
reassign blocks cdb: 07 00 00 00 00 00
reassign blocks: Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
REASSIGN BLOCKS not supported

https://forums.gentoo.org/viewtopic-t-905082-start-0.html

http://smartmontools.sourceforge.net/badblockhowto.html

http://sg.danny.cz/sg/sg3_utils.html

http://linux.die.net/man/8/sg_verify
http://linux.die.net/man/8/sg_reassign
http://linux.die.net/man/8/sg_write_long

https://superuser.com/questions/384095/how-to-force-a-remap-of-sectors-reported-in-s-m-a-r-t-c5-current-pending-sector

Posted in Linux, servers.