StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (10 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Terrafrom tries to drop cert before updating https proxy

19 April 2024 @ 8:32 am

I'm trying to destroy infra I currently have with terraform. I have multiple certificates specified and one https proxy. resource "google_compute_managed_ssl_certificate" "app_cert" { for_each = var.apps project = var.project_id name = each.key managed { domains = [each.value.domain] } lifecycle { create_before_destroy = true } } resource "google_compute_target_https_proxy" "default" { project = var.project_id name = "default" url_map = google_compute_url_map.default.id ssl_certificates = [for cert in google_compute_managed_ssl_certificate.app_cert : cert.id] ssl_policy = google_compute_ssl_policy.ssl_policy_restricted.id } The problem is that terraform tries to drop certificate before updating https proxy configuration. GCP does not allow for it. Error: Error when reading or editing ManagedSslCertificate: googleap

Nuxt - Swiper loading size

19 April 2024 @ 8:32 am

I use Nuxt 3 with Nuxt Swiper module Swiper code: <Swiper :slides-per-view="6" :spaceBetween="20" > <SwiperSlide v-for="slide in 10" :key="slide"> <div class="product-card"> <p>text</p> </div> </SwiperSlide> </Swiper> When I refresh the page, my swiper looks like this during the refresh. It has only one slide per view: enter image description here but when the page finishes loading, the perView parameter is updated and the swiper already has 6 slides per page enter image description here I need it to have 6 slides per view right fro

Inner join function, SQL, Dbeaver

19 April 2024 @ 8:32 am

I am trying to run the inner join function on Dbeaver and it is resulting in an error message SQL Error [1]: [SQLITE_ERROR] SQL error or missing database (no such column: EmployeeDemographics.EmployeeID). I wonder if Dbeaver uses a different syntax than Microsoft SQL Server management Studio for this particular function This is what I inputted SELECT * FROM EmployeeDemographics ed inner join EmployeeSalary on EmployeeDemographics.EmployeeID = EmployeeSalary.EmployeeID

why different method lead to different outcome when calculate a probability problem

19 April 2024 @ 8:31 am

The question is "The winning probability for each ticket is 0.005. You can get 25 lottery tickets for free. After the free ticket, you need to pay $9.6 to buy a ticket. You are guaranteed to win once you get 250 draws. Please calculate the average cost when you win a ticket." method 1 (finially get-->525.48): for i in range(26, 250): probability_win = (0.995 \*\* (i - 1)) \* 0.005 #win at this draw cost_this_draw = 9.6 \* (i - 25) # the overall cost at this time revised_total_cost += probability_this_draw \* cost_this_draw return revised_total_cost method 2 (finally get-->1014.5): max_draws = 250 free_draws = 25 cost_per_draw = 9.6 win_probability = 0.005 cumulative_probability_not_winning = 1.0 expected_total_cost = 0.0 for draw in range(1, max_draws + 1): if draw > free_draws: # only add cost when over the free draws expected_tot

Fedex-How to define SpecialServicesRequested SignatureOption for FedexRest

19 April 2024 @ 8:31 am

I'm using the library https://github.com/WhatArmy/FedexRest to create a fedex shipment. I don't know how to use SIGNATURE_OPTION $this->request ->setRecipients( (new Person) ->setPersonName($this->recipient->name) ->setPhoneNumber($this->recipient->phone_number) ->setCompanyName($this->recipient->company_name) ->withAddress( (new Address()) ->setCity($this->recipient->city) ->setStreetLines($this->recipient->address) ->setCountryCode($this->recipient->country) ->setPostalCode($this->recipient->postal_code) ) ) ->setLineItems((new Item()) ->setSequenceNumber(1) ->setItemDescription('Product 1') ->setWeight(

Issue with the netmeta function

19 April 2024 @ 8:31 am

I am trying to do a network meta-analysis, but while using the netmeta function, R mixes my treatment and control conditions. In my treat1 condition I have the following categories (treatment) : Ketamine, MDMA, TM, MANTRAM, MBSR, MI, MORE In my treat2 condition the following (control): ACTI, INAC, TAU, WL I also have a " vs " column, that gives the order of comparison for each study, e.g. "Treat1 vs Treat2" But when I run the netmeta function : > m.netmeta <- netmeta(TE = yi, + seTE = vi, + treat1 = Type1, + treat2 = Type2, + studlab = study_year, + data = New_database, + sm = "SMD", + fixed = FALSE, + random = TRUE, + reference.group = "TAU", + details.chkmultiarm = TRUE, +

Docker build stopped working after Ubuntu software update

19 April 2024 @ 8:31 am

Docker build was ok, and the Python script (app) that was inside could be executed perfectly too. I hadn't touched the code for some months now, but I recently did a general, across-system software update in my Oracle VM VirtualBox Ubuntu 20.04.3 LTS x86_64. I thought this wouldn't affect my docker, since I had specified package versions, etc. However, when I try to docker build now it cannot find TensorFlow 2.12.0, and says that only 12.16.0rc and 12.16.1 are available. How can I make it see the 2.12.0 version again? Here is my Dockerfile: # Build stage FROM python:3.7-slim AS build WORKDIR /todo ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 ENV PATH="/root/miniconda3/bin:${PATH}" ARG PATH="/root/miniconda3/bin:${PATH}" RUN apt-get update RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* RUN wget \ https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ && mkdir /root/.conda \ &am

Multiple threads collapsing in Python with Raspberry Pi 4

19 April 2024 @ 8:31 am

I'm having problems trying to finish a college project working with Raspberry Pi 4B. The project is in Python and consists of 5 threads, where 2 of them run Machine Learning predictions, and a 3rd one runs a series of calculations in orden to reach the same output as the one the Machine Learning model predicts (that way I can contrast whether the output is a reasonable value or not). The other two threads are: one waits 10 secs and activates a flag (flag needed to start the processing) and the other one prints the values (both predicted from the ML models and from the calculations) on the terminal. My problem is that, when I try to run all threads at the same time, the ML models run correctly but my calculations threads doesn't do anything. Instead, if I don't start the ML threads, the calculations thread works fine. I think that the Raspberry doesn't have enough computing capacity and therefor the calculations thread collapses. It is not necessary that a

Is there any way of updating rows in MUI DataGrid (community version) without upserting?

19 April 2024 @ 8:31 am

MUI DataGrid has an updateRows() method that I use to update some rows after I fetch more data from backend. The problem is that the table data is connected to a search field which can lead to the following bug happening; The user stops typing just long enough for the search query to go out The user starts typing again while data is being fetched for the rows from the previous search results The results from step 2 are shown as expected but the results from step 1 are inserted as the data queries resolve... My question therefore is whether there's any way to use the updateRows() function without inserting/upserting the row if the id is no longer found in the table? The only "modifier" to updateRows() that I can find in docs is _action: "delete", but there's no mention of any way to stop the function

headless chrome how to resolve the limitation of request concurrent(six)

19 April 2024 @ 8:30 am

I have project using chrome to convert image from url. when i benchmark, front service the cpu load increase and response slow, which cause that reach the limitation of request concurrent. (we cannot use CDN.) i'v listen page.EventLoadEventFired、networkIdle and sum(network.EventRequestWillBeSent) = sum(network.EventLoadingFinished) + sum(network.EventLoadingFailed) i found that the event of network.EventRequestWillBeSent doesn't include the block requests after exceeding the limit. How should I wait until all requests are completed before executing the task? OR How can I increase this limit quantity i'd like execute the task(url convert image) after all requests finished.

Flickr.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (2 votes cast)

Almost certainly the best online photo management and sharing application in the world

Raee @ Kinky Event

28 March 2024 @ 6:48 pm

Untitled

26 March 2024 @ 11:05 pm

Demi

12 January 2024 @ 8:28 am

2023 Nissan Z - HSS

7 January 2024 @ 8:55 pm

38.2 of 52 : 23 | I am Iron Man

19 September 2023 @ 12:54 am

Morning mists [Explore]

24 August 2023 @ 11:17 am

Dodge Challenger RT

13 August 2023 @ 1:52 am

500px.com

VN:F [1.9.22_1171]
Rating: 8.0/10 (2 votes cast)

Photo community powered by creative people worldwide that lets you discover, share, buy and sell photographs.

mediabiasfactcheck.com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

If you wanted to know if a website is centered from the left or the right, this site is maybe for you.

reddit.com

VN:F [1.9.22_1171]
Rating: 6.8/10 (8 votes cast)

Social ramblings from those who speak loudest on the world wide web. User beware.

You win £103 million on the Euromillions tonight. How are you using that money to leave your mark on the world?

19 April 2024 @ 10:14 am

I was thinking about what I'd do with the money, and came to the conclusion that what I'd find most satisfying is to find one big social problem that I could fix, knowing that I wouldn't need to fund-raise or get other people on-board, something I could just solve myself with personal wealth and the will to make a difference. So that's my question - what kind of big problems could be fixed with £100 million? submitted by /u/BigDumbGreenMong to r/CasualUK [link] [comments]

Tory candidate Susan Hall: Passengers who play music out loud will be thrown off Tube - Evening Standard

19 April 2024 @ 9:28 am

Tory candidate Susan Hall: Passengers who play music out loud will be thrown off Tube - Evening Standard submitted by /u/jaredce to r/london [link] [comments]

What sounds like total nonsense, but is true?

19 April 2024 @ 8:45 am

submitted by /u/mysterioussbabe to r/AskReddit [link] [comments]

Slugs... 1st night of beer traps

19 April 2024 @ 8:34 am

Slugs... 1st night of beer traps I knew I had a problem but... This is horrific! submitted by /u/CinderCats to r/GardeningUK [link] [comments]

Do others not eat as much?

19 April 2024 @ 8:24 am

How just a bit of a trivial question on groceries. I spend about £60 a week on food for myself (this is everything in my groceries, not take outs). I keep coming across people saying that they spend £30 a week on food for one person, even some saying they spend £70-£80 to feed 3 people. I don’t see how that’s possible. It’s made me wonder if I eat more than others? I tend to have, breakfast, lunch and dinner with snacks in between. Each of these meals are substantial, so not, for example, just toast for breakfast but a croissant and yoghurt and fruit etc. submitted by /u/GooseEasy7709 to r/AskUK [link]

Ukraine is ignoring US warnings to end drone operations inside Russia

19 April 2024 @ 8:19 am

Ukraine is ignoring US warnings to end drone operations inside Russia submitted by /u/KadmonX to r/worldnews [link] [comments]

What good comebacks can I use for an annoying Australian visitor?

19 April 2024 @ 7:56 am

I'm having to meet up with someone who keeps coming out with what I feel are very typical Australian comments. Sadly I can't get out of the meetup. So please help, what comebacks can I use?! Examples being: "Saw someone sunbathing in less than 15 degrees and had to laugh" "We live near Asia so have good Asian food every other restaurant, so I'm not fussed about Asian food in the UK" "I'm not going to miss Italian gelato [whilst in Florence] we can get that back home" "No I'm not surfing in Cornwall I can do that whenever I want at home. Yes I'm going to Cornwall to drink wine and eat seafood" Honestly it's just winding me up, he's going on like Australia is the best, like why leave then!? submitted by /u/lake_disappointment to

GPs will no longer be able to sign people off sick under controversial new plans

19 April 2024 @ 7:50 am

GPs will no longer be able to sign people off sick under controversial new plans submitted by /u/EndCapitalismNow1 to r/GreenAndPleasant [link]

The frightening thing is, count binface is seriously the only mayor candidate I trust to do what he says.

19 April 2024 @ 7:31 am

So looking on the bbc news for the candidates, and I’ve seen the same old promises, that when you get down to it no one actually does. Housing ,Policing Transport and the ULEZ all matter, they all promise to deal with it At least setting the goal of one new home means it might actually happen. submitted by /u/Poncemastergeneral to r/london [link] [comments]

Sunak's new nonsense

19 April 2024 @ 7:25 am

Sunak's new nonsense Apparently, a plumber knows if you're fit for work better than your own GP. submitted by /u/Ecstatic-Tadpole9010 to r/GreenAndPleasant [link] [comments]

thepoke.co.uk

VN:F [1.9.22_1171]
Rating: 6.5/10 (4 votes cast)

The Pokes are the first and only awards celebrating British comic talent on the internet.

People are sharing the irksome phrases that really get their goat – 18 proper mood-killers

19 April 2024 @ 10:18 am

Over on Reddit people have been sharing the phrases that really get their goat. And it’s a salutary lesson for any of us who might occasionally use one of these or – alternatively – a most reassuring read that you’re not the only who ABSOLUTELY HATES it whenever people say one of these. Here’s how […] The post People are sharing the irksome phrases that really get their goat – 18 proper mood-killers appeared first on The Poke.

People are making their ‘I’m calling it now’ predictions – These 17 may be onto something …or not

19 April 2024 @ 10:18 am

Thank you to u/_forum_mod for this suggestion on r/AskReddit. What is your “I’m calling it now” prediction? They didn’t have their own suggestion, but plenty of other people stepped up with theirs – ranging from the bleedin’ obvious to the highly unlikely. Here are 17 we thought deserved another look. 1. ic_hedges Via YouTube 2. […] The post People are making their ‘I’m calling it now’ predictions – These 17 may be onto something …or not appeared first on The Poke.

‘Men! What’s the first thing you do when the wife and kids just left the house for a few hours?’ 17 funniest and most relatable responses

19 April 2024 @ 9:54 am

Now it goes without saying – especially if they’re reading this (who are we kidding?) – that we love sharing our home with our family. Of course we do! And yet it’s always exciting – supremely exciting – on those rare occasions when they all leave the house at the same time and you’re left […] The post ‘Men! What’s the first thing you do when the wife and kids just left the house for a few hours?’ 17 funniest and most relatable responses appeared first on The Poke.

Just when ‘history’s greatest printing error’ can’t get any funnier, it scales new heights

19 April 2024 @ 9:23 am

We’re grateful to @IvanBrett for revisiting, 44 years on, ‘history’s greatest printing error’. It’s an article from the Peterborough Standard which went viral (again) on Twitter for reasons which are about to become obvious. And just when you think it can’t get any funnier, it somehow manages to scale still further heights. 44 years ago […] The post Just when ‘history’s greatest printing error’ can’t get any funnier, it scales new heights appeared first on The Poke.

A Brit asked people how to give her American boyfriend the ‘true UK experience’ – 17 funniest and most on-point responses

19 April 2024 @ 9:06 am

Time now to return to the cultural divide, nay chasm, between the UK and the US after a British woman asked people for their tips on how to give her American boyfriend a ‘true UK experience’. Here’s the question sophietheadventurer put out to the good people of Reddit. ‘My American boyfriend is visiting the UK […] The post A Brit asked people how to give her American boyfriend the ‘true UK experience’ – 17 funniest and most on-point responses appeared first on The Poke.

25 Favourite Funny Tweets of the Week

19 April 2024 @ 8:37 am

They say that laughter is the best medicine, which means there’s probably a shortage of it in Brexit Britain. Luckily, there’s plenty of it here, although we don’t recommend using it to treat any ailments you might have. Just give your faves a retweet or a follow. 1. Have you got anything to help with […] The post 25 Favourite Funny Tweets of the Week appeared first on The Poke.

‘What’s something all British children are taught?’ – 21 questionable life lessons

19 April 2024 @ 7:03 am

Right across the world, schoolchildren are taught very similar things – reading, writing, arithmetic, how to identify an ox-bow lake, etc. Not everything we learn comes from the curriculum, though. This question from VeryBritishProblems contains a perfect example. What’s something all British children are taught? I’ll go first: Swans can and will break your arm. […] The post ‘What’s something all British children are taught?’ – 21 questionable life lessons appeared first on The Poke.

Gordon Ramsay’s ‘ultimate grilled cheese’ got a thorough panning from Uncle Roger

19 April 2024 @ 5:23 am

It’s a bold move to criticise anything Gordon Ramsay does in the kitchen, but if there’s one thing Nigel Ng‘s comedy character Uncle Roger doesn’t lack, it’s confidence. Nigel recently shared his opinion of Gordon’s take on grilled cheese, and he wasn’t impressed. He wasn’t impressed at all. @mrnigelng He put WHAT in #grilledcheese ⁉️ […] The post Gordon Ramsay’s ‘ultimate grilled cheese’ got a thorough panning from Uncle Roger appeared first on The Poke.

People are a bit freaked out by the latest Boston Dynamics robot – 15 favourite reactions

19 April 2024 @ 4:14 am

Boston Dynamics Atlas HD is dead. Long live Boston Dynamics Atlas 001 – the electric version. The bulky humanoid jumping, dancing robot has been retired to make way for something a bit more agile and slimline, with what looks like a ring light for a head – and a very disturbing way of getting up […] The post People are a bit freaked out by the latest Boston Dynamics robot – 15 favourite reactions appeared first on The Poke.

People are sharing the movie posters that really don’t reflect the vibe of the movie – 23 must-sees

18 April 2024 @ 1:51 pm

There are good movie posters and there are bad movie posters, and then there are those movie posters which entirely misrepresent the film you’re about to go and see. We say this after @EmmaTolkin said this over on Twitter. THIS IS SO FUCKING FUNNY IT LOOKS LIKE A ROMCOM Pls share posters that TRULY do […] The post People are sharing the movie posters that really don’t reflect the vibe of the movie – 23 must-sees appeared first on The Poke.

weheartit.com

VN:F [1.9.22_1171]
Rating: 6.3/10 (3 votes cast)

Social image sharing of the latest fashions and trends.