mistakes

Green Building Mistakes

The first LEED Platinum certified building is in danger of an imminent collapse.




mistakes

Nawaz rues past mistakes that cost the country dearly

LONDON: Ruing ‘mistakes’ by petty individuals in the past, PML-N President Nawaz Sharif on Wednesday said that these errors had cost the country and democracy dearly.

Speaking at a workers’ convention at a local hotel, the PML-N chief said that if not for that ‘disturbance’, Pakistan would have been an Asian Tiger by now, or even a member of the G20 group of nations.

Although he did not name anyone in particular, it seemed from his words that he was addressing the judiciary, as he recounted incidents such as his removal from office in the Panamagate case.

“It was done for a personal agenda, not for the nation’s benefits. You know those faces… it’s unfortunate that they did it for their petty interests, for menial personal gains, they put the country on the line and kept sending prime ministers home,” he said.

He also regretted that a man like him was disqualified from politics for life, removed as president of the party and kept out of elections. “What were these decisions? What was the need? Who did this? Was it for the country or on a personal whim,” he asked, rhetorically.

In a series of references to what he termed ‘irregular conduct’ of judges, he recalled how one judge’s son had sought money in exchange for securing election tickets — a veiled reference to a purported audio recording where a voice alleged to belong to Najamus Saqib, the son of former CJP Saqib Nisar, could be heard asking a PTI ticket aspirant for money.

He also referred to a judge who was removed from office — a reference to former SC judge Mazahar Naqvi — saying, “Look at his assets, these are the people who have done this.

“It’s painful when I think of these things, one cannot criticise these actions enough. It is fortunate now that there is optimism in Pakistan, that it is coming out of darkness. One hopes that the country succeeds, the nation prospers. Had we not been thwarted, there would have been employment for everyone, housing for everyone.”

Mr Sharif was flanked by his daughter, Punjab Chief Minister Maryam Nawaz Sharif, and Defence Minister Khawaja Asif.

Maryam’s health

In her remarks, Ms Sharif refuted rumours about her health. “I have been working very hard for the last 8-9 months. I have a thyroid issue, last year I had a surgery. People keep asking why can’t I be treated at a hospital in Pakistan,” she said.

She said that while all her treatment had been carried out in Pakistan, the particular malady she had, which she called “parathyroid”, could only be treated in two countries, in Switzerland or America not even England. “I don’t want to play the victim and talk about my illness,” she said.

The previous day, Ms Sharif had addressed the rumours surrounding her health, saying: “My treatment is underway, but I am fine.”

Khawaja Asif heckled

In a video that went viral on social platforms on Wednesday, Defence Minister Khawaja Asif could be seen being heckled on a London train by an unknown man.

The video shows the defence minister being filmed on a train by a man who later abuses him and calls him names, saying that he could be attacked by a knife.

Sources said the incident occurred a few days ago in London on the underground train service Elizabeth Line.

However, Mr Asif did not mention this incident at the workers’ event later on Wednesday night.

Published in Dawn, November 14th, 2024




mistakes

Common Mistakes to Avoid in ESI Return Filing

In this article, we will talk about the common mistakes that companies make for the duration of ESI Return filing and the way to keep away from them to make sure easy and blunders-free submissions.




mistakes

15 Travel Mistakes on a trip to Italy

Travel mistakes in Italy. Having travelled and lived in Italy for the last twenty years, it’s safe to say I’ve made plenty of these travel mistakes. Italy, on the whole, is one of the easiest and most pleasant countries in Europe to travel to, but there are many common travel mistakes travelling in Italy that […]

The post 15 Travel Mistakes on a trip to Italy appeared first on Three Monkeys Online Magazine.




mistakes

4 Social Media Mistakes Small Businesses Make

Social media presents a useful and viable tool for a business to build their brand and increase their visibility. In fact, it is getting to the point where you are probably going to be at a disadvantage if you do not have at least some form of an online presence through these mediums.

While online marketing spans a wide range of topics, social media has quickly become the primary vehicle through which businesses and their websites increase traffic, reach potential clients and develop their brand. When done right, it is quite possibly the single-most useful tool at the disposal of todays website admin and or small business owner.

complete article




mistakes

Avoid These Five Common Small Business Accounting Mistakes

Keeping the books is one of the more challenging aspects of running a company. It is also one of the most important. Accounting errors can be damaging even fatal to businesses, but mistakes are surprisingly common. Here is how to avoid five of the most common accounting mistakes that plague small businesses.

complete article




mistakes

Big Mistakes in Small Business

The successes and failures of others, can provide extremely valuable information to guide you on your path. So from my own experience and from the common stories I hear from being involved with over 4000 small business clients, I have compiled what I see as the five biggest mistakes people make when running a small businesses.

complete article




mistakes

5 Common Mistakes Small Business Owners Make

For many Americans, starting a small business is an exciting experience, and potentially financially rewarding. However, when opening a new company, owners are understandably so focused on getting off the ground that they often overlook some basic considerations that can have a major impact on the company's value down the road. Below are the five most common mistakes that small business owners make, as seen by individuals who value or appraise businesses.


1) Short-term is short-sighted

Although it can be tempting to make decisions that will save money in the short term, it is important for business owners to consider the long-term growth of their companies. Rather than saving a few dollars today, owners need to think about how to sustain growth and drive value tomorrow.

complete article




mistakes

Avoid These Common Small Business IT Mistakes

When one component goes out on an older PC, there’s a good chance more failures are coming soon. Newer software and peripherals also may not work with older hardware. If you just want to boost performance or storage capacity, adding RAM or a new hard drive will do the trick. However, if something serious like the processor, or the motherboard itself dies, it makes more sense to look at a whole new computer rather than hobbling along with expensive repairs.

Eventually a time will come that you need to get rid of old smartphone, computers, or other technology your company no longer needs.

complete article




mistakes

To Succeed With Your Small Business Avoid These 5 Mistakes

At one time or another, virtually everyone thinks about starting a business. The allure of being your own boss can be strong, but it is important to remember that launching a new business is risky: According to a recent SBA report, [about 50% of all small businesses will fail within just five years.

Managing a startup can be a minefield, especially when the pull of entrepreneurship clouds your decision-making – and when you go it alone with no business experience.

complete article




mistakes

Avoid These 5 Small-Business HR Mistakes

Not heeding these warnings can lead to costly mistakes, such as litigation and employee turnover.

complete article




mistakes

Small-Business Owners Reveal Their Biggest Mistakes

From struggling with a business plan to hiring the wrong talent, there are a lot of opportunities for small-business owners to make mistakes, especially when starting out.

complete article




mistakes

The 5 Worst Cash-Flow Mistakes Small-Business Owners Make

In fact, a prominent study from the financial services company U.S. Bank found that as many as 82 percent of startups and small businesses fail due to poor cash-flow management. So, even if you are a brilliant entrepreneur in every other way, you must stay squarely focused on managing your company’s cash flow to avoid putting your business in imminent danger.

Here are five of the most common cash-flow problems:

complete article




mistakes

8 Rookie Mistakes To Avoid When Starting A Small Business

Enthusiasm—it can be both a blessing and a curse for new entrepreneurs. Passion for your business can fuel your success, but it can also drive you to operational and financial ruin if you do not take the time to think decisions through.

complete article




mistakes

Top 15 Small Business Loan Mistakes You Can Make

Small businesses have traditionally had a hard time accessing extra capital — i.e. through small business loans — from banks, big and small. And economic realities and forecasts dictate, generally, just how generous these institutions are at any given time.

Still, small businesses aren’t exactly being choked off entirely from getting approved. And the market has been improving for small businesses seeking loans. But in order to get a lender to take a flyer on your small business, it is best not to make a rookie mistake on your way to getting that loan approval.

Below are some of the top small business loan mistakes you can make.

complete article




mistakes

3 Legal Mistakes Every Businesses Should Avoid

Running a business is like running a marathon. You have the law, the government, and the competition all eagerly expecting you to make a mistake. Unlike in the marathon, any mistake you make cannot be forgiven. That being said, many of the mistakes businesses make are usually due to negligence and ignorance. Notwithstanding the intent behind these mistakes, you can be made to pay a huge price for committing them.

However, nothing can hurt your business as much as running afoul of the law in the process of running your business. Small business owners can pay the hardest for legal mistakes.

complete article




mistakes

The 5 biggest mistakes small business owners make according to Shark Tank stars

Small business owners have a problem with thinking big.

Thinking big doesn't mean getting a big head.

Small business owners mistake successful crowdfunding campaigns with success.

complete article




mistakes

10 Classic Small Business Social Media Mistakes

The try-out period for social media is long past. Even tiny businesses – even many who don’t even have their own websites – know they need to be on social.

10 Classic Small Business Social Media Mistakes




mistakes

Social Media Mistakes All Small Business Owners Should Avoid

Social media is a crucial component of any small business' marketing efforts. When done well, a strong social strategy helps you connect directly with your customers, and can even create some free publicity along the way.

For all of social media's advantages, there are pitfalls as well. The internet can look like a cavalier place when it comes to copyright rules, but there are plenty of no-nos that you need to follow if you want to stay out of legal trouble.

complete article




mistakes

3 Huge Mistakes That Can Sink a Small Business

Owning or running a small business comes with a special set of challenges that larger companies do not face. Major national brands have a lot of advantages, with the biggest one being that a single misstep probably won't derail a business.

That is not always true for owners of small businesses, where the distance between success and failure can be precarious. Sometimes seemingly small decisions can send a smaller company on a course that can't be corrected.

In some cases, however, it is possible to plan ahead to avoid certain pitfalls.

complete article




mistakes

3 Small Business Mistakes to Avoid

To say the United States has many small businesses would be an understatement — according to JP Morgan Chase & Co., more than 99% of Americas businesses are included in this category. Collectively, they contribute $5.9 trillion dollars to the economy every year.

complete article




mistakes

Attention Runners - Training Mistakes to Avoid

Tips for runners when training for a marathon and mistakes to avoid.




mistakes

Mistakes To Avoid When Buying a New Baseball Bat

Baseball is a fun sport that can keep you in shape. Learn the mistakes to avoid when buying a new baseball bat.




mistakes

Starting a Podcast? Avoid These 7 Common Mistakes

Let me tell you: it was a journey. Learning how to podcast is easy on the one hand, but keeping it up requires grit. I struggled. I celebrated. I attracted clients. I considered quitting at times. I got fan mail. I stuck with it.

Lather, rinse, repeat.

It has now been over 17 months, and I've learned some things. If you are thinking of starting a podcast, here are a few mistakes I'd recommend avoiding:

1. Spending too much money
You do not need a bunch of fancy equipment to start a podcast. Trust me. I spent $65 on a used Yeti microphone and pop filter from some guy off Craigslist and started recording the next day.

complete article




mistakes

Fighting a Cold: Five Common Mistakes You Should Avoid

As the cold season has arrived, so did common colds. It's important to avoid certain pitfalls to recover quickly and prevent complications.




mistakes

Five Benefits of Learning From Others' Mistakes




mistakes

Five Benefits of Others' Mistakes




mistakes

Cherish mistakes




mistakes

Special teams, defensive mistakes doom Commanders in loss to Steelers

Washington Commanders quarterback Jayden Daniels couldn't engineer another game-winning drive on Sunday, as the Pittsburgh Steelers recorded a 28-27 victory at Northwest Stadium.




mistakes

Mistakes When Exiting Your Business

You don’t know what you don’t know.




mistakes

Top OSHA Training Mistakes and How to Avoid Them

This detailed white paper features valuable guidance from J. J. Keller’s experts to ensure your training program is effective and OSHA-compliant. Learn how to identify your training needs, avoid common missteps and more.




mistakes

Top OSHA Training Mistakes and How to Avoid Them

Download a new white paper featuring valuable tips and insights from J. J. Keller’s experts to ensure your OSHA training program is effective and compliant. Learn how to identify your training needs, avoid common missteps and more.




mistakes

Digital transformations require honest communication, admission of mistakes

Having honest and direct communication about what is and isn’t working is the difference between success and failure.




mistakes

Medication Errors Injure 1.5 Million People and Cost Billions of Dollars Annually - Report Offers Comprehensive Strategies for Reducing Drug-Related Mistakes

Medication errors are among the most common medical errors, harming at least 1.5 million people every year, says a new report from the Institute of Medicine of the National Academies.




mistakes

Five portfolio management mistakes brand managers make

Product manufacturers need to continuously evaluate portfolio strategies to defend financial goals and positioning for the short- and long-term.




mistakes

Kenny Chapman: How to move forward despite past mistakes

Are you struggling to move on from past mistakes? Many leaders in the trades find themselves in this position at some point in their careers. It can be difficult to let go of what's happened and focus on the future, but it's essential for your continued success. This month, I’m sharing some tips on how to move forward despite past mistakes.




mistakes

Adams Hudson: 3 marketing mistakes to avoid

Not every ad is for leads, and your message is more important than you think.




mistakes

Hernan Charry: 4 overlooked mistakes plumbers make in their SEO strategy

Plumbers and their customers are living in a digital age, which means more potential clients are finding a plumber online via Google searches. If more customers are finding plumbers on Google, then it is important that you take the right steps to ensure you are the plumber they find. 




mistakes

Dan Holohan: Making mistakes

Some years ago, a wholesaler hired me to do a seminar in a New England hotel for about 100 of his contractor customers. After the seminar, the owner of the company invited me and a bunch of his employees out for a nice dinner. There were about 15 of us.




mistakes

Five Big Shipping Mistakes Your Alcoholic Beverage Company is Likely Making

This white paper includes data-driven insights, and actionable tips to enhance your business' shipping operations.




mistakes

Trying to Persuade and Other Big Mistakes Marketers Make

Many marketers today focus on getting consumers to consciously change their behavior. But that’s a sure path to failure, according to Leslie Zane, founder of Triggers Brand Consulting. She says neuroscience research shows that mastering instinct is far more effective than persuasion. And she shares her key lessons for aligning with the instinctive mind to improve company brands, new products, social campaigns, or your own personal brand. Zane is the author of the book The Power of Instinct: The New Rules of Persuasion in Business and Life.




mistakes

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.




mistakes

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.




mistakes

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.  




mistakes

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.




mistakes

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.




mistakes

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.




mistakes

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.




mistakes

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.




mistakes

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.