Sunday, October 3, 2021

Recent Questions - Stack Overflow

Recent Questions - Stack Overflow


Django session in different host

Posted: 03 Oct 2021 08:15 AM PDT

can someone help me explain about session ? I'm currently making a project involved in Django and Spotify api.

In the first version, I made it with django and react in same localhost, when user login, react send request to django endpoint called get-url then redirect to spotify api which then provide a response to another django endpoint called redirect

The second version, I also made it with django and react but with different host (localhost:3000 and 127.xxx something), the spotify auth also work the same as above.

But in the first version the session_key are always the same, in the second version the session_key in get-url and redirect endponts are different.

I read about session, but there's spotify api in middle, not sure what it'll do to the session_key, I hope someone can explain why it session_keys are different in 2 cases, thanks a lot

same host pic

different host pic

How can i have tilemaps, in Unity version 5.6.7?

Posted: 03 Oct 2021 08:15 AM PDT

Well, because of my computers performance I decided to switch to Unity 5.6.7 but i cant create tile maps in my 2d game. I tried to create one, but in Create 2d Object menu its just sprite.

How to create a new dataframe by calculating hourly average value by R?

Posted: 03 Oct 2021 08:15 AM PDT

I would like to ask how to calculate the average value by hour by Id, and create a new dataframe with columns "Id", "date_hour" (in yyyy-mm-dd hh:mm format) and "average_value". Thank you very much!

          Id                 Time Value  1 2022484408 4/12/2016 7:21:00 AM    97  2 2022484408 4/12/2016 7:21:05 AM   102  3 2022484408 4/12/2016 7:21:10 AM   105  4 2022484408 4/12/2016 7:21:20 AM   103  5 2022484408 4/12/2016 7:21:25 AM   101  6 2022484408 4/12/2016 7:22:05 AM    95  

Duplicating Items in list based on value of a different list

Posted: 03 Oct 2021 08:15 AM PDT

list1 = ['Name1', 'Name2', 'Name3']  list2 = [1, 3, 2]  

desired result:

['Name1', 'Name2', 'Name2', 'Name2', 'Name3', 'Name3']  

Looking to duplicate items in a list based on the corresponding element position of a different list. Any help would be great, thank you.

Marshmallow JSONAPI: Schema serialization and deserialization is not symmetric?

Posted: 03 Oct 2021 08:15 AM PDT

If I try to dump an object with a relationship, then deserialize the output, I do not get the same object - the relationship is now represented as the id of the related schema.

from marshmallow_jsonapi import fields, Schema  from pprint import pprint      class TeamSchema(Schema):      id = fields.Int()      name = fields.Str(required=True)        class Meta:          type_ = 'team'      class AssetSchema(Schema):      id = fields.Int()      name = fields.Str(required=True)        team = fields.Relationship(          include_resource_linkage=True,          type_='team',          schema='TeamSchema',          id_field='id'      )        class Meta:          type_ = 'asset'      data = {'name': 'Asset#1', 'team': {'id': 456}}  print('Input data:')  pprint(data)    asset_serialized = AssetSchema().dump(data)  print('*****DUMP (SERIALIZED) *****')  pprint(asset_serialized)    asset_deserialized = AssetSchema(include_data=('team',)).load(asset_serialized)  print('*****LOAD (DESERIALIZED) *****')  print('Deserialized vs original data:')  pprint(asset_deserialized)  pprint(data)  

Output is:

Input data:  {'name': 'Asset#1', 'team': {'id': 456}}  *****DUMP (SERIALIZED) *****  {'data': {'attributes': {'name': 'Asset#1'},            'relationships': {'team': {'data': {'id': '456', 'type': 'team'}}},            'type': 'asset'}}  *****LOAD (DESERIALIZED) *****  Deserialized vs original data:  {'name': 'Asset#1', 'team': 456}  {'name': 'Asset#1', 'team': {'id': 456}}  

Shouldn't the deserialized version of the original be identical to the original input?

How to print the data type of a constant

Posted: 03 Oct 2021 08:14 AM PDT

Python has a type function. Is there a SQL function or other method to print the data type of a constant such as 50 or 'Hello' ? Just using this as a learning tool.

Drawing cards from a deck until you get a pair

Posted: 03 Oct 2021 08:14 AM PDT

I'm working on the following problem

"Assume that a dealer deals cards one by one from a shuffled deck. Write a function that takes a shuffled deck as an argument and returns the number of cards dealt when the first pair arises. Simulate 10 000 dealings."

So far I've managed to create 2 different functions. One for dealing cards out of the deck and an other one for shuffling the deck.

dealing cards:

deal <- function() { # draw cards from the deck card <-deck[1, ] assign("deck", deck[-1, ], envir = globalenv()) return(card) }

deal()

shuffling the deck (deck_orginal is the deck but with 52 cards instead of 51):

shuffle <- function() { shuffle_idx <- sample(seq_len(52), size = 52) assign("deck", deck_orginal[shuffle_idx, ], envir = globalenv()) } shuffle()

Need to write test cases

Posted: 03 Oct 2021 08:14 AM PDT

Need help in writing test cases and edge cases for these two links

1.https://yocket.in/

2.https://yocket.in/university-reviews/harvard-university-2574

How can i start?

Store output of a command in a variable

Posted: 03 Oct 2021 08:14 AM PDT

In my mac terminal I am trying to store the output of a command into a variable like this

animals=$(cat animals.txt | head -n $plusOne | tail -n $numberofanimals | sort -u | sed -E "s/[*#/@2]//g; s/D/d/g ; s/G/g/g ; s/E/e/g ; s/H/h/g ; s/O/o/g ; s/C/c/g ; s/[!]//g")  

but it doesnot work. Any idea why?

Problem with type conversion from String into JSONObject

Posted: 03 Oct 2021 08:14 AM PDT

I cant find solution why this one line is not working.

JSONObject mainObj= new JSONObject(response);  

Problem is: Required type Map <java.lang.String?> but Provided: String. I dont get it. This is my whole code

private RestTemplate restTemplate = new RestTemplate();  private static final String FANG_URL = "https://api.alternative.me/fng/?limit=2";    public FangDto getFangFromLastTwoDays() {      String response = restTemplate.getForObject(FANG_URL, String.class);        JSONObject mainObj= new JSONObject(response);  

How do I use my own images in my local machine for discord.py bot embeds?

Posted: 03 Oct 2021 08:13 AM PDT

I want to use images in my local machine for my bot. But so far I have only heard that it accepts URLs from a website, for example. How do I use my own images? If I understand it correctly, the API uses the URLs to go the site and pick the image. I'm not sure about that. If there's a way to do it, can anyone tell?

Example as to what I mean:

@bot.command()  async def foo(ctx):      . . .      embed.set_image(<directory to the file location>)      . . .  

I'm pretty sure this is not possible by how the API makes embeds, but please let me know. Thanks in advance!

Angular error when trying to build - Module Parse failed: Unexpected token

Posted: 03 Oct 2021 08:13 AM PDT

Hi trying to add a template into my angular app and I have added all the required js, css and scss files in but when I try to run it I get this error.

emphasized text./src/assets/css/ud-styles.css.map:2:13 - Error: Module parse failed: Unexpected token (2:13) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | {

"version": 3,  

| "mappings": "AAAA;;;;;;;;WAQW;AGRX;;6BAE6B;AAC7B,OAAO,CAAC,uGAAI;AAEZ,AAAA,KAAK,CAAC;EACJ,MAAM,CAAA,oBAAC;EACP,YAAY,CAAA,Q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AUF,MAAM;AA5Cb,wBAAwB,CAyBtB,cAAc,CAUZ,QAAQ,AASL,MAAM,CAAC;EACN,YAAY,EAAE,oBAAoB;CACnC;;AChIP,4BAA4B;AAE5B,AAAA,UAAU,CAAC;EACT,UAAU,EAAE,oBAAoB;EAChC,WAAW,EAAE,KAAK;EAClB,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,CAAC;EACV,QAAQ,EAAE,MAAM;CAqBjB;;AA1BD,AAOE,UAPQ,CAOR,MAAM,CAAC;EACL,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,EAAE;CAgBZ;;AAzBH,AAWI,UAXM,CAOR,MAAM,AAIH,QAAQ,CAAC;EACR,GAAG,EAAE,CAAC;EACN,IAAI,EAAE,CAAC;CACR;;AAdL,AAgBI,UAhBM,CAOR,MAAM,AASH,QAAQ,CAAC;EACR,GAAG,EAAE,CAAC;........

Cannot post the whole error message as limited to 30k characters

Kubernetes - when to use HorizontalPodAutoscaler resource type?

Posted: 03 Oct 2021 08:13 AM PDT

As mentioned in this answer: allow for easy updating of a Replica Set as well as the ability to roll back to a previous deployment.

So, kind: Deployment scales replicasets, which scales Pods, supports zero-downtime updates by creating and destroying replicasets


What is the purpose of HorizontalPodAutoscaler resource type?

apiVersion: autoscaling/v1  kind: HorizontalPodAutoscaler  metadata:    name: xyz  spec:    maxReplicas: 4    minReplicas: 2    scaleTargetRef:      apiVersion: apps/v1      kind: Deployment      name: xyz    targetCPUUtilizationPercentage: 70  

Task is to create a code in O(n log n), what is the time complexity of this code that I wrote?

Posted: 03 Oct 2021 08:13 AM PDT

I'm learning big O and time complexity and I find it hard to understand. Can you help me understand the time complexity for this code that I wrote?

Basically the task is to go through an array of numbers and count the number of pairs that satisfies arr[i] > arr[j]. Like for the array given in this code arr = {7, 3, 8, 1, 5}, the pairs found should be (7, 3),(7, 1),(7, 5),(3, 1),(8, 1),(8, 5) and the total number of pairs is 6.

The task is to create the code with time complexity of O(n log n) but big O still confuses me. I'm not sure if this is O(n^2) and not sure if the program will slow down with bigger arrays.

public class Test {      public static void main(String[] args) {          int[] arr = {7, 3, 8, 1, 5};          System.out.println();          System.out.println("The number of pairs is " + countPair(arr));      }      public static int countPair(int[] arr) {          int i = 0, j = 1;          int ctr = 0;          int len = arr.length;          while (i < len) {              if (j == len) {                  i++;                  j = 1;              }              else if (i < j && (arr[i] > arr[j])) {                  ctr++; // Counting pairs              }              j++;          }          return ctr;      }  }  

Output:

The number of pairs is 6  

Wrong int outputted?

Posted: 03 Oct 2021 08:15 AM PDT

i started learning c today and wrote this code:

#include <stdio.h>  int main(){      int age;      char name[] ="";      printf("enter your age: ");      scanf("%d", &age);      printf("enter your name: ");      scanf("%s", &name);      printf("your name is %s and you are %d years old.",name, age);        return 0;  }  

If i for example set the age to "20" and the name to "name", it outputs the following:

your name is name and you are 6647137 years old.

Why does it say "6647137" years instead of 20?

Screenshot

How to show cards with responsive design using bootstrap 5

Posted: 03 Oct 2021 08:14 AM PDT

Trying to show cards with responsive for mobile, desktop, iPad. I want to show

For mobile one column.

For iPad two column.

For desktop four column.

But below the code is working only for mobile and desktop, Not working for iPad. In my iPad 4 column is showing .But I want to show in my iPad 2 column. So, How to write CSS for iPad? If anyone knows please help to find the solution.

CSS:

<div class="col-md-12">   <div class="row grid">    <div class="col-lg-3 col-md-4"> Card 1 </div>  <div class="col-lg-3 col-md-4"> Card 2 </div>  <div class="col-lg-3 col-md-4"> Card 3 </div>  <div class="col-lg-3 col-md-4"> Card 4 </div>  <div class="col-lg-3 col-md-4"> Card 5 </div>  <div class="col-lg-3 col-md-4"> Card 6 </div>  <div class="col-lg-3 col-md-4"> Card 7 </div>  <div class="col-lg-3 col-md-4"> Card 8 </div>  <div class="col-lg-3 col-md-4"> Card 9 </div>  <div class="col-lg-3 col-md-4"> Card 10 </div>  <div class="col-lg-3 col-md-4"> Card 11 </div>  <div class="col-lg-3 col-md-4"> Card 12 </div>  <div class="col-lg-3 col-md-4"> Card 13 </div>  <div class="col-lg-3 col-md-4"> Card 14 </div>     </div>   </div>  

Question on how to add strings using Python if conditional statements

Posted: 03 Oct 2021 08:13 AM PDT

I have a question.
I'd appreciate it if you could help me.
I want to add a specific character in the middle of a string using a python 'if' statement.
For example,
When I change January 1, 2021 to a string, I want to convert 2020011 (7 letters) to 20200101 (8 letters).
This is my code I have tried

df2['date']=df2['date'].astype(str)  x = df2['date'].str.len()  def date_changing(x) :      if x == 7: return df2.date.astype(str).apply(lambda z: z[:6] + '0' + z[6:])      else: return df2.date.astype(str)    df2['new_date']=df2['date'].apply(date_changing)  

There are other dates, so I'm trying to convert using an 'if' conditional to make things a little easier, but I get the following error.

Thank you in advance.

Firebase RecyclerView in interface or class

Posted: 03 Oct 2021 08:14 AM PDT

I am creating a social network application on teleleon. And I ran into a code duplication problem. I have a home page (here are the posts of all the people the user is following) and a user page (where the user sees all their posts). So that the user can view all posts, I use the RecyclerView, and to fill it with data, I use the FirebaseRecyclerViewAdapter. Thus, in two different activities, I have the same code. Perhaps someone can tell me how to solve this problem, perhaps using an additional class or interface.

public HomeFragment etends Fragment  {    private RecyclerView mRecyclerView;      private Context mContext;      private FirebaseMethods mFirebaseMethods;      private DatabaseReference postRef;      private FirebaseAuth mAuth;      private String currentUserID;      private long downloadID;      private Uri mapUri;      private BottomSheetDialog bottomSheetDialog;      private String filename;      private Boolean downloadOrOpen = false;      private File searchFile;      private LinearLayoutManager mLinearLayoutManager;      private FirebaseUser mFirebaseUser;        private DatabaseReference likesRef = FirebaseDatabase.getInstance().getReference("Likes");            //permissions      private String[] permissions = {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE};      private ActivityResultContracts.RequestMultiplePermissions mRequestMultiplePermissions= new ActivityResultContracts.RequestMultiplePermissions();        private IntentFilter filter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE);        static final String TAG = HomeFragment.class.getSimpleName();    @Override      public View onCreateView(LayoutInflater inflater, ViewGroup container,                               Bundle savedInstanceState) {          View view = inflater.inflate(R.layout.fragment_home, container, false);              mContext = container.getContext();          mFirebaseMethods = new FirebaseMethods(mContext);          mRecyclerView = view.findViewById(R.id.posts_recycler);          postRef = FirebaseDatabase.getInstance().getReference().child("Posts");          mLinearLayoutManager = new LinearLayoutManager(mContext);          mLinearLayoutManager.setReverseLayout(true);          mLinearLayoutManager.setStackFromEnd(true);          mRecyclerView.setLayoutManager(mLinearLayoutManager);               FirebaseRecyclerOptions options = new FirebaseRecyclerOptions.Builder<DataSnapshot>()                 .setLifecycleOwner((LifecycleOwner) mContext)                 .setQuery(postRef, new SnapshotParser<DataSnapshot>() {                     @NonNull                     @Override                     public DataSnapshot parseSnapshot(@NonNull DataSnapshot snapshot) {                         return snapshot;                     }                 }).build();           FirebaseRecyclerAdapter adapter = new FirebaseRecyclerAdapter<DataSnapshot, PostAdapter>(options)         {            boolean buttonStatus;            FirebaseUser mFirebaseUser =FirebaseAuth.getInstance().getCurrentUser();               @Override             protected void onBindViewHolder(@NonNull PostAdapter holder, int position, @NonNull DataSnapshot model) {                 ArrayList<Uri> arrayList = new ArrayList<>();                 String postUid = model.child("postId").getValue(String.class);                   final String postKey =getRef(position).getKey();                   String nickname = model.child("nickname").getValue(String.class);                 String country = model.child("country").getValue(String.class);                 String title = model.child("title").getValue(String.class);                 String days = model.child("days").getValue(String.class);                 String difficulty = model.child("difficulty").getValue(String.class);                 String kilometers = model.child("kilometers").getValue(String.class);                 String description = model.child("description").getValue(String.class);                 Long numOfImages = model.child("numOfImages").getValue(Long.class);                 String userUid = model.child("uid").getValue(String.class);                     holder.nickname.setText(nickname);                 holder.country.setText(country);                 holder.title.setText(title);                 holder.days.setText(days);                 holder.kilometers.setText(kilometers);                 holder.description.setText(description);                 holder.map.setOnClickListener(new View.OnClickListener() {                     @Override                     public void onClick(View v) {                         mapUri = Uri.parse(model.child("map").getValue(String.class));                         mapOptions();                     }                   });                   holder.comments.setOnClickListener(new View.OnClickListener() {                     @Override                     public void onClick(View v) {                         CommentsFragment commentsFragment = new CommentsFragment();                         Bundle args = new Bundle();                         args.putString("postId", postUid);                         args.putString("userUid", userUid);                         commentsFragment.setArguments(args);                           FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();                         fragmentTransaction.replace(R.id.frame_container, commentsFragment);                         fragmentTransaction.addToBackStack(null);                         fragmentTransaction.commit();                     }                 });                     holder.setLikeButtonStatus(postKey);                   holder.likes.setOnClickListener(new View.OnClickListener() {                     @Override                     public void onClick(View v) {                         buttonStatus = true;                           likesRef.addValueEventListener(new ValueEventListener() {                             @Override                             public void onDataChange(@NonNull DataSnapshot snapshot) {                                 if(buttonStatus == true)                                 {                                      if(snapshot.child(postKey).hasChild(mFirebaseUser.getUid()))                                      {                                          likesRef.child(postKey).child(mFirebaseUser.getUid()).removeValue();                                          buttonStatus = false;                                      }else                                      {                                          likesRef.child(postKey).child(mFirebaseUser.getUid()).setValue(true);                                          buttonStatus = false;                                      }                                 }                             }                               @Override                             public void onCancelled(@NonNull DatabaseError error) {                               }                         });                     }                 });                   switch(difficulty)                 {                     case "Easy":                         holder.difficulty.setImageResource(R.drawable.ic_easy);                         break;                       case "Difficult":                         holder.difficulty.setImageResource(R.drawable.ic_difficult);                         break;                       case "Hard":                         holder.difficulty.setImageResource(R.drawable.ic_hard);                         break;                 }                     ArrayList<Slider> sliderArrayList = new ArrayList<>();                   Picasso.get().load(model.child("avatarUri").getValue(String.class)).into(holder.avatarUri);                   for(int i = 0; i < numOfImages; i++)                 {                      sliderArrayList.add(new Slider(Uri.parse(model.child("image"+ (i+1)).getValue(String.class))));                 }                   SliderAdapter adapter = new SliderAdapter(mContext, sliderArrayList);                   holder.mSliderView.setSliderAdapter(adapter);                 holder.mSliderView.setSliderTransformAnimation(SliderAnimations.SIMPLETRANSFORMATION);             }                 @NonNull             @Override             public PostAdapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {                  View view = LayoutInflater.from(parent.getContext())                          .inflate(R.layout.posts, parent, false);                    return new PostAdapter(view);             }         };            mRecyclerView.setAdapter(adapter);          adapter.startListening();              return view;      }    }  

and in another fragment I have exactly the same code.

How to make the new measure work for the below scenario?

Posted: 03 Oct 2021 08:13 AM PDT

I have two Tables (KPI Validation and EXPORT REPORT) in Power BI and I have linked these two tables through a common column called 'KPI code'. Now I have created a new measure using the columns of these two tables. The new measure has a " IF Condition". Please see below:

Packaging KPI Validation =  IF (      SUM ( 'KPI Validation'[Packaging] ) = 1,      IF (          SUM ( 'EXPORT REPORT'[AC] ) = 0,          IF (              AND (                  SUM ( 'EXPORT REPORT'[AC] ) = 0,                  SUM ( 'EXPORT REPORT'[BU] ) = 0              ),              1,              0          ),          1      )  )  

Note: AC and BU are the columns of table EXPORT REPORT and Packaging is a Column present in the KPI Validation table.

Now when I am using 'Packaging KPI Validation' measure in another new measure to calculate the percentage, the another measure is giving me blank value because 'Packaging KPI Validation' only returns value when you select a single KPI code from a slicer otherwise it gives blank value if you select multiple KPI code from a slicer. My requirement is that the 'Packaging KPI Validation' measure should work irrespective of KPI code slicer. So that my another New measure will return the percentage of NO.OF ones present in 'Packaging KPI Validation'.

I am new to DAX and Power BI so I request if someone can help me in solving this issue?

How to trigger paused animation with javascript?

Posted: 03 Oct 2021 08:13 AM PDT

I want to trigger an animation that makes the game screen fade to greyscale when the character dies. This is my first game so it is rather simple. I have not been able to successfully trigger the animation. Online, I found that document.getElementById("object").animationPlayState = "running" should work, but it doesn't for me. This is my game loop and css (game is a div in HTML).

HTML:

<!DOCTYPE html>  <html lang="en">  <head>      <meta charset="UTF-8">      <meta http-equiv="X-UA-Compatible" content="IE=edge">      <meta name="viewport" content="width=device-width, initial-scale=1.0">      <title>Document</title>      <link rel="stylesheet" href="style.css">  </head>  <body>      <div id="game">          <div id="knight"></div>          <div id="rock"></div>        </div>            <h1 id="score">0</h1>      <h1 id="gameName">KNIGHT HOPPER</h1>      <h1 id="youDied"></h1>      <div id="reload"></div>      <script src="script.js"></script>  </body>  </html>  

CSS:

html {      background-color: black;  }    #score {      text-align: center;      color: rgba(102, 255, 0, 0.993);  }    #game {      width: 600px;      height: 300px;      border: 2px solid black;      margin: auto;      background-image: url("https://t3.ftcdn.net/jpg/01/73/79/26/360_F_173792623_516juhwjkCCZJ9OyesyH7hf7r9zsyH5u.jpg");      background-size: cover;      animation: deathAnimation 2s;      animation-play-state: paused;  }    @keyframes deathAnimation {      0%{filter:none;}      100%{filter:grayscale(100%);}  }      #knight {      height: 100px;      width: 75px;      position: relative;      top: 171px;      left: 50px;      background-image: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/f57b5304-de59-49e3-b0f9-cc29a2458425/dcgy8i3-e6dac283-04a7-40e5-a333-cc645e172df7.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2Y1N2I1MzA0LWRlNTktNDllMy1iMGY5LWNjMjlhMjQ1ODQyNVwvZGNneThpMy1lNmRhYzI4My0wNGE3LTQwZTUtYTMzMy1jYzY0NWUxNzJkZjcucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.0LapCzRi5sQjkqzwB5lwWQT_XH1BM4rSMZt7jrflMLk");      background-size: cover;  }    #rock {      height: 50px;      width: 50px;      position: relative;      top: 122px;      left: 550px;      background-image: url("http://pixelartmaker-data-78746291193.nyc3.digitaloceanspaces.com/image/da268f06e621b21.png");      background-size: cover;      animation: rockAnimation 1s linear;  }    @keyframes rockAnimation {      0%{left: 500px;}      100%{left: -50px;}  }    .jump-animation {      animation: jump 0.5s;  }    @keyframes jump {      0%{top: 171px;}      50%{top: 70px;}      75%{top: 70px;}      100%{top: 171px;}  }    @font-face {      font-family: VT323;      src: url(https://fonts.googleapis.com/css2?family=VT323&display=swap);    }    #gameName {      text-align: center;      color: rgba(102, 255, 0, 0.993);      font-size: 300%;      font-family: 'VT323';  }    #youDied {      text-align: center;      color: rgba(102, 255, 0, 0.993);      animation: youDied 2s infinite;  }    @keyframes youDied {      0%{color: rgba(102, 255, 0, 0.993);}      50%{color: black}      100%{color: rgba(102, 255, 0, 0.993);}  }    #reload {      background: url("https://static.thenounproject.com/png/191594-200.png");      margin: auto;      width: 500px;      height: 500px;      background-size: cover;      filter:invert(100%);  }  

Javascript:

const background = document.getElementById('game')  const knight = document.getElementById('knight')  const rock = document.getElementById('rock')  const score = document.getElementById('score')  //transfers jump animation to script  function jump() {      knight.classList.add('jump-animation')      setTimeout(() => {          knight.classList.remove('jump-animation')      }, 500)  }  //When any key is pressed, run jump animation  document.addEventListener('keypress', () => {      if (!knight.classList.contains('jump-animation') && dead == false) {      jump();       }    })  //game loop  let dead        var gameLoop = setInterval(() => {      dead = false      function rockAnimation() {          rock.classList.add('rockAnimation')      }      const knightTop = parseInt(window.getComputedStyle(knight).getPropertyValue('top'))      const rockLeft = parseInt(window.getComputedStyle(rock).getPropertyValue('left'))      if (rockLeft < 0) {          rock.style.display = 'none'      } else {          rock.style.display = ''      }        if (rockLeft < 90 && rockLeft > 50 && knightTop > 79) {          dead = true      }      score.innerText++        const deathAnimation = document.getElementById("deathAnimation")      const game = document.getElementById("game")      if (dead == true) {          clearInterval(gameLoop)          document.getElementById("youDied").innerHTML = "YOU DIED"          document.getElementById("playAgain").innerHTML = "Play Again?"           //game.classList.add(deathAnimation)          //document.getElementById("deathAnimation").style.animationPlayState = "running"      }  }, 50);      

Geodetic coordinates: How to project a point on a line on the same meridian

Posted: 03 Oct 2021 08:15 AM PDT

Given a geodetic segment, e.g., from Brussels to Moscow, and a geodetic point, e.g., Berlin, which can be expressed in PostGIS as follows

  select geography 'Linestring(4.35 50.85,37.617222 55.755833)', geography 'Point(13.405 52.52)';  

I need to find the point on the segment that is exactly at the same meridian of the given point, i.e., their bearing is 0 degrees.

Any idea how to obtain this ?

For example, using PostGIS, I create a segment from Berlin to the North by taking Berlin's longitude with the maximum of the two latitudes of the initial line and compute the intersection of the two lines as follows

select st_astext(st_intersection(geography 'Linestring(4.35 50.85,37.617222 55.755833)',    geography 'Linestring(13.405 52.52,13.405 55.755833)'))                    st_astext  ----------------------------------------------   POINT(13.407059592483968 53.163047143541235)  

As can be seen the longitude is not exactly the same and the bearing would not be 0.

with test(inter) as (    select st_intersection(geography 'Linestring(4.35 50.85,37.617222 55.755833)',      geography 'Linestring(13.405 52.52,13.405 55.755833)') )  SELECT degrees(bearing(geography 'Point(13.405 52.52)', inter)) from test;         degrees  ---------------------   0.11002408958628832  

where bearing is computed using the traditional formula (e.g., https://gist.github.com/jeromer/2005586)

Python Selenium CORS Error though Real browser works well

Posted: 03 Oct 2021 08:13 AM PDT

I use the selenium on python.

When I visit the page on real browser, it works well.

Link: https://www.wyndhamhotels.com/days-inn/alexander-city-alabama/days-inn-alexander-city/rooms-rates

Screenshot: https://prnt.sc/1ulxa1h

Btw, When I visit the same page on selenium browser, it took CORs error, and It does not display the content.

Screenshot: https://prnt.sc/1ulxk6c

Could anyone tell me how can fix this problem?

Regards

Angular Input value doesn't change

Posted: 03 Oct 2021 08:14 AM PDT

I have a problem. In my Angular project I have 2 components with an two-way bound parameter. The parameter is an object id. Both components use the same service which stores the list with objects. The parent contains the list where you can select the object and the child shows the selected object details. Here is the code of the parent:

<div>    <table>      <tr>        <th scope="col">Title</th>      </tr>      <tr *ngFor="let offer of service1.findAll();"          [style.background-color]="offer.rowClicked ? '#ed9b82' : ''"          (click)="highlightClickedRow(offer)">        <td>{{offer.title}}</td>      </tr>    </table>  </div>    <div>    <app-detail3 [editedOfferId]="offerSelectedId" (editedOfferChanged)="offerSelectedId=$event"></app-detail3>  </div>  

with the typescript:

@Component({    selector: 'app-overview3',    templateUrl: './overview3.component.html',    styleUrls: ['./overview3.component.css']  })  export class Overview3Component implements OnInit {      public offerSelectedId: number = -1;      constructor(public service1: OffersService) { }      ngOnInit(): void {    }      public highlightClickedRow(offer :Offer) {      let offers: Offer[] = this.service1.findAll();      for (let i = 0; i < offers.length; i++) {        if (offers[i] != offer) {          offers[i].rowClicked = false;        }        else {          offers[i].rowClicked = true;          this.offerSelectedId = offers[i].id;        }      }    }    }  

And here is the detail component:

<div id="content" *ngIf="editedOfferId != -1">    <div id="data-table">      <table>        <tr>          <th scope="row" colspan="2">Selected offer details(id = {{service.findById(editedOfferId)!.id}})</th>        </tr>        <tr>          <th scope="row">Title:</th>          <td><input type="text" id="txtTitle" (input)="checkObjectChanged()"></td>        </tr>        <tr>          <th scope="row">Description:</th>          <td><input type="text" id="txtDescription" (input)="checkObjectChanged()" value="{{service.findById(editedOfferId)!.description}}"></td>        </tr>        <tr>          <th scope="row">Status:</th>          <td>            <select (input)="checkObjectChanged()" id="txtStatus">              <option *ngFor="let key of keys" [ngValue]="key" [value]="status[key]" [label]="status[key]" [selected]="service.findById(editedOfferId)!.auctionStatus === key"></option>            </select>            </td>        </tr>        <tr>          <th scope="row">Highest Bid:</th>          <td><input id="txtHighestBid" (input)="checkObjectChanged()" value="{{service.findById(editedOfferId)!.valueHighestBid}}"></td>        </tr>      </table>    </div>  </div>  <div *ngIf="editedOfferId == -1">    <label  id="lblNothingSelected">Nothing has been selected yet</label>  </div>  

With the typescript:

@Component({    selector: 'app-detail3',    templateUrl: './detail3.component.html',    styleUrls: ['./detail3.component.css']  })  export class Detail3Component implements OnInit {      @Input() editedOfferId: number = -1;    @Output() editedOfferChanged = new EventEmitter<number>();      public selectedOffer: Offer = new Offer("", "", new Date(), AuctionStatus.NEW, 0);      status = AuctionStatus    keys: Array<number>;      constructor(public service: OffersService) {      this.keys = Object.keys(this.status).filter(k => !isNaN(Number(k))).map(Number);      this.selectedOffer = service.findById(this.editedOfferId)!;    }      ngOnInit(): void {    }    }  

Now when I click on an object in the parent component, the details will be loaded in de detail component, but when I edit for example the title input field and then change the object in the parent, I would expect that the data of the new selected object will be loaded. This happens, but only the fields that were not edited at that moment, so when I edit the title, everything will be loaded correctly, but the value of the title will remain the same. Even tough the object has a different title, the value that I was typing stays in the input field. Why is this happening and how can I fix this?

How can I use a custom search field (model property) to search in Django Admin?

Posted: 03 Oct 2021 08:13 AM PDT

This is very similar to this question, but unfortunately, I still couldn't get it working.

I have a model, with a property that combines a few fields:

class Specimen(models.Model):      lab_number = ...      patient_name = ...      specimen_type = ...        @property      def specimen_name(self):          return f"{self.lab_number}_{self.patient_name}_{self.specimen_type}"  

In Django Admin, when someone does a search, I can use the search_fields attribute in the Model Admin to specify real fields, but not the specimen_name custom field:

  def specimen_name(inst):      return inst.specimen_name  specimen_name.short_description = "Specimen Name"    class SpecimenModelAdmin(admin.ModelAdmin):      list_display = ('specimen_name', 'patient_name', 'lab_number', 'specimen_type')      search_fields = ('patient_name', 'lab_number', 'specimen_type')  

Doing a search using the code above, it will search the individual fields, but if I try to search for a full specimen_name in Django Admin, it won't find it, because none of the fields contain the exact, full specimen name.

The SO question I linked to above pointed me in the right direction - using get_search_results. My code now looks something like this:

class SpecimenModelAdmin(admin.ModelAdmin):      ...      search_fields = ('patient_name', 'lab_number', 'specimen_type')        def get_search_results(self, request, queryset, search_term):          if not search_term:              return queryset, False            queryset, may_have_duplicates = super().get_search_results(              request, queryset, search_term,          )            search_term_list = search_term.split(' ')          specimen_names = [q.specimen_name for q in queryset.all()]          results = []            for term in search_term_list:              for name in specimen_names:                  if term in name:                      results.append(name)                      break            # Return original queryset, AND any new results we found by searching the specimen_name field          # The True indicates that it's possible that we will end up with duplicates          # I assume that means Django will make sure only unique results are returned when that's set          return queryset + results, True  

As far as I know, I can't do a queryset.filter(specimen_name=SOMETHING). .filter won't recognize the @property method as a field in needs to search. That's why I write my own loop to do the searching.

The code above will obviously not work. You can't just add a list to a queryset. How would I return an actual queryset?

Output PHP Form Validation Error Messages When Using JavaScript Fetch API

Posted: 03 Oct 2021 08:14 AM PDT

I have a page with multiple forms on, where each form is processed with PHP in the backend that sends data to a MySQL database, but on the front end it uses Javascript's fetchAPI to prevent the page refreshing when an instance of the form is completed and data is sent to the database.

I have some PHP server side validations that take place that still work in terms of not sending the data to the database, although on submission the instance of the form completed does disappear from the page (due to javascript shown below), but re-appears when refreshed if it failed the validations.

The main code example below includes this code block that would normally output the error message:

<?php       // echo form validation error messages      if(isset($error)) {          foreach($error as $msg) {              echo "<p>** {$msg}</p>";          }      }  ?>  

In terms of outputting these error messages is it possible to still use this PHP code (currently not working), or now I'm using the javascript fetchAPI in conjunction with PHP, will I have to also write validations in JavaScript to output the errors on the front end, in addition to the PHP ones which securely prevent the form failing the validations? It should be noted there are multiple instances of the form on the page which are outputted with a while loop, each one is in relation to a specific post.

<?php  if(isset($_POST['upload-submit'])) {      // note $imageTitle is a variable given to the title of a post submitted via an HTML form        if(!preg_match('/^[a-zA-Z0-9\s]+$/', $imageTitle)) {          $error[] = "Post Title can be letters and numbers only";      }        if(empty(trim($imageTitle))){          $error[] = "Image Title cannot be blank";      }        // if no errors process submission      if (!isset($error)) {            try {            // PDO prepared statements that update the database                } catch (PDOException $e) {              echo "There is an error: " . $e->getMessage();          }        }  }  ?>  

Also here is the javascript fetchAPI code that works on the page.

var forms = document.querySelectorAll('.image-upload-details-form'),    forms.forEach(item => {                item.querySelectorAll('[type="submit"], button').forEach(button => {              button.addEventListener("click", e => item._button = button); //store this button in the form element          })            item.addEventListener("submit", function(evt, btn) {                evt.preventDefault();                const formData = new FormData(this);              if (this._button) //submitted by a button?              {              formData.set(this._button.name, this._button.value);          }            fetch("upload-details.php", {              method: 'post',              body: formData          }).then(function(response){              return response.text();          }).then(function(text){              console.log(text);          }).catch(function (error){              console.error(error);          })            // removes form when submitted          item.remove();        })    })  

Many thanks in advance for any help / advice.

Laravel livewire wire:model with array

Posted: 03 Oct 2021 08:14 AM PDT

From blade component I can give valule product_id

<input wire:model="qty.{{$row->product_id}}" value="{{$row->qty}}" max="{{$row->stock}}">  

but how I can display qty from database and when increase qty then wire model will work and updated, what I can should do???

public $qty;              public function render()      {          $this->userId=Auth::id();            if ($this->qty!=null){                foreach($this->qty as $key => $qty)              {                  $cart=Cart::where('user_id',$this->userId)->where('product_id',$key)->first();                    if ($cart){                      $cart->update([                          'qty'    =>  $qty,                      ]);                      $this->emit('refreshCart');                  }                }            }        }  

How do I run nested queries in sqlx rust?

Posted: 03 Oct 2021 08:14 AM PDT

I want to run a nested query in sqlx. Here's what I've tried:

sqlx::query_as!(NseData, "select * from nse_data  where trading_day = (select max(trading_day) from nse_data)").fetch_one(&app_context.db_connection).await?;  

But it gives me the following error...

error[E0658]: attributes on expressions are experimental    --> db/src/nse_data.rs:30:9     |  30 |         sqlx::query_as!(NseData, "select * from nse_data  where trading_day = (select max(trading_day) from nse_data)").await?     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     |     = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)  

play h264 video using pygame

Posted: 03 Oct 2021 08:14 AM PDT

I'm doing the GUI for raspberry pi enabled project using pygame and an HDMI LCD touchscreen. I can record h264 video using a compatible camera but I didn't find any example on how to play h264 video using pygame, can someone point me in the right way?

UML modelling roles, users, and documents

Posted: 03 Oct 2021 08:15 AM PDT

I'm new student in UML modeling and a want to model a situation.

I have a system where the admin create roles and users and documents, they all exist in the database and the admin will chose for each document the users that could manipulate this doc with a role

  • in the system the user could not have a role for a specific document
  • role could exist and not affected to any user-doc relation
  • for each document we have a list of user that could use it with a specific role.

Question is I'm trying to model it only with binary associations, if it's not possible what's the solution? here the screen you will see more the situation enter image description here

as you can see the user_a have a role role_1 in the doc_1 and another role in the doc_2 and the user_c doesn't have a role in the doc_2 ;)

Python daylight savings time

Posted: 03 Oct 2021 08:13 AM PDT

How do I check if daylight saving time is in effect?

No comments:

Post a Comment