mstdmstd
Members-
Posts
48 -
Joined
-
Last visited
Everything posted by mstdmstd
-
Why images uploaded on imgur.com service are dead?
mstdmstd replied to mstdmstd's topic in Miscellaneous
Thanks for the link. Please, do not be angry if you consider that my question was post in wrong forum. In many cases it is better to ask about some service from people who have exp[erence of working with it, instead from official support. I wrote to official support and got answer: To reload them I need to review all my priorly works and reload images again - a lot of work. Are there some other similar services which DO NOT DELETE uploaded images? From personal expierence, please. -
Hello, Who use imgur.com service ? I found that making description of my work less 2 years ago , among 4 links https://imgur.com/a/fnCHGBZ https://imgur.com/a/tHdV1C7 https://imgur.com/a/Xm8qUjK https://imgur.com/a/RT9K4Cw only 2 are available, but 2 are dead. Why so? If there is a way to restore dead links ? Thanks!
-
In source version of the site I foun file plugin.php with AdminerPlugin class implementation. I moved this file under plugins directory. In plugins/login-password-less.php I added reference to plugins/plugin.php file and added debugging info : <?php /** Enable login for password-less database * @link https://www.adminer.org/plugins/#use * @author Jakub Vrana, https://www.vrana.cz/ * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) */ include_once "./plugins/plugin.php"; class AdminerLoginPasswordLess { /** @access protected */ var $password_hash; /** Set allowed password * @param string result of password_hash */ function __construct($password_hash) { $this->password_hash = $password_hash; debToFile('-2 AdminerLoginPasswordLess->__construct:$this->password_hash::'.$this->password_hash); // That is debugging method appending string into text file } function credentials() { $password = get_password(); debToFile('-3 AdminerLoginPasswordLess->credentials:$password::'.$password); // That is debugging method appending string into text file return array(SERVER, $_GET["username"], (password_verify($password, $this->password_hash) ? "" : $password)); } function login($login, $password) { debToFile('-4 AdminerLoginPasswordLess->login:$login::'.$login); if ($password != "") { debToFile('-5 TRUE AdminerLoginPasswordLess->login:$login::'.$login); // That is debugging method appending string into text file return true; } debToFile('-5 false AdminerLoginPasswordLess->login:$login::'.$login); } } and in adminer.php I added debugging line: $plugins = array( new AdminerLoginPasswordLess(hash("md5", 'm8y2s8q&L')), ); debToFile('-1After:AdminerLoginPasswordLess'); I loggin file I see: <pre>::-2 AdminerLoginPasswordLess->__construct:$this->password_hash::c61d49aaab35ca428e60d764ff05159d</pre> <pre>::-1After:AdminerLoginPasswordLess</pre> It means that methods credentials and login of AdminerLoginPasswordLess class are not triggered. I run in browser as : http://local-adminer.com/?username=mysql_login_user or http://local-adminer.com // host in apache config and I have no errors, but I still have to enter password for mysql_login_user. Did I miss some options/plugins?
-
Hello, I want to use adminer without password. I uploaded adminer-4.7.7-en.php file and finding login-password-less plugin I create file plugins/login-password-less.php with content : <?php /** Enable login for password-less database * @link https://www.adminer.org/plugins/#use * @author Jakub Vrana, https://www.vrana.cz/ * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) */ class AdminerLoginPasswordLess { /** @access protected */ var $password_hash; /** Set allowed password * @param string result of password_hash */ function __construct($password_hash) { $this->password_hash = $password_hash; } function credentials() { $password = get_password(); return array(SERVER, $_GET["username"], (password_verify($password, $this->password_hash) ? "" : $password)); } function login($login, $password) { if ($password != "") { return true; } } } and reading https://www.adminer.org/plugins/#use I created file adminer.php, which is located in one dir with adminer-4.7.7-en.php and I created new apache host pointed at this file. <?php function adminer_object() { // required to run any plugin include_once "./plugins/login-password-less.php"; // autoloader foreach (glob("plugins/*.php") as $filename) { include_once "./$filename"; } $plugins = array( // specify enabled plugins here new AdminerLoginPasswordLess(hash("md5", 'my_sql_user_password')), //Is the selected "md5" method valid ? ); return new AdminerPlugin($plugins); // I am not sure which class is it and where it is defined ? } // include original Adminer or Adminer Editor include "./adminer-4.7.7-en.php"; // encoded file I uploaded ?> But I got error : Fatal error: Uncaught Error: Class 'AdminerPlugin' not found in /mnt/_work_sdb8/wwwroot/lar/local_adminer/adminer.php:32 Stack trace: #0 /mnt/_work_sdb8/wwwroot/lar/local_adminer/adminer-4.7.7-en.php(1654): adminer_object() #1 /mnt/_work_sdb8/wwwroot/lar/local_adminer/adminer.php(36): include('/mnt/_work_sdb8...') #2 {main} thrown in /mnt/_work_sdb8/wwwroot/lar/local_adminer/adminer.php on line 32 Which class AdminerPlugin is it and where it is defined ? How to fix this issue? Thanks!
-
Upgrade php to 7.3 I see 7.2 in my browser
mstdmstd replied to mstdmstd's topic in Apache HTTP Server
I need 7.3, -
Hello, Looking at this https://www.cloudbooklet.com/how-to-install-php-7-3-on-ubuntu-18-04/ article I try to upgrade php to 7.3 on my local Ubuntu 18 But after I run command: sudo apt install php7.3 restyarting the OS I see in the console : $ php -v PHP 7.3.20-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul 9 2020 16:34:09) ( NTS ) But phpinfo in the browser shows me PHP Version 7.2 : PHP Version 7.2.24-0ubuntu0.18.04.6 System Linux athoe 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 Build Date May 26 2020 13:09:11 Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php/7.2/apache2 Loaded Configuration File /etc/php/7.2/apache2/php.ini Scan this dir for additional .ini files /etc/php/7.2/apache2/conf.d also I failed to open file : sudo nano /etc/php/7.3/apache2/php.ini as directory /etc/php/7.3/apache2 was not found and checking the system I see : root@athoe:/etc/php# ls -la total 24 drwxr-xr-x 4 root root 4096 ����� 1 17:33 . drwxr-xr-x 156 root root 12288 ����� 1 17:33 .. drwxr-xr-x 5 root root 4096 ����� 5 2019 7.2 drwxr-xr-x 5 root root 4096 ����� 1 17:33 7.3 root@athoe:/etc/php# cd 7.2 root@athoe:/etc/php/7.2# ls -la total 20 drwxr-xr-x 5 root root 4096 5 2019 . drwxr-xr-x 4 root root 4096 1 17:33 .. drwxr-xr-x 3 root root 4096 4 18:22 apache2 drwxr-xr-x 3 root root 4096 3 10:01 cli drwxr-xr-x 2 root root 409613 2020 mods-available root@athoe:/etc/php/7.2# cd ../ root@athoe:/etc/php# cd 7.3 root@athoe:/etc/php/7.3# ls -la total 20 drwxr-xr-x 5 root root 4096 1 17:33 . drwxr-xr-x 4 root root 4096 1 17:33 .. drwxr-xr-x 3 root root 4096 1 17:33 cli drwxr-xr-x 4 root root 4096 1 17:33 fpm drwxr-xr-x 2 root root 4096 1 17:33 mods-available I tried to run: sudo a2dismod php7.2 sudo a2enmod php7.3 But I got error: Module php7.2 disabled. To activate the new configuration, you need to run: systemctl restart apache2 root@athoe:/mnt/_work_sdb8/wwwroot/lar/hostels3# sudo a2enmod php7.3 ERROR: Module php7.3 does not exist! What did I miss in my setup ? Thanks!
-
Hello, I need some tool to generate my blade/bootstrap 4.1 code(laravel 5) into pdf with support of flexbox and css class definitions I tried spipu/html2pdf 5.2, but I did not find how it supports css class definitions... Can you advice some? With link to flexbox and css class definitions. Also I need a feature if resulting page has more 1 page to define header and footer on any page. Thanks!
-
Hello, in my laravel 5.7 / blade / jquery 3.4.1 app I need to make selection by click on image https://prnt.sc/susohe but clicking on this image I want to have selection Also I in this image need to show priorly selected item it is was selected items like https://prnt.sc/suspnc That must be not modal dialog for all the page or just selection input. Can you advice some pluging or script? Thanks!
-
shipsCRUD is not a function error if put js file in webpack.mix.js
mstdmstd replied to mstdmstd's topic in Javascript Help
I got a hint and in the end of the resources/js/pages/ship.js I added line : window.shipsCRUD = shipsCRUD; It fixed my error, but now I got a console error : Uncaught TypeError: this.ShipsLoad is not a function Method ShipsLoad is defined in the same resources/js/pages/ship.js file: let frontend_home_url let this_id let this_csrf_token function shipsCRUD(page, paramsArray) { // constructor of backend Ship's editor - set all from referring page and from server frontend_home_url = paramsArray.frontend_home_url; this_dataTablesLengthMenuArray = paramsArray.dataTablesLengthMenuArray; this_csrf_token = paramsArray.csrf_token; if (page == "edit") { this_id = paramsArray.id; } if (page == "list") { this.ShipsLoad() // I CALL this.ShipsLoad $(".dataTables_filter").css("display", "none") $(".dataTables_info").css("display", "none") } } // function shipsCRUD(Params) { constructor of backend Ship's editor - set all from referring page and from server shipsCRUD.prototype.onCRUDPageInit = function (page) { // all vars/objects init initCRUD() } // shipsCRUD.prototype.onCRUDPageInit= function(page) { shipsCRUD.prototype.runSearch = function (oTable) { oTable.draw(); } shipsCRUD.prototype.ShipsLoad = function () { // ShipsLoad DEFINITION oTable = $('#get-ship-dt-listing-table').DataTable({ processing: true, ... }); // oTable = $('#get-ship-dt-listing-table').DataTable({ } Actually ship.js has several methods, which I call from blade tamplate or from the other methods of ship.js file. Which is correct way of ShipsLoad definition and calling ? -
Hello, In my laravel 6 app I use js files which I attach in in blade file resources/views/ship/index.blade.php like : @endsection @section('scripts') <link rel="stylesheet" href="{{ asset('/css/jquery.dataTables.min.css') }}" type="text/css"> <script src="{{ asset('js/jquery.dataTables.min.js') }}"></script> <script src="{{ asset('js/mustache.min.js') }}"></script> <script src="{{ asset('js/pages/ship.js') }}"></script> <script> /*<![CDATA[*/ var oTable jQuery(document).ready(function ($) { var shipsCRUD = shipsCRUD('list', // must be called before jQuery(document).ready(function ($) { <?php echo $appParamsForJSArray ?> ); shipsCRUD.onCRUDPageInit('list') }); /*]]>*/ </script> @endsection and that worked ok for me when I put js/pages/ship.js file under /public/ directory. Having in resources/js/pages/ship.js : let frontend_home_url let this_id let this_csrf_token function shipsCRUD(page, paramsArray) { // constructor of backend Ship's editor - set all from referring page and from server frontend_home_url = paramsArray.frontend_home_url; this_dataTablesLengthMenuArray = paramsArray.dataTablesLengthMenuArray; this_csrf_token = paramsArray.csrf_token; if (page == "edit") { this_id = paramsArray.id; } if (page == "list") { this.ShipsLoad() $(".dataTables_filter").css("display", "none") $(".dataTables_info").css("display", "none") } } // function shipsCRUD(Params) { constructor of backend Ship's editor - set all from referring page and from server shipsCRUD.prototype.onCRUDPageInit = function (page) { // all vars/objects init initCRUD() } // shipsCRUD.prototype.onCRUDPageInit= function(page) { But I have got a hint that it is a wrong way to have editable file under /public/ and I put file ship.js as resources/js/pages/ship.js and I added 1 line in webpack.mix.js : mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') ... .js('resources/js/pages/trip-details.js', 'public/js/pages') .js('resources/js/pages/ship.js', 'public/js/pages') and running command : npm run watch-poll I have a file moved at /public/js/pages/ship.js with content : /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 4); /******/ }) /************************************************************************/ /******/ ({ /***/ "./resources/js/pages/ship.js": /*!************************************!*\ !*** ./resources/js/pages/ship.js ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports) { var frontend_home_url; var this_id; var this_csrf_token; function shipsCRUD(page, paramsArray) { // constructor of backend Ship's editor - set all from referring page and from server // console.log('paramsArray::') // console.log(paramsArray) frontend_home_url = paramsArray.frontend_home_url; this_dataTablesLengthMenuArray = paramsArray.dataTablesLengthMenuArray; this_csrf_token = paramsArray.csrf_token; if (page == "edit") { this_id = paramsArray.id; } if (page == "list") { this.ShipsLoad(); $(".dataTables_filter").css("display", "none"); $(".dataTables_info").css("display", "none"); } } // function shipsCRUD(Params) { constructor of backend Ship's editor - set all from referring page and from server shipsCRUD.prototype.onCRUDPageInit = function (page) { // all vars/objects init initCRUD(); }; // shipsCRUD.prototype.onCRUDPageInit= function(page) { ... But in in console I got error : app.js:73188 Uncaught TypeError: shipsCRUD is not a function at HTMLDocument.<anonymous> (ships:429) at mightThrow (app.js:72895) at process (app.js:72963) 1) Why I got error in this way and how to fix it ? 2) Also could you please advice a proper way to publish jquery.dataTables.min.css/js files? If I want to avoid putting them under /public/, which is valid way? Thanks!
-
Thanks for your hint ! I got a ref to v-money from v-money github page and made this http://jsfiddle.net/oxqv7bwt/1/ fiddle. But validating data I always see success validation, event with negative default value : I added console in positive_price rule definition, but I do not see this output... Please, take a look why positive_price is not triggered. The sense of this fiddle is just to run positive_price custom rule.
-
Could, you please give a link to this docs?
-
Hello, I need to make jsfiddle with vuejs, vee-validate and v-money libs, and when I need to add some js lib to jsfiddle I open https://cdnjs.com/ and search lirary I need and found lib I attach in jsfiddle. But on https://cdnjs.com/ entering “v-money” it did not show any results. If there is a way to create a jsfiddle(or maybe some other similar service) with v-money lib? Thanks!
-
Hello, On registration on one of sites I got a question for confirmation : Can you explain who/what is the answer? Thanks!
-
I got DNS_PROBE_FINISHED_NXDOMAIN from my apps
mstdmstd replied to mstdmstd's topic in Miscellaneous
I tried today and again have same errors. Is it problem with my provider ? Today week end and they do notwork. Can you open my site ? could you please provide a printscreen of what you see at https://www.whatsmydns.net/#CNAME/votes.my-demo-apps.tk ? -
Hello, I encountered that my several aplications (installed on ubuntu 16 on digital Ocean and domains are created in freenom.com) are unavailable and returns DNS_PROBE_FINISHED_NXDOMAIN error like running https://www.votes.my-demo-apps.tk/ I got : This site can’t be reached www.votes.my-demo-apps.tk’s server IP address could not be found. DNS_PROBE_FINISHED_NXDOMAIN I see line inhttps://my.freenom.com/ when I created dns domsain with subdomain : https://prnt.sc/qdyp5l Running whatsmydns service https://www.whatsmydns.net/#CNAME/votes.my-demo-apps.tk I see that my subdomain is available in maybe half of centers, but not all. Could you please to chacke it from your side ? I am located in Ukraine. Which steps have I to take to check reason of error ? Thanks!
-
Yes, you are right : sizes are different. I fixed the issue. Could you, please, take a look at legend layout at page http://vtasks.my-demo-apps.tk/public_profile/3 I aded borders for fieldset, but with border legend text is striked out : https://prnt.sc/qat40d and I did not find how to fix it...
-
I suppose from Bootstrap 4. Are they different? Actually I used browsers default devices for testing? Do you mean that for Bootstrap 3 and Bootstrap 4 sizes are different ?
-
2) I suppose : small grid (≥ 768px) = .col-sm-*, medium grid (≥ 992px) = .col-md-*, large grid (≥ 1200px) = .col-lg-*. and is it related with problem I have ?
-
I provided a printscreen with device selected at top : ipad : 768*1024. Did you see it ? I expected content be in 1 column. Why in 2 columns ?
-
Hello, Could you please look at design of http://vtasks.my-demo-apps.tk/ site In my vue/cli 4 / Bootstrap 4.3 app I make listing of tasks in 1 column on small devices(ipad-s) and 2 columns on big devices, like : <div class="row " v-show="tasks.length && is_page_loaded"> <div v-for="(nextActiveTask, index) in tasks" :key="nextActiveTask.id" class="col-sm-12 col-md-6 p-2 m-0"> <task-list-item :currentLoggedUser="currentLoggedUser" :nextActiveTask="nextActiveTask" :index="index" :is_show_location="true" ></task-list-item> </div> </div> But testing different devices with Chrome, Chromium I see 2 colums on ipad: https://imgur.com/a/QEfcHdi and I do not see why. Is it error in my design? Problems with browsers ? Thanks!
-
In PhpStorm to support PSR-2 rules
mstdmstd replied to mstdmstd's topic in PHP Installation and Configuration
Thanks! Also In my projects I use blade,vue, javascript . 1) Do they have PSR2 format utility or maybe something similar it? 2) Are there some tools not refomat code, but show me errors not inside PSR2 ? -
Hello, I have PhpStorm 2019.2.3 and wonder if it some plugin/tools to keep my php/html/vue/js code within PSR-2 rules ? Thanks!