79137308

Date: 2024-10-29 12:58:38
Score: 4
Natty:
Report link

Add the [Required] data annotation

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Damiano Robbiani

79137306

Date: 2024-10-29 12:58:38
Score: 2
Natty:
Report link

Go to your cmd and type ipconfig it will give you the local ip address of your pc.. You can add the ip address into the ALLOWED_HOSTS = []

and if you want to allow for all of the IP's then just do this ALLOWED_HOSTS = [*]

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Krushna Patel

79137297

Date: 2024-10-29 12:54:37
Score: 1
Natty:
Report link

Yes, root has access to any folder it can even be d--------- and root would still be able to read and write that folder.

As for sudo, it depends on the permissions. If a regular user is able to sudo su - and become root, then it's root and it can read and write that folder.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ITManager

79137293

Date: 2024-10-29 12:54:37
Score: 2
Natty:
Report link

as @Tsyvarev suggested, final solution be like:

target_link_directories(${TARGET_NAME} PRIVATE "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos")

just this one line basicaly handles everything, other are not needed

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Tsyvarev
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jiri Zaloudek

79137291

Date: 2024-10-29 12:53:37
Score: 1.5
Natty:
Report link

See https://github.com/jupyter/notebook/issues/2978 for a working config file (end of the thread), that is:

{
  "NotebookApp": {
    "password": "sha1:65e37f0d14de:5249cef964e888cf5b8f9cc99c8735e01c8e0f2f",
    "token": "10fd01baf5c7ff2db46cb937e42e1da8d19bd49023216e2b"
  }
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: François Landes

79137289

Date: 2024-10-29 12:53:37
Score: 1.5
Natty:
Report link

this issue has been addressed in macos 15.1 (24B83).

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Bandish Kumar

79137288

Date: 2024-10-29 12:53:37
Score: 3.5
Natty:
Report link

Do you need something like that?

enter image description here

Would be:

let Kilde = Json.Document(Web.Contents("https://api.statbank.dk/v1/data/FOLK1A JSONSTAT?Tid=2020K1&Tid=2020K2&Tid=2020K3&Tid=2020K4")),#"Konverteret til tabel" = Record.ToTable(Kilde),#"Se Kilde" = Table.FirstN(#"Konverteret til tabel", 1),#"Udvidet Value" = Table.ExpandRecordColumn(#"Konverteret til tabel", "Value", {"dimension", "label", "source", "updated", "value"}, {"Value.dimension", "Value.label", "Value.source", "Value.updated", "Value.value"}),#"Udvidet Value.dimension" = Table.ExpandRecordColumn(#"Udvidet Value", "Value.dimension", {"Tid"}, {"Value.dimension.Tid"}),#"Udvidet Value.dimension.Tid" = Table.ExpandRecordColumn(#"Udvidet Value.dimension", "Value.dimension.Tid", {"label", "category"}, {"Kvartal", "Kategori"}),#"Udvidet Kategori" = Table.ExpandRecordColumn(#"Udvidet Value.dimension.Tid", "Kategori", {"label"}, {"Kategori.label"}),#"Udvidet Kategori.label1" = Table.ExpandRecordColumn(#"Udvidet Kategori", "Kategori.label", {"2020K1", "2020K2", "2020K3", "2020K4"}, {"Kategori.label.2020K1", "Kategori.label.2020K2", "Kategori.label.2020K3", "Kategori.label.2020K4"}),#"Udvidet Value.value1" = Table.ExpandListColumn(#"Udvidet Kategori.label1", "Value.value"),#"Fjernede andre kolonner" = Table.SelectColumns(#"Udvidet Value.value1",{"Kategori.label.2020K1", "Kategori.label.2020K2", "Kategori.label.2020K3", "Kategori.label.2020K4", "Value.source", "Value.value"}),
#"Columnas quitadas" = Table.RemoveColumns(#"Fjernede andre kolonner",{"Value.source"}),
#"Se ha anulado la dinamización de las columnas seleccionadas únicamente." = Table.Unpivot(#"Columnas quitadas", {"Kategori.label.2020K1", "Kategori.label.2020K2", "Kategori.label.2020K3", "Kategori.label.2020K4"}, "Atributo", "Valor"),
#"Columnas reordenadas" = Table.ReorderColumns(#"Se ha anulado la dinamización de las columnas seleccionadas únicamente.",{"Atributo", "Valor", "Value.value"}),
#"Filas ordenadas" = Table.Sort(#"Columnas reordenadas",{{"Valor", Order.Ascending}}) in #"Filas ordenadas"
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Luis Miguel

79137280

Date: 2024-10-29 12:51:36
Score: 0.5
Natty:
Report link

For me, the issue is resolved after upgrading the Scala version from 2.11.12 to 2.12.10. Along with this I also updated the suffix of artifactId from 2.11 to 2.12

<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-sql_2.12</artifactId>
    <version>2.4.0</version>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ankur Pandey

79137267

Date: 2024-10-29 12:48:34
Score: 6.5 🚩
Natty:
Report link

Im having the same issue, te animations seem fine, but after change windows dor a while, its overlaps and get ugly. Mode="popLayout" doesnt works for me :( Any idea )?

<AnimatePresence mode="popLayout" initial={false}>
        <motion.div
          key={index}
          initial={{ y: cycle === 1 ? 80 : -80, opacity: 0 }}
          animate={{ y: 0, opacity: 1 }}
          exit={{ y: cycle === 1 ? -80 : 80, opacity: 0 }}
          transition={{
            type: "spring",
            stiffness: 150,
            duration: 0.6,
          }}
          style={{ position: "absolute", width: "800px" }}
        >
          <Text variant="h1" color="primary.orange">
            {words[index]}
          </Text>
        </motion.div>
      </AnimatePresence>
Reasons:
  • Blacklisted phrase (1): doesnt work
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Juan Toledo

79137262

Date: 2024-10-29 12:46:30
Score: 8 🚩
Natty: 4
Report link

Just checking if you found solution to your query. I am also facing same issue with no luck.

Regards, Vishal

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): no luck
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing same issue
  • Low reputation (1):
Posted by: vishal

79137261

Date: 2024-10-29 12:46:30
Score: 1.5
Natty:
Report link

I had a similar problem, in my case the problem was declaring my list of embedded as final. Isar doesn't quite like it.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: flea89

79137252

Date: 2024-10-29 12:45:30
Score: 2
Natty:
Report link

It's probably no longer relevant. But apparently the problem is when importing the js file into the html, You did not write the correct path.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: aron shuvax

79137248

Date: 2024-10-29 12:44:29
Score: 0.5
Natty:
Report link

I was struggling with this recently and this project helped me: https://github.com/burakkaygusuz/cypress-cucumber-html-report-example/tree/master

Give it a try. For what I've seen in your project, you still need to add a js file for the report config. And maybe you will need to adjust a bit your scripts in package.json so it can work and also the cypress.config file.

I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ypdev19

79137246

Date: 2024-10-29 12:44:29
Score: 3.5
Natty:
Report link

i have also 502 Bad Gateway or not found :'(

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mathias

79137244

Date: 2024-10-29 12:43:29
Score: 4
Natty:
Report link

Google has now history tab. Using that you can get idea. Who, when and what changed enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Munir Khakhi

79137225

Date: 2024-10-29 12:37:27
Score: 1
Natty:
Report link

simple give a list in the style property of the lines, like in

f_int_df = pandas.DataFrame(f_int_lst)
f_int_df['ds_pos'] = -F(q0, s_pos, alpha=alpha, gamma=gamma)
f_int_df.set_index('s')[['sum', 'ds_pos']].plot(
    figsize=(4,2), lw=3, grid=True, 
    style=['-', '--'], 
    title="$\propto\int_{q_0\wedge(q_0-s)}^\infty (1+a)^{-3} (1+a+s)^{-3}\, da$"
)

that gives (focus on the style=['-', '--'] line of code):

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lehalle

79137209

Date: 2024-10-29 12:32:27
Score: 0.5
Natty:
Report link

I just ran pulumi destroy and pulumi up worked ok after that created all of the resources fine.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Capaj

79137208

Date: 2024-10-29 12:32:27
Score: 1
Natty:
Report link

Guten Tag

I am not too clear on the discussions here regarding things to do with different Office version, and the whole VBA7 and Bit stuff. There appears to be some different explanations in the comments.

But based on some recent reviewing of codings here and elsewhere on the subject, I am thinking that what we are doing here is Clearing an Office’s Clipboard Viewer. Specifically we are doing with VBA what we do manually when we click that (in English Office) Clear All Button.

https://www.excelfox.com/forum/showthread.php/2824-Tests-Copying-pasting-Cliipboard-issues?p=18037&viewfull=1#post18037

(In my German Office versions the button is Alle löschen ). The codings discussed so far here, are, I think, doing some sort of GUI hierarchy navigating using some COM Wrapper Interface Thing which allows us to get at things which can be loosely described as Active Accessibles.

That is the limit of my Layman understanding of it.

The Active bit probably explains why the Viewer Pain needs to be open for the codings to work. The hierarchy of the accessible buttons may have changed at about the Office 2016 time, so possibly the main thing needed to consider regarding code changes for different Office versions is the Office version. (One other extra small thing to consider is the Literal string used in the early code section that checks that the Viewer Pain is open, because I think that changed from Office 2007 upwards)

I think this coding version below here may do the job from Office 2003 upwards. I have tested it thoroughly on a few computers with Office versions 2003 2007 2010 2013. I only have one higher version, an Office 2016, and it works on that. I know that a couple of other people found that it worked in their Office 365. Perhaps if anyone passing finds it works or not in their office, then they could drop a comment and let us know, and please give their Office version as well, Thanks.

A current discussion of this and other solutions is going on from about here

https://eileenslounge.com/viewtopic.php?p=321817#p321817

https://www.eileenslounge.com/viewtopic.php?p=321822#p321822

Option Explicit
    #If VBA7 Then
     Declare PtrSafe Function AccessibleChildren Lib "oleacc" (ByVal paccContainer As Office.IAccessible, ByVal iChildStart As Long, ByVal cChildren As Long, ByRef rgvarChildren As Any, ByRef pcObtained As Long) As Long
    #Else
     Declare Function AccessibleChildren Lib "oleacc" (ByVal paccContainer As Office.IAccessible, ByVal iChildStart As Long, ByVal cChildren As Long, ByRef rgvarChildren As Any, ByRef pcObtained As Long) As Long
    #End If
Sub small_20202024_ClearOfficeClipBoard_()  ' https://eileenslounge.com/viewtopic.php?p=319159&sid=a5636ddee2213f0629c9f46423c324c5#p319159
Dim avAcc, bClipboard As Boolean, j As Long
Dim MyPain As String
    If CLng(Val(Application.Version)) <= 11 Then  '                   Case 11: "Excel 2003" Windows    "Excel 2004" mac
     Let MyPain = "Task Pane"
    Else
     Let MyPain = "Office Clipboard"
    End If
Set avAcc = Application.CommandBars(MyPain)   '
Let bClipboard = avAcc.Visible      '   bClipboard will be false if the viewer pain is not open
    If Not bClipboard Then
     avAcc.Visible = True           '   This opens the Viewer pain. The coding won't work if it is not open
     DoEvents: DoEvents
    Else
    End If
'   coding change for Office versions at  --  Office 2016  ==
    If CLng(Val(Application.Version)) < 16 Then
' --For Office versions 2003 2007 2010 2013 ----------------------------------------
        For j = 1 To 4         '      J =    1  2  3  4
         AccessibleChildren avAcc, Choose(j, 0, 3, 0, 3), 1, avAcc, 1
        Next
     avAcc.accDoDefaultAction 2&  '           This seems to do the clearing   It will NOT error if viewer pain is already  Cleared                  1& for paste
' ----------------------------------------------------------------------------------
    Else
' ==For Office versions 2016 and higher ==============================================
        For j = 1 To 7      '           J =  1  2  3  4  5  6  7
         AccessibleChildren avAcc, Choose(j, 0, 3, 0, 3, 0, 3, 1), 1, avAcc, 1
        Next
     avAcc.accDoDefaultAction 0& '            This seems to do the clearing   It WILL error if viewer pain is already  Cleared
    End If ' =======================================================================
 Let Application.CommandBars(MyPain).Visible = bClipboard      '   Puts the viewer pain back as it was, open or closed
End Sub

Alan

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (2.5): please give
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alan Elston

79137207

Date: 2024-10-29 12:31:26
Score: 1
Natty:
Report link

Try using ingress:true annotation instead of the named NEG annotation.

cloud.google.com/neg: '{"ingress": true}

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dinuka Kavinda

79137205

Date: 2024-10-29 12:31:26
Score: 1.5
Natty:
Report link

Unable to convert character to dates

head(lbw) State_Name Birth_Date LMP birthWt M_Age 1 Chandigarh 6/9/24 9/8/23 2.5 10 2 Jharkhand 4/12/24 7/2/23 2.5 10 3 Jharkhand 6/10/24 9/5/23 2.5 10 4 Jharkhand 5/5/24 8/17/23 2.5 10 5 Jharkhand 6/21/24 9/15/23 2.5 10 6 Punjab 6/6/24 9/6/23 2.5 10

lbw$Birth_Date <-as.date(mdy(lbw$Birth_Date)) Error in as.date(mdy(lbw$Birth_Date)) : could not find function "as.date"

#also tried this code

lbw$Birth_Date <-as.date(lbw$Birth_Date, "%m/%d/%y") Error in as.date(lbw$Birth_Date, "%m/%d/%y") : could not find function "as.date"

Don't know where the problem is! Any inputs will be helpful.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: nishant

79137203

Date: 2024-10-29 12:31:26
Score: 3
Natty:
Report link

My apologies, it was may mistake, instead of sending like ordinary ID that is primary key from db I was thinking I need to send UUID and that's why I was getting Not found, because before calling setContent() there is a call to repo findById() which requires Long not UUID. Now I see it works.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Iuri Pavlov

79137201

Date: 2024-10-29 12:30:26
Score: 1.5
Natty:
Report link

and both either neither although despite

1 My father and mother went to a French restaurant last night. 2 The waiter said they could eat both inside or on the terrace.

3 4 it was a warm evening, my mother preferred to sit inside.

They had frog legs nor snails on the menu.

my mother and my father ordered French onion soup.

R25.2 Choose the correct alternative.

waiting for a long time, the food was still badly served.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Karol Perez

79137199

Date: 2024-10-29 12:30:26
Score: 0.5
Natty:
Report link

So here is what I understood and did.

  1. Create an emf project and select the ISO meta model given from ISO page - Basically simple import.
  1. List item

after I have opened the gen model ,I right clicked on it and said generate all

  1. So what I have tried to do now is to right click on editor project and run it as an eclipse application.

I am not sure what to do next Or how to load the ISO repository file.

.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anand Kiran

79137190

Date: 2024-10-29 12:28:25
Score: 2.5
Natty:
Report link

The .session file is likely outdated or incompatible with your script's version of Pyrogram or Telegram. To fix this, try deleting the .session file, and run the script again to create a new session file (which should be compatible). Also, make sure all the fields in the .json file are correctly filled.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andras

79137187

Date: 2024-10-29 12:27:25
Score: 3
Natty:
Report link

I am not sure, but you can refer this page link

Radius may be in meters.

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

79137186

Date: 2024-10-29 12:26:25
Score: 4.5
Natty:
Report link

Can you provide more context on the schema? IF you add

schema:
   type: object
   properties:
       yourCustomProteries:
           type: object 
           ...

Should render it for you. With that told, if you share your yml code it will be more helpful.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Blitz Crank

79137177

Date: 2024-10-29 12:24:24
Score: 2
Natty:
Report link

Simple answer, there is no need for you to overflow the buffer here in order to gain access. Since all this program does is compare your input to a fixed string, just provide that value. You are over complicating this question, there is no need to overwrite the existing variable as well in case it was initialized with some value and was being compared with some other value and you had no control over the input, but this is straight forward, even if you have a buffer overflow, what would you use it for, there is no function you want to call or variable you want to overwrite. In case you want to learn when to exploit the buffer overflow and what to do if you have a buffer overflow, checkout this github repo https://github.com/Jeetu855/Binary-Exploitation

Reasons:
  • Blacklisted phrase (1): what to do if
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Incursio_02

79137171

Date: 2024-10-29 12:22:23
Score: 4
Natty:
Report link

Could be this or do we have to add anything else? I've taken dates of quarters as period to don't waste time.

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Luis Miguel

79137156

Date: 2024-10-29 12:18:22
Score: 3
Natty:
Report link
ng generate component <component-name> --skip-tests=false
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: nhi pta

79137152

Date: 2024-10-29 12:16:22
Score: 1.5
Natty:
Report link

Use the below shell script to migrate all code-commit repositories to github. Check the region and update it.


#!/bin/bash

# ------------------------------------------------------------------------------------ #
# AWS CodeCommit to GitHub Migration Script
# Author: bhaireshm
# Date: 2024-10-28
# Version: 1.0.0

# Description:
# This script facilitates the seamless migration of repositories from AWS CodeCommit to GitHub.
# It ensures that migrations are not duplicated, verifies the existence of GitHub repositories,
# and creates new ones if needed. The script logs all activities and maintains a status file
# to track which migrations have been completed successfully.

# Usage:
# 1. Ensure you have Git installed on your system.
# 2. Run the script and provide your AWS and GitHub credentials when prompted.
# 3. Enter the list of CodeCommit repository names you wish to migrate.
# 4. The script will handle the migration process and log the details in 'info.log'.
# ------------------------------------------------------------------------------------ #

# Check if all required tools are installed
command -v git >/dev/null 2>&1 || {
  echo >&2 "Git is required but not installed. Aborting."
  exit 1
}

# Function to check if the migration has already been done
check_migration_status() {
  local repo_name=$1
  local migration_status_file="migration_status.txt"

  if grep -q "^$repo_name$" "$migration_status_file"; then
    echo "Migration for $repo_name has already been completed. Skipping..."
    return 1
  fi
  return 0
}

# Function to check if a GitHub repository exists
check_github_repo_exists() {
  local repo_name=$1
  local response_code
  response_code=$(curl -s -o /dev/null -w "%{http_code}" -u "$github_username:$github_token" "https://api.github.com/repos/$github_username/$repo_name")
  echo "$response_code"
}

# Function to create a GitHub repository
create_github_repo() {
  local repo_name=$1
  local response_code
  response_code=$(curl -s -o /dev/null -w "%{http_code}" -u "$github_username:$github_token" -X POST -d "{\"name\":\"$repo_name\"}" "https://api.github.com/user/repos")
  if [ "$response_code" -eq 201 ]; then
    echo "Repository $repo_name created successfully on GitHub." | tee -a info.log
  elif [ "$response_code" -eq 401 ]; then
    echo "Invalid GitHub credentials. Aborting." | tee -a info.log
    exit 1
  else
    echo "Failed to create repository $repo_name on GitHub. Response code: $response_code" | tee -a info.log
    exit 1
  fi
}

# Function to migrate a single repository
migrate_repo() {
  local repo_name=$1
  local codecommit_url=$2
  local github_url=$3

  # Check if migration has already been done
  check_migration_status "$repo_name"
  if [ $? -eq 1 ]; then
    return
  fi

  # Check if GitHub repository exists, if not create it
  if [ "$(check_github_repo_exists "$repo_name")" -ne 200 ]; then
    echo "GitHub repository $repo_name does not exist. Creating..." | tee -a info.log
    create_github_repo "$repo_name"
  else
    echo "GitHub repository $repo_name already exists." | tee -a info.log
  fi

  echo "Migrating repository: $repo_name" | tee -a info.log
  echo "Cloning CodeCommit repository..." | tee -a info.log
  if ! git clone --mirror "$codecommit_url" "$repo_name"; then # >>info.log 2>&1; then
    echo "Failed to clone CodeCommit repository $repo_name. Skipping..." | tee -a info.log
    exit 1
  fi

  echo "Pushing all branches, tags, PRs, and releases to GitHub repository..." | tee -a info.log
  cd "$repo_name" || {
    echo "Failed to enter directory $repo_name. Aborting."
    exit 1
  }

  git remote add github "https://$github_username:$github_token@$github_url" >>info.log 2>&1
  echo "Remote -> $(git remote get-url github)"

  if ! git push github --all; then # >>info.log 2>&1; then
    echo "Failed to push branches to GitHub repository $repo_name. Aborting." | tee -a info.log
    exit 1
  fi

  if ! git push github --tags; then # >>info.log 2>&1; then
    echo "Failed to push tags to GitHub repository $repo_name. Aborting." | tee -a info.log
    exit 1
  fi

  echo "Migration completed for $repo_name" | tee -a info.log

  # Cleanup repository
  echo "Cleaning up local repository: $repo_name" | tee -a info.log
  cd ..
  rm -rf "$repo_name"
}

# Create required files if they do not exist, Add permission to read and write files if not already set
[ ! -f info.log ] && touch info.log
[ ! -x info.log ] && chmod +x info.log
[ ! -f "$migration_status_file" ] && touch "$migration_status_file"
[ ! -r "$migration_status_file" ] && chmod +r "$migration_status_file"
[ ! -w "$migration_status_file" ] && chmod +w "$migration_status_file"

# Main script
echo "AWS CodeCommit to GitHub Migration Script" | tee -a info.log

# Initialize missing variables
github_username=""
github_token=""
repo_names=""

username=$(git config user.name)
email=$(git config user.email)
echo "User: $username, Email: $email"

# Check GitHub credentials
echo "Checking GitHub credentials..." | tee -a info.log
if [ -z "$github_username" ]; then
  read -p "GitHub Username not found. Please provide your GitHub Username: " github_username
fi
if [ -z "$github_token" ]; then
  read -p "GitHub Personal Access Token not found. Please provide your GitHub Personal Access Token: " github_token
fi

# Get the list of repositories to migrate from AWS CodeCommit
echo "Fetching repository names from AWS CodeCommit..." | tee -a info.log
repo_names=$(aws codecommit list-repositories --query 'repositories[].repositoryName' --output text)

# Check if any repositories were found
if [ -z "$repo_names" ]; then
  echo "No repositories starting with 'apf-' found in AWS CodeCommit. Aborting." | tee -a info.log
  exit 1
fi

# Migrate each repository
for repo_name in $repo_names; do
  echo "Migrating repository: $repo_name" | tee -a info.log
  codecommit_url="https://git-codecommit.us-east-1.amazonaws.com/v1/repos/$repo_name"
  github_url="github.com/$github_username/$repo_name.git"
  migrate_repo "$repo_name" "$codecommit_url" "$github_url"
  echo "------------------------------------------------------------------------------------" | tee -a info.log
done

echo "Migration script completed." | tee -a info.log
Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide your
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bhairesh M

79137148

Date: 2024-10-29 12:15:21
Score: 0.5
Natty:
Report link

I was able to fix the issue by running updating cocaopods.

sudo gem update cocoapods

Then

sudo gem update xcodeproj
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Relie Essom

79137146

Date: 2024-10-29 12:15:21
Score: 0.5
Natty:
Report link

When building your android app locally, by default you build all the 4 Application Binary Interfaces (ABIs) : armeabi-v7a, arm64-v8a, x86 & x86_64.

However, you probably don't need to build all of them if you're building locally and testing your emulator or on a physical device.

This should reduce your native build time by a ~75% factor.

npx  react-native run-android --active-arch-only

https://reactnative.dev/docs/next/build-speed

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Hakan

79137141

Date: 2024-10-29 12:13:21
Score: 2
Natty:
Report link

The error "MissingPluginException(No implementation found for method getApplicationSupportDirectory on channel plugins.flutter.io/path_provider)" indicates that the Flutter app cannot find the implementation of the specified method from the Path Provider plugin. This often occurs when the plugin is not properly integrated or initialized in the platform-specific code. you can also visit TeraBox Mod for further information.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michel Jones

79137131

Date: 2024-10-29 12:09:20
Score: 3
Natty:
Report link

You can also set the following in your env file.

AUTH_TRUST_HOST=http://localhost:3000

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniel Simeon Sedeq Saunders

79137117

Date: 2024-10-29 12:06:20
Score: 1
Natty:
Report link

In Playwright [version 1.46][1], support for TLS Client Certificates was added: https://playwright.dev/java/docs/api/class-browser#browser-new-context-option-client-certificates

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Max Schmitt

79137116

Date: 2024-10-29 12:06:20
Score: 1
Natty:
Report link

This is what i was looking for.

sum(pd_status) by (pd_location) 
  * on(pd_location) group_left(pd_RG) 
    pd_RG 
  * on(pd_location) group_left(pd_command_queuing) 
    pd_command_queuing
  * on(pd_location) group_left(pd_performance) 
    pd_performance
  * on(pd_location) group_left(pd_readahead) 
    pd_readahead
  * on(pd_location) group_left(pd_serial) 
    pd_serial
  * on(pd_location) group_left(pd_size) 
    pd_size
  * on(pd_location) group_left(pd_standby) 
    pd_standby
  * on(pd_location) group_left(pd_status) 
    pd_status
  * on(pd_location) group_left(pd_status_health) 
    pd_status_health
  * on(pd_location) group_left(pd_status_usage) 
    pd_status_usage 
  * on(pd_location) group_left(pd_type) 
    pd_type
  * on(pd_location) group_left(pd_vendor) 
    pd_vendor
  * on(pd_location) group_left(pd_write_cache) 
    pd_write_cache

Grafana query options

Grafana query options should be like this

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Philip Scot

79137110

Date: 2024-10-29 12:04:19
Score: 4.5
Natty: 5
Report link

Thank you for sharing this solution! I noticed it’s compatible with Odoo 14 and Odoo 15. Has anyone adapted this code for Odoo 17, or is there an updated version available? Any guidance on making it compatible with Odoo 17 would be greatly appreciated.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): appreciated
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bessem Toumia

79137102

Date: 2024-10-29 12:03:18
Score: 1
Natty:
Report link

i figured this out, just need to add this option to avrdude command:

-P /dev/ttyUSB0

this is the full command:

avr-gcc -O -Wall -mmcu=attiny24a demo.c -o demo.out

avr-objcopy -O ihex demo.out demo.hex

sudo avrdude -v -P /dev/ttyUSB0 -B 125kHz -p ATtiny24A -c stk500 -e -U flash:w:demo.hex

this code compiles c code into .hex file and flashes the program into avr microcontroller using my stk500 programmer board.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 89 87

79137100

Date: 2024-10-29 12:03:18
Score: 2
Natty:
Report link

At first add @JoinColumn(name = "user_id") for user property,then instead of trying to set the Doctor's ID directly, retrieve the User entity first and then set it in the Doctor object before saving it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Soheil Babadi

79137094

Date: 2024-10-29 11:59:18
Score: 0.5
Natty:
Report link
book1=LibraryBook("The River and the Source","Marie Ongola","23465789872",10)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: phantom

79137087

Date: 2024-10-29 11:57:15
Score: 8 🚩
Natty: 5.5
Report link

facing the same problem, could you find the way around this?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Togosling

79137085

Date: 2024-10-29 11:56:14
Score: 2.5
Natty:
Report link

Maybe you can use the open source java library https://github.com/phax/phive for the validation engine and for the rules https://github.com/phax/phive-rules

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jeffrey

79137077

Date: 2024-10-29 11:53:13
Score: 1
Natty:
Report link

I would say that option A is a better solution because it is more efficient as it doesn't repeatedly create and destroy socket resources, reduces system calls and overhead. Creating new sockets frequently (option B) can lead to resource leaks if proper cleanup isn't performed, which can be pain in the *ss to fix if things go wrong.

Furthermore, with option B you might encounter "Address already in use" errors if the previous socket wasn't properly cleaned up. So I would stay away from option B.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vile

79137076

Date: 2024-10-29 11:53:13
Score: 1
Natty:
Report link

Here is a simple, easy-to-read solution that ranges from 0 to 255. The solutions that I see do not restrict the range to between 0 and 255.

^(25[0-5]|2[0-4]\d|[01]?\d\d?\.?){4}$
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Scene

79137073

Date: 2024-10-29 11:52:13
Score: 0.5
Natty:
Report link

correct way is to create .entitlements file which contains:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>aps-environment</key>
    <string>development</string>
</dict>
</plist>

and then set it inside set_target_properties():

XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/ios/<targetName>.entitlements"
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jiri Zaloudek

79137069

Date: 2024-10-29 11:52:13
Score: 2.5
Natty:
Report link

Managed to achieve this by saving the conversation messages and pass these as input when recreating the conversation thread.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: lex87

79137067

Date: 2024-10-29 11:51:13
Score: 2
Natty:
Report link

Thank you for sharing your setup! To clarify and provide the best assistance, could you confirm which specific model you are using for this automation rule? In Odoo, the model selection can impact the behavior, especially if the rule applies to a custom model or a specific Contact model variant.

Additionally, in Odoo 17, automations can be implemented in various ways, such as through direct code modifications or the "Update Record" function in automation settings. If possible, could you also verify whether the domain or conditions for this automation are correctly configured? This can sometimes be the cause of activities not triggering as expected.

Let me know if you can provide these details, and I'd be glad to assist further!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: StakeholderSensei

79137065

Date: 2024-10-29 11:51:13
Score: 1
Natty:
Report link

Here is a short concise and easy-to-read regex with 34 characters:

^(25[0-5]|2[0-4]\d|[01]?\d\d?\.?){4}$ 

This is matching only numbers between 0 to 255.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Scene

79137061

Date: 2024-10-29 11:49:12
Score: 1.5
Natty:
Report link

Check if the @react-pdf/renderer and blob-stream libraries are up-to-date, as version mismatches often cause this error. Try importing blob-stream before @react-pdf/rerender to ensure proper loading. If the issue persists, clear your bundler's cache and restart the development server.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Shamsani

79137056

Date: 2024-10-29 11:49:12
Score: 2.5
Natty:
Report link

I don't know if you made the same mistake as I did (Using the Backward Slash '') while defining the path. If so change it to Forward Slash '/'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akash Verma

79137043

Date: 2024-10-29 11:43:10
Score: 2.5
Natty:
Report link

As of Nov. 2024, the command to install Pytorch this way (take from site: https://pytorch.org/get-started/locally/) is:

conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch-nightly -c nvidia

After install, the cuda can be detected.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: JY Chiou

79137036

Date: 2024-10-29 11:42:10
Score: 2
Natty:
Report link

siggemannen Thanks for the help.

I used sys.dm_exec_describe_first_result_set to get result set details. Here is the query:

DECLARE @Query nvarchar(max)= N''
SELECT * FROM sys.dm_exec_describe_first_result_set(@Query,NULL,0)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nafisuzzaman Ayon

79137035

Date: 2024-10-29 11:41:10
Score: 2
Natty:
Report link

While I was never able to sort out seamless SSO, I have now managed to at least implement the SSO and a persistent authentication cookie so that users are only prompted after a sensible period of time. See link to separate question about the persistent authentication cookie. Persistent Authentication Cookie for External Membership Provider Umbraco 13

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Chris Disley

79137027

Date: 2024-10-29 11:39:09
Score: 2
Natty:
Report link

The default location setting is updated with adding an object {'lat': <latitude>, 'lng': <longitude> to GEO_WIDGET_DEFAULT_LOCATION in settings.py

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Evelinabe

79137020

Date: 2024-10-29 11:37:08
Score: 3
Natty:
Report link

You can Try following command : sp_help table_name

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sai charan

79137017

Date: 2024-10-29 11:37:08
Score: 1.5
Natty:
Report link

Building off the accepted answer from @Joris C., @Nakx asked me to make this an answer. I wanted to use it in a dplyr chain, and did so by slightly modifying:

%>% add_column(!!!cols[!names(cols) %in% names(.)])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Joris
  • User mentioned (0): @Nakx
  • Low reputation (0.5):
Posted by: Chris Umphlett

79137014

Date: 2024-10-29 11:36:08
Score: 2
Natty:
Report link

you are completely missing the event loop to do the handshake. If possible try to run and debug the sample server and client program. The eventloop (libev used by quiche in their sample) is responsible for doing the handshake. unlike other protocols quiche doesnt doesnt manage sockets or event loops (timer), its up to the client(app) to provide them.

Thanks, Arun A.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arun Mudaliar

79137013

Date: 2024-10-29 11:35:08
Score: 3.5
Natty:
Report link

My Case : Try restarting the terminal

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kashif Ali

79137003

Date: 2024-10-29 11:32:07
Score: 4.5
Natty: 5
Report link

I guess LIKE in "SHOW TABLES" refers to https://docs.databricks.com/en/sql/language-manual/functions/like.html. It seems to be a string operator.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luk Mic

79137002

Date: 2024-10-29 11:31:07
Score: 0.5
Natty:
Report link

First of all Unknown Kotlin JVM target: 21 itself says that current set target jvm is 21.

Reason: After updating android studio sometimes sets default jvm target automatically without informing / prompting and that causes the confusion.

Steps

  1. Go to settings in android studio and select Gradle under Build, Execution, Deployment Menu as it is visible in screenshot below.

enter image description here

  1. Change default jvm target to JetBrains JDK 17.0.12

enter image description here

  1. Delete .gradle generated directory / folder from the project explorer in android studio.

enter image description here

  1. Optionally gradle command can also be used ./gradlew clean build

  2. Run sync project with gradle

  3. Rebuild the project from Build -> Rebuild project

It starts working.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vikash Kumar Tiwari

79136991

Date: 2024-10-29 11:29:06
Score: 1.5
Natty:
Report link

For me, this worked but I'm not sure about every case

  1. run this in your bash

    set NODE_OPTIONS=--openssl-legacy-provider

  2. in package.json add

    "scripts": { "start": "set NODE_OPTIONS=--openssl-legacy-provider && react- scripts start", "build": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts build" }

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vivek V H

79136985

Date: 2024-10-29 11:27:05
Score: 4.5
Natty:
Report link

Although @Sergey has mentioned this at the end of his answer, the actual answer that works is this dgolhar's comment on github thanks to him:

https://github.com/eKoopmans/html2pdf.js/issues/83#issuecomment-559780370

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Sergey
  • Low reputation (0.5):
Posted by: Muhammad Waqar Anwar

79136964

Date: 2024-10-29 11:19:03
Score: 2
Natty:
Report link

The above answers maybe valid for the relevant case. One case, in which you get "AWS CodeCommit - fatal: repository 'https://git-codecommit...' not found" is, when the IAM user doesn't really exist (who want to clone the repo) for the specific AWS account. Let's say the user has access to AWS CodeCommit on one AWS account but he is trying to clone a repo from another (different) AWS account. So double check if the IAM user exist on the target AWS account.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Usman Ali

79136961

Date: 2024-10-29 11:18:03
Score: 1
Natty:
Report link
<input id="pw" type="password">
<a
   onmouseover="document.getElementById('pw').type='text'"
   onmouseout ="document.getElementById('pw').type='password'"
>&#128065;</a>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Greald Henstra

79136957

Date: 2024-10-29 11:17:02
Score: 0.5
Natty:
Report link

You can use 'useLogger' with 'LogLevel' as below:

const { useLogger } = await import('amazon-chime-sdk-component-library-react');
const { LogLevel } = await import('amazon-chime-sdk-js');

const logger = useLogger();
logger.setLogLevel(LogLevel.OFF);

Refer to https://aws.github.io/amazon-chime-sdk-js/interfaces/logger.html

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ian Sharkey

79136956

Date: 2024-10-29 11:16:02
Score: 3
Natty:
Report link

There was a space before the teamID in my firebase auth setup! Please check for white spaces for teamID, Service ID etc.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdullah71

79136954

Date: 2024-10-29 11:15:02
Score: 0.5
Natty:
Report link

There isn't a way to do it with the @page directive. This isn't possible because @page "/" turns behind the scene into the [Route("/")] attribute and parameters of an attribut have to be constants.

A very cumbersome way to achieve this but also the single one i could imagine is to implement something like custom routing. You could check inside of Router.razor whether the request path matches the configured path and render the login page if so but as I already said this a very cumbersome. Genraley isn't it planned at all to do routing dynamicly like this.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @page
  • Low reputation (0.5):
Posted by: Suiram1

79136932

Date: 2024-10-29 11:09:00
Score: 2.5
Natty:
Report link

I had this issue with Vite v4, updating it to v5 helped.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Богуслав Павлишинець

79136927

Date: 2024-10-29 11:07:57
Score: 8 🚩
Natty:
Report link

@Aaron McGuire I tried adding delays using set timeout in my case but it didn't work either.

private downloadMultipleFiles(boardingPassURLs : string[]): void{
    boardingPassURLs.forEach((url) => {
      setTimeout(() => {
        this.downloadFileService.downloadFileFromURL(url).subscribe((blob) => {
          const a = document.createElement('a');
          const objectUrl = URL.createObjectURL(blob);
          a.href = objectUrl;
          a.download = 'filenameXYZ.pkpass';
          a.click();
          URL.revokeObjectURL(objectUrl);
        });
      },500);
    });
    this.checkinDetailsBoardingpassService.setIsBoardinpassLoaderVisible(false);
  }

downloadFileFromURL(url: string) {
    return this.http.get(url, { responseType: 'blob' });
  }
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.17/angular.min.js"></script>

can you please suggest how you get it resolved? or am I doing something wrong here?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you please suggest how you
  • RegEx Blacklisted phrase (1.5): resolved?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Aaron
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Rachit Saxena

79136924

Date: 2024-10-29 11:06:57
Score: 5
Natty: 5
Report link

Check the guide at https://pulsar.apache.org/docs/next/getting-started-docker-compose/ Might be of help

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Francis Anyuru

79136919

Date: 2024-10-29 11:05:56
Score: 2.5
Natty:
Report link

It turns out that I sent it incorrectly. It was necessary not to convert to bytes through getBytes, but through

"3E8C060102010202978884AD978885F264".match(/.{1,2}/g).map(byte => parseInt(byte, 16)) It's in javascript

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Like Channel

79136917

Date: 2024-10-29 11:04:55
Score: 3
Natty:
Report link

Try removing quotes, you need to get False, not "False".

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Limonka

79136916

Date: 2024-10-29 11:04:55
Score: 1
Natty:
Report link

Replace localhost with 127.0.0.1.

For example, http://127.0.0.1:1337/api/hello-world?locale=es-ES&populate=* by changing strapiURL from http://localhost:1337 to http://127.0.0.1:1337.

Apparently, it's a Node >17 feature that affects $fetch. Read more here: https://github.com/nuxt/nuxt/issues/12358.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: khaleel

79136913

Date: 2024-10-29 11:04:55
Score: 0.5
Natty:
Report link

Include image_picker dependency in pub.dev

Code to get multiple images,

class ImagePickerUtil {
   static final ImagePicker _picker = ImagePicker();

   static Future<List<File>> getImages() async {
     final pickedFiles = await _picker.pickMultiImage(imageQuality: 100);
     if (pickedFiles != null && pickedFiles.isNotEmpty) {
       return pickedFiles.map((xFile) => File(xFile.path)).toList();
     }
     return [];
   }
}

Call this like,

GestureDetector(
  onTap: () async {
    selectedImages = await ImagePickerUtil.getImages();
    widget.selectedImageCallback?.call(selectedImages);
  },
child: yourWidgetWhichHasToCallMultipleImage,

Note if you are using web use Image.network, to get the image for Android or iOS, Image.file will work

if (selectedPhotos.isEmpty)
              UploadPhotosContainer(
                selectedImageCallback: (selectedImages) {
                  selectedPhotos = selectedImages;
                  setState(() {});
                },
              )
            else
              GridView.builder(
                shrinkWrap: true,
                itemCount: selectedPhotos.length + 1,
                gridDelegate:
                    const SliverGridDelegateWithFixedCrossAxisCount(
                        crossAxisCount: 4),
                itemBuilder: (BuildContext context, int index) {
                  if (index == selectedPhotos.length) {
                    return Column(
                      children: [
                        GestureDetector(
                          onTap: () async {
                            List<File> newImages =
                                await ImagePickerUtil.getImages();
                            selectedPhotos.addAll(newImages);
                            setState(() {});
                          },
                          child: Container(
                            height: 80,
                            width: 80,
                            decoration: BoxDecoration(
                                borderRadius: BorderRadius.circular(10),
                                border: Border.all(
                                  color: AppColors.yellowColor,
                                )),
                            padding: const EdgeInsets.only(
                                // right: 10,
                                // bottom: 10,
                                ),
                            child: const Icon(
                              CupertinoIcons.add,
                              color: AppColors.yellowColor,
                            ),
                          ),
                        ),
                      ],
                    );
                  } else {
                    return Stack(
                      clipBehavior: Clip.none,
                      children: [
                        Container(
                            height: 100,
                            width: 100,
                            decoration: BoxDecoration(
                              borderRadius: BorderRadius.circular(10),
                            ),
                            padding: const EdgeInsets.only(
                              right: 10,
                              bottom: 10,
                            ),
                            child: ClipRRect(
                              borderRadius: BorderRadius.circular(10),
                              child: Image.file(
                                selectedPhotos[index],
                                height: 100,
                                width: 100,
                                fit: BoxFit.cover,
                              ),
                            )),
                        Positioned(
                          right: 2,
                          top: -7,
                          child: GestureDetector(
                            onTap: () {
                              setState(() {
                                selectedPhotos.removeAt(index);
                              });
                            },
                            child: const Icon(
                              CupertinoIcons.clear_circled,
                              color: AppColors.redColor,
                              size: 20,
                            ),
                          ),
                        )
                      ],
                    );
                  }
                },
              ),

This code will initially show a container, on whose tap we can get multiple images, once we got it, you can show them, here I have added + container to append the images if user wants to add other images also.Cross Icon will remove the image.

NOTE: I have used callBack cause UPloadContainer is in another file.

Here is the output.

Initial Screen Output after selecting multiple images Appending more image Removing some image

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Priyanshi Pandya

79136909

Date: 2024-10-29 11:03:55
Score: 1.5
Natty:
Report link

My issue was not setting a height request for the item explicitly

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Luca Ziegler

79136905

Date: 2024-10-29 11:02:55
Score: 2
Natty:
Report link

Follow the steps as under: 1.Xamp control panel 2.Apache row click on "config" after open the list click on "PHP (php.ini) 3.find (ctrl+F) ZIP 4.after find (;extension=zip) then you remove the " ; " or replace with extension=zip 5.save and close 6.stop xampa and start

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zain Shaan

79136877

Date: 2024-10-29 10:56:53
Score: 2.5
Natty:
Report link

dont use opengl c++. its a waste of time. i wasted my 3 months trying to setup this project. i hate opengl. i hate c++. we are at the year of 2024, not 2002. a stupid setup shouldn't take this long. just go use unity or unreal engine or something. this is a complete waste of time.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gotta stay high all the time

79136853

Date: 2024-10-29 10:51:51
Score: 2
Natty:
Report link

I know the post is a bit old by 5 months, but in case you have calculated fields you want to add as rows in a Matrix, you might add those ones in the values field of the visual and then go to "Format Visual" panel then under "Values"/"Options", activate "Switch values to rows"

Screenshot --> https://i.sstatic.net/GZbd8aQE.png

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Majd Jami

79136846

Date: 2024-10-29 10:49:50
Score: 1
Natty:
Report link

In my case a workaround of setting export HOMEBREW_NO_INSTALL_FROM_API=1 before installation helped.


Source and discussion: brew issue #14516.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: komidawi

79136842

Date: 2024-10-29 10:48:50
Score: 1
Natty:
Report link

Another option is to use firstWhere

$player = Account::where('playerNo', 99)->first();

is the same as

$player = Account::firstWhere('playerNo', 99);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dvicemuse

79136839

Date: 2024-10-29 10:48:50
Score: 1
Natty:
Report link

If you use conda, you have to install the backend yourself:

conda install conda-forge::qt6-wayland
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TheIdealis

79136835

Date: 2024-10-29 10:47:49
Score: 3
Natty:
Report link

Use react-helmet attach it to your component and add those OG tags wrapping in react-helmet component, I hope it solves your problem

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joel Jorge

79136830

Date: 2024-10-29 10:47:49
Score: 1
Natty:
Report link

I believe ./nginx-conf should be a directory containing nginx.conf file, not a file itself. You may try to comment out the - ./nginx-conf:/etc/nginx/conf.d line to see if you can then reach the default nginx home page. If yes, then that's the root cause. Please also check the docker logs, for example with docker-compose logs command to get more info.

Reasons:
  • Blacklisted phrase (1): to comment
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Zapał

79136824

Date: 2024-10-29 10:46:49
Score: 1.5
Natty:
Report link

Answering my own question as I think I have found why this was happening and how to fix it.

It would seem the issue was that, if my Launcher was opened with elevated privileges, then any process ran by it would also inherit them. This meant that my NamedPipeServerStream would sometimes be running with elevated permissions, but my NamedPipeClientStream would always run without them. Regardless of the access rules I set during their creation, my pipe Client would always refuse to connect to it.

Since I didn't need the game.exe to have elevated access, I looked into how to un-elevate a sub-process started by an elevated one, and ended up passing through explorer.exe as suggested in this blog post.

// If the Launcher has UAC, use the explorer to launch the game
if (FileUtility.HasElevatedPermissions())
{
    ProcessStartInfo processInfo = new()
    {
        FileName = "explorer.exe",
        UseShellExecute = true,
        Arguments = $"\"{exePath}\""
    };
    Process.Start(processInfo);
}
// If the Launcher doesn't have UAC, open the game normally
else
{
    ProcessStartInfo processInfo = new()
    {
        FileName = exePath,
        UseShellExecute = true,
        Verb = "open"
    };
    Process.Start(processInfo);
}

This seems to do the trick, game.exe always opens without privileges and the deeplinker.exe pipe can communicate without issue. Thanks to both @Sinatr and @BenVoigt for their suggestions.


If anyone's interested in HasElevatedPermissions(), I try to create a directory under C:/Program Files and return whether I succeed or not.

public static bool HasElevatedPermissions(string _path = null)
{
    if (string.IsNullOrEmpty(_path))
        _path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
        
    float random = UnityEngine.Random.Range(0f, 1f);
    var path = @$"{_path}\temp{random}"; // Random to prevent user interference
    try
    {
        Directory.CreateDirectory(path);
    }
    catch (UnauthorizedAccessException)
    {
        return false;
    }
    Directory.Delete(path);
    return true;
}

Not the best approach I admit, but I couldn't find anything that could easily work from a Unity program.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this blog
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Marco Vincenzi

79136800

Date: 2024-10-29 10:38:47
Score: 4.5
Natty: 5
Report link

I also like the way it was done in the project : https://github.com/bbrewington/dbt-bigquery-information-schema/blob/main/dbt_bigquery_info_schema/macros/from_info_schema.sql

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Antoine Lefebvre

79136793

Date: 2024-10-29 10:36:46
Score: 2
Natty:
Report link

This will help you : https://docs.aws.amazon.com/glue/latest/dg/crawler-grouping-policy.html

You need to modify the crawler configuration to have only one schema for all path with the selection of the option : Create a single schema for each S3 path

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ahmed

79136787

Date: 2024-10-29 10:34:46
Score: 5
Natty:
Report link

Have you installed the "C# Dev Kit" from the extensions? It might help.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Barta

79136771

Date: 2024-10-29 10:29:44
Score: 2
Natty:
Report link

With what @Dan Masek said, i have this code that works :

def lecture_EMUGS(universal_path):
val_array = np.array(np.genfromtxt(universal_path, delimiter="", skip_header=1, encoding='unicode_escape', converters={0:int, 1 : str}).tolist())

hh_min_ss = np.array([i.split(':', 2) for i in val_array[:,1]]).astype(float)
s = hh_min_ss[:,0]*3600 + hh_min_ss[:,1]*60 + hh_min_ss[:,2]

val_array[:,1] = s
return val_array.astype(float)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Dan
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Camille

79136765

Date: 2024-10-29 10:26:44
Score: 1.5
Natty:
Report link

Use `` instead of "".

function greet(person_name) { return Hello, ${person_name} how are you doing today?; }

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shimalan

79136761

Date: 2024-10-29 10:25:44
Score: 1.5
Natty:
Report link

Independenţă şi deschidere către lume. Un copil devine din ce în ce mai dependent şi în acelaşi timp din ce în ce mai independent. Acest lucru sună contradictoriu şi bineînţeles că aşa este. Însă aşa sunt copiii. Un părinte se plânge de un băieţel de un an: „Acum plânge de fiecare dată când ies din cameră”. Acest lucru nu înseamnă că acesta îşi formează un obicei dăunător; înseamnă că pe măsură ce creşte realizează cât de mult depinde de părinţii săi. Este neplăcut, însă este un semn bun. Cu toate acestea, la aceeaşi vârstă începe şi să fie mai independent; începe să simtă nevoia de a fi pe cont propriu, de a descoperi locuri noi, de a ajuta oameni necunoscuţi

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Magda Ungureanu

79136759

Date: 2024-10-29 10:25:41
Score: 6.5 🚩
Natty: 5.5
Report link

I'm running Sugar Enterprise v 13.0.3 , exactly same issue, on random users, any idea?

Reasons:
  • Blacklisted phrase (1): any idea?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RadioLontra

79136729

Date: 2024-10-29 10:17:39
Score: 1.5
Natty:
Report link

This is now part of the CSS standards: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting

No need for SASS or LESS to do this any more.

You may want to also explore CSS combinators which are very useful when nesting rules: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Combinators

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: voidstate

79136728

Date: 2024-10-29 10:16:39
Score: 1
Natty:
Report link

Use register instead:

const { control, handleSubmit, setValue, register } = useForm();
register('Control_name');
<Select
  options={options}
  onChange={(selected: any) => {
    if (selected) {
      setValue('Control_name', selected.value);
    }
  }}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Việt

79136722

Date: 2024-10-29 10:16:39
Score: 1.5
Natty:
Report link

Enable push notifications capabilities through xcode.

  1. Open your project on xcode
  2. In project navigator select your project
  3. In project editor select target then go to Signing & Capabilities tab

Add a capability to a target

  1. Click + Capabilities
  2. Search for Push Notifications then add it
  3. Try to run again.

Reference: Enable push notifications - Xcode Help

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gopelkujo

79136717

Date: 2024-10-29 10:15:39
Score: 2.5
Natty:
Report link

I just faced a similar issue, then I did this approach to solve keep my blog updated with main repository.

https://blog.erison.work/posts/get-frontend-theme-updates-using-git-part-2/

I hope it helps you!

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Erison Silva

79136692

Date: 2024-10-29 10:10:37
Score: 3.5
Natty:
Report link

What if we have to use embeddedCassandraServerHelper from cassandra unit 4.3.1.0 .Will 3.x driver work with this embeddedcassandra

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What if we have to use
  • Low reputation (1):
Posted by: Ankitha Mohan

79136687

Date: 2024-10-29 10:08:37
Score: 0.5
Natty:
Report link

A solution could be put a UIButton on top of UITextField to block interactions. So when user tap the button, all we have to do is make UITextField become first responder

enter image description here

class DisableTextField: UIViewController {

    @IBOutlet weak var textfield: UITextField!
    @IBOutlet weak var button: UIButton!
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }


    @IBAction func onTap(_ sender: Any) {
        textfield.becomeFirstResponder()
    }

}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: duckSern1108

79136686

Date: 2024-10-29 10:08:37
Score: 2
Natty:
Report link

I was able to solve the same issue by targeting the instant client version to 21.12 instead of the latest 23.4. Try choosing a different instant client package : https://www.oracle.com/sg/database/technologies/instant-client/linux-x86-64-downloads.html

and update the ln -s commands accordingly to 21.1

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jeevith Ramesh

79136685

Date: 2024-10-29 10:07:37
Score: 2
Natty:
Report link

Laravel 11 automatically adds Providers and aliases Go to:

your_app/bootstrap/cache/packages.php

Copy your required aliases and use just remove extra "" and it works no need to edit any thing.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Farhan Basra

79136683

Date: 2024-10-29 10:07:36
Score: 5
Natty:
Report link

Renaming the header is not an option for us unfortunately. The domain forwarding workaround did also not work for us. Does anyone have another workaround I could try?

I re-posted the issue here: https://vercel.community/t/authorization-header-not-passed-to-serverless-function/1726

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Maximilian Friedmann