79108114

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

Another option is ggalign, you can

# randomly generated phenograph data
set.seed(1)
TotalPercentage <- data.frame(
    `Participant ID` = c("123", "456", "789"),
    `1` = 125 * runif(72),
    `2` = 75 * runif(72),
    `3` = 175 * runif(72),
    `4` = 10 * runif(72),
    `5` = 100 * runif(72),
    `6` = 150 * runif(72),
    `7` = 200 * runif(72),
    check.names = FALSE
)
library(ggalign)
#> Loading required package: ggplot2
ggstack(TotalPercentage) +
    # add color bar plot
    # we transform the input data frame into a long format data frame
    ggalign(action = plot_action(
        data = function(x) {
            ans <- tidyr::pivot_longer(x,
                cols = as.character(1:7),
                names_to = "group"
            )
            dplyr::summarise(
                ans,
                value = sum(value), .by = c(`Participant ID`, group, .y)
            )
        }
    )) +
    geom_col(aes(value, .y, fill = group),
        orientation = "y",
        position = position_fill()
    ) +
    scale_fill_brewer(palette = "Dark2") +
    # add dendrogram
    align_dendro(data = ~ .x[-1L]) &
    scale_x_continuous(expand = expansion()) &
    theme(plot.margin = margin(l = 5, r = 10))

enter image description here

Created on 2024-10-21 with reprex v2.1.0 ~

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

79108113

Date: 2024-10-20 21:51:39
Score: 4.5
Natty:
Report link

Maybe this will help? https://github.com/mapbox/csv2geojson?tab=readme-ov-file

Just convert csv to geojson and load it with "addSource" ;)

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: MeX

79108103

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

It turns out this was due to having both Python and Python Test Explorer for Visual Studio Code extensions enabled, both of them have test functionality. Disabling the latter fixed the issue.

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

79108100

Date: 2024-10-20 21:42:36
Score: 5
Natty:
Report link

I have the exact same problem - devices that worked fine are now screwed (eg Netgear ReadyNAS 314) - a lot of these devices simply wont get an update.

Creating the app password worked for password creation. But app/devices still wont authenticate! I am still using SMTP settings from https://support.microsoft.com/en-gb/office/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040 but if I use the new app password (or even my normal password) the NAS still fails.

I have even tried removing 2FA from my @outlook.com account but nothing works

Reasons:
  • Blacklisted phrase (1): but nothing work
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same problem
  • Low reputation (1):
Posted by: James Townsend

79108098

Date: 2024-10-20 21:42:36
Score: 2
Natty:
Report link

Thanks, it worked for me when I installed python 3.11.8 and Java 8

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

79108096

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

This is quite basic task accomplishable with Any and All methods combination:

var result = words.Any(word => word.All(character => char.IsWhiteSapace(character)));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arthur Edgarov

79108094

Date: 2024-10-20 21:39:36
Score: 3
Natty:
Report link

Have you tried an alternative format?


ffmpeg -i testvideo.ts -c copy testvideo.mp4

also do you have an example video that i could try to run in my environment?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • RegEx Blacklisted phrase (2.5): do you have an
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: oppressionslayer

79108074

Date: 2024-10-20 21:24:32
Score: 0.5
Natty:
Report link

This is the factory method or strategy pattern. These patterns have very good extensibility, like adding new types is straightforward, just create a new class and update the enum. You can find out more about them here: https://realpython.com/factory-method-python/ and https://refactoring.guru/design-patterns/strategy/python/example

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

79108066

Date: 2024-10-20 21:14:28
Score: 7.5 🚩
Natty: 4.5
Report link

Did you ever find a solution to this? I am wanting to do the same.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever find a solution to this
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Tristan Jarrett

79108056

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

I actually found out why the error was occurring. This is due to a wrong import of the ProcessWindowFunction.

I did: org.apache.flink.streaming.api.functions.windowing But i should have done: org.apache.flink.streaming.api.scala.function

The first one is a Java function, which has different parameters, whereas the second one is a scala function that has other parameters.

Java parameters: [(String, String, Int), NotInferredR, String, TimeWindow] Scala parameters: [(String, String, Int), CommitSummary, String, TimeWindow]

Commitsummary can be anyclass

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

79108053

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

The quotes in url propertie is necessary.

@font-face {
  /* It is recommended to keep the font-family in quotes */
        font-family: "Futur";

  /* It is necessary to have the url content in quotation marks */
    src: url("./FUTURAMEDIUM.TTF");
}


I hope I helped.

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

79108052

Date: 2024-10-20 21:02:25
Score: 2.5
Natty:
Report link

can we use database functions using the edge runtime in nextjs? yes and no. you cannot directly use it but i have found out a solution to this, one method is to make an route handler (api). and using fetch in the edge runtime.

Possible Method for you usecase

in auth.js you can create separate auth.config.ts (which will not be using any kind of database operation that is not supported in the edge runtime github authjs5-nextjs

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can we use
  • Low reputation (1):
Posted by: Saad Bukhari

79108049

Date: 2024-10-20 20:59:24
Score: 0.5
Natty:
Report link

If you replace the print statements, it works. The problem was that you can't borrow s var as an immutable while it is being borrowed by r1 var as mutable.

// ** this compiles **
//println!("{}",s);
println!("{}",r1);
println!("{}",s);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vadtam

79108039

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

You should initialize your project with scarb init or if you want to using testing tool snforge init. After that you can type code . to open visual studio in your current dir

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

79108034

Date: 2024-10-20 20:52:22
Score: 3
Natty:
Report link

For anyone still looking for the solution I made public my is-function-pure repo that detects if JavaScript function is pure. You can give it a try any feedback is appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Senad Mehic

79108029

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

The problem arises when the whole dataset is loaded by the GPU (instead of loading it with the CPU and only sending batches to the GPU).

I managed to fix this type of issue by adding with tf.device('cpu'): to the data loading process (just that, the remaining training should be done with the GPU).

Applied to your example code, something along the lines of:

model = build_model(
    filters=50,
    filter_step=1,
    stages=5,
    stage_steps=1,
    initial_convolutions=0,
    stacks=1,
)

print(model.summary()) 

with tf.device('cpu'):
    dataset = tf.data.Dataset.from_tensor_slices((X, y))
    dataset = dataset.batch(1)

model.fit(
    dataset,
    epochs=2**7,
    callbacks=[
        EarlyStopping(monitor="loss", patience=5, min_delta=1e-7, start_from_epoch=10),
        LearningRateScheduler(step_decay)
    ],
)

Thanks to @mrk's answer for pointing me in the right direction of the issue at hand. See also this question and the linked GitHub issue.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mrk'sfor
Posted by: Zaus

79108028

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

If you don't want to introduce additional list to the filter result, Use next() to get the object in the filter

fileList = next(filter(lambda x: '.mhd' in x, fileList))

This would return the next object in iter or None/[] based on the type of fileList.

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

79108015

Date: 2024-10-20 20:38:19
Score: 1.5
Natty:
Report link

It looks like the problem was that I used the file ./bin/Release/net8.0/linux-x64/MyApp to share. Now I use the file ./bin/Release/net8.0/linux-x64/publish/MyApp (publish added inside the path) for sharing, and the problem disappeared.

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

79107997

Date: 2024-10-20 20:29:16
Score: 5
Natty: 5
Report link

I tried using react-thermal-printer on my Next.js app to print a receipt in Sunmi v2 but it didn't work. Anyone with a solution to this?

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

79107996

Date: 2024-10-20 20:29:16
Score: 1
Natty:
Report link

Try this!

EF.Functions.Collate(gr.Name, "SQL_Latin1_General_CP1_CI_AS") == name
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Bilal

79107995

Date: 2024-10-20 20:27:16
Score: 1.5
Natty:
Report link

I doesn't think there is a way to make it optional. I would remove the attribute and instead use User.Identity.IsAuthenticated to check whether the request were send from an authenticated user and then access the user id.

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

79107983

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

Looks like there was indeed dll compatability problem due to my unorganized MSYS packages dowloads. I reinstalled MSYS and all packeges I needed and now it works.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Max Kalentsov

79107981

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

You create a new instance of PagingBeanProcessor in your selectAll-Method. That's why the countQuery is null and no data is selected.

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

79107977

Date: 2024-10-20 20:18:13
Score: 4
Natty:
Report link

I have found a single-line solution for this and related errors in projects using NestJS + Deno + GraphQL + npm packages. Other solutions were not working for me. Hence, sharing it here, as it might help someone save some time. It may be relatable to projects using other runtimes like bun, node.

You can find the detailed answer here >> https://stackoverflow.com/a/79107940/13607767

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (3): not working for me
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mehedi

79107976

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

AFAIK, you have to add the ARXML files in to the "input files dialog" to import and use them in Davinci Configurator.

For BSW Plugins (e.g. your own driver / service component below RTE), you have to add the directories of them to the configuration / project-settings.

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

79107974

Date: 2024-10-20 20:17:13
Score: 3.5
Natty:
Report link

Chess.js is so slow you can try kokopu which is much faster at move generation

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

79107965

Date: 2024-10-20 20:12:11
Score: 4
Natty:
Report link

I have found a single-line solution for this and related errors in projects using NestJS + Deno + GraphQL + npm packages. Other solutions were not working for me. Hence, sharing it here, as it might help someone save some time. It may be relatable to projects using other runtimes like bun, node.

You can find the detailed answer here >> https://stackoverflow.com/a/79107940/13607767

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (3): not working for me
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mehedi

79107957

Date: 2024-10-20 20:07:09
Score: 4
Natty:
Report link

I found a solution. I will not add duplicate Airlines. Thanks for your help.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2961581

79107939

Date: 2024-10-20 19:58:06
Score: 1
Natty:
Report link

First of all your api is /api/public/categories but you are trying to request api/public/products

When you build your app and sending a get request from a browser like below you have to get success response.

enter image description here

The parameter name that you request must match the name field in the @RequestParam annotation.

Remove empty character inside of name field

@RequestParam(name = "Page_size", defaultValue = Appconstants.PAGE_SIZE,required = false) Integer pgsize,

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @RequestParam
  • Low reputation (0.5):
Posted by: Aytekin

79107934

Date: 2024-10-20 19:54:06
Score: 1.5
Natty:
Report link

Pure Mysql:

WHERE datex BETWEEN adddate(curdate(), -7)) AND curdate();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SHAKU

79107930

Date: 2024-10-20 19:52:05
Score: 1.5
Natty:
Report link

Adding a --report <file> flag to the nextpnr command line causes it to generate a json file with the max clock frequency. This information is also avaialble in the nextpnr output when run in a verbose mode.

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

79107921

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

Have you tried to use cmd.exe instead of PowerShell? There are issues using PowerShell on Windows in my experience.

First, try run the same folder in cmd.exe. If it works, then replace your Webstorm's terminal with cmd or even git bash. This is an instruction how to do it: https://www.jetbrains.com/help/webstorm/terminal-emulator.html#open-terminal

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: egorgrushin

79107915

Date: 2024-10-20 19:43:03
Score: 2
Natty:
Report link

You would need the "fixed" position. Set a ref to your child Element and determin its bouding rect and the parent bouding rect, then position the element as you wish.

A possible solution might come in in future https://github.com/w3c/csswg-drafts/issues/9107

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

79107914

Date: 2024-10-20 19:43:03
Score: 2
Natty:
Report link

For anyone interested to have a look. I wrote this library for reading JSON in Go, Jogson:

https://github.com/rmordechay/jogson

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

79107906

Date: 2024-10-20 19:42:03
Score: 1.5
Natty:
Report link

I'm not sure what the error was, if anyone knows why this occurs I will gladly accept that as an answer.

This error seesm to stem from the way Astro bundles javascript. I removed @astrojs/alpinejs and just installed alpinejs and import it in my script tag like so;

<script>
    import Alpine from "alpinejs";

    window.Alpine = Alpine;
    Alpine.data("stats", () => ({
    }));

    Alpine.start();
</script>

Which works great.

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fiji

79107901

Date: 2024-10-20 19:40:02
Score: 2.5
Natty:
Report link

Deleting my local package-lock.json and pushing this change to trigger a vercel deployment/build fixed the problem! Remote vercel build just needed to do a fresh npm install to create a fresh package-lock and the build was successful :D

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

79107897

Date: 2024-10-20 19:36:01
Score: 2.5
Natty:
Report link

Sorry for reviving this thread but this topic is still relevant. That's why I am here :D (since this is my first post I am not allowed to commment on other's post?! but I can write an 'answer'?! strange limitation)

Regarding 'just try for yourself'... Please don't forget people like me have absolutely no clue how git works especially with its integration into VS/Code. There I didn't know I would be asked for credentials as there are already generally valid online IDs, like accounts on Microsoft and Google. As I have logged in into VS/Code, my MS account credentials are already known. (btw I am explicitely writing VS and /Code as those two seem to behave differently in many aspects, likely with git too. I am using both) I also have a github account because I cloned a repository from there.

Here comes my 'answer' (so sorry but I wish i would be allowed to comment but maybe my story will help others). I had a local git repo on my old computer. On my new computer I told VS to open local repository. Worked just fine but now I have a yellow warning telling me I should authenticate myself before commit. How confusing is this??

There is no 'commit' button but 'Push' which I would interpret as 'uploading to github'?! I clicked 'Push' and a window asking for some details is opened. (That's differenct to VSCode as there clicking the button immediatly triggered commit) I can choose remote/local repository and also the folder where my local repository resides. Everything looks nice except I cannot commit. I asks me for credentials and says: code will be pushed to Github. The only button 'Push' (aside of Cancel) is greyed out.

So should I try to enter my github credentials in order to enable the Push button and see what happens? I better keep on reading...

Reasons:
  • Blacklisted phrase (1): to comment
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: NaAlso Comment

79107896

Date: 2024-10-20 19:35:01
Score: 0.5
Natty:
Report link

Because native javascript object doesn't have a reduce method. Try obj.toString() or obj.hasOwnProperty(). Maybe you wanted to Array.reduce? If so, do it like this:

type A<T>  =  {
    readonly prop1: string;
    readonly prop2: string;
} & Array<T>;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: egorgrushin

79107891

Date: 2024-10-20 19:33:00
Score: 0.5
Natty:
Report link

SUM + GROUP BY is the way to go, so long as you have Value pre-calculated:

SELECT Service_Name, SUM(Price) AS Price, SUM(Qty) AS Qty,
       SUM(Value) AS Value, Ident
FROM NewOne GROUP BY Service_Name, Ident
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gendalph

79107881

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

You can either do that through Gitea UI

or if you have a lot of repositories to update, the token is in the git config of each repository you have mirrored

Gitea does not keep the token elsewhere in its own database or provide an api call to update the token

here a sample from one of mine (removed any sensititve details)

[core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = https://oauth2:[here is the token]@github.com/[org]/[repo].git
fetch = +refs/:refs/
mirror = true
fetch = +refs/tags/:refs/tags/

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

79107873

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

I had the similar issue few days back at Angular 18.2. After creating 'assets' folder under 'public' folder it works for me. If still not working for you just run the 'ng serve' or 'ng dev' command again.

<img src="/public/assets/logo.png" alt="logo" />
Reasons:
  • Blacklisted phrase (2): still not working
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bibek Shrestha

79107871

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

Reducing you observability because of costs is very unlucky. I was really disappointed by ApplInsights costs and started looking for an alternative immediately.

In my case with my requirements having a Loki with Grafana was enough, but my projects and the company are small.

P.S. I suspect AppInsights is very expensive because of its obsolete tech, I guess it uses a relational database which is very questionable desicion for logs and metrics.

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

79107869

Date: 2024-10-20 19:19:57
Score: 2.5
Natty:
Report link

Just start the docker application

On Mac -> open terminal & type docker

there should be docker icon on top of your menu bar

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

79107867

Date: 2024-10-20 19:18:56
Score: 3.5
Natty:
Report link

I've the problem as Mostafa Essam stated. Don't know how to apply the suggested solution. Help is appreciated.

This is my code

 func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {

    let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "NieuwsCollectionViewControllerCell", for: indexPath) as! NieuwsCollectionViewCell
            
    let feedRow = MyNewsLoader.shared.returnNews()[indexPath.row]
    
    let feedTitle = feedRow.title
    let feedDescription = feedRow.description?.trimHTMLTags()
    let feedLink = feedRow.link
    
    cell.feedTitle?.text = feedTitle
    cell.feedDescription?.text = feedDescription

return cell

}

When I remove ?.trimHTMLTags there's no crash.

This is the code of trimHTMLTags which causes the app to crash:

extension String {

    public func trimHTMLTags() -> String? {
        
        //remove <figure>
        
        var textZonderFigure = ""
        let textZonderFigureArray = self.components(separatedBy: "</figure>")
        
        //print(textZonderFigureArray)
        
        if textZonderFigureArray.count == 1 {
            
            //there was no <figure>
            
            textZonderFigure = textZonderFigureArray[0]
            
        } else {
            
            textZonderFigure = textZonderFigureArray[1]
            
        }
                
        guard let htmlStringData = textZonderFigure.data(using: String.Encoding.utf8) else {
            
            return nil
            
        }
        
        //print(htmlStringData)
                
        let options: [NSAttributedString.DocumentReadingOptionKey : Any] = [
            .documentType: NSAttributedString.DocumentType.html,
            .characterEncoding: String.Encoding.utf8.rawValue
        ]
        
        let attributedString = try? NSAttributedString(data: htmlStringData, options: options, documentAttributes: nil)
        
        let returnValue = attributedString?.string
        
        //in returnValue zitten soms \n bij de start
        //print(returnValue)
        
        return returnValue

    }
    
}
Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): Help is appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Patrick Koning

79107864

Date: 2024-10-20 19:17:56
Score: 2
Natty:
Report link

CORS is there for security and is enforced at the server, so I am afraid that what you are doing here will only work locally, i.e. cannot work when you run your web app in production.

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

79107863

Date: 2024-10-20 19:17:56
Score: 2.5
Natty:
Report link

Why is the "the change stream loop is never exited"? If you don't respond to comments that require a response, you are only making it more difficult for people to help you. Also, if you receive one or more answers that resolves your question, you should select the best answer and accept it (see What should I do when someone answers my question?). When you have increased your reputation, you can also upvote one or more questions that are useful.

If you are running Python 3.12 or later, you can do:

async def handle_collection_changes(...):
    loop = asyncio.get_running_loop
    loop.set_task_factory(asyncio.eager_task_factory)

See asyncio.eager_task_factory. Now when you execute task = asyncio.create_task(coro.), coro will be immediately invoked. The new task will not be added to the event loop (it's as if a synchronous call were being made to coro) and run until either it completes or until it issues a blocking await expression in which case it will then be added to the event loop like any regular task. Setting this factory will of course result in all tasks being created "eagerly". This is generally not a problem, but if it is then instantiate the tasks that you want to start "eagerly" with:

loop = asyncio.get_running_loop()
task = asyncio.Task(coro, loop=loop, eager_start=True)
Reasons:
  • Blacklisted phrase (1): to comment
  • Blacklisted phrase (2): What should I do
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is the
  • High reputation (-2):
Posted by: Booboo

79107859

Date: 2024-10-20 19:14:56
Score: 2.5
Natty:
Report link

Ensure CSS is properly imported

In your Svelte component, ensure that the CSS file is properly imported. Use Svelte's transition directive

https://feji.us/rh18ce

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

79107857

Date: 2024-10-20 19:13:55
Score: 5
Natty: 4
Report link

you can follow this: https://youtu.be/MCEKCBA7zGk

Hope it helps,

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): youtu.be
  • 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: Adil Akbar

79107856

Date: 2024-10-20 19:13:55
Score: 0.5
Natty:
Report link
// eslint-disable-next-line @typescript-eslint/no-var-requires

(mapboxgl as Dictionary).workerClass = // eslint-disable-next-line @typescript-eslint/no-var-requires

require('worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker').default;

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

79107851

Date: 2024-10-20 19:12:55
Score: 0.5
Natty:
Report link

In V3 you don't use the docClient but you continue using native JSON.

Have a read of this blog post which helps you configure the correct params for your client:

https://aws.amazon.com/blogs/database/exploring-amazon-dynamodb-sdk-clients/

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Leeroy Hannigan

79107844

Date: 2024-10-20 19:06:53
Score: 1
Natty:
Report link

I ran into a similar issue. If you get the error

ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory

then adding glibc as a system dependency might resolve the issue.

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

79107840

Date: 2024-10-20 19:05:52
Score: 1.5
Natty:
Report link

Use this updated implantation

implementation 'com.github.smarteist:Android-Image-Slider:1.4.0'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Punya Prasun

79107824

Date: 2024-10-20 18:58:50
Score: 1
Natty:
Report link

For me it worked after I put my sqlite db file in this directory:

/android/app/src/main/assets/www

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Qasim Zubair

79107822

Date: 2024-10-20 18:57:50
Score: 1
Natty:
Report link

I think you forgot to specify agent on after scan wifi, try:

connmanctl agent on

After connmanctl scan wifi

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

79107815

Date: 2024-10-20 18:53:49
Score: 1.5
Natty:
Report link

Why did you create a python3-pip recipe if it already exists inside openembedded-core? Just add it in IMAGE_INSTALL:append "python3-pip" [1]

And to use pip in a recipe you just need to inherit pip and pass the package name in PYPI_PACKAGE, example: python3-ansi2html_1.7.0.bb

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why did you
  • Low reputation (0.5):
Posted by: Cleiton Bueno

79107811

Date: 2024-10-20 18:52:49
Score: 1
Natty:
Report link

I've searched all over the android studio error about the emulator, all I've seen is a lot of videos from others reporting hard drive capacity and the problem being solved, it's pretty funny. In short I said androis studio is a free program with thousands of updates, that means it has thousands of unsolved bugs. The solution on the android emulator is not there at all, I've been searching for months, just an excuse, from android and others etc. The only way i found is to take the latest update of android, and the best way is to take a new computer with full ram and full cores at the start and the main important is to format the disk and add from start a new windows version with full microsoft frameworks and etc. Then load ooonly the android studio at the start not others programs or application on window only android studi. In little words a pc full specs only run android studio latest update and then you will the diference. Like i said its a funny the android studio i believe an application alternative is the best way and supports any windows and pcs.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ιωαννης Απόλλων

79107808

Date: 2024-10-20 18:48:47
Score: 4.5
Natty:
Report link

I updated my python to latest version from official python website on recommendation of @stark-jarvis, and that helped me. Thanks @stark-jarvis.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @stark-jarvis
  • User mentioned (0): @stark-jarvis
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sahil Rajput

79107796

Date: 2024-10-20 18:42:46
Score: 5
Natty:
Report link

I am still getting the same issue as Jon.

This is my Pom.xml

    <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.3.4</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.trojan</groupId>
    <artifactId>login-server</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>login-server</name>
    <description>login-server</description>
    <url/>
    <licenses>
        <license/>
    </licenses>
    <developers>
        <developer/>
    </developers>
    <scm>
        <connection/>
        <developerConnection/>
        <tag/>
        <url/>
    </scm>
    <properties>
        <java.version>17</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.projectreactor</groupId>
            <artifactId>reactor-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jetbrains</groupId>
            <artifactId>annotations</artifactId>
            <version>RELEASE</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
            <version>0.9.1</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.session</groupId>
            <artifactId>spring-session-core</artifactId>
            <version>3.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-logging</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-oauth2-client</artifactId>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.3.0</version> <!-- Update to the latest version -->
                <configuration>
                    <from>
                        <image>openjdk:17-jdk-slim</image>
                    </from>
                    <to>
                        <image>trojan2877/login-server</image>
                    </to>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Can someone please help out here.

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same issue
  • Low reputation (1):
Posted by: yourandroidude 123

79107794

Date: 2024-10-20 18:41:45
Score: 3
Natty:
Report link

You need to first of all pair your device using wifi before trying add connect...

check this out https://developer.samsung.com/sdp/blog/en/2024/04/30/connect-galaxy-watch-to-android-studio-over-wi-fi

it helped me connect my galaxy watch 4 !

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

79107791

Date: 2024-10-20 18:39:45
Score: 2
Natty:
Report link

You may have to check or change the code that launches the activity when the notification is tapped (Android code, not Flutter code), as the Intent flags used to launch override the manifest settings.

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

79107779

Date: 2024-10-20 18:35:44
Score: 1
Natty:
Report link

I had the same problem and made ticket in the zmk github project. https://github.com/zmkfirmware/zmk/issues/2573

You'll want to specify a chosen matrix transform, e.g. add zmk,matrix-transform = &default_transform; --> See ticket for more details and why you need to do so.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HTO

79107766

Date: 2024-10-20 18:29:42
Score: 4
Natty:
Report link

I'm not entirely sure what you're trying to accomplish, but why can't you write a single converter that - when called - branches to use one or the other way to deserialize, based on a global variable that represents the environment the code is running in?

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

79107761

Date: 2024-10-20 18:27:42
Score: 1.5
Natty:
Report link

The database file you are bundling with your app cannot be in the lib folder. It needs to be a Flutter asset, and this document describes where to store a file as an asset, and how to let Flutter know it is there. The function _copyDbFromAssets in your code copies a bundled asset to the application's documents directory, where it can be accessed by sqlite.

Reasons:
  • Blacklisted phrase (1): this document
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bram

79107752

Date: 2024-10-20 18:22:41
Score: 2.5
Natty:
Report link

a long time has elapsed since our last correspondence. I was wondering, would it be possible to formulate a model for "fitode" that accepts a time dependent variable such as exploitation rates? My aim would be to elucidate (as you did with the 4 species example above), the parameter sets (if any) that "fitode" returns such that co-existence into the future is granted for a simple two-species modified Lotka-Volterra model. Essentially I would like to reproduce your answer for a simple model (2 vs 4 species) but adding harvesting rates as per the following example:

# Assessment data from the Baltic Sea 
ObsSSB <- data.frame(Herring = c(1932041, 1864349, 1672273, 1944689, 1905001, 1814679, 1626604, 1438139, 1520902, 1421057, 1266502, 1177136, 1090921, 1011718, 1013695, 856321, 714642, 647277, 675487, 649195, 651524, 539582, 483859, 452706, 417827, 363049, 354724, 339899, 332746, 367432, 377935, 424888, 461102, 478633, 477803, 536040, 565200, 557749, 598115, 629339, 695343, 643874, 579087, 597533, 581015, 460378, 364981),
                     Sprat = c(940000, 726000, 625000, 1044000, 695000, 377000, 227000, 199000, 254000, 394000, 616000, 605000, 570000, 461000, 403000, 423000, 556000, 775000, 1045000, 1360000, 1375000, 1429000, 1811000, 1777000, 1354000, 1353000, 1319000, 1196000, 942000, 829000, 1040000, 1324000, 1055000,  898000, 921000, 827000, 948000, 752000, 694000, 706000, 620000, 680000, 1077000, 1095000, 982000, 855000, 817000))
rownames(ObsSSB) <- 1974:2020
Fdata <- data.frame(Herring = c(0.1603, 0.17, 0.1579, 0.1469,0.1263, 0.1533, 0.1593, 0.1839, 0.1648, 0.2255, 0.2369, 0.2524, 0.2265, 0.2626, 0.2547, 0.3426, 0.3324, 0.3416, 0.299, 0.3367, 0.4076, 0.3872, 0.4094, 0.4564, 0.4848, 0.4127, 0.49, 0.4336, 0.3995, 0.3179, 0.2713, 0.2464, 0.2712, 0.2729, 0.2744, 0.2485, 0.2943, 0.2299, 0.1658, 0.1492, 0.2099, 0.2886, 0.3496, 0.352, 0.4474, 0.4951, 0.46),
                    Sprat = c(0.3696, 0.396, 0.3777, 0.336, 0.3408, 0.2627, 0.3005, 0.1828, 0.3033, 0.1358, 0.1796, 0.1659, 0.2091, 0.2689, 0.2391, 0.2155, 0.1369, 0.1734, 0.2004, 0.1625, 0.2638, 0.3485, 0.2984, 0.416, 0.3981, 0.37, 0.3193, 0.2866, 0.4008, 0.3958,  0.4933, 0.4536, 0.3848, 0.3793, 0.4115, 0.5091, 0.4403, 0.3968, 0.3462, 0.4192, 0.4341, 0.4538, 0.3455, 0.3961, 0.395, 0.3918, 0.368))
rownames(Fdata) <- 1974:2020
### Fitting a modified 2 species Lotka-Volterra model to observed SSB data ###
library(deSolve)
spp <- ObsSSB/10^6
# First guess of parameters
nospp <- ncol(spp)
data_lagged <- rbind(NA, spp) # Lagged data
db.bdt <- list()
for (i in 1:ncol(spp)) {
  db.bdt[[i]] <- log(append(spp[,i], NA)/data_lagged[,i])
}
modlst <- NULL # Linear models
for(i in 1:nospp) {
  moddat <- data.frame(db.bdt = db.bdt[[i]], 
                       data_lagged)[-nrow(data_lagged),]
  modlst[[i]] <- eval(parse(text = paste("lm(db.bdt~", 
                                         paste(colnames(data_lagged), 
                                               collapse = "+"), ", data=moddat)", sep = "")))
}
r_start <- unname(sapply(modlst, function(dat){coef(dat)["(Intercept)"]}))
A_start <- unname(sapply(modlst, function(dat){coef(dat)[-1]}))
# Model input
params <- c(r1 = r_start[1], r2 = r_start[2],
            a11 = A_start[1,1], a12 = A_start[2,1],
            a21 = A_start[1,2], a22 = A_start[2,2])
ini <- c(b1 = spp[1,1], b2 = spp[1,2])
tmax <- nrow(spp)
t <- seq(1,tmax,1)
# Model formulation
inv <- 1e-5 # Numerical fudge to avoid biomasses becoming negative.
HS2LLV <- function(time, state, parameters) {
  with(as.list(c(state, parameters)), {
    H1 <- H1(time)
    H2 <- H2(time)
    db1.dt = b1*(r1+a11*b1+a12*(b2^2))-H1*b1+inv
    db2.dt = b2*(r2+a22*b2+a21*(b1^2))-H2*b2+inv
    list(c(db1.dt, db2.dt))
  })
}
# Fdata
matplot(as.numeric(rownames(Fdata)),Fdata, type = "l", xlab = "Time (yr)", 
        ylab = "Fishing Mortality (1/yr)", lty = 1)
# Fit two splines to Fdata to smooth out bumps for fit
library(splines)
Sp.fit <- array(dim = c(nrow(Fdata),ncol(Fdata)))
for (i in 1:ncol(Fdata)) {
  x <- round(seq(1974,2020,length.out = 4), digits = 0)
  y <- Fdata[as.character(x),i]
  ## Fit a couple of quadratic splines with different degrees of freedom
  fit <- lm(y ~ bs(x, degree = 2, df=length(x)-1))
  x0 <- seq(min(x), max(x), by = 1)
  Sp.fit[,i] <- predict(fit, data.frame(x = x0))
}
matlines(1974:2020,Sp.fit, lty = 2, lwd = 2)
H1 <- approxfun(Sp.fit[,1])
H2 <- approxfun(Sp.fit[,2])
# Optimiser
LVmse = function(parms) {
  out = as.matrix(deSolve::ode(ini, 1:tmax, HS2LLV, parms, method="rk4")[,-1])
  RSS = sum((spp-out)^2, na.rm = TRUE)
  return(RSS)
}
# Running model and optimising parameters
optimres1 <- optim(par = params, fn = LVmse)
fit1 <- deSolve::ode(y = ini, time = 1:47, func = HS2LLV, parms = optimres1$par)
# Plot
extrafont::loadfonts(device = "all")
matplot(1974:2020, ObsSSB/10^6, type = "n", xlab = "Time (years)", 
        ylab = "SSB (1000 x tons)", ylim = c(0,2.025))
grid()
matplot(1974:2020, ObsSSB/10^6, pch = 16, col = c("gray", "steelblue"), add = TRUE)
matplot(1974:2020, fit1[,2:3], type = "l", add = TRUE, col = c("gray", "steelblue"), lwd = 2)
legend("topright", legend = c("Herring","Sprat"), 
       lty = c(1,2), col = c("gray", "steelblue"), lwd = 2, bty = "n")
Reasons:
  • Blacklisted phrase (2): was wondering
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thomas

79107746

Date: 2024-10-20 18:19:38
Score: 8.5 🚩
Natty: 5
Report link

I do have the same question. Can someone help here

Reasons:
  • RegEx Blacklisted phrase (3): Can someone help
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same question
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: linuxkaran

79107737

Date: 2024-10-20 18:15:37
Score: 2.5
Natty:
Report link

You just need to use strip() on the second part.

Like this = [x.split(' ')[1].strip() for x in open('StudentVoters.txt').readlines()]

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

79107729

Date: 2024-10-20 18:13:36
Score: 2
Natty:
Report link

I had the same problem as you, just remove Erlang and RabbitMQ on your OS, then login with your administrator account and install again.

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

79107714

Date: 2024-10-20 18:07:35
Score: 0.5
Natty:
Report link

Do you want to keep only the first day of the quarter?

WITH flash_date_table as (Select * from unnest(GENERATE_DATE_ARRAY("2024-01-07", DATE_ADD(CURRENT_DATE(),INTERVAL 1 QUARTER), INTERVAL 1 QUARTER)) as flash_date)

SELECT *  from 
Test.staff_time # your table with column date: cal_date
right join
flash_date_table
on cal_date=flash_date
WHERE cal_date>="2024-01-07"
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Samuel

79107713

Date: 2024-10-20 18:06:35
Score: 4
Natty:
Report link

I have the same issue. Once you purchase a subscription, it works fine, but when the user plans to downgrade a subscription, the currentEntitlements will only list the active one, which might not be expired yet. Due to this the user does not see the updated subscription period.

I guess your users have the same issue. Once the current subscription period expired, the changed subscription will appear automatically.

I have found some suggestions, but cannot code it. autoRenewalPreference should show the updated productid for the next coming subscription product, so the downgraded one, but cannot figure out how to get this value from code.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Me too answer (0): have the same issue
  • Low reputation (0.5):
Posted by: Endre Olah

79107708

Date: 2024-10-20 18:04:34
Score: 2.5
Natty:
Report link

As of Android 34 you need to declare the foreground service type in your manifest. See here for details

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

79107692

Date: 2024-10-20 17:58:30
Score: 13.5 🚩
Natty: 6.5
Report link

Did somebody got the autoRenewPreference working? I cannot find out how this should be used. When I downgrade a subscription, the currentEntitlement is only giving the right value, when the actual subscription is expired. This gives a false feeling of the user as in the meantime the subscription is downgraded.

Appstore is showing this properly, so there must be a way to get this out fro the jungle.

Any suggestion, code sample? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): Did somebody got the
  • RegEx Blacklisted phrase (2): Any suggestion
  • RegEx Blacklisted phrase (2): working?
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did somebody
  • Low reputation (1):
Posted by: Endre Oláh

79107682

Date: 2024-10-20 17:50:28
Score: 1
Natty:
Report link
styles={{ header: { borderBottom: "none" } }}

This solution worked for me.

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

79107669

Date: 2024-10-20 17:43:26
Score: 0.5
Natty:
Report link

You cannot have the same two keys in map. Once you have tried to write a value with the same key, it will override previous value. What I mean: enter image description here

If you want to check if a Map contains some key before writing it to it, you can just use Map.has method:

if (map.has(key)) throw new Error(`Map is already contains key: "${key}"`)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: egorgrushin

79107664

Date: 2024-10-20 17:40:26
Score: 1
Natty:
Report link

The number of tokens used doesn't make sense, even if we take into account the tokens of the user question + conversation history (in my case not existing) + instructions for intent generation and then user question + conversation history + document chunks + role information + instructions for generation. In my case, I'm retrieving 3 chunks of 256 tokens, asking a very small prompt and it results in ~3k tokens. The only possibility would be that both the instructions (for intent and generation) are really huge.

More details here: https://learn.microsoft.com/en-us/answers/questions/2103832/high-token-consumption-in-azure-openai-with-your-d.

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

79107658

Date: 2024-10-20 17:36:25
Score: 2
Natty:
Report link

You have caching problem. You use Litespeed caching. You can clear your chache manually from server like this link explained


OR


you can include ur js files with version number like ?v=1.1

<script src="/sliderComponent.js?v=1.1"></script>
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ferid

79107647

Date: 2024-10-20 17:30:24
Score: 0.5
Natty:
Report link

I had this same issue with a project I am working on using version 6. This problem can happen if you do not have a transition or the transition has a condition attached that is keeping the animation from moving to another state. Your animation has to move to another state before the OnStateExit will fire.

Example: You have Idle and Jump animations. The user taps the "J" key, which triggers the Jump animation. The Jump animation doesn't transition to exit or back to idle, so the OnStateExit is never called. Make sure no condition blocks the transition from firing.

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

79107639

Date: 2024-10-20 17:27:23
Score: 1
Natty:
Report link

It was much easier than it looked. So, the issue was my internet connection. I don't know what exactly has happened, but something was blocking Android Studio's access to Google and others necessary services. As soon as I tried to open Android Studio via my mobile Internet, everything has worked properly! I wont delete this in case somebody has the same issue. Hey, bro, i had the same problem as you probably have now. Just try to do the same thing with another wi-fi. Love everybody! :)

Reasons:
  • Whitelisted phrase (-1): i had the same
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Артём Грищенко

79107635

Date: 2024-10-20 17:25:22
Score: 2.5
Natty:
Report link

That's what the retry method is for, no?

(method) Job<any, any, string>.retry(state?: FinishedStatus): Promise

Attempts to retry the job. Only a job that has failed or completed can be retried.

@param state — completed / failed

@returns If resolved and return code is 1, then the queue emits a waiting event otherwise the operation was not a success and throw the corresponding error. If the promise rejects, it indicates that the script failed to execute

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @param
  • User mentioned (0): @returns
  • Low reputation (0.5):
Posted by: AndreLung

79107633

Date: 2024-10-20 17:25:22
Score: 8
Natty: 7
Report link

Can I contact you via telegram. If so, can I have your link?

Reasons:
  • Blacklisted phrase (2): Can I contact
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can I
  • Low reputation (1):
Posted by: Otec Lee

79107631

Date: 2024-10-20 17:24:21
Score: 0.5
Natty:
Report link

The Card color in Flutter using Material 3 is not only determined by the color parameters but also by its elevation and the color of the item it is drawn on, using a complicated formula. If you draw a Container with your deep orange color that should show as you'd expect (deep Orange). Card colors in my experience are impossible to predict and best left unset so it follows the color scheme and elevation automatically.

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

79107600

Date: 2024-10-20 17:07:18
Score: 2
Natty:
Report link

The ContractCompanion project uses different packages and libraries to reverse engineer the ABI of unverified contracts from raw bytecode. The project also features a front-end interface for interacting with unverified contracts.

https://github.com/DOBEN/ContractCompanion

https://deployment-vercel-dqhc.vercel.app/

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

79107597

Date: 2024-10-20 17:05:18
Score: 2.5
Natty:
Report link

Technically you can put a div or anything inside of a span that you could inside of a body. A span is kind of like another type of div its a subtitle area so you for things like captions or small text but you can put pictures in there too. Try reading this link I've found this website to be very helpful throughout the years, it'll provide a full explanation of what the span element is: https://www.w3schools.com/tags/tag_span.asp

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Low reputation (1):
Posted by: TheEngineerM

79107594

Date: 2024-10-20 17:04:18
Score: 5
Natty: 3.5
Report link

I am trying scrape the info here too. If you succeeded, please contact me.

Reasons:
  • Blacklisted phrase (0.5): contact me
  • Blacklisted phrase (1): please contact me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Azamat Yessimkhanuly

79107592

Date: 2024-10-20 17:03:17
Score: 4
Natty:
Report link

enter image description here

I couldn't see the First row uncheck option of Sink properties

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: thichxai

79107587

Date: 2024-10-20 17:00:16
Score: 1
Natty:
Report link

Setting "optimization->styles->inlineCritical: false" does not work for angular ssr as far as i know.

If the script is fine for you, just add it to script-src csp:

script-src 'self' 'sha256-lAv2mkGJp6SGGEBjSBtNofGW0z9UbIkFVrzyccLfMb0='
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kotsy

79107581

Date: 2024-10-20 16:57:15
Score: 1.5
Natty:
Report link

I also had this error. I solved it by installing version 20 of nodejs

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mendes Apolo

79107575

Date: 2024-10-20 16:56:14
Score: 0.5
Natty:
Report link

You can change the tokenizer's vocabulary:

tokenizer.add_tokens(["asadaf", "sdfsaf"])
model.resize_token_embeddings(len(tokenizer)) # change input embeddings size
input_text = "This is asadaf and sdfsaf"
print(tokenizer(input_text))

As a result, asadaf and sdfsaf would be tokenized as unique words.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Treetagger is a nightmare

79107569

Date: 2024-10-20 16:53:14
Score: 4
Natty: 5
Report link

By using export ANSIBLE_HOST_KEY_CHECKING=False all works on Ubuntu. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: pafcio

79107563

Date: 2024-10-20 16:50:13
Score: 1
Natty:
Report link

So finally I realized that their image in their sample is outdated. I updated it from 2.0.9 to 3.0.9 and it started working fine.

The string to append to the url is from their documentation by the way, if there is a sql error about retrieving public keys.

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

79107561

Date: 2024-10-20 16:49:12
Score: 1.5
Natty:
Report link

Old question but for the smart people like me, wasting hours on this.

The template is under multiplatform. You need to remove other targets if you only want to build for MacOS.

au project under multiplatform

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

79107550

Date: 2024-10-20 16:46:10
Score: 8.5 🚩
Natty:
Report link

What is the problem here? Could you please share your problem here?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please share your
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Dipesh Khanal

79107547

Date: 2024-10-20 16:43:09
Score: 0.5
Natty:
Report link

So I have came across the same problem, the problem is that when you create a new flutter project. The framework doesn't add a "Build tools" on your app/build.gradle.

The solution to this is that you must add "buildToolsVersion = "34.0.0"" depending on the version of android sdk you're using. Then follow: Flutter : How to change Android minSdkVersion in Flutter Project? to update your flutter dev directory to the latest compileSdkVersion = 34, minSdkVersion = 21, and targetSdkVersion = 34.

It can be any sdk version on minSdkVersion, depending on your project target audience.

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

79107540

Date: 2024-10-20 16:40:08
Score: 2.5
Natty:
Report link

It's likely that createApolloClient function is being called multiple times, which results in multiple Apollo Client instances being created. In Apollo Dev Tools, there is an option to select which instance to view. Declare only one instance, or select the correct instance in the Dev Tools.

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

79107538

Date: 2024-10-20 16:40:08
Score: 2
Natty:
Report link

The problem here is that by using a char * cout assumes that address refers to the beginning of a '\0' terminated string but since you took it from the address of a single char it will look for the '\0' beyond "valid" memory, if you wanna print a single char just use the 'char ch' variable, if you wanna print the address's pointer do as Tim Roberts did.

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

79107536

Date: 2024-10-20 16:38:08
Score: 0.5
Natty:
Report link

I was able to reproduce the error by setting spark.executor.memory to a value greater than 2G (where my Spark nodes all have 2G RAM)

This works:

spark-submit --num-executors=6 --conf spark.driver.memory=1G  --conf spark.executor.memory=2G --deploy-mode client test.py 

With spark.executor.memory=3G I get the same error

spark-submit --num-executors=6 --conf spark.driver.memory=1G  --conf spark.executor.memory=3G --deploy-mode client test.py 
. . .
WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources

You should check if your worker with 16GB RAM is really available to the Spark driver, I cannot explain otherwise where the limitation comes from (the number of executors is irrelevant, as they can always be started sequentially).

By the way: I was not able to use spark.driver.memory=500M, minumum allowed for my cluster was 550M:

py4j.protocol.Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.
: java.lang.IllegalArgumentException: System memory 466092032 must be at least 471859200. Please increase heap size using the --driver-memory option or spark.driver.memory in Spark configuration.
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): I get the same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I get the same error
  • High reputation (-2):
Posted by: user2314737

79107535

Date: 2024-10-20 16:38:08
Score: 1
Natty:
Report link

This can also happen when index.js is added to the src folder without performing a build before packing.

npm run build
npm pack
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KrimblKrum

79107528

Date: 2024-10-20 16:36:07
Score: 2.5
Natty:
Report link

I followed the steps above but though I installed opt/anaconda3 to my User folder still get installation failed at the last step. I added both User/opt and Uer/opt/Anaconda3 paths to me directory as well. Can't call base conda

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Furkan Yılmaz

79107526

Date: 2024-10-20 16:36:07
Score: 2
Natty:
Report link

To fix the problem, you can add the following section to your Webpack configuration:

resolve: {
      mainFields: ['es2015', 'browser', 'module', 'main']
    }

This would ensure that Webpack correctly picks the right module entry points; that could potentially prevent issues from surfacing, possibly those related to class constructors and module loading

check this link

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jithin j

79107519

Date: 2024-10-20 16:34:06
Score: 2
Natty:
Report link

I clicked the "Run Code Snippet" button on your code and it returned with an error: "one.forEach is not a function" that's your problem. try something different like a for loop or a while loop with variables (same thing). It may autocorrect into forEach for you if you have a library installed but you're better off using a default javascript function

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

79107518

Date: 2024-10-20 16:33:06
Score: 2
Natty:
Report link

The ContractCompanion project provides additional tools for finding function selectors in raw bytecode, as outlined in its ReadMe. The project also features a front-end interface for interacting with unverified contracts.

https://github.com/DOBEN/ContractCompanion

https://deployment-vercel-dqhc.vercel.app/

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