Dynamic media query

In WordPress how can I modify the media query screen size? Say if I have a customizer option for mobile size : 600px and the in CSS this value should change.

For javascript, there is wp_localize and similar functionality for CSS?

Please help

Using Dynamic Data Masking in SQL Server Custom String

I need to mask the data in the following table. enter image description here

For example, I need to mask the first_name of the user Roberto to something like NAME<>, So the end result should look like NAME1

Is this possible in SQL Server?

My SQL Server details below.

enter image description here

I have tried these methods from the documentation but still no luck. enter link description here

Fix dynamic color overlap (manipulate/animate)

I am making a Manipulate graphic that involves two points rotating on a circle with their trajectories being traced in two separate colors. Everything works fine until each point makes half a rotation, after which the color of the trajectory of the first point overwrites the overlapping trajectory of the second, but not vice versa. I am looking for a way to make it such that when blue catches up to the tail of red it begins to write over in blue and when red catches up to the tail of blue it begins to write over in red without simply hardcoding in ranges (in case I want to add more points in different spots). Ideally, I will be saving these as animations at some point.

Here is my code:

Manipulate[  Show[ParametricPlot[{{-Cos[x], -Sin[x]}, {Cos[x], Sin[x]}}, {x, 0,      a}, PlotRange -> {{-1.05, 1.05}, {-1.05, 1.05}},     PlotStyle -> {Red, Blue}, Ticks -> False],    ListPolarPlot[{{a, 1}}, PlotRange -> All,     PlotStyle -> PointSize[.05]],    ListPolarPlot[{{Pi + a, 1}}, PlotRange -> All,     PlotStyle -> {PointSize[.05], Red}]], {a, 0.01, 2*Pi}] 

Using dynamic tags within text

So I created some dynamic tags. After my Gravity Form is submitted it creates a post. The post has the contents of the dynamic tags listed under the body so this is all working fine. The question is, can I insert a dynamic tag within other text? For example, I have a dynamic tag called "author" and "publishing_date". In my body of text, I want to use the sentence "The book was written by {dynamic tag author} in {dynamic tag publishing_date}.

Use a custom page with dynamic content as a user profile page

I’m trying to create a website with fully customised user profile pages. I’ve created the page which uses dynamic content to pull user custom fields into it, this works fine to view your own profile however I want users to be able to view others profiles. Currently when you try to view another users profile obviously it just pulls in the logged in users info, not the profile you’re trying to view.

I realise this problem is overcome by using a profile builder plugin however i’ve tried many of these and they don’t allow you to fully customise the profile page as I need.

Is there a way to have a fully customised user profile page that can be viewed by others? Would using custom post types work for this?

One page with dynamic content

I have two types of pages.

  1. A page with a collection of items, for every one I want to add a link to watch a video
  2. A landing page for each video

I have many items in the page 1. I would like to have only one page of type 2 and somehow send parameters to that page, so it is dynamically generated.

The page 2 is very simple: It has a title and a shortcode to my video plugin. What I would like to change is the link inside the shortcode and the title

Page 2 body Title that should change


How to update indices for dynamic mesh in OpenGL?

So I am making a 3D batchrenderer for my engine, and the basic concept is that we make large enough VBO and IBO to accompany all the vertex data(positions, normals, uv etc.) and update the VBO using glMapBuffer or using glbuffersubdata everyframe if we want to make any changes, but in this case the pattern of the IBO (Index Buffer) is predefined (i.e. we assume we have quads and fill it with 012230 for the entirety of the IBO size) but when using 3D models this won’t be the case the IBOs data would be different, so how do I change the IBO data if I instantiate a new model or suppose if I am generating a UV sphere and want to change it’s subdivisions? I have no idea how to deal with dynamically changing(need not be frequent) indices data when using VAOs, VBOs and Index Buffers. afaik we cannot map the ELEMENT_ARRAY_BUFFER, and glDrawElements does accept a pointer to indices data but only when we are not using VAOs and VBOs, if we are using them it takes the last argument as a pointer offset in the currently bound ELEMENT_ARRAY_BUFFER. So what’s the best way to deal with dynamic indices?

Storing timeseries data with dynamic number of columns and rows to a suitable database

I have a timeseries pandas dataframe which dynamically increases the columns every minute as well as adds a new row:


timestamp                100     200     300 2020-11-01 12:00:00       4       3       5 

Next minute:

timestamp                100     200     300   500 2020-11-01 12:00:00       4       3       5     0 2020-11-01 12:01:00      14       3       5     4 

The dataframe has these updated values and so on every minute.

so ideally, I want to design a database solution that supports such a dynamic column structure. The number of columns could grow to over 20-30k+ and since it’s one minute timeseries, it will have 500k+ rows per year.

I’ve read that relational db’s have a limit on the number of columns so that might not work here, but also, since I am setting the data for new columns and assigning a default value(0) to previous timestamps, I lose out on the DEFAULT param that’s there on MySQL.

Eventually, I will be querying data for 1 day, 1 month to get the data for the columns and their values.

Please suggest a suitable database solution for this type of dynamic row and column data.

Check if NavMeshAgent can reach position with dynamic obstacles

I am currently checking if a position in the NavMesh is reachable. It is reachable without the NavMesh obstacles. But the moment I add it, NavMesh’s CalculatePath() continues to return true. Note that I do have those obstacles to have carving set to true. How do I solve this problem?

Reference: https://answers.unity.com/questions/1184356/how-to-know-if-a-navigationmeshagent-is-impossible.html