PYTHON IF ELSE help pls

Hey fellow Daniweebs,
I would like to present a code to you, which seems to be not working for some reason , kindly help me

name = input("Enter your name:  ")
age = input("Enter your age:  ")

if type(name) != str or type(age) != int:
    print("PLEASE ENTER VALID CREDNTIALS", end ="!!!")

else:
    print("Congrats", name , "!, You are registered")

the output always seems to come out to be " PLEASE ENTER VALID CREDNTIALS!!!" even if i input string and integer values

The Evolution Of Jamstack

It’s been five years since I first presented the idea of the Jamstack architecture at SmashingConf in San Francisco 2016, a talk inspired by many conversations with colleagues and friends in the industry. At that point, the idea of fundamentally decoupling the front-end web layer from the back-end business logic layer was only an early trend, and not yet a named architectural approach.

<!--

Static site generators were emerging as a real option for building larger content-driven sites, but the whole ecosystem around them was nascent, and the main generators were pure open-source tools with no commercial presence. Single Page Applications were the basis of some large-scale web apps, like Gmail, but the typical approach to building them was still backend-centric.

Fast forward to 2020, Jamstack hit the mainstream, and we saw millions of developers and major brands like Unilever, Nike, and PayPal embrace the architecture. Vital initiatives like the Covid Tracking Project were able to scale from 0 to 2 million API requests on the Jamstack. Frameworks like Nuxt became commercial businesses, and we celebrated large public companies like Microsoft and Cloudflare as they launched early Jamstack offerings.

As the commercial space has heated up and the developer community has grown, there’s also been more noise, and we’re even starting to test the boundaries of Jamstack’s best practices. It feels like the right time to both revisit the original vision some of us had five years ago, and look ahead at what the changes in the technological landscape will mean for the future of the Jamstack architecture and the web.

Let’s start out by quickly revisiting the core principles that have made the architecture prove popular.

Compiling The UI

In the Jamstack architecture, the UI is compiled. The goal is to do the right work at the right times — with a preference for doing as much work as possible ahead of time. Many times, the entire site can be prerendered, perhaps not even requiring a backend once deployed.

Decoupled Frontends

Decoupling the frontend from back-end services and platforms enforces a clear contract for how your UI communicates with the rest of the system. This defaults to simplicity: your frontend has a limited contact surface with anything outside itself, making it less complicated to understand how external changes will affect its operation.

Pulling Data As Needed

Of course, not everything can be prerendered, and the Jamstack architecture is capable of delivering dynamic, personalized web apps as well as more globally consistent content. Requesting data from the frontend can power some rich and dynamic applications.

A good example is the frontend of our own Netlify UI, which is itself a Jamstack application built and run on Netlify. We pre-compile an app shell, then use asynchronous requests to hit our API to load data about our users and their sites. Whether you’re using REST, GraphQL, or WebSockets, if you’re precompiling as much of the UI as possible and loading data to give your users a dynamic, customized experience, then you’re shipping the Jamstack architecture.

Jamstack In 2021 And Beyond

There’s more innovation happening across the Jamstack ecosystem than ever before. You can see a rapid evolution of the back-end services, developer tooling, and client-side technologies that are combining to enable development teams to build experiences for the web that would have seemed out of reach only a couple of years ago.

I want to point to three trends I see shaping up for Jamstack developers in the near future:

1. Distributed Persistent Rendering (DPR)

More than anything, Jamstack’s inherent simplicity has made the process of building and deploying web applications much easier to reason about. Code and content updates can be pre-rendered as clean, atomic deployments and pushed right to the edge, creating strong guarantees around reliability and performance without the need to manage complex infrastructure.

But pre-rendering a larger website may also mean waiting several minutes each time there’s a new deployment. That’s why I think we are seeing so much innovation happening to make builds smarter and faster — especially for larger sites and web apps. Take for example the raw speed of esbuild, the new “extremely fast JavaScript compiler.” A production bundle that may take Parcel or Webpack over a minute to compile can be completed by esbuild in under a second. And build tools like Vite and Snowpack lean on native ES modules to make local development feel nearly instantaneous.

In the React ecosystem, some newer frameworks like Remix or Blitz are starting to lean more on the “run everything on a server” approach we’ve all known in the past. There’s a risk of bringing back much of the complexity we’ve worked to escape. Layers of caching can help make server-side apps more performant, but developers lose the guarantees of atomic deployments that make Jamstack apps easy to reason about.

Blitz seems to be moving the monolith into the frontend. This can make full-stack apps runnable on typical Jamstack platforms, but without any clear decoupling between the web experience layer and the back-end business logic layer. I think decoupling the frontend from the backend is fundamental to the Jamstack approach and responsible for unlocking so many of its benefits.

What I see gaining real momentum are the “hybrid” frameworks like Next.js, Nuxt.js, and SvelteKit that allow developers to seamlessly mix pages pre-rendered at build time with other routes that are rendered via serverless functions. The challenge is that serverless functions (while certainly scalable) have their own set of performance implications.

Ultimately, I see the community moving towards an extremely powerful trio that provides Jamstack developers request-level control over the performance profile of any site or application:

  1. Delivering pages entirely pre-rendered at build time,
  2. Delivering pages dynamically via serverless functions, or
  3. Building pages on-demand that then persist as static CDN assets.

Next.js has done quite a bit of work on a concept they call Incremental Static Regeneration. The idea is to ensure high-performance pages by paring serverless functions with different caching strategies like Stale While Revalidate. While the idea of distributing some of the builds to an on-demand approach that still includes strong caching guarantees is a powerful technique, there’s a risk to breaking atomic deploys in this particular implementation, and the benefits are locked into a singular framework, and in some cases, a provider.

At Netlify, we see a lot of promise in the idea of allowing developers to render critical pages at build time, while deferring other pages (like older blog posts, for example) to be built only when and if they are requested. We’re calling the approach Distributed Persistent Rendering or DPR. It’s an architecture for incremental builds that can be compatible across almost every framework and Jamstack site generator, from 11ty to Nuxt to Next.js.

DPR will dramatically reduce upfront build times for larger sites, solving a core criticism of static site generation. On Jamstack.org, we’ve opened a Request For Comments to involve the entire community in our efforts to give developers more options for how pages are rendered while adhering closely to the principles that have made Jamstack so popular. By giving this architecture a name and refining it with community input, we can help Jamstack developers build patterns around it — regardless of the framework.

2. Streaming Updates From The Data Layer

If you develop web applications, you’ve likely followed the evolution of state management libraries as developers have built more and more complex web interfaces using tools like React, Vue, and Svelte. But state management has largely been an in-browser and in-memory concern. Each browser tab essentially has its own state, but can be quite complex to connect that local browser state of your application back to the data services that power it.

Luckily, this is improving as more and more services now support real-time data subscriptions. Hasura, OneGraph, and Supabase all offer this capability and I only expect to see wider adoption across all providers as the underlying data stores are cached and distributed to the edge for fast global performance. Take Twillio’s expanding APIs: they now not only offer streaming video but also streaming “data tracks,” which can be used to create complex collaboration apps that stay continually synchronized across participants.

Finally, new providers are emerging that aggregate data across back-end services. Whether or not you use GraphQL as a query language, it’s really compelling to imagine the power of connecting your UI to a single, standard stream of updates from multiple underlying APIs.

3. Developer Collaboration Goes Mainstream

The Jamstack is built on a Git workflow — an approach that scales really well to larger development teams. But going forward, we’ll start to see how these traditionally developer-focused tools will expand to involve everyone across the company: developers, sure, but also writers, editors, designers, and SEO experts.

When you think of collaboration, you tend to think of synchronous edits—the multiple cursors that fly around a Google Doc, for example. We are seeing that style of live collaboration come to CMS tools like Sanity and design tools like Figma. But so much work often happens asynchronously, and non-developers traditionally haven’t enjoyed the powerful tools that developers use to seamlessly branch, stage, and merge changes with collaborative discussion attached to each pull request.

Early on in the Jamstack, some clever git-based CMS tools emerged to help non-developers manage content like code — perhaps without even knowing that each change they made was being git-committed just like a developer working from the terminal. We’re now starting to see new tools tackle visual page edits in a way that remains compatible with popular Jamstack site generators like Gatsby and Next.js. All of this lowers the bar to collaboration for non-developers and we’ll only see that trend accelerate.

And it’s not just non-developers joining in on the collaboration: deep integrations between tools are bringing more automated contributions into our dev, build, and deploy workflows. Just browse the comment history on a GitHub pull request to see how many tools are now integrated to run automated tests and catch errors before they are deployed.

Updates to Netlify’s docs, for example, aren’t just linted against our code standards, they are also linted against our content standards, ensuring we stay consistent with our style guide for vocabulary, language, and phrasing. Teams can also now easily tie performance budgets and SEO standards to each deployment, again with alerts and logs tied directly to GitHub issues.

I would expect to see those sorts of integrations explode in the coming year, allowing a git-based workflow to underpin not just code changes, but also content, data, design assets — you name it. Friendly interfaces into these Git workflows will allow more contributors to comment, commit, and collaborate and bring developer productivity tooling further into the mainstream.

Enabling Scale And Dynamic Use Cases

While Jamstack stays true to the core concepts of decoupling the frontend from the backend and maintaining immutable and atomic deploys, new build strategies and compute primitives have the potential to unlock extremely large-scale sites and dynamic, real-time web applications.

Jamstack developers — and now entire web teams, marketers, and product managers — have much to look forward to in this space.

Further Reading And References

Hi everyone, I’m NixxHertz.

The power light to my laptop comes on and blinks/flashes two lights rapidly. Nothing else is happening, no fan, no sound, no display. I've tried restarting but there's nothing. Once I place the battery, the lights just start even without the charger being plugged in. The charger is cold. Please help!

Exact replica android app of a WebSite

Hi everyone. I wana ask to the experianced person that is it possible to make the exact replica of a website's android app ? I mean of I have a site related to novel or books can I make its exact android app? Which later can be published to Play Store?

Mobile owner Information

I am starting an online business with an American lady. I don't know anything other than her phone number. So want to verify her records.

i want to remove selected item from combobox please help me

Private Sub delete_Click(sender As System.Object, e As System.EventArgs) Handles delete.Click

    Try
        Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=D:\JENNY PROJECT\JENNYFER\SMS project\SMS project\Database1.mdf;Integrated Security=True;User Instance=True")
        con.Open()
        Dim query As String
        query = "delete from course_tabl where c_name='" + ComboBox1.Text + "'"
        cmd = New SqlCommand(query, con)
        dr = cmd.ExecuteReader
        MessageBox.Show("Do you really want to delete?", "DELETE", MessageBoxButtons.YesNo)

        MessageBox.Show(" Successfully Deleted", " DATA DELETED ", MessageBoxButtons.OK, MessageBoxIcon.Information)
        ComboBox1.Refresh()
        ComboBox1.Text = ""
        c_code.Text = ""
        c_name.Text = ""
        cu_dur.Text = ""
        cu_fees.Text = ""
        con.Close()
    Catch ex As SqlException
        MessageBox.Show(ex.Message)
    Finally

        con.Dispose()
    End Try

End Sub

Need help starting MIPS program

Create an object in its own file called LED.asm that draws a RED Led in the middle of the BITMAP Display. Make the LED your own design, but make sure that it looks like an LED.

Assumptions:

The Bitmap Display will be stored in the Heap starting at Address 0x10040000.
The Unit Width and Height in Pixels will be 8
The Display Width and Height will be 512 Pixels
The LED will be centered approximately in the middle
Your LED should have two instance variables. These are not global variables. The base address needs to be passed to the InitializeLED subroutine appropriately.

The Address of the BITMAP Display
The State of the LED (On or Off)
It should have 4 behaviors,

InitializeLED
TurnOnLED
TurnOffLED
ToggleLED
InitializeLED: This subroutine allocates memory in the heap to store the pixels for the LED. Make sure that this is the first memory allocated so that you can use the Base Address shown below (0x10040000). Also, make sure you document your program well so anyone that wants to use it will know to use the configuration shown below.

TurnONLED: Updates Memory so the LED shows as on. Updates the State.
TurnOFFLED: Updates Memory so the LED shows as off. Updates the State.
ToggleLED: Updates Memory so the LED toggles state. Updates the State.

The Complete Guide to Project Management Institute

The project management field has evolved over the years. New technology, project management methodologies, frameworks, and project management software have changed the way PMs oversee projects throughout different industries.

One thing that has remained constant is the Project Management Institute (PMI). For over 50 years, this organization has become the go-to resource for project management professionals across the globe.

For those of you who want to learn new skills and advance your career in project management, you need to get familiar with the PMI—and this guide will explain everything you need to know.

What is the Project Management Institute?

The Project Management Institute is a nonprofit organization and certification provider that was founded back in 1969. It’s globally recognized as an industry leader in training, research, networking, and credentialing for the project management industry.

The PMI has assisted 3+ million project, program, and portfolio management professionals across the globe.

This organization has developed industry standards in the project management field. They offer everything from project management tools to project management job boards, awards, and events related to project management.

3 PMI Tools to Improve Your Project Management Skills

There are dozens of resources available from the Project Management Institute. But these are my three favorite tools that can immediately improve your career as a project manager.

#1 — PMP Certification

The Project Management Institute offers lots of different certifications. But the PMP Certification is arguably the most prestigious and most reputable. This is the world’s leading PM certificate and includes predictive, agile, and hybrid frameworks. It’s one of the best ways for project managers to instantly make themselves more appealing in prospective job opportunities.

According to the PMI, PM professionals with a PMP certification in North America are paid 25% more than those who aren’t certified.

To qualify, you must have a four-year degree, 36 months of experience as a project leader, and 35 hours of project management training (a CAPM certificate nullifies the last requirement). If you don’t have a four-year degree but have a high school diploma or an associate’s degree, you’ll need 60 months of experience leading projects to qualify.

The PMP Certification exam fee costs $405 for PMI members and $555 for non-members.

#2 — PMBOK Guide

The PMBOK Guide is the Project Management Institute’s flagship publication. It’s an essential resource for managing projects in any industry. This guide contains the foundation and knowledge required to be an effective project manager. If you’re only going to read one book on project management, this is my recommendation.

PMI members can download the PMBOK Guide for free. Non-members can purchase a physical paperback copy of the book for $99 or download the digital ebook for the same price. It’s something that you can always refer back to throughout your project management career.

When you order this book, the PMI will send you a free copy of the Agile Practice Guide as well. With agile project management skills in high demand, the extra book is a nice bonus for any project manager to have on their bookshelf.

#3 — CAPM Certification

A Certificate Associate in Project Management (CAPM) is the perfect credential to start your career as a project manager. It’s ideal for existing project managers that want to start managing bigger projects or prospective project managers that want to stand out in a competitive job market. For a fast way to add credibility to your resume, I highly recommend the CAPM certification.

To qualify, you need to have a high school diploma or an associate’s degree. You’ll also need to complete 23 hours of project management education before you take the exam. Unlike other PMI certifications, you don’t need any experience as a project manager for the CAPM. The CAPM exam fee is $225 for PMI members and $300 for non-members.

The Basics of the Project Management Institute

To say the PMI’s offerings are vast would be a drastic understatement. But everything that this organization provides can be summarized in the following core elements:

Membership

The PMI has membership opportunities for project management professionals who want to advance their careers.

There are over 600,000 members in the PMI community. Joining the PMI community is one of the best ways to network with peers in your industry. Anyone can create a PMI account for free and use it to track their certification status (more on this shortly). But to get the most out of your account, I’d recommended upgrading to the paid PMI membership.

The cost to join is just $129 per year, plus a one-time application fee of $10. But the paid membership pays for itself almost immediately.

In addition to joining the PMI community, you’ll also get to download the PMBOK guide for free—normally $99. The PMI also gives you access to over 1,000 free tools and templates as part of your membership. You can take these templates and immediately apply them to real-world projects that you’re managing. Use your membership to find relevant career opportunities on the PMI job board as well, which is only available to members.

Another top benefit of the PMI membership is the discount that you’ll get on project management certifications. Members pay a lower exam fee than non-members. For example, you’ll save $150 on your PMP certification with a PMI membership.

Certifications

The Project Management Institute is a reputable certification body for project management professionals. With a globally recognized certification, project managers are able to advance their careers, seek new opportunities, and get paid more for their added value.

A certification from the PMI is a big deal. It shows organizations that you’re qualified to manage certain types of projects. Available certifications include:

  • Project Management Professional (PMP)
  • Certified Associate in Project Management (CAPM)
  • Program Management Professional (PgMP)
  • Professional in Business Analysis (PMI-PBA)
  • Portfolio Management Professional (PfMP)
  • PMI Risk Management Professional (PMI-RMP)
  • PMI Scheduling Professional (PMI-SP)
  • PMI Project Management Ready
  • Disciplined Agile Scrum Master (DASM)
  • PMI Agile Certified Practitioner (PMI-ACP)
  • Disciplined Agile Senior Scrum Master (DASSM)
  • Disciplined Agile Coach (DAC)
  • Disciplined Agile Value Stream Consultant (DAVSC)

Each certification comes with a certain level of prestige attached to it. For example, the PMP certification is known as the gold standard in the project management field. Whereas the Project Management Ready certification is designed to prepare students with basic information related to project management.

All certifications follow the same standard process. First, you must meet certain eligibility requirements. The criteria are typically based on education level, completed training, and experience as a project manager.

If you meet the eligibility requirements, you can complete an application with information. You’ll also need to submit audit materials with proof of your eligibility. Once the application has been approved and you’ve submitted payment, you can schedule an exam appointment. The PMI will officially issue certifications after you’ve passed the exam.

Continuing Certification Requirements (CCR) Program

Earning your certificate is just one step. But to maintain your certifications from the PMI, you’ll need to complete some additional requirements.

That’s where the CCR Program comes into play. It’s designed to help project professionals continue to grow and develop skills while maintaining their certification status.

Each certification requires recipients to earn a certain number of PDUs during a three-year cycle. PDU stands for “professional development units.” Each unit represents a one-hour time block for learning, teaching, or volunteering.

The number of PDUs required will depend on the certificate that you’re trying to maintain. For example, the PMP certification calls for 60 PDUs, while a CAPM only requires 15.

Track your progress on the PMI’s CCR system, a simple online tool for reporting PDUs. This will make it much easier for you to renew your certifications.

Education and Training

In addition to the project management certifications, the PMI is also known for its training resources. The PMI believes that professional development in the project management industry is more than just a one-time thing—it’s something that should be an ongoing component of your project management career.

The PMI has developed an ideal skill set for modern project management, known as the “Talent Triangle.” The triangle contains three crucial aspects of project management—technical project management, strategic and business management, and leadership.

There are training materials offered directly by the PMI, including online courses, disciplined agile toolkits, seminars, and webinars. If you have a PMI membership, you’ll have full access to 1,000+ webinars on projectmanagement.com. These contain tips, best practices, trends, how-to tutorials, and so much more. It’s also an easy way to earn PDUs for maintaining certifications.

The PMI also has authorized training partners that have exceeded rigorous standards for quality. You can discover these third-party training resources directly from the PMI website.

I enjoy the thought leadership resource from the PMI as well. This contains the latest ideas and principles from industry leaders in the project management field. It covers everything from portfolio management to cost management, sustainability, business analysis, scheduling, and everything else you could possibly need. Use this resource to gain a fresh perspective on certain areas of project management.

Events

Another excellent way to network and further your career as a project manager is by attending events hosted by the Project Management Institute.

Through uncertain times and struggles with in-person learning due to a public health crisis, the PMI has gone digital. You can still attend virtual events from the comfort of your own home.

In-person events will slowly get back to normal over the coming months and years. But in the meantime, virtual events are the next best thing. In some instances, this provides you with better access to an event that you might have otherwise been unable to attend.

There are also local PMI chapter events that you can join with your PMI membership. The events calendar is updated on a regular basis. So be sure to check it out to see what’s available and register online for any virtual event.

Core Values

The PMI stands out from other organizations in the project management space by maintaining a set of common values. These values remain unchanged, regardless of management trends or changes to business environments.

The Project Management Institute’s core values include:

  • Project Management Impact
  • Professionalism
  • Volunteerism
  • Diversity, Equity, and Inclusion
  • Community
  • Engagement

As you continue to familiarize yourself with the PMI, you’ll see that these core values are a staple in everything that the organization offers.

For example, if you refer to the requirements to maintain different certifications, you’ll see that you can earn credits for giving back, which would fall into the volunteerism and community core values categories.

3 Tricks For The Project Management Institute

Apply these quick tricks and best practices to get the most out of your experience at the Project Management Institute. These simple steps will make your life much easier.

Trick #1: Get a PMI Membership

If you truly want to commit yourself to a career in project management, start with a PMI membership. You’ll get tons of benefits for joining, all of which we discussed in greater detail earlier.

But aside from those perks, the membership symbolizes your commitment as a project manager. You’ll be more likely to obtain certifications and maintain credentials throughout your career. The membership will give you access to exclusive materials and other useful pieces of information that you can apply to real projects.

As a leader, your team will always look to you for guidance. This is not always an easy position to be in. So it’s really helpful if you have a community of peers that you can fall back on for advice and insight.

Trick #2: Take Advantage of Free Online Courses

Not everything from the PMI will cost you money. There are plenty of great free classes as well. This is perfect for project management beginners or students who are considering a career in project management.

Before you dive in head-first, these free courses can provide you with a basic overview of project management to see if it’s something you’re interested in pursuing further.

Just head over to the PMI store and search for eLearning materials. Then sort the options by price from low to high, and you’ll see a handful of free courses. Examples include Project Management For Beginners, Free Introduction: Basics of Disciplined Agile, Foundations of Change Management, and Business Continuity.

Trick #3: Use Practice Guides

Earlier, we talked about the PMBOK Guide, which is arguably the most popular and well-known publication from the PMI. But there are other excellent practice guides that can be used to apply PMI standards in specific disciplines.

Some of my favorite practice guides include:

  • Agile Practice Guide
  • Governance of Portfolios, Programs, and Projects: A Practice Guide
  • Benefits Realization Management
  • Managing Change in Organizations: A Practice Guide
  • Navigating Complexity: A Practice Guide
  • Business Analysis For Practitioners: A Practice Guide
  • Requirements Management: A Practice Guide

All of these can help take your project management career to the next level.

Spring Cloud Config Server on Kubernetes (Part 2)

This is the second of a two part article about building centralised configuration with Spring Cloud Config Server. In this post we’ll take the the two Spring Boot services created in part one and run them on Kubernetes.

We’ll initially deploy to a local cluster before stepping things up and deploying to Azures manged Kubernetes Service, AKS. By the end of this post you should have two Spring Boot services deployed to an AKS cluster as shown in the diagram below.

Spring Cloud Config Server on Kubernetes (Part 1)

This is the first of a two part article where I’ll show you how to use Spring Cloud Config Server to build centralised configuration for your microservices. In this first post we’ll create a Config Service that pulls its data from a Git repo and exposes it to other services. We’ll also create a consumer, a Config Consumer Service that pulls from the Config Service on startup. The diagram below shows how the services will interact.

In part two of this article we’ll take the two services and deploy them to Kubernetes. We’ll initially deploy and test on a local Kubernetes cluster, before deploying on Azures manged Kubernetes Service, AKS.

Resolving the MySQL Active-Active Replication Dilemma

Multi-writer replication has been a challenge in the MySQL ecosystem for years before truly dedicated solutions were introduced – first Galera (and so Percona XtradDB Cluster (PXC)) replication (around 2011), and then Group Replication (first GA in 2016).

Now, with both multi-writer technologies available, do we still need traditional asynchronous replication, set up in active-active topology? Apparently yes, there are still valid use cases. And you may need it not only when for some reason Galera/PXC or GR are not suitable, but also when you actually use them. Of course, the most typical case is to have a second cluster in a different geographic location, as Disaster Recovery. If you still wonder why you would need it, just read how a whole data center can disappear in the news a few weeks ago, about the OVH incident.

RabbitMQ RPC With FastAPI [Video]

Below, I explain a sample app with a FastAPI endpoint. RabbitMQ is used to deliver and return messages between the API endpoint and the backend. The backend code could run on a different microservice, and multiple backends can be started for scalability.