teleren/devto huggingface dataset:
How to Overcome Leverage Browser Caching Favicon
Published: 2020-12-06 10:01:39

A favicon is an a logo that we usually encounter on our site to improve our look on site has of own custom icon via a widget in a layout or settings of your site 

Leverage Browser caching on favicon is one of the factors which usually get measured for professional & site like GTmetrix pages

First, open website or blog > Click on Theme menu > Click on "ctrl F "
> then look for the code below & change it 

```<link href='/favicon.ico' rel='icon' type='image/x-icon'/>```

Replace the code with the given code below 

```<link href='https://cdn.statically.io/favicons/www.nama_domain.com' rel='icon' type='image/x-icon'/>```

Also do not forgot about changing your domain name in the below code.

Then Click the Save button 

This is how to change favicon cache which improves site speed & improves site SEO factor 

For more coding stuff watch our site
AndroidBites | Deepest Dive into View-Binding
Published: 2020-12-06 09:46:45

![carbon (6) (1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1607247391188/jSKqJtH5F.png)

I'm pretty late to the party but here is my blog on view-binding, 
It's pretty much more in-depth than others you would find in the community.

# Glossary
* Is data binding not working in all the modules? Why your fields are not getting generated?
* How to view the source code of your generated binding classes?
* Generated classes are Kotlin or Java? and why?
* Do View-binding views are never null?
* How to access included views? <include> and <merge> tags?
* How to bind Activities, Fragments, Adapters, and CustomViews?
* When to use bind and Inflate?
* Controlling ViewBinding Generation?
* Reducing boilerplate code with Delegates and Base-Class for ViewBinding in Activity and Fragments?
* Common mistakes and Anti-patterns in ViewBinding?

Hope to see you on the other side...

## 👉 [AndroidBites | View-Binding](https://chetangupta.net/viewbinding/)

Until next time. Happy Hacking! 👩‍💻

Stalk Me 👀 : <br>
[LinkedIn](https://bit.ly/ch8n-linkdIn) | [Medium](https://bit.ly/ch8n-medium-blog) | [Twitter](https://bit.ly/ch8n-twitter) | [StackOverflow](https://bit.ly/ch8n-stackOflow) | [CodeWars](https://bit.ly/ch8n-codewar) | [WorkX](https://bit.ly/ch8n-home) | [Github](https://bit.ly/ch8n-git) | [Instagram](https://bit.ly/ch8n-insta) | [Youtube](https://bit.ly/ch8n-youtube)
Growing and returning
Tags: retrospective, return
Published: 2020-11-01 13:22:04

---
title: Growing and returning
published: true
description: 
tags: retrospective, return
//cover_image: https://www.retailgazette.co.uk/wp-content/uploads/Returns_online-retail_ecommerce_shopping_consumer-trend_generic_supplied.jpg
---

It's been a while since I logged in and even longer since I wrote a post.. 

Been reading some of my past posts ranging from my aborted toxicity series to the contraversial VIM post that upset some people.

Sometimes it's worth looking back at what you once were like and maybe ask yourself have you grown from these.

First off I want to apologise to the people who took offense at my VIM post. I admit I deleted it in anger after reading a lot of hurtful comments on it attack my professionalism but I shouldn't have written it in the first place. 

I think writing articles that attack a technology or even a tool without giving thought of how they could be improved is misguided. Maybe I could have written the article differently, maybe not attacking VIM but actually trying out and maybe giving thoughts on it. As one colleague once said to me don't bash it unless you know it.

Now to turn my attention to the toxicity articles. 

When they started it was more about a retrospective on how I learnt from a toxic situation but gradually they became a way of bashing old colleagues or things that I hadn't learnt to let go of. 

I think attacking people is just mean and dev.to probably isn't the place to air out your dirty laundry. This site is meant to be a positivr place of learning and inclusivity and other than the first two parts of the series the rest I am deleting. 

I need to continue to grow and positively contribute to society as a whole.
Is "written in $lang" a feature or an implementation detail?
Tags: programming
Published: 2020-12-06 08:45:26

Some keep arguing that "written in $someLanguage" is a minor implementation detail that should not matter to users. This can only possibly be true for applications (as opposed to libraries). However, is it actually true?

On the surface is sounds plausible: you can write good software in any language, so if you aren't going to modify the program, it shouldn't matter.

However, in practice there may be very valid reasons.

## Performance and startup time

It's no longer true that "interpreted" languages are orders of magnitude slower than ones that are compiled to native code. JIT compilation and modern VM designs can make them almost as fast to run as native code.

However, those improvements have done almost nothing to the _startup time_. Interpreter/runtime startup cost still ranges from "non-trivial" to "atrocious".

For web backend and for most desktop apps, startup time isn't very important. For CLI tools and programs designed as building blocks for scripting (like `jq`) it may be crucial.

## Safety guarantees

For some use cases, memory safety provided by a garbage collector or a borrow checker is important enough to sacrifice something else for it. Security-sensitive public-facing services can benefit from a rewrite in a memory-safe language just because that way you know that a next [Heartbleed](https://heartbleed.com/) is not lurking in your codebase.

For a larger set of use cases, "does not segfault" is a useful property too, since it's easier to avoid data corruption in that case.

## Ease of installation and maintenance

If a program is written in Go, you know it's most likely self-contained and statically linked. You also know that it doesn't support plugins or live patching.

If it's in Python, you know that special effort is required to create a self-contained package. However, you also know that you can load code run time, or edit a program on disk. 

Platform support also varies. If your target platform is an IBM mainframe, and a program you want is written in a language that only has an interpreter for x86 and ARM so far, you know you are out of luck.

## Conclusion

"Written in $language" can be a _valuable_ piece of information at the very least.

It's not to say that there are no projects whose only "advantage" over predecessors is different language—not even always a suitable one. But dismissing the language argument uncritically can be equally silly.
What's the most math-intensive project you have ever done?
Tags: watercooler, programming, math
Published: 2020-12-06 08:08:16

---
title: What's the most math-intensive project you have ever done?
published: true
description: 
tags: watercooler, programming, math
cover_image: https://springsadvertiser.co.za/wp-content/uploads/sites/28/2016/08/mathematics.jpg
---
These could be anything from game development, audio programming, physical, chemical engineering, cryptography, data analysis, optimization processes, artificial intelligence, robotics, etc. 

Could you please describe the project and what tech stack did you use?
Light/Dark Mode Toggle Button Using 1 variable 2021 || CSS JS
Tags: codepen, webdev, css, tutorial
Published: 2020-12-06 08:01:10

If you really want your **Readers to Read All** of your **contents**, then having a **dark mode** is a must on your website.

Because, A **dark theme** reduces the irritation on readers eyes compared to light mode. 

Today, we'll make a Scalable **dark/light mode toggler button**, & we'll do all the calculation's using 1 scss variable.

## Table Of Contents 🔥
   * [Codepen](#chapter-1)
   * [YouTube Tutorial](#chapter-2)

#**Codepen 🔥** <a name="chapter-1"></a>

**You can find the full code on [Codepen](https://codepen.io/joyshaheb/pen/gOwOGQE)**

{% codepen https://codepen.io/joyshaheb/pen/gOwOGQE %}


#**Youtube Tutorial 🔥** <a name="chapter-2"></a>
####**[If the codepen is difficult for you then see Step by step Tutorial on Youtube 🔥](https://youtu.be/x0hGQ3blksE)**
{% youtube x0hGQ3blksE %}


##Suggestions & Criticisms are Highly Appreciated ❤️️





   * **Youtube[ / Joy Shaheb](youtube.com/channel/UCHG7IJuST_BXJkne-0u0Xtw)**

   * **Twitter[ / JoyShaheb](https://twitter.com/JoyShaheb)**

   * **Instagram[ / JoyShaheb](https://www.instagram.com/joyshaheb/)**
Small examples to use Rust from C#
Tags: rust, csharp
Published: 2020-12-06 07:40:35

When I make games with Unity, sometimes I need to write a native plugin. C is the most used language for native plugins, but it's not safe. So recently I use Rust. (Though Rust's safety is limited because native plugins use foreign function calls, I believe Rust is safer than C.)

Then, I made small examples that use Rust from C#, including basic function calls, passing/receiving string, callback, passing/receiving struct, and handle Rust's object through a pointer.

Repo: [SofiaWinters/CSharpWithRust](https://github.com/SofiaWinters/CSharpWithRust)
Rust: [csharp-with-rust/src/lib.rs](https://github.com/SofiaWinters/CSharpWithRust/blob/main/csharp-with-rust/src/lib.rs)
C#: [CSharpWithRust/CSharpWithRust/RustTest.cs](https://github.com/SofiaWinters/CSharpWithRust/blob/main/CSharpWithRust/CSharpWithRust/RustTest.cs)

You can build a DLL file by executing `/csharp-with-rust/build.bat`

Currently, the repo only has a .Net Core project, I'll add a Unity project.
React JS for beginners explained
Tags: react, javascript, beginners, webdev
Published: 2020-12-06 07:39:18


My latest post related to the explanation of React.js in a very very easy way. Understanding React.js is the first step and is a necessary step for front-end developers.  

In my journey(ongoing) as a front-end web developer. React is something interesting and I am learning currently. I want to explain it features and uses for the learners this post is perfect for you guys.  

<hr>
![undraw_react_y7wq.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1607240260412/NDA7XOr4K.png)

## What is React.js?

React is a javascript library that allows you to create user interfaces. In practice is a library that focuses only on the view, which is what you see on the screen. 

Imagine a webpage as a series of objects, which have their own design and perform certain actions, React is the library that allows you to create these objects (called components) and assign them a status(information about the components, which you can modify) through props(properties). 

<hr>

- STATE AND PROPS ARE TWO FORMS OF DATA BEING PASSED INTO A VIEW
- SAME DATA PASSED INTO A VIEW WILL ALWAYS RESULT IN THE SAME OUPUTTED VIEW. 
- DIFFERENT DATA PASSED INTO A VIEW WILL RESULT IN A DIFFERENT OUTPUTTED VIEW

<hr>

![undraw_code_review_l1q9.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1607240221673/hxhQxMISA.png)

### Newton's third law of motion

FOR EVERY ACTION, THERE IS A~~N EQUAL OPPOSITE~~ **REACT**ION

## Why is it so popular? 
- **JSX** makes it possible to brings HTML directly into your JS, allowing you to create a new UI feature and see it in real-time. 
- **Components** allow you to break your web app into individual simple objects and work on them easily. 
- **Props** make it possible to populate components using custom data.  
- **State** makes it possible to store all the changes in one section. 
- **Virtual DOM** (a DOM is a programming concept used to make HTML pages interactive) makes the app fast and the user experiences superlative.   
- **Reusable components, easy data flow, easy debugging, easy testing, SEO friendly** what else you need?🤣

<hr>

> ### Last but not the least, THE MOST FAQs

## Is React.js the best front-end framework? 

**It depends**! There are currently 3 "competing" frameworks: Angular, React, Vue. Which one to choose? 

React has a *low learning curve* and allows you to have a *lot of flexibility* by giving you the opportunity to integrate other frameworks. II recommend it as a first framework to study(obviously after you have studied JavaScript) or as a winning technology for startups. 


<hr>
## Need Help
Need help in raising funds to buy a Mechanical Keyboard. This pandemic has affected my family badly so can't ask my DAD for it. Please Help Me. 

<a href="https://www.buymeacoffee.com/rahxuls">
![1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606540958103/otN4S9TK8.png)
</a>

😎Thanks For Reading | Happy Coding/Learning ⚡
Got My CKAD Certificate
Tags: kubernetes, orchestration, opensource, k8s
Published: 2020-12-06 07:37:21

Very excited to complete **Part 1** of the **Kubernetes** certification journey.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/cndl4omaffd8796v5dg5.png)

Today received my certificate from The **Linux Foundation** for the completion of my **Certified Kubernetes Application Developer** (**CKAD**) certification. 

I like to thank my parents for their love and support without them nothing is possible and to all those who love and support me.

This made my DAY.
Advent of Code 2020: Python Solution Day 6
Tags: adventofcode, algorithms, python, 100daysofcode
Published: 2020-12-06 06:58:23

I am trying this only after few hour of the challenge unlocked. And first part was easy to solve. But for second part, I had to take help from reddit thread, specially [here](https://www.reddit.com/r/adventofcode/comments/k7ndux/2020_day_06_solutions/gesde5y?utm_source=share&utm_medium=web2x&context=3).
From few challenges, I first started with the toy example given there and if all the cases matches on this example input then feed my input to this algorithm and done. Here, `day6_test.txt` is a example input present on the [challenge link](https://adventofcode.com/2020/day/6). And `day6.txt` is my input. A repo with output is present at [GitHub](https://github.com/q-viper/Adevent-Of-Code-2020).

```python
with open("day6_test.txt", "r") as fp:
    lines=fp.readlines()

with open("day6.txt", "r") as fp:
    lines=fp.readlines()

groups = []
group = []
for question in lines:
    if question!="\n":
        group.append(question.split("\n")[0])
    else:
        groups.append(group)
        group=[]
groups.append(group)

# solution to challenge 1
solution_1 = []
for group in groups:
    #print(f"Group: ", group)
    unique_ques = []
    for ques in group:
        unique_ques.extend([uq for uq in ques])
    
    #print(f"Unique questions: {set(unique_ques)}")
    solution_1.extend(list(set(unique_ques)))
print(f"Solution 1: {len(solution_1)}")


# solution to challenge 2
from collections import Counter
total = 0
for group in groups:
    #print(f"\nGroup: {group}")
    group_size = len(group)
    #print(f"Length of group: {group_size}")

    # make single list of enitire group and count occurence
    counts = Counter("".join(group))
    #print(counts)
    
    counts = Counter(list(counts.values()))[group_size]
    total+=counts
print(f"Solution 2:", total)
```
I write blogs about Computer Vision projects on my GitHub page [q-viper.github.io](https://q-viper.github.io) and if you got some time please share yours too.
Got MY First ever Hacktoberfest Badge today!
Published: 2020-12-06 06:55:51

Special thanks to @CodeWithHarry(YT & Ig) who Introduced me to open Source and Hacktoberfest(An amazing event for newcomers like Myself) and he's the reason why I won this Badge today with just a little Knowledge of programming and being a complete newbie who's still Learning C/C++.

Thanks a Lot.
How to Hire and Manage A Dedicated Development Team
Tags: devops, technology
Published: 2020-12-06 06:39:18

This article was originally published on [Bacancy Technology] (https://www.bacancytechnology.com/)

A Dedicated Development Team can be defined as a business model that refers to a contract between the service provider and vendor on a pre-defined term basis. It is a recruitment service rendered to a client and presupposing software developers’ process in a particular outsourcing location provided by a staffing vendor. 

If you need to carry out various development tasks that you can’t do in-house, the option I would suggest is you should work with a dedicated team and hire professionals you need to accomplish the tasks. 

Choose the team as per your convenience with the required skill sets and experience that usually works from the service provider office. When you [outsource a web development team offshore] (https://www.bacancytechnology.com/hire-dedicated-developers-india), you can save up to 60-70% on your development budget.

Hiring a dedicated team has numerous choices, and the best way to deal with it is to cooperate with an outsourcing vendor. The pricing system depends on the team size composed of members’ salaries + service provider’s fee (which also includes administrative overheads). 

Usually, the dedicated software development team includes:

- DevOps
- Front-end and back-end engineers
- Business Analysts
- UX/UI designers
- Quality assurance engineers
- Agile Scrum Masters
- Dedicated Team areas of responsibility
- Dedicated Team

In this quickly evolving technological sector, it is common to work with external vendors to process various business activities and get started with operational things such as content development, payroll, and inventory management for business processes management. 

It allows companies to grow their business without significant risk and investment when it’s done correctly. 

According to Gartner, “Digitalization, globalization and rapidly evolving customer expectations demand a shift in how leaders responsible for logistics approach outsourcing strategy.”

Read entire Article here;

[How to Hire a Dedicated Development Team?] (https://www.bacancytechnology.com/blog/how-to-hire-and-manage-a-dedicated-development-team)

Suggested Read; 

[How hirirng dedicated developers reduce project cost?] (https://www.bacancytechnology.com/blog/hire-dedicated-developers-to-reduce-project-cost)
Demystifying Git and GitHub
Tags: git, github, opensource, codenewbie
Published: 2020-12-06 06:33:45

If you are new to software development and have wondered what git and Github essentially mean, then you are at the right place! As a developer, you will encounter these two terms quite frequently and use them too! Get an answer to what git and Github are, why would you need them, and are they different? 🤔
![178-1787354_http-octodex-github-v2-github-octocat.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1607190123972/fELpUgShI.png)


## **Putting things Simply**👀
Let us assume that you have built a calculator that can add and subtract numbers, you show it to your friend and he says, “That’s great! How about adding some more features to it like multiplication and division?” So what you can do is you can *PUSH* the implementation of the calculator, i.e., its code, on a hosting platform using ‘some tool’. On that platform, your friend can collaborate on the project and can introduce the code for multiplication or division. Using the tool again, you add the newly introduced code for multiplication or division. This will now be a new version of the calculator- the one with more features! So what hosting platform did you use here?** It is GITHUB- a website, a hosting service for your project.** Interestingly your project can now be called an Open Source project, or a Github repository! 

Imagine that the multiplication feature is not working properly for decimal numbers and you want to get back to your previous calculator version. Is this possible? Yes, it is possible, using ‘the tool’ you’ve been using till now. **The tool is called GIT- a version control system.** It can allow you to get back to the previous version of your project, something like the undo button in MS Word! 
> 
So GIT is installed in your local system whereas GITHUB is a hosting service- a website where you can share your project with others, giving them the power to make revisions or edits. 



![git1-1024x642.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1607190983662/A1BniO_Bp.jpeg)

Now that you know what git and GitHub are, you can go ahead and build some cool projects and collaborate with the projects of other programmers as well!👩‍💻

So if you haven't already, then get a Github account, install git and get into some real action! May the source be with you!🌞

Feel free to reach me on Twitter @ [shivikapriya](https://www.twitter.com/shivikapriya) for any queries. Happy to help 😄🤝
Macam Macam Administrasi Berikut Ciri dan Fungsinya
Tags: administrasi, surat, undangan
Published: 2020-12-06 05:28:44

Pengertian Administrasi
Pengertian manajemen adalah usaha dan kegiatan yang berkaitan dengan pelaksanaan kebijakan untuk mencapai tujuan.

Jika diartikan secara sempit atau spesifik, manajemen diartikan sebagai kegiatan pencatatan, korespondensi, pembukuan ringan, percetakan, agenda, dll yang bersifat teknis.

Dalam skala yang lebih besar, manajemen diartikan sebagai proses kerjasama yang utuh antara dua orang atau lebih dalam mencapai tujuan melalui pemanfaatan infrastruktur tertentu secara efisien dan efektif.

Ciri-Ciri Administrasi
Karakteristik manajemen meliputi:
1. Ada kelompok orang yang terdiri dari dua orang atau lebih
2. Ada kerjasama
3. Ada proses atau usaha
4. Adanya arahan, kepemimpinan dan pengawasan
5. Anda memiliki tujuan.

Jenis-jenis Administrasi
Dilansir dari situs https://toriqa.com Jenis jenis administrasi berdasarkan pengelolaannya adalah sebagai berikut:
1.	Manajemen populasi
2.	manajemen keuangan
3.	Manajemen lingkungan
4.	Administrasi Negara
5.	Administrasi komersial
6.	Departemen Pengembangan
7.	Administrasi Pendidikan
8.	Administrasi publik

Fungsi Administrasi
Diantara fungsi administrasi tersebut adalah:
1. Planning (perencanaan)
Perencanaan atau perencanaan merupakan interpreter perencanaan yang membutuhkan kegiatan administratif, seperti pengumpulan data, pengolahan data, dan perencanaan.

2. Regulasi (regulasi)
Kegiatan organisasi atau organisasi adalah kegiatan menata dan membentuk hubungan kerja antar manusia agar upaya yang terpadu dalam mencapai tujuan yang telah ditetapkan dapat tercapai.

3. Rekrutmen
Rekrutmen merupakan salah satu fungsi manajemen yang mengatur karyawan dalam suatu organisasi mulai dari merekrut pekerja, mengembangkannya hingga upaya setiap karyawan untuk memberikan manfaat yang sebesar-besarnya bagi organisasi.

4. Bimbingan (arahan atau mentoring)
Coaching atau mengarahkan adalah fungsi manajerial yang berhubungan dengan upaya untuk memberikan arahan, saran, dan perintah untuk tugas-tugas yang dijalankan dengan benar dan benar-benar ditargetkan dari apa yang awalnya ditentukan.

5. Koordinasi
Koordinasi merupakan bagian dari fungsi manajemen untuk melaksanakan sejumlah kegiatan agar dapat berjalan dengan baik dengan menghindari kekacauan, pertengkaran dan kekosongan kegiatan yang berlangsung dengan menghubungkan, membakukan dan menyelaraskan pekerjaan bawahan sehingga terarah kerjasama dalam upaya yang dilakukan untuk mencapai tujuan organisasi.

6. Menyerahkan laporan
Pelaporan merupakan fungsi manajemen yang terlibat dalam mempresentasikan kemajuan atau hasil kegiatan dengan memberikan penjelasan tugas dan pekerjaan pejabat senior baik secara lisan maupun tertulis sehingga penerima laporan dapat memperoleh gambaran tentang kinerja tugas dari pemberi laporan.

7. Penganggaran
Penganggaran merupakan fungsi manajerial sebagai kegiatan yang mengatur dan merencanakan anggaran atau keuangan yang sedang berjalan.