79151508

Date: 2024-11-02 20:15:44
Score: 3.5
Natty:
Report link

I am interested how this answer has worked out over time since google follows robots.txt options loosely. It seems like this continues to be an issue for RTD users. Any updates? From a cursory google of pyngrok, it seems like it works well.

Reasons:
  • RegEx Blacklisted phrase (0.5): Any updates
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rowlando13

79151505

Date: 2024-11-02 20:13:43
Score: 3.5
Natty:
Report link

thanks! it worked with admin/pass.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): it worked
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KAIF KHAN

79151489

Date: 2024-11-02 20:04:41
Score: 3
Natty:
Report link

its fixed to me:

cy.get('#search-element').clear().type('value', {delay: 100})

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

79151484

Date: 2024-11-02 20:01:40
Score: 0.5
Natty:
Report link

This has been answered multiple times but never afais gives the response starting by pressing a Button to get to the next View. Adding this approach just in case someone ends up (just like me) on a Google search that has this answer as one the top links.

This approach is a combination of @State variable on the Initial View and the same variable as @Binding in the Ending View. You can always add a "Back" button on the ending View to return to the original.

struct InitialView: View {   
    @State private var isEndingViewActive = false   
    HStack {
            var body: some View {
                if isEndingViewActive {
                    EndingView(isEndingViewActive: $isEndingViewActive)
                } else {
                Button(“Going to End View”) {
                   isEndingViewActive = true
                }
            }
        }
    }
}

struct EndingView: View {    
    @Binding private var isEndingViewActive: Bool
    HStack {   
            var body: some View {
                Button(“Going Back to Initial View”) {
                isEndingViewActive = false
                }
        }
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @State
  • User mentioned (0): @Binding
  • Low reputation (1):
Posted by: Norberto Carbonell

79151475

Date: 2024-11-02 19:57:39
Score: 2
Natty:
Report link

1 - Follow this documentation -> https://tailwindcss.com/docs/guides/create-react-app

2 - add this -> npm i postcss 3 - add this -> npm i autoprefixer 4 - create manually this file in your project -> postcss.config.js 5 - add below code inside of postcss.config.js

export default {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  }

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cavidan Bagiri

79151463

Date: 2024-11-02 19:46:36
Score: 4
Natty: 5
Report link

Worked perfectly fine for me, thank you.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: simbayi kativu

79151433

Date: 2024-11-02 19:18:30
Score: 1
Natty:
Report link

in flutter , copy app/build.gradle

compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8
}

past to the Flutter Plugins/[packageName]/android/app/build.gradle

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

79151428

Date: 2024-11-02 19:16:29
Score: 1.5
Natty:
Report link

Clean, simple and code readable

Swap the bullet (-) mark and that's all

description 1

description 2

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

79151418

Date: 2024-11-02 19:09:28
Score: 3
Natty:
Report link

This issue happened with me but when I check the df -h it was 100% after delete some of file it's working normally .

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

79151400

Date: 2024-11-02 18:58:25
Score: 2.5
Natty:
Report link

I have found a solution to the problem:

Although the Android manifest file was configured correctly, the “supported urls” setting on my test device was not set correctly.

The setting can be found under

Apps > YourApp > default settings > supported web addresses

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

79151397

Date: 2024-11-02 18:57:25
Score: 2.5
Natty:
Report link
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Klaudiusz Prusaczyk

79151394

Date: 2024-11-02 18:54:24
Score: 6
Natty: 7
Report link

can you stop the command after a certain amount of seconds?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Jason Harmon

79151392

Date: 2024-11-02 18:53:24
Score: 4.5
Natty: 5
Report link

thx @t.m.adam, i managed to hack minecraft license verification with this

Reasons:
  • Blacklisted phrase (1): thx
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cucuzacu Zacu

79151386

Date: 2024-11-02 18:50:22
Score: 2
Natty:
Report link

Check this video https://www.youtube.com/watch?v=xw5SJZnTWp4&t=224s

i noticed while trying this code which can help make a function to support currying, notice line 6 where return have (), without parentheses this code does not have capability to return a executable curried function

const addUncurried = (a, b) => a + b;
const curry = 
    (targetFunction, collectedArguments = []) => {
          return (...currentArguments) => {
              return (allArguments => {
                return (
                    allArguments.length >= targetFunction.length 
                    ? targetFunction(...allArguments) 
                    : curry(targetFunction, allArguments)
                )
              })([
                ...collectedArguments,
                ...currentArguments,
            ])
          }
    }
        
   
const addCurried = curry(addUncurried);
const increment = addCurried(2); // 6
console.log('increment',increment(4));
console.log('addCurried',addCurried(1,4)); // 5 
console.log('addCurried',addCurried(1)(3)); // 4

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): Check this video
  • Blacklisted phrase (1): this video
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vinay Rajput

79151384

Date: 2024-11-02 18:49:22
Score: 1
Natty:
Report link

You may use os.path.split(os.path.split("C:\Users\Name\New\Data\Folder1\Folder1-1")[0])[1] construction: it will produce "Folder1" Sure, if I understood right what your issue is.

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

79151370

Date: 2024-11-02 18:41:20
Score: 3
Natty:
Report link

@richard-barraclough

Please check the following starter projects:



Screenshot

image

Let us know if you need any help.

Reasons:
  • Blacklisted phrase (1): any help
  • No code block (0.5):
  • User mentioned (1): @richard-barraclough
  • Low reputation (0.5):
Posted by: Vikram Reddy

79151363

Date: 2024-11-02 18:38:19
Score: 3.5
Natty:
Report link

Not sure if you're still looking for the solution, but you can do this:

https://forum.edgeimpulse.com/t/error-compiling-arduino-library-for-xiao-esp32s3-sense/8901

The bad thing is you're disabling esp NN when using this, so your program won't be nearly as fast

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

79151335

Date: 2024-11-02 18:23:17
Score: 3.5
Natty:
Report link

I found that this is the endpoint i was looking for: https://api.slack.com/methods/functions.completeSuccess

now the workflow step ends in success mode.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Markus Berg

79151331

Date: 2024-11-02 18:21:16
Score: 2.5
Natty:
Report link

Make you sure you are using 64 bit compiler. I managed to recreate the problem but it seems like it doesn't work on 32bit also use directly bcdedit without any full path. It's like a drivers. x86 driver doesn't work on x64 etc. Also if you are using 32 bit then use 32 bit compiler.

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

79151325

Date: 2024-11-02 18:15:15
Score: 1.5
Natty:
Report link

To capture stderr, use capture2() which returns STDOUT and STDERR.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Aleksey Tsalolikhin

79151317

Date: 2024-11-02 18:08:14
Score: 2
Natty:
Report link

Thanks @margusl,

using your code I was able to create the following for loop for those that are curious.

 #create empty list
store_info_0 <- list()

#loop over all_store_urls
for (i in 1:length(all_store_urls)) {
  # set row specific url
  html <- read_html(all_store_urls[i])
  
  # Extract information
  store_info_0[[i]] <- list(
    Name = html %>% html_element(".store-details h1") %>% html_text(trim = TRUE),
    Address = html %>% html_element(".store-details .store-address") %>% html_text(trim = TRUE),
    Phone   = html %>% html_element(".store-details .store-phone") %>% html_text(trim = TRUE),
    Missing = html %>% html_element(".store-details .not-present") %>% html_text(trim = TRUE)
  ) %>% 
  tibble::as_tibble(name = "web")
}



store_info_0
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @margusl
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ben

79151314

Date: 2024-11-02 18:08:14
Score: 2.5
Natty:
Report link

If you're initializing something (i.e. the amount of data are small), you could prep the schema in a script by connecting to a ":memory:" database and resolve all of the column challenges, then write the fully polished file out to disk.

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

79151313

Date: 2024-11-02 18:08:14
Score: 1
Natty:
Report link

In makeStyles you should define

  card: {
    width: '360px',
    maxWidth: '100%',
    height: 'fit-content',
    '& .buttonContainer': {
      visibility: 'hidden',
    },
    ':hover': {
      '& .buttonContainer': {
        visibility: 'visible',
      },
    },
  },

and the button container should have the class buttonContainer

Working code: https://stackblitz.com/edit/ff53e2-zpmwug?file=src%2Fexample.tsx

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

79151301

Date: 2024-11-02 18:04:13
Score: 1.5
Natty:
Report link

change

from pydantic import BaseModel

to

from pydantic_settings import BaseModel

and install pydantic_settings like so:

pip install pydantic_settings
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jarvis101

79151291

Date: 2024-11-02 18:01:12
Score: 1
Natty:
Report link

I think I've solved my question if someone also has such a problem, then here's what I did first, I thought that if I didn't run the .cpp file itself, but run the compiled one.exe so the whole Russian language in this case begins to be written in utf-8 encoding and is correctly entered into the database. also, for correct output to the console, I added the following code to the main function

    setlocale(LC_ALL, "ru");
    SetConsoleCP(65001); 
    SetConsoleOutputCP(65001);

if you follow my method, everything will work, although I understand that most likely there are ways for the IDE to work correctly if there are other solutions, I will be happy to listen to them and thank you to everyone who tried to help

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Григорий Жидков

79151284

Date: 2024-11-02 17:58:11
Score: 1.5
Natty:
Report link
def calc_pi():

num = 3
ans = 0
sign = '+'
for i in range(1,1000000):
    if sign == '+':
        ans += (1/num)
        sign = '-'
        
    else:
        ans -= (1/num)
        sign = '+'

    num += 2

print(4 * (1-ans))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: marz

79151278

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

I'll comment what was the issue FOR ME, just in case someone needs it: mavenLocal().

Yes, really. Even though the correct online repo is set, gradle chose to ignore it, and continues to do so when I re-add it. Luckily, I don't require it.

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

79151274

Date: 2024-11-02 17:56:11
Score: 2
Natty:
Report link

ran into the issue trying to locate UserRefID and found a solution. Apparently, when you follow their "OAuth2/Authorization Guide", you can get the needed data if you run a GET call:

curl --location --request GET 'https://api.honeywell.com/v2/locations?apikey=CONSUMERKEY' --header 'Authorization: Bearer YOURTOKEN'

The JSON that comes out has the UserID. So, it is indeed the UserRefID (2352951) :

"users": [ { "userID": 2352951, "username": "[email protected]", "firstname": "G", "lastname": "D", "created": 16335504, "deleted": -6213596800, "activated": true, "connectedHomeAccountExists": true, "locationRoleMapping": [ { "locationID": 37316221, "role": "Adult", "locationName": "Home", "status": 1 } ], "isOptOut": "False", "isCurrentUser": true }, {

I hope someone finds this useful.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28098734

79151243

Date: 2024-11-02 17:44:08
Score: 3
Natty:
Report link

...and what about the more useful script(s) allowing html interface to existing data table(s) spreadsheet db and edit the same? IE mySQL or other db. html GUIs are easy enough but the data accessibility just isn't a part of html - unfortunately it never was a part of the intended specs - however, in today's world it (html) NEEDS to be revised to do so! The 80's are over! No one wants just visibility only, but real time editing also.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cliff

79151242

Date: 2024-11-02 17:44:08
Score: 1
Natty:
Report link

I was also facing the same issue. In my case the problem was after making code changes in I saved them, But didn't re-run the npm run start command. After I did stop the existing npm and ran the above command, it started to work.

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

79151231

Date: 2024-11-02 17:41:08
Score: 2
Natty:
Report link

You could use the method place in order to adjust the label correspoding to the element 1.

The code:

    # Crear frame and pack it
    self.test = tk.Frame(self, width=60, height=40, bg=COLOUR) 
    self.test.pack_propagate(False)
    self.test.pack(pady=20, padx=20)

    # Crear label for "A"
    self.testletter = tk.Label(self.test, bg=COLOUR, text="A", font=("Helvetica", 16, "bold"))
    self.testletter.place(x=5, y=5)

    # Crear a label for "1"
    self.testsubscript = tk.Label(self.test, bg=COLOUR, text="1", font=("Helvetica", 8, "bold"))
    
    # Ajust "1" below "A"
    self.testsubscript.place(x=23, y=20)`
Reasons:
  • Blacklisted phrase (2): Crear
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: raul sanchez

79151230

Date: 2024-11-02 17:41:08
Score: 3
Natty:
Report link

I found that the path name has to be fully qualified and that the partial path in the base uploader file will not work (at least on this implimentation on Rails PlayGround).

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

79151221

Date: 2024-11-02 17:38:07
Score: 0.5
Natty:
Report link

Based on @Michael Kay's comment, switching the XSLT processor from Xalan to Saxon solves this problem. You have to add saxon-he-12.5.jar and xmlresolver-5.2.2.jar from Saxon-HE 12.5 to the classpath, and set the system property with -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl. This solution has the advantage of requiring no changes to the source code.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Michael
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: SATO Yusuke

79151213

Date: 2024-11-02 17:36:07
Score: 0.5
Natty:
Report link

This might help https://github.com/JairajJangle/react-native-visibility-sensor, a modern and flexible module that detects whether a component is in the viewport or not in React Native. This module is made keeping the functionality offered by react-visibility-sensor in mind.

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

79151195

Date: 2024-11-02 17:30:05
Score: 2
Natty:
Report link

The issue stems from MS Word's inability to handle the viewBox attribute properly. To resolve this, I removed the viewBox attribute, recalculated the positions of all elements, and placed them inside a <g/> element. This adjustment allows MS Word to render the SVG correctly.

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

79151176

Date: 2024-11-02 17:22:03
Score: 3
Natty:
Report link

I also received this error until I installed Deno, the CLI tool used in the hook. You can find Deno here: https://deno.com/

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

79151168

Date: 2024-11-02 17:19:02
Score: 2.5
Natty:
Report link

Infinispan 14 has both JavaEE and Jakarta artifacts. Infinispan 15 is Jakarta only.

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

79151164

Date: 2024-11-02 17:16:59
Score: 8 🚩
Natty: 5
Report link

For the selectors you choose. That is not present in the code structure you presented. How were you able to come up with the selectors?

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: doneil chapman

79151156

Date: 2024-11-02 17:14:56
Score: 10.5 🚩
Natty: 4
Report link

Did you ever find the reason this is happening? I am also trying to do the same thing for the same Coursera final project and am getting the exact same error!

Reasons:
  • Blacklisted phrase (1): trying to do the same
  • RegEx Blacklisted phrase (3): Did you ever find the
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): getting the exact same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Dan Hickman

79151151

Date: 2024-11-02 17:11:53
Score: 3.5
Natty:
Report link

driver.findElement(By.xpath("//div[contains(text(),'Select State')]")).click(); driver.findElement(By.xpath("//input[@id='react-select-3-input']")).sendKeys("NCR", Keys.TAB);

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

79151145

Date: 2024-11-02 17:07:53
Score: 2
Natty:
Report link

Had the same issue. Solution was: In Solution explorer right-click problematic xaml file -> Rename to some other name (f.e. EditContactPage2.xaml) ->Enter . After recompiling - no errors. Then this file can be renamed to the previous name in the same way.

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

79151143

Date: 2024-11-02 17:06:52
Score: 2
Natty:
Report link

+1 My VisualStudio started today with this exactly same issue. I also have as well updating, reinstalling, deleting publish profiles and repairing the install, but nothing has worked.

I noted that this occurs with only one solution (website project); so I dont feel it is related to the instalation.

Did you guys find some solution? I looks like Microsoft is trolling us...

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: André Aranha

79151141

Date: 2024-11-02 17:05:52
Score: 0.5
Natty:
Report link

....Answer option with nbformat in progress...

Related:

If wanted to remove all output, see here.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Wayne

79151140

Date: 2024-11-02 17:04:52
Score: 2
Natty:
Report link

just create

.dockerignore

then add

.dockerignore
node_modules

then rebuild docker

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

79151137

Date: 2024-11-02 17:04:52
Score: 2.5
Natty:
Report link

If you don't explicitly set package-mode=false in your pyproject.toml file, poetry treats your project as a package and will install it as a package every time you install it. So if you set --no-root: It will not install the root package (your project).

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

79151129

Date: 2024-11-02 17:00:51
Score: 2.5
Natty:
Report link

You can add a custom column to the dataset with a value and a colour indicator as an example, then use a RegEx value mapping like this to achieve the desired look: (\d+.\d+) (\bGreen).

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

79151111

Date: 2024-11-02 16:52:48
Score: 4.5
Natty: 4.5
Report link

You can try using three-dxf for rendering the dxf file: https://github.com/gdsestimating/three-dxf

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

79151109

Date: 2024-11-02 16:51:48
Score: 1.5
Natty:
Report link

Add this line of rules to Proguard-rules in Gradle script.

-keep class com.google.api.** { *; }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rup Sarma

79151091

Date: 2024-11-02 16:36:44
Score: 0.5
Natty:
Report link

BLUF (Bottom Line Up Front):

Microsoft has replaced basic authentication with OAuth2 for enhanced security, breaking existing Python applications using imaplib with simple username/password logins. As a result, imaplib can no longer connect to Outlook personal accounts directly.

To address this, Python applications need to adopt OAuth2 for authentication. This guide details how I updated my script to use requests_oauthlib for OAuth2 and Microsoft Graph API to access my inbox.

Step-by-Step Guide:

1. Register Your Application in Azure:

  1. Log in to the Azure Portal using your Microsoft account.

  2. Register your app:

    • Go to Azure AD > App registrations > New registration.
    • Provide a name (e.g., Outlook Personal App).
    • Choose Accounts in any organizational directory and personal Microsoft accounts.
    • Add a Redirect URI: http://localhost:8000/callback.(This is an important value. Since you need to run a localhost in your machine to perform one time account authentication.
  3. Save the registration and note your Client ID.

  4. Navigate to API Permissions in your app registration.

  5. Add Microsoft Graph > Delegated permissions:

    • Mail.Read: To read user mail.
    • Mail.ReadWrite: To read and write user mail.
    • User.Read: To read the user profile.
  6. Grant admin consent if required.(There is no need for it in personal email accounts)

3. Implement OAuth2 Authentication and Email Access in you Python code:

Replace imaplib with requests_oauthlib for OAuth2 support:

import os
from flask import Flask, request, Response
import threading
from requests_oauthlib import OAuth2Session
import requests

# Allow HTTP for local testing (not recommended for production)
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'

# Configuration
CLIENT_ID = 'XXXXXXXXXXXXXXXXXXX'  # Replace with your Application (client) ID
REDIRECT_URI = 'http://localhost:8000/callback'
AUTH_BASE_URL = 'https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize'
TOKEN_URL = 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token'
SCOPE = ['https://graph.microsoft.com/Mail.ReadWrite']

# Create an OAuth2 session
oauth = OAuth2Session(CLIENT_ID, redirect_uri=REDIRECT_URI, scope=SCOPE)

# Step 1: Get the authorization URL and print it
authorization_url, state = oauth.authorization_url(AUTH_BASE_URL)
print(f'Please go to this URL and authorize access: {authorization_url}')

# Step 2: Start a Flask server to capture the redirect response
app = Flask(__name__)
auth_code = None

@app.route('/callback')
def callback():
    global auth_code
    auth_code = request.url  # Capture the full URL with the authorization code
    print('Authorization code received!')

    def shutdown_server():
        func = request.environ.get('werkzeug.server.shutdown')
        if func is not None:
            func()

    threading.Thread(target=shutdown_server).start()
    return 'Authorization code received! You can close this tab.'

# Run Flask server in a separate thread
server_thread = threading.Thread(target=app.run, kwargs={'port': 8000})
server_thread.start()

# Wait for the authorization code to be set by the Flask server
while auth_code is None:
    pass

# Step 3: Fetch the access token using the captured authorization code
token = oauth.fetch_token(
    TOKEN_URL,
    authorization_response=auth_code,
    client_id=CLIENT_ID,
    include_client_id=True
)
print('Access token obtained successfully! Lets continue')

# Proceed with API requests or other logic

# Step 4: Use the access token to access the user's mailbox
# Retrieve the first three emails from the inbox
headers = {'Authorization': f'Bearer {token["access_token"]}'}
response = requests.get('https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$top=3&$select=id,from,subject,body', headers=headers)

if response.status_code == 200:
    emails = response.json().get('value', [])
    
    if emails:
        print("\nDisplaying the first three emails:\n")
        for i, email in enumerate(emails, 1):
            print(f"Email {i}:")
            print(f"  ID: {email.get('id', 'N/A')}")
            print(f"  From: {email.get('from', {}).get('emailAddress', {}).get('address', 'N/A')}")
            print(f"  Subject: {email.get('subject', 'No Subject')}")
            
            # Extract the body content and display only text (no HTML)
            body_content = email.get('body', {}).get('content', '')
            if email.get('body', {}).get('contentType', '').lower() == 'html':
                # Strip HTML tags if the content type is HTML
                from bs4 import BeautifulSoup
                body_content = BeautifulSoup(body_content, 'html.parser').get_text()
            
            print(f"  Body (Text Only): {body_content.strip()[:500]}")  # Limit to 500 chars for readability
            print("\n" + "-"*50 + "\n")
    else:
        print('No emails found.')
else:
    print(f"Failed to fetch emails. Status code: {response.status_code}")
    print("Response content:", response.text)
Reasons:
  • Blacklisted phrase (1): This guide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex Plinio

79151087

Date: 2024-11-02 16:33:44
Score: 2
Natty:
Report link

If you want to deserialize a json file into its subclass, you need to manually judge its type and use is or something to convert it into the corresponding subclass. because deserialization itself cannot determine what type your data was originally, the data that cannot be deserialized will be discarded and processed manually.

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

79151082

Date: 2024-11-02 16:30:43
Score: 1.5
Natty:
Report link

A more simple approach would be to cycle through the rows of sheet 'RefundOther' via 'for...next' starting with last row of this sheet (step -1 because you're going to delete rows), copy each cell value from A to V (column 1…22) via another 'for...next' to the designated target sheet (where you looked up its last row beforehand) and delete the source row then.

I'd like to apologize that I don't provide any code, but I'm sitting at a patients tablet in a hospital, bored to death, struggeling with the Autocorrection.

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

79151076

Date: 2024-11-02 16:28:42
Score: 0.5
Natty:
Report link

CREATE INDEX index_sales ON sales (context);

create index so data retive faster and reource will reduced.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Dinesh vishe

79151075

Date: 2024-11-02 16:26:41
Score: 1.5
Natty:
Report link

I resolved the issue using this additional information from UNO.

https://platform.uno/docs/articles/uno-community-toolkit-v7.html?tabs=tabid-winui%2Csingleproj

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Cezar Wagenheimer

79151071

Date: 2024-11-02 16:24:40
Score: 0.5
Natty:
Report link
test <- function(data, variable, range, fill) {  
  
  # no quotes around {{ variable }}
  # use :=
  tmp <- data %>% complete({{ variable }} := range, fill = fill)
  
  return(tmp)
}

# And the way I want to call the function:  
z %>% test(g1, 1:5, fill = list(n = 0, gender = 'f'))

# A tibble: 5 × 3
     g1 gender     n
  <dbl> <chr>  <dbl>
1     1 f          0
2     2 f          3
3     3 f          2
4     4 f          8
5     5 f          3

tidyeval is definitely weird to get used to, but it starts to make sense with practice.

You can find a tidyeval cheatsheet (PDF) from here

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gabagool

79151060

Date: 2024-11-02 16:17:39
Score: 7.5
Natty: 7
Report link

hi i am working like same project i have to ask some things can you give me your telegram or email to chat ?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you give me your
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: shubham gound

79151051

Date: 2024-11-02 16:14:38
Score: 1
Natty:
Report link

I have found fix for my question

Fix:-- Add this line of rules to Proguard-rules in Gradle script. It worked in my case

-keep class com.google.api.** { *; }
Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rup Sarma

79151014

Date: 2024-11-02 15:56:34
Score: 1.5
Natty:
Report link

For "the" first case

  1. any class or method annotated with Spring's @Transactional annotation must also be annotated with @Service

(which I think are really two structurally different cases: for @Transactional methods, you want the declaring classes to be @Services, not the methods themselves), I don't see how you could combine them if you want to have classes and methods reported as individual violations in the corresponding cases.

If you didn't care, but really preferred to combine the rules, you could in this case (when you also accept that, for a class annotated with @Transactional but not @Service, you'll get a violation for every method – also none if the class doesn't have any methods) use:

@ArchTest
ArchRule transactionalServices = methods()
    .that().areAnnotatedWith(Transactional.class)
    .or().areDeclaredInClassesThat().areAnnotatedWith(Transactional.class)
    .should().beDeclaredInClassesThat().areAnnotatedWith(Service.class);

(I've expressed that I wouldn't do that, haven't I?)


The second case

  1. the annotation @jakarta.transaction.Transactional is not allowed on any class or method

is something that could actually be unified as a single rule for classes or methods (regarding their common functionality that they can have annotations [and have a source code location each]), cf. §7.5 Rules with Custom Concepts of the ArchUnit User Guide:

// Intersection types are tricky, cf. https://stackoverflow.com/q/6643241 .
// Please let me know if you find a better solution for this:
<HAS_ANNOTATIONS extends HasAnnotations<?> & HasSourceCodeLocation>
ClassesTransformer<HAS_ANNOTATIONS> classesOrMethodsWhichCanHaveAnnotations() {
    return new AbstractClassesTransformer<>("classes/methods") {
        @Override
        public Iterable<HAS_ANNOTATIONS> doTransform(JavaClasses classes) {
            List<HAS_ANNOTATIONS> result = new ArrayList(classes); // shortcut 🤫
            classes.forEach(javaClass ->
                result.addAll((Set<HAS_ANNOTATIONS>) javaClass.getMethods())
            );
            return result;
        }
    };
}

@ArchTest
ArchRule noJakartaTransaction = no(classesOrMethodsWhichCanHaveAnnotations())
        .should(beAnnotatedWith(jakarta.transaction.Transactional.class));

This uses the following static imports:

import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.no;
import static com.tngtech.archunit.lang.conditions.ArchConditions.beAnnotatedWith;
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Manfred

79151001

Date: 2024-11-02 15:45:31
Score: 2.5
Natty:
Report link

Actually, there is a real (double) offset property, which is responsible for progress and I change it fractionally. There will be a bit of calculations, bit I think this is what I need.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Alexander Zolkin

79150996

Date: 2024-11-02 15:44:30
Score: 3
Natty:
Report link

In case anyone needs it, there is a service now that automated it and easily provides spotify access_token's (using auth code flow) called https://spoken.host

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

79150994

Date: 2024-11-02 15:43:30
Score: 0.5
Natty:
Report link

In my case, It seems I have made a mistake by changing the files svelte.config.js and vite.config.js both to be Typescript (.ts instead of .js).

When I reverted that, intuitively, the types were successfully recognized.

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

79150988

Date: 2024-11-02 15:42:28
Score: 9.5 🚩
Natty: 5.5
Report link

having the same problem, have you fixed it?

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Doni Bobes

79150984

Date: 2024-11-02 15:39:27
Score: 1.5
Natty:
Report link

Based on error logs either of following could be the issue

  1. Please validate variable imageUrl present in Album class

  2. If this field is already present and if you are using IntelliJ IDEA please check lombok plugin is installed

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sharad Paul

79150981

Date: 2024-11-02 15:35:25
Score: 1
Natty:
Report link

This does not work

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

79150980

Date: 2024-11-02 15:34:25
Score: 1.5
Natty:
Report link

On your android studio, go to more actions and click that, then select 'Virtual Device Manager' You will be able to see your Emulators, go the one which is showing this problem 'Error: adb.exe: device offline' you will be able to see three dots on your right hand, click on those three dots and then select 'Cold Boot' then try to reconnect again, hopefully your problem will be solved.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Brian Evans

79150979

Date: 2024-11-02 15:34:25
Score: 3
Natty:
Report link

This works: WEEKDAY(date,type 16) begins week on Saturday, whereas WEEKDAY(date) blank has (default type 1) begins week on Sunday

=TODAY() + (7 - WEEKDAY(TODAY(),16))

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

79150969

Date: 2024-11-02 15:27:24
Score: 0.5
Natty:
Report link

No you can't, you can read the code, default behavior is special indeed.

But i believes you can mimic it by provide more ancestor node_modules folders:

{
  "typeRoots": [
    "./node_modules/@types",
    "../node_modules/@types",
    "../../node_modules/@types",
    // ...
  ]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alan Zhang

79150959

Date: 2024-11-02 15:23:23
Score: 2.5
Natty:
Report link

Partial indexing is possible since shopware 6.4. First --skip got introduced and later on --only in this blog post I take a deep dive into indexing and also show some examples on how to use skip & only.

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Atilla Boz

79150954

Date: 2024-11-02 15:21:22
Score: 2
Natty:
Report link

I'm not a Gradle expert, but I think that "-Xmaxerrs" is a javac option, not a JVM options. I think you can solve your issue by following this advice.

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

79150953

Date: 2024-11-02 15:21:22
Score: 1
Natty:
Report link

💯 Latest and Valid dumps are available, Most accurate.. 💯 Updated..

wa.me/+16073054462

1- Microsoft All 2- Terraform All 3- Cisco All 4- Servicenow All 5- Snowflake All 6- ITIL V4 7- Palo Alto All 8- AWS All 9- Togaf All 10- Kubernetes All 11- Salesforce All 12- Mulesoft All 13- Scrum Master All 14- Oracle All 15- Fortinet All 16- Juniper All 17- VMware All 18- Isaca Cobit Cism Cisa Crisc All 19- CISSP CCSA CCSK CCAK CCSE All 20- PMP PMI all 21- Dell All 22- Microtik All 23- Google Cloud All 24- Safe All 25- Prince2 26-CEH 27- Azure All 28- ISTQB All AND MUCH MORE

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

79150952

Date: 2024-11-02 15:18:22
Score: 1
Natty:
Report link

This my configuration & working with splunk enterprise.

exporters:
  logging:
    verbosity: normal
  splunk_hec:
    token: "${SPLUNK_HEC_TOKEN}"
    endpoint: "${SPLUNK_HEC_URL}"
    source: "otel-db"
    sourcetype: "otel-db"
    profiling_data_enabled: false
    tls:
      insecure_skip_verify: true
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: M. Luthfi As Syafii

79150947

Date: 2024-11-02 15:14:21
Score: 1
Natty:
Report link

When you pin a property in the Visual Studio debugger, it becomes the prioritized display item, effectively overriding [DebuggerDisplay]. This behavior lets you focus on specific fields but can indeed hide the custom display you set up with [DebuggerDisplay]

on the sceen i've pinned a Content property that's why Debugger shows it like Content = {....} instead of expected [DebuggerDisplay("RestResponse {ToString()})]

enter image description here

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you
Posted by: Artem Vertiy

79150944

Date: 2024-11-02 15:13:19
Score: 7 🚩
Natty: 6
Report link

any solution for this ?

im exaclty on same problem

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution for this ?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: XLevi

79150937

Date: 2024-11-02 15:12:18
Score: 4
Natty: 4
Report link

Please reference https://simplewebauthn.dev/docs/packages/browser

and you are good to go

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ajibola Bello

79150936

Date: 2024-11-02 15:12:17
Score: 1.5
Natty:
Report link

The maximum bytes for a path is 4096. And the maximum bytes for a file name is 255 bytes. So, that means: because the character is equal to 2 bytes, it will be like: max character for file name = 255 bytes / 2 bytes for a character = 127 character. max character for path = 4096 bytes / 2 bytes for a character = 2048 character.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: I.A.

79150929

Date: 2024-11-02 15:09:16
Score: 0.5
Natty:
Report link

Another possible issue is that the appType property for your AzureFunctionApp@2 task has the wrong value.

If you're deploying to a Linux app service plan, it should be functionAppLinux while if you're deploying to Windows, it should be functionApp. I was wondering why deployment succeeds but wwwroot is empty, and it turned out that this was the issue...

Reasons:
  • Blacklisted phrase (2): was wondering
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Shahin Dohan

79150927

Date: 2024-11-02 15:07:16
Score: 5
Natty: 4
Report link

hey hi hello howghhghghgghghghghghgh

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: b nba

79150923

Date: 2024-11-02 15:06:15
Score: 1
Natty:
Report link

If you want to verify that the user has a verified email while authenticating, you will also get help from the Pre Token Generation Lambda. This trigger is invoked every time a token is rs generated, you could use this to check if email verifcation was successfull and it made its way into the flag that the user has been verified after last login.

In Lambda function:

  1. Verify that the email_verified key is true

2, Take this status and compare it to the last status you have stored in your own database.

If it is a newly verified email, perform an update to the user email in your database.

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

79150911

Date: 2024-11-02 14:59:13
Score: 3
Natty:
Report link

Actually, you need to completely delete the node JS and it's path in the environment variable. Then try again it will work.

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

79150908

Date: 2024-11-02 14:59:13
Score: 2.5
Natty:
Report link

Don't use apt to install ruby, because it installs system-wide which makes gem management difficult. Try using something like rvm, it will work a lot better.

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

79150903

Date: 2024-11-02 14:57:13
Score: 3
Natty:
Report link

No, WebRTC cannot be used to forward a port. WebRTC is designed to establish direct connections between devices, not to route traffic through a middle server.

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

79150890

Date: 2024-11-02 14:47:11
Score: 1.5
Natty:
Report link

in the last versions of ChartJS minIndex and maxIndex are not link to de visible points, they are linked to X axis position visible, I found the same problem. But I found 2 properties that I used to solve it: chart._metasets[0].controller._drawStart ; chart._metasets[0].controller._drawCount ; thats shows the first point visible Index and the number of visible points, both needs some corrections, but , if you are here, You will fix it.

PD. I use Zoom in my code and still work

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alfredo M F

79150884

Date: 2024-11-02 14:45:10
Score: 3
Natty:
Report link

The Blocbuilder is called with the current state on every render, the Bloclistener is only called when the state changes

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

79150879

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

Update: It seems like it has nothing to do with the analog pins. I found out that the touch Display is constantly triggering the pumps. However it seems strange to me because it worked just fine with the digital pin.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Inuri

79150870

Date: 2024-11-02 14:38:09
Score: 3
Natty:
Report link

may I asked what would have been the solution if labelBy was a numeric using numericInput ? The default value cannot be a number to avoid any confusion to the user.

Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): may I ask
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: John E.

79150865

Date: 2024-11-02 14:35:08
Score: 3
Natty:
Report link

For more solutions you can visit this link and hope you get your desired solution.

Click solution

I know why you came here. You all need a solution. If you want to get solution of all school database problems. You can follow the guidelines given by me. I am a YouTube video playlist

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Maminul Haque

79150864

Date: 2024-11-02 14:34:08
Score: 0.5
Natty:
Report link

When you know the TransactionId but need Order details, you can obtain it in 2 steps:

  1. First, GET the payment CAPTURE info from /v2/payments/captures/{capture_id}.
    Although it's not shown in PayPal's example, the response body should contain the order_id within the JSON structure like
    "supplementary_data": {"related_ids": {"order_id": "0WV12345XF123456D"}}).
  2. Now you can GET the ORDER info from /v2/checkout/orders/{order_id} using the order_id you obtained from step-1.
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Whitzz

79150853

Date: 2024-11-02 14:24:06
Score: 0.5
Natty:
Report link

Update: I finally got what I wanted the way I wanted it. Thanks to the previous and the only answer and some enlightenment, I was able to improve upon the earlier code (shown on the question.) Anyways here's how I did it, hopefully this helps someone else in the future :D

@echo off
color 02
SETLOCAL EnableDelayedExpansion
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
set "yellow=%ESC%[33m"
set "green=%ESC%[32m"
cls

:start
set det1=%random:~-1%
set det2=%random:~-1%
set dn=%random:~-1%
set randdet=0
if %det1% EQU %det2% SET /A randdet=%RANDOM% * (16 - 1 + 1) / 32768 + 1
set "cdn=%yellow%!random:~-1!%green%"

set rand11=%random:~-1%
set rand12=%random:~-1%
set rand13=%random:~-1%
set rand14=%random:~-1%
set rand21=%random:~-1%
set rand22=%random:~-1%
set rand23=%random:~-1%
set rand24=%random:~-1%
set rand31=%random:~-1%
set rand32=%random:~-1%
set rand33=%random:~-1%
set rand34=%random:~-1%
set rand41=%random:~-1%
set rand42=%random:~-1%
set rand43=%random:~-1%
set rand44=%random:~-1%

if %randdet% EQU 1 set rand11=%cdn%
if %randdet% EQU 2 set rand12=%cdn%
if %randdet% EQU 3 set rand13=%cdn%
if %randdet% EQU 4 set rand14=%cdn%
if %randdet% EQU 5 set rand21=%cdn%
if %randdet% EQU 6 set rand22=%cdn%
if %randdet% EQU 7 set rand23=%cdn%
if %randdet% EQU 8 set rand24=%cdn%
if %randdet% EQU 9 set rand31=%cdn%
if %randdet% EQU 10 set rand32=%cdn%
if %randdet% EQU 11 set rand33=%cdn%
if %randdet% EQU 12 set rand34=%cdn%
if %randdet% EQU 13 set rand41=%cdn%
if %randdet% EQU 14 set rand42=%cdn%
if %randdet% EQU 15 set rand43=%cdn%
if %randdet% EQU 16 set rand44=%cdn%

set set1=%rand11% %rand12% %rand13% %rand14%
set set2=%rand21% %rand22% %rand23% %rand24%
set set3=%rand31% %rand32% %rand33% %rand34%
set set4=%rand41% %rand42% %rand43% %rand44%

set randline=%set1%  %set2%  %set3%  %set4%
echo %randline%

goto start
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: keikats

79150843

Date: 2024-11-02 14:19:05
Score: 1.5
Natty:
Report link

Add suppressHydrationWarning this is what the official documentation says;

Note! If you do not add suppressHydrationWarning to your <html> you will get warnings because next-themes updates that element. This property only applies one level deep, so it won't block hydration warnings on other elements.

https://github.com/pacocoursey/next-themes#:~:text=Note!%20If%20you%20do%20not%20add%20suppressHydrationWarning%20to%20your%20%3Chtml%3E%20you%20will%20get%20warnings%20because%20next%2Dthemes%20updates%20that%20element.%20This%20property%20only%20applies%20one%20level%20deep%2C%20so%20it%20won%27t%20block%20hydration%20warnings%20on%20other%20elements.

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

79150839

Date: 2024-11-02 14:16:05
Score: 0.5
Natty:
Report link

First of all, in turn.h you should declare the enum using a typedef like this:

#ifndef TURN_H
#define TURN_H

typedef enum {
    WHITE, 
    BLACK
} Turns;

typedef struct {
    Turns turn;
} Turn;

void setTurn(Turn *t, Turns newTurn);
Turns getTurn(Turn *t);
void changeTurn(Turn *t);
Turn turn;       // This allows main to see the struct declared in turn.cpp

#endif

As you can see in code above, to solve your problem, I also added Turn turn; to turn.h. This allows main.cpp to see the struct you want to declare in turn.cpp. Then, remove extern Turn turn; from turn.cpp because it has no effect.

Then, modify turn.cpp like this:

#include "turn.h"

Turn turn;

void setTurn(Turn *t, enum Turns newTurn) {
    t->turn = newTurn;
}

enum Turns getTurn(Turn *t) {
    return t->turn;
}

void changeTurn(Turn *t) {
    if (t->turn == WHITE) {
        t->turn = BLACK;
    } else {
        t->turn = WHITE;
    }
}

Note:
The keyword extern looks for declarations of the variable or function passed as its argument outside the file in which the extern is. Putting it inside turn.cpp isn't useful because Turn turn; is declared in itself. You should put the extern if the file which doesn't have the declaration inside,

I want to specify that typedef is not mandatory for the enum:

#ifndef TURN_H
#define TURN_H

enum Turns {
    WHITE, 
    BLACK
};

typedef struct {
    enum Turns turn;
} Turn;

void setTurn(Turn *t, enum Turns newTurn);
enum Turns getTurn(Turn *t);
void changeTurn(Turn *t);
Turn turn;

#endif

As you can see, it works also without typedef.
However, everytime you declare a Turns you have to use the syntax enum Turns, which is verbose and less readable. If you want to modify all declarations of the enum across all your files.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mass

79150838

Date: 2024-11-02 14:15:04
Score: 13
Natty: 7.5
Report link

I know it's been a few years since you posted this. But I'm having the same problem. Did you manage to solve it in any way?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Blacklisted phrase (1): I know it's been
  • RegEx Blacklisted phrase (3): Did you manage to solve it
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel

79150828

Date: 2024-11-02 14:09:03
Score: 1
Natty:
Report link

This is important if you want to look at huge JSON files, like the mypy cache file of QtCore.pyi: Using the pretty_json installable command works fine, but looking at mentioned cache files took minutes with spinning wheel. The builtin

Selection / Format / Indent JSON

in Sublime Text 4 took 3 seconds only.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Christian Tismer

79150823

Date: 2024-11-02 14:06:01
Score: 1
Natty:
Report link

It seems that default number of threads for parallel execution wasn't enough for this project.

I set org.gradle.parallel.threads=16 and problem was solved. It works for Gradle version 8.5.

For newer version use org.gradle.workers.max. But they say that default value for this parameter is the amount of cores, so you don't need to set it explicitly.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Donz

79150822

Date: 2024-11-02 14:04:01
Score: 2
Natty:
Report link

Special thanks to @hoangdv's. Thanks to him, I realized that I was using bcrypt.compareSync() wrongly: because the first two parameters of the method are the non-encrypted password and the encrypted password. Instead, I was inserting as parameters the password I was encrypting in the client side and then the DB password.

So, as @hoangdv said, I should delete formData.userPwd = this.encryptPassword(formData.userPwd); in the client side. And it worked!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • User mentioned (1): @hoangdv's
  • User mentioned (0): @hoangdv
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sithila Somaratne

79150809

Date: 2024-11-02 13:53:59
Score: 4
Natty:
Report link

Because sum should be equal zero

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

79150806

Date: 2024-11-02 13:53:59
Score: 3
Natty:
Report link

This is meant as a comment to Sven Marnach but the system won't let me comment.

Why would you use pop when if is faster in both cases, key present or not? Please change your answer to use if instead of pop. And you could also improve your answer by mentioning that if you look at the error bars on real world tests in Python 3, the try method isn't faster than the if method even if the key exists. My hypothesis is that that setting up the exception handler soaks up the time gained by simply using del. I haven't tested this hypothesis, but if true, the del method should be expected to be slightly faster if you can be absolutely sure that the key exists or if you already have a try frame set up for other purposes that can adequately deal with with a missing key problem as well and missing keys are rare enough.

Reasons:
  • RegEx Blacklisted phrase (1): won't let me comment
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anonymous Coward

79150805

Date: 2024-11-02 13:52:59
Score: 1.5
Natty:
Report link

I had a similar issue with Google using Swift. Using Google's TextSearch API, I was unable to find specific shops. However, searching for generic places like "pizza in new york", I got an answer. My solution was to use Google's Autocomplete API instead, which can return a specific PlaceID!

My solution was in Swift, but feel free to check it out: Swift Autocomplete instead of TextSearch

Reasons:
  • Blacklisted phrase (0.5): check it out
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jonathan112358

79150801

Date: 2024-11-02 13:50:58
Score: 1.5
Natty:
Report link

I thank you for the suggestions. Thanks to them I found a solution that solves the problem, even if the user types very fast.

private void ReadManageAndWriteLine()
{
    // open file with StreamReader
    // for every line in the file, read it and do what you need to do
    // then save the result in String outpuLine
    int cp = GetCaretPosition();
    txtBox.AppendText(outputLine + new string[] { Environment.NewLine });
    SetCaretPosition(cp);
    // go to the next line
}

private int GetCaretPosition()
{
    int s = txtBox.SelectionStart;
    return s;
}

private void SetCaretPosition(int cp)
{
    txtBox.Select(cp, 0);
    txtBox.Focus();
    txtBox.ScrollToCaret();
}

Again, thank you so much, problem solved.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stefano A.

79150796

Date: 2024-11-02 13:48:57
Score: 1.5
Natty:
Report link

In 2013 someone did a clean example and published it: Django class-based views with multiple inline formsets by Kevin Dias.

It does not make sense to copy everything into here, but the example is with explanation and full model, view and template source code.

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

79150793

Date: 2024-11-02 13:46:57
Score: 5
Natty: 5.5
Report link

so....did it work?

Would be good to know...thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Josh

79150787

Date: 2024-11-02 13:44:56
Score: 2.5
Natty:
Report link

Add driver jar to bundle, where connection created, and in this bundle add values to "Import-Package" : javax.net and javax.sql

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