teleren/devto huggingface dataset:
Top Benefits of Static Website Design
Tags: webdev, webcomponents, website, design
Published: 2023-01-06 12:31:18

<p>Static Web Design is the most basic method for organizations or individuals wishing to upload basic information about themselves or their firm to the internet. Furthermore, a static website design is the simplest website to create but has limited functionality. However, if your website requires regular or ongoing upgrades, you should choose dynamic website services.</p>
<p>&nbsp;</p>
<h2>Why select Static Web Design?</h2>
<ul>
<li aria-level="1">The web design team creates a static website with important keywords to help your website rank high in major search engines. They also provide complete website design services that are low-cost and affordable.</li>
</ul>
<ul>
<li aria-level="1">Static web design is for those who like a significant search engine-friendly website that provides the content that website users are looking for. Static <a href="https://www.webomindapps.ca/">website design</a> is ideal if you don't need to update your website material frequently and your website's information needs to be fixed.</li>
</ul>
<ul>
<li aria-level="1">A static site design allows you to make small modifications fast and, more crucially, is much less expensive. If you frequently update the content of your website, choose a dynamic website, which costs a little more but has a lot more versatility.</li>
</ul>
<h2>Benefits of Static Website</h2>
<ul>
<li aria-level="1"><strong>Reasonably priced-&nbsp;</strong>If you only want to post a few pages that will not update frequently, the maintenance fees are negligible. A static website may be a decent option for individuals who want to avoid paying for web hosting or a content management system.</li>
</ul>
<ul>
<li aria-level="1"><strong>Not vulnerable to hacking</strong>- Static websites are resistant to hacking. Because they do not contain any databases, they are not vulnerable to database injection attacks. There is nothing for a hacker to exploit as a foothold into the database; if they discover a flaw in the code that would allow them to access a database, they will fail since there is no database to hack.</li>
</ul>
<ul>
<li aria-level="1"><strong>Significantly better for SEO</strong>- It's usually advisable to avoid dynamic websites when optimizing your site for search traffic. In truth, static pages are used by some of the most popular <a href="https://dev.to/manojtr/top-8-website-development-technologies-4efj">web development</a> on the internet. They are easier and faster to load than their dynamic counterparts, which is critical for SEO. Static pages also have more content, which is another important aspect of SEO.</li>
</ul>
<h3>Conclusion</h3>
<p>Static Websites are a good alternative for beginner-level websites with the potential to expand in the future since they can be made useful despite the restrictions of their static nature. It is best suited for blog management and small business-owned websites and does not meet industry standards.<br /><br /></p>
Yandex taxi
Published: 2023-01-06 12:07:20

deyarli kopchilik 'Yandex taxi'ilovasidan foydalanadi 
lekin kopincha bizda qaytim muammosi uchraydi
bugun biz shu masalani xal etamiz!

``` cpp
#include <iostream>
using namespace std;
int main() {

  int son;
  cin >> son;

  int qoldiq = son % 1000;

if (qoldiq < 500){
  cout << son - qoldiq;
  }
else{
  cout << son - qoldiq + 1000;
  }


  return 0;
}


```

bunda `int` son yozib uni oqib olamiz 
keyin esa aniq sonni 1000 sum deb belgilagandan song

keyin bizga `qaytim` degan ozgaruvchi kerak boladi
keyin sonni bolamiz `1000` ga oshanda esa bu bizning qaytimimizni qaniqlab beradi

```cpp
if (qoldiq < 500){
  cout << son - qoldiq;
  }

```
keyin aniqlab olamiz `if` ya'ni agar qaytimimiz 500 summdan kichik
bolsa uni qaytimdagi sonini anig'ini chiqarishimiz zarur

keyin cout << son deb uni 1000 sumga kopaytirib olamiz da uni javobini chiqaramiz.

@dawroun
Useful Tips for writing testable code in iOS.
Tags: ios, mobile, swift, testing
Published: 2023-01-06 12:06:09

Many developers don't like writing tests. 

**But** once you start writing it, you may fall in love with writing tests. You might not want to implement any feature without writing tests once you learn how to write them effectively. And that’s the reality.

However, the leading cause is code, which is highly coupled and difficult to test. But like with anything in life, **it’s all about practice, and eventually, you will love it.**

`Writing testable code is an important practice for any software developer. It ensures that your code is reliable, maintainable, and easy to improve.`

In this post, I tried to share a few important Dos and Don’ts points for writing testable Swift code that we need to consider while writing the test.

By following these best practices, you can write code that is easy to test and maintain, and that delivers the desired results.

Few points to get started...

- Use dependency injection
- Use appropriate app architecture
- Avoid using singletons
- Write tests for every feature
- Use the mocking library

For a detailed post, [check out canopas blog](https://blog.canopas.com/swift-essential-tips-to-know-for-writing-testable-code-65287584d83c).
React context is lost with useNavigate
Published: 2023-01-06 12:03:27

I am trying to navigate to  a link in my React application.
I am  maintaining application state with React useContext hooks
From my landing page, the context is initialized.
On landing page I have a button to navigate to my profile page. For navigation I am  using react useNavigation hooks.
The problem is with navigation, the   page opens correctly but the react context is lost and it shows blank data.
Question -  how can I maintain the context while switching the pages.

```
import { Routes, Route, Navigate } from "react-router-dom";

import { CZGlobalProvider } from './store/CZGlobalContext';
import CZHeader from './components/Header/CZHeader'
import Explore from "./components/CZWorld/Explore";
import MyProfile from "./components/MyWorld/MyProfile";
import EditMyProfile from "./components/MyWorld/EditMyProfile";

function CApp() {
  return (
    <div className="cmaze">
      <CZGlobalProvider>
        <CZHeader />
        <Routes>
          {<Route path="/" element={<Navigate replace to="explore" 
 />} />
          <Route path="explore" element={<Explore />} />
          <Route path="profile" element={<MyProfile />} />
          <Route path="editprofile" element={<EditMyProfile />} />
        </Routes>
      </CZGlobalProvider>
    </div>
  )
}

export {
  CApp
}




import { CZGlobalContext} from "../../store/CZGlobalContext";
import { Navigate, useNavigate } from "react-router-dom";
const HeaderMenu = () => {
  const {
    appCtx, setAppCtx
  } = useContext(CZGlobalContext);

  const navigate = useNavigate();


  const handleOnClick = async (event) => {
    event.preventDefault();
    console.log('handleOnClick ' + event.target.innerText)
    setAppCtx(
      {
        name: 'Manoj',
        email: 'manoj@testmail.com'
      }
    )
    navigate('/profile')
  }

  return (
    <React.Fragment> 
       <Button variant="contained" size="small" onClick={handleOnClick }>Profile</Button>


    </React.Fragment>
  );
}

export default HeaderMenu;

```
Living in the Shell #24; chmod (Modify file/directory permissions)
Tags: productivity, linux, bash, devops
Published: 2023-01-06 11:57:14

## `chmod` 🔐

Modifies file/directory permissions (See [here](https://linuxcommand.org/lc3_man_pages/chmod1.html) or [here](https://en.wikipedia.org/wiki/Chmod) for more details).

Permission expressions are mostly formatted as `[ugoa][+-=][rwx]`:

| Symbol | Meaning |
| --- | --- |
| `r` | Read |
| `w` | Write |
| `x` | Execute |

| Symbol | Meaning |
| --- | --- |
| `u` | **User** (owner of the file/directory) |
| `g` | **Group** (of the file/directory) |
| `o` | **Other** users/groups |
| `a` | **All** users/groups |

## Grant all permissions to everyone; `a+rwx` or `777`

```
chmod a+rwx some-file
# or
chmod 777 some-file
```

## Make a file executable for everyone `+x`

```
chmod +x some-file
# or
chmod a+x some-file
```

## Make a file executable only for the _User_ (owner) `u+x`

```
chmod u+x some-file
```

## Disallow _Group_ and _Others_ to read/write/execute `go-rwx`

```
chmod go-rwx some-file
```

## Apply the same _User_ (owner) permissions to the _Group_ `=u`

```
chmod g=u some-file
```

## Rewrite permissions for the _Group_ and _Others_ `=`

```
chmod go=rw some-file
```

## Clear permissions for the _Group_ and _Others_ `=`

```
chmod go= some-file
```

## Clear all permissions `=`

```
chmod a= some-file
```

* * *

**_About Living in the Shell_**  
_Obsessed with doing things in the shell, I’ve decided to share my **daily** struggles on living in the shell as **terse** but **informative** posts._
Overcoming a 'Cover Your Ass' (CYA) Culture in the Workplace
Published: 2023-01-06 11:55:59

**"Cover your ass" (CYA) is a colloquial term that refers to the practice of taking steps to protect oneself from potential criticism, blame, or negative consequences.** In an organizational context, a "CYA culture" is one in which employees are more concerned with protecting themselves than with collaborating, taking risks, or speaking up.

Unfortunately, CYA cultures can be harmful for organizations and their employees. They can create an atmosphere of distrust, where employees are reluctant to share information or take responsibility for their actions. They can also discourage innovation and risk-taking, as employees are more likely to stick to the status quo rather than trying new approaches. In addition, CYA cultures can lead to a lack of accountability, as employees may be more focused on protecting themselves than on meeting their responsibilities or achieving results.

So, how can we combat CYA cultures in our organizations? Here are a few strategies that might help:

**Encourage open and honest communication:** Create an atmosphere where employees feel safe to speak up and share their thoughts and ideas. This can help to build trust and foster a sense of collaboration and teamwork.

**Establish clear expectations and accountability:** Make sure that all employees understand their roles and responsibilities, and hold them accountable for meeting their commitments and achieving results.

**Encourage risk-taking and innovation:** Encourage employees to think creatively and take calculated risks. Provide support and resources to help them succeed, and recognize and reward their efforts.

**Provide training and support:** Help employees develop the skills and confidence they need to succeed in their roles. This could include training on topics such as communication, teamwork, and leadership.

_By adopting these strategies, we can create a culture of trust, collaboration, and accountability, and help our organizations and employees thrive._

Connect me on [Linkedin ](https://www.linkedin.com/in/lakin-mohapatra-798b0a97/) and [twitter](https://twitter.com/lakincoder)
Journaling for technologists
Tags: development, quickfix, agile, codecraft
Published: 2023-01-06 12:22:17

---
title: Journaling for technologists
published: true
date: 2023-01-06 11:52:00 UTC
tags: development,quickfix,agile,codecraft
canonical_url: https://craignicol.wordpress.com/2023/01/06/journaling-for-technologists/
cover_image: https://craignicol.files.wordpress.com/2021/01/wp-1609625215908.jpg?w=2400
series: mentor
---

I encountered a question online recently about building context quickly, and whilst [I thought of the bootstrapping post I made before](https://dev.to/craignicol/how-to-onboard-yourself-onto-a-new-project-1fki), I also wanted to take a chance to explore how that plays into continuous practice. I started journaling as a researcher to remind me of all the dead ends and configurations I’d tried. Although I’ve not been entirely consistent in journalling (or sometimes blogging) each day and each new discovery, I think it’s a good practice for technologists to develop. [Think out loud, even if it’s to yourself.](https://dev.to/craignicol/what-are-you-doing-now-that-your-future-self-will-thank-you-for-5b5b)

When building context on a new project, for example, I often find it useful, as part of discovery, to note what the client (or in very rare circumstances the written requirements) says it does, as well as what it actually does.

And always, always, journal everything. How to get it running locally, how to release, who knows what, who has the admin rights,… Anything that takes more than 2 minutes to figure out.

Sometimes that journal will take the form of shared content to help the next person join the project (and like all good scouts we should leave a place better than we found it), but the important bit is to write it for yourself. 80% of the time future you won’t need it, but that 20% makes the time absolutely worth it.
Create a Cost Budget
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-01-06 11:41:42

[6/100] #100DaysOfCloud Today, I created a Cost Budget with an alert threshold to send a notification to your email when it hits the threshold mark.

<u>AWS Budgets :</u>

AWS Budgets lets you set custom cost and usage budgets that alert you when your budget thresholds are exceeded (or forecasted to exceed). You can also create budgets to track your aggregate Reservation and Savings Plans utilization and coverage metrics. You can monitor and receive notifications on your budgets free of charge.

<u>Use cases :</u>

- Monitor costs and usage 
 - Set your preferred budget period to daily, monthly, quarterly, or annually, and create specific budget limits.

- Create scheduled reports
 - Stay informed on how actual or forecasted costs and usage progress toward your budget threshold.

- Respond to thresholds
 - Set up custom actions to run automatically or through an approval process when a budget target is exceeded.

You can try to create an Cost Budget yourself by following the steps from the link below :
[GitHub](https://github.com/aaditunni/100DaysOfCloud/tree/main/Journey/006)
Why you should learn Python in 2023
Tags: python, learning, programming, 2023
Published: 2023-01-06 11:30:12

Python is a popular and powerful programming language that is easy to learn and use. It is a great language for beginners, as well as for experienced programmers. Here are a few reasons why you should consider learning Python:

- Python is easy to learn and use - Python has a simple syntax and a large community of users, which means that there are many resources available to help you learn the language. Python also has a large standard library, which means that there are many built-in functions and modules that you can use without having to install additional libraries.
- Python is used in a wide range of fields - Python is used in many different fields, including web development, data analysis, scientific computing, and artificial intelligence. This means that learning Python can open up many job opportunities for you.
- Python has a large and active community - The Python community is very active, with many users contributing to the development of the language and its libraries. This means that there is always something new and interesting happening in the Python world.
- Python is open source - Python is an open source language, which means that you can use it freely and contribute to its development. This makes it a great choice for those who want to be involved in the development of the tools they use.
- Python is powerful - Despite its simplicity, Python is a very powerful language. It is able to handle a wide range of tasks, from web development to data analysis. This means that you can use Python for just about anything you want to do.
- Python has excellent libraries and frameworks - Python has a large number of libraries and frameworks that make it easy to build a wide range of applications. For example, the Django web framework makes it easy to build and deploy web applications, while the NumPy library is a popular choice for scientific computing and data analysis.
- Python is used by top tech companies - Many top tech companies use Python in their technology stack, including Google, Facebook, and Netflix. This means that learning Python can be a great way to position yourself for a career at one of these companies.
- Python is versatile - Python can be used for just about anything you can think of. It is a great language for building web applications, analyzing data, creating artificial intelligence systems, and much more.
- Python has great support for data science - Python is a popular choice for data scientists, as it has a number of powerful libraries and frameworks for working with data. For example, the Pandas library is a popular choice for data manipulation and analysis, while the scikit-learn library is a powerful tool for building machine learning models.
- Python is fun to use - Finally, Python is just a fun language to use. Its simplicity and power make it a joy to work with, and its active community means that there is always something new and interesting happening. Whether you are just starting out in programming or are an experienced developer, Python is a language that you will enjoy working with.
1833. Maximum Ice Cream Bars
Tags: java, leetcode, problemoftheday, 100daysofcode
Published: 2023-01-06 11:27:57

**Problem Statement:**

It is a sweltering summer day, and a boy wants to buy some ice cream bars.

At the store, there are n ice cream bars. You are given an array costs of length n, where costs[i] is the price of the ith ice cream bar in coins. The boy initially has coins coins to spend, and he wants to buy as many ice cream bars as possible. 

Return the maximum number of ice cream bars the boy can buy with coins coins.

Note: The boy can buy the ice cream bars in any order.

 

**Example 1:**
**Input:** costs = [1,3,2,4,1], coins = 7
**Output:** 4
**Explanation:** The boy can buy ice cream bars at indices 0,1,2,4 for a total price of 1 + 3 + 2 + 1 = 7.

**Example 2:**
**Input:** costs = [10,6,8,7,7,8], coins = 5
**Output:** 0
**Explanation:** The boy cannot afford any of the ice cream bars.

**Example 3:**
**Input:** costs = [1,6,3,1,2,5], coins = 20
**Output:** 6
**Explanation:** The boy can buy all the ice cream bars for a total price of 1 + 6 + 3 + 1 + 2 + 5 = 18.
 

**Constraints:**

- costs.length == n
- 1 <= n <= 105
- 1 <= costs[i] <= 105
- 1 <= coins <= 108

**Solution:**
Algorithm:

1. Sort the array
2. Loop through the array and check if the cost of the ice cream is less than or equal to the coins
3. If it is, increment the counter and subtract the cost from the coins
4. Return the counter

Complexity:
**Time complexity:**
_O(nlogn)_

**Space complexity:**
_O(1)_

**Code:**

```
public class Problem {
    
    public int maxIceCream(int[] costs, int coins) {
        Arrays.sort(costs);
        int counter = 0;
        for (int i = 0; i < costs.length; i++) {
            if (costs[i] <= coins) {
                counter++;
                coins -= costs[i];
            }
        }
        return counter;
    }  
}
```
Healthcare Software Development Solutions for Small Businesses
Tags: healthydebate, development, webdev
Published: 2023-01-06 11:26:59




![healthcare software development](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qsn3qovtlukumfb4vb8.png)

Health care is a huge industry that requires a lot of expertise. In order to provide the best services to their patients, hospitals have to have the best technology and training. This means that hospital systems have to be very complex and require a lot of expertise.

Top quality associated with health care remains important and also software developers, who can build customized programs which often are created in the interest of the people, are always in high demand. In this piece, we will delve deep into the world of professional [custom software development] (https://www.techmango.net/custom-software-development-company) and how it's possible to use technology to benefit the health care sector.

**We'll support you in locating the ideal answer to your problems.**

At HealthCare IT we specialize in custom healthcare software development solutions. We work with small businesses to develop customized software applications that meet their unique business requirements.

**We'll build it from scratch or customize an existing product.**

Whether you need a simple application or a complex web-based solution, our expert developers will help you design and implement the right solution for your needs.

**You'll get access to our library of pre-built modules.**

We offer a wide range of solutions designed specifically for small businesses. From simple forms to complex data management systems, we have everything you need to build an effective business solution.

**We're affordable. **

We understand how difficult it is to find quality services at a reasonable price. That's why our prices are so low. You'll save money by using us because we provide high-quality work without charging exorbitant fees.

###Conclusion

Healthcare software development services is a growing market. Software companies that build healthcare software are in high demand. In the past, small businesses could not afford to build custom software. Today, there are many affordable software development companies that offer software development services for small businesses. These software development companies have the expertise to build custom software for healthcare software development.
Why lead generation is important for B2B?
Published: 2023-01-06 11:25:18

**What is Lead Generation?
**_[Lead generation](https://www.tlminsidesales.com/lead-generation)_ consists of attracting and converting target audiences that have shown interest in your product or service. The goal is to guide prospects through the buyer’s journey to the end of the sales funnel Content is one of the leading tools B2B marketers use to generate leads. This may consist of social media posts, blog posts, live events, and coupons. You use forms to capture leads that engage with the content and add them to a lead nurturing email campaign.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eb2vxpye4vefvzhzervc.jpg)
Lead generation is a process that builds visibility, credibility, trust, and interest from a specific group of people (potential leads). So by focusing on lead generation, it can help drive traffic from high-quality prospects. And with high-quality prospects comes high-value customers.

How do you determine the effectiveness of your content marketing campaigns? Is it the amount of views they receive? Or maybe it’s the number of shares they get.
While these metrics can help determine the efficiency of your topics and content, it doesn’t speak much on performance. It’s critical to look at conversion rates to prove your content works. 

This is why 67% of companies use lead generation as the sole metric to determine content success. 

Let’s take a look at why lead generation in business development is essential.