Is there a real use for the Medicine skill?

Does the Medicine skill have a hidden use I don’t know about? All I can see in the rules is that it allows a successful skill roll to stabilize a dying character, which a healer kit does without a roll, and healer kits are really cheap. Does a successful roll plus a healer kit restore hp? Medicine seems like such a waste of a precious skill slot for such a rare corner case…

Drive 10.000+ Worldwide Real Human Web Traffics professionally for $2

Hello Buyers, I will drive 15000 quality web traffic within 7 days. Welcome to the best & Cheap TRAFFIC Service on SEO Clerks.( 15000 visitors guaranteed) . How can we offer so many visitors at this low prices? We are NOT re sellers. We are a wholesale seller. Boost your Alexa ranking with visits from MAJOR countries About our service: ✔️100% Real Visitors ✔️Instant Start ✔️30 Days Money back Guarantee ✔️Trusted new seller ✔️24/7 Support ✔️No Bots ✔️Express Delivery ✔️100% Safe Penguin and panda. Please Try me once and place an order soon.

by: Marjiarahman
Created: —
Category: Traffic
Viewed: 82


What is the real reason that Bubble Sort runs at O(n) in best case?

In this link https://techdifferences.com/difference-between-bubble-sort-and-selection-sort.html it says that the best case of bubble sort is order of n due to the fact that there would be only comparisons and no swaps in the inner loop.

But is that correct? Are comparisons not counted in the complexity ? Only swaps?

Other sources claim the reason is only because it can be optimized with a ‘ flag’ checking if it entered the inner loop. In that case there would be ZERO swaps and n comparisons. ( If this reason is correct, can’t I optimize other sorting algorithms this way? Likesay, selection sort?)

What is the correct reason? I questioned both of the reasons!

EDIT: this is what is said in the link: “In the best case, it is of order n because it just compares the elements and doesn’t swap them”

Real time video recording frames processing

Recently i am working on android camera with lots of features using camera2 and opencv , and now i want to record a video with custom resolution, for example if my device support 1920×1080 video recording resolution then i want to be able to record video with resolution 1920×800 for instance , i.e to crop frames height a bit. See : if i have this by default Normal video

Then i want to be able to crop video frames height a bit from above and bottom so i would have eventually video like this : Proccessed real time video with height cropped

I have searched a lot and didn’t find any result,i just found that camera2 api doesn’t support this feature . I would be greatful for any response .

500 Real monetized V.i.e.w.s in less than 7 days for $3

500 youtube views in 5 days! Monetized videos are allowed which means you could earn money from your videos Its real people, that’s watching your video. If they like your content they may even sub, like or even comment Why You Should Choose Us: ✔ Can order Multiple Quantities ✔ 100% SAFE & Natural Marketing ✔ 90 Days Refill Guarantee ✔ Your video’s counter will reflect the reached audience. ✔ Split available for multiple videos ✔ Real People ✔ Possible User Engagement ✔ 100% Unique Traffic ✔ Worldwide Audience Please be aware, if you are already using a seller to gain views at the same time your ordering this service, i will reject the order

by: YoutubeViews609
Created: —
Category: Video
Viewed: 807


Como atualizar um item em tempo real na tela do usuário sem duplicar o android com firebase

para criar um aplicativo de bate-papo para o estudo e com o firebase-realtime estou atualizando as informações, mas quando novas informações chegam na tela do usuário, os itens são duplicados em vez de substituir por novas informações, estou pesquisando e tentando algumas coisas, mas sem sucesso.

https://drive.google.com/file/d/19zuums0PUca_tS8ciMu3j4o6RPmliKJ9/view?usp=sharing

Estou usando o addChildEventListener e carregando os itens com o onChildAdded e atualizando com onChildChanged.

 public void RecuperarConversa(){     //    listaConversas.clear(); childEventListenerConversas =  conversasRef.addChildEventListener(new ChildEventListener() {             @Override             public void onChildAdded(DataSnapshot dataSnapshot, String s) {            //Recuperar Conversa                 Conversa conversa=dataSnapshot.getValue(Conversa.class);                 Iterator<Conversa> con= listaConversas.iterator();                 while (con.hasNext()){                     Conversa conValue = con.next();                     if(conValue.equals(conversa))con.remove();                 }                 listaConversas.add(conversa);                 adapter.notifyDataSetChanged();             }              @Override             public void onChildChanged(DataSnapshot dataSnapshot, String s) {                 Conversa conversa=dataSnapshot.getValue(Conversa.class);                 Iterator<Conversa> con= listaConversas.iterator();                 while (con.hasNext()){                     Conversa conValue = con.next();                     Log.i("sds","baixo");                     if(conValue.equals(conversa))con.remove();                 }                 listaConversas.add(conversa);                 adapter.notifyDataSetChanged();               }              @Override             public void onChildRemoved(DataSnapshot dataSnapshot) {               }              @Override             public void onChildMoved(DataSnapshot dataSnapshot, String s) {              }              @Override             public void onCancelled(DatabaseError databaseError) {              }         });      } 

adaptador:

 @Override     public void onBindViewHolder(MyViewHolder holder, int position) {     Conversa conversa = conversas.get(position);      holder.ultimaMensagem.setText(conversa.getUltimaMensagem());         if(conversa.getIsGroup().equals("true")){            Grupo grupo = conversa.getGrupo();            holder.nome.setText(grupo.getNome());            if(grupo.getFoto()!=null){                Uri uri=Uri.parse(grupo.getFoto());                Glide.with(context)                        .load(uri)                        .into(holder.foto);            }else{                holder.foto.setImageResource(R.drawable.padrao);            }        }else{            Usuario usuario= conversa.getUsuarioExibicao();            if(usuario!=null){                holder.nome.setText(usuario.getNome());                 if(usuario.getFoto()!=null){                    Uri uri=Uri.parse(usuario.getFoto());                    Glide.with(context)                            .load(uri)                            .into(holder.foto);                }else{                    holder.foto.setImageResource(R.drawable.padrao);                }            }         }      }  

eu tentei isso que vi na net porém sem sucesso

Iterator<Conversa> con= listaConversas.iterator();                 while (con.hasNext()){                     Conversa conValue = con.next();                     if(conValue.equals(conversa))con.remove();                 } 

500 Real monetized V.i.e.w.s in less than 4 days for $3

500 youtube views in 5 days! Monetized videos are allowed which means you could earn money from your videos Its real people, that’s watching your video. If they like your content they may even sub, like or even comment Why You Should Choose Us: ✔ Can order Multiple Quantities ✔ 100% SAFE & Natural Marketing ✔ 90 Days Refill Guarantee ✔ Your video’s counter will reflect the reached audience. ✔ Real People ✔ Possible User Engagement ✔ 100% Unique Traffic ✔ Worldwide Audience If you got any question, be sure to pm or join my discord server https://discord.gg/8qna33N

by: YoutubeViews609
Created: —
Category: Video
Viewed: 478


How reset $form_state on ajax call for get real value in submit?

I have see some post about that,but i still have no real answer.

In my form, user can select a register address in a select field. When he select an address, the ajax set value on some other fields :

enter image description here

The code :

  if($  form_state->getTriggeringElement()['#name']=="mes_adresses")   {       $  listAdresse = $  this->adresse_service->getUserAdresseById($  form_state->getValue('mes_adresses'));    }     $  form['containerGeneral']['livraison']['adresseComplete']['nom_livraison'] = array(       '#title' => 'Nom de livraison',       '#type' => 'textfield',       '#value' => $  listAdresse['nom'],   );    $  form['containerGeneral']['livraison']['adresseComplete']['prenom_livraison'] = array(       '#title' => 'Prénom de livraison',       '#type' => 'textfield',       '#value' => $  listAdresse['prenom'],   );      $  form['containerGeneral']['livraison']['adresseComplete']['pays_livraison'] = array(       '#title' => 'Pays de livraison',       '#type' => 'select',       '#required'=>true,       '#options'=>$  this->taxonomy_service->getTermsByVid('pays_livraison'),             '#value' => $  listAdresse['pays'],   );    $  form['containerGeneral']['livraison']['adresseComplete']['adresse_livraison'] = array(       '#title' => 'Adresse de livraison',       '#type' => 'textfield',       '#value' =>  $  listAdresse['adresse'],   );    $  form['containerGeneral']['livraison']['adresseComplete']['adresse2_livraison'] = array(       '#title' => 'Adresse de livraison',       '#type' => 'textfield',       '#value' =>$  listAdresse['adresse2'],   );    $  form['containerGeneral']['livraison']['adresseComplete']['cp_livraison'] = array(       '#title' => 'Code postal de livraison',       '#maxlength'=>5,       '#type' => 'textfield',       '#value' => $  listAdresse['code_postal'],   );    $  form['containerGeneral']['livraison']['adresseComplete']['ville_livraison'] = array(       '#title' => 'Ville de livraison',       '#type' => 'textfield',       '#value' =>$  listAdresse['ville'],   ); 

And the callback :

public function ajaxChangeAdresseCallback(array &$  form, FormStateInterface $  form_state) {      $  form_state->setRebuild(TRUE);     return  $  form['containerGeneral']['livraison']['adresseComplete'];  } 

So there are 2 things :

#value

If you set value like that, user can never change the value because

$  form_state->getValue() 

ll keep the value set by the ajax.

#default_value

If you set the value like that, that doesn’t work because the #default_value parameter if use just the first time the form is loaded.

The main problem is with $ form_state.

If you kint when you submit your form $ form_state->getValue() and $ _POST, $ _POST is good but not the $ form_state.

But the issue are in the validate function too, if user select the option new address, ajax reload the form, set empty everywhere, and when you submit, the validate function ll tell you you have empty value.

I know on D7 some people unset the $ form_state[‘values];

But on D8 ?

So how reset the $ form_state value ?

Drive 5000+ Worldwide Real Human Web Traffics professionally for $1

Hello Buyers, I will drive 15000 quality web traffic within 7 days. Welcome to the best & Cheap TRAFFIC Service on SEO Clerks.( 15000 visitors guaranteed) . How can we offer so many visitors at this low prices? We are NOT re sellers. We are a wholesale seller. Boost your Alexa ranking with visits from MAJOR countries About our service: ✔️100% Real Visitors ✔️Instant Start ✔️30 Days Money back Guarantee ✔️Trusted new seller ✔️24/7 Support ✔️No Bots ✔️Express Delivery ✔️100% Safe Penguin and panda. Please Try me once and place an order soon.

by: Marjiarahman
Created: —
Category: Traffic
Viewed: 161