Numeric: Efficient Creation of an Interpolation Matrix

I would like to know if there is a quick way to create the following matrix (note that the matrix is ​​defined with arbitrary precision):

MinPrecision=100;
t1 = AbsoluteTime();
If(ny == nyt,
  Miy = IdentityMatrix(ny + 1)
  ,
  ct(j_) := If(j == 0 || j == nyt, 2, 1);
  Cm = Table(
    N(2/(nyt ct(j) ct(i)) Cos((i j (Pi))/nyt), $MinPrecision), {i, 0,
      nyt}, {j, 0, nyt});
  Cm = If(ny - nyt == 0, Cm, 
    Flatten(Join({Cm, ConstantArray(0, {ny - nyt, nyt + 1})}), 1));
  CIm = Table(
    N(Cos((i j (Pi))/ny), $MinPrecision), {i, 0, ny}, {j, 0, ny});
  Miy = CIm.Cm;
  Clear(ct, Cm, CIm);
  Print(" Delta t= ", AbsoluteTime() - t1);
  Clear(t1)
  );

This matrix is ​​necessary to interpolate (by matrix multiplication) a function f(x) defined on a Chebyshev grid with nyt points, on a Chebyshev grid with ny points with nyt>ny.

c ++: CMake and GLFW creation problem

I am trying to configure my CMake build to compile all the provider libraries I am using.
I almost have everything working, but I wanted to make the last upgrade and get all my provider submodules out of the main source folder. After updating the paths in CMakeLists.txt, I can't run CMake successfully, every time I finish with such log:

D:WorkspacesVisual Studio 2017ProjectsESTree_testESTree>cmake -G "Visual Studio 14 Win64"
-- The C compiler identification is MSVC 19.0.24231.0
-- The CXX compiler identification is MSVC 19.0.24231.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Using Win32 for window creation
CMAKE_EXE_LINKER_FLAGS_DEBUG=/INCREMENTAL:NO /debug /INCREMENTAL
-- Found OpenGL: opengl32
OPENGL FOUND
glu32opengl32
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- No Doxygen found. Documentation won't be built
-- Found GTestSrc: D:/Workspaces/Visual Studio 2017/Projects/ESTree_test/ESTree
-- Using Win32 for window creation
CMake Error at Vendor/glfw/src/CMakeLists.txt:2 (add_library):
  add_library cannot create target "glfw" because another target with the
  same name already exists.  The existing target is a static library created
  in source directory "D:/Workspaces/Visual Studio
  2017/Projects/ESTree_test/ESTree/Vendor/glfw/src".  See documentation for
  policy CMP0002 for more details.


CMake Error at Vendor/glfw/src/CMakeLists.txt:101 (target_link_libraries):
  Attempt to add link library "Threads::Threads" to target "glfw" which is
  not built in this directory.


CMake Error at Vendor/glfw/src/CMakeLists.txt:173 (install):
  install TARGETS given target "glfw" which does not exist in this directory.


CMAKE_EXE_LINKER_FLAGS_DEBUG=/INCREMENTAL:NO /debug /INCREMENTAL
OPENGL FOUND
glu32opengl32
CMake Warning (dev) at Vendor/bullet3/src/Bullet3OpenCL/CMakeLists.txt:43 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/Bullet3Serialize/Bullet2FileLoader/CMakeLists.txt:26 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/Bullet3Dynamics/CMakeLists.txt:32 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/Bullet3Collision/CMakeLists.txt:60 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/Bullet3Geometry/CMakeLists.txt:18 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/BulletInverseDynamics/CMakeLists.txt:32 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/BulletSoftBody/CMakeLists.txt:68 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/BulletCollision/CMakeLists.txt:256 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/BulletDynamics/CMakeLists.txt:139 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/LinearMath/CMakeLists.txt:54 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Vendor/bullet3/src/Bullet3Common/CMakeLists.txt:37 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at Vendor/rapidjson/CMakeLists.txt:144 (add_custom_target):
  add_custom_target cannot create target "travis_doc" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory "D:/Workspaces/Visual Studio
  2017/Projects/ESTree_test/ESTree/Vendor/rapidjson".  See documentation for
  policy CMP0002 for more details.


CMake Warning (dev) at Vendor/rapidjson/CMakeLists.txt:145 (add_custom_command):
  Policy CMP0040 is not set: The target in the TARGET signature of
  add_custom_command() must exist.  Run "cmake --help-policy CMP0040" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  TARGET 'travis_doc' was not created in this directory.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:63 (add_executable):
  add_executable cannot create target "ESTree" because another target with
  the same name already exists.  The existing target is an executable created
  in source directory "D:/Workspaces/Visual Studio
  2017/Projects/ESTree_test/ESTree".  See documentation for policy CMP0002
  for more details.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "glfw" to target "ESTree" which is not built in
  this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "BulletDynamics" to target "ESTree" which is
  not built in this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "BulletCollision" to target "ESTree" which is
  not built in this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "LinearMath" to target "ESTree" which is not
  built in this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "freetype" to target "ESTree" which is not
  built in this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "libboost_date_time-vc140-mt-gd-x64-1_72" to
  target "ESTree" which is not built in this directory.


CMake Error at CMakeLists.txt:65 (target_link_libraries):
  Attempt to add link library "libboost_thread-vc140-mt-gd-x64-1_72" to
  target "ESTree" which is not built in this directory.


-- Configuring incomplete, errors occurred!
See also "D:/Workspaces/Visual Studio 2017/Projects/ESTree_test/ESTree/CMakeFiles/CMakeOutput.log".
See also "D:/Workspaces/Visual Studio 2017/Projects/ESTree_test/ESTree/CMakeFiles/CMakeError.log".

This is how my CMakeLists.txt look now:

cmake_minimum_required(VERSION 3.0)
project(ESTree)

option(GLFW_BUILD_DOCS OFF)
option(GLFW_BUILD_EXAMPLES OFF)
option(GLFW_BUILD_TESTS OFF)
add_subdirectory(Vendor/glfw)

option(BUILD_BULLET2_DEMOS OFF)
option(BUILD_CPU_DEMOS OFF)
option(BUILD_EXTRAS OFF)
option(BUILD_OPENGL3_DEMOS OFF)
option(BUILD_UNIT_TESTS OFF)
add_subdirectory(Vendor/bullet3)

set(RAPIDJSON_BUILD_DOC OFF)
set(RAPIDJSON_BUILD_EXAMPLES OFF)
set(RAPIDJSON_BUILD_TESTS OFF)
set(RAPIDJSON_BUILD_THIRDPARTY_GTEST OFF)
add_subdirectory(Vendor/rapidjson)

link_directories($ENV{FREETYPE2_LIB}/Libs/)
link_directories($ENV{BOOST_LIB}/Libs/)

if(MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -std=c++11")
    if(NOT WIN32)
        set(GLAD_LIBRARIES dl)
    endif()
endif()

include_directories(ESEngine/
                    Vendor/bullet3/src/
                    Vendor/glad/include/
                    Vendor/glfw/include/
                    Vendor/glm/
                    Vendor/stb/
                    Vendor/rapidjson/include/
                    $ENV{BOOST_LIB}/Includes/
                    Vendor/freetype2/include/)

file(GLOB PROJECT_CONFIGS CMakeLists.txt
                          Readme.md
                         .gitattributes
                         .gitignore
                         .gitmodules)

file(GLOB VENDOR_SOURCES Vendor/glad/src/glad.c)

file(GLOB_RECURSE SOURCE_LIST ESEngine/*.cpp ESEngine/*.h ESEngine/*.hpp ESEngine/*.c Resources/*.comp Resources/*.frag Resources/*.geom Resources/*.vert Resources/*.json)
foreach(_source IN ITEMS ${SOURCE_LIST})
    get_filename_component(_source_path "${_source}" PATH)
    string(REPLACE "${CMAKE_SOURCE_DIR}" "" _group_path "${_source_path}")
    string(REPLACE "/" "\" _group_path "${_group_path}")
    source_group("${_group_path}" FILES "${_source}")
endforeach()
source_group("Vendor" FILES ${VENDOR_SOURCES})

add_definitions(-DGLFW_INCLUDE_NONE
                -DPROJECT_SOURCE_DIR="ESEngine")
add_executable(${PROJECT_NAME} ${SOURCE_LIST}
                    ${PROJECT_CONFIGS}  ${VENDOR_SOURCES})
target_link_libraries(${PROJECT_NAME} glfw ${GLFW_LIBRARIES} ${GLAD_LIBRARIES}
                      BulletDynamics BulletCollision LinearMath freetype
                      libboost_date_time-vc140-mt-gd-x64-1_72 libboost_thread-vc140-mt-gd-x64-1_72
)
set_target_properties(${PROJECT_NAME} PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

The only change I made here is to move the seller from ENEngine to the root directory of my project.
The error message is pretty obvious: somewhere I have a duplicate of glfw target. I have little experience with CMake and to be honest I have no idea how to solve this: everything works fine when the provider is in ENEngine Vendor but I would really like to separate them.
Maybe someone more experienced can give me a hint on how I can make this happen?

xml – How to create CV / CV templates for CV creation app on Android?

I am creating a CV / CV creation app for Android. I took all the necessary user input. Now I am trying to figure out what is the best way to create multiple templates where user can select any template from the list and can create their CV / CV as a PDF file.

Right now I have two ways on my mind to build the multiple templates.

First, I can create multiple XML design files for templates, and then convert them to PDF when a user chooses. The challenge with this approach is that I can't put those files in the app build, I have to remotely store them on a server and dynamically extract files when needed.
Why can't I store in the app? Well, I don't want any dependencies to provide an app update as long as a new template is available, and at the same time I don't want to make my app bulky by storing hundreds of templates in the build.

Secondly, I can use HTML files instead of XML, and I can use the same approach I mentioned earlier. In this case, I have to parse HTML files and somehow dynamically set data on that. I'm not sure about this approach because I don't have much experience dealing with HTML.

Suggest what is the best approach to do this (Obviously, your approach may be different than above).

Thanks in advance!

VPN connection creation window does not work

The following window is not displayed

Hi Team,

When i tried to create new VPN connection but somehow that windows is not appearing.

Please find below details,
System: Ubuntu 16.04

Do let me know if you required more information.
Thanks in advanced.

character creation: what are the drawbacks to this variable summoning power?

I'm just wandering with Mutants and Master Minds 3e again and I had an idea for a magical user. my thought was that they would take a spell book that they would refer to to prepare their casts for the day (like Pioneer or Dungeons and Dragons), resulting in a device that had a variable array focused on creating triggered powers. If they didn't prepare ahead of time, or left some "slots" free for flexibility, they'd have to burn a round or two (depending on the reading) to reference power on the field before doing anything else.

My problem revolves around variable invocation powers; There are a number of things I'm not sure about how expensive it would be, as well as some other details.

Firstly, Is this possible? the activated bonus indicates that it should be an instant duration effect and I'm not sure if there was any way to modify the invocation to fit or if this was something I needed GM approval for.

And in second place, Are there any drawbacks I'm missing? What happens with Variable is that it is a sustained effect, which can mean that the powers that I am accumulating over me are under the same limitations. Would this mean that I would lose all my prepared spells if I couldn't perform a free action?

character creation: what are the drawbacks to this variable summoning power?

I'm just wandering with Mutants and Master Minds 3e again and I had an idea for a magical user. my thought was that they would take a spell book that they would refer to to prepare their casts for the day (like Pioneer or Dungeons and Dragons), resulting in a device that had a variable array focused on creating triggered powers. If they didn't prepare ahead of time, or left some "slots" free for flexibility, they'd have to burn a round or two (depending on the reading) to reference power on the field before doing anything else.

My problem revolves around variable invocation powers; There are a number of things I'm not sure about how expensive it would be, as well as some other details.

Firstly, Is this possible? the activated bonus indicates that it must be an instant duration effect and I'm not sure if there was any way to modify the invocation to fit or if it was something I needed GM approval for.

And in second place, Are there any drawbacks I'm missing? What happens with Variable is that it is a sustained effect, which can mean that the powers that I am accumulating over me are under the same limitations. Would this mean that I would lose all my prepared spells if I couldn't take free action?

Buy: daily email template creation

I need someone who is adept at html / css and has the imagination to create 2-3 sentence content for emails (around the financial subject) and a subject line every day.

It is totally acceptable to provide different modifications of premade templates such as https://beefree.io/templates/. All you need is a little modification of the appearance and content (2-3 sentences, about 20-30 words, not much)

You will start paying at the rate of $ 3 for 2 templates per day, once you get the idea of ​​what I need and start providing satisfactory templates without my guide, you will start paying $ 5 for 2 templates per day.

This is an ongoing project and I need to do it every day. The job is very easy once you get on the rails, it's mainly copy and paste.

please just send me a PM, I will not read this thread.
SEMrush

web application: identity and abuse in the creation of software around anonymity

I am developing a new application (web + mobile) that is based on anonymity and requires a large audience to be interesting. People will be in direct contact with each other (one by one), but initially they would not know anything about themselves. It can be seen as a kind of game with scope to real life and people.

Optimally, I would like to allow anyone to use the application without restrictions. Ask them for basic information, such as the language they speak and where they are, and then let them roam. On the other hand, I want users of the app to take its purpose seriously and not abuse it for their agenda / spam to annoy legitimate users. I still don't know if it will be a real problem or not.

Identity verification

Since the app is based on anonymity, I find it strange to ask people to sign up for an account right away. My goal is to allow you to continue using the same device anonymously. Later, when they want to use more devices, they can sign up to keep the account.

Not to mention that any type of registration with email or social providers is a difficult method of identification. For persistence purposes, it is sufficient.

Probably the closest to the identity of the person today is a mobile phone. I can send a single text message with code just to verify they own it and keep that phone number in some database and block access if someone else tries to use the same number on a different device. Burner phones make it a bit difficult, but I like to think that not everyone lives in American spy movies 🙂

Here comes my first question. Is requesting a phone number considered part of a bad user experience? Especially when it's kind of an experimental app. Could you alienate potentially "good" people? Of course, an explanation of the reasons would be necessary, but that is probably difficult to achieve in a discreet manner.

Identity by payment

The application will generally not be free. I'm still not decided on the specific monetization model. Ideas are primarily based on a one-time or credit-like fee to spend with use.

Either way, paying for something seems to establish a kind of person identity. I'm not talking about the credit card number, it's probably too easy to get another one (less easy than email or FB account). I like to think that if a user decides to pay, they really want to use the application. Of course, some people may find the app a good platform for their type of agenda and pay as well, so it's far from the definitive solution.

However, the problem of paying before you can try the service could be a motivation to never try it. That especially applies to one-time payments. It would require a clearly defined money back guarantee for a limited time. With the credit solution, it is probably better if they can get the money out of the wallet.

Another problem is that it would require credit card payment and you would have to opt out of receiving modern methods like PayPal, BitCoin, PaySafeCard and the like as they are too easy to duplicate. That's just a weird aspect considering the anonymity focus of the app.

So the next question. Could you request a payment immediately considered better than asking for a mobile phone number?

Combination of both?

In conclusion, both methods can have an apparent impact on conversions, and either method is bulletproof. Would it make any sense to allow the user to choose the preferred method? I mean they will have to pay sometime anyway, but if I can verify them with phone numbers and declare some kind of person identity, then I can provide a free trial before they have to pay. Could this approach be useful?

Sale – Creation of the Adsense Authority website

Embed

HTML:

BBCode:

Link picture:

User Centered Design: What is a simple web-based technology for collage creation and annotation?

I want to create a small / simple medium that works for a content creator and consumer like so:

    Role: Creator
    1. The user would log into the site and create a canvas
    2. the user would upload images and associate them to the canvas
    3. the user would place the images on the canvas
    4. the user would write text snippets and associate them to the canvas
    5. the user would draw regions on the canvas and associate text snippets to them

Example of use:
Joe uploads photos of the kids and pets on a family trip, tagging everyone with age names.

    Role: Viewer
    1.  The user would follow a link to see the canvas within a main frame and smaller side or bottom region for text
    2. The viewer would draw the canvas and all used images on top of it
    3. The viewer would draw some indication of the regions
    4. If the region is clicked the associated text is loaded into the other panel/frame
    5. If the mouse wheel is scrolled over the canvas the entire view will zoom in/out (or pinch on mobile/tablet)

Ideally, I would also like to be able to draw links between elements.

I have experience with programming but not with web design, so I don't know what would be the easiest way to do it. If you could do it with a small amount of java script, for example. I'm looking to do something standalone, preferably from scratch, probably XML to store the content model.

Please note this is not for the website to create photo collages, it is just a convenient metaphor.

Please help,

Thank you.

PS this is my first UX stack post: I checked https://ux.stackexchange.com/help but found no problem with my question …