79286702

Date: 2024-12-17 04:36:16
Score: 11.5 🚩
Natty: 5.5
Report link

Did you find the solution, I am having the exact same issue?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the exact same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find the solution
  • Low reputation (1):
Posted by: Zoom Work

79286695

Date: 2024-12-17 04:33:15
Score: 2.5
Natty:
Report link

If your calculation is referring to the circumference, the formula is incorrect. It should be 2 * math.pi * radius instead of 2 * math.pi * radius**2. Also, make sure to check the variable scope; the variables x and y should be calculated inside the loop after the radius is validated.

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

79286692

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

for gradle.kts, you can make this:

defaultConfig {
    //....
    versionName = "1.0.0"
    base.archivesName = "your_app_name - $versionName"
}

Output File Name like this -> "your_app_name-1.0.0-release.apk"

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyễn Kim Khánh

79286685

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

I was getting this error due to the server's disk being full. Nginx logs confirmed that no space was remaining on the device. Drive cleanup solved the problem!

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

79286675

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

Decompiling an APK into an Android Studio project involves these steps and should only be done if you have the legal rights:

  1. Extract APK Contents Rename filename.apk to filename.zip and extract it to access its files (res folder, AndroidManifest.xml, etc.).

  2. Convert DEX to Java Use tools like JADX or APKTool to convert .dex files to Java source code. For example, with APKTool:

bash Copy code apktool d filename.apk -o output_folder 3. Decode Resources Extract and decode resources like XML layouts using APKTool. This gives you readable versions of res and AndroidManifest.xml.

  1. Reconstruct in Android Studio Create a new Android Studio project, import the res folder, Java code, and AndroidManifest.xml. Resolve missing dependencies and libraries as needed.

  2. Debug and Test Run the project in Android Studio to verify its functionality.

For exploring APKs like Terabox MOD APK ensure responsible use and visit the link for safe downloads and more details.

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

79286668

Date: 2024-12-17 04:08:10
Score: 2.5
Natty:
Report link

have you tried to change you port number of node js application

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mohammed Shahil T

79286665

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

You can write like this now.

func Reverse[M ~map[K]V, K comparable, V comparable](m M) map[V]K {
    r := make(map[V]K, len(m))
    for k, v := range m {
        r[v] = k
    }
    return r
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MaterialDesignOne

79286662

Date: 2024-12-17 04:03:09
Score: 1
Natty:
Report link

Xerox Network Accounting (JBA) C70 allows businesses to track and manage printing costs effectively across their network. By assigning accounting users, businesses can allocate print jobs to specific departments or users, monitor usage, and manage expenses related to printing.

Here are some benefits of using Xerox Network Accounting (JBA) C70 for sending accounting users:

Cost Allocation: Easily allocate printing costs to different users or departments based on the usage of the C70 device.

Usage Monitoring: Track the number of prints, copies, or scans made by each accounting user.

Reporting: Generate detailed usage and cost reports to analyze printing habits and control costs.

Access Control: Set up user permissions and restrict access to certain features, ensuring only authorized users can send print jobs.

Accounting Integration: Sync print data with your accounting system to streamline financial tracking.

For more information and tailored solutions, visit synkli.com.au.

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

79286657

Date: 2024-12-17 04:01:08
Score: 0.5
Natty:
Report link

If you would like to keep it simple, simply add two files to the dist folder (on server)

App.js

import("./dist/your-project-name/server/server.mjs");

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <add name="iisnode" path="app.js" verb="*" modules="iisnode" />
        </handlers>
        <rewrite>
            <rules>
                <rule name="DynamicContent">
                    <match url="/*" />
                    <action type="Rewrite" url="app.js"/>
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: zmark

79286656

Date: 2024-12-17 04:01:08
Score: 3.5
Natty:
Report link

This might be helpful. Search for "max_execution_time" in this doc. https://dev.mysql.com/doc/refman/8.0/en/optimizer-hints.html#optimizer-hints-execution-time

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

79286646

Date: 2024-12-17 03:56:07
Score: 4
Natty: 4
Report link

Paapi5 does not have product descriptions, the only way is to scrape from web.

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

79286634

Date: 2024-12-17 03:48:05
Score: 2
Natty:
Report link

Update RabbitMQ version 4.0 and Erlang OTP 27.

  1. You can't install self certificate (I build RabbitMQ Server in VM)
  2. If your certificate created by manually, you must install certificate in your client

Before use wss://192.168.111.131:15671/ws, You can testing websocket https://192.168.111.131:15671/ws

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

79286627

Date: 2024-12-17 03:42:04
Score: 1.5
Natty:
Report link

If you are using EAS, you can upload different versions of the google-services.json file for development, preview and production in the EAS Environment Variables.

The Expo docs show this example of different values for APP_VARIANT: https://docs.expo.dev/eas/using-environment-variables/#create-environment-variables

list of env vars in Expo website

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

79286616

Date: 2024-12-17 03:33:02
Score: 3
Natty:
Report link

I successfully resolved the issue, which stemmed from the HTTP proxy. The default library I initially used with Axios to configure the HTTP proxy was ineffective, prompting me to utilize the 'http-fix-proxy' library to address the error.

Thank you for all the contributors.

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

79286615

Date: 2024-12-17 03:33:02
Score: 0.5
Natty:
Report link

To fix this, you can remove the position: relative from #top-menu > li
From this code:

    #top-menu > li {
        position: relative; /* remove this line */
        padding: 10px;
        cursor: pointer;
    }

To this code:

    #top-menu > li {
        padding: 10px;
        cursor: pointer;
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: khalid obaidi

79286602

Date: 2024-12-17 03:21:00
Score: 4
Natty:
Report link

I think the element with id login-signup has not successfully bound the event. Does it have anything to do with the incomplete js you provided?

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

79286601

Date: 2024-12-17 03:21:00
Score: 1
Natty:
Report link

If you are running into this issue in vscode...

Open the cmd palette (cmd+Shift+P on mac) type TypeScript: Select TypeScript Version Ensure the version of Typescript selected is the same as in your package.json

Hope this will save someone some time!

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

79286594

Date: 2024-12-17 03:14:59
Score: 0.5
Natty:
Report link

I was confused by the overload definition. If the input is Record type, the key of the output is always string.

From source:

  /*
   * NOTE: when the `input` value is a simple Record<K, V> object, the keys are extracted with
   * Object.keys(). This means that even if the `input` type is Record<number, V> the keys are
   * compared/returned as `string`s.
   */
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: imcoding

79286582

Date: 2024-12-17 03:04:57
Score: 0.5
Natty:
Report link

On Ubuntu, what is available is rename.ul.

rename.ul 'test-this' 'REPLACESTRING'  REPLACESTRING* 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Youjun Hu

79286575

Date: 2024-12-17 03:01:56
Score: 1.5
Natty:
Report link

If you are looking for open source solutions, your options can be, not limited to, Ghostscript (to convert pdf page to image), Tesseract or PaddleOCR (to run OCR on the image). All can be installed on Windows, and be invoked from python script.

If you want to save effort to write python script, you can try PdfOCRer available in GitHub, which takes a PDF (possibly non-searchable), process it and output a searchable PDF.

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

79286565

Date: 2024-12-17 02:53:54
Score: 5.5
Natty: 5
Report link

is Your system Windows? Not supported yet.

https://github.com/milvus-io/milvus-lite/blob/main/README.md

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Kerry Jin

79286563

Date: 2024-12-17 02:51:54
Score: 0.5
Natty:
Report link

window_manager can help you develop desktop gadgets for Windows.

# pubspec.yaml
dependencies:
  window_manager: ^last_version
// lib/main.dart

import 'package:flutter/material.dart';
import 'package:window_manager/window_manager.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await windowManager.ensureInitialized();

  WindowOptions windowOptions = WindowOptions(
    size: Size(800, 600),
    center: true,
    alwaysOnTop: true,
    titleBarStyle: TitleBarStyle.hidden,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.hidden,
    skipTaskbar: true,
  );

  windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.show();
    await windowManager.focus();
    // await windowManager.setAsFrameless(); // border
    // await windowManager.setHasShadow(true); // shadow
  });

  runApp(MyApp());
}

You may also need system_tray to make the Windows system tray.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can help you
  • Low reputation (1):
Posted by: 0x1af2aec8f957

79286561

Date: 2024-12-17 02:49:53
Score: 5.5
Natty: 4.5
Report link

This answer was very helpful. Does anyone have any idea why it's working like this? I tried specifying a number for the first day of week parameter and it never changed anything.

Only this solution would work but I'm not sure why. The weekday name is correct when run locally and on a native mode server, but is incorrect when running on a powerbi service unless I use the FirstDayOfWeek.System suggestion. Thanks again

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Does anyone have any idea
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: fred

79286552

Date: 2024-12-17 02:43:52
Score: 3.5
Natty:
Report link

order and order's items is collection schema ?

{
  "orderId": "..."
  "items":[...]
}

or order collection and item collection two collection ?

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

79286549

Date: 2024-12-17 02:39:51
Score: 4
Natty:
Report link

This is the previous period's colours and number can you analyze them and predict what the next colour might be ? Based on your experience and strategy let me know the likely outcome.enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Divas Bargali Deepak

79286547

Date: 2024-12-17 02:38:50
Score: 3
Natty:
Report link

In this case, could you please reach out to our KingswaySoft Technical Support team at www.kingswaysoft.com/about-us/contact-us, so we can have a closer look at this behavior. You may provide the full error message as text, as well as the current configuration you have within the General Page of the component causing the behavior, so our team can examine it more closely. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Contains signature (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: KingswaySoft

79286545

Date: 2024-12-17 02:37:50
Score: 0.5
Natty:
Report link

This is my code, where WWidget inherits from QWidget:

typedef QRgb COLOR;
void
WWidget::Widget_UpdateColorBackground(COLOR coBackground)
    {
    QPalette oPalette(palette());   // Make a copy of the current palette
    oPalette.setColor(QPalette::Base, coBackground);
    setPalette(oPalette);
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daniel

79286544

Date: 2024-12-17 02:37:50
Score: 0.5
Natty:
Report link

MongoDB is not an RDBMS database so you can't add a datasource using RDBMS type. Only option is to use custom datasource. For that you can use the implementation as in [1] and copy the jar to the MI_HOME/lib folder. You can see sample datasource configurations from [2]

[1] https://github.com/wso2-attic/wso2-dss-connectors/blob/master/mongodb/src/main/java/org/wso2/dss/connectors/mongodb/MongoDBDataSource.java

[2] https://github.com/wso2/product-ei/blob/master/distribution/src/conf/custom-datasources.xml

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

79286538

Date: 2024-12-17 02:34:49
Score: 1.5
Natty:
Report link

To fix errors , add a -keep line in the Android Project proguard-rules.pro file. And then Sync Now:

-keep class com.tencent.** { *; }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: marky vincent

79286531

Date: 2024-12-17 02:30:48
Score: 1.5
Natty:
Report link

In package settings, under Danger Zone, you will get an option to set the visibility of a package.

Github Package Visibility Setting

Note: Once you make a package public, you cannot make it private again.

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

79286521

Date: 2024-12-17 02:18:46
Score: 0.5
Natty:
Report link

help me dubug this code at With outputSheet.ListObjects.Add..

Sub AutomatePowerQueryWithMCode() Dim wb As Workbook Dim pqQuery As WorkbookQuery Dim mCode As String Dim outputSheet As Worksheet Dim tblName As String

' Set workbook and output details
Set wb = ThisWorkbook
Set outputSheet = wb.Sheets("TransformedData") ' Change to your desired output sheet
tblName = "TransformedTable" ' Desired output table name

' Power Query M code
mCode = _
    "let" & vbCrLf & _
    "    Source = Excel.Workbook(File.Contents(""/Users/deepankarrijal/Downloads/Excel Work/PR 2024.11.27 Ready to post.xlsm""), null, true)," & vbCrLf & _
    "    #""Navigation 1"" = Source{[Item = ""Summary"", Kind = ""Sheet""]}[Data]," & vbCrLf & _
    "    #""Changed column type"" = Table.TransformColumnTypes(#""Navigation 1"", {{""Column4"", type text}}, ""en-US"")," & vbCrLf & _
    "    #""Removed top rows"" = Table.Skip(#""Changed column type"", 3)," & vbCrLf & _
    "    #""Choose columns"" = Table.SelectColumns(#""Removed top rows"", {""Column1"", ""Column2"", ""Column3"", ""Column4"", ""Column5""})," & vbCrLf & _
    "    #""Promoted headers"" = Table.PromoteHeaders(#""Choose columns"", [PromoteAllScalars = true])" & vbCrLf & _
    "in" & vbCrLf & _
    "    #""Promoted headers"""

' Add or update the Power Query
On Error Resume Next
Set pqQuery = wb.Queries("MyQuery")
If pqQuery Is Nothing Then
    Set pqQuery = wb.Queries.Add("MyQuery", mCode)
Else
    pqQuery.Formula = mCode
End If
On Error GoTo 0

' Load the query result into the worksheet
With outputSheet.ListObjects.Add(SourceType:=xlSrcQuery, Source:="Query - MyQuery", Destination:=outputSheet.Range("A1"))
    .Name = tblName
    .TableStyle = "TableStyleLight9"
MsgBox "Power Query transformation applied successfully!", vbInformation

End Sub

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Deepankar Rijal

79286520

Date: 2024-12-17 02:18:46
Score: 3
Natty:
Report link

First of all you need to open your project in new vs code tab and then delete object(obj) folder and then first build project and press f5 .

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

79286519

Date: 2024-12-17 02:18:46
Score: 1.5
Natty:
Report link

If you are a user of the tidyverse packages, particularly dplyr you could do the following...

library(dplyr)

#Create a named vector of old names, and new names.
name_vector <- A %>% pull(col1)
names(name_vector) <- A %>% pull(col2)


rename(B, all_of(name_vector))

The tidy selection all_of() forces strictness when renaming. But depending on your exact use case and rigidity you could modify this.

Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MjStansfi

79286518

Date: 2024-12-17 02:18:46
Score: 0.5
Natty:
Report link

=ListName should work fine. Choose List in Allow dropdown box.

enter image description here

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

79286515

Date: 2024-12-17 02:14:45
Score: 4
Natty: 5
Report link

hi i found this library useful i hope it helps https://medium.com/@msdatashift/ipysigma-easily-visualize-networks-with-thousands-of-nodes-and-edges-in-python-3ecdbe0321de

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1): hope it helps
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hello

79286514

Date: 2024-12-17 02:14:44
Score: 1.5
Natty:
Report link

You used the -n 1 parameter, which indicates using database number 1. Redis has 16 databases by default, numbered from 0 to 15. If you want to use the first database, it might be -n 0 instead of -n 1. Please check if your data is stored in database number 1.

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

79286505

Date: 2024-12-17 02:02:42
Score: 1.5
Natty:
Report link

Thanks to @siggemannen I was able to solve the problem. Seeing the error made me think about whether a connection was assigned and I inspected other people's code and realized that when creating a PreparedStatement I needed to pass in the ConnectionPool object from mssql's connect function.

So I made these changes.

// db.js
var pool;

sql.connect(dbConfig).then(result => result = pool).catch(err => {
  console.error("Connection issue: " + err)
  console.error(err.stack)
})

module.exports = { pool, ...}

Then in the file where I needed to use the PreparedStatement

const { pool } = require("db");

// ... code

router.get('/debtors/', async (req, res) => {
  const column = req.query.column
  const ps = new sql.PreparedStatement(pool) // <--- This is the important part
  ps.input('param', sql.VarChar(200))
  ps.prepare('select * from debtor WHERE first = @param', err => {
    console.log("ps.prepare err: " + err)

    ps.execute({ param: column }, (err, result) => {
      console.log("ps.execute: " + err);

      res.send(result.recordset);
      
      ps.unprepare(err => {
      })
    })
  })
})

The problem was that since I assumed that the callback activated it meant that there was no error. Turns out the callback activates regardless of whether there is an error or not, and to check if there is an error. I need to check if err !== undefined if it isn't undefined then there's an error message in there.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @siggemannen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: YJH16120

79286502

Date: 2024-12-17 02:00:42
Score: 2
Natty:
Report link

Do list blobs with a name starts with. Then loop through the blob list using asyncio for the downloading portion.

https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-download-python#download-blobs-asynchronously

If it's still too slow for your liking, you need to either think about how you're managing the blob paths... maybe do a folder for each month/year? Or manage using blob tags? Then go back and do the above. asyncio should speed things up nicely.

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

79286481

Date: 2024-12-17 01:50:39
Score: 3
Natty:
Report link

This is a very common and good question for flask beginners, I think the correct answer is here

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

79286480

Date: 2024-12-17 01:50:39
Score: 2.5
Natty:
Report link

Does something like this do the trick?

df['High time'] = [window.to_list().index(max(window.to_list())) for window in df['Bid'].rolling(price_frame)]

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

79286477

Date: 2024-12-17 01:47:38
Score: 3
Natty:
Report link

Check if each name in your file starts with a special, invisible character. You can also provide us with the content of the file so we can replicate.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Francisco Ríos

79286474

Date: 2024-12-17 01:42:37
Score: 2
Natty:
Report link

I found that if the app is in a not running or inactive state, and no audio configuration is done in the CallKit ProviderDelegate, CallKit will not go through didActive, and the microphone and audio of the webView can function normally. However, when the app is in an active state, after CallKit connects, it will go through didActive, which causes the webView's microphone and audio output to stop functioning properly.

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

79286471

Date: 2024-12-17 01:41:37
Score: 3
Natty:
Report link

I am seeing the same thing after upgrading Ollama. I just opened an issue here https://github.com/langchain-ai/langchain/issues/28753. For now it should work if you downgrade your version of ollama.

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

79286463

Date: 2024-12-17 01:35:35
Score: 1.5
Natty:
Report link

Works perfectly! I removed the extra \.

my $ref = %date2solveInfo{ $weekDate}->{ $dow};

DB<2> x $ref
0  HASH(0x7f8f7e84a320)
   'secs' => 2272

DB<3> p $ref->{"secs"}
2272

DB<4> $ref->{"a"} = 16

DB<5> x $ref
0  HASH(0x7f8f7e84a320)
   'a' => 16
   'secs' => 2272

This allows me to create to key-values as I desire (dummy example with key “a” shown).

Thanks!!

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

79286461

Date: 2024-12-17 01:33:35
Score: 1.5
Natty:
Report link

I have several 38-pin boards from various vendors. However, the OP's description of

The LED does flash on and off every time I enter a command into REPL.

seems to be very different from that in my boards.

I doubt the LED is connected to the GPIO (e.g. IO2). It may be connected to the USB-UART chip. In this case, one cannot control it from GPIO pins.

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

79286457

Date: 2024-12-17 01:26:34
Score: 2
Natty:
Report link

By repeatedly running Path.glob() I can see that ordering is consistent on the Same OS, however I get ordered results on windows and disordered results on Linux.

As "a-guest" points out, Path.glob() uses os.scandir() under the hood, which does produce OS dependent results.

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

79286454

Date: 2024-12-17 01:21:33
Score: 0.5
Natty:
Report link

This commit in spring-framework from Feb 2024 introduced a new way to escape the colon character.

To escape a property such as

@Value("${sm://my-secret}")

You now must use

@Value("${sm\\://my-secret}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Diego Marquez

79286442

Date: 2024-12-17 01:11:30
Score: 0.5
Natty:
Report link

I came upon this question which was similar to something I was trying to do, the only difference is that I needed some of the variables for my f-string evaluated early and then defer other f-string variables to be determined later.

So to borrow from the original example, here's how I pulled it off:

from datetime import date
now = date.today()
names = ["foo", "bar"]

# double bracket allows `name` to be evaluated by the next format() call
template_a = f"The current name is {{name}} and the current date is {now}."

for name in names:
    print (template_a.format(name=name))
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rsouthwi

79286440

Date: 2024-12-17 01:04:29
Score: 0.5
Natty:
Report link
public static bool SequenceEqual(byte[] first, byte[] second)
{
    if (first is null && second is null) return true;
    if (first is null || second is null) return false;

    return MemoryExtensions.SequenceEqual<byte>(first, second);
}

The Span solution proposed by @Joe Amenta above is very good. However it is not correct if either array can be null. My implementation handles nulls. For those curious why the other answer doesn't work with nulls... When casting a null byte[] to a Span, it results in a zero-length span. Therefore null and zero-length arrays both result in a zero-length span which will evaluate as equal even though the source arrays are not equal.

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

79286439

Date: 2024-12-17 01:03:29
Score: 0.5
Natty:
Report link

How I solved my error:

  1. Installed the most recent version of cuda toolkit.
  2. Installed the nightly version of pytorch (CAREFUL: the nightly build might contain bugs and cause undesired behavior).
Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): How I solve
  • Low reputation (0.5):
Posted by: John Carter

79286437

Date: 2024-12-17 01:03:29
Score: 0.5
Natty:
Report link

I found a "solution" to my issue. It does not do exactly what I wanted, but it is close enough.

First, I made a subfunction (so I could use it for any other function I need down the line) that just finds the address (relative cell reference) of whatever cell is input.

func_ref_cell_relative = LAMBDA(input_cell, ADDRESS(ROW(input_cell), COLUMN(input_cell),4))

Second, I made a subfunction that outputs the letter of the column for the input cell.

func_col_from_ref = LAMBDA(input_col_letter, SUBSTITUTE(ADDRESS(1, COLUMN(input_col_letter), 4), "1", ""))

Third, I made a function that creates an array from 3 user inputs: the cell where the array starts, the first cell of data in the array's end column, and the last row of data for the array (I have a cell that outputs this number, so the user can just select this cell as the third input).

eqn_create_array_ref = LAMBDA(array_start_cell, array_end_col, array_end_row, INDIRECT(func_ref_cell_relative(array_start_cell) & ":" & func_col_from_ref(array_end_col) & array_end_row))

So, my data starts in E5 and ends in column G, and in cell C25 it says my data ends on row 1465. The user types out =eqn_create_array_ref(E5,G5,$C$25) and the function evaluates that to be INDIRECT(E5:G1465).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: CecilF

79286431

Date: 2024-12-17 00:55:26
Score: 9.5 🚩
Natty: 5.5
Report link

I'm facing the same issue, specifically for Asia region, did you had any luck with this ?

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juan Manuel

79286428

Date: 2024-12-17 00:51:25
Score: 2.5
Natty:
Report link

Just edited so target_path = "data/c/tags/item/" # Ensure forward slashes are used

now, it will match with what jar.namelist() generates

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

79286424

Date: 2024-12-17 00:46:25
Score: 1
Natty:
Report link

from

import cobra.test 
model = cobra.test.create_test_model()

change to

import cobra.io
model = cobra.io.load_model(\"iYS1720\")

from

data_dir = cobra.test.data_dir

change to

data_dir = 'C:\Users\yahan\Anaconda3\Lib\site-packages\cobra\test\data' # your path
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: absj sab

79286412

Date: 2024-12-17 00:36:22
Score: 4
Natty: 7
Report link

Que puedo hacer ?? He cambiado como 5 veces de móvil, también de compañías Movistar, Orange y Vodafone. En Movistar cambié de wifi varias veces, antivirus. Siempre me hackea . Es mi ex marido y se hace dueño de mis dispositivos . Viola mi intimidad porque lee todo , ve mis fotografías , en las búsquedas de internet me redirige las búsquedas. Ya no soporto más

Reasons:
  • Blacklisted phrase (1): porque
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eva Hernandez

79286409

Date: 2024-12-17 00:34:21
Score: 1
Natty:
Report link

I was running a 32-bit version of GCC while compiling. Upon compilation, the 64-bit pointer I defined was being partially cut to accommodate the 32-bit nature of the compiler.

After upgrading to a 64-bit GCC version using the UCRT64 environment provided by MSYS2 (command below), the issue was resolved.

pacman -S mingw-w64-ucrt-x86_64-gcc
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mateo del Rio Lanse

79286408

Date: 2024-12-17 00:32:20
Score: 4
Natty:
Report link

For those that will have same error as mine:

rename package-name to package_name

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have same error
  • Low reputation (0.5):
Posted by: ravenwing

79286404

Date: 2024-12-17 00:29:20
Score: 1.5
Natty:
Report link

For Supabase I managed to update the auto-increment with the following syntax:

SELECT pg_catalog.setval('schema."tableName_fieldName_seq"'::regclass, 200, true);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jonathan

79286399

Date: 2024-12-17 00:27:19
Score: 1.5
Natty:
Report link

Has been long time since question asked but...

"CIK": ticker is not the stock ticker but a 10 digit code

The CIK can be looked up at:

https://www.sec.gov/search-filings/cik-lookup 0000320193 APPLE INC

ticker = "AAPL" should be replaced with 0000320193

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

79286397

Date: 2024-12-17 00:24:18
Score: 2
Natty:
Report link

These answers all use JS, and even though this post is old it still pops up in search results, so I would like to provide an update with a pure CSS solution. You can now use the @view-transition rule to do this, without need for JavaScript.

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

79286396

Date: 2024-12-17 00:22:18
Score: 1
Natty:
Report link

Simple and Performing Solution - O(n)

$array = ["START","a","a","a","START","b","b","b","START","c","c","c"];
$res = [];
$index = 0;
foreach ($array as $val) {
    if ($val === 'START') {
        $index++;
    } else if ($index > 0) {
        $res[$index - 1][] = $val;
    }
}
var_dump($res);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Mousavi

79286386

Date: 2024-12-17 00:09:16
Score: 2.5
Natty:
Report link

You shouldn’t add another function to the script but make an if statement in your init function like if the coords of the player <500: for the right side and >0: for the left side. Hope this works!

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

79286385

Date: 2024-12-17 00:09:16
Score: 1.5
Natty:
Report link

Do not click the below "Regionerate?" link. It's for spamming. It will ask "Notification permission" in your browser. Once you click allow, it will start spamming by showing popup with various threats.

If you mistakenly permitted the notification, block the permission from the browser setting. Annoying notification will stop.

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

79286384

Date: 2024-12-17 00:08:15
Score: 1
Natty:
Report link

I had a similar problem and had to install the type declarations for Node.js.

Try npm install --save-dev @types/node

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

79286383

Date: 2024-12-17 00:08:15
Score: 1.5
Natty:
Report link

I'm posting just incase anyone had this question recently, as I have.

To change the datatype to accept something larger in Mysql, state the column name twice before implementing (in this case) the new larger datatype:

ALTER TABLE TableName 
CHANGE CurrentColumnName CurrentColumnName NewDataType;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alysia Salaneck

79286381

Date: 2024-12-17 00:04:13
Score: 4
Natty:
Report link

pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joao Gabriel

79286380

Date: 2024-12-17 00:03:12
Score: 8 🚩
Natty: 5.5
Report link

Do you have an example how to accomplish this task ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have an
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Elvis C

79286372

Date: 2024-12-16 23:58:11
Score: 2
Natty:
Report link

You can target a range that excludes row 1. This means the range you'd pass to the keepFormulas function would be from row 2 and onwards. This will preserve row 1 and let you keep your titles

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

79286368

Date: 2024-12-16 23:56:11
Score: 3
Natty:
Report link

Another way to do this is with the following code:

=IF(AND(A1=A2,A2=A3,A3=A4),A4+4,A4)

I got this idea from the following thread: Is there a way to find out the values ​of 4 cells are the same or different in MS Excel

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: EconJohn

79286366

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

In 2024 "Windows App" file ClipboardActionTransformations.xml is present but ignored. Changes should be made to nearby DefaultTransformations.xml

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

79286364

Date: 2024-12-16 23:52:10
Score: 3.5
Natty:
Report link

do you compile llama_cpp with gpu ? in the case the answer it's yes, do you export the libllama.so

llama-cpp-python not using NVIDIA GPU CUDA

https://medium.com/@piyushbatra1999/installing-llama-cpp-python-with-nvidia-gpu-acceleration-on-windows-a-short-guide-0dfac475002d i hope this help you.

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1): hope this help
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Martin G

79286362

Date: 2024-12-16 23:52:10
Score: 3.5
Natty:
Report link

The Query is doing exactly what is should be doing

as Ron pointed out 29/06/2020 is a Monday while 30/06/2020 is a Tuesday

What you're asking it to do is:

"Tell me the corresponding Monday date of the date I'll give you"

So 29/06 (Monday) 30/06 (Tuesday) 01/07 (Wednesday) 02/07 (Thursday) 03/07 (Friday) 04/07 (Saturday) 05/07 (Sunday)

Will all return 29/06/2020

So the question is rather, what do you actually want to do ?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Amir T.

79286358

Date: 2024-12-16 23:50:09
Score: 2.5
Natty:
Report link

Can u execute this queries?

SELECT * FROM v$session WHERE status = 'ACTIVE'; SELECT * FROM v$locked_object;

If not returns, please execute:

update /*+parallel(4) enable_parallel_dml */ table set column xx = NULL; commit;

Tks!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can u
  • Low reputation (0.5):
Posted by: Eduardo Cunha

79286348

Date: 2024-12-16 23:46:08
Score: 0.5
Natty:
Report link

There is now Aside, an unofficial Google library for adding type support, linting and unit testing to Apps Script using TypeScript, ESLint, Prettier, and Jest.

Note that as far as I can tell, to run tests in Jest on functions which remotely execute Google Apps APIs (even things like SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Home").getRange("A1").getValue()), you would need to:

  1. Write a test function which will run remotely and does setup, calls the function you are testing, and then outputs the result to stdout
  2. Write a Jest test which will call clasp run <test_function> (see this documentation on clasp run and this SO post on calling command line functions from node) and then write assertions against the output.
Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jimmy Li

79286344

Date: 2024-12-16 23:42:08
Score: 1.5
Natty:
Report link

git remote update --p or git remote update --prune

Is a solution.

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

79286340

Date: 2024-12-16 23:41:07
Score: 1.5
Natty:
Report link

I migrated from a bare native project and removing this line solved it for me:

NativeModules.DevSettings.setIsDebuggingRemotely(true)

It must not play nicely with Expo

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

79286337

Date: 2024-12-16 23:40:07
Score: 3
Natty:
Report link

There are literally 36 executables installed by this god forsaken installer I have no idea how to use any of them, and can't find any information. Damn you all.

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

79286336

Date: 2024-12-16 23:39:07
Score: 1
Natty:
Report link

FastCGI running concurrent processes without terminating them, so the performance will be optimized. But it has some config to avoid memory leak. If for some requests your program works fine and not facing 500 error all the times, i suggest you check the pm configuration of fastcgi:

  1. open /etc/php/7.0/fpm/pool.d/www.conf
  2. check to see if the pm is set to be dynamic. (fastcgi will handle number of processes dynamycally)
  3. check pm.max_children to be high enough. (if the max reached and requests not finished, you will face server error, because there is no other worker to handle request)
  4. if you changed the value, run sudo systemctl restart php-fpm to restart fastcgi.

Note

  1. check memory_limit of php.ini to see how much each php process will take and then by considering your RAM free space, choose the pm.max_children.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali Mousavi

79286330

Date: 2024-12-16 23:35:06
Score: 0.5
Natty:
Report link

This is what help me fix my own

const CustomToolbar = ({date, onNavigate}: ToolbarProps)  => {

    const goToBack = () => {
        onNavigate('PREV');    }

    const goToNext = () => {
        onNavigate('NEXT');
        };

    return (
        <div className='rbc-toolbar'>
            <PrimaryButton onClick={goToBack} style={{marginRight: "5px"}} text='Previous'/>
            <DefaultButton onClick={goToNext} style={{marginRight: "5px"}} text='Next' />
            <DatePicker />
        </div>
    )
}
Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frank Oppong Konadu

79286320

Date: 2024-12-16 23:29:05
Score: 0.5
Natty:
Report link

another variant (using GNU Awk 5.0.1) Handles standard ascii and dos formatted records

cat pablo.awk
{ gsub("\r",""); k[$1" "$2] = k[$1" "$2] + 1 }
END{
        for (ki in k)
                if ( k[ki] > 1 )
                        print ki
}

# running that produces
awk -f pablo.awk input
u   8574 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ticktalk

79286319

Date: 2024-12-16 23:28:05
Score: 3
Natty:
Report link

You can do that now with @view-transition. See the example which is also linked to from the before mentioned page: https://mdn.github.io/dom-examples/view-transitions/mpa/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: zıəs uɐɟəʇs

79286308

Date: 2024-12-16 23:17:03
Score: 1
Natty:
Report link

What you've done already works, if you dont have a i tag, the query will be empty and not have the class, if it exists it will check the class. But any ways, if you want to check the tag, or any other query selector, the jquery method is .is( "i" )

https://api.jquery.com/is/

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Eloi

79286301

Date: 2024-12-16 23:16:03
Score: 3
Natty:
Report link

Ah, I just realized that there is a typo. It should be cachedResponse.json(), instead of cacheResponse.json(). Silly me.

Please close this question.

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

79286288

Date: 2024-12-16 23:07:01
Score: 0.5
Natty:
Report link

Following @BenjaminW's advice I simply moved the Sphinx docs to a subfolder of the MyST docs. I managed this with github actions (doing edits upon the one generated by myst).

The key was to remove the artifact uploads from the initial workflow then replace it with some linux commands for moving everything to the _site directory and uploading the _site directory as an artifact. Namely

      - name: Copy builds to site-directory
        run: |
            mv _build/html _site
            mv docs/_build/html _site/docs
            mkdir _site/nb
            mv nb/public _site/nb/public
      - name: Upload Site Artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./_site

Here's the complete file:

# This file was created by editing the file created by `myst init --gh-pages`
name: MyST and Sphinx GitHub Pages Deploy
on:
  push:
    branches: [main]
env:
  # `BASE_URL` determines the website is served from, including CSS & JS assets
  # You may need to change this to `BASE_URL: ''`
  BASE_URL: /${{ github.event.repository.name }}

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
  group: 'pages'
  cancel-in-progress: false
jobs:
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Pages
        uses: actions/configure-pages@v3
      - uses: actions/setup-node@v4
        with:
          node-version: 18.x
      - name: Install MyST Markdown
        run: npm install -g mystmd
      - name: Build MyST HTML Assets
        run: myst build --html
      - name: Install Sphinx and Dependencies
        run: |
          pip install sphinx sphinx-autodoc2 furo myst_parser
      - name: Sphinx Build HTML
        run: |
            (cd docs && make html)
      - name: Copy builds to site-directory
        run: |
            mv _build/html _site
            mv docs/_build/html _site/docs
            mkdir _site/nb
            mv nb/public _site/nb/public
      - name: Upload Site Artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./_site
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @BenjaminW's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: brook

79286276

Date: 2024-12-16 23:00:59
Score: 0.5
Natty:
Report link

From my experience, it does not make much sense to check the Mock of an object. That way you are checking if the framework actually works instead of any functionality (as Andrew S). In short, sure you can use it but it is just redundant code (I never use it). Also, I took a look at the website that you referenced and I think the AssertNotNull is used as a poor example there.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MartinDM

79286273

Date: 2024-12-16 23:00:59
Score: 0.5
Natty:
Report link

I realized I should set the number of batch dimensions to 1. This now works:

import tensorflow as tf
V=tf.random.uniform((2,3,4),minval=0,maxval=2,dtype=tf.int32)
print(V[0,:])
W=tf.random.uniform((2,5), minval=0, maxval=4, dtype=tf.int32)
print('W=',W)
Z=tf.gather(params=W, indices=V, axis=1, batch_dims=1)
print(Z.shape)

The shape is (2,3,4), as desired. Simple in the end, but a pain to figure out!

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

79286262

Date: 2024-12-16 22:54:58
Score: 3.5
Natty:
Report link

As suggested by Murta previously, BigQuery's TRANSLATE function is very handy and allows you to do exactly what you need to. https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#translate

SELECT TRANSLATE('brasília', 'í', 'i') AS translated

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

79286257

Date: 2024-12-16 22:51:58
Score: 0.5
Natty:
Report link

RANDOM() will generate random floats and multiply it with dates across last 3 years

Fiddle

UPDATE events
SET created_at = created_at - INTERVAL '3 years' * RANDOM(); 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: samhita

79286244

Date: 2024-12-16 22:43:56
Score: 1.5
Natty:
Report link

This installation conflict could be due to development-version (installed during development/debugging) are signed differently from the Play Store version.

To resolve it:

  1. Uninstall the previously installed app version from your device
  2. Download the app again from the Play Store

This will eliminate any signature mismatches.

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

79286241

Date: 2024-12-16 22:42:56
Score: 1.5
Natty:
Report link

This should do the work

 *::after,
 *::before {
    outline: 1px solid red;
 }
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Belkacem Yahiaoui

79286235

Date: 2024-12-16 22:39:55
Score: 0.5
Natty:
Report link

I believe that this is equivalent to what you are looking for:

git checkout better_branch          # This is the branch whose commits you want to keep
git merge --strategy=ours master    # keep the content of this branch, but record a merge
git checkout master                 # You want to **lose** all changes on this branch
git merge better_branch             # fast-forward master up to the merge

See: https://stackoverflow.com/a/2763118/1290781

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: John Henry

79286213

Date: 2024-12-16 22:28:53
Score: 3
Natty:
Report link

Look at this other post, you will need to download them via ftp. https://wordpress.stackexchange.com/questions/87395/import-media-to-online-wordpress-from-local-development

OR, look for an export plugin that adds the media attachements into a zip file.

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

79286208

Date: 2024-12-16 22:26:52
Score: 0.5
Natty:
Report link

remove the limits = c(0, 360) since 0 and 360 will overlap:

library(ggplot2)

wake_loss_per_sector <- data.frame(
  sector = 1:12,
  wake_loss = c(16.48843, 17.59385, 19.19244, 27.17434, 26.13185, 10.95055,
                11.09595, 14.24783, 15.59619, 19.09893, 22.63984, 15.84240),
  angle = c(30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 0)
)

# Plot
ggplot(wake_loss_per_sector, aes(x = angle, y = wake_loss)) +
  geom_col(width = 30, fill = "skyblue", color = "black") +
  coord_polar(start = -pi / 12) +
  scale_x_continuous(
    breaks = seq(0, 330, by = 30)
  ) +
  theme_minimal() +
  labs(x = "Angle (degrees)", y = "Wake Loss", title = "Polar Plot of Wake Loss by Sector")

out

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

79286203

Date: 2024-12-16 22:24:52
Score: 2.5
Natty:
Report link

You should override:

isDense: true

and

suffixIconConstraints: const BoxConstraints(minHeight: YOUR_DESIRED_MINIMUM_HEIGHT)

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

79286188

Date: 2024-12-16 22:17:50
Score: 2.5
Natty:
Report link

The problem was in the setData function of my PandasModel. I was using values instead of iloc.

self.data_frame.iloc[index.row(), index.column()] = value

self.data_frame.values[index.row(), index.column()] = value

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

79286187

Date: 2024-12-16 22:17:50
Score: 2
Natty:
Report link

in my case, i have some dependencies missing running npm install metro metro-config metro-core --save-dev works for me

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mudasir Bilal

79286182

Date: 2024-12-16 22:13:49
Score: 1
Natty:
Report link

In my project folder that contains 89 files. I created a new file called unused.py In that file I put the following:

# Why can't I find a tool that detects this file is not used ?
# 

print("Nothing")

Vulture did not find this file.

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

79286180

Date: 2024-12-16 22:12:49
Score: 3
Natty:
Report link

For me, simply recompiling kaldi and vosk like in the Dockerfile of Vladimir link did the trick, don’t use the gpu fork branch but the main vosk.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gaël Bost

79286174

Date: 2024-12-16 22:07:47
Score: 0.5
Natty:
Report link

For everyone who's comes from Google search result and I couldn't find the answer anymore here it's

If you want to still build it as root, then disable sanity check in the file :

 meta/conf/sanity.conf 

comment this line like this:-

#INHERIT \+= "sanity"

src

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

79286167

Date: 2024-12-16 22:02:46
Score: 2
Natty:
Report link

In the end, it looks like calling load() on book works when you specify the chapter in it, as follows: const content = await book.load(item.href);

Hope that helps someone.

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Riri