Rive

Category Image 091

I’ve had the animation tool Rive on my list of bookmarks to check out for a while. I recently got around to making an account and giving it a shot.

I was immediately interested in what the final output/export is. Because, of course, I want to know how I can use it… to connect it to my own web work. I’m not sure what I expected. Maybe SVG output with a bunch of inline JavaScript to control it? It’s not that, though. Ultimately you get a .riv file.

Then you use one of their runtime libraries to ultimately display the animation. I opened one of their demos, exported the animation, and here I am using the JavaScript runtime and CodePen Asset Hosting to display the animation:

They have loads of interesting use cases and demos on their website. For the web, it ultimately ends up as a <canvas>. I don’t know much about canvas and accessibility, but I imagine you’re kind on your own there to do the best you can do.

Anywho — just a 10-second glance here. The big takeaway here is that their Get Started button is the GOAT:

The Enterprise, the Database, the Problem, and the Solution

Featured Imgs 23

A friend of mine runs a company that has almost 100 clients. His company is delivering IT services to its clients, managing databases, servers, apps, etc. Some of his clients have 1,000 + employees and create hundreds of millions of database records each month. For most people, such numbers would result in data becoming completely opaque.

How do you manage hundreds of millions of database records, divided unto thousands of databases?

PHP Implode and Explode Functions

Featured Imgs 23

Imploding and Exploding are two crucial PHP features that are available for use on strings or arrays. Implode() and explode() are two built-in PHP functions that can help us with these tasks.

When working with arrays and strings in PHP, the imploding and exploding functions are frequently utilized. Using a code sample as a guide, we will learn how to utilize implode in PHP. We will also look at an example of how to utilize explode in PHP.

Create a Customer Feedback Survey for WordPress

Featured Imgs 13

How to Create a Customer Feedback Survey for WordPressEvery business wants to know what their customers think about them. That too not just for vanity. It’s actually an actionable customer metric that tells you what’s right and what’s not with your business. The best way to find out how your customers perceive your business is through customer feedback surveys. Even though feedback surveys […]

The post Create a Customer Feedback Survey for WordPress appeared first on WPExplorer.

5 Factors When Selecting a Database

Featured Imgs 23

When you are selecting databases for your latest use case (or replacing one that’s not meeting your current needs), the good news these days is that you have a lot of options to choose from. Of course, that’s also the bad news. You have a lot to sort through.

There are far more databases to consider and compare than ever before. In December 2012, the end of the first year DB-Engines.com first began ranking databases, they had a list of 73 systems (up significantly from the 18 they first started their list with). As of December 2022, they are just shy of 400 systems. This represents a Cambrian explosion of database technologies over the past decade. There is a vast sea of options to navigate: SQL, NoSQL, and a mix of “multi-model” databases that can be a mix of both SQL and NoSQL, or multiple data models of NoSQL (combining two or more options: document, key-value, wide column, graph, and so on).

How to Tell if a Website Is WordPress

Featured Imgs 21
How to tell if a website is WordPressIt helps to have inspiration when designing a website. With that inspiration, you can figure out which website builders, themes, and plugins were used to create websites you admire. But most websites don’t tell you on the homepage that they’re made using WordPress, Wix, or Weebly, so we put together a guide on how to tell if a website is WordPress.

Can someone help me make this work?

558fe5180e0e8fc922d31c23ef84d240

My program worked earlier this year before Windows 10 put and update and suddenly it doesn't work anymore. I have a separate laptop that didn't get the update and it works perfectly. Can someone please tell me what I need to do to get it to work? Ive tried everything I could think of and nothing works.

                    string[] music = Directory.GetFiles(@"C:\Users\Robert\Documents\C# stuff\Skynet\Skynet\bin\Debug\Music file", "*.mp3");// this is the original path

                    WMPLib.IWMPPlaylist Classicalplaylist = mplayer.playlistCollection.newPlaylist("classicalplaylist");
                    foreach (string file in music)
                    {
                        WMPLib.IWMPMedia media = mplayer.newMedia(file);
                        Classicalplaylist.appendItem(media);
                    }
                    mplayer.currentPlaylist = Classicalplaylist;

Some Best-Ofs

Featured Imgs 23

Our Top Pens of 2022 has been out a few weeks now and it’s loads of fun.

We tweeted and tooted the Top 10 to show them some extra love.


I noticed Steve Gardner has put together a Hall of Fame Collection with some of the greatest Pens of All Time, and I gotta say I agree with him on this list.

There are so many more, though! There are some massive heavy hitters. isladjan’s Parallax scroll animation has the most hearts of all time as I write. And there are unusual ones, like the freeCodeCamp test template, which is nothing to look at but has helped a zillion learners.


And speaking of curated best-of lists, GreenSock put together their favorites of 2022 — of Pens that use the GSAP framework. Really unbelievably beautiful interactive stuff in there, and of course, presented in a beautifully interactive way.

The web is cool.

More Real-World Uses for :has()

Category Image 091

The :has() pseudo-class is, hands-down, my favorite new CSS feature. I know it is for many of you as well, at least those of you who took the State of CSS survey. The ability to write selectors upside down gives us more superpowers I’d never thought possible.

I say “more superpowers” because there have already been a ton of really amazing clever ideas published by a bunch of super smart people, like:

This article is not a definitive guide to :has(). It’s also not here to regurgitate what’s already been said. It’s just me (hi 👋) jumping on the bandwagon for a moment to share some of the ways I’m most likely to use :has() in my day-to-day work… that is, once it is officially supported by Firefox which is imminent.

When that does happen, you can bet I’ll start using :has() all over the place. Here are some real-world examples of things I’ve built recently and thought to myself, “Gee, this’ll be so much nicer once :has() is fully supported.”

Avoid having to reach outside your JavaScript component

Have you ever built an interactive component that sometimes needs to affect styles somewhere else on the page? Take the following example, where <nav> is a mega menu, and opening it changes the colors of the <header> content above it.

I feel like I need to do this kind of thing all the time.

This particular example is a React component I made for a site. I had to “reach outside” the React part of the page with document.querySelector(...) and toggle a class on the <body>, <header>, or another component. That’s not the end of the world, but it sure feels a bit yuck. Even in a fully React site (a Next.js site, say), I’d have to choose between managing a menuIsOpen state way higher up the component tree, or do the same DOM element selection — which isn’t very React-y.

With :has(), the problem goes away:

header:has(.megamenu--open) {
  /* style the header differently if it contains 
    an element with the class ".megamenu--open"
  */
}

No more fiddling with other parts of the DOM in my JavaScript components!

Better table striping UX

Adding alternate row “stripes” to your tables can be a nice UX improvement. They help your eyes keep track of which row you’re on as you scan the table.

But in my experience, this doesn’t work great on tables with just two or three rows. If you have, for example, a table with three rows in the <tbody> and you’re “striping” every “even” row, you could end up with just one stripe. That’s not really worth a pattern and might have users wondering what’s so special about that one highlighted row.

Using this technique where Bramus uses :has() to apply styles based on the number of children, we can apply tble stripes when there are more than, say, three rows:

What to get fancier? You could also decide to only do this if the table has at least a certain number of columns, too:

table:has(:is(td, th):nth-child(3)) {
  /* only do stuff if there are three or more columns */
}

Remove conditional class logic from templates

I often need to change a page layout depending on what’s on the page. Take the following Grid layout, where the placement of the main content changes grid areas depending on whether there’s a sidebar present.

Layout with left sidebar above a layout with no sidebar.

That’s something that might depend on whether there are sibling pages set in the CMS. I’d normally do this with template logic to conditionally add BEM modifier classes to the layout wrapper to account for both layouts. That CSS might look something like this (responsive rules and other stuff omitted for brevity):

/* m = main content */
/* s = sidebar */
.standard-page--with-sidebar {
  grid-template-areas: 's s s m m m m m m m m m';
}
.standard-page--without-sidebar {
  grid-template-areas: '. m m m m m m m m m . .';
}

CSS-wise, this is totally fine, of course. But it does make the template code a little messy. Depending on your templating language it can get pretty ugly to conditionally add a bunch of classes, especially if you have to do this with lots of child elements too.

Contrast that with a :has()-based approach:

/* m = main content */
/* s = sidebar */
.standard-page:has(.sidebar) {
  grid-template-areas: 's s s m m m m m m m m m';
}
.standard-page:not(:has(.sidebar)) {
  grid-template-areas: '. m m m m m m m m m . .';
}

Honestly, that’s not a whole lot better CSS-wise. But removing the conditional modifier classes from the HTML template is a nice win if you ask me.

It’s easy to think of micro design decisions for :has()like a card when it has an image in it — but I think it’ll be really useful for these macro layout changes too.

Better specificity management

If you read my last article, you’ll know I’m a stickler for specificity. If, like me, you don’t want your specificity scores blowing out when adding :has() and :not() throughout your styles, be sure to use :where().

That’s because the specificity of :has() is based on the most specific element in its argument list. So, if you have something like an ID in there, your selector is going to be tough to override in the cascade.

On the other hand, the specificity of :where() is always zero, never adding to the specificity score.

/* specificity score: 0,1,0.
  Same as a .standard-page--with-sidebar 
  modifier class
*/
.standard-page:where(:has(.sidebar)) {
  /* etc */
}

The future’s bright

These are just a few things I can’t wait to be able to use in production. The CSS-Tricks Almanac has a bunch of examples, too. What are you looking forward to doing with :has()? What sort of some real-world examples have you run into where :has() would have been the perfect solution?


More Real-World Uses for :has() originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

Create a Drop Down Menu with Search Box in CSS3 and HTML

Category Image 052

This post is originally published on Designmodo: Create a Drop Down Menu with Search Box in CSS3 and HTML

Create a Drop Down Menu with Search Box in CSS3 and HTML

Topic: CSS3 Difficulty: Intermediate Estimated Completion Time: 45 min In this tutorial, we will be creating a flat style navigation with a search box and dropdown menu from the Square UI. Slides: HTML Static Website Builder Search Bar with Dropdown …

For more information please contact Designmodo

Iptables Basic Commands for Novice

Featured Imgs 23

While working with customers or while reproducing scenarios where I would have to allow or drop connectivity to certain ports in Linux OS, I have always found iptables command very helpful.

This article is for users who don't have insights into networking or, specifically, iptables command. This article would help such users quickly get a list of all rules and drop or allow traffic to ports.

How To Increase Profit Margins For Amazon Sellers?

Featured Imgs 20

Is your Amazon company a profit-leaching sieve? Do you wish to learn the main causes of your inability to KEEP as much money as you would like? Lets now discuss the various ways in which your company can lose money and how to make up for it. I want to offer a few eye-opening lessons, including how to conserve money and figure out what is truly important. Hiring A amazon marketing consultant is make your task easier

What More?
How do you know how your profit is doing? When we first begin selling a product, we normally examine its profit. However, as the years pass, it often takes us a while to notice when a product starts to lose money. You might believe that a product needs to be killed off, but perhaps all thats needed is a change in your approach. To start, ponder the following inquiries:

Am I effective?
If not, why not?
Can I increase my margins of profit?
Almost usually, you can increase your profitability. Lets discuss how.

Simple Ways To Boost Profit Margins

You should start by thoroughly examining your expenditures over the previous four months and analyzing all of your expenses. Examine your bank and credit card statements carefully, ascertain where each dollar has been going, and average your spending. There are usually recurrent monthly fees and expenses that you can readily account for, and then there are items like office and travel costs that are perhaps not always legitimate.

According to Amazon consulting services providers, you can calculate your average monthly cost, but keep in mind that you also have annual charges. Your estimate of how much will be incorrect if you dont take into account your yearly expenses.

Increase Profit Margins By Simplifying Inventory

Inventory that is kept in excess costs money each and every month. And if it costs you money each month, the longer the product remains unsold, the less money you will make from it.

Lets imagine, for illustration purposes, that your order lasts for four months. Your profit on that inventory will decrease month after month. Sending out smaller orders more frequently might make sense. You might want to compare the price of storing goods versus the price of shipping those more frequent, smaller orders.

There is also a stocking out. In addition to the obvious stockout costs, there are also less obvious costs that go unmentioned. If you hadnt pushed the marketing so aggressively and instead employed full-price sales, you might have stayed in stock. One of the main causes of stockouts is a lack of coordination between marketing and inventory, which you come to realize costs businesses a lot of money. And this is one of the reasons we keep bringing up inventory-focused marketing. Stocking out typically occurs as a result of merchants marketing too aggressively without thoroughly reviewing and integrating their inventory planning with their marketing strategies. The health of your company depends on you taking the time to conduct these evaluations.

Benefits Of Increasing Profit Margins
Your bank and merchant fees are the next thing you should examine. Paying wire fees is one of the things that annoys me the most It seems like a necessary evil, but it doesnt have to be! We discovered a bank that provides free, no-fee wire transfers, including international wires, while launching your business. The Best Amazon Consultant helps you to guide properly

Conclusion
There is usually a way to increase profits. Calculate smaller, more regular shipments to prevent overstocking. By lawfully re-coding your HTS codes, you can lower your delivery costs (with professional guidance). Make sure your warehouse isnt charging too much or adding extra expenses. Utilize a refund tool or service to reduce Amazon fees. To receive significant benefits, such as avoiding Stripe fees, think about using Brex and Passport. If you struggling for making a profit but are failing then you must hire an Amazon consulting services provider

Amazon Sellers
Amazon Selling Tips
Amazon Marketing