79107517

Date: 2024-10-20 16:32:06
Score: 1.5
Natty:
Report link
import random
import numpy as np

total_categorical["column"].fillna(lambda x: random.choice(total_categorical["column"].dropna().unique()), inplace =True)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sudheer Reddy Akki

79107514

Date: 2024-10-20 16:31:06
Score: 1.5
Natty:
Report link

You can either

  1. Create your own image
  2. Pull an alternative Image of the one you want to pull it Use can user this one:

docker pull chuanwen/cowsay

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

79107492

Date: 2024-10-20 16:10:02
Score: 1.5
Natty:
Report link

After making some changes to some of my tests, the tests started reproducing the issue. It was actually, a different call than I originally thought.

adding @Transaction to the doa entry solved the issue:

so it now looks like:

@Query("UPDATE cursor_position SET cursorPosition = :cursorPosition, cursorLength = :cursorLength WHERE documentId = :documentId")
@Transaction
abstract suspend fun updateCursorPosition(
    documentId: String,
    cursorPosition: Int,
    cursorLength: Int
): Int
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Transaction
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: johngray1965

79107487

Date: 2024-10-20 16:08:02
Score: 1
Natty:
Report link

Try to fix by adding some top spacing using the scroll-margin-top property in your CSS.

h2 {
  scroll-margin-top: 70px; /* you can adjust the 70px if you need more or less space. */
}

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

79107476

Date: 2024-10-20 16:03:00
Score: 4
Natty:
Report link

Please take a look at this flow diagram for your reference , this is what we are trying to achieve

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

79107468

Date: 2024-10-20 15:57:59
Score: 0.5
Natty:
Report link

Thanks Martin Smith, the answer was that my "apparently" system named constraints were not system_named anymore.

They had been recreated at some stage re-using the default constraint names initially system generated.

SELECT name, DC.is_system_named FROM sys.default_constraints DC WHERE name LIKE '%[__][0-9A-F][0-9A-F][0-9A-F][0-9A-F]%'

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Eric Mamet

79107465

Date: 2024-10-20 15:56:58
Score: 1.5
Natty:
Report link

When I moved the GoogleService-Info file into Android Studio it converted it into a plain text file which turned out to not work even when I added it with Xcode. I re-downloaded it and then added it with Xcode and it worked fine.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: buckleyJohnson

79107462

Date: 2024-10-20 15:55:58
Score: 5.5
Natty:
Report link

I am also getting this issue. Here is my compile output. Please help me to fix this issue.

20:47:28: Running steps for project qtservice... 20:47:28: Configuration unchanged, skipping qmake step. 20:47:28: Starting: "C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe" cd examples\ && ( if not exist Makefile E:\C_Drive\QT5.15.2\5.15.2\msvc2015_64\bin\qmake.exe -o Makefile "D:\Work\Work_Qt_old\Qt-116\Qt116 Service\qtservice\examples\exam ples.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile cd interactive\ && ( if not exist Makefile E:\C_Drive\QT5.15.2\5.15.2\msvc2015_64\bin\qmake.exe -o Makefile "D:\Work\Work_Qt_old\Qt-116\Qt116 Service\qtservice\examples\interactive\interactive.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile.Debug link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\interactive.exe @C:\Users\Sikander_PC\AppData\Local\Temp\interactive.exe.748.0.jom LINK : fatal error LNK1181: cannot open input file 'debug\main.obj' jom: D:\Qt_builds\qtservice-Debug\examples\interactive\Makefile.Debug [debug\interactive.exe] Error 1181 jom: D:\Qt_builds\qtservice-Debug\examples\interactive\Makefile [debug] Error 2 jom: D:\Qt_builds\qtservice-Debug\examples\Makefile [sub-interactive-make_first] Error 2 cd server\ && ( if not exist Makefile E:\C_Drive\QT5.15.2\5.15.2\msvc2015_64\bin\qmake.exe -o Makefile "D:\Work\Work_Qt_old\Qt-116\Qt116 Service\qtservice\examples\server\server.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile.Debug link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\httpservice.exe @C:\Users\Sikander_PC\AppData\Local\Temp\httpservice.exe.8736.15.jom cd controller\ && ( if not exist Makefile E:\C_Drive\QT5.15.2\5.15.2\msvc2015_64\bin\qmake.exe -o Makefile "D:\Work\Work_Qt_old\Qt-116\Qt116 Service\qtservice\examples\controller\controller.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe -f Makefile.Debug link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\controller.exe @C:\Users\Sikander_PC\AppData\Local\Temp\controller.exe.9244.15.jom LINK : fatal error LNK1181: cannot open input file 'debug\main.obj' jom: D:\Qt_builds\qtservice-Debug\examples\server\Makefile.Debug [debug\httpservice.exe] Error 1181 jom: D:\Qt_builds\qtservice-Debug\examples\server\Makefile [debug] Error 2 LINK : fatal error LNK1181: cannot open input file 'debug\main.obj' jom: D:\Qt_builds\qtservice-Debug\examples\controller\Makefile.Debug [debug\controller.exe] Error 1181 jom: D:\Qt_builds\qtservice-Debug\examples\Makefile [sub-server-make_first] Error 2 jom: D:\Qt_builds\qtservice-Debug\examples\controller\Makefile [debug] Error 2 jom: D:\Qt_builds\qtservice-Debug\examples\Makefile [sub-controller-make_first] Error 2 jom: D:\Qt_builds\qtservice-Debug\Makefile [sub-examples-make_first-ordered] Error 2 20:47:29: The process "C:\Qt\qtcreator-4.6.0-rc1\bin\jom.exe" exited with code 2. Error while building/deploying project qtservice (kit: QT5.15.2MSVC15_64) When executing step "Make" 20:47:29: Elapsed time: 00:00.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): help me to fix
  • RegEx Blacklisted phrase (3): Please help me to fix this
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sikander Rafiq

79107461

Date: 2024-10-20 15:54:55
Score: 6 🚩
Natty:
Report link

Did you ever find a solution?

So far I only got it to work partially. According to this article using a policies.json file would be a somewhat straight forward way to enable the extensions out of the box.

It does indeed work if I install firefox through a linux distributions package manager - it sadly doe not work out of the box when installing firefox as flatpak. So far I tested it for Ubuntu and AlmaLinux. No clue about Windows - haven't tried that so far.

In both cases the installed theme is however sometimes picked up and sometimes not - still trying to figure out why that is happening.

Reasons:
  • Blacklisted phrase (1): this article
  • RegEx Blacklisted phrase (3): Did you ever find a solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: philnewm

79107446

Date: 2024-10-20 15:46:53
Score: 3.5
Natty:
Report link

Wait till emulator loads completely

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

79107445

Date: 2024-10-20 15:45:53
Score: 0.5
Natty:
Report link

One way is to wrap it in a tag, for example div(accordion()), div(accordion(accordion_panel(title = "testing"))

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

79107436

Date: 2024-10-20 15:41:52
Score: 2.5
Natty:
Report link

Android Studio Ladybug | 2024.2.1 Patch 1

Right click on the bar below menu bar

You will find out all loving things

I did hate the new UI until I found them 😂

enter image description here

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

79107425

Date: 2024-10-20 15:34:50
Score: 2
Natty:
Report link

I had a similar problem when opening a virtual environment on my PC. The solution for me was to ensure that only one Python variable exists in the PC's path. PS: make sure it's the newest one (: Hope it'll help, good luck!

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

79107403

Date: 2024-10-20 15:28:49
Score: 1.5
Natty:
Report link

I didn't watch the video but the one thing I noticed in your code is how you handle the data from the input in the first function. When you get the number of fractions from input(), it’s coming in as a string, so that’s why the loop isn’t working right. You need to convert it to an integer, otherwise, the while loop gets confused because you're comparing a string to a number, which won’t work properly.

fractions = int(fractions)

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

79107397

Date: 2024-10-20 15:24:48
Score: 2.5
Natty:
Report link

My phone is Samsing A3460, it can't work with type-c to type-c cable connect to Dell XPS15 9560 constantly. Sometimes works sometimes not. Instead, I use any of Type-A to Type-C cable is working good.

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

79107389

Date: 2024-10-20 15:17:46
Score: 5
Natty:
Report link

I ran into this question. I'll answer it just in case others have the same issue. The parent remove() function has a void return type, and an override method must have the same signature as the overridden base method. This is why you are receiving this error.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nandhu Manoj Pillai

79107385

Date: 2024-10-20 15:14:44
Score: 1
Natty:
Report link

Module: A self-contained unit of code that can be independently developed and tested. Modules are often used to organize code within a larger application. Dependency: A piece of software that another piece of software relies on to function. Dependencies are often managed through package managers. Library: A collection of pre-written code that developers can use to optimize tasks. Libraries provide reusable functions and routines. Package: A bundle of code that includes modules, libraries, and other resources. Packages are distributed through package managers like npm or PyPI. Component: A reusable piece of a user interface in frameworks like React or Angular. Components encapsulate both logic and presentation.

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

79107382

Date: 2024-10-20 15:11:44
Score: 2.5
Natty:
Report link

run this command just replace the **

-"<"architecture>"-

** with your preferred one..

$env /usr/bin/arch -<architecture> /bin/zsh --login

For more Info read this articles

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AHMED ALFAIQ

79107379

Date: 2024-10-20 15:10:43
Score: 2
Natty:
Report link

I was having the same issue. The error was that I was running my HTML code with Live Server extension in VSCode. When the file is created, the entire folder is updated, and Live Server reloads the page, restarting the WebSocket connection. Saving the file in a folder outside the opened VSCode folder or opening the plain HTML file solved my problem.

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

79107378

Date: 2024-10-20 15:10:43
Score: 2.5
Natty:
Report link

This error was triggered because the specific service was not available in the mentioned region. It worked when i used another region

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

79107370

Date: 2024-10-20 15:06:43
Score: 1.5
Natty:
Report link

{"error":{"description":"The sharing link no longer exists, or you do not have permission to access it.","innerError":{"description":"The sharing link no longer exists, or you do not have permission to access it."},"loggableMessage":{"_value":"The sharing link no longer exists, or you do not have permission to access it.","_type":"unsafe","__isPrivacyDataWrapper":true},"name":"GraphError","correlationId":"03a7dc71-fccb-43e2-892b-3bc496a33f49","isExpected":false,"code":"accessDenied","extraData":{"apiEventName":"VroomDataRequest.item"},"response":{"error":{"code":"accessDenied","message":"The sharing link no longer exists, or you do not have permission to access it.","innerError":{"date":"2024-10-20T14:59:53","request-id":"03a7dc71-fccb-43e2-892b-3bc496a33f49","client-request-id":"03a7dc71-fccb-43e2-892b-3bc496a33f49"}}},"status":403,"serverStack":"","request":{},"error":{"description":"The sharing link no longer exists, or you do not have permission to access it."}}}

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BALLER UPDATES TV

79107368

Date: 2024-10-20 15:03:42
Score: 2
Natty:
Report link

SELECT current_year.category, CASE WHEN current_year.salesVolume > previous_year.salesVolume THEN 'TRUE' ELSE 'FALSE' END AS salesIncreasing FROM sales_data AS current_year JOIN sales_data AS previous_year ON current_year.category = previous_year.category AND current_year.year = previous_year.year + 1;

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

79107365

Date: 2024-10-20 15:00:41
Score: 2
Natty:
Report link

I am fascinated by the arena - and will throw my two cents in here for anyone who stumbles across this thread. I think AI/ML offers the potential to solve one of the most intractable problems along these lines. Not just some customer records with a few fields, but think about reconciling dozens or hundreds of hard drives, with millions of files, used by teams of hundreds of users sharing files back and forth (creating unnecessary duplicates in the process). How could we use AI to turn those millions of files into thoughtfully tagged/organized, indexed, culled and cleaned up into smaller groups, reducing storage, increasing accessibility and discoverability?

Current tools for de-duping focus on file sizes, modification dates, and some binary parity checking. What if AI looking inside these files could do image-image, content-content comparisons and assess which were newer, older, better, etc.

If such work and/or research exists, please point me in the right direction. If not and you have the skillset or interest in this area, I think there is a fundable startup in this, please get in touch.

Reasons:
  • RegEx Blacklisted phrase (1): I think there is a fundable startup in this, please
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nathon Gunn

79107358

Date: 2024-10-20 14:58:41
Score: 3
Natty:
Report link

This can be done using AJAX calls. You cannot track the progress of an AJAX call, so you'll have to break the zip into multiple (smaller) files, then call the files in sequence, updating your progress bar as you go.

This process (including a code example) can be found here: https://stackoverflow.com/a/8978468/27897211

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: waitwhat

79107357

Date: 2024-10-20 14:58:41
Score: 0.5
Natty:
Report link
Stacktrace:
#0 0x55cb638060aa <unknown>
#1 0x55cb6331d1a0 <unknown>
#2 0x55cb63369d06 <unknown>
#3 0x55cb63369fa1 <unknown>
#4 0x55cb633af344 <unknown>
#5 0x55cb6338ddad <unknown>
#6 0x55cb633ac866 <unknown>
#7 0x55cb6338db23 <unknown>
#8 0x55cb6335c990 <unknown>
#9 0x55cb6335d96e <unknown>
#10 0x55cb637d216b <unknown>
#11 0x55cb637d5f68 <unknown>
#12 0x55cb637bf64c <unknown>
#13 0x55cb637d6ae7 <unknown>
#14 0x55cb637a44af <unknown>
#15 0x55cb637f44f8 <unknown>
#16 0x55cb637f46c0 <unknown>
#17 0x55cb63804f26 <unknown>
#18 0x7f65a4ae8144 <unknown>

Getting this error now, fixed the one above...

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ben Bichler

79107354

Date: 2024-10-20 14:57:40
Score: 4
Natty:
Report link

seems I don't have enough credit to comment, now I try to answer. Thanks for Cory's answer, and that information could be found in "Dataset Format" section in VTK documentation: https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#dataset-format

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): to comment
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Guangpu Yi

79107344

Date: 2024-10-20 14:52:39
Score: 5
Natty:
Report link

how about this, "adb install -d" command does not work

adb install -d not work

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how
  • Low reputation (1):
Posted by: audient

79107338

Date: 2024-10-20 14:49:38
Score: 2
Natty:
Report link

It's probably "redirect_uri_mismatch" error. This happens when the redirect URI in your credentials doesn’t match what’s expected in the flow. After you authenticate, Google tries to redirect you, but if the URI doesn’t match, it gives you a 400 error, blocking the process.

Check this here

oAuth returning 400 bad request

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

79107308

Date: 2024-10-20 14:33:35
Score: 3
Natty:
Report link

Try to set the hx-encoding="multipart/form-data" in your view.

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

79107304

Date: 2024-10-20 14:30:35
Score: 3
Natty:
Report link

Run flutter clean && flutter pub get, Then run pod update or pod install --repo-update

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

79107297

Date: 2024-10-20 14:29:34
Score: 1
Natty:
Report link
repositories {
google()
mavenCentral()

maven {
setUrl("https://jitpack.io")
}


implementation ("com.github.yuyakaido:CardStackView:v2.3.4")

add mavan jitpack and implementation in the build.gradle it work for me
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Assavamet Patike

79107296

Date: 2024-10-20 14:27:34
Score: 4.5
Natty:
Report link

Neither of the solutions worked.

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

79107290

Date: 2024-10-20 14:25:33
Score: 2.5
Natty:
Report link

need not to do a lot of changes... check your schema registry is valid and recording in logs...if there is an issue in schema, just check all the exceptions case and it check the requirement of null or void...this should solve your problem

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

79107267

Date: 2024-10-20 14:15:31
Score: 1
Natty:
Report link

As others have mentioned, this can be fixed by using java 8. However, my android projects needs java 11. My solution was that anytime I need to use sdkmanager, I set JAVA_HOME to java 8. After I'm done with sdkmanager, I revert JAVA_HOME back to java 11.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: thebiggestlebowski

79107258

Date: 2024-10-20 14:13:31
Score: 1.5
Natty:
Report link

Do you need to solve the problem of finding the middle of the list in one pass when the number of elements is unknown in advance?

public static void main(String[] args) {

    var in = "0 1 2 3 4";
    var scan = new Scanner(in);
    var midAddress = -1;

    while(scan.hasNext()) {
        midAddress++;
        scan.next();
        if (!scan.hasNext()) break;
        scan.next();
    }

    System.out.println("Middle address: " + midAddress);
}
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Konstantin Makarov

79107256

Date: 2024-10-20 14:12:31
Score: 2
Natty:
Report link

It happened to me when I installed the extension from the .vsix file. After removing and installing it from the store, it started downloading some files from This Link, unzipped and installed them. Problem fixed.

Reasons:
  • Blacklisted phrase (1): This Link
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mohammad Kholghi

79107250

Date: 2024-10-20 14:10:30
Score: 2
Natty:
Report link
I am also facing the same error and this is how i solved this error I'll guide you guy's step by step 

Step 1: Add Reanimated's babel plugin
Add react-native-reanimated/plugin plugin to your babel.config.js.

  

    module.exports = {
    presets: [
      ... // don't add it here :)
    ],
    plugins: [
      ...
      'react-native-reanimated/plugin',
    ],
  };

Step 2: Wrap metro config with reanimated wrapper (recommended)

Wrap your existing Metro configuration in the metro.config.js file with the wrapWithReanimatedMetroConfig function.

like this:

    const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const {
  wrapWithReanimatedMetroConfig,
} = require('react-native-reanimated/metro-config');



Step 3: Clear Metro bundler cache (recommended)
npm start -- --reset-cache

these step are mandatory and also you can consider their official documentation here is the link:

https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#step-3-wrap-metro-config-with-reanimated-wrapper-recommended

After that you can check these things also that config or not in your project..

react-native-screens package requires one additional configuration step to properly work on Android devices. Edit MainActivity.kt or MainActivity.java file which is located under android/app/src/main/java/<your package name>/.

Add the highlighted code to the body of MainActivity class:

  

      class MainActivity: ReactActivity() {
  // ...
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(null)
  }
  // ...
}

and make sure to add the following import statement at the top of this file below your package statement:

    import android.os.Bundle;


Step 4: Create Two Files in the Root of Your Project Directory

To finalize the installation of react-native-gesture-handler, we need to conditionally import it. To do this, create 2 files:

1. gesture-handler.native.js
// Only import react-native-gesture-handler on native platforms

    import 'react-native-gesture-handler';


2. gesture-handler.js
Leave this file empty 

Now, add the following at the top (make sure it's at the top and there's nothing else before it) of your entry file, such as index.js or App.js:

    import './gesture-handler';


To resolve this error, I recommend consulting the React Navigation documentation. By carefully following each step, you can likely avoid encountering the same issue. I faced a similar challenge, but after creating a new React Native project and successfully implementing drawer navigation by thoroughly studying the documentation, everything started working perfectly.
Reasons:
  • Blacklisted phrase (1): here is the link
  • Whitelisted phrase (-2): i solved
  • RegEx Blacklisted phrase (1): I am also facing the same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am also facing the same error
  • Low reputation (1):
Posted by: Raman Malviya

79107245

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

I got this when I changed my environment by upgrading my NDK and SDK. I reverted back to ndk version 25.2.9519653 and the issue was fixed for me. I may also have reverted my sdk.

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

79107244

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

As your question looks like, it might be possible there is a path issue with the chiancode code. checked all the 5 required paths again, or you can increase the timeout duration in the docker-compose.yaml file. Please check logs of peers like docker logs peer0.org1.example.com.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Isha Padalia

79107243

Date: 2024-10-20 14:08:29
Score: 1
Natty:
Report link

Run npx expo run:android.

This will create an android folder. Open it in Android Studio.

Click on ≡ > Build > Select Build variant. Change active build variant to release.

Then again go to Build > Build app bundle/apk > APK.

Once Gradle finishes (it takes a while), locate the apk in android\app\build\outputs\apk\release.

Video link

Reasons:
  • Blacklisted phrase (1): Video link
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shub

79107238

Date: 2024-10-20 14:07:29
Score: 1
Natty:
Report link

In my opinion, this is the best way to get the day name

let date = new Date();
let today = date.toLocaleDateString('en-us', {'weekday' : 'long'})
console.log('Today : ', today)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mitesh vaghela

79107227

Date: 2024-10-20 14:03:28
Score: 2
Natty:
Report link

You understood correctly! In the Equal type, TypeScript compares the behaviors of the functions. The first function always returns 1, while the second only returns 1 for T = 1, so they're not equivalent, resulting in false. In FuncTest, both functions return compatible types, leading to true. Your grasp of structural typing is spot on!

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

79107208

Date: 2024-10-20 13:57:27
Score: 1
Natty:
Report link

There are some dependables that should be installed through the terminal before some of those icons can work.

Please check out the official document from the website. I hope it helps

https://docs.fontawesome.com/v5/web/use-with/react#_top[1]

2

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

79107200

Date: 2024-10-20 13:54:26
Score: 3
Natty:
Report link

You probably want to get the date based on your location date Test this, maybe you got the answer

user.LockoutEnd.Value.LocalDateTime

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

79107197

Date: 2024-10-20 13:51:26
Score: 3
Natty:
Report link

Check the stack trace in the exception object.

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

79107191

Date: 2024-10-20 13:50:25
Score: 1
Natty:
Report link

one approach is to to use grid to simulate wrap on the child element

.col3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vipul Dessai

79107186

Date: 2024-10-20 13:49:25
Score: 2.5
Natty:
Report link

I am use Parallels to do my user test for my code's binaries, both x64 and ARM64, for Windows and Linux. Parallels Desktop 20 provides a prepackaged VM for Linux that is bundled with Rosetta support. so that makes it really simple to get this going.

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

79107163

Date: 2024-10-20 13:37:20
Score: 12.5 🚩
Natty:
Report link

Did you found the solution i have same problem?

Reasons:
  • Blacklisted phrase (1): i have same problem
  • RegEx Blacklisted phrase (3): Did you found the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Muhammed Safwat

79107162

Date: 2024-10-20 13:36:20
Score: 1.5
Natty:
Report link

Hi just moved my library version libphonenumberAndroid = "8.12.14" to libphonenumberAndroid = "8.12.44" and its wrorking for me now .

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Najaf Ali

79107161

Date: 2024-10-20 13:36:20
Score: 3
Natty:
Report link

I use pinokio and whisper to translate audio to .srt directedly and it works almost perfectly.

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

79107159

Date: 2024-10-20 13:36:20
Score: 1.5
Natty:
Report link

This is a very helpful and neat solution. However, I can't get this to work with tables. I intend to take data frames and output a mark down report containing text and tables.

To do this my plan was to convert the spark DataFrame to a pandas DataFrame and then use the pandas to_markdown function to create table text and then use the above solution to output this into a Databricks cell. I.e.

md_table = pd.Series(["elk", "pig", "dog", "quetzal"], name="animal").to_markdown()
markdown = f'''{md_table}'''
Markdown(markdown)

However, this doesn't work and I get this output from the cell:

| | animal | |---:|:---------| | 0 | elk | | 1 | pig | | 2 | dog | | 3 | quetzal |

As you can see the output doesn't have carriage returns between the lines but adding them to the string doesn't work either.

Has anyone successfully rendered a pandas (or spark) DataFrame to markdown?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: David Regan

79107158

Date: 2024-10-20 13:35:20
Score: 1
Natty:
Report link

I think a simple solution would be as under:

.wrapper {
    font-size: 30px;
}
 <div class="wrapper">
    34&deg;<sup>C</sup>
 </div>

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

79107148

Date: 2024-10-20 13:30:18
Score: 2.5
Natty:
Report link

Closing and reopening the Unity editor works for me!

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sri-harish.k

79107143

Date: 2024-10-20 13:28:18
Score: 2
Natty:
Report link

Clean Flutter and try again!

flutter clean

flutter pub run flutter_launcher_icons:main
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zerom1412

79107140

Date: 2024-10-20 13:26:17
Score: 1
Natty:
Report link

I know i am too late to the party, but now you can directly use this API of ViewCompat to set the view as header.

ViewCompat.setAccessibilityHeading(view, true)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aashit Shah

79107128

Date: 2024-10-20 13:21:16
Score: 2
Natty:
Report link

To get the middle of an array you could just try accessing array[size/2]. If size is not even and you want to be sure to get the 'lowest' half or the 'highest' half. You could use the function ceil (The ceil() method rounds a number UP to the nearest integer) and floor (The floor() method rounds a number DOWN to the nearest integer) to access array[Math.floor(size/2)] or array[Math.ceil(size/2)]

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

79107125

Date: 2024-10-20 13:20:15
Score: 1
Natty:
Report link

The problem here is that the elements have a height of 0 pixels. This is also the reason why they are visible once you add text to them.

You can set the height of a normal line of text for the elements like this:

    header {
        background-color: green;
        width: 100%;
        height: 1em;
    }

Of course you can also set an absolute height using px or vh.

See a Codepen with multiple examples: https://codepen.io/konlanx/pen/LYwjxNN

You can also use your browsers developer tools by right-clicking your page and choosing "Inspect element". In this view you can highlight an element and investigate its properties in the "Layout" tab. Here you can see that your elements are being rendered, but have a height of 0 pixels.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Konlanx

79107119

Date: 2024-10-20 13:18:13
Score: 6 🚩
Natty: 5
Report link

I learned a lot from your answer. Is it possible to introduce me a practical book for learning UML in software modeling?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tony

79107096

Date: 2024-10-20 13:10:10
Score: 1
Natty:
Report link

If you print out the function env.step(action) then you'll see that you get 5 values

this is an example of the frozen lake environment:

(1, 0.0, False, False, {'prob': 0.3333333333333333})

So we have (new_sate,reward,done,truncated,info), just make sure to add "truncated" which by they way is a boolean since it indicates if the truncation condition has been satisfied outside of the MDP.

Hope this helps and here is a link that can help you understand these values further

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Filler text (0.5): 3333333333333333
  • Low reputation (1):
Posted by: 8b1t_gh05t

79107082

Date: 2024-10-20 13:00:08
Score: 1.5
Natty:
Report link

The Final Solution is

First Change the name of favicon.ico to icon.ico Then put the file into app folder

Reasons:
  • Whitelisted phrase (-1): Solution is
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MD. Iftekhar Alam Mitu

79107080

Date: 2024-10-20 13:00:08
Score: 1
Natty:
Report link

If you don't know its height for sure, set max height in modifier to Short.MAX_VALUE:

modifier = Modifier.heightIn(max = (Short.MAX_VALUE).toInt().dp)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyen Tien Dung

79107078

Date: 2024-10-20 12:59:08
Score: 2
Natty:
Report link

thanks for all helps, temporary i used this way just with change gr300 to any product code as i want or change to variable,good luck.

WITH RECURSIVE ctags AS (
SELECT
    id,
    producttitle,
    tags,
    productcode,
    instr(tags, ',') AS pos,
    substr(tags, 1, instr(tags, ',') - 1) AS tag_value,
    substr(tags, instr(tags, ',') + 1) AS rest
FROM
    tblproduct
WHERE
    productcode = 'gr300'

UNION ALL

SELECT
    id,
    producttitle,
    tags,
    productcode,
    instr(rest, ',') AS pos,
    CASE
        WHEN instr(rest, ',') = 0 THEN rest
        ELSE substr(rest, 1, instr(rest, ',') - 1)
    END AS tag_value,
    CASE
        WHEN instr(rest, ',') = 0 THEN ''
        ELSE substr(rest, instr(rest, ',') + 1)
    END AS rest
FROM
    ctags
WHERE
    rest <> ''
)

SELECT DISTINCT
    p.id,
    p.producttitle,
    p.productcode,
    p.tags
FROM
    tblproduct p
JOIN
    ctags t ON p.tags LIKE '%' || t.tag_value || '%' AND p.productcode <> 'gr300'
Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: persi

79107074

Date: 2024-10-20 12:56:07
Score: 3
Natty:
Report link

In my case, the problem was that Linux was trying to optimize file writing to the disk by writing them to RAM (so the RAM was used up not by my Java application). Therefore, I rewrote the solution so that it processes the file in a streaming manner instead of writing it to disk, and that helped.

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

79107054

Date: 2024-10-20 12:45:04
Score: 2
Natty:
Report link

instead of :

"justify-content:center; and align-content:center;"

do this instead,

"align-content:center; and text-align:center;"

I just had this same issue and came to this conclusion.

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

79107050

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

This may be a problem with a very slow internet connection. if you cannot change the network, try ti change the waiting time doing:

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

79107045

Date: 2024-10-20 12:41:03
Score: 2
Natty:
Report link

I suggest you run this command to check the IP address of the WSL

netsh interface ip show config

and then make sure that this is the IP address used in your DNS configuration you have in Windows.

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

79107043

Date: 2024-10-20 12:37:03
Score: 1.5
Natty:
Report link

Create and using stuff are different things might be you know that in a program. a large of set of instructions That program use algorithm framework programming language to the hardware or machine if also need if architecture or something change searching new ideas in internet of concept operating system or Linux if you want more because it Open source it's really nice out for learning in practical alot of things do. More info https://wiki.osdev.org

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

79107040

Date: 2024-10-20 12:36:03
Score: 2.5
Natty:
Report link

It was resolved by deleting the '[MY_USER].gradle\caches\8.7\groovy-dsl\8a1452873841172f5abf6c65b3637f25' folder.

Please refer to the blog below.

https://jiji-gilog.tistory.com/28

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 정지훈

79107036

Date: 2024-10-20 12:34:02
Score: 1
Natty:
Report link

The problem was with the .icns file itself. I had found a dummy icon somewhere on the web, and since it was created incorrectly, it caused this weird behavior.

Important

Make sure to create your .icns file correctly. When using an app to create a .icns file, you should start with a 1024x1024 PNG file to ensure everything looks sharp on Retina displays. If you somehow miss some icon dimensions, such as 64x64 or others, macOS will display blank icons instead of the missing ones.

There are many apps available on the web that can create .icns files for you. A few examples are iLove Icns Creator, Image2Icon, and many others, including command-line utilities.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vlad K.

79107034

Date: 2024-10-20 12:32:01
Score: 1.5
Natty:
Report link

I feel your pain. Hot reload was working beautifully in my .net maui app. I loved it. I was testing it as a Windows app. Then I decided to try out the android emulator and that worked fine except that it pointed out that I needed to add a maxwidth attribute to a label. I did that, did a rebuild, switched back to running as a windows app, and now hot reload no longer works. The flame icon is present (and lit) and clicking it does say that code changes were applied successfully, but the app does not show my xaml view changes.
Very frustrating.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gus V

79107031

Date: 2024-10-20 12:31:01
Score: 2
Natty:
Report link

cd.. takes you back to the previous folder/directory in command prompt (cmd).

Example.

If you cd into an arcade_games folder by typing: cd pc/user/games/arcade_games

Just typing cd.. takes you back to pc/user/games Just typing cd.. again takes you back to pc/user

Hope you find this helpful 😉😊

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

79107028

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

I was experiencing the same issue but resolved it when I ran the broker on KRaft and not Zookeeper.

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

79107025

Date: 2024-10-20 12:27:00
Score: 1
Natty:
Report link

I solved the problem by upgrading the version of electron from 31.0.2 to latest (now it's 33.0.1).

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aytuğ Ulış

79107022

Date: 2024-10-20 12:23:59
Score: 5
Natty:
Report link

I have this problem too and use this and it working for me, you can try it : https://github.com/expo/expo/issues/18150

Reasons:
  • Blacklisted phrase (1): I have this problem
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: shayan farshad

79107010

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

Solution. If Resource.Designer.cs isn't updating with definitions, right-click on your resx file and select Run Custom Tool.

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

79107008

Date: 2024-10-20 12:15:57
Score: 0.5
Natty:
Report link

As @eli-k suggested, I'm posting conclusions of my analysis. So, the main problem is pretty general - Excel can make troubles if there are many cell styles created. The solution - however a bit twisted - is to 'auto'-detect unique/duplicated styles and reduce the total number of them.

Steps of code:

  1. Iterate over all given cells.
  2. Regarding merged cells - analyze only the first one.
  3. Create an array that stores - selected by a user - properties of cell formatting.
  4. Convert all array values to string.
  5. Using any macro from here: hashing in VBA, convert array string to hash. This step is crucial for this code, because it creates unique style names as strings, so in fact combines values of various types (stored in array) into one. It also prevents from exceeding 255 characters limit.
  6. Check if a style of this hash exists. If no - add it as a new cell style.
  7. No matter if style already exists or not - apply style to analyzed cell.

Code:

Sub createApplyUniqueCellStyles( _
  rng As Range _
)

  'turning off ScreenUpdating and alerts
  With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
  End With
  
  'Workbook variable
  Dim wb As Workbook
  Set wb = rng.Worksheet.Parent

  Dim cll As Range
  Dim rngToAnalyze As Range

  'arrays for formatting values
  'before running this macro, consider properties and total number of properties to identify unique styles from
  Dim arrStyleProperties(1 To 27) As Variant
  Dim arrStylePropertiesToString(1 To 27) As String
  Dim i As Long
  
  Static lngNewStylesCount As Long

  For Each cll In rng
    
    'skipping merged cells - except the first one
    If cll.MergeCells Then
      Set rngToAnalyze = cll.MergeArea

      If Not cll.Address = rngToAnalyze.Cells(1, 1).Address Then
        GoTo nextIteration
      End If

    Else
      Set rngToAnalyze = cll
    End If
    
    With rngToAnalyze

      'numbers format
      arrStyleProperties(1) = .NumberFormat

      'font
      With .Font
        arrStyleProperties(2) = .Name
        arrStyleProperties(3) = .FontStyle
        arrStyleProperties(4) = .Size
        arrStyleProperties(5) = .Color
        arrStyleProperties(6) = .Bold
        arrStyleProperties(7) = .Italic
        arrStyleProperties(8) = .Underline
      End With

      'alignment
      arrStyleProperties(9) = .HorizontalAlignment
      arrStyleProperties(10) = .VerticalAlignment

      'text wrapping
      arrStyleProperties(11) = .WrapText

      'merge
      arrStyleProperties(12) = .MergeCells

      'cell interior
      With .Interior
        arrStyleProperties(13) = .Color
        arrStyleProperties(14) = .Pattern
        arrStyleProperties(15) = .PatternColorIndex
      End With

      'borders
      'left
      With .Borders(xlLeft)
        arrStyleProperties(16) = .LineStyle
        arrStyleProperties(17) = .Color
        arrStyleProperties(18) = .Weight
      End With

      'right
      With .Borders(xlRight)
        arrStyleProperties(19) = .LineStyle
        arrStyleProperties(20) = .Color
        arrStyleProperties(21) = .Weight
      End With

      'top
      With .Borders(xlTop)
        arrStyleProperties(22) = .LineStyle
        arrStyleProperties(23) = .Color
        arrStyleProperties(24) = .Weight
      End With

      'bottom
      With .Borders(xlBottom)
        arrStyleProperties(25) = .LineStyle
        arrStyleProperties(26) = .Color
        arrStyleProperties(27) = .Weight
      End With

    End With

    'array values to text
    For i = 1 To 27
      If IsNull(arrStyleProperties(i)) Then
        'CStr() doesn't convert Nulls
        arrStylePropertiesToString(i) = "Null"
      Else
        arrStylePropertiesToString(i) = CStr(arrStyleProperties(i))
      End If
    Next i

    Dim strArrJoined As String
    Dim strArrJoinedMD5StyleName As String
    'array string
    strArrJoined = Join(arrStylePropertiesToString, "_")
    'array string hash
    strArrJoinedMD5StyleName = MD5(strArrJoined)

    Dim stl As Style
    On Error Resume Next
    Set stl = wb.Styles(strArrJoinedMD5StyleName)
    On Error GoTo 0

    If stl Is Nothing Then
      'style not exists - add
      Set stl = wb.Styles.Add(strArrJoinedMD5StyleName, rngToAnalyze)

    End If
    
    'apply the style
    rngToAnalyze.Style = strArrJoinedMD5StyleName
   
    'release and erase
    Set stl = Nothing
    Erase arrStyleProperties
    Erase arrStylePropertiesToString

nextIteration:
  Next cll

  Set wb = Nothing
  Set cll = Nothing
  Set rng = Nothing
  Set rngToAnalyze = Nothing
  Erase arrStyleProperties
  Erase arrStylePropertiesToString
  Set stl = Nothing

End Sub

'https://en.wikibooks.org/wiki/Visual_Basic_for_Applications/String_Hashing_in_VBA
Function MD5(ByVal sIn As String, Optional bB64 As Boolean = 0) As String
  'Set a reference to mscorlib 4.0 64-bit
  'Check that Net Framework 3.5 (includes .Net 2 and .Net 3 is installed in windows
  'and not just Net Advanced Services
      
  'Test with empty string input:
  'Hex:   d41d8cd98f00...etc
  'Base-64: 1B2M2Y8Asg...etc
      
  Dim oT As Object, oMD5 As Object
  Dim TextToHash() As Byte
  Dim bytes() As Byte
      
  Set oT = CreateObject("System.Text.UTF8Encoding")
  Set oMD5 = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider")
  
  TextToHash = oT.Getbytes_4(sIn)
  bytes = oMD5.ComputeHash_2((TextToHash))
  
  If bB64 = True Then
    MD5 = ConvToBase64String(bytes)
  Else
    MD5 = ConvToHexString(bytes)
  End If
      
  Set oT = Nothing
  Set oMD5 = Nothing

End Function

Function ConvToBase64String(vIn As Variant) As Variant
  'Check that Net Framework 3.5 (includes .Net 2 and .Net 3 is installed in windows
  'and not just Net Advanced Services
   
  Dim oD As Object
  Set oD = CreateObject("MSXML2.DOMDocument")
   
  With oD
    .LoadXML "<root />"
    .DocumentElement.DataType = "bin.base64"
    .DocumentElement.nodeTypedValue = vIn
  End With
  
  ConvToBase64String = Replace(oD.DocumentElement.Text, vbLf, "")
    
  Set oD = Nothing

End Function

Function ConvToHexString(vIn As Variant) As Variant
  'Check that Net Framework 3.5 (includes .Net 2 and .Net 3 is installed in windows
  'and not just Net Advanced Services
  
  Dim oD As Object
  Set oD = CreateObject("MSXML2.DOMDocument")
      
  With oD
    .LoadXML "<root />"
    .DocumentElement.DataType = "bin.Hex"
    .DocumentElement.nodeTypedValue = vIn
  End With
  
  ConvToHexString = Replace(oD.DocumentElement.Text, vbLf, "")
    
  Set oD = Nothing

End Function

Concerning 5th step there are a couple of remarks:

  1. Hash functions are not used for security, but uniqueness identification. Choose a function that suits you best. I used MD5 because it's the simplest.
  2. Bear in mind that style name can be 255 characters long.
  3. As Wikibooks article states, for Windows 10+ it's necessary to install Net Framework 3.5.
  4. Consider converting hash string to base64. I chose not to convert, to avoid getting any potentially forbidden characters.

The code above can be used to reduce number of styles for any spreadsheet. However, code can take a lot of time to execute because it iterates over each cell from given range.

In the end, as it's SPSS-related question, I would recommend to delete all unused styles. Thankfully, SPSS styles have the same structure of name - style#*. Here's the code:

Sub deleteSPSSCellStyles()

  'turning off ScreenUpdating and alerts
  With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
  End With
  
  'Workbook variable
  Dim wb As Workbook
  Set wb = ThisWorkbook

  Dim stl As Style
  Dim strStyleName As String

  For Each stl In wb.Styles
    'no need to analyze built-in styles
    If Not stl.BuiltIn Then
      strStyleName = stl.Name
      If strStyleName Like "style#*" Then
        stl.Delete
      End If
    End If
  Next stl

  Set wb = Nothing
  Set stl = Nothing

End Sub
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @eli-k
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Soren V. Raben

79107006

Date: 2024-10-20 12:15:57
Score: 1
Natty:
Report link

I might be missing something, but doesn't this do what you need ?

import { useEffect, useState } from 'react';

const mockColors = ['white', 'blue', 'yellow', 'green', 'orange', 'purple'];

function App() {
  
const [search, setSearch] = useState('');

const handleInputChange = (e) => {
    setSearch(e.target.value);
};
  
const resultantColors = useMemo(() => {
    if (search == '') {
        return mockColors;
    } else {
        return mockColors.filter((color) =>
            color.toLowerCase().includes(search.toLowerCase())
        );
    }
 }, [search]);

return (
    <div style={{ border: '1px solid blue', padding: 20, margin: 20 }}>
      Filter Example with UseEffect <br />
      <label htmlFor="colors">Filter Color:</label>
      <input
          type="search"
          name="search"
          value={search}
          id="colors"
          onChange={(e) => {
              handleInputChange(e);
          }}
          placeholder="filter colors"
      />
      {resultantColors.length > 0 ? (
           resultantColors.map((value, index) => (
              <>
                  <li key={`${value} + ${index}`}>{value}</li>
              </>
           ))
       ) : (
            <p>No items - search existing value </p>
       )}
</div>
  );
}

export default App;

I moved the constants for mockColors outside of the App declaration. You should also look at debouncing the change of the search value so that it doesn't cause the memoized collars to change as frequently. There are lots of examples on SO, for example this one: https://stackoverflow.com/a/24004942/23356563

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: luptonn

79107000

Date: 2024-10-20 12:13:57
Score: 1
Natty:
Report link

You can increase message size by using max_frame_Size.

Sample:

async fn handle_ws(req: HttpRequest, stream: web::Payload) -> Result<HttpResponse, Error> {
    let (res, session, msg_stream) = actix_ws::handle(&req, stream)?;
    let msg_stream = msg_stream.max_frame_size(1024 * 1024 * 10);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nguyen Hien

79106996

Date: 2024-10-20 12:11:56
Score: 1
Natty:
Report link

A similar command to cat for displaying a file contents but does not specify the count rather it displays the contents of the file by the page view of the window screen.
less filename more filename

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

79106994

Date: 2024-10-20 12:09:56
Score: 0.5
Natty:
Report link

vagrant@manager:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:06:38:eb brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0 valid_lft 84465sec preferred_lft 84465sec inet6 fe80::a00:27ff:fe06:38eb/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:39:27:f1 brd ff:ff:ff:ff:ff:ff inet 192.168.56.7/24 brd 192.168.56.255 scope global dynamic eth1 valid_lft 465sec preferred_lft 465sec inet6 fe80::a00:27ff:fe39:27f1/64 scope link valid_lft forever preferred_lft forever

this generated: docker swarm join --token SWMTKN-1-35q9xg25chynpxgljdyzd65yjggbe38s5j3kydto6vp6m341fk-cisjtrbdk3mtwgcgxrdywdeng 10.0.2.15:2377 --advertise-addr 10.0.2.15

error: Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 10.0.2.15:2377: connect: connection refused"

so i changed the 10.0.2.15:2377(eth0) to 192.168.56.7(eth1) ip address and tried to connect it as:

docker swarm join --token SWMTKN-1-35q9xg25chynpxgljdyzd65yjggbe38s5j3kydto6vp6m341fk-cisjtrbdk3mtwgcgxrdywdeng 192.168.56.7:2377 --ad vertise-addr 10.0.2.15

and connection became success.

seems like the manager node eth0 ip address didn't worked out for swarn node connectivity.

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

79106991

Date: 2024-10-20 12:09:56
Score: 0.5
Natty:
Report link

Try this. Using for /r to iterate through all subdirectories and then Using %%~nxI to get the name and extension of the file.

set "folder=C:\stackoverflow\"

cd /d "%folder%"

setlocal enabledelayedexpansion

set "pattern=-"

set "replace=_"

for /r %%I in (*.txt) do (
    set "file=%%~nxI"
    ren "%%I" "!file:%pattern%=%replace%!"
)

endlocal
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): Try this
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ashish

79106988

Date: 2024-10-20 12:08:56
Score: 2
Natty:
Report link

str_input = input('Enter your grade: ') nilai = int(str_input)

if nilai == 100: print("perfect")

elif nilai >= 85: print("awesome")

elif nilai >= 65: print("passed the exam")

if nilai <= 70: print("but you need to improve it!")

else: print("with ok grade")

else: print("below the passing grade")

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

79106954

Date: 2024-10-20 11:45:52
Score: 4
Natty:
Report link

Thank you all for the suggestions! adding -static to the second command solved the problem.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MaaaaathiiiiiiiiiiEU

79106952

Date: 2024-10-20 11:44:51
Score: 1
Natty:
Report link

after vue V 3.4 use insted defineModel

enter code here
<script setup>
const title = defineModel('title')
</script

<template>
  <input type="text" v-model="title" />
</template>
 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2779200

79106943

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

Divider is like a border, it should work like this:

<Divider sx={{ borderColor: "your-color" }} />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: yns

79106942

Date: 2024-10-20 11:41:51
Score: 1
Natty:
Report link

Thanks DocAmx for your answer.

I managed to fix my issue by using the following code. The key to my issue was creating a new image object and assigning the imported image as the source. This fixed the null reference error I was getting when Fabic was trying to read the image details:

const testImgObj = new Image(500, 400)
testImgObj.src = selectedMerch.images[0].images[0].name;
const backImg = new FabricImage(testImgObj, {
    left: 0,
    top: 0,
    height: 500,
    width: 600,
    selectable: false,
    hasControls: false,
    hasBorders: false,
    cornerStrokeColor: "#ff0098"
});
canvas.add(backImg);
canvas.setActiveObject(backImg);
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rob Hedley

79106940

Date: 2024-10-20 11:40:50
Score: 1
Natty:
Report link

First, verify that you can see your user created in IAM identity center. I have created one user named "pachispachis". I suggest you add it to an user group for administrators.

User details in IAM identity center

After that, head over to permission sets (under Multi-account permissions), verify there is an administrator access permission set created. After that, head over to AWS accounts (under multi-account permissions) and SELECT the AWS account you are giving access to, and click on "Assign users or groups".

enter image description here

After that, it will ask you to select users and groups to give access to the account, you add the user or the group where you user is (in case you added your user to a group). You will then be asked to select the permissions sets associated to that user/group:

enter image description here

Go ahead and review and submit it. It might take a few minutes for your user to get access to the account (see it in the aws portal access). Verify the user has access under "Users" section (in IAM identity center).

enter image description here

Let me know if that works and/or if other issues ocurr.

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Francisco Parrilla

79106935

Date: 2024-10-20 11:37:49
Score: 0.5
Natty:
Report link

Seems like I could solve as following.

incoming_message     = request.form["Body"]

p = re.search('!(.*):', incoming_message)
# get extracted phone and replace + if available
whatsapp_to          = p.group(1)
whatsapp_to          = whatsapp_to.replace("%2B", "")
whatsapp_to          = re.sub("[+$@&%{}:=!]","",whatsapp_to)

m = re.search('%(.*)=', incoming_message)
# get extracted message and remove unwanted characters
extract_message      = m.group(1)
body_message         = re.sub("[+$@&%{}:=!]"," ",extract_message)
clean_message        = body_message.rstrip('%0A')
clean_message        = clean_message.replace(" 3A", ":")
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christian Listl

79106934

Date: 2024-10-20 11:37:49
Score: 2
Natty:
Report link

I had already encountered this problem in one of my projects, with a simple search. I think do a Google search if it doesn't work, let's talk, I don't want to limit your mind In the words of a great man in our company, search Haji

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

79106899

Date: 2024-10-20 11:14:45
Score: 1
Natty:
Report link

You can use this tool in which a *.pdf can be imported as a background along with 5 *.txt files for the data https://sourceforge.net/projects/vdprocessor/

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Xlance

79106888

Date: 2024-10-20 11:08:43
Score: 5
Natty: 5
Report link

for http requests , can it be used to determine that there are non zero number of bytes present in the input stream ?

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

79106885

Date: 2024-10-20 11:07:42
Score: 3.5
Natty:
Report link

Found a solution in here:

Using DatabaseWrapper

This solution seems to reduce the overhead.

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

79106877

Date: 2024-10-20 10:57:40
Score: 4.5
Natty: 6.5
Report link

yoo no way fellow FIITkar? //////

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TenToTu

79106867

Date: 2024-10-20 10:51:36
Score: 6.5 🚩
Natty: 6
Report link

thanks for sharing, trying the same on digitalocean but unfortunately cannot get it working.

How did you specify the apisix configmap? On the dataPlane or ingressController with/without "extraConfig"?

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: FatTony

79106859

Date: 2024-10-20 10:44:35
Score: 1
Natty:
Report link

I created Azure Wordpress app service using Azure default Wordpress template by following Ms Doc.

Thanks @Sina Salam for clear steps to change the file permissions in WordPress on Azure App Services.

I opened the kudu console by using below URL.

https://<AzureWordpressWebAppName>.scm.centralus-01.azurewebsites.net/

After that I clicked on the Bash and followed below steps.

chmod 755 /home/site/wwwroot/<DirectoryName>
chmod 644 /home/site/wwwroot/<FileName>

I ran the command below to see if the permissions changed.

ls -ld /home/site/wwwroot/<DirectoryName>
ls -ld /home/site/wwwroot/<FileName>

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @for
  • Low reputation (0.5):
Posted by: Aslesha Kantamsetti

79106858

Date: 2024-10-20 10:44:35
Score: 3
Natty:
Report link

Turn off Vim Mode from Xcode

Xcode > Editor > Uncheck Vim Mode

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

79106857

Date: 2024-10-20 10:42:34
Score: 1
Natty:
Report link

To reduce build times in your Compose Multiplatform project, try these steps:

  1. Enable the K2 Compiler: Add this to your gradle.properties file to enable Kotlin’s new compiler, which can improve build speed:

kotlin.experimental.tryK2=true

  1. Optimize Gradle Settings:

Enable Gradle's configuration cache:

org.gradle.unsafe.configuration-cache=true

Enable parallel execution:

org.gradle.parallel=true

Enable incremental compilation:

kotlin.incremental=true

  1. Update Android Gradle Plugin: If you're getting warnings, upgrade to the latest version of the Android Gradle plugin in your build.gradle file:

classpath 'com.android.tools.build:gradle:'

  1. Fix Warnings: The build warnings you’re seeing might be slowing down the process. Try to resolve them, especially any related to deprecations or plugin issues.

  2. Build for Specific iOS Targets: Instead of building for all iOS architectures (Arm64, X64, etc.) at once, build only for the one you're testing (e.g., just for the simulator).

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

79106853

Date: 2024-10-20 10:41:34
Score: 4.5
Natty: 6
Report link

I also had the same problem. Use this plugin. It works https://github.com/File5/intellij-idea-guidesigner-plugin

Reasons:
  • Blacklisted phrase (1): this plugin
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Martin D

79106851

Date: 2024-10-20 10:39:33
Score: 2
Natty:
Report link

I had to use files for session to make it works.

in .env file :

SESSION_DRIVER=file

instead of

SESSION_DRIVER=database

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Jean François Manatane

79106841

Date: 2024-10-20 10:35:32
Score: 4
Natty: 6.5
Report link

Thanks, this worked for me. I am just wondering, how can I convert the bold Unicode characters to normal text? so that when I get the header text of the item, I want to convert the text back to its normal text and not the bolded characters. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): how can I
  • Whitelisted phrase (-1): this worked for me
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Roderick Latoza