Form Design Guide For WordPress

Featured Imgs 26

Form Design Guide For WordPressInformation is critical for any business and is even more valuable if it’s coming straight from the source – your customers. One easy way of collecting data from your customers is by creating an online form and encouraging them to fill it in. It is no secret that forms are useful tools for businesses and […]

The post Form Design Guide For WordPress appeared first on WPExplorer.

How to Make a Portfolio Website Quickly? Read in This Article

Fotolia Subscription Monthly 4688624 Xl Stock

If you want to share your create talents with the world having a portfolio website gives you the most effective way to do so.

If you don’t have the time or the wherewithal to build one from scratch and you don’t want to spend a fortune to putting one together, your best approach will be to find an affordable website-building tool that will do the heavy lifting for you.

If you look for a cheap and easy solution your portfolio website could come up short in terms of quality or performance or might lack a feature you really want it to have.

Your creations can speak for themselves. They are impressive. Your portfolio website needs to be equally impressive to gain your visitors and potential clients or customers attention and trust.

There are certain features to look for in your search for a fast and affordable website builder. We’ll use the Portfoliobox portfolio-builder solutions to demonstrate what some of these features are and how you can best take advantage of them.

5 Portfolio Website Building Features that are Time Savers and Performance Boosters

A portfolio website should serve to impress its visitors and boost your business and/or reputation. A poorly built one can do just the opposite. It can be a detriment.

That is why it is so important to find a portfolio builder you can put your trust in. Here are 5 time-saving and quality-enhancing features you should look for to ensure the finished product will meet your objectives.

Let’s start with:

  1. Template mix-and-match page building

A theme-based website builder can be a real time saver but only if you can find a theme that can easily be customized to give you the layout and look and feel want. If it cannot, you could end up spending time doing a ton of customizing or deciding to start from scratch.

You want your portfolio website to reflect your unique creative abilities – at a minimum. The most promising way to do this is to look for a website builder (preferably a portfolio website builder) that allows you to mix and match templates to achieve what you want.

By doing so, you won’t have to worry about

  • Allowing someone else to impose constraints on your site’s content
  • Spending hours customizing a theme to achieve the correct look and feel
  • Designing your portfolio website from scratch

Take Portfoliobox for example. You start with a black slate (not the same as starting from scratch) and build your site’s pages a section at a time.

Since there’s plenty of variety as to what each section template will look like, you should easily find examples that align well with what you expect your portfolio, testimonial, contact, and other pages to look like.

Filling in details can be faster that customizing and is usually more satisfying.

  1. All-in-one pricing and affordable and transparent monthly plans

When you’re in a hurry to create a website quickly and you come across a website builder that claims you can use if for “free”, or offers an “affordable” plan, life seems good.

Or maybe it doesn’t.

When it gets down to incorporating all the features you want and need, you suddenly discover that they are only available if you sign up for an upgrade. Even then, you may not get everything you need.

That’s not the case with every portfolio website builder, but to be certain you’ll get the features you need you should look for transparent upfront pricing.

That’s the best way to avoid an unpleasant surprise. Portfoliobox provides an excellent example of transparent upfront pricing.

Portfoliobox offers three pricing plans, Light, Pro, and Pro Plus  (Pro is free for students). You can also select monthly pricing if it will work best for you.

The features of each of these plans are broken out, so you can see what’s included and what’s not:

  • A custom domain name (on Pro plans)
  • Web hosting and unlimited bandwidth
  • SSL certification
  • A mobile responsive website editor
  • Image storage and protection
  • eCommerce functionality is included in the platform
  • SEO tools
  • 24/7 customer support (chat)
  1. Four strategic business features for creatives

You obviously want to use a website builder that enables you to create an impressive online portfolio. But if you plan to offer products or services your site also needs to do an impressive job of streamlining your business dealings.

Your website builder should feature such things as:

Right-click disabling – if you want to protect your online work from theft. With Portfoliobox, this is done by toggling the Disable Right-Click feature as shown below.

 

Private client galleries – which will give you a fast and secure way to send artwork, photos, web designs, or whatever you are selling to your clients or customers.

There are other tools to create private client galleries, but why take the time and trouble to set up and coordinate with another platform when you can create one within Portfoliobox.

In addition to only having to upload and transfer your work once, this Portfoliobox feature also lets you manage your portfolio and your client/customer collaboration from a single platform.

Image watermarking – protects your work from thieves. It also streamlines your business dealings with your clients in that it enables you to make sure that clients have approved and paid for your products before they can put them to use.

Portfoliobox makes image watermarking easy and you can apply the feature to any client gallery.

Third-party integration – is another time-saving tool to look for.

With the third-party integration feature your portfolio builder can pull files into your website from a image or video editing platform.

  1. eCommerce integration

This is another example of the benefits of having your portfolio folder and being able to conduct business on the same platform. There are more than a few website builder solutions that feature eCommerce integration, but most place an emphasis on product pages as opposed to creating outstanding client portfolio galleries.

The Portfoliobox solution also avoid having to configure separate eCommerce settings since eCommerce is built right into the platform.

There are no add-ons needed either. It’s as easy as adding the store as a new page, choosing the template you want, and uploading your products.

  1. Timely customer service

A few website builders provide users with an FAQ page, most supply decent user documentation, and a some give you detailed documentation along with tutorial videos. Still, when you find yourself having to troubleshoot a website issue, wouldn’t you rather have a real person giving you expert advice when you most need it?

Attempting to troubleshoot a website problem on your own could take time, and the downtime you’re experiencing could cost potential business. The Portfoliobox platform offers the support you need when you need it.

When you’re on one of Portfoliobox’s Pro plans, you can go to the chat widget at the bottom of the screen to access instant customer support 24/7.

Building an impressive creative portfolio website the fast, affordable, and intuitive way  

While there is no shortage of website builders out there that feature portfolio-building tools, Portfoliobox was built specifically for creatives who need a tool for building a website whose main attraction is an attention-getting portfolio and doing so quickly.

Portfoliobox just happens to be one of the best website builders for creatives out there. Website builders that have all the features outlined in this post are rare, and that is especially true for the business oriented features.

Portfolio is fast and easy to use, and its affordable pricing plans are transparent, so you know you’re getting what you need to get your portfolio website up and running in no time at all.

Read More at How to Make a Portfolio Website Quickly? Read in This Article

How CSS Subgrids Make Vertical Alignment Easy

Category Image 052

Do you know that both the grids and alignment CSS properties are always talked about together? Why? Because of the nature of their existence and the mess that alignment creates on different screen devices. How easy and convenient would web developers’ lives become if all the devices in this world existed with the same screen size. That would be a dream! But coming back to reality, we have to deal with hundreds of devices with varying screen sizes, and the problems they create for the developers with alignment is an add-on. CSS grids and CSS subgrids were introduced to tackle the alignment problem with multiple elements existing side by side.

Grids were responsive, and instead of the “hit and try” of pixel and margin values, setting display: grid worked like a charm. As time stands witness to the issues tackled by web developers, if they do not have one, they invent one themselves. Now the developers have started to create complex web designs with one grid nested with other grids. That was a makeshift arrangement, and making it work was an endeavor in itself.

Brex Launches New Open API for Financial Services Integration

Featured Imgs 23

Brex, a financial service and technology company, has announced the release of a new open API that is intended to simplify the management of financial information for the company’s partners. This new API was tethered with the announcement of a partnership with Zapier that is meant to streamline integration for smaller businesses. 

Need help guys!

558fe5180e0e8fc922d31c23ef84d240
Error: AttributeError: 'str' object has no attribute 'sort'

brand_name = "Huawei"
count = 3
 while count <= 3:
    brands = str(input(" Enter cellphone brandname:"))
    brand_name.insert(brands, count)
    count = 1 + count
brand_name.sort()
brand_name.remove("Huawei")
print(brand_name)

A Deep Dive Into object-fit And background-size In CSS

Category Image 052

We’re not always able to load different-sized images for an HTML element. If we use a width and height that isn’t proportional to the image’s Aspect ratio, the image might either be compressed or stretched. That isn’t good, and it can be solved either with object-fit for an img element or by using background-size.

First, let’s define the problem. Consider the following figure:

Why is this happening?

An image will have an Aspect ratio, and the browser will fill the containing box with that image. If the image’s Aspect ratio is different than the width and height specified for it, then the result will be either a squeezed or stretched image.

We see this in the following figure:

The Solution

We don’t always need to add a different-sized image when the Aspect ratio of the image doesn’t align with the containing element’s width and height. Before diving into CSS solutions, I want to show you how we used to do this in photo-editing apps:

Now that we understand how that works, let’s get into how this works in the browser. (Spoiler alert: It’s easier!)

CSS object-fit

The object-fit property defines how the content of a replaced element such as img or video should be resized to fit its container. The default value for object-fit is fill, which can result in an image being squeezed or stretched.

Let’s go over the possible values.

Possible Values for object-fit

object-fit: contain

In this case, the image will be resized to fit the Aspect ratio of its container. If the image’s Aspect ratio doesn’t match the container’s, it will be letterboxed.

object-fit: cover

Here, the image will also be resized to fit the Aspect ratio of its container, and if the image’s Aspect ratio doesn’t match the container’s, then it will be clipped to fit.

object-fit: fill

With this, the image will be resized to fit the Aspect ratio of its container, and if the image’s Aspect ratio doesn’t match the container’s, it will be either squeezed or stretched. We don’t want that.

object-fit: none

In this case, the image won’t be resized at all, neither stretched nor squeezed. It works like the cover value, but it doesn’t respect its container’s Aspect ratio.

Aside from object-fit, we also have the object-position property, which is responsible for positioning an image within its container.

Possible Values For object-position

The object-position property works similar to CSS’ background-position property:

The top and bottom keywords also work when the Aspect ratio of the containing box is vertically larger:

CSS background-size

With background-size, the first difference is that we’re dealing with the background, not an HTML (img) element.

Possible Values for background-size

The possible values for background-size are auto, contain, and cover.

background-size: auto

With auto, the image will stay at its default size:

background-size: cover

Here, the image will be resized to fit in the container. If the Aspect ratios are not the same, then the image will be masked to fit.

background-size: contain

In this case, the image will be resized to fit in the container. If the Aspect ratios are off, then the image will be letterboxed as shown in the next example:

As for background-position, it’s similar to how object-position works. The only difference is that the default position of object-position is different than that of background-position.

When Not to Use object-fit or background-size

If the element or the image is given a fixed height and has either background-size: cover or object-fit: cover applied to it, there will be a point where the image will be too wide, thus losing important detail that might affect how the user perceives the image.

Consider the following example in which the image is given a fixed height:

.card__thumb {
    height: 220px;
}

If the card’s container is too wide, it will result in what we see on the right (an image that is too wide). That is because we are not specifying an Aspect ratio.

There is only one of two fixes for this. The first is to use the padding hack to create an intrinsic ratio.

.card__thumb {
    position: relative;
    padding-bottom: 75%;
    height: 0;
}

.card__thumb img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

The second fix is to use the new aspect-ratio CSS property. Using it, we can do the following:

.card__thumb img {
    aspect-ratio: 4 / 3;
}

Note: I’ve already written about the aspect-ratio property in detail in case you want to learn about it: “Let’s Learn About Aspect Ratio In CSS”.

Use Cases And Examples

User Avatars

A perfect use case for object-fit: cover is user avatars. The Aspect ratio allowed for an avatar is often square. Placing an image in a square container could distort the image.

.c-avatar {
    object-fit: cover;
}

Logos List

Listing the clients of a business is important. We will often use logos for this purpose. Because the logos will have different sizes, we need a way to resize them without distorting them.

Thankfully, object-fit: contain is a good solution for that.

.logo__img {
    width: 150px;
    height: 80px;
    object-fit: contain;
}

Article Thumbnail

This is a very common use case. The container for an article thumbnail might not always have an image with the same Aspect ratio. This issue should be fixed by the content management system (CMS) in the first place, but it isn’t always.

.article__thumb {
    object-fit: cover;
}

Hero Background

In this use case, the decision of whether to use an img element or a CSS background will depend on the following:

  • Is the image important? If CSS is disabled for some reason, would we want the user to see the image?
  • Or is the image’s purpose merely decorative?

Based on our answer, we can decide which feature to use. If the image is important:

<section class="hero">
    <img class="hero__thumb" src="thumb.jpg" alt="" />
</section>
.hero {
    position: relative;
}

.hero__thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    
}

If the image is decorative, we can go with background-image:

.hero {
    position: relative;
    background-image: linear-gradient(to top, #a34242, rgba(0,0,0,0), url("thumb.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

The CSS is shorter in this case. Make sure that any text placed over the image is readable and accessible.

Adding a Background to an Image With object-fit: contain

Did you know that you can add a background color to img? We would benefit from that when also using object-fit: contain.

In the example below, we have a grid of images. When the Aspect ratios of the image and the container are different, the background color will appear.

img {
    object-fit: contain;
    background-color: #def4fd;
}

Video Element

Have you ever needed a video as a background? If so, then you probably wanted it to take up the full width and height of its parent.

.hero {
    position: relative;
    background-color: #def4fd;
}

.hero__video {
    position: aboslute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

To make it fully cover the width and height of its parent, we need to override the default object-fit value:

.hero__video {
    /* other styles */
    object-fit: cover;
}

Conclusion

As we’ve seen, both object-fit and background-size are very useful for handling different image Aspect ratios. We won’t always have control over setting the perfect dimensions for each image, and that’s where these two CSS features shine.

A friendly reminder on the accessibility implications of choosing between an img element and a CSS background: If the image is purely decorative, then go for a CSS background. Otherwise, an img is more suitable.

I hope you’ve found this article useful. Thank you for reading.

find avg of high and low temp 2d array

558fe5180e0e8fc922d31c23ef84d240

#include "iostream"
#include "iomanip"
#include "cmath"
#include "string"
using namespace std;

int main()

int temp[7][2]= {0};
int day = 0;

for(int i = 0; i < 7; i++) {
cout<<endl<<" Day: ";
cin >> day;

for(int i = 0; i < 7; i++) {
cout << "\nEnter low temperature: ";
cin >> temp[day][0];

for(int i = 0; i < 7; i++) {
cout << "\nEnter high temperature: ";
cin >> temp[day][1];

for(int i = 0; i < 7; i++) {
cout << "\nDay: " << day << " High: " << temp[day][1] << " Low: " << temp[day][0] <<endl;

Inline Code Example Here
return 0;

How to add score counter?

558fe5180e0e8fc922d31c23ef84d240

How to add score counter to rock paper scissors game? I can't get score counter work. (Player wins, Computerwins)
I got it working without functions but now when I added them I don't just get it how to do it...

#include <iostream>
#include <math.h>
#include <string>

int numGen ();
int choiceConverter (std :: string);
void DisplayComputer (int);
void winner (int, int);

int main ()   
{
std :: string playerChoose;
int player;
int compChoice;
int rounds = 0;
int gains = 0;
int machineGains = 0;

// Ask the user how many rounds to play? 
std :: cout << "How many rounds do you want to play?" << std :: endl;  
std :: cout << "Enter rounds>";
std :: cin >> rounds;

for (int round = 1; round <= rounds; round ++)
{

std :: cout << "Round number:" << round << "/" << rounds << std :: endl;

std :: cout << "\nSelect rock, paper or scissors:";
std :: cin >> playerChoose;
std :: cout << "\ nYour selection is:" << PlayerChoose << "\ n";



compChoice = numGen ();
player = choiceConverter (playerChoice);
displayComputer (compChoice);
winner (compChoice, player);
}

} 
int numGen ()
{
std :: srand (time (0));
int randomi = rand ()% 3 + 1;

return randomi;
}

int choiceConverter(std :: string player1) 
{
int numEquiv = 0;

if (player1 == "rock")
character code = 1;
else if (player1 == "paper")
character code = 2;
else if (player1 == "scissors")
character code = 3;    
return numEquiv
}
void displayComputer (int player2)
{
if (player2 == 1)
{
std :: cout << "The computer chose rock \ n";
}
else if (player2 == 2)
{
std :: cout << "The computer chose paper \ n";
    }
else if (player2 == 3)
{
std :: cout << "The computer chose scissors \ n";
}
}

void winner (int player1, int player2)
{

if ((player1 == 1 && player2 == 2) || (player1 == 2 && player2 == 3) || (player1 == 3 && player2 == 1))
{
std :: cout << "\nYou won the game! \ n \ n";

}
else if ((player1 == 1 && player2 == 3) || (player1 == 2 && player2 == 1) || (player1 == 3 && player2 == 2))
{
std :: cout << "\ nComputer won the game! \ n \ n";

}
else
{
std :: cout << "\nDraw \ n \ n";
}   
}

Building a Metadata Driven UI

558fe5180e0e8fc922d31c23ef84d240

Description

Metadata-driven UI is especially useful in project teams with a high back-end or DBA competence rather than UI.

In general, it provides an element alignment by invocation of a single endpoint which provides all data required like cardinality, language, font size, and the font itself.