Categories
Mastering Development System & Network

Can’t get cron to output a GUI message / how to make user aware cron is being executed

I need to run, on Ubuntu 18.04, via cron a script, myscript.sh that I want, among other things, to display to the user a message when it is being run so that he is aware that cron is being run (perhaps there are also ways to do this that somehow don’t involve any GUI-related things; […]

Categories
Mastering Development System & Network

Can’t get a cronjob to run a script that installs a service which requires root

I need to run, on Ubuntu 18.04, via cron a script, myscript.sh that contains, among other things, installation instruction for another script, pluckeye-linux-0.99.40.installer and I’m running into a tedious error: The script in question is the installer for Pluckeye a kind of parental control app. This needs to be run as root. Inside of myscript.sh […]

Categories
Ask Games RPG Games

As a GM, how do you decide when a creature has discerned an illusion for what it is?

Many illusion spells, such as minor illusion and silent image have a clause that reads: If a creature discerns the illusion for what it is, the illusion becomes faint to the creature. The illusions often have a method or two in the spell description explaining how a creature can determine there’s an illusion, but I’m […]

Categories
Linux Mastering Development Ubuntu

Following update around May 28, Thinkpad running 20.04 won’t suspend

I upgraded to 20.04 a couple of weeks ago, and everything seemed fine. Yesterday I did an update and received, among other things, a new kernel (5.4.0-33). Following this my laptop no longer suspends. Normally, I close the lid and after a second or two the red LED on the lid goes from solid on […]

Categories
Linux Mastering Development Ubuntu

Following update around May 28, Thinkpad running 20.04 won’t suspend

I upgraded to 20.04 a couple of weeks ago, and everything seemed fine. Yesterday I did an update and received, among other things, a new kernel (5.4.0-33). Following this my laptop no longer suspends. Normally, I close the lid and after a second or two the red LED on the lid goes from solid on […]

Categories
CMS Drupal Mastering Development

Render custom twig in a specific language

I need to specify the language, which the drupal renderer uses, when generating a custom render array. $renderArray = [ “#theme” => “DNMBE_email”, “#body” => [ “#theme” => “DNMBE_emailBody_groupMessage”, “#author” => $groupMessage->author, “#group” => $groupMessage->group, “#message” => $groupMessage->message, ], “#leadin” => $partials->leadin, “#leadout” => $partials->leadout, ]; $render = \Drupal ::service(‘renderer’) ->renderRoot($renderArray); $html = (string)$render; #theme […]

Categories
Mastering Development

AngularJS and ui-router: wrong routes behaviour after refresh

I’m developing an application with AngujarJS and ui-router and I’m having a problem loading the routes. To facilitate the explanation I will delete parts of the code. My rotes file looks like this: app.config(function($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider .state(‘dashboard’, { url: ‘/dashboard’, templateUrl : ‘pages/dashboard.html’, controller : ‘DashController’ }) .state(‘dashboard.vendas’, { url: ‘/vendas’, templateUrl : […]

Categories
CMS Magento Mastering Development

Nesting Pruduct details default block in my custom block

I would really appreciate a hand here – thanks in advance for any tip, I’m fairly new to Magento’s layout structre. I’ve created a custom block via backend. In that block, among other things, I would like to include the default Product details tabs from Product Page [my block has 3 vertical bootstrap clomuns, I […]

Categories
Mastering Development

How to run EXE as different user in an activeX Media Player Control

I have been tasked with updating someone else’s code, to meet certain new requirements that the customer has. This software is used to fetch and playback audio files, using the Windows Media Player (via the embedded Media Player Control). The new requirements require the program to use a centralized account, instead of each user’s individual […]

Categories
Linux Mastering Development Ubuntu

How to use Krusader to avoid useless taking space on displays?

After upgrading Ubuntu 16.04 to 18.04, among other things, Krusader takes up too much space on the displays, because it uses long banners instead of icons in both panel toolbars. We reinstalled Krusader to the version 2.4.0-beta3 “Single Step”, which still has those icons. But the next day the update returned the unpleasant Krusader version […]