mistake

Federal Court Upholds Worker's Award of Black Lung Benefits Despite ALJ's Evidentiary Mistake

A federal appellate court upheld an award of black lung benefits to a coal industry employee despite the administrative law judge’s evidentiary error. Case: Coastal Coal Co. LLC v. Harrison, No.




mistake

The #1 Mistake That Ruins Most Conversations

In this episode, we unpack the concept of becoming a Supercommunicator. Charles Duhigg breaks down why effective communication isn’t about being naturally gifted—it’s a skill anyone can build through practice, self-awareness, and a few powerful techniques. We also share stories and insights that show how understanding different conversation types and adapting to digital communication can transform relationships and success. Some highlights we explore: The 3 conversation types and how to match them to avoid conflict Using “looping for understanding” to create deeper connections Why non-verbal cues are critical, especially in the digital age And more! Enjoy! FOLLOW CHARLES DUHIGG: instagram | facebook | twitter | linkedin | website Listen to the Podcast Subscribe

The post The #1 Mistake That Ruins Most Conversations first appeared on Chase Jarvis.

The post The #1 Mistake That Ruins Most Conversations appeared first on Chase Jarvis.




mistake

Handling Spelling Mistakes with Postgres Full Text Search

Background #

Postgres Full Text Search (FTS) is a great way to implement site search on a website running Postgres already, without requiring additional infrastructure.

On a recent engagement with a client, we were deciding between Postgres FTS and ElasticSearch. Ultimately we chose FTS because we could spin it up without having to add extra infrastructure, as we would with ElasticSearch.

Since the project was written in Ruby on Rails, we were able to use the excellent PgSearch gem to implement FTS in ActiveRecord.

Multisearch #

As we wanted a general site search, we needed to utilize multisearch. Multisearch combines multiple ActiveRecord models into one search 'document' table that you can search against. For example, if a user searches for some search term, and the search is configured for multisearch, then every single model that we mark as multisearchable will be searched for that term at the same time. See here for more detail.

Search Features #

PgSearch allows for different search features, tsearch, trigram, and dmetaphone. The default is tsearch, which uses the built-in Postgres Full Text Search.

This was great for our use case, since it also comes with highlighting, a feature that was required. The highlighting is from a field returned by Postgres FTS, where it returns the text around the search term for context and bolds the search terms.

Spelling Mistakes #

Unfortunately, tsearch does not handle misspelled words. However, as I mentioned before, PgSearch allows for other search features!

And trigram is a feature that can be installed via a Postgres extension (pg_trgm) that does just that.

Trigram #

  • The idea behind trigram search is to split pieces of text into sets of three-letter segments, and compare the sets to one another
  • If two trigram sets are similar enough, we assume there was a spelling mistake, and return the document with the correctly-spelled term.
  • As a quick example (ignoring whitespace): Consider the word Viget. Viget would make trigrams:
[vig, ige, get]
  • Now, consider our evil twin agency, Qiget. They would make trigrams
[qig, ige, get]
  • The two trigram sets match very closely, with only one of the trigrams not being the same. Thus, if we were to compare these with pg_trgm, we could reasonably tell that anyone typing 'Qiget' must have been actually looking for 'Viget', and just misspelled it.

Working Trigram into our existing solution #

PgSearch allows us to use multiple search features at once, so we can use tsearch and trigram side by side. Note that we cannot just replace tsearch with trigram due to needing some features in tsearch that are exclusive to it. Here is what an example configuration might look like.

PgSearch.multisearch_options = {
  using: {
    tsearch: {
      prefix: true,
      highlight: {
        MaxFragments: 1
      }
    },
    trigram: { 
      only: [:content]
    }
  }
}

Trigram (and timelines) causing issues #

While it was easy to slot Trigram into our multisearch, it caused a pretty serious performance hit. We were seeing 50x-75x slower searches with both features combined than with just tsearch. We needed to find a way to balance performance with handling misspellings

At the point that handling misspellings became prioritized, the entire search feature was almost fully QA'd and about ready to go out. There wasn't much time left in the budget to find a good solution for the issue.

This thread from the PgSearch repo sums it up pretty well – there were multiple other users that were/are having similar issues as we were. The top-rated comment in this thread is someone mentioning that the solution was to just use ElasticSearch ('top-rated' is doing a lot of heavy lifting. It did have the most likes...at two). We needed to find some sort of middle ground solution that we could act on quickly.

Postgres Documentation saves the day #

In the docs for the Trigram Postgres extension, the writers give an idea for using Trigram in conjunction with Full Text Search. The general idea is to create a separate words table that has a Trigram index on it.

Something like this worked for us. Note that we added an additional step with a temporary table. This was to allow us to filter out words that included non-alphabet characters.

execute <<-SQL
  -- Need to make a temp table so we can remove non-alphabet characters like websites
  CREATE TEMP TABLE temp_words AS
    SELECT word FROM ts_stat('SELECT to_tsvector(''simple'', content) FROM pg_search_documents');

  CREATE TABLE pg_search_words (
    id SERIAL PRIMARY KEY,
    word text
  );

  INSERT INTO pg_search_words (word)
    SELECT word
    FROM temp_words
    WHERE word ~ '^[a-zA-Z]+$';
  
  CREATE INDEX pg_words_idx ON pg_search_words USING GIN (word gin_trgm_ops);
  
  DROP TABLE temp_words;
SQL

This words table is therefore populated with every unique word that exists in your search content table. For us, this table was pretty large.

result = ActiveRecord::Base.connection.execute("SELECT COUNT(*) FROM pg_search_words").first['count']
puts result.first['count']
# => 1118644

Keeping the words table up-to-date #

As mentioned in the docs, this table is separate from your search table. Therefore, it needs to be either periodically regenerated or at least have any new words added to search content also added to this table.

One way to achieve this is with a trigger, which adds all new words (still filtering out non-alphabet characters) that are inserted into the documents table to the words table

create_trigger("pg_search_documents_after_insert_update_row_tr", generated: true, compatibility: 1)
  .on("pg_search_documents")
  .after(:insert, :update) do
  <<-SQL_ACTIONS
    CREATE TEMP TABLE temp_words AS
      SELECT word FROM ts_stat('SELECT to_tsvector(''simple'', ' || quote_literal(NEW.content) || ')');

    INSERT INTO pg_search_words (word)
      SELECT word
      FROM temp_words
      WHERE word ~ '^[a-zA-Z]+$';

    DROP TABLE temp_words;
  SQL_ACTIONS

end

Note that this does not handle records being deleted from the table – that would need to be something separate.

How we used the words table #

Assuming for simplicity the user's search term is a single word, if the search returns no results, we compare the search term's trigram set to the trigram index on the words table, and return the closest match.

Then, we'd show the closest match in a "Did you mean {correctly-spelled word}?" that hyperlinks to a search of the correctly-spelled word

Given more time, I would have liked to explore options to speed up the combined FTS and Trigram search. I'm certain we could have improved on the performance issues, but I can't say for sure that we could have gotten the search time down to a reasonable amount.

A future enhancement that would be pretty simple is to automatically search for that correctly-spelled word, removing the prompt to click the link. We could also change the text to something like "Showing results for {correctly-spelled word}".

Ultimately, I think with the situation at hand, we made the right call implementing Trigram this way. The search is just as fast as before, and now in the case of misspellings, a user just has to follow the link to the correctly-spelled word and they will see the results they wanted very quickly.




mistake

8 WordPress Development Mistakes to Avoid in 2022

WordPress is an incredibly versatile and powerful platform. But, like with any tool, it’s simple to make errors while using it because of the variety of possibilities available. Although some faults might harm your website, others can be catastrophic. That’s why it’s so important to be aware of them to be safe. When it comes […]

The post 8 WordPress Development Mistakes to Avoid in 2022 appeared first on WPCult.




mistake

Crash Course in U.S. Employment Law: How a Multinational Based Outside the United States Can Avoid Big Mistakes Managing a U.S. Workforce

  • Multinationals based outside the United States that enter the U.S. market and employ U.S. staff tend to encounter hurdles, and to make mistakes, because the U.S system of labor/employment regulation is of a fundamentally different character from those of every other country in the world.  




mistake

HVAC Q&A Episode 1: Common Heat Pump Installation Mistakes

What are the most common mistakes in heat pump installs, and how do you avoid them? Here’s what experts had to say about heat pump installation — a must-watch as electrification continues to gain momentum.




mistake

Episode 132: Top 10 Architecture Mistakes with Eoin Woods

This is a discussion with Eoin Woods about his collection of top 10 software architecture mistakes. Looking at things that don't work is always a good way to learn what you should actually do.




mistake

Twelve ultimate mistakes when selecting circuit protection for low-voltage equipment

To be honest, a circuit breaker is fairly simple device. However, the process of specifying circuit protection is often complicated and unclear, leading many engineers to either include insufficient or excessive protection in their equipment designs. Insufficiently protected circuits expose... Read more

The post Twelve ultimate mistakes when selecting circuit protection for low-voltage equipment appeared first on EEP - Electrical Engineering Portal.




mistake

Selecting Wrong Sensor As a Mistake #1 In Instrumentation

Despite ongoing advancements in measurement technology, instrumenting a process for feedback control remains a technical challenge. Today’s sensors are certainly more sophisticated than ever before, and fieldbus technology has simplified many installation issues considerably. Nonetheless, much can still go wrong... Read more

The post Selecting Wrong Sensor As a Mistake #1 In Instrumentation appeared first on EEP - Electrical Engineering Portal.




mistake

Installing Sensors Incorrectly As a Mistake #2 In Instrumentation

Generally speaking, there are four ‘Poors’ that can lead to incorrectly installing instrumentation sensors: Poor placement Poor control Poor protection Poor grounding Each of above sensor ‘poors’ are described below, and by the way… have you read what is the mistake No.1... Read more

The post Installing Sensors Incorrectly As a Mistake #2 In Instrumentation appeared first on EEP - Electrical Engineering Portal.




mistake

Eight common mistakes in reading and creating single line and wiring diagrams

In order to create a consistent and technically correct single line or wiring diagram, more than basic knowledge about the engineering field in question is required. Besides electrical installation and equipment, the design engineers should be familiar with electrical symbols... Read more

The post Eight common mistakes in reading and creating single line and wiring diagrams appeared first on EEP - Electrical Engineering Portal.




mistake

5 Common Mistakes Beer Brands Make in Pack Design

With beer being such an outwardly simple phenomenon, surely packaging it is pretty straightforward. As it turns out, it’s trickier than you might think. Here are the five most common mistakes we’ve observed — and on occasion, rectified.




mistake

Renewable Heat Incentive Scheme mistakes must never be repeated, says Committee

The Assembly’s Committee for the Economy calls for the clear failures highlighted by the Audit Office report into the Non-Domestic Renewable Heat Incentive Scheme to be urgently addressed. The highly critical Audit Office report indicated that there could be considerable cost to the taxpayer following serious systematic failings in the Scheme.




mistake

A mistake that killed Japan's software industry? (2023)

Comments




mistake

What Mistakes Do VCs Make When Fundraising?




mistake

'You Did What?' Dealing with Employee Mistakes

We all make mistakes, but it’s important to determine if an employee is simply having a bad day, or is performing poorly.




mistake

IRE 2022 Session Preview: Avoiding Critical Mistakes in Your Roofing Business

In this session, Monroe Porter will review some of the more common problem areas roofing contractors should consider when running their business.




mistake

Outsourcing and How to Avoid Strategic Mistakes

Dave Harrison shares some observations about outsourcing in the roofing industry and offers solutions contractors may want to consider before peak season.




mistake

Paris march mistake

Pamela Falk, CBS News Foreign Affairs Analyst, discusses the White House apologizing for the absence of a high-ranking official at the Paris march which included 40 world leaders.




mistake

Biggest Mistakes MSPs Make During Slowdowns

In this video, I point out one of the biggest mistakes MSPs make when the economy starts to slows down.

Source: Biggest Mistakes MSPs Make During Slowdowns - Technibble.com



  • MSP Marketing Strategy

mistake

House Republicans learn from Trump’s first-term mistakes to be ‘ready on day one’

House Republican leaders are learning from their mistakes during President-elect Donald Trump’s first term to be “ready on day one” to implement their aggressive agenda plans filled with policy changes during the first 100 days of Trump’s presidency.  House leaders have been in conversations with Trump for nearly a year to discuss policy proposals and […]




mistake

Democratic mistakes

I've actually written a lot, but haven't wanted to publish most of it. So many reasons why the Dems lost. Maybe I should just list them.

  1. Biden shouldn't have run again. There would have been a primary. Given the result of the election this week, we should have found out what support each candidate had with voters. We didn't get to choose the candidate. That said Harris ran a fantastic campaign.
  2. Biden should not have shut down his campaign website. Rather than using it to raise money to feed to the media industry, they should have organized and listened, to develop new channels of communication with voters that were not dependent on journalism. Every time the Dems run a campaign, win or lose, they shut down their connection to the electorate. The voters' only role in the party was when they needed our money and our vote. We were not part of governing. Huge mistake. And I'm not just saying that now, I've said that about every Democratic campaign since Obama. This is probably the biggest single mistake the Dems keep making.
  3. We needed a prosecutor at the top of Justice. I don't know what Garland actually did, but I'm sure it will all be swept out by whoever is Trump's AG.
  4. Men's votes need to be sought and welcomed, specifically. So much has been done to alienate male voters, which is why so many voted for Trump. We could have had a bunch of them this year, if we had only spoken to them with respect.

I don't know if we can reboot the Democrats as an opposition party given all these problems. Whatever comes next is going to perform very differently from the party that lost this election. If we try to do it again the same old way, it will fail even worse. I think everyone knows this by now.




mistake

Correct These 5 Common SEO Mistakes To Boost Your Traffic

Undoubtedly WordPress has been excellently set up to get the best of Search Engine Optimization. That’s the reason why most of us are always reluctant to get away from the cozy comfort of WordPress and get the site hosted with third party. Also, transition to a third party means increased responsibility starting from the need […]




mistake

Bronson Scott’s “Mistakes” delivers a heartfelt reflection on regret and growth

Bronson Scott’s new single, “Mistakes,” is the anthem for anyone who's ever wrestled with regret and wondered what life would look like without a few of their bad decisions. Scott…




mistake

Our mistake was to think we lived in a better country than we do | Rebecca Solnit | The Guardian




mistake

The Funniest Protest Signs By People Who Think Trump's Presidency Is a Terrible Mistake

These people are not afraid to carry on hilarious protest signs and tell the world what they really think of Donald Trump's Presidency. Via: Sad and useless  




mistake

If You Had A Nickel For Every Mistake...

I do in-house design work for my boss. I’ve worked with her for ten years and she swings wildly back and forth from being surprisingly design-savvy (not for a literal decade of trying on my part) and being a client from Hell. Today, she swung somewhere in the middle.

I have spent the entire time I’ve known her explaining how you cannot just pull photos from Google; I’ve explained copyright, public domain, etc. She refuses to buy photos 99% of the time, so I usually use free stock photos when possible. When she absolutely needs to buy a photo, she emails our web guy and has him buy one for her and add it to her next bill.

Me: “I see you got [Web Guy] to purchase the photo for the ad and forwarded me the email with the file. Unfortunately, the file is too small. Unless he sent you a separate email with a larger file, I will just email him for the correct one.”

Boss: “Maybe it’s how I sent it. I’ll try again.”

She forwards me the same email.

Me: “No, no, it’s not you. The file he sent you is labelled “thumbnail,” which is a preview file. He probably just sent the wrong one by accident. I have emailed him.”

Boss: “What about this one?”

She sends an email with the same photo attached.

Me: “That’s the same one. I have emailed [Web Guy]. Don’t worry about it. You don’t have the correct file.”

She forwards the same original email from [Web Guy].

Boss: “What about now?”

Me: “No, boss, I’ll get it from [Web Guy].”

She forwards the individual email she sent me.

Boss: “How about now?”

Me: “Boss, no.”

Closure: She now has a stock photo account that I have access to.







mistake

Mings penalty mistake biggest I've ever witnessed - Emery

Tyrone Mings became the first Englishman to concede a penalty on his Champions League debut in bizarre fashion as Aston Villa lost to Brugge.





mistake

Oops! Teachers' Mistakes Can Help Students Learn

A veteran teacher shares how he puts the latest research on growth mindset into action for his students in this guest blog by Jamie M. Carroll and David Yeager.




mistake

What Early-Childhood Accountability Can Learn From K-12's Mistakes

Education needs to stop going around in circles, writes Stanford’s Thomas S. Dee.




mistake

Oops! Teachers' Mistakes Can Help Students Learn

A veteran teacher shares how he puts the latest research on growth mindset into action for his students in this guest blog by Jamie M. Carroll and David Yeager.




mistake

PSS Shooting - High Q crystal oscillator - Simulator by mistake detects a frequency divider

Hi *,

 

I am simulating a 32kHz high Q crystal oscillator with a pulse shaping circuit. I set up a PSS analysis using the Shooting Newton engine. I set a beat frequency of 32k and used the crystal output and ground as reference nodes. After the initial transient the amplitude growth was already pretty much settled such that the shooting iterations could continue the job.

 

My problem is: In 5...10% of my PVT runs the simulator detects a frequency divider in the initial transient simulation. The output log says:

 

Frequency divided by 3 at node <xxx>

The Estimated oscillating frequency from Tstab Tran is = 11.0193 kHz .

 

However, the mentioned node is only part of the control logic and is always constant (but it has some ripples and glitches which are all less than 30uV). These glitches spoil my fundamental frequency (11kHz instead of 32kHz). Sometimes the simulator detects a frequency division by 2 or 3 and the mentioned node <xxx> is different depending on PVT - but the node is always a genuine high or low signal inside my control logic.

 

How can I tell the simulator that there is no frequency divider and it should only observe the given node pair in the PSS analysis setup to estimate the fundamental frequency? I have tried the following workarounds but none of them worked reliably:

 

- extended/reduced the initial transient simulation time

- decreased accuracy

- preset override with Euler integration method for the initial transient to damp glitches

- tried different initial conditions

- specified various oscillator nodes in the analysis setup form

By the way, I am using Spectre X (version 21.1.0.389.ISR8) with CX accuracy.

 

Thanks for your support and best regards

Stephan




mistake

Man Utd: Rio Ferdinand identifies first mistake Amorim has made

Manchester United legend, Rio Ferdinand has suggested that new manager, Ruben Amorim may have made a mistake in not keeping former interim manager, Ruud van Nistelrooy at the club. Amorim arrived at Man United on Monday to officially take charge at Old Trafford having been named Erik ten Hag’s permanent replacement a few weeks ago. […]

Man Utd: Rio Ferdinand identifies first mistake Amorim has made




mistake

For Manchester United, hiring Ruben Amorim could be a big mistake

Dutch coach, Eric Ten Hag was eventually booted out of Manchester United 30 months after his appointment in May 2022. The former Ajax gaffer didn’t quite succeed with the Red Devils in terms of quality, squad depth and results but he was able to deliver two trophies( Carabao, FA Cup) in his two years in […]

The post For Manchester United, hiring Ruben Amorim could be a big mistake first appeared on Business Hallmark.




mistake

When Fancy Is Mistaken for Faith

If God is still speaking to us today—even if only through mental impressions and still, small voices—shouldn’t we consider those messages to as relevant as anything written in Scripture, if not more so? That very issue was hotly debated during the Great Awakening. It was one area where Jonathan Edwards and George Whitefield did not (in the beginning) see eye to eye.

READ MORE




mistake

Turnbull and Shorten speak of mistakes

ROLLING UPDATES: Malcolm Turnbull and Bill Shorten have given candid interviews to Four Corners, where they reveal more about themselves and their hopes for winning the election.




mistake

Top 9 Mistakes to Avoid When Filing Your Swiss Tax Return

Filing your Swiss tax return can be a complicated process, especially if you aren’t aware of the common pitfalls. Mistakes are easy to make and can result in delays, additional fees, or even penalties. Getting the details right will help you save time and avoid unnecessary issues. This article outlines the top mistakes to avoid […]

The post Top 9 Mistakes to Avoid When Filing Your Swiss Tax Return appeared first on Chart Attack.




mistake

I’m a Celeb has made a huge casting mistake. The show won’t be the same

ITV previously seemed very happy to oblige politicians in urgent need of money, rehabilitation or just missing the attention, writes Sean O’Grady. But this year’s roster is different




mistake

Mattel apologizes for mistakenly printing porn website on Wicked toy doll packaging

Toy giant Mattel says it "deeply" regrets an error on the packaging of its Wicked movie-themed dolls, which mistakenly links toy buyers to a pornographic website.




mistake

Let’s Not Make the Same Mistakes with AI That We Made with Social Media

Social media’s unregulated evolution over the past decade holds a lot of lessons that apply directly to AI companies and technologies.




mistake

Common Mistakes to Avoid in Food License Document Submission

In this article, we shall outline the everyday mistakes made at some stage during the submission of food license documents and guide how to avoid them.




mistake

Juan González: Sitting Out This Election Would Be a Mistake, Just as It Was in 1968

As voters across the United States head to the polls on Election Day, many face “a choice between two unsatisfactory candidates,” says Democracy Now! co-host Juan González. This choice is especially “excruciating” for those “who are outraged by our government’s continued support for Israel’s yearlong genocidal assault on Gaza.” He says the 2024 election has echoes of 1968, when many progressives sat out the election because of anger over Vietnam, but Richard Nixon’s victory and ultimate expansion of the war proved to be disastrous. “It would take many years for some of us to realize we had made a big mistake in sitting out that election. … Making these decisions at the time of election may be difficult but sometimes necessary to do to open up the way for possible change in the future.




mistake

the news was a mistake

Today on Toothpaste For Dinner: the news was a mistake


This RSS feed is brought to you by Drew and Natalie's podcast Garbage Brain University. Our new series Everything Is Real explores the world of cryptids, aliens, quantum physics, the occult, and more. If you use this RSS feed, please consider supporting us by becoming a patron. Patronage includes membership to our private Discord server and other bonus material non-patrons never see!




mistake

'I didn't even think it was possible to get fired at orientation': 20+ Employees who were stunned to be fired for their big mistakes

In case you've never considered it before, yes, you can get fired at your job orientation. It probably makes things easier for the hiring team. Why bother hiring a person who can't even make it through the first few days of the gig?

Some people get hired at a job, but they make it clear from day one that they're just utterly uninterested in doing work for even a minute. One guy chose to only work from 10 AM-12 PM each day, which is iconic of him, and I wish him all the best. Another woman became notorious for her habit of refusing to work, and only riding the office tricycle all day! It's pretty startling that some people make it so blatantly obvious how little they want to work. Have some subtlety! Just do what a lot of higher-ups do and work half a day, grab a long lunch with your coworkers, then claim you're taking a phone meeting and leave at 3 PM. How hard could it be to get away with that? Keep scrolling to read some of the funniest stories about coworkers getting fired early on. 

After that, read the tale of the babysitter who ate about $25 of a $90 cake, and the woman she babysat for (her own aunt!) wants to be repaid ASAP. 




mistake

Five Mistakes to Avoid When Eating Almonds

Highlights: Balanced intake of almonds helps reduce digestive problems Almonds help lower bad cholesterol levels




mistake

I Wish I Knew About These 3 Cybersecurity Mistakes Before I Started a Business

Cybersecurity risks get increasingly complex every year, and businesses of all kinds are under attack. These are three of the most common cybersecurity errors companies make, with actionable advice on safeguarding against them.