Problem exporting vector graphics (PDF) in Mathematica Notebook Front-End using remote kernel on linux

I’m not being able to export vector graphics images (especially PDF) in a Mathematica Notebook Front-End in Windows 8.1 using a remote kernel on a Linux server.

I can, however, export Raster Image Formats without a problem.

One interesting thing to point out is the fact that when accessing the server directly via ssh command line, launching Mathematica kernel and executing the same Export command, it works fine.

Mathematica 11.3 is the version being used on both computers.

Example of a Mathematica Notebook:

SetDirectory["/home/results"]  plt = Plot[x, {x, 0, 1}]  Export["test.gif", plt]  (*Works fine*)  Export["test.jpg", plt]  (*Works fine*)  Export["test.png", plt]  (*Works fine*)  Export["test.pdf", plt]  (*Does not work*)  Export["test.eps", plt]  (*Does not work*) 

Getting Custom Image Attribute in Frontend

I’ve followed a tutorial found here: https://webkul.com/blog/add-custom-image-attribute-category-magento-2/

With a slight modification which can be found in the InstallData, where I specified ‘visible_on_front’ :

<?php namespace Vendor\Module\Setup;  use \Magento\Framework\Setup\ModuleContextInterface; use \Magento\Framework\Setup\ModuleDataSetupInterface; use \Magento\Framework\Setup\InstallDataInterface; use \Magento\Eav\Setup\EavSetup; use \Magento\Eav\Setup\EavSetupFactory; use \Magento\Catalog\Setup\CategorySetupFactory;  class InstallData implements InstallDataInterface {     protected $  _eavSetupFactory;     protected $  _categorySetupFactory;       public function __construct(         EavSetupFactory $  eavSetupFactory,         CategorySetupFactory $  categorySetupFactory     ) {         $  this->_eavSetupFactory = $  eavSetupFactory;         $  this->_categorySetupFactory = $  categorySetupFactory;     }      public function install(ModuleDataSetupInterface $  setup, ModuleContextInterface $  context)     {         $  eavSetup = $  this->_eavSetupFactory->create(['setup' => $  setup]);         $  setup = $  this->_categorySetupFactory->create(['setup' => $  setup]);         $  setup->addAttribute(             \Magento\Catalog\Model\Category::ENTITY, 'grid_image', [                 'type' => 'varchar',                 'label' => 'Grid Image',                 'input' => 'image',                 'visible_on_front' => true,                 'backend' => 'Magento\Catalog\Model\Category\Attribute\Backend\Image',                 'required' => false,                 'sort_order' => 9,                 'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,                 'group' => 'Content',             ]         );     } } 

However, I am unable to access the actual attribute in the frontend. I’m grabbing the current category via the Registry, and find that the attribute simply isn’t attached (tried checking using $ category->debug()). Any ideas for how I can get access to it on the frontend?

How do you manage objects that are shared between back-end services and front-end services/apps?

I have multiple REST-ful APIs that I’m using as my “back-end”. I also have multiple web apps (.NET MVC). These web apps make calls to the APIs for data. So, an object being returned by an API will be the same as the object being expected on the web app side (serialized from JSON of course).

For example, if my web app makes a call to an API for a Customer object, that same object will be used across both the API and web app projects.

So, the question is, how do you manage this scenario (create NuGet packages for shared objects/interfaces, duplicate code, etc.)?

Any feedback is greatly appreciated. Thanks!

Problema para a exibição dos valores de um Array no front-end

Galera, boa noite. To com dificuldade para exibir os valores de um array no front-end. No backend ele aparece mas no front não.

Minha classe de tarefa service onde está a função que retorna o array:

public function procurar(){     global $  procura;     $  comando = $  this->conexao->prepare("select tarefa, id_status from tb_tarefas where tarefa like :nome");    $  comando->bindValue(':nome', "%{$  procura}%");    $  comando->execute();     $  inf = $  comando->fetchAll(PDO::FETCH_OBJ);     print_r($  inf); 

}

Aqui está a parte do código responsável por dar o comando no banco na classe tarefaController :

elseif($ acao == ‘procurar’){

    $  tarefa = new Tarefa();      $  conexao = new Conexao();      $  procura = isset($  _POST['procura']) ? $  _POST['procura'] : "";      $  tarefaService = new TarefaService($  conexao, $  tarefa);     $  retorno = $  tarefaService->procurar();      header('location: buscar_tarefas.php?resultado=1'); } 

E então lá no front-end eu abri o bloco de php e mandei escrever a variável $ retorno. Dei também um require once para chamar a classe tarefaController:

<?php  global $  retorno;  print_r($  retorno); 

?>

Me ajudem por favor, galera

What is the difference between an OLTP and OLAP setup and a INSERT/UPDATE-optimized table and a READ-optimized front-end table?

I am trying to understand the difference between the distinction between OLTP and OLAP and extract/transform/load and a traditional database setup with a fast update/insert database which is loaded to a read-database (perhaps document-oriented or something). It seems that you have one normalized database and one with more redudancy, but that both are instances of the same thing.

One significant difference is that OLAP queries compared to read-oriented queries tend to be large and complex and require a lot of references across tables. Are there any other conceptual differences? What about technical implementations?

Magento2: Getting Error processing request on frontend side

I get an error on my frontend after migrating my database. When I check the logs, I get the following error

{"0":"Notice: Undefined offset: -1 in \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Dynamic\/Algorithm.php on line 302","1":"#0 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Dynamic\/Algorithm.php(302): Magento\Framework\App\ErrorHandler->handler(8, 'Undefined offse...', '\/var\/www\/aslive...', 302, Array)\n#1 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Dynamic\/Algorithm.php(179): Magento\Framework\Search\Dynamic\Algorithm->_findValueSeparator(2, Object(Magento\Framework\Search\Adapter\Mysql\Aggregation\Interval))\n#2 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Dynamic\/Algorithm\/Improved.php(70): Magento\Framework\Search\Dynamic\Algorithm->calculateSeparators(Object(Magento\Framework\Search\Adapter\Mysql\Aggregation\Interval))\n#3 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Adapter\/Mysql\/Aggregation\/Builder\/Dynamic.php(56): Magento\Framework\Search\Dynamic\Algorithm\Improved->getItems(Object(Magento\Framework\Search\Request\Aggregation\DynamicBucket), Array, Object(Magento\Framework\Search\Dynamic\EntityStorage))\n#4 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Adapter\/Mysql\/Aggregation\/Builder.php(106): Magento\Framework\Search\Adapter\Mysql\Aggregation\Builder\Dynamic->build(Object(Magento\CatalogSearch\Model\Adapter\Mysql\Aggregation\DataProvider\Interceptor), Array, Object(Magento\Framework\Search\Request\Aggregation\DynamicBucket), Object(Magento\Framework\DB\Ddl\Table))\n#5 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Adapter\/Mysql\/Aggregation\/Builder.php(83): Magento\Framework\Search\Adapter\Mysql\Aggregation\Builder->processAggregations(Object(Magento\Framework\Search\Request), Object(Magento\Framework\DB\Ddl\Table), Array)\n#6 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Adapter\/Mysql\/Adapter.php(85): Magento\Framework\Search\Adapter\Mysql\Aggregation\Builder->build(Object(Magento\Framework\Search\Request), Object(Magento\Framework\DB\Ddl\Table), Array)\n#7 \/var\/www\/aslive\/app\/code\/Magento\/Search\/Model\/SearchEngine.php(42): Magento\Framework\Search\Adapter\Mysql\Adapter->query(Object(Magento\Framework\Search\Request))\n#8 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Search\/Search.php(72): Magento\Search\Model\SearchEngine->search(Object(Magento\Framework\Search\Request))\n#9 \/var\/www\/aslive\/app\/code\/Magento\/CatalogSearch\/Model\/ResourceModel\/Fulltext\/Collection.php(359): Magento\Framework\Search\Search->search(Object(Magento\Framework\Api\Search\SearchCriteria))\n#10 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Data\/Collection\/AbstractDb.php(342): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFiltersBefore()\n#11 \/var\/www\/aslive\/app\/code\/Magento\/CatalogSearch\/Model\/ResourceModel\/Fulltext\/Collection.php(410): Magento\Framework\Data\Collection\AbstractDb->_renderFilters()\n#12 \/var\/www\/aslive\/app\/code\/Magento\/Eav\/Model\/Entity\/Collection\/AbstractCollection.php(920): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFilters()\n#13 \/var\/www\/aslive\/app\/code\/Magento\/Catalog\/Model\/ResourceModel\/Product\/Collection.php(790): Magento\Eav\Model\Entity\Collection\AbstractCollection->load(false, false)\n#14 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(58): Magento\Catalog\Model\ResourceModel\Product\Collection->load(false, false)\n#15 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(138): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent('load', Array)\n#16 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(153): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}()\n#17 \/var\/www\/aslive\/generated\/code\/Magento\/CatalogSearch\/Model\/ResourceModel\/Fulltext\/Collection\/Interceptor.php(26): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins('load', Array, Array)\n#18 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Data\/Collection.php(832): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->load()\n#19 \/var\/www\/aslive\/app\/code\/Magiccart\/Magicproduct\/Block\/Product\/ListProduct.php(321): Magento\Framework\Data\Collection->getIterator()\n#20 \/var\/www\/aslive\/app\/code\/Magento\/PageCache\/Model\/Layout\/LayoutPlugin.php(71): Magiccart\Magicproduct\Block\Product\ListProduct->getIdentities()\n#21 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(146): Magento\PageCache\Model\Layout\LayoutPlugin->afterGetOutput(Object(Magento\Framework\View\Layout\Interceptor), '\n<script>\n    r...')\n#22 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()\n#23 \/var\/www\/aslive\/generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)\n#24 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/View\/Result\/Page.php(258): Magento\Framework\View\Layout\Interceptor->getOutput()\n#25 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/View\/Result\/Layout.php(171): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))\n#26 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))\n#27 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)\n#28 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))\n#29 \/var\/www\/aslive\/generated\/code\/Magento\/Framework\/View\/Result\/Page\/Interceptor.php(26): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)\n#30 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/App\/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))\n#31 \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\/App\/Bootstrap.php(258): Magento\Framework\App\Http->launch()\n#32 \/var\/www\/aslive\/pub\/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))\n#33 {main}","url":"\/","script_name":"\/index.php"} 

How can I fix this?

Mythtv frontend crashes when trying to play certain recording. How to fix this or at least report a bug?

This happens when using VDPAU playback profile (which works otherwise well)

mythtv-frontend version 2:29.1+fixes.201902191821.8f37aa3~ubuntu18.04.1 from ppa:mythbuntu/0.29

I can not file a bug about this by ubuntu-bug, so how to request for a fix?

some terminal outputs here