Help with basic code

python 3.7

Hey im very new to programming and just made my first program. My goal is to have a program that checks user name and pass with a few other tricks as you should see in the program. unfortunatly the feature after login is having some trouble. It is supposed to check the input and see if its in the range and give some feedback but it just isnt working right. i would appresheat it if yall could take a look.
P.S. i apolagize for my spelling never been one of my strong suits.

Walking 718km to WCEU, an Interview With Marcel Bootsman

I have a hard time walking a mile or two let alone 718km, but that’s what Marcel Bootsman did on his journey to WordCamp EU to generate funds for DonateWC.

In this interview, Bootsman explains how he prepared for the journey, what he experienced during his trip, and why he chose DonateWC as the charity to raise funds for.

One of the things that I was curious about was what Bootsman thought about during those long stretches where he had plenty of time to think to himself.

The thing that I noticed is that my thinking had changed during the month. In the beginning, I was thinking about my work, my company, and my family a lot. After about a week my family met me and it was very emotional.

After that week I found a how do you call it, peace or something like a Zen mode. Nothing was on my mind for large parts of the route. While I was walking, I was just looking around at the scenery and checking out the animals that I saw.

Sometimes I got an idea about my work and what I wanted to do differently. I’d write it down on my phone and the trip was mostly calm and relaxing.

Marcel Bootsman

The interview is 31 minutes long and is available in video and mp3 formats. There’s also a transcript available below. In the end, Bootsman was able to raise €8590 for DonateWC and inspire a lot of people. To learn more about his journey, check out his Walk to WordCamp EU summary.

Watch and Listen:

Listen:

Interview with Marcel Bootsman

Transcript:

Graphical User Interfaces for Git

Git is command-line-driven software, but that doesn't mean you have to use the command line to make it work. There are lots of options! Some of the deepest programmer nerds I know prefer to use GUIs for Git (Graphic
User Interface, or you know, software you can see things and click stuff), and some near pure-designers I know prefer working with the command line for Git. Swear to Git.

Lemme round up what look like the major players for Git GUIs these days.


Tower

I've used Tower for ages and it's the one used the most. I'm not sure the exact release dates of all these, but I feel like Tower was an early player here. They've been around a long time and continuously improve, which I always respect.



Fork

It's free and actively developed, incredibly.



GitHub Desktop

This is a 2.0 of the original GitHub Desktop. I had some gripes with the 1.0 version in that its terminology was weird (to me) and seemed to vastly deviate from Git, which was more confusing than it was worth (again, to me). This version cleans most of that up. It's deeply integrated into GitHub so it makes GitHubb-y things (e.g. pull requests) feel like first-class citizens, but it will still happily work with any Git repo.



GitKraken

I'm pretty intrigued by this one. Upgrading (monthly cost) to get the in-app merge conflict tool seems worth it, but you also have to upgrade to access private repos. It seems highly feature rich, but I think my favorite part is the dark-with-rainbow-accent-colors theme.



Sourcetree

You might be compelled by Sourcetree if you're a big Bitbucket user because they are both Atlassian products. I know it works for any Git repo though. I imagine there is some smooth Bitbucket integration stuff with this, similar to the GitHub/GitHub Desktop connection.



Coda

You don't really think of Coda as a version control tool (it's more of a direct-to-FTP thing), and even though I'd argue the support for it is fairly half-baked, it does work! Seems likely the next evolution of Coda will address this.



VS Code

Having version control right in your IDE like this, to me, feels like kind of a tweener between GUI and CLI. There are a lot of features here, but it's not really a full-blown GUI to me, but you've got a terminal built in right there so it almost encourages that. A lot of Git usage is pretty basic pulling, committing, and pushing — so having this right within the app is kinda sweet.

(I imagine there are lots of other IDEs that offer version control features. PHPStorm, etc.)



The post Graphical User Interfaces for Git appeared first on CSS-Tricks.

Toast

One day, all the sudden, I started hearing jokes about toast. I had no idea what the context was. I assumed some friends just got started telling toast jokes, which isn't rare by any means. But it turns out it was a whole thing. It got me thinking, jeez, if I can't keep up with this stuff when it's kinda my job, it must be extra tough for people who actually do work for a living.

Anyway. Thankfully Jeremy summed it up nicely:

First off, this all kicked off with the announcement of “intent to implement”. That makes it sounds like Google are intending to, well, …implement this. In fact “intent to implement” really means “intend to mess around with this behind a flag”. The language is definitely confusing and this is something that will hopefully be addressed.

Secondly, Chrome isn’t going to ship a toast element. Instead, this is a proposal for a custom element currently called std-toast. I’m assuming that should the experiment prove successful, it’s not a foregone conclusion that the final element name will be called toast.

The drama around it, hence the cause of all the jokes and such, was the fact that it felt like it came out of nowhere and was Chrome strongarming a feature through the standards process, or perhaps kinda skipping that process. Terence's humorous post digs into that a bit more.

I'm not sure if Google is actually doing anything nefarious here. It's behind a flag, so I guess the point of that is to explore and research and stuff. Feels very similar to kv:storage to me, a "native module" much like a "native custom element."

But we should be extra watchful about stuff like this. If any browser goes rogue and just starts shipping stuff, web standards is over. Life for devs gets a lot harder and the web gets a lot worse. The stakes are high. And it's not going to happen overnight, it's going to happen with little tiny things like this. Keep that blue beanie on.

Regarding the element itself, it's always a bit surprising to me to see what gets legs as far as new HTML elements. Toasts just seem like a positioned <dialog> to me, but I haven't participated in any research or anything. They are popular enough for Bootstrap to have 'em:

See the Pen
Bootstrap Toasts
by Chris Coyier (@chriscoyier)
on CodePen.

I would have guessed something like dropdown menus or tabs would have been the strongest contenders for "native" web components.

The post Toast appeared first on CSS-Tricks.

msgWP to Launch Plugin Enabling WordPress Microblogging with Telegram

msgWP piqued public interest this week with a demo of its new microblogging product that allows users to publish text messages and photos to WordPress sites using Telegram. Although the plugin hasn’t officially launched yet, a live demo on the website allows people to anonymously publish a post to msgWP’s demo blog from their own Telegram accounts by launching a Telegram bot.

The plugin’s creator, Róbert Mészáros, said he plans to launch it in late summer or early fall, after collecting more feedback from beta testers and polishing the website. Mészáros is a developer who mainly works on a contract or freelance basis. Although msgWP isn’t is first WordPress plugin, it is the first one he has created as a product to promote.

“It’s highly unlikely that I’ll make msgWP available on the WordPress.org Plugin Directory, but it’s going to be GPL licensed,” Mészáros said.

“Support, automatic updates, and restricted content will be available only for those who buy a plan. Since I’m using msgWP myself and I plan to donate a part of profit back to the community, to the WordPress Foundation.”

Most of the plugins available that integrate Telegram with WordPress either broadcast to a channel or display the feed of a public channel in a widget. This is the first plugin that sends Telegram user-generated content into WordPress.

I tested the demo last night and successfully posted a text to the demo blog. Images do not yet appear to be working on the demo or may be disabled for now. Mészáros said the demo implementation unhooks some of the checks that are enabled by default on the plugin.

When the msgWP plugin is used on a site, administrators need to allow a Telegram account to create posts explicitly. This setting is available in the admin screen where you can enter the username of a Telegram account. Adding multiple usernames to the whitelist opens up some interesting possibilities for group blogging.

“Since every Telegram message contains information about the Telegram account, we can filter out those who are not whitelisted,” Mészáros said.

“Also, the fact that users are explicitly whitelisted opens up the way to have user level settings. For example, you can set a specific category for a Telegram account or only give them the option to create draft posts.

“If you whitelist yourself you have a microblog; if you whitelist 20 users with various settings, you can cover a live event with Telegram and msgWP.”

The msgWP plugin also checks the IP of the request. If it falls outside a particular IP range, msgWP can recognize that it’s not from Telegram and block it.

Mészáros’ inspiration for the plugin came from his principles regarding centralized social media. While he maintains a private blog where his friends follow him, Mészáros’ doesn’t use platforms like Twitter and Facebook.

“I feel strongly about blogging and microblogging,” he said. “It’s not all rainbows – if you have one, you know that it takes a certain kind of commitment and effort.”

Mészáros said he was also inspired “by an almost forgotten history of WordPress,” wherein many took advantage of its support for XML-RPC to blog from desktop blog editors, like MarsEdit, BlogJet, and BlogDesk, without ever logging into the admin. He contends that third-party tools like this demonstrate that WordPress is more than the editor.

Since msgWP is already integrated into the messaging workflow for Telegram users, it may inspire some to blog more often. Posting is faster than using Twitter, Facebook, or even the WordPress mobile apps, albeit with far fewer features.

“Paradoxically we want to encourage people to use WordPress by not reminding them that they run their sites/microblogs on WordPress,” Mészáros said. “A messaging app has some informality to it, and that will help a lot. All you need is to write and press send. After all, you are sending texts, and not publishing structured articles on your blog after too many glasses of wine. For this reason, we don’t see msgWP with Telegram as a replacement for the WP Mobile Apps.”

Despite the convenience promised through various apps, the concept of microblogging on one’s own website does not seem to have taken off yet. Services like micro.blog, which integrate with existing WordPress blogs, are still used by a fervent few and have not yet gained mainstream adoption. Even the “Press This” feature that was included in WordPress core prior to 2017, was retired in favor of a canonical plugin, with discontinued support for the bookmarklet feature. It hasn’t been updated for two years and is only installed on approximately 10,000 sites.

Postcard, a social sharing and microblogging app that integrated with WordPress, is another tool that was aimed at fundamentally changing how people use social networks. It was discontinued due to the development burden of supporting multiple apps.

There are many different solutions that have popped up over the years for enabling quick posts or microblogging, all with vastly different approaches. msgWP has an advantage in that Mészáros can leverage the power and speed of Telegram, along with all of its mobile and desktop clients, without having to maintain that aspect of the publishing interface. Even if it doesn’t spark a wildfire of microblogging across the web, it may offer users a convenient alternative to posting content inside social media silos, especially for niche use cases like group microblogging for live events.

How to Sell Food Online

The ecommerce industry is booming. It seems like everyone is coming up with different ways to get into this space.

But when we think of ecommerce our minds typically don’t jump to food. Most entrepreneurs seem to focus their efforts on inventing or modifying a new product that can solve problems

With that said, there is lots of money to be made in the online food industry.

As of 2018, the online grocery shopping in the United States is a $17.5 billion industry. But there are plenty of other ways to sell food online as well.

For example, maybe you have a restaurant and want to expand the way your customers order takeout. The global online food delivery market is growing at a 14.8% year-over-year rate.

That’s not all. Take a look at this graph from eMarketer on the projections for total online food and beverage ecommerce sales in the coming years.

Food Ecommerce Sales

Online sales in the US alone are expected to double over the next four years. So it’s safe to say that there is plenty of money to be made in this space.

Here’s the reality of the situation. Everything in our lives has gone digital. We’re ordering everything else online, so it’s only natural that online food sales is the way of the future as well.

But when you search the web for how to create an ecommerce site, the resources for selling food online are pretty scarce. That’s what inspired me to create this guide. I’ll tell you everything you need to know about building an online platform for selling food.

Understand the law

Before you do anything, you need to make sure that you’re familiar with all of the legal regulations for selling food online. This will vary depending on your location, as well as the type of food you’re selling.

For example, if you’re selling in the United States, you’re going to have to follow different guidelines than if you were selling in Europe.

Here’s something else to take into consideration. Are you planning to prepare and sell food out of your home? Or are you selling out of an industrial kitchen?

Let’s say you were making homemade cupcakes in your kitchen at home. The rules that apply to you will be different than someone who is jarring sauce in the kitchen of their restaurant.

In the United States, you’ll need to follow the Cottage Food Laws, which vary slightly from state to state. Regardless of your location, here are some guidelines that are pretty standard across the board:

  • Annual inspection from the department of health.
  • Zoning permits from the department of health and/or the department of agriculture.
  • Valid business license in your operating state.
  • Ability to properly store food (cold, dry, etc.).
  • No pets in the home or kitchen.

These are just the minimum requirements, and it barely scratches the surface. So be sure to fully review your local requirements before you start selling any food online. Otherwise, you’ll risk violations that can shut your operation down.

Find a supplier

No matter what you’re planning to sell, you need to source a reputable supplier. Whether you’re planning to sell pre-made products or if you’re cooking everything on your own, this still applies to you.

The most challenging part about finding the right supplier is establishing their legitimacy.

For example, let’s say you’re planning to prepare food in your home kitchen. Costco would be considered a reputable supplier for your ingredients. Picking apples, tomatoes, or peppers from your neighbor’s garden is not reliable, reputable, or trustworthy.

If you’d rather use an online supplier, you can try using a resource like Food Master.

FoodMaster

This is a massive online directory of ingredients. You can browse what you’re looking for by category, or search for specific keywords.

If you’re on the fence about a supplier’s reputation, it’s perfectly reasonable to ask them for their credentials. After all, the products you buy from your supplier will ultimately be consumed by your customers. So whatever you buy from them will directly impact your business.

Just because your supplier claims that it’s selling organic produce, it may not necessarily be true. Follow the supply chain to fact check everything.

Know your niche

Everybody eats. But that doesn’t mean that everyone is a potential customer.

This is a mistake that I see new entrepreneurs in the online food industry make all of the time. They assume that everyone will enjoy what they’re selling, and they don’t go after a specific niche.

You’ll have much more success if you can clearly define your target audience before you proceed. Then you’ll be able to make necessary adjustments to meet their needs.

For example, take a look at the meal plan options offered by Green Chef.

GreenChef

This company is targeting people with special diet needs, such as keto, paleo, or plant-based diets.

Are you going to target working professionals who don’t have time to cook? Or are you targeting families who need healthy options for their children?

Does your site want to focus on college students living in dorms? Or elderly residents who are living on their own?

As you can gather from just these handful of potential examples, the food you’re selling and the way you market yourself would be drastically different in all of these scenarios.

So rather than trying to compete in an over-saturated industry, pick a niche and run with it.

Focus on branding

Once your niche has been established, it will be much easier for you to go through the branding process. Your brand will be a combination of what you’re offering as well as who you’re offering it to.

People can buy food anywhere. Your brand needs to explain why they should buy it from you.

Think of a company like McDonald’s. When you hear the name or see their golden arches, you automatically have an association with what they’re offering. They are the epitome of a fast food burger chain. You know exactly what you’re getting and how you’re going to get it.

That’s because they’ve done an excellent job branding themselves. In the online food industry, these are the components you need to prioritize to establish proper branding.

Brand name

Your name should go far and beyond what you’re selling. This is another common mistake that I see new food entrepreneurs make all of the time.

For example, let’s say you currently sell cupcakes out of your home kitchen. You might be tempted to name your company something like Cassie’s Cupcakes.

But this name puts you in a box. What happens when you want to start selling brownies, cookies, and other baked goods? Don’t let your brand name restrict the future expansion of your company.

Use a domain registrar like Namecheap to see if the domain name for your brand is available.

Namecheap

If your name isn’t available, and can’t be purchased for a reasonable price, it’s definitely in your best interest to think of another name. I’d also recommend reviewing my guide on how to choose a brandable domain name for help with this process.

Colors

Your brand’s colors will be synonymous with your branding strategy.

Don’t think colors are that important? Think again. Let me give you an example to show you what I’m talking about.

Starbucks.

Without even showing you a picture of this company, their website, or their products, I can almost guarantee that a color popped into your head when you saw the name. That’s because the brand has done a great job with their branding strategy.

I’ll give you another example from the online food space. Let’s take a look at the Blue Apron website.

BlueApron

This is a fairly obvious example since there’s a color in the brand name. But as expected, the business has a blue logo and the website has a blue theme. If this company had a red or an orange color scheme, then it wouldn’t make sense.

Make sure your colors appeal to your niche. It’s also important to know how certain colors are perceived.

For example, let’s say you’re planning to sell fruits and vegetables online. Having a black or brown color scheme isn’t very appealing. It doesn’t give the perception of products that are fresh. In this case, you’d be better of going with some lighter and brighter tones.

Packaging and labeling

Like any product, the packing of the food that you’re selling online needs to be carefully thought out. In addition to having your brand name, logo, and colors integrated on the package, there are other things to take into consideration as well.

Food needs to be packaged in a way that keeps it preserved. If perishable items need to be kept cold, the packaging should reflect that.

There are also certain regulations that need to be followed for shipping foods that are perishable or fragile.

Furthermore, there are other requirements for labeling food. Your labels need to include:

  • Complete list of ingredients.
  • Net quantity.
  • Weight of all combined ingredients.
  • Name and location of the company.
  • Names and locations of suppliers.
  • Expiration or “best by” dates.

Some of the packaging and labeling aspects of selling food online will fall within the legal scope of your operation, which we discussed earlier.

But it’s important to find a balance between a packaging that’s appealing to your customers while meeting all of those legal requirements.

Figure out your pricing strategy

Now it’s time to figure out how your online food store is going to make money.

You can’t just pull a price out of thin air. It’s important to factor in all of your operational and business costs to ensure that your products are priced in a way that is profitable for you. Your pre-defined niche will also factor into your pricing strategy.

For example, a business professional living and working in New York City will likely be willing to spend more on a single serving than a family of five living in the midwest.

You’ve got to come up with a pricing formula that drives ecommerce conversions. Take a look at Freshly’s pricing as a reference.

Freshly Pricing

They’re using an age-old strategy, that’s not limited to the online food industry. As quantity increases, price decreases.

The cost per meal drops nearly 30% if a customer orders 12 meals per week as opposed to just 4. Sure, they’re making less per meal, but they’re getting more than double the weekly revenue from one subscription over the other.

If the cost per meal didn’t change based on quantity, then it doesn’t give your customers an incentive to spend more money.

Here’s something else to consider with the Freshly pricing strategy. All of the plans offer free shipping.

This is all related to perceived value. If you charge extra for things like shipping, it lowers the overall value of what you’re selling.

Review my guide on how to generate more profits by focusing on your pricing strategy. All of these concepts can be applied to businesses that sell food online.

Create an online store

There are two ways to sell food online. Each one is very different.

First, you can sell through online marketplaces, like Etsy or Amazon. Alternatively, you can sell through your own ecommerce platform.

If you’re going to use a marketplace, you need to meet additional regulations. These are put in place by the marketplace to protect themselves, as well as their customers. You’ll also need to get your company approved to sell through a marketplace by following specific standards.

You won’t have to take responsibility for managing a website and you’ll be able to reach an existing global audience if you decide to go through a marketplace. However, you lose some control and credibility with this method.

Personally, I’d recommend building your own ecommerce website to sell food online.

It might take a bit more effort on your end to get everything set up and running, but it gives you complete control.

In order to create your own online food store, you’ll need to choose a platform. Shopify is a great option for this.

Shopify

They’ll provide you with an easy to use interface, all the tools you need to track your orders, and professional templates that are specifically designed for selling food online.

If you’re not sold on Shopify, I’d recommend Wix and BicCommerce as alternative options.

Conclusion

There is a huge demand for online food. As ecommerce continues to grow and evolve, people are buying online more than ever before.

The online food industry is growing at a rapid rate. This is the perfect opportunity for you to take advantage of this situation.

But before you can start selling online, there are some preliminary steps that you need to take.

  • Educate yourself on the legal side of online food sales.
  • Source a reputable supplier.
  • Identify your target market.
  • Create a brand.
  • Learn how to properly package and label your products.

Once all of that has been taken care of, you’ll be ready to build an online store. After that’s set up, you’ll be able to sell food online with ease.

Why Agile Doesn’t Work for Large Projects

But we want Agile to work all the time!

Today many company executives in and outside of IT see in flexible methodologies a tool that will increase the speed of work on projects. For this reason, organizations without these methodologies are striving to actively implement Agile.

You may also like:  We Can't Seem to Escape the Problem of Complexity in Software Development

But the question arises: Can it really help? Or is Agile only a convenient technology for inventing apologies for deadlines? Let's dive into it.

Applying Automated Policies to APIs

Sometimes, developers are needed to apply a policy or, say, the same set of policies to a number of APIs. It makes it tiring and boring for the developers to perform the same activity again and again. This is where the new feature of Anypoint Platform comes in handy, called Automated Policies.

What Are Automated Polices?

Automated Policies make it easier for developers or Anypoint Platform administrators to apply the same set of policies to all your APIs.

AI Chatbots: Reality vs. Hype

Welcome to the world of intelligent chatbots: your companion and conversation agents who should make your life smarter. A leading research paper even said that by 2020, the average person would have more conversations with bots than with their spouse. So, be ready to embrace this new life in a year from now.

Ok… Hold on. Have you ever tried telling Siri or Google to “find restaurants that don’t serve pizza?” At least they are both consistent in that they gave the same answer — suggesting restaurants that do serve pizza.

Do We Really Need a Product Owner?

This product owner is quite confident that your team can't, in fact, live without him.

As regular readers might know, I'm working on a book called The Art of Product Ownership to be published by Apress later this year. One of the chapters is entitled "Why have a Product Owner," and a few days ago a bunch of ideas crystallised into what follows...

The aim of the Product Owner is to increase, even maximize, the business value delivered by the team as a whole. The Product Owner does not so much create value themselves as increase the value created by others.

Think of it like this: If the team randomly selected work to do and delivered it to customers, then some value would be created. (For the moment, I'll ignore the scenario where that work detracts from the existing value.) The aim of the PO, though, is to ensure the work done creates more value than a simple random selection. The greater the difference, or delta to use a mathematical term, between random selection and an informed selection the better.

Scrum Is All About the Working Agreements We Choose to Make

Our Scrum is only as strong as our voluntary working agreements.

In many organizations, I see Scrum not producing its anticipated value. The concept of value varies across organisations, but there is also a universal anticipated value of Scrum.

The Scrum Guide says about Scrum's purpose:

How to Use the APP_INITIALIZER Token to Hook Into the Angular Bootstrap Process

I've been building applications using Angular as a framework of choice for more than a year and this post is not another React vs. Angular or the quirks of each framework. Honestly, I like Angular and every day I discover something new which makes development easier and makes me look like a guy who built something very complex in a matter of hours, which would've taken a long time to put the correct architecture in place if I had chosen a different framework. The first thing that I learned in Angular is the use of the APP_INITIALIZER token.

The documentation at angular.io says APP_INITIALIZER is "a function that will be executed when an application is initialized." It does not give any details on how to use this function and where to include it.

Building Applications With Spring AOP

Spring AOP gives us a cleaner approach to write code. It helps in segregating business logic and cross-cutting stuff. Some of the cross-cutting stuff are logging, security management, transaction management, etc.

By using AOP, we could also add more functionality to methods in a class, even though the source code is not available.