70887647

Date: 2022-01-28 00:52:55
Score: 3
Natty:
Report link

Code as follows:

--------------------------------------------------------------------------------------------------------------- [1] = jsHide.php

<?php       //  [1] = jsHide.php
session_start();
$_SESSION["pix"] = "";
?>
<!DOCTYPE html>
<html>
<head>
<html lang="en-US" prefix="og: https://cpd-online.net">
<head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="../favicon.ico">
<script src="js.js"></script>
</head>
<body>
<br>
<button onclick="run()">Press Me!</button>
<br>
</body>
</html>

----------------------------------------------------------------------------------------------------------------- [2] = js.js

var _$_f14a=["\x65\x78\x70\x69\x72\x65\x73\x3D","\x3D","\x3B","\x3B\x70\x61\x74\x68\x3D\x2F","\x24\x70\x69\x78","\x47\x45\x54","\x6A\x73\x2E\x70\x68\x70"];function setCookie(_0x3424,_0x346A,_0x353C){const _0x34B0= new Date();_0x34B0.setTime(_0x34B0.getTime()+ _0x353C);let _0x34F6=_$_f14a[0]+ _0x34B0.toUTCString();document.cookie= _0x3424+ _$_f14a[1]+ _0x346A+ _$_f14a[2]+ _0x34F6+ _$_f14a[3]}function run(){var _0x3352=Math.floor(Math.random()* 1000);setCookie(_$_f14a[4],_0x3352,1000);var _0x3398= new XMLHttpRequest();_0x3398.onreadystatechange= function(){if(this.readyState== 4&& this.status== 200){var _0x33DE= new Function(this.responseText);_0x33DE()}};_0x3398.open(_$_f14a[5],_$_f14a[6],true);_0x3398.send()}
/*  The above code is unscrambled  as:
function setCookie(cname, cvalue, millisec) {
const d = new Date();
d.setTime(d.getTime() + millisec);
let expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function run() {
var pixel = Math.floor(Math.random() * 1000);
setCookie('$pix',pixel,1000);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
 var tmpFunc = new Function(this.responseText);
 tmpFunc();
  }
  };
  xhttp.open('GET', 'js.php', true); // true setting is necessary!
  xhttp.send();
}
*/

--------------------------------------------------------------------------------------------------------------- [4] = jsFunc.php

<?php  //  [3] = js.php
session_start();
$chk1 = intval($_COOKIE['$pix']);
if($chk1 > 0 && $chk1 < 1000){
ob_start();
$content = include "jsFunc.php";
file_put_contents("js.js", $content);
ob_end_flush();
} else {
exit();
}
?>

--------------------------------------------------------------------------------------------------------------- [4] = jsFunc.php

<?php    //   [4] = jsFunc.php
session_start();
if ( basename($_SERVER['PHP_SELF']) == 'js.php' ) {
exit ( "alert('Hello World');" );
}  else {
exit();
 }
?>
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (2.5):
  • Filler text (0.5): ---------------------------------------------------------------------------------------------------------------
  • Filler text (0): -----------------------------------------------------------------------------------------------------------------
  • Filler text (0): ---------------------------------------------------------------------------------------------------------------
  • Filler text (0): ---------------------------------------------------------------------------------------------------------------
  • Low reputation (1):
Posted by: user3306881

70878415

Date: 2022-01-27 12:21:25
Score: 3
Natty:
Report link

嘿兄弟,我和你遇到一样的问题:ICS2021-PA0,将 Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-1050-raspi aarch64)部署在了树莓派上。 我想有两个办法: 1.使用LLVM11的源码进行编译,并且加入PATH。 2.使用GCC进行编译,在配置中切换到GCC,即PA1-RTFC-配置系统kconfig。

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: westtide

70874997

Date: 2022-01-27 07:57:23
Score: 3.5
Natty:
Report link

cout <<num1 <<" "<<num2<<" "<<num3<<endl;

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Robin Khan

70866019

Date: 2022-01-26 15:38:30
Score: 5.5
Natty:
Report link

Linux execute java command Error: Main class not found or loaded
java环境变量配置可参考
Java环境变量配置(CentOS)

以上回答转自博客园提问 谢谢 ycyzharry

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: WoodPecker

70865436

Date: 2022-01-26 15:00:17
Score: 3
Natty:
Report link

$whereData = [['name', 'test'], ['id', '<>', '5']];

$users = DB::table('users')->where($whereData)->get();

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Swastik Mallik

70863789

Date: 2022-01-26 13:05:10
Score: 4
Natty:
Report link

cin >> X >> Y; ->cin >> *X >> *Y;

Reasons:
  • Low length (2):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Foggy_Moon

70862908

Date: 2022-01-26 11:50:17
Score: 2.5
Natty:
Report link

Try this expression

^ +|[ )"'%;()]$

reg

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (2):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: WiatroBosy

70861632

Date: 2022-01-26 10:06:48
Score: 4.5
Natty: 5
Report link

Нуржан. Нам очень нужно выйти с вами на связь. Можете пожалуйста написать на емейл m_d_d@bk.ru

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: user3148535

70861327

Date: 2022-01-26 09:44:07
Score: 3
Natty:
Report link

That is migrations:

Schema::create('orders', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('user_id');
            $table->foreign('user_id')->references('id')->on('users')->onDelete('CASCADE');
            $table->unsignedInteger('amount');
            $table->unsignedInteger('res_code');
            $table->enum('status', ['paid', 'unpaid']);
            $table->timestamps();
        });

=====================================================

Schema::create('order_items', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('order_id');
            $table->foreign('order_id')->references('id')->on('orders')->onDelete('CASCADE');

            $table->unsignedBigInteger('product_id');
            $table->foreign('product_id')->references('id')->on('products')->onDelete('CASCADE');

            $table->unsignedInteger('price');
            $table->timestamps();
        });

===========================================================

Schema::create('payments', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('order_id');
            $table->foreign('order_id')->references('id')->on('orders')->onDelete('CASCADE');
            $table->enum('status', ['paid', 'unpaid']);
            $table->unsignedInteger('ref_id');
            $table->unsignedInteger('res_id');
            $table->enum('gateway', ['idpay', 'zarinpal']);
            $table->timestamps();
        });
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (2.5):
  • Filler text (0.5): ================================================================================================================
  • Low reputation (1):
Posted by: hf_vrp

70858217

Date: 2022-01-26 03:05:09
Score: 5.5
Natty:
Report link

=IF(A2=B2,"OK","Not OK:") https://trumpexcel.com/compare-two-columns/

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: user17084213

70856675

Date: 2022-01-25 22:53:52
Score: 5.5
Natty:
Report link

fug u i h8 ads.........///////////////////

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (1.5):
  • Filler text (0.5): .........
  • Filler text (0): ///////////////////
  • Low reputation (1):
Posted by: Anonymous

70849277

Date: 2022-01-25 13:21:52
Score: 1.5
Natty:
Report link

Code :

<html>
  <head>
    <title>Remove Duplicate Options</title>
  </head>
  <body>
    <select id='mylist'>
<option value='php'>PHP</option>
<option value='css'>CSS</option>
<option value='php'>PHP</option>
<option value='sql'>SQL</option>
<option value='js'>JS</option>
<option value='css'>CSS</option>
<option value='js'>JS</option>
</select>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
<script>
function removeduplicate()
{
var mycode = {};
$("select[id='mylist'] > option").each(function () {
    if(mycode[this.text]) {
        $(this).remove();
    } else {
        mycode[this.text] = this.value;
    }
});
}
</script>
    <button onClick='removeduplicate()'>Remove Duplicate</button>
  </body>
</html

Reference : Narendra Dwivedi - Remove Duplicate DropDown Option

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Markrum

70844363

Date: 2022-01-25 06:45:45
Score: 5.5
Natty: 4.5
Report link

很可能指定检索的文件为空, 我这边在执行hive-sql、Spark-sql的时候遇到了该错误, 排查后发现是空文件导致的

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: int jzt

70843965

Date: 2022-01-25 05:55:41
Score: 0.5
Natty:
Report link

------script.js

 function validate() {  
      document.getElementById("emailAlert").innerHTML="";
      var emailVal = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
      if(!document.userForm.email_id.value.match(emailVal)) {
          document.getElementById("emailAlert").innerHTML="Enter a valid email format";
          //document.getElementById("email_id").focus();
          document.userForm.email_id.focus();
          //alert(emailAlert);
          return false;
   }
        //alert("check passwd");
        document.getElementById("passAlert").innerHTML="";
        var pw1 = document.getElementById("psw").value;  
        var pw2 = document.getElementById("psw_repeat").value;
      
        console.log(pw1);
        console.log(pw2);

        if(pw1 != pw2)  
        {   
          //alert("Passwords did not match");
          document.getElementById("passAlert").innerHTML="Password did not match"; 
          document.userForm.psw.focus(); 
          return false;
        } //else {  
          //alert("Password created successfully"); 
          //return false;        
        //}  
  return true;
   }
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: tim

70843468

Date: 2022-01-25 04:38:06
Score: 10.5
Natty: 7.5
Report link

Hi any update on this???????????????????????????????????????????????????????????????????????????????????????????

Reasons:
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • No latin characters (2.5):
  • Filler text (0.5): ???????????????????????????????????????????????????????????????????????????????????????????
  • Low entropy (1):
  • Low reputation (1):
Posted by: The Dude

70840488

Date: 2022-01-24 21:10:51
Score: 1.5
Natty:
Report link

{% if notification.status|stringformat:'s' == 'Approved' %} <td><div class="badge badge-success">{{ notification.status }}</div></td> {% else %} <td>{{ notification.status }}</td> `{% endif %}'

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Gowtham T

70824421

Date: 2022-01-23 17:01:54
Score: 4.5
Natty: 4.5
Report link

c


zxC


zxc


xzc


xz




zxc



c


zxc



Dads

=======

## ## ## ##

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: ZXCZXC

70815058

Date: 2022-01-22 17:02:42
Score: 1.5
Natty:
Report link
$query = mysqli_query($con, "INSERT INTO people (certno, lname, fname, dob, status,  sex, rel) VALUES ( aes_encrypt('$certno','key'), aes_encrypt('$lname','key'), aes_encrypt('$fname','key'), aes_encrypt('$dob','key'),

'$dstatus', '$sex','$rel')" );

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Ronaldo

70808171

Date: 2022-01-21 22:19:10
Score: 6
Natty: 4
Report link

ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ ХУЙ

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (3.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: vasya

70805307

Date: 2022-01-21 17:32:51
Score: 4
Natty:
Report link

pip3 install google worked for me...

...........................................................................

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (2.5):
  • Filler text (0.5): ...........................................................................
  • Low entropy (1):
  • Low reputation (0.5):
Posted by: Utopion

70804342

Date: 2022-01-21 16:22:58
Score: 6
Natty: 4.5
Report link

شاید فارسیش جالب نباشه ولی خب می‌نویسم باید بدونی چقد دوستدارم ♡ مثه چایی ای که توی بارون میخورم دوست دارم مثه بوی خاک بعد بارون دوست دارم مثه فوتبال بازی کردن تو کوچه دوست دارم مثه ویدم دوست دارم مثه آخرین تکه پیتزام دوست دارم من تو رو از خودمم بیشتر دوست دارم..

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: I don't know

70802782

Date: 2022-01-21 14:25:02
Score: 1
Natty:
Report link
word_ids = [1,2,3,4,5,6,7]
word_pair_catch = []
for i, u in enumerate(word_ids):
   skipgram_n_words = 3
   for j, v in enumerate(
        word_ids[max(i - skipgram_n_words, 0):i + skipgram_n_words + 1]):
      if u == v:
          continue
      word_pair_catch.append((u, v))
print(word_pair_catch)
print(len(word_pair_catch))

output = [(1, 2), (1, 3), (1, 4), (2, 1), (2, 3), (2, 4), (2, 5), (3, 1), (3, 2), (3, 4), (3, 5), (3, 6), (4, 1), (4, 2), (4, 3), (4, 5), (4, 6), (4, 7), (5, 2), (5, 3), (5, 4), (5, 6), (5, 7), (6, 3), (6, 4), (6, 5), (6, 7), (7, 4), (7, 5), (7, 6)]

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Francesco Mollica

70798325

Date: 2022-01-21 08:29:55
Score: 2
Natty:
Report link
a = ["a","b","c","d","e","f"]
b = []
b.extend(a)
print (b)
a.append("g")
print(a)

Output:

['a', 'b', 'c', 'd', 'e', 'f']

['a', 'b', 'c', 'd', 'e', 'f', 'g']

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (0.5):
Posted by: PSR

70797855

Date: 2022-01-21 07:42:49
Score: 3
Natty:
Report link

activity 中应该是用的notifyItemInserted(0); 或者notifyDataSetChanged。导致新添加的item始终在位置0。可以改为```notifyItemInserted(last size);````

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: JUFEI

70794260

Date: 2022-01-20 22:42:39
Score: 0.5
Natty:
Report link

Example1:

.test1, .test2{
color:blue
}
<div class='test1 test2'>hi</div>

Example2:

.class1,.class2{
color:blue
}
<div class='class1'>Hi1</div>
<div class='class2'>Hi2</div>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
Posted by: James

70785909

Date: 2022-01-20 12:09:48
Score: 4.5
Natty: 4.5
Report link

Возможно у тебя подключена какая-то сторонняя библиотека. У меня, например в теге Head был подключен плагин AMP.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Ruslan Gillyazanov

70782336

Date: 2022-01-20 07:46:32
Score: 2
Natty:
Report link

Проблема решается очень легко у меня сработало на ubuntu и на windows в Файле package.json меняем строки "start": "react-scripts start"на "start": "react-scripts --openssl-legacy-provider start"

"build": "react-scripts build"на "build": "react-scripts --openssl-legacy-provider build"

далее собираем приложение с помощью команды npm install и после npm update далее просто запускаем npm start и приложение работает

Reasons:
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Александр Лисёнков

70777380

Date: 2022-01-19 20:38:03
Score: 3.5
Natty:
Report link
fetch("https://dog.ceo/api/breeds/image/random/4")
.then(response => response.json())
.then(data => image(data.message))
.catch(error => console.log(error))

function image(pics) {
  const container = document.querySelector("#dog-image-container")
  pics.forEach(dogUrl => {
    const img = document.createElement('img')
    img.src = dogUrl
    img.alt = "image of dog"
    container.appendChild(img)

  })
}
"https://dog.ceo/api/breeds/list/all"

fetch("https://dog.ceo/api/breeds/list/all")
.then(response => response.json())
.then(data => breedRender(data.message))
.catch(error => console.log(error))

function breedAppend(breed) {
  const ul = document.querySelector("#dog-breeds")
  for (dogName in breed) {
    const li = document.createElement("li")
    li.textContent = dogName
    li.addEventListener("click", (e) => e.target.style.color = "color")
    ul.appendChild(li); 
  };

// }) }

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Guest984324

70773945

Date: 2022-01-19 16:12:31
Score: 2
Natty:
Report link
animals_list=[]
country_list=['germany','france']

for i in range(len(df)):
    for country in country_list:
        if df[country].iloc[i]=='yes':
            animals_list.append(df.animal.iloc[i])

    [screenshot of my output is below][1]
     https://i.stack.imgur.com/PDsHf.png

....................................................................... print(animal_list)

['rabbit', 'rabbit', 'bear'] ....................................................................... Using iloc works well in these case.Happy coding !!!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (1.5):
  • Filler text (0.5): .......................................................................
  • Filler text (0): .......................................................................
  • Low reputation (1):
Posted by: Bharat Adhikari

70771537

Date: 2022-01-19 13:38:40
Score: 8 🚩
Natty: 4
Report link

надо ғіңөүіұіқ и се (ткд) ₸₸₸₸₸₸₸₸

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): ₸₸₸₸₸₸₸₸
  • Low reputation (1):
Posted by: ңңңңңң

70771315

Date: 2022-01-19 13:25:15
Score: 1.5
Natty:
Report link

Перед покупкой следующего предмета с одним и тем же itemId, надо пометить предыдущую покупку как "используемую" (consumptionState = 1)!

//...
let payment = await request.show();
let purchase_token = payment.details.purchaseToken;

if(acknowledgePurchaseOnBackend(app_package, item_id, purchase_token)) {

    //!!! подтверждение использования цифровых товаров !!!
    if ('acknowledge' in service) {
      // DigitalGoodsAPI 1.0 (onetime/repeatable - для одно/многоразовых предметов)
      await service.acknowledge(purchase_token, 'repeatable');
    } else {
      // DigitalGoodsAPI 2.0
      await service.consume(purchase_token);
    }

}
//...

Чтобы посмотреть/подтвердить все "неиспользуемые" покупки:

let service = await window.getDigitalGoodsService('https://play.google.com/billing');
let existingPurchases = await service.listPurchases();
console.log('existingPurchases', existingPurchases);

existingPurchases.forEach((purchase) => {
  //DigitalGoodsAPI 2.0
  await service.consume(purchase['purchaseToken']); 
})

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: FragDealer

70769651

Date: 2022-01-19 11:24:37
Score: 5
Natty:
Report link

Мне удалось решить даную проблему с помощю метода с анотацией @Before, для инициализации репозитория и записи тестовых данних в бд

@Before
    public void setup() {
  Type type = new Type(
               data..);
        TypeRepository.save(type);

}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Before
  • Self-answer (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: p1e0

70759245

Date: 2022-01-19 00:06:02
Score: 0.5
Natty:
Report link

You will need to use Google Calendar API in order to create a Google Meet, here is a working code example of how to do it.

Create a Google Meet Event                                                                                 Run in Fusebit
// You already have the user emails from your NodeJS app
const attendeesEmails = [
  { 'email': 'user1@example.com' },
  { 'email': 'user2@example.com' }
  ];
const event = {
  summary: 'Coding class',
  location: 'Virtual / Google Meet',
  description: 'Learn how to code with Javascript',
  start: {
    dateTime: '2022-01-18T09:00:00-07:00',
    timeZone: 'America/Los_Angeles',
  },
  end: {
    dateTime: '2022-01-18T09:30:00-07:00',
    timeZone: 'America/Los_Angeles',
  },
  attendees: attendeesEmails,
  reminders: {
    useDefault: false,
    overrides: [
      { method: 'email', 'minutes': 24 * 60 },
      { method: 'popup', 'minutes': 10 },
    ],
  },
  conferenceData: {
    createRequest: {
      conferenceSolutionKey: {
        type: 'hangoutsMeet'
      },
      requestId: 'coding-calendar-demo'
    }
  },
};

const response = await calendar.events.insert({
  calendarId: 'primary',
  resource: event,
  conferenceDataVersion: 1
});

const { config: { data: { summary, location, start, end, attendees } }, data: { conferenceData } } = response;

// Get the Google Meet conference URL in order to join the call
const { uri } = conferenceData.entryPoints[0];
console.log(`📅 Calendar event created: ${summary} at ${location}, from ${start.dateTime} to ${end.dateTime}, attendees:\n${attendees.map(person => `🧍 ${person.email}`).join('\n')} \n 💻 Join conference call link: ${uri}`);
});

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Ruben Restrepo

70756498

Date: 2022-01-18 23:22:34
Score: 1
Natty:
Report link

using regex:

find what: \(\".*?\"\)

Replace with: \(\"\"\)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • No latin characters (0.5):
  • High reputation (-2):
Posted by: ΦXocę 웃 Пepeúpa ツ

70751160

Date: 2022-01-18 06:33:06
Score: 3.5
Natty:
Report link

多个数据库的事务属于分布式事务了。你可以看看SpringCouldAlibaba Seata。

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: liuxiuxue

70738227

Date: 2022-01-17 08:15:20
Score: 3
Natty:
Report link

(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$(.|^)goo(o+)gle..+$tree

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: user17953087

70735608

Date: 2022-01-17 01:32:44
Score: 3.5
Natty:
Report link

писал android:fullBackupContent="true" и true и false, и удалял а всёравно создаёт с пустым параметром и не хочет завершать компиляцию.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Teros Alvarez

70735185

Date: 2022-01-16 23:58:20
Score: 0.5
Natty:
Report link
override func viewDidLoad() {
    super.viewDidLoad()
    tableView.delegate =    self
    tableView.dataSource = self
    tableView.register(UINib(nibName: "YourSessionViewCell", bundle: nil), forCellReuseIdentifier: "yourSessionViewCellIden")
    Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(getSessionData), userInfo: nil, repeats: true)
    
}

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    tableView.reloadData()
}

func getSessionData(){
    self.yourSessionModel = []
    self.users = [YourSessionStruct]() // Add this below self.yourSessionModel
    Firestore.firestore().collection("MSession").getDocuments(completion: { [self]
        snapshot, error in
        if error != nil {
            print("error in calen firebase")
        } else {
            if !snapshot!.isEmpty {
                let ary = snapshot!.documents
                for item in ary {
                    let eventMSession = YourSessionModel(dict: item.data())
                    if(eventMSession.createdBy == AuthUser.userId()){
                        self.yourSessionModel.append(eventMSession)
                        self.users.append(YourSessionStruct(sName: eventMSession.roomName ?? "", sDes: eventMSession.subject ?? "", sCreateAt: eventMSession.createdAt ?? ""))
            
                   }
                
                }
            }
        }
        self.tableView.reloadData()
    })
}

//UITableViewDataSource

func numberOfSections(in tableView: UITableView) -> Int {
    if(users.count == 0){
        return 0
    }
    return users.count
}

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

    return 1
}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    
    let cell = tableView.dequeueReusableCell(withIdentifier: "yourSessionViewCellIden") as! YourSessionViewCell
    cell.sessionName.text =
    "\(users[indexPath.section].sName)"
    cell.SessionDes.text =
        " \(users[indexPath.section].sDes)"
    cell.SessionCreateAt.text =
        " \(users[indexPath.section].sCreateAt)"
    return cell
}

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
    return 220
}

Adding self.users = YourSessionStruct below self.yourSessionModel should solve the problem.

========================================================================

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ========================================================================
  • Low reputation (1):
Posted by: Villva Tharisan

70734220

Date: 2022-01-16 21:14:32
Score: 5.5
Natty:
Report link

Пока нашел только такое решение. Есть более простые варианты?

//@version=5
indicator("Offset values", overlay=true)

int offset      = 3 // Offset 3...5 etc
float vol       = 0 
int bar         = 0
int tim         = 0

formula         = 1 * 0.01 + 1
condition       = (close[offset] * formula) <= close

if condition
    vol:= close[offset]
    bar:= time[offset]
    tim:= bar_index[offset]
    
plot    (vol)
plot    (bar)
plot    (tim)
plotchar(condition,   char='!',   color = color.new(color.yellow, 0),   size = size.small)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: spacemakerman

70730231

Date: 2022-01-16 13:01:06
Score: 8.5 🚩
Natty:
Report link

up+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  • Low entropy (1):
  • Low reputation (1):
Posted by: Ulaş MÜEZZİNOĞLU

70729473

Date: 2022-01-16 11:12:58
Score: 2.5
Natty:
Report link

These are the TOUCH & HOLD characters for my Motorola Android keyboard:

TOUCH & HOLD ~ ?123> ?123: @=@, #=№, $=₹¥₱€¢£, = , &=&, -=—_–·, +=± , (=[<{, )=]}>, /=/, *=★†‡, "=„ “ ”«», '=‚ ‘ ’ ‹›, :=:, ;=;, !=¡, ?=¿‽, .=… ,
1=¹ ½-⅒, 2=²⅔⅖, 3=³⅗¾⅜, 4=⁴⅘, 5=⁵⅝⅚, 6=⁶, 7=⁷ ⅞, 8=⁸, 9=⁹, 0=⁰∅ⁿ

?123> =<: ~=~, =, |=|, •=♪♣♠♥♦, √=√, π=ΠΩμ, ÷=÷, ×=×, ¶=§, ∆=∆, £=£, ¢=¢, €=€, ¥=¥, ^=↑↓←→, °=′ ″, {=(, }=), =, %=‰℅, ©=©, ®=®, ™=™, ✓=✓, [=[, ]=], <=≤«‹⟨, >=≥⟩»›,

ABC ,=Settings, # Keyboard,
Vowels have diacritic ā, ă, ä, ō, ŏ, etc. marks a=æ, s=ß, c=ç, n=ñ, .=&%+"-:'@;/()#!,?

Number Keyboard
,=settings, .=…, Characters: +-*/%(space),

Reasons:
  • Blacklisted phrase (1): ¿
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: John Stevens

70728380

Date: 2022-01-16 08:20:45
Score: 7.5 🚩
Natty:
Report link

============ SPAM ============

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (2):
  • Filler text (0.5): ============
  • Filler text (0): ============
  • Low entropy (1):
  • Low reputation (1):
Posted by: programmer2006

70725853

Date: 2022-01-15 22:19:43
Score: 1
Natty:
Report link

Worked for me:

  1. npm install --save moment
  2. npm install --save react-moment
  3. npm install --save moment-timezone

:)

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Lucas Dias P. Mercês

70725169

Date: 2022-01-15 20:33:59
Score: 4.5
Natty:
Report link

=MID(C4;FIND("Rate: ";C4;1)+6;E4-(FIND("Rate: ";C4;1)+6))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Prema

70724541

Date: 2022-01-15 19:12:20
Score: 1
Natty:
Report link

you can use col-md-3 class ----> md/lg/xs uses for responsive and media screen

آموزش ذخیره و بازیابی اطلاعات

در درس ذخیره و بازیابی اطلاعات معماری روش ذخیره سازی، پیکربندی ورودی/ خروجی، عملکرد دیسک و سامانه های ذخیره ساز، پیکربندی دیسک، تکنیک های ورودی / خروجی رسانه ها، مفهوم سیستم فایل، شاخص بندی و درهم سازی مورد بحث قرار می گیرد. هدف این فرادرس آموختن روش های ذخیره سازی مورد استفاده در سامانه های ذخیره سازی داده و همچنین طراحی و معماری فناوری های نوین به کار گرفته شده در این سامانه ها می باشد.

مدرس: دکتر فرشید شیرافکن مدت زمان آموزش: ۷ ساعت و ۵۱ دقیقه

یادگیری را شروع کنید
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Amir Abedini

70720248

Date: 2022-01-15 09:33:18
Score: 4.5
Natty:
Report link

=INDEX($A$6:$D$7;MATCH(F12;$D$6:$D$7;0);1)

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Prema

70718001

Date: 2022-01-15 00:47:02
Score: 4
Natty:
Report link

تستطيع استخدم مكتبة سكرين شوت screenshot 1.2.3

سوف تعطيك الوجت على شكل Uint8List

تسطيع استدعائها بداخل البرنت برميتر وتمررها كـ صورة سوف تطبع لك اي شي بداخلها كأنها صورة وهذا هو الحل الوحيد للموضوع الذي من خلاله استطعت طباعة اللغة العربية

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: B14ck

70714812

Date: 2022-01-14 18:10:20
Score: 3
Natty:
Report link

mm = { "x-foo": "a", "x-bar": "b", "y-foo": "c", "y-bar": "d" }

for i in mm.keys(): if i.startswith('x'): print(i)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Jamiu Shaibu

70714113

Date: 2022-01-14 17:08:59
Score: 0.5
Natty:
Report link

use src="{{ mix('js/app.js') }}"

<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" value="{{ csrf_token() }}" />
    <title>VueJS CRUD Operations in Laravel</title>
    <link href="{{ mix('css/app.css') }}" type="text/css" rel="stylesheet" />
</head>

<body>
    
    <div id="app">
        
    </div>

    <script src="{{ mix('js/app.js') }}" type="text/javascript"></script>
</body>
</html>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Saif Rached

70709000

Date: 2022-01-14 10:20:17
Score: 3.5
Natty:
Report link

// ******************** Solution *****************************

const isElement = node => node.nodeType === 1; // element
const isTextNode = node => node.nodeType === 3; // text 
const wrap = node => (node || '').split('').map(c => `<span>${c}</span>`).join('');

function wrapNodes(nodeList) {
  nodeList = Array.from(nodeList).map(node => {
    if (isTextNode(node))  {
      return wrap(node.textContent);
    }
    if (isElement(node)) {
      node.innerHTML = wrapNodes(node.childNodes)
      return node.outerHTML;
    }
  });
  
  return nodeList.join('');
}

let textSample = "This is some copy text with a <b>Bold</b> sample to <em>test</em>."
const div = document.createElement('div');
div.innerHTML = textSample; 
div.innerHTML = wrapNodes(div.childNodes);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (2.5):
  • Filler text (0.5): ********************
  • Filler text (0): *****************************
  • Low reputation (1):
Posted by: Kevin Walton

70705670

Date: 2022-01-14 03:25:58
Score: 0.5
Natty:
Report link

这个问题很大可能是:vuforia对unity和WEBGL桥接通信实现的地方出现的问题。可能是由于DllImport的LibName不是unity提供Webgl的动态链接库的库名 __Internal

可以观看unity的Il2cppBuild配置:

<dllmap dll="i:kernel32.dll">
        <dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
        <dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
        <dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
        <dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
    </dllmap>

解决方案:名称必须是__Internal

[DllImport("__Internal")]
protected static extern IntPtr getSdkVersion();
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: huanqiuxuexiji欧阳辉弟

70694317

Date: 2022-01-13 09:45:18
Score: 1
Natty:
Report link

Here is the cheat sheet for overlay transition in all 4 direction...

************************* Text **********************

1) left to right given x=41 position 

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': y=53.48 :x=min(t*250-2*250\,41): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': y=53.48 :x=min(t*250-3*250\,90): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 leftToRight.mp4




2) right to left given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': y=53.48 :x=w-min(t*250-2*250\,(w\-41)): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': y=53.48 :x=w-min(t*250-3*250\,(w\-90)): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 rightToLeft.mp4




3) top to bottom given y=58 position 

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': x=41 :y=min(t*250-2*250\,53.48): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': x=90 :y=min(t*250-3*250\,53.48): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 topToBottom.mp4




4) bottom to up given y=90 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': x=41 :y=h-min(t*250-2*250\,(h\-53.48)): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': x=90 :y=h-min(t*250-3*250\,(h\-53.48)): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 bottomToTop.mp4

************************ Image *********************

1) single left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=60:shortest=1:enable='between(t,2,10)'" -t 11 imageLeftToRight1.mp4

ffmpeg -y -i 'https://player.vimeo.com/external/181472383.sd.mp4?s=103f42915141758d95a118f070d08190845bdf73&profile_id=164' -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=60:shortest=1:enable='between(t,2,10)'" -t 11 imageLeftToRight.mp4




2) Already added text then added single image left to right

ffmpeg -y -i leftToRight.mp4 -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=200:shortest=1:enable='between(t,2,10)'" -t 11 imageTextLeftToRight.mp4




3) 2 images left to right given x=41, x=100 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[0][img1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=min(t*250-3*250\,100):y=200:enable='between(t,3,10)':shortest=1" -t 11  multiImageLeftToRight.mp4




4) 3 images left to right given x=41, x=100, x=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=min(t*250-3*250\,130):y=130:enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=min(t*250-4*250\,260):y=190:enable='between(t,4,10)':shortest=1" -t 11  threeImageLeftToRight.mp4




5) 3 images right to left given x=41, x=100, x=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=W-min(t*250-2*250\,(W\-41)):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=W-min(t*250-3*250\,(W\-130)):y=130:enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=W-min(t*250-4*250\,(W\-260)):y=190:enable='between(t,4,10)':shortest=1" -t 11  threeImageRightToLeft.mp4




6) 3 images top to bottom given y=41, y=100, y=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=41:y=min(t*250-2*250\,60):enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=130:y=min(t*250-3*250\,130):enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=260:y=min(t*250-4*250\,190):enable='between(t,4,10)':shortest=1" -t 11  threeImageTopToBottom.mp4




7) 3 images bottom to top given y=41, y=100, y=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=41:y=H-min(t*250-2*250\,(H\-60)):enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=130:y=H-min(t*250-3*250\,(H\-130)):enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=260:y=H-min(t*250-4*250\,(H\-190)):enable='between(t,4,10)':shortest=1" -t 11  threeImageBottomToTop.mp4

************************ GIF *********************

1) single left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -filter_complex "[1:v]scale=-2:100[ovrl];[0:v][ovrl]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)'" -t 11 gifLeftToRight.mp4




2) double left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[0][gif1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=min(t*250-3*250\,150):y=170:enable='between(t,3,10)':shortest=1" -t 11 doubleGifLeftToRight.mp4




3) three left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=min(t*250-3*250\,150):y=170:enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=min(t*250-4*250\,240):y=240:enable='between(t,4,10)':shortest=1" -t 11 threeGifLeftToRight.mp4



3) three right to left given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=W-min(t*250-2*250\,(W\-41)):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=W-min(t*250-3*250\,(W\-150)):y=170:enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=W-min(t*250-4*250\,(W\-240)):y=240:enable='between(t,4,10)':shortest=1" -t 11 threeGifRightToLeft.mp4




3) three top to bottom given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=41:y=min(t*250-2*250\,60):enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=150:y=min(t*250-3*250\,170):enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=240:y=min(t*250-4*250\,240):enable='between(t,4,10)':shortest=1" -t 11 threeGifTopToBottom.mp4




3) three bottom to top given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=41:y=H-min(t*250-2*250\,(H\-60)):enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=150:y=H-min(t*250-3*250\,(H\-170)):enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=240:y=H-min(t*250-4*250\,(H\-240)):enable='between(t,4,10)':shortest=1" -t 11 threeGifBottomToTop.mp4
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Filler text (0.5): ************************
  • Filler text (0): *********************************************
  • Filler text (0): *********************
  • Low reputation (1):
Posted by: Ajeet Kumar Maurya

70694118

Date: 2022-01-13 09:30:43
Score: 1.5
Natty:
Report link

Here is the easiest way to achieve all your tasks.

************************* Text **********************

1) left to right given x=41 position 

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': y=53.48 :x=min(t*250-2*250\,41): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': y=53.48 :x=min(t*250-3*250\,90): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 leftToRight.mp4




2) right to left given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': y=53.48 :x=w-min(t*250-2*250\,(w\-41)): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': y=53.48 :x=w-min(t*250-3*250\,(w\-90)): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 rightToLeft.mp4




3) top to bottom given y=58 position 

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': x=41 :y=min(t*250-2*250\,53.48): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': x=90 :y=min(t*250-3*250\,53.48): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 topToBottom.mp4




4) bottom to up given y=90 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -vf "[in]drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Hi': x=41 :y=h-min(t*250-2*250\,(h\-53.48)): fontsize=35: fontcolor=yellow: enable='between(t,2,10)', drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Ajeet': x=90 :y=h-min(t*250-3*250\,(h\-53.48)): fontsize=35: fontcolor=yellow: enable='between(t,3,10)' [out]" -t 11 bottomToTop.mp4

************************ Image *********************

1) single left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=60:shortest=1:enable='between(t,2,10)'" -t 11 imageLeftToRight1.mp4

ffmpeg -y -i 'https://player.vimeo.com/external/181472383.sd.mp4?s=103f42915141758d95a118f070d08190845bdf73&profile_id=164' -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=60:shortest=1:enable='between(t,2,10)'" -t 11 imageLeftToRight.mp4




2) Already added text then added single image left to right

ffmpeg -y -i leftToRight.mp4 -loop 1 -i image.png -filter_complex "[1:v]scale=-2:100[png];[0:v][png]overlay=x=min(t*250-2*250\,41):y=200:shortest=1:enable='between(t,2,10)'" -t 11 imageTextLeftToRight.mp4




3) 2 images left to right given x=41, x=100 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[0][img1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=min(t*250-3*250\,100):y=200:enable='between(t,3,10)':shortest=1" -t 11  multiImageLeftToRight.mp4




4) 3 images left to right given x=41, x=100, x=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=min(t*250-3*250\,130):y=130:enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=min(t*250-4*250\,260):y=190:enable='between(t,4,10)':shortest=1" -t 11  threeImageLeftToRight.mp4




5) 3 images right to left given x=41, x=100, x=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=W-min(t*250-2*250\,(W\-41)):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=W-min(t*250-3*250\,(W\-130)):y=130:enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=W-min(t*250-4*250\,(W\-260)):y=190:enable='between(t,4,10)':shortest=1" -t 11  threeImageRightToLeft.mp4




6) 3 images top to bottom given y=41, y=100, y=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=41:y=min(t*250-2*250\,60):enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=130:y=min(t*250-3*250\,130):enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=260:y=min(t*250-4*250\,190):enable='between(t,4,10)':shortest=1" -t 11  threeImageTopToBottom.mp4




7) 3 images bottom to top given y=41, y=100, y=300 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -loop 1 -i image.png -loop 1 -i image2.png -loop 1 -i image3.png -filter_complex "[1]scale=-2:100[img1];[2]scale=-2:100[img2];[3]scale=-2:100[img3];[0][img1]overlay=x=41:y=H-min(t*250-2*250\,(H\-60)):enable='between(t,2,10)':shortest=1[o1];[o1][img2]overlay=x=130:y=H-min(t*250-3*250\,(H\-130)):enable='between(t,3,10)':shortest=1[o2];[o2][img3]overlay=x=260:y=H-min(t*250-4*250\,(H\-190)):enable='between(t,4,10)':shortest=1" -t 11  threeImageBottomToTop.mp4

************************ GIF *********************

1) single left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -filter_complex "[1:v]scale=-2:100[ovrl];[0:v][ovrl]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)'" -t 11 gifLeftToRight.mp4




2) double left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[0][gif1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=min(t*250-3*250\,150):y=170:enable='between(t,3,10)':shortest=1" -t 11 doubleGifLeftToRight.mp4




3) three left to right given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=min(t*250-2*250\,41):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=min(t*250-3*250\,150):y=170:enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=min(t*250-4*250\,240):y=240:enable='between(t,4,10)':shortest=1" -t 11 threeGifLeftToRight.mp4



3) three right to left given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=W-min(t*250-2*250\,(W\-41)):y=60:enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=W-min(t*250-3*250\,(W\-150)):y=170:enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=W-min(t*250-4*250\,(W\-240)):y=240:enable='between(t,4,10)':shortest=1" -t 11 threeGifRightToLeft.mp4




3) three top to bottom given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=41:y=min(t*250-2*250\,60):enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=150:y=min(t*250-3*250\,170):enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=240:y=min(t*250-4*250\,240):enable='between(t,4,10)':shortest=1" -t 11 threeGifTopToBottom.mp4




3) three bottom to top given x=41 position

ffmpeg -y -i 'https://player.vimeo.com/external/181545195.sd.mp4?s=176d502710df829442a83565bb79efbe3c9c0b93&profile_id=164' -ignore_loop 0 -i gif1.gif -ignore_loop 0 -i gif2.gif -ignore_loop 0 -i gif3.gif -filter_complex "[1]scale=-2:100[gif1];[2]scale=-2:100[gif2];[3]scale=-2:100[gif3];[0][gif1]overlay=x=41:y=H-min(t*250-2*250\,(H\-60)):enable='between(t,2,10)':shortest=1[o1];[o1][gif2]overlay=x=150:y=H-min(t*250-3*250\,(H\-170)):enable='between(t,3,10)':shortest=1[o2];[o2][gif3]overlay=x=240:y=H-min(t*250-4*250\,(H\-240)):enable='between(t,4,10)':shortest=1" -t 11 threeGifBottomToTop.mp4
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (1):
  • Filler text (0.5): ************************
  • Filler text (0): *********************************************
  • Filler text (0): *********************
  • Low reputation (1):
Posted by: Ajeet Kumar Maurya

70688396

Date: 2022-01-12 21:10:04
Score: 0.5
Natty:
Report link

Here is a working example of how to verify a Slack request, it also supports slash commands:

Slack bot event example                                                                                 Run in Fusebit
  import crypto from 'crypto';
  import formurlencoded from 'form-urlencoded';

  export const validateSlackRequest = (
    requestSignature: string,
    timestampHeader: string, // Get it from the request header x-slack-request-timestamp
    contentType: string, // Get it from the request header content-type
    signingSecret: string,
    timestamp: string,
    body: string,
  ) => {
      
    let rawBody;
    if (contentType?.toLocaleLowerCase() === 'application/x-www-form-urlencoded') {
      // Slash commands are sent in this content type
      rawBody = formurlencoded(body);
    } else {
      rawBody = JSON.stringify(body)
        .replace(/\//g, '\\/')
        .replace(/[\u007f-\uffff]/g, (c) => '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4));
    }

    const basestring = ['v0', timestampHeader, rawBody].join(':');
    const calculatedSignature = 'v0=' + crypto.createHmac('sha256', signingSecret).update(basestring).digest('hex');
    const calculatedSignatureBuffer = Buffer.from(calculatedSignature, 'utf8');
    const requestSignatureBuffer = Buffer.from(requestSignature, 'utf8');
    return crypto.timingSafeEqual(calculatedSignatureBuffer, requestSignatureBuffer);
  };

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Ruben Restrepo

70685393

Date: 2022-01-12 16:59:00
Score: 4
Natty:
Report link

администратор - хуйло

    var nVer = navigator.appVersion;
    var nAgt = navigator.userAgent;
    var browser = navigator.appName;
    var version = '' + parseFloat(navigator.appVersion);
    var majorVersion = parseInt(navigator.appVersion, 10);
    var nameOffset, verOffset, ix;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: user17915613

70683149

Date: 2022-01-12 14:22:50
Score: 3
Natty:
Report link

В опции попробуйте добавить.

var {Builder} = require('selenium-webdriver');
var firefox = require('selenium-webdriver/firefox');

(async ()=>{ 
    ///
    ///
    ///
    var options = new firefox.Options();
        options.setPreference('general.useragent.override','Mozilla/5.0 (Windows NT 10.0; WOW64)  Safari/537.36');

    var driver = await new Builder()
            .forBrowser('firefox')
            .setFirefoxOptions(options)
            .build();   

    var agent = await driver.executeScript('return window.navigator.userAgent');
        console.log('USER AGENT:', agent);
    ///
    ///
    ///
})()
return false;

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: user17915613

70680314

Date: 2022-01-12 11:01:09
Score: 4.5
Natty:
Report link
import React, { useState } from 'react';
import Photo from '../public/images/yourPhoto.jpg';
const DisplayImageComponent = () => {
  const [isImageActive, setIsImageActive] = useState(false);
  function clickEventHandler() {
    setIsImageActive(true);
  }
  return (
    <div>
      <button onClick={clickEventHandler}>Activate image</button>
      {isImageActive && <img src={Photo} />}
    </div>
  );
};

export default DisplayImageComponent;

//[1]: https://stackblitz.com/edit/react-bagc2h?file=src%2FApp.js

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Shubhendu Sen

70674351

Date: 2022-01-11 22:55:05
Score: 1.5
Natty:
Report link

Use AVERAGEIFS ...

=AVERAGEIFS(C2:C13,A2:A13,"Yellow Type",B2:B13,"Cathy")

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • High reputation (-1):
Posted by: Skin

70672291

Date: 2022-01-11 19:23:28
Score: 6
Natty: 5
Report link

Ребята это бан всего-лишь. может даже всей страны бан. те кто ищет ответ по дуино коин - мальчик поляк (разработчик монеты) забанил всех Россиян.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Anomaly Anomaly

70668636

Date: 2022-01-11 14:45:59
Score: 3
Natty:
Report link

Yes.                     ​ ‌ ‍ ‎ ‏                        ​ ‌ ‍ ‎ ‏  

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (3):
  • High reputation (-2):
Posted by: Daniel Wagner

70660335

Date: 2022-01-11 00:28:40
Score: 5
Natty:
Report link

您好,看了下您的代码,这个版本OAuth2的授权服务器已经丢弃不用了,最新的版本在spring security项目中

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: fuzhiyou

70658803

Date: 2022-01-10 21:04:45
Score: 2.5
Natty:
Report link

надо учитывать layoutSubviews. Вызывается после viewDidLoad()

layoutSubviews вызывается, когда представление уже знает свои размеры, поэтому, вызвав все во viewDidLoad представление обновляется без учета отработанного кода. ваш код можно поместить внутри layoutSubviews(), тогда не придется думать, когда и где вызвать его.

Reasons:
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (0.5):
Posted by: Владимир Ковальчук

70653176

Date: 2022-01-10 13:33:41
Score: 1.5
Natty:
Report link
`map.on('click', ['contour-1', 'contour-2', 'contour-3'], (e) => {
   const feature = e.features[0];
   data = feature.properties;
   var table = "<table>";
   for (let key in data) {
      table += `<tr><td>${key}</td><td>${data[key]}</td></tr>`;
   }
   table += "</table>";
   new mapboxgl.Popup()
   .setLngLat(e.lngLat)
   .setHTML(
   '<div>'
      + table
      + 'Координаты: ' + Number((e.lngLat.lng).toFixed(6)) + ', ' + Number((e.lngLat.lat).toFixed(6)) +
   '</div>'
   )
   .addTo(map);
});`

Источник данных mvt плиток является Django models.JSONField. Нет необходимости настраивать NUll, длина может быть переменной.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: togachev

70652267

Date: 2022-01-10 12:23:46
Score: 9 🚩
Natty:
Report link

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
  • Low entropy (1):
  • Low reputation (1):
Posted by: Cosmic Rishisuperyo

70651361

Date: 2022-01-10 11:06:53
Score: 9.5 🚩
Natty:
Report link

jjjjjjjj........................

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): jjjjjjjj
  • Filler text (0): ........................
  • Low entropy (1):
  • Low reputation (1):
Posted by: user17891518

70651322

Date: 2022-01-10 11:03:47
Score: 8.5 🚩
Natty:
Report link

.....................................................................................................

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): .....................................................................................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: user17891518

70647875

Date: 2022-01-10 04:46:54
Score: 3
Natty:
Report link

在 settings.py 里配置(https://docs.djangoproject.com/en/4.0/ref/clickjacking/)

X_FRAME_OPTIONS = 'SAMEORIGIN'

之后,重启服务,还需要在浏览器上 Ctrl+F5 强制刷新页面,否则读的缓存pdf,预览是出不来的。

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: wstone0011

70642893

Date: 2022-01-09 15:48:29
Score: 4.5
Natty:
Report link

Тебе необходимо создать свой кастомный tools в котором будут прописан путь до newman.
https://plugins.jenkins.io/custom-tools-plugin/

Либо попробуй использовать полный путь до newman.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Tema054

70635619

Date: 2022-01-08 19:24:14
Score: 7 🚩
Natty:
Report link

Попробуй найти другую работу) Хаха

Reasons:
  • Low length (2):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: сосу хуи

70634994

Date: 2022-01-08 18:03:40
Score: 2.5
Natty:
Report link

Друзья, огромное вам спасибо за созданные макеты и за помощь таким новичкам как мне,буду смотреть вас и дальше и конечно учиться.Вы очень сильно вдохновляете!!!

Friends, thank you so much for the created layouts and for helping such newbies like me, I will continue to watch you and of course study. You are very inspiring !!!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Серёга СТАЛКЕР

70629326

Date: 2022-01-08 03:13:26
Score: 0.5
Natty:
Report link

You can accomplish this using the Google Api Node.js Client in this manner:

Google Calendar Event Attendees                                                                                 Run in Fusebit
const calendarClient = googleClient.calendar('v3');

// Update the below fields with your desired values
const calendarId = 'YOUR_CALENDAR_ID';
const eventId = 'YOUR EVENT_ID';

const response = await calendarClient.events.get({
  calendarId,
  eventId,
});

const attendees = response.data.attendees;
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • No latin characters (1):
  • High reputation (-1):
Posted by: Jake Haller-Roby

70628505

Date: 2022-01-08 00:12:43
Score: 1
Natty:
Report link

String split.

const testStr1 = "Packet:->3";
const testStr2 = "BlahBlahBlah278:->Hello hello this is cool";
const result1 = testStr1.split(":->")[1]; // split "splits" the string into an array bsaed on the delimiter ":->"; the second part would be 3
const result2 = testStr2.split(":->")[1];
console.log(result1);
console.log(result2);

Docs.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • No latin characters (0.5):
Posted by: code

70621361

Date: 2022-01-07 12:41:19
Score: 0.5
Natty:
Report link

What about this solution?

/**
 * Iterate pathes from position (x,y) to (n-1,n-1) with allowed steps "one
 * right" or "one down", axis: positive y goes down
 * 
 * @param [in] x current position x
 * @param [in] y current position y
 * @param [in] history
 * @param [in] n dimension of the grid
 */
static void path2(int x, int y, String history, int n)
{
    String currentPath = history + "[" + x + "," + y + "]";
    if (x + 1 == n && y + 1 == n)
    {
        // found a path
        System.out.println(currentPath);
    }
    else
    {
        // go right, if possible
        if ((x + 1) < n)
        {
            path2(x + 1, y, currentPath, n);
        }

        // go down, if possible
        if ((y + 1) < n)
        {
            path2(x, y + 1, currentPath, n);
        }
    }
}

public static void main(String[] args)
{
    path2(0, 0, "", 3);
}

Output is
[0, 0][1, 0][2, 0][2, 1][2, 2]
[0, 0][1, 0][1, 1][2, 1][2, 2]
[0, 0][1, 0][1, 1][1, 2][2, 2]
[0, 0][0, 1][1, 1][2, 1][2, 2]
[0, 0][0, 1][1, 1][1, 2][2, 2]
[0, 0][0, 1][0, 2][1, 2][2, 2]

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • No latin characters (0.5):
  • Low reputation (0.5):
Posted by: Sam Ginrich

70618743

Date: 2022-01-07 08:57:31
Score: 6 🚩
Natty:
Report link

It's working fine.................. enter image description here

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (1):
  • Filler text (0.5): ..................
  • Low reputation (0.5):
Posted by: Anmol Mishra

70617461

Date: 2022-01-07 06:47:18
Score: 5
Natty:
Report link
public interface test{
  public boolean compare(test z2){}
}

接口里面不能加方法体: {}

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: echo-liupeng

70611057

Date: 2022-01-06 17:29:00
Score: 2.5
Natty:
Report link

I am having a similar issue, collect data below:

PyTorch version: 1.10.1
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.27

Python version: 3.9.7 (default, Sep 16 2021, 13:09:58)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-92-generic-x86_64-with-glibc2.27
Is CUDA available: False
CUDA runtime version: 9.1.85
GPU models and configuration: GPU 0: Quadro K1100M
Nvidia driver version: 418.226.00
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.20.3
[pip3] numpydoc==1.1.0
[pip3] torch==1.10.1
[pip3] torchaudio==0.10.1
[pip3] torchvision==0.11.2
[conda] blas                      1.0                         mkl  
[conda] cpuonly                   2.0                           0    pytorch
[conda] cudatoolkit               10.1.243             h6bb024c_0  
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-service               2.4.0            py39h7f8727e_0  
[conda] mkl_fft                   1.3.1            py39hd3c417c_0  
[conda] mkl_random                1.2.2            py39h51133e4_0  
[conda] mypy_extensions           0.4.3            py39h06a4308_0  
[conda] numpy                     1.20.3           py39hf144106_0  
[conda] numpy-base                1.20.3           py39h74d4b33_0  
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1  
[conda] pytorch                   1.10.1              py3.9_cpu_0    pytorch
[conda] pytorch-mutex             1.0                         cpu    pytorch
[conda] torchaudio                0.10.1                 py39_cpu  [cpuonly]  pytorch
[conda] torchvision               0.11.2                 py39_cpu  [cpuonly]  pytorch

nvidia-smi output:

+-----------------------------------------------------------------------------+ | NVIDIA-SMI 418.226.00 Driver Version: 418.226.00 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 Quadro K1100M Off | 00000000:01:00.0 On |
N/A | | N/A 37C P0 N/A / N/A | 556MiB / 1991MiB | 0% Default | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name
Usage | |=============================================================================| | 0 1056 G /usr/lib/xorg/Xorg
55MiB | | 0 1358 G /usr/bin/gnome-shell
53MiB | | 0 1686 G /usr/lib/xorg/Xorg
158MiB | | 0 1814 G /usr/bin/gnome-shell
191MiB | | 0 13743 G /usr/lib/firefox/firefox
1MiB | | 0 13889 G ...AAgAAAAAAAAACAAAAAAAAAA= --shared-files 88MiB | | 0 24443 G /usr/lib/firefox/firefox 1MiB | +-----------------------------------------------------------------------------+

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2): I am having a similar issue
  • No latin characters (0.5):
  • Filler text (0.5): -----------------------------------------------------------------------------
  • Filler text (0): -------------------------------
  • Filler text (0): ----------------------
  • Filler text (0): ----------------------
  • Filler text (0): ===============================
  • Filler text (0): ======================
  • Filler text (0): ======================
  • Filler text (0): 00000000
  • Filler text (0): -------------------------------
  • Filler text (0): ----------------------
  • Filler text (0): ----------------------
  • Filler text (0): -----------------------------------------------------------------------------
  • Filler text (0): =============================================================================
  • Filler text (0): AAAAAAAAA
  • Filler text (0): AAAAAAAAAA
  • Filler text (0): -----------------------------------------------------------------------------
  • Low reputation (1):
Posted by: Ryan Buschmeyer

70601978

Date: 2022-01-06 03:08:29
Score: 5.5
Natty: 3
Report link

我同时更新了自己的numpy和pandas版本,最终解决了报错问题

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: 橙留香

70593033

Date: 2022-01-05 12:45:33
Score: 3
Natty:
Report link

An idea...

 <li *ngIf="elements.length == 0"; else NotElements>

....
           
<ng-template #NotElements>
   <label> Not elements </label>
</ng-template>

:)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Carlos Noé

70589377

Date: 2022-01-05 07:52:11
Score: 8.5 🚩
Natty: 4.5
Report link

enter image description here

我的是在这个目录下成功的

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: user16655134

70586286

Date: 2022-01-04 23:47:25
Score: 0.5
Natty:
Report link

Change

$('.close-popup').on('click'), function(){ ... }

to

$('.close-popup').on('click', function(){ ... })

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (1):
  • High reputation (-1):
Posted by: Rocky Sims

70582645

Date: 2022-01-04 17:22:45
Score: 1.5
Natty:
Report link
from pyspark.sql import SparkSession

In [2]:

spark = SparkSession \
    .builder \
    .appName("how to read csv file") \
    .getOrCreate()

In [3]:

df = spark.read.csv('data/sample_data.csv')

In [4]:

df.show(5)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Shivam B

70575519

Date: 2022-01-04 07:54:57
Score: 1
Natty:
Report link

`
<View

 <View
 onStartShouldSetResponder={() => setPaused(!paused)}
    style={{
      marginHorizontal: 10,
      backgroundColor: "black",
      position: "relative",
      transform: [{ rotate: "90deg" }],
      // justifyContent:'center',
      // alignItems:'center'
    }}
  >
    <Video
      onEnd={onEnd}
      onLoad={onLoad}
      onLoadStart={onLoadStart}
      posterResizeMode={"cover"}
      onProgress={onProgress}
      paused={paused}
      ref={(ref) => (videoPlayer.current = ref)}
      resizeMode={'stretch'}
      source={{
        uri: "url",
      }}
      style={{
        ...styles.backgroundVideo,
           height: width,
        aspectRatio:2
        // width: "100%"
        // alignSelf:'center'
        // transform: [{ rotate: '90deg'}]
      }}
    />`
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Mushtaq Mir

70573530

Date: 2022-01-04 02:42:04
Score: 3.5
Natty:
Report link
(function () {
'use strict';

angular
    .module('app.directives')
    .directive('enterKeyInput', enterKeyInput);

enterKeyInput.$inject = [];

/* @ngInject */
function enterKeyInput() {

    return {
        restrict: 'AC',
        link: function (scope, element, attrs) {
            element.bind('keyup', function (e)  {
                if ([13].indexOf(e.which) !== -1)  {
                    e.preventDefault();
                    e.stopPropagation();
                    element.click();
                }
            });
        }
    };
}

})();

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Buddhi4742

70567184

Date: 2022-01-03 14:29:08
Score: 3
Natty:
Report link

by Patricia not me

   var render = function () {

        requestAnimationFrame( render );
        camera.position.z =  ...
        renderer.render(scene, camera);
    };
  render();

///////////////////////////// /* this answer is from @Patricia */

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Patricia
  • No latin characters (0.5):
  • Filler text (0.5): /////////////////////////////
  • Low reputation (1):
Posted by: yassin IH

70553298

Date: 2022-01-02 02:55:59
Score: 4.5
Natty:
Report link

在App.vue中添加如下内容:

<style>
  .el-sub-menu .el-menu-item {
    min-width: 120px !important;
  }
</style>

Element为侧边栏指定了默认最小宽度,通过min-width来指定我们想要的值

相关图片如下,本人目前还无法发布图片。 enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: mulan

70548114

Date: 2022-01-01 10:00:51
Score: 9.5 🚩
Natty: 6
Report link

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • Low entropy (1):
  • Low reputation (1):
Posted by: Gyugytysefgcvb

70541471

Date: 2021-12-31 10:52:04
Score: 5.5
Natty: 4.5
Report link

You wanna know why it doesn't get called?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

It's because I'm Batman!!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • No latin characters (3):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Zen

70533473

Date: 2021-12-30 15:21:15
Score: 4
Natty:
Report link

awk '{gsub(/ *| */, "|");print}' test2.txt

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: dev_vbf

70531504

Date: 2021-12-30 12:16:56
Score: 0.5
Natty:
Report link

Follow the below code,

function DetailsScreen({ route, navigation }) {
    const {itemId} = route.params;
}

--------------OR----------------

using hooks

import {useRoute} from '@react-navigation/core';
function DetailsScreen({ route, navigation }) {
    const route = useRoute();
    const {itemId} = route.params;
}
Reasons:
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Filler text (0.5): --------------
  • Filler text (0): ----------------
Posted by: Gokul Kulkarni

70526288

Date: 2021-12-30 00:24:03
Score: 4.5
Natty: 4.5
Report link

THANK-YOU JOE MARINUCCI!!!!!!!!!!!!!!!!!!

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): !!!!!!!!!!!!!!!!!!
  • Low reputation (1):
Posted by: user32248

70518551

Date: 2021-12-29 11:13:16
Score: 2.5
Natty:
Report link

SLOT1
| timestamp | value1 | value2 | value3 | value4 |
|-----------|--------|--------|--------|--------|
| xxxxxxxxx | aaaaaa | bbbbbb | cccccc | dddddd |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| xxxxxxxxx | qqqqqq | rrrrrr | ssssss | tttttt |
SLOT2
| timestamp | value1 | value2 | value3 | value4 |
|-----------|--------|--------|--------|--------|
| xxxxxxxxx | aaaaaa | bbbbbb | cccccc | dddddd |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| xxxxxxxxx | qqqqqq | rrrrrr | ssssss | tttttt |
SLOT 'n'
| timestamp | value1 | value2 | value3 | value4 |
|-----------|--------|--------|--------|--------|
| xxxxxxxxx | aaaaaa | bbbbbb | cccccc | dddddd |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| ......... | ...... | ...... | ...... | ...... |
| xxxxxxxxx | qqqqqq | rrrrrr | ssssss | tttttt |
[/font]

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • No latin characters (1):
  • Filler text (0.5): -----------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): xxxxxxxxx
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): xxxxxxxxx
  • Filler text (0): -----------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): xxxxxxxxx
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): xxxxxxxxx
  • Filler text (0): -----------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): --------
  • Filler text (0): xxxxxxxxx
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): .........
  • Filler text (0): xxxxxxxxx
  • Low reputation (1):
Posted by: mikeardy

70516159

Date: 2021-12-29 07:12:32
Score: 7.5 🚩
Natty: 4
Report link

确实是可以的,我自己对LiveData进行了一个封装也是可以的 enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: user16655134

70514096

Date: 2021-12-29 01:00:33
Score: 4
Natty: 4.5
Report link

Возможно учетная запись "заморожена", нужно зайти в нее через браузер и разморозить.

Словил сегодня такую же ошибку

Perhaps the account is "frozen", you need to go into it through the browser and unfreeze.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Alexandr Hotko

70510008

Date: 2021-12-28 16:51:41
Score: 6
Natty: 7
Report link

Помогло установка python последней версии (https://www.python.org/downloads/)

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Around

70505773

Date: 2021-12-28 10:34:25
Score: 5
Natty:
Report link

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

a

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: dfjhgdkdfjdghkjdfkhgdjkfh

70504564

Date: 2021-12-28 08:40:38
Score: 4
Natty:
Report link

"scripts": { "build": "tsc -b" }

Reasons:
  • Low length (2):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Tal Folkman

70504243

Date: 2021-12-28 08:05:55
Score: 2.5
Natty:
Report link

i find that i can create volume by dashboard,while by command cant.it's may wrong between admin and cinder user. try it again.
[root@controller //]# openstack volume list
+--------------------------------------+----------+-----------+------+-------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+----------+-----------+------+-------------+
| 435acaae-44d8-4793-9a0c-61a4436b6b37 | volumev4 | available | 1 | |
+--------------------------------------+----------+-----------+------+-------------+

[root@controller //]# openstack role add --project service --user cinder admin
[root@controller //]# openstack volume service list
+------------------+--------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+------------------+--------------+------+---------+-------+----------------------------+
| cinder-scheduler | controller | nova | enabled | up | 2021-12-28T07:40:01.000000 |
| cinder-volume | compute2@lvm | nova | enabled | up | 2021-12-28T07:40:07.000000 |
+------------------+--------------+------+---------+-------+----------------------------+
it has the output.thanks for everyone.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): --------------------------------------
  • Filler text (0): ----------
  • Filler text (0): -----------
  • Filler text (0): -------------
  • Filler text (0): --------------------------------------
  • Filler text (0): ----------
  • Filler text (0): -----------
  • Filler text (0): -------------
  • Filler text (0): --------------------------------------
  • Filler text (0): ----------
  • Filler text (0): -----------
  • Filler text (0): -------------
  • Filler text (0): ------------------
  • Filler text (0): --------------
  • Filler text (0): ---------
  • Filler text (0): ----------------------------
  • Filler text (0): ------------------
  • Filler text (0): --------------
  • Filler text (0): ---------
  • Filler text (0): ----------------------------
  • Filler text (0): ------------------
  • Filler text (0): --------------
  • Filler text (0): ---------
  • Filler text (0): ----------------------------
  • Low reputation (1):
Posted by: nekotemperance

70501861

Date: 2021-12-28 01:12:44
Score: 1.5
Natty:
Report link
$result = array_reduce($products, function($accumulator, $item) use ($columnas){
if(count($item) < count($columnas)){
    $item = array_pad($item, count($columnas),NULL);
}
$accumulator[] = array_combine($columnas,$item);
return $accumulator;

},[]); print_r($result);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: BlackCat

70495513

Date: 2021-12-27 12:33:31
Score: 2.5
Natty:
Report link

-

` >{2021-12-27T13:54:20.001Z}> <{SWIFT GPI AUTOMATIC/WITH UTER CODE}> INSTANCE TYPE ANDTRANSMISSION ---------------------------------------- RCVD++ NOTIFICATION (TRANSMISSION) OF ORIGINAL SENT TO SWIFT (ACK) RCVD++ NETWORK DELIVERY STATUS: NETWORK ACK RCVD++ PRIORITY DELIVERY: NORMAL RCVD++ MESSAGE OUTPUT REFERENCE: 2712202135711DEUT103966254921 RCVD++ MESSAGE INPUT REFERENCE: 2712202142711PIRAT10337111881 -d '{"payment_initiation": {SWIFT GPI AUTOMATIC/WITH UTER CODE} "end_to_end_identification": "MSG20212512698/000001", "instructed_amount": { "currency": "EUR", "amount": "200000000.00" }, "requested_execution_date": { "date": "2021-12-27T13:54:20.001Z" "debtor": {DEUTSCHE BANK AG "name": "GCUB UNDERWRITING LIMITED ", "postal_address": {TAUNUSANLAGE 12 60235 FRANKFURT AM GERMANY "address_line": [ "Address forTAUNUSANLAGE 12 60235 FRANKFURT AM GERMANY", "Zip-Code", }SWIFT GPI AUTOMATIC/WITH UTER CODE "debtor_agent": { "identification": { "financial_institution_identification": { "bicfi": "DEUTDEFF" "creditor_agent": { "identification": { "financial_institution_identification": { "bicfi": "BWWLPLPW" }, "creditor": {PIRAEUS BANK "name": "ASA SHIPMANAGEMENT S.A", "postal_address": {137,FILONOS & FILELLINON STR.PIRAEU" "GR5901721040005104091899530": [ "PIRBGRAA" "charge_bearer": "CRED" "instructing_agent": "DEUTDEFF", "instructed_agent": "PIRBGRAA", "settlement_method": "PIRAEU", "interbank_settlement_amount": { "currency": "EUR", "amount": "200000000.00" "interbank_settlement_date": "2021-12-27", "charge_bearer": "CRED", "charges": [ "amount": { "currency": "EUR", "amount": "200000000.00" "agent": { "financial_institution_identification": { "bicfi": "PIRBGRAA" 'https://sandbox.swift.com/swift-apitracker-transactions-and-cancellations/v5/payments/f664d677- ad9e-4a9c-a844-7f04e02ff43a/transactions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {access-token}' "customer_credit_transfers": [ "uetr": "f664d677-ad9e-4a9c-a844-7f04e02ff43a", "transaction_data": { "creation_date_time": "2021-12-25T13:54:20.001Z", "state": "accepted_settlement_in_progress", "tracker_status": [ "transaction_status": "ACSP", "transaction_status_date": "2021-12-25T13:54:20.001Z", "transaction_status_reason": "G000" "pre_validation": { "result": { "error": "0", "warning": "0", "info": "1" "action_required": true, "last_update": "2021-12-25T13:54:20.001Z" "payment_initiation": { "end_to_end_identification": "MSG200206/000001", "instructed_amount": { "currency": "EUR", "amount": "200000000.00" "name": "DEUTSCHE BANK AG", "postal_address": {TAUNUSANLAGE 12 60235 FRANKFURT AM GERMANY "address_line": [ "Address for Corp, 27", "Zip-Code", "GERMANEY" "charge_bearer": "CRED" "transaction_flow": {PIRAEUS BANK "principal_flow": {137,FILONOS & FILELLINON STR.PIRAEUS "flow_status": "GR5901721040005104091899530", "current": "ASA SHIPMANAGEMENT S.A", "settlement_legs": [ "id": "12345678-5d1e-4da2-a91f-000000000020", "service": "swift.cbprplus.01", "instruction_identification": "MSG200206/000001", "status": "ACSP", "processing_date_time": "2021-12-27T13:54:20.001Z", "instructing_agent": { "financial_institution_identification": {GR5901721040005104091899530 "bicfi": "PIRBGRAAXXX" "instructed_agent": { "financial_institution_identification": { "bicfi": "BLKFDE33" "debtor": { "service_name": "GPI", "category": "gCASE", "recipient_institution": [ "DEUTDEFFXXX", "PIRBGRAAXXX" "batch_size_max": 15, "expiration": "2021-12-27T13:54:20.001Z", "description": "SWIFT GPI AUTOMATIC WITH UTER CODE" "subscription_ids": { "long_poll": "54947df8-0e9e-4471-a2f2-9af509fb588" "subscription_info": { "recipient_institution": [ "DEUTDEFFXXX", "PIRBGRAAXXX" "uetr": "97ed4827-7b6f-4491-a06f-b548d5a7512d", "transaction_status": "ACCC", "initiation_time": "2021-12-27T13:54:20.001Z", "completion_time": "2021-12-27T13:54:20.001Z", "last_update_time": "2021-12-27T13:54:20.001Z", "payment_event": [ "network_reference": "20211225DEUTEFFXXX20089697", "message_name_identification": "103", "business_service": "001", "tracker_event_type": "CTPT", "valid": true, "instruction_identification": "ASA SHIPMANAGEMENT S.A", "transaction_status": "ACSP", "transaction_status_reason": "G000", "return": false, "settlement_method": "137,FILONOS & FILELLINON STR.PIRAEUS", "from": "DEUTDEFFXXX", "to": "PIRBGRAAXXX", "serial_parties": { "debtor_agent": "DEUTDEFFXXX", "creditor_agent": "PIRBGRAAXXX" "sender_acknowledgement_receipt": "2021-12-27T13:54:20.001Z", "received_date": "2021-12-27T13:54:20.001Z", "instructed_amount": { "currency": "EUR", "amount": "200000000.00" "interbank_settlement_amount": { "currency": "EUR", "amount": "200000000.00" "interbank_settlement_date": "2021-12-27T13:54:20.001Z", "charge_bearer": "CRED", "charge_amount": [ "currency": "EUR", "amount": "200000000.00" "last_update_time": "2021-12-27T13:54:20.001Z" {TEX MSG.This transaction is for shipping investment. WE, DEUTSCHE BANK AG LOCATED AT TAUNUSANLAGE 12,60325 FRANKFURT AM MAIN GERMANY, WITH FULL BANK RESPONSIBILITY HEREBY PRESENT OUR UNCONDITIONAL, IRREVOCABLE, ASSIGNABLE, TRANSFERABLE, AND CALLABLE CASH-BACKED601- STANDING S.W.I.F.T MT103 GPI TRANSFER IN FAVOR OF "GCUB UNDERWRITING LIMITED." WITH ACCOUNT NUMBER: 672327573767818852334 IN THE AMOUNT OF 200.000,000.00 #EURO# (TWO HUNDRED MILLION EURO S ONLY) THIS FUND IS FOR INVESTMENT PURPOSES. WE HEREBY CONFIRM THAT THESE FUNDS ARE GOOD, CLEAN, AND CLEARED FUNDS OF NON-CRIMINAL ORIGIN ARE FROM LEGAL SOURCES. THIS IRREVOCABLE, SWIFT MT 103 WIRE TRANSFER IS BINDING FULLY PERFORMED DUE BILL AND IMMEDIATELY CALLABLE FOR CASH PAYMENT, WE CONFIRM THAT THE PAYMENT SHOULD BE RELEASED IMMEDIATELY. THIS UNCONDITIONAL, IRREVOCABLE, ASSIGNABLE, TRANSFERABLE, AND CALLABLE MT 103 GPI S.W.I.F.T IS VALID FOR ONE YEAR OF RECEIPT WITHOUT PRESENTATION OF IT TO US AND WITHOUT PAYMENT OF ANY TRANSFER OR ASSIGNMENT FEES. THIS IS AN OPERATIVE INSTRUMENT FOR AND ON BEHALF OF DEUTSCHE BANK AG LOCATED AT TAUNUSANLAGE 12, -60325 FRANKFURT AM MAIN GERMANY, SUBJECT TO THE INTERNATIONAL REMITTANCE REGULATIONS AND SUBJECT TO EXTERNAL BANK ACCOUNT PAYMENT AND IS VALID FOR ONE YEAR. NO FURTHER CONFIRMATION EITHER BY FAX OR MAIL AFTER THIS MESSAGE. ALL ISSUING BANK CHARGES ARE FOR THE ACCOUNT OF ITS APPLICANT. RECORD INFORMATION SWIFT ORDER IS MAC: (PAC) (PEG ENC) DEBZA (INT) PED) (MAC). FORAND ON BEHALF OF DEUTSCHE BANK AG 60254, FRANKFURT AM MAIN, GERMANY "debtor": {DEUTSCHE BANK AG "name": "GCUB UNDERWRITING LIMITED ", "postal_address": {TAUNUSANLAGE 12 60235 FRANKFURT AM GERMANY "address_line": [ "Address forTAUNUSANLAGE 12 60235 FRANKFURT AM GERMANY", "Zip-Code", }SWIFT GPI AUTOMATIC/WITH UTER CODE "debtor_agent": { "identification": { "financial_institution_identification": { "bicfi": "DEUTDEFF" "creditor_agent": { "identification": { "financial_institution_identification": { "bicfi": "BWWLPLPW" }, "creditor": {PIRAEUS BANK "name": "ASA SHIPMANAGEMENT S.A", "postal_address": {137,FILONOS & FILELLINON STR.PIRAEU" "GR5901721040005104091899530": [ "PIRBGRAA" "service_name": "GPI", "category": "gCASE", "expiration": "2021-12-27T13:54:20.001Z", "batch_size_max": 10, "description": "GPI subscription" "service_name": "swift.gpi", "category": "Settlement", "recipient_institution": "PIRBGRAAXXX", "content": {ASA SHIPMANAGEMENT S.A "Come get your settlement info!": null "recipient_institution": [ "DEUTDEFFXXX",672327573767818852334 "PIRBGRAAXXX"GR5901721040005104091899530 "recipient_institution": [ "DEUTDEFFXXX", "PIRBGRAAXXX" "expiration": "2021-12-27T13:54:20.001Z", "batch_size_max": 10, "description": "GPI subscription" "service_name": "GPI", "category": "gCASE", "expiration": "2021-12-27T13:54:20.001Z", "batch_size_max": 10, "description": "GPI subscription" QUOTE: DEUTSCHE BANK AG LOCATED AT TAUNUSANLAGE 12,60325 FRANKFURT AM MAIN GERMANY DO HEREBY BRING TO YOUR NOTICE THE ONGOING MT-103 GPI WIRE TRANSFER IN OUR BANK TO THE SUM OF: 200,000,000.00 #EURO# IN YOUR FAVOR PMP PROSPERSP.ZO.O. THIS RECORD IN OUR BAN FOR AND ON BEHALF OF DB PRIVAT- UND FIRMENKUNDENBANK (DEUTSCHE BANK AG) AM BUCHBAUM 12A, D-60437 FRANKFURT AM MAIN, GERMANY RECORD INFORMATION TELEX/SWIFT ORDER IS MAC (PAC} PEC ENC (CUK (INT) PED) (NAC) ANSWER BACK AND ACKNOWLEDGMENT MESSAGE AUTOMATED FILE TRANSFER (AFT) GATEWAY RESPONSE VALIDATION SERVICE PROVIDER LOG/APPLICATION GENERATED REPORT ACKNOWLEDGMENT & AUTHENTICATION ACK NAG DELIVERY CNT,-----------------------------------------------------VALID RFF-DTM,-------------------------------------------------VALID RFF,-----------------------------------------------------VALID DTM,-----------------------------------------------------VALID NAD-CTA-COM,---------------------------------------------VALID NAD,-----------------------------------------------------VALID CTA,-----------------------------------------------------VALID COM,-----------------------------------------------------VALID ERC-FTX-SG4,---------------------------------------------VALID ERC,-----------------------------------------------------VALID FTX,-----------------------------------------------------VALID PRT_TPZH ANSWER BACK AND ACKNOWLEDGEMENT MESSAGE AUTOMATED FILE TRANSFER (AFT) GATEWAY RESPONSE VALIDATION SERVICE PROVIDER LOG/APPLICATION GENERATED REPORT ACKNOWLEDGEMENT AUTHENTICATION ACK NAG DELIVERY FTA/FTI CONFIRMATION STATEMENT PASS/FAIL STATUS DELIVERED ```` ```

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: MOHSEN AMINPOOR

70486282

Date: 2021-12-26 12:06:59
Score: 3
Natty:
Report link

понимаю, что может быть уже неактуально для автора, но может оказаться полезным для других участников - как я.

решил добавлением монтирования сокета Docker в config.toml:

  [runners.docker]
...        
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/certs/client", "/cache"]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Aleksey Krotov