Where is the SQL Server Database Trigger Wizard or Dialog Box?

Where is the SQL Server Database Trigger Wizard or Dialog Box?

This question is about SQL Server

In the past, I have created a stored procedure that was run on a timely basis by (if I remember correctly) a database trigger. As I recall, there was a wizard (dialog box with "NEXT" buttons) that I used to set things up to have the stored procedure run automatically. That was some time ago. Now when I search for database trigger information online, I find only information about -- creating triggers for when a table is updated or modified. Maybe I am using the wrong terminology and what I am looking for is not a "trigger" at all.

Django: Context Processors for Custom Environments

Django's context processors enable you to set global variables that are easily accessible in templates. In a few lines of code, you can customize your app's environment for a variety of user groups. For instance, we use context processors to segment user access and toggle features based on a user group.

For the example below, let's assume that users are grouped into three categories:

PEP/8 Assembly How to change numbers to roman numericals

Just started learning PEP/8 what would the correct way to convert numbers into roman numericals? for exemple How can input let say 6 and have it come out as VI in the output? I know what i did is far from being the correct way to do things as i only print out the roman letters when input specific numbers.

BR main

;******* main ()

nb: .BLOCK 2
I: .EQUATE 1
II: .EQUATE 2
III: .EQUATE 3
IV: .EQUATE 4
V: .EQUATE 5
X: .EQUATE 10
L: .EQUATE 50
C: .EQUATE 100
D: .EQUATE 500
M: .EQUATE 1000

char00: .byte 0x0049 ; I
char01: .byte 0x0056 ; V
char02: .byte 0x0058 ; X
char03: .byte 0x0043 ; C
char04: .byte 0x004C ; L
char05: .byte 0x0044 ; D
char06: .byte 0x004D ; M

msg1: .ASCII "Enter nomber from 1  3999: \x00" ; 
msg2: .ASCII "Invalide number \x00"  ; 

main:    STRO  msg1,d ;
         DECI  nb,d  
         LDA nb,d    
         CPA I,i
         BREQ valid1 ;if (number = 1)
         CPA II,i
         BREQ valid2 ;if (number = 2)
         CPA III,i
         BREQ valid3 ;if (number = 3)
         CPA V,i
         BREQ valid4 ;if (number = 5)
         CPA X,i
         BREQ valid5 ;if (number = 10)
         CPA C,i
         BREQ valid6 ;if (number = 50)
         CPA L,i
         BREQ valid7 ;if (number = 100)
         CPA D,i
         BREQ valid8 ;if (number = 500)
         CPA M,i
         BREQ valid9 ;if (number = 1000)
         CPA 0,i; 
         BRLE invalid ;if (number <= 0) then print msg2 (invalid number)

valid1: CHARO char00,d ; 0x0049 is 'III' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid2: CHARO char00,d ; 0x0049 is 'II' is Hexadicimal numbers 
     CHARO char00,d 
     CHARO '\n',i 
     BR finish
valid3: CHARO char00,d ; 0x0049 is 'III' is Hexadicimal numbers 
     CHARO char00,d 
     CHARO char00,d
     CHARO '\n',i 
     BR finish
valid4: CHARO char01,d ; 0x0056 is 'V' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid5: CHARO char02,d ; 0x0058 is 'X' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid6: CHARO char03,d ; 0x0058 is 'C' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid7: CHARO char04,d ; 0x0058 is 'L' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid8: CHARO char05,d ; 0x0058 is 'D' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
valid9: CHARO char06,d ; 0x0058 is 'M' is Hexadicimal numbers 
     CHARO '\n',i 
     BR finish
invalid: STRO msg2,d 
      CHARO '\n',i 
      br main ; branch to beginning

finish:  STOP
     .End

How to Start an LLC in Michigan

So you’re looking to start a business in Michigan, an LLC specifically. 

First of all, congratulations. This is an exciting venture. 

But before you get too ahead of yourself, you’ll want to make sure you’re following the necessary steps to ensure that your Michigan LLC is created in the right way. 

An LLC (limited liability company) is the most popular business entity for starting a small business.

Why?

Because LLCs are a hybrid of corporations and partnerships. They take pieces from each type of business structure and meld them together to create something ideal for someone starting small and likely on their own or with just a few owners or members. 

To help you ensure that you start your Michigan LLC correctly, we have created this guide with steps to help you get off your feet and into success.

The Easy Parts of Starting an LLC in Michigan

Many people are intimidated by the idea of starting a business. And they aren’t wrong–it can be overwhelming. There are so many moving parts, and it seems like quite the challenge to ensure you are doing everything correctly and legally. 

But the process of starting an LLC doesn’t have to be intimidating. By tackling each step of forming your LLC one by one with the help of this guide, you can get through the process in the best way and set yourself up for success.

So, let’s start with some of the easy stuff.

Choosing the name for your LLC in Michigan is one of the most fun parts of starting your own business. It is where you can get creative and set the tone for your business. 

Your name may reflect the type of industry you’re going into. It may be a family name. Or it may be something completely out there (we are looking at you, Google). 

Once you’ve settled on a name for your LLC, you need to make sure it is available. Michigan law states that your LLC cannot have the same name as or a very similar name to any other LLC, corporation, or limited partnership in the state. 

For example, if you are looking to start a company called The Corner Bakery, LLC, and a company in the state of Michigan already exists called A Corner Bakery, LLC, the names are too similar. You’d have to choose a different name. 

How do you know if someone already has a business with the name you’ve chosen? 

You check on Michigan’s business entity database. Enter the required information, and you will quickly find out if your business name is available in the state of Michigan. 

A tool that you can use to help you come up with a business name is Shopify’s business name generator

Though Shopify is known primarily as a platform to sell products, there is much more to it than that, including this tool that helps you come with ideas for a business name. 

By typing in one word that describes your brand, Shopify will spit out a range of different business names that you can choose from or be inspired by. Take the time to find the one that’s right for your brand by picking something memorable, clear, and unique. You want customers or clients to remember your business name and understand what your business is selling. And you want your business name to be unique, so you stand out from the crowd. 

In addition to helping you generate a business name, Shopify may be your go-to tool for other parts of your Michigan LLC, which we will cover in more detail below.

The Difficult Parts of Starting an LLC in Michigan

If only starting an LLC in Michigan was all fun and games.

But the reality is that there are tricky parts you must navigate to get your business where you want and where you need it to go. 

Here are some of those tough things to watch out for. 

Nobody likes paying taxes, and it becomes even less fun when you’re running your own business. 

LLC taxes are different from personal taxes (unless you are a sole-member LLC), so be ready to face some challenges in this. They are also different from other business entity taxes, so make sure you pay attention specifically to the laws for LLCs. 

LLCs are pass-through entities, which we will get into more in step 6.

If it feels overly complicated to you (if it does, you are not alone), then you’ll want to consider hiring an accountant to take care of your LLC taxes for you. This ensures everything is done right, and you may find it is worth the additional business expense to get your taxes done correctly the first time.

Step 1: Pick a Business Name

As mentioned above, the business name you choose for your LLC is an integral part of the process and can be a fun one.

It is where you want to start in building your business. 

The name should be something that people will remember, making you stand out from potential competitors. 

Shopify’s business name generator is a great tool that is just a part of what you get if you sign up to sell your brand’s products through this platform. 

Shopify provides LLCs with the tools they need to build an ecommerce website that helps with everything from finding new customers to dealing with the day-to-day operations of your company. 

Some of the features you’ll enjoy with Shopify include: 

  • 70+ professional themes to choose from
  • Customizable sites
  • Custom domain name
  • Full blogging platform
  • Hosting
  • Content management system
  • Free SSL certificate
  • Low credit card rate
  • Flexible shipping rates 

If you’re considering Shopify to help you provide an easy platform to sell your LLC’s products, then you’ll want to take a look at the different Shopify package options. 

  • Basic Shopify. $29 per month. Best for new businesses with little to no in-person sales.
  • Shopify. $79 per month. Best for growing businesses that sell both online and in-person.
  • Advanced Shopify. $299 per month. Best for scaling businesses that need advanced reporting. 

Step 2: Pick a Resident Agent

This sounds much more official than it is, so let’s break it down for you. 

A “resident agent” is simply the person that you appoint to receive official mail on behalf of your LLC.

There are a few rules for your resident agent: 

  • It can be an individual or a commercial entity
  • They must have a physical address in Michigan (a P.O. box won’t cut it)
  • They must be 18 years old
  • They must be able to accept mail during business hours

Some people opt to appoint themselves as the resident agent for their LLC, while others choose a commercial provider that offers more privacy. Many different online legal services are licensed to act as registered agents in Michigan, so you may want to consider this option for your LLC.

We do not recommend being your own resident agent because you must be available during all regular business hours. If you miss an important delivery, such as lawsuit service, you will be in trouble.

Step 3: Get Business Licenses

Whether or not you need a business license to operate your LLC in Michigan depends on the type of business you’re running. To determine whether your LLC needs a specific license, you can use Michigan’s State License Search

With one quick search, you’ll find out what licenses (if any) that you need to operate your LLC in the state of Michigan legally. 

You’ll also want to check with the city and county laws where you’ll be running your business to see if they require any business licensing different from the state’s requirements, which does happen.

Once you have registered your LLC, you’ll need an Employer Identification Number (EIN). If you are a sole proprietor, you may not need one, but all other LLCs do, both to pay taxes and for things like opening a business bank account and hiring employees.

Step 4: File the Articles of Organization

The articles of organization for your Michigan LLC outline the statements required to form an LLC in the state. They are also referred to as the certificate of formation and serve as a legal document that shows your LLC is established at the state level. 

You file your articles of organization with LARA, and you can opt to either fill out the paperwork by hand and mail it in or do everything electronically. You are required to pay a filing fee as well, which currently stands at $50. 

The information you need to complete this paperwork is fairly straightforward: 

  • Business name
  • Purpose of the LLC
  • Duration of the LLC
  • Resident agent name
  • Street address of the registered office
  • Mailing address of the registered office (if different from above)
  • Additional provisions
  • Name, signature, and date of the organizer filling out the form 

Once LARA has reviewed your articles of organization, your LLC will be filed in the state records.

Step 5: Create an Operating Agreement

Though an operating agreement is not required by the state of Michigan, it is highly recommended to keep your business organized. 

An operating agreement is something put in place that outlines the daily operations of an LLC. This is of great import when you have an LLC with multiple members, as this agreement is where the responsibilities of each member will be described, as well as the rights of each member. 

Some of the key things included in the operating agreement are: 

  • Each member’s capital contribution
  • Each member’s profit share
  • Each member’s voting rights
  • How the LLC meets
  • How the LLC votes
  • How new members to the LLC are admitted
  • What dissolving the LLC looks like in terms of procedure and conditions 

All members of the LLC must review and sign the operating agreement before it goes into effect.

Step 6: Pay Taxes

As we mentioned above, taxes are a major part of an LLC. The way that taxes are done for this type of business entity is different than any other. With an LLC, the owners or members of the LLC pay income taxes on their portion of the LLC’s income.

For starters, LLCs are pass-through entities.

What does that mean? 

It means that taxes aren’t paid by the LLC itself but rather by the owners of the LLC. Whoever the owners or members of the LLC are must pay Michigan state incomes taxes on their portion of the LLC’s income. Thus, if you are the only owner or member of the LLC, you pay 100% of your LLC’s income taxes. If you are a co-owner of the LLC, you split the taxes on your LLC’s income. 

All LLCs doing business in Michigan must file an annual statement with LARA, the Michigan Department of Licensing and Regulatory Affairs. This must be submitted by February 15th of the year following the LLC’s formation and contains information about your business and your business’ resident agent (the person who received official mail on behalf of your LLC). 

In addition to the income tax you must pay for your LLC, you are also required to pay unemployment insurance taxes and collect sales tax on any services provided or products sold. In addition to that, you need to withhold employee income taxes and pay these to the IRS. 

Again, you may want to consider hiring an accountant to ensure you’re on the right track.

Step 7: Fulfill State Employer Obligations

The state of Michigan requires that LLCs who have employees need to do the following: 

  • Report employees. You must report new employees within 20 days of the hire date.
  • Withhold taxes. You are required to withhold federal, state, and local income taxes from employee’s wages and pay them to the IRS.
  • Pay unemployment taxes. You must pay unemployment taxes. The amount you’re required to pay depends on how long your LLC has been in operation and how many unemployment claims have been made.
  • Buy workers’ compensation insurance. This is required to purchase for most employers in the state of Michigan.

Step 8: Remain in Good Standing

Once you’ve established your LLC in Michigan, you need to ensure that it stays in good standing with the state. 

You can do this by making sure that business finances are kept separate from personal ones. In addition to that, you may want to open a business bank and a business credit card for business transactions and business expenses.

Logtivity: A WordPress Activity Log Service With Customizable Charts, Alerts, and CSV Exports

Launched by Ralph Morris and Steve Burge in June this year, Logtivity is a plugin and service that allows site owners to track everything that happens on their WordPress installs. The duo has made continual updates to the plugin since. In the past couple of months, they have added deep integration with Easy Digital Downloads. They are also planning to build around more eCommerce-related plugins.

Burge mentioned that using the Logtivity service allows site owners to track and log activity at scale. While small sites could get by with an on-site solution, it can be harder to do while growing. “This offers a strong alternative to using a plugin because you don’t need to store huge amounts of data on your own server,” he said.

The service provides graphs so that end-users can visualize their data, but they can also dive directly into the logs and look at specific actions. Users can also set up unlimited alert notifications through email or Slack and download reports as CSV files.

Logtivity service dashboard, displaying both bar and line charts for posts published.
Site dashboard showing different chart types.

The Logitivity WordPress plugin is free to download and install, but it merely serves as a bridge to the commercial service. The pricing page has three tiers that start at $9.50/month and run to $49.50. The rates primarily differ on the number of logs generated, user access, and length of data retention. However, each tier can be used on an unlimited number of sites.

I have been running the service on WP Tavern for a couple of weeks. There are not many things I would want to track specific to this site other than posts published and commenting numbers. The short-term data has not told me much that I did not know already. However, I could see how these logs could come in handy over months or years. If we were running an eCommerce website, the information could be invaluable.

"Post Published" table of logs via the Logtivity service dashboard.
Viewing a specific set of logs based on an action.

Users can create reports of specific logs and display them as either bar or line charts. These can be generated based on an action, such as “Post Published” or “Comment Created.” Users can also add a specific context, such as a post ID. For example, a user could display a chart for each product file download through the plugin’s deep integration with Easy Digital Downloads.

This is the type of thing that the team has in mind at the moment. The primary use case since launch has been logging eCommerce activity.

“People who run eCommerce sites need to track registrations, subscription changes, file downloads, license key activations, login activity, and more,” said Burge. “eCommerce site owners need this for customer support and also to deal with refund requests and chargebacks.”

Currently, each of the service’s features is handled via the Logtivity site. The team has plans to bring them into the WordPress admin interface. However, it could be late 2021 or early 2022 before the integration happens.

“We’d love to bring Logtivity data directly into WordPress,” said Burge. “And because there’s no need to worry about Logtivity slowing down your site, we have some interesting ideas for how and where user activity can be displayed in the WordPress admin area.”

How It Started and Where It Is Going

Burge serves as the marketing brains behind the project. His primary WordPress-related business is PublishPress, but his customers had asked for a project like Logitivity for several years.

“Ralph Morris started Logtivity for a customer at the web dev agency he works at,” said Burge. “The customer’s site has around 100,000 users and gets a great deal of activity every day, from new registrations and subscriptions to resources being downloaded and cancellations. They were using a WordPress plugin to track customer activity, but as the number of logs grew, this process took longer and longer and became more clunky to perform. The final straw was when they were unable to perform the CSV exports, as it would keep timing out. Ralph scratched the itch and built a little MVP. After a few weeks, he showed it to his colleagues and got permission from his boss to offer it to the client to be the first user, and a little while later, the first paying customer.”

He said the two connected thanks to Iain Poulson, who recently co-launched the acquisitions marketplace FlipWP.

“Ralph lives really close to where I grew up in Hampshire, England,” said Burge. “We got our heads together and decided on a partnership: Ralph as the developer and myself as the marketer.”

Outside of integrating more directly with the WordPress admin, the Logtivity team has a roadmap that will keep them busy for a while. Topping that list are more integrations with third-party plugins.

“Our primary use-case is eCommerce sites, so WooCommerce is central to our plans,” said Burge. “But we also plan deeper integrations with more plugins that WordPress eCommerce sites use, including LearnDash, MemberPress, Paid Memberships Pro, and more.”

Several players in the space are moving toward broad integrations across the ecosystem. Chris Lema talked about it being a vital strategy for business growth with StellarWP’s recent acquisition of LearnDash.

Burge also noted that his team plans to continue improving the service’s alert system. “In future versions of Logtivity, you’ll be able to send more flexible alerts to more channels. We also plan to provide SMS alerts for your most important notifications.”

Links on React and JavaScript II


The post Links on React and JavaScript II appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

Google’s State of DevOps 2021 Report: What SREs Need to Know

SRE and DevOps deliver the best value when used together. Culture is key to avoiding burnout. You need the cloud more than ever.

These are among the main takeaways from Google Cloud’s latest Accelerate State of DevOps report, which examines how companies are using DevOps practices. Based in part on a survey of more than 32,000 professionals, the 2021 report, which was compiled by the DevOps Research and Assessment (DORA), identifies best practices that DevOps and SRE teams can use today to achieve operational excellence.Google

5 Key Best Practices for Sane and Usable Terraform Setups

Working with Terraform, an open-source infrastructure as code software tool, for over five years has taught me some key lessons. Here are five practices that have been critical to having a sane and usable Terraform setup, regardless of the size of the team or the nature of the project.

1. Know Your Target Audience

This one might seem obvious, but I’ve seen it go wrong several times. When organizing Terraform code, either standardizing the directory structure or defining naming conventions, it’s vital to consider the intended audience. Will your team be using these Terraform scripts and modules? Are you handing the work over to another team? Will new people be joining your team sooner or later? Are you working on this project solo? Will you be using this setup in 6 months or a year, or will it be assigned to someone else?

Why Should You Leverage Infrastructure as Code?

In a typical infrastructure build, developers and IT operation teams work coherently to plan, code, develop, and deploy application infrastructure by creating multiple instances and environments to code, test, and run their applications in. However, many complications can arise during the manual development and operations processes within such a build pipeline. Human fallibility is inevitable in any scenario where repetitive manual processes are the norm and everyone is guilty of making mistakes at work; dev and ops engineers are no different. The consequences of such mistakes are that the build process takes more time, energy, and resources to identify and fix errors in the pipeline so the whole process is affected, delayed, and more costly than planned. 

As part of this typical infrastructure build pipeline, development and operations teams are also responsible for individually maintaining multiple deployment environments. Managing multiple environments is a further difficulty to shoulder with each of them operating to its own configuration settings. 

Integrating Commerce and Marketing Systems Using Expressway

Expressway comes with a set of extensions to be added on the System Applications and Products (SAP) Commerce side to enable this point-to-point Integration between Commerce and Marketing systems. Expressway gets deployed with SAP Commerce application. People skilled in SAP Commerce can easily work on Expressway based Integration.

It is important to note that Expressway is not a standard Integration solution and is not officially supported by SAP. However, it can be a useful option in certain situations when there are constraints around time and cost.

Understanding Solace Endpoints: Message Queue Access Types for Consumers

The concept of message queues is fundamental in message-oriented middleware (MOM) and a constant topic of discussion for Solace users. Generally speaking, a queue is defined as a storage area where a message is stored until it is consumed by an application, or it expires. A queue provides the guarantee that the message will never be lost even if the consuming application is unavailable or if the message broker crashes. 

Solace endpoints are objects created on the event broker to persist messages. There are two types of endpoints: a queue endpoint (usually just called a queue) and a topic endpoint. I detailed the differences here if you want to learn more, and in this post, I’ll explain the two consumer patterns you have to choose from, how they differ, and when you should use each.

How to Implement Typeahead Search with Elasticsearch

Today, search is an important functionality in enterprise applications and end-users are obsessed with the experience of Google Search and expecting the application search also provides similar experiences.

This requires us to design and implement a search engine along with your golden source (RDBMS/NOSQL). There are many search engines available in the market today like Elasticsearch, Apache Solr, Azure Cognitive Search, etc. These provide a better search experience and features like typeahead, fuzzy search, boosting the search results based on relevancy, similarity search, etc.

12 Secrets for Successful Digital Transformation

Digital Transformation reforms the way an enterprise functions. An Everest Group research found that 73% of companies failed to see any addition to their business value from their digital transformation efforts. In this blog, I will reveal 12 secrets to a perfectly executed digital transformation journey. 

1. Define Your Ambition

Success starts when your organization can answer questions like — What is the desired outcome of your transformation? Are you looking for more sales, revenue, cost-saving, or selling to new/existing customers? Where is your transformation headed in the future?