79340086

Date: 2025-01-08 16:54:25
Score: 2.5
Natty:
Report link

Well it would be very difficult to tell what exactly is wrong without looking at the code.

But one thing I can tell for sure is that I am no longer using OnCreate (it gives many errors nowadays), and I am using OnPostCreate instead as it is the method that MAUI itself calls on Android for it's 'Created' event: enter image description here

More on that here: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/app-lifecycle?view=net-maui-9.0

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

79340083

Date: 2025-01-08 16:52:25
Score: 1.5
Natty:
Report link

A solution without invoking Windows specific APIs will be using pathlib.

from pathlib import Path  
Path(tempDir).resolve()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kelvin Jimenez

79340079

Date: 2025-01-08 16:51:25
Score: 1.5
Natty:
Report link

Go to the repository Setting -> Actions -> General: Scroll down to the bottom you'd see "Access", Choose "Accessible from repositories in the organization"

That did it for me. Credit:Evan

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

79340077

Date: 2025-01-08 16:49:24
Score: 2
Natty:
Report link

Tested this on Windows 11 Enterprise 24H2 January 2025 Some odd reason single-bit corruption doesn't get healed, but if you change more than one bit the repair will work. I tested with HxD and virtual hard disks.

Never saw a instance of files deleted.

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

79340060

Date: 2025-01-08 16:45:23
Score: 1.5
Natty:
Report link

You can manually create a new StyleAttributor with parchment directly:

import { Scope, StyleAttributor } from 'parchment'

const SizeStyle = new StyleAttributor('size', 'font-size', { scope: Scope.INLINE })
Quill.register(SizeStyle, true)

I got the idea from here: https://github.com/slab/quill/issues/4262#issuecomment-2231359742

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

79340058

Date: 2025-01-08 16:44:23
Score: 3
Natty:
Report link

You can also cache the category ID to reduce API calls, add error handling for reliability, and optimize performance by only updating categories when necessary.

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

79340053

Date: 2025-01-08 16:40:21
Score: 1.5
Natty:
Report link

I would recommend xcrud from xcrud.net. First of all it abstracts mysql databases creates CRUD apps withb3 simple lines.

Basically I have been able to build nice enterprise applications with minimal efforts. You concentrate more of the business logic and less of the php and myself code.

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

79340049

Date: 2025-01-08 16:39:21
Score: 1
Natty:
Report link

In nextjs, pathname is not an object

Change

const { pathname } = usePathname();

To

const pathname = usePathname();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user19259811

79340044

Date: 2025-01-08 16:38:20
Score: 3.5
Natty:
Report link

Add or update Airtable table column is possible using Web API:

Add: https://airtable.com/developers/web/api/create-field

Update: https://airtable.com/developers/web/api/update-field

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

79340043

Date: 2025-01-08 16:38:20
Score: 2.5
Natty:
Report link
/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
    config.resolve.alias.canvas = false
    config.resolve.alias.encoding = false
    return config
  },
  swcMinify: false,
}

export default nextConfig

adding swcMinify: false, help me resolve the issue https://github.com/KelvinJiang-k/pdfparse/blob/main/next.config.mjs

Reasons:
  • Blacklisted phrase (1): help me
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29111283

79340036

Date: 2025-01-08 16:34:18
Score: 12 đźš©
Natty: 5
Report link

I am also facing the same issue where it gives me endless errors and it all stems from the clarfai api have you found any solutions I feel like I am stuck in a loop hole

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (2.5): have you found any solutions I feel like I am stuck in a loop hole
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rayan Mahmoud

79340032

Date: 2025-01-08 16:33:17
Score: 1
Natty:
Report link

If you nevertheless want to use require() in a package function like I did, here is a workaround that does not trip R CMD CHECK:

do.call(require,list(x, character.only=TRUE))

where x is a character object naming the package.

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

79340030

Date: 2025-01-08 16:33:17
Score: 0.5
Natty:
Report link

I'm not sure if I understand the question right but have you tried to set the Record (= true) and RecordingStatusCallback parameters when using the Conference Participant Resource to add the participant to the conference?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: IObert

79340021

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

This worked for me:

cat("\\newpage")
Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tanner Delpier

79340019

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

I previously responded in this thread with a more elaborate answer: I want to show two accordions in a Material UI table body

Excerpt:

This is how I would solve it. This solution also works without Accordion.

https://codesandbox.io/p/sandbox/great-hopper-skft3s

Basically, you can create a whole new table within the main table.

Add all the Accordion/nested logic within a single TableCell and add colSpan to match the item length of TableHead.

Then create a new Table within the Accordion and for each TableCell match the width of the columns from the TableHead.

Play around with padding: 0 to match TableHead and the nested content

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

79340017

Date: 2025-01-08 16:28:16
Score: 1
Natty:
Report link

Instead of walking through your full time range by hops of 30 mn, you just have to hop from event to event (an event being "the start or end of a booking").

Thus you'll have a timeline of all your bookings starts and ends sorted together, with a counter that makes +1 when it encounters a start date and -1 for an end date. When the counter reaches n, go for the red flag!

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

79340016

Date: 2025-01-08 16:28:16
Score: 3
Natty:
Report link

Your module might be missing from the table vtiger_tab. Please add an entry of your new module with auto increment id into that table.

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

79340012

Date: 2025-01-08 16:27:15
Score: 1.5
Natty:
Report link

ensure the $TOKEN parameter is set in the injected ci variables. You can do it in either your project or a parent directory of the project to apply the variable more globally.

Project > Settings > CI/CD > "Variables"

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

79340006

Date: 2025-01-08 16:25:15
Score: 2.5
Natty:
Report link

Apparently, starting the call with wss proxies the request to HTTPS which doesn't work for this. I swapped it out to use ws://localhost:5002/myHub and got a successful connection!

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

79340002

Date: 2025-01-08 16:24:15
Score: 2
Natty:
Report link

Obviously right after I created this question:

How do I fix SerializationNotSupportedParentType and ThrowNotSupportedException_ConstructorContainsNullParameterNames exception in System.Text.Json?

I find this question. The answer I came up with is this:

A workaround to fix this without changing anything else is to insert the following in your WebClient project file:

<PropertyGroup>
    <_ExtraTrimmerArgs>--keep-metadata parametername</_ExtraTrimmerArgs>
</PropertyGroup>

The real issue should be fixed in https://github.com/dotnet/runtime/issues/81979

Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jesper Risager

79339998

Date: 2025-01-08 16:24:15
Score: 0.5
Natty:
Report link

I had the same "problem" and for me the suggested "ruff.lint.args" setting did not work. It seems that it has to do with formatting, so I added the following to my VSCode settings and it did the trick:

"ruff.format.args": [
  "--unfixable F401"
]

edit: typo

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mfeyx

79339986

Date: 2025-01-08 16:21:14
Score: 1.5
Natty:
Report link

You can achieve the expected behavior by setting the following parameters when creating a subscription: PaymentBehavior = "default_incomplete" ProrationBehavior = "always_invoice"

With these settings, invoices will be automatically created and charged to the default payment method when the subscription is updated.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Евгений

79339978

Date: 2025-01-08 16:18:13
Score: 2
Natty:
Report link

As I can see from your screenshots you are building for Android. If that is the case, then use

    Console.WriteLine(DebugLine);

Then check logcat for any DOTNET lines. Should look like this: enter image description here

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

79339976

Date: 2025-01-08 16:16:12
Score: 1.5
Natty:
Report link

In my case i have declared swagger @Bean in 2 different class. Once i removed from one class it resolved.

@Configuration 
@EnableSwagger2 
public class EnrollmentSecureConfig {
@Bean //------> 1st time
public Docket api() {}
}

@Configuration
@EnableSwagger2
public class EnrollmentSecureConfig {

@Bean //-----?2nd time
public Docket api() {}

}

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Bean
  • Low reputation (1):
Posted by: bhargav venkat

79339974

Date: 2025-01-08 16:15:11
Score: 1
Natty:
Report link

In jQuery you can handle dynamically loaded content like this

jQuery(document).on('click' , '.dynamic-content-class' , function(){
 // your logic here
});

replace dynamic-content-class with your class

you can add event handlers on dynamic content like that

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

79339972

Date: 2025-01-08 16:15:10
Score: 9 đźš©
Natty: 4
Report link

Sorry for necroing this one, but have you ever found a way to make this work? I've been struggling with something similar for days now.

Reasons:
  • Blacklisted phrase (1): days now
  • RegEx Blacklisted phrase (2.5): have you ever found a way to make this work
  • RegEx Blacklisted phrase (2): have you ever found
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3574085

79339966

Date: 2025-01-08 16:15:10
Score: 1
Natty:
Report link

As I understood, you can have that functionality with useFetch and useAsyncData in Nuxt js.useAsyncData is more like getServerSideProps. You can read more about them in: Nuxt Data Fetching

Nuxt also has Server Components, like in Next, but it is experimental yet: Server Components

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

79339964

Date: 2025-01-08 16:14:10
Score: 3.5
Natty:
Report link

I also wanted more than one image in a cell. I realize this is an old post, but thought I'd throw this in. Someone asked "why". I'm doing inventory for a storage unit, and would like to be able to insert images for several items in one record (one box might have 3 different items that I want to have 3 diff images displayed for clarity). I may have to move to "AirTable" app or see if jotform can do it.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29110958

79339956

Date: 2025-01-08 16:13:09
Score: 5.5
Natty: 5
Report link

I took out the s in https and it went with http and it still doesn't display how do i work with my web config im new.

Reasons:
  • Blacklisted phrase (1): how do i
  • RegEx Blacklisted phrase (1.5): im new
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28170290

79339952

Date: 2025-01-08 16:12:08
Score: 2.5
Natty:
Report link

Confirmed: Added to /opt/openproject/config/environments/production.rb

config.action_mailer.default_url_options = { host: 'myserver', port: 7000 }

after line 144.

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

79339945

Date: 2025-01-08 16:10:08
Score: 3
Natty:
Report link

In my case, I updated the log4j core dependency version and this error occurred. I just restarted the IDE and the problem disappeared

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

79339944

Date: 2025-01-08 16:10:08
Score: 3
Natty:
Report link

I gonna try this option programmatically

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Richard

79339933

Date: 2025-01-08 16:08:07
Score: 2.5
Natty:
Report link

Try modelsummary::modelsummary(models):

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: dufei

79339931

Date: 2025-01-08 16:07:07
Score: 0.5
Natty:
Report link

In my case I have closed IntelliJ, then removed rm -rf ~/.m2/repository ~/.groovy/grapes and once Intellij is opened then Invalidated Caches with all option checked. Then when I hover over @Grab, one light bulb will be shown. If you click on the light bulb, there is an option for "Grab the Artifacts".

@GrabResolver(name = "maven-repository", root = "https://artifacts.company.internal/artifactory/maven-all")
@Grapes([
        @Grab('commons-primitives:commons-primitives:1.0'),
        @Grab('org.springframework:spring-orm:5.2.8.RELEASE')
])
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Grab
  • Low reputation (0.5):
Posted by: prajitgandhi

79339930

Date: 2025-01-08 16:07:07
Score: 2.5
Natty:
Report link

You need to create a business and then each business will create tenant by setting auto_schema: true and now each tenant will have their own domain that will be used in your Frontend application

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

79339926

Date: 2025-01-08 16:06:07
Score: 0.5
Natty:
Report link

In addition to mrdinklage's input, i was finally able to create prints from a parallel process, which used the 'print' connector (and adding the part below to my current pipeline):

        String createPrintTable = "CREATE TABLE kpisPrint (" +
            "    NAME STRING," +
        "    METRIC_RATIO FLOAT," +
            ") WITH (" +
            "    'connector' = 'print')";
    tableEnv.executeSql(createPrintTable);

    String sqlQueryPrint = "INSERT INTO kpisPrint " +
        "SELECT " +
        "    NAME, " +
        "    CAST(METRIC1 / METRIC2 AS FLOAT) AS METRIC_RATIO" +
        "FROM input;";
    
    // Execute the main pipeline in a StatementSet (with printing to logs)
            tableEnv.createStatementSet()
            .addInsertSql(params.get(INSERT_QUERY))
            .addInsertSql(sqlQueryPrint)
            .execute();

I am not sure this is considered best practice, and for sure not production ready, but worked for my local debugging purposes :)

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

79339901

Date: 2025-01-08 16:01:05
Score: 1
Natty:
Report link

Regenerating any of the keys helped.

Interestingly enough I regenerated only the Key 2, while used the Key 1 for requests -- in essence, the payload did not change.

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

79339889

Date: 2025-01-08 16:00:05
Score: 3
Natty:
Report link

Network Extensions Packet Tunnel API. I Use This API To Make A VPN App, It can auto find the Http proxy services on your Wifi network and switch with A single tap. https://apps.apple.com/us/app/proxytap/id6667120510

enter image description here

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

79339865

Date: 2025-01-08 15:58:04
Score: 1
Natty:
Report link

2025 answer, not directly answering the question but can be a good solution for many.

TL;DR

  1. Use ModernBERT for up to 8k tokens (16x larger than original BERT’s 512-token limit).
  2. Chunk the text if it exceeds 8k tokens or if you must stick to an older BERT model.

BERT’s 512-token limit has historically meant you either had to truncate long text or split it into multiple 512-token chunks. However, ModernBERT (released in December 2024) now supports sequences up to 8,192 tokens, making it a drop-in replacement for long-form text without chunking.

That’s it — ModernBERT is basically BERT with a bigger window and better performance. Even for shorter text it's just a better model (backed by many benchmarks).

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

79339856

Date: 2025-01-08 15:56:04
Score: 3
Natty:
Report link

In my case, for Android Studio, I found the Github Copilot icon at the bottom right and from there I was able to log in/out to switch accounts. See the picture below.

enter image description here

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

79339846

Date: 2025-01-08 15:55:03
Score: 0.5
Natty:
Report link

I made some modifications to your command:
C:/OpenFinRVM.exe --config=file:///c:/myproject/launcher-local.json --user-data-dir=c:/openfin --disable-web-security

Ensure the path syntax is correct and replace OpenFinRVM with OpenFinRVM.exe.

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

79339845

Date: 2025-01-08 15:55:03
Score: 2
Natty:
Report link

Since poetry 2.0.0, the shell is a poetry-plugin (see shell description and installation hints github python-poetry/poetry-plugin-shell).

I had to install it with:

poetry self add poetry-plugin-shell
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thomas Welsch

79339841

Date: 2025-01-08 15:54:03
Score: 0.5
Natty:
Report link

Somewhat similar issue but I was trying to color the full line based on log levels; image

I figured out how to do it. You can find how I accomplished it here if you're interested: https://github.com/serilog/serilog-sinks-console/issues/35#issuecomment-2577943657

Reasons:
  • Whitelisted phrase (-2): I figured out
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hedgineering

79339834

Date: 2025-01-08 15:53:03
Score: 3.5
Natty:
Report link

I developed a handy iOS tool called ProxyTap, can Set Global Http Proxy https://apps.apple.com/us/app/proxytap/id6667120510

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

79339833

Date: 2025-01-08 15:53:03
Score: 1
Natty:
Report link

To register a custom location you need to pass a key to the paths array.

e.g.:

add_filter('timber/locations', function ( $paths ) {
   $paths['some_key'] = [
       $dirPath . '/views',
       //add more paths if needed
   ];

   return $paths;
});

For further details, see the Timber 2.0 Docs

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

79339813

Date: 2025-01-08 15:49:01
Score: 0.5
Natty:
Report link

I was having trouble updating my RecyclerView after scanning or importing a new PDF document. The logs were showing that the new document was being loaded, but the UI wasn't reflecting these changes. Here's a breakdown of the problems I faced and how I addressed them:

Problem:

  1. UI Not Updating After Scan/Import: The RecyclerView was not reflecting new documents after scanning or importing despite logs showing successful loading.
  2. Delayed Updates: The UI was not updating instantly, it was lagging.
  3. DiffUtil Not Called: The DiffUtil was not being called when a new document was added to the RecyclerView.

Solutions:

Code Snippet:

HomeFragment.kt

@RequiresApi(Build.VERSION_CODES.R)
    override fun onResume() {
        super.onResume()
        //Use a coroutine to import the PDFs asynchronously
        loadDocumentsWithAnimation() // Load documents with animation
        requireActivity().onBackPressedDispatcher.addCallback(
            this, true // Handle even if other fragments have higher priority
        ) {
            onBackPressed()
        }
    }

    @Deprecated("Deprecated in Java")
    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
        //Use a coroutine to import the PDFs asynchronously
        if (requestCode == PdfImportUtils.REQUEST_CODE_IMPORT_PDF && resultCode == Activity.RESULT_OK) {
            val urisToImport = if (data?.clipData != null) {
                (0 until data.clipData!!.itemCount).map {
                    data.clipData!!.getItemAt(it).uri
                }
            } else {
                listOfNotNull(data?.data)
            }
            //Use a coroutine to import the PDFs asynchronously
            uiScope.launch {
                progressIndicator.visibility = View.VISIBLE
                withContext(Dispatchers.IO){
                    val importJobs =    urisToImport.map { uri ->
                        async { PdfImportUtils.importPdfFromUri(requireContext(), uri, documentViewModel) }
                    }
                    importJobs.awaitAll()
                }
                withContext(Dispatchers.Main){
                     loadDocumentsWithAnimation() // Load documents with animation
                }
                  progressIndicator.visibility = View.GONE
            }
            try {
                analyticsManager.logEvent(eventName = "pdf_imported", params = Bundle().apply {
                    putString("file_uri", data?.data?.toString() ?: "Multiple Files")
                })
            }catch(e:Exception){
                Timber.e(e, "Exception in pdf_imported:")
            }
        } else {
            try {
                analyticsManager.logEvent(eventName = "pdf_import_failed", params = Bundle().apply {
                    putInt("request_code",requestCode)
                    putInt("result_code", resultCode)
                })
            }catch(e: Exception){
                Timber.e(e,"Exception in pdf_import_failed:")
            }
        }
    }

MainActivity.kt

   private fun Context.savePdfToAppStorage(pdfUri: Uri) {
        try {
            // Get the directory for app's files
            val appFilesDir = filesDir

            // Find the next available filename with auto-increment
            val newFileName = createUniqueFileInDirectory(appFilesDir)
            // Create the output file path
            val outputFile = File(appFilesDir, newFileName)

            val inputStream = contentResolver.openInputStream(pdfUri) ?: return
            val outputStream = FileOutputStream(outputFile)
            inputStream.copyTo(outputStream)
            Timber.d("PDF saved successfully to: $outputFile")
            Toast.makeText(this, "PDF saved as: $newFileName", Toast.LENGTH_SHORT).show()
            uiScope.launch{
                documentViewModel.refreshDocuments(this@savePdfToAppStorage)
            }
        } catch (e: Exception) {
            Timber.e(e, "Error saving PDF to App Storage:")
        }
    }

By using this, the list is correctly updated and the DiffUtil is called which animates the list correctly.

Addressing the Lagging UI:

Code Snippet: (from HomeFragment's loadDocumentsWithAnimation()):

    private fun loadDocumentsWithAnimation() {
        documentViewModel.viewModelScope.launch {
            progressIndicator.visibility = View.VISIBLE
            val documentData = documentViewModel.loadAllDocumentsFromStorage(requireContext())
            withContext(Dispatchers.Main) {
                recentDocumentsAdapter.updateRecentDocuments(documentData.second)
                recentDocumentsVisible = documentData.second.isNotEmpty()
                updateViewVisibility()
            }
            progressIndicator.visibility = View.GONE
        }
    }

Thanks to everyone how commented on the question!

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

79339807

Date: 2025-01-08 15:47:01
Score: 2.5
Natty:
Report link

I have a problem with your code, I have the same gauges that work through a label, which takes the values ​​from a database, so once the database value is written in this label, when I reload the page the gauge takes the value from this label and displays it, so it takes it as data also reporting graphically where it is positioned in the ticks, the fact is that with your code I have the possibility of inserting more limits of the same color in different parts of the gauge, only that by creating the script and adapting it to your code I can in no way make it take the value, I kindly ask you to help me.

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alessandro Lazzaro

79339796

Date: 2025-01-08 15:43:59
Score: 5.5
Natty:
Report link

i've the same problem currently and i've used a normal A-A cable and simply ripped out the VBUS (red) wire. lmk if you have made it to debug your device.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): 've the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Richard Hackl lowii

79339781

Date: 2025-01-08 15:40:58
Score: 1
Natty:
Report link

This is how I would solve it. This solution also works without Accordion.

https://codesandbox.io/p/sandbox/ancient-monad-pt8hjv

Basically, you can create a whole new table within the main table.

Add all the Accordion/nested logic within a single TableCell and add colSpan to match the item length of TableHead.

Then create a new Table within the Accordion and for each TableCell match the width of the columns from the TableHead.

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

79339773

Date: 2025-01-08 15:37:57
Score: 2.5
Natty:
Report link

${y}= keyword_1

${var}= Set Variable If ${i} == 10 ${y}

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Venkatarao Dadi

79339769

Date: 2025-01-08 15:36:57
Score: 1.5
Natty:
Report link

There might be better ways but putting

_accessPodatContext.ChangeTracker.Clear();

after the try { fixed the issue.

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

79339768

Date: 2025-01-08 15:35:57
Score: 2.5
Natty:
Report link

So, after looking a bit more into it, again, I played with time.sleep(). I basically was sending my command too fast after I opened the port, so it couldn't catch it. The answer was basically to add a time.sleep() before the capt.write() command in python.

I leave that here in case it can help someone else.

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

79339767

Date: 2025-01-08 15:35:57
Score: 0.5
Natty:
Report link

You can just go at the root a bunch of times:

S = 1234 # Any number you like  
 
ans = S/2 
x = 0.0 
for _ in range(64):  
   ans = (ans + x)/2  
   x = S / ans  
print(f"The square root of {S} is {ans:.7f}") 

Output:

The square root of 1234 is 35.1283361 

And:

The square root of 2 is 1.4142136
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andy Richter

79339765

Date: 2025-01-08 15:34:56
Score: 2
Natty:
Report link

3105 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 3106 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 3107 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 3108 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 3109 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN

why am i getting like this

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

79339762

Date: 2025-01-08 15:33:56
Score: 2
Natty:
Report link

The class your application is looking for org.springframework.web.servlet.resource.LiteWebJarsResourceResolver is first introduced in version 6.2 of Spring Framework. The version of Spring Boot you are using, 3.3.7, pulls in and runs with Spring Framework version 6.1. Support for Spring Framework 6.2 is added in version 3.4 of Spring Boot: Release Notes

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

79339743

Date: 2025-01-08 15:29:55
Score: 0.5
Natty:
Report link

Use the API instead:

import requests

def get_follower_count(username):
    headers = {
        'x-ig-app-id': '936619743392459'
    }

    url = f'https://www.instagram.com/api/v1/users/web_profile_info/?username={username}'
    response = requests.get(url, headers=headers)
    
    return response.json()['data']['user']['edge_followed_by']['count']


print(get_follower_count('thestackoverflow'))
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
Posted by: GTK

79339742

Date: 2025-01-08 15:29:55
Score: 1
Natty:
Report link

Currently there's no official REST equivalent for creating/updating values in a values list nor are there any endpoints for changing the attributes of a value other than its name.

You could load the developer tools and watch the network calls when changing a values status to see what 'unsupported' REST call is being made.

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

79339740

Date: 2025-01-08 15:28:54
Score: 1
Natty:
Report link

You can change the Vite configuration file: vite.config.js and add the build output dir.

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

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  build: {
    outDir: './build',
    emptyOutDir: true, // also necessary
  }
})
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rafael Koike

79339723

Date: 2025-01-08 15:24:53
Score: 2
Natty:
Report link

First, add flutter_secure_storage to store the user's email securely. Create a method to check if the user has previously logged in. Implement conditional navigation: For more info let me know

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

79339721

Date: 2025-01-08 15:24:53
Score: 2.5
Natty:
Report link

Just set layout property for Form.Item. It is the same as for Form component

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

79339717

Date: 2025-01-08 15:23:52
Score: 0.5
Natty:
Report link

for me only flutter pub cache clean helped with the issue

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

79339715

Date: 2025-01-08 15:22:52
Score: 1
Natty:
Report link

Basically, to replicate your Google Sheets formula in Excel, you’ll need a different approach since Excel doesn’t have a direct QUERY equivalent. One way is to use a helper column to count occurrences. If your data is in column A, you can use =COUNTIF(A:A, A2) in column B to get the counts.

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

79339710

Date: 2025-01-08 15:21:52
Score: 0.5
Natty:
Report link

Restarting slapd did not help clearing out the accesslog files for me. However, forcing the database to execute the DB_LOG_AUTOREMOVE helped:

On your system, run this command:

db_archive -d -h /var/lib/ldap/accesslog

It will force execute the set_flags DB_LOG_AUTOREMOVE and and purge the accesslog.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yi Qiang Ji

79339709

Date: 2025-01-08 15:21:51
Score: 4
Natty: 5
Report link

None of the above worked for me. Any other idea?

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: michele thefirst

79339707

Date: 2025-01-08 15:20:51
Score: 0.5
Natty:
Report link

Alternative solution using SUMPRODUCT

I played with an existing answer and found a much compact alternative using SUMPRODUCT.

Formula

=SUMPRODUCT((A$2:A$4)*(B$2:D$4=A7))/COUNTIF(B$2:D$4, A7)

Output

Name Count Average
Anna 2 3.5
Kylie 1 3
Lois 1 4
Michelle 2 4.5

References: SUMPRODUCT

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

79339703

Date: 2025-01-08 15:18:49
Score: 5
Natty:
Report link

Take a look at awaitility library : https://www.baeldung.com/awaitility-testing

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

79339692

Date: 2025-01-08 15:15:48
Score: 2
Natty:
Report link

I Found One More Easy ,Free And Unlimited To Use Easy Solution Where You Can Fetch The Info From API. Example

[https://liveapi.in/geo/country/][1] for fetching all countries and codes

[https://liveapi.in/geo/state/?country=US] for fetching all states or provinces or regions

for more details visit [liveapi.in/geo/]

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

79339675

Date: 2025-01-08 15:11:47
Score: 0.5
Natty:
Report link

As said by @Paul W in comments, fields in the control file are names that sqlldr internally gives to your CSV columns, ignoring the names you gave in the CSV's header line. And by default they get pushed to the field in the same order as they are listed.

Thus for simple fields you should just let the field name (having them match the table columns name will help not getting lost) and remove the quoted part.

After the internal field name, you can put an optional SQL type, or SQL convert or fill snippet; in that last case, you can refer the "internal" field name with :.

Thus you could have:

ROW_ID "YMODAPP.TCLUSTER_SEQ.NEXTVAL",
CLUSTER_ID, -- No need to add anything, we just need to materialize the column and it will get pushed to column 2 of the table.
[…]
OD_FLOW_DT "TO_DATE(:OD_FLOW_DT, 'YYYYMMDD')", -- Field in the TO_DATE has to be :<internal field name = first word before the quotes>.
-- or:
OD_FLOW_DT DATE 'YYYYMMDD',

(based on past experience, with no DB to test now, but isn't it worth a try?)

See an answer from 2019 for an unconventional way of remapping, that helps understanding what is in memory and what ends up into DB.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Paul
  • Low reputation (0.5):
Posted by: Guillaume Outters

79339662

Date: 2025-01-08 15:07:46
Score: 4.5
Natty: 4.5
Report link

Is this referring to TLS session and how many times it can be refreshed and a new page is generated? Sessions or objects for a better words

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: Jayden

79339655

Date: 2025-01-08 15:06:45
Score: 1
Natty:
Report link

React v19 has an issue while installing @testing-library/react. To temporarily resolve this dependency issue, you can set legacy-peer-deps flag to true so that it resolves the peer dependency conflicts. You can do this by running:

npm config set legacy-peer-deps true

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

79339654

Date: 2025-01-08 15:06:45
Score: 3
Natty:
Report link

this made it work

COPY docker/backstage/backstage.json ./

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

79339648

Date: 2025-01-08 15:03:44
Score: 1.5
Natty:
Report link

The problem lies in how request.GET parses the query string. It treats the entire JSON-like structure as a single key-value pair instead of nested JSON. The incoming query string is URL-encoded, and Django decodes it without recognizing it as JSON.

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

79339646

Date: 2025-01-08 15:01:44
Score: 1.5
Natty:
Report link

Had the same problem. Solved it installing dependences:

npx expo install react-native-gifted-chat react-native-reanimated react-native-safe-area-context react-native-get-random-values

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

79339636

Date: 2025-01-08 14:58:43
Score: 3.5
Natty:
Report link

There is a shortcut to close a completion. Ctrl+e

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

79339630

Date: 2025-01-08 14:56:43
Score: 2.5
Natty:
Report link

Under 18: 5.9% (1 respondent)

18-25: 88.2% (15 respondents)

26-35: 0%

36 and above: 5.9% (1 respondent)

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

79339626

Date: 2025-01-08 14:54:42
Score: 0.5
Natty:
Report link

You can use the check_password function available in Django.

from django.contrib.auth.hashers import make_password, check_password

password = 'testpassword123'
django_hash = make_password(password)   
is_verified = check_password(password, django_hash)

Some links :

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pulse Mind

79339617

Date: 2025-01-08 14:50:41
Score: 2
Natty:
Report link

Still the same issue and solution. Removing the ECSServiceAvarageMemoryUtilization metric immediately 'enables' the scale-in activity, if ECSServiceAvarageCPUUtilization is below threshold. In our case the memory utilization (like 58%) where constantly operating close to the ECSServiceAvarageMemoryUtilization threshold of 60%. This might be a reason, too. I would expect, that there is a hysteresis within the scaling algorithm. Try to iterate with the memory utilization threshold.

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

79339613

Date: 2025-01-08 14:49:41
Score: 1
Natty:
Report link

The Maven task within Azure pipelines with coverage enabled manipulates the pom.xml to add the JaCoCo plugin, irrespective of whether the plugin was already included. This is the link to the relevant code performing this change.

Although not an ideal solution, removing the JaCoCo plugin from the pom.xml will resolve the error. With this approach, any configuration for JaCoCo has to be relocated to the Maven task.

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

79339611

Date: 2025-01-08 14:49:41
Score: 0.5
Natty:
Report link

After some quick discussion in Vimjoyer's Discord server:

  1. Nix evaluates config.scripts.output because I pointed nix-build to it with the -A flag.

  2. To evaluate config.scripts.output, Nix must know the value of config.requestParams.

  3. Evaluating config.requestParams requires knowing the value of ${config.scripts.geocode}

${config.script.geocode} is a string interpolation. Evaluating the value of config.script.geocode eventually boils down to the return value of mkDerivation. Per this, mkDerivation outputs a special attribute set that can be used in string interpolation,

and in that case evaluates to the Nix store path of its build result.

So this is why config.script.geocode gets built.

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

79339602

Date: 2025-01-08 14:46:40
Score: 1.5
Natty:
Report link

To grab values from a table at a specific Column use the following:

grab values from "my-table" at first column and save it as "first-column-values"

To grab values from a table at a specific Row use the following:

grab values from "my-table" at first row and save it as "first-row-values"

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

79339598

Date: 2025-01-08 14:46:40
Score: 3.5
Natty:
Report link

I'm working on a Spring Boot application with Thymeleaf for the front end and want to implement JWT authentication using only spring-boot-starter-security without any external JWT libraries.

Requirements:

The JWT should be generated and validated manually using Base64 and HMAC SHA256.

The token should be stored in an HTTP-only cookie for security.

The application should have login and logout functionality with Thymeleaf templates.

Current Setup:

I'm using the following dependencies:

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-security</artifactId>
<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-thymeleaf</artifactId>

Spring Security is configured to handle authentication and authorization.

Thymeleaf is used for rendering the login and home pages.

What I've Tried: I implemented a utility class to generate and validate JWTs using Base64 encoding and HMAC SHA256, a login controller to authenticate users and generate tokens, and a logout mechanism. However, I'm unsure how to structure my security configuration and validate the JWT on each request while keeping it secure.

Questions:

  1. How do I validate the JWT on each request and associate it with the current user session?

  2. Is storing the JWT in an HTTP-only cookie sufficient for security?

  3. Are there any improvements to this approach while still using only Spring Security and Thymeleaf?

Code Snippets:

Here’s my JWT utility class:

public class JwtUtil {

private static final String SECRET_KEY = "your-256-bit-secret";

private static final String ALGORITHM = "HmacSHA256";



public String generateToken(String username) {

    // Generate token logic

}



public String extractUsername(String token) {

    // Extract username logic

}



public boolean validateToken(String token) {

    // Validate token logic

}

}

Here’s my login controller:

@Controller

public class LoginController {

@PostMapping("/login")

public String login(String username, String password, HttpServletResponse response) {

    // Authenticate user and generate JWT

}



@GetMapping("/home")

public String home() {

    return "home";

}

}

Expected Behavior:

  1. Users should log in through a Thymeleaf login page.

  2. A JWT token should be generated and stored in an HTTP-only cookie upon successful login.

  3. The application should validate the token on every request and restrict access to authenticated users.

Any guidance, corrections, or suggestions would be appreciated!


Let me know if you want to modify this further before postin g!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): How do I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Controller
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shah Harsh

79339597

Date: 2025-01-08 14:46:40
Score: 1.5
Natty:
Report link

@{list1}= ObtainVariablesKeyword

@{userlist}= Create List ${uservariableA} ${uservariableB} ${uservariableC} ${uservariableD} ${uservariableE}

${A} ${B} ${C} ${D} ${E}= Run Keyword If @{list1}!=None Set Variable @{list1} ... ELSE Set Variable @{userlist}

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

79339592

Date: 2025-01-08 14:45:38
Score: 4
Natty:
Report link

Constrains other than NOT NULL are not enforced, so a primary key is informational and don't enforces uniqueness on primary key fields, that'S why you already can add records whose pk exists already in the table. https://docs.snowflake.com/en/user-guide/table-considerations#label-table-considerations-referential-integrity-constraints

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

79339586

Date: 2025-01-08 14:44:38
Score: 1
Natty:
Report link

Elementor popup events today support just jQuery. If you need a Vanilla Js solution check this: https://eduardovillao.me/handle-elementor-popup-events-without-jquery/

// Select the <body> element
const body = document.body;

// Create a MutationObserver
const observer = new MutationObserver((mutations) => {
    mutations.forEach((mutation) => {
        // Check if new nodes were added
        if (mutation.type === "childList") {
            mutation.addedNodes.forEach((node) => {
                // Check if the added node is an Elementor popup modal
                if (node.classList && node.classList.contains("elementor-popup-modal")) {
                    console.log("Elementor popup detected:", node);
                    // Add your custom logic here
                }
            });
        }
    });
});

// Configure the observer to monitor the <body>
observer.observe(body, { childList: true });

// Stop observing when no longer needed (optional)
// observer.disconnect();
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eduardo VillĂŁo

79339583

Date: 2025-01-08 14:43:38
Score: 1.5
Natty:
Report link
=SUMPRODUCT(G11:G139*(MOD(ROW(G11:G139),2)=1))

Something like this might work if I understood your question right

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

79339582

Date: 2025-01-08 14:43:38
Score: 0.5
Natty:
Report link

The error occurred because my bot wasn't an admin in the channel specified in the reply_parameters. According to the Telegram Bots Documentation, all bots, regardless of settings, can only access messages from:

1. Private chats: Only when a user initiates the chat by starting it.

2. Groups / Supergroups:

NOTE: Privacy mode is enabled by default for all bots, except bots that were added to a group as admins. Read more

3. Channels: Only where the bot is an admin.

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

79339575

Date: 2025-01-08 14:41:37
Score: 2
Natty:
Report link

I was having the same problem. I noticed the images are read from a resource named:

_next/image?url=<path_to_image>

I'm running this from a docker container, and restarting the docker container was enough to regenerate the server cache.

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

79339571

Date: 2025-01-08 14:40:37
Score: 3.5
Natty:
Report link

I usually use "PHP Import Checker", try it

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

79339570

Date: 2025-01-08 14:40:37
Score: 0.5
Natty:
Report link

I'm currently working on an app that's going to connect to two Opensearch clusters.

My current plan is to simply swap the Searchkick client in code depending on which cluster I need to query, since it supports code like this:

client_one = OpenSearch::Client.new(...)
client_two = OpenSearch::Client.new(...)

Searchkick.client = client_one

And every operation from there will use the assigned client. It's still early in the project, but this is working so far.

Curious about how you ended up implementing this.

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

79339565

Date: 2025-01-08 14:39:37
Score: 1.5
Natty:
Report link

I was having the same problem. I even tried to change the node and npm mirror, but same error. I just rolled back to nvm version 1.1.12 and it worked just fine.

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

79339562

Date: 2025-01-08 14:38:36
Score: 1.5
Natty:
Report link

It still did not work in Eclipse with all solutions described above applied. The ant script was running well outside but in Eclipse I still got the error

"The prefix artifact for element artifact:dependencies is not bound..."

To resolve the issue I had to

  1. Open "Window / Preferences" in Eclipse
  2. Navigate to "Ant / Runtime"
  3. Open the tab "Classpath" and click on "Ant Home Entries"
  4. Click on the button "Add external jar" and choose the maven ant plugin jar I copied before into the lib folder of the ant eclipse plugin
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jan Rasehorn

79339557

Date: 2025-01-08 14:37:36
Score: 0.5
Natty:
Report link

So, Google's "Find My Device" service, including its "ring" feature, is not publicly exposed via an official API. This is embedded natively in the Google ecosystem and is used by an end-user through the web interface or mobile app.

Why Google Keeps This API Under The Hood

Disruption of user privacy and security — Making such APIs public can result in misuse which can breach the privacy and security of the user.

Domain-specific: It is a feature that is only useful for users with Google accounts to control their devices, and exposing it as an API would compromise safety.

There Are Other Workarounds: You can already find your device via the web and with an app for most use cases, so an API is less critical.

Workarounds

Only if you need to programmatically activate the ringing feature (or similar capability) do this,

For example, third-party EMM or MDM solutions (like Microsoft Intune and Google Workspace Admin SDK for enterprise users) come with APIs to control the devices remotely. But they may not have the “ring” feature.

Custom App: If you have access to the devices you want to control, you could write a custom app that has permission to control the device and play a ringing sound via your code.

Conclusion

For personal use, you’ll need to go through Google’s existing “Find My Device” interface. For such organizations, enterprise solutions can probably offer equivalent functionality in their respective realms, stay away from. You may want to look for alternative approaches or consult the Google support if that is critical for your application.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: muhammad fadel yudha perwira

79339556

Date: 2025-01-08 14:37:36
Score: 1
Natty:
Report link

Or you can do a define in the project, the EXTJS language file is wrong, do it like this

Ext.define('Ext.locale.pt_BR.pivot.plugin.configurator.window.Settings', { override: 'Ext.pivot.plugin.configurator.window.Settings',

okText: 'Ok',
cancelText: 'Cancelar',
layoutText: 'Layout',
outlineLayoutText: 'Esboço',
compactLayoutText: 'Compacto',
tabularLayoutText: 'Tabular',
firstPositionText: 'Primeiro',
hidePositionText: 'Ocultar',
lastPositionText: 'Ăšltimo',
rowSubTotalPositionText: 'Posição subtotal da linha',
columnSubTotalPositionText: 'Posição subtotal da coluna',
rowTotalPositionText: 'Posição total da linha',
columnTotalPositionText: 'Posição total da coluna',
showZeroAsBlankText: 'Mostrar zero como em branco',
yesText: 'Sim',
noText: 'NĂŁo'

});

Reasons:
  • Blacklisted phrase (1): NĂŁo
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rodrigo Martincic

79339549

Date: 2025-01-08 14:35:35
Score: 2.5
Natty:
Report link

You need to add your target file type to Text content type. Window -> Preferences -> General -> Content Type

If your file type is CSV, add it under Text content type. Eclipse will use text compare as default.

enter image description here

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

79339544

Date: 2025-01-08 14:35:34
Score: 9.5 đźš©
Natty: 5.5
Report link

Were you able to solve it, im having this problem too ?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oussama IG

79339542

Date: 2025-01-08 14:34:33
Score: 4.5
Natty:
Report link

I am also looking for some method to use a remote SoftHSM service. If someone is looking for a complex solution, maybe there is a project that will work properly: https://github.com/vegardit/docker-softhsm2-pkcs11-proxy

Reasons:
  • Blacklisted phrase (2): I am also looking
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adam Papp

79339536

Date: 2025-01-08 14:33:32
Score: 1
Natty:
Report link

The problem was resolved, when I changed the PATH in run-slave.sh file in jenkins folder to following:

export ANDROID_HOME=~/Library/Android/sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-18.0.2.jdk/Contents/Home
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build_tools:/Applications/Xcode.app/Contents/Developer/usr/bin:$JAVA_HOME/bin:/usr/local/lib:/bin:/usr/local/bin:/usr/bin:$PATH
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MilaLynx

79339527

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

shelves or ZODB are really good options. There's also persidict, a Python tool that works like a key-value dictionary but keeps its data saved on your disk or in an AWS S3 bucket.

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

79339519

Date: 2025-01-08 14:26:30
Score: 3.5
Natty:
Report link

seems to be in the use of signs $1 maybe just need to change it with %

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

79339513

Date: 2025-01-08 14:25:30
Score: 0.5
Natty:
Report link

The question is very old but here's an update for the current macOS version. macOS Sequoia (15) has jq commnand-line utility pre-installed with the operating system. Xcode command line developer tools package isn't needed.

$ which jq
/usr/bin/jq

$ jq --version
jq-1.6-159-apple-gcff5336-dirty
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ilari Stenroth