How to graph acceleration from an equation given a sample period?

I am unfamiliar with Mathematica and the necessary syntax to approach visualize acceleration over time. I would appreciate some assistance or reference to a starting point on how to go about solving this problem. Please note that I have never used Mathematica before.

I am writing some game code that handles a third-person camera rotation that increases in speed over time (acceleration) as the left or right directional buttons are held down.

I am currently polling the directional button once every t milliseconds where sampling begins at the base and increases linearly every 100ms by a delta towards a maximum sampling rate.

So, for example (in microseconds):

TurnAccelMin = 10000.0 TurnAccelMax = 2000.0 TurnDelta = 1000.0 

Note that acceleration is based on the sample rate so a lower maximum results in more samples over time. Even though sampling is in milliseconds, acceleration is stored as microseconds to account for a finer delta.

I would like to graph this so that I can visually see how the delta affects the acceleration over time. While I can picture in my mind the linear acceleration, I want to graph this so that I can visualize how different kinds of acceleration (exponential, quadratic, etc.) affect acceleration over a sample period.

How can I graph this as a line given these values as an equation?

Currently (as linear), where x = Time between 0 and 5 seconds and y = Acceleration in milliseconds.

Ideally I would like to see a graph of points, each connected by a straight line, as well as a table of values for each point when it is polled.

Name an application to stream audio (from files and/or mic) from pc to multiple android devices

I was working on a project to make mini radio for kids. We will be in a place with no service so streaming audio over internet is not an option. So I brought 3 routers and connected them together and I want to stream audio from my pc over the wifi network. in short I need the receivers to type an IP in the application to receive my stream.

p.s. I found a great app called soundwire, it does stream audio from an app on pc over the LAN to android devices; however, it can stream to only one device. I need to stream to more than 35 devices.

Magento 2 – Enabling Flat Catalog causes SQL error. Reading from “report” tables

When I enable the flat catalog in my Magento 2.2.5 installation, I get an error.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.name' in 'field list', query was: SELECT COUNT(report_table_views.event_id) AS `views`, `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `e`.`name`, `e`.`short_description`, `e`.`price`, `e`.`special_price`, `e`.`special_from_date`, `e`.`special_to_date`, `e`.`weight`, `e`.`image`, `e`.`small_image`, `e`.`thumbnail`, `e`.`color`, `e`.`color_value`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`required_options`, `e`.`image_label`, `e`.`small_image_label`, `e`.`thumbnail_label`, `e`.`price_type`, `e`.`weight_type`, `e`.`price_view`, `e`.`msrp`, `e`.`msrp_display_actual_price_type`, `e`.`url_key`, `e`.`links_purchased_separately`, `e`.`links_exist`, `e`.`tax_class_id`, `e`.`swatch_image`, `e`.`list_price`, `e`.`supplier_code`, `e`.`apparel_size`, `e`.`apparel_size_value`, `e`.`apparel_occasion`, `e`.`apparel_occasion_value`, `e`.`apparel_style`, `e`.`apparel_style_value`, `e`.`apparel_gender`, `e`.`apparel_gender_value`, `e`.`material`, `e`.`material_value`, `e`.`exh_size`, `e`.`exh_size_value`, `e`.`exh_adapter`, `e`.`exh_adapter_value`, `e`.`karmak_pn`, `e`.`freight_free`, `e`.`free_shipping`, `e`.`backorder_shipping_message`, `e`.`brands`, `e`.`brands_value`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`stock_status` AS `is_salable` FROM `report_event` AS `report_table_views`  INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = report_table_views.object_id  INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0  INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='1' AND cat_index.visibility IN(2, 4) AND cat_index.category_id='2'  LEFT JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 WHERE (report_table_views.event_type_id = 1) AND (logged_at >= '2018-08-13') AND (logged_at <= '2019-01-20') GROUP BY `e`.`entity_id` HAVING (COUNT(report_table_views.event_id) > 0) ORDER BY `views` DESC  LIMIT 12 

It looks like Magento is trying to read from report_event table and other “report” tables which seems odd for catalog data.

Any ideas on why this error is happening? Do I need certain settings turned on for each attribute? Any help is appreciated, thank you!

Recovering the bimodule from the trivial extension

Given a ring $ S$ with an $ S$ -bimodule $ M$ , the trivial extension of $ (S,M)$ is defined as the ring $ R:=T_M(S)$ with $ R= S \oplus M$ with multiplication $ (s,m)(s’,m’)=(s s’, sm’ +m s’)$ . We then have that $ M$ is an $ T_S(M)$ -ideal and $ S \cong T_M(S)/M$ . Thus we can recover $ S$ from $ T_S(M)$ as soon as we know $ M$ as an $ T_S(M)$ -bimodule.

Call $ T_S(M)$ unique in case $ T_S(M) \cong T_{S’}(M’)$ implies $ S \cong S’$ and $ M \cong M’$ .

Question 1: Is there a nice criterion when a trivial extension $ T_S(M)$ is unique?

I am mostly interested in the following special case: Let $ A$ be a finite dimensional algebra over a field $ K$ and $ D(A)=Hom_K(A,K)$ . Let $ T(A):=T_{D(A)}(A)$ , which is a symmetric Frobenius algebra with twice the vector space dimension of $ A$ .

Question 2: Given $ A$ , is there a nice a way that when the trivial extension algebra $ R=T(A)$ is given, one gets all two-sided ideals $ I_i$ (as right modules and/or bimodules) of $ R$ such that $ R/I_i \cong A_i$ for an algebra $ A_i$ such that $ R \cong T(A_i)$ ? Especially: When is $ T(A)$ unique as a trivial extension (meaning $ T(A) \cong T(A’)$ implies $ A \cong A’$ )?

For example for any field $ K$ , the ring $ K[x]/(x^2)$ is unique as a trivial extension. More generally, I wonder whether the trival extensions of local finite dimensional algebra are unique as trivial extensions.

Note that all ideals $ I_i$ would have the same vector space dimension. Are they related in a nice way, which could mean that in case you have one $ I_i$ the other $ I_j$ can be obtained from the one $ I_i$ by a certain operation?

Is there a way to find all such ideals $ I_i$ (as right $ T(A)$ -modules) as in question 2 with the GAP-package QPA for a given algebra $ A$ ? Note that knowledge as right $ T(A)$ -modules would be enough since then one can recover the $ A_i$ as $ A_i \cong End_{T(A)}(T(A)/I_i)$ .

how can the UI code of a product be kept a step away from the customers cutomisation?

im a UI deleloper for an educational product. How can the UI code of a product be kept a step away from the customers cutomisation? Now i m keeping the product branch and client’s brach seperalty. But its really a headache to when its comes to issue fiexes.. need to update in all branches. Is any techinique to keep the product branch seperatly and client will overlide the customisations using webpack or any other technique.

Hibernate – Fetch from database according to language

I have an MVC app which is aimed to be internationalized. I have a table MY_TABLE containing a field word that I would like to translate in several languages. I created the following model:

CREATE TABLE MY_TABLE(     id int PRIMARY KEY,     -- other fields that don't need to be translated ); CREATE TABLE LANGUAGE(     id VARCHAR(4) PRIMARY KEY -- eg en ); CREATE TABLE MY_TABLE_WORD_TRANSLATION(     id int PRIMARY KEY,     language_id VARCHAR(4),     my_table_id int,     word_translation VARCHAR(100),     FOREIGN KEY(language_id) REFERENCES LANGUAGE(id),     FOREIGN KEY(my_table_id) REFERENCES MY_TABLE(id) ); 

Now with Hibernate I created the corresponding classes.

@Entity @Table(name="LANGUAGE") public class Language {     private String id;      public Language(){}     public Language(String id) {         super();         this.id = id;     }     @Id     @Column(nullable=false)     public String getId() {         return id;     }     public void setId(String id) {         this.id = id;     } }   @Entity @Table(name="MY_TABLE") public class MyTable {     private int id;      public MyTable(){}     public MyTable(int id) {         super();         this.id = id;     }     @GeneratedValue     @Id     public int getId() {         return id;     }     public void setId(int id) {         this.id = id;     } }  @Entity @Table(name="MY_TABLE_WORD_TRANSLATION") public class MyTableWordTranslation {     private int id;     private String translation;     private Language language;     private MyTable myTable;      public MyTableWordTranslation() {}     public RegionNameTranslation(int id, String translation, Language language, MyTable myTable) {         super();         this.id = id;         this.translation = translation;         this.language = language;         this.myTable = myTable;     }     @GeneratedValue     @Id     public int getId() {         return id;     }     public void setId(int id) {         this.id = id;     }     @Column(nullable=false)     public String getTranslation() {         return translation;     }     public void setTranslation(String translation) {         this.translation = translation;     }     @ManyToOne     @JoinColumn(name="language_id")     public Language getLanguage() {         return language;     }     public void setLanguage(Language language) {         this.language = language;     }        @ManyToOne     @JoinColumn(name="my_table_id")     public MyTable getMyTable() {         return myTable;     }     public void setMyTable(MyTable myTable) {         this.myTable = myTable;     } } 

So the question is how to map into MyTable the field MyTableWordTranslation in order to get only the translation I need:

  • Is it in the DAO class, in the HQL queries but then, what query should I write? For now I have SELECT mytable FROM MyTable mytable
  • I tried to map with @OneToMany with a @Where filter, but how can I set a parameter in this filter: @Where(clause="language_id = 'en'")? The language is specified into the GET resquest from the client.

Thanks

Critical dependency is preventing me from updating my app to latest framework version

My project relies on a specialized component which is stuck (by its configuration) to an older version of the framework my project is using. This makes updating to the latest version of the framework impossible.

What are the best practices when dealing with this type of issue?

Thanks.

passing up headers from auth_request

I have an authorization module which is called whenever a request is made to a private endpoint.

The module parses the token from the Authorization header, and:

  1. if it’s invalid, it returns 401
  2. if it’s valid, it returns 200
  3. if it’s valid but is about to expire in X minutes, it generates a new token and returns that one in the Authorization header.

“profile” is one of the private endpoints, and it’s configured this way:

location /profile {   auth_request /jwtverify;    auth_request_set  $  authorization $  upstream_http_authorization;   proxy_set_header  authorization $  authorization;   proxy_pass        http://private-profile:80; } 

jwtverify is configured this way:

location = /jwtverify {   internal;   proxy_pass              http://auth-module:8080/auth/verify;   proxy_pass_request_body off;   proxy_set_header        Content-Length "";   proxy_set_header        X-Original-URI $  request_uri;   auth_request_set        $  http_authorization $  upstream_http_authorization; } 

Now, everything works except for requirement no. 3: if the auth module sets the Authorization header, the client never receives it.

The flow should be like this:

  • Client makes the request
  • auth-module intercepts the request and, if valid, the proxy passes it to the private service
  • When the response is sent, headers set by auth-module should be kept and sent to the client

I think I didn’t understand properly how to combine auth_request_set, proxy_set_header, auth_request_set, it might also be that they aren’t correct for this scenario.

Is there a way to accomplish this in NGINX?