79401885

Date: 2025-01-31 06:07:33
Score: 1
Natty:
Report link

It works to delete "/opt/homebrew/var/mysql" for Mac M1. but I do not want to lost all my data. As old bird, I checked err logs (located at /opt/homebrew/var/mysql). it turns out mysql version problem. like "[ERROR] [MY-014060] [Server] Invalid MySQL server upgrade: Cannot upgrade from 80300 to 90200. Upgrade to next major version is only allowed from the last LTS release, which version 80300 is not."

God knows when mysql update version (by who), but any way, I installed old version by "brew install [email protected]". it works again.

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

79401884

Date: 2025-01-31 06:06:33
Score: 2.5
Natty:
Report link

import pandas as pd

Try reading the CSV file with 'latin1' or 'ISO-8859-1' encoding

df = pd.read_csv('yourfile.csv', encoding='latin1')

If latin1 doesn't work, try cp1252 (another common encoding)

df = pd.read_csv('yourfile.csv', encoding='cp1252')

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

79401876

Date: 2025-01-31 06:01:31
Score: 5.5
Natty: 4.5
Report link

Fortype=text, having default value '' is perfectly fine but for type=number the default value need to be something inorder to prevent this error. Is there any work around for that?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mudasir Pandith

79401874

Date: 2025-01-31 06:00:31
Score: 3.5
Natty:
Report link

the path "/", should be put last in the list of paths.

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

79401872

Date: 2025-01-31 05:59:30
Score: 5.5
Natty:
Report link

Try using a newer version of velocity_x, also what version of flutter are you using?

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

79401871

Date: 2025-01-31 05:59:30
Score: 1
Natty:
Report link

Update Visual Studio Code and Extensions: Make sure you have the most recent version of VS Code, as well as the Flutter and Dart extensions installed. Clear the Flutter Cache:

To clear the Flutter cache, execute the following command in your terminal: Flutter Clean and Flutter Pub. get

Reinstall the Flutter SDK: Sometimes reinstalling the Flutter SDK can address initialisation problems. You may get the most recent version from the official

Flutter website. Check for Conflicting Extensions: Disable any extensions in VS Code that may be in conflict with the Flutter extension.

Run Flutter, Doctor: Open your terminal and run flutter doctor to check for problems with your Flutter installation.

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

79401870

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

Turns out this was actually a pretty simple fix. I didn't realize the hydrate() function had to be called in the construstor of all classes using HydrateMixin to populate the internal state storage with the latest state.

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

79401861

Date: 2025-01-31 05:51:29
Score: 2.5
Natty:
Report link

( ( HTMLInputElement )this.webBrowser1.Document.GetElementById( "test" ).DomElement ).@checked = false;

Share Edit Follow edited Nov 5, 2009

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: squad Cinta permata

79401860

Date: 2025-01-31 05:50:28
Score: 1.5
Natty:
Report link

I've been pondering this one myself for a few weeks on and off, having arrived at the following answer. This was specifically done to track changes within a 'logging table' for user defined tables (not every table) via stored procedures, excluding the use of external tooling requirements. I believe this is equivalent to your question. I am using TSQL for this task. Note for the below I specifically addressed INSERT actions but can be readily adjusted and expanded for UPDATE and DELETE for your own needs. I leave this exercise for the user.

I apologies in advance for the length of this response.

Given the assumption we are familiar with stored procedures we can immediately start at the guts of our work. I failed to break down my solution further than as shown, and the following and is presented with the intention of both combining each part for a complete answer (Part 1 - 5 can be copy-pasted), while explaining each part in detail for understanding.

Part 1:

BEGIN
DECLARE 
    @TABLE_NAME     NVARCHAR(MAX) = NULL,
    @PKEY           NVARCHAR(MAX) = NULL,
    @COLUMN_NAME    NVARCHAR(MAX) = NULL,
    @EventLog_I_TR  NVARCHAR(MAX) = NULL

DECLARE TableCursor CURSOR FOR
    SELECT TABLE_NAME FROM [dbo].[EVENT_LOG_TABLES]

OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TABLE_NAME

WHILE @@FETCH_STATUS = 0
BEGIN

In Part 1, we start with our DECLARE of required variables. To facilitate the selection of only "some" tables, I am storing the tables I want to track as string data within [EVENT_LOG_TABLES].[TABLE_NAME]. I have then used a cursor to iterate through these tables. I expect I will refine this in future to remove cursor reliance, however this has not occurred today.

Part 2:

        SET @PKEY = ''
    
    SELECT @PKEY = @PKEY + 'CAST(INSERTED.[' + COLUMN_NAME + '] AS NVARCHAR(MAX)) + '','' + '
    FROM INFORMATION_SCHEMA.COLUMNS 
    WHERE TABLE_NAME = @TABLE_NAME 
    AND COLUMN_NAME IN (
        SELECT KCU.COLUMN_NAME 
        FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE KCU 
        JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS TC ON KCU.CONSTRAINT_NAME = TC.CONSTRAINT_NAME
        WHERE KCU.TABLE_NAME = @TABLE_NAME
        AND TC.CONSTRAINT_TYPE = 'PRIMARY KEY'
    )
    
    SET @PKEY = LEFT(@PKEY, LEN(@PKEY) - 8)

In Part 2, I have collated the primary key values of the table into a string. As we are working with many tables, which will have many different primary keys, I have chosen to concatenate these values to provide a unique and searchable value within the logging table. If all tables have the same keys, it may be more efficient to break out this section into multiple return values instead of one. I leave this decision to the user.

Part 3:

        SET @EventLog_I_TR = ''

    DECLARE ColumnCursor CURSOR FOR
        SELECT      COLUMN_NAME 
        FROM        INFORMATION_SCHEMA.COLUMNS 
        WHERE       TABLE_NAME = @TABLE_NAME 
                    AND COLUMN_NAME NOT IN (SELECT  KCU.COLUMN_NAME 
                                            FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE KCU 
                                            JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS TC ON KCU.CONSTRAINT_NAME = TC.CONSTRAINT_NAME
                                            WHERE KCU.TABLE_NAME = @TABLE_NAME
                                            AND TC.CONSTRAINT_TYPE = 'PRIMARY KEY'
                                            )

    OPEN ColumnCursor
    FETCH NEXT FROM ColumnCursor INTO @COLUMN_NAME

    WHILE @@FETCH_STATUS = 0
    BEGIN    

I have set our trigger string (@EventLog_I_TR) to an empty string ('') so that we can concatenate this value later on (in Part 4). Meanwhile, I have also declared the cursor over the columns within the current table which are not primary keys.

Up to now, we can now assess the table (user defined), primary keys (distinct tracking), and columns (change tracking).

This leads us into Part 4:

            SET @EventLog_I_TR = @EventLog_I_TR + CHAR(13) +
            'INSERT INTO [dbo].[EVENT_LOG] ([TABLE], [PKEY], [COLUMN], [ACTION], [VAL]) ' +
            'SELECT ''' + @TABLE_NAME + ''',' + @PKEY + ',''' + @COLUMN_NAME + 
            ''',''I'',[' + @COLUMN_NAME + '] ' +
            'FROM INSERTED WHERE ' + '[' + @COLUMN_NAME + '] IS NOT NULL; ' + CHAR(13)

        FETCH NEXT FROM ColumnCursor INTO @COLUMN_NAME
    END

    CLOSE ColumnCursor
    DEALLOCATE ColumnCursor

We set our previous @EventLog_I_TR to a concatenated SQL string where we create a series of "INSERT INTO" queries. This will insert into our [EVENT_LOG] the table, primary key, column name, action taken (insert, update, delete- In this I am inserting ("I"), and the value associated with the action.

Closing the cursor, we now have a concatenated SQL string of INSERT to handle our table data.

Part 5:

    EXEC('IF EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N''[TR_I_' + @TABLE_NAME + ']'')) DROP TRIGGER [TR_I_' + @TABLE_NAME + ']')
    EXEC('CREATE TRIGGER [TR_I_' + @TABLE_NAME + '] ON [' + @TABLE_NAME + '] AFTER INSERT AS SET NOCOUNT ON ' + @EventLog_I_TR)

    FETCH NEXT FROM TableCursor INTO @TABLE_NAME
END
   
CLOSE TableCursor
DEALLOCATE TableCursor
END

In our final Part 5, we first drop the trigger for each table in our [EVENT_LOG_TABLES] if it exists, before recreating it as a CREATE TRIGGER "TR_I_"+@TABLE_NAME. For this example, "I" stands for 'INSERT'. Adjust as you require (or combine methods yourself for update, insert, delete).

The output result of this is a trigger on each table you have defined within [EVENT_LOG_TABLES], which AFTER INSERT will create a record within [EVENT_LOG] for the table, primary key(s), column, action, and value.

I have expanded this for my own use with timedate and user constraints, and an event_id. Apply what is most appropriate yourself.

I hope this is helpful.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @EventLog_I_TR
  • Low reputation (1):
Posted by: C-Lien

79401859

Date: 2025-01-31 05:50:28
Score: 1.5
Natty:
Report link

A Bitflag has only a single bit set to 1, whereas a Bitmask can have one or more bits set to 1.

Only in cases where a Bitmask has only one bit set to 1, it may be interchangeably used as a Bitflag.

But you wouldn't call your Bitmask as a Bitflag as that is not always true.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Arun Kumar B

79401842

Date: 2025-01-31 05:37:26
Score: 1.5
Natty:
Report link

You can add \vspace{-xxpt}.

\begin{table}
\centering
...
\vspace{-10pt} % Adjust the value as needed
\end{table}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Himanshu

79401839

Date: 2025-01-31 05:34:25
Score: 2
Natty:
Report link

Catch SequelizeUniqueConstraintError explicitly to handle constraint violations

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

79401830

Date: 2025-01-31 05:29:24
Score: 3.5
Natty:
Report link

GRANT CREATE TABLE ON VSCOMDB.VSH_CONSOLIDATE TO ROLE DEV_ROLE;

I'm getting below error

Schema 'VSCOMDB.VSCOMDB' does not exist or not authorized.

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting below error
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: VS COM

79401829

Date: 2025-01-31 05:29:24
Score: 0.5
Natty:
Report link

so i got the solution

KeyEvent.KEYCODE_DPAD_UP -> {
                                    if (selectedRow > 0) {
                                        selectedRow--
                                        isUpFromList = false
                                    } else {
                                        scope.launch{
                                            isFocusOnListing = false
                                            isUpFromList = true
                                            delay(50)
                                            setFocusContinueWatch.freeFocus()
                                            setFocusOnWatchNow.requestFocus()
                                        }
                                    }

i just did the whole operation in a coroutine scope and added a 50milli delay

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

79401820

Date: 2025-01-31 05:22:23
Score: 3.5
Natty:
Report link

Got it! The other aerodynamic surfaces were actually essential. Without these, the simulation doesn't work and doesn't return any apogee values. Thanks for the help Onuralp!

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

79401802

Date: 2025-01-31 05:06:20
Score: 2.5
Natty:
Report link

I need someone who is smarter with technology than me, but I have been talking to the FBI about this. Social media is currently compromised, those parameters shouldn't be there. I don't know what 'oa' is. But "a" appears to be silenced from feeds. "pcb" is a normal post (except not normal. The algorithm isn't working correctly.) GM is a hacker account, and gm followed by idorvanity is an account/page that has been hacked/is controlled by the hackers. I have been trying to get help for 2 weeks about this.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: HaK

79401795

Date: 2025-01-31 04:58:19
Score: 1
Natty:
Report link

As I understand your challenge, if MySQL isn’t starting and you see the "MySQL shutdown unexpectedly" error, it could be due to issues like blocked ports, missing dependencies, or data file corruption.

You can try with below points: Check the Error Log: Click the "Logs" button in XAMPP and check the mysql_error.log for more details on the failure.

Port Conflict: Ensure MySQL’s default port (3306) isn’t used by another app. You can change the port in the my.ini file if needed.

Data File Corruption: If corruption in files like ibdata1, .frm, .ibd is suspected, restore from a recent backup. If no backup is available there are many tools available like Stellar Repair for MySQL to repair the corrupted files and recover data that may be helpful to you.

Reinstall XAMPP: If nothing works, reinstall XAMPP after backing up your databases.

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

79401794

Date: 2025-01-31 04:57:18
Score: 1
Natty:
Report link

It turns out the problem was not my git config, but instead Git Credential Manager.

I had Git Credential Manager configured for my credential helper. It turns out somehow I had two accounts in the git credential manager. I listed my accounts via git-credential-manager.exe github list and removed the extra account via git-credential-manager.exe github logout <bad-account>. For example, the account I didn't want was "almenon" so I ran git-credential-manager.exe github logout almenon.

After that the popup went away 🎉

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Almenon

79401765

Date: 2025-01-31 04:28:13
Score: 1
Natty:
Report link

I fixed mine with just initialize with git git init

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Augustine Godwin

79401759

Date: 2025-01-31 04:22:12
Score: 1.5
Natty:
Report link

This was a known missing feature in EF Core 8 and below, and support has now been rolled out with EF 9.

Here is the ticket on Github that tracked the development of the feature: https://github.com/dotnet/efcore/issues/34256

And here is the release announcement: https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-9.0/whatsnew#significantly-improved-linq-querying-capabilities

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

79401748

Date: 2025-01-31 04:14:10
Score: 2.5
Natty:
Report link

Unfortunately, adding WhatsApp's built-in reaction buttons directly through the API isn’t possible. The thumbs-up and thumbs-down reactions are a feature controlled by WhatsApp itself, and they can’t be included in message templates.

The best approach is to use quick reply buttons. Instead of actual reactions, you can add a message that asks users if the information was helpful and provide two button options:

This allows users to give feedback with a simple tap, and you can track their responses.

For example, here’s how you would send a WhatsApp message template with quick reply buttons using the API:

bash
CopyEdit
curl -X POST "<https://graph.facebook.com/v17.0/YOUR_PHONE_NUMBER_ID/messages>" \\
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "USER_PHONE_NUMBER",
  "type": "interactive",
  "interactive": {
    "type": "button",
    "body": {
      "text": "Did you find this message helpful?"
    },
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "thumbs_up",
            "title": "Yes"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "thumbs_down",
            "title": "No"
          }
        }
      ]
    }
  }
}'

Maybe this can help!

Reasons:
  • RegEx Blacklisted phrase (3): Did you find this
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Favo Perdana

79401747

Date: 2025-01-31 04:13:09
Score: 6.5 🚩
Natty: 4.5
Report link

I am also trying to check my website on page speed but same error is coming but if i am trying to check it with other websites its showing even website also reachable with vry fast speed. can pls tell me if this is server error will it affect my seo.https://watchipogmp.in/

Reasons:
  • Blacklisted phrase (1): i am trying to
  • RegEx Blacklisted phrase (2.5): pls tell me
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abhijeet Sambhaji Jagadale

79401745

Date: 2025-01-31 04:13:09
Score: 1
Natty:
Report link

The networking is happening at the native code level but you can use native tools to analyze the network traffic.

For iOS see Analyzing HTTP traffic with Instruments and for Android Inspect network traffic with the Network Inspector.

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

79401738

Date: 2025-01-31 04:07:08
Score: 1
Natty:
Report link

Slight change on iOS 18. Follow the steps above from @Mickey16, then modify the requestedScopes (add or remove one), then re-run.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Mickey16
  • Single line (0.5):
  • High reputation (-1):
Posted by: bdev

79401737

Date: 2025-01-31 04:06:08
Score: 0.5
Natty:
Report link

To solve it,

1- I used reflection to reach private members of class, and escalate the implementation of function getType2CharString that lives inside CFFType1Font and CFFCIDFont, as below to a new class named CffFontPatchUtils. There new getType2CharString is returning "Type2CharString charStr" and "List type2Sequence" at the same time.
WARNING: It is my first time using reflections. I do not understand why there was no compilation error, in the first run.

package org.mabb.fontverter.cff;

import com.tugalsan.api.unsafe.client.TGS_UnSafe;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.apache.fontbox.cff.CFFCIDFont;
import org.apache.fontbox.cff.CFFFont;
import org.apache.fontbox.cff.CFFType1Font;
import org.apache.fontbox.cff.CIDKeyedType2CharString;
import org.apache.fontbox.cff.Type2CharString;
import org.apache.fontbox.cff.Type2CharStringParser;
import org.apache.fontbox.type1.Type1CharStringReader;

public class CffFontPatchUtils {

    public static record Result(Type2CharString charStr, List<Object> type2Sequence) {

        public static Result of(Type2CharString charStr, List<Object> type2Sequence) {
            return new Result(charStr, type2Sequence);
        }
    }

    public static Result getType2CharString(CFFFont font, int cidOrGid) {
        if (font instanceof CFFType1Font _font) {
            return CFFType1Font_getType2CharString(_font, cidOrGid);
        }
        if (font instanceof CFFCIDFont _font) {
            return CFFCIDFont_getType2CharString(_font, cidOrGid);
        }
        return null;
    }

    private static Result CFFType1Font_getType2CharString(CFFType1Font font, int gid) {
        String name = "GID+" + gid; // for debugging only
        return CFFType1Font_getType2CharString(font, gid, name);
    }

    // Returns the Type 2 charstring for the given GID, with name for debugging
    private static Result CFFType1Font_getType2CharString(CFFType1Font font, int gid, String name) {
        return TGS_UnSafe.call(() -> {
            var field_charStringCache = font.getClass().getDeclaredField("charStringCache");
            field_charStringCache.setAccessible(true);
            var charStringCache = (Map<Integer, Type2CharString>) field_charStringCache.get("charStringCache");

            var type2 = charStringCache.get(gid);
            List<Object> type2seq = null;
            if (type2 == null) {

                var field_charStrings = font.getClass().getDeclaredField("charStrings");
                field_charStrings.setAccessible(true);
                var charStrings = (byte[][]) field_charStrings.get("charStrings");

                byte[] bytes = null;
                if (gid < charStrings.length) {
                    bytes = charStrings[gid];
                }
                if (bytes == null) {
                    bytes = charStrings[0]; // .notdef
                }

                var method_getParser = font.getClass().getDeclaredMethod("getParser");
                method_getParser.setAccessible(true);
                var parser = (Type2CharStringParser) method_getParser.invoke(font);

                var field_globalSubrIndex = font.getClass().getDeclaredField("globalSubrIndex");
                field_globalSubrIndex.setAccessible(true);
                var globalSubrIndex = (byte[][]) field_globalSubrIndex.get("globalSubrIndex");

                var method_getLocalSubrIndex = font.getClass().getDeclaredMethod("getLocalSubrIndex");
                method_getLocalSubrIndex.setAccessible(true);
                var getLocalSubrIndex = (byte[][]) method_getLocalSubrIndex.invoke(font, gid);

                type2seq = parser.parse(bytes, globalSubrIndex, getLocalSubrIndex, name);

                var field_reader = font.getClass().getDeclaredField("reader");
                field_reader.setAccessible(true);
                var reader = (Type1CharStringReader) field_reader.get("reader");

                var method_getDefaultWidthX = font.getClass().getDeclaredMethod("getDefaultWidthX");
                method_getDefaultWidthX.setAccessible(true);
                var getDefaultWidthX = (Integer) method_getDefaultWidthX.invoke(font, gid);

                var method_getNominalWidthX = font.getClass().getDeclaredMethod("getNominalWidthX");
                method_getNominalWidthX.setAccessible(true);
                var getNominalWidthX = (Integer) method_getNominalWidthX.invoke(font, gid);

                type2 = new Type2CharString(reader, font.getName(), name, gid, type2seq, getDefaultWidthX, getNominalWidthX);
                charStringCache.put(gid, type2);
            }
            return Result.of(type2, type2seq);
        });
    }

    private static Result CFFCIDFont_getType2CharString(CFFCIDFont font, int cid) {
        return TGS_UnSafe.call(() -> {
            var field_charStringCache = font.getClass().getDeclaredField("charStringCache");
            field_charStringCache.setAccessible(true);
            var charStringCache = (Map<Integer, CIDKeyedType2CharString>) field_charStringCache.get("charStringCache");

            var type2 = charStringCache.get(cid);
            List<Object> type2seq = null;
            if (type2 == null) {
                var gid = font.getCharset().getGIDForCID(cid);

                var field_charStrings = font.getClass().getDeclaredField("charStrings");
                field_charStrings.setAccessible(true);
                var charStrings = (byte[][]) field_charStrings.get("charStrings");

                byte[] bytes = null;
                if (gid < charStrings.length) {
                    bytes = charStrings[gid];
                }
                if (bytes == null) {
                    bytes = charStrings[0]; // .notdef
                }

                var method_getParser = font.getClass().getDeclaredMethod("getParser");
                method_getParser.setAccessible(true);
                var parser = (Type2CharStringParser) method_getParser.invoke(font);

                var field_globalSubrIndex = font.getClass().getDeclaredField("globalSubrIndex");
                field_globalSubrIndex.setAccessible(true);
                var globalSubrIndex = (byte[][]) field_globalSubrIndex.get("globalSubrIndex");

                var method_getLocalSubrIndex = font.getClass().getDeclaredMethod("getLocalSubrIndex");
                method_getLocalSubrIndex.setAccessible(true);
                var getLocalSubrIndex = (byte[][]) method_getLocalSubrIndex.invoke(font, gid);

                type2seq = parser.parse(bytes, globalSubrIndex, getLocalSubrIndex, String.format(Locale.US, "%04x", cid));

                var field_reader = font.getClass().getDeclaredField("reader");
                field_reader.setAccessible(true);
                var reader = (Type1CharStringReader) field_reader.get("reader");

                var method_getDefaultWidthX = font.getClass().getDeclaredMethod("getDefaultWidthX");
                method_getDefaultWidthX.setAccessible(true);
                var getDefaultWidthX = (Integer) method_getDefaultWidthX.invoke(font, gid);

                var method_getNominalWidthX = font.getClass().getDeclaredMethod("getNominalWidthX");
                method_getNominalWidthX.setAccessible(true);
                var getNominalWidthX = (Integer) method_getNominalWidthX.invoke(font, gid);

                type2 = new CIDKeyedType2CharString(reader, font.getName(), cid, gid, type2seq, getDefaultWidthX, getNominalWidthX);
                charStringCache.put(cid, type2);
            }
            return Result.of(type2, type2seq);
        });
    }
}
  1. Then, I updated the in the function CffFontAdapter.getGlyphs(), dependency at package org.mabb.fontverter.cff, in fontverter, as below.
    public List<CffGlyph> getGlyphs() throws IOException {
        List<CffGlyph> glyphs = new ArrayList<CffGlyph>();
        for (GlyphMapReader.GlyphMapping mapOn : getGlyphMaps()) {
            CffGlyph glyph = createGlyph();
//            Type2CharString charStr = font.getType2CharString(mapOn.glyphId);
            var result = CffFontPatchUtils.getType2CharString(font, mapOn.glyphId);
//            glyph.readType2Sequence(charStr.getType2Sequence());
            glyph.readType2Sequence(result.type2Sequence());
            glyph.map = mapOn;
//            glyph.charStr = charStr;
            glyph.charStr = result.charStr();
            glyphs.add(glyph);
        }
        return glyphs;
    }
  1. I tested the pdf to html conversion with pdf files @ https://github.com/py-pdf/sample-files, most of them worked. Some failed ones are like 007-imagemagick-images, 008-reportlab-inline-image...
Reasons:
  • Blacklisted phrase (1): thX
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tugalsan Karabacak

79401736

Date: 2025-01-31 04:05:06
Score: 7 🚩
Natty: 4.5
Report link

Have you figured out? I am having the exactly issue.

Reasons:
  • RegEx Blacklisted phrase (3): Have you figured out
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hu wang

79401730

Date: 2025-01-31 03:57:05
Score: 3.5
Natty:
Report link

I need to change the PHP version of my website to 7.1, I am using Ubuntu 22 on cPanel

Kindly provide me the proper guidance on how to perform this.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Masakage Yamagata

79401727

Date: 2025-01-31 03:56:05
Score: 1
Natty:
Report link

An example of a proof with a function.

Definition contrapositive :
  forall P : Prop,
  forall Q : Prop,
  (~Q -> ~P) -> P -> Q 
:= 
fun 
  (P : Prop) 
  (Q : Prop) 
  (H : ~Q -> ~P) 
  (p : P) => 
  let nnq : ~ ~ Q := (fun (e : ~Q) => H e p) in 
  let H' :  ~ ~ Q -> Q := NNPP Q in 
  (H' nnq) 
.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: illusory0x0

79401726

Date: 2025-01-31 03:55:04
Score: 2.5
Natty:
Report link

result = np.zeros((2, 3*3)) result[:,::4]=data[:,:] result.shape=(2,3,3)

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Алексей Козин

79401709

Date: 2025-01-31 03:32:00
Score: 4.5
Natty:
Report link

Partition functionality does not exist.

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

79401707

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

An alternative is to run

poetry run jupyter lab

And use existing jupyter server option in vscode.

Select existing jupyter environment in options for kernel selection

Enter the copied url along with the token

Create an alias

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

79401706

Date: 2025-01-31 03:29:59
Score: 2.5
Natty:
Report link

It's like losing a piece of your online existence when your account is disabled. All of your saved memories, social connections, and amusing cat videos vanished in an instant. But don't freak out! Here's a simple method to restore your account's functionality. Marie, a tech specialist and member of the Meta staff, can help. You can reach her at [email protected].

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

79401697

Date: 2025-01-31 03:20:55
Score: 6.5 🚩
Natty:
Report link

Did you get the above resolved , i am also trying to use the same scenario managed apache flink to documentdb

Reasons:
  • RegEx Blacklisted phrase (3): Did you get the
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: vijayalakshmi chanumolu

79401696

Date: 2025-01-31 03:20:55
Score: 1
Natty:
Report link
  1. Preventing Repeated Includes (Header Guards) When a header file is included multiple times, it can cause redefinition errors. To prevent this, header guards are used:

#ifndef MY_HEADER_H // Check if MY_HEADER_H is not defined #define MY_HEADER_H // Define MY_HEADER_H 2. Preventing Code Duplication in the Preprocessed Output When you copy or include a file multiple times in a program, the preprocessor simply expands the file contents. To avoid multiple definitions:

Use header guards or #pragma once in headers. Declare functions in headers (.h) and define them in source files (.c). Use extern for global variables to avoid duplication. #ifndef MYHEADER_H #define MYHEADER_H

The function is declared in the header but defined only once in , preventing multiple definitions.

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

79401687

Date: 2025-01-31 03:13:53
Score: 3.5
Natty:
Report link

Since you mentioned copying values. It is an option available in debug mode.

Is this what you have seen in the past?

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79401686

Date: 2025-01-31 03:12:52
Score: 4
Natty:
Report link

i cant understand your answer correctly could you please simplify

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

79401683

Date: 2025-01-31 03:11:51
Score: 7 🚩
Natty: 4
Report link

Did you ever figure this out? I'd like to get info from a live broadcast using this but I have not been able to get it to work.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Chris_NSB

79401682

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

I update to flutter version 3.27.3 and got same above error,

Resolve by update new_version_plus to new version 0.1.0

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

79401676

Date: 2025-01-31 03:06:50
Score: 1.5
Natty:
Report link

The challenge of using artificial intelligence in Python for market analysis and forecasting lies in balancing model complexity and data quality, as even with extensive tuning, randomness often persists in predictions. To refine your approach, consider leveraging advanced A.I. tools and platforms that simplify experimentation and optimization. For instance, Twix.Chat offers a free A.I. chat platform (4o) that can assist in brainstorming solutions, troubleshooting models, and exploring new strategies for improving market forecasts. Explore its capabilities at (https://twix.chat).

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

79401673

Date: 2025-01-31 03:05:49
Score: 0.5
Natty:
Report link

If the forms share state between them (strongly coupled), that could lead to code maintenance, readability and performance problems on larger projects, as well as a way for the end-user to inadvertently change the state of form A while editing form B (usually an undesired behavior in my experience). Though sometimes that might be the desired outcome such as in more complex forms. Here's a case for multiple forms which you may find useful: How should I structure my multiple forms (paginated) to be able to submit both at the same time.

If the forms merely exist side by side but have independent state variables, then you could keep them on the same component. Suppose you have a component UserProfilePage.jsx which renders the user's profile as distinct sections which you chose to implement their editing workflow with a <form> HTML tag for each section. This way you can keep each section editing as separate state variables, like when a user edits different sections of his profile page but opts to save only one of the sections (i.e. form submit).

Although I tend to lean towards the one form = one component solution, either approach may be fine depending on what you want to implement. But without more details about your project it's difficult to give a conclusive answer as to whether it'd be best to have the two forms on a single component or on separate components.

Reasons:
  • Blacklisted phrase (1): How should I
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matheus Lemos

79401671

Date: 2025-01-31 03:03:49
Score: 3
Natty:
Report link

Where is the VS Code runner looking? It would be helpful to know how you're calling it in CLI as well.

It kind of sounds to me like VS Code is considering workspace/ to be the root of the project, so the pom.xml only works correctly when it's effectively serving as the POM for workspace/.

Somehow, the IDE doesn't consider Repo 1/ as its own maven project. When you test in CLI, which directory are you calling mvn test? Are you calling it from Repo 1/?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Where is the
  • Low reputation (1):
Posted by: njsoly

79401662

Date: 2025-01-31 02:54:47
Score: 0.5
Natty:
Report link

You can configure IntelliSense to show or hide items from unimported namespaces.

Go to Tools > Options > Text Editor > C# > IntelliSense and look for the option Show items from unimported namespaces. Disabling this might help reduce the unwanted suggestions.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT

79401659

Date: 2025-01-31 02:51:46
Score: 1
Natty:
Report link

In C++26 you can just put the structured binding declaration as the condition. The test is on the whole object, precisely because of this sort of use case.

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

79401651

Date: 2025-01-31 02:37:44
Score: 1
Natty:
Report link

You can try wrapping the function, put all of the filters / actions there For example

function my_init() 
{
    add_filter("asdasd", static function() {
        echo 'asdf';
    });
}
my_init();

Then on phpunit you can declare to collect coverage from my_init

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

79401634

Date: 2025-01-31 02:12:40
Score: 1
Natty:
Report link

Assuming Java 15 or later

public static enum SortDirection { ASC, DESC };

public static Comparator<Student> nameCompare(SortDirection sortDirection)
{
    return switch (sortDirection) {
        case ASC -> Comparator.comparing(Student::getName);
        case DESC -> Comparator.comparing(Student::getName).reversed();
        case null -> throw new AssertionError(sortDirection);
    };
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ane De Jong

79401629

Date: 2025-01-31 02:02:39
Score: 1
Natty:
Report link

I suggest enhancing Kierra's answer by adding "FormTheme" to maintain A2lix tabs editing.

//...
    ->setFormType(TranslationsType::class)
    ->addFormTheme('@A2lixTranslationForm/bootstrap_5_layout.html.twig')
//...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jrk

79401627

Date: 2025-01-31 02:00:38
Score: 0.5
Natty:
Report link

I had the same problem. You probably answered no when you were promted

Would you like to install database support (installs laminas-db)? y/N

You might need to follow the installation and start again. https://docs.laminas.dev/tutorials/getting-started/skeleton-application/

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Chen

79401625

Date: 2025-01-31 01:57:38
Score: 1
Natty:
Report link

One- and two-pass assemblers may look the same at the level you describe, but the details are not the same. The symbol table in a two-pass assembler is just a list of names and values. Pass 2 does reparse but it also handles all references the same way. Runtime memory usage depends on the number of symbols in your program.

The symbol table in a one-pass assembler has to store forward references, and you have to write the algorithm to resolve them when the symbols are defined. Is that worth the benefit of only parsing the source once? Different real-world assemblers answer that differently. Also runtime memory usage depends on the number of symbols and the number of forward references in your program.

You can improve one-pass assemblers with some tricks. On many mainframes and some minicomputers, all instructions are the same size. If all instructions can hold an address and the memory can hold the entire program being assembled, a one-pass assembler can store the forward references in linked lists inside the program itself. Or the assembler can write out the binary without fixing the forward references and let the loader fix them.

One major reason for one-pass assemblers is slow I/O devices. If they're magnetic tape drives the computer has to rewind the tape between passes. If they're punched paper tape readers or punch card readers a human has to rewind the tape or reload the cards. Elliminating a pass saved significant time.

One major reason for two-pass assemblers is a sophisticated input language, especially with macros. IBM mainframes heavily used macros. They could take arguments, and could expand to specialized instruction sequences depending on the arguments. So you had to expand all the macros and assemble all the code to find the size of the output, so it was easiest to use two passes.

Some example assemblers:

(1957) SOAP II for the IBM 650 automatically changed the memory layout of the output program to speed up execution. That was possible because of the 650's instruction format, and important because of the 650's magnetic drum memory which had variable access times.

(1960) LGPSAP for the General Precision LGP-30 was a straightforward two-pass assembler, assembling directly into memory but also typing a listing. I'm not sure if you could punch a binary paper tape. Someone created a faster and more powerful one-pass assembler called SCOOP. SCOOP also assembled directly into memory and reused the LGPSAP symbol-table format. In fact the SCOOP code seems to be a patch to LGPSAP! The LGP-30 (from 1956) was not a powerful computer, but you could sit at it, type commands, and get an immediate response -- rare in the 1950s and 1960s.

(1961) SCAT for the IBM 709 had macros and used a compressed format to store assembled programs. You could update an already-assembled program with new assembly-language cards.

(1962) FAP for the IBM 709 and 7090 also had macros, unrelated to SCAT.

(1962) MACRO for the DEC PDP-1 put all the opcodes in the symbol table, so the "instruction" input really just added symbol values, or you could use other arithmetic operations. It used short symbol names and a compressed format for macro definitions, so that it could assemble itself on a computer with 4096 18-bit words of memory.

(1974) FAIL for the DEC PDP-10 had macros and many other fancy features, yet used one pass for speed. Arguments in favor of one pass (on page 12) look quite similar to yours. FAIL left all the forward references, including complicated arithmetic expressions, to the loader.

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

79401623

Date: 2025-01-31 01:56:37
Score: 1
Natty:
Report link

I figured it out: it was coming from paper format(A4) in Reporting. Adjust the Header spacing to configured the space you needed.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: SantoshKumar

79401622

Date: 2025-01-31 01:56:37
Score: 1
Natty:
Report link

Perhaps you should try to add the width and height.
For example:

.bg-image{width:100%;height:100%;}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Shang

79401616

Date: 2025-01-31 01:47:35
Score: 1.5
Natty:
Report link

Currently, Visual Studio 2022 does not provide a built-in way to set this option as the default for all future constructor generations.

I recommend that you could give feedback in Visual Studio Developer Community.

If you post feedback, you can provide a link to it here to see the progress of the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT

79401611

Date: 2025-01-31 01:38:33
Score: 1
Natty:
Report link

The solution to this was to update Gradle to the latest version. I had thought that it was updated, but apparently I was wrong. If anyone else is having this same issue, make sure both Gradle and the Gradle wrapper are up to date by running the following command twice: ./gradlew wrapper --gradle-version latest

Find more information here: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:upgrading_wrapper

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

79401610

Date: 2025-01-31 01:37:33
Score: 1
Natty:
Report link

I had the same. I have changed my amplifyconfiguration.json file to amplify_outputs.json and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yumer Ashak

79401607

Date: 2025-01-31 01:33:32
Score: 2
Natty:
Report link

If you want to use environmental variables in you bash (or python) script makes sure

enable_environment_macros=1

in etc/nagios/cfg

Otherwise you can pass it as an argument on the command line.

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

79401588

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

import SwiftData

@Model class UserSession { var uid: String var lastLogin: Date

init(uid: String) {
    self.uid = uid
    self.lastLogin = Date()
}

}

mport SwiftUI import SwiftData

struct ContentView: View { @Query(sort: \UserSession.lastLogin, order: .reverse) private var sessions: [UserSession]

var body: some View {
    if let lastSession = sessions.first {
        HomeView(session: lastSession)  // Auto-login if session exists
    } else {
        LoginView()  // Show login if no session found
    }
}

}

import SwiftUI import SwiftData

struct LoginView: View { @Environment(.modelContext) private var modelContext

var body: some View {
    Button("Login") {
        let uid = "123456"  // Replace with actual user ID
        let session = UserSession(uid: uid)
        modelContext.insert(session)  // Save session to SwiftData
    }
}

}

import SwiftUI import SwiftData

struct HomeView: View { let session: UserSession

var body: some View {
    VStack {
        Text("Welcome back, \(session.uid)!")
        Text("Last login: \(session.lastLogin.formatted(date: .abbreviated, time: .shortened))")
        Button("Logout") {
            // Handle logout by deleting the session
            if let modelContext = Environment(\.modelContext).wrappedValue {
                modelContext.delete(session)
            }
        }
    }
}

}

var sharedModelContainer: ModelContainer = {
    let schema = Schema([UserSession.self])
    let container = try! ModelContainer(for: schema)
    return container

}

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

79401561

Date: 2025-01-31 00:54:24
Score: 3.5
Natty:
Report link

Well, you seem to have left something out. Waaaaaaay up at the top you introduced SomethingHappened += with a curious "myObj.SomethingHappened". What is myObj? Where did myObj come from? "this." doesn't work. How typically microsoft, you almost explain it, buuuuut not quite.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Roscoe Sandstone

79401555

Date: 2025-01-31 00:48:23
Score: 1
Natty:
Report link

You can't revive a banned bot or skip the restriction if BotFather has flagged your bot as malicious. Telegram enforces these bans automatically, and you'll need to wait for the one-month block to expire. Once it's over, you're free to create or restore bots again. your only option is to contact Telegram support, but they rarely reverse these decisions. During your ban, you can still work on your bot's code offline or in a test environment, but you won't be able to register or manage it through BotFather until the restriction is lifted.

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

79401550

Date: 2025-01-31 00:44:22
Score: 1.5
Natty:
Report link

Short answer: Update your android studio.

Slightly less short answer :

https://developer.android.com/studio/releases

      Android Studio version          Required AGP version
  Ladybug Feature Drop | 2024.2.2           3.2-8.8
  Ladybug | 2024.2.1                        3.2-8.7  // notice how this version
                                                     // does not support 8.8
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yuval Roth

79401545

Date: 2025-01-31 00:38:21
Score: 1
Natty:
Report link

@BenzyNeez gave such an elegant answer, I thought I'd share a reusable view, based on Benzy's genius.

import SwiftUI

struct FancyNavTitleScrollView<TitleView: View, NavBarView: View, Content: View>: View {
    @State private var showingScrolledTitle = false
    
    let navigationTitle: String
    let titleView: () -> TitleView
    let navBarView: () -> NavBarView
    var transitionOffest: CGFloat = 30
    let content: () -> Content
    
    var body: some View {
        GeometryReader { outer in
            ScrollView {
                VStack {
                    titleView()
                        .opacity(showingScrolledTitle ? 0 : 1)
                    content()
                }
                .background {
                    scrollDetector(topInsets: outer.safeAreaInsets.top)
                }
            }
        }
        .toolbar {
            ToolbarItem(placement: .principal) {
                navBarView()
                    .opacity(showingScrolledTitle ? 1 : 0)
                    .animation(.easeInOut, value: showingScrolledTitle)
            }
        }
        .navigationTitle(navigationTitle)
        .navigationBarTitleDisplayMode(.inline)
    }
    
    private func scrollDetector(topInsets: CGFloat) -> some View {
        GeometryReader { proxy in
            let minY = proxy.frame(in: .global).minY
            let isUnderToolbar = minY - topInsets < -transitionOffest
            Color.clear
                .onChange(of: isUnderToolbar) { _, newVal in
                    showingScrolledTitle = newVal
                }
        }
    }
}


#Preview {
    NavigationStack {
        FancyNavTitleScrollView(
            navigationTitle: "Yesterday",
            titleView: {
                Text("Today")
                    .font(.custom("Chalkboard SE", size: 36))
                    .textCase(nil)
                    .bold()
            },
            navBarView: {
                Text("Today")
                    .font(.custom("Chalkboard SE", size: 16))
                    .foregroundStyle(Color.red)
            },
            content: {
                VStack {
                    ForEach(1...5, id: \.self) { val in
                        NavigationLink("List item \(val)") {
                            Text("List item \(val)")
                        }
                    }
                }
                .foregroundStyle(.indigo)
                .background(.indigo.opacity(0.1))
                .scrollContentBackground(.hidden)
                .toolbarBackground(.indigo.opacity(0.1))
                .toolbar {
                    ToolbarItem(placement: .topBarLeading) {
                        Image(systemName: "gearshape.fill")
                    }
                    ToolbarItem(placement: .topBarTrailing) {
                        Image(systemName: "calendar")
                            .padding(.trailing, 20)
                    }
                    ToolbarItem(placement: .topBarTrailing) {
                        Image(systemName: "plus.circle.fill")
                    }
                }
            }
        )
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @BenzyNeez
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: levous

79401543

Date: 2025-01-31 00:34:20
Score: 1
Natty:
Report link

it sounds like you're facing an issue where the RecyclerView works on Android 11 but not on Android 13. Here are a few things to check:

Permissions: Make sure your app has the necessary permissions for Android 13. For example, permissions for accessing storage or other resources may have changed.

API Changes: There might be changes in the Android 13 API that affect how RecyclerView behaves. Check if any deprecated methods or new requirements need to be handled differently for Android 13.

Target SDK: Verify that your targetSdkVersion in build.gradle is set properly and you're using the appropriate libraries for Android 13.

Logging: Try adding log statements to see if the RecyclerView is being populated correctly or if it's failing silently on Android 13.

Compatibility: Test the RecyclerView with a simple implementation to ensure there's no compatibility issue with newer Android versions.

Let me know if this helps!

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

79401539

Date: 2025-01-31 00:29:20
Score: 1.5
Natty:
Report link

As Ben Bolker's comment points out, this is now sometimes possible using a ZWJ sequence 🏃‍➡️ as described in https://unicode.org/reports/tr51/#Direction

(on my system, that displays as a guy running with a little right-arrow box next to him — and that's likely how it displays on your system, too! but in some systems it would display as a man running rightwards)

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

79401532

Date: 2025-01-31 00:20:18
Score: 0.5
Natty:
Report link

All credit goes to Estus on this. Here's the working Vite config for those who may encounter the same problem. When trying to load an externally built Vue component at runtime dynamically, it needs to be in ESM format:

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  plugins: [vue()],
  define: {
    'process.env': {}
  },
  publicDir: false,
  build: {
    outDir: 'dist',
    lib: {
      entry: './src/AsyncComponentName.vue',
      name: 'AsyncComponentName',
      fileName: (format) => `async-component-file.${format}.js`,
      formats: ['es'],
    },
    rollupOptions: {
      output: {
        globals: {
          vue: 'Vue',
        },
        exports: 'default',
        name: 'AsyncComponentName'
      },
    },
  },
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Wilson Revehl

79401527

Date: 2025-01-31 00:17:17
Score: 0.5
Natty:
Report link

For anyone still looking for this in Visual Studio Community 2022, it's now a 'General' setting named 'Automatic Brace Completion'. There does not seem to be any per-language setting for this feature, as I would have expected.

General Options: Automatic Brace Completion

(As Gautam Jain already wrote, but it wasn't clear to me that that answer was for VS2022 and it lacked a screenshot.)

Personally I find the feature a frustrating one, as the supplied automatic brace does not follow the formatting rules set in the C# Code Style / Formatting options (i.e. in my project, opening and closing braces each on their own line)

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

79401526

Date: 2025-01-31 00:16:17
Score: 1.5
Natty:
Report link

For me Solution was in responding to the initial message that i sent through 'Send Template' ...i think that way it somehow comfortable with sending the direct message the next time i tried...

Even if this one doesnt work , try uplaoding with a document, if you just save your text through 'convert into binary' node and load the variable into your whatsapp node , its gonna workout. hope it helps someone

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dawood

79401512

Date: 2025-01-31 00:04:15
Score: 3
Natty:
Report link

I'm interested on how did you convert Yamaha mixing fader value > Midi value? I will try to do a module on max for it, but i'm not a midi expert so if you have help for me it would be great.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: aligato

79401511

Date: 2025-01-31 00:02:14
Score: 0.5
Natty:
Report link

Used the following to correct the 1st Issue:

RULE catch.DVSRoundRobinScheduling.updateServerConnectionPool
CLASS com.nokia.tpapps.cenotificationservice.nsAlgortihm.scheduling.DVSRoundRobinScheduling
METHOD updateServerConnectionPool
BIND
  TPA_LOGGER:Logger = com.alcatel.tpapps.common.common.TPAResources.getLogger();
COMPILE
AT ENTRY
IF ($aInServerList == null || $aInServerList.size() == 0)
DO 
    $aInServerList = java.util.Arrays.asList(new Object[] {"abc", "xyz", "123"});
    TPA_LOGGER.info("[BMAN] DVSRoundRobinScheduling: updateServerConnectionPool aInServerList [" + $aInServerList + "]");
ENDRULE

and it is working.

Need answer to 2nd issue.

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

79401507

Date: 2025-01-31 00:00:13
Score: 3
Natty:
Report link

The short answer is:

rum[order(rum$I1, rum$I2, decreasing=c(TRUE,FALSE),method="radix"),]

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

79401504

Date: 2025-01-30 23:58:13
Score: 3
Natty:
Report link

Use the 409 code, that is used for conflict exceptions, so, it would give a clear idea for the API users.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Néstor Recinos

79401502

Date: 2025-01-30 23:56:12
Score: 4
Natty:
Report link

The icon is now updatded. It tooks more than 10 days. 2 days ago I updated the sitemap to change the homepage update rate from daily to weekly, I am not sure if it helped (maybe allowing more CPU time for other tasks, such as updating the icons).

Anyway that's it, if you have the same issue you can try to update the sitemap to allow more CPU time for updates, or just wait enough time.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jean-Loup

79401494

Date: 2025-01-30 23:51:11
Score: 0.5
Natty:
Report link

Try to use this command:

docker images --format '{{.Repository}}:{{.Tag}}' --filter "dangling=false" | xargs -rI {} docker pull {}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: zo0M

79401490

Date: 2025-01-30 23:49:09
Score: 4
Natty: 4.5
Report link

That was the best answer. I had been installing and uninstalling all day trying to get the path right. The pkgs folder. That's the ticket.

Question: Where do I run the pips? Same directory?

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

79401489

Date: 2025-01-30 23:48:09
Score: 0.5
Natty:
Report link

Another dataframe might facilitate subsequent operations more easily.

df_new = df_stack_exchange.dtypes.to_frame('Type').reset_index()
df_new.rename(columns={'index':'Name'}, inplace=True)
df_new

    Name    Type
0   store   object
1   worker  int64
2   boxes   int64
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ThxAlot

79401484

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

I had Rails.application.load_tasks at the top of my file, and didn't realize that it was also in spec/support/tasks.rb

Not sure why loading tasks again would cause my task to be called for each load within a spec, but removing the extra load fixed the issue for me.

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

79401483

Date: 2025-01-30 23:44:08
Score: 1
Natty:
Report link

For my application, it was simplest for me to simply apply the "?" nullable-value-type modifier to the properties of the class being used in my Data Grid, and this resolved the issue. This way, the user could enter an "empty" value for an integer - without the grid griping about it. (I have my own custom fluent validation for all of my classes).

public class Machine
{
    public string? Name { get; set; }
    public string? IPAddress { get; set; }
    public int? Port { get; set; }
}
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: TRexF14

79401468

Date: 2025-01-30 23:35:06
Score: 2
Natty:
Report link

You marked initTts as async and didn't wait for it to resolve before calling a flutterTts method in the next line. You should make the function synchronous, or simply initiate the variable as final, cause asynchrony is not allowed in initState().

Also, some error messages would help identify your error.

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

79401465

Date: 2025-01-30 23:34:06
Score: 2
Natty:
Report link

I made this script that you can use to be able to fast create/open tmux sessions

more about it here

https://github.com/soycarlo99/tmux-sessionizer

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

79401464

Date: 2025-01-30 23:33:05
Score: 2
Natty:
Report link

What about this: https://github.com/symfony/polyfill

or simply:

if (!function_exists("mb_trim"))
    {
        function mb_trim($str)
            {
                return preg_replace("/^\s+|\s+$/u", '', $str); 
            };
    };

Vote up if you agree.🤓

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: James Anderson Jr.

79401461

Date: 2025-01-30 23:28:04
Score: 4
Natty:
Report link

This issue is fixed now in 4.0.24. issues.redhat.com/browse/BYTEMAN-443

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

79401460

Date: 2025-01-30 23:28:04
Score: 1.5
Natty:
Report link

import sql from "npm:mssql";

(async () => { try { await sql.connect('Server=xxx.xxx.xxx.xxx,1433;Database=yyyyyyyyy;User Id=zz;Password=aaaaa;Encrypt=true'); const result = await sql.queryselect * from Accounts; console.log(result.recordsets); } catch (err) { console.log(Error: ${err}) } })();

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Filler text (0.5): yyyyyyyyy
  • Low reputation (1):
Posted by: kdicus

79401454

Date: 2025-01-30 23:24:02
Score: 7 🚩
Natty: 6.5
Report link

I am running into similar issues with playing videos on Jenkins running on a server. Have you resolved this issue ??

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved this issue ??
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29439457

79401450

Date: 2025-01-30 23:22:01
Score: 2
Natty:
Report link

using canlaunchurl was the cuplrit . i removed it and used launchUrl(Uri.parse(url)).onError() and it was fixed for me

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

79401441

Date: 2025-01-30 23:13:58
Score: 5
Natty:
Report link

We are getting the same error - I think it is something to do with a modernization of the sharing feature. If we switch the UI to the 'Classic Sharing' things work again. We are a GCC tenant, so not sure if that has something to do with it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rattle

79401434

Date: 2025-01-30 23:06:57
Score: 3
Natty:
Report link

My issue was that I had mydomain.io included as a redirect uri, but not mydomain.io/. So yeah.

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

79401429

Date: 2025-01-30 23:02:56
Score: 0.5
Natty:
Report link

Maybe it is something with how you set up a test client. From the first glance it looks okay. I did something similar but used a postgres database for testing.

# a single method to create app for both testing and running
def create_app():
   app = Flask(
        __name__,
   )
   app.config.from_object(config_class)
   db.init_app(app) # <- this db is the same which you are using in the main app
   Migrate(app, db)

   # register endpoints
   # app.register_blueprint(some_blp)

   return app


@pytest.fixture(scope="session")
def app():
    test_app = construct_app(app)

    with test_app.test_client() as cl:
        with test_app.app_context():
            db.create_all()
        yield cl
        with test_app.app_context():
            db.session.commit()
            db.drop_all()

This setup should work.

You can check my pet project (repo) which I did in the past where I also wrote tests. It was one of the first projects I had written on flask so there things I would do differently.

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

79401426

Date: 2025-01-30 23:01:56
Score: 2
Natty:
Report link

As mentioned in the comments, it's hard to know for sure what's happening based on the partial script. However, I can explain why a console.log statement might change the script behavior.

Behind the scenes, Office Scripts is trying to batch read/write operations. This reduces the number of calls to the workbook (particularly important when using Excel on the web). However, if your script needs the data being read, the batch runs with whatever it has at that point - synchronizing the local client and the workbook. console.log statements always force a sync.

The exact batching mechanics are intentionally obfuscated, but the article Improve the performance of your Office Scripts talks about this behavior from a performance perspective. Might provide some insight.

It's possible you've uncovered a bug in Office Scripts. Iterating over a filtered map might not be syncing the data correctly (and the log statement is forcing the sync at a different time). If that's the case, please send feedback through the in-client help.

Reasons:
  • RegEx Blacklisted phrase (2.5): please send
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Jerabek

79401416

Date: 2025-01-30 22:55:54
Score: 1
Natty:
Report link

In my experience, setting the value can be tricky, as it is a variant. For example, when KeyValue has been set to a string value then you want set it to a numeric value, you first have to call the Clear() method to clear the variant type, then set it to new value (can be string or numeric). The same is true if it was set to a numeric value and you want to set it to a string. If KeyValue has been cleared without having been set to a valid value, the control may throw an exception when you attempt to manipulate the combobox value (via mouse or keyboard).

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

79401412

Date: 2025-01-30 22:54:54
Score: 0.5
Natty:
Report link

@zeiteisen code is still working on iOS18, but crashes on NSString(utf8String: response) when response is nil, for examples in Shortcuts scripts. Update:

extension UIInputViewController {
    func getHostBundleId() -> String? {
        if let id = hostBundleIdValueBefore16 { id } else { hostBundleIdValueFor16 }
    }
    
    private var hostBundleIdValueBefore16: String? {
        let value = parent?.value(forKey: "_hostBundleID") as? String
        return value != "<null>" ? value : nil
    }
    
    private var hostBundleIdValueFor16: String? {
        guard let pid = parent?.value(forKey: "_hostPID") else { return nil }
        let selector = NSSelectorFromString("defaultService")
        guard let anyClass: AnyObject = NSClassFromString("PKService"),
              let pkService = anyClass as? NSObjectProtocol,
              pkService.responds(to: selector),
              let serverInis = pkService.perform(selector).takeUnretainedValue() as? NSObjectProtocol
        else {
            return nil
        }
        let lities = serverInis.perform(NSSelectorFromString("personalities")).takeUnretainedValue()
        let bundleId = Bundle.main.bundleIdentifier ?? ""
        guard let infos = lities.object(forKey: bundleId) as? AnyObject,
              let info = infos.object(forKey: pid) as? AnyObject,
              let con = info.perform(NSSelectorFromString("connection")).takeUnretainedValue() as? NSObjectProtocol
        else {
            return nil
        }
        let xpcCon = con.perform(NSSelectorFromString("_xpcConnection")).takeUnretainedValue()
        let handle = dlopen("/usr/lib/libc.dylib", RTLD_NOW)
        let sym = dlsym(handle, "xpc_connection_copy_bundle_id")
        typealias XpcFunc = @convention(c) (AnyObject) -> UnsafePointer<CChar>?
        let cFunc = unsafeBitCast(sym, to: XpcFunc.self)
        if let response = cFunc(xpcCon) {
            let hostBundleId = NSString(utf8String: response)
            return hostBundleId as String?
        }
        return nil
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @zeiteisen
  • Low reputation (1):
Posted by: Sim

79401410

Date: 2025-01-30 22:53:54
Score: 3
Natty:
Report link

A lot of school laptops (if that's what your using) have a javascript blocker on it that I have not found a way around yet but I will keep you posted on it. [email protected]

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

79401409

Date: 2025-01-30 22:51:53
Score: 3.5
Natty:
Report link

I added the column NEWID() as ID to the view. Then in Visual Studio, in the model, I right-clicked to make ID the Entity Key.

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

79401404

Date: 2025-01-30 22:47:52
Score: 1.5
Natty:
Report link

Go to the commit (not the issue) and add a comment referencing the issue by number (#xxx), and the issue will now show the usual link to the commit.

In the commit comment:

enter image description here

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

79401403

Date: 2025-01-30 22:47:52
Score: 1.5
Natty:
Report link

I have done something similar, You can use get the access token from Okta and user the Salesforce token exchange handler oauth2 flow to exchange the okta token with Salesforce token and then access the resources. refer to my video below https://youtu.be/1nbIScI2E74

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anand Narang

79401397

Date: 2025-01-30 22:43:51
Score: 4.5
Natty: 5
Report link

a mi m sirvió, pero usando la función de store:

mail.store(correo_id, '+X-GM-LABELS', '\Trash')

Saludos

Reasons:
  • Blacklisted phrase (1.5): Saludos
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Karla

79401390

Date: 2025-01-30 22:40:50
Score: 0.5
Natty:
Report link

You might want to use the [xml] type.

# Cast the xml string into [xml] type
[xml]$xml = @"
<?xml version="1.0" encoding="utf-8"?>
<Book>
  <projects>
    <project name="Book1" date="2009-01-20">
      <editions>
        <edition language="English">En.Book1.com</edition>
        <edition language="German">Ge.Book1.Com</edition>
        <edition language="French">Fr.Book1.com</edition>
        <edition language="Polish">Pl.Book1.com</edition>
      </editions>
   </project>
  </projects>
</Book>
"@

$xml.SelectNodes("//edition")

Outputs

language #text
-------- -----
English  En.Book1.com
German   Ge.Book1.Com
French   Fr.Book1.com
Polish   Pl.Book1.com

And for your case specifically,

$Xml.SelectNodes("//edition")."#text"

Returns

En.Book1.com
Ge.Book1.Com
Fr.Book1.com
Pl.Book1.com
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Helper

79401389

Date: 2025-01-30 22:39:50
Score: 3
Natty:
Report link

I am sorry to disturb this already answer, but has anybody found a better way to do this? there probably is some better way to do this, if the user class field exists at all, but I can't find a better answer for now either. thanks to the super smart person, who knows and will help : )

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Stilian Matev

79401386

Date: 2025-01-30 22:39:50
Score: 1
Natty:
Report link

Oh well, this works:

for key, value in response.results.items():
    print(f"Key: {key}")
    print(f"Total Billed Duration: {value.metadata.total_billed_duration.seconds} seconds")
    print(f"SRT Format URI: {value.cloud_storage_result.srt_format_uri}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kris

79401381

Date: 2025-01-30 22:35:49
Score: 1.5
Natty:
Report link

I have solved the problem by simply exporting the PDF again and embedding the fonts via this option in Word: https://docs.prospect365.com/en/articles/5642928-embedding-fonts-in-word-documents-for-pdfs

Reasons:
  • Whitelisted phrase (-2): I have solved
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonas

79401373

Date: 2025-01-30 22:30:48
Score: 1
Natty:
Report link

You can set the message type to "system":

message = {
    "text": f"Today's reading: {passage_reference}",
    "isGroupPlanPassage": True,
    "passageReference": passage_reference,
    "passageData": {
        "planId": plan_data.get("groupPlanID"),
        "passageNumber": current_passage_number
    },
    "user": {
        "id": system_user_id,
        "name": app_name,
        "image": image_url},
    "type": "system"
}

You should be able to make it look different based on this and all the user info you pass through should be attached to the message.

https://getstream.io/chat/docs/python/silent_messages/

If you're using the react sdk on the front-end you should read this to customize it: https://getstream.io/chat/docs/sdk/react/guides/customization/system_message/

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

79401368

Date: 2025-01-30 22:25:47
Score: 0.5
Natty:
Report link

Inspired by this post, the following code in the profile of PowerShell v7.5.0 worked like a charm:

    # A workaround for the issue  https://github.com/PowerShell/PowerShell/issues/24869
    function Invoke-CleanConda {
        $Env:_CE_M = $Env:_CE_CONDA = $null # need to be cleared each time before calling conda command
        Invoke-Conda @args # pass all the arguments to the conda command
    }
    Write-Output "`n"
    Write-Output "**********************************************************************"
    Write-Output "* HACK: Remove the default conda alias                               *"
    Write-Output "* and define a new command Invoke-CleanConda() as workaround.        *"
    Write-Output "**********************************************************************"
    Write-Output "`n"
    Remove-Alias conda # remove the default conda alias
    Invoke-CleanConda env list

Instead of calling conda [options], just call alll conda command with Invoke-CleanConda [options] such as

    Invoke-CleanConda activate base
    Invoke-CleanConda env list

Of course, it would be better to fix the PS init issue on the Conda side. Also added here https://github.com/PowerShell/PowerShell/issues/24869#issuecomment-2625708821

Reasons:
  • Blacklisted phrase (1): worked like a charm
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ting Li

79401363

Date: 2025-01-30 22:24:47
Score: 1
Natty:
Report link

The original cause was ConfigurationBuilder reloadOnChange functionality. The last boolean on this method indicates that reloadOnChange is active.

var baseBuilder = new ConfigurationBuilder().AddJsonFile(path, false, true).Build();

Even though the configuration builder gets cleaned up by garbage collection, the reloadOnChange had created a file handle that never got removed by garbage colleciton.

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

79401358

Date: 2025-01-30 22:22:47
Score: 1.5
Natty:
Report link

Because when creating Kubernetes' new cluster, it has initial namespaces that help different projects, teams, or customers to share its Kubernetes cluster. The namespace for objects created by the Kubernetes system is called ‘kube-system’ which part of this core component is ‘kube-apiserver’ that exposes the Kubernetes HTTP API. Also, subdividing cluster namespaces, by default it will instantiate a ‘default’ namespace when provisioning the cluster to hold the default set of Pods, Services, and Deployments used by the cluster.

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