Invalid argument supplied for foreach() – Crud Generator

estoy usando Laravel Crud Generator y al momento de querer insertar un registro me aparece el siguiente error se que esta en el foreach pero no se como corregirlo

Invalid argument supplied for foreach() (View: C:\laragon\www\sistema\resources\views\admin\perfil\form.blade.php) 

el codigo de mi vista es:

<div class="form-group {{ $  errors->has('category') ? 'has-error' : ''}}">     <label for="category" class="control-label">{{ 'Category' }}</label>     <select name="category" class="form-control" id="category" >     @foreach (json_decode('[multi-empresa: Multi-empresa, empresa: Empresa]', true) as $  optionKey => $  optionValue)         <option value="{{ $  optionKey }}" {{ (isset($  perfil->category) && $  perfil->category == $  optionKey) ? 'selected' : ''}}>{{ $  optionValue }}</option>     @endforeach </select>     {!! $  errors->first('category', '<p class="help-block">:message</p>') !!} </div> 

Raspberry pi download file not verifiable from sha256 files supplied

I was unable to verify the Ubuntu Server image for a pi 3 from the accompanying sha256sums.txt file on https://ubuntu.com/download/iot/raspberry-pi-2-3.

Output was

sha256sum -c SHA256SUMS.txt ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz | grep ok sha256sum: ubuntu-18.04.2-preinstalled-server-armhf+raspi2.img.xz: No such file or directory sha256sum: ubuntu-18.04.2-preinstalled-server-armhf+raspi3.img.xz: No such file or directory sha256sum: ubuntu-18.04.2-server-amd64.iso: No such file or directory sha256sum: ubuntu-18.04.2-server-arm64.iso: No such file or directory sha256sum: ubuntu-18.04.2-server-ppc64el.iso: No such file or directory sha256sum: ubuntu-18.04.2-server-s390x.iso: No such file or directory sha256sum: WARNING: 6 listed files could not be read sha256sum: ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz: no properly formatted SHA256 checksum lines found

Warning: Invalid argument supplied for foreach() Metabox WordPress

Estou utilizado o plugin Metabox para o WordPress só que não estou conseguindo trazer o array com os valores setados acontece o erro Warning: Invalid argument supplied for foreach() só que não consegui encontrar o erro, alguém poderia me ajudar? já tentei retornar os valores com o id da função fieldset e fieldset_text_id, porém não dá certo.

Meu código Metabox

function looping_fieldset_text_demo( $  meta_boxes ) {     $  meta_boxes[] = array(         'id' => 'fieldset',     'title'  => __( 'Informações do produto', 'looping' ),     'post_types' => array( 'products', 'post' ),         'fields' => array(             array(                 'id'      => 'fieldset_text_id',                 'name'    => __( 'Adicionar informações', 'looping' ),         'type'    => 'fieldset_text',         'add_button' => __('Adicionar', 'looping'),                 // Options: array of Label => key for text boxes                 // Note: key is used as key of array of values stored in the database                 // Number of options are not limited                 'options' => array(                     'ref'    => __( 'REF:', 'looping' ),                     'cod' => __( 'COD', 'looping' ),                     'mt-ncm'   => __( 'MT-NCM', 'looping' ),                 ),                 'clone' => true,             ),         ),     );     return $  meta_boxes; } add_filter( 'rwmb_meta_boxes', 'looping_fieldset_text_demo' ); 

no meu Index – Adicionei um var_dump(), para ver o resultado e ele retorna NULL

 <div class="products-list">         <h1><img src="<?php bloginfo('template_directory'); ?>/img/products-img-text.png"></h1>       <?php          $  args = array(           'post_type' => 'products',            'post_per_page' => 7,         );         $  query = new WP_Query($  args);         if($  query->have_posts()) : while($  query->have_posts()) : $  query->the_post();       ?> <div class="product-ref">       <div class="ref">         <?php            $  values = rwmb_meta( $  fieldset );           foreach ( $  values as $  value ) {               echo $  value['ref'];               echo $  value['cod'];               echo $  value['ncm'];           }           var_dump($  fieldset);         ?>       </div><!-- .ref -->     </div><!-- .product-ref -->  <?php       ?>       <?php endwhile; endif;       wp_reset_postdata(); ?> 

Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284

I have this error when I add special characters to menu or categories like “&” It’s from module Ves Megamenu.

Warning: Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284

Line from warning:

$  categoriesTrees = $  this->getCategoriesTree(); foreach ($  categoriesTrees as $  category) {     $  this->generatCategory($  category); } 

I have a driver supplied as source cod (.c) cannot install ‘build-essentials’

Found this question and answer “How do I install a driver provided as source code?”. When I followed the instruction: “sudo apt-get install build-essentials” got the response “E: Unable to locate package build-essentials”.

I’m running as root in armbian 16.04 which has all upgrades (except to 18.) and updates compiled for a H2 CPU on an Orange PI Zer0+

What can I do now? Peter.

Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in ..t/src/PaygentConnect/Response/Parser.php on line 27

The Clearing module prints the exception. This module is a third-party module.  Do you know where the cause lies in the source code? Please tell me.      bool(false)     1 exception(s):     Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /var/www/html/primary/vendor/veriteworks/paygent-connect/src/PaygentConnect/Response/Parser.php on line 27      Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /var/www/html/primary/vendor/veriteworks/paygent-connect/src/PaygentConnect/Response/Parser.php on line 27     #0 /var/www/html/primary/vendor/veriteworks/paygent-connect/src/PaygentConnect/Response/Parser.php(27): Magento\Framework\App\ErrorHandler->handler(2, 'Invalid argumen...', '/var/www/html/p...', 27, Array)     #1 /var/www/html/primary/vendor/veriteworks/paygent-connect/src/PaygentConnect/Client/Curl.php(109): PaygentConnect\Response\Parser->parse()     #2 /var/www/html/primary/vendor/veriteworks/paygent-connect/src/PaygentConnect/PaygentConnect.php(93): PaygentConnect\Client\Curl->execute()     #3 /var/www/html/primary/vendor/veriteworks/paygent/Model/Card/Lists.php(66): PaygentConnect\PaygentConnect->post()     #4 /var/www/html/primary/vendor/veriteworks/paygent/Model/Config/CcProvider.php(174): Veriteworks\Paygent\Model\Card\Lists->loadRegisteredCards()     #5 /var/www/html/primary/vendor/veriteworks/paygent/Model/Config/CcProvider.php(78): Veriteworks\Paygent\Model\Config\CcProvider->loadCardInfo()     #6 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Veriteworks\Paygent\Model\Config\CcProvider->__construct(Object(Magento\Payment\Model\CcConfig), Object(Magento\Payment\Helper\Data\Interceptor), Object(Veriteworks\Paygent\Gateway\Config\Cc), Object(Veriteworks\Paygent\Helper\Data), Object(Veriteworks\Paygent\Model\Source\PaymentClass), Object(Veriteworks\Paygent\Model\Source\SplitCount), Object(Veriteworks\Paygent\Model\Card\Lists))     #7 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Veriteworks\Pay...', Array)     #8 /var/www/html/primary/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Veriteworks\Pay...')     #9 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(180): Magento\Framework\ObjectManager\ObjectManager->get('Veriteworks\Pay...')     #10 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(156): Magento\Framework\ObjectManager\Factory\AbstractFactory->parseArray(Array)     #11 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, NULL, NULL, 'configProviders', 'Magento\Checkou...')     #12 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Checkou...', Array, Array)     #13 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Checkou...', Array, Array)     #14 /var/www/html/primary/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Checkou...')     #15 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Checkou...')     #16 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Checkou...', NULL, 'configProvider', 'Magento\Checkou...')     #17 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Checkou...', Array, Array)     #18 /var/www/html/primary/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Checkou...', Array, Array)     #19 /var/www/html/primary/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Checkou...', Array)     #20 /var/www/html/primary/vendor/magento/framework/View/Element/BlockFactory.php(45): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Checkou...', Array)     #21 /var/www/html/primary/vendor/magento/framework/View/Layout/Generator/Block.php(269): Magento\Framework\View\Element\BlockFactory->createBlock('Magento\Checkou...', Array)     #22 /var/www/html/primary/vendor/magento/framework/View/Layout/Generator/Block.php(249): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Magento\Checkou...', Array)     #23 /var/www/html/primary/vendor/magento/framework/View/Layout/Generator/Block.php(227): Magento\Framework\View\Layout\Generator\Block->createBlock('Magento\Checkou...', 'checkout.cart.s...', Array)     #24 /var/www/html/primary/vendor/magento/framework/View/Layout/Generator/Block.php(135): Magento\Framework\View\Layout\Generator\Block->generateBlock(Object(Magento\Framework\View\Layout\ScheduledStructure), Object(Magento\Framework\View\Layout\Data\Structure), 'checkout.cart.s...')     #25 /var/www/html/primary/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))     #26 /var/www/html/primary/vendor/magento/framework/View/Layout.php(343): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))     #27 /var/www/html/primary/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()     #28 /var/www/html/primary/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()     #29 /var/www/html/primary/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()     #30 /var/www/html/primary/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()     #31 /var/www/html/primary/vendor/magento/framework/View/Page/Config.php(208): Magento\Framework\View\Layout\Builder->build()     #32 /var/www/html/primary/vendor/magento/framework/View/Page/Config.php(228): Magento\Framework\View\Page\Config->build()     #33 /var/www/html/primary/vendor/magento/module-checkout/Controller/Cart/Index.php(55): Magento\Framework\View\Page\Config->getTitle()     #34 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Controller\Cart\Index->execute()     #35 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Cart\Index\Interceptor->___callParent('execute', Array)     #36 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Cart\Index\Interceptor->Magento\Framework\Interception\{closure}()     #37 /var/www/html/primary/generated/code/Magento/Checkout/Controller/Cart/Index/Interceptor.php(26): Magento\Checkout\Controller\Cart\Index\Interceptor->___callPlugins('execute', Array, Array)     #38 /var/www/html/primary/vendor/magento/framework/App/Action/Action.php(107): Magento\Checkout\Controller\Cart\Index\Interceptor->execute()     #39 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))     #40 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Controller\Cart\Index\Interceptor->___callParent('dispatch', Array)     #41 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Controller\Cart\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))     #42 /var/www/html/primary/generated/code/Magento/Checkout/Controller/Cart/Index/Interceptor.php(39): Magento\Checkout\Controller\Cart\Index\Interceptor->___callPlugins('dispatch', Array, Array)     #43 /var/www/html/primary/vendor/magento/framework/App/FrontController.php(55): Magento\Checkout\Controller\Cart\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))     #44 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))     #45 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)     #46 /var/www/html/primary/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))     #47 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))     #48 /var/www/html/primary/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))     #49 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))     #50 /var/www/html/primary/app/code/Infortis/Cgen/Plugin/Magento/Framework/App/FrontController.php(32): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))     #51 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(135): Infortis\Cgen\Plugin\Magento\Framework\App\FrontController->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))     #52 /var/www/html/primary/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))     #53 /var/www/html/primary/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)     #54 /var/www/html/primary/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))     #55 /var/www/html/primary/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()     #56 /var/www/html/primary/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\Http\Interceptor->launch()     #57 /var/www/html/primary/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))     #58 {main} 

namespace PaygentConnect\Client;  use \PaygentConnect\Response\Validator; use \PaygentConnect\Config\Config; use \PaygentConnect\Response\Parser;  class Curl {     /**      *      */     const KEYSTORE_PASS = "changeit";     /**      * @var resource      */     private $  client;     /**      * @var array      */     private $  options = [];     /**      * @var string      */     private $  data = '';      private $  config;      private $  result;       /**      * Curl constructor.      * @param Config $  config      * @param Config $  const      * @param array $  options      */     public function __construct(Config $  config, $  url, $  options)     {         $  this->config = $  config;         $  this->options = $  options;         $  result = true;          $  this->client = curl_init($  url);          $  result = curl_setopt($  this->client, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );         $  result = curl_setopt($  this->client, CURLOPT_RETURNTRANSFER, true);         $  result = curl_setopt($  this->client, CURLOPT_POST, true);         $  result = curl_setopt($  this->client, CURLOPT_HEADER, true);         $  result = curl_setopt($  this->client, CURLOPT_SSL_VERIFYHOST, false);          //if(!$  this->options['noCert']) {             $  result = curl_setopt($  this->client, CURLOPT_SSLCERT, $  this->options['clientCertificatePath']);             $  result = curl_setopt($  this->client, CURLOPT_SSLKEYPASSWD, self::KEYSTORE_PASS);         //}          //if(!$  this->options['noCaCert']) {         //    $  result = curl_setopt($  this->client, CURLOPT_SSL_VERIFYPEER, false);         //} else {             $  result = curl_setopt($  this->client, CURLOPT_SSL_VERIFYPEER, true);             $  result = curl_setopt($  this->client, CURLOPT_CAINFO, $  this->options['caCertificatePath']);         //}          $  result = curl_setopt($  this->client, CURLOPT_TIMEOUT, $  this->options['timeout']);         $  result = curl_setopt($  this->client, CURLOPT_CONNECTTIMEOUT, $  this->options['proxyTimeout']);          if(!$  result) {             throw new \BadFunctionCallException('Connection client initialize error.');         }     }      /**      * @param $  data      * @return $  this      */     public function setRequest($  data)     {         $  this->data = $  data;         return $  this;     }      /**      * @return mixed      */     public function execute()     {         $  query = $  this->data;         $  length = strlen($  query);          $  header =[             $  this->options['contentType'],             $  this->options['encoding'],             $  this->options['contentLength'] . ': ' . $  length,             $  this->options['userAgent'] . ": curl_php",         ];          curl_setopt($  this->client, CURLOPT_HTTPHEADER, $  header);         curl_setopt($  this->client, CURLOPT_POSTFIELDS, $  query);          $  result = curl_exec($  this->client);         $  validator = new Validator();         $  returnCode = '0';          if($  result === false && curl_errno($  this->client) != 0) {             $  returnCode = $  validator->validate($  this->client);         }          $  parser = new Parser($  result);         $  parser->parse();         $  this->result = $  parser->getBody();          return $  returnCode;     }      public function getResult()     {         return $  this->result;     }  } 

class Parser {     private $  response;     private $  data;       const LINE_DELIMITER = "\r\n";     const INITIAL_HTTP_STATUS = '-1';      public function __construct($  response)     {          $  this->response = $  response;     }      public function parse()     {         $  lines = mb_split(self::LINE_DELIMITER, $  this->response);         $  bodyStart = 0;         $  returnCode = self::INITIAL_HTTP_STATUS;          foreach($  lines as $  i => $  line) {              if (is_null($  line) || strlen($  line) == 0 || $  line === '') {                 break;             }             $  bodyStart += strlen($  line) + strlen(self::LINE_DELIMITER);              if ($  returnCode === self::INITIAL_HTTP_STATUS) {                  $  returnCode = $  this->parseStatus($  line);                 if ($  returnCode === true) {                     continue;                 }                 return $  returnCode;             }              if (!$  this->parseHeader($  line)) {                 continue;             }         }          $  body = substr($  this->response, $  bodyStart);         $  this->parseBody($  body);         return $  returnCode;     }      public function getHeader()     {         return $  this->data['header'];     }      public function getBody()     {         return $  this->data['body'];     }      private function parseStatus($  str)     {         return true;     }      private function parseHeader($  str)     {         return true;     }      private function parseBody($  str)     {         $  str = mb_convert_encoding($  str, 'utf-8', 'sjis-win');         $  body = explode("\r\n", $  str);         $  headers = [];          foreach ($  body as $  line) {             if(preg_match('/_html/', $  line)) {                 $  pos = strpos($  str, '_html');                 $  length  = strlen($  str);                 $  html = substr($  str, $  pos, $  length);                 list($  key, $  value) = explode('=', $  html, 2);                 list($  key2, $  value2) = explode('=', $  line, 2);                 $  this->data['body'][$  key2] = $  value;                 break;             } else {                 if(preg_match('/=/', $  line)) {                     list($  key, $  value) = explode('=', $  line, 2);                     $  this->data['body'][$  key] = $  value;                 } else {                     $  line = preg_replace('/"/', '', $  line);                     $  lineArray = explode(',', $  line);                     if(strlen($  line) == 0) {                         continue;                     }                      if($  lineArray[0] == 2) {                         $  headers = $  lineArray;                         continue;                     }                      if($  lineArray[0] == 3) {                         $  row = [];                         foreach($  lineArray as $  key => $  field) {                             if($  key == 0) {                                 continue;                             }                             $  row[$  headers[$  key]] = $  field;                         }                          $  this->data['body'][] = $  row;                     }                 }             }         }          return true;     }  } 

Massive window I can’t reduce in size – how to alter the “Program supplied minimum size”

I have a window (TortoiseHg) that whenever I open it is massive and I can’t reduce the size. I know about Alt-drag and I can (eventually) get to the edge, but I can’t reduce the size. If I run xwininfo -all the information includes:

xwininfo: Window id: 0x7200005 "TortoiseHg Workbench"    Root window id: 0x192 (the root window) (has no name)   Parent window id: 0x111e83a (has no name)      1 child:      0x720000e (has no name): ()  1x1+-1+-1  +4271+546    Absolute upper-left X:  4272   Absolute upper-left Y:  547   Relative upper-left X:  1   Relative upper-left Y:  28   Width: 16383   Height: 16383   Depth: 24   Visual: 0x139   Visual Class: TrueColor   Border width: 0   Class: InputOutput   Colormap: 0x7200004 (not installed)   Bit Gravity State: NorthWestGravity   Window Gravity State: NorthWestGravity   Backing Store State: NotUseful   Save Under State: no   Map State: IsViewable   Override Redirect State: no   Corners:  +4272+547  --15135+547  --15135--15850  +4272--15850   -geometry 16383x16383+4272+547    ...    Normal window size hints:       Program supplied minimum size: 16383 by 16383       Program supplied window gravity: StaticGravity   No zoom window size hints defined    No window shape defined   No border shape defined 

In particular this line:

      Program supplied minimum size: 16383 by 16383 

I have tried:

  • removing ~/.config/TortoiseHg/ and re-running
  • searching for files in ~/.cache/ or ~/.local/share/ for something that might cause this
  • searched dconf and gconf using this technique for any keys referring to thg or tortoise (case insensitive grep)
  • running with strace -f thg looking for files it is opening that might set the minimum size

But I have not found anything that tells me where the “Program supplied minimum size” might be coming from. Anyone know?

I’m using Ubuntu 18.04 with the Ubuntu Mate session, installed via the ubuntu-mate-desktop package. The system is a laptop with 2 extra monitors attached via a USB-C docking station. I have disabled HiDPI/scaling options.

Getting ARERR 149 A user name must be supplied in the control record

When I am trying to call a method in the soap web service , it is showing “ARERR [149] A user name must be supplied in the control record”.I tried using PHP as well as python but I am getting the same error.

I searched this error and got the information like this : “The name field of the ARControlStruct parameter is empty. Supply the name of an AR System user in this field.”.But nowhere I saw how to supply the user name parameter.

New PC supplied with cheap no-name DVD drive that won’t play

This question DVD : no medium found on /dev/sr0 when there is a DVD describes the problem perfectly.

I have libdvdcss2 installed:

adam@gondolin:~$   apt-cache show libdvdcss2 Package: libdvdcss2 Status: install ok installed Priority: optional Section: libs Installed-Size: 58 Maintainer: Dmitry Smirnov <onlyjob@debian.org> Architecture: amd64 Multi-Arch: same Source: libdvdcss Version: 1.4.2-1~local Replaces: libdvdcss-dev (<= 0.0.3-3), libdvdcss0 (<= 1.0.0-0.0), libdvdcss2-dev (<= 1.2.10-0.0) Provides: libdvdcss Depends: libdvd-pkg, libc6 (>= 2.7) Description: library for accessing encrypted DVDs  libdvdcss is a library for accessing and unscrambling DVDs encrypted  with the Content Scramble System (CSS).  libdvdcss is part of the VideoLAN project.  .  This package provides runtime libraries. Description-md5: b4dc268f8bf25f4d6f75457d311f45f1 Homepage: https://www.videolan.org/developers/libdvdcss.html  adam@gondolin:~$    

but still I couldn’t play anything on my new PC.

I then got the bright idea to plug in a USB DVD drive, and that played everything.

So is there anything I can do to get my cheap no-name DVD drive to work?

Invalid argument supplied for foreach() line 161 , Undefined variable line 166.167.168

me podrian ayudar a corregir este error

linea 161 <?php foreach ($  busqueda as $  b ) ?>    <tr> linea 166      <td><a href=player.php?aux1=<?php echo ($  b['aux1']); ?>><?php  echo $  b['Apodo'];?></a></td> linea 167     <td><a href=player.php?aux1=<?php echo ($  b['aux1']); ?>><?php  echo $  b['Nombre'];?></a></td> linea 168    <td><a href=player.php?aux1=<?php echo ($  b['aux1']); ?>><img  src="images/jugadores/<?php echo $  b['aux1']; ?>.jpg" width="65" height="106"  /></td>   </tr>