How to enable thumbnails in Windows 10?

Hi there.

Yes yes I know… Windows. Now stop bitching.

Yes I do use Microsoft Windows 10 at work and at home for gaming purposes.

Now as our friends in Hollywood would say – lets cut to the chase. Thumbnails. This has been bugging me for a bit now. How do you enable them. Normally all you had to do was right click and choose View > Thumbnails. But in Windows 10 this option is… hidden. I have stumbled onto the solution accidentally and decided to share.

So you want to open the folder containing photos / images.

Then you want to click View in the menu.

In there you want to make sure that something like “Large icons” or “Extra large icons” is selected.

Then you want to click Options.

When the Options Window pops up you want to click on View tab.

Now You want to make sure that the “Always show icons, never thumbnails” option is unticked.

And when that’s done – You click OK.

Voila… Thumbnails!

Cheers.

AndrzejL

We are sorry drkonqi closed unexpectedly…

I ran into a bit of an error after one of the upgrades:

We are sorry ,drkonqi closed unexpectedly…

I fixed it by sshing into the machine (changing to another TTY will work too I suppose) and running few commands as a user.

rm ~/.cache/ksycoca*

kbuildsycoca5

While this command was running it spit an error:

kbuildsycoca5 running…
kf5.kservice.sycoca: Parse error in “/home/andrzejl/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu” , line 1 , col 1 : “unexpected end of file”

so I removed the file that couldn’t be parsed:

rm /home/andrzejl/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu

and re-run the command. This time it went smooth:

kbuildsycoca5

Then I ran another command that added a tidbit as a last line to the ~/.bash_profile file:

echo 'export KDE_DEBUG=1' >> ~/.bash_profile

and tested if it took:

cat ~/.bash_profile

and the terminal spits out:

export KDE_DEBUG=1

Saul Goodman…

Then gain root and reboot:

su -c "reboot"

After the reboot plasma loaded successfully and I was good to go.

Cheers.

Andrzej

Transcript:

[andrzejl@macmini32 ~]$ rm ~/.cache/ksycoca*
[andrzejl@macmini32 ~]$ kbuildsycoca5
[andrzejl@macmini32 ~]$ kbuildsycoca5 running…
kf5.kservice.sycoca: Parse error in “/home/andrzejl/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu” , line 1 , col 1 : “unexpected end of file”
[andrzejl@macmini32 ~]$ rm /home/andrzejl/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu
[andrzejl@macmini32 ~]$ kbuildsycoca5
kbuildsycoca5 running…
[andrzejl@macmini32 ~]$ echo ‘export KDE_DEBUG=1’ >> ~/.bash_profile
[andrzejl@macmini32 ~]$ cat ~/.bash_profile
export KDE_DEBUG=1
[andrzejl@macmini32 ~]$ su -c “reboot”
Password:
Connection to macmini32 closed by remote host.
Connection to macmini32 closed.

Bluetooth fix. Plasma. Bluedevil. Some of the bluez-utils tools got deprecated. hcitool scan no longer works.

So my wife tells me “My bluetooth isn’t working…” This is her way of saying “I love you“. She knows that I love troubleshooting stuff.

This is (in short) what needs to be done in order for bluetooth to work with the new version of bluez and bluez-utils under Plasma.

Gain root:

su

Install bluetooth basics:

pacman -S obexfs pulseaudio-bluetooth bluedevil bluez bluez-libs bluez-utils

Add your user to the lp group:

gpasswd -add lp login

Replace #AutoEnable=false with AutoEnable=true in the /etc/bluetooth/main.conf file:

sed -i 's/#AutoEnable=false/AutoEnable=true/g' /etc/bluetooth/main.conf

Enable bluetooth service:

systemctl enable bluetooth

Reboot:

reboot

Upon reboot you should have bluedevil bluetooth icon in Plasma tray. You should also be able to pair and access the bluetooth devices (like your phone) using Dolphin file manager.

If its not working for you… happy troubleshooting. You are on your own ;).

Cheers.

Andrzej

Source: https://wiki.archlinux.org/index.php/bluetooth

How to replace a string in your mysql database with another string.

Hi there.

It always kept pissing me off… For example… I had 150 entries in my RSS from domain website.com but every few months that domain keeps changing… either to website.eu or website.ie or website.nl… Try changing 150 urls by hand every few weeks… Its daunting and downright just freaking annoying…

Today I’ve learned HOW to change the URL’s in the entire database with few simple commands. Here is how:

First – dump the database example:

mysqldump -u root -p database_name > ./db.sql

You will be asked for root’s mysql password. Provide it.

Now use sed command to replace the string:

sed -i 's/website.com/website.ie/g' ./db.sql

Now re-upload the database back:

mysql -u root -p database_name < ./db.sql

You will be asked for root’s mysql password. Provide it.

Now what I like to do is force the mysql update:

mysql_upgrade -p -u root --force

You will be asked for root’s mysql password. Provide it.

And when that’s done – restart mysqld service.

systemctl restart mysqld

And remove the dump file:

rm ./db.sql

That’s it – the string has been replaced in the entire database and the database was re-uploaded / upgraded / restarted and the dump was removed.

Cheers.

Andrzej

How to figure out channel ID on YouTube?

Hi there.

Sometimes channel URL looks like this:

https://www.youtube.com/user/nuggetnoggin/

and You need it to look like this:

https://www.youtube.com/channel/abcxyz123

How to figure out what the channel ID is? Quite simple.

I will show how its done in Firefox but I any decent browser will do it for you.

1) Grab (as in copy) this:

feeds/videos.xml?channel_id=

2) Go to the YouTube channel page.

3) Right click somewhere on the page and choose “View Page Source” from the right click menu.

4) Now press and hold CTRL and press F. Release both.

Paste the bit from above ^^^ into the search box.

AndrzejL_ArchLinux_Screenshot_2016.08.14_22.32.01

Voila!

This user’s channel ID is UCm_Fbx0tAqAOB3cA4d1GnXw.

Cheers.

Andrzej

How to subscribe to a YouTube channel using RSS feed reader.

Hi there.

I will show you how to create a working RSS feed reader URL for the YouTube channel.

1) Visit the channel you want to subscribe to. Let’s say this one:

https://www.youtube.com/channel/UCM1Bnpxipb8H4GJoITnJ0XQ

2) Now grab this:

https://www.youtube.com/feeds/videos.xml?channel_id=

and add the channel ID to the end of it after the =. Its the red part after the /channel/ in the channel URL :).

The entire link should look like this:

https://www.youtube.com/feeds/videos.xml?channel_id=UCM1Bnpxipb8H4GJoITnJ0XQ

Add the newly created URL to the RSS and watch the magic happen ;).

Cheers.

Andrzej

Downloading videos from YouTube in video and audio only format…

Hi there.

Want to be able to download single files, playlists or even entire channels? Want audio in MP3 format only? Good…

1) Install ffmpeg and youtube-dl (or youtube-dl-git from AUR).

pacman -S ffmpeg youtube-dl

2) Create YouTube folder in your home folder

mkdir ~/YouTube

3) For videos add this alias to ~/.bashrc:

alias YouTube='cd ~/YouTube/ && mkdir -p `date +"%Y.%m.%d"` && cd `date +"%Y.%m.%d"` && youtube-dl --ignore-errors --yes-playlist --sub-lang en'

4) For audio (best quality MP3s) add this alias to ~/.bashrc:

alias YouMP3='cd ~/YouTube/ && mkdir -p `date +"%Y.%m.%d"` && cd `date +"%Y.%m.%d"` && youtube-dl --ignore-errors --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0'

Now all you need to do is open terminal and type in:

YouTube URL

or

YouMP3 URL

Where URL is an actual https://youtube.com/whatever link to a single video, playlist or to a “Videos” section of a channel, press enter, wait for the process to finish and then visit ~/YouTube folder. You will find the content in folder with today’s date ;).

You likey? Me happeey…

Andrzej

One line to rule them all – Opennic DNSCrypt setup.

IF its your first time DNSCrypt attempt install dnscrypt and bind tools packages:

pacman -S dnscrypt-proxy bind-tools

and run this:

echo 'nameserver 127.0.0.1' > /etc/resolv.conf.head && cat /etc/resolv.conf.head && echo '[Unit]' > /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Description=DNSCrypt client proxy' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Requires=dnscrypt-proxy.socket' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '[Install]' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Also=dnscrypt-proxy.socket' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'WantedBy=multi-user.target' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '[Service]' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Type=simple' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'NonBlocking=true' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'ExecStart=/usr/bin/dnscrypt-proxy ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--provider-name=2.dnscrypt-cert.resolver2.dnscrypt.eu ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--resolver-address=77.66.84.233:443 ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--provider-key=3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955 ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--user=nobody' >> /usr/lib/systemd/system/dnscrypt-proxy.service && cat /usr/lib/systemd/system/dnscrypt-proxy.service && cp /usr/lib/systemd/system/dnscrypt-proxy.service /etc/systemd/system/ && cat /etc/systemd/system/dnscrypt-proxy.service && systemctl daemon-reload && systemctl restart dnscrypt-proxy && systemctl status -l dnscrypt-proxy && nslookup -type=txt 2.dnscrypt-cert.resolver2.dnscrypt.eu && dig 2.dnscrypt-cert.resolver2.dnscrypt.eu txt

IF you’re redoing your current config and you want to do it quickly – run this:

echo 'nameserver 127.0.0.1' > /etc/resolv.conf.head && cat /etc/resolv.conf.head && systemctl stop dnscrypt-proxy && systemctl stop dnscrypt-proxy.socket && systemctl disable dnscrypt-proxy && systemctl disable dnscrypt-proxy.socket && echo '[Unit]' > /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Description=DNSCrypt client proxy' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Requires=dnscrypt-proxy.socket' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '[Install]' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Also=dnscrypt-proxy.socket' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'WantedBy=multi-user.target' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '[Service]' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'Type=simple' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'NonBlocking=true' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo 'ExecStart=/usr/bin/dnscrypt-proxy ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--provider-name=2.dnscrypt-cert.resolver2.dnscrypt.eu ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--resolver-address=77.66.84.233:443 ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--provider-key=3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955 ' >> /usr/lib/systemd/system/dnscrypt-proxy.service && echo '--user=nobody' >> /usr/lib/systemd/system/dnscrypt-proxy.service && cat /usr/lib/systemd/system/dnscrypt-proxy.service && cp /usr/lib/systemd/system/dnscrypt-proxy.service /etc/systemd/system/ && cat /etc/systemd/system/dnscrypt-proxy.service && systemctl daemon-reload && systemctl restart dnscrypt-proxy && systemctl status -l dnscrypt-proxy && nslookup -type=txt 2.dnscrypt-cert.resolver2.dnscrypt.eu && dig 2.dnscrypt-cert.resolver2.dnscrypt.eu txt

This will push 127.0.0.1 to the top of your /etc/resolv.conf file and will keep your current DNS servers as a falback in case the DNSCrypt server goes down which I am sad to say happens once in a while. It will also configure and copy the service files in the right places and will enable the right services.

Reboot and you should be good to go.

Cheers.

Andrzej

What the fuck are Plasma devs doing?

Is it Plasma still? It used to be “KDE” then it was renamed to “KSC” and later to “Plasma”…

I will be bitchin and moanin again…

To the KDE Devs:

Guys!

Systemsettings5 > Appearance > Workspace theme > Desktop theme

Where is the “Details” tab that allows setting different parts of plasma with different themes? I will tell you where it is… Its fucking gone. It was removed. It was abandoned. Its not there anymore.

You can see it here:

snapshot1

And few upgrades later – its gone.

AndrzejL_ArchLinux_Screenshot_2016.04.19_07.20.07

https://forum.kde.org/viewtopic.php?f=17&t=132011

https://bugs.kde.org/show_bug.cgi?id=359127

Knowing this… Question for you.

What else are you going to remove that I use? So far I cannot:

– set up a font size for the date and time in the digital clock anymore
– set the icon only taskbar to stop grouping icons,
– set the time and date short / long format because klocale was replaced with qlocale… https://bugs.kde.org/show_bug.cgi?id=340982
It used to be possible

snapshot2

But with the mentality “progress for the sake of progress” it got replaced with a dumbed down version… and cannot be changed anymore.

AndrzejL_ArchLinux_Screenshot_2016.04.23_01.25.07

– set the theme the way I want it to be… and if I install / use any other theme then breeze my desktop panel keeps jumping from screen 1 to screen 2 on reboot…

There are other things missing that I was using as well. The ones I’ve listed are the ones I miss the most.

Every time I upgrade plasma something is going missing or turns to shit.

Are you out of your mind folks?

What are you trying to do? Microsoft Windows desktop configuration? One theme, few colors and wallpaper?

I am looking at kde and I dont like where you’re going with this. So far you’re the best desktop out there… but that’s gonna change if you will continue to go in this direction… Dumbing down Plasma (if that’s her real name) is NOT the way to go.

I’ve been using KDE for 11 or 12 years now… It used to be superb. You could configure everything to your liking. Nowadays… You became a “Windows Wannabe”… and the fact is that if I wanted to use Windows I would continue to use Windows. I could certainly afford it. The money I’ve spent as donations to Linux and KDE would buy me a several Windows licences… plus all my machines came with preinstalled MS based operating system… so I wouldn’t have to spend one cent on the license really.

Please stop removing features, please start adding the useful features that were removed. Please stop adding useless shit. Please start fixing the bugs that exist and keep multiplying…

Plasma5 has been out there for ages now. Its now in version plasma-desktop 5.6.3-1. By the time KDE reached version 3.5 it was solid and stable. Plasma is at version 5.6 and you still suck at multiple screens setup. You cannot get the indexing right, your processes keep dumping core…

Apr 19 00:54:21 wishmasus.loc systemd-coredump[1040]: Process 680 (ksplashqml) of user 1000 dumped core.
Stack trace of thread 681:
#0 0x00007fa144ce72a8 raise (libc.so.6)
#1 0x00007fa144ce872a abort (libc.so.6)
#2 0x00007fa144d23369 __libc_message (libc.so.6)
#3 0x00007fa144d28d96 malloc_printerr (libc.so.6)
#4 0x00007fa144d29029 malloc_consolidate (libc.so.6)
#5 0x00007fa144d2ac90 _int_malloc (libc.so.6)
#6 0x00007fa144d2d41a __libc_calloc (libc.so.6)
#7 0x00007fa13fb55249 n/a (libnvidia-tls.so.340.96)
#8 0x00007fa14173c501 g_malloc0 (libglib-2.0.so.0)
#9 0x00007fa14175406d g_slice_free1 (libglib-2.0.so.0)
#10 0x00007fa1435094d9 __nptl_deallocate_tsd.part.4 (libpthread.so.0)
#11 0x00007fa14350a5d8 start_thread (libpthread.so.0)
#12 0x00007fa144d9bcbd __clone (libc.so.6)
Stack trace of thread 680:
#0 0x00007fa144d2954f _int_free (libc.so.6)
#1 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#2 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#3 0x00007fa1454f874a _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#4 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#5 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#6 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#7 0x00007fa1454f875d _ZN12QMapDataBase8freeTreeEP12QMapNodeBasei (libQt5Core.so.5)
#8 0x00007fa135c35fd6 _ZN10QXcbScreenD1Ev (libQt5XcbQpa.so.5)
#9 0x00007fa135c36009 _ZN10QXcbScreenD0Ev (libQt5XcbQpa.so.5)
#10 0x00007fa135c2ab47 _ZN14QXcbConnectionD1Ev (libQt5XcbQpa.so.5)
#11 0x00007fa135c2af99 _ZN14QXcbConnectionD0Ev (libQt5XcbQpa.so.5)
#12 0x00007fa135c2c7b6 _ZN15QXcbIntegrationD1Ev (libQt5XcbQpa.so.5)
#13 0x00007fa135c2c8b9 _ZN15QXcbIntegrationD0Ev (libQt5XcbQpa.so.5)
#14 0x00007fa145b955c7 _ZN22QGuiApplicationPrivateD1Ev (libQt5Gui.so.5)
#15 0x00007fa145b95769 _ZN22QGuiApplicationPrivateD0Ev (libQt5Gui.so.5)
#16 0x00007fa14568956c _ZN7QObjectD1Ev (libQt5Core.so.5)
#17 0x00007fa145656f82 _ZN16QCoreApplicationD2Ev (libQt5Core.so.5)
#18 0x000000000040447b n/a (ksplashqml)
#19 0x00007fa144cd4710 __libc_start_main (libc.so.6)
#20 0x0000000000404559 _start (ksplashqml)
Stack trace of thread 683:
#0 0x00007fa144d92c3d poll (libc.so.6)
#1 0x00007fa1417370fc n/a (libglib-2.0.so.0)
#2 0x00007fa14173720c g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007fa1456aac8f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007fa1456536fa _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007fa14547cfe4 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x00007fa146239a55 n/a (libQt5DBus.so.5)
#7 0x00007fa145481de8 n/a (libQt5Core.so.5)
#8 0x00007fa14350a424 start_thread (libpthread.so.0)
#9 0x00007fa144d9bcbd __clone (libc.so.6)
-- Subject: Process 680 (ksplashqml) dumped core
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
--
-- Process 680 (ksplashqml) crashed and dumped core.
--
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
[root@wishmasus andrzejl]#

Plasma keeps leaking memory like it has Alzheimer.

Panel keeps jumping from one screen to another during reboot… WHY?!

AndrzejL_ArchLinux_Screenshot_2016.04.19_21.34.42

Repository (official) installed plasmoids keep screaming in the .xsession-errors about not being able to get the version…

And you keep changing shit so often many of the plasmoid developers gave up. Where is Luna plasmoid?

What the fuck guys?! Get off your asses and do something fucking right for a change. I’ve been donating €100 each year for the past few years. Last year I stopped. I am not giving money to a project who does not give a shit about my needs. I am not paying for frustration and stress.

I’ve been testing desktop environments on a spare machine for quite a while now. Please do NOT force me to choose another DE.

I will keep adding shit to this post…

For now I am done ranting.

Cheers.

Andrzej