Category: Χωρίς κατηγορία

  • bluedio T7 language reset

    Bluedio T7 is nice until it defaults to a language you don’t get. Manual does not say much about switching languages. Search engines didn’t helped either. What we did is try several combinations and we were lucky by simultaneously pressing [+] [-] [play] and the so called “multi function” button. Press everything at the same time a couple of times and you’ll end up in english or any other supported language you want.

    By the way, Bluedio T7 is good for listening music and audio in general, noise canceling does a nice job, battery duration is at acceptable levels, even 1 year after first purchase. It’s also equipped with a mic but it’s far from perfect: the other party thinks like sound comes from a loudspeaker. T7 sensor auto stops music when you wear off headphones – when you get used to it proves to be a great feature.

  • reveal wifi password on windows 10

    If your user profile has administrative privileges, open command prompt and type:

    netsh wlan show profile name="nice hotspot" key=clear
  • how to solve freepbx upgrade failed: Class ‘Whoops\Util\TemplateHelper’ not found

    Although freepbx upgade processes are typically well designed and tested, there might be specific configurations in some installations that could lead into failures. One of these failures occured into one of our freepbx 12 installations while we were upgrading it into version 13 of freepbx. We’ve initiated the upgrade process from the freepbx web gui and clicked-skipped the typical upgrade steps where step 3 reported the fatal error:

    Submitting data to servers...Done
    Running checks...Passed
    <strong>Stage 1</strong>
    Bumping FreePBX to version 13...Done
    Checking online servers...Done
    Downloading 13 Framework......Done
    Installing 13 Framework...ERROR: Try running this manually on the CLI to finish: 'amportal &amp;&amp; fwconsole ma upgradeall'

    We note that before-installation-checks haven’t reported any warnings.

    We’ve directly logged in via ssh and ran the suggested:

    amportal && fwconsole ma upgradeall

    which also failed.

    Thanks to Class ‘Whoops\Util\TemplateHelper’ not found – General Help – FreePBX Community Forums we’ve followed the spartan suggestion of tm1000 Andrew Nagy to run

    fwconsole --fix_zend

    And it worked!

    The explanation was that there was an old zend module breaking the upgrade process and –fix_zend solved the problem.

    Hope this works for you too.

  • composer update: mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory

    proc_open(): fork failed errors#

    If composer shows proc_open() fork failed on some commands:

    PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar

    This could be happening because the VPS runs out of memory and has no Swap space enabled.

    free -m
    
    total used free shared buffers cached
    Mem: 2048 357 1690 0 0 237
    -/+ buffers/cache: 119 1928
    Swap: 0 0 0

    To enable the swap you can use for example:

    /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
    /sbin/mkswap /var/swap.1
    /sbin/swapon /var/swap.1

    You can make a permanent swap file following this tutorial.

    Please check also this article: https://getcomposer.org/doc/articles/troubleshooting.md

  • npm to add sb-admin-2 to laravel

    First of all make sure you have node.js installed. If you haven’t so, install it:

    https://nodejs.org/en/

    Change directory to your laravel project and use npm to install sb-admin-2 like this:

    npm install --global startbootstrap-sb-admin-2

    If it compains for popper or other packages, use npm again to install them, like this:

    npm install --global popper

    Now, the tricky part for most people new to this:

    Go to laravel path

    resources/sass/app.scss

    Add this import:

    @import "~startbootstrap-sb-admin-2/scss/sb-admin-2.scss";

    Don’t forget to:

    npm install 
    npm run dev

    Now change your app.blade.php with html markup from sb-admin-2, save and refresh your browser: you will end up with sb-admin-2 powerful laravel installation.

  • existing code to bitbucket (git)

    Let’s assume you ‘ve got setup a small project locally and it’s time to add it to bitbucket.

    All you need to know is: https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html

    There are a couple of details though that could make your life difficult if you don’t pay the proper attention:

    • Bitbucket. Login to your bitbucket account, create a repo (but pay attention!) without adding any READMEs, nor GITIGNOREs. Repo must be empty, otherwise *push* will fail. Now, use clone button top-right corner && copy https version of the URL.
    • Locally. Open your prompt to your project directory.
    git init
    git add --all
    git commit -m "Initial Commit"
    git remote add origin {{copied_url}} 
    git push -u origin master

    Done!

  • xampp + php + curl + ssl = fatal_error

    If you use xampp with php and curl you might encounter an error like this:

    Fatal error: Uncaught exception 'HttpClientException' with message 'cURL Error: SSL certificate problem: unable to get local issuer certificate' in HttpClient.php

    If this is the case the solution is easy:

    1. Download cacert.pem from official curl page https://curl.haxx.se/docs/caextract.html
    2. Copy cacert.pem to c:\xampp\cacert.pem (assuming your xampp installation resides on c:\xampp)
    3. Make sure mod_ssl in enabled on apache (assuming your apache configurations are lying on C:\xampp\apache\conf). Open httpd.conf and make sure line LoadModule ssl_module modules/mod_ssl.so is not commented. Comments are prefixed with #. Disable comment simply by removing #.
    4. Now open php.ini (assuming php.ini is C:\xampp\php). Proportionally to the apache config, locate line extension=php_openssl.dll, remove comment (by deleting #). Make sure you have php_openssl.dll in C:\xampp\php\ext although there’s no reason not have it, I guess if this is the case, you should check the whole xampp installation.
    5. Stay a little bit on php.ini and add the following entries:
      curl.cainfo="C:/xampp/cacert.pem"
      openssl.cafile="C:/xampp/cacert.pem"

      Make sure the paths are correct according to what you have determined in step 1.

    6. This is not required, but if you like keep things tidy in php.ini, move curl.cainfo and openssl.cafile to the proper sections of the php.ini  [curl] and [openssl] respectively.
    7. Restart apache, otherwise your changes won’t have any effect. Reload your page and the error should have been removed.

    I hope you’ve found this useful.

     

     

  • how to configure dkim on zimbra

    Just type the following:


    su - zimbra
    /opt/zimbra/libexec/zmdkimkeyutil -a -d example.com

    Then add the output to a txt record in your dns config.

    Check your configuration using this link:

    https://mxtoolbox.com/dkim.aspx

  • install certbot on ubuntu 16.04

    On Ubuntu systems, the Certbot team maintains a PPA. Once you add it to your list of repositories all you’ll need to do is apt-get the following packages.

    $ sudo apt-get update
    $ sudo apt-get install software-properties-common
    $ sudo add-apt-repository ppa:certbot/certbot
    $ sudo apt-get update
    $ sudo apt-get install python-certbot-apache

    Reference: https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_PPAs