Tech blog

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

screen_9f1481d6e69cb5f42a33e41631214653My Klipper clipboard manager refused to open on keyboard shortcut (I use Ctrl+`) in LXQT. The problem was, that my LXQT local is in Ukrainian, but shortcut is set in English.

The strange behavior was also because in global shortcut manager, when setting a keyboard shortcut was not possibel. The old ones were working.

After several hour of googling and experiments I have found out the global shortcuts must be selected when my LXQT local and current keyboard input language are the same.

So since my local is Ukrainian, I had to switch to Ukrainian input language and then assign shortcuts.

The shortcuts fire needed actions work with any active input language.

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

spiderI used RokSprocket module with tabs layout. But it doesn't allow to select random articles on each page load. It's "random" articles means the same articles in random order on each page load. So instead of having 3 random articles in tabs, I get the same 3 ones in different order.

So I have implemented the same functionality but with real random articles in a dirty way - using 3 RegularLabs extensions (Sourcer, Tabs and Articles Anywhere) and some cutom code.

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
Joomla RSS doesn't provide a separate image field

I use zapier.com to post my Joomla article simultaniously to Facebook (RSS->Facebook group). And I face a problem, that Facebook illustrates the articles with a photo it choses on it's own (not the article photo). Zapier has an option to select an item photo, but Joomla article RSS doesn't output a separate image field.

So I used my MVC override plugin to extend Joomla and to add such a functionality. You may check this RSS feed as an example http://airsoft.in.ua/?format=feed&type=rss

A RSS part example (not bold part)

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
b_300_0_16777215_00_http___static.xscreenshot.com_2017_06_05_17_screen_a4ded3298fe6c189cfc4b5e115ee761.jpeg
Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100) (rc=-10)
Please try reinstalling VirtualBox.
where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.

After each OpenSuse update (I have Leap 42.2 by now) I get the same error with VirtualBox.

Just a note for mysefl to fix it

sudo chmod 4711 /usr/lib/virtualbox/VirtualBox

I'm really tired to do it manually myself, but see no other way out by now.

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Hyptiotes cavatus nonvenomous Clear Creek Hocking Co. OH December 12 2015Native slack .rpm package refuses to install at OpenSuSE. It requers appindicator, which in fact is installed. Slack doesn't see it, so installation fails.

The workaround is to extract the slack rpm file somewhere and to run it for your user only, not system-wide.

So, download slack rpm somewhere. I used my local temp directory, which has nothing with any system /tmp. Just a folder where I place some temporary file.

In my case it was /home/user/Desktop/temp/slack-2.6.2-0.1.fc21.x86_64.rpm

I went to /home/user/Desktop/temp/ and run command rpm2cpio < ./slack-2.6.2-0.1.fc21.x86_64.rpm | cpio -idmv

This created a usr folder with all needed slack files. Next I went to /home/user/Desktop/temp/usr/bin and just run slack executable from it.

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

xml spiderTo use own XML-defined Joomla from there are several Joomla plugins or advices. Mostly use the same couple of approaches is used.

You XML file is loaded either onContentPrepareForm (Aixeena CCK, ZUNO example) or even earlier (Form XML Override) - onAfterRoute by just adding a for search path like this JForm::addFormPath(JPATH_SITE.'/templates/system/forms/'.$option);

But these methods have one problem (or benefit, depending on the requirement) - you XML form doesn't replace the original one, but extends it. You can replace, redefine or add new fields, but never to remove a field from the original form. Besides, there is a problem with the order of newly added fields.

If you want to load your form instead of the original one, you must reset it with true parameter $form->reset(true);

This will kill the original XML. After that you are free to do like this  $form->load($yourxml); or this $form->loadFile($path_to_your_xml_file);

This is implemented in MVC Override plugin. Just install and place your override XML in the correct place.

Earlier I was younger and stupid and used a mad trick for this. The trick is found below, but please, don't tell anyone about it, because it's a shame on me.

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

SSL spiderI tried to install SSL at my local apache under OpenSuse. Manuals say to run /usr/bin/gensslcert

I got a long output with some errors the fist of which was

creating CA request/certificate ...
problems making Certificate Request
140601438258832:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:147:minsize=1
something ugly seems to have happened in line 119...

As it turned out it needed a hostname to be specified and on some reason my configuration somewhere didn't have it specified. So to elimitane the error I had to use -n key and domain name. Since it's for local usage, I just used gruz

/usr/bin/gensslcert -n gruz

 

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Remove joomla message from queueJoomla 3.6

I needed to remove a message already pulled to Jooma queue by JFactory::getApplication()->enqueueMessage(JText::_('JERROR_NOLOGIN_BLOCKED'), 'warning');

I found a solution here http://www.compago.it/manuali/33-programmazione/382-how-to-create-and-delete-message-in-joomla.html and made it a little more universal:

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Cerbalus-aravensis-spider-photo-3 Task

Get original Joomla URL from a SEF one. I.e. I want to know which is the real joomla URL, while the SEF one is http://sandbox2.com.us/index.php/weblinks-component

This may be needed while developing or making modifications in Joomla extension to use the real internal joomla link.

Solution for Joomla 3

The code below alswo works in most cases, but at least once I've met a strange behaviour - url parts were messed up with some Google Analytics variable. So I gave up using it

Result in $url: index.php?Itemid=229&option=com_contact&view=contact&id=1

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

i_013.png

I was looking for a couple of hours how to inspect a JQuery tooltip in firebug. A :hover tooltip is not a problem. But a mouseover-mouseout tooltip was not possible to catch.

Stackoverflow answers were too complicated or didn't work.

And finally it turned out to be very easy.

Subcategories

General Joomla FAQ based on own experience.
Some linux tips just not to forget.
FaLang translation system by Faboba
Електронна бібліотека «Exlibris»: історичні дослідження, мемуаристика, публіцистика, художня література Українська етнографія: книги, курси лекцій, статті й матеріали, мапи, фотоальбоми, веб-ресурси Правителі України: портрети, життєписи, матеріали Твори Адріана Кащенка: романтика козацьких часів Народна війна 1917-1932

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 07.10.2017 03:21
    I cannot reproduce it at my side. I have got such a report before, but have not got any feedback from ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    michmcca michmcca 06.10.2017 22:26
    I have been using notificationary for a week or two. Yesterday I encountered a problem with your ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Cog Cog 04.10.2017 22:46
    I can appreciate the work your putting in here. I donated 50 usd which is the best I can do currently.

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 04.10.2017 19:24
    It seems to be still the issue with the big form. The plugin parameters is a big-big-big form when ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Cog Cog 04.10.2017 18:56
    Sadly no. For what I need I require 10 duplicate instances. So far once I create more than 9 my site ...

    Read more...