CDN module: wrong settings broke my site

I installed the cdn module from:

https://www.drupal.org/project/cdn

and in the UI i setted a wrong cdn path.

now my site is broken it can load css and js. end i cannot disable the module from the UI.

i have admin access at the server but i cant figure out how to disable cdn, there is a cdn,settings.yml but it seems that the option isnt there.

i cant find any documentation for the module… can you please help me?

settings – How can I prevent my soft keyboard from changing for different input types?

I would like to disable the soft keyboard mode (gboard) for inputType=textUri on my Pixel 4a, and fall back on the default text keyboard mode.

Coming from a much older version of Android which supported fewer inputTypes, I am finding it difficult to adjust to these similar-yet-subtly-different soft keyboards. In particular, the uri mode is causing problems for me, as mobile browsers tend to use it in their top url/search bar. This causes me problems because punctuation commonly used for logic in search, such as “, +, -, :, !, etc, are removed from their usual location (on my keyboard, behind the period), and replaced with shortcuts for common top level domains.

I would like my keyboard to always be the same, or at least, I would like to disable some of the input modes that are similar enough to be confusing.

I understand that this input type feature may not be intended to be configurable.
Still, I would appreciate any advice that can be offered.

settings – Is it possible to get finer volume control on a rooted Lenovo M8 tab (HTC Sense UI)?

There’s a popular mod to get finer volume control on a device by adding the property ro.config.media_vol_steps to /system/etc/prop.default (android 10) and assigning your prefered steps value, ie ‘= 30‘ but on my device this results in multiple volume ranges divisible by 15.
Apparently this affects the HTC UI sense as well.

For example if I assign the value 37 to the above property (I do get 37 steps) but when I test by playing something on spotify and increase volume using the buttons I get:

step 0 = mute

step 15 = max volume

step 16 = mute

step 30 = max volume

step 31 = mute

step 37 = volume 6

Anything below 15 works as expected.
The same happens if you’ve rooted with Magisk and do it via prop editor or any other editor.

I’ve been trying to find a solution for this for months with no success hence up the creek with no paddle.

I have coding abilities but for me X86 assembly is easier than than understanding the various tool chains / libraries / compilers required to debug an Android device.

I would like to at least know where in the architecture I should be focusing on.

  • Is it vendor or system related?

  • A persistent setting?

  • Is the setting pre compiled so would need custom ROM ie a library file change (.so)
    I beleive it must be solvable just hoped I could get at least a hypothetical view of the problem from someone more familiar with the source of Android!

You can get fine volume control from the GUI (swipe down) how can this be mapped to Volume up / Volume down?

PS: I should mention I don’t have TWRP as it’s not available for this device.

I can now add that installing EdXposed framework along with GravityBox (version Q) also results in the same problem! The modded code above is not found in the prop.default file even tho I have the same broken functionality, same with magisk modules.

Seems Xposed / gravityBox / magisk are the most powerful tools available to developers for stock software. Im sure there are experts out there that could build a custom software with a simple volume control patch for this device so guess we’ll just have to wait. Thanks

c++ – Creating an external tool to edit Unreal project optimization settings

INTRO

I am creating a C++ app that will help users to set up optimization settings in the Unreal game engine. I want to let the program make all this work on its own. This application is being written for Windows 10 platform (maybe it will be cross-platform in the future).


PROBLEM DESCRIPTION

To make the program working as intended, I must be able to change configuration files, add some UE objects to the project and call editor functions (e.g. rebuild lights).


MY SOLUTION

I can parse some of the .ini files and edit them. However, the real problem is with UE objects and editor functions. One of the possible ways is to get symbols from the .dll and run that function in a separate process. Another way is to use the actual UE4 code for these tasks.


QUESTION

Is there any easier and safer way to achieve what I need?

ms office – Word for Mac – Missing Documents in file locations settings – cannot set default folder for saving documents

Q: How to set the default folder for saving a Word document when the option is missing in File Locations?

I want to set the default path or folder for saving Word documents. However when opening Settings and clicking on File Locations there is no option to set a folder for Documents. It is missing and I cannot add it. Logging in as an admin doesn’t change it.

missing Documents option in File Location settings

mysql – What’s wrong in my database settings?

I have a database set up for the application where there are quite a lot of queries. The base isn’t working fast enough. Apart from sql, I don’t have much knowledge of databases. My first idea is to use two databases to increase the query speed. Here is the measurement from mysqltunner:

-------- Performance Metrics -----------------------------------------------------------------------
(--) Up for: 4h 52m 54s (2M q (137.143 qps), 536 conn, TX: 76G, RX: 919M)
(--) Reads / Writes: 99% / 1%
(--) Binary logging is disabled
(--) Physical Memory     : 57.6G
(--) Max MySQL memory    : 3.2G
(--) Other process memory: 0B
(--) Total buffers: 432.0M global + 18.9M per thread (151 max threads)
(--) P_S Max memory usage: 0B
(--) Galera GCache Max memory usage: 0B
(OK) Maximum reached memory usage: 1.4G (2.37% of installed RAM)
(OK) Maximum possible memory usage: 3.2G (5.57% of installed RAM)
(OK) Overall possible memory usage with other process is compatible with memory available
(OK) Slow queries: 0% (594/2M)
(OK) Highest usage of available connections: 33% (51/151)
(OK) Aborted connections: 0.00%  (0/536)
(!!) name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
(!!) Query cache may be disabled by default due to mutex contention.
(OK) Query cache efficiency: 47.0% (2M cached / 4M selects)
(!!) Query cache prunes per day: 368333
(OK) No Sort requiring temporary tables
(OK) No joins without indexes
(!!) Temporary tables created on disk: 37% (61 on disk / 163 total)
(OK) Thread cache hit rate: 88% (60 created / 536 connections)
(OK) Table cache hit rate: 94% (96 open / 102 opened)
(OK) table_definition_cache(400) is upper than number of tables(209)
(OK) Open file limit used: 0% (52/16K)
(OK) Table locks acquired immediately: 100% (121 immediate / 121 locks)
 
-------- Performance schema ------------------------------------------------------------------------
(--) Performance schema is disabled.
(--) Memory used by P_S: 0B
(--) Sys schema isn't installed.
 
-------- ThreadPool Metrics ------------------------------------------------------------------------
(--) ThreadPool stat is enabled.
(--) Thread Pool Size: 64 thread(s).
(--) Using default value is good enough for your version (10.5.8-MariaDB-3)
 
-------- MyISAM Metrics ----------------------------------------------------------------------------
(!!) Key buffer used: 18.2% (24M used / 134M cache)
(!!) Cannot calculate MyISAM index size - re-run script as root user
 
-------- InnoDB Metrics ----------------------------------------------------------------------------
(--) InnoDB is enabled.
(--) InnoDB Thread Concurrency: 0
(OK) InnoDB File per table is activated
(!!) InnoDB buffer pool / data size: 128.0M/3.1G
(!!) Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 96.0M * 1/128.0M should be equal to 25%
(--) Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
(OK) Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
(OK) InnoDB Read buffer efficiency: 90.07% (18208648512 hits/ 20216989371 total)
(!!) InnoDB Write Log efficiency: 66.71% (37627 hits/ 56408 total)
(OK) InnoDB log waits: 0.00% (0 waits / 18781 writes)
 
-------- AriaDB Metrics ----------------------------------------------------------------------------
(--) AriaDB is enabled.
(OK) Aria pagecache size / total Aria indexes: 128.0M/328.0K
(!!) Aria pagecache hit rate: 89.9% (731 cached / 74 reads)
 
-------- TokuDB Metrics ----------------------------------------------------------------------------
(--) TokuDB is disabled.
 
-------- XtraDB Metrics ----------------------------------------------------------------------------
(--) XtraDB is disabled.
 
-------- Galera Metrics ----------------------------------------------------------------------------
(--) Galera is disabled.
 
-------- Replication Metrics -----------------------------------------------------------------------
(--) Galera Synchronous replication: NO
(--) No replication slave(s) for this server.
(--) Binlog format: MIXED
(--) XA support enabled: ON
(--) Semi synchronous replication Master: OFF
(--) Semi synchronous replication Slave: OFF
(--) This is a standalone server
 
-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
    Control warning line(s) into /var/log/mysql/error.log file
    Control error line(s) into /var/log/mysql/error.log file
    Run OPTIMIZE TABLE to defragment tables for better performance
      OPTIMIZE TABLE `server_db`.`AdvertisementsDuplicate`; -- can free 5685 MB
    Total freed space after theses OPTIMIZE TABLE : 5685 Mb
    Set up a Secure Password for mariadb.sys@localhost user: SET PASSWORD FOR 'mariadb.sys'@'SpecificDNSorIp' = PASSWORD('secure_password');
    Set up a Secure Password for monitor@localhost user: SET PASSWORD FOR 'monitor'@'SpecificDNSorIp' = PASSWORD('secure_password');
    Restrict Host for 'admin'@% to admin@SpecificDNSorIp
    UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='admin' AND host ='%'; FLUSH PRIVILEGES;
    Restrict Host for 'maik'@% to maik@SpecificDNSorIp
    UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='maik' AND host ='%'; FLUSH PRIVILEGES;
    MySQL was started within the last 24 hours - recommendations may be inaccurate
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Performance schema should be activated for better diagnostics
    Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
    Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
    Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
Variables to adjust:
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_size (> 16M)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    performance_schema = ON enable PFS
    innodb_buffer_pool_size (>= 3.1G) if possible.
    innodb_log_file_size should be (=32M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.

As I mentioned, I don’t know much about db, warning point messages don’t tell me much. There is some way to speed up the current database, or I should create a second one and split queries between them?

algorithms – Finding distinct pairs in geometric settings

Suppose there are $n$ points $p_1,p_2,…,p_n$ with color red or blue on a line. We want to find all pairs $(p_i,p_j)$ their color is distinct and there are no points between theme. If there are $k$ pairs with described design an algorithm with $O(nlog k)$ that use idea divide and pruning.

I think if we check all point we can solve this problem , but running time is not $O(nlog k)$.

I think for solving this problem we can use the duality that present in this page

But i get stuck to solve my problem. any help be appreciated.