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.


19 January 2022 @ 10:40 pm

We use multithread and apparently when we have two threads processing, this error occurs. I've tried to reproduce it locally but of course, without success. Other than that, I haven't found much useful information on why it happens and how to fix it. Does anyone have any ideas? According to the logs, errors happen after the line marked with comment above public async Task ProcessarTransacoes() { _logger.LogInformation("Buscando Transacoes para serem enviadas"); var transacoes = await _transacaoRepository.GetTransacoesARPorStatusAsync(TransacaoStatus.EmCriacao); Parallel.ForEach(transacoes, new ParallelOptions { MaxDegreeOfParallelism = _config.MaximoThreadsProcessamento }, async transacao => { // ----- after this log _logger.LogInformation("Enviando Transacao {0} para a Fila do Rabbit", transacao.IdTransacao); var mensagem = new Mensagem() { IdTransacao = transacao.IdTransacao };

How to create cascade drop down list inside the grid?

19 January 2022 @ 10:40 pm

I tried like this but on click of the column "Product xx" the value disapear also after select the ID apear not the value. <!DOCTYPE html> <html> <head> <base href=""> <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style> <title></title> <link rel="stylesheet" href="" /> <script src=""></script> <script src=""></script> </head> <body> <script src="../content/shared/js/

How to Create Show/Hide button when Looping in React

19 January 2022 @ 10:40 pm

I am working on a development site and am having an issue. The issue is that I am looping over the data file in order to create some project cards. Each project card has a show more/show less button to display/hide card descriptions. My problem is that the current setup is mapping over the data and causing it so that whenever one gets clicked, all three either open or close simultaneously. Please help me to fix this issue. Relevant code is shown below: Data example: { name: "Hot in the Biscuit", id: "3a34", image: "/images/bonnie.jpg", description: "A multi-page front-end business website for a local restaurant in Koh Samui, Thailand. Custom design built with vanilla JavaScript, HTML and CSS.", link: "", date: "2021", github: "" }, Hero file where Showcase Component is rendered:

'Unexpected token, expected ")"' on catch block when adding Typescript to ReactJS project?

19 January 2022 @ 10:40 pm

I'm converting a ReactJS project to use Typescript. When I compile the project, on the catch block in try/catch statements, ... } catch (e: any) { console.log(e); } I get the following error Syntax error: Unexpected token, expected ")" (243:15) 241 | ... 242 | }); > 243 | } catch (e: any) { | ^ 244 | console.log(e); 245 | } 246 | }; This is my tsconfig.json { "compilerOptions": { "target": "ES2017", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch&qu

ZSH Shell: source in a sh file

19 January 2022 @ 10:40 pm

I am running ZSH Shell as my default terminal on a Ubuntu 20.04 LTS Desktop. echo $SHELL /bin/zsh When I run the following commands set -a; source .override_dev_env; set +a, the source .override_dev_env occurs smoothly. However, if I put the same command in a sh file, the the .override_dev_env file is not sourced, even with the she-bang (#!/bin/bash or #!/bin/zsh ). Would anyone give a direction on how to source the .override_dev_env in sh file run on zsh terminal? Again, the code bellow will not work either #####################!/bin/bash #!/bin/zsh set -a; source .override_dev_env; set +a

Equation Formula Review/Proof

19 January 2022 @ 10:40 pm

I hope everyone's healthy and happy and enjoying the sun. (if in the Southern Hemisphere) Would somebody mind having a quick check over so the below to know if I'm applying the correct methodology for required application The Question; I've decried to put all our garden sprinkler settings into excel to help calculate usage, costs while trying to optimise watering settings. The general formula I am using is; (I've included a image for an example) Cost=(R/1000)*L L=(Flow*T)*Nodes​ T=Min*D​ D=ROUNDDOWN((End-Start+1)/Interval,0)​ Where; R = Cost Per 1KL L = Total Litres Used T = Total Run Time Cost per 1 Kilolitres= 2.99 Flow = 1.6 (Flow Rate Per/Min of 1x 90° Sprinkler Head) Nodes = Amount of Sprinkler Heads Min = Watering Run Time in Minutes Start = Watering Start Date End = Watering End Date Interval

Selecting value between two dates

19 January 2022 @ 10:39 pm

Here i am trying to calcualte grand total from column H when column E which is date range has date between two dates ( dtst and dtet). For some reason its not working result coming 0. any help here ? Option Explicit Sub Compare() Dim NumberOfValues As Long Dim value3, value4, value5 As Long Dim i As Long Dim dtst, dtet As Date dtst = CDate(3 / 1 / 2022) dtet = CDate(6 / 30 / 2022) NumberOfValues = Sheets("backuplist_PPBAMR301P_2021-12-2").Range("B2").End(xlDown).Row value3 = 0 Application.Calculation = xlManual Application.ScreenUpdating = False For i = 2 To NumberOfValues If Range("C" & i).Value <> "*REPLICATE*" Then If CDate(Range("E" & i).Value) >= dtst And CDate(Range("E" & i).Value) <= dtet Then If Range("M" & i).Value = 1 Or Range("M" & i).Value = 0 Then value3 = value3 + Range("H"

GridView.builder does not fit into the container in flutter. It starts with a padding to return containers

19 January 2022 @ 10:39 pm

I am trying to provide a responsive design for a 6x6 chess board and equal containers adjacent to it. GridView.builder with SliverGridDelegateWithFixedCrossAxisCount does not fit into the middle container of the column in flutter. It starts with a padding/bias/margin to return simple color containers. (the Static.blackSquares is just a list includes integers for index) I have tried to make it scrollable and it's scrolled up as a whole and perfectly fit there. Interesting. an example screen: the height of that green margin changes in different screens class GridViewResponsive extends StatelessWidget { List pieces = [ // [position, piece, color, selected, possible kill] // black pieces [0, 'x', '', '', ''], [1, 'x', '', '', ''], [2, 'x', '', '', ''], [3, 'x', '', '', ''], [4, 'x', '', '', ''], [5, 'x', '', '', ''], [6, 'x', '', '', ''], [7, 'x', '',

Duplicate textfield widgets in the KiviMD dialog

19 January 2022 @ 10:39 pm

Why when clicking change password button opens a dialog with duplicate textfield widgets? The code I wrote entirely in .py codes works fine but was not clear. That's why I transcribed it into .kv language.

Python - Sarima/Sarimax - creation of an output table for multiple predictions

19 January 2022 @ 10:34 pm

I'm currently working on a project and I'm not quite sure how to best implement the next step, so I'd appreciate suggestions and feedback. In my data a certain date can occur several times, because I forecast the sales by zipcode. Example of the data structure The background to this is that I want to add weather to the zipcodes. To check afterwards if different weather parameters make a forecast of my models (SARIMA/SARIMAX) better. Afterwards I would like to have an output in a table, in which to all Zipcodes the RMSE of the Prediction is stored. It would also be good if parameters were selected for this by auto_arima. I would then compare these between SARIMA and SARIMAX, so that I can check how much % of the predictions have become better with external data. Currently the data is in a table with over 60 zipcodes. Does anyone have an idea or a function that I can use to create multiple

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

Access to the world’s facts and data and calculates answers across a range of topics, including science, nutrition, history, geography, engineering, mathematics, linguistics, sports, finance, music…

Learning Differential Equations in 10 Hours or Fewer with the Wolfram Language

19 January 2022 @ 3:00 pm

Differential equations are a cornerstone of modern mathematics. From quantum mechanics to population dynamics and stock market predictions, they play a crucial role in understanding the world around us. For this reason, courses on differential equations are core for many undergraduate degrees in the natural sciences, engineering and other fields. Today, I am proud to […]

What Does Hollywood Have to Do with the Chicken Head?

7 January 2022 @ 5:21 pm

In a relatively popular marketing device in the past decade, chickens found their way into online advertising and TV commercials, where their impressive focusing and stabilization skills were displayed. Hold them gently and then move them up, down or rotate them slightly, and their eyesight stays at a constant level. How do we build a […]

Digital Vintage Sound Modeling Analog Drums with the Wolfram Language and System Modeler

29 December 2021 @ 6:47 pm

Explore the contents of this article with a free Wolfram System Modeler trial.You may not know what a Roland TR-808 Rhythm Composer is, but you have most certainly heard it. The TR-808 is a programmable drum machine released by Roland in 1980. The 808 is one of the most iconic drum machines and has been […]

Launching Version 13.0 of Wolfram Language + Mathematica

13 December 2021 @ 8:20 pm

The March of Innovation Continues Just a few weeks ago it was 1/3 of a century since Mathematica 1.0 was released. Today I’m excited to announce the latest results of our long-running R&D pipeline: Version 13 of Wolfram Language and Mathematica. (Yes, the 1, 3 theme—complete with the fact that it’s the 13th of the month today—is amusing, if coincidental.) It’s 207 days—or a little over 6 months—since we released Version 12.3. And I’m pleased to say that in that short time an impressive a

From Writer’s Block to the Cat’s Meow with the Wolfram Language

9 December 2021 @ 7:44 pm

If you’re trying to write a story, be it for National Novel Writing Month or just for fun, you’ll have to face a blank page eventually. The seeds of an idea can help your story grow, blooming into a sweet rose of romance or a carnivorous tale of horror. Without those ideas, all that’s left is a blinking cursor… and frustration.

Six Reasons Why the Wolfram Language Is (Like) Open Source

30 November 2021 @ 7:45 pm

A couple of years ago, I wrote a piece outlining why I think that open source isn’t the right business model for Wolfram’s core tech. It generated some (mostly reasonable) debate about the benefits of different models. Reflecting on that debate recently, I realized that most of the expected practical benefits of open-source software are […]

The Winners of the 2021 One-Liner Competition

24 November 2021 @ 4:59 pm

The Wolfram Language is renowned for simplicity and brevity, and nowhere was that more apparent than at the 10th annual One-Liner Competition, held at the Wolfram Virtual Technology Conference. The contest challenges conference attendees to create the best program possible in 128 characters or fewer (the original length limit of a tweet). With prizes awarded […]

A New Method of Bell Ringing Using Mathematica to Discover Wolf Wrap

19 November 2021 @ 3:58 pm

English bell ringing (called change ringing) has many connections to mathematics, notably to group theory and Hamiltonian cycles. My wife, Joan Hutchinson, is an ardent bell ringer (having rung in both England and North America), and I knew the basics of this ancient craft. A recent puzzle book by Mark Davies [1] inspired me to […]

13 Ways of Looking at the Number 13

9 November 2021 @ 9:15 pm

Why are we releasing Version 13 of Mathematica? As a math and science company, Wolfram doesn’t fear two-digit number integers, especially that particular one between 12 and 14. That is to say, we don’t have triskaidekaphobia, not on Friday the 13th or any other day of the year. Many nice things can be said about […]

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

OffGuardian is one of the only media news outlets to trust. True journalism unlike the MSM.

Facts really should be sacred. Unlike the Guardian, off-guardian is NOT funded by Bill & Melinda Gates, or any other NGO or government.

DISCUSS: Johnson ends “plan B” Covid restrictions in England

19 January 2022 @ 3:30 pm

All mask mandates lifted Vaccines certificates no longer required work from home orders rescinded UK Prime Minister has announced the end of all restrictions allegedly brought in to combat the spread of the “Omicron variant”. This is just the latest in the series of back-pedalling moves on the pandemic narrative, which will be subject to …

The Last Days of the Covidian Cult

18 January 2022 @ 6:00 pm

CJ Hopkins This isn’t going to be pretty, folks. The downfall of a death cult rarely is. There is going to be wailing and gnashing of teeth, incoherent fanatical jabbering, mass deleting of embarrassing tweets. There’s going to be a veritable tsunami of desperate rationalizing, strenuous denying, shameless blame-shifting, and other forms of ass-covering, as …

They are making an example of Novak Djokovic. Here’s why.

17 January 2022 @ 6:00 pm

Kit Knightly Tennis star Novak Djokovic is being deported from Australia, after losing his final appeal the WTA’s top-ranked player will not be allowed to defend his Australian Open title. It was reported this morning that an Australian court had refused Djokovic’s appeal against the cancellation of his visa, and as such he’s being put …

27 Covid-Skeptic Memes to Get You Through the Day – Part 17

17 January 2022 @ 8:00 am

Kim Usbourne Wow, is it meme-time already? Seems like only yesterday I was compiling the New Year’s memes. But since then we’ve had Novak Djokovic denied entry then allowed entry then denied entry again to the Australian Open (or should that be the Australian CLOSED?)… We’ve also had the most backtrackiest backtracking that I ever …

This Week in the New Normal #19

16 January 2022 @ 6:00 pm

Our successor to This Week in the Guardian, This Week in the New Normal is our weekly chart of the progress of autocracy, authoritarianism and economic restructuring around the world. 1: “Covid made my penis smaller” An anonymous US man has come forward to claim his bout with Covid made his penis smaller…and the mainstream …

Communing with Camus in 2022

16 January 2022 @ 10:00 am

Edward Curtin The person with whom we are all most intimate is oneself. It’s just the way it is. I don’t mean that in some oracular Delphic “know thyself” way, or in any deep psychoanalytical sense, but very simply. We have our own thoughts and feelings that come and go like breaths, most of which …

Boris’s garden party – a more pressing issue than Yemeni genocide

15 January 2022 @ 11:00 pm

Gavin O’Reilly Over the past several days, the news story that has dominated British news headlines, and consequently, the news headlines of the rest of the Western world, is controversy over a leaked email confirming Boris Johnson’s attendance at a Downing Street garden party in May 2020 – a time when the Summer weather is …

The Age of Intolerance: Cancel Culture’s War on Free Speech

15 January 2022 @ 3:00 pm

John W. Whitehead & Nisha Whitehead “Political correctness is fascism pretending to be manners.” George Carlin Cancel culture—political correctness amped up on steroids, the self-righteousness of a narcissistic age, and a mass-marketed pseudo-morality that is little more than fascism disguised as tolerance—has shifted us into an Age of Intolerance, policed by techno-censors, social media bullies, …

WATCH: Translate the Truth

14 January 2022 @ 11:00 pm

Are you a non-English speaker who is interested in helping translate Corbett Report and other independent media material into other languages? Are you looking for translations of truth content into other languages for your friends, relatives or neighbours? Are you willing to help translate important info from other languages into English for the benefit of …

Red Letter Media

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

Movie reviews from VCR repair men.
Continue reading

Best of the Worst: Christmas 2021

21 December 2021 @ 2:08 pm

Blood Beat - re:View

15 December 2021 @ 5:18 pm

Dune (1984) and Dune (2021) - re:View

29 November 2021 @ 9:39 pm

Mike and Jay Talk About Midnight Mass

15 November 2021 @ 2:20 pm

Enemy Mine - re:View

9 November 2021 @ 2:00 pm

Itchy Boots

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

Motorcycle vloging from a single perspective.

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

Independent press real researchers, real journalists, real news. Fighting the corrupt mainstream view.

UK Column News - 19th January 2022

1 January 1970 @ 12:00 am

UK Column News - 17th January 2022

1 January 1970 @ 12:00 am

UK Column News - 14th January 2022

1 January 1970 @ 12:00 am

UK Column News - 12th January 2022

1 January 1970 @ 12:00 am

UK Column News - 10th January 2022

1 January 1970 @ 12:00 am

UK Column News - 7th January 2022

1 January 1970 @ 12:00 am

The Not So Great Carbon Reset – Part 2

1 January 1970 @ 12:00 am

Nearly 30 years ago the UN launched their plan for the future global economy. Agenda 21 established the "basis for action." At COP26 Erkki Liikanen, the chair of the International Financial Reporting Standards (IFRS) foundation, formally announced the global accountancy system that will enable the transformation of the world's economy. With the "basis for action" now established, an international network of global "stakeholders" is set to redefine nature itself as "ecosystem services" to be purchased and traded on the financial markets. It is nothing less than a gambit to control the Earth, everything and everyone on it and all its resources. We will own nothing and those who control the global economy will be very happy.

UK Column News - 5th January 2022

1 January 1970 @ 12:00 am

UK Column News - 3rd January 2022

1 January 1970 @ 12:00 am

Ultra Harmonics

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

Cool vibes and ultra Harmonics, instrumental in it’s finest.
Continue reading


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

Motorcycle vblog and chat with challenges.
Continue reading

A Wolf in VR

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

Sample VR gaming via a Wolf.


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

One man’s look at clown world (tiktok/narcissistic culture).

Joey B vs. the World #14: Kat Von D

13 January 2022 @ 8:00 pm

TikTok and #IDIOCRACY 5

4 January 2022 @ 2:52 pm

Demi Lovato and #GHOSTS

28 December 2021 @ 2:59 pm

Joey B vs. the World #13: Ryan Long

17 December 2021 @ 8:00 pm

What Is A Woman?

10 December 2021 @ 3:01 pm

Joey B vs. the World #12: The Return

30 November 2021 @ 8:00 pm

Wackjobs and #MATINGCALLS

22 November 2021 @ 6:28 pm

Creepers and #FACEBOOK

13 November 2021 @ 2:59 pm

Narcissists and #FUNERALS

5 November 2021 @ 1:41 pm

Who Are These People!? 2

28 October 2021 @ 1:57 pm