79544083

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

from PIL import Image

# Load the uploaded image

image_path = "/mnt/data/IMG_20230823_005640.jpg"

image = Image.open(image_path)

# Display basic info about the image

image.size, image.mode

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

79544078

Date: 2025-03-30 00:59:30
Score: 4.5
Natty: 5
Report link

i built a free api for this old issue

https://tgapi.mohammadalian.ir/

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

79544071

Date: 2025-03-30 00:47:28
Score: 2.5
Natty:
Report link

Please update to 3.29.1 which is a hotfix for this and some other issues as well detailed here.

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

79544070

Date: 2025-03-30 00:45:28
Score: 1.5
Natty:
Report link

does this solution work for your case?

q)t:([]date:20?2011.03.01+til 10;uid:20?17000+til 10;sym:20?50000+til 15)
q)7#t
date       uid   sym
----------------------
2011.03.09 17008 50001
2011.03.02 17003 50000
2011.03.01 17004 50000
2011.03.08 17001 50010
2011.03.04 17006 50001
2011.03.04 17004 50010
2011.03.07 17004 50007

q)updCols:{`$string[x],\:string[y]}
q)prevCols:{if[x=0;:`date`uid`sym]; updCols[;x] `prevdate`prevuid`prevsym}
q)f:{![x;();0b;prevCols[y]!(prev;) each prevCols y-1]}

q)7#f/[t;1+til 6]
date       uid   sym   prevdate1  prevuid1 prevsym1 prevdate2  prevuid2 prevsym2 prevdate3  prevuid3 prevsym3 prevdate4  prevuid4 prevsym4 prevdate5  prevuid5 prevsym5 prevdate6  prevuid6 prevsym6
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2011.03.09 17008 50001                                                                                                                                                        
2011.03.02 17003 50000 2011.03.09 17008    50001                                                                                                                              
2011.03.01 17004 50000 2011.03.02 17003    50000    2011.03.09 17008    50001                                                                                                 
2011.03.08 17001 50010 2011.03.01 17004    50000    2011.03.02 17003    50000    2011.03.09 17008    50001                                                                    
2011.03.04 17006 50001 2011.03.08 17001    50010    2011.03.01 17004    50000    2011.03.02 17003    50000    2011.03.09 17008    50001                                       
2011.03.04 17004 50010 2011.03.04 17006    50001    2011.03.08 17001    50010    2011.03.01 17004    50000    2011.03.02 17003    50000    2011.03.09 17008    50001          
2011.03.07 17004 50007 2011.03.04 17004    50010    2011.03.04 17006    50001    2011.03.08 17001    50010    2011.03.01 17004    50000    2011.03.02 17003    50000    2011.03.09 17008    50001
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: qfb

79544062

Date: 2025-03-30 00:30:25
Score: 1
Natty:
Report link

The javax.print.PrintServiceLookup class itself relies on the underlying operating system and network configuration to discover and interact with printers. So you can either try to inject the settings from your host computer (if its a unix based system) or you have to install the printer inside your container. The latter would even decouple the execution of the container from the executing host system.

Maybe this article is helping you out: https://www.alecburton.co.uk/2017/printing-from-a-docker-container/

Reasons:
  • Blacklisted phrase (1): this article
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arno

79544045

Date: 2025-03-30 00:09:22
Score: 1.5
Natty:
Report link

I think your examples help answer your question. As a general rule of thumb:

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

79544029

Date: 2025-03-29 23:42:17
Score: 0.5
Natty:
Report link

Since iOS 15, the up down chevron icon of a Picker can be hidden using the .menuIndicator modifier:

.menuIndicator(.hidden)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Andrei G.

79544025

Date: 2025-03-29 23:36:16
Score: 1
Natty:
Report link

Can you try findFirstByUsernameOrderByUsername i think JPA expects something after by but then you continue with OrderBy

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: Nico S.

79544022

Date: 2025-03-29 23:28:15
Score: 1.5
Natty:
Report link

Phone accuracy errors, while funny, do not mask the intended phrase simply because the speech decoding of the human brain is awsom!

But the only reason to use phoemes over voice to text is limited processing power on low power Lora transmissions. If you can deal with the very mechanical phoneme based voices. Which obviously anonmoize the speaker.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: T-Rex

79544017

Date: 2025-03-29 23:26:14
Score: 3
Natty:
Report link

From the image shared, seems that you have issues with your Flutter SDK installation. Try reinstalling it.

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

79544016

Date: 2025-03-29 23:25:14
Score: 3.5
Natty:
Report link

My god the problem was so banal it is stupid.

Apparently in my Excel version (seemingly 2021) the criteria are divided by semicolons in the syntax.........

It is working now. Thanks for your effort though

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Filler text (0.5): .........
  • Low reputation (1):
Posted by: R. Schmidt

79544012

Date: 2025-03-29 23:22:13
Score: 3
Natty:
Report link

Providing an update regarding the adding Test Users step because the UI has changed a bit. You can find the Test Users section by navigating to APIs & Services -> OAuth concent screen -> Audience

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

79544010

Date: 2025-03-29 23:18:12
Score: 2
Natty:
Report link

Вот возможное решение для тех у кого Windows, внимательно читайте какие папки или заголовочные файла не видит, ищите их и добавляйте, я решил именно так

"name": "Win32",
            "includePath": [
                "${default}",
                "C:/msys64/ucrt64/include/gtk-4.0",
        "C:/msys64/ucrt64/include/pango-1.0",
        "C:/msys64/ucrt64/include/fribidi",
        "C:/msys64/ucrt64/include/harfbuzz",
        "C:/msys64/ucrt64/include/gdk-pixbuf-2.0",
        "C:/msys64/ucrt64/include/cairo",
        "C:/msys64/ucrt64/include/freetype2",
        "C:/msys64/ucrt64/include/libpng16",
        "C:/msys64/ucrt64/include/pixman-1",
        "C:/msys64/ucrt64/include/graphene-1.0",
        "C:/msys64/ucrt64/include/glib-2.0",
        "C:/msys64/ucrt64/lib/glib-2.0/include",
        "C:/msys64/ucrt64/include/graphene-1.0",
        "C:/msys64/ucrt64/lib/graphene-1.0/include"
            ],
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Mishy3ka

79543989

Date: 2025-03-29 22:46:07
Score: 0.5
Natty:
Report link

A simplified version of Alex answer

import threading
import time

lock=threading.Lock()
def thread1cb():
    lock.acquire() # thread1 acquires lock first
    time.sleep(1)
    print("hello")
    lock.release()
def thread2cb():
    time.sleep(0.1)
    lock.acquire() # thread2 will wait on this line until thread1 has released the lock it acquired
    print("there")
    lock.release()


thread1=threading.Thread(target=thread1cb)
thread2=threading.Thread(target=thread2cb)
thread1.start()
thread2.start()
thread1.join() # As long as thread1 acquires & releases the lock first, you could safely remove this line. threading.Thread(...).join() waits until the target function of the thread has returned.
thread2.join()

Output will be:

hello
there

If you comment out the lock.acquire() & lock.release() lines, it will instead print:

there
hello

Docs: https://docs.python.org/3/library/threading.html#threading.Lock.acquire
https://docs.python.org/3/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement

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

79543986

Date: 2025-03-29 22:45:07
Score: 1
Natty:
Report link

Stack overflow is like a coding discussion site

you can ask about errors, questions and just share code

think of it as a developer reddit/twitter

recommended to use markdown too.

//this is a codeblock
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harry Hodges

79543983

Date: 2025-03-29 22:44:07
Score: 0.5
Natty:
Report link

According to the release notes, Numpy 1.26.4 doesn't support Python 3.13, so yes, if you need version 1.x.y (which at least one of your other libraries seems to be requiring), you should downgrade to Python 3.12.

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

79543974

Date: 2025-03-29 22:35:05
Score: 3
Natty:
Report link

I discovered I had the date: wrong. I had it as results.startDate, and when I flipped it to resuluts.endDate, the data produced was correct.

Thanks.

Blessings, --Mark

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

79543968

Date: 2025-03-29 22:27:04
Score: 1
Natty:
Report link

I use psp to create a Django project and also, a docker image with the Django project that you want develop, step by step...

This is reference that explains Docker image: https://psp.readthedocs.io/en/latest/simple/#dockerpodman

Run this in your shell:

$ psp
info: welcome to psp, version 0.2.0                                                                                                                                                                         
> Name of Python project: django-scaffold                                                                                                                                                                            
> Do you want to create a virtual environment? Yes                                                                                                                                                          
> Do you want to start git repository? Yes                                                                                                                                                                  
> Select git remote provider: None                                                                                                                                                                         
> Do you want unit test files? Yes                                                                                                                                                                          
> Install dependencies: django django-admin startproject hello_world_django                                                                                                                                      
> Select documentation generator: None                                                                                                                                                                    
> Do you want to configure tox? No                                                                                                                                                                     
> Do you want create common files? Yes                                                                                                                                                                      
> Select license: MIT                                                                                                                                                                        
> Do you want to install dependencies to publish on pypi? Yes                                                                                                                                               
> Do you want to create a Dockerfile and Containerfile? Yes                                                                                                                                                 
info: python project `django-scaffold` created at `/tmp/django-scaffold`   
$ cd django-scaffold && docker build django-scaffold
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Erickkk23874

79543962

Date: 2025-03-29 22:21:02
Score: 1
Natty:
Report link

 import FaceDetection from '@react-native-ml-kit/face-detection'

  const result = await FaceDetection.detectFromFile(imageUri, {
     performanceMode: 'fast',
     landmarkMode: 'none',
     classificationMode: 'none',
  });

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

79543958

Date: 2025-03-29 22:16:01
Score: 1.5
Natty:
Report link

I finally got it to work by eliminating some of the white space like this:

subprocess.run(["ssh", IP, "/usr/bin/gpio", "write 0 1"])

I still do not quite understand why ssh was complaining, rather than bash.

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

79543946

Date: 2025-03-29 22:06:00
Score: 2
Natty:
Report link
 <Tooltip
      active={true}
      wrapperStyle={{ pointerEvents: 'auto' }}
      content={content}
 />

Set the active prop active to true. That's what worked me.

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

79543932

Date: 2025-03-29 21:50:57
Score: 0.5
Natty:
Report link

You could write something like this: (if you're using mockk)

mockk<HttpResponse>(relaxed = true) {
        every { status } returns 200
        every { rawContent } returns ByteReadChannel("body")
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yauheni Mokich

79543928

Date: 2025-03-29 21:46:56
Score: 1.5
Natty:
Report link

As the error mentions, your database ID is probably incorrect. Try logging the value to verify.

Often times, the reason why these values are invalid are because an environment variable is not set properly.

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

79543922

Date: 2025-03-29 21:37:55
Score: 2.5
Natty:
Report link

You can also use the <object> tag:

    <object data="html/stuff_to_include.html"> 
        Your browser doesn’t support the object tag. 
    </object>

Learn more at MDN.

<object> is currently supported in most browsers.

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

79543901

Date: 2025-03-29 21:16:50
Score: 3
Natty:
Report link

Your problem is to partition the storage drive using an operating system answer file (autounattend.xml).

  1. Partition using diskpart

The solution you proposed to use is the diskpart tool, called by powershell, in one of the ISO image installation phases.

I started using some answer file generators, such as "schneegans.de" (https://schneegans.de/windows/unattend-generator/), suggested by Vern_Anderson. Although it is an excellent tool, the problem is that you are tied to it. If you need a custom solution, you don't need support. The ideal is to try to understand how a tool can solve the problem.

In the case of the "schneegans.de" tool, it participated in the "windowsPE" phase. It doesn't make sense to install and then resize. That's why the "windowsPE" phase is used for partitioning. The operating system installation is after the "windowsPE" phase. Avoid using the "specialize" or "oobeSystem" phases for partitioning.

Now comes the first question: after a basic installation of the operating system, does your routine work? If the answer is yes, we can "try" to put the routine in the answer file. But is it possible? The tool "schneegans.de" reports that it is possible, but the "windowsPE" phase is quite restricted. The tool configures it as follows:

    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <UseConfigurationSet>false</UseConfigurationSet>
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo SELECT DISK=0&amp;echo CLEAN&amp;echo CONVERT GPT&amp;echo CREATE PARTITION EFI SIZE=499&amp;echo FORMAT QUICK FS=FAT32 LABEL="System"&amp;echo CREATE PARTITION MSR SIZE=16)"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo CREATE PARTITION PRIMARY&amp;echo SHRINK MINIMUM=699&amp;echo FORMAT QUICK FS=NTFS LABEL="Windows"&amp;echo CREATE PARTITION PRIMARY&amp;echo FORMAT QUICK FS=NTFS LABEL="Recovery")"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" (echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac"&amp;echo GPT ATTRIBUTES=0x8000000000000001)"</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>cmd.exe /c "diskpart.exe /s "X:\diskpart.txt" &gt;&gt;"X:\diskpart.log" || ( type "X:\diskpart.log" &amp; echo diskpart encountered an error. &amp; pause &amp; exit /b 1 )"</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>

Note the complexity. The XML response file needs to be encoded in the "EncodeHTML" format. So, the ">" symbol becomes ">". The "&" symbol becomes "&". The tool creates the file "X:\diskpart.txt", executing the redirection line by line with the "cmd.exe" command. The last command is to call the "diskpart.exe" tool, passing as a parameter the created file "X:\diskpart.txt".

There is no need to edit the ISO image. I do not recommend this solution. In this case, the tool placed the "code" in the response file, with the limitation of the "EncodeHTML" encoding.

But if I want to inject files, how can I do it? In this case, the best tool is "Ventoy" (https://www.ventoy.net/en/plugin_injection.html). With this tool, you can pass the response file (https://www.ventoy.net/en/plugin_autoinstall.html), in addition to being able to inject files.

If you still want to use the powershell code, which calls diskpart.exe, in the "specialize" or "oobeSystem" phases, the "schneegans.de" tool has this feature. But I suggest you explore it to understand how it is done. I can tell you in advance that the procedure is quite complex.

  1. Partitioning using the answer file in the "windowsPE" phase

Here is the solution that I understand to be the most appropriate for your problem. You do not need external commands to partition. The answer file itself does it for you. For example, I create drives C: and D:. For Windows 11, I will need 5 partitions: ESP, WinRE, MSR, Applications and Users. Exactly what you read. I place the user profiles in the "D:\Usuários" folder, in the native language (Brazilian Portuguese).

2.1) Setting up the partitions

    <settings pass="windowsPE">
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <!-- Sistema (ESP) -->
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Type>EFI</Type>
                            <Size>499</Size>
                        </CreatePartition>
                        <!-- Recuperação -->
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Size>699</Size>
                        </CreatePartition>
                        <!-- Reservada -->
                        <CreatePartition wcm:action="add">
                            <Order>3</Order>
                            <Type>MSR</Type>
                            <Size>99</Size>
                        </CreatePartition>
                        <!-- Sistema operacional -->
                        <CreatePartition wcm:action="add">
                            <Order>4</Order>
                            <Type>Primary</Type>
                            <Size>102400</Size>
                        </CreatePartition>
                        <!-- Dados -->
                        <CreatePartition wcm:action="add">
                            <Order>5</Order>
                            <Type>Primary</Type>
                            <Extend>true</Extend>
                            <!-- <Size>102400</Size> -->
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <!-- Sistema (ESP) -->
                        <ModifyPartition wcm:action="add">
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Label>ESP</Label>
                            <Format>FAT32</Format>
                        </ModifyPartition>
                        <!-- Recuperação -->
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Label>WINRE</Label>
                            <Format>NTFS</Format>
                            <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
                        </ModifyPartition>
                        <!-- Reservada -->
                        <ModifyPartition wcm:action="add">
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                        </ModifyPartition>
                        <!-- Sistema operacional -->
                        <ModifyPartition wcm:action="add">
                            <Order>4</Order>
                            <PartitionID>4</PartitionID>
                            <Label>SO</Label>
                            <Letter>C</Letter>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                        <!-- Dados -->
                        <ModifyPartition wcm:action="add">
                            <Order>5</Order>
                            <PartitionID>5</PartitionID>
                            <Label>Aplic</Label>
                            <Letter>D</Letter>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <Compact>false</Compact>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/image/name</Key>
                            <Value>Windows 11 Pro</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>4</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </component>
    </settings>

2.2) Modifying the user profile folder

    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <FolderLocations>
                <ProfilesDirectory>D:\Usu&#225;rios</ProfilesDirectory>
            </FolderLocations>
            <OOBE>
                <ProtectYourPC>3</ProtectYourPC>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            </OOBE>
        </component>
    </settings>

Please note that the profiles folder has an accented character. Therefore, I needed to encode the symbol "á" to "á". I put this item just to emphasize to you that if you put the code embedded in the XML, you will need to encode it in the "EncodeHTML" format.

Remember to use Ventoy. It is the best tool to initialize an image, with response file and injected files. And without having to touch the original image!

I used an online translator. I apologize for not being fluent in the language.

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: João Mac

79543894

Date: 2025-03-29 21:12:49
Score: 0.5
Natty:
Report link

I've been watching other firebase related repositories. And I think I got an answer (solution) for this issue:

To update the phone number that is used as second factor, proceed as follows: login the user again with MFA (e.g. use signInWithEmailAndPassword for email as first factor, followed by verifyPhoneNumber for the second factor) when the MFA login successfully completed, enroll the new phone number (again using verifyPhoneNumber, but with the new phonenumber as input parameter) when the new phone number is successfully added, unenroll the original phone number (using the MultiFactor.unenroll -> https://pub.dev/documentation/firebase_auth/latest/firebase_auth/MultiFactor/unenroll.html) More details on step 1) and 2) can be found at https://firebase.google.com/docs/auth/flutter/multi-factor

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Woof

79543888

Date: 2025-03-29 20:59:47
Score: 3
Natty:
Report link

"ORA-29285 - File write error"

this error occured when your HARD DRIVE is FULL where you are exporting data.

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

79543879

Date: 2025-03-29 20:46:45
Score: 1
Natty:
Report link

A custom application to convert the standard Gregorian date and calendar of the comprehensive ErpNext version 15 software to the solar (Jalali) calendar. This application works in all date and date-time fields, in all sections of the software, and also displays the Gregorian equivalent of the selected date below the field.

اپلیکیشن سفارشی برای تبدیل تاریخ و تقویم استاندارد میلادی نرم افزار جامع ErpNext نسخه 15 به تقویم شمسی (جلالی) می باشد. این اپلیکیشن ، در تمام فیلدهای تاریخ و تاریخ-ساعت ، در تمام بخشهای نرم افزار عمل می کند و همچنین ، معادل میلادی تاریخ انتخاب شده را در زیر فیلد نمایش می دهد.

https://github.com/nidyasoft/jalali_shamsi_datepicker

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

79543875

Date: 2025-03-29 20:45:44
Score: 1
Natty:
Report link

Yes, in Node.js it's possible to import CommonJS modules from ECMAScript modules. The documentation has more information.

This has been the case for as long as Node.js has supported ECMAScript module syntax (I just tested to verify that).

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

79543873

Date: 2025-03-29 20:45:44
Score: 2
Natty:
Report link

`sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub

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

79543867

Date: 2025-03-29 20:40:44
Score: 2
Natty:
Report link
=BYROW(J162:J164,LAMBDA(a,REGEXEXTRACT(a,"\(\d{3}\)\s\d{3}-\d{4}")))

Meanwhile some users can apply REGEXEXTRACT in Excel for the web and Office 365.

enter image description here

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

79543865

Date: 2025-03-29 20:38:43
Score: 1
Natty:
Report link

Recently I wrote a nice utility for serializing objects with saving external and internal links https://github.com/nerd220/JSONext

Easy to use (in this case):

var serialization=toLinkedJSON({meta:meta});
var newMeta=fromLinkedJSON(serialization);
console.log(newMeta.meta[0].link==newMeta.meta[1]); //true

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

79543864

Date: 2025-03-29 20:38:43
Score: 1
Natty:
Report link
Apparently below is what needed. Just setting context.res is not enough, empty return is not enough. 
return { 
   status: 200, body: {}
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: kos

79543855

Date: 2025-03-29 20:29:41
Score: 5
Natty:
Report link

I think your issue here is the path of that cookie.

As in the protected route you are calling is the /dashboard but your cookie has the path /authentication/* so the middleware doesnt get it since its a RSC? maybe?.

I have the same issue thinking that its the http-only part but I have another cookie that isn't http-only with the path /api/* and it doesn't appear either on my frontend the only cookie that works on the middleware is my session_id with the path / and http-only being true. this being the case you might need your cookie to be a empty path to work properly if the routes dont match.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Zeroos

79543853

Date: 2025-03-29 20:28:41
Score: 2.5
Natty:
Report link

A temporary `Car(1)` is being pushed into the vector, the copy constructor is called. C++ adds the item to the vector using the copy constructor because your class lacks a move constructor. The vector must create a copy in order to store it, even though it appears that you are not copying.

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

79543852

Date: 2025-03-29 20:25:39
Score: 7.5 🚩
Natty:
Report link

Could you share a bit more of what you have "X" out in your image. Is it just the filename, also, are there additional details after all of the module names and paths?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: SamuraiJack42

79543846

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

After several attempts, I have concluded the following points:

Pros & Cons

Advantage: A proper 404 status is returned.

Drawback: The server.ts file requires a knownEntitiesList, or an API call to verify existence, which can introduce additional latency. If the entity exists, this approach results in two API calls instead of one (one server-side check and another browser-side request).

An example is available in StackBlitz

Know with this method using curl you get:

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bachir31

79543844

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

What's up with all the people in this thread that get philosophical about what is garbage and what is collecting? This is computer science, terms have specific meanings given to them by whoever coined them. Garbage collection is not "any system where you don't have to say "free" to free the memory". No, garbage collection is a very specific strategy that has the following characteristics:

  1. Memory has to be requested to the GC for it to be tracked by the GC. The GC gets memory from the OS, keeps track of its existence, and gives you a handle to that memory.

  2. The GC periodically checks which GC handles are still reachable.

  3. Usually, using non-GC managed values that can access GC managed values requires notifying the GC about it, so that an exception is made.

Put it simply, the GC acts like a kind of pseudo-OS between you and the OS, that is much smarter and can recognize at runtime when a value in memory is no longer needed and free it. This is not the same as strategies such as reference counting, where you create individual handles that point to a location in memory and have a destructor that frees the memory if a certain condition is found. This is just automated manual memory management, and you can still f* up (e.g. if you create two shared pointers that point to each other, none of them will ever delete their value, even though both are unreachable).

Sorry for not answering the question. Many people have done that already. I'm just writing this down because there's an impressive amount of answers saying "akchually Rust is garbage collected if we count turning on the computer as "garbage collection"", which is just gonna confuse people.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What's
  • Low reputation (1):
Posted by: Kaisa Azaria

79543843

Date: 2025-03-29 20:19:38
Score: 2
Natty:
Report link

The solution was page.window.width, page.window.height and page.window.resizable

Discord was able to help with that

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

79543827

Date: 2025-03-29 20:03:34
Score: 4.5
Natty:
Report link

You can access to is url in your navigator ?

Or when you run your code the profiler tell what ?

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

79543821

Date: 2025-03-29 19:57:33
Score: 1.5
Natty:
Report link

When a user logs out and hits the back button, browsers restore the previous page state, including localStorage values. That's why your token "reappears" despite clearing it.

During logout, record a timestamp of when the user logged out In your auth check, verify that any token was created AFTER the most recent logout Modify browser history using replaceState to prevent returning to authenticated states Consider using sessionStorage instead of localStorage

This timestamp approach ensures that even if old tokens reappear due to browser navigation, they'll fail validation because they were created before the last logout.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When a use
  • Low reputation (1):
Posted by: SRIHARI KATTA

79543819

Date: 2025-03-29 19:54:32
Score: 2
Natty:
Report link

You can try to use space and new line symbol

Like:

print('Line_1 \nLine_2 \nLine_3 \n')
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nazar

79543807

Date: 2025-03-29 19:45:31
Score: 1.5
Natty:
Report link

Sorry, I am not aware of any direct API reference that I could suggest here and I have never worked with Lucene.

However, I am aware that Google Desktop uses a Query API to rank and suggest the relevant search results. More information on the API can be found here.

Perhaps others could chime in and guide you.

This is wrong now

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

79543788

Date: 2025-03-29 19:28:27
Score: 3
Natty:
Report link

Install from here 34.2.13 stable 30 April 2024 https://developer.android.com/studio/emulator_archive
This version of the emulator behave correctly on Linux.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Андрей

79543781

Date: 2025-03-29 19:25:26
Score: 1.5
Natty:
Report link

I saw your new car on Instagram. Seriously? 😒 Yeah, it’s amazing, right? Amazing? Jake, it’s so unnecessary. You already have a perfectly good car! I’ve been saving up for it. It’s something I really wanted. I get that, but why didn’t you talk to me about it first? It’s a huge purchase! I wanted to surprise you with it. A surprise? You’ve been making decisions like this without me. It feels like you don’t care about our plans. I care about us. It’s not like I’m ignoring you. I thought you’d be happy for me. It’s not about the car, Jake. It’s about you not including me. We’ve talked about saving for things we both want, and now it feels like this wasn’t considered at all. I’m sorry. I should’ve talked to you first. I didn’t mean to upset you. I just don’t want to feel like I’m left out of important decisions. I understand. I’ll make sure to include you next time. Can we talk later? Yeah, we need to.

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

79543778

Date: 2025-03-29 19:20:25
Score: 1.5
Natty:
Report link

I want to suggest another solution https://github.com/nerd220/JSONext

It allows you to easily serialize objects, saving internal and external links, methods and prototypes.

In subject case:

var node1={data: 'some data'};
var node2={data: 'else data');
node1.link=node2;
node2.link=node1;
var tree={node1: node1, node2: node2};

var serialize=toLinkedJSON(tree);

var newTree=fromLinkedJSON(serialize);
console.log(newTree.node1.link==newTree.node2);//true, because links are saved

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Antony E5 Gla

79543774

Date: 2025-03-29 19:18:25
Score: 3
Natty:
Report link

You can use this tool I created

https://github.com/uc-labs-llc/GitHub-Repo-Creater-

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: UC Labs

79543773

Date: 2025-03-29 19:18:25
Score: 1.5
Natty:
Report link

Okay, the most refined solution so far is to do the following:

.refreshable { [weak viewModel] in
   viewModel?.action()
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alexander Lonsky

79543771

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

Most hosting providers like A2 Hosting (and others) configure their email services to allow connections only from their own servers or from trusted IP addresses (such as those within their network). When you're working remotely (on your local machine), the connection to the SMTP server might be blocked, which is likely why you're experiencing delays or failure when testing locally.

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

79543770

Date: 2025-03-29 19:16:24
Score: 8 🚩
Natty: 5.5
Report link

l am looking to do the same thing but my api json response doesn’t have that [data] attribute, how should it be handled? Thank you in advance.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): how should i
  • RegEx Blacklisted phrase (3): Thank you in advance
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Benjamin P

79543768

Date: 2025-03-29 19:14:23
Score: 2.5
Natty:
Report link

Setting a file in `~/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py`

import os
import ycm_core

flags = [ '-std=c++20' ]

def Settings ( **kwargs ):
    return { 'flags': flags }

And the problem solved
enter image description here

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

79543765

Date: 2025-03-29 19:12:23
Score: 2
Natty:
Report link

I strongly suggest to use this library to achieve bidirectional binding both for reading and writing query params: @geckosoft/ngx-query-params

It's very useful when you are trying to read/write i.e. pagination params from URL query params, in just a one-line code.

Might be useful to someone! 🙂

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

79543764

Date: 2025-03-29 19:12:23
Score: 2
Natty:
Report link
  1. Open SSMS -> Connect

  2. Server name: (LocalDb)\MSSQLLocalDB,

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

79543761

Date: 2025-03-29 19:09:22
Score: 5
Natty: 4
Report link

@deype0 what kind of call do we have to make using the graph API explorer. I just added all permissions and sent a GET request to id name...

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @deype0
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: JPres

79543758

Date: 2025-03-29 19:08:22
Score: 1
Natty:
Report link

Just remove the following line from the schema.prisma file:

  output   = "../generated/prisma"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Avik

79543753

Date: 2025-03-29 19:04:21
Score: 2
Natty:
Report link

In case anyone else winds up here - they haven't updated their API documentation to reflect the actual package from NuGet. The correct code is as follows:

MailjetRequest req = new MailjetRequest();
var client = new MailjetClient(sendGridAPI, sendGridSecret);
TransactionalEmail email = new TransactionalEmail();
email.TextPart = "Text email goes in here";
email.HTMLPart = "<h1>Hello</h1>Your html email goes in here";
email.From = new SendContact("[email protected]", "That fellow");
List<SendContact> singleSend = new List<SendContact>();
singleSend.Add(new SendContact("[email protected]"));
email.To = singleSend;
var resp = await client.SendTransactionalEmailAsync(email);

Not sure why people think it's acceptable to have sample code that literally doesn't work in their up-to-date API documentation. But hey, I guess that's what the internet is for?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Not My Name

79543746

Date: 2025-03-29 18:56:19
Score: 3.5
Natty:
Report link

yah experiencing same thing with HAPI-FHIR w/ observations. No delay with creating patients.

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

79543737

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

As said here, its settings are controlled by the jitsi team so only by changing the server for an available one like the comment said or hosting your own can you use it without a moderator :

You cannot control authentication on meet.jit.si because that's a deployment we maintain. You should have your own deployment and then you can choose what type of auth you want.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hantsaniala Eléo

79543735

Date: 2025-03-29 18:45:17
Score: 1.5
Natty:
Report link

I want to suggest another solution https://github.com/nerd220/JSONext

It allows you to easily serialize objects, saving internal and external links, methods and prototypes.

In subject case:

var p1 = new Person(77);
var serialize=toLinkedJSON(p1,[],['Person']);
var p2 = fromLinkedJSON(serialize);

p2.isOld(); // true, now this method is works

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Antony E5 Gla

79543733

Date: 2025-03-29 18:45:17
Score: 1.5
Natty:
Report link

detaching the egg package worked for me incase still someone wanted to know.

detach("package:egg", unload = TRUE)

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kidanemaryam Wagaw

79543719

Date: 2025-03-29 18:36:15
Score: 3
Natty:
Report link

@timbre's answer makes many good points and is worth an up-vote. But it didn't answer exactly what I needed. So here's what I came up with.

See this article for how I came up with 6.0 corresponding to target SDK macOS 15

#if swift(>=5.0)
    ...swift code...
#else
    ...old approach...
#endif


#if canImport(SwiftUI, _version: "6.0") //hack to test for macOS 15 target sdk
    ...swift code...
    ...perhaps using #available if deployment sdk is older...
#else
    ...old approach...
#endif
Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • User mentioned (1): @timbre's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mustang

79543718

Date: 2025-03-29 18:36:15
Score: 4.5
Natty:
Report link

When I try to do Item 1 (Under 3 above) where it says "In Excel, go to Data ribbon → Get Data → From Other Sources → From Microsoft Query", I don't find "From Microsoft Query". All I get is From Table/Range, From Web, From OData Feed, From ODBC, From OLEDB, From Picture, and Blank Query. The stated option → From Microsoft Query isn't there. So I still can't get the query. What am I missing here?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: John

79543713

Date: 2025-03-29 18:33:13
Score: 6.5 🚩
Natty: 4.5
Report link

when I use this CSS :

  list-style: none;
  padding-left: 0;
}

ul li:before {
  content: '✓';
}

in elementor it drops the line.  I do not see it in alignment with the content <li> Is there a way to fix this?
Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1.5): fix this?
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): when I use this
  • Low reputation (1):
Posted by: ellie

79543704

Date: 2025-03-29 18:29:12
Score: 2.5
Natty:
Report link

It will be easier to create similar shapes in figma or adobe illustrator, then import SVGs into the project. Making icons with code is irrational, in any case, it will be more convenient in the visual editor.

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

79543690

Date: 2025-03-29 18:16:10
Score: 1.5
Natty:
Report link

where a strict MVC separation is not that much of a concern.

To emphasise that - when building an MVC app, the QListWidget cannot have the model set - the setModel() method is private. You have to use QListView to get all the items to sync up.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): where a
  • Low reputation (1):
Posted by: Grant_H

79543684

Date: 2025-03-29 18:11:09
Score: 0.5
Natty:
Report link

I have developed a free VS Code (and Cursor) extension that supports both Windows and MacOS systems. See https://github.com/hanlulong/stata-mcp. This extension provides Stata integration for Visual Studio Code and Cursor IDE using the Model Context Protocol (MCP). It allows you to:

Feedback is welcome.

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

79543682

Date: 2025-03-29 18:10:09
Score: 0.5
Natty:
Report link

I know this is a very old question, but maybe this will help someone... I had to insert columns into PostgreSQL tables at specific positions many times, so I wrote a Python script for it. It follows the column rotation approach in this blog post, which was also referred to earlier.

Limitations include:

It does handle all data types including arrays and default values. The parameters are hopefully self-explanatory. The new column will be at position new_column_pos after the script ran.

from psycopg import sql, connect


def insert_pg_column(conn, table_name, new_column_name, new_column_type, new_column_position):
    cur = conn.cursor()

    # Get column names and types from the table
    cur.execute(
        sql.SQL(
            "SELECT column_name, data_type, udt_name, character_maximum_length, column_default "
            "FROM information_schema.columns WHERE table_name = %s ORDER BY ordinal_position"
        ),
        [table_name],
    )
    columns = cur.fetchall()
    print(f"Retrieved definitions for {len(columns)} columns")
    # Remove from list all columns which remain unchanged
    columns = columns[new_column_position - 1 :]
    column_names = [col[0] for col in columns]

    # Add the new column to the table (at the end)
    cur.execute(
        sql.SQL("ALTER TABLE {} ADD COLUMN {} {}").format(
            sql.Identifier(table_name), sql.Identifier(new_column_name), sql.SQL(new_column_type)
        )
    )
    print(f"Added new column '{new_column_name}' to table '{table_name}'")

    # Create temporary columns to hold the data temporarily
    temp_columns = {}
    for col_name, col_type, udt_name, length, default in columns:
        temp_col_name = f"{col_name}_temp"
        temp_columns[col_name] = temp_col_name

        # Handle array types
        if col_type == "ARRAY":
            if udt_name.startswith("_"):
                data_type = f"{udt_name[1:]}[]"  # Remove the leading underscore
            else:
                data_type = f"{udt_name}[]"  # Not sure this ever happens?
        else:
            data_type = col_type
            if length is not None:  # For character types
                data_type += f"({length})"

        cur.execute(
            sql.SQL("ALTER TABLE {} ADD COLUMN {} {} {}").format(
                sql.Identifier(table_name),
                sql.Identifier(temp_col_name),
                sql.SQL(data_type),
                sql.SQL("DEFAULT {}").format(sql.SQL(default)) if default is not None else sql.SQL(""),
            )
        )
        print(f"Added temporary column '{temp_col_name}'{(" with default '" + default) + "'" if default else ''}")

    # Update the temporary columns to hold the data in the desired order
    for col_name in column_names:
        cur.execute(
            sql.SQL("UPDATE {} SET {} = {}").format(
                sql.Identifier(table_name), sql.Identifier(temp_columns[col_name]), sql.Identifier(col_name)
            )
        )
        print(f"Copied data from column '{col_name}' to '{temp_columns[col_name]}'")

    # Drop the original columns
    for col_name in column_names:
        cur.execute(
            sql.SQL("ALTER TABLE {} DROP COLUMN {}").format(sql.Identifier(table_name), sql.Identifier(col_name))
        )
        print(f"Dropped original column '{col_name}'")

    # Rename the temporary columns to the original column names
    for col_name in column_names:
        cur.execute(
            sql.SQL("ALTER TABLE {} RENAME COLUMN {} TO {}").format(
                sql.Identifier(table_name), sql.Identifier(temp_columns[col_name]), sql.Identifier(col_name)
            )
        )
        print(f"Renamed '{temp_columns[col_name]}' to '{col_name}'")

    conn.commit()
    cur.close()


if __name__ == "__main__":
    # Database connection parameters
    HOST = "your_host"
    DATABASE = "your_dbname"
    USER = "your_user"  # Needs to have sufficient privileges to alter the table!
    PASSWORD = "your_password"

    # Parameters for adding a new column (EXAMPLE; REPLACE WITH YOUR OWN VALUES!)
    table_name = "users"
    new_column_name = "user_uuid"
    new_column_type = "uuid"
    new_column_pos = 3  # Position is 1-based index

    connection = connect(f"dbname={DATABASE} user={USER} password={PASSWORD} host={HOST}")

    try:
        insert_pg_column(connection, table_name, new_column_name, new_column_type, new_column_pos)
        print(f"Successfully added column '{new_column_name}' to table '{table_name}' at position {new_column_pos}.")
    except Exception as e:
        print(f"Error: {e}")
        connection.rollback()
    finally:
        connection.close()
Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matt

79543678

Date: 2025-03-29 18:03:08
Score: 3
Natty:
Report link

Construct less than a cumulative frequency for this data. Marks(x) Frequency (f) More Than Cumulative (f)    3-72129+21=508-12227+22=2913-1743+4=718-2221+2=323-2711

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

79543670

Date: 2025-03-29 17:57:06
Score: 2
Natty:
Report link
spring.batch.initialize-schema=ALWAYS

Letter case of "ALWAYS", suprisingly matters

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

79543656

Date: 2025-03-29 17:47:04
Score: 0.5
Natty:
Report link

This is indeed not possible to do currently in Rust; there is an open RFC to allow it.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Chayim Friedman

79543647

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

The issue of std::exception not being caught in C++ can arise due to several reasons:

1. Incorrect Exception Type – std::exception does not have a constructor that takes a string argument. Instead, use std::runtime_error or std::logic_error to pass an error message.

2. Heap Allocation of Exception – If an exception is thrown using throw new some_exception and caught with catch (some_exception &exc), it won’t be caught because new returns a pointer, and exception handling expects an object reference.

3. Buffering Issues in Output – If the exception is caught but not printing, ensure std::cerr is used instead of std::cout, or add \n at the end of the error message for immediate output.

4. Compiler/Debugger Settings – Some compilers require enabling C++ exceptions explicitly. Also, breakpoints set before the throw statement can sometimes mislead debugging.

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

79543640

Date: 2025-03-29 17:37:02
Score: 4
Natty: 6
Report link

Même problème ! Mais toute ces suggestions ne fonctionnent pas ! Besoin d'aide

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

79543637

Date: 2025-03-29 17:32:01
Score: 0.5
Natty:
Report link

The code syntax below should properly solve your problem.

TabLayout tabLayout = ...;
if (tabLayout.getMeasuredHeight() == 0) tabLayout.measure(View.MeasureSpec.UNDEFINED, View.MeasureSpec.UNDEFINED);
int tabLayoutHeight = tabLayout.getMeasuredHeight();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moz

79543633

Date: 2025-03-29 17:30:00
Score: 0.5
Natty:
Report link

Imagine you have a box of toys (a "collection"). The For Each loop is like saying:

"For every toy in this box, I want to do something with it (like inspect it, put it on a shelf, etc.). Once I've done that something with every single toy in the box, I'm done."

You don't tell it how many times to run. It runs once for each item in a collection (like a box of toys, a range of cells in Excel, etc.). The number of times it runs depends on how many items are in the collection.


Let's say you have some numbers in cells A1 to A5 of your Excel sheet, and you want to double the value of each of these cells using VBA. Here's how you could do it with a For Each loop:

Sub DoubleCellValues()

  Dim cell As Range 'Declare a variable to hold each cell
  Dim myRange As Range

  'Define the range you want to loop through (A1:A5)
  Set myRange = Range("A1:A5")

  'For Each cell in the range...
  For Each cell In myRange
    'Double the value of the cell
    cell.Value = cell.Value * 2
  Next cell 'Move to the next cell in the range

End Sub

The For Each loop is designed to easily process every item in a collection (like a range of cells), without you having to worry about keeping track of indexes or counters. It makes your code cleaner and easier to read when you want to do the same thing to every item in a group.

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

79543629

Date: 2025-03-29 17:25:59
Score: 2.5
Natty:
Report link

Try

dotnet nuget locals all --clear

worked for me in 2025

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: J H J Loaring

79543624

Date: 2025-03-29 17:22:59
Score: 1
Natty:
Report link

Adding the NF suffix solved my issue. From the VS Code docs at https://code.visualstudio.com/docs/terminal/appearance

Nerd Fonts work the same and typically have a " NF" suffix, the following is an example of how to configure Hack's nerd fonts variant:

"terminal.integrated.fontFamily": "'Hack NF'"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pieter Mertens

79543618

Date: 2025-03-29 17:19:58
Score: 2
Natty:
Report link

You can also toggle "Tx" to "Manual" in your DataGrip session for temporary change in transaction control.

enter image description here

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

79543613

Date: 2025-03-29 17:13:57
Score: 4
Natty: 4
Report link

Wow. Thats the best, shortest, and most straight forward printing code ....

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

79543612

Date: 2025-03-29 17:12:56
Score: 3
Natty:
Report link

Meysam - Your solution worked for me. Thanks so much

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: William Santa

79543604

Date: 2025-03-29 17:08:55
Score: 0.5
Natty:
Report link

I've created a command-line tool called subscan that does exactly what you're looking for. It combines all the steps you mentioned into a single pipeline:

  1. Crop video to subtitle area
  2. Extract frames at specified frame rate
  3. OCR the frames (using Apple's Vision framework for better accuracy)
  4. Remove duplicates and empty lines

Here's how to use it:

# Install via Homebrew
brew tap vangie/formula
brew install subscan

# Basic usage (read from file)
subscan -i video.mp4 -a 600x50+210+498 -o subtitles.txt

# Using pipe with custom frame rate (2 fps)
cat video.mp4 | subscan -a 600x50+210+498 -r 2 > subs.txt

# Use fast mode with specific languages
subscan -i video.mp4 -a 600x50+210+498 -f -l "en-US,zh-CN" -o subs.txt

Key features:

The tool is open source and available at: https://github.com/vangie/subscan

Requirements:

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vangie

79543603

Date: 2025-03-29 17:08:55
Score: 1
Natty:
Report link

The option "Current Query" in the Loop Grid widget takes the value set in the WordPress Settings -> Reading. This is not a bug but an intended functionality.

Here they explain this is for compatibility and they are not going to change it: https://github.com/elementor/elementor/issues/20976

Your issue is weird, maybe you have a very high value in your WordPress settings.

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

79543586

Date: 2025-03-29 17:00:54
Score: 2
Natty:
Report link

You can use check_c_compiler_flag

https://cmake.org/cmake/help/latest/module/CheckCCompilerFlag.html

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Szymon Kędzierski

79543578

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

My issue was I added Microsoft OFFICE 16.0 Object Library when it should have been Microsoft WORD 16.0 Object Library in the VBA > Tools > References tab. The code created should work fine as long as you add the correct references!

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

79543575

Date: 2025-03-29 16:53:52
Score: 1
Natty:
Report link

Actually, if you "just" want to keep the current path, modern versions of pkexec do have an option for that:

pkexec --keep-cwd

Thanks to @Wang, who answered this in another question.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): another question
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: rugk

79543569

Date: 2025-03-29 16:49:51
Score: 4
Natty:
Report link

The problem lied within Bun's v1.2.6 update. Reverting back to 1.2.5 fixed this issue.

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

79543568

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

Thanks Chux.

When setting up and configuring MobSF dynamic analysis, and using Android Studio AVD, if you use an API above 29, you will consistently get a "/system not writeable, this AVD can't be used for dynamic analysis".

To fix this, use API 28, I configured a Pixel 3 XL. Hope this helps other people.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30099078

79543567

Date: 2025-03-29 16:45:50
Score: 0.5
Natty:
Report link

Instead of replacing the entire contact object, update only the email field using MongoDB's dot notation as contact.email

await Client.findByIdAndUpdate(
    id,
    { $set: { "contact.email": <New_Email> } }, 
    { new: true, runValidators: true } // returns updated doc & enforce schema validation
);

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

79543561

Date: 2025-03-29 16:41:49
Score: 2
Natty:
Report link

This kind of old, so you probably solved it already.

@first: OpenAPI Specification and Swagger tools are for HTTP-based APIs only and do not support other protocols like FTP.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @first
  • Low reputation (1):
Posted by: Niels Vanoort

79543558

Date: 2025-03-29 16:41:49
Score: 1.5
Natty:
Report link

Sorting by index in the desired order:

def sort_string(s): 
    return ''.join(sorted(s, key='23456789TJQKA'.index))

print(sort_string('Q4JTK') == '4TJQK')
print(sort_string('9T43A') == '349TA')
print(sort_string('T523Q') == '235TQ')

Attempt This Online!

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

79543555

Date: 2025-03-29 16:38:49
Score: 1
Natty:
Report link
public static bool HasUniqueChars(string input)
{
    HashSet<char> chars = new HashSet<char>();

    foreach (char ch in input)
    {
        if (chars.Contains(ch))
        {
            return false;
        }
        else
        {
            chars.Add(ch);
        }
    }

    return true;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: temaxx

79543553

Date: 2025-03-29 16:36:48
Score: 2.5
Natty:
Report link

I contacted my hosting site. They cleared some caches somewhere. They are sending those details to me.

They did mention that it could be Cloudflare but that was not the case.

Will share more details when they become available regarding which cache(s) was cleared to fix the issue.

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

79543507

Date: 2025-03-29 16:07:43
Score: 0.5
Natty:
Report link

You may try to use the option in application.properties

quarkus.hibernate-orm.active=false

or environment variable

QUARKUS_HIBERNATE_ORM_ACTIVE=false

Read more: https://quarkus.io/guides/hibernate-orm#quarkus-hibernate-orm_quarkus.hibernate-orm.enabled

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

79543502

Date: 2025-03-29 16:05:42
Score: 5.5
Natty: 7
Report link

testssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • Low entropy (1):
  • Low reputation (1):
Posted by: Павел Здерев

79543497

Date: 2025-03-29 15:58:41
Score: 4.5
Natty: 4
Report link

I have the same query as in the question above.

Regarding the answer by @oliver

As a MWE, I wish to create a simple test package with 2 files.

$ cat hello.sh 
#!/usr/bin/sh
cat mydatafolder/data.txt

$ cat mydatafolder/data.txt 
Hello World!


hello-world-1.0 $ tree -L 1
.
├── debian
├── hello.sh
└── mydatafolder

3 directories, 1 file

Now how do I refer to data.txt so that the same incantation works both while creating the package and after installing it.

Here is what I tried:

hello-world-1.0$ cat debian/install 
hello.sh usr/bin
mydatafolder/* usr/share/mydatafolder
hello-world-1.0$ echo $XDG_DATA_DIRS 
/usr/share/gnome:/usr/local/share/:/usr/share/

When I create and install the package it says :

$ hello.sh
cat: mydatafolder/data.txt: No such file or directory

Should'nt mydatafolder which is in /usr/share/ be in the list of folders in $XDG_DATA_DIRS ? Is that not how it works? What am I missing?

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @oliver
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: user2338823

79543485

Date: 2025-03-29 15:50:39
Score: 1
Natty:
Report link

Use vip package for that

vip::vip(model_rf)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: drastega

79543482

Date: 2025-03-29 15:50:39
Score: 5.5
Natty:
Report link

are you doing namaste react? i'm also stuck in same problem

Reasons:
  • RegEx Blacklisted phrase (1.5): i'm also stuck
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashish N M

79543481

Date: 2025-03-29 15:49:38
Score: 2.5
Natty:
Report link

Try to use better models for the embeddings, that bad embedding models could cause a decrease in accuracy.

See mteb-embedding-leaderboard

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

79543472

Date: 2025-03-29 15:45:37
Score: 2.5
Natty:
Report link

Are you still doing this?

I have a solution that I've been using on "timebucks.com" for almost a year now.

I can't make it a public repository but you can reach me so that we can share ideas. You can text on wa.me/254114058155

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ochie Austine

79543464

Date: 2025-03-29 15:36:35
Score: 5
Natty:
Report link

hi i think you need to install lsp server, you can do it with mason.

https://www.youtube.com/watch?v=h4g0m0Iwmys&ab_channel=typecraft

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Maxim Kostrov

79543463

Date: 2025-03-29 15:33:35
Score: 1
Natty:
Report link

I experienced a similar problem. I use IntersectionObserver for infinite scroll. I tested it out on many different devices and browsers including MacOS, Linux and Windows devices with Chrome, Safari, Opera, and Edge browsers. I never experienced an error, neither my customers.

However, a week ago a customer stated that scroll is not working on any devices of them. We had online sessions to find the issue, we tried different browsers, etc. The interesting thing, it was working time to time. Then I noticed that I set threshold to 1 without even thinking what it means. (It was actually a snippet of AI generated code) Setting it to a lower value solved the problem.

In short, I believe threshold value may not be very precisely deterministic on different devices/browsers. It may even sometimes work and sometimes not with exactly the same configuration. So, assigning it to a lower value may save you.

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