79513419

Date: 2025-03-17 00:19:46
Score: 2
Natty:
Report link

I tried this solution and found it works:
Go to the control panel => Programs => the section of "Uninstall a program"
Then right click on (MySQL Workbench) app, and select "Repair".

After repairing, you should run Workbench without facing the problem.

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

79513403

Date: 2025-03-17 00:01:43
Score: 3.5
Natty:
Report link

This thread is probably dead, but I was wondering if it's possible to read block attributes from win32com. I tried everything and nothing works so far.
The only way I found to be able to insert a block and change its attributes is to use win32com for insertion and comtypes for reading/changing the attributes, all in the same script which is not the best option I know.

Reasons:
  • Blacklisted phrase (2): was wondering
  • No code block (0.5):
  • Low reputation (1):
Posted by: P.Viau

79513393

Date: 2025-03-16 23:54:41
Score: 0.5
Natty:
Report link

If you're experiencing issues with scripts or styles not loading in Laravel Livewire, running php artisan livewire:publish --all can help. This command publishes the configuration to config/livewire.php and assets to public/livewire/, allowing you to serve files locally instead of relying on the CDN. It helped me fix a production issue where Livewire scripts weren’t loading properly.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bonestorm

79513392

Date: 2025-03-16 23:54:41
Score: 2.5
Natty:
Report link

Try to change "@sentry/react-native/expo" to "@sentry/react-native" in app.json

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Charfeddine Mohamed Ali

79513382

Date: 2025-03-16 23:37:39
Score: 2.5
Natty:
Report link

Not to put too fine a point on it, but the color 8 in PDCurses, by default, is the same as A_BLACK | A_BOLD (as a foreground color -- it'd be A_BLACK | A_BLINK as a background color). This goes back to the behavior of ancient PC video cards in text mode. You can decouple the colors from the A_BOLD attribute by calling "PDC_set_bold(TRUE)"; however, in that case, you still wouldn't get light black from the above code. Can you see why?

Reasons:
  • Blacklisted phrase (0.5): why?
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: William McBrine

79513379

Date: 2025-03-16 23:29:38
Score: 0.5
Natty:
Report link

I tried a lot of suggestions but this one really worked!! For this we need to import the Dimensions component from react-native.

import { Dimensions } from 'react-native';

Store the height and width dimensions of the screen into variables:

const screenHeight = Dimensions.get('window').height;
const screenWidth = Dimensions.get('window').width;

Then set the height and width of the background image to the value of those variables:

<ImageBackground
        source={{
          uri: 'example.png',
        }}
        style={{
          height: screenHeight,
          width: screenWidth,
        }} >
 // Other components
</ImageBackground>

You can refer to https://www.geeksforgeeks.org/how-to-set-background-image-in-react-native/

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

79513375

Date: 2025-03-16 23:26:37
Score: 0.5
Natty:
Report link

I believe when ringbuffering you should use ID3D12CommandQueue::Wait to ensure there are no write-after-write hazards, even when you are only writing from a single queue.

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

79513369

Date: 2025-03-16 23:18:35
Score: 1.5
Natty:
Report link

With Fuego (paid), you can import and export data in CSV, JSON, and JSONL formats.

But more importantly, you can move or copy documents between different projects and databases without needing to go through an import/export process.

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

79513364

Date: 2025-03-16 23:17:35
Score: 1
Natty:
Report link

It is not possible. Do not mix APIs.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Preston PHX

79513359

Date: 2025-03-16 23:08:33
Score: 3
Natty:
Report link

For me delete the bin and obj folders was enough.

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

79513354

Date: 2025-03-16 23:05:33
Score: 0.5
Natty:
Report link

As of v1.5 (early 2023), a number of these answers are outdated.

You can now provide multiple IDs for install, uninstall, and upgrade.

Example:

winget install Microsoft.VisualStudioCode Microsoft.WindowsTerminal Spotify.Spotify
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: itsmejoeeey

79513348

Date: 2025-03-16 22:57:31
Score: 1
Natty:
Report link

Found the error, was treating all nodes the same even though the struct has an enum.

typedef struct ast {
  node_t type;
  union {
    struct {
      struct ast *node_l;
      struct ast *node_r;
    };
    char *value;
  };
} ast_t;

So,when the eval function reached a leaf node it was trying to access a string rather than a pointer to another node. Fix it by handling the eval function better.

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

79513345

Date: 2025-03-16 22:56:30
Score: 1
Natty:
Report link

Came here nine years later looking for a way to overlay two legend symbols for plotting confidence intervals as well, namely twoway line and twoway rarea. This will not work for twoway rcap , but it does what I needed it to do:

Line graph with `rarea` type confidence intervals

sysuse auto.dta, clear

gen id = _n
gen price_h = price + 2000
gen price_l = price - 2000

twoway (scatter price id if id == 0, connect(line) lcolor(edkblue%30) lwidth(vvvthick) msymbol(|) msangle(90) msize(13)) (line price id, color(edkblue)) (rarea price_h price_l id, color(edkblue%30) lwidth(0)), legend(on order(1 "Mean with confidence interval"))
Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moritz Poll

79513342

Date: 2025-03-16 22:52:30
Score: 1.5
Natty:
Report link

Tried all solutions in posts, they all failed separately. But the following combination worked finally:
Close all tabs > Clean solution > Close VS > Delete bin and obj folders in project > Open Vs > Build solution.

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

79513340

Date: 2025-03-16 22:51:30
Score: 1
Natty:
Report link

Solution to MySQL Connector Issue with Python

After spending hours troubleshooting, I finally found the solution to my problem. I'm sharing it here so that others facing the same issue can benefit.

Step 1: Modify the Connection String

Try adding use_pure=True to your MySQL connection string:

import mysql.connector

conn = mysql.connector.connect(
    host="your_host",
    user="your_user",
    password="your_password",
    database="your_database",
    use_pure=True
)

If this resolves the issue, read on for an explanation.

Why Does This Work?

By default, MySQL Connector/Python attempts to use the C extension libmysqlclient for better performance. However, in some cases—especially on certain platforms or specific Python environments—the C extension may not function correctly due to:

Setting use_pure=True forces MySQL Connector/Python to use its pure Python implementation instead of the C extension, bypassing any related issues.

For further details, follow the official MySQL Connector/Python documentation: MySQL Connector/Python Connection Arguments.

Alternative Solution: Install libmysqlclient

If you prefer to use the C extension, ensure libmysqlclient is installed and accessible:

  1. Download libmysqlclient from this offical link.
  2. Add the library path to your system's PATH environment variable.
  3. Check if libmysqlclient already exists in your MySQL installation folder. If it does, simply add its location to PATH instead of downloading it.

This should help resolve the issue while maintaining the performance benefits of the C extension.

Reasons:
  • Whitelisted phrase (-2): Solution:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Siddikur

79513335

Date: 2025-03-16 22:44:28
Score: 0.5
Natty:
Report link

The algorithm isn't doing merge sorting. It just concatenates two arrays, a[] and b[], in your case. You are getting the resulting array as sorted because all elements in your array are sorted. If you put in some random numbers in between and disturb the order, the result won't be sorted anymore.

For ex: if I had a = {100, 10, 1} b = {20, 40, 60} then c would be {100, 10, 1, 20, 40, 60}

Reasons:
  • Whitelisted phrase (-1): in your case
  • No code block (0.5):
  • Low reputation (1):
Posted by: DiviH

79513334

Date: 2025-03-16 22:44:28
Score: 2.5
Natty:
Report link

You might use a ListBuffer (is mutable), it provides the prepend method ("push") and remove method ("pop"). So implementing a generic Stack is straightforward.

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

79513323

Date: 2025-03-16 22:31:26
Score: 1
Natty:
Report link

Just create a CompletionItem with CompletionItemKind.File and vscode will try to set an icon based on the text of your label (filename):

new CompletionItem("index.ts", CompletionItemKind.File)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nizami

79513322

Date: 2025-03-16 22:30:26
Score: 2.5
Natty:
Report link

it seems that in the new version (1.7.5) they have added support for

issue I raises:
https://github.com/snowflakedb/snowflake-ml-python/issues/145

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

79513311

Date: 2025-03-16 22:20:24
Score: 0.5
Natty:
Report link

Try first selecting database by executing

USE [your-database-name];

Then query INFORMATION_SCHEMA.COLUMNS after that

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Bing Ren

79513307

Date: 2025-03-16 22:15:23
Score: 1
Natty:
Report link

See the Github documentation: Dealing with non-fast-forward errors
https://docs.github.com/en/get-started/using-git/dealing-with-non-fast-forward-errors

"You can fix this by fetching and merging the changes made on the remote branch with the changes that you have made locally:"

$ git fetch origin
# Fetches updates made to an online repository
$ git merge origin YOUR_BRANCH_NAME
# Merges updates made online with your local work
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: intltechventures

79513301

Date: 2025-03-16 22:09:22
Score: 3
Natty:
Report link

I tried all of the above but it didn't work and then i tried to change the protocol from http to https and for some reason it start working again without the need to (i am using laravel herd ) laravel Herd screan shot

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

79513299

Date: 2025-03-16 22:08:21
Score: 2.5
Natty:
Report link

# A TRIM() FUNCTION ( AND A USEFUL ALIAS ):

function tr { Param( [Parameter(Mandatory, ValueFromPipeline)][array] $Array) $Array | Out-String | ForEach { $_.trim() }}

set-alias grep select-string

# Test IT :

cd $HOME

ls | grep "pictures" | tr

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

79513291

Date: 2025-03-16 22:04:20
Score: 1
Natty:
Report link

Ultra-fast serverless functions powered by GraalOS
"At Oracle Cloud World 2023, we announced GraalOS, a new cloud native runtime technology, and our plans to bolster Oracle Cloud Infrastructure (OCI) Functions using this technology. Powered by GraalOS, OCI Functions can enable serverless functions to launch in seconds and use up to 50% less memory for most workloads, as compared to traditional functions."

https://blogs.oracle.com/cloud-infrastructure/post/ultrafast-serverless-functions-powered-by-graalos

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

79513287

Date: 2025-03-16 21:59:20
Score: 2.5
Natty:
Report link

# A TRIM() FUNCTION ( AND A USEFUL ALIAS ):

function tr { Param( [Parameter(Mandatory, ValueFromPipeline)][array] $Array) $Array | Out-String | ForEach { $_.trim() }}

set-alias grep select-string

# Test IT :

cd $HOME

ls | grep "pictures" | tr

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

79513268

Date: 2025-03-16 21:37:15
Score: 1.5
Natty:
Report link

The way you are mirroring the left half is wrong, try:

mirrored = int(left_half + left_half[:(length // 2)][::-1])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GreenMamba

79513265

Date: 2025-03-16 21:35:15
Score: 1
Natty:
Report link

I solved this issue with saving the model in ".keras" format instead of H5.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SenyaOhar

79513261

Date: 2025-03-16 21:32:14
Score: 1
Natty:
Report link

Your paging implementation maps only the first 4MiB of memory. 0x1028 is within this range and accessible, but the framebuffer address it points to (e.g., 0xE0000000) may lie outside it. You need to map the dereferenced framebuffer address to a virtual address and later use that for access.

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

79513259

Date: 2025-03-16 21:30:14
Score: 1
Natty:
Report link

Setting MimeType = 'text/html' in v3 Translate request API will preserve line breaks and any other HTML required.

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

79513255

Date: 2025-03-16 21:26:13
Score: 2
Natty:
Report link

I found the issue. I had a datatype "TINYINT" on the "status" column, with Length/Set = 1.
When I changed the datatype to "SMALLINT" with no Length/Set value, it all worked.

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

79513248

Date: 2025-03-16 21:19:11
Score: 0.5
Natty:
Report link

same problem i try to run a mod on MultiMC and this shows up:

java.util.concurrent.CompletionException: java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1583)
    Suppressed: java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "res" is null
        at net.fabricmc.tinyremapper.TinyRemapper.lambda$read$2(TinyRemapper.java:307)
        at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
        at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
        ... 3 more
Caused by: java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
    at org.objectweb.asm.ClassVisitor.visitPermittedSubclass(ClassVisitor.java:281)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:707)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
    at net.fabricmc.tinyremapper.TinyRemapper.analyze(TinyRemapper.java:417)
    at net.fabricmc.tinyremapper.TinyRemapper.access$400(TinyRemapper.java:65)
    at net.fabricmc.tinyremapper.TinyRemapper$2.visitFile(TinyRemapper.java:399)
    at net.fabricmc.tinyremapper.TinyRemapper$2.visitFile(TinyRemapper.java:395)
    at java.base/java.nio.file.Files.walkFileTree(Files.java:2786)
    at java.base/java.nio.file.Files.walkFileTree(Files.java:2857)
    at net.fabricmc.tinyremapper.TinyRemapper.readFile(TinyRemapper.java:395)
    at net.fabricmc.tinyremapper.TinyRemapper.access$200(TinyRemapper.java:65)
    at net.fabricmc.tinyremapper.TinyRemapper$1$1.get(TinyRemapper.java:364)
    at net.fabricmc.tinyremapper.TinyRemapper$1$1.get(TinyRemapper.java:360)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
    ... 3 more
Process exited with exit code -1 (0xffffffffffffffff).
Please note that usually neither the exit code, nor its description are enough to diagnose issues!
Always upload the entire log and not just the exit code.
Reasons:
  • RegEx Blacklisted phrase (1): same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29981686

79513246

Date: 2025-03-16 21:18:11
Score: 0.5
Natty:
Report link

You can do it in several ways, I want to present one of them, using the regular expect/actual mechanism in Compose Multiplatform.

expect fun parseDeepLinkUrl(url: String): DeepLinkData

also I created DeepLinkManager to handle the data and let the view model to monitor its flow

// Singleton object to hold the deeplink data
object DeepLinkManager {
    private val _deeplinkData = MutableStateFlow<DeepLinkData?>(null)
    val deeplinkData: StateFlow<DeepLinkData?> = _deeplinkData

    fun processDeeplink(data: DeepLinkData) {
        _deeplinkData.value = data
    }
}

and you can implement it in Android and iOS this way:

Android:

actual fun parseDeepLinkUrl(url: String): DeepLinkData {
    val uri = url.toUri()
    return DeepLinkData(
        username = uri.getQueryParameter("username") ?: "",
        token = uri.getQueryParameter("token") ?: "",
        email = uri.getQueryParameter("email") ?: ""
    )
}

Android Manifest:

<intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="***put your string here***" android:host="auth-success-for-example" />
            </intent-filter>

you can add the below line in activity to open the same application back, in case you called the browser from the application to do the authentication.

android:launchMode="singleTop"

in MainActivity

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        onNewIntent(intent)
        setContent {
            App()
        }
    }

    override fun onNewIntent(intent: Intent) {
        super.onNewIntent(intent)
        val url = intent.dataString ?: ""
        val data = parseDeepLinkUrl(url)
        DeepLinkManager.processDeeplink(data)
    }
}

iOS:

actual fun parseDeepLinkUrl(url: String): DeepLinkData {
    val nsUrl = NSURL.URLWithString(url) ?: return DeepLinkData("", "", "")
    val components = NSURLComponents.componentsWithURL(nsUrl, resolvingAgainstBaseURL = true)

    // This is the corrected approach - properly cast and access the query items
    val params = mutableMapOf<String, String>()
    components?.queryItems?.forEach { item ->
        val queryItem = item as NSURLQueryItem
        queryItem.value?.let { value ->
            params[queryItem.name] = value
        }
    }
    return DeepLinkData(
        username = params["username"] ?: "",
        token = params["token"] ?: "",
        email = params["email"] ?: ""
    )
}

iOS Info.plist

<key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLName</key>
            <string>org.company.name</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>***Your String here***</string>
            </array>
        </dict>
    </array>

inside iOS APP. you can take the URL, call the parser and send it to the Object to be monitored by the Viewmodel:

struct iOSApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onOpenURL {
                    url in
                    let parsedData = ParseDeepLinkUrl_iosKt.parseDeepLinkUrl(url: url.absoluteString)
                    // Pass the data to the DeepLinkManager
                    DeepLinkManager.shared.processDeeplink(data: parsedData)
                }
        }
    }
}

of course you can forget about the expect/actual mechanism and implement reading the deeplink within the MainActivity and iOSApp and send the data directly to the object.

last but not least, you can read it from the view model this way:

 init {
        viewModelScope.launch {
            DeepLinkManager.deeplinkData.collect { deepLinkData ->
                deepLinkData?.let {
                    println("Got the Deeplink in Viewmodel: $it")                 
                }
            }
        }
    }

Enjoy!

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

79513235

Date: 2025-03-16 21:06:09
Score: 3.5
Natty:
Report link

Look a this implementation also using sse https://github.com/ihrpr/mcp-server-jupyter

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

79513232

Date: 2025-03-16 21:03:08
Score: 1
Natty:
Report link

My quick fix was lowering version of flyway dependency to:

<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-core</artifactId>
    <version>9.16.3</version>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Phillip

79513227

Date: 2025-03-16 20:51:03
Score: 15.5 🚩
Natty: 5.5
Report link

I'm facing the same issue. Were you able to solve it? If so, could you share the steps you took?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (2.5): could you share
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gerdek bozan

79513219

Date: 2025-03-16 20:48:03
Score: 1
Natty:
Report link

Complete answer can be found here;

But you can simply create _init_.py file under tests directory!

Secondary fix is to add this to your pyproject.toml:

[tool.pytest.ini_options]
pythonpath = ["."]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Moisés do Nascimento

79513213

Date: 2025-03-16 20:44:02
Score: 3
Natty:
Report link

I did everything you wrote, but the result was the same - no roles in the access token.

{
  "aud": "",
  "iss": "",
  "iat": 174,
  "nbf": 174,
  "exp": 174,
  "aio": "",
  "azp": "",
  "azpacr": "0",
  "email": "",
  "family_name": "",
  "given_name": "",
  "name": "",
  "oid": "",
  "preferred_username": "",
  "rh": "",
  "scp": "Api.Access",
  "sid": "",
  "sub": "",
  "tid": "",
  "uti": "",
  "ver": "2.0"
}

What was wrong?

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sergey Nikolaevich Guk

79513212

Date: 2025-03-16 20:44:02
Score: 1
Natty:
Report link

It looks like you are trying to get data from table 'income_dataset' into your new table 'substring_income_dataset' so do the following instead:

CREATE TABLE substring_income_dataset AS SELECT year, substring(income_total, 1, 2), benefit_type FROM income_dataset;

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

79513203

Date: 2025-03-16 20:38:01
Score: 1.5
Natty:
Report link

Fixed the same issue by going to Build Settings in Xcode and removing arm64 and i386 from Excluded Architectures.

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

79513190

Date: 2025-03-16 20:28:59
Score: 1.5
Natty:
Report link

Did you try reinstalling 'pytube'? If not, try

pipx uninstall pytube
pipx install pytube

That should work.

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Borne

79513186

Date: 2025-03-16 20:25:58
Score: 0.5
Natty:
Report link

I ended up with

        public AppShell()
        {
            InitializeComponent();
            if (Preferences.Default.Get("StartPage2", true))
                this.CurrentItem = this.Items[1];
        }

Setting Visible=false resulted in the item becoming not visible in the navigation menu, not what I wanted.



Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vadim Rapp

79513163

Date: 2025-03-16 20:09:55
Score: 1
Natty:
Report link

Based on this answer, it seems that Notepad++ supports regex.
In that case, I would look for the regex \d{12}.

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

79513155

Date: 2025-03-16 20:04:54
Score: 1
Natty:
Report link

You need just increase max_locks_per_transaction option in Postgres config and restart the service

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

79513148

Date: 2025-03-16 20:01:53
Score: 3
Natty:
Report link

If you're using parquet, I don't think it supports storing data ordering metadata.

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

79513129

Date: 2025-03-16 19:49:51
Score: 1.5
Natty:
Report link

To Solve This you need to rebuild the setup.py specifying the --rpath flag (-R)

Like this :

python3 setup.py build_ext -i -R <libdirectory> -f

the -f force the build

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

79513126

Date: 2025-03-16 19:46:50
Score: 2
Natty:
Report link

nice to meet you brother i just deployed my react app I literally was in the same boat kept readjusting the code for my manifest, service worker layout tsx next tsconfig nothing works it seems to be a eslint issue because you could deploy it without estlint but then other dependencies fail not sure what the entire scope of this bug is but for sure vercel does not support pwa development so maybe hosting a webapp with vercel is not a good option is pwa is your goal

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

79513122

Date: 2025-03-16 19:44:50
Score: 1
Natty:
Report link

Ah! I did it!

enter image description here

Here's how I got it to work:

from typing import Type, TypeVar
from django.test import TestCase, TransactionTestCase

T = TypeVar("TBTC", TestCase, TransactionTestCase)

def test_case_class_factory(base_class: Type[T]) -> Type[T]:

    class MyDerivedTestCase(base_class):
        ...

    return MyDerivedTestCase

TracebaseTestCase = test_case_class_factory(TestCase)
TracebaseTransactionTestCase = test_case_class_factory(TransactionTestCase)

As soon as I removed the type hints from the declared variables (TracebaseTestCase and TracebaseTransactionTestCase), they went from blue to green, and the syntax highlighting started working in subsequent derived classes!

I realized that setting the factory method to output -> Type[TestCase], was static, and that I could use a TypeVar to make it dynamic. I'm not sure I totally understand all of this. For example, I don't know what the significance of the first argument to TypeVar is, but I think I learned one thing:

"TracebaseTestCase: TestCase = ..." was wrong. It was type-hinting TracebaseTestCase as an instance of TestCase, not a type/class. That's why it was highlighted blue.

And I'm not sure I understand if VSCode could know what type TracebaseTestCase is if I don't type-hint it: TracebaseTransactionTestCase = test_case_class_factory(TransactionTestCase). Can it? I.e. Can it differentiate between the presence of assertQuerySetEqual as a method of the class?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
Posted by: hepcat72

79513118

Date: 2025-03-16 19:41:49
Score: 0.5
Natty:
Report link

This is deprecated from prisma V5

async enableShutdownHooks(app: INestApplication) {
    this.$on('beforeExit', async () => {
      await app.close();
    });
}

Replace the above with this

async enableShutdownHooks(app: INestApplication) {
    process.on('beforeExit', () => {
      app.close();
    });
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Okonkwo Clovis Saintiano

79513103

Date: 2025-03-16 19:29:47
Score: 3
Natty:
Report link

What happens if you don't have all of this information? They seem awfully incompetent at Heroku. It's hard to believe they need all of this information or they will delete your account and data if you can't sign in. I'm so upset because they've continued to email me with these threats and I continue to need more time to find the info. They only give you like 24 hours to get it all to them. I have to email them back and start the process all again. It's ridiculous!

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Carla Jeanpierre

79513058

Date: 2025-03-16 18:55:40
Score: 2
Natty:
Report link

'So if e.g. you need /static.html , you can safely upload it on your root folder with the same name and can access from your browser, WordPress will have nothing to do with it."

One needs to have a paid account with Wordpress to be able to access the root folder.

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

79513051

Date: 2025-03-16 18:48:39
Score: 1.5
Natty:
Report link

The 2025 version of Jetbrains IDEs support the "Azure pipelines" Schema natively

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

79513044

Date: 2025-03-16 18:43:38
Score: 2.5
Natty:
Report link

The latest instruction as per: https://docs.expo.dev/tutorial/eas/android-development-build/

says: eas build --platform android --profile development

This command prompts us with the following questions:

--What would you like your Android application id to be? Press return to select the default value provided for this prompt. This will add android.package in app.json.

--Generate a new Android Keystore? Press Y.

But, that's not the case. Only the tips provided in this thread worked (manually adding "package": "com.yourcompany.yourappname", "versionCode": 1

What am I missing?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Jey J

79513032

Date: 2025-03-16 18:31:35
Score: 2
Natty:
Report link

Okay, it took me a while to figure out the answer but it turns out that supabase has three connection methods to their databases.

  1. Direct connection: Ideal for applications with persistent, long-lived connections, such as those running on virtual machines or long-standing containers.
  2. Transaction pooler: Ideal for stateless applications like serverless functions where each interaction with Postgres is brief and isolated.
  3. Session pooler: Only recommended as an alternative to Direct Connection, when connecting via an IPv4 network.

The connection method I used was the Direct connection with the provided connection string but it turns out that it doesnt allow ipv4 connections. By default, the network created by my docker compose file sets ipv6 as false. The solution? From this there are two solutions.

  1. Create a network that supports ipv6 if you want to use the direct connection uri string.
  2. Use either of the other two connection uri strings since they support ipv4 connections
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kingdawnage

79513024

Date: 2025-03-16 18:26:32
Score: 9.5 🚩
Natty: 5.5
Report link

Hi i know its been a while but did you find a solution to this in the end? I'm facing a similar issue with iOS, Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): did you find a solution to this
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing a similar issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Day

79513014

Date: 2025-03-16 18:21:31
Score: 0.5
Natty:
Report link

using UnityEngine;

public class Shooting : MonoBehaviour

{

public GameObject bulletPrefab;

public Transform gunTransform;

public float bulletSpeed = 20f;

void Update()

{

    if (Input.GetButtonDown("Fire1")) // Left mouse click or a specific key

    {

        ShootBullet();

    }

}

void ShootBullet()

{

    GameObject bullet = Instantiate(bulletPrefab, gunTransform.position, gunTransform.rotation);

    Rigidbody rb = bullet.GetComponent\<Rigidbody\>();

    rb.AddForce(gunTransform.forward \* bulletSpeed, ForceMode.Velo

cityChange);

}

}

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

79512998

Date: 2025-03-16 18:06:28
Score: 1.5
Natty:
Report link

if you are having this issue, run

 npx prisma generate

and it would be fixed

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Okonkwo Clovis Saintiano

79512980

Date: 2025-03-16 17:53:25
Score: 0.5
Natty:
Report link

After not receiving a response for a week, I at least had some time to analyze the problem myself. Perhaps my question was too specific and complicated. The solution I found is surprisingly complex, as I need to override the custom methods for entering and exiting full screen mode.

In an NSWindowDelegate, you need to define the following optional methods to accomplish this.

    func customWindowsToEnterFullScreen(for window: NSWindow) -> [NSWindow]? {
        return [window]
    }
    

    func window(_ window: NSWindow, startCustomAnimationToEnterFullScreenWithDuration: TimeInterval) {
        if let fullScreenFrame = window.screen?.frame {
            normalFrame = window.frame
            NSAnimationContext.runAnimationGroup { context in
                context.duration = startCustomAnimationToEnterFullScreenWithDuration
                window.animator().setFrame(fullScreenFrame, display: true)
            }
        }
    }
    
    func customWindowsToExitFullScreen(for window: NSWindow) -> [NSWindow]? {
        return [window]
    }

    
    func window(_ window: NSWindow, startCustomAnimationToExitFullScreenWithDuration: TimeInterval) {
        window.styleMask = normalStyle
        NSAnimationContext.runAnimationGroup { context in
            context.duration = startCustomAnimationToExitFullScreenWithDuration
            window.animator().setFrame(normalFrame, display: true)
        }
    }

I found this after many failed attempts and some flaws I discovered in the Apple API. The working version is added as a new commit to the original files, which means you have to check out the first version if you want to reproduce the original problem.

The link as above: https://github.com/mac-curver/TestZoomAndFullScreen15_4

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lego Esprit

79512979

Date: 2025-03-16 17:53:25
Score: 1.5
Natty:
Report link

Found a nice and easy answer. For laravel 11.x you can just add to the User model and will do the trick

protected static function boot() {
    parent::boot();

    static::deleting(function($user) {
        $user->projects()->update(['user_id' => null]);
    });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TomasEzequiel

79512970

Date: 2025-03-16 17:45:23
Score: 1.5
Natty:
Report link

This is https://github.com/scrapy/parsel/issues/307 which is fixed in parsel 1.10.0 released on 2024-12-16.

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

79512969

Date: 2025-03-16 17:45:23
Score: 0.5
Natty:
Report link

The issue was resolved by changing how the script was executed. Previously, it was run directly through Steam. Now, the script is written to a temporary file, made executable, and then executed with sudo bash. This change, using the following code, fixed the problem:

const command = `
      cat > /tmp/temp_script.sh << 'EOFSCRIPT'
${escapedScript}
EOFSCRIPT
      chmod +x /tmp/temp_script.sh
      sudo bash /tmp/temp_script.sh
      rm /tmp/temp_script.sh
    `;

solved the problem.

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

79512967

Date: 2025-03-16 17:39:20
Score: 6 🚩
Natty: 6
Report link

Are you found this solution? i have face this same problem?

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

79512962

Date: 2025-03-16 17:35:19
Score: 0.5
Natty:
Report link

For a SwiftUI / MacCatalyst app that is sandboxed, I was able to fix this issue for my app by simply clicking the Network > Outgoing Connections (Client) checkbox in the Signing & Capabilities tab for the Target for my app.

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

79512959

Date: 2025-03-16 17:34:19
Score: 2
Natty:
Report link

That is because -1 in slice means the last element.

Although list(range(4,-1,-1)) = [4 , 3, 2, 1,0],

[4:-1:-1] doesnt equal to it.

[4:-1:-1] = [4:-1+len:-1] != [4::-1]

[4::-1] is what you want.

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

79512954

Date: 2025-03-16 17:30:18
Score: 3
Natty:
Report link
handler_name = data["handler"].callback.__name__
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Антон Щерба

79512951

Date: 2025-03-16 17:29:18
Score: 1
Natty:
Report link

1

import json
import requests
from bs4 import BeautifulSoup


url = "https://glomark.lk/coconut/p/11624"
soup = BeautifulSoup(requests.get(url).content, "html.parser")

s = soup.select_one('script[type="application/ld+json"]')
data = json.loads(s.text)

for key, value in data.items():
    print(f"{key=} {value=}")

print("-" * 80)
print(f'Name is {data["name"]}')
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jyotib

79512942

Date: 2025-03-16 17:24:16
Score: 4
Natty:
Report link

You can find working example code and a live demo here: https://aibuildersguide.com/docs/gemini/gemini-search-grounding

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

79512935

Date: 2025-03-16 17:17:15
Score: 0.5
Natty:
Report link

As of Tailwind v4, the media queries and the answer should be:

.your-class {
    @apply your-rules
}

@variant sm {
    .your-class {
        @apply your-rules-for-the-sm-breakpoint-and-above
    }
}

@variant md  {
    .your-class {
        @apply your-rules-for-the-md-breakpoint-and-above
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Josh Smith

79512917

Date: 2025-03-16 17:04:12
Score: 3
Natty:
Report link

This can be done very easi

a=np.arrey

a=а+1 a=a/2,a=a-1,a=a* -1

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

79512916

Date: 2025-03-16 17:03:12
Score: 1
Natty:
Report link

You need to initialize eslint in your working directory, and for that you need a package.json file first.

Run this in your terminal and you'll be fine.

npm init --yes && npm init @eslint/config@latest
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: s1d

79512915

Date: 2025-03-16 17:03:12
Score: 1
Natty:
Report link

After some investigation, I have found the problem. The model included two Dropout layers, which are active during training but disabled during evaluation. This was affecting the final accuracy in evaluate, as the model sees all connections in use during inference. After removing the Dropout layers, the model was able to train correctly.

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

79512911

Date: 2025-03-16 17:02:12
Score: 3.5
Natty:
Report link

It looks like you're trying to create an ORM-like system in C++ but struggling with handling tables of unknown structure. You could fetch column names using PRAGMA table_info(table_name); and store results dynamically in std::map<std::string, std::any>. How are you currently handling sqlite3_step() results?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zainab Ansari

79512888

Date: 2025-03-16 16:53:10
Score: 3
Natty:
Report link

Since the objects are absolutely positioned, so they don't contribute in height.Try using MARGIN for each objects for different positions.

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

79512880

Date: 2025-03-16 16:44:08
Score: 3
Natty:
Report link

@here if you are using IDE or a venv, then the required SSL certificates might not be available Please try the below two commands to solve this issue :

pip install pip-system-certs --- This package patches pip and requests at runtime to use certificates from the default system store (rather than the bundled certs ca)

(or) / (and)

[For Windows]
pip install python-certifi-win32 --- To add all the windows available certificates to your python environment.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @here
  • Low reputation (1):
Posted by: Sidharth Reddy Koukutla

79512875

Date: 2025-03-16 16:40:07
Score: 2
Natty:
Report link

I got the same error on my vs code. Well this happens when you have initialized .git in a higher level folder.
Ways to solve it:

  1. Through file explorer (windows/mac)

    • locate the folder that has the 10k commit issue on your file explorer

    • keep looking for .git folder in the parent folders

    • if found, delete the .git folder

  2. Through VS Code Terminal (Hard Way)

    • open terminal in vs code using ctrl+`

    • first locate to your folder which has 10k commits issue eg: cd "C:/Windows/Deepanshu/Projects/IssueFolder"

    • once reached use command: cd .. (to go to parent folder) and the ls (to check the list of folders and files the current folder)

    • once the .git folder is found, delete it using the command: rm ".git"

(this is my first answer in stackoverflow, I hope it solves the problem)

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Deepanshu Yadav

79512874

Date: 2025-03-16 16:40:07
Score: 1.5
Natty:
Report link

Modify your repository method as follows if you simply require product names.

@Query(value = "SELECT o.product FROM orders o", nativeQuery = true)
List<String> findAllProduct();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abdelmoumeniheb

79512862

Date: 2025-03-16 16:33:05
Score: 2
Natty:
Report link

Since August 2023 including a pipeline from another repository is now possible, but only in the Bitbucket Premium Plan.

See this Atlassian Blog article from Aug 24, 2023: [New Premium feature] Share pipeline workflow configurations across your repositories

I've written a more detailed answer on a more recent SO question about this with more context.

To check if the feature is still Premium only, visit Bitbucket's Pricing page and check which plans include the "Scale CI workflows" Core Feature.

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

79512857

Date: 2025-03-16 16:28:04
Score: 4.5
Natty:
Report link

I was able to make it work thanks to the advices of Lundin and JimmyB in the comments.

NOTE: This code works on my phisical Esp32(DEVKIT 1) since I got it. I have not tested it on the emulator.

What I was missing:

What I discovered:

I post here a working code in case someone gets stuck like me.

#include <stdio.h>
#include <unistd.h>
#include <inttypes.h>

#define GPIO_OUT_W1TS_REG (*(volatile uint32_t*)0x3FF44008)
#define GPIO_OUT_W1TC_REG (*(volatile uint32_t*)0x3FF4400C)
#define GPIO_ENABLE_W1TS_REG (*(volatile uint32_t*)0x3FF44024)
#define GPIO_ENABLE_W1TC_REG (*(volatile uint32_t*)0x3FF44028)
#define GPIO_FUNC0_OUT_SEL_CFG_REG 0x3FF44530
#define LEDC_CONF_REG (*(volatile uint32_t*)0x3FF59190)
#define LEDC_HSCH0_CONF0_REG (*(volatile uint32_t*)0x3FF59000)
#define LEDC_HSCH0_CONF1_REG (*(volatile uint32_t*)0x3FF5900C)
#define LEDC_HSCH0_DUTY_REG (*(volatile uint32_t*)0x3FF59008)
#define LEDC_HSCH0_DUTY_R_REG (*(volatile uint32_t*)0x3FF59010) 
#define LEDC_HSCH0_HPOINT_REG (*(volatile uint32_t*)0x3FF59004)
#define LEDC_HSTIMER0_CONF_REG (*(volatile uint32_t*)0x3FF59140)
#define IO_MUX_GPIO26_REG (*(volatile uint32_t*)0x3FF49028)
#define DPORT_PERIP_CLK_EN_REG (*(volatile uint32_t*)0x3FF000C0)
#define DPORT_PERIP_RST_EN_REG (*(volatile uint32_t*)0x3FF000C4)
#define LEDC_HSTIMER0_VALUE_REG (*(volatile uint32_t*)0x3FF59144)
#define resolution (uint)8

void app_main(void)
{
    printf("test\n");

    DPORT_PERIP_CLK_EN_REG |= (1<<11);// enable clock for ledc

    LEDC_HSTIMER0_CONF_REG &= ~(0xf);
    LEDC_HSTIMER0_CONF_REG |= resolution; //resolution = 8 bit
    uint divider = 80000000 / (5000 * 256);
    LEDC_HSTIMER0_CONF_REG |= (divider<<13);


    LEDC_HSCH0_CONF0_REG &= ~(0b00); //timer 0
    LEDC_HSCH0_CONF0_REG |= (1<<2); //enale output channel

    LEDC_HSCH0_HPOINT_REG = 1; // value to set high
    LEDC_HSCH0_DUTY_REG &= ~(0xffffff);
    LEDC_HSCH0_DUTY_REG |= (20<<4); // low duty cycle
    uint low = 1; // flag to control next duty value

    // gpio setting
    volatile uint32_t* gpio26_cfg = (volatile uint32_t*)GPIO_FUNC0_OUT_SEL_CFG_REG + 26;
    // peripheral 71 -> hschan0
    *gpio26_cfg = 71;
    GPIO_ENABLE_W1TS_REG |= (1<<26);
    // function 2
    IO_MUX_GPIO26_REG &= ~(0b111 << 12);
    IO_MUX_GPIO26_REG |= (2<<12);

    LEDC_HSCH0_CONF1_REG |= (1<<31); // start channel duty cycle
    LEDC_HSTIMER0_CONF_REG &= ~(1<<24); //reset timer
    uint counter = 0;
    while (1) {
        if (counter == 2){
            if (low == 0) {
                LEDC_HSCH0_DUTY_REG &= ~(0xffffff);
                LEDC_HSCH0_DUTY_REG |= (30<<4);
                low = 1;
                LEDC_HSCH0_CONF1_REG |= (1<<31); // start channel duty cycle
            } else {
                LEDC_HSCH0_DUTY_REG &= ~(0xffffff);
                LEDC_HSCH0_DUTY_REG |= (128<<4);
                low = 0;
                LEDC_HSCH0_CONF1_REG |= (1<<31); // start channel duty cycle
            }
            counter = 0;
        }
        printf("timer value: %" PRIu32 "\n", LEDC_HSTIMER0_VALUE_REG);
        printf("duty value: %" PRIu32 "\n", LEDC_HSCH0_DUTY_R_REG);
        printf("counter: %d\n", counter);
        sleep(1);
        counter++;
    }
}

Since I am a newbie in C please feel free to correct me as Lundin did, I will appreciate it.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (3): thanks to the advices
  • RegEx Blacklisted phrase (1): I am a newbie in C please
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michele Del Grosso

79512850

Date: 2025-03-16 16:26:03
Score: 4.5
Natty:
Report link

I’ve also been trying to fetch Google reviews using the new Places API with an unrestricted API key and a properly set billing account, but I’m still getting REQUEST_DENIED. I’ve confirmed that my API key works for other requests (like address components) but fails for reviews. It seems like accessing reviews might require the Enterprise SKU, but I haven’t found a way to enable it. Has anyone managed to solve this?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve this?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TimmyBoy

79512847

Date: 2025-03-16 16:25:03
Score: 0.5
Natty:
Report link

I was able to get this to work. In applicationWillTerminate(_) you can schedule a notification as long as you do it synchronously. If your normal scheduling using async functions you may need to create a separate function or do it inline. Just make sure you do it as quickly as possible so the time limit doesn't run out. Also, you need to schedule a second or two in the future, as it will not fire with the current date because the time is passed by the time it gets scheduled.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Chad

79512841

Date: 2025-03-16 16:19:02
Score: 2
Natty:
Report link

Since calling ReleaseCapture() inside WM_NCLBUTTONDOWN did not work, try explicitly forwarding the message to DefWindowProc after processing WM_NCLBUTTONDOWN. This ensures the system’s default behavior is not interfered with.
Modify your WM_NCLBUTTONDOWN handler to explicitly release capture.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28356277

79512840

Date: 2025-03-16 16:19:02
Score: 4
Natty:
Report link

i have been coding by myself for a year and i wanted to make a similar game but it doesn't work with me either. My code is close to identical to yours,

import turtle

# create Screen
wn = turtle.Screen()
wn.bgcolor("light green")

# Create player
player = turtle.Turtle()
player.color("blue")
player.shape("triangle")
player.penup()
speed = 1

#create the inputs
def left():
    player.left(30)

def right():
    player.right(30)

#Key input actions
turtle.listen()
turtle.onkeypress(left, "Right")
turtle.onkeypress(right, "Left")

while True:
    player.forward(speed)

i've tried everything and it just doesn't work. I think that it does not work because the program is not listening (although i fired the function listen()) because i have put this line in my program:

def print_test():
    print("works")

with this in the keyinputactions

turtle.onkeypress(print_test, "Space")

and it gave me nothing as an output. I think you might have the same problem. I however do not know how to fix this because of my lack in expertise.

I hope this helped, although i do not think that you are still working on this problem after 2 years.

Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Whitelisted phrase (-1): hope this help
  • RegEx Blacklisted phrase (2): do not know how to fix
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (1):
Posted by: liam patruno

79512839

Date: 2025-03-16 16:16:59
Score: 6 🚩
Natty: 5.5
Report link

do you consider using shader graph?

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

79512838

Date: 2025-03-16 16:16:59
Score: 1
Natty:
Report link
columns = [col for col in df.columns if col.startswith(('A_', 'B_'))]
df.loc[:, columns]
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Ignatius Reilly

79512837

Date: 2025-03-16 16:16:59
Score: 2.5
Natty:
Report link

Add your original apple account on teams.

target--> signing & capabilities --> teams.

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

79512817

Date: 2025-03-16 16:01:56
Score: 1
Natty:
Report link

An alternative way:

def int_sci(value:str) -> int:
    return int(eval(value.replace("e","*10**")))

int_sci("1e1")
>>> 10
int_sci("10e-1")
>>> 1
int_sci("1e23")
>>> 100000000000000000000000
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alf

79512815

Date: 2025-03-16 16:00:56
Score: 2.5
Natty:
Report link

Lets break it down step by step.

  1. Let's define some operation xyz that the user can perform on the website.

  2. You want a user to do xyz operation via a bot.

  3. You want a sort of acknowledgement that xyz operation has been completed

    1. [Help me understand]: How "bot" sends the notif that xyz is succesful? It should rather be the point where xyz operation has been performed, right?

    2. I will make an assumption that your website [referred to as server now onwards] will send the notif to channel.

  4. Now how exactly should we make it?


  1. You do not want your bot to do any sort of heavy lifting. For example, checking if there did exist an error, is not a responsibility of bot. Why?

    1. Because the bot is not a "client". Its just someone who communicates to your server "Hey, I received xyz message".

    2. All sort of parsing shall happen within the server.

    3. Another reason is, this makes the bot extensible, you do not need to change code of the bot to perform abc operation.

  2. In my belief [Design is subjective]. The addition of profiles should be async. So, kafka/rmq over webhook/websocket. Why?

    1. I am not sure, how retry-ability will work with webhook/socket. But I am sure its better with kafka and rmq, since they have dead-letter-queue. Retry-ability is important since, in production environments, connections are prone to break or operation is prone to fail etc. You do not want to loose a message with no logs.

    2. The nature of business is async. Once your bot communicates, "hey something happened". It has no business to know what happened with "hey something".

  3. Any further clarifications are welcome.

Reasons:
  • Blacklisted phrase (1): Help me
  • Blacklisted phrase (0.5): Why?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Shah Kushal

79512811

Date: 2025-03-16 15:56:55
Score: 1
Natty:
Report link

If you‘re using the evolve extension, another approach is to use amend to change the root commit‘s branch name and then propagating the change with evolve:

hg up 'roots(branch(stiging))' # root commit of branch to be renamed
hg branch -f staging
hg amend
hg evolve
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: c2d7fa

79512808

Date: 2025-03-16 15:52:54
Score: 1.5
Natty:
Report link

I have successfully managed to run a Raspberry Pi 4 Compute Module (CM) in QEMU. You can check my GitHub guide for instructions:

https://github.com/Apex-Source/Revolution-PI-Qemu/

I use QEMU to emulate my Revolution Pi device for integration testing. The Revolution Pi is based on the Raspberry Pi Compute Module 4 (CM4), so this method might also work for a standard Raspberry Pi.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wesley van der Meer

79512801

Date: 2025-03-16 15:48:53
Score: 0.5
Natty:
Report link

When you process the WM_NCLBUTTONDOWN, make sure you let DefWindowProc handle it only if it's not a click on one of your custom buttons.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • High reputation (-2):
Posted by: Adrian McCarthy

79512800

Date: 2025-03-16 15:46:53
Score: 1.5
Natty:
Report link

If a prefetch_abort or a data_abort occurs the running program can not continue. On a simple platform you just stop by entering a while(1){} loop. Time to get the debugger.

On a more advanced system you can try to terminate the current program or send a signal to it but continuing is not possible.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Peter v.d. Vos

79512799

Date: 2025-03-16 15:46:53
Score: 2
Natty:
Report link

Most of the code highlighters do not support br tags as a line break. So, you need to replace all the br at into \n . Hope it will work. It is working for me.

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

79512786

Date: 2025-03-16 15:34:51
Score: 3.5
Natty:
Report link

Simply change "==" to "=" in " user_num == int(input('Enter integer:\n')) "

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

79512772

Date: 2025-03-16 15:25:49
Score: 0.5
Natty:
Report link

Dealing with the same issue, I found a bug report for it on x2go.org. Looks like it has to do with the way that the x2go team digitally signs their executable is not in line with the way Windows expects it to be signed, so it views it as coming from an unknown author.

https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1444

For Chrome, I was able to just go to my downloads page and select the option to download it anyway.

Reasons:
  • No code block (0.5):
Posted by: David Kennell

79512768

Date: 2025-03-16 15:24:48
Score: 1.5
Natty:
Report link

Underscore is not recommended for headers.

But since you can’t modify your client request, accept access_token as is in method request and modify it via integration request using integration request headers.

https://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.html#request-response-data-mappings-example-2

This way, you can accept the access_token value sent by client and map it to access-token before sending it to your service endpoint.

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

79512756

Date: 2025-03-16 15:12:46
Score: 4
Natty:
Report link

How about using requirements.txt ?

requirements.txt

djlint==1.36.4

Then run

$ pip install -r requirements.txt
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: user75661

79512751

Date: 2025-03-16 15:10:45
Score: 1
Natty:
Report link

Regular Public CAs like DigiCert, GlobalSign, etc., are not allowed to issue SSL certificates for Internal Names (IP addresses, localhost, Internal URLs, and Server names) due to restrictions imposed by the CA/Browser Forum in 2015.

SecureNT Intranet SSL and GlobalSign issue SSL certificates for intranets using non-public CA certificates. While these SSL certificates are technically the same as those issued by Public CA authorities, browsers do not trust their root certificates. So, the customer is required to install the non-public CA roots once on each of their client PCs (devices). Of course, this can be done using Microsoft Group Policy (GPO).

Some vendors issue free trial certificates for testing purposes.

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

79512747

Date: 2025-03-16 15:07:45
Score: 3
Natty:
Report link

It's not supported on PHP 7.3 because it was only introduced in PHP 7.4

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

79512731

Date: 2025-03-16 14:53:43
Score: 3
Natty:
Report link

How to sum an array in aws step function

Hi Everyone,

I'm excited to share my technical document with you! I’d love to hear your thoughts—let me know if you find it interesting. Your feedback would mean a lot and will help me improve. Looking forward to your insights!"

Please do give it a read; I hope this helps.

Let me know if you want a different tone—more formal, casual, or concise! 🚀

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1.5): Looking forward to your
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ashutosh Satapathy

79512727

Date: 2025-03-16 14:52:42
Score: 1.5
Natty:
Report link

NOT WORKING!!!!!!!!

import turtle

def red_star(t, side):
    t.fillcolor('red')
    t.pencolor('black')  # to highlight the lines
    t.pendown()
    t.width(3)
    t.begin_fill()
    for i in range(5):
        t.fd(side)
        t.left(72)
        t.forward(side)
        t.right(144)
    t.end_fill()

t = turtle.Turtle()
s = t.screen
s.delay(0)
t.hideturtle()
t.penup()
red_star(t, 50)
s.exitonclick()
s.mainloop()
Reasons:
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Filler text (0.5): !!!!!!!!
  • Low reputation (1):
Posted by: Max_xHerbie

79512725

Date: 2025-03-16 14:51:42
Score: 2
Natty:
Report link

There is a catalog website about MCP ,site:https://mcp.ad which contains many implementations of MPC server and Clients, as well as source code sites. I hope it can help you

Reasons:
  • Whitelisted phrase (-1): hope it can help
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: HUANG D.S