79111755

Date: 2024-10-21 21:09:58
Score: 5.5
Natty: 3.5
Report link

I am looking for an easy way to do this in Google apps script. If people could reply, It would make my day.

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Graham B

79111748

Date: 2024-10-21 21:06:57
Score: 2.5
Natty:
Report link

I just had this error. The solution was I forgot that I was iterating over an ArrayList to access an object and needed to use dot notation to access the method I wanted to use. I was treating the object like a primary.

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

79111739

Date: 2024-10-21 21:04:57
Score: 3
Natty:
Report link

Try OnCollisionEnter2D instead of OnCollisionStay2D. But I would use OnTriggerEnter2D, OnTriggerExit2D

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

79111738

Date: 2024-10-21 21:03:57
Score: 2
Natty:
Report link

A breakpoint stops execution before the line its placed on. So you are trying to read an uninitialized string, and the error is expected. If you were to step forward in execution (or place the breakpoint one line later) I suspect you wouldn't encounter this error.

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

79111735

Date: 2024-10-21 21:02:57
Score: 0.5
Natty:
Report link

Your question is vague, therefore my answer will also be.

Option 1) I would assume that you are uploading some large file with a combination that your internet connection is not fast and unstable. Maybe some VPN or other network switching. Thats the way how the browser gets network:reset.

Option 2) The upload code breaks, the services quits, and the internal server proxy resets the connection.

Try to replicate the production environment in your local machine using docker and debug it from there.

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

79111724

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

I just found an answer somewhere and it seems to resolve the issue for me: Apparently, if you deduplicate, usually the Pixel event is kept while the Conversions API event is discarded. If the Pixel event for some reason can't be used for attribution, as a result there is no attribution.

What I did is pausing the purchase pixel event in GTM and testing (clicking on the ad link and placing order) and suddenly this conversion was in fact attributed. https://www.ablecdp.com/blog/two-reasons-why-your-facebook-conversions-api-integration-doesnt-work

I'll be keeping an eye out on this actually solving the issue for good, but hopefully this will fix it for you as well.

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

79111716

Date: 2024-10-21 20:53:55
Score: 1
Natty:
Report link

@Sep Roland I have tried to fix my code and that is the result:

.code
DeuteranopiaAsm proc

SimulateDeuteranopiaASM:
    ; RCX = originalImage (pointer)
    ; RDX = processedImage (pointer)
    ; R8  = pixelCount (number of pixels)
    ; R9  = stride (bytes per row)

    mov r11, rcx              ; Save pointer to original image
    mov r10, rdx              ; Save pointer to processed image

    xor rbx, rbx              ; Use RBX as pixel counter

PixelLoop:
    cmp rbx, r8               ; Check if all pixels are processed
    jge EndLoop               ; If rbx >= pixelCount, exit

    mov rax, rbx              ; Copy pixel counter to rax
    shl rax, 1                ; rax = rbx * 2 (shift left by 1)
    add rax, rbx              ; rax = rax + rbx = rbx * 3

    ; Load color data (B, G, R)
    mov al, byte ptr [r11 + rax]     ; Load blue channel
    mov cl, byte ptr [r11 + rax + 1] ; Load green channel
    mov dl, byte ptr [r11 + rax + 2] ; Load red channel

    ; Simulate deuteranopia (adjust color channels)
    ; New Red channel
    movzx r8d, dl              ; Convert red channel to 32-bit
    imul r8d, 625              ; R = R * 0.625
    movzx r9d, cl              ; Convert green channel to 32-bit
    imul r9d, 375              ; G = G * 0.375
    add r8d, r9d               ; New Red = (R * 0.625 + G * 0.375)
    shr r8d, 8                 ; Divide by 256 to fit in byte range

    ; Clamp red channel
    cmp r8d, 255
    jle NoClampRed
    mov r8d, 255
NoClampRed:

    ; Transform green channel
    movzx r9d, cl              ; Reload green channel
    imul r9d, 7                ; G = G * 0.7
    shr r9d, 8                 ; Divide by 256

    ; Clamp green channel
    cmp r9d, 255
    jle NoClampGreen
    mov r9d, 255
NoClampGreen:

    ; Transform blue channel
    movzx rax, al              ; Convert blue to 32-bit
    imul rax, 8                ; B = B * 0.8
    shr rax, 8                 ; Divide by 256

    ; Clamp blue channel
    cmp rax, 255
    jle NoClampBlue
    mov rax, 255
NoClampBlue:

    ; Store processed pixel back into the image
    mov byte ptr [r10 + rax], al     ; Store blue channel
    mov byte ptr [r10 + rax + 1], cl ; Store green channel
    mov byte ptr [r10 + rax + 2], dl ; Store red channel

    inc rbx                   ; Increment pixel counter
    jmp PixelLoop             ; Repeat for next pixel

EndLoop:
    ret
DeuteranopiaAsm endp
end

The code compiles but the output image is black with strange dots in the upper left corner. input photo

output photo

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Sep
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kacper Baryłowicz

79111715

Date: 2024-10-21 20:53:55
Score: 2
Natty:
Report link

After investigate some answers on the web, i realized that funcion cell.SetCellValue has multiple overloadings to set different value types (int, double, string, DateOnly, DateTime, Bool). For example. If you send a numeric value as a string (number.ToString()), the function writes the num as a string on the cell, causing the described behaviour on the question, but if you send an integer or a double without converting it to string, then the function writes the value as number.

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

79111706

Date: 2024-10-21 20:49:54
Score: 0.5
Natty:
Report link
final _firebaseMessaging = FirebaseMessaging.instance;   

 if (Platform.isIOS) {
          String? apnsToken = await _firebaseMessaging.getAPNSToken();
          print('APNS Token: $apnsToken');
          await Future.delayed(Duration(seconds: 2));
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abdallah Mohamed

79111703

Date: 2024-10-21 20:48:54
Score: 3
Natty:
Report link

When MSMQ is used for job queuing, new jobs are queued for execution in MSMQ queue and they are immediately available for processing as a subscription model is used in this case instead of a polling one. So if you want to reduce background job latency use this instead of sql server.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Dheeraj Malhotra

79111701

Date: 2024-10-21 20:47:53
Score: 3.5
Natty:
Report link

Unbelievable. Right clicking the database in Studio 3T and selecting "Refresh All" made both collections visible.

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

79111700

Date: 2024-10-21 20:46:53
Score: 4.5
Natty: 4
Report link

You can get the firefox working in vnc on termux, see my post here https://h4ck3rm1k3.wordpress.com/2024/10/01/running-firefox-developer-in-vlc-on-android/

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

79111692

Date: 2024-10-21 20:43:51
Score: 5.5
Natty:
Report link

I'm also trying to deploy VS Code in Docker on Windows 10.

I found this nice guide: https://www.linkedin.com/pulse/connecting-microcontrollers-platformio-running-linux-windows-jenssen-c6ulf and followed it, but unfortunately I can't see the USB target port (e.g. connected ESP32) in VS Code (PlatformIO extension), which is connected to a running Docker container using WSL2.

I have the device binded and: attached, in Ubuntu app after lsusb command I can see: output

When I run the command lsusb I get this: output

so ubuntu sees the USB device connected. But after running ls /dev I don't see something like /dev/ttyUSBx or /dev/ttyACMx there but the device can be found in /dev/usb/... directory.

I also tried adding the file 99-platformio-udev.rules file in /etc/udev/rules.d according this tutorial: https://docs.platformio.org/en/latest/core/installation/udev-rules.html#platformio-udev-rules

and even add these permissions:

$ sudo adduser <username> dialout
$ sudo chmod a+rw /dev/ttyUSB0

but it didn't make any changes.

Could you please advise me if it is possible to ensure that, even when VS Code is running in a Docker container, USB devices can be seen in VS Code PlatformIO extension and therefore it is possible to upload a program to them?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this tutorial
  • RegEx Blacklisted phrase (2.5): Could you please advise me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: iotdeveloper

79111685

Date: 2024-10-21 20:40:50
Score: 0.5
Natty:
Report link

Several genealogy programs have mapping functionality built into them e.g. Family Historian

If you want something more flexible try the Open Source GIS solution QGIS Once you have it installed there are plenty of tutorials to familiarise yourself. It has the ability to import data from say a CSV file, or perhaps a track in KML.

If you want to go further there has been a lot of work done to use it for mapping migration. A good starting point for resources to do that are here. There is a video and even a few QGIS plugins for flow mapping.

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

79111676

Date: 2024-10-21 20:37:49
Score: 3
Natty:
Report link

Have you seen https://community.sonarsource.com/t/where-is-the-documentation-on-how-to-suppress-each-kind-of-warning/8888?

also you can use #pragma warning disable S1118

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: amit

79111667

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

I'm confirming that this is a problem and a fix is in development.

If possible, sharing a Client ID will enable Google to more quickly verify that the fix works as intended.

Client IDs are public, included the site HTML source loaded by the browser and are generally safe to include in comments and code samples. Security is maintained by OAuth authorized origins and redirect URLs.

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

79111661

Date: 2024-10-21 20:34:48
Score: 1.5
Natty:
Report link

In my case Chrome's 'Network throttling' was set to 'Offline'.

I have removed this error by going to 'Ctrl+Shift+I' > 'Network' tab > click on 'More network conditions...' icon > select 'Network throttling' to 'No throttling'.

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

79111658

Date: 2024-10-21 20:31:48
Score: 3
Natty:
Report link

To anyone else with the same problem; I found the following algorithms that seem to be exactly what I'm looking for:

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

79111657

Date: 2024-10-21 20:31:48
Score: 1.5
Natty:
Report link

It refers to you are offline from server. In my case Chrome's 'Network throttling' was set to 'Offline'.

I have removed this error by going to 'Ctrl+Shift+I' > 'Network' tab > click on 'More network conditions...' icon > select 'Network throttling' to 'No throttling'.

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

79111654

Date: 2024-10-21 20:29:47
Score: 0.5
Natty:
Report link

Developing @lucas Ross answer:

You make it on a one line command :

 distinct_tuples = [for k, v in { for t in <your_tuples> : t.a => t... } : v[0]]

Explanation: The first loop will group by each tuple that have the same "a" attribute. This is done using ... symbol. You will have the following Map of objects:

  map     = {
    "1" = [
        {
          a = 1
          b = 2
        },
        {
          a = 1
          b = 3
        },
    ]
    "5" = [
        {
            a = 5
            b = 4
        },
    ]
}

for the second loop, it will flatten the map created previously and selects only the first value. you will get the following object:

[
    {
        a = 1
        b = 2
    },
    {
        a = 5
        b = 4
    },
]

references:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @lucas
  • Low reputation (0.5):
Posted by: ilyesAj

79111638

Date: 2024-10-21 20:25:46
Score: 2
Natty:
Report link

In my case I'm only triggering in GitHub when a new tag is released, replace the double quote fix the issue, and the build runs automatically.

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

79111614

Date: 2024-10-21 20:15:44
Score: 1.5
Natty:
Report link

Your script doesn't stop after the second line because of how Bash handles errors in command substitutions. When you use $(...), if the command inside fails, Bash doesn't exit, even with set -e. So when false runs inside $(false), it fails, but the script keeps going.

The read a <<< $(false) line ends up assigning an empty string to a because $(false) produces nothing. That's why your script prints Hi there: ><, showing that a is empty.

You need a way to catch the failure of the command inside $(...). Since set -e doesn't catch it you have to check the command's exit status yourself. One way is to run the command first, check if it succeeded, and then assign its output.

So, to reliably detect if the command failed or just returned an empty string you should separate the command execution from the assignment. If the command fails your script can exit or handle the error properly.

Reasons:
  • Blacklisted phrase (0.5): Hi there
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: CodingCossack

79111609

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

Assuming tempo is stable and you know beat positions you can average/sum onset value at beats, grouped by index modulo x. X could be from 2 to 8. Discovering downbeat would be to create some heuristics that compare these groups and select the one where 1 bin is evidently stronger than others. Bin number would give you position on which you have downbeat (bar start), while x value would give you meter. This is what I actually plan to do in my case.

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

79111606

Date: 2024-10-21 20:12:43
Score: 3.5
Natty:
Report link

thanks for the link, indeed this is where I pulled some of my code...

I fiddled some more with my code and managed to get it running:

serial.js

    // get available USB devices 
serial.getPorts = async function() {
  console.log('Ser: getPorts'); 
  return navigator.usb.getDevices().then( devices => { // get WinUSB devices 
    console.log('getPorts: devices: ',devices)
    const deviceList = [];

    devices.sort((a, b) =>  a.serialNumber < b.serialNumber ? -1 : 1 );   // sort devices by serial number

    devices.forEach(element => {                    // list only devices of interest
      if (element.manufacturerName === 'Tardy' &&     
          element.productName === 'T-BOS 3.0')
        deviceList.push(new serial.Port(element));               
    });

    deviceList.forEach( element => {
      let listed = false; 

      // Check is the channel is already listed in channelListe
      channelList.forEach((item) => {                 // check if has already been listed
        if (item.serialNumber === element.device_.serialNumber) {
          listed = true;      
        }
      })

      // Not listed => Push the port to channelList... this creates a new entry...
      if (listed != true) {
        channelList.push(new channel(element.device_.productName + ' ' + element.device_.serialNumber, element.device_.serialNumber, 0));
      } 
    });

    console.log('getPorts: deviceList: ',deviceList)
    return deviceList;
  });
};

is working for me now.

I missed the need to add .device_. to access the entries of deviceList.

When pushing elements of devices (devices.forEach( element => ...) into my deviceList then .device_. is added? Any hint on this?

As you can see at the arrow device_ is added in deviceList

Greetings GvTT

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GvTT

79111590

Date: 2024-10-21 20:07:42
Score: 4.5
Natty: 4.5
Report link

Obviously everyone knows here that even if a byte is the tiniest storage place for data, there's also methods to store characters in one bit...?

right?

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

79111587

Date: 2024-10-21 20:06:41
Score: 2.5
Natty:
Report link

SWC is a compiler/transpiler and bundler for Javascript/Typescript, generally it's faster than other options like babel, tsc, esbuild. SWC website: SWC

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

79111583

Date: 2024-10-21 20:05:41
Score: 3
Natty:
Report link

If you are using Windows 11 (all versions) or Windows 10 v2004 (19041 or newer) you can install Microsoft Powertoys and use Win + Ctrl + T shortcut while you are focused on a window to make it always on top.

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

79111582

Date: 2024-10-21 20:05:41
Score: 1
Natty:
Report link
GDAL_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libgdal.so.30 
GEOS_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libgeos_c.so

for my ubuntu installation

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

79111576

Date: 2024-10-21 20:02:40
Score: 0.5
Natty:
Report link

The issue was a slash at the end of the route. In CI3 we didn't have required routes, and when I made the route for this page I left a trailing slash at the end. Example is this:

$routes->get('manage/project/(:num)/dataset/(:num)/(:any)','Manage\Dataset::$3/$1/$2/');

had to be changed to:

$routes->get('manage/project/(:num)/dataset/(:num)/(:any)','Manage\Dataset::$3/$1/$2');
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xanabobana

79111568

Date: 2024-10-21 20:00:40
Score: 2
Natty:
Report link

In my case, I deleted the bin folder and build project again and it worked.

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

79111567

Date: 2024-10-21 19:59:39
Score: 2
Natty:
Report link

Try not using XPath, the slightest change in the page’s DOM might destroy the whole functionality and cause this error, use css selectors instead and try again.. I hope this might help

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ibrahim Abd el halim

79111564

Date: 2024-10-21 19:57:39
Score: 1.5
Natty:
Report link

I've had this issue a lot of times, and the solution is contact to Meta Support

https://business.facebook.com/direct-support/?

You must show them an example of the request and the response (sending an template message with variables)

And that's all.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Breyner Sánchez

79111560

Date: 2024-10-21 19:57:39
Score: 3.5
Natty:
Report link

To me only worked, changing the emulator to a physical device, with the same code worked.

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

79111539

Date: 2024-10-21 19:48:37
Score: 2.5
Natty:
Report link

Could you resolve it already? I'm working on the same topic. My workaround is to place an invisible around the object to get a raycaster:

<Splat renderOrder={renderOrder} src={'./path/to/my.splat'} />
<RigidBody type="fixed">
  <mesh
    renderOrder={renderOrder+1}
    ref={meshRef}
    onClick={onMachineClick}
    onPointerOver={handlePointerOver}
    onPointerOut={handlePointerOut}
    name="my_splat"
    position={[0, 0, 0]}
    material={transparentMaterial}>
    <boxGeometry args={[3, 2, 1.5]} />
  </mesh>
  {hovered && (
    <Html
      position={[0.5, 0.5, 0]}
      center
      distanceFactor={8}
      style={{ pointerEvents: 'none' }}>
      <Label title={'Lasercutter'} content={'Click me!'} />
    </Html>
  )}
</RigidBody>

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve it already?
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: murcoder

79111529

Date: 2024-10-21 19:45:35
Score: 4.5
Natty: 5
Report link

don't waste your time: there is a free version of MS SQL Server 2019 Express https://www.microsoft.com/ru-ru/download/details.aspx?id=101064

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

79111525

Date: 2024-10-21 19:43:34
Score: 2.5
Natty:
Report link
TLDR:

Why is it happening? Cache
Can you solve it completely? No
Can you solve it partially? Yes
Should/Must you solve it? Not really


This happens most of the time because the browser caches the index.html (and a few other css and js) file of the webapp. Try turning off caching for the file by adding these to the nginx config:

location ~* \.html?$ {
  expires -1;
  add_header Pragma "no-cache";
  add_header Cache-Control "no-store, must-revalidate";
}

If you want to trigger a reload on the client side for this kind of errors, try this on your frontend app's router:

router.onError(error => {
  if (/loading chunk \d* failed./i.test(error.message)) {
    window.location.reload()
  }
})

Caution: possibility of infinite reload if reload does not resolve the issue

Credit: Read more technical steps here on this article that already explains a lot more than I planned to write. Learn more about different chunk errors here.


Facts

My assumption on OPs description:

Reasons:
  • Blacklisted phrase (1): this article
  • Whitelisted phrase (-1): try this
  • RegEx Blacklisted phrase (1.5): solve it completely?
  • RegEx Blacklisted phrase (1.5): solve it partially?
  • RegEx Blacklisted phrase (1.5): solve it?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Towkir

79111520

Date: 2024-10-21 19:42:34
Score: 1.5
Natty:
Report link

For future users of Azure Cache for Redis, the Data Persistence feature does not really work. The files that are produced into a storage account can't be imported back to the same Redis, so the feature is quite useless.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Cesar Flores

79111516

Date: 2024-10-21 19:41:34
Score: 2.5
Natty:
Report link

after more googling seems google blocks iframes acccess The reason for this is, that Google is sending an "X-Frame-Options: SAMEORIGIN" response header. This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page.

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

79111514

Date: 2024-10-21 19:40:34
Score: 1.5
Natty:
Report link

I had an error in my app that writes to kafka

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/catalyst/types/DataTypeUtils

because I was launching it using spark 3.5.1 like this

spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.12:3.5.1 --class com.strikerft9.App od-1.0-SNAPSHOT.jar

but server had spark version 3.3.0 installed, you can check your server version using spark-submit --version

Then I simply changed 3.5.1 to 3.3.0 and it helped

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

79111494

Date: 2024-10-21 19:30:31
Score: 0.5
Natty:
Report link

Hypersistence-Utils and PostgreSQL support the use of multi-dimensional arrays.

@Type(value = FloatArrayType.class)
@Column(name = "data", columnDefinition = "real[][]")
private float[][] data;

Tested using

org.hibernate.orm:hibernate-core:6.5.3.Final
io.hypersistence:hypersistence-utils-hibernate-63:3.8.3
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smelik

79111492

Date: 2024-10-21 19:29:31
Score: 4.5
Natty:
Report link

the solution is to cache locally, there is a library on github that does this https://github.com/kernel0x/bundlesaver

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kernel

79111489

Date: 2024-10-21 19:27:30
Score: 4.5
Natty:
Report link

hmm im new but ya do what he said or tell the experts https://www.raspberrypi.com/contact/ scroll and find not what your looking for and put in your email and other needed stuff i love raspberry pi hardware

Reasons:
  • RegEx Blacklisted phrase (1.5): im new
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: raspi fan

79111486

Date: 2024-10-21 19:26:29
Score: 2.5
Natty:
Report link

We had this issue and tried all the above-mentioned solutions but nothing worked. We are using RN 0.75.2

Decided to upgrade Grade version to 8.9 and now all errors have vanished.

I'm using Android Studio and followed the following steps:

Reasons:
  • Blacklisted phrase (1): but nothing work
  • No code block (0.5):
  • Low reputation (1):
Posted by: David Feldt

79111485

Date: 2024-10-21 19:25:29
Score: 1
Natty:
Report link

Since you are already filtering with where file not in (select file from t1 group by file having count(file) > 1) then grouping by checksum, you don't need filter further with having count(checksum) > 1. Since you seem to be expecting 1 and 3 to be returned as they are the only checksums with duplicates I was able to get your desired result using sqlfiddle.

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

79111484

Date: 2024-10-21 19:25:29
Score: 1
Natty:
Report link

According to this community discussion, the desired feature is not currently available within the Spotify API. They offer a workaround and a recommendation to raise the issue on Github.

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

79111483

Date: 2024-10-21 19:25:29
Score: 1
Natty:
Report link

To complete @ester44's post, which works very well, you can put in the file, apart from @media print a disply: none for the header and footer that you don't want to see on the web page.

Example:

.header, .header-cover, .footer {
    display: none;
}

@media print {

    .header, .footer {
        position: fixed;
    }

    .header, .header-cover {
        display:flex;
    }

    .header {
        top: 100%;
    }

    .header, .header-space {
        height: 5rem;
    }

    .footer, .footer-space {
        height: 4rem;
    }

    .footer {
        bottom: 0;
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ester44's
  • Low reputation (1):
Posted by: Aiorio

79111475

Date: 2024-10-21 19:23:28
Score: 0.5
Natty:
Report link

I've been working with VSCode in a development container and had the same issue. After trying various fixes, what finally worked for me was deleting the __pycache__ folder and then restarting the development container.

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

79111469

Date: 2024-10-21 19:20:28
Score: 4.5
Natty: 5
Report link

probably too late but I found this library for flutter https://pub.dev/packages/posz92printer/install

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

79111464

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

You can use

focusedLabelColor = your color, unfocusedLabelColor = your color

, it will work.

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

79111458

Date: 2024-10-21 19:18:26
Score: 1
Natty:
Report link

Don't read the whole file at once. Reading all lines with file.readlines() uses too much memory for big files.

Read the file line by line. Use a loop to read each line.

Assign a line number to each line. This helps you keep track of the order.

Use ProcessPoolExecutor instead of ThreadPoolExecutor. For CPU-heavy tasks, processes are faster because of Python's GIL.

Submit tasks with their line numbers. When you process a line also pass its line number.

Collect the results in a way that keeps order. You can store results in a list or dictionary using the line numbers as keys.

Write the results in order. After all lines are processed, write them to the output file in the original order.

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

79111446

Date: 2024-10-21 19:13:25
Score: 6
Natty: 7
Report link

Can you please share the solution that worked for you.? I have tried to get back the edited image but enable to receive the same.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please share the solution
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you please share the solution that
  • Low reputation (1):
Posted by: Vishal Chavan

79111438

Date: 2024-10-21 19:12:25
Score: 2.5
Natty:
Report link

Works for me after kill the PID checked with "lsof"

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cleber Valadares

79111433

Date: 2024-10-21 19:11:24
Score: 1
Natty:
Report link

Yes, ejected Expo SDK 51 app (bare workflow) can run a JavaScript bundle generated by the react-native bundle command.

Should make sure that:

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Amir Ben Shimol

79111432

Date: 2024-10-21 19:11:24
Score: 2.5
Natty:
Report link

I was getting this exact same error when trying to install the CR 32bit runtime, but the 64bit would install w/o an issue. After trying everything else mentioned above we finally tried disabling the AV and voila it installed fine.

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

79111426

Date: 2024-10-21 19:10:24
Score: 1.5
Natty:
Report link

I was having the same error, using the version xlwt==1.3.0 -without changing the Python 3.7.9)- solved it.

Here is the reference where xlwt is used by another package : https://github.com/ebroecker/canmatrix/issues/112#issuecomment-1287286847

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

79111425

Date: 2024-10-21 19:09:23
Score: 2.5
Natty:
Report link

I don't think you can get access to the Spring application context from a TbNode object as the whole rule chain execution is sandboxed and all these objects are not instantiated by Spring. The best you could do, I think, is to fill out your configuration class values from the rule chain editor.

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

79111422

Date: 2024-10-21 19:08:23
Score: 4
Natty:
Report link

Thank you everyone!

You are all amazing people!!

I got my answer.

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

79111416

Date: 2024-10-21 19:06:22
Score: 1.5
Natty:
Report link

Like @Davi said, its not possible to use intrepolate expressions (like ['get', 'rotation']) with the property icon-rotation-alignment.

I also tried to find the way to update the properties of layer, which is actually possible with setLayoutProperty but not for single feature. (And actually even that is possible, but not for icon-rotation-alignment because of intrepolate expressions … Example: map.setPaintProperty('Icons', 'icon-opacity', ['match', ['get', 'id'], 'example-id', 0.5 , 1]);)

I guess for my task (individually change layout property for single feature) the only solution would be – to create separately source and layer for every feature (icon) with different properties.

Hope my experience will help someone ;)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Davi
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MeX

79111415

Date: 2024-10-21 19:05:21
Score: 1
Natty:
Report link

To make the link jump to the desired location, you need to add tags with an id attribute to the target elements.

<div class="truncate flex items-center gap-1.5"> flex
"nks_0
<a id="nks_0">
== $0
</a>
<!---->
<!---->
<!---->
</div>

or Create a link to that element:

<a href="#nks_0">Jump to "nks_0"</a>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ushan Kavishka

79111412

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

I apologize that an answer comes 5 years later. I ran into the same issue and wanted to be able to validate the differences from Excel and R. It took me a couple hours but I was able to figure it out and thought I would leave the answer here in case others needed it. There are two things to consider.

  1. Excel uses a ETS AAA method which means your model should be train.hw <- ETS(train, model ="AAA") # Here we declare the model. fcttrain.hw <- forecast(train.hw, h=2) # Here we forecast the model and specify how far we forecast out.
  2. The other issue is that Excel automatically detects and determines what smoothing parameters to use. Smoothing parameters are the alpha, beta and gamma values. To find the values being used in Excel you need to perform the function forecast.ets.stat. This will help you to find the alpha beta and gamma values that Excel is selecting. Take those values and apply them to your code in R. train.hw <- ETS(train, model ="AAA", alpha = .1 beta = .1 gamma = .1) This is just an example your values will be different. The alpha and the beta are the important values the gamma is less significant. You can also enter NULL to let the ETS function auto select the parameters.

If you follow incorporate the two points in R then you will end up with an identical or close to identical result to Excel.

Now for the difficult talk. The way Excel calculates the smoothing parameters is different from the ETS function in R. The ETS version in R is more sensitive to the last values in your time series model. So if the latest values go up or down significantly then the smoothing parameters automatically work less to correct for that change. Whereas in Excel there is a bias to smooth that difference more. Both Excel and in the ETS function in R the smoothing parameters are automatically detected and applied. The difference is how both are coded to deal with the smoothing of data.

I hope the answer helps.

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

79111407

Date: 2024-10-21 19:03:21
Score: 1
Natty:
Report link

This may not be the best approach, but I think it might work, considering the code provided:

var jpgCount = 0

while let file = files?.nextObject() as? String {
    if file.hasSuffix(".jpg") || file.hasSuffix(".jpeg") {
        jpgCount += 1
        print(file)
    }
}

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

79111402

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

I found an answer of at this github repository https://github.com/leon/labs-chrome-file-write

I just needed to add {create:true} as a parameter when searching for a file in the directory

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

79111396

Date: 2024-10-21 18:59:20
Score: 2
Natty:
Report link

you can try using [1] Airflow API (Stable)and try the API [2] and to auth you can use [3]

[1] https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html

[2] https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dags

[3] https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#section/Authentication

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yusuf Quazi

79111394

Date: 2024-10-21 18:59:20
Score: 2.5
Natty:
Report link

The answer from marekb helped me. I used GPIO2 though

pinMode(2, INPUT); mySwitch.enableReceive(digitalPinToInterrupt(2));

I haven't yet tested any of the other examples.

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

79111378

Date: 2024-10-21 18:54:19
Score: 4
Natty: 5
Report link

Thanks a lot, the approach with useApolloClient worked!

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

79111373

Date: 2024-10-21 18:53:18
Score: 3
Natty:
Report link

1 question Created 22 hours ago raspberry-pico-w

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

79111364

Date: 2024-10-21 18:50:16
Score: 1.5
Natty:
Report link

Inside of ur localhosting configs files find PHP folder and config php.ini file. To find your ini file follow this link

after that find ;extension=pdo_mysql and change like this, remove semicolon from strarting

;extension=pdo_mysql

TO

extension=pdo_mysql
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ferid

79111360

Date: 2024-10-21 18:49:16
Score: 0.5
Natty:
Report link

You need to use relative paths i.e. not C:/ because that path won't exist once it is deployed. shinyapps.io runs on Ubuntu and the C:/ doesn't even exist. shinyAppDir("shiny/in_qks") should fix it, assuming that you are deploying the contents of WorkD and that shiny/in_qks contains the app.R / server.R.

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

79111347

Date: 2024-10-21 18:41:14
Score: 2
Natty:
Report link

You should install node, for that you can modify php.dockerfile: add nodejs npm like below and restart your docker container.

RUN apk add --no-cache mysql-client msmtp perl wget procps shadow libzip libpng libjpeg-turbo libwebp freetype icu nodejs npm

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

79111338

Date: 2024-10-21 18:39:14
Score: 3
Natty:
Report link

Thank you for your feedback. We've confirmed this behavior of a 12h Refresh Token is impacting Microsoft Entra External ID, and it is specific to the Email OTP flow. It was caused by a change to Entra made for security. One workaround until it is addressed is to use a username/password flow.

Before relaxing the Refresh Token lifetime back to 90 days, the team currently has prioritized fixing Conditional Access for Session Controls in the Email OTP scenario. We are interested in your feedback, does your Email OTP scenario require Conditional Access policy such as MFA?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Saeed Akhter

79111333

Date: 2024-10-21 18:37:13
Score: 1
Natty:
Report link

It is a Strategy implementation.

https://en.wikipedia.org/wiki/Strategy_pattern

There is a contract (AbstractThing) which defines the strategy, 2 implementations (ConcreteThingOne and ConcreteThingTwo) and the context (func_that_does_something_with_thing).

Wikipedia at the link above gives a lot of details, including diagrams that help understanding.

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

79111320

Date: 2024-10-21 18:31:12
Score: 3.5
Natty:
Report link

Apparent issue with reading .env file or the .secrets file because putting the username and password inline successfully ran the setup

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

79111319

Date: 2024-10-21 18:31:12
Score: 1
Natty:
Report link

I'd consider prettier (code format tool). Can be used as a command (prettier write), or as IDE plugin, e.g. VS Code (will auto-format your code on Ctrl+S).

There is bunch of configs you can set, but object keys with no quotes is one of default rules if I reckon.

enter image description here

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

79111314

Date: 2024-10-21 18:30:11
Score: 3
Natty:
Report link

The bitmap should be pre-cached on disk and only the path should be passed in the bundle. You can simply use the BundleSaver library: https://github.com/kernel0x/bundlesaver.

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

79111308

Date: 2024-10-21 18:28:10
Score: 5.5
Natty: 4.5
Report link

Have you solved your problem? I have the same. If yes tell me please how you did it.

Reasons:
  • RegEx Blacklisted phrase (1.5): solved your problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrey Savelev

79111303

Date: 2024-10-21 18:27:10
Score: 2
Natty:
Report link

You just need to change the applicationId in android/app/build.gradle.

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

79111290

Date: 2024-10-21 18:20:08
Score: 2
Natty:
Report link

A negative number: substring(str, -4) would work as well as a substitute for RIGHT(str, 4)

from Athena documentation: A negative starting position is interpreted as being relative to the end of the string.

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

79111289

Date: 2024-10-21 18:20:06
Score: 13.5 🚩
Natty:
Report link

Did you get any solution? I am facing the same issue but could not find the fix.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you get any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Dhanvi Modi

79111288

Date: 2024-10-21 18:20:06
Score: 0.5
Natty:
Report link

For me removing postgresql from Homebrew and reinstalling it using Homebrew did the trick. You have the full instructions here.

I am using Intel-based Macbook.

Good luck.

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

79111285

Date: 2024-10-21 18:20:06
Score: 2
Natty:
Report link

Esper's horizontal scaling is a commercial product since its part of Esper Enterprise Edition. In Esper Enterprise Edition, horizontal scaling requires using Kafka. It scales by means of Kafka topic partitions, which Kafka assigns to worker processes.

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

79111283

Date: 2024-10-21 18:19:05
Score: 2
Natty:
Report link

MySQL comes in the 2 parts: The server which hosts the database, and the client software which talks to the server. It's not finding the server to talk to.

MySQL installed itself as a Component Service on my windows machine. If you look into services (easily accessible From Task Manager > Services tab), you can find the MYSQL80 and start it. This should fix the problem.

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

79111280

Date: 2024-10-21 18:19:05
Score: 1
Natty:
Report link

You have to think more carefuly about your logic. Can you edit your question to explain what is your desired output and under what conditions?

0

=IF(
    AND(
        [@[Key Populations]]<>"Preg";
        [@[Key Populations]]<>"BF";
        [@Age]>14;
        P135>='information Sheet'!$AD$2;
        P135<='information Sheet'!$AE$2
        );                             //Condition 1, OK
    "VALID";                           //OK
    "INVALID";                         // This should Condition 2
    IF(
    (OR(
        [@[Key Populations]];"Preg";   //Should be  [@[Key Populations]]="Preg"; I assume
        [@[Key Populations]];"BF";     //Should be [@[Key Populations]]="BF"; I assume
        [@Age]=<14;
        P135>='information Sheet'!$AD$2;
        P135<='information Sheet'!$AE$2
        );
    " ";
    "False")))
Reasons:
  • Blacklisted phrase (1): what is your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Michal

79111279

Date: 2024-10-21 18:19:05
Score: 1
Natty:
Report link

According to this thread in Github discussions, this is not a current feature of the Github API. I recommend following that discussion if you want this feature in the future.

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

79111262

Date: 2024-10-21 18:14:04
Score: 1
Natty:
Report link

With drizzle-orm ^34.1.0 you can get result using $count. In you query, you can including playersCount in extras.

 const players = await trx.query.playerTable.findMany({
      with: {
       posts:true
      },
      extras: {
        playersCount: db.$count(playerTable),
      },
    })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rukundo

79111245

Date: 2024-10-21 18:10:03
Score: 2
Natty:
Report link

I have a React project with Material UI, the problem in my case was solved by removing the direct import of SxProps from @mui/material, for some reason this import generates a memory leak

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

79111243

Date: 2024-10-21 18:09:03
Score: 3
Natty:
Report link

it still gives the error, even after enabling at the oracle virtualization level. yes, the suggested command works but the CRC setup still gives the same error.

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

79111233

Date: 2024-10-21 18:06:02
Score: 1
Natty:
Report link

For Someone if still having hard time to understand

Observable: is like a radio station that broadcasts new songs after some time

Observer: It's radio that actually receives those signals(data) from that radio station and converts those into(song).

but remember until we turn on the radio or basically we subscribe it we can't listen to it right?

In actually angular (Observers are just objects with three callbacks, one for each type of notification that an Observable may deliver)

And yeah this is what a subscriber is people who want to listen(in actual example could a be person that subscribes to some Observable)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sameer

79111216

Date: 2024-10-21 18:01:00
Score: 1
Natty:
Report link

For anyone stumbling on this question, I have been working on a fully open source and free esc/pos emulator in Rust. It can handle most commands and is suitable for testing.

Until I publish a CLI, you would need to use Rust to render the sample receipts.

https://github.com/zachzurn/thermal

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

79111214

Date: 2024-10-21 18:00:00
Score: 1.5
Natty:
Report link

Adding this environment variable in the Dockerfile solved the issue

ENV NEXT_PRIVATE_STANDALONE true

Add this before the build step

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

79111197

Date: 2024-10-21 17:52:58
Score: 0.5
Natty:
Report link

If you apply the hover to the container it works for both elements.

In the example you provided just change

img:hover {
    transform: scale(1.05);
}

to

.wrapper:hover img {
    transform: scale(1.05);
}

and hover effect will be working while hovering the text

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Diego N.

79111196

Date: 2024-10-21 17:52:58
Score: 3
Natty:
Report link

Make sure under Tools>Global options>Python you have python interpreter selected. Once I set this up. The R studio recognized the reticulate and pandas coding.

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

79111181

Date: 2024-10-21 17:48:57
Score: 0.5
Natty:
Report link

You are getting the error because post is a reserved keyword in python

So, here is the updated code:

def post_page(request, slug):
    post_hello = post.objects.get(slug=slug)
    return render(request, 'app1/post_page.html', {"post_hello": post_hello})

you can change the name post_hello as per your choice

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

79111169

Date: 2024-10-21 17:43:56
Score: 0.5
Natty:
Report link

I added password_table as an attribute to the CreatePassword class.

class CreatePassword(ttk.Frame):
    def __init__(self, parent, password_table):
        super().__init__(parent)

And satisfied it in the App() component.

# App class inherits tkinter
class App(tk.Tk):
    def __init__(self):
        super().__init__()
        self.title('Password Manager')
        # Add Components
        self.header = Header(self)
        self.savedpasswords = SavedPasswords(self)
        self.createpassword = CreatePassword(self, self.savedpasswords.password_table)

This seems to work and I am able to add the values to the table.

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

79111165

Date: 2024-10-21 17:43:56
Score: 2.5
Natty:
Report link

To hire moving services in Orange County, research reputable movers via online reviews and referrals, verifying credentials like licensing and insurance. Get multiple binding estimates, confirm services, and read the contract thoroughly. Avoid red flags like large upfront deposits or unmarked trucks.

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

79111162

Date: 2024-10-21 17:42:55
Score: 0.5
Natty:
Report link

The JS syntax provided by @daniel_s is the solution to this problem. However, this syntax does not allow for dynamic data inputs into the drilldown series, which OP indicates was required, and which I imagine other R users would also require.

For this reason, I provide the following complete code block, which generates a multi series drilldown using different series types, as seen below.

Multiseries drilldown in highcharter

df <- data_frame(
  name = c("Animals", "Fruits", "Cars"),
  y = c(5, 2, 4),
  drilldown = c('animals','','')
)
dfan1 <- data_frame(
  name = c("Cats", "Dogs", "Cows", "Sheep", "Pigs"),
  value = c(4, 3, 1, 2, 1)
)
dfan2 <- data_frame(
  name = c("Cats", "Dogs", "Cows", "Sheep", "Pigs"),
  low = c(3.5,2.5,.5,1.5,.5),
  high= c(4.5,3.5,1.5,2.5,1.5)
)
list1 <- toString(
  lapply(
    1:nrow(dfan1), function(n) {
      paste0("['",dfan1[n,'name'],"',",dfan1[n,'value'],"]")
    }
  )
)
list2 <- toString(
  lapply(
    1:nrow(dfan2), function(n) {
      paste0("['",dfan2[n,'name'],"',",dfan2[n,'low'],",",dfan2[n,'high'],"]")
    }
  )
)
hc <- highchart() %>%
  hc_title(text = "Basic multi series drilldown") %>%
  hc_xAxis(type = "category") %>%
  hc_legend(enabled = FALSE) %>%
  hc_plotOptions(
    series = list(
      boderWidth = 0,
      dataLabels = list(enabled = TRUE)
    )
  ) %>%
  hc_add_series(
    data = df,
    name = "Things",
    colorByPoint = TRUE
  ) %>%
  hc_chart(events = list(
    drilldown = JS(paste0(
      "function(e) {
        if(!e.seriesOptions){
        var chart=this,
        drilldowns={
          'Animals':{
            name:'Animals',
            data:[",list1,"],
            type:'bar'
          },
          'Animals2':{
            name:'Animals',color:'#f00',
            data:[",list2,"],
            type:'errorbar'
          }
      },

      series=[drilldowns[e.point.name],drilldowns[e.point.name+'2']];
      chart.addSingleSeriesAsDrilldown(e.point,series[0]);
      chart.addSingleSeriesAsDrilldown(e.point,series[1]);
      chart.applyDrilldown()
      }}"
    )
    )
  ))
hc
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @daniel_s
  • Low reputation (1):
Posted by: tibblah

79111153

Date: 2024-10-21 17:40:55
Score: 4
Natty:
Report link

i have fixed the issue by using ManagedIdentityCredentialBuilder() instead of DefaultAzureCredentialBuilder(). Thanks all for your response and support :)

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

79111150

Date: 2024-10-21 17:39:52
Score: 13 🚩
Natty: 5.5
Report link

I don't know how to fix it. I have the same problem. Please help me.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Please help me
  • RegEx Blacklisted phrase (2): I don't know how to fix
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: วรวุฒิ แผงเพ็ชร์

79111148

Date: 2024-10-21 17:38:52
Score: 1
Natty:
Report link

Typescript 4.9 (released Nov 15, 2022) makes this easy with the satisfies keyword.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator

In summary, it validates the types, but still keeps the specific type for inference.


type PageDef = {url: string}

const pages = {
    home:  { url: '/' },      // works!
    about: { url: '/about' }, // works!
    bad:   { asdf: true }     // error!
} satisfies Record<string, PageDef>

pages.home          // works!
pages.about         // works!
pages.nonexistent   // error!

Link to TS Playground

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

79111136

Date: 2024-10-21 17:33:50
Score: 0.5
Natty:
Report link

The built-in {{ date|timesince }} displays two adjacent units (like "18 hours, 16 minutes") by default, but we can override this behavior

  1. Steps to create a custom template filter: Create a custom filter in your Django app:

Inside one of your apps, create a new file (if it doesn't exist yet) called templatetags/custom_filters.py:

your_app/
    templatetags/
        __init__.py  # Make sure this exists
        custom_filters.py

Define the custom timesince_single_unit filter:

In custom_filters.py, you can create a new filter to modify the behavior of timesince:

from django import template
from django.utils.timesince import timesince
from datetime import datetime

register = template.Library()

@register.filter
def timesince_single_unit(value):
    """
    Custom timesince filter to show only the first unit (like '18 hr' or '16 min').
    """
    if not value:
        return ""
    
    # Get the full timesince output (e.g., "18 hours, 16 minutes")
    time_str = timesince(value)
    
    # Split by the comma and keep only the first unit
    first_unit = time_str.split(",")[0]
    
    # Optionally, abbreviate 'hours' to 'hr' and 'minutes' to 'min'
    first_unit = first_unit.replace("hours", "hr").replace("minutes", "min")
    
    return first_unit

Load the custom filter in your template:

To use your new filter, first load it in the template where you want to display the time in the desired format.

In your template file:

{% load custom_filters %}

{{ your_date_value|timesince_single_unit }}

Example Output: If the difference is 18 hours and 16 minutes, it will display: "18 hr". If the difference is 16 minutes, it will display: "16 min".

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

79111133

Date: 2024-10-21 17:31:50
Score: 1
Natty:
Report link

Try to use like this

$real_value = preg_match('/^[a-zA-Z\-]+\s*\(.*\)$/', $value) ? $value : '"' . $value . '"';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ferid