Задать вопрос
  • Как сделать фиксированную ширину таблицы datatables с одинаковой шириной колонок?

    asyaevloeva
    @asyaevloeva Автор вопроса
    iljaGolubev,
    html +=
          '<div class="minitable" style="display: table;">' +
            '<table class="indicator" id="'+classIndicatorDetails+'" style="display:inline-block;">' +
            '<thead>' +
            '</thead>' +
            '<tbody>' +
            '</tbody></table></div>';
  • Как сделать фиксированную ширину таблицы datatables с одинаковой шириной колонок?

    asyaevloeva
    @asyaevloeva Автор вопроса
    iljaGolubev,
    var miniTable = $("#classIndicatorDetails"+rowNumber).DataTable({
            data:
    dataset.map(d => {
            return Object.values(d)
            })
          ,
            columns: col_names,
            autoWidth: false,
            columnDefs: [{
              targets: '_all', width: "1%"
            }],
    
            ordering: false,
            searching: false,
            "bLengthChange" : false, 
            "bInfo":false,
            "bPaginate": false
    
            })


    это таблица внутри другой дататэйблз таблицы
  • Как сделать фиксированную ширину таблицы datatables с одинаковой шириной колонок?

    asyaevloeva
    @asyaevloeva Автор вопроса
    прописала это все, но ничего не изменилось
  • Как сделать чтобы настройки апача не сбрасывались?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Rsa97, добавила эту строку но не помогло. там еще такая ошибка:
    [Tue Sep 12 04:37:53.270277 2023] [ssl:warn] [pid 1963989:tid 140599218542464] AH01909: my.ip/:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Sep 12 04:37:53.270412 2023] [ssl:error] [pid 1963989:tid 140599218542464] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: O=Company,L=London,ST=Greater London,C=GB / issuer: O=Company,L=London,ST=Greater London,C=GB / serial: number / notbefore: Apr 12 12:44:32 2023 GMT / notafter: Apr 11 12:44:32 2024 GMT]
    [Tue Sep 12 04:37:53.270432 2023] [ssl:error] [pid 1963989:tid 140599218542464] AH02604: Unable to configure certificate my.ip/:443:0 for stapling
    [Tue Sep 12 04:37:53.293778 2023] [mpm_event:notice] [pid 1963991:tid 140599218542464] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 mod_wsgi/4.9.0 Python/3.10 configured -- resuming normal operations
  • Как сделать чтобы настройки апача не сбрасывались?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Rsa97,
    [Fri Sep 08 07:48:05.705512 2023] [wsgi:error] [pid 1749736:tid 140529450874432] [client 176.54.182.192:61781] ImportError: Interpreter change detected - this module can only be loaded into one interpreter per process., referer: https://mywebsite.com/
    [Fri Sep 08 07:48:17.413732 2023] [mpm_event:notice] [pid 1716516:tid 140529607231360] AH00492: caught SIGWINCH, shutting down gracefully
    [Fri Sep 08 07:48:20.773701 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716518 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:20.773766 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716519 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:20.773781 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749736 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:20.773791 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749737 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:22.775184 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716518 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:22.775267 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716519 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:22.775370 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749736 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:22.775385 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749737 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:24.777564 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716518 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:24.777634 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1716519 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:24.777646 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749736 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:24.777656 2023] [core:warn] [pid 1716516:tid 140529607231360] AH00045: child process 1749737 still did not exit, sending a SIGTERM
    [Fri Sep 08 07:48:26.779876 2023] [core:error] [pid 1716516:tid 140529607231360] AH00046: child process 1716518 still did not exit, sending a SIGKILL
    [Fri Sep 08 07:48:26.779943 2023] [core:error] [pid 1716516:tid 140529607231360] AH00046: child process 1716519 still did not exit, sending a SIGKILL
    [Fri Sep 08 07:48:26.779956 2023] [core:error] [pid 1716516:tid 140529607231360] AH00046: child process 1749736 still did not exit, sending a SIGKILL
    [Fri Sep 08 07:48:26.779968 2023] [core:error] [pid 1716516:tid 140529607231360] AH00046: child process 1749737 still did not exit, sending a SIGKILL
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Rise, да и node.js и js (так как скорее всего сайт будет на Nuxt.js )
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ипатьев, спасибо
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Rise, все рассчеты на бэкэнде
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Иерокопус Таманский, я привела пример - группировать данные по разным фичам и находить средние и другие значения

    тематика этих данных никак не влияет
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    заголовок получился кликбейтный потому что все описание вопроса туда не поместилось бы

    на js тоже спокойно можно обрабатывать значительные объемы данных (tensorflow js или чем-то попроще)

    поэтому и вопрос что быстрее будет работать
  • Что быстрее SQL или Javascript?

    asyaevloeva
    @asyaevloeva Автор вопроса
    сайт лежит на EC2 (то есть отдельно от базы данных на RDS), t2.large, количество vCPUs 2, вольюм 100, память 8
    подсчеты на sql/js на сервере которые потом будут передаваться на фронт через js
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    в общем проблема была в том что надо было добавить Inbound rules (для https для 443 порта) в ec2 конфиге
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    апач работает если я делаю такой конфиг /etc/apache2/sites-available/MyWebsite.conf но сайт не открывается через https

    <VirtualHost *:443>
            ServerName mydomain.com
    
            WSGIScriptAlias / /var/www/MyWebsite/MyWebsite.wsgi
            <Directory /var/www/MyWebsite/>
                Order allow,deny
                Allow from all
            </Directory>
            Alias /static /var/www/MyWebsite/app/static
            <Directory /var/www/MyWebsite/app/static/>
                Order allow,deny
                Allow from all
            </Directory>
            ErrorLog ${APACHE_LOG_DIR}/error.log
            LogLevel warn
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    
    
    
    SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
    </VirtualHost>


    curl https://mydomain.com
    curl: (28) Failed to connect to mydomain.com port 443 after 9983 ms: Operation timed out


    cat /etc/letsencrypt/options-ssl-apache.conf
    # This file contains important security parameters. If you modify this file
    # manually, Certbot will be unable to automatically provide future security
    # updates. Instead, Certbot will print and log an error message with a path to
    # the up-to-date file that you will need to refer to when manually updating
    # this file. Contents are based on https://ssl-config.mozilla.org
    
    SSLEngine on
    
    # Intermediate configuration, tweak to your needs
    SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
    SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
    SSLHonorCipherOrder     off
    SSLSessionTickets       off
    
    SSLOptions +StrictRequire
    
    # Add vhost name to log entries:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
    LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    CityCat4,
    SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
        
        SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
        
        SSLHonorCipherOrder On
        
        
        Header always set X-Frame-Options SAMEORIGIN
        
        Header always set X-Content-Type-Options nosniff
        
        # Requires Apache >= 2.4
        
        SSLCompression off
        
        SSLUseStapling on
        
        SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
        
        
        # Requires Apache >= 2.4.11
        
        SSLSessionTickets Off


    вот это у меня прописано

    а в /etc/apache2/sites-available/MyWebsite.conf когда я пытаюсь добавить ssl ключи:
    <VirtualHost *:443>
            ServerName mydomain.com
    
            WSGIScriptAlias / /var/www/MyWebsite/MyWebsite.wsgi
            <Directory /var/www/MyWebsite/>
                Order allow,deny
                Allow from all
            </Directory>
            Alias /static /var/www/MyWebsite/app/static
            <Directory /var/www/MyWebsite/app/static/>
                Order allow,deny
                Allow from all
            </Directory>
            ErrorLog ${APACHE_LOG_DIR}/error.log
            LogLevel warn
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    
    
    
    </VirtualHost>
    <VirtualHost *:443>
            DocumentRoot /var/www/MyWebsite
            ServerName mydomain.com
                    SSLEngine on
                    SSLCertificateFile /var/www/MyWebsite/c742471ced49aa7b.crt
                    SSLCertificateKeyFile /var/www/MyWebsite/c742471ced49aa7b.pem
                    SSLCertificateChainFile /var/www/MyWebsite/sf_bundle-g2-g1.crt
    </VirtualHost>


    то апач просто не запускается
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Drno,
    tcp6       0      0 :::80                   :::*                    LISTEN      4001732/apache2     
    tcp6       0      0 :::443                  :::*                    LISTEN      4001732/apache2

    и
    sudo ufw allow http
    Rule added
    Rule added (v6)
    sudo ufw allow https
    Rule added
    Rule added (v6)
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Drno, с сервера делаю curl mydomain.com и все работает (если делаю curl https://mydomain.com curl: (35) error:0A00010B:SSL routines::wrong version number), с пк curl mydomain.com выдает curl: (28) Failed to connect to mydomain.com port 80 after 75005 ms: Operation timed out
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    исправила *

    sudo certbot --apache
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Please enter the domain name(s) you would like on your certificate (comma and/or
    space separated) (Enter 'c' to cancel): mydomain.com
    Requesting a certificate for mydomain.com
    
    Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
      Domain: mydomain.com
      Type:   dns
      Detail: DNS problem: looking up A for mydomain.com: DNSSEC: RRSIGs Missing; DNS problem: looking up AAAA for mydomain.com: DNSSEC: RRSIGs Missing
    
    Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
    
    Some challenges have failed.
    Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    нужно ли это прописывать в конфиге моего сайта, если то же самое прописано в /etc/apache2/conf-available/ssl-params.conf ?
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Drno, я подождала уже много часов но ничего не изменилось
  • Как настроить конфиг апача с SSL?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Drno, эта ошибка выпадает при наличии обеих А и АААА записей добавленных. причем https://toolbox.googleapps.com/ показывает что А и АААА записи есть