Fix and prevent Windows continuously changing UEFI order

Having a dual-boot machine with Windows 8 or Windows 10 and Linux is frustrating, because Windows changes continuously the UEFI booting order, thus preventing GRUB to load. This usually happens after an update.

This command executed from Windows’ Command Prompt (as an administrator) seems to fix the problem for Ubuntu and derivatives:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

For other distros, you will need to identify first which .efi file is needed to boot. More information about the commands available for bcdedit is available in the Window’s IT center‘s website.

MEAN.JS and the CRUD Module Sub-Generator

MEAN.JS still needs to pulish a few things. For example, the compatibility with NODE 7.x. But a part from that, there is the CRUD Module Sub-Generator, which fails to properly add entries to the menu, and it is something that should be working out of the box.

Basically, you can use this generator for automatically creating the files needed for a CRUD interaction, but if you choose to add an entry to the menu… The website stops working and the only thing you can see is a blank page.

I was able to find more people with the same problem, for example:

  • https://groups.google.com/forum/#!searchin/meanjs/yo$20meanjs$3Acrud-module|sort:relevance/meanjs/wKavBQOCZvw/0-dlYj6hCLMJ
  • https://github.com/meanjs/mean/issues/347

But just when I was about to delete the project and find an alternative to MEAN.JS, I found the solution to the problem:

in client\config\customers.client.config.js reemplace this line:

menuConfig.$inject = [‘menuService’];

with this:

menuConfig.$inject = [‘Menus’];

Thanks StackOverflow!

Fix Telegram not showing accents in elementary OS

Diving in the Internet I found some answers, mainly related with IBus. However, it seems like they are not working with elementary OS 0.4 Loki.

The workaround is simple, just edit the file of the launcher corresponding to Telegram:

nano .local/share/applications/telegramdesktop.desktop

and change this line:

Exec=/home/YOUR-USER/Downloads/Telegram/Telegram -- %u

to look like this other one:

Exec=env QT_IM_MODULE=xim /home/YOUR-USER/Downloads/Telegram/Telegram -- %u

That should do the trick. But maybe you need to install a couple of IBus dependencies first? Just in case:

sudo apt install ibus-gtk ibus-gtk3 ibus-qt4