79751663

Date: 2025-08-31 09:33:16
Score: 3
Natty:
Report link

No, it uses the mobile view from the regular so just think if it's changing the window pretty much you're going from tablet mode to computer mode

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

79751661

Date: 2025-08-31 09:26:15
Score: 2
Natty:
Report link

<p>and for layoutroot where is your method _layoutRoot = (CreateRoot(this, Orientation.Horizontal) << (Pane(Orientation.Vertical).Width(Factor(1)) << (Pane().HorizontalStackLayout(VerticalAlignment.Top) << Item(pnlLogo) << Item(pnlModuleSelector).Width(Factor(1))) << Item().Height(Factor(1)) << (Pane().HorizontalStackLayout(VerticalAlignment.Center) << Item().Width(Factor(1)) << Item(pnlMenu) << Item(pnlDialogView) << Item().Width(Factor(1))) << Item().Height(Factor(1))) << Item(pnlDashboard)) .Build(); and I get _layoutRoot = (CreateRoot(this, Orientation.Horizontal) << (Pane(Orientation.Vertical).Width(Factor(1)) << (Pane().HorizontalStackLayout(VerticalAlignment.Top) << Item(pnlLogo) << Item(pnlModuleSelector).Width(Factor(1))) << Item().Height(Factor(1)) << (Pane().HorizontalStackLayout(VerticalAlignment.Center) << Item().Width(Factor(1)) << Item(pnlMenu) << Item(pnlDialogView) << Item().Width(Factor(1))) << Item().Height(Factor(1))) << Item(pnlDashboard)) .Build();

</p>

<!-- wp:paragraph -->

<p>1) Analyze the user's compilation error trace to identify the core issue, which is the compiler's inability to find the <code>javax.ws.rs</code> packages and related symbols like <code>Client</code> and <code>ClientBuilder</code>.<br />(2) Examine the provided <code>c.sh</code> build script to understand how the classpath for the <code>javac</code> command is being constructed and which JAR files are intended to be included.<br />(3) Investigate the required dependencies for a Jersey 2.2.7 client, distinguishing between the JAX-RS API JAR and the Jersey implementation JARs.<br />(4) Compare the list of JARs included in the user's <code>c.sh</code> script with the dependencies required for a Jersey client to determine which necessary JAR files are missing from the classpath.<br />(5) Find the correct JAR file(s) that provide the <code>javax.ws.rs.client</code> classes, which are essential for the client-side functionality the user is trying to implement.<br />(6) Synthesize the findings to formulate a clear explanation of the root cause of the compilation error, specifically how the missing Jersey client JAR prevents the compiler from finding the required classes.<br />(7) Propose a solution by outlining the specific changes needed to the user's <code>c.sh</code> script to correctly include all necessary JARs for successful compilation.<br />Analyze Results<br />Create Report<br />Ready in a few minutes</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Fixing Jersey Compilation Failure</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Research Site<br />(1) Analyze the provided compilation error trace to identify the root cause, namely the Java compiler's inability to find the required JAX-RS package (javax.ws.rs).<br />(2) Examine the provided <code>c.sh</code> script to understand the classpath configuration used for compilation and which JAR files are included.<br />(3) Investigate the dependencies required for the Jersey 2.2.7 client, specifically those providing JAX-RS classes such as <code>Client</code>, <code>ClientBuilder</code>, <code>WebTarget</code>, and <code>MediaType</code>.<br />(4) Compare the JARs defined in the user script (<code>JAXRS_LIB</code> and <code>CLASSPATH</code>) with the correct dependency list to determine which JAR files are missing or incorrectly versioned.<br />(5) Identify the specific JAR file, such as <code>jersey-client.jar</code>, that provides the required client classes and appears to be missing from the classpath.<br />(6) Explain why the compilation error occurs, emphasizing that the included <code>javax.ws.rs-api-2.0.jar</code> contains only interfaces and does not provide the actual Jersey client implementation or classes.<br />(7) Provide a step-by-step guide on how to modify the <code>c.sh</code> script to include the correct <code>jersey-client.jar</code>, as well as any other dependencies that may be required, to resolve the compilation issue.</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Result Analysis</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Repairing Failed Jersey Compilation</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>(1) Research the concepts of 'repair' and 'redemption' after failure from a psychological and self-development perspective.<br />(2) Research case studies or true stories of individuals or organizations that have successfully recovered from failure and regained their status or reputation.<br />(3) Analyze ethical and philosophical perspectives regarding the rights or ownership regained after successfully redressing mistakes or failures.<br />(4) Explore the meaning and context of the use of the word 'jersey' as it relates to failure, repair, or rights, for example in the world of sports or branding.<br />(5) Compare how different fields (e.g., business, law, art) view and address the concept of 'second chances' and the rights that accompany it.<br />Analyze Results<br />Create Report<br />Ready in minutes</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Jersey Status After Repair</p>

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

<p>Research Site<br />(1) Analyze the meaning and context of the word 'jersey' in user queries, particularly in relation to failure and repair, to understand what is meant by the 'status' of the 'jersey'.<br />(2) Look for analogies or case studies from various fields (e.g., sports, business, art) where an object or symbol (such as a 'jersey') associated with failure later regained its 'status' or rights after repair.<br />(3) Research ethical, philosophical, and legal perspectives regarding</p>

<!-- /wp:paragraph -->

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Acid AbdulRazied

79751646

Date: 2025-08-31 08:29:02
Score: 1.5
Natty:
Report link

managed to solve it with delayload:

// Import ExecDos from DLL
procedure ExecDos(const CmdLine: String; const OutputCallback: LongWord);
  external 'ExecDos@files:ExecDos.dll stdcall delayload';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Cohen1

79751642

Date: 2025-08-31 08:16:00
Score: 3
Natty:
Report link

Brilliant - in my case the fsproj file did get updated but not saved. Opening and saving the fsproj file worked well. BTW this is also true if you rename a .fs file. You have to manually open and save the fsproj file . Thanks to all

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chris

79751640

Date: 2025-08-31 08:16:00
Score: 2
Natty:
Report link

Sometimes Postman is running silently in the background.

  1. Press Ctrl + Shift + Esc to open Task Manager.

  2. Look for Postman.exe processes.

  3. Right-click → End Task on all of them.

  4. Try launching Postman again.

If still facing issue, we can follow next steps.

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

79751631

Date: 2025-08-31 07:41:52
Score: 1
Natty:
Report link

The flutter_callkit_incoming package does exactly this. For my purposes I needed to have the mic functioning in the background as well
so I had to fork and add microphone as a category alongside phoneCall in the manifest service declaration and all worked like a charm

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): worked like a charm
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Richard Onslow Roper

79751625

Date: 2025-08-31 07:22:48
Score: 0.5
Natty:
Report link

Debugging over Wi-Fi has been unreliable for a long time, which can significantly slow watchOS development. I’m a longtime Apple fan, but this has been frustrating.

Simple workaround:

Turn on a hotspot on your Mac and connect both the Apple Watch and its paired iPhone to it. After that, debugging generally works again.

XCode 16.4, watchOS several from 8-11, OSX 15.6.1

Reasons:
  • No code block (0.5):
Posted by: BootMaker

79751612

Date: 2025-08-31 06:46:40
Score: 1
Natty:
Report link

Well, I did get it running. No code change it does work properly as expected when I programmed it.

I guess this is an issue with IntelliJ and not the programming.
I observed that when 'messing' around with IntelliJ and Springboot-Web there is sometimes an nginx process in the background which 'still' serves requests on the http port though the web-app with the same port is shut down (on error or properly).
I may be mistaken that the process is started by intellij i.e. the springboot app. I will keep watching this.
(Using Springboot 3.5.0, Oracle OpenJdk22, IntelliJ 2024.1.7 UE)
Thanks to all who had an eye on it.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Dirk Schumacher

79751608

Date: 2025-08-31 06:38:38
Score: 1.5
Natty:
Report link

If it's for a specific file which is not staged yet, then doing only git checkout filename.extension just works!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Md. Fahim Bin Amin

79751604

Date: 2025-08-31 06:25:35
Score: 4.5
Natty:
Report link

https://keepscreenawake.org/ The website keeps the screen on and the UI is not bad

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

79751587

Date: 2025-08-31 05:24:21
Score: 1.5
Natty:
Report link

Confirm this work

    html {
      overscroll-behavior: none;
    }

    body {
      overscroll-behavior-y: none;
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sedthawuth Maisonti

79751586

Date: 2025-08-31 05:24:21
Score: 4
Natty: 4.5
Report link

Check this https://developers.facebook.com/docs/marketing-api/reference/ad-activity/

This reference about ad account activities

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

79751585

Date: 2025-08-31 05:23:20
Score: 0.5
Natty:
Report link

You can try laravel-image-upload package including intervention

composer require rashiqulrony/laravel-image-upload

Doc: https://packagist.org/packages/rashiqulrony/laravel-image-upload

Using Controller for Image Upload

/**
* Upload an image with optional resizing and thumbnail creation.
*
* @param mixed $requestFile Uploaded file from the request.
* @param string $path Destination folder path.
* @param bool $thumb Generate thumbnail or not.
* @param string|null $name Optional custom filename.
* @param array $imageResize Resize dimensions [width, height].
* @param array $thumbResize Thumbnail dimensions [width, height].
* @return array Uploaded image information.
*/

return Uploader::imageUpload($request->image, $path, 1, $name, [300, 300], [200, 200]);

Response

{
    "name": "1744802578-60164bb368db6.jpg",
    "originalName": "60164bb368db6.jpg",
    "size": 24418,
    "ext": "jpg",
    "url": "http://127.0.0.1:8000/storage/upload/1744802578-60164bb368db6.jpg",
    "thumbUrl": "http://127.0.0.1:8000/storage/upload/thumb/1744802578-60164bb368db6.jpg"
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rashiqul Rony

79751584

Date: 2025-08-31 05:19:18
Score: 2
Natty:
Report link

I did follow ssh-copy-id and all however it was still expecting password so added below entry to defaults section of ansible.cfg that helped to avoid mentioning --ask-pass and typing password.

ask_pass = no

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

79751579

Date: 2025-08-31 05:00:14
Score: 0.5
Natty:
Report link

If I understood your question correctly, let's try to apply a payload template:

{
  "QueryLanguage": "JSONata", // Set explicitly; could be set and inherited from top-level
  "Type": "Task",
  "Resource": "arn:aws:states:::aws-sdk:s3:uploadPart",
  "Parameters": {
    "Bucket": "my-bucket",
    "Key.$": "$.key",                  // from your item/input
    "UploadId.$": "$.uploadId",
    "PartNumber": "{% $states.context.Map.Item.Index + 1 %}",  // JSONata
    "Body.$": "$.chunk"                // your transformed chunk
  }
}

Pay attention:
+ 1 in the payload template is required as Index is 0-based, but S3 requires 1-based indexing.

If you need more tips, look here:

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

79751572

Date: 2025-08-31 04:41:10
Score: 0.5
Natty:
Report link

Your implementation is fine, but you are missing proper cleanup and shutdown handling: you currently exit when one direction ends but leave the other hanging, and you don’t always propagate close/error events to both sockets. The fix is to coordinate shutdown with Task.WhenAny + cancellation + Task.WhenAll, close both sockets gracefully in a central method, and forward the original MessageType (not always Text). You can also simplify by using a single generic PumpAsync(source, dest) method instead of duplicating Process1/2.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Moshe Roi

79751566

Date: 2025-08-31 04:09:05
Score: 1.5
Natty:
Report link

I found there is one solution to solve your problem, you can configure your IDE Settings as below:

  1. Go to ToolsGlobal OptionsCodeCompletion

  2. Look for the option: "Insert parentheses after function completion"

  3. Enable this option (it's usually enabled by default)

  4. Click Apply and OK

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

79751562

Date: 2025-08-31 03:57:02
Score: 1.5
Natty:
Report link

<DOCTYPE html>
<html>
<svg width="500px" height="500px" viewBox="0 0 500 500" xmlns="http://www.w1.org/2000/svg" xmlns:xlink="http://www.w1.org/1999/xlink">
</svg>
<script>
//* asdf += '<text font-family="sans-serif" font-size="14" fill="#1a202c"><textPath startOffset="'+offset+'%" xlink:href="#weeks-path">'+i+'</textPath></text>';*/

</script>
</html>

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

79751561

Date: 2025-08-31 03:48:00
Score: 1
Natty:
Report link

I think the issue seems to be with the networking type selection of Podman. Podman is trying to set up a network that doesn’t exist on macOS, hence the

ip: can't find device '100'

Try specifying the network type with --network in the command. You can list your network with podman network ls.

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

79751549

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

You can also use cabbrev Here's an example:

function! Foo()
  echo 'this is all it does'
endfunction

You need call Foo() but we can use cabbrev magic, cabbrev Foo call Foo() and cabbrev foo call Foo()


How is this answer better? Well, it's better because of casing. I hate cases and you might! Foo and foo are both valid.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jyle

79751537

Date: 2025-08-31 02:40:47
Score: 2
Natty:
Report link

After giving your assembly code a second look (and after reading @RbMm's comment), I'm pretty sure the problem is there (and not related to the misalignment). You´re pushing a 32-bit value and popping a 64-bit value. You may use pushfq instead of pushf.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RbMm's
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Diego Ferruchelli

79751528

Date: 2025-08-31 01:52:39
Score: 5.5
Natty: 5.5
Report link

I know I'm late but where can I find more game codes like that?

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

79751523

Date: 2025-08-31 01:34:35
Score: 1
Natty:
Report link

Así interpret your question’s waveform, It says your first mismatch is when you walk left when you are not supposed to.

You should generally focus on your first error before moving on.

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

79751516

Date: 2025-08-31 01:13:30
Score: 2
Natty:
Report link

Use groupings
echo “abbc” | sed -E -n “s/(ab)(bc)/\2\1/p"

got it from this

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

79751513

Date: 2025-08-31 01:05:29
Score: 1.5
Natty:
Report link

Cloud Build doesn't recognize this private key either using hardcoded newlines or '\n'.

so I had to add a new step to write a .env inside the builder provider. and this firebase-admin script which loads the private key then loads it perfectly.

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

79751488

Date: 2025-08-30 23:08:06
Score: 0.5
Natty:
Report link

A solution I have found is an empty VStack with the actual content as an .overlay(). This allows the content to expand naturally while removing it from the horizontal layout of the view.

VStack {}
    .frame(maxWidth: .infinity, maxHeight: .infinity)
    .overlay(alignment: .leading) {
        ScrollView {
            ...
        }
        .frame(minWidth: 550, maxWidth: .infinity)
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: David Cako

79751455

Date: 2025-08-30 22:21:56
Score: 1
Natty:
Report link

Try manually triggering the click on a touchend event.

testMarker.content.addEventListener('touchend', function(event) {
    google.maps.event.trigger(testMarker, 'click');
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 0ro2

79751440

Date: 2025-08-30 21:43:47
Score: 1.5
Natty:
Report link

In Oracle's object-relational storage framework, the null indicator is kept in a bitmap, and each embedded attribute takes up 1 bit. This implies that: For a maximum of 8 attributes -> the null indicator column length remains as 1 byte. For 8+ attributes -> Oracle byte-maps on a scale that encompasses all attributes. For instance: 9–16 attributes: 2 bytes 17–24 attributes: 3 bytes and so forth. Simply put, the null indicator column length is essentially CEIL(n / 8) bytes, where n is the embedded attributes. Hence, if your object has more than 8 attributes, the null indicator length grows beyond 1 byte.

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

79751435

Date: 2025-08-30 21:35:45
Score: 1
Natty:
Report link

You can represent an IP address as an aggregate, and this aggregate will ensure that an IP address is associated with only device.

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

79751430

Date: 2025-08-30 21:27:42
Score: 10.5
Natty: 5.5
Report link

I have the same problem. Did anyone find the answer?
I signed in to stack overflow just to comment this, ty for reading

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (3): Did anyone find the answer
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Spark_Square

79751423

Date: 2025-08-30 21:19:40
Score: 3
Natty:
Report link

If you really want to build for ARM chips, you need real hardware or an emulator like QEMU. You can’t just run it on your PC.

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

79751421

Date: 2025-08-30 21:13:39
Score: 0.5
Natty:
Report link

You can specify more than one character in the cut command.

while read input; do echo -n $input | cut -c2,7; done

also ranges like -c1-10

also:

cut -c2,7

works

the command will not end until ctrl-d (end of file)

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

79751414

Date: 2025-08-30 21:04:36
Score: 2.5
Natty:
Report link
 Crear figura
fig, ax = plt.subplots(figsize=(7,11))
ax.axis("off")

# Definir los pasos del proceso
steps = [
    ("Inicio", 10),
    ("Abrir la llave de agua", 9),
    ("Mojar las manos", 8),
    ("Aplicar jabón", 7),
    ("Frotar durante 20 segundos", 6),
    ("Enjuagar con agua limpia", 5),
    ("Secar con toalla o secador", 4),
    ("Cerrar la llave", 3),
    ("Fin", 2)
]
Reasons:
  • Blacklisted phrase (2): Crear
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nicolas Batista

79751404

Date: 2025-08-30 20:40:31
Score: 1
Natty:
Report link

heyy so, Excel doesn’t have a built-in “quarter” number format, so typing qq-yy will always just show “qq” as text. To display quarters on your axis, you’ll need to either (1) create a helper column in your data with a formula like ="Q"&ROUNDUP(MONTH(A2)/3,0)&"-"&TEXT(A2,"yy") and use that as your axis labels, or (2) group the dates by quarter if you’re using a PivotChart. Simply changing the number format won’t work because quarters aren’t a supported date format code.

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

79751402

Date: 2025-08-30 20:35:30
Score: 0.5
Natty:
Report link

To calculate the gas fee for a single stablecoin transfer on the RSK (Rootstock) blockchain, you need to multiply two main factors:

Gas Fee = Gas Price × Gas Used

  1. Gas Used – This is the fixed amount of computational steps required to execute a transfer. For a simple stablecoin transfer (ERC-20 style on RSK), it is usually around 50,000 – 65,000 gas units.

  2. Gas Price – This is the cost per unit of gas, usually measured in Gwei (a fraction of RSK’s native token RBTC). The gas price fluctuates depending on network demand.

  3. Conversion to RBTC – Once you multiply gas price by gas used, you get the fee in RBTC. You can then convert RBTC into USD (or any fiat currency) to know the actual cost.

Example:
If gas price = 0.06 Gwei, and gas used = 50,000,
Gas Fee = 50,000 × 0.06 Gwei = 3,000 Gwei = 0.000003 RBTC.

Thus, the exact fee will vary depending on network activity, but this method gives you the correct calculation.

For businesses creating tokens or managing transactions, a Stablecoin Development Company can help optimize contracts to reduce gas usage and ensure efficient transfers on RSK.

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

79751401

Date: 2025-08-30 20:35:29
Score: 6
Natty:
Report link

Sorry for late response.Please provide your file structure and widget part.I need more information

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Please provide your
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Khayyam

79751397

Date: 2025-08-30 20:29:28
Score: 3
Natty:
Report link

The best answer that I have found (from @volo on question 1995439) is to download this CSV file from Google, and find the marketing name corresponding to what Build.MODEL gives you. You could do this dynamically, but this means that you do an Internet query every time the user asks for the marketing name. I think that I prefer to download the the file as part of my build script and stuff it into a resource. However this means that I can only report marketing names that existed last time I built my app.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @volo
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Richard Parkins

79751395

Date: 2025-08-30 20:21:27
Score: 1.5
Natty:
Report link

It's likely that you are running into issues during SQL dialect translation. You need to pass UseNativeQuery=1 in your ODBC connection string. See Databricks ODBC docs

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

79751386

Date: 2025-08-30 20:04:24
Score: 1.5
Natty:
Report link
 $( function() {
     $( "#tabs" ).tabs({  heightStyle: "auto"});
     
     $(window).resize(function(){
         $( "#tabs" ).tabs({  heightStyle: "auto"});
     });
} );
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3780619

79751382

Date: 2025-08-30 19:51:20
Score: 1.5
Natty:
Report link

I used this

<style>
          div div div svg g:last-child {
               display: none;
          }
     </style>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: عبدالعزيز الشيخ

79751375

Date: 2025-08-30 19:34:16
Score: 1
Natty:
Report link

Enable global-word-wrap-whitespace-mode.

To make it permanent, add (global-word-wrap-whitespace-mode t) to your .emacs file or enable it with its customize-option.

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

79751372

Date: 2025-08-30 19:24:14
Score: 1
Natty:
Report link

Try to us this, it sorts the Series by values in descending order.

new_df_sorted = new_df.sort_values(ascending=False)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 0ro2

79751368

Date: 2025-08-30 19:14:12
Score: 2.5
Natty:
Report link

from moviepy.editor import VideoFileClip

# Caminho do vídeo MP4 (coloque o arquivo na mesma pasta do script ou ajuste o caminho)

video_path = "estatua_cinematico_realista.mp4"

# Carregar o vídeo

clip = VideoFileClip(video_path)

# Exportar como GIF (15s completo, largura reduzida para não ficar pesado)

gif_path = "estatua_cinematico_realista_full.gif"

clip.resize(width=320).write_gif(gif_path, fps=6)

print("GIF salvo em:", gif_path)

Reasons:
  • Blacklisted phrase (1): não
  • No code block (0.5):
  • Low reputation (1):
Posted by: Engenheiro Agrnomo - Maicon Ra

79751366

Date: 2025-08-30 19:07:10
Score: 0.5
Natty:
Report link

It looks like your gitrepository-2.0 is missing.

You can try to install the missing dependency:

Then try to install grapejuice again:

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

79751346

Date: 2025-08-30 18:38:04
Score: 2.5
Natty:
Report link

I'm hitting this in 2025 - on a modern CPU (AMD) memset with nonzero filler is massively slower and I wonder why - could be some microcode trickery or something else? a bit of context: I'm writing a software rasterizer and I'm clearing a large depth buffer - with zero filler it's the fastest to simply memset the whole buffer, with nonzero filler, I need to parallelize and even then it's slower than serial zero fill... when debugging both simply use rep stosb

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: mar

79751340

Date: 2025-08-30 18:30:02
Score: 2.5
Natty:
Report link

Thanks to those who provided clarity in the comments.

From what I can ascertain so far, the correct way to test in this scenario is to do testing on the live site using a CDP client for Python, the most popular of which being Puppeteer.

If anyone can provide more clarity, please feel free.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dbaser

79751338

Date: 2025-08-30 18:26:01
Score: 1.5
Natty:
Report link

I think I've found a solution.
Try changing the path in ImageSource to
pack://application:,,,/{AssemblyName};component/{anyFolder/image.png}.
In your case, it will look like this:
pack://application:,,,/{AssemblyName};component/Image/NextDay.png
where {AssemblyName} is the name of your project/solution.
This solved the problem for me.

By the way, for your information, if you use Image instead of ImageBrush, there will be no debugging errors, although there will be no image either. But at RunTime everything will work as it does with ImageBrush.

This problem froze my project for two days. I spent two whole days looking for a solution and found this. I doubt this is the right solution, so if anyone finds something better, please let me know.

Reasons:
  • Whitelisted phrase (-1): In your case
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ovter

79751336

Date: 2025-08-30 18:23:00
Score: 1
Natty:
Report link

Ah, I’ve run into similar issues when updating Julia in VS Code. Sometimes a minor version change can break the path detection in the Julia extension, even if Julia itself is installed correctly. A couple of things to try:

  1. Check the Julia path in VS Code settings – make sure it points to the new 1.11.6 executable.

  2. Reload VS Code or reinstall the Julia extension – often this resets the integration.

  3. Verify environment variables – on some systems, the PATH needs to include the new Julia location.

If you’re still stuck, I’ve seen teams like Tech-Stack handle this kind of setup issue by scripting a quick environment check and automated configuration for VS Code + Julia. It saves a lot of time when multiple developers need the same environment and avoids these minor version headaches.

Once the path and extension are aligned, everything should work like before. Don’t worry too much — this is a common hiccup after a patch update.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Echo V. Tornewell

79751324

Date: 2025-08-30 17:56:54
Score: 1.5
Natty:
Report link

QUOTENAME is limited to 128 characters. Try using REPLACE instead.

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

79751320

Date: 2025-08-30 17:50:52
Score: 1
Natty:
Report link

My problem was "Bitdefender Anti-tracker" as soon as I removed this. It worked!
God that was painful to solve

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user6273920

79751319

Date: 2025-08-30 17:44:51
Score: 0.5
Natty:
Report link

beginning of events

08-31 00:45:41.692 l/am_wtf (1754):

[0,1754,system_server,-1,Activity Manager, Sending

non-protected broadcast

android.intent.action.VIVO_SERVICE_STATE from system 1754:system/1000 pkg android Caller=com.android.server.am.ActivityManager Service.broadcastIntentLocked Traced:18351 com.android.server.am.ActivityManage rService.broadcastintentLocked:17365 com.android.server.am.ActivityManagerService .broadcastintentWithFeature: 18595 android.app.Co ntextImpl.sendBroadcast Multiple Permissions:1355 android.content.Context.sendBroadcastMultipl ePermissions:2468 com.android.server.Telephony Registry.broadcastVivoServiceState Changed:2098 com.android.server.Telephony Registry.notifyViv oServiceState For Phoneld: 2041 com.android.interna I.telephony.ITelephony Registry$Stub.onTransact:593 android.os.Binder.exec TransactInternal:1566 android.os.Binder.exec Transact:1505]

08-31 00:45:42.158 I/input interactionbeginning of events

08-31 00:45:41.692 l/am_wtf (1754):

[0,1754,system_server,-1,Activity Manager, Sending

non-protected broadcast

android.intent.action.VIVO_SERVICE_STATE from system 1754:system/1000 pkg android Caller=com.android.server.am.ActivityManager Service.broadcastIntentLocked Traced:18351 com.android.server.am.ActivityManage rService.broadcastintentLocked:17365 com.android.server.am.ActivityManagerService .broadcastintentWithFeature: 18595 android.app.Co ntextImpl.sendBroadcast Multiple Permissions:1355 android.content.Context.sendBroadcastMultipl ePermissions:2468 com.android.server.Telephony Registry.broadcastVivoServiceState Changed:2098 com.android.server.Telephony Registry.notifyViv oServiceState For Phoneld: 2041 com.android.interna I.telephony.ITelephony Registry$Stub.onTransact:593 android.os.Binder.exec TransactInternal:1566 android.os.Binder.exec Transact:1505]

08-31 00:45:42.158 I/input interaction(1754):(1754):

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

79751317

Date: 2025-08-30 17:43:51
Score: 2.5
Natty:
Report link

The gaps were caused by using GL_LINES, which draws line segments between successive pairs or vertices. Incrementally drawing a path with successive vertices is what GL_LINE_STRIP is for.

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

79751311

Date: 2025-08-30 17:30:44
Score: 7
Natty:
Report link

I have the same problem and I can't find the solution. I have tried with a minimal TClientDataset and it still gives the 'Invalid parameter' error in CreateDataSet. Here is the code:

unit uPruebaTClientDataset;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Data.DB, Datasnap.DBClient;

type
  TForm1 = class(TForm)
    Button1: TButton;
    ClientDataSet1: TClientDataSet;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}


procedure TForm1.Button1Click(Sender: TObject);
var
  CDS: TClientDataSet;
begin
  CDS := TClientDataSet.Create(nil);
  CDS.FieldDefs.Add('ID', ftInteger);
  CDS.FieldDefs.Add('Nombre', ftString, 20);
  CDS.CreateDataSet;
end;

end.
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): can't find the solution
  • RegEx Blacklisted phrase (2): can't find the solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Fernando Alonso

79751307

Date: 2025-08-30 17:21:43
Score: 3
Natty:
Report link

Ok, so like you might already be guessing.. it's very likely got something to do with resourcing.. somewhere. Here's a few things you can check on and rule out, or in! Important thing I always mention even though you're doing it already I'd guess: Make sure you have good backups! #2 involves REORG, so it could rearrange things and possibly be a Bad Thing™ but the chances are super low.

Creating Backup:
In SQL Server Management Studio (SSMS), right-click your local database in (localdb)\MSSQLLocalDB, go to "Tasks" > "Back Up...". Choose a destination (e.g., your desktop), and run the backup. This gives you a restore point if anything goes wrong.

SQL Server LocalDB Limitations: LocalDB Constraints: LocalDB is meant for development and testing, not heavy workloads like Azure. With your 500 MB database, 50 tables, 100k+ records in some, and ~1,000 in one, it's probably not hitting that much of a resource limit, but then again you wrote ~1000k which is actually 1 million, and if that's what you truly meant, then yeah it's almost definitely hitting resource limits like RAM and CPU...

  1. Local Machine Limits: Your local setup might not be matching Azure’s almighty power. LocalDB depends on your machine’s resources, so if CPU or memory is tied up by other tasks, performance will tank. Check what’s running using something like procexp64 so you can dig in to the tree of processes if you need to (probably will stick out though, if its a problem..).

  2. Index and Stats Check: Your indexing and paging are solid, but the imported local database might not have the same optimized stats or indexes. Run these to try and bump things around, you can use REORGANIZE instead of REBUILD to be less "destructive" during testing. Obviously do this in a non-prod environment (if anyone else happens to be reading and having similar issues in prod ;) )

    • Use UPDATE STATISTICS [table_name]; to refresh statistics safely without affecting data.

    • For indexes, use ALTER INDEX ALL ON [table_name] REORGANIZE; (Again, less intrusive than REBUILD and will optimize performance without locking the table.

  3. Configuration Differences: Azure almost definitely has some crazy performance tweaks like memory or query settings that aren't even documented (possibly*) and any Special Sauce isn't going to be replicated by LocalDB. Review the compatibility level and settings after importing.

  4. Timeout Issues: The TL;DR is that, almost always, timeout errors suggest some kind of resource strain or misconfiguration. LocalDB might have stricter defaults for resources, so try increasing the timeout in your connection string (e.g., Connect Timeout=30) or optimize queries further if it makes sense. For your specific issue I'd guess with that few records, optimizing queries isn't the issue at all.

  5. Import Process: The "Import Data-tier Application" method might not carry over Azure’s optimizations. Consider scripting the schema and data from Azure (using "Script Database as" or "Generate Scripts" (can be found in the 2nd screenshot) and loading it into SQL Server Express or Developer Edition locally for better performance.

  6. Network Gremlins: So the last thing I'll mention is the ever famous Network Gremlins. They're everywhere. Make sure you don't have a VPN running or installed, like maybe one with a kill switch etc. Also, if you're working remote but also can go to the office, does anything change? If so, try to figure out what's different - It'll either be the work VPN firewall rules, routing, or your home's connection. Use Wireshark to sniff the internet/network adapter, but also sniff localhost adapter 127.0.0.1 - this is my little trick that nobody hardly ever does, and sniffing localhost can tell you a ton of really interesting things. It also works on way more problems than just this one.

Other things you might want to try that are pretty straight forward:

If none of this helps, you might need to share query scripts or logs, anything that can help get you to an answer. Best of luck!

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): having similar issue
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: PACKET TEL INC

79751305

Date: 2025-08-30 17:18:42
Score: 1
Natty:
Report link

try this <button id="button" type="button">Post</button> the type should be button or you can add e.preventDefault() in your JS submit handler.

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user31385948

79751301

Date: 2025-08-30 17:12:40
Score: 2
Natty:
Report link

upgrade pip first, mostlikely it will solve the problem after restarting the kernel. If not, upgrade seaborn as well. it works for me :)

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Phoebe Zou

79751300

Date: 2025-08-30 17:08:40
Score: 1
Natty:
Report link

from moviepy.editor import *

# Paths

audio_path = "/mnt/data/poem_voice.mp3" # Placeholder path for processed audio (user's voice over)

image_path = "/mnt/data/file-8rjN9mu7vCuBf4uxBAN7G3.jpg" # Placeholder for uploaded image

output_path = "/mnt/data/poem_video.mp4"

# Load image

image_clip = ImageClip(image_path, duration=2).resize(height=720)

# Load audio

audio_clip = AudioFileClip(audio_path)

# Combine audio and image

final_video = image_clip.set_audio(audio_clip)

# Export video

final_video.write_videofile(output_path, fps=24)

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

79751293

Date: 2025-08-30 16:59:38
Score: 3
Natty:
Report link

i'm hoping it's okay to ask a question on someone else's question. i'm trying to do something similar, except instead of displaying text in a certain font based on the selected option, i want to display a different image slideshow based on which option is selected. i feel this is getting into much more complicated java than i'm cut out for though. currently, i have html/java code for both autoplay slideshows and static ones you can click to go to the next/previous image. i was hoping to combine that with the slideshow changing based on which option is selected. imagine you are selling a shirt that comes in 5 colours and based on which colour someone chooses, you show a slideshow of several images corresponding to that colour. it's probably too hopeful to think i can throw my code in between the curly braces for each if statement in function styleselect...

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ota

79751292

Date: 2025-08-30 16:58:37
Score: 4.5
Natty: 4.5
Report link

Following link has the answer in it!

https://discuss.pytorch.org/t/confusion-regarding-pytorch-lstms-compared-to-keras-stateful-lstm/44502/4

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

79751291

Date: 2025-08-30 16:52:35
Score: 0.5
Natty:
Report link

You’re right that the Azure Portal doesn’t provide a dedicated view for SQL Managed Instance (SQL MI) quota limits. These quotas are set per subscription and region, and the Quotas blade doesn’t show them. The main ways to check limits are by attempting to create or scale an instance—errors will indicate if you exceed the quota—or by using Azure CLI (az sql mi list-usages) or PowerShell (Get-AzSqlManagedInstanceUsage) to retrieve usage and quota details for your subscription and region. You can also use the Azure REST API to get this information programmatically. If you need higher limits, you can request a quota increase through the Help + Support blade.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cricket Short Clips

79751278

Date: 2025-08-30 16:41:32
Score: 2
Natty:
Report link
"overrides": {
  "esbuild": "^0.25.0",
  "@angular/build": {
    "vite": {
      "esbuild": "^0.25.0"
    }
  },
  "vite": {
    "esbuild": "^0.25.0"
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31385939

79751268

Date: 2025-08-30 16:27:29
Score: 2
Natty:
Report link

uhhhh idk man its hard to decompile and community guidelines very seriously and I have to uncomment or add some lines in the source file and reinstall the server using TightVNC to automatically start at boot on my pi so I can remove the keyboard and mouse and have an available usb port to set up a new threading.Event to control the new sequence stop_event and the definitive evidence that this channel publishes pornographic the Telegram API was unsuccessful in the source file of the GNU and was made for the next step in a few hours

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

79751266

Date: 2025-08-30 16:22:28
Score: 2
Natty:
Report link

Just do :hermes_enabled => false, warning will go. For me it's working. And here is the reference link : https://reactnative.dev/docs/hermes?platform=ios

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

79751256

Date: 2025-08-30 15:56:23
Score: 1.5
Natty:
Report link

I closed the terminal tab, and opened a new one, fixed.

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

79751252

Date: 2025-08-30 15:52:21
Score: 0.5
Natty:
Report link

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Chess vs AI</title>

<style>

body { font-family: sans-serif; display: flex; flex-direction: column; align-items: center; margin-top: 20px; }

#status { margin-bottom: 10px; font-weight: bold; }

#chessboard { display: grid; grid-template-columns: repeat(8, 60px); grid-template-rows: repeat(8, 60px); }

.square { width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; font-size: 36px; cursor: pointer; }

.white { background-color: #f0d9b5; }

.black { background-color: #b58863; }

.selected { outline: 3px solid red; }

.threat { outline: 3px solid red; box-sizing: border-box; }

</style>

</head>

<body>

<div id="status">White's turn</div>

<div id="chessboard"></div>

<button onclick="resetBoard()">Reset</button>

<script>

const boardContainer = document.getElementById('chessboard');

const status = document.getElementById('status');

let board = [];

let selected = null;

let whiteTurn = true;

// Unicode pieces

const pieces = {

'r':'♜', 'n':'♞', 'b':'♝', 'q':'♛', 'k':'♚', 'p':'♟',

'R':'♖', 'N':'♘', 'B':'♗', 'Q':'♕', 'K':'♔', 'P':'♙', '':''

};

// Initial board

const initialBoard = [

['r','n','b','q','k','b','n','r'],

['p','p','p','p','p','p','p','p'],

['','','','','','','',''],

['','','','','','','',''],

['','','','','','','',''],

['','','','','','','',''],

['P','P','P','P','P','P','P','P'],

['R','N','B','Q','K','B','N','R']

];

function renderBoard() {

boardContainer.innerHTML = '';

const threatened = getThreatenedSquares('white');

for (let i=0;i<8;i++) {

for (let j=0;j\<8;j++) {

  const square = document.createElement('div');

  square.classList.add('square');

  square.classList.add((i+j)%2 === 0 ? 'white' : 'black');

  square.textContent = pieces\[board\[i\]\[j\]\];

  square.dataset.row = i;

  square.dataset.col = j;

  square.addEventListener('click', handleSquareClick);

  if (selected && selected.row == i && selected.col == j) {

    square.classList.add('selected');

  }

  if (threatened.some(s =\> s\[0\]===i && s\[1\]===j)) {

    square.classList.add('threat');

  }

  boardContainer.appendChild(square);

}

}

}

// =====================

// Player (Black) logic

// =====================

function handleSquareClick(e) {

if (whiteTurn) return;

const row = parseInt(e.currentTarget.dataset.row);

const col = parseInt(e.currentTarget.dataset.col);

const piece = board[row][col];

if (!selected) {

if (piece && piece === piece.toLowerCase()) {

  selected = {row, col};

  renderBoard();

}

return;

}

if (isLegalMove(selected.row, selected.col, row, col, board[selected.row][selected.col])) {

board\[row\]\[col\] = board\[selected.row\]\[selected.col\];

board\[selected.row\]\[selected.col\] = '';

selected = null;

whiteTurn = true;

status.textContent = "White's turn";

renderBoard();

setTimeout(makeWhiteMove, 500);

} else {

selected = null;

renderBoard();

}

}

// =====================

// AI (White) logic

// =====================

function makeWhiteMove() {

const moves = getAllLegalMoves('white');

if (moves.length===0) {

status.textContent = "Black wins!";

return;

}

// prefer captures

let captureMoves = moves.filter(m => board[m.to[0]][m.to[1]] && board[m.to[0]][m.to[1]].toLowerCase());

let move = captureMoves.length ? captureMoves[Math.floor(Math.random()*captureMoves.length)] : moves[Math.floor(Math.random()*moves.length)];

board[move.to[0]][move.to[1]] = board[move.from[0]][move.from[1]];

board[move.from[0]][move.from[1]] = '';

whiteTurn = false;

status.textContent = "Black's turn";

renderBoard();

}

// =====================

// Move generation

// =====================

function getAllLegalMoves(color) {

const moves = [];

for (let i=0;i<8;i++){

for (let j=0;j\<8;j++){

  let piece = board\[i\]\[j\];

  if (!piece) continue;

  if (color==='white' && piece!==piece.toUpperCase()) continue;

  if (color==='black' && piece!==piece.toLowerCase()) continue;

  const legal = getLegalMoves(i,j,piece);

  legal.forEach(to =\> moves.push({from:\[i,j\],to}));

}

}

return moves;

}

function isLegalMove(r1,c1,r2,c2,piece) {

const legal = getLegalMoves(r1,c1,piece);

return legal.some(m => m[0]===r2 && m[1]===c2);

}

function getLegalMoves(r,c,piece) {

const moves = [];

const color = piece===piece.toUpperCase() ? 'white' : 'black';

const direction = color==='white' ? -1 : 1;

switch(piece.toLowerCase()){

case 'p':

  if (board\[r+direction\] && board\[r+direction\]\[c\]==='') moves.push(\[r+direction,c\]);

  if ((r===6 && color==='white') || (r===1 && color==='black')) {

    if (board\[r+direction\]\[c\]==='' && board\[r+2\*direction\]\[c\]==='') moves.push(\[r+2\*direction,c\]);

  }

  if (c\>0 && board\[r+direction\]\[c-1\] && ((color==='white' && board\[r+direction\]\[c-1\].toLowerCase()) || (color==='black' && board\[r+direction\]\[c-1\].toUpperCase()))) moves.push(\[r+direction,c-1\]);

  if (c\<7 && board\[r+direction\]\[c+1\] && ((color==='white' && board\[r+direction\]\[c+1\].toLowerCase()) || (color==='black' && board\[r+direction\]\[c+1\].toUpperCase()))) moves.push(\[r+direction,c+1\]);

  break;

case 'r': moves.push(...linearMoves(r,c,\[\[1,0\],\[-1,0\],\[0,1\],\[0,-1\]\],color)); break;

case 'b': moves.push(...linearMoves(r,c,\[\[1,1\],\[1,-1\],\[-1,1\],\[-1,-1\]\],color)); break;

case 'q': moves.push(...linearMoves(r,c,\[\[1,0\],\[-1,0\],\[0,1\],\[0,-1\],\[1,1\],\[1,-1\],\[-1,1\],\[-1,-1\]\],color)); break;

case 'k':

  for (let dr=-1;dr\<=1;dr++){

    for (let dc=-1;dc\<=1;dc++){

      if(dr===0 && dc===0) continue;

      const nr=r+dr,nc=c+dc;

      if(nr\>=0 && nr\<8 && nc\>=0 && nc\<8 && (!board\[nr\]\[nc\] || (color==='white'?board\[nr\]\[nc\].toLowerCase():board\[nr\]\[nc\].toUpperCase()))) moves.push(\[nr,nc\]);

    }

  }

  break;

case 'n':

  const knightMoves=\[\[2,1\],\[1,2\],\[2,-1\],\[1,-2\],\[-2,1\],\[-1,2\],\[-2,-1\],\[-1,-2\]\];

  knightMoves.forEach(m=\>{

    const nr=r+m\[0\],nc=c+m\[1\];

    if(nr\>=0 && nr\<8 && nc\>=0 && nc\<8 && (!board\[nr\]\[nc\] || (color==='white'?board\[nr\]\[nc\].toLowerCase():board\[nr\]\[nc\].toUpperCase()))) moves.push(\[nr,nc\]);

  });

  break;

}

return moves;

}

function linearMoves(r,c,directions,color){

const moves = [];

directions.forEach(d=>{

let nr=r+d\[0\],nc=c+d\[1\];

while(nr\>=0 && nr\<8 && nc\>=0 && nc\<8){

  if(!board\[nr\]\[nc\]) moves.push(\[nr,nc\]);

  else {

    if((color==='white' && board\[nr\]\[nc\].toLowerCase()) || (color==='black' && board\[nr\]\[nc\].toUpperCase())) moves.push(\[nr,nc\]);

    break;

  }

  nr+=d\[0\]; nc+=d\[1\];

}

});

return moves;

}

// =====================

// Highlight AI threats

// =====================

function getThreatenedSquares(color) {

const moves = getAllLegalMoves(color);

return moves.map(m => m.to);

}

// =====================

// Reset

// =====================

function resetBoard() {

board = JSO

N.parse(JSON.stringify(initialBoard));

selected = null;

whiteTurn = true;

status.textContent = "White's turn";

renderBoard();

setTimeout(makeWhiteMove, 500);

}

resetBoard();

</script>

</body>

</html>

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Filler text (0): =====================
  • Low reputation (1):
Posted by: Manny Rich Salen

79751244

Date: 2025-08-30 15:37:18
Score: 4
Natty:
Report link

For anyone seeing this now, I made a working solution for this that supports types from 3rd party libraries, enums and more. github.com/eschallack/SQLAlchemyToPydantic# here's a link to an example of json schema generation github.com/eschallack/SQLAlchemyToPydantic/blob/main/example/…

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

79751233

Date: 2025-08-30 15:18:12
Score: 4
Natty:
Report link
  1. https://mathematica.stackexchange.com/editing-help#comment-formatting

  2. https://drive.google.com/file/d/1yH2w3HhmiyXcwBy2t6HXZZpPM0x5BGeu/view?usp=drivesdk

  3. https://mathematica.stackexchange.com/editing-help#images

  4. header 1 header 2
    cell 1 cell 2
    cell 3 cell 4
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jamie Forrester

79751231

Date: 2025-08-30 15:16:11
Score: 1
Natty:
Report link

As Luke pointed out , the brackets are mandatory.

If it does not parse with brackets it is 99.99% due to the fact that you passed a non-null terminated wchar_t string.

The documentation mentions the provided string to be null terminated
A pointer to the NULL-terminated network string to parse.

https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-parsenetworkstring

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

79751226

Date: 2025-08-30 15:05:09
Score: 1
Natty:
Report link

This looked nice for me (simple x/y plot).

import matplotlib.pyplot as plt
plt.plot(x, y)
plt.suptitle("This sentence is\nbeing split\ninto three lines")
plt.tight_layout(rect=(0.03, 0., 0.93, 1))
plt.show()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Iso E-Super

79751218

Date: 2025-08-30 14:43:05
Score: 2
Natty:
Report link

I also think putting <?tex \usepackage{amsmath}?> into the source document would do the trick.

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

79751213

Date: 2025-08-30 14:33:03
Score: 2
Natty:
Report link

But first -> why just don't remove old Entity in microservice when You have it in SDK?

If You want disable/enable sdk for concrete microservices, configure it per microservice with @EnableJpaRepositories, @ComponentScan, @EntityScan (just dont specify SDK package there).

If You don't want remove entity from microservice, maybe pack this "shared logic" with "shared fields" into @Embeddable class and add it in microservice entity as @Embedded object => but if You can do this, i would recommend to reengineer this structure into f.e inheritence ORM (@MappedSuperclass, @Inheritance) or interface inheritance in plain Java.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @EnableJpaRepositories
  • User mentioned (0): @ComponentScan
  • User mentioned (0): @EntityScan
  • User mentioned (0): @Embeddable
  • User mentioned (0): @Embedded
  • User mentioned (0): @Inheritance
  • Low reputation (0.5):
Posted by: ECHU

79751211

Date: 2025-08-30 14:30:02
Score: 5
Natty:
Report link

Thank you for getting back to me with suggestions. It was my stupid mistake. My arrays were correct except for the arrays in the structures which were too small. Fixed and working. Again, thank you... Ronnie

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

79751208

Date: 2025-08-30 14:25:00
Score: 8.5
Natty: 4.5
Report link

Sorry, I know this post may be old, I also encountered this problem, spent a whole day and still haven't solved it, did you finally find the answer?

Reasons:
  • RegEx Blacklisted phrase (3): did you finally find the answer
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Avenger

79751201

Date: 2025-08-30 14:17:59
Score: 0.5
Natty:
Report link

I encountered the same issue.

My mistake was that I didn't enable the extension : C/C++ which was required to execute the cppbuild task.

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bsoulmindy

79751172

Date: 2025-08-30 13:29:49
Score: 1
Natty:
Report link

That worked in my case:

<f:for each="{slider_item.image}" as="slider_item_image" iteration="i">
  <f:image image="{slider_item_image}" treatIdAsReference="1" />
</f:for>

Simple, if you now how :-)

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

79751166

Date: 2025-08-30 13:14:46
Score: 1.5
Natty:
Report link

We store our createdAt fields in DynamoDB as Strings in ISO 8601 format in the sort key. That format is designed to be sortable for a date value. Recommend using that over an integer for the date value

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Boiler Bill

79751161

Date: 2025-08-30 12:58:43
Score: 0.5
Natty:
Report link

if it is MultipartFile then

use

public boolean isValidate(MultipartFile file)
{
return Objects.equals(file.getContentType(),"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sudhansu

79751138

Date: 2025-08-30 12:18:33
Score: 1
Natty:
Report link

I'm currently using aalto, so (as Mark Rotteveel pointed out) I can spawn an instance directly like:

final XMLInputFactory2 factory = new com.fasterxml.aalto.stax.InputFactoryImpl();

This can be modified to be any specific implementation.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Coarse Rosinflower

79751131

Date: 2025-08-30 12:07:30
Score: 1
Natty:
Report link

I found a solution i just add a condition in app.tsx

const basePath = '/app'; // sub floder

// Intercept all Inertia requests to enforce the correct prefix
router.on('start', ({ detail: { visit } }) => {
    const path = visit.url.pathname;

//add prefix if needed
   if (path.startsWith('/') && !path.startsWith(basePath)) {
        visit.url.pathname = basePath + path;
    }
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kamal ennaji

79751128

Date: 2025-08-30 12:00:29
Score: 1
Natty:
Report link

Yes definitely, we can do ETL testing without using any automation tool. For that, there are several steps we have to follow. For this, we can use Excel and SQL queries.

First step in which we can check source and target data. We write queries on the source and target tables, then compare the results.

In second step we check row count. Count rows in source and target to confirm they match.

In third step we check data values. Take sample data from source and target to ensure it matches.

In fourth step we check transformations. For transformed data, calculate in SQL/Excel and compare with target.

Then we have fifth step in which we check null and duplicate. We can run queries for nulls and duplicates to ensure data is correct.

And in last step we check incremental load. Add rows in source and check they reflect in target.

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

79751126

Date: 2025-08-30 11:59:29
Score: 0.5
Natty:
Report link

I encountered this issue when cloning the repository via the HTTPS Git URL ( https://github.com/XXXXX/YYY.git ) . Switching to the SSH Git URL ( [email protected]:XXXXX/YYYY.git ) as I had SSH keys already configured) resolved the problem.

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

79751115

Date: 2025-08-30 11:40:24
Score: 0.5
Natty:
Report link

The issue was caused by how the ViewModel was declared in Koin. Using:

single<UserChatViewModel>(createdAtStart = false) { UserChatViewModel(get(), get()) }

creates a singleton ViewModel. When you first open the composable, it works fine. But when the composable is removed from the backstack, Jetpack Compose clears the ViewModel’s lifecycle, which cancels all coroutines in viewModelScope. Since the singleton instance remains, revisiting the composable uses the same ViewModel whose coroutine scope is already cancelled, so viewModelScope.launch never runs again.

Changing it to:

viewModelOf(::UserChatViewModel)

ties the ViewModel to the composable lifecycle. Compose clears the old ViewModel when navigating away and creates a new instance when revisiting. This ensures a fresh viewModelScope for coroutines, and your getAllUsersWithHint() function works every time.

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

79751113

Date: 2025-08-30 11:38:23
Score: 1.5
Natty:
Report link

You could instead do:

impl Classes {
    pub fn get_a(&self) -> Option<&A> {
        match self {
            Classes::A(o) => Some(o),
            _ => None,
        }
    }
}

fn main() -> Result<(), String> {
    let obj: Rc<RefCell<Classes>> = Rc::new(RefCell::new(Classes::A(A::default())));
    let a = obj.borrow().get_a().ok_or("not A".to_string())?;
    Ok(())
}

Rust Playground

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

79751106

Date: 2025-08-30 11:33:22
Score: 2.5
Natty:
Report link

CREATE TABLE pg4e_debug (

id SERIAL,

query VARCHAR(4096),

result VARCHAR(4096),

created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,

PRIMARY KEY(id)

);

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

79751102

Date: 2025-08-30 11:28:20
Score: 1
Natty:
Report link

The major problem I see here is indentation. Class methods shoud be indented inside the class to distinguish them of global functions, and code within functions must be indented too.

Quick recap of code blocks and indentation:

A code block is a set of Python code that's indented one extra level. The line just before the code block ends with a colon (:) and it contains the statement which needs the code block for it to work i.e. if, while , class , def, etc. For example, an if statement contains the if keyword itself, a condition and the code block to be executed in case the condition evaluates to True (note that if statements end with a colon to tell the Python interpreter the block is about to start), like this:

if condition:
    do_something()
    do_another_thing()
do_something_after_the_if_statement()

A code block can be inside another code block (that's called "nesting"). For that, just add an extra level of indentation in the inner code block:

print("Base level")

if True:
    print("First level")
    print("still in first level")

    if True:
        print("Second level")

        if True:
            print("Third level")

        print("Back to second level")

    print("Back to first level")

print("Back to base level")

The blank lines are just for clarification and have no syntactic utility.

In the case of function definitions, the code block indicates the code to be executed when the function is called. In class definitions, the code block is executed right away, but is only accessible to all instances of the class. Remember that class methods are functions, so code inside them must have also an extra level of indentation. A visual example:

class MyClass(object):
    def __init__(self): # the 'def' statement is in class definition (1 level)
        print("Initializing class...")
        self.a = 0
        self.b = 0
        self.c = 0 # This assignment is in method definition, which is inside class definition (2 levels)

    def a_method(self)
        self.a = 1
        self.b = 2
        self.c = 3
        if self.c == 3
            print(a + b + c) # This statement is in an if clause, which is inside a method definition, which in turn is inside a class definition (3 levels)

do_something_thats_not_in_the_class_definition()

Back to your file, your code with proper indentation would look like this:

import select
import socket
import sys
import server_bygg0203
import threading
from time import sleep

class Client(threading.Thread):

    #initializing client socket

    def __init__(self,(client,address)):

        threading.Thread.__init__(self) 
        self.client = client 
        self.address = address
        self.size = 1024
        self.client_running = False
        self.running_threads = []
        self.ClientSocketLock = None
        self.disconnected = threading.Event()

    def run(self):

        #connect to server
        self.client.connect(('localhost',50000))

        #self.client.setblocking(0)
        self.client_running = True

        #making two threads, one for receiving messages from server...
        listen = threading.Thread(target=self.listenToServer)

        #...and one for sending messages to server
        speak = threading.Thread(target=self.speakToServer)

        #not actually sure what daemon means
        listen.daemon = True
        speak.daemon = True

        #appending the threads to the thread-list
        self.running_threads.append((listen,"listen"))
        self.running_threads.append((speak, "speak"))
        listen.start()
        speak.start()

        while self.client_running:

            #check if event is set, and if it is
            #set while statement to false

            if self.disconnected.isSet():
                self.client_running = False 

        #closing the threads if the client goes down
        print("Client operating on its own")
        self.client.shutdown(1)
        self.client.close()
        
        #close threads

        #the script hangs at the for-loop below, and
        #refuses to close the listen-thread (and possibly
        #also the speak thread, but it never gets that far)

        for t in self.running_threads:
            print "Waiting for " + t[1] + " to close..."
            t[0].join()
        self.disconnected.clear()
        return

    #defining "speak"-function      
    def speakToServer(self):

        #sends strings to server
        while self.client_running:
            try:
                send_data = sys.stdin.readline()
                self.client.send(send_data)

                #I want the "close" command
                #to set an event flag, which is being read by all other threads,
                #and, at the same time set the while statement to false

                if send_data == "close\n":
                    print("Disconnecting...")
                    self.disconnected.set()
                    self.client_running = False
            except socket.error, (value,message):
                continue
        return

    #defining "listen"-function
    def listenToServer(self):

        #receives strings from server
        while self.client_running:

            #check if event is set, and if it is
            #set while statement to false

            if self.disconnected.isSet():
                self.client_running = False
            try:
                data_recvd = self.client.recv(self.size)
                print data_recvd
            except socket.error, (value,message):
                continue
        return

if __name__ == "__main__":
    c = Client((socket.socket(socket.AF_INET, socket.SOCK_STREAM),'localhost'))
    c.run()
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: guest

79751086

Date: 2025-08-30 11:00:15
Score: 8
Natty: 4
Report link

I'm part of the "Team Digitale" at a high school and we’ve encountered the same issue after the deprecation of ContactsApp.

I just read the discussion in the link you shared (issuetracker.google.com/issues/199768096). Using GAM7, I wrote this to move (not copy) otherContact to My Contacts, and it seems to work. After that, you can delete it with People.deleteContact().

function move_to_my_contact(contact) {
  var new_rn = contact.resourceName.replace("otherContacts", "people"); 
  People.People.updateContact({
    "resourceName": new_rn, 
    "etag": contact.etag, 
    "memberships": [
      {
        "contactGroupMembership": {
          "contactGroupResourceName": "contactGroups/myContacts"
        }
      }
    ]
  },
  new_rn,
  { updatePersonFields: "memberships" });
}

Did you manage to solve the issue on your own? If so, could you let me know if you found a better solution?

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): could you let me know
  • RegEx Blacklisted phrase (3): Did you manage to solve the
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Andrea Dalla Guarda

79751084

Date: 2025-08-30 10:55:13
Score: 1.5
Natty:
Report link

Power BI Cloud and Power BI Desktop have different behavior when it comes to culture settings. Power BI Desktop uses the local system settings for culture, while Power BI Cloud follows the region set in your Power BI service account. This difference can lead to discrepancies in date formats, number separators, and other locale-specific settings. To ensure consistency, you may need to adjust the culture settings manually in Power BI Desktop and ensure your account region aligns with your desired culture in Power BI Cloud.

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

79751080

Date: 2025-08-30 10:45:11
Score: 2.5
Natty:
Report link

At Liftoff Solutions, we provide innovative services from lines of credit, business loans, ACH processing solutions, Same-Day ACH, card issuing, virtual debit cards, payroll cards and high risk ACH processing.

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

79751074

Date: 2025-08-30 10:31:08
Score: 8
Natty: 5
Report link

I'm part of the "Team Digitale" at a high school in Thiene (VI, Italy) and we’ve encountered the same issue after the deprecation of ContactsApp.

I just read the discussion in the link you shared (issuetracker.google.com/issues/199768096). Using GAM7, I wrote this to move (not copy) otherContact to My Contacts, and it seems to work. After that, you can delete it with People.deleteContact().

function move_to_my_contact(contact) {
  var new_rn = contact.resourceName.replace("otherContacts", "people"); 
  People.People.updateContact({
    "resourceName": new_rn, 
    "etag": contact.etag, 
    "memberships": [
      {
        "contactGroupMembership": {
          "contactGroupResourceName": "contactGroups/myContacts"
        }
      }
    ]
  },
  new_rn,
  { updatePersonFields: "memberships" });
}

Did you manage to solve the issue on your own? If so, could you let me know if you found a better solution?

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): could you let me know
  • RegEx Blacklisted phrase (3): Did you manage to solve the
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Andrea Dalla Guarda

79751061

Date: 2025-08-30 10:02:02
Score: 1.5
Natty:
Report link

The message wasn’t clear enough it only said that some files aren’t aligned to the 16 KB requirement, but it didn’t specify from which library those files.

Full file dir was lib/arm64-v8a/libmodft2.so and if you search for part of it (in my case modft2) you can identify which library is causing the issue.

After that updating or replacing the library (I had to replace it in my case) solved the problem.

Before

Before fix

After

After issued the fixed

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

79751046

Date: 2025-08-30 09:31:55
Score: 1.5
Natty:
Report link

Relevant answer: https://stackoverflow.com/a/27921592/21489337

tl;dr, run this command in the terminal

stty echo

Unlike the accepted answer above, this one should be able to restore the ability to see the typed commands without needing to erase the past history of your terminal session.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Suggon

79751031

Date: 2025-08-30 08:46:46
Score: 2.5
Natty:
Report link

how do you get

Reasons:
  • Blacklisted phrase (1): how do you
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): how do you
  • Low reputation (1):
Posted by: Auguston Lomae

79751023

Date: 2025-08-30 08:31:42
Score: 0.5
Natty:
Report link

Took me 30 minutes to figure out where the hell my shelf has been placed 😅

If you ever end up reading this post, please note that the Pycharm documentation is outdated (as of 2025) and there is neither a VCS Menu nor Version Control Window

But, Shelves are in a Tab of the Commit Window.

enter image description here

I am running PyCharm 2025.1.2, Build #PY-251.26094.141, built on June 10, 2025

Reasons:
  • No code block (0.5):
Posted by: XavierA

79751017

Date: 2025-08-30 08:14:38
Score: 2
Natty:
Report link

ยินดีด้วยครับ! 🤩 การตรวจสอบค่าในโครงสร้าง JSON ด้วย JavaScript นั้นทำได้ไม่ยากเลย ผมมีสคริปต์ฟังก์ชันที่พร้อมใช้งานให้คุณทันทีเลยครับ

โค้ด JavaScript ที่ใช้งานได้

ฟังก์ชันนี้จะรับอินพุต 2 ตัวตามที่คุณต้องการ: taskId (ค่าที่ต้องการค้นหา) และ jsonData (โครงสร้าง JSON) จากนั้นจะวนลูปตรวจสอบว่ามีค่า ExternalTaskId ที่ตรงกับค่าที่ต้องการหรือไม่

/**

* ตรวจสอบว่าค่า ExternalTaskId มีอยู่ในโครงสร้าง JSON หรือไม่

* @param {string} taskId - ค่า Task ID ที่ต้องการค้นหา

* @param {object} jsonData - โครงสร้าง JSON ที่มีอาร์เรย์ของ items

* @returns {boolean} - คืนค่า true หากพบ, false หากไม่พบ

*/

function isTaskFound(taskId, jsonData) {

// ตรวจสอบว่า jsonData และ jsonData.items มีอยู่และเป็นอาร์เรย์หรือไม่

if (!jsonData || !Array.isArray(jsonData.items)) {

return false;

}

// วนลูปผ่านแต่ละ item ในอาร์เรย์ items

for (const item of jsonData.items) {

// ตรวจสอบว่าค่า ExternalTaskId ของ item นั้นๆ ตรงกับ taskId ที่ส่งเข้ามาหรือไม่

if (item.ExternalTaskId === taskId) {

  // หากพบ ให้คืนค่า true ทันที

  return true;

}

}

// หากวนลูปจนจบแล้วยังไม่พบ ให้คืนค่า false

return false;

}

// ตัวอย่างการใช้งาน:

const varTaskID = "TaskID3"; // อินพุต 1

const jsonInput = { // อินพุต 2

"items": [{

"ExternalParentTaskId": "12345",

"ExternalTaskId": "TaskID1"

}, {

"ExternalParentTaskId": "11111",

"ExternalTaskId": "TaskID2"

}, {

"ExternalParentTaskId": "3456",

"ExternalTaskId": "TaskID3"

}, {

"ExternalParentTaskId": "423423",

"ExternalTaskId": "TaskID3"

}, {

"ExternalParentTaskId": "55666",

"ExternalTaskId": "TaskID3"

}]

};

// เรียกใช้ฟังก์ชันเพื่อตรวจสอบและเก็บผลลัพธ์

const result = isTaskFound(varTaskID, jsonInput);

// แสดงผลลัพธ์

console.log(result); // จะแสดงผลลัพธ์เป็น: true

การทำงานของโค้ด

* ฟังก์ชัน isTaskFound: รับค่า taskId และ jsonData เป็นพารามิเตอร์

* การตรวจสอบความถูกต้อง: โค้ดจะตรวจสอบเบื้องต้นก่อนว่า jsonData มีอยู่จริงและ jsonData.items เป็นอาร์เรย์หรือไม่ เพื่อป้องกันข้อผิดพลาดหากโครงสร้างข้อมูลไม่ถูกต้อง

* การวนลูป: ใช้ for...of เพื่อวนลูปทีละรายการในอาร์เรย์ items

* การเปรียบเทียบค่า: ในแต่ละรอบการวนลูป จะเปรียบเทียบค่าของ item.ExternalTaskId กับ taskId ที่เราต้องการค้นหา

* การคืนค่า:

* ถ้าพบค่าที่ตรงกันเมื่อใด ฟังก์ชันจะ คืนค่า true ทันที และหยุดการทำงาน เพื่อประสิทธิภาพที่ดีที่สุด

* ถ้าวนลูปจนครบทุกรายการแล้วยังไม่พบค่าที่ตรงกัน ฟังก์ชันจะ คืนค่า false

คุณสามารถนำโค้ดนี้ไปใช้งานได้เลยครับ โค้ดนี้ถูกออกแบบมาให้ทำงานได้อย่าง

รวดเร็วและมีประสิทธิภาพโดยไม่ต้องใช้ไลบรารีเพิ่มเติมใดๆ ครับ 😊

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: lnspira firma

79751012

Date: 2025-08-30 08:08:37
Score: 1.5
Natty:
Report link

If you are looking for a simple hosting for markdown file, you can try https://publishmarkdown.com/

It is a simple solution to publish your markdown online and share it to the others

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

79751010

Date: 2025-08-30 08:00:35
Score: 0.5
Natty:
Report link

It is a bug in Pycharm:
https://youtrack.jetbrains.com/issue/PY-57566/Support-PEP-660-editable-installs

Pycharm cannot (yet) deal with the advanced ways setuptools installs editable packages. Using either

Should solve this problem. DISCLAIMER, I've only tested the hatchling version, works fine for me.

Background/WHY?

In site-packages, the file mypackage-0.6.77.dist-info/direct_url.json contains infos where the editable package can be found. Installed with hatchling, this file just contains a path. With setuptools, it contains a pointer to .pth file, and this is not understood by Pycharm.

Reasons:
  • Blacklisted phrase (0.5): WHY?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
Posted by: benzkji

79751008

Date: 2025-08-30 07:56:34
Score: 2.5
Natty:
Report link

To disable mand on Ubuntu I do it like this sudo ln --backup --symbolic --verbose $(which true) $(which mandb).

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michel

79751004

Date: 2025-08-30 07:50:33
Score: 1.5
Natty:
Report link

I tried to use jsdoc for an old project that was latge and complex. The verbosity killed me from a dx point of view, the amount of crap you have to type especially when dealing with generics just adds even more complexity to the project. I switched to TS and it more than halved the amount of effort required and was CONSIDERABLY better at dealing with generics. And having that extra step for build stage i believe is a worthwhile tradeoff. In my opinion for big projects TS is a more appropriate tool that helps you avoid overdocumenting and keeps your code quite elegant.

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

79751003

Date: 2025-08-30 07:49:33
Score: 0.5
Natty:
Report link

You have to use "|" instead of "/".

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: custom-metrics-gmp-hpa
  namespace: default
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: custom-metrics-gmp
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - type: Pods
    pods:
      metric:
        name: prometheus.googleapis.com|custom_prometheus|gauge
      target:
        type: AverageValue
        averageValue: 20

Check the official docs example:
https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#custom-metric

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

79750996

Date: 2025-08-30 07:35:29
Score: 3
Natty:
Report link

You can put a SequentialAgent in the sub_agents parameter of a root agent.

Refer to: https://github.com/google/adk-samples/blob/main/python/agents/machine-learning-engineering/machine_learning_engineering/agent.py

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