Jump to content

mstdmstdd

Members
  • Content Count

    105
  • Joined

  • Last visited

Everything posted by mstdmstdd

  1. Hello all. Could you please to look at layout of the Bootstrap 4.1 page: http://demo2.nilov-sergey-demo-apps.tk/admin/warehouses/2/edit It is under credentials admin@demo.com 111111 I made menu at left side by some sample(it must be hidden on small device). But with this left menu there are some features I would like to fix : 1) I need page content (blue border) to be centered and it is ruled by styles : .wrapper { display: flex; align-items: stretch; border: 2px dotted red; margin-right: auto; margin-left: auto; padding: 0 !important; } #page-wrapper { margin-right: 10px; margin-left: 10px; padding: 0 !important; width: 100% !important; border: 1px solid blue !important; align-content: center; } Looks like the reason is in props display and align-items of wrapper class, but when I tried to modify these values the left menu stopped working 2) Listing http://demo2.nilov-sergey-demo-apps.tk/admin/clients with many columns must be with horizontal scrolling, but instead scrolling of table with data with syntax <div class="table-responsive"> <div id="get-client-dt-listing-table_wrapper" class="dataTables_wrapper no-footer"> all page is moving by mouse move. Again I suspect that is because of left menu How to fix it ? Thanks!
  2. Hello, Reading this https://getbootstrap.com/docs/4.1/migration/#utilities docs I try in Bootsrap 4.1 app to show “Toggle Sidebar” button only on small and extrasmall devices, and I do <main> <div id="main_content"> <div class="d-md-none d-lg-none d-xl-none "> <nav class="navbar navbar-expand-lg navbar-light bg-light "> <div class="container-fluid"> <button type="button" id="sidebarCollapse" class="btn btn-info"> <i class="fa fa-align-left" style="color: white"></i> <span>Toggle Sidebar</span> </button> </div> </nav> </div> @yield('content') </div> </main> But it does not work for small devices : it is not visible, on all the rest devices works as expected I tried to add d-sm-block class : <div class="d-sm-block d-md-none d-lg-none d-xl-none "> But it does not work anyway... Which is the right way? Thanks!
  3. Hello, Can you advice me similar left side menu(left aligned, submenu items, collapsing on extra small devices) https://bootsnipp.com/snippets/featured/vertical-affix-menu-css-only but implemented in bootstrap 4.1 ? 2) Or can you say is it possible and what have I to do remake it to bootstrap 4.1 ? Thanks!
  4. Hello! With new task description my client wrote I suppose that is like scrolling on youtube ? When there is no pagination bar and scrolling down more data rows are retrieved? It was supposed to be laravel 5.7/jquery 3 project with using of https://datatables.yajrabox.com/ for listings. But seems this lib has no such functionality. Are there some compatible libraries with such functionality ? Thanks !
  5. Hello, I try to set ssl for my php/laravel application under Digital Ocean with Kubuntu 18 as in this articles https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 But I got error trying to use certbot to obtain a free SSL certificate : # sudo ufw status Status: active To Action From -- ------ ---- Apache Full ALLOW Anywhere 443 ALLOW Anywhere 80 ALLOW Anywhere 22/tcp ALLOW Anywhere Apache Full (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW Anywhere (v6) 22/tcp (v6) ALLOW Anywhere (v6) # sudo certbot --apache -d products-catalog.nilov-sergey-demo-apps.tk -d www.products-catalog.nilov-sergey-demo-apps.tk Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Obtaining a new certificate Performing the following challenges: http-01 challenge for products-catalog.nilov-sergey-demo-apps.tk http-01 challenge for www.products-catalog.nilov-sergey-demo-apps.tk Waiting for verification... Cleaning up challenges Failed authorization procedure. www.products-catalog.nilov-sergey-demo-apps.tk (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.products-catalog.nilov-sergey-demo-apps.tk IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.products-catalog.nilov-sergey-demo-apps.tk Type: None Detail: DNS problem: NXDOMAIN looking up A for www.products-catalog.nilov-sergey-demo-apps.tk products-catalog.nilov-sergey-demo-apps.tk - that is my domain I got on freenom.com and seaerch I found a hint that I need to add A-record for www subdomain I tried to add new record as preview But trying to sumbit this page I got: What is wrong ? Can new record be issue of my problem ? Or I need to move in other way ? Configuration in appache is : <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/lprods/public ServerName products-catalog.nilov-sergey-demo-apps.tk ServerAlias products-catalog.nilov-sergey-demo-apps.tk <Directory /var/www/html/lprods/public> AllowOverride All Order Deny,Allow Allow from all Require all granted </Directory> Options FollowSymLinks DirectoryIndex index.php ErrorLog /var/www/html/lprods/storage/logs/error.log CustomLog /var/www/html/lprods/storage/logs/access.log combined </VirtualHost> with line in /etc/hosts 138.68.107.5 products-catalog.nilov-sergey-demo-apps.tk Can it be issue with my problem ? Thanks!
  6. Hello, I installed videojs library as it is writtem at this example https://videojs.com/getting-started/#customize It works ok, and in backend be be uploaded and viewed on fronternd, but only for some video I tried to play For some video I try to upload and to show I got error message: The media could not be loaded, either because the server or network failed or because the format is not supported. Properties of this file: 1.Metr saves.avi General File: /_diskE_Media/__Archieve/2018-12-31/__DOCS/VIDEOS/1.Metr saves.avi Size: 47664 KB (46 MB) Length: 00:02:53 Demuxer: lavf Clip info Name: 1.Metr saves.avi Video Resolution: 720 x 400 Aspect ratio: 1.8 Format: mpeg4 Bitrate: 2227 kbps Frames per second: 23.976000 Selected codec: mpeg4 Initial Audio Stream Format: ac3 Bitrate: 448 kbps Rate: 48000 Hz Channels: 6 Selected codec: ac3 Audio Streams Track 0 Language: <undefined> Name: <undefined> ID: 1 Reviewing the videojs.com site I did not find any information about which format it supports. Actually I new very few about video formats. I know some extentions(like avi, mp4, mov etc...) and I know that with the same extention can be different formats. If there is a way to extend list of supported formats and a way during upload to get error if this format is not supported? Thanks! =
  7. It looks you are right, maybe that is server issue, at least with rather big files. Could you please to look at it online by https://www.votes.nilov-sergey-demo-apps.tk/admin/page-content/edit/1 (it has credentials) At the second tab “Images / Videos” there is possibility to upload images/videos. Now it has 4 videos uploaded, first 3 are ok for view but last 1.Metr_saves.avi has 46mb in size I suppose that is why I got error in JS console: video.js:142 VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. MediaError {code: 4, message: "The media could not be loaded, either because the …rk failed or because the format is not supported."} But I am not sure, at least I uploaded the file on my OS (ubuntu) That is laravel5/php7.2/apache2 app and in apache2 config I have options memory_limit 2048M upload_max_filesize 200M post_max_size 200M Could ypo please try to upload several video files of different type/size, set size for them and click save? If uploaded it would be accessible in listing below... Thanks! =
  8. Hello, I try to install microsoft fonts as it is written here https://www.ostechnix.com/install-microsoft-windows-fonts-ubuntu-16-04/ sudo apt install ttf-mscorefonts-installer and sudo fc-cache -f -v and even restarted the OS I thought that is all. and I see this package installed : https://imgur.com/a/s65iG1M But I do not see any additive fonts like Times, Courier I found directory /usr/share/fonts/truetype/msttcorefonts, but it is empty. Did I miss some steps ? Thanks!
  9. Hello, Installing laravel 5.7 app under docker(based on php:7.2-apache ) I need to use "/public" in my url to run my app, so root url of my app is http://127.0.0.1:8081/public I modified .env of my laravel app as APP_URL=http://127.0.0.1:8081/public/ But it did not help, as I browser I got image url : http://127.0.0.1:8081/storage/votes/-vote-16/Babe_ver1.jpg?dt=1546059015 which way is invalid, as valid way must be : http://127.0.0.1:8081/public/storage/votes/-vote-16/Babe_ver1.jpg?dt=1546059015 The similar way with ajax requests, as I got invalid ways : http://127.0.0.1:8081/admin/get_activity_log_rows/1 But valid must be http://127.0.0.1:8081/public/admin/get_activity_log_rows/1 In my docker-compose.yml : version: '3.1' services: web: build: context: ./web dockerfile: Dockerfile.yml environment: - APACHE_RUN_USER=www-data volumes: - ${APP_PATH_HOST}:${APP_PTH_CONTAINER} ports: - 8081:80 working_dir: ${APP_PTH_CONTAINER} composer: image: composer:1.8 volumes: - ${APP_PATH_HOST}:${APP_PTH_CONTAINER} working_dir: ${APP_PTH_CONTAINER} command: composer install and in .env of docker project : # PATHS DB_PATH_HOST=./databases APP_PATH_HOST=./Votes APP_PTH_CONTAINER=/var/www/html/ How to set root url of my site with “/public” ? Thanks!
  10. Hello, can you advice some simple in using app under kubuntu 18 for making of images with text like https://imgur.com/a/LHHmHj0 based ion some fine looking templates. Free. I use gimp, very few, main features, but seems it does not have similar functionality ? Thanks!
  11. Hello! I use https://videojs.com/ library in my laravel 5.7 / Blade / jquery /Bootsrap 4.1 app and the question is if there is a way to change width of loaded video depending on device to fit parent div for video block? This plugin give possibility to set width/height automatically (It is commented now in the code below) I tried to wrap the video block with div with set width(or max-width) : <div class="row"> <div class="block_container_internal"> {{--width="640" height="264"--}} <video id="video_page_content_{{ $nextPageContentVideo->id }}" class="video-js" controls preload="auto" poster="/images/video_poster.jpg" data-setup="{}"> <source src="{{ $next_video_url }}" type='video/mp4'> <source src="{{ $next_video_url }}" type='video/webm'> <p class="vjs-no-js"> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> </p> </video> </div> </div> in css of device : .block_container_internal { width: 390px !important; padding-right: 5px; padding-left: 5px; } but anyway video block get all width of the screen. I reviewed the docs on the site, but did not find any options I uploaded this problem online http://votes.nilov-sergey-demo-apps.tk/about Please look at ipad device : https://imgur.com/a/GPXm3gi As I do not want to show video at full possible with, I would like to change width of video container with wrapping div, but failed. Thanks!
  12. Could you, please, be more detailed? maybe with refs to similar example ? I know how to read width of the current device with viewport like that function getDevice() { var viewport = { width: $(window).width(), height: $(window).height() }; if (typeof param != "undefined") { if (param.toLowerCase() == 'width') { return viewport.width; } if (param.toLowerCase() == 'height') { return viewport.height; } } return viewport; } and depending on width of the device to set width of the video container with JS ... But that is good for width, but what with height. If there is no width/height set I can not set valid height parameters and it can not be any value like "auto"
  13. Could you, please, be more detailed? maybe with refs to similar example ?
  14. Hello, I have small docker(version: '3.1') project with laravel 5 app I have file .env where some path vars are set abd in docker-compose.yml these vars are set. Looks like .env is config file by default and I would like to change name of this config file, as my laravel app also has .env file and that raise some confusion in the project. If there is a way to rename .env of docker project and where such option can be set ? Thanks!
  15. mstdmstdd

    How to fix error setting SSL with certbot using?

    I made some more review and found next : IP of my server is 138.68.107.4 and under ssh I enter the console of OS as ssh root@138.68.107.4 But in my /etc/hosts file I had next lines pointing to some other hosts on this server: # 127.0.0.1 localhost 127.0.0.1 localhost.localdomain localhost 138.68.107.4 box.example.com box # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 138.68.107.4 votes.nilov-sergey-demo-apps.tk 138.68.107.5 products-catalog.nilov-sergey-demo-apps.tk 138.68.107.6 csvp.nilov-sergey-demo-apps.tk ... I modified 3 last lines as : 138.68.107.4 votes.nilov-sergey-demo-apps.tk 138.68.107.4 products-catalog.nilov-sergey-demo-apps.tk 138.68.107.4 csvp.nilov-sergey-demo-apps.tk But I still not sure is that is valid value, as I have next error again: # sudo certbot --apache -d products-catalog.nilov-sergey-demo-apps.tk -d www.products-catalog.nilov-sergey-demo-apps.tk Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Obtaining a new certificate Performing the following challenges: http-01 challenge for products-catalog.nilov-sergey-demo-apps.tk http-01 challenge for www.products-catalog.nilov-sergey-demo-apps.tk Waiting for verification... Cleaning up challenges Failed authorization procedure. www.products-catalog.nilov-sergey-demo-apps.tk (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.products-catalog.nilov-sergey-demo-apps.tk IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.products-catalog.nilov-sergey-demo-apps.tk Type: None Detail: DNS problem: NXDOMAIN looking up A for www.products-catalog.nilov-sergey-demo-apps.tk can reason of this error be in wrong IP in /etc/hosts or some other issue ?
  16. mstdmstdd

    free license key for jwplayer ?

    Hello, 1)as far as I remember jwplayer had free licence key some time ago? Is it now so? I am a web developer and free licence key for my app development is what I need now. 2)For my task I installed jwplayer , but ut was working during 1 day, after I got error invalid licence key 3) I tried to register at https://www.jwplayer.com/ but very strange, I opened “Sign In” Page, aftefr that I moved “Sign Up” Page but it has “Get Started” link only(it opens pricing page), no form for my credetials to enter ? 4) If there is a way to develop jwplayer in my php/laravel app ? Thanks!
  17. mstdmstdd

    How to fix error setting SSL with certbot using?

    Sorry I attached printscreen with my options and attempts to add new dns link Is it what I tried to do ? Why I got error ?
  18. Hello, In PhpStorm 2017.2.4 I use bookmarks and clicking shift+F11 I see my current bookmarks https://imgur.com/a/CerawOf when I try to clear this listing I can not delete many bookmarks, I do not see them on the bookmarked page at all. I suppose that bookmarked line was deleted/modified and this bookmark can not be selected/deleted. But I still see this bookmark by clicking shift+F11. If these is wa way to clear such bookmark? Thanks!
  19. Hello! Could you, please, to look at design of my site backend (it has credetials filled): http://votes.nilov-sergey-demo-apps.tk/login and frontend : http://votes.nilov-sergey-demo-apps.tk/home and say if it has some design problems/bugs(and if possible shortly say way to fix it). On different devices. That is my prior app remade with new version of laravel 5.7/Bootstrap 4.1 . I am more php developer, less html/bootsrap. I wanted more practice in html/bootsrap... Thanks!
  20. Hi, I try to use this https://www.sitepoint.com/displaying-youtube-videos-php article to use youtube video in my laravel 5 app , but reading it I found next : // .env APP_DEBUG=true app_name='Your app name (optional)' client_id='Your client id' client_secret='Your client secret' api_key='Your developer key' I suppose that client_id/client_secret parameters are this : https://imgur.com/a/9S7p7Rn Is it so? But I ma not sure what is last parameter ? api_key='Your developer key' Is it value I need to get somehwere in Google's Developer Console ? 1) I tried to find in Google's Developer Console and search in net, but failed... Where can I get it 2) If google has support, where I can ask them and waite for response at my email? Thanks!
  21. Hello, I want to set https for my hosting on ubuntu 18 under Digital Ocean as it is written here: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 But I had problems with ufw settings: # sudo ufw status Status: inactive root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw allow 'Apache' Rules updated Rules updated (v6) root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw status Status: inactive root@nsn-do-lamp:/etc/apache2/sites-available# sudo systemctl reload apache2 root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw status Status: inactive root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw allow 'Apache Full' Skipping adding existing rule Skipping adding existing rule (v6) root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw delete allow 'Apache' Rules updated Rules updated (v6) root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw status Status: inactive I see that status is inactive. I tried to make : # sudo ufw app list Available applications: Apache Apache Full Apache Secure OpenSSH root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw allow 'Apache' Rules updated Rules updated (v6) root@nsn-do-lamp:/etc/apache2/sites-available# sudo ufw status Status: inactive I think this error is critical and did not proceed with next commands. Why error and how to fix it ? Thanks!
  22. mstdmstdd

    I have error secure apache on Digital Ocean?

    Thank you! Command sudo ufw enable was helpfull But next I was asked : Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. ------------------------------------------------------------------------------- I suppose I have to select point 2) I want to set to my https site, but the thing is that I gave the url of my site with http protocol. Could it be a problem with old url?
  23. Hello, In my laravel 5.7 / Bootstrap app when in my Chromium Browser I open page with editor under iPad device https://imgur.com/a/D80JkBE I see that bottom of my page is not visible. You can see it by url Link Is it my html-layout problem ? I have no ipAd device to check live... Thanks! =
  24. Hello, In my Laravel 5.7 application I use laravel-jsvalidation plugin( https://github.com/proengsoft/laravel-jsvalidation/wiki/Basic-Usage ) and it worked ok, I needed to including textarea input as tinyMCE editor and to use i with validation and I implemented it with 2 textarea inputs : <div class="form-row mb-3 {{ in_array('description', $errorFieldsArray) ? 'validation_error' : '' }}"> <label class="col-xs-12 col-sm-4 col-form-label">Description</label> <div class="col-xs-12 col-sm-8"> <span style="display: inline;"> {{ Form::textarea('description', isset($vote->description) ? $vote->description : '', [ "class"=>"form-control editable_field textarea_input ", "rows"=>"0", "cols"=> 120, "id"=>"description", "autocomplete"=>"off", "style"=>"width:0; height:0" ] ) }} </span> {{ Form::textarea('description_container', isset($vote->description) ? $vote->description : '', [ "class"=>"form-control editable_field textarea_input ", "rows"=>"5", "cols"=> 120, "id"=>"description_container", "autocomplete"=>"off" ] ) }} </div> </div> where 1st textarea is for form submitting, as entered content is copied into it from 2nd textarea, which is used as tinyMCE editor. In tinyMCE definition I added rows: setup: function (editor) { editor.on('change', function () { var current_context= tinymce.get(by_selector_container).getContent() $('#' + by_selector).html( current_context ); }); }, where by_selector_container and by_selector are names of these textarea inputs. It works, but the only problem that on page I can see 1st textarea input, despite I try to hide it setting wight.width in 0 in style of my code above, but anyway I still see small textarea input, which I want to hide : https://imgur.com/a/43FRFJU I tried to usee css styles in declaration of the 1st textarea input to set "style"=>"display:none" Than textarea input was hidden, but validation does not work at all. How to hide it this small textarea input with validation working? Thanks!
  25. Hello! I have problem with access to adminer in my docker container with laravel 5/mysql app. I got error : In my docker-compose.yml : version: '3' services: votes_app: build: context: ./web dockerfile: Dockerfile.yml container_name: votes_app_container environment: - APACHE_RUN_USER=#1000 volumes: - ${APP_PATH_HOST}:${APP_PTH_CONTAINER} ports: - 8081:80 working_dir: ${APP_PTH_CONTAINER} db: image: mysql:5.6.41 restart: always environment: MYSQL_ROOT_PASSWORD: 1 volumes: - ${DB_PATH_HOST}:/var/lib/mysql adminer: image: adminer restart: always ports: - 8082:8080 links: - db votes_composer: image: composer:1.6 container_name: votes_composer_container volumes: - ${APP_PATH_HOST}:${APP_PTH_CONTAINER} working_dir: ${APP_PTH_CONTAINER} command: composer install --ignore-platform-reqs I rebuilded the app but I failed to login into adminer : https://imgur.com/a/JWVGfBA I run in console of my OS pointing to other unused 8089 port: $ docker run -p 8089:8080 -e ADMINER_DEFAULT_SERVER=db adminer PHP 7.2.11 Development Server started at Thu Nov 1 07:00:46 2018 [Thu Nov 1 07:01:11 2018] ::ffff:172.17.0.1:34048 [200]: / [Thu Nov 1 07:01:20 2018] ::ffff:172.17.0.1:34052 [302]: / [Thu Nov 1 07:01:21 2018] ::ffff:172.17.0.1:34060 [403]: /?server=db&username=root But again error logining to adminer to 8089 port, but the error message was different : https://imgur.com/a/a8qM4bt What is wrong ? Thanks!
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.