79316323

Date: 2024-12-29 20:56:27
Score: 1.5
Natty:
Report link
procedure TfrmOrcamento.btnSalvarClick(Sender: TObject);
var
    i : integer; 
    vValor : Double;
begin    
    for i := 0 to Pred(listaOrcamento.Count) do
        begin
              vValor:=vValor+
              TfrmTipoOrc(listaOrcamento.ListItems[i].Components[0]).edValor.Value;
        end;
end;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Valdir Sola

79316320

Date: 2024-12-29 20:53:25
Score: 1
Natty:
Report link

I use this two condition on the date I'm testing against.

=EOMONTH(TODAY(); -1)+1
and
=EOMONTH(TODAY();0)

enter image description here

The other method to test for the date is not taking into account the year and would get you the data from the past years.

You would need to do the following, which is longer.

=AND(YEAR('Date')=YEAR(TODAY());MONTH('Date')=MONTH(TODAY()))
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Victor Jozwicki

79316316

Date: 2024-12-29 20:50:25
Score: 1
Natty:
Report link

No, this is not a bug. In toHaveBeenCalledWith, the arguments are checked positionally, as explained in the first comment.

If you run into this problem and would like to avoid it for console.log specifically, a relatively simple fix is to use template strings in Javascript instead of passing arguments that console.log concatenates with a space. A template string uses backticks (`) to delineate the string, and will execute code which is placed between ${ and } inside the string. The result is a single string, parts of which are the result of executing the code in the ${} parts, and so console.log will get called with a single argument. Thus, your call to any of the various Jest matchers will see the whole string as the first argument.

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

79316312

Date: 2024-12-29 20:49:25
Score: 3.5
Natty:
Report link

I've ran into the same issue. For some reason, adding +1 to itemIndex works. Without the +1, it also doesn't seem to scroll to the right amount ever. Maybe it's for some reason 1-indexed?

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

79316308

Date: 2024-12-29 20:45:24
Score: 2
Natty:
Report link

/Volumes vs /volumes are different. For example I was setting GITLAB_HOME=/volumes/ext_ssd1/gitlab and it kept on erroring out.

/Volumes was already part of Docker but still it kept saying mount denied.

Changing from /volumes to /Volumes helped.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kalathil Ajay Menon

79316302

Date: 2024-12-29 20:42:24
Score: 2
Natty:
Report link

Answering my own question to help others who might face the same issue in the future. While I still don't understand why in some cases the script_score gets called more than once, I was able to fix the scoring.

To prevent the scoring from being summed or multiplied I added boost_mode: replace parameter like below:

{
  "query": {
    "function_score": {
      "query": { ... },
      "boost_mode": "replace", // Adding this fixed the issue for me
    }
}

I found this solution by looking at OpenSearch docs https://opensearch.org/docs/latest/query-dsl/compound/function-score

You can specify how the score computed using all functions[1] is combined with the query score in the boost_mode parameter, which takes one of the following values:

  • multiply: (Default) Multiply the query score by the function score.
  • replace: Ignore the query score and use the function score.
  • sum: Add the query score and the function score.
  • avg: Average the query score and the function score.
  • max: Take the greater of the query score and the function score.
  • min: Take the lesser of the query score and the function score.

[1] Note that the boost_mode works in both scenarios: whether you have a single function (as in my case) or multiple functions (also in case of multiple functions you might want to look at score_mode parameter too from the same docs page that I provided its link above)

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Amjed Omar

79316299

Date: 2024-12-29 20:38:23
Score: 2
Natty:
Report link

you can use quiktime to record the sound then add it to the video.

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

79316289

Date: 2024-12-29 20:33:22
Score: 0.5
Natty:
Report link

Is there any reason that irq_callback_table needs to be an std::array<>? If it were an old fashioned C style array, there would be no bounds checking whatsoever so no possibility of an exception.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • High reputation (-2):
Posted by: Mark Ransom

79316282

Date: 2024-12-29 20:25:19
Score: 6 🚩
Natty:
Report link

Hey maybe the following question can help you out: When to use ModelAndView vs Model in Spring?

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

79316271

Date: 2024-12-29 20:19:18
Score: 0.5
Natty:
Report link

It is similar to leaflet demo page example. I would suggest to add the markers themselves instead of several layers

  sedi.forEach((sede) => {
      const marker = L.marker([sede.lat, sede.lng]).addTo(map).bindPopup(`<b>${sede.name}</b>`)
      markers.addLayer(marker) 
    })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: v-g

79316270

Date: 2024-12-29 20:19:18
Score: 0.5
Natty:
Report link

This is heavily dependent on "what" and "which" and other questions. I believe I have read somewhere that reference is in general the fastest method of passing larger pieces of data around in Rust. You will get different results based on the size, the access, possible the type and to mix it all up, even your environment and other running processes can affect the results. The same benchmark test could differ in end results depending on your system.

I made some very un-scientific tests, and on my system, the fewer iterations i made the relatively slower the reference method became, while it would catch up as i increased the # of iterations.

In the lower end of iterations the reference was taking twice the time as the no_reference, and as i increased the time difference would decrease. By the 10_000_000 mark the difference was less than 1%.

Currently it is iterating through 1_000_000_000_000_000, and by the time of writing this, it wasn't finished. yeah.. didn't really think that one through when I clicked run!

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

79316266

Date: 2024-12-29 20:18:17
Score: 3.5
Natty:
Report link

I was able to resolve this by switching for dayGridYear to just dayGrid.

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

79316258

Date: 2024-12-29 20:12:16
Score: 2.5
Natty:
Report link

For my case, the build from Qt worked but exe did not. I had to copy the "sqldrivers" folder and all its DLLs from Qt folder to deployment folder next to exe file. Remember to dump the folder and its content there not just the contents, it's looking for the path in that folder.

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

79316255

Date: 2024-12-29 20:12:16
Score: 3.5
Natty:
Report link

Are you successful in the end? I'm trying to integrate mega.io into my flutter project too and I can't do it

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jean-bonheur GHEZO

79316246

Date: 2024-12-29 20:08:15
Score: 8 🚩
Natty: 4.5
Report link

Hi instgram my instgram account is Huck my account name @get_fit_withkulsum My account is Huck no access gmail account and phone number changed and please recover my Instagram account very important my account please reset link send is email [email protected] My account is Huck no access email account phone number reset password please help me instgram

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me in
  • Contains signature (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @get_fit_withkulsum
  • Low reputation (1):
Posted by: get_fit_withkulsum

79316232

Date: 2024-12-29 19:54:12
Score: 2.5
Natty:
Report link

screeninfo is a dependency of ursina, it looks as if you need to install it manually:

pip install ursina

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

79316228

Date: 2024-12-29 19:50:10
Score: 8.5 🚩
Natty: 5.5
Report link

have you figured it out, how to do silent sign in with the new Credential Manager?

Reasons:
  • RegEx Blacklisted phrase (3): have you figured it out
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gmc

79316227

Date: 2024-12-29 19:50:10
Score: 1.5
Natty:
Report link

I had the same error but nothing worked for me. So, I replaced ntlk.download('punkt') with ntlk.download('punkt_tab') and it worked. Actually "punkt_tab" is a newer, more accurate version of the same tokenizer.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: muhammad salman

79316220

Date: 2024-12-29 19:45:07
Score: 10 🚩
Natty: 5.5
Report link

I"ve been noticing the same issue. EMA on NT8 varies from Tradingview and TOS. Did you ever figure out, how to make NT8 match Tradingview? I've also noticed that TOS and Tradingview are exactly the same EMA's. meaning they match. I'd like to match Nt8 to them. Thanks in Advance!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in Advance
  • RegEx Blacklisted phrase (3): Did you ever figure out
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shark

79316206

Date: 2024-12-29 19:35:05
Score: 2.5
Natty:
Report link

use const userId = String(user._id); // Safely convert _id to a string const userData = JSON.stringify(user); // Serialize the user object

redis.set(userId, userData); // Store the data in Redis

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

79316200

Date: 2024-12-29 19:30:03
Score: 2.5
Natty:
Report link

No, SCTE-35 does not work with mp4, but does work with mp4 hls or dash.

https://github.com/futzu/threefive does scte35 insertion for mpegts, hls, and dash.

tsduck is great software as well, I have a lot of respect for it.

Those are the only two packages I would use for SCTE-35.

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

79316197

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

As it may be late for your question. Please email me on <redacted>, if you are still interested.

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

79316186

Date: 2024-12-29 19:17:00
Score: 2
Natty:
Report link

I was looking for the very same thing and found the module WebServer on PowerShell Gallery handling file uploads just right.

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

79316181

Date: 2024-12-29 19:13:57
Score: 8.5 🚩
Natty:
Report link

I am facing a similar error with the waller. test in agricolae. I tried to trace it but I've totally failed to rectify it Here is a glimpse of my data frame: print(obj1) ID code bp stage dose rep day numberinitiated numberhealth numberdead 1 1 BAA n a A 1 0 10 10 0 2 2 BAA n a A 2 0 10 10 0 3 3 BAA n a A 3 0 10 10 0 4 4 BPA n p A 1 0 10 10 0 5 5 BPA n p A 2 0 10 10 0 6 6 BPA n p A 3 0 10 10 0 7 7 BLA n l A 1 0 10 10 0 8 8 BLA n l A 2 0 10 10 0 9 9 BLA n l A 3 0 10 10 0 10 10 BAF b a F 1 0 10 10 0 11 11 BAF b a F 2 0 10 9 1 12 12 BAF b a F 3 0 10 10 0 13 13 BPF b p F 1 0 10 9 1 14 14 BPF b p F 2 0 10 10 0 15 15 BPF b p F 3 0 10 9 1 16 16 BLF b l F 1 0 10 9 1 17 17 BLF b l F 2 0 10 9 1 18 18 BLF b l F 3 0 10 7 3 19 19 BAE b a E 1 0 10 6 4 20 20 BAE b a E 2 0 10 6 4 21 21 BAE b a E 3 0 10 6 4 22 22 BPE b p E 1 0 10 1 9 23 23 BPE b p E 2 0 10 3 7 24 24 BPE b p E 3 0 10 2 8 25 25 BLE b l E 1 0 10 8 2 26 26 BLE b l E 2 0 10 6 4 27 27 BLE b l E 3 0 10 7 3 28 28 BAD b a D 1 0 10 0 10 29 29 BAD b a D 2 0 10 1 9 30 30 BAD b a D 3 0 10 2 8 31 31 BPD b p D 1 0 10 6 4 32 32 BPD b p D 2 0 10 0 10 33 33 BPD b p D 3 0 10 0 10 34 34 BLD b l D 1 0 10 9 1 35 35 BLD b l D 2 0 10 5 5 36 36 BLD b l D 3 0 10 7 3 37 37 BAC b a C 1 0 10 9 1 38 38 BAC b a C 2 0 10 9 1 39 39 BAC b a C 3 0 10 8 2 40 40 BPC b p C 1 0 10 6 4 41 41 BPC b p C 2 0 10 9 1 42 42 BPC b p C 3 0 10 8 2 43 43 BLC b l C 1 0 10 7 3 44 44 BLC b l C 2 0 10 8 2 45 45 BLC b l C 3 0 10 8 2 46 46 BAB b a B 1 0 10 0 10 47 47 BAB b a B 2 0 10 0 10 48 48 BAB b a B 3 0 10 1 9 49 49 BPB b p B 1 0 10 5 5 50 50 BPB b p B 2 0 10 0 10 51 51 BPB b p B 3 0 10 0 10 52 52 BLB b l B 1 0 10 0 10 53 53 BLB b l B 2 0 10 10 10 54 54 BLB b l B 3 0 10 0 10 55 55 MAF m a F 1 0 10 10 0 56 56 MAF m a F 2 0 10 10 0 57 57 MAF m a F 3 0 10 10 0 58 58 MPF m p F 1 0 10 10 0 59 59 MPF m p F 2 0 10 10 0 60 60 MPF m p F 3 0 10 10 0 61 61 MLF m l F 1 0 10 10 0 62 62 MLF m l F 2 0 10 10 0 63 63 MLF m l F 3 0 10 10 0 64 64 MAE m a E 1 0 10 10 0 65 65 MAE m a E 2 0 10 10 0 66 66 MAE m a E 3 0 10 10 0 67 67 MPE m p E 1 0 10 10 0 68 68 MPE m p E 2 0 10 10 0 69 69 MPE m p E 3 0 10 10 0 70 70 MLE m l E 1 0 10 10 0 71 71 MLE m l E 2 0 10 10 0 72 72 MLE m l E 3 0 10 10 0 73 73 MAD m a D 1 0 10 10 0 74 74 MAD m a D 2 0 10 10 0 75 75 MAD m a D 3 0 10 10 0 76 76 MPD m p D 1 0 10 10 0 numberinfected event PctMrt 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 7 0 0 0 8 0 0 0 9 0 0 0 10 0 0 0 11 0 0 10 12 0 0 0 13 0 0 10 14 0 0 0 15 0 0 10 16 0 0 10 17 0 0 10 18 0 0 30 19 0 0 40 20 0 0 40 21 0 0 40 22 0 0 90 23 0 0 70 24 0 0 80 25 0 0 20 26 0 0 40 27 0 0 30 28 0 0 100 29 0 0 90 30 0 0 80 31 0 0 40 32 0 0 100 33 0 0 100 34 0 0 10 35 0 0 50 36 0 0 30 37 0 0 10 38 0 0 10 39 0 0 20 40 0 0 40 41 0 0 10 42 0 0 20 43 0 0 30 44 0 0 20 45 0 0 20 46 0 0 100 47 0 0 100 48 0 0 90 49 0 0 50 50 0 0 100 51 0 0 100 52 0 0 100 53 0 0 0 54 0 0 100 55 0 0 0 56 0 0 0 57 0 0 0 58 0 0 0 59 0 0 0 60 0 0 0 61 0 0 0 62 0 0 0 63 0 0 0 64 0 0 0 65 0 0 0 66 0 0 0 67 0 0 0 68 0 0 0 69 0 0 0 70 0 0 0 71 0 0 0 72 0 0 0 73 0 0 0 74 0 0 0 75 0 0 0 76 0 0 0

Here is the code: Effmodel <- lm(event ~ dose, data = obj1) summary(Effmodel) anovaEff <- anova(Effmodel) waller.test (Effmodel, "dose", group = TRUE)

Here is the error: waller.test (Effmodel, "dose", group = TRUE) Error in if ((K - IN0/ID0) * (K - IN1/ID1) <= 0) b0 <- t : missing value where TRUE/FALSE needed

Please help me as I#ve been stuck for 4 hours and googling the error is not helping

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing a similar error
  • Unregistered user (0.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Joan

79316166

Date: 2024-12-29 18:59:54
Score: 1
Natty:
Report link

Ran into a similar issue - disabling the rp-filter did help:

... in many cases the reverse path filter may decide to drop your intercepted packets. The rp_filter can't be disabled globally, so for each interface do:

sysctl net.ipv4.conf.${INT}.rp_filter=0

Reference: https://powerdns.org/tproxydoc/tproxy.md.html

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

79316165

Date: 2024-12-29 18:59:54
Score: 2
Natty:
Report link

In my case, I gave file name as global.js and it was conflicting with some node.js files, renaming the file fixed for me

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Ali Yar Khan

79316163

Date: 2024-12-29 18:59:54
Score: 3.5
Natty:
Report link

I reformulate my need more simply

I have 3 environments

Each of these environments has the FIREBASE_DSN secret with a value specific to its environment:

enter image description here

enter image description here

Secrets are linked to an environment so detection should be done automatically, but there is no variable proposed by github to automatically detect the environment, this does not work. Is the only solution to copy my .yaml file 3 times?

 environment: dev  # <-- Here!
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sofian

79316159

Date: 2024-12-29 18:56:53
Score: 1.5
Natty:
Report link

Use string-to-react-component package, which is a robust solution for converting strings to JSX within React applications. It parses the string to extract the component structure, making it a great choice for applications that require dynamic rendering of components from string inputs.

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

79316158

Date: 2024-12-29 18:56:53
Score: 3
Natty:
Report link

undefined and false are distinct values. false is a defined Boolean value, while undefined signifies the absence of a value.

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

79316155

Date: 2024-12-29 18:54:52
Score: 3.5
Natty:
Report link

Active extension=sodium in php.ini solve my problem. Laravel 11

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

79316153

Date: 2024-12-29 18:53:52
Score: 2.5
Natty:
Report link

Argument of type 'unknown' is not assignable to parameter of type 'RedisKey'.

redis.set(user._id, JSON.stringify(user) as any)

first lines are error and second line is code, im trying upload session data to redis

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

79316150

Date: 2024-12-29 18:51:52
Score: 2.5
Natty:
Report link

/storage/emulated/0 is a restricted directory, so you can't run the command there. Try running it in the location where you want to put the project.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: VulpineFriend 87

79316146

Date: 2024-12-29 18:48:51
Score: 1.5
Natty:
Report link

There is no way an element returns an empty bounding client rect, you just need to look a bit harder.

For example.com:

cy.visit('https://example.com');

cy.get('h1')
  .first()
  .then(($target) => {
    let coordsDrop = $target[0].getBoundingClientRect();
    cy.log('coordsDrop', coordsDrop);
    console.log('coordsDrop', coordsDrop);
  })

The log:

enter image description here

Click the log entry:

enter image description here

or use consolg.log(coords)

enter image description here

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

79316140

Date: 2024-12-29 18:43:49
Score: 5
Natty: 5
Report link

I have modified a html animation on my own and I'd like to run it on github in just a click without downloading it. Is is possible?

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

79316132

Date: 2024-12-29 18:39:48
Score: 4.5
Natty:
Report link

I mean, I should have saved the data coming from the api to shared_preference, I want to save it but for some reason my data is not being saved.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Azizbek Asqaraliyev

79316131

Date: 2024-12-29 18:38:47
Score: 1.5
Natty:
Report link

Thanks to @AdrianKlaver in the comments - got me on the right track.

Here's the solution I went with to ensure a COMMIT was issued:

from sqlalchemy import create_engine
from sqlalchemy.schema import CreateSchema


def main():
    conn_str = "postgresql+psycopg2://philipjoss:Mombassa11@localhost/belgarath_test"

    engine = create_engine(conn_str, echo=True)

    with engine.connect().execution_options(isolation_level="AUTOCOMMIT") as connection:
        with connection.begin():
            connection.execute(CreateSchema("test_schema"))


if __name__ == "__main__":
    main()
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @AdrianKlaver
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jossy

79316122

Date: 2024-12-29 18:33:46
Score: 1
Natty:
Report link

You can enable properties globally by putting a line at the top of your document like here and there:

#+PROPERTY: header-args:bash :results output verbatim :async yes :session execute-asynchronously

Important: don't forget to refresh properties by C-c C-c with cursor on top of properties. More info here

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

79316121

Date: 2024-12-29 18:32:45
Score: 0.5
Natty:
Report link

Check the Action if name is in use property of the actual publication article. See if you want to set it to Keep existing object unchanged to avoid table being recreated each time.

enter image description here

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

79316118

Date: 2024-12-29 18:29:45
Score: 3
Natty:
Report link

working with me, just run python3 app.py instead of flask run, flask run just use your defined ip in main, but run by python3 can know all ip in local and network

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Khôi Nguyễn Vũ

79316108

Date: 2024-12-29 18:23:43
Score: 1.5
Natty:
Report link

I can make any root website for LG webos tv And LG netcast tv?

Aderess:atvroot.mylg

How to root: open This webpage on your LG webos or netcast tv,click on a Button saying root the tv or click on a text saying APK click And gets open the yes on a option saying solicitation atvroot.mylg click on yes Button And gets open a thing of gets download Netflix or prime vídeo or Disney plus login And make a exploration on your tv later gets restart your tv automatically in 5 seconds, later of restart gets install a Appstore called of WebOs Look Start Appstore And later of install The look start Appstore, you are acess With Very Apps And games Of Is Not Compatible With Our TV And Finish.

Note:You Must Open This WebPage On Your LG Smart TV To explore.

Supported System Versions: NetCast 2.0 Or More Recent.

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

79316102

Date: 2024-12-29 18:20:42
Score: 6 🚩
Natty: 5.5
Report link

Is a cut S, whith every arc that crosses S being saturated, always a minimum cut?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is a
  • Low reputation (1):
Posted by: Angel Meneg

79316101

Date: 2024-12-29 18:18:41
Score: 2
Natty:
Report link

I managed to make it work in my project, thanks to the example provided by Svyatoslav Danyliv, the references shared by Alexander Petrov, and the help from the people in the comments. Thank you all!

Basically, what I needed to do was create a DbContext builder. This builder receives the company to be queried, constructs the connection string, and dynamically defines the table names to be queried (only the mapped ones, of course). In the end, it returns a DbContext referencing only the tables and database for that specific company.

I created a demo project for anyone who wants to test it out. If possible, feel free to submit pull requests with suggestions for improvements. I’ve never used EF Core in this way before, so there’s a chance it’s not implemented in the best way.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Breno Pimentel da Silva

79316099

Date: 2024-12-29 18:18:41
Score: 3.5
Natty:
Report link

Here is an example site that uses the api to randomly generate country flag random country generation

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

79316098

Date: 2024-12-29 18:17:41
Score: 3
Natty:
Report link

The connection might be timing out if there's too much delay between requests. You could add a mechanism to send pings.

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

79316085

Date: 2024-12-29 18:10:39
Score: 3.5
Natty:
Report link

I have the same issue with react-native-svg-transformer.I followed the official installation's guide https://www.npmjs.com/package/react-native-svg-transformer. It works fine on browser but when build on Android emulator i got the exact error.

this is the package.json with interested packages:

"dependencies": {
    ...
    "@svgr/core": "^8.1.0",
    "@svgr/plugin-jsx": "^8.1.0",
    "@svgr/plugin-svgo": "^8.1.0",
    "expo": "~52.0.20",
    "path-dirname": "^1.0.2",
    "react": "18.3.1",
    "react-native": "0.76.5",
    "react-native-svg": "15.8.0"
  },
  "devDependencies": {
    ...
    "@babel/core": "^7.25.2",
    "react-native-svg-transformer": "^1.5.0",
  },
Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Peppo 10

79316080

Date: 2024-12-29 18:07:38
Score: 3
Natty:
Report link

Look your react-native.config.js on root of your project, maybe there a lib tha is missing on your package.json.

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

79316079

Date: 2024-12-29 18:07:38
Score: 1.5
Natty:
Report link

Google Places API Nearby is a great choice but gets expensive after your free £200 a month. A better and less expensive choice would be Woosmap Localities Nearby API. Just as rich as Google but about half the price. If you just want restaurants then consider Wyre Data API which allows you to search for restaurants by location, or name or even local authority.

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

79316072

Date: 2024-12-29 18:05:37
Score: 12
Natty: 8.5
Report link

@Stem Florin Did you solve this problem somehow?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem somehow?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Stem
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: k.k.

79316071

Date: 2024-12-29 18:05:37
Score: 2.5
Natty:
Report link

What version of Docker Desktop is installed on your laptop?

Also keep in mind next updates in docker desktop v4.23.0 and above

Removed Compose V1 from Docker Desktop as it has stopped receiving updates. Compose V2 has replaced it and is now integrated into all current Docker Desktop versions. For more information, see Migrate to Compose V2.

Reference: Docker Desktop 4.23.0 release notes

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Grygorii Vydria

79316067

Date: 2024-12-29 18:02:36
Score: 2.5
Natty:
Report link

In my case I had to add a custom constructor with all the values that were coming in JSON object.

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

79316063

Date: 2024-12-29 17:59:35
Score: 2
Natty:
Report link

https://gist.github.com/abakum/5c5861dc3a1bb769560b264d58413b39

Host 12_
 User koka
 HostName 192.168.0.12
 UserKnownHostsFile ~/.ssh/%h
 #For Windows instead of
 #ProxyCommand connect -S 127.0.0.1:1080 %h %p
 #or
 #ProxyCommand nc -x 127.0.0.1:1080 %h %p
 #use plink:
 #reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyHost /d 127.0.0.1 /f
 #reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyMethod /d 2 /f /t REG_DWORD
 #reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyPort /d 1080 /f /t REG_DWORD
 ProxyCommand plink -load D1080 -raw %h -P %p
Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: abakum

79316050

Date: 2024-12-29 17:47:33
Score: 2
Natty:
Report link

According to Angular official docs starting ver 19, in order to keep your components modular, you simply need to update your component to standalone: false

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

79316049

Date: 2024-12-29 17:47:33
Score: 3.5
Natty:
Report link

You can find randomly generated flags in this site random flag generator

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

79316046

Date: 2024-12-29 17:47:33
Score: 2
Natty:
Report link

According to Angular official docs starting ver 19, in order to keep your components modular, you simply need to update your components to standalone: false

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

79316036

Date: 2024-12-29 17:38:31
Score: 1
Natty:
Report link

dir can show content of multiple directories if they are specified ";" separated:

mkdir test\a
mkdir test\b
touch test\a\a1.txt test\a\a2.txt test\b\b1.txt test\b\b3.dat
dir /b test\a;test\b
a1.txt
a2.txt
b1.txt
b3.dat
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Maxim

79316030

Date: 2024-12-29 17:33:30
Score: 1
Natty:
Report link

Use a stream map.

public String getBody() throws IOException {
        StringBuilder stringBuilder = new StringBuilder();
        request.getReader().lines().map(line -> stringBuilder.append(line));
        return stringBuilder.toString();
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: robertomessabrasil

79316025

Date: 2024-12-29 17:29:28
Score: 9
Natty: 10.5
Report link

Same issue, did you solve it deleting MobileAds.initialize?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1): Same issue
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Cheloespinoza

79316005

Date: 2024-12-29 17:18:26
Score: 3
Natty:
Report link

As of December 2024, I still get null for email using OAuth 2.0 even with providing the necessary URLs.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tamás H

79315997

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

In web scraping, you are doing a reverse process to get the data. That means you don't follow the requests from the beginning, you must follow them from the endpoint.

Remember, you are working against a back-end developer trying to prevent you from scraping the data.

How to do that?

for example:

The link you are trying to scrap is loading the results in POST request not GET.

Also don't forget to check the cookies, to see if it's mandatory to get the results or optional.

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

79315991

Date: 2024-12-29 17:08:22
Score: 2.5
Natty:
Report link

I created a vscode extension to run scripts within the script, after_script and before_script sections in a child process and output it in vscode panel.

That should reduce feedbacktime for ci-jobs. Also I integrated shellcheck into such sections while keeping yaml syntax in tact.

You can check it out here: https://marketplace.visualstudio.com/items?itemName=matthiesen-technology.yaml-with-script

Check it out, reviews and feedback very appreciated! :)

I will probably integrate gitlab-ci-local in the future to make it even easier to start and test jobs from vscode.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): check it out
  • Blacklisted phrase (0.5): Check it out
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexander Matthiesen

79315983

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

If it's not something major, you can try using git reset to revert to a suitable commit before the conflicts, and then use git pull to fetch all the changes. This should resolve all your conflicts.

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

79315974

Date: 2024-12-29 16:56:20
Score: 1
Natty:
Report link
    URL url = new URL(endPoint);
    String encoding = Base64.encodeBase64String(this.key.getBytes());

    connection = (HttpURLConnection) url.openConnection();
    connection.setRequestMethod("POST");
    connection.setDoOutput(true);
    connection.setRequestProperty  ("Authorization", "Basic " + encoding);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amirxshot

79315964

Date: 2024-12-29 16:50:19
Score: 0.5
Natty:
Report link

It finally worked! I solved the problem by adding distributionUrl=https://services.gradle.org/distributions/gradle-8.0-all.zip in the android/gradle/wrapper/gradle-wrapper.properties file and change gradle old gradle.zip

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tarun kumar

79315956

Date: 2024-12-29 16:46:18
Score: 2.5
Natty:
Report link

In my case, I forgot to check all checkboxes for the projects when defining dart sdk path

enter image description here

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

79315945

Date: 2024-12-29 16:36:16
Score: 1.5
Natty:
Report link

anyone who have problem about Not able to detect the update in AppUpdateInfo can watch this video. He explain everythnig

Reasons:
  • Blacklisted phrase (1): this video
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Ucdemir

79315941

Date: 2024-12-29 16:35:16
Score: 1.5
Natty:
Report link

i solved that by: set -g pane-border-lines simple

Reasons:
  • Whitelisted phrase (-2): i solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lotfi laroussi

79315938

Date: 2024-12-29 16:31:15
Score: 2.5
Natty:
Report link

I created an App to simulate the low memory situation of being killed by the system lmdk process, you can download it from here: https://play.google.com/store/apps/details?id=io.github.twiceyuan.ramkiller

Just click on the app's unique button and wait for your app to be killed (you can see this event in Logcat with a filtered tag of "lmdk").

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: twiceYuan

79315933

Date: 2024-12-29 16:28:14
Score: 1
Natty:
Report link

If you sell both products on the same website, it is recommended to use a single Stripe webhook.

You can differentiate between the two products by implementing one of these options:

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

79315930

Date: 2024-12-29 16:27:14
Score: 4
Natty: 4.5
Report link

Checkout this issue on Github, it solved the problem for me: https://github.com/prisma/prisma/discussions/22837

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

79315919

Date: 2024-12-29 16:20:12
Score: 2
Natty:
Report link

Faced the same issue, it has something to do with setState re-rendering the whole component so the Modal being inside the component gets re-rendered. I moved the whole Modal into a separate file and had all its states in its own component file to fix the issue.

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

79315918

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

In order to make call async you can create Mono.fromSupplier and afterwards subscribeOn a different scheduler, because by default subscription is made on main thread.

Mono.fromSupplier(()->getValue())
.subscribeOn(Schedulers.parallel())
.subscribe(value -> System.out.println(value));

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

79315917

Date: 2024-12-29 16:17:11
Score: 1
Natty:
Report link

I have removed the message 'this field is required' by adding the following in styles.css file.

/* static/css/styles.css */
.errorlist {
    display: none; /* Hide error message */
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mauricio Tamayo

79315913

Date: 2024-12-29 16:15:11
Score: 1.5
Natty:
Report link

Currently it is not possible. Vote for it here:

Add support in Visual Studio 2015 and higher for ECDSA-SHA256 (and not only RSA-SHA256) for code-signing VSIX packages https://developercommunity.visualstudio.com/t/Add-support-in-Visual-Studio-2015-and-hi/10481797

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

79315912

Date: 2024-12-29 16:15:11
Score: 2.5
Natty:
Report link

If there are any developers with a background in 3d reconstruction please reach out here: +1 7168082171

Company/startup in the gaming space would love to talk.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nico D'Ancona

79315909

Date: 2024-12-29 16:10:09
Score: 2.5
Natty:
Report link

You can create listener for event MessageReceived::class, more detail you can watch the presentation by Joe Dixon - "REAL-TIME LARAVEL" at Laracon EU https://www.youtube.com/watch?v=yrL5eCMpqtc

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ART

79315898

Date: 2024-12-29 15:59:07
Score: 4
Natty:
Report link

?

@Html.TextAreaFor(model => model.Comments, 5, 10, new { @class = "form-control ", @style = "width:50%", @readonly = "readonly" })
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @class
  • User mentioned (0): @style
  • User mentioned (0): @readonly
  • Low reputation (1):
Posted by: George Benson

79315891

Date: 2024-12-29 15:56:05
Score: 4
Natty: 4.5
Report link

the pkg config not installing after the produced information is incorrect,please resolve this issue fast.


regards, Mahmadullah

Reasons:
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28978867

79315890

Date: 2024-12-29 15:56:05
Score: 0.5
Natty:
Report link

I STRUGGLED A LOT WITH THIS ONE , Even if you have already build web or initialized or overwrite your index.html doesn't matter just follow this again:

-> firebase build web

-> firebase init

  1. public directory: build/web
  2. overwriting index.html: No

-> firebase deploy --only hosting

do write "only hosting". Worked for me:)

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: user24887728

79315888

Date: 2024-12-29 15:55:05
Score: 3
Natty:
Report link

Your Grafana page does currently not allow displaying it in an iFrame because it is hosted with http, not https. You can see this by opening the Dev Tools on your Wordpress site.

Error message visible in the dev tools on the Wordpress page

So you are right, you can fix this by hosting the Grafana page over https.

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

79315883

Date: 2024-12-29 15:51:04
Score: 0.5
Natty:
Report link

When dealing with skewed data and large datasets, requires a combination of techniques.

I name few. The one I am highlighting are extra suggestions on what you did not try yet.:

  1. Dynamic partition pruning: Use broadcast join only for non-skewed keys. For skewed keys, partition data to ensure better distribution.
  2. Salting with a variation: Using a secondary key in addition to the main_key to generate a more evenly distributed join.
  3. Explicit bucketing
  4. Filter irrelevant data before joining
  5. Broadcast joins for specific conditions

so on and so forth ...

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
Posted by: Ali Saberi

79315877

Date: 2024-12-29 15:48:03
Score: 2
Natty:
Report link

Update google-services.json as it may include new auto-generated keys.

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

79315875

Date: 2024-12-29 15:47:03
Score: 0.5
Natty:
Report link

You can use the package get_word_forms Documentation here: https://github.com/gutfeeling/word_forms

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

79315871

Date: 2024-12-29 15:45:02
Score: 1.5
Natty:
Report link

It sorts the array by the difference between the number stored in the list C with the index passed to the parameter j and the number stored in the list C with the index passed to the parameter i.

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

79315865

Date: 2024-12-29 15:41:01
Score: 1
Natty:
Report link

Better use the OpenGoPro driver.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Martin Zeitler

79315846

Date: 2024-12-29 15:29:59
Score: 2
Natty:
Report link

Have you tried building it from one of the MSL valves, such as Modelica.Fluid.Valves.ValveIncompressible, that take a control signal [0, 1] as input, and then calculate that signal from a pressure sensor on the upstream-side?

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):
  • Low reputation (0.5):
Posted by: Dag B

79315835

Date: 2024-12-29 15:22:58
Score: 1.5
Natty:
Report link

Use a publicizer such as BepInEx.AssemblyPublicizer.MSBuild or Krafs.Publicizer.

They allow full access to the target reference as if everything is public.

They can also create "stripped" versions of assemblies similar to a ref library.

P.S. Sorry for the necro, but this comes up as one of the first Google results.

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

79315825

Date: 2024-12-29 15:16:57
Score: 3.5
Natty:
Report link

So i just figured out that you need to use a newer Intellij version. I used version 2023.1 and it didn't work there now I installed version 2024.3 and it works perfectly!

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

79315815

Date: 2024-12-29 15:05:54
Score: 3
Natty:
Report link

You have encountered a bug, raised an issue on GitHub and a fix was delivered in v22.0.0.13: https://github.com/OpenLiberty/open-liberty/issues/22738

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Benjamin Marwell

79315813

Date: 2024-12-29 15:03:54
Score: 2.5
Natty:
Report link

I tried several tools, this tool resolves the issue and let me update the firmware. ONVIF Studio - https://www.wink.co/wink-onvif-studio.php Its not clear why but it seems it was just a mistake by the manufacture like they put the wrong firmware on when they shipped it but now its good.

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

79315812

Date: 2024-12-29 15:03:54
Score: 0.5
Natty:
Report link

Including a Shinylive app in an R package and displaying it on a pkgdown website hosted via GitHub Pages is indeed possible, but it requires integrating several tools together. Here's a step-by-step guide to help you set this up:

1. Create the Shiny App :

Start by creating your Shiny app as a standalone app. For example:

# inst/shinyapp/app.R
library(shiny)

ui <- fluidPage(
  titlePanel("Shiny App Example"),
  sidebarLayout(
    sidebarPanel(
      sliderInput("obs", "Number of observations:", min = 1, max = 100, value = 50)
    ),
    mainPanel(
      plotOutput("distPlot")
    )
  )
)

server <- function(input, output) {
  output$distPlot <- renderPlot({
    hist(rnorm(input$obs))
  })
}

shinyApp(ui = ui, server = server)

2. Convert the App for Shinylive :

Shinylive uses WebAssembly to run Shiny apps in the browser. To convert your Shiny app:

  1. Install the Shinylive CLI tool from RStudio:
pip install shinylive
  1. Convert your app to Shinylive:
shinylive export inst/shinyapp --output docs/shinyapp

This command generates the necessary files (including HTML, JavaScript, and WebAssembly) in the docs/shinyapp directory, which can be hosted as a static webpage.

3. Add the App to a pkgdown Article :

Pkgdown articles are R Markdown-based vignettes that you can customize to include your Shinylive app.

  1. Create an R Markdown article (e.g., vignettes/shinyapp.Rmd):
---
title: "Shiny App Article"
output: rmarkdown::html_document
---

Include the following HTML snippet in the body to embed the Shinylive app:

<iframe src="shinyapp/index.html" width="100%" height="600" frameborder="0"></iframe>

  1. Build the pkgdown site to confirm the app appears in the article:
pkgdown::build_site()

4. Host the Site on GitHub Pages :

  1. Add the docs/ folder to your GitHub repository.
  2. Enable GitHub Pages in your repository settings and set the source to the docs/ folder.
  3. Push the repository to GitHub.

5. Access the App :

The app will be embedded in the pkgdown website as part of the article. Navigate to the appropriate article URL to see the Shinylive app running seamlessly.

Troubleshooting :

  1. Path issues: Ensure the relative path in the (shinyapp/index.html) matches the docs/ directory structure.

  2. Cache invalidation: If changes don’t reflect immediately, clear the browser cache or append a version string (e.g., shinyapp/index.html?v=1.0).

This workflow should integrate your Shinylive app into the R package and its corresponding pkgdown site. Let me know if you run into any specific issues!

-----------------------------------------Your Answer-----------------------------------------------------------------

You're on the right track. The GitHub Action you’ve configured (deploy-app.yaml from the r-shinylive examples) is designed to build and deploy Shinylive apps to your GitHub Pages. Since you've created the app and set up the necessary infrastructure, here’s how to integrate your app seamlessly into your pkgdown site:

Key Steps to Finalize Your Setup

1. Organize App Files :

UI and Server Functions in R/: Since you’ve already modularized your app by placing the UI and server logic in R/, make sure your app.R (in the root folder) sources these functions and constructs the app.

Example for app.R:

library(shiny)
source("R/ui.R")  # Assuming ui.R defines `ui`
source("R/server.R")  # Assuming server.R defines `server`

shinyApp(ui = ui, server = server)

Ensure app.R Works Locally: Test the app by running:

shiny::runApp("app.R")

2. Shinylive GitHub Action :

The action you’re using (deploy-app.yaml) will automatically convert the app into a Shinylive-compatible format and deploy it to GitHub Pages. Make sure your repository’s gh-pages branch (or the branch configured for GitHub Pages) is set up to serve content from the docs/ directory.

3. Embed the App in Your pkgdown Site :

Create a vignette/article (vignettes/shiny-app.Rmd) in your package.

  1. Use an <iframe> to embed the app:
---
title: "Shiny App Example"
output: rmarkdown::html_document
---

<iframe src="shiny-app/index.html" width="100%" height="600" frameborder="0"></iframe>

pkgdown::build_site()

4. GitHub Pages Configurations :

5. Troubleshooting Tips :

6. Final URL Integration :

After deployment, your app should be embedded at: https://capellett.github.io/scpopulation/articles/shiny-app.html

And the app itself should be available at: https://capellett.github.io/scpopulation/shiny-app/

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): -----------------------------------------
  • Filler text (0): -----------------------------------------------------------------
  • Low reputation (1):
Posted by: abhays02

79315808

Date: 2024-12-29 15:00:53
Score: 3.5
Natty:
Report link

Consider using fcm (Firebase cloud messaging) , easy setup and easy to user

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

79315805

Date: 2024-12-29 14:57:53
Score: 3
Natty:
Report link

Dependencies inside a .jar file

I know you asked specifically for this:

Can anyone please provide me the documentation link and possibly an answer on how can I include dependencies inside ".jar"?

And while you can do this, see the answer from Uros, you have a few drawbacks:

Actual goal of your question

Clearly you want to create a distribution? Let me show yo ua few more options.

Default layout with script

Instead, please consider the approach taken in the JReleaser plugin, which can create a template-based script (script.cmd for Windows and just 'script' for unix/linux systems):

https://jreleaser.org/guide/latest/reference/assemble/java-archive.html

Using the dependency plugin, you just assemble all dependencies into a lib folder and then run the jreleaser goal. You will have such a directory layout:

myapp-1.0.0
|- bin
|  |- myapp.cmd
|  `- myapp(.sh)
`- lib
   |- logback.jar
   `- slf4j.jar

(just a simple example).

Additionally, this plugin creates a .zip or .tar.gz file which can be attached to your project as an artifact.

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): this plugin
  • RegEx Blacklisted phrase (2.5): Can anyone please provide me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Benjamin Marwell

79315803

Date: 2024-12-29 14:56:52
Score: 0.5
Natty:
Report link

I'm interested in the fact that one of these replies uses SET when setting the property of the mail item, and one does not. This is rather odd! I have a large and quite complex lump of VBA code which

  1. finds the account amongst those available that matches a string that contains a unique part of the email address I want to send from

  2. creates a new mail item , and then sets the account to be used to send it.

The SET statement is required in 1) but, is required not to be there in 2) which is very odd (including generates a 91 run time error). I think that somehow the account object is morphing into the string that is the SMTP address of that account.

Key parts of the code:

a) Various declarations

Public g_olapp As outlook.Application
Public g_ol_account As outlook.Account
Private olmsg As outlook.MailItem

b) Initialise things

 Set g_olapp = New outlook.Application
 Set g_ol_account = find_account(g_from_email, b_err)

c) Find account function, this does seem to return an object

Private Function find_account(s As String, b As Boolean) As outlook.Account


Dim p_olaccount As outlook.Account
Dim s_send_from As String
s_send_from = UCase(s)
    If s_send_from = "" Then

    If MsgBox("No account specified, do you want to use the default account <SPJUDGE> ?", Title:=box_title, Buttons:=vbYesNo + vbQuestion) = vbNo Then
        b = True
        Exit Function
    End If
    s_send_from = "SPJUDGE"
End If
Set find_account = Nothing
For Each p_olaccount In g_olapp.Session.Accounts  
    If (Not InStr(UCase(p_olaccount.SmtpAddress), s_send_from) = 0) Then

    Set find_account = p_olaccount
        s = p_olaccount.SmtpAddress
        Exit Function
    End If
Next

     MsgBox "Account <" & s_send_from & "> not found" _
    & String(2, 13) & "Program terminating", Title:=box_title, 
   Buttons:=vbOKOnly + vbCritical
    b = True
End Function

d) Make the email item

Set olmsg = make_new_email(g_olapp, lemail) 

e) Another function.

Public Function make_new_email(olapp As Object, s As String) As outlook.MailItem

Dim arr() As String
Dim jloc As Integer
Dim jlb As Integer
Dim recip As outlook.Recipient

Set make_new_email = olapp.CreateItem(olMailItem)
'    MsgBox g_ol_account note this does work.
With make_new_email

     .SendUsingAccount = g_ol_account ' WHY NOT SET IN THIS LINE ??
     If gb_set_reply Then
     .ReplyRecipients.add (g_reply_to_email)
    End If
    .OriginatorDeliveryReportRequested = b_askfor_receipts
    .ReadReceiptRequested = b_askfor_receipts
End With
s = Replace(s, "SIMON JUDGE", "", , , vbTextCompare)
arr = Split(s, ";") ' changed from comma Nov 2023
jlb = LBound(arr)
For jloc = jlb To UBound(arr)
    Set recip = make_new_email.Recipients.add(Trim(arr(jloc)))
    If jloc = jlb Then
        recip.Type = olTo

    Else
        recip.Type = olCC
    End If
Next jloc

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

79315801

Date: 2024-12-29 14:56:52
Score: 0.5
Natty:
Report link

This worked for my SMTP hosting:

$mail->addCustomHeader('Sender', 'Example.com <[email protected]>');
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jasom Dotnet

79315795

Date: 2024-12-29 14:50:52
Score: 2.5
Natty:
Report link

In my opinion i think you could switch your script to the import syntax from the require to the import "foo" from "bar", also i advise you to remove module exports if you are not so dying to use those cool features

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

79315792

Date: 2024-12-29 14:48:51
Score: 2
Natty:
Report link

What worked for me was to move MyApplication.attachBaseContext() to the activities and then use either recreate() or startActivity() + finish() to reload the activity.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Proteus

79315786

Date: 2024-12-29 14:41:50
Score: 2
Natty:
Report link

You can check the answer to this question here

Output from K&R 1.6 Arrays

Hope this helps the people of the future.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yazzz Dev

79315779

Date: 2024-12-29 14:34:48
Score: 2.5
Natty:
Report link

I also often need to switch between big amount of different k8s clusters and it's annoying to keep in mind which cluster is already selected and type this long command like kubectl config get/set context, so I just write a simple Python script that shows current k8s context in bash prompt and switch between clusters with simple TUI command line, you can find it here and try:

https://github.com/ratibor78/kube-context-suite?tab=readme-ov-file

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ratibor78

79315774

Date: 2024-12-29 14:31:46
Score: 7.5 🚩
Natty:
Report link

Same Issues facing, Please help out guys.

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (1): Same Issue
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yogesh Gupta

79315771

Date: 2024-12-29 14:28:46
Score: 2.5
Natty:
Report link

I guess the trick is to add a wix form instead of going through velo, please find the steps below:

  1. Add elements
  2. Click on contacts and forms
  3. Select start from scratch

Now you will see the most easiest way to create a form and add conditions to the same (available on the left)

After creating the form, go to your website and link the button or whichever you are creating to redirect to the form that you craeted

Reasons:
  • RegEx Blacklisted phrase (1): I guess the trick is to add a wix form instead of going through velo, please
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nicholas R