79216164

Date: 2024-11-22 18:26:22
Score: 7.5 🚩
Natty: 5.5
Report link

Большое спасибо, сделал мой вечер

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Pashto

79216069

Date: 2024-11-22 17:50:11
Score: 5.5
Natty: 5
Report link

{'a': ['aa', 'cc'], 'b': ['xx', 'yy']}

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Ujjawal Prasad

79206242

Date: 2024-11-20 07:51:12
Score: 4
Natty:
Report link

Я частное самостоятельное независимое физическое лицо! У меня нет научных руководителей и тп. На протяжении 37 лет я работал над темой «Сжатие информации без потерь», с той особенностью, что я работал над сжатием случайной и уже сжатой информации. На настоящий момент я имею теоретические и практические разработки и доказательства и хочу представить миру следующее:

энтропийный предел сжатия Шеннона-Фано пределом не является и равновероятная информация неплохо сжимается! Случайная и архивированная информация имеет четкую математическую структуру, описываемую одной формулой! Любая информация сжимается. Фактически у меня есть этот алгоритм! Указанный алгоритм сжимает любую информацию, независимо от ее вида и структуры, т.е. одна программа жмёт любые файлы! Сжатие работает циклически!

Если есть интерес пишите [email protected]

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Сергей

79205423

Date: 2024-11-20 00:03:12
Score: 7 🚩
Natty: 5.5
Report link

பாதுகாப்பான முறையில் இரண்டு முகங்களை ஒப்பிடுவதற்கு உள்ளதா

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: nallavairan rasikaran

79204543

Date: 2024-11-19 17:59:24
Score: 8 🚩
Natty: 4.5
Report link

**

Blockquote

**

enter link description here

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

79204070

Date: 2024-11-19 15:41:38
Score: 1
Natty:
Report link

.data array: .word 10, 20, 30, 40, 50 # مصفوفة من الأعداد الصحيحة n: .word 5 # عدد العناصر في المصفوفة

.text .globl main

main: # تحميل عنوان المصفوفة وعدد العناصر la $a0, array # تحميل عنوان قاعدة المصفوفة في $a0 lw $a1, n # تحميل عدد العناصر في $a1

# إعداد المكدس للمعاملات
addi $sp, $sp, -8   # إنشاء مساحة على المكدس
sw $a0, 0($sp)      # دفع عنوان المصفوفة إلى المكدس
sw $a1, 4($sp)      # دفع عدد العناصر إلى المكدس

# استدعاء الروتين الفرعي LISTADD
jal LISTADD

# تنظيف المكدس بعد استدعاء الروتين الفرعي
addi $sp, $sp, 8

# إنهاء البرنامج
li $v0, 10          # تحميل رقم استدعاء إنهاء النظام
syscall

LISTADD: # إعداد إطار المكدس addi $sp, $sp, -8 # إنشاء مساحة لعنوان العودة والمجموع sw $ra, 4($sp) # حفظ عنوان العودة sw $zero, 0($sp) # تهيئة المجموع إلى 0

# الحصول على المعاملات من المكدس
lw $a0, 8($sp)      # تحميل عنوان المصفوفة (من المكدس الأصلي)
lw $a1, 12($sp)     # تحميل عدد العناصر (من المكدس الأصلي)

# تهيئة المجموع والعداد
move $t0, $zero     # $t0 = المجموع
move $t1, $zero     # $t1 = العداد

loop: bge $t1, $a1, end_loop # إذا كان العداد >= عدد العناصر، اخرج من الحلقة

lw $t2, 0($a0)          # تحميل العنصر الحالي
add $t0, $t0, $t2       # إضافة العنصر الحالي إلى المجموع
addi $a0, $a0, 4        # الانتقال إلى العنصر التالي
addi $t1, $t1, 1        # زيادة العداد
j loop                  # تكرار الحلقة

end_loop: beqz $a1, set_avg # إذا لم توجد عناصر، تخطى حساب المتوسط div $t0, $a1 # قسّم المجموع على عدد العناصر mflo $t3 # نقل الناتج (المتوسط) إلى $t3 j store_results # القفز إلى تخزين النتائج

set_avg: move $t3, $zero # تعيين المتوسط إلى 0 (حالة عدم وجود عناصر)

store_results: # استعادة المكدس والعودة lw $ra, 4($sp) # استعادة عنوان العودة lw $zero, 0($sp) # استعادة المجموع (غير مستخدم بعد) addi $sp, $sp, 8 # تنظيف المكدس jr $ra # العودة إلى المتصل

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

79202408

Date: 2024-11-19 07:20:03
Score: 4.5
Natty:
Report link

关闭自动检测文件内容,即可默认使用空格,设置里面的 Editor: Detect Indentation

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

79196925

Date: 2024-11-17 09:50:23
Score: 9.5 🚩
Natty: 6
Report link

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • Low entropy (1):
  • Low reputation (1):
Posted by: David Johnson

79191721

Date: 2024-11-15 09:23:09
Score: 5.5
Natty: 5
Report link

попробуйте создать .sh скрипт через редактор в консоли vim/nano

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Денис Александрович

79191018

Date: 2024-11-15 03:26:26
Score: 7.5 🚩
Natty:
Report link

ok ....................................................................................................................................................................................................................................................................................

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3):
  • Filler text (0.5): ....................................................................................................................................................................................................................................................................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: Akshita Sharma

79188722

Date: 2024-11-14 12:27:30
Score: 10 🚩
Natty: 4
Report link

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

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

79183641

Date: 2024-11-13 06:36:00
Score: 2.5
Natty:
Report link

\frac{\partial M}{\partial t}(t)= \mathop{\sum}{i=1,,2}\frac{\partial {M}{i}}{\partial t}=\mathop{\sum}{i=1,,2}\left{4{C}{0}\frac{{D}{i}}{{x}{0}}\right}\left[\exp \left(-\frac{{D}{i}}{{x}{0}^{2}}\frac{{\pi }^{2}}{4}t\right) \right. \ \left.+\exp \left(-\frac{{D}{i}}{{x}{0}^{2}}\frac{9{\pi }^{2}}{4}t\right)+\exp \left(-\frac{{D}{i}}{{x}{0}^{2}}\frac{25{\pi }^{2}}{4}t\right)\right]

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Qamar Mohy Ouddin

79182650

Date: 2024-11-12 20:44:31
Score: 6.5 🚩
Natty:
Report link

I don't know. heh 😁 ...............................................................................................................................................................................................

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (3):
  • Filler text (0.5): ...............................................................................................................................................................................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: Afshin fallahnejad

79181686

Date: 2024-11-12 15:16:42
Score: 0.5
Natty:
Report link

иногда бывает необходимость скопировать в образ контейнера с помощью диррективы COPY файл, если файл лежит в той же директории что и Dockerfile - проблемм не возникает, но если копируемому файлу нужно прописать путь, то при попытки сбилдить на основе этого докерфайла произойдет ошибка с вот таким выводом:

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 02757e0a-7111-496b-9495-ef436149a3e3::vf3kakk5pbsck0j30bd045zou: "/assets": not found

решить можно двумя способами:

  1. Сложить все копируемые файлы в директорию в которой находиться Dockerfile.
  2. Добавить к команде COPY флаг --parents, и указать правильный относительный путь от Dockerfile к Копируемому файлу. Кроме этого изменнеия вносимого в Dockerfile, при запуске команды docker build нужно указать флаг --build-arg BUILDKIT_SYNTAX:docker/dockerfile:1.7-labs, т.к. в документации написано следующее:

Not yet available in stable syntax, use docker/dockerfile:1.7-labs version.

docker build --build-arg BUILDKIT_SYNTAX:docker/dockerfile:1.7-labs -t my-image ./
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: sekira

79181334

Date: 2024-11-12 13:37:55
Score: 4
Natty:
Report link

я решил проблему в ручную установив [email protected]

brew tap rbenv/tap
brew install rbenv/tap/[email protected]

и дальше просто повторил команды где у меня возникла эта ошибка

brew tap apple/apple http://github.com/apple/homebrew-apple
brew -v install apple/apple/game-porting-toolkit
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: AydaTop1GG

79180387

Date: 2024-11-12 08:56:19
Score: 3
Natty:
Report link

Владимир, приветствую! Сейчас Vosk на GPU можно запустить только под управлением Linux. Базово, разработчик предлагает это делать в контейнере. Т.е. можно его запустить и под WSL. (у меня не получилось). Я рекомендую воспользоваться готовым решением на гите здесь . Там же можно найти как скомпилировать библиотеку Vosk для использования без Docker.

Обратите внимание, что для запуска на GPU нужно изменить модель - Удалить "min-active" из файла model/conf/model.conf или закомментить его. и вставить файл ivector.conf из большой EN модели.

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

79180253

Date: 2024-11-12 08:04:08
Score: 2.5
Natty:
Report link

{ "Countries":[{ "CountryName":"Indonesia", "States":[{ "StateName":"Bali", "Cities":["Denpasar", "Kuta", "Tuban" ]}, { "StateName":"Jakarta", "Cities":[ "Bandung", "Tanggerang" ] } ] }]}

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

79179833

Date: 2024-11-12 04:59:06
Score: 5
Natty:
Report link

වෙරළු ගෙඩිය හරි අටකට කපා ගෙන කොටහක් නොකා දෙගුරුන්ටත් තබාගෙන උන් අපි එදා සත් කුළු පව් විලාසෙන පැල ඉනි වැටට ඇයි අද ඇණ කොටා ගෙන

පොඩි උන් දොහේ මල් මතකය ඉරාගෙන හොඳ හිත ගිහින් උඩු හුලඟට ගසාගෙන // මහගෙයි බිමට තනි උරුමය කියාගෙන සතුරන් වෙලා උනුනට දෙස් තියාගෙන

වෙරළු ගෙඩිය...

තිරිසන් උනෝතින් කිසි හව්හරණ නැති ලන්දක කකා ලන්දක කල් යල් හරිති // එක මිහි සයන කාටත් නිදි සුවය දෙති බිම් පංගුවට ලොල් වී මළගම් නොයති

වෙරළු ගෙඩිය..

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

79175941

Date: 2024-11-10 22:25:25
Score: 4.5
Natty: 5
Report link

Я тоже хочу убрать это раздражающее окно. Ранее, на android 13 это помогало. С android 14 они исправили ошибки, но теперь не могу убрать эту раздражающую штуку. Если кто сможет помочь, буду благодарен. Device TANK 3 pro

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

79171033

Date: 2024-11-08 17:38:01
Score: 1.5
Natty:
Report link
Better example of using HTMLemail formatting 

``######################################################################### ## PowerShell Script: # #########################################################################

#Global Variable Section
#########################################
#Email Variables
$emailTo = "test.org"
$emailFrom = "test.org"
$smtpServer = "Mail.test.org" 
$message = ""
$subject = "J-Summary"
$message = ""

#Default Summary Variables; Set to Zero/Blank
$totalDollar = 0
$totalAccptDollar = 0
$numTrans = 0
$numAccptTrans = 0
$batchNum = ""
$transDetail = ""

#HTML Header Variables
$Header1 = "J "
$Header2 = "EC OPERATIONS"
$Header3 = " ALIDATION STATUS REPORT"

#File Path Section
#########################################
# Specify the path to EDI 820/824/997 Files
$filePath820 = "C:\Users\test\Desktop\Chase-Summary_Files\JPM820.outb*"
$filePath824 = "C:\Users\test\Desktop\Chase-Summary_Files\Chase_SH_AP_824_*"
$filePath997 = "C:\Users\test\Desktop\Chase-Summary_Files\Chase_SH_AP_997_*"
$archiveFolder = "C:\Users\test\Desktop\Chase-Summary_Files\_Archive\"

# Read the content of the Summary file
$content820 = Get-Content -Path $filePath820 -Raw
$content824 = Get-Content -Path $filePath824 -Raw
$content997 = Get-Content -Path $filePath997 -Raw

#Remove Line Feeds from EDI File Used For Easier Processing/Parsing Logic
$content820 = [string]::join("",($content820.split("`n")))
$content824 = [string]::join("",($content824.split("`n")))
$content997 = [string]::join("",($content997.split("`n")))

#HTML Compiler Section
#########################################
#Build Header HTML Section
$rptHeader = @"
<html>
<body>
<center><strong>$($Header1)</strong></center>
<center><strong>$($Header2)</strong></center>
<center><strong>$($Header3)</strong></center>
<br>
"@

#Build Footer HTML Section
$rptFooter = @"
</table>
<br>
<br>
STATUS(ST): TA=ACCEPTED TC=ACCEPTED W/CHANGE TE=ACCEPTED W/ERROR TR=REJECTED
<br>
<br>
<br>
IF YOU HAVE ANY QUESTIONS, PLEASE OPEN A SERVICENOW INCIDENT
ASSIGNED TO <strong>APP-BUSINESS-MATERIALS MANAGEMENT</strong>
<br>
<center>*****END OF REPORT*****</center>
</body>
</html>
"@

#EDI Reader Section to Finalize HTML Compiler
#########################################
#Read EDI 820 File (Used to Gather Total Received Number of Transactions and Dollar Amount)
$ediSegments = $content820 -split "\\"
##Parse Through Fields of Section and Get Total Dollar Amount Sent For All Transactions Regardless of Status For Summary Line
for ($s = 0; $s -lt $ediSegments.Count; $s++) {
    $ediSummarySegment = $ediSegments[$s] -split "\*"
    
    #Calculate Total Dollar Amount By Collecting Amount From Each Read BPR Section
    if ($ediSummarySegment[0] -eq "BPR") {
        $totalDollar = $totalDollar + $ediSummarySegment[2]
    }
    #Collect Total Number of Transactions From the GE Section
    elseif ($ediSummarySegment[0] -eq "GE") {
        $numTrans = $ediSummarySegment[1]
    }
}

#Read EDI 824 File (Used to Gather Total Processed Number of Transactions and Dollar Amount)
$ediSegments = $content824 -split "\\"
##Parse Through Fields of Section and Get Total Number of Accepted Dollar Amount and Accepted Transactions
for ($e = 0; $e -lt $ediSegments.Count; $e++) {
    $ediSummarySegment = $ediSegments[$e] -split "\*"

    #Calculate Total Dollar Amount By Collecting Amount From Each Read AMT Section
    if ($ediSummarySegment[0] -eq "AMT") {
        $totalAccptDollar = $totalAccptDollar + $ediSummarySegment[2]
    }
    #Collect Total Number of Transactions From the GE Section
    elseif ($ediSummarySegment[0] -eq "GE") {
        $numAccptTrans = $ediSummarySegment[1]
    }
}

#Parse Through Fields of Section
for ($i = 0; $i -lt $ediSegments.Count; $i++) {
    $ediSegment = $ediSegments[$i] -split "\*"

    #Collect and Format Date Value From the ISA Section
    if ($ediSegment[0] -eq "ISA") {
        $Customer = $ediSegment[8].TrimEnd()
        $Date = $ediSegment[9]
        $FormatDate = "$($Date.Substring(2,2))/$($Date.Substring(4,2))/$($Date.Substring(0,2))"
        $Time = $ediSegment[10]
        $FormatTime = "$($Time.Substring(0,2)):$($Time.Substring(2,2))"

        #Create Report Info Table
        $rptInfo = @"
<table border="0">
<tr><td>Customer ID: $($Customer)</td><td>&nbsp;</td><td>$($FormatDate) $($FormatTime) PT</td></tr>
</table>
<br>
"@
    }
    elseif ($ediSegment[0] -eq "ST") {
        $ediType = $ediSegment[0] -split "\*"    
    }
    elseif ($ediSegment[0] -eq "BGN") {
        #Collect Batch Number and Build Summary Table Section Based on First Collected Occurrence; Ignore All Other Values As They Would Be Duplicating This Section
        if ($batchNum -eq "") {
            $batchNum = $ediSegment[2]
                
            #Create Summary Table For First Time - Include Table Header
            $rptSummary = @"
<table border="1">
<tr><th>FILE# / BATCH#</th><th>AMOUNT</th><th># TRANS</th><th>STATUS</th></tr>
<tr><td>$($batchNum)</td><td>$($totalDollar)</td><td>$($numTrans)</td><td>TRANS RECEIVED</td></tr>
<tr><td>$($batchNum)</td><td>$($totalAccptDollar)</td><td>$($numAccptTrans)</td><td>TRANS ACCEPTED</td></tr>
</table>
<br>
"@
        }
    }
    elseif ($ediSegment[0] -eq "OTI") {
        #Collect and Format Date Value
        $effDate = $ediSegment[6]
        $effFormatDate = "$($effDate.Substring(4,2))/$($effDate.Substring(6,2))/$($effDate.Substring(0,4))"

        #Collect Transaction Detail and Build Detail Table and Rows Based on Each OTI Section Found in EDI File
        if ($transDetail -eq "") {
            #Create Transaction Detail Table For First Time - Include Table Header
            $transDetail = @"
<table border="1">
<tr><th>ST</th><th>TRANS #</th><th>TRACE #</th><th>EFF DATE</th><th>AMOUNT</th><th>MESSAGE</th></tr>
<tr><td>$($ediSegment[1])</td><td>$($ediSegment[9])</td><td>$($ediSegment[3])</td><td>$($effFormatDate)</td>
"@
        }
        #Build Additional Table Rows
        else {
        $transDetail = $transDetail + 
 @"
<tr><td>$($ediSegment[1])</td><td>$($ediSegment[9])</td><td>$($ediSegment[3])</td><td>$($effFormatDate)</td>
"@
        }
    }
    #Append Amount Value as Last Column in Row
    elseif ($ediSegment[0] -eq "AMT") {
        if ($transDetail -ne "") {
            $transDetail = $transDetail + "<td>$($ediSegment[2])</td><td></td></tr>" + "`r`n"
        }
    }
}

#Reset Variables to Avoid Duplication of Displayed Data
$errDetail = ""
$errReport = ""

#Read 997 EDI File (Used to Gather Total Number of Errored Transactions and Dollar Amounts)
$ediSegments = $content997 -split "\\"

#Parse Through Fields of Section
for ($i = 0; $i -lt $ediSegments.Count; $i++) {
    $ediSegment = $ediSegments[$i] -split "\*"
    
    #Collect Transaction Error Detail and Build Detail Table and Rows Based on Each AK2 Section Found in EDI File
    if ($ediSegment[0] -eq "AK2") {
        if ($errDetail -eq "") {
            #Create Transaction Error Detail Table For First Time - Include Table Header
            $errDetail = @"
<table border="1">
<tr><th>TRANS #</th><th>MESSAGE</th></tr>
<tr><td style="color:red"><strong>$($ediSegment[2])</strong></td><td style="color:red"><strong>TRANSACTION NOT ACCEPTED</strong></td></tr> `r`n
"@
        }
        #Build Additional Table Rows
        else {
            $errDetail = $errDetail + 
 @"
<tr><td style="color:red"><strong>$($ediSegment[2])</strong></td><td style="color:red"><strong>TRANSACTION NOT ACCEPTED</strong></td></tr> `r`n
"@
        }
    }
}

#Check If Error Detail Data Exists
if ($errDetail -eq "") {
    #Display Default Message to Customer Alerting No Errors Exist
    $errReport = @"
<br>
No Errors Exist.
<br>
"@
}
else {
    #Append Built Transaction Error Table to End Table Tag
    $errReport = @"
$($errDetail)
</table>
<br>
"@
}

#Build Email Message Body Section
#########################################
#Compile HTML Code
$body = @"
$($rptHeader)
$($rptInfo)
$($rptSummary)
$($errReport)
$($transDetail)
$($rptFooter)
"@

#Build Email Notification Section
#########################################
$message = $body
$anonUsername = "anonymous"
$anonPassword = ConvertTo-SecureString -String "anonymous" -AsPlainText -Force
$anonCredentials = New-Object System.Management.Automation.PSCredential($anonUsername,$anonPassword)
Send-MailMessage -smtpserver "$smtpServer" -from "$emailFrom" -to "$emailTo" -subject "$subject" -body "$message" -BodyAsHtml -credential $anonCredentials 

#Cleanup EDI File Section
#########################################
#Move Files to Archive Directory
Move-Item -Path $filePath820 -Destination $archiveFolder
Move-Item -Path $filePath824 -Destination $archiveFolder
Move-Item -Path $filePath997 -Destination $archiveFolder
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Filler text (0.5): #########################################################################
  • Filler text (0): #########################################################################
  • Low reputation (0.5):
Posted by: Configueroa

79169050

Date: 2024-11-08 06:50:09
Score: 5.5
Natty: 3
Report link

"php": "^7.3|^8.1",

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Er-KRISHAN MOHAN PANDEY

79168841

Date: 2024-11-08 04:49:38
Score: 4.5
Natty:
Report link

######ABOVE######

Nailed it!

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

79165240

Date: 2024-11-07 06:33:12
Score: 4
Natty:
Report link

বাংলাদেশের কৃষি বাংলাদেশ কৃষিপ্রধান দেশ। এদেশে শতকরা ৭৫ ভাগ লোক গ্রামে বাস করে। বাংলাদেশের গ্রাম এলাকায় ৫৯.৮৪% লোকের এবং শহর এলাকায় ১০.৮১% লোকের কৃষিখামার রয়েছে। মোট দেশজ উৎপাদন তথা জিডিপিতে কৃষিখাতের অবদান ১৯.১% এবং কৃষিখাতের মাধ্যমে ৪৮.১% মানুষের কর্মসংস্থান তৈরি হচ্ছে। ধান,পাট,তুলা,আখ,ফুল ও রেশমগুটির চাষসহ বাগান সম্প্রসারণ,মাছ চাষ,সবজি, পশুসম্পদ উন্নয়ন, মাটির উর্বরতা বৃদ্ধি,বীজ উন্নয়ন ও বিতরণ ইত্যাদি বিষয়সমূহ এ দেশের কৃষি মন্ত্রণালয় ও সংশ্লিষ্ট বিভাগসমূহের কর্মকাণ্ডের অন্তর্ভুক্ত। read more

Reasons:
  • No code block (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Ai IDEAS

79164055

Date: 2024-11-06 19:51:12
Score: 3
Natty:
Report link

'''

Future<void> getLocation() async {
setState(() {
  _isLoading = true;
});

// Optimized location settings with reduced accuracy for faster fetching
LocationSettings locationSettings;
if (defaultTargetPlatform == TargetPlatform.android) {
  locationSettings = AndroidSettings(
    accuracy: LocationAccuracy.reduced,  // Using reduced accuracy for faster results
    forceLocationManager: true,
  );
} else if (defaultTargetPlatform == TargetPlatform.iOS || defaultTargetPlatform == TargetPlatform.macOS) {
  locationSettings = AppleSettings(
    accuracy: LocationAccuracy.reduced,  // Using reduced accuracy for faster results
    activityType: ActivityType.other,
     // Reduced timeout since we expect faster response
  );
} else {
  locationSettings = LocationSettings(
    accuracy: LocationAccuracy.reduced,  // Using reduced accuracy for faster results
  );
}

try {
  // Check if location services are enabled
  bool serviceEnabled = await Geolocator.isLocationServiceEnabled();
  if (!serviceEnabled) {
    serviceEnabled = await Geolocator.openLocationSettings();
    if (!serviceEnabled) {
      setState(() {
        _isLoading = false;
      });
      AwesomeDialog(
        context: context,
        dialogType: DialogType.error,
        animType: AnimType.scale,
        title: 'Location Services Disabled',
        titleTextStyle: TextStyle(
          color: Color(0XFF0068B3),
          fontWeight: FontWeight.bold,
          fontSize: 16.sp,
        ),
        desc: 'Please enable location services to continue.',
        descTextStyle: TextStyle(
          color: Color(0XFF585F65),
          fontWeight: FontWeight.w500,
          fontSize: 12.sp,
        ),
        btnOkText: 'Open Settings',
        buttonsTextStyle: TextStyle(
          fontSize: 14.sp,
          color: Colors.white,
        ),
        btnOkColor: Colors.blue,
        btnOkOnPress: () async {
          await Geolocator.openLocationSettings();
        },
      ).show();
      return;
    }
  }

  // Check and request permissions
  LocationPermission permission = await Geolocator.checkPermission();
  if (permission == LocationPermission.denied) {
    permission = await Geolocator.requestPermission();
    if (permission == LocationPermission.denied) {
      setState(() {
        _isLoading = false;
      });
      AwesomeDialog(
        context: context,
        dialogType: DialogType.warning,
        animType: AnimType.scale,
        title: 'Location Permission Required',
        titleTextStyle: TextStyle(
          color: Color(0XFF0068B3),
          fontWeight: FontWeight.bold,
          fontSize: 16.sp,
        ),
        desc: 'Please grant location permission to use this feature.',
        descTextStyle: TextStyle(
          color: Color(0XFF585F65),
          fontWeight: FontWeight.w500,
          fontSize: 12.sp,
        ),
        btnOkText: 'Request Permission',
        buttonsTextStyle: TextStyle(
          fontSize: 14.sp,
          color: Colors.white,
        ),
        btnOkColor: Colors.blue,
        btnOkOnPress: () async {
          await getLocation();
        },
      ).show();
      return;
    }
  }

  if (permission == LocationPermission.deniedForever) {
    setState(() {
      _isLoading = false;
    });
    AwesomeDialog(
      context: context,
      dialogType: DialogType.error,
      animType: AnimType.scale,
      title: 'Location Permission Denied',
      titleTextStyle: TextStyle(
        color: Color(0XFF0068B3),
        fontWeight: FontWeight.bold,
        fontSize: 16.sp,
      ),
      desc: 'Location permission is permanently denied. Please enable it from app settings.',
      descTextStyle: TextStyle(
        color: Color(0XFF585F65),
        fontWeight: FontWeight.w500,
        fontSize: 12.sp,
      ),
      btnOkText: 'Open Settings',
      buttonsTextStyle: TextStyle(
        fontSize: 14.sp,
        color: Colors.white,
      ),
      btnOkColor: Colors.blue,
      btnOkOnPress: () async {
        await Geolocator.openAppSettings();
      },
    ).show();
    return;
  }

  // Try to get the last known location first
  Position? lastKnownPosition = await Geolocator.getLastKnownPosition(
    forceAndroidLocationManager: true,
  );

  if (lastKnownPosition != null ) {
    // Use last known position if it's recent
    latitude = lastKnownPosition.latitude;
    longitude = lastKnownPosition.longitude;
    print("lat and lon from lastknwnlocation ${latitude}${longitude}");
  } else {
    // Get current position with reduced accuracy settings
    Position position = await Geolocator.getCurrentPosition(
      locationSettings: locationSettings,
    );

    latitude = position.latitude;
    longitude = position.longitude;
    print("lat and lon from currentlocation ${latitude}${longitude}");
  }

  if (latitude != null && longitude != null) {
    await getCurrentPlace();
  } else {
    setState(() {
      _isLoading = false;
    });
    AwesomeDialog(
      context: context,
      dialogType: DialogType.error,
      animType: AnimType.scale,
      title: 'Location Not Found',
      desc: 'Unable to fetch your current location. Please try again.',
      btnOkText: 'Retry',
      btnOkColor: Colors.blue,
      btnOkOnPress: () async {
        await getLocation();
      },
    ).show();
  }
} catch (e) {
  print('Error fetching location: $e');
  setState(() {
    _isLoading = false;
  });
  // More specific error handling
  String errorMessage = 'Failed to fetch location. Please try again.';
  if (e is TimeoutException) {
    errorMessage = 'Location fetch is taking too long. Please check your GPS signal and try again.';
  }

  AwesomeDialog(
    context: context,
    dialogType: DialogType.error,
    animType: AnimType.scale,
    title: 'Error',
    titleTextStyle: TextStyle(
      color: Color(0XFF0068B3),
      fontWeight: FontWeight.bold,
      fontSize: 16.sp,
    ),
    desc: errorMessage,
    descTextStyle: TextStyle(
      color: Color(0XFF585F65),
      fontWeight: FontWeight.w500,
      fontSize: 12.sp,
    ),
    btnOkText: 'Retry',
    buttonsTextStyle: TextStyle(
      fontSize: 14.sp,
      color: Colors.white,
    ),
    btnOkColor: Colors.blue,
    btnOkOnPress: () async {
      await getLocation();
    },
  ).show();
} finally {
  setState(() {
    _isLoading = false;
  });
}

}

'''

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

79163394

Date: 2024-11-06 16:18:59
Score: 8 🚩
Natty: 3.5
Report link

... အကူအညီစင်တာတွင် သတ်မှတ်ထားသည့်

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: user23373022

79159422

Date: 2024-11-05 14:09:32
Score: 6 🚩
Natty:
Report link

'''

No module named 'lib2to3'

'''

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

79158056

Date: 2024-11-05 07:41:18
Score: 8.5 🚩
Natty:
Report link

bitte antwort.........................................................

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (2.5):
  • Filler text (0.5): .........................................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: jeff

79155777

Date: 2024-11-04 14:19:57
Score: 0.5
Natty:
Report link

I don't know if it's my fault but it's doesn't work. my new code is this:

function myFunction() {

let objects = SpreadsheetApp.getActive().getSheetByName("Feuille 7").getRange('D:E').getValues()
let order = SpreadsheetApp.getActive().getSheetByName("Feuille 7").getRange('A:A').getValues().flat()

/* Create a mapping object `orderIndex`:
*/

let orderIndex = {}
order.forEach((value, index) => orderIndex[value] = index);

// Sort
objects.sort((a, b) => orderIndex[a] - orderIndex[b]) 

// Log
Logger.log("/////////////////////////order////////////////////////////////")
Logger.log(order)
Logger.log("/////////////////////////objects////////////////////////////////")
Logger.log(objects)


SpreadsheetApp.getActive().getSheetByName("Feuille 7").getRange('H:I').setValues(objects)
}

a array 1D b 156 array 2D b 156 result
b f 68 f 68
c a 507 a 507
d c 22 c 22
e d 430 d 430
f e 555 e 555
g g 689 g 689
h k 62 k 62
i l 395 l 395
j i 209 i 209
k j 745 j 745
l h 37 h 37
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Romain Gapteau

79154705

Date: 2024-11-04 08:33:55
Score: 0.5
Natty:
Report link

جرب الكود التالي لإظهار رسالة داخل asp.net C#

Try this code:

ClientScript.RegisterStartupScript(this.GetType(), "randomtext","FillData()", true);
Reasons:
  • Whitelisted phrase (-2): Try this code
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Meshal

79154093

Date: 2024-11-04 03:09:21
Score: 1.5
Natty:
Report link

I hope this is helpful, I got stuck on the same problem but with the help of ChatGTP and Claude AI, I was able to come across one possible solution.

I am using localhost in this example and tailwind CSS in a MERN Stack project.

-------------------------------Passport Setup--------------------------------

import passport from "passport";
import { Strategy as GoogleStrategy } from "passport-google-oauth20";

import User from "../models/user.model.js";
import dotenv from "dotenv";

dotenv.config();

// Configure Passport with a Google strategy for authentication
passport.use(
  "google",
  new GoogleStrategy(
    {
      clientID: process.env.GOOGLE_CLIENT_ID,
      clientSecret: process.env.GOOGLE_CLIENT_SECRET,
      callbackURL: "/api/auth/google/callback",
    },
    /**
     * Verify the user's credentials using Google.
     *
     * This function is called by Passport when a user attempts to log in with their Google account.
     * It:
     * 1. Searches for a user with the provided Google ID.
     * 2. If no user is found, it creates a new user with information from the Google profile.
     * 3. Returns the user object.
     * 4. Passes any errors to the `done` callback.
     *
     * @param {string} accessToken - The access token provided by Google.
     * @param {string} refreshToken - The refresh token provided by Google.
     * @param {Object} profile - The user's profile information from Google.
     * @param {Function} done - The callback to call with the authentication result.
     */
    async (accessToken, refreshToken, profile, done) => {
      try {
        let user = await User.findOne({ googleId: profile.id });
        // Additional check to prevent duplicate accounts if Google email changes
        if (!user) {
          user = await User.findOne({ email: profile._json.email });
        }

        if (!user) {
          // Generate a random password
          const randomPassword = User.prototype.generateRandomPassword();
          // Create a new user
          user = await User.create({
            googleId: profile.id,
            name: profile._json.name,
            email: profile._json.email,
            password: randomPassword, // Set the generated password
            profilePicture: profile._json.picture,
          });
        }
        return done(null, user);
      } catch (error) {
        return done(error, false);
      }
    }
  )
);

/**
 * Serialize the user for the session.
 *
 * This function is called when a user is authenticated. It:
 * 1. Takes the user object and stores the user ID in the session.
 * 2. This ID is used to identify the user in subsequent requests.
 *
 * @param {Object} user - The authenticated user object.
 * @param {Function} done - The callback to call with the serialized user ID.
 */
passport.serializeUser((user, done) => {
  done(null, user.id);
});

/**
 * Deserialize the user from the session.
 *
 * This function is called on each request to retrieve the user object based on the user ID stored in the session. It:
 * 1. Finds the user by their ID.
 * 2. Passes the user object to the `done` callback.
 * 3. Passes any errors to the `done` callback if the user cannot be found.
 *
 * @param {string} id - The user ID stored in the session.
 * @param {Function} done - The callback to call with the user object or an error.
 */
passport.deserializeUser(async (id, done) => {
  try {
    const user = await User.findById(id);
    done(null, user);
  } catch (err) {
    done(err);
  }
});

export default passport;

------------------------------- Auth Controller --------------------------------

import passport from "../lib/PassportSetup.js";
import User from "../models/user.model.js";

/**
 * Initiates Google authentication.
 *
 * This function handles initiating the Google OAuth2 authentication process by:
 * 1. Redirecting the user to Google's OAuth2 login page.
 *
 * @param {Object} req - The request object for initiating Google authentication.
 * @param {Object} res - The response object to redirect the user to Google.
 * @param {Function} next - The next middleware function in the stack.
 */
export const googleAuth = passport.authenticate("google", {
  scope: ["profile", "email"],
});

/**
 * Handles the callback from Google OAuth2.
 *
 * This function handles the callback after the user has authenticated with Google. It:
 * 1. Uses Passport's 'google' strategy to authenticate the user.
 * 2. Redirects the user to the home page on successful authentication.
 * 3. Handles authentication errors by redirecting to the login page with an error message.
 *
 * @param {Object} req - The request object containing Google OAuth2 callback data.
 * @param {Object} res - The response object to redirect the user.
 * @param {Function} next - The next middleware function in the stack.
 */
export const googleAuthCallback = (req, res, next) => {
  passport.authenticate("google", {
    successRedirect: `${process.env.CLIENT_URL}/oauth/callback`,
    failureRedirect: `${process.env.CLIENT_URL}/login`,
    failureFlash: true,
  })(req, res, next);
};

/**
 * Handles successful authentication callbacks from OAuth providers.
 *
 * This function is triggered when a user is successfully authenticated via an OAuth provider (e.g., Google, GitHub).
 * It:
 * 1. Checks if a user object is present on the request, which is set by Passport after successful authentication.
 * 2. Responds with a 200 status and user information if authentication is successful.
 * 3. Includes the user's ID, name, email, profile picture, and role in the response.
 *
 * @param {Object} req - The request object, containing authenticated user data.
 * @param {Object} res - The response object used to send back the authentication result.
 * @param {Function} next - The next middleware function in the stack (not used in this function).
 * @returns {Object} JSON object with user data on success, or an error status if authentication fails.
 */
export const authCallbackSuccess = (req, res, next) => {
  return res.status(200).json({
    success: true,
    status: 200,
    user: {
      id: req.user.id,
      name: req.user.name,
      email: req.user.email,
      profilePicture: req.user.profilePicture,
      role: req.user.role,
    },
  });
};

------------------------------- Auth Routes --------------------------------

import express from "express";

import {
  googleAuth,
  googleAuthCallback,
  authCallbackSuccess,
} from "../controllers/auth.controller.js";

const router = express.Router();

// Passport Google OAuth2 login
router.get("/google", googleAuth);

// Handles Passport Google OAuth2 callback
router.get("/google/callback", googleAuthCallback);

// Returns the user object after Passport Google OAuth2, Github, or any other callback
router.get("/callback/success", isAuthenticated, authCallbackSuccess);

export default router;

------------------------ React OAuthButtons.jsx -------------------------

import React from 'react';
import { useSelector } from 'react-redux';

function OAuthButtons() {
    const { loading } = useSelector((state) => state.user);

    const handleOAuth = (provider) => {
        window.location.href = `http://localhost:4000/api/auth/${provider}`;
    }

    return (
        <div className='flex flex-col gap-3'>
            <button
                className="bg-red-700 text-white rounded-lg p-3 uppercase hover:bg-red-600 disabled:bg-red-400"
                type="button"
                onClick={() => handleOAuth("google")}
                disabled={loading}
            >
                Continue with Google
            </button>
            <button
                className="bg-blue-700 text-white rounded-lg p-3 uppercase hover:bg-blue-600 disabled:bg-blue-400"
                type="button"
                onClick={() => handleOAuth("github")}
                disabled={loading}
            >
                Continue with Github
            </button>
        </div>
    );
}

export default OAuthButtons;

------------------------ React OAuthCallback.jsx -------------------------

import React, { useEffect } from 'react';
import axios from 'axios';
import { useDispatch } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import { loginStart, loginSuccess, loginFailure } from '../../redux/user/userSlice.js';

function OAuthCallback() {
    const dispatch = useDispatch();
    const navigate = useNavigate();

    useEffect(() => {
        const handleCallback = async () => {
            try {
                dispatch(loginStart());
                const response = await axios.get(
                    `http://localhost:4000/api/auth/callback/success`,
                    { withCredentials: true }
                );
                dispatch(loginSuccess({ user: response.data.user }));
                navigate('/');
            } catch (error) {
                dispatch(loginFailure({
                    error: error.response?.data?.message || "Login using Google failed! Please try using email and password!"
                }));
                navigate('/login');
            }
        };

        handleCallback();
    }, [dispatch, navigate]);

    return (
        <div className="flex items-center justify-center min-h-screen">
            <div className="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-red-700"></div>
        </div>
    );
}

export default OAuthCallback;

------------------------ React App.jsx -------------------------

import React from 'react';
import { BrowserRouter, Routes, Route } from "react-router-dom";

import NavigationBar from './components/Navigation/NavigationBar.jsx';
import Home from './pages/Static/Home.jsx';
import About from './pages/Static/About.jsx';
import Register from './pages/Auth/Register.jsx';
import Login from './pages/Auth/Login.jsx';
import OAuthCallback from './components/Auth/OAuthCallback.jsx';

function App() {
  return (
    <BrowserRouter>
      <NavigationBar />
      <Routes>
        <Route path='/' element={<Home />} />
        <Route path='/about' element={<About />} />
        <Route path='/register' element={<Register />} />
        <Route path='/login' element={<Login />} />
        <Route path="/oauth/callback" element={<OAuthCallback />} />
      </Routes>
    </BrowserRouter>
  )
}

export default App;

------------------------ React (Sample Implementation) Login.jsx -------------------------

import React, { useState } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import axios from "axios";
import { useDispatch, useSelector } from 'react-redux';
import { loginStart, loginSuccess, loginFailure } from '../../redux/user/userSlice.js';
import OAuthButtons from '../../components/Auth/OAuthButtons.jsx';

function Login() {
  const [formDate, setFormData] = useState({
    email: "",
    password: "",
  });
  const navigate = useNavigate();
  const dispatch = useDispatch();
  const { loading, error } = useSelector((state) => state.user);

  const handleChange = (e) => {
    setFormData({ ...formDate, [e.target.id]: e.target.value });
  }

  const handleSubmit = async (e) => {
    e.preventDefault();
    try {
      dispatch(loginStart());
      const response = await axios.post("http://localhost:4000/api/auth/login", formDate, { withCredentials: true });
      const data = await response.data;
      dispatch(loginSuccess({ user: data.user }));
      navigate("/profile");
    } catch (error) {
      dispatch(loginFailure({ error: error.response?.data?.message || "An unexpected error occurred. Please try again." }));
    }
  }

  return (
    <div className='p-3 max-w-lg mx-auto'>
      <h1 className='text-3xl text-center font-semibold my-7'>Login</h1>
      <form onSubmit={handleSubmit} className='flex flex-col gap-4'>
        <input type="email" placeholder='Email' id='email' className='bg-slate-100 p-3 rounded-lg' onChange={handleChange} />
        <input type="password" placeholder='Password' id='password' className='bg-slate-100 p-3 rounded-lg' onChange={handleChange} />
        <button type='submit' disabled={loading} className='bg-slate-700 text-white p-3 rounded-lg uppercase hover:opacity-95 disabled:opacity-75 cursor-pointer'>
          {loading ? "Loading..." : "Login"}
        </button>
        <div className='border-b'></div>
        <OAuthButtons />
      </form>
      <div className='flex gap-2 mt-5'>
        <p>Don't an account?</p>
        <span className='text-blue-500'><Link to={"/register"}>Register</Link></span>
      </div>
      <div>
        <p className='text-red-700'>{error}</p>
      </div>
    </div>
  )
}

export default Login;
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (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): --------------------------------
  • 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: Jeel Patel

79154065

Date: 2024-11-04 02:51:15
Score: 6.5 🚩
Natty: 4.5
Report link

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Filler text (0.5): ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • Low entropy (1):
  • Low reputation (1):
Posted by: Cuong Nguyen Cao

79147980

Date: 2024-11-01 12:29:01
Score: 4.5
Natty: 4
Report link

تم تجربة التالي وقد عمل بنجاح انطلاقا من الاعدادات الخاصة بالكمبوبوكس واستدعاء السورس كود كالتالي . 'Source '!$A$1:$A$4 مما اكد الحصول على الالخانات A1 : A4 بالتوفيق للجميع

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

79146782

Date: 2024-11-01 02:34:13
Score: 2.5
Natty:
Report link

Educational

summarize दौस्ति की मिसाल: धर्म से परे इंसानियत की कहानी

Umesh Behera

mode_edit_outline

star_border

Rahim Badshah

mode_edit_outline

star_border Chapter 1: मित्रता की शुरुआत

edit

download

pause

broken_image Add Media Insufficient credits अध्याय 1 - मित्रता की शुरुआत

गर्मी के एक सुंदर दिन में, छोटे से गांव 'घनश्यामपुर' में एक नया परिवार आया था। यह परिवार मुस्लिम समुदाय से था और बादशाह परिवार के नाम से जाना जाता था। पिता रहीम बादशाह, माता सलमा बेगम और बेटा रहीम बादशाह। रहीम एक 17 वर्षीय युवक था, जो अपने माता-पिता और छोटे भाई-बहनों के साथ रहता था।

गांव के लोग इस नए परिवार का स्वागत करने में थोड़ा संकोच कर रहे थे, क्योंकि यह एक हिंदू बहुल गांव था। लेकिन रहीम का मिठास और सरल व्यवहार जल्द ही उन्हें सभी के दिलों में बैठ गया। वह गांव के बच्चों के साथ खेलने और उनकी मदद करने लगा। धीरे-धीरे रहीम और गांव के एक अन्य युवक, उमेश बेहरा, के बीच एक गहरी दोस्ती बन गई।

उमेश एक हिंदू परिवार से आता था। उसके पिता रामू बेहरा एक किसान थे और उसकी माता सुधा बेहरा गृहिणी थीं। उमेश अपने माता-पिता और छोटे भाई-बहनों के साथ रहता था। वह एक मेधावी छात्र था और गांव में सबसे अच्छे छात्रों में से एक माना जाता था।

एक दिन, जब उमेश स्कूल से लौट रहा था, तो उसने रहीम को अकेले खड़े देखा। उमेश ने रहीम की मदद की पेशकश की और धीरे-धीरे दोनों युवकों के बीच एक मजबूत दोस्ती बन गई। वे एक-दूसरे के घर जाया करते और एक-दूसरे की मदद करते। उमेश रहीम को हिंदी में पढ़ने-लिखने की मदद करता और रहीम उमेश को उर्दू में सुधार करता।

गांव में दोनों परिवारों के बीच भी धीरे-धीरे एक अच्छा संबंध बन गया। रहीम के पिता रहीम बादशाह और उमेश के पिता रामू बेहरा अक्सर एक-दूसरे से मिलते और अपने परिवारों के बारे में बात करते। सलमा बेगम और सुधा बेहरा भी एक-दूसरे के घर जाया करती और आपस में मिठाइयां बांटती।

एक दिन, उमेश और रहीम स्कूल से लौट रहे थे। तभी अचानक आसमान में काले बादल छा गए और तेज़ हवाएं चलने लगीं। शीघ्र ही भारी बारिश शुरू हो गई और तेज़ तूफान आने लगा। गांव के कई घर क्षतिग्रस्त हो गए और लोगों को बहुत परेशानी हो रही थी।

उमेश के घर में भी काफी नुकसान हुआ था। उसके पिता रामू बेहरा के खेत भी बर्बाद हो गए थे। उमेश बहुत चिंतित था और वह रहीम के घर गया। रहीम ने उमेश को देखकर उसकी मदद करने की पेशकश की। उमेश ने रहीम से कहा, "मेरा परिवार बहुत परेशान है। हमारा घर और खेत नष्ट हो गए हैं।" रहीम ने कहा, "मेरे घर में आ जाओ, हम आपकी मदद करेंगे।"

रहीम के पिता रहीम बादशाह ने भी उमेश के परिवार की मदद करने का फैसला किया। वह उमेश के पिता रामू बेहरा से मिले और उन्हें अपने घर में रहने का न्यौता दिया। रामू बेहरा ने इस दोस्ताना जेस्चर को स्वीकार कर लिया और अपना परिवार रहीम के घर में ले गए।

इस तरह, एक हिंदू और एक मुस्लिम परिवार एक साथ रहने लगे। रहीम और उमेश की दोस्ती और परिवारों के बीच बढ़ते संबंध ने गांव में एक नए उदाहरण की शुरुआत की। लोग देखकर हैरान थे कि धर्म और जाति के बावजूद, ये दो परिवार कैसे एक-दूसरे की मदद कर रहे हैं। यह सच्ची मानवता और सहयोग की भावना थी, जो सभी बाधाओं को पार कर गई।

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

79144755

Date: 2024-10-31 12:38:02
Score: 4
Natty: 4
Report link

Браузер использует кэш для загрузки старой версии swagger. Ctrl + Shift + R(Windows) - обновление страницы с очисткой кэша

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

79144182

Date: 2024-10-31 09:46:02
Score: 0.5
Natty:
Report link

flag = True

start = input('Для начала работы введите команду start \n') if start.lower() == 'start': while True:

 print("Я Ваш помощник. Выберите математический оператор: [+] [-] [*] [/] [sin] [cos] [tan] [cotan]")

operator = input("Введите оператор: ")

if operator in ["sin", "cos", "tan", "cotan"]:
    number = float(input("Введите число: "))
    if operator == "sin":
        print("Результат sin:", math.sin(math.radians(number)))
    elif operator == "cos":
        print("Результат cos:", math.cos(math.radians(number)))
    elif operator == "tan":
        print("Результат tan:", math.tan(math.radians(number)))
    elif operator == "cotan":
        if math.tan(math.radians(number)) != 0:
            print("Результат cotan:", math.tan(math.radians(number)))
        else:
            print("Ошибка: cotan не определен для этого значения.")
else:
    number1 = float(input("Введите первое число: "))
    number2 = float(input("Введите второе число: "))

    if operator == "+":
        print("Результат суммы:", number1 + number2)
    elif operator == "-":
        print("Результат вычитания:", number1 - number2)
    elif operator == "*":
        print("Результат умножения:", number1 * number2)
    elif operator == "/":
        if number2 != 0:
            print("Результат деления:", number1 / number2)
        else:
            print("Ошибка: деление на ноль невозможно.")
    else:
        print("Неверный оператор. Попробуйте снова.")
   

print("Выход из программы.")
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: user28073512

79143102

Date: 2024-10-30 23:31:20
Score: 4
Natty: 4.5
Report link

ببینید دوستان گفتم که من چندین سال تایید کردم ۸۰درصد کد هارو نمیدونم چی هستند ولی به هر حال افشا گری باید بکنم همشون مال خودم هست و به صورت مدارک میتونم اثبات کنم این دیتا مال یک روز دوروز ک نیست مال چند مدت تلاشم هست بازم بگم من قصد دارم توافق کنم ولی هم سیاستش را ندارم چگونه اعلام کنم هم آنقدر حرفه ای نیستم اگر بودم اجازه نمی‌دادم هک شوم چنان هکم کردند اجازه دسترسی به پلاگین مترجم کیبردمم هم نتوانم بشوم

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Goli Gharaei

79140401

Date: 2024-10-30 09:18:39
Score: 7 🚩
Natty: 5.5
Report link

Мужик ты лучший, я очень долго голову ломал, это помогло

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Илья Шохов

79136584

Date: 2024-10-29 09:44:23
Score: 7 🚩
Natty: 6.5
Report link

Посмотрите реализацию здесь, я воспользовался данным классом и все работает https://github.com/OxMohsen/validating-data/blob/main/src/Validate.php

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

79136320

Date: 2024-10-29 08:22:53
Score: 1.5
Natty:
Report link

Лично у меня ошибка была в написании 'product_files'. Users.ts Было 'products_files'

{
            name: 'product_files',
            label: 'Products files',
            admin: {
                condition: () => false,
            },
            type: 'relationship',
            relationTo: 'product_files',
            hasMany: true,
        },
Reasons:
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Егор Косинцев

79135490

Date: 2024-10-29 00:47:43
Score: 5
Natty: 5
Report link

я тоже помучился и нашёл выход , py.exe -m venv venv и все заработала,

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Толиб Ибадуллаев

79131722

Date: 2024-10-27 23:47:11
Score: 7 🚩
Natty: 5.5
Report link

Всё это ложь, ПРОГРАМИ ДАЖЕ ПЛАТНИЕ ВРУТ

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Vlad motobloger

79130970

Date: 2024-10-27 16:17:15
Score: 4
Natty:
Report link

Model::query()->latest()->get(); model::query()->latest()->take(10)->get();

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

79126635

Date: 2024-10-25 16:56:41
Score: 6.5 🚩
Natty:
Report link

خرید سالت انار در بهترین قیمت ارسال به سراسر کشور

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

79125072

Date: 2024-10-25 09:34:14
Score: 5.5
Natty: 5
Report link

https://github.com/apache/brpc/tree/master/src/bvar this is what you need...............

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ...............
  • Low reputation (1):
Posted by: xkkppp

79124355

Date: 2024-10-25 05:31:49
Score: 1
Natty:
Report link

my_list = [34, 128, 5, 7 ,32 ,12, 7, 3]

'''Функция преобразования СПИСКА в ЧИСЛО.'''

def f_list_to_int(arg_list): a = arg_list.pop(0) s = str(a)

for i in range(len(arg_list)):
    s += str(arg_list[i])

# Восстановление изначального СПИСКА.
arg_list.insert(0, a)

b = int(s)
return b

'''Вызываем функцию преобразования...''' d = f_list_to_int(my_list) print(f'd = {d}')

result >>> d = 3412857321273

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

79124083

Date: 2024-10-25 02:32:11
Score: 5
Natty: 5
Report link

किसी गलत लेनदेन के लिए मीशो से पैसे वापस पाने के लिए, आपको तुरंत पेटीएम के ग्राहक सहायता से संपर्क करना चाहिए: .7407628017 और (24/7 उपलब्ध) समस्या की रिपोर्ट करें । आपके साथ जुड़ने के लिए धन की वसूली में मदद करने के लिए उनके पास प्रक्रियाएँ हैं।...

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Pooja

79122707

Date: 2024-10-24 15:47:08
Score: 5
Natty: 5
Report link

Спрайт» (2D и Apply c левой стороны

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: александр гусев

79120754

Date: 2024-10-24 07:18:50
Score: 4.5
Natty:
Report link

Win10 PostgreSQL16, столкнулся с проблемой database cluster initialisation failed при переустановке PostgreSQL16. Искал решение больше 10 часов, создавал пользователей и прочее, запускал через runas и т.д, ничего не помогало.

Что сработало у меня. После неудачной установки - Удаляем postgres (проверить также AppData\Roaming - удалить pgadmin и записи реестра \HKEY_LOCAL_MACHINE\SOFTWARE\Postgress.. Перезагружаемся. 1a. Делаем https://stackoverflow.com/a/68737176/23587300 1b. Проверяем кодировку, как сказано в https://stackoverflow.com/a/57897738/23587300 2. Создаем папку и даем в ней пользователям максимальные права, например C:\Program Files\MyFolder enter image description here

  1. Ставим postgres в эту папку (папку дата ставим тоже в вашу созданную папку!), и все работает!
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: A1TR

79119230

Date: 2024-10-23 18:31:08
Score: 3
Natty:
Report link

НУЖНО установить OPENJDK, сложить все файлы которые получили из гугл плей консоли в отдельную папку, потом перейти в эту папку из консоли и использовать вот такую команду: java -jar pepk.jar --keystore=foo.keystore --alias=fookey --output=output.zip --include-cert --rsa-aes-encryption --encryption-key-path=encryption_public_key.pem

foo.keystore это старый ваш файл с ключем. fookey - этоа лиас этого файла (посмотреть его можно вот такой командой keytool -list -v -keystore foo.keystore )

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

79118628

Date: 2024-10-23 15:33:58
Score: 6.5 🚩
Natty: 5
Report link

سلام. چرا موضوع عوض می‌کنین . چرا پستو پاک کردین. خودکشی چیه. مرضیه با برادرش داشتن از دست دزد فرار میکردن که اینطوری شد. اگر اطلاع نداریین لطفا چیز اشتباه منتشر نکنین

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

79116933

Date: 2024-10-23 07:54:35
Score: 7 🚩
Natty: 5.5
Report link

Мне ничего не помогло, уже несколько дней мучаюсь с этой проблемой!

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Яро Князь

79116797

Date: 2024-10-23 07:28:24
Score: 4
Natty:
Report link

Если сильно захотеть перегрузить оператор, можно сделать препроцессор для аннотации и заменять выражения a + b, a += b a.add(b), a = a.add(b) А также написать плагин для idea чтобы убрать error предупреждения в этих случаях. Вот пример: https://github.com/AxeFu/OperatorOverloadingJava

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

79110847

Date: 2024-10-21 16:05:19
Score: 3.5
Natty:
Report link

Как вариант ещё можно использовать функцию CAST для преобразовани типа, если используете SQLAlchemy 2.0

Название_модели.название_поля.cast(Text)

Естественно нужно все импортировать:

from sqlalchemy import cast, Text

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Виктор Веретнов

79109715

Date: 2024-10-21 11:02:15
Score: 5.5
Natty: 5
Report link

Процесс открытия COM-порта - асинхронный. вы не дожидаетесь открытия и сразу пытаетесь считать данные. В прямом варианте, думаю, на on('read') подключено только вызов usb_rx();. В случае таймера порт также успевает открыться.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Vovusp

79101276

Date: 2024-10-18 08:44:37
Score: 5
Natty: 3
Report link

或许你可以试试重构一下el-table 将虚拟组件放入表格的bodywrap当中

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: 王伟东

79098986

Date: 2024-10-17 16:15:05
Score: 7.5 🚩
Natty: 6.5
Report link

друг, удалось решить эту проблему? у меня тоже самое

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: NineTails

79098543

Date: 2024-10-17 14:31:29
Score: 5
Natty: 4.5
Report link

Нужно пририсовать квадрат слева 3 границы черные 1 белая справа фон белый и эта граница белая перекроет черную в элементе TextBox

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

79097157

Date: 2024-10-17 08:22:30
Score: 6.5 🚩
Natty: 5.5
Report link

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

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Владислав Аврелий

79095498

Date: 2024-10-16 19:12:59
Score: 5.5
Natty:
Report link

Не могу открыть ссылку на изображение в чём может быть причина что-то нужно поменять либо что-то нужно удалить в этой ссылке помогите https://tinki.vip/p/982ndfsh4n2l12fdsjsdf

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Денис Павлов

79092700

Date: 2024-10-16 06:28:04
Score: 1.5
Natty:
Report link

InitiallyExpandedFunc 이 함수를 이용하면 될 것 같아요

하이라키 칼럼에 InitiallyExpandedFunc="@(x => allExpend)" 이렇게 사용한다고 가정하면

bool allExpend = false;

void ExpandAllGroups(bool newvalue)
{
    allExpend = newvalue;
    // use Elements get method
}

이렇게 하면 하이라키칼럼이 allExpend 변수의 상태에 따라 모두 접히거나 펴집니다.

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

79092383

Date: 2024-10-16 03:40:23
Score: 3.5
Natty:
Report link

In ajax : data ==> data.trim(); ان شاء الله

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

79092142

Date: 2024-10-16 00:57:44
Score: 1.5
Natty:
Report link

𝙇𝙄𝙑𝙀 𝘾𝘼𝙈𝙀𝙍𝘼 𝙇𝙊𝘾𝘼𝙏𝙄𝙊𝙉 𝙃𝘼𝘾𝙆 "লাইভ ক্যামেরা লোকেশন হ্যাক" টেলিগ্রাম বট এটি শুধুমাত্র শিক্ষামূলকভাবে তৈরি করা হয়েছে। এটাকে খারাপ কাজে ব্যবহার না করার জন্য অনুরোধ করা যাচ্ছে। দয়া করে এটাকে কেউ খারাপ কাজে ব্যবহার করবেন না। এটা যদি কেউ খারাপ কাজে ব্যবহার করেন তাহলে এই বটের ডেভলপার কোন ভাবে দায়ী থাকবে না। 𝙇𝙄𝙑𝙀 𝘾𝘼𝙈𝙀𝙍𝘼 𝙇𝙊𝘾𝘼𝙏𝙄𝙊𝙉 𝙃𝘼𝘾𝙆 "Live Camera Location Hack" Telegram Bot This is made for educational purposes only. It is requested not to misuse it. Please don't misuse it. The developer of this bot will not be responsible in any way if it is misused by someone.

Dev: DADA Technology https://t.me/DADAechnology

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Noyon Ahmed

79091819

Date: 2024-10-15 21:39:56
Score: 1.5
Natty:
Report link

English: I encountered this issue, and with God's help, I did the following to solve the problem:

لقد واجهتني هذه المشكله وبفضل ربنا قمت بالاتي لحل المشكله

  1. Uninstall all extensions related to C++.

  2. (c++) الغاء تثبيت جميع الاضافات المتعلقه بلغه

  3. Delete the .vscode folder.

  4. حذف مجلد .vscode

After that reinstall the extensions and run the code; it will work. This method worked for me. Thanks

وبعدها قم بتثبيت الاضافات مره اخرى وقم بتشغيل الكود سيعمل لقد نجح معي هذا الأمر وشكرا

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: user25235695

79090588

Date: 2024-10-15 15:12:58
Score: 3
Natty:
Report link

Code black

Trap to 

sahil

il

khan

30cr `

========== my

-


Account number

-

Send me


Sir .............?


`

`

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ==========
  • Filler text (0): .............
  • Low reputation (1):
Posted by: Arman T Khan

79085085

Date: 2024-10-14 07:25:21
Score: 7.5 🚩
Natty: 4.5
Report link

enter image description here В имени администратора или пользователя к базе данных есть символы, одна из причин.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Алескандр

79082611

Date: 2024-10-13 07:21:37
Score: 5.5
Natty: 5.5
Report link

אני יודע איך לעשות את זה תשלח לי את הקובץ המלא PAC ואני ידגים לך

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: פיני

79081046

Date: 2024-10-12 13:03:35
Score: 6.5 🚩
Natty:
Report link

عدل على التنسيق الشرطى


عدل على التنسيق الشرطى

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: ahmed al sheikh

79080901

Date: 2024-10-12 11:33:15
Score: 9.5 🚩
Natty:
Report link

HAHAHAHAHAHHAAHHAHAHAHAHHAHAHAHAHAH

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: wee

79080268

Date: 2024-10-12 05:57:57
Score: 1.5
Natty:
Report link

已经过了三年了,希望你已经解决了这个问题。

我刚刚研究出一个解决方案:

    $('#gallery-1').on('click', 'a', function(event) {
        
        let index = $(this).closest('.gallery-item').index('#gallery-1 .gallery-item');

        setTimeout(()=>{
            let galleryLightbox = $(`#elementor-lightbox-slideshow-${$(this).data('elementor-lightbox-slideshow')}`);
            let swiper_target = galleryLightbox.find('.swiper');
            if(swiper_target.length) {
                let swiperInstance = swiper_target.data('swiper');
                swiperInstance.loopDestroy();
                swiperInstance.params.loop = false;
                swiperInstance.update();
                swiperInstance.slideTo(index, 0)
            }
            

        }, 500);
        
    });

通过监听弹出图片,并使用 JS 动态修改 Swiper,请将 #gallery-1 替换为你的 Gallery ID。

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

79078057

Date: 2024-10-11 11:43:06
Score: 2
Natty:
Report link

Очень долго искал решение этой проблемы.

Для того чтобы переориентировать ось Y. Необходимо в extent изменить точку отсчёта высоты, и сделать её отрицательной. Далее в addCoordinateTransforms нужно описать преобразование координаты по Y на отрицательную(минус на минус дают плюс) В итоге мы получим смещение нулевой координаты в левый-верхний угол.

Вырезка ключевых элементов кода:

import { Projection, addCoordinateTransforms } from 'ol/proj'
import ImageLayer from 'ol/layer/Image'
import Static from 'ol/source/ImageStatic'

...

const extent = [0, -img.height, img.width, 0]
const projection = new Projection({
        units: 'pixels',
        extent: extent,
        worldExtent: extent
      })

addCoordinateTransforms(
  projection,
  projection,
  function (coordinate) {
    return coordinate
  },
  function (coordinate) {
    return [coordinate[0], -coordinate[1]]
  })


const targetImageLayer = new ImageLayer({
  source: new Static({
     attributions: '© TODO',
     url: imageUrl,
     projection: projection,
     imageExtent: extent
  })
})
...

UPD. Openlayers v.8.2.0

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

79074059

Date: 2024-10-10 11:01:16
Score: 2
Natty:
Report link

Вот написал regex

\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) # IP-адрес
:(?!0+)(?!6553[6-9])(?!655[4-9]\d)(?!65[6-9]\d\d)(?!6[6-9]\d\d\d)(?![7-9]\d\d\d\d)(\d{1,5})  # Порт
\b
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: Daloshka

79073659

Date: 2024-10-10 09:28:44
Score: 2.5
Natty:
Report link

确保assets/css/main.scss文件的开头包含YAML前置元数据:

请保留下面两条白线,这个是转化处理的识别前提!

---
---

@import "style";
@import "course-document";

这些空的YAML前置元数据行是必要的,它们告诉Jekyll处理这个文件。

如果进行了这些修改后问题仍然存在,请运行bundle exec jekyll build --trace并查看详细的错误输出,这可能会提供更多关于问题原因的信息。

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