79251732

Date: 2024-12-04 15:16:09
Score: 0.5
Natty:
Report link

I know that the question wants to avoid using awk... however there is a very elegant one-liner to do it:

trim_path=$(echo "$path" | awk '$1=$1')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Martín Zaragoza

79251701

Date: 2024-12-04 15:10:06
Score: 6 🚩
Natty: 5
Report link

i'm having the same problem with Z/OS for my case i do have a licence file db2jcc_licence_cu.jar and db2jcc_licence_cisuz.jar and a driver db2jcc.jar. using those files i can connect with sqldevelopper but not the python code.

Reasons:
  • Blacklisted phrase (1): i'm having the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i'm having the same problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: redone

79251688

Date: 2024-12-04 15:07:05
Score: 1
Natty:
Report link

It also exists the delayUntil method for Mono:

Mono<Foo> fooMono = fooService.loadFoo();
fooMono.delayUntil(foo -> barService.loadBarForFoo(foo))

Or, using method reference:

Mono<Foo> fooMono = fooService.loadFoo();
fooMono.delayUntil(barService::loadBarForFoo)

Method reference: Mono.delayUntil

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

79251679

Date: 2024-12-04 15:04:04
Score: 0.5
Natty:
Report link

For Better Performance :

Using clob : use this when your use case is to a) retrieve entire text in one step b) edit large sections of text c) less frequent edits or updates to text.

Note : storing information to clob is easy and simple as it is a single step process .

Using splitting approach and placing in varchar : use this when your use case is to do a) frequent smaller edits to text or to smaller sections of the text.

Note : Saving by splitting and placing in varchar and combining while retrieving might cause complexities.

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

79251665

Date: 2024-12-04 15:00:03
Score: 1.5
Natty:
Report link

I was facing the same issue with python's cryptography library v44.0 on AWS lambda, It turns out AWS lambda's execution environment runs on Amazon linux 2 which has glibc version 2.26 and the latest cryptography lib uses glib 2.28.

And I found out that, The cryptography library v37.0.4 is known to work with glibc 2.26. So downgrading to v37.0.4 solves the issue.

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

79251654

Date: 2024-12-04 14:58:02
Score: 1
Natty:
Report link

In our case, it helped a lot to exclude our migrations folder within the .csproj file,

<Compile Remove="./Migrations/*.cs"/>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mudo121

79251652

Date: 2024-12-04 14:57:01
Score: 5
Natty:
Report link

I am having the same issue with a .cfg file. I filed an issue with Chromium Here. Unfortunately this is not an issue with the API but the browser itself. They replied that this is intended behavior and they won't fix.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: MichaelH

79251651

Date: 2024-12-04 14:57:01
Score: 3
Natty:
Report link

You just need to rename the name of your file so that it doesn't match one of the commands in Python

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

79251649

Date: 2024-12-04 14:56:01
Score: 0.5
Natty:
Report link

If you want to watch video over Vacuum, full vacuum and Autovacuum you can watch over youtube: https://www.youtube.com/watch?v=kR6HZjMfseo

There is a utility you can use for Full vacuum which is "pg_repack" you can consider that as well. This utility does the full vacuum and does not lock the table (minimal). https://www.youtube.com/watch?v=vdCPDf3pHKo

There is a whole series for the vacuum and postgres.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user11951698

79251643

Date: 2024-12-04 14:55:00
Score: 3
Natty:
Report link

hello there do you can add more informations wan used some features or after the timing use should this informations to answer

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

79251635

Date: 2024-12-04 14:52:00
Score: 2.5
Natty:
Report link

The error arises because Terraform does not allow embedding complex data structures (like objects or maps) directly into a string template. To create a .tfvars file with the contents of locals.replication_tasks, you need to serialize the data structure into a format like JSON using jsonencode function, which is compatible with .tfvars.

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

79251628

Date: 2024-12-04 14:48:59
Score: 2
Natty:
Report link

Same issue here, copilot was the reason. I tried everything including,

Still the same.

However, when i disabled copilot extension it started working again.

Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (0.5):
  • No code block (0.5):
Posted by: atakann

79251615

Date: 2024-12-04 14:46:58
Score: 3
Natty:
Report link

As @seenukarthi pointed out in a comment, it's more than likely your corporate proxy. I would download the root certificate from your browser and add it to your JDK's cacerts and see if that helps.

How to import a .cer certificate into a java keystore?

You can download the cert from your browser through the certificate submenu.

Submenu Part 1

Submenu Part 2

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @seenukarthi
  • Low reputation (1):
Posted by: Sael Torres-Diaz

79251610

Date: 2024-12-04 14:45:58
Score: 1.5
Natty:
Report link

The Instagram Story Scraper in PHP is a handy tool for developers who need to access and analyze Instagram Stories programmatically. It's perfect for automating tasks like gathering insights or tracking content performance. However, if you’re using this for business or personal branding, make sure you focus on engaging your followers authentically. Tools like this should complement your efforts to grow your Instagram followers through quality content and consistent interaction. Always respect privacy guidelines and Instagram’s terms of service to keep your account safe!

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

79251600

Date: 2024-12-04 14:41:57
Score: 3.5
Natty:
Report link

Set the concurrency to 1.Typically it the _temporary file.

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

79251587

Date: 2024-12-04 14:38:56
Score: 1.5
Natty:
Report link

or, you can "fake" result like this:

createNativeQuery("select 1 as select_function_ok from (select my_function()) as select_my_function").getSingleResult()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pavel Semela

79251580

Date: 2024-12-04 14:36:56
Score: 1.5
Natty:
Report link

This is apparently possible and not that complex.

This repo has a lot of efi utils, including a beep.efi (and its source code). By examining the source, it seems it produces sound the old way with a square wave through the speaker.

I have not tried the utility myself yet.

https://github.com/fpmurphy/UEFI-Utilities-2018/tree/master/MyApps

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

79251575

Date: 2024-12-04 14:35:55
Score: 2
Natty:
Report link

In a data analysis project with Excel files larger than 50Mb, I had great difficulty using Pandas.

For this reason, I decided to create an extension (C++) that reads Excel spreadsheets directly into Pandas dataframes. With it, I achieved good performance gains in this process.

If you are interested, the project for this extension (dll/so) is available here.

Important notice: This project was entirely created by me and is completely free. I'm not trying to self-promote, I'm just trying to help.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nelson

79251563

Date: 2024-12-04 14:32:55
Score: 2
Natty:
Report link

You may use this alternative custom formula:

=REDUCE(FALSE,ARRAYFORMULA(TO_DATE(B1:B)>(TODAY()-2)), LAMBDA(a,c, a+c))

Sample Output:

enter image description here

Reference: ARRAYFORMULA

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

79251562

Date: 2024-12-04 14:32:55
Score: 0.5
Natty:
Report link

I would try the following:

First, let's examine the SQL side. Check your table indexes:

SHOW INDEX FROM hr_ship_order;

There should be an index on the order_id column.

Then make sure that your SQL statements are working correctly.

Use the EXPLAIN command to see if the given SELECT statement is utilizing the table indexes:

Put the order_id in the SELECT as an integer:

EXPLAIN SELECT * FROM `hr_ship_order` WHERE `order_id` = 319769;

Then, as a string:

EXPLAIN SELECT * FROM `hr_ship_order` WHERE `order_id` = "319769";

Check the possible_keys and key columns in the result for both cases. In the second case, you should be able to see the indexes used during the SELECT.

Now, let's move on to the PHP/Laravel side.

Let's see the SQL result of your query:

dd(ShipOrderModel::where('order_id', $orderId)->toSql());

You should see something like this:

"select * from `hr_ship_order` where `order_id` = ?"

If you need the $orderId as a string everywhere, it might be a good idea to set a cast in the ShipOrderModel.

If order_id is a regular column:

protected $casts = [
    'order_id' => 'string'
];

If order_id is the primary key of your table:

protected $keyType = 'string';

Finally, check if the $orderId is still a string in the WHERE clause of the SELECT statement. Let's dd your query and check:

dd(ShipOrderModel::where('order_id', $orderId)

You can verify this by checking the output of the command above. Find the wheres array:

wheres: array:1 [▼
  0 => array:5 [▼
    "type" => "Basic"
    "column" => "order_id"
    "operator" => "="
    "value" => "319769"
    "boolean" => "and"
  ]
]

If the "value" is still a string, then everything is fine.

Last question, which could have been the first. :) What PHP and Laravel versions are you using?

Reasons:
  • Whitelisted phrase (-1): try the following
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: andrashandler

79251557

Date: 2024-12-04 14:31:54
Score: 1
Natty:
Report link

I have installed latest Android Studio which seems to have a too new version of JAVA. Simply switching to the master channel of flutter did remove the issue.

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

79251555

Date: 2024-12-04 14:30:54
Score: 1
Natty:
Report link

Okay guys, today I don't know if I found solution or whatever but: First I've unchecked For install builds only and Based on dependency analysis, next I've run my project and it finally works! I don't know why but If I checked it again, its still works good as before. I also checked how it is in brand new project and the For install build only its unchecked so I unchecked it too. (I've also check the commits and yes, I changed the value for mistake :v OMG)

enter image description here

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

79251554

Date: 2024-12-04 14:30:54
Score: 0.5
Natty:
Report link
filtered_df = df[df['Age'] > 30]

This is vectorized and efficient for filtering rows in Pandas DataFrames.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Prathik Kini

79251544

Date: 2024-12-04 14:28:53
Score: 1.5
Natty:
Report link

It seems to have moved to Edit -> Edit notebook metadata in the newer version.

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

79251540

Date: 2024-12-04 14:27:53
Score: 0.5
Natty:
Report link
Dim lststrSort As New List(Of String) From {"D", "d"}
lststrSort.Sort()

print(lststrSort) ' {d, D}
print("d" < "D") '  False
print(String.Compare("d", "D") < 0) ' True

String.Compare and < work differntly, sorting lists is consistant with String.Compare, but not with <.

I have option compare Binary on.

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

79251539

Date: 2024-12-04 14:26:53
Score: 2.5
Natty:
Report link

Did you verify your proguard rules file? Incorrect or missing Proguard rules leading to classes being stripped or altered during release builds. Also make sure you use updated version Using an outdated version of the flutter_inappwebview package incompatible with your Flutter or Android versions may cause this issue.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: MahaLakshmy Krishnamoorthy

79251534

Date: 2024-12-04 14:25:53
Score: 3.5
Natty:
Report link

Draft the header or footer and try opening it from the Elementor builder

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

79251527

Date: 2024-12-04 14:23:52
Score: 0.5
Natty:
Report link

"OBIEE 10g" is end of life since over a decade. Also it's a platform product and not one that you install on a laptop. If you're after something modern and lightweight where you don't need any install then go for Oracle Analytics Cloud.

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

79251523

Date: 2024-12-04 14:23:51
Score: 5.5
Natty: 5.5
Report link

does it work After opening twitch, my window immediately closes?

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

79251507

Date: 2024-12-04 14:18:50
Score: 2
Natty:
Report link

But if you want to choose locally your version just do "appVersionSource": "local" in the eas.json

then change the version and buildNumber/versionCode (ios/android) in the app.json under expo.

check the documentation: https://docs.expo.dev/build-reference/app-versions/#syncing-versions-from-remote-to-local

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jean-Emmanuel Perramant

79251506

Date: 2024-12-04 14:18:50
Score: 1
Natty:
Report link

Since you mentionned "true" is a string, try this : "true".equals(input_row.actual)

If "input_row.actual" contains Null values, your job will throw a NullPointerException

Also check if input_row.actual equals "TRUE" or "True" because equals is case sensitive

If it still doesnt work add a tJavaRow component and try to log the value with System.out.println("Value of row: " + input_row.actual);

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Seka

79251505

Date: 2024-12-04 14:18:50
Score: 1.5
Natty:
Report link

Keep multiple yml files under resources folder and add below piece in the databricks.yml

include:
   - resources/*.yml
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Deva

79251494

Date: 2024-12-04 14:14:48
Score: 1
Natty:
Report link

The venv module, introduced in Python 3.3, is a built-in tool to create isolated Python environments. It lets you manage dependencies for individual projects without affecting your system's Python or other projects. It’s simple, lightweight, and doesn’t require extra installation.

Here’s how it compares to similar tools:

virtualenv: An older, feature-rich alternative that works with Python versions before 3.3 and offers more customization. pyenv: Focuses on managing multiple Python versions, not virtual environments. It can pair with pyenv-virtualenv for both. virtualenvwrapper: Adds convenience commands for managing virtualenv environments. pipenv: Combines virtual environment and dependency management, with features like dependency locking and Pipfile. If you're using Python 3.3 or later, venv is usually enough for basic needs. Use other tools if you need advanced features or compatibility with older Python versions.

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

79251488

Date: 2024-12-04 14:13:48
Score: 1
Natty:
Report link

Make sure you also have the Kafka Streams dependency in your project.. took me hours to figure it out..

        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka-streams</artifactId>
            <version>3.7.0</version>
        </dependency>
   
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emanuele Righetti

79251475

Date: 2024-12-04 14:10:47
Score: 3
Natty:
Report link

10000000000000000000000000000000 cps mmgtf ttdrddrxgbbnhmhggdv i am 9 years old gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Filler text (0.5): 0000000000000000000000000000000
  • Filler text (0): gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
  • Low entropy (1):
  • Low reputation (1):
Posted by: mw220973 mw220973

79251473

Date: 2024-12-04 14:09:47
Score: 0.5
Natty:
Report link

If you don't mind to save the file in another format, one solution would be to use pickle format:

report_df.to_pickle('file.pkl')
report_df2 = pd.read_pickle('file.pkl')

Or json format if you prefer to "see" the data:

report_df.to_json('file.json')
report_df2 = pd.read_json('file.json')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds

79251460

Date: 2024-12-04 14:05:45
Score: 1
Natty:
Report link

For me it looked like there were some compatibility issues of environments(applications). I had to downgrade Eclipse 4.33.0 to 4.30.0, and it worked - there was no more error in loading Eclipse.

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

79251457

Date: 2024-12-04 14:05:45
Score: 2.5
Natty:
Report link

After trying several alternatives, I managed to solve my problem just by updating the video card driver, after that the driver updated the dll "vulkan-1.dll" which is located in "C:\Windows\System32" and the emulator finally returned to function correctly.

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

79251456

Date: 2024-12-04 14:04:45
Score: 1
Natty:
Report link

Run your project in python virtual environment

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

79251451

Date: 2024-12-04 14:02:44
Score: 4
Natty:
Report link

Many thanks to @Paulo, his response confirming the function score functionality working as it should, encouraged me to thoroughly examine everything in my query, and I found that one of the chars in the field_value_factor field name was not ascii, hence elasticserach was not finding that field and applying the "field missing" default.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • User mentioned (1): @Paulo
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sasha

79251432

Date: 2024-12-04 13:57:43
Score: 3
Natty:
Report link

Details of using TPU slices from Jax can be found on this page:

There is some introspection on available devices in the Jax API:

If you are going multi-slice, you could consider using Google's Pax (aka PaxML) library as it is built for this:

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

79251426

Date: 2024-12-04 13:55:41
Score: 6 🚩
Natty:
Report link

Question answered here : https://ask.sagemath.org/question/80416/use-of-tiling-solver-for-the-soma-cube/

BR

Donut

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Donut

79251422

Date: 2024-12-04 13:55:41
Score: 0.5
Natty:
Report link

Custom formula is:

=+sort(xmatch({today()+1;today()+2},B:B))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79251416

Date: 2024-12-04 13:54:41
Score: 1
Natty:
Report link

Thank you to @luk2302 for directing me to the source to confirm it's not possible with S3BucketOrigin.withOriginAccessControl.

I then realised that Deny statements in S3 bucket policies always override Allow statements, so in my case, where I need to restrict access to certain "directories", I managed to add a Deny statement to the bucket policy afterwards:

bucket.addToResourcePolicy(new iam.PolicyStatement({
  effect: iam.Effect.DENY,
  principals: [new iam.ServicePrincipal('cloudfront.amazonaws.com')],
  actions: ['s3:GetObject'],
  notResources: [
    `${bucket.bucketArn}/assets/*`,
    `${bucket.bucketArn}/tmp/*`
  ],
  conditions: {
    StringEquals: {
      'AWS:SourceArn': `arn:aws:cloudfront::${this.account}:distribution/${dist.distributionId}`
    }
  }
}));

I hope this helps someone.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): hope this helps
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @luk2302
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bjorn

79251413

Date: 2024-12-04 13:52:41
Score: 1
Natty:
Report link

Try changing the proxy_pass directive in the /model location to:

location /model {
    proxy_pass http://127.0.0.1:8080/model;
}

This will ensured that the /model path is correctly forwarded to the backend. Also, check that the backend service on 8080 correctly handles the /model path.

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

79251412

Date: 2024-12-04 13:52:41
Score: 1.5
Natty:
Report link

I am going to share part of my script that downloads a file from google drive GNOME Virtual file system convert part of it as pdf and sends it through thunderbird

you need to set xorg as your window system for xdotool to work, as it will not work if wayland is set as your window system in ubuntu.

# Step 8: Send email with attachment
thunderbird -compose "subject='Comprobante de pago',to='$EMAIL',body='Buenas noches, envío comprobante de pago mes relacionado en el recibo adjunto.

Gracias y feliz día.

Cristian Beltrán
3143530535',attachment='$DOWNLOAD_DIR/$PDF_NAME'" &

# Step 9: Wait for Thunderbird window and simulate send
sleep 2
xdotool mousemove 2048 214
sleep 0.25
xdotool click 1

wait

# Step 10: Cleanup
rm "$DOWNLOAD_DIR/$PDF_NAME" "$DOWNLOAD_DIR/$FILE_NAME"

1 ----&----- for Background Execution:

Running thunderbird with & allows it to execute in the background, which is crucial for continuing the script without blocking.

2 ----wait---- for Synchronization:

After triggering xdotool to simulate the "Send" action, wait ensures that the script doesn't terminate prematurely, especially before Thunderbird finishes processing.

Important Note on Xorg:

As highlighted, xdotool depends on Xorg for interacting with graphical windows. If Wayland is active (the default on newer Ubuntu installations), xdotool won't work. This means users must set their session to Xorg.

Reasons:
  • Blacklisted phrase (2): Gracias
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: richardcrbb

79251409

Date: 2024-12-04 13:51:39
Score: 4.5
Natty:
Report link

<mat-paginator #paginator [pageSizeOptions]="[10, 20, 100]" [length]="totalItems" [pageSize]="pageSize" (page)="onPageChange($event)"> have added but still not working

Reasons:
  • Blacklisted phrase (2): still not working
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: faisal tajak

79251407

Date: 2024-12-04 13:51:39
Score: 2.5
Natty:
Report link

I wish to recommend use the Autodesk data Connector: https://aps.autodesk.com/en/docs/acc/v1/tutorials/data-connector/ to retrieve the roleIds. Set attribute: "serviceGroups": ["admin"]. The resulting extract will have all the roles in the account/project

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

79251403

Date: 2024-12-04 13:50:39
Score: 1.5
Natty:
Report link

if you are trying with this java -version

so that was not working!

Tryout this javac -version

Now i think it should be worked properly ..

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

79251388

Date: 2024-12-04 13:47:38
Score: 3.5
Natty:
Report link

I just had a similar issue with VS Code and Ubuntu. The solution for me was @VonC's answer.

The lesson: I had been using the Toggle Multi-Cursor Modifier command each time I wanted to do multi-cursor using control - I assumed the Toggling was merely toggling the multi-cursor feature on - instead it was toggling the functionality to be accessed with the alt key. So now I will instead use "ctrl" to be able to jump to references / etc, and "alt" if I want to use multi-cursor.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • User mentioned (1): @VonC's
  • Low reputation (1):
Posted by: Cole St John

79251383

Date: 2024-12-04 13:44:37
Score: 1.5
Natty:
Report link

Try out this tool! https://www.npmjs.com/package/next-list

It’s easy: just run npm run list, and it will list all your pages and API routes, distinguishing whether they’re dynamic, server, client, etc.!

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

79251371

Date: 2024-12-04 13:40:35
Score: 3
Natty:
Report link

For me, flushing iptable rules and recreating docker bridge interface worked fine.

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

79251369

Date: 2024-12-04 13:40:35
Score: 1.5
Natty:
Report link

In Visual Studio 2022 there are improved Git controls, so while looking at current file diff one can now select a range (e.g. select lines that include one or more changes) and revert them all at once using context menu item Git -> Revert Selected Range.

By default, there is no shortcut, but you can configure a specific keyboard shortcut for that menu item in "Tools -> Options -> Keyboard" settings.

Note: This is currently available only while in diff window, not in the general text editor.

enter image description here

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

79251360

Date: 2024-12-04 13:38:35
Score: 2.5
Natty:
Report link

You could try using NoopAnimationsModule instead of BrowserAnimationsModule

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

79251358

Date: 2024-12-04 13:35:34
Score: 1.5
Natty:
Report link

JSON file supports one object at a time. So, if it is a smaller file then you can load the whole file at once, and in Python memory, you can append the new data and rewrite it in the same file but as the file gets larger you won't be able it to load the whole file in memory. You cannot append new data from the last line of current data in the file.

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

79251357

Date: 2024-12-04 13:35:34
Score: 3
Natty:
Report link

try by uninstalling this command, npm uninstall @redux-devtools-extension

check it in package.lock.json ,it is there or not

if it is not there, delete node_modules and package.json

npm install

then this package won't appear again

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @redux-devtools-extension
  • Low reputation (1):
Posted by: Rajasree

79251355

Date: 2024-12-04 13:35:33
Score: 6 🚩
Natty:
Report link

Did you check the MUI documentation? They have a detailed step-by-step guide to setting up RTL (which is what you want, I suppose?): https://mui.com/material-ui/customization/right-to-left/

Adding the dir="rtl" property to html elements might help with certain components not working.

If you want further help, please provide more info and maybe some sample code.

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • RegEx Blacklisted phrase (1.5): help, please
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Cornelius

79251345

Date: 2024-12-04 13:31:32
Score: 1.5
Natty:
Report link

To manage the Terraform state file for long-lived virtual machines and ensure proper reusability of scripts, it is best to use a remote backend along with workspaces. A remote backend, such as AWS S3, Azure Blob Storage, or HashiCorp Consul, allows you to store the state file centrally, enabling features like state locking, versioning, and secure access. By combining this with Terraform workspaces, you can create isolated state files for each VM or team request, reusing the same scripts without overwriting or manually managing state files. For example, if you use AWS S3 as the backend, you can configure it with a DynamoDB table for state locking to prevent concurrent updates, ensuring consistency and reliability across provisioning operations. This approach is scalable, secure, and reduces the risk of errors, making it ideal for managing Terraform deployments in environments where resources have long lifecycles.

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

79251344

Date: 2024-12-04 13:31:32
Score: 1.5
Natty:
Report link

Consider a language agnostic format like protobuf, avro, or thrift. For starters you can have a shared repo with the schema and then import it as a git submodule to any service that requires it. You'll need a strategy for handling schema evolution to ensure that there are not breaking changes to the shared schema.

If you want something more sophisticated take a look at Buf.build and their tooling (BSR, Buf CLI) that facilitates sharing message formats at scale.

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

79251338

Date: 2024-12-04 13:30:32
Score: 3
Natty:
Report link

I had the same issue on ubuntu. This link worked for me: https://www.npmjs.com/package/azure-functions-core-tools

Reasons:
  • Blacklisted phrase (1): This link
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Junaid Mollagee

79251324

Date: 2024-12-04 13:26:31
Score: 1
Natty:
Report link

Did you try define the type of your different variables when you extend myType?

Example:

interface myInterface extends myType {
 differentVariable1: myType['variable1']; // Uses the type of 'variable1' from myType
 anExtraVariable: string; 
}
Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: SG52

79251322

Date: 2024-12-04 13:25:30
Score: 1
Natty:
Report link

If you're looking for a flutter_slidable alternative in Nuxt.js and have already tried libraries like Swiper.js without success, I recommend using the vue-swipe-actions library. It can help you achieve similar swipe-to-reveal actions, which is the core behavior of Flutter's flutter_slidable widget.

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

79251307

Date: 2024-12-04 13:21:29
Score: 4
Natty:
Report link

Also have this problem without answer

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Арсений Варицкий

79251300

Date: 2024-12-04 13:17:28
Score: 1.5
Natty:
Report link

Try adding "armeabi-v7a", "arm64-v8a" only

ndk { abiFilters "armeabi-v7a", "arm64-v8a" }

and then do a flutter clean before trying build again.

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

79251296

Date: 2024-12-04 13:17:28
Score: 1
Natty:
Report link

A few remarks after reading the first lines of main :

if (n < 0 && n > 9)

I guess you meant || : this statement in not possible

Your example input is not valid : size 4 means a grid of 4 by 4 = 16 inputs expected, you enter "transpose" way too soon...

   // ** process ***************************************************
        for (size_t i = 0; i < MAX; i++){
            for (size_t j = 0; j < MAX; j++) {
                cin >> grid[i][j];            // take in data to make grid
            }

Moreover because you ask for a size (user entered the "n" variable) but are using MAX in your loops...

This relates to my 1st comment : I'd suggest that you make your program say what input it expects so that you understand better what's going on, before using a debugger, that would be a further step to "how can I better fix my code", but I think not yet necessary.

Also, as @mikeb said, "read the open letter about homework: https://softwareengineering.meta.stackexchange.com/questions/6166/open-letter-to-students-with-homework-problems"

Good luck!

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mikeb
  • Low reputation (0.5):
Posted by: Aname

79251286

Date: 2024-12-04 13:15:27
Score: 2
Natty:
Report link

Thanks the issues came from from the annotation processing! I changed @EnableWebSecurity by @EnableMethodSecurity and now it works!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: maxime Lassort

79251254

Date: 2024-12-04 13:07:25
Score: 2
Natty:
Report link

I accidentally clicked on "Deny" and also "Remember my choice". None of the above fixed my issue on MIUI 14. What I did to fix it was clear the data of "Security" app. Android asked for the permission again and app installed successfully.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hassaan J.

79251250

Date: 2024-12-04 13:05:24
Score: 0.5
Natty:
Report link

Many thanks for all the comments and answers, they did help! I got it working. I did have to go through the dependencies and make sure they worked, hence the monstrosity below. This Dockerfile is based on trial and error and also parts of various Dockerfiles I found online, including the official (but old) Cro docker images.

I think there are a few issues behind the problems:

It needs more work, but it does start the webapp. I have more issues, but not docker :)

FROM rakudo-star:latest

RUN apt update && \
    apt upgrade -y && \
    apt install -y curl uuid-dev libpq-dev libssl-dev unzip build-essential zip libxml2-dev && \
    rm -rf /var/lib/apt/lists/*

# Set the working directory inside the container
WORKDIR /app

# Copy your project files into the container
COPY ./bin /app/bin

COPY ./config /app/config
COPY ./lib /app/lib
COPY ./t /app/t
COPY ./META6.json /app
COPY ./www /app/www

RUN git clone https://github.com/ugexe/zef.git /tmp/zef && \
    cd /tmp/zef && \
    raku -I. bin/zef install . --/test

# install dependencies not in raku.land or that cause issues
RUN git clone https://github.com/JuneKelly/perl6-config-clever && \
    cd perl6-config-clever && \
    zef install .

RUN git clone https://github.com/skinkade/crypt-random && \
    cd crypt-random  && \
    zef install .

RUN git clone https://github.com/JJ/Raku-Digest-HMAC.git && \
    cd Raku-Digest-HMAC && \
    zef install .

RUN git clone https://github.com/retupmoca/p6-markdown.git && \
    cd p6-markdown && \
    zef install .

# Install project dependencies
RUN zef install --verbose --force --/test Array::Circular
RUN zef install --verbose --force --/test Docker::File
RUN zef install --verbose --force --/test File::Ignore
RUN zef install --verbose --force --/test IO::Socket::Async::SSL
RUN zef install --verbose --force --/test Digest::SHA1::Native
RUN zef install --verbose --force --/test JSON::Unmarshal
RUN zef install --verbose --force --/test JSON::Fast
RUN zef install --verbose --force --/test OO::Monitors
RUN zef install --verbose --force --/test Shell::Command
RUN zef install --verbose --force --/test DBIish::Pool
RUN zef install --verbose --force --/test JSON::JWT
RUN zef install --verbose --force --/test TinyFloats
RUN zef install --verbose --force --/test CBOR::Simple
RUN zef install --verbose --force --/test Log::Timeline
RUN zef install --verbose --force --/test Text::Markdown
RUN zef install --verbose --force --/test Terminal::ANSIColor
RUN zef install --verbose --force --/test Base64
RUN zef install --verbose --force --/test IO::Socket::SSL
RUN zef install --verbose --force --/test IO::Path::ChildSecure
RUN zef install --verbose --force --/test JSON::JWT
RUN zef install --verbose --force --/test HTTP::HPACK
RUN zef install --verbose --force --/test Cro::Core
RUN zef install --verbose --force --/test Cro::TLS
RUN zef install --verbose --force --/test https://github.com/croservices/cro-http.git
RUN zef install --verbose --force --/test App::Prove6
RUN zef install --verbose --force --/test Env::Dotenv
RUN zef install --verbose --force --/test HTTP::Tinyish
RUN zef install --verbose --force --/test JSON::Fast
RUN zef install --verbose --force --/test Logger
RUN zef install --verbose --force --/test UUID::V4
RUN zef install --verbose --force --/test W3C::DOM
RUN zef install --verbose --force --/test Method::Also

RUN git clone https://github.com/libxml-raku/LibXML-raku.git && \
    cd LibXML-raku && \
    zef install .

EXPOSE 10000

CMD ["raku", "/app/bin/app"]
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Seamus Brady

79251242

Date: 2024-12-04 13:03:23
Score: 5
Natty:
Report link

For anyone who will probably have same problem but have people like @jabaa say their question sucks instead of being truly helpful people, the issue was that the text decorations were only highlighting on the original text and not on the diff text itself since i haven't added the diff text to the file in the editor, so the fix is simply to make sure you add the diff into the file but hold context to the old text incase the user rejects the changes so you can reverse it back to the original text.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): have same problem
  • User mentioned (1): @jabaa
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Precious112

79251230

Date: 2024-12-04 12:57:22
Score: 2.5
Natty:
Report link

Check that you have an updated version of System.Numerics.Vectors.dll in your application binaries

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

79251229

Date: 2024-12-04 12:56:21
Score: 1.5
Natty:
Report link

Using a local temporary table generates this error. You can use temporary tables in DBMail, but they need to be global and not local tables, i.e. ##tmpa rather than #tmpa.

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

79251222

Date: 2024-12-04 12:53:20
Score: 9 🚩
Natty: 5.5
Report link

Did you get any update on the feature from Mastercard?

Reasons:
  • RegEx Blacklisted phrase (3): Did you get any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Pradeep KK

79251217

Date: 2024-12-04 12:51:19
Score: 0.5
Natty:
Report link

If using element

<Route path="/report/:id" element={<ReportView  key={Math.random()}/>} />

If using component

<Route path="/report/:id" component={<ReportView  key={Math.random()}/>} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sumit kumar

79251203

Date: 2024-12-04 12:47:17
Score: 5.5
Natty: 4.5
Report link

enter image description here

1: https://i.sstatic.net/IDdyYdWk.jpg ( error after adding avowed code problem fixed thanks

now enter image description here

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arunachalam S

79251197

Date: 2024-12-04 12:44:16
Score: 1
Natty:
Report link

Could it be an issue with threads?

The button works because it's all on UI thread. I assume the flashing happens using some sort of timer on a background thread. UI work needs to be done on an UI thread like so:

    MainThread.BeginInvokeOnMainThread(() =>
    {
        brdLightsim.BackgroundColor = Color.FromRgb(0, 0, 0);
    });
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: UršKA

79251191

Date: 2024-12-04 12:42:16
Score: 2
Natty:
Report link

change code to ImageReader imageReader = ImageReader.newInstance(width, height, ImageFormat.PRIVATE, 4);

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

79251180

Date: 2024-12-04 12:39:15
Score: 2
Natty:
Report link

Change code to

ImageReader imageReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 4);

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

79251179

Date: 2024-12-04 12:39:15
Score: 3
Natty:
Report link

@Zohar Peled wrote:

.NET Framework 4.8 is ... also included in Windows 11 so, as of October 2024, its lifecycle is currently dictated by the Windows 11 lifecycle.

That leads to the following questions:

  1. Until when will Windows 11 be supported, and
  2. Will Windows 12 support .NET Framework?

In the links below it is declared until when certain releases of Windows 11 will be supported, but not until when Windows 11 itself, i.e. its final release will be supported.
Windows 11 Home and Pro - Microsoft Lifecycle
Windows 11 Enterprise and Education - Microsoft Lifecycle

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Zohar
  • Low reputation (1):
Posted by: Will Fred

79251178

Date: 2024-12-04 12:38:15
Score: 2
Natty:
Report link

A good reference is this actively developed open source plugin: https://github.com/FriendsOfShopware/FroshTools

It is maintained by (among others) Shopware employees. So you can be sure of its quality.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: marcus.kreusch

79251172

Date: 2024-12-04 12:36:14
Score: 0.5
Natty:
Report link

No, to my knowledge, this isn't supported in Dapr. The messages will be read out from Service Bus to Dapr where they'll be pushed to your client app until successfully processed (per the Dapr resiliency policy you have in place for the component).

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

79251170

Date: 2024-12-04 12:35:14
Score: 1
Natty:
Report link

In the future you will be able to use field-sizing CSS property [MDN field-sizing]. Currently (end of the year 2024) it is experimental feature with limited availability [caniuse]

Currently, you can test in on chromium based browsers

textarea {
  field-sizing: content;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Evolveye

79251168

Date: 2024-12-04 12:35:14
Score: 2
Natty:
Report link

If you want to explore ThreeJs path tracing there are plenty of options to search for,

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

79251164

Date: 2024-12-04 12:34:14
Score: 2
Natty:
Report link

If I allocate memory for this struct using malloc, will the pointer variables be NULL?

No this is not true, you have to assign the variables yourself. I would point to newly allocated memory (generally there is some garbage value in there).

P.S. malloc gives you an un-initialized buffer however calloc provides you 0ed memory.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Umer Arshad

79251150

Date: 2024-12-04 12:31:13
Score: 3
Natty:
Report link

This type of preview comes automatically. I even faced the same issues with some of the websites for link posting.

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

79251144

Date: 2024-12-04 12:29:12
Score: 3.5
Natty:
Report link

Press CTRL + C, then press Q. Its work on me

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

79251143

Date: 2024-12-04 12:29:12
Score: 1.5
Natty:
Report link

For the Camera you get to pick one of two output formats (NV21 or YV12), so pick YV12. That's your raw YUV data. For screen capture Or Opengl es render the output will always be RGB or RGBA, so you need to pick RGBA_8888 (format 0x1) for your ImageReader, rather than YUV_420_888 (format 0x23). If you need YUV for that, you will have to do the conversion yourself. The ImageReader gives you a series of Plane objects, not a byte[], so you will need to adapt to that.

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

79251138

Date: 2024-12-04 12:27:11
Score: 1.5
Natty:
Report link

For the Camera you get to pick one of two output formats (NV21 or YV12), so pick YV12. That's your raw YUV data. For screen capture Or Opengl es render the output will always be RGB or RGBA, so you need to pick RGBA_8888 (format 0x1) for your ImageReader, rather than YUV_420_888 (format 0x23). If you need YUV for that, you will have to do the conversion yourself. The ImageReader gives you a series of Plane objects, not a byte[], so you will need to adapt to that.

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

79251129

Date: 2024-12-04 12:25:11
Score: 1.5
Natty:
Report link

I encountered this issue, but only with a specific Razor page. IntelliSense worked fine for all other pages. I suspect the problem occurred because I had renamed the file at some point.

The solution was to rename the file (and page model) and then rename it back to its original name.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Orestis P.

79251119

Date: 2024-12-04 12:23:10
Score: 1
Natty:
Report link

Is there a way to look at the grammar and tell if there's a conflict without constructing the table?

Yes, but it takes expertise to determine it at a glance and it is not fool-proof. It's generally much faster to just try generating the parser and see whether the generator reports a conflict.

A conflict means that two different parser generators may generate parsers that accept different inputs. A shift-reduce conflict means that one parser may decide to shift while another may decide to reduce, while a reduce-reduce conflict means that there is a state in which two different rules would cause a reduction.

The simplest possible YACC/bison grammar that demonstrates both types of conflicts for LALR(1) follows; I have used bison so that it is easier to reproduce, analyze and experiment with the grammar.

%token A
%%
start : rr rr 
  | sr 
  ;
rr : A 
  | rr A 
  ;
sr : A
  | sr '+' sr
  ;

Storing the above in a file called test.y, we can run bison -Wcounterexamples test.y to see where and why the conflicts occur. Let us look at the shift-reduce conflict first.

test.y: warning: shift/reduce conflict on token '+' [-Wcounterexamples]
  Example: sr '+' sr • '+' sr
  Shift derivation
    sr
    ↳ 6: sr '+' sr
                ↳ 6: sr • '+' sr
  Reduce derivation
    sr
    ↳ 6: sr               '+' sr
         ↳ 6: sr '+' sr •

Here, the example shows us a string of input (e.g. A + A + A) and a position at which the conflict occurs (). The shift derivation would mean interpreting the string as (A + (A + A)) and the reduce derivation as ((A + A) + A). For a commutative operator (such as the + used here), the order should not be meaningful and we could safely ignore the conflict.

However, the "canonical" shift-reduce conflict is the pair of if/if-else statements, where the interpretation does matter. Consider, for example, if 1 if 1 {} else {}: should the statement be interpreted as (if 1 (if 1 {} else {})) or (if 1 (if 1 {}) else {})? Discussion on solving the conflict can be found here.

Next, let us take a look at the reduce-reduce conflict.

test.y: warning: reduce/reduce conflict on token A [-Wcounterexamples]
  Example: rr A • A
  First reduce derivation
    start
    ↳ 1: rr rr
            ↳ 4: rr       A
                 ↳ 3: A •
  Second reduce derivation
    start
    ↳ 1: rr          rr
         ↳ 4: rr A • ↳ 3: A

That is to say, it is ambiguous where in the string A A A ... A A A the first rr ends and the second begins. Reduce-reduce conflicts occur most commonly when there are delimiters or tokens that are used in many different contexts (for example , and ()).

A reduce-reduce conflict effectively means that your grammar is too permissive and that you need to restrict it somehow. Generally, they cannot be ignored, though quite often one can introduce a pre- or post-processing step to the parser to account for them if restructuring the grammar would be inconvenient.

One real-world example of a reduce-reduce conflict is the C-style cast operator, i.e. without a symbol table it is undecidable whether (id)(1) is a type-cast or a function call.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: user30482

79251115

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

Finally, I resolved adding a custom mapView.setOnTouchListener

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tino

79251106

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

Snowflake is 1. Cloud-based Data Warehousing platform.​ 2. Provides a fully-managed, scalable, and high-performance solution for storing, processing, and analyzing data.​ 3. It is designed to handle both structured and semi-structured data.

STGAE


  1. User stage: Each user has a Snowflake stage, by default, for storing files. a. convenient option->files will only be accessed by a single user, but need to be copied into multiple tables. b. User stages are referenced @~; e.g. use LIST @~; to list the files in a user stage. c. Unlike named stages, user stages cannot be altered or dropped.

  1. Table stages: each table has a Snowflake stage allocated to it for storing files. a. Use when->if you only need to copy files into a single table, but want to make the files accessible to multiple users. b. A table stage has the same name as the table. c. A table stage is also not appropriate if you need to copy file data into multiple tables. d. Table stages don’t support transforming data while loading it

  1. Named stages: Named stages are database objects that provide the greatest degree of flexibility for data loading. a. recommended : when you plan regular data loads that could involve multiple users and/or tables b. Users with the appropriate privileges on the stage can load data into any table.

File Format: Creates a named file format that describes a set of staged data to access or load into Snowflake tables. Example of named stage:

Step 1: create table

create table employee.employee_schema.EMPLOYEE_1
(Emp_ID varchar,
First_Name varchar,
last_name varchar  );

Step 2: create file format

create file format employee.employee_schema.FILE_FORMAT_CSV
  type='csv',
  field_delimiter=',',
  skip_header=1;

Step 3: create stage: From Snowflake cloud UI open EMPLOYEE/EMPLOYEE_SCHEMA schema> create>Stage> Snowflake Managed>Enter stage name as: EMPLOYEE_STAGE>select Client-side encryption>create. Then upload csv file.

Step 4: copy data load data from staging to table

  copy into EMPLOYEE_1
  from @EMPLOYEE_STAGE
  file_format=(format_name='employee.employee_schema.FILE_FORMAT_CSV');

Please let me know if faced any challenges. Thanks😄😄

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Krishna Tapse

79251097

Date: 2024-12-04 12:15:08
Score: 6 🚩
Natty:
Report link

please provide larval livewire interview question in simple way

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Naveen Jaglan

79251089

Date: 2024-12-04 12:12:07
Score: 2.5
Natty:
Report link

pretty old question but for anyone wondering in 2024:

dotnet tool install --global dotnet-svcutil

would install a much more recent version that works with dotnet 6 for more info official doc

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

79251087

Date: 2024-12-04 12:12:06
Score: 6 🚩
Natty: 5
Report link
error132920_02.xml Errors were detected in file 'D:\SHARING FOLDER\SAHIL MIS\THEFT MIS NEW FROM JAN-2023.xlsx' Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded. Removed Part: /xl/sharedStrings.xml part with XML error. (Strings) Illegal qualified name character. Line 5, column 46898. Removed Records: Cell information from /xl/worksheets/sheet1.xml part Removed Records: Cell information from /xl/worksheets/sheet2.xml part

what can I do in this situation?

Reasons:
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): what can I do
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: tara chand verma

79251085

Date: 2024-12-04 12:12:05
Score: 4
Natty: 4
Report link

My App got rejected because stripe is implemented , Apple Team suggested me to implement in-App purchase.

I have created products and subscription products in Apple developer account. status is "Ready to Submit"

I want to understand how this status will be changed now, as i have submitted the products 2 days back and status is still same

shall i need to resubmit the build but i haven't applied In-App purchase yet because I am not able to fetch products.

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): I am not able to
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (1):
Posted by: Karan

79251073

Date: 2024-12-04 12:07:04
Score: 2
Natty:
Report link

The idea is not bad, but if I understand correctly, you copied the "hundreds of CSV" into one file? This is a bad idea! You have to solve it in an outer iteral to go through the files and create tables with the same file name in a row. The number of columns in the CSV is determined by your program. You should build the cycle in such a way that you enter a path where the files are and go through them and create the table for each file and upload the data.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: László Tóth

79251066

Date: 2024-12-04 12:03:03
Score: 2
Natty:
Report link

Question has already been asked here https://stackoverflow.com/a/56253119/3098961

I don't think you can archive the desired result using only localCompare.

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

79251078

Date: 2024-12-04 12:03:03
Score: 2
Natty:
Report link

I wrote to the developers of semopy and they confirmed that the package currently only supports prediction for continuous data.

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

79251055

Date: 2024-12-04 12:01:02
Score: 3
Natty:
Report link

I found this and it fixed it, if anyone else is struggling

"eslintConfig": {
    "extends": "./node_modules/dev-config/lib/eslint.config.js"
  }

a link to the article here https://github.com/eslint/eslint/discussions/18131

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

79251051

Date: 2024-12-04 11:58:02
Score: 1
Natty:
Report link

Changed my code to open close a connection every time a query is made

def get_results(seasonID):
    global odbc_str
    connection = pyodbc.connect(odbc_str, readonly=True)
    cursor_conn = connection.cursor()
    resultsQuery = "SELECT * FROM season_view"
    execute_qry = cursor_conn.execute(resultsQuery).fetchall()
    cursor_conn.close()
    connection.close()
    return execute_qry
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AlbertoN