Monday, 22 August 2016

ImageMagick collages

One of my pet projects is combining bash scripts with some graphic masks to create these using Imagemagick.






Thursday, 18 August 2016

Linux Mint Ubuntu FB Messenger App

Sometimes all I need is an easier way to type in Facebook Messenger than to use my phone.  If I am on the computer I can open my Facebook page, but then I am distracted by all the stuff happening there.  And there doesn;t seem to be a decent Facebook Messenger App for the LINUX desktop that actually works.

The simple way around it is to open www.messenger.com in a browser, then tear off the tab and move it to another desktop.  But I found another option that suits me better.

Most of us have a few browsers installed.  And I sometimes have a standalone browser that can be run from a folder.  Something light and quick.  Something like https://www.palemoon.org/

What I did was downloaded palemoon, opened www.messenger.com, logged in and set that to my home page.

Then as I am in Mint KDE, I resized the window and positioned it where I want it, then right clicked the Title Bar and chose  More Actions > Special Application Settings.

In there I checked the boxes for Position and Size and set both to 'Apply Initially'.
A few other tweaks in 'VIEW' got rid of the various tool bars and the status bar, making a nice clean Facebook Messenger App with very little effort.

And I should be able to just copy my PaleMoon folder to another computer and it 'Should' be ready to use there also.

Last, I dragged the    palemoon.bin file from the folder created when I extracted the Palemoon download file to my panel and changed the settings to show the FB Messenger Icon.

Somtething I noticed is that I am getting the message notification sounds even if this is on another work space.  So that's nice.

Now when I click the icon it already has my login details saved and is the size, shape and position I want.   And it does not interfere with my normal browsers!  Obviously I blurred the details.  But this is how it looks.



A little follow up.  The palemoon Messenger thing is working great.   It is the best way I have found to use FaceBook Messenger on a Linux desktop.  All notifications and stickers are working and it is actually better to use than using messenger on my phone or tables and far better than trying to use it inside my FB page.

I think I discovered the reason some of the FB Messenger Apps for Linux Desktop haven't been working.  I followed some basic python instructions to make a very simple App using Python 3 and Qt5.  And there was a package I needed that was not included in PyQt5 by default.

I ended up writing a simple browser to do the same thing as the PaleMoon idea above using PyQt5, and it worked more or less, but without sound notifications and every now and again it simply locked.  I couldn't find the missing libraries for this App either, which on my Mint 17 KDE simply hangs,  https://messengerfordesktop.com/ 

So for now, the solution above is simple, works really well and seems pretty well bulletproof.

I will do a few simple tweaks and update.  I can't see any reason PaleMoon can't be used to provide an up to date Skype interface too.

UPDATE !!!
I found another couple of advantages to using PaleMoon to run as as FaceBook Messenger App.
The most important one is that it is possible to use CTRL + and CTRL -  or CTRL and mousewheel to scroll the size of the messenger.  Not a big deal unless as I am right now, you are using the TV across the room as a computer monitor.

Monday, 8 August 2016

Slimjet Browser and Searching GOOGLE with No Personalized results

One of the problems with designing websites for people has always been getting their pages to rank well on search engines.  After 35 years of creating web sites I've mostly got that figured out.

But it is still necessary to test the pages we design to see how well they are listing.  And the most popular search engine is still Google.  And Google has a design feature which uses your past searches to optimize your current search.

Now, the easiest ways to stop this are probably to log out of Google  each time I want to test and search from there, or to go into Private Mode on my browser.

Another way is to add a new browser in settings and make sure the drop down box for search engines is enabled,  There's a neat little piece of code that can be added to the end of the URL to turn off Personalized Search Results.

http://www.google.com/search?pws=0&q=%s

Now, I use Flashpeak Slimjet as my default browser, and I make use of Speed Dial a lot in various browsers.
Simply entering the above URL in any Speed Dial in any browser will allow me to immediately open a Google Search page with the Personalized results turned OFF.

That means my results should be based on a 'clean' search with no bias towards my previous search history.

Saturday, 6 August 2016

Mint KDE sequential desktop wallpaper

One of the nice things about KDE is that it has some neat functions built in, and one of the best is the ability to set a different image on each desktop and if you want, each activity.

Among the options is a desktop slideshow.  Not that is a nice touch, but the KDE developers hard coded the slideshow to show images form any selected folder only in RANDOM order.  And not all of us want a random slideshow.

Fortunately there is a way to get a sequential slideshow happening and the way to get around this is shown at:
http://peterlevi.com/variety/2014/05/variety-and-kde/

NOTE !!!
This method is ONLY needed if you DO NOT want random images.
KDE Default Desktop Settings and choose 'Slideshow' works perfectly for random images.  No need to do all this stuff.

I take photos and often want to show a sequence of zoom shots, so I use the method below.

So the basics are Install variety:
sudo add-apt-repository ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety variety-slideshow

Then run variety and set your preferences.  I just added the folders I want to use and turned off a lot of background downloads I don't want.  And I set the timer on the slideshow.

I made sure I have it set to start variety when the computer starts.

Once that is done, open your 'Default Desktop Settings' and choose:
Wallpaper > Image
Then choose Add Folder, and browse to:
Pictures > variety-wallpaper

click on the image in that folder.  It will be called something like:
wallpaper-kde.jpg  but will have a number in it.

Click OPEN, then click OK

It 'should' be working now.

After that, to change the images shown, open variety and change the folder you are using there.

NOTE !!!
You can still use Default Desktop Settings to go back to a normal single image at any time.  To get back to your slideshow just open the wallpaper-kde-xxx.jpg again using the steps above.

Of course, this will leave variety running all the time even when you are not actually 'showing' the slideshow.

I'll have to look at how variety can be switched on and off at will and add that here.

UPDATE
Two things I discovered.
When I restart my computer KDE will default to a generic single image wallpaper.  I must restart variety and go through the image selection steps for each session.

Variety can be started and stopped using terminal commands:

variety      

Entered on its own will start it - then I select the image as described above.

killall variety

Will stop it, and should leave the last used image, but might return to a default wallpaper image.

Monday, 25 July 2016

Mouse Right Click context menu delay in browser in Mint 17.3 KDE

Recently I noticed that when I tried to right click on  something and use the pop up  menu some odd things were happening.

1 - The menu would not appear until I moved the mouse cursor into the area where the menu should appear.
2 - Once the menu did appear, some menu items did not show the hover selector as the mouse was moved over them
3 - If I held the Right mouse button and moved the mouse, a coloured line (green) was drawn a couple of inches away from the position of the cursor.

But it did not happen all the time.  There seemed to be a random element to it.

I tried a few Google searches using different combinations of words, but got all sorts of other things that were nothing to do with the problem.  Then I realised it was only happening in my Slimjet and some other Chrome based browsers  but not in Firefox or Cyberfox.

I looked at the settings in my computers and found that on one of them I had a setting configured in two browsers that was not configured in the other computer.

In my Slimjet browser I opened Settings then scrolled almost to the bottom and found System.
There are two 'Checkbox' items there.  The second one is 'Use hardware acceleration when available'.
It was not checked on the computer that was behaving well, but it was checked on the problem computer.
I unchecked it, restarted the browser and everything is now perfect.

I have no idea how or why I had enabled hardware acceleration in a browser - but I am writing it here so when I do something that dumb again I will find it easily using Google  :-)

Chromium was fixed more or less the same way and I suppose this should work for most Chrome based browsers.

It is nice to have a fully working context menu again with no lag.  It is possible turning on Hardware Acceleration on some graphics card setting could cause a similar problem, but this fixed the browser menu problem and the whole browser is responding better.

Sunday, 17 July 2016

Synaptic and others - Font Size in KDE

Something I had forgotten about is that opening some non KDE programs in a KDE desktop leaves me with tiny fonts that don't seem to respond to changes in 'Fonts' in the KDE Settings menu.

One of the most used programs where this is annoying is Synaptic Package Manager and there are numerous threads about it, not one of which provided a solution that worked.

The problem is most annoying on a High Resolution display so here's what I did for my own screen.

MENU > System Settings > Application Appearance >
then:
Style > QtCurve  (This was suggested as a fix but didn't work on its own.  There's nothing about Fonts in its Configuration option.

Fonts > Force DPI: 150  (96 is the default)
So now this makes all my KDE stuff too big and I choose 'Adjust All Fonts', > Size > and pick something smaller.

Pick a size and check some KDE programs and see the font sizes, then open Synaptic and LibreOffice and check them.

It comes down to a balancing act because LibreOffice and Synaptic use a slightly different method to display.

So far this has been the ONLY simple way I have found to balance the appearance between KDE and soem Non-KDE Programs.


Wednesday, 6 July 2016

Slimjet Browser won't run - Segmentation Fault

The two web browsers I use most are FlashPeak-Slimjet http://www.slimjet.com/en/dlpage.php  (based on Chromium)
and Cyberfox (based on Mozilla).

I use those because they are much faster and better featured for my purposes than Chrome or Firefox, but once in a while they can do strange things,  Like many things in Linux though, the solution is sometimes very simple.

Today Slimjet refused to boot,  When I tried opening it from a terminal it came back with a 'segmentation fault'.  That usually means a corruption in the configuration, and as it happened, the last thing I did before it died was write some weird changes to the program.  But it can happen sometimes when you just change the wrong thing in settings.

The fix in this case was just to rename the 'slimjet' folder in the hidden '.config' folder in my home directory.  I called it 'slimjet-old'  then I tried starting slimjet again.  It ran, and when it ran, it created a new folder in /.config called 'slimjet'.

I opened the 'slimjet' folder and the 'slimjet-old' folder, then copied the folder called 'Default' from the 'slimjet-old' folder to the new 'slimjet' one.

Doing that restored things like my speed dial and bookmarks.