teleren/devto huggingface dataset:
What's the least we can do?
Tags: scope, softwaredevelopment
Published: 2021-10-08 07:51:33

---
title: What's the least we can do?
published: true
date: 2021-10-04 00:00:00 UTC
tags: scope,softwaredevelopment
canonical_url: https://jhall.io/archive/2021/10/04/whats-the-least-we-can-do/
---

Have you ever seen, or participated, in a conversation like this?

**Person A:** How long until Feature X is ready?  
**Person B:** It’ll take at least 3 months.  
**Person A:** We really need to have something ready in 3 weeks.  
**Person B:** We could postpone Sub-Features A and B, but it’ll still take 2 months for the rest.

I was involved in a discussion like this a few years ago. This conversation had been ongoing for several weeks. The developer on the project was doing his honest best to cut scope, and produce a minimal, working product. But nothing was getting us under budget or on schedule.

That’s when I asked during one meeting:

> What if we had to have a usable version of this new feature ready **by tomorrow** or the business would fail?

I got blank stares from both the developer and the stakeholder.

I elaborated.

> Imagine that this is a make-or-break feature, and it absolutely positively has to be done **tomorrow**. What shortcuts would you take to ensure it was ready by then?

This completely reframed the conversation. With this fresh perspective, rather than trying to find where we could “cut the fat” from a complete design, we were able to conceptually add only the elements necessary for success.

Next time you can’t figure out how to scale down a larger feature, think of it the other way around. Rather than making a big problem smaller, start with the smallest possible version of the problem: How could you solve this _by tomorrow_? Then work your way up from there.

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Digit Seperator (_)
Tags: csharp, programming
Published: 2021-10-03 23:29:31

Kod okunabilirliğini artırmak için kullanılan bu karakter **(underscore_)** derleyici tarafından derleme aşamasında göz ardı edilir. Böylelikle büyük sayısal ifadelerin kod içerisindeki okunurluğu artmış olur.


```
int valueA = 110_100_200;
double valueB = 783_862_563;
byte valueC = 1_1_1;

Console.WriteLine($"{valueA} {valueB} {valueC}");


``` 

#### Output


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

Tekrar eklemek gerekirse aralarda kullanılan undescore(_) derleyici tarafından hiçbir şekilde işleme alınmamaktadır.


iyi çalışmalar:)
Backdrop-filters!
Tags: css, codenewbie, frontend
Published: 2021-10-03 23:17:10

Hi! This blog is just to show recent backdrop-filters I've used!
I am no expert but this is just me sharing what I've encountered in the hopes to help other newbie devs like me that might have an interest testing these effects out!

## backdrop-filter:
While filter applies the effect on the entire element including its children, backdrop-filter is more specific since it only applies as a ‘background effect’ or anything behind that element.

It is limited on compatibility, so please bare with me since almost all of these would still need a workaround to apply the same effect.
***

There are multiple values which backdrop-filter may be:

### blur()
Starting of with blur, which values can be of pixels or rem. The length value refers to the length of pixels blurring together hence, longer the length the blurry it is.
I have examples on blur application on my previous blog([Frosted glass on CSS](https://dev.to/tolentinoel/frosted-glass-on-css-37bg)).

![blur example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd7pq3h8nrx19m98zns2.png)

Other workarounds for other browser were also discussed on [stackoverflow](https://stackoverflow.com/questions/38145368/css-workaround-to-backdrop-filter) by other fellow devs!

***

### sepia()

```CSS
backdrop-filter: sepia(90%) 

/* Can be an IE & Firefox fallback: */
/* Not exactly the same but definitely can be altered for a more similar effect*/
background: #715515; 
opacity: 0.6; 
```
![Sepia example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bnyvkt8arx3tenr9aem6.png)

Workaround:
![Sepia workaround](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1u7vhw2wf0xx4pauxb5.png)
***

### grayscale()
Values can be a number or percentage.

```CSS
backdrop-filter: sepia(100%);
backdrop-filter: sepia(.5); /* 50% of the effect */
```
![grayscale](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfzbtzjvqx0x6gldoiid.png)


***

### hue-rotate()
I think this is my current favorite effect. This effect changes the whole hue of the image or background color depending on the angle values!

```CSS
backdrop-filter: hue-rotate(220deg); /* same effect as -140deg */
backdrop-filter: hue-rotate(.61turn); /* same effect as 220deg */
```
![hue-rotate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s54a8bq3l6ewrp3o573b.png)

***

If you wanted to take a peek of each's compatibility on browsers, check out [caniuse.com](https://caniuse.com/) and browse around for any css compatibility you wanna know about.

There are more backdrop-filter effects you should try! Check out these CodePens by other creators!

<figcaption>Simon's CodePen</figcaption>
{% codepen https://codepen.io/typo3-freelancer/pen/YzGQMmP %}

<figcaption>Mahdi's CodePen</figcaption>
{% codepen https://codepen.io/hamidimahdi92/pen/oNZZdjg %}
React Series - #2 [Component & Props]
Tags: react, beginners, javascript, webdev
Published: 2021-10-03 22:48:27

<h3>React Component</h3>
<p>A Component can seen as a core element of every React UI.</p>
<p>A UI made with react is essentially a combination of multiple components, the components are defined once and can be re-used in multiple parts of the UI and through the use of the <strong>Props System</strong> they can be dynamic.</p>
<p>Components can either be defined through the use of functions or classes with the latter being used for complex components.
</p>
```JavaScript
// FUNCTION SYNTAX
const App = () => {
  return(
    <div>
      Hello World
    </div>
    )
}

// CLASS SYNTAX
class App extends React.Component {
  render()
  {
    return(
      <div>Hello World</div>
    )
  }
}
```
A component defined using classes has to extend the React.Component class and define a `render` method which specifies what exactly that component renders visually on the page.

<h3>Props System</h3>
React Components can accept input called props(properties) which allows for the same component displaying different information in the same format, just like how the return value of a function might be based on the arguments passed. Lets see what this looks like:
```JavaScript
const App = (props) => {
  return (
    <div>Hello {props.name}</div>
  )
}

ReactDOM.render(<App name="Hermes"/>,document.querySelector('#root'));
```
We have added a bit dynamism to the App component, the name can be specified now. Now if we need to output 'Hello' statements for different names, we would just need to call the component with different names. This illustrates 'Re-usability' of components in react.

```JavaScript
const Hello = (props) => {
  return (
    <div>Hello {props.name}</div>
  )
}

const App = () => {
  return (
    <div>
      <Hello name="Hermes"/>
      <Hello name="Jack" />
      <Hello name="Jill" />
    </div>
  )
}

ReactDOM.render(<App />,document.querySelector('#root'));
```
Another Example : https://codepen.io/truepadawan/pen/BaZMBov

Thanks for reading, drop a follow to find out when I drop the next in the series as I learn react.

[Previous Article](https://dev.to/truepadawan/react-series-1-intro-2d95)
I got hacked
Tags: beginners, codenewbie, hacked, decodingcoding
Published: 2021-10-03 22:48:17

---
title: I got hacked
published: true
description: What I did after I got hacked: A codenewbie's retro
tags: beginners, codenewbies, hacked, decodingcoding
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/326jss0295x36r34n6bc.jpg
---

### ***What I did after I got hacked: A codenewbie's retro***

---

I remember the date clearly. August 14th, 2019. The day I got hacked, for the first time ever.

I didn’t even realise for how long it’s gone on, but by stroke of luck last week, I was looking back at my the products I made last year, and realised to my horror that three of them were redirecting to spam websites. 

The first reaction was mild panic. And then cursing and swearing. What followed after the initial emotional outburst was hunkering down and trying to find a solution. I managed to resolve it within a day, thank god. And it was a lot less serious than I had initially thought. 

Some things I learned along the way, jotted down for self-admonishment and future reference more than for sharing:

### Vent first before troubleshooting

It’s hard to think of solutions in an agitated state of mind. I probably took longer than I needed because I was troubleshooting while being angry/frustrated/confused. Talk to someone about it, vent, punch something, scream into a pillow, anything. Take a walk and then come back. 

### Learn about the extent of the problem

Get as much information about the extent of the hack first. Use an online malware scanner like Sucuri Sitecheck and see if it flags up anything. Get your hosting provider to do a check, and ask if they can help. See which pages are affected. Go through your file directory if you still have access. See if anything looks suspicious. Doing this helps you know what next to search for, and where might be the possible breaches.

### Take a step back

The first knee-jerk reaction is to delete everything and load a backup, but that’s often a whole lot of work. Sometimes the solution might be simpler. I had initially wanted to delete everything, because I couldn’t access my admin but still had access to my file directory. But purely by happenstance, I saw that the website template I used had a major security update. That lead me down a branch of investigation, which eventually got me to a simpler solution. All that was needed was just to update a file, and then reinstall the whole template. What a relief! So the lesson here is: take a step back first, and go through the simpler scenarios first before the complex ones. Often, the hack came through a security flaw from one of the third party plugins, or code snippets used. If all else is accounted for, then consider it was an intentional brute force hack.  

### Moral of the story

Update them templates! Period. 

*Phew.*

---

Follow my daily writings on [Lifelog](https://golifelog.com/goals/30), where I write about learning to code, goals, productivity, indie hacking and tech for good.
Do it in Keras! - Hacktoberfest
Tags: deeplearning, jupyter, machinelearning, hacktoberfest
Published: 2021-10-03 22:09:39

### Modern deep learning architectures and tasks, all implemented in Keras

Have you ever been in a situation where you scroll through forums, reddit, journal posts or even 5 year old github repos trying to find an example for a Deep Learning task that you want to implement using Python and Keras?

Is your code not working because the original code was outdated?

Are you tired of always seeing the same benchmark datasets without the possibility of implementing your own?

Do you like to contribute to the spread of Deep Learning and want to implement your own examples in Keras?

**Well, then Do it in Keras is for you!**

### What is Do it in Keras?

Do it in Keras is a collection of easy to use Jupyter Notebooks hosted in Github which have various implementations of Deep Learning with custom datasets and future exercises for you to learn the most popular Deep Learning library: Keras.

### How do I contribute to it?

Do it in Keras is now participating in Hacktoberfest, so you can not only learn a lot more about Keras and Open Source, but you can also win a lot of cool prizes!

If you've never heard about Hacktoberfest, you can check it out [here]
(https://hacktoberfest.digitalocean.com/).

To contribute to Do it in Keras, you only need to make a pull request on the official [Do it in Keras repository](https://github.com/sebaspv/do-it-in-keras). Anything related to Deep Learning with Keras helps, and you can also upload your own implementation of a Deep Learning task.
How to hide NitroPack footer from WordPress?
Tags: wordpress, jquery, snippet
Published: 2021-10-03 22:03:10

Remove NitroPack Footer is a question which is most commonly asked by people who are using free version of NitroPack.

They've implemented their code in a clever method that can't be disguised using ordinary CSS. As an example. If you use CSS to alter the class of their badge to display:none, the class of that badge will be changed automatically the next time a visitor visits your website. As a result, your CSS code will no longer work on that badge.

{% gist https://gist.github.com/imuhammadshoaib/90410dbcffba5b983cb458d0446132fd %}

This is how you can remove NitroPack badge from your footer.
Writing my own minimal shell in C - Part 1 (The constraints)
Tags: c, programming, beginners
Published: 2021-10-03 21:38:52

#Day 1 - Understanding the Problem. 

This is my attempt to replicate the behavior of BASH or (Bourne again shell) command line interpreter for a school project. Before we get into how to get into the solution and the general approach of making the shell. Let's first look at all the constraints and what is expected from this minimal shell. 

##First and foremost, standard library functions I am allowed to use.

Below is the list of the external functions / standard library functions that I am allowed to use, if I need any another function I must code it myself. Please see the man pages of these functions if you do not recognize them. 

readline, rl_clear_history, rl_on_new_line, rl_replace_line, rl_redisplay, add_history, printf, malloc, free, write, access, open, read, close, fork, wait, waitpid, wait3, wait4, signal, sigaction, kill, exit, getcwd, chdir, stat, lstat, fstat, unlink, execve, dup, dup2, pipe, opendir, readdir, closedir, strerror, perror, isatty, ttyname, ttyslot, ioctl, getenv, tcsetattr, tcgetattr, tgetflag, tgetnum, tgetstr, tgoto, tputs

##Expectations from the shell, what must this minimal shell do

1. It must implement the builtin shell functions 
  *  echo with the option -n
  *  cd with only a relative or absolute path
  *  pwd with no options 
  *  export with no options 
  *  unset with no options 
  *  env with no options or arguments 
  *  exit with no options 

2. Redirections 
  *  < should redirect input
  *  > should redirect output 
  *  << read input from the current source until a line containing only the delimiter is even. 
  *  >> should redirect output in append mode.

3. Pipes 
  *  | The output of each command in the pipeline is connected via a pipe to the input of the next command

4. Environment Variables ($ followed by characters ) should expand to their values.

5. $? should expand to the exit status of the most recently executed foreground pipeline

6. For some simplification, the shell must not interpret unclosed quotes or unspecified special characters like '\' or ';' etc

7. The shell must show a prompt waiting for next command, have a working history and must only use one global variable.

8. ctrl-C ctrl-D ctrl-\ should work like bash. When interactive:
  *  ctrl-C print a new prompt on a newline
  *  ctrl-D exit the shell.

## Lets begin researching the problems and the areas of Operating System I am less familiar with, in the next part of this series I will break down the general overview of the design and I will try to make it super modular.
Comunidades, fóruns. Desistir?
Tags: beginners, braziliandevs
Published: 2021-10-03 21:04:59

Iniciei a fazer estes posts com a intenção de ajudar aqueles que estão iniciando, dar uma perspectiva diferente, ou seja tentar ajudar ajudar de alguma forma. Hoje não é diferente mas não estarei falando de nada diretamente ligado a codificação, metodologias, conceitos... vamos falar da comunidade de desenvolvedores.

Meus primeiros passos programando teve origem lá no ano de 1998 com o turbo C++, mas passei por muitos projetos que utilizavam linguagens diferentes que consequentemente tive de aprender para conseguir continuar nestes projetos. Sem sombra de duvida aprendi demais com cada projeto e suas particularidade mas também me bati bastante neste percurso e muitas das vezes por causa da comunidade e fóruns voltados a linguagem, e claro, umas comunidades são piores que outras.

Pensei em desistir de trabalhar com TI, era horrível obter uma informação descente. Hoje em dia se fala muito de *trolls* ou *haters* nas redes sociais, mas fóruns de programação acredito que estes termos se aplicam melhor. Entendo que sempre existirá pessoas que irão agir como completos idiotas e tentarão diminuir o outro para esconder os problemas que tem e não tem o menor interesse em melhorar.

Quem já utilizou ou utiliza stackoverflow sabe bem do que estou falando, quem chega apostar algo ou esta com duvidas sobre algo que não tem domínio ou mesmo um ponto de vista diferente mas as respostas obtidas são de no mínimo triste, para não começar com palavrões. Este tipo de interação já vi aqui no DEV também não é algo exclusivo de site A ou B.

Eu já fui programador PHP até mas considero a pior comunidade de todas, pedir um ajuda na comunidade ou opinar sobre algo é uma declaração de guerra. Houve dois momentos em que cheguei a desistir, na primeira pedi demissão e fui trabalhar como algo que nem precisar de computador. Na segunda vez foi um pouco diferente, eu já tinha desistido mas havia obtido um ingressos para uma convenção na qual eu fui. Fui com a intenção de zoar e depois encher a cara. Mas nesta convenção tive a oportunidade de sentar e conversar com Rasmus Lerdof, criador do PHP, e conversando com ele e disse que não participava de fóruns porque os fóruns era cheio de *nerds* que se acham melhores que os outros, não como citação porque não me lembro das palavras exatas utilizadas. Naquele momento não dei muita ideia para o que estava ouvindo mas depois comecei a pensar a respeito e cheguei na seguinte conclusão, se o cara que criou uma linguagem tem problemas com fóruns então por que vou me deixar abalar com isto.

Enfim, o que quero estar passando aqui. Não se abalem com respostas idiotas ou ignorantes e nem deixe de utilizar os fóruns mas tenham consciência que terão muitas respostas ali que não tem intenção alguma de ajudar. Saibam filtrar as informações e o mais importante, se é isto que você gosta de fazer não DESISTA.

Bom, espero que possa ter ajudado de alguma forma e não tenho todo o conhecimento do mundo mas espero conseguir ajudar.
Quoted Image App
Tags: python, django, heroku, tailwindcss
Published: 2021-10-03 20:30:27

Well one more open-source mini-project by me.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/stecwz7bffqs190wp9nv.png)

What does it do?
-> In very simple word, it takes a random image from Unsplash API, fetch a quote from quote API and combine them and generate a new Quote Image (like motivational Image)

App link - https://quotedimage.herokuapp.com/

Source Code - https://github.com/devn913/quoted_image_app

Technology Used - Python-Django, Python-pillow, Unsplash-Image API, Quote API, IMGBB API, Tailwind CSS.

Check out source code for more info.

I'm open for suggestions & help.

Star repo if you liked my work.

Keep coding.
ShowDEV: Run free 5-second tests for your landing page
Tags: showdev, productivity, testing, startup
Published: 2021-10-03 20:28:16

Have you ever landed on a website, read the headline, went "huh?" and smashed the back button?

Maybe the headline was a string of buzzwords pretending to be a real sentence. Maybe the site design looked like it was straight from the 90's. Or maybe the imagery was so bad, they forgot to remove the stock image watermark. Eek.

While your site probably doesn't fall victim to all those mishaps, it can always benefit from the tiniest bit of user testing. At a minimum you should know if random website visitors understand what you're offering. 

The best way to start user testing? 5-second tests.

**5-second tests are a super low effort way to test if your website visitors "get" your offering.**

To create a test, you upload a screenshot of your landing page (or headline, or whatever you want to show them).

It is then shown on the tester's screen for 5 seconds. They're then asked:

* Based on what you saw, what do you think this company does?
* Based on what you saw, who is this page for?

That's it! 

**How users respond will tell you if your landing page is clear. Or if it needs some work.**

They're actually a lot of fun to take as well. You just may find some great landing page inspiration on the site.

### Current status

A working version is up on [IsThisClear](https://isthisclear.com). You can post tests. You can take tests. All for free.

Right now I'm thinking of offering a paid plan as well. Figuring out a pricing model has been a challenge though. Would a credit based system work? Or should it be a subscription where there are better features? A combo of both?

Of course I have a ton of features I'd like to add. Leaderboards (to encourage folks to take tests). Custom questions. Branding removal. Pay to skip taking tests. And lots more. 

### Tech stack

I built this using Ruby on Rails, Stimulus, TailwindCSS, & Postgres. It is lovingly hosted on Hatchbox & DO.


### Why this idea?

I was going through a course on copywriting called 10x Web Copy. After writing your first version of your hero section, they recommend doing a 5-second test. Since everything in that course had been gold so far, I figured I'd try out their recommendation. 

So I took my 60 bucks over to a user testing provider. As a bootstrapper, I was hesitant to hand over $60, but once the results came in, I understood the value. 

My copy sucked. 

I went back and rewrote it, now knowing what people really saw.

I saw the value of 5-second tests, but I got sick of shelling out money every time I needed to test a change. 

So I built [IsThisClear.com](https://isthisclear.com). 

Recruited results are free instead of $1 each like on most sites (although you'll have to take a few of other people's tests). They also run continuously so you'll always be getting new feedback. 

If you check it out, I hope you like it. And if you have any feedback - good or bad, hit me up on [twitter](https://twitter.com/corinnpope).
dotnet6 rc1.0 скаффолд идентити темплэйтс
Tags: russian, dotnet6, aspnetcore6, rc1
Published: 2021-10-03 19:34:59

---
title: dotnet6 rc1.0 скаффолд идентити темплэйтс
published: true
description: бла бла этомойпервый щитпост про дотнет: подписывайтесь, ставьте лайки и заносите денег на ламборджини
tags: #russian #dotnet6 #aspnetcore6 #rc1
---
Прикол с фронта. Наверняка зацените.
Обновиле тут недавно студию и дотнеткор заодно с Preview7 до RC1
Чучуть поменяли философию со Startup и сделали всё classless прямо в Program. 
А еще забыли обновить кодогенераторы которые скаффолдят MVCшные html темплейты для идентити.
И естественно, они не генерятся.
Потому что не понимают код без классов во всяких .g.cs
Такая ерунда.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bellzce11f3pg92gx7pb.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9tfp0msst7wwe4mt2moo.jpg)