79091059

Date: 2024-10-15 17:19:40
Score: 2.5
Natty:
Report link

Don't forget to restart VSCode after editing user settings or workspace settings for the changes to take effect.

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

79091058

Date: 2024-10-15 17:19:40
Score: 0.5
Natty:
Report link

I was facing same issue, and i used MailKit to sendEmail which actually worked for me.You can use MailKit to send emails easily in C#.

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

79091054

Date: 2024-10-15 17:19:40
Score: 4
Natty:
Report link

try updating your python version

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

79091052

Date: 2024-10-15 17:17:39
Score: 1.5
Natty:
Report link

If anyone is looking to use base64url encoding in the terminal.

One can simply do the following:

echo -n 'string' | base64 | tr '/+' '_-' | tr -d '='
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gachikuku

79091048

Date: 2024-10-15 17:16:39
Score: 2
Natty:
Report link

I ended up solving this purely by accident, and it was the most ridiculous thing too. There was nothing wrong with the code. I use a Mac for development in docker. After at least 2 to 3 days of fighting this, I happened to notice a similar dialog didn't work in another un-related application. Macs rarely show bugs or problems, and they're meant to not be rebooted, so it never occurred to me that I might've hit a bug that turned off file dialogs on the Mac interface. If I hadn't noticed this by accident, I could have gone a month without resolving this. So, it was an event problem, just not in my application. Some bug in the dialog events had turned off the file dialogs on the mac interface completely and globally. A simple reboot and re-loading the docker images solved it.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: K. Trotman

79091047

Date: 2024-10-15 17:16:39
Score: 1
Natty:
Report link

This answer could also work out for you.

You would just have to use a debug flag instead of a production one.

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

79091045

Date: 2024-10-15 17:15:39
Score: 1.5
Natty:
Report link

I believe you can call the .isOptional() method.

<input required={!schema.shape.name.isOptional()} />
<input required={!schema.shape.address.isOptional()} />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kyle Richardson

79091021

Date: 2024-10-15 17:09:37
Score: 4
Natty:
Report link

I ended up using the ntile function to divide the large dataset into n equal parts

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

79091016

Date: 2024-10-15 17:07:37
Score: 2
Natty:
Report link

Improving on what @svisstack has submitted as a solution for the issue:

   
for ($index=0; $index < min(5, count($arr)); $index++)
{
    print_r ($arr[$index]); //change echo to print_r
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @svisstack
  • Low reputation (1):
Posted by: Collins Okoroafor

79091007

Date: 2024-10-15 17:05:36
Score: 1.5
Natty:
Report link

I found that my problem was with the strings having some extra hidden information that needed to be removed before trying to convert the string to a char * array. After reading the str I added a str.trim() function that cleaned up the string. I was then able to use str.c_str() and get a url address. Without using str.trim() the string printed okay but did not work as a url address.

'''

virtual int size(){
      //read and count the number of stations and store values in String array
        File url_list = SD.open(listurls);
        String str;
        int count = 0;
        while (url_list.available() && count < MAX_LINES) {
          str= url_list.readStringUntil('\n');
          str.trim();
          url_addr[count]=str;
          count++;
        }
        max=count;
        url_list.close();
        return max;

    ...

    char * a_url = url_addr[count].c_str;

'''

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: waszee

79091003

Date: 2024-10-15 17:05:36
Score: 2.5
Natty:
Report link

PHP's behavior with duplicate keys in associative arrays is by design. When you define an array with the same key multiple times, PHP automatically takes the last occurrence of the key and overwrites the previous value without raising any error or warning.

Why Doesn't PHP Throw an Error for Duplicate Keys?

The main reason PHP doesn't throw an error or warning for duplicate keys is that it's designed to be a forgiving and loosely typed language. This design philosophy prioritizes flexibility and ease of use, allowing developers to work without having to manage strict type or syntax rules, which includes silently handling duplicate keys in arrays.

How Can We Handle Duplicate Keys?

To handle the issue of duplicate keys and catch these scenarios during development, you need to use Static code analysis tools like PHPStan or Psalm can help catch such issues during development. These tools analyze your code and look for potential problems, including duplicate array keys.

enter image description here

Reasons:
  • Blacklisted phrase (1): How Can We
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Omisteck

79090991

Date: 2024-10-15 17:01:35
Score: 0.5
Natty:
Report link

Your best bet for handling unforeseen issues gracefully will most likely be using the provided REFramework Template in UIPath Studio's start menu. It follows a transactional model based on Orchestrator queues but it is easily modifiable to fit a use outside of Orchestrator queues. It also contains automatic retrying of failed items and handles all process stopping exceptions. Obviously specific edge cases that you encounter in testing will have to be managed on your own, but you can rest assured knowing that this framework won't let it crash and burn if something does go uncaught.

Screenshot of REFramework on Home Page of Studio

implementing a secure login procedure

UIPath Studio's "Type Into" activities have a "secure" option which will take a SecureString (meant to be combined with a Get Credential activity to retrieve an Orchestrator credential asset, but you can manually create a SecureString if you please) that will securely enter a password into a specified input.

Dealing with dynamic elements:

Fuzzy Selectors will be your best friend in on click / type into activities to deal with dynamic elements. You can also utilize UIPath's built in UIExplorer to build solid and reliable selectors for dynamic elements by allowing you to input variables for element selectors.

The Object Repository may also serve your use case well if you find yourself automating the same screens over and over, but it may not fit your exact use case here.

Finally, as far as Robot Checks... you can only do so much. If it is a Captcha that only requires that you click a box, you may be able to get away with it in Studio. If it's anything more complex than that, you are probably SOL. After all, automations are what Captchas are trying to filter out.

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

79090987

Date: 2024-10-15 17:00:35
Score: 2
Natty:
Report link

You can try with the following formula:

=$A5<=B$107

It should be entered as the custom formula when applying conditional formatting to the entire B5:M105 range.

Conditional formatting in spreadsheet.

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

79090981

Date: 2024-10-15 16:57:34
Score: 3.5
Natty:
Report link

I'd think you'd use proxy.local.incoming_ip_to_bind if you wanted to bind specific IPs.

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

79090973

Date: 2024-10-15 16:54:33
Score: 3
Natty:
Report link

I dont know if you are dealing with unity but if you are you many need to load the dll "mono-2.0-bdwgc.dll" instead of "mono.dll" because its what contains the desired functions under unity. An example of what i mean can be seen below.

enter image description here

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

79090972

Date: 2024-10-15 16:54:33
Score: 0.5
Natty:
Report link

You need to use @JsonManagedReference for the roles field in the AppUser entity and @JsonBackReference for the appUsers field in the Role entity. And most likely you also need to use @EntityGraph(attributePaths = "roles") when loading users to avoid LazyInitializationException, or you can just add fetch = FetchType.EAGER for the roles field.

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

79090971

Date: 2024-10-15 16:53:33
Score: 2.5
Natty:
Report link

Very old thread. Though I found this tutorial on the web and wanted to share it here: https://www.webwiz.net/kb/asp-tutorials/connecting-to-an-access-database.htm I agree that Microsoft Access is not well suited to use in web applications. Though I implemented a web portal application years ago which utilized an *.mdb database through an ODBC connection. I am currently searching / testing for accdb. I will provide an update once I manage to make it work.

Reasons:
  • Blacklisted phrase (1): this tutorial
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kerem Ercoskun

79090969

Date: 2024-10-15 16:53:33
Score: 2.5
Natty:
Report link

Dim t$ '(as text) Dim i% '(as integer) 'dim t$,i% 'works too For each i in doublearray t=str(i) Next 'also t=format(i,"##00.00") is nice

'also dim t1 as list(of string) For each i in darray t1.add(str(i)) Next

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

79090966

Date: 2024-10-15 16:52:33
Score: 1
Natty:
Report link

Turns out you need to install pip install opencv-contrib-python and not pip install opencv-python. At best make sure you install it in a new enviroment without any old installations.

Here the following two essential functions will be available:

cv.aruco.interpolateCornersCharuco
cv.aruco.calibrateCameraCharuco

I didn't manage to get it working using only the "new" objdetcet module of the non-cotrib version. For a more indepth explanation see here:

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

79090963

Date: 2024-10-15 16:51:33
Score: 3.5
Natty:
Report link

It's a known issue with flutterfire-cli, you need to add com.google.gms.google-services yourself by following this step: https://firebase.google.com/docs/android/setup#add-config-file

https://github.com/invertase/flutterfire_cli/issues/307

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

79090958

Date: 2024-10-15 16:49:32
Score: 2.5
Natty:
Report link

Nursing is the highest paying STEM major in the Health category. The median salary for nurses is $62,000 less than the median salary for Petroleum Engineers

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

79090954

Date: 2024-10-15 16:48:32
Score: 2
Natty:
Report link

If you want to achieve a sequential order, it's not possible. The tests will run in the order they are executed by the user.

If you still would like to control few of them as per your needs you can do it using labels.

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

79090949

Date: 2024-10-15 16:47:31
Score: 1
Natty:
Report link

Screenshot I encountered the same issue where the chart was stuck on "Loading...". The problem got resolved when I:

  1. Removed the public folder.
  2. Then, I restarted the Rails server.

This fixed the issue for me, and the charts loaded correctly.

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

79090946

Date: 2024-10-15 16:45:31
Score: 0.5
Natty:
Report link

Assuming you're using the latest version of the AWS CLI, you can run the following:

#!/usr/bin/env bash

set -uefo pipefail

REGIONS=$(aws account list-regions | jq -r ".Regions[] | select(.RegionOptStatus != \"DISABLED\") | .RegionName")

for region in $REGIONS; do aws ec2 modify-instance-metadata-defaults --http-tokens required --region $region; done | cat
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: keian

79090943

Date: 2024-10-15 16:45:31
Score: 2
Natty:
Report link

Is EXECUTE PROCEDURE legal syntax in Informix-4gl? Typing your code into Genero I get 'The cursor "PROCEDURE" has not been declared in this program'.

For us it would be something like

PREPARE s FROM "execute function motor:p1(?)"
EXECUTE s USING aa

see more at https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_sql_programming_010.html

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: fourjs.reuben

79090942

Date: 2024-10-15 16:45:31
Score: 5
Natty:
Report link

I have the same error, when I tried to publish to main repository SNAPSHOT-version of library, when I change version without -SHAPSHOT suffix, error has done. So, we cannot publish SNAPSHOT versions in regular repository.

Reasons:
  • RegEx Blacklisted phrase (1): I have the same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same error
  • Low reputation (0.5):
Posted by: BeCase

79090930

Date: 2024-10-15 16:42:29
Score: 1.5
Natty:
Report link

I found the solution to the socket blocking error. The issue was due to 'An operation on a nonblocking socket cannot be completed immediately'. The error occurred because I wasn't using await when fetching data (DB connection). Without await, the code likely took a bit of time, causing the socket error. After adding await, the issue was resolved. like this: var users = await _dbContext.AspNetUsers.FirstOrDefaultAsync(u => u.Email == Credentials.Email); If anyone else is facing the same issue, you can resolve it similarly by ensuring you use await where appropriate.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MANSI CHANU

79090923

Date: 2024-10-15 16:41:29
Score: 2
Natty:
Report link

I know this issue occured a long time ago but I hit the same thing and resolved it an other way.

The setting node "terminal.integrated.defaultProfile.windows" had this value: "Windows Powershell".

But there was no matching key in "terminal.integrated.profiles.windows". I replaced "Windows Powershell" by "PowerShell" which was available.

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

79090917

Date: 2024-10-15 16:40:29
Score: 0.5
Natty:
Report link

This answer is based on @sdidsa suggestion:

    tbInventarioView.setRowFactory(tv -> {
        TableRow<Inventario> row = new TableRow<>(){
        @Override
        protected void updateItem(Inventario item, boolean empty) {
            super.updateItem(item, empty);
            if (item == null || item.getFlAtivo() == false) {
                setStyle("");
            } else if (item.getFlAtivo()) {
                setStyle("-fx-text-background-color: blue;");
            } else {
                setStyle("");
            }
        }};         
        row.setOnMouseClicked(event -> {
            if (event.getClickCount() == 2 && (!row.isEmpty())) {
                Inventario rowData = row.getItem();
                doubleClickShow(rowData);
            }
        });
        return row;
    });
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @sdidsa
  • Low reputation (0.5):
Posted by: Gilberto

79090916

Date: 2024-10-15 16:40:29
Score: 0.5
Natty:
Report link

The best solution I found is a combination of previous answers:

a) Display Settings -> "Pointer Outline Color" and set it to black b) press the 'option' key to convert the text cursor to a cross

Just doing a) doesn't affect the text cursor, it still has the white border and is remains as hard to see. But the setting change does affect the 'cross' that appears when you press the 'option' key, it becomes much more visible and easy to locate.

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

79090903

Date: 2024-10-15 16:37:28
Score: 2.5
Natty:
Report link

In that case, syscall.SyscallN works fine. I had remove the 7 in front.

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

79090901

Date: 2024-10-15 16:36:27
Score: 4.5
Natty: 4
Report link

I'm faced with the task of increasing the font of the DatePicker input field.

I did it via CSS, the space between .DatePicker .text-field is important!!!

.DatePicker .text-field {
-fx-font-size: 15px;
}

Thanks for the advice.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks for the advice
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Александр Носик

79090895

Date: 2024-10-15 16:35:27
Score: 3.5
Natty:
Report link

Maybe add functions in your classes, then create tests for those functions

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

79090892

Date: 2024-10-15 16:34:26
Score: 0.5
Natty:
Report link

I needed these two to resolve. I hope it helps someone.

implementation ("com.firebaseui:firebase-ui-storage:8.0.2") and annotationProcessor ("com.github.bumptech.glide:compiler:4.16.0")

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kaigalmane

79090885

Date: 2024-10-15 16:32:26
Score: 0.5
Natty:
Report link

I have found a kludgey answer: get the transport from the MessageEvent that is dispatched immediately before the SentMessageEvent.

class EmailMessageSubscriber implements EventSubscriberInterface
{

    private array $messageTransport = []; 

    public static function getSubscribedEvents(): array
    {
        return [
            SentMessageEvent::class => 'onSentMessageEvent',
            MessageEvent::class => ['onMessageEvent', -256],
        ];
    }

    public function onMessageEvent(MessageEvent $event): void
    {
        if ($event->isQueued()) {
            return;
        }
        $message = $event->getMessage();
        $this->messageTransport[spl_object_id($message)] = $event->getTransport();
    }

    public function onSentMessageEvent(SentMessageEvent $event): void
    {
        $sentMessage = $event->getMessage();
        $transport = $this->messageTransport[spl_object_id($sentMessage->getOriginalMessage())] ?? null;
        ...
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: OVG

79090880

Date: 2024-10-15 16:29:25
Score: 1
Natty:
Report link

Liquid only works on the server side, so you can't change the button when a variant is selected using liquid. For that you'll need to add some JavaScript to handle the button content on variant change.

How you can do that will depend on the code that handles the variant selectors. Usually, theme developers dispatch custom events on variant change, but if the code is minified it will be hard to get the event's name.

If the URL changes on variant change, you could try using the postate event.

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

79090878

Date: 2024-10-15 16:29:25
Score: 1
Natty:
Report link

The Microsoft.AspNetCore.Authentication package is now included in the Microsoft.AspNetCore.App metapackage.

View of package in Solution Explorer

It is automatically referenced if your project type is Microsoft.NET.Sdk.Web or you add a FrameworkReference. See Use ASP.NET Core APIs in a class library and this question for more details about adding a framework reference.

<ItemGroup>
  <FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

Since you said your project is an ASP.Net WebApi project, I would guess that an explicit FrameworkReference would not be needed. All you may need to do is remove the old package reference.

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

79090873

Date: 2024-10-15 16:28:25
Score: 1
Natty:
Report link

According to this Github changelog and this Github blog page,

Pull requests from first-time contributors will require manual approval from a repository collaborator with write access before any Actions workflows run. When a first-time contributor opens a pull request, they’ll see a message that a maintainer must approve their Actions workflow before it will run.

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

79090861

Date: 2024-10-15 16:25:24
Score: 3
Natty:
Report link

Ryans answer is correct! On debian

sudo apt-get install ca-certificates

does the trick. Thank you very much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bernd Donner

79090855

Date: 2024-10-15 16:24:23
Score: 9.5 🚩
Natty: 5.5
Report link

Thomas, were you ever able to find an effective approach to parsing tax return pdfs?

Reasons:
  • RegEx Blacklisted phrase (3): were you ever
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Zee

79090849

Date: 2024-10-15 16:21:22
Score: 0.5
Natty:
Report link

I guess this section is outdate, because nowadays there's a way to translate PDF documents using several languages through REST requests. But there's a Node example in this page using NodeJs https://cloud.google.com/translate/docs/advanced/translate-documents#translate_batch_translate_document-nodejs

/**
 * TODO(developer): Uncomment these variables before running the sample.
 */
// const projectId = 'YOUR_PROJECT_ID';
// const location = 'us-central1';
// const inputUri = 'path_to_your_files';
// const outputUri = 'path_to_your_output_bucket';

// Imports the Google Cloud Translation library
const {TranslationServiceClient} = require('@google-cloud/translate').v3beta1;

// Instantiates a client
const translationClient = new TranslationServiceClient();

const documentInputConfig = {
  gcsSource: {
    inputUri: inputUri,
  },
};

async function batchTranslateDocument() {
  // Construct request
  const request = {
    parent: translationClient.locationPath(projectId, location),
    documentInputConfig: documentInputConfig,
    sourceLanguageCode: 'en-US',
    targetLanguageCodes: ['sr-Latn'],
    inputConfigs: [
      {
        gcsSource: {
          inputUri: inputUri,
        },
      },
    ],
    outputConfig: {
      gcsDestination: {
        outputUriPrefix: outputUri,
      },
    },
  };

  // Batch translate documents using a long-running operation.
  // You can wait for now, or get results later.
  const [operation] = await translationClient.batchTranslateDocument(request);

  // Wait for operation to complete.
  const [response] = await operation.promise();

  console.log(`Total Pages: ${response.totalPages}`);
}

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

79090847

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

To loop through the units, decrease them by 1, update rent and calculate profit each time. follow >

for u in range(50, 0, -1)
    rent += 30
    profit = (u * rent) - (u * 37)
    print(f"Units: {u}, Rent: {rent}, Profit: {profit}")

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

79090845

Date: 2024-10-15 16:19:21
Score: 0.5
Natty:
Report link

The problem was indeed caused by the handling of aggregate functions specifically. Those are added to the report engine's aggregatelist (Engine.Aggregate) if they are directly entered into the text of a memo field. Only aggregates contained in this list are calculated when you print the report. If you set an aggregate function using the report script it is however not added to that list automatically.

The solution was therefore to manually add the aggregate function to the aggregatelist in the report script:

procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);
begin  
  Memo1.Text  := '[ SUM( <DETAILDATASET."IntegerField">, DetailData1)]';  
  
  TFrxMyEngine( Engine).GetAggregates.AddItems( Page1);
end;

As the required functions (TFrxMyEngine.GetAggregates and TfrxCustomAggregateList.AddItems) are not available in report scripts out of the box they first have to be made available for the report as custom methods. I followed the official fast report dokumentation for that.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tobias.Schwuerzinger

79090844

Date: 2024-10-15 16:19:21
Score: 3
Natty:
Report link

As noted by Yassine, for me ctr+shift+P then ">Python: Install the Jupyter Extension" worked

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

79090841

Date: 2024-10-15 16:19:21
Score: 0.5
Natty:
Report link

Hello this can be done in multiple ways, i m using Excel 2021:

enter image description here

Hope it helps.

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

79090832

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

This is a old question, but I got the same in NET 8.0 with Swagger 6.9. and 6.8. The problem was resolved, cleaning the browser cache. To see if this the problem opens your application swagger in an incognito window.

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

79090822

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

See the bellow points in order to fix the issue.

  1. Log through SLF4J only.
  2. Check for multiple appenders targeting the same output.
  3. Ensure only one logging implementation is present on the classpath.
  4. Set additivity="false" to avoid message propagation.
  5. Avoid duplicate logging statements in your code.
  6. Make sure there is a single SLF4J binding.

By following these steps, you should be able to prevent duplicate log messages in your Java application.

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

79090821

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

Loading skinViewer.playerObject into a Three.js scene causes texture loading issues. Since skinview3d is built on top of Three.js, it provides a solid foundation. You can continue working by adding new objects to skinview3d.scene.

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

79090811

Date: 2024-10-15 16:11:18
Score: 7 🚩
Natty: 5.5
Report link

Hi team I'm using DBeaver I have a problem I set up the iddle time out but even if I'm running a Query in SQL Editor and the query doesn't finish it close the session.

Do you know how to resolve this? I need Dbeaver doesn

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): how to resolve this?
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: cmonterog

79090810

Date: 2024-10-15 16:11:18
Score: 1.5
Natty:
Report link
import org.apache.spark.sql.functions._

val testString = " I am X. X Works for Y."
val testDF = Seq (testString).toDF
val testDF1 = testDF.withColumn("new", explode(split($"value".cast("String"), "\\s+"))).withColumn("value" ,regexp_replace(col("new"), "[.]*", "")).drop("new")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Uma

79090802

Date: 2024-10-15 16:08:17
Score: 1
Natty:
Report link

On October 15th, I had this issue.

  1. I went to Tools > Device Manager and noticed my attached device was not showing.
  2. From there I went to my attached device, went to the notifications shade selecting the Android System USB notification.
  3. I then turned on the "File Transfer / Android Auto" option under the "USE USB FOR" section of the USB Preferences setting menu.

This fixed the "loading devices" issue for me. I am only posting my answer because while I am sure the ADB kill option may work, my solution kept me from rebooting anything. If you are Linux fan boi like me then you know its all about up time. Also my answer had not been posted yet and so I figured it provide someone seeking a solution more context in their journey.

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

79090798

Date: 2024-10-15 16:07:17
Score: 2
Natty:
Report link

Hey buddy I just ran into the same problem. I noticed I did not complete setting up the npm init. You have to click enter to run through all the npm init settings before attempting to download any package. Once npm init is complete you will be prompt to enter yes as to configurations meet your requirement, than you may install further packages.

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

79090797

Date: 2024-10-15 16:06:17
Score: 0.5
Natty:
Report link

I source-to-source translated my Modula-2 sources into C code using the mtc tool of the cocktail toolbox (on https://github.com/cocolab8/cocktail-src). This worked fine and since then I maintain the resulting C programs and no longer the modula-2 code. Some editing of the generated C code was done to improve readability and maintainability e.g. insertions and adaptations of the original comments.

This solves all 3 points of the question, since 1) no modula programmers are needed any more to maintain the resulting C code, 2) porting of the C-Code to new hardware is well understood and 3) the tools mentioned for C can be used.

I also have clients who maintain the modula-2 code and translate it to C after each change. With this scheme also newer hardware can be addressed and tools be used on the generated C code.

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

79090796

Date: 2024-10-15 16:06:17
Score: 3.5
Natty:
Report link

clearing cookies, and restart the chrome solved the problem.

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

79090789

Date: 2024-10-15 16:03:16
Score: 0.5
Natty:
Report link

Another approach is to use alignment for the ZStack instead of spacer. You will ensure that the elements will be aligned/overlayed starting from the top in this example.

    ZStack(alignment: .top) {
        Text("Hello, World!")
        
        VStack {
            Image(...)
        }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fares Benhamouda

79090784

Date: 2024-10-15 16:01:15
Score: 4
Natty: 4
Report link

Thanks, the answer from @Matus Cic solved my Problem. Use HTTP_PROXY/HTTPS_PROXY without http/https suffix, which is usually default on linux systems.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Matus
  • Low reputation (1):
Posted by: Steven Varco

79090780

Date: 2024-10-15 15:59:15
Score: 1
Natty:
Report link

The correct way was to use SystemTime type to store timestamp.

use std::time::{SystemTime};
let timestamp: SystemTime = SystemTime::now();
params.push(&timestamp);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Eugene

79090777

Date: 2024-10-15 15:59:14
Score: 5
Natty: 4.5
Report link

Follow the official page dependency-injection/hilt-android

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

79090774

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

I've also had issues when trying to prevent the "Workbook_Open" macro from running when opening an Excel file by holding down the shift key. It used to work every time but like so many other things with Windows 11 and Office 365, Microsoft isn't too concerned with making things work anymore.

The most reliable way I've found to prevent the auto macro from firing is to put the Excel VBA engine into break mode before opening the file. Just place a breakpoint in any macro, {F9} key, and then run this macro until VBA stops. While in break mode the VBA engine won't respond to any other macro event so you can open the file you want to edit without the "Workbook_Open" macro running.

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

79090748

Date: 2024-10-15 15:49:11
Score: 3
Natty:
Report link

I used the patche mentioned above, and the swipe got fixed. However, the video in the product gallery stopped playing.

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

79090735

Date: 2024-10-15 15:47:11
Score: 3
Natty:
Report link

This was downvoted, but I still think a legit question, that admittedly could have been way phrased better.

In order to get the placeholder view to stay instead of being dismissed you need to return true for the AVPlayerViewControllerDelegate function playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart.

Reasons:
  • RegEx Blacklisted phrase (2): downvote
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JohnO

79090733

Date: 2024-10-15 15:47:11
Score: 3.5
Natty:
Report link

The solution was so destroy and reapply everything. The Loadbalancer had a Cert then.

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

79090727

Date: 2024-10-15 15:46:10
Score: 1.5
Natty:
Report link

haxelib setup worked for me, first time install.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: FBDev

79090726

Date: 2024-10-15 15:45:10
Score: 3.5
Natty:
Report link

Write break; statement as last line of else code block. It will stop the for loop.

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

79090724

Date: 2024-10-15 15:45:09
Score: 6.5 🚩
Natty: 5.5
Report link

i have the same problem. the problem is that strategy.entry uses pyramiding, meaning that long and short trades are considered as a whole by default, meaning reverse trading is active and therefore closing long trades when short signals occur.

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hola

79090705

Date: 2024-10-15 15:39:07
Score: 2
Natty:
Report link

You were not doing anything wrong, this was an implementation limitation.

Your example compiles successfully since Scala 3.4, thanks to the changes introduced in SIP-56: "Proper specification for match types" (text, PR).

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Matt Bovel

79090699

Date: 2024-10-15 15:37:07
Score: 4.5
Natty:
Report link

What about Navigator.popUntil(context, ModalRoute.withName('/login'));?

here the reference

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Bogghi

79090697

Date: 2024-10-15 15:36:06
Score: 1
Natty:
Report link

This is what it looks like on my end (R4.3.3; Ubuntu). I increased the size in geom_point(). Don't see any issues.

Please add to your question:

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Till

79090691

Date: 2024-10-15 15:35:06
Score: 1
Natty:
Report link

Returns an error with this code: bot = telebot.TeleBot(token)

@bot.message_handler(commands=['start','starting']) def feed(bot, update): # send reply to the user bot.send_message(chat_id=update.message.chat_id, text='reply this message') # forward user message to group # note: group ID with the negative sign bot.forward_message(chat_id='-1002462475647', from_chat_id=update.message.chat_id, message_id=update.message.message_id) bot.polling(none_stop=True),

here is the error: TypeError: feed() missing 1 required positional argument: 'update'

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

79090687

Date: 2024-10-15 15:34:05
Score: 1.5
Natty:
Report link

Here is a GPU based Flipping technique. I just used Graphics.Blit. Check the code below. I kept this answer here so I or anyone else can find a faster way to do it. So the Vector2(-1, 1) is what does the trick. It Scales in X axis or Y axis. So I just set it to Negative to flip.

Graphics.Blit(mainTexture, renderTexture, new Vector2(-1, 1), Vector2.zero);

To understand more about Graphics.Blit, check below link. Graphics.Blit

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

79090681

Date: 2024-10-15 15:33:05
Score: 1
Natty:
Report link

I had a similar error message ("Cannot find container to attach, check if the container is running or not").

In my case I upgraded my project from net6 to net8 and after that the error occurred.

What didn't help:

What did help:

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

79090680

Date: 2024-10-15 15:33:05
Score: 3
Natty:
Report link

When developing, I had Laravel Horizon running in the background as the queue driver. It hadn't been restarted and was running the old instance of Laravel which didn't have the new event/broadcasting code. So when I restarted it, it ran the event perfectly.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Ed Stephenson

79090677

Date: 2024-10-15 15:33:05
Score: 2
Natty:
Report link

In my case I could not remove the private repository reference for other reasons so had to investigate further. For me, this was because a single private package was no longer available in a private repository, and so could not be restored.

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

79090670

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

I solved it by adding

padding-top: 10px

padding-bottom: 10px

margin: -10;

to the selector class

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thief Beatbox

79090669

Date: 2024-10-15 15:31:05
Score: 2.5
Natty:
Report link

You could just pull the timestamp millis out of the JSON and into a FlowFile attribute and then use RouteOnAttribute much like described in ROuting entire Json Contents based on json field.

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

79090664

Date: 2024-10-15 15:30:04
Score: 2
Natty:
Report link

Calculate the effective transmission rate for persistent and non-persistent HTTP connections. Given: a). Total number of objects: 6 b). Object size: 500 KB each c). RTT (Round Trip Time): 50 ms Compare the transmission times for persistent and non-persistent connections.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anish Kumar Mishra

79090663

Date: 2024-10-15 15:29:04
Score: 1.5
Natty:
Report link

Probably it's because forgotten plugin like SVGR

Try to add it to your Jest config like you did for your bundler config (e.g. webpack: loader: require.resolve('@svgr/webpack'))

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

79090662

Date: 2024-10-15 15:29:03
Score: 8 🚩
Natty: 4.5
Report link

Me gustaría saber con quién puedo hablar dentro de tu empresa Analyticalpost para comentar la posibilidad de que aparezcáis en prensa. Hemos conseguido que negocios como el tuyo sean publicados en periódicos como La Vanguardia o La Razón, entre muchos otros.

Aparecer en periódicos digitales es una solución de gran valor para vosotros porque os permitirá: Mejorar vuestro posicionamiento y visibilidad en los buscadores, incrementar la confianza que transmitís cuando vuestros clientes os busquen en internet y diferenciaros de la competencia.

Nuestro precio es de 195e. Te puedo enseñar ejemplos y casos de éxito para que veas cómo funciona. Ofrecemos devolución del dinero si no conseguimos resultados.

¿Cuándo te iría mejor que te llamáramos? Puedes reservar una llamada con nosotros: https://calendly.com/d/cmg7-bpj-8cy/demostracion-prensa

Un saludo.

Reasons:
  • Blacklisted phrase (1): ¿
  • Blacklisted phrase (1): cómo
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (3): solución
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Martina

79090658

Date: 2024-10-15 15:29:03
Score: 1
Natty:
Report link

it helped me to create module-info.java file in src/main/java that looks like this

module HelloFX {
    requires javafx.controls;
    requires javafx.graphics;
    exports hellofx; //package name where the main class is
}

image

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

79090657

Date: 2024-10-15 15:28:02
Score: 5
Natty:
Report link

The solution to this was to add @NotAudited to the PersonPreference.person field.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @NotAudited
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: budducci

79090646

Date: 2024-10-15 15:27:02
Score: 1
Natty:
Report link

As of October 2024, TensorFlow v2.16.2 supports Python 3.12 and can be easily installed:

$ uv add "tensorflow==2.16.2"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: makukha

79090636

Date: 2024-10-15 15:26:02
Score: 1
Natty:
Report link

Yes I resolved this in the same manner as Levis Noor, namely, I added an exclusion to the folder containing powershell to my anti-virus (Norton).

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dagmawi Workineh Yemesgen

79090627

Date: 2024-10-15 15:23:01
Score: 2
Natty:
Report link

you can build a csv and import it and add an id field that you can use through FF, otherwise rowy does it quite nicely too

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emilie D

79090611

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

indeed i already found the answer:

SELECT elem
FROM jsonb_array_elements('["*", "12/05/2020"]'::jsonb) AS elem
WHERE elem::text != '"*"';

you need both single and double quotes!

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

79090609

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

You can write a function to pop every route, and push a new one when it's empty, something likw this:

void clearAndNavigate(String path) {
  while (getGoRouter().canPop() == true) {
  getGoRouter().pop();
}
  getGoRouter().pushReplacement(path);
}

getGoRouter is an instance of GoRouter

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

79090608

Date: 2024-10-15 15:18:59
Score: 4
Natty: 4.5
Report link

Following the release of Airflow 2.10.0, dags can be reparsed on demand in the UI: https://airflow.apache.org/blog/airflow-2.10.0/#on-demand-dag-re-parsing

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

79090599

Date: 2024-10-15 15:15:59
Score: 2
Natty:
Report link

You can add axes to an existing chart in Python using xlwings with chart.api.Axes(1) for the primary X-axis and chart.api.Axes(2) for the primary Y-axis.

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

79090595

Date: 2024-10-15 15:14:58
Score: 2.5
Natty:
Report link

You might want to take a look at Chronos ESP32 library. This would work with the Chronos app (Available on Android only). It sends navigation instructions from Google Maps via BLE to the ESP32. It also includes the direction icon (48x48px)

Take a look at the implementation in ESP32 C3 mini LVGL project

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

79090588

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

Code black

Trap to 

sahil

il

khan

30cr `

========== my

-


Account number

-

Send me


Sir .............?


`

`

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ==========
  • Filler text (0): .............
  • Low reputation (1):
Posted by: Arman T Khan

79090585

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

You have to use DeviceToken with the RegistrationService as shown here: https://wiki.genexus.com/commwiki/wiki?18149,HowTo%3A%20Use%20a%20Device%27s%20Registration%20Service%20for%20Push%20Notifications

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

79090581

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

Simple

  1. Add a score card to the page
  2. Add date as a metric to the scorecard
  3. Click on the edit button on the date metric in the score card
  4. Change the datatype to ISO week
  5. Change the aggregation to Max

This will provide you with a week number for the latest week in the data

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

79090580

Date: 2024-10-15 15:11:57
Score: 5
Natty: 5
Report link

Anyone know of a way to display the two different legends with plotly (in this case, continent color and points sizes), and not one merged legend ?

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

79090576

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

Thanks to the comment by @Grzegorz Sapijaszko I was able to resolve the issue. I had requested SIMPLE_CSV as the file format for download (as in many of the tutorials I had followed). However, the number of attributes available from a SIMPLE_CSV is limited. To get all available data, use DWCA as a method of download. This downloads data into multiple separate text files into a folder. Here is the updated code (also a simple tweak to make it more easily reproducible by saving the download number into a res object and changed the phylum to one with fewer species to speed up the example).

library(rgbif)
# Request data 
res<-occ_download(pred_and(pred("phylumKey", 13), pred("gadm","ETH")),
             format = "DWCA")#!!!! change SIMPLE_CSV to DWCA

# Check download status using occurrence number,
# see result in console from previous step
occ_download_wait(res)

# Load data
df <- occ_download_get(res) %>%
  occ_download_import()
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Grzegorz
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kl-higgins

79090564

Date: 2024-10-15 15:08:56
Score: 0.5
Natty:
Report link

This solution works for me. It is taken from here:

print(soup.prettify(formatter=None))
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergiy Maksymenko

79090554

Date: 2024-10-15 15:06:55
Score: 0.5
Natty:
Report link

you can use the modal like this website. It detects the user device weather its iPhone or android. based on the device it shows the modal to follow the instructions to install the PWA. this will only work on mobile version. instagram story viewer

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zahid Hussain

79090549

Date: 2024-10-15 15:05:55
Score: 3.5
Natty:
Report link

your origin should use https. if you use nextjs add --experimental-https

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

79090543

Date: 2024-10-15 15:05:55
Score: 2.5
Natty:
Report link

A big thank you to @Ken White. Indeed to backdown rows, one has to monkey with the loop. Please see the following paragraph. Also a big thank you to @rotabor for his variants. His theorems pass the test but fail in practice. They don't take into account variadic rows (having different number of columns) and mixed. However, I would kindly ask that he doesn't delete them, because they are valuable learning materials. They have been immensely helpful. I will also state the same for the comments (all of them).

Because we are iterating backwards and inserting rows above the current row, It is not just the countdown for the rows that matters. As it turns out, the loop (which ever you choose to use) will have you know, that you will not go past your set limit of 0 even if you needed to! And just so you know it doesn't make mistakes on which row it visits, if you are required to overstep your limit to get to the newly inserted row (-1 or 0) and you are at the top of the chain (0 or 1), it will terminate at the limit and won't care.

And so, if you are counting backwards, then the limit shall also back up a notch every time you add a new row from the top of the last one (when logically you are at row 1 but internal counter is at 0 or some other like -1 because you update your range)! See, its the little things we miss. Who knew you'd have to backup your limit?

So here is the solution.

Sub ReverseIterateAndInsertRowRestart()

' Firstly, sort the fields if rows have mixed data to avoid duplicates.
' Use a procedure that looks good to you here: https://stackoverflow.com/questions/79082783.
  Call SortBlanksOnTop
  
' Set up your variables and turn off screen updating.
  Dim Cell As Range
  Dim addedRow As Boolean
  Application.ScreenUpdating = False
  
' Initialize.
  a = 0
  b = r.Rows.Count
  c = r.Columns.Count
  
' Iterate through each row from bottom to top.
  Do While b > a
    ' Assume no row has been added
      addedRow = False
          
    ' Iterate through each column from right to left within that row
      For d = c To 1 Step -1
          Set Cell = r.Cells(b, d)
        ' Use non-formular cells that have a column to the left...
          If SomeConditionIsMet Then
                ' Row #
                  e = Cell.Row
                
                ' Copy the current row
                  w.Rows(e).Copy
                  
                ' Insert the copied row above the current row
                  w.Rows(e).Insert Shift:=xlDown
                
                ' Clear the cell in the inserted row at the current cell's column
                  w.Cells(e, Cell.Column).ClearContents
                
                ' Update the range to include the new row
                  Set r = w.Range(r.Cells(1, 1), r.Cells(r.Rows.Count + 1, r.Columns.Count))
                
                ' Indicate that a row has been added
                  addedRow = True

                ' Restart loop for current row
                  Exit For
        End If
      Next d
    ' Count down
      b = b - 1
    ' If a row was added, adjust the row limit to account for the new row
      If addedRow And b < 1 Then a = b - 1
  Loop
  
' Turn screen updating back on.
  Application.ScreenUpdating = True

End Sub

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Ken
  • User mentioned (0): @rotabor
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John Miller

79090539

Date: 2024-10-15 15:04:55
Score: 0.5
Natty:
Report link

(Note, this answer and its code comments assume an understanding of how slices in Go are represented in memory, specifically "backing arrays". If unfamiliar, read here: https://go.dev/blog/slices-intro)

Yes, this is possible without allocating memory for a new backing array. Using the unsafe package, this is fairly straightforward. Here is a heavily-commented example:

import "unsafe"

func convert(sliceOfArrays [][4]byte) []byte {
    // create an *unsafe.ArbitraryType, specifically *[4]byte, from the original slice's backing array
    sliceData := unsafe.SliceData(sliceOfArrays)

    // convert to an unsafe.Pointer; this is necessary to allow the next step to be possible
    pointer := unsafe.Pointer(sliceData)

    // convert to a *byte
    // NOTE this is a pointer to a single byte, not a slice of bytes
    // from the documentation: "unsafe.Pointer can be converted to a pointer value of any type"
    bytePointer := (*byte)(pointer)

    // calculate how many total elements (bytes, in this case) will be in the resulting slice
    // in this case, this is just 4 * len(sliceOfArrays) / 1
    length := int(unsafe.Sizeof([4]byte{})) * len(sliceOfArrays) / int(unsafe.Sizeof(byte(0)))
    // more generally, this formula is:
    // numberOfResultingElements = sizeOfOriginalElement * numberOfOriginalElements / sizeOfResultingElement

    // unsafe.Slice creates a new slice of bytes
    // the backing array of this slice starts at the memory location of `bytePointer`
    // the slice has both length and capacity of `length`
    return unsafe.Slice(bytePointer, length)
}

Note, the original slice sliceOfArrays and the return value of convert() are sharing the same backing array, so modification to one will affect the other:

mySliceOfArrays := [][4]byte{{0, 1, 2, 3}, {4, 5, 6, 7}}
sliceOfBytes := convert(mySliceOfArrays)

fmt.Println(mySliceOfArrays) // [[0 1 2 3] [4 5 6 7]]
fmt.Println(sliceOfBytes)    // [0 1 2 3 4 5 6 7]

// changing the original changes the result
mySliceOfArrays[0][2] = 99
fmt.Println(sliceOfBytes)    // [0 1 99 3 4 5 6 7]

// changing the result changes the original
sliceOfBytes[7] = 13
fmt.Println(mySliceOfArrays) // [[0 1 99 3] [4 5 6 13]]

All this code in the Go Playground

(Note, new allocations such as from sliceOfBytes = append(sliceOfBytes, value) will likely result in a new backing array being transparently allocated for sliceOfBytes and its "connection" to mySliceOfArrays being broken.)

This works, in part, because:

unsafe.Slice doesn't really care about what the original data was meant to represent. You could change convert() to return []float64 if you wanted to get weird, as long as you re-calculate the slice length appropriately. In the above example, you'd need two [4]byte for each float64 in the result. Here is convertToFloat64s() in the Go Playground

(If anyone knows of non-obvious issues with this method, please leave a comment.)

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Venning

79090533

Date: 2024-10-15 15:03:54
Score: 3
Natty:
Report link

Most probably you didn't select the Region in which you have the default network.

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

79090532

Date: 2024-10-15 15:03:54
Score: 1
Natty:
Report link

Thanks to @SedJ601 for the inspiration that led me to take a new approach which solved all my problems! In order to use results from a database, but also change the values that are bound to the textfield based on what is input. You must bind the textfield using a suggestion provider that is bound to a list. Then based on the On Key Typed, whenever the user input is at the length needed, you query the database and populate the query results in the list. This way, you only bind the textfield once, but constantly manipulate that list itself. I previously attempted to do this without using the suggestion provider using the method:

TextFields.bindAutoCompletion(TextField tf, Collection<E> c);

USING THE ABOVE METHOD will not work with manipulating the list. You must use the suggestion provider method below in your initialize() method:

List<String> autoCompleteModels = new ArrayList<>();
@FXML private void initialize(){
    TextFields
        .bindAutoCompletion(modelQuickSearchTextField, input -> {
            if (input.getUserText().length() < 2) {
                return Collections.emptyList();
            }
            return autoCompleteModels.stream().filter(s -> s.toLowerCase().contains(input.getUserText().toLowerCase())).collect(Collectors.toList());
        })
        .setOnAutoCompleted( e -> {
            String model = e.getCompletion().split("\s\\|\s")[0];
            openExistingInventory(SimpleCypher.getModelData(model));
            modelQuickSearchTextField.clear();
        });
}

And then use this method "On Key Typed" (I have it as a seperate method since I'm using JavaFX FXML Scenebuilder, but you can also do textField.onKeyTyped())

//TextField On Key Typed
@FXML TextField modelQuickSearchTextField;
@FXML private void modelAutoComplete() {
    String input = modelQuickSearchTextField.getText().toUpperCase();
    if (input.length() == 2) {
        Task<List<String>> queryTask = new Task<>() {
            @Override
            protected List<String> call() throws Exception {
                List<String> resultModels = new ArrayList<>();
                try (Session session = DatabaseConnection.getSession()) {
                    Result result = session.run("""
                            MATCH (mo:InventoryModel)
                            WHERE mo.id CONTAINS $textFieldInput 
                            CALL{
                                WITH mo
                                OPTIONAL MATCH (mo)-[:EXISTS_AS]->(:InventoryItem)-[hcs:HAS_CURRENT_STATUS]->(:Status{id:'AVAILABLE'})
                                RETURN sum(hcs.qty) AS available
                            }
                            RETURN mo.id + ' | ' + toString(available)
                            """,
                            Values.parameters("textFieldInput", input));
                    while (result.hasNext()) {
                        Record record = result.next();
                        resultModels.add(record.get(0).asString());
                    }
                }
                return resultModels;
            }
        };

        queryTask.setOnSucceeded(event -> autoCompleteModels = queryTask.getValue());

        // Start the task asynchronously
        Thread queryThread = new Thread(queryTask);
        queryThread.setDaemon(true); // Set as daemon thread to allow application exit
        queryThread.start();
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @SedJ601
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: GQ16