teleren/devto huggingface dataset:
Daily Challenge #296 - Years to Centuries
Tags: challenge
Published: 2020-10-12 15:31:35

---
title: Daily Challenge #296 - Years to Centuries
published: true
series: Daily Challenge
description: Given a year, return the century it is in.
tags: challenge
//cover_image: https://direct_url_to_image.jpg
---
The first century spans from the year 1 up to and including the year 100, The second - from the year 101 up to and including the year 200, etc. Return the century of the input year. 

###Examples
"1999" --> "20th"
"2011" --> "21st"
"2154" --> "22nd"
"2259" --> "23rd"
"1124" --> "12th"
"2000" --> "21st"
"20000" --> "210th"

###Tests
`8120`
`30200`
`1601`
`2020`
`3030`
`1900`
`1776`

Good luck!

***
_This [challenge](https://www.codewars.com/kata/52fb87703c1351ebd200081f) comes from Cpt.ManlyPink on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
How to Do Podcast Advertisements Like Bill Burr- The Building an Indie Business Podcast
Tags: podcast
Published: 2020-10-12 15:19:51

[Listen Here](https://baib-podcast.com/ads-like-bill-burr.html)

In this episode, I discuss Bill Burr's podcast advertisement style. I go over how he does ads, I give examples, how and why other podcast hosts should use the same style, and the problems other hosts could run into.

**Show Notes:**

[Buy the book I wrote](https://openpodcast.xyz/)
[Episode Transcript](https://baib-podcast.com/ads-like-bill-burr-transcript.html)
[Revenue Research](https://revenueresearch.co/)
[Ultimate Paintball Guns](https://ultimatepaintballguns.com)
[Camaro Family](https://camarofamily.com)
Awesome Online Newspaper CMS
Tags: cms, php, mysql, bootstrap
Published: 2020-10-12 15:18:15

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

I've made an open-source **[online newspaper](https://github.com/Ajax30/lightblog)** application and I believe it is worth dedicating a bit of time to analyzing it.

I am proud of it  but at the same time I realize it is not perfect. It is why I decided to write this short article with the main purpose of asking for constructive feedback.

####A quick video demo of it in action

{% youtube T71prYUuqgc %} 

## Technologies, frameworks

The technologies used are PHP, MySQL, JavaScript, Codeigniter 3 and Bootstrap 4.


## How to use it

The deployment/installation process is very simple (it is the main reason I chose to make it with Codeigniter 3): you write the database credentials in `application/config/database.php`, then run the `Install` controller which will create all the necessary tables.

Then you register (after creating the necessary tables you are redirected to the account creation page) and... you are an author on your own online newspaper!

The next authors who register need their accounts to be  _approved by you_. In other words, you are the _editor-in-chief_.

You choose who you collaborate with, the first created author account is also the _admin account_. You can test all that on a local (XAMPP, WAMP) server.

## What I already know is not so great about it

It does not have a very clear separation between the Admin and the Frontend. I wish I could find a way to introduce *themes* for the Frontend.

## If you like it

If you are a PHP professional  and want to get involved in any way that's useful, please do.
Beginners pointer to building for production
Tags: productivity, talk, webinar, devops
Published: 2020-10-12 15:17:26


An introduction for engineering undergrads on lesser-known technologies that are essential in enterprise application deployments. Preparing to be smart, industry aware and increasing technical know-how. Deriving an insight on how large applications work, and the tools that orchestrate their smooth running.

The deck used for a bridge session for freshers at my alma matter institute.

https://www.slideshare.net/amalgta/an-introduction-to-developing-for-production
¿Cómo evitar 403 cuando "escrapeas"?
Tags: python, requests, scrapping
Published: 2020-10-12 15:16:13

Primero, **¿qué demonios es el error 403?** 🤬
Pues para hacer el cuento corto, obtienes un error **403** cuando intentas acceder a una *url* y el servidor te contesta: "Not today, baby" 🚫. 

Cuando "escrapeamos" con la librería `requests` de Python, si no colocamos en el `header` de la petición el parámetro `User-Agent` algunos sitios webs no te permitirán el acceso. El `User-Agent` básicamente le da información al servidor sobre "con qué" se está conectando al sitio web. 

Con este parámetro le dices al sitio web: "Querido sitio web, me estoy conectado usando [TU BROWSER FAVORITO, es decir Brave 😂]". Si no incluyes este parámetro, el sitio web piensa que le están haciendo un "ataque" (si configuraron esto -es una buena práctica. ¡Háganlo!-) y no te permite el acceso.

### ¿Cómo resolverlo?
Sencillo, en la petición de `requests` incluimos el `User-Agent` de esta manera:

```
response =  requests.get(url, headers="{'User-Agent': 'Mozilla/5.0'}")
```
Listo 🤙🏼

#### Más detalles
* Aquí tienes un explicación más formal y extensa sobre el error [403](https://es.wikipedia.org/wiki/HTTP_403).
* Detalles sobre el [User-Agent](https://www.geeksforgeeks.org/python-program-to-convert-a-list-to-string/).
* Y una lista de [toooodos](https://developers.whatismybrowser.com/useragents/explore/software_name/) los User-Agents.
* Fuente de la imagen: LucusHost
5 Tips for the Software Architect
Tags: typescript, javascript, angular, react
Published: 2020-10-12 15:15:43

- Just get it up and running first.  A good Agile way of doing things for sure.

- Frequent refactorings.  Don't duplicate code, and don't mix concerns.
 
- Favor functional composition over class based one off functions that have lots of "this." code in it. 

- Don't allow ideas and attempts to do something live longer than a few days without major progress and satisfaction of what is seen. If we have to continually tweak code because "I just can't get it to work right!" Then rethink the design, this is a huge warning sign we are on the wrong track.

- The finished product should have ultra clean code, lots of reusable parts and all of it should be bulletproof. Don't allow any function to start work on anything that doesn't 100% meet the input parameters contracts. This includes rejecting null and undefined params. Also, make sure the output is proper, or that the callers check for undefined or null returns before using.</sub>
Why a Fintech app needs QA?
Tags: fintech, testing, qa
Published: 2020-10-12 15:10:40

What are the top requirements any Fintech application should comply with? Of course, it must be functional, usable, secure, and agile. Under such conditions, software testing is not just “good-to-have”. It's a must that should assess:

=> Usability to ensure that the application is easy to use from an end user's perspective.
=> Accessibility for users with disabilities and differing needs.
=> Compliance with initial requirements and stated regulations.
=> Security to scrutinize any areas of threat or detect possible vulnerabilities.
=> Protection of important data and personal information.

And do you pay proper attention to testing your Fintech solution?

#HireTester #QA #softwaretesting #fintechtesting 

 http://ow.ly/EA1050BwQnt
How we work
Tags: testing, automationtesting, qa, manualtesting
Published: 2020-10-12 15:09:16

Let's get to know each other better. These are the key principles we work by and what you'll get cooperating with the #HireTester team:

- End-to-end software testing services (manual and automation) at one place.
- QA manager for communication and organizational issues handling.
- Test roadmap aligned with your business needs.
- QA introduction at any stage of the software development life-cycle.

Have questions or would like to learn more about how we work? We'll be glad to hear from you at info@hire-tester.com

#HireTester #QA #softwaretesting #automationtesting

http://ow.ly/kQwS50BwWEp
Integrated software testing: what for? 
Tags: testing, qa, hiretester
Published: 2020-10-12 15:06:41

This all-inclusive service is the best option for big complex projects working on which you need to get a full range of testing services at one place, get rid of a distributed range of vendors per service, and even involve an experienced manager who will supervise QA engineers work and report you on results. 

Integrated software testing from the HireTester team includes:
=> End-to-end manual testing. 
=> UI automation testing. 
=> Back-end (API) automation testing. 
=> DevOps services. 
=> Dedicated QA analyst. 

Want to discuss the details? We'll be glad to hear from you at info@hire-tester.com 

http://hire-tester.com

#QA #SoftwareTesting #DedicatedQA #HireTester
Software testing for Fintech 
Tags: testing, fintech
Published: 2020-10-12 15:04:38

How many banking or payment apps do you have on your smartphone? Following the Fintech Report 2020 by Statista (https://lnkd.in/e7nAf5X), the sector has considerably extended its boundaries this year.

To deliver top-notch solutions and successfully join the growing Fintech movement, companies should masterfully maneuver between the most common challenges arising during the Fintech web or mobile application development:
=> Smooth, simultaneous transactions and real-time processing.
=> Multi-tier functionalities, large-scale storage systems, integrations, transactions and storage systems.
=> Data confidentiality and personal data protection.
=> Quick and efficient troubleshooting.
=> Robustness against security threats and breaches.
=> Compliance with regulatory issues for financial transactions.

The best option is to maintain thorough quality assurance during the software development, before the release, and after important functionality updates.

To employ skilled QA specialists or to partner up with a software testing company that already has experience in testing Fintech apps, the choice is yours. Where will you start?

http://hire-tester.com
#QA #SoftwareTesting #FintechTesting #HireTester
IPhone 12 Launching soon!,What are the feature,Prices?
Published: 2020-10-12 15:03:48

Launching soon ! The wait for many iphone lovers is almost over,launch of iphone 12 is around the corner exiting right, make a note of the probable  date “october 13th”. There is a event scheduled by Apple and the launch of iphone 12 is supposed to happen along with range of variants like iphone 12 mini, iphone 12 pro, iphone 12 pro max 

Lets sneak into the features of iphone 12
     The most highlighted feature of iphone 12 and the series is the 5G connectivity making it first iphone to have the high speed connectivity Iphone is set to have the A14 BIONIC chipset and the camera of Iphone 12 will be sporting a dual lens setup and Iphone 12 pro will be sporting the triple lens setup 

What do the variants offer?
     Different variants are expected to be released and we know that interest always be on the variants and we have got few details one that and the varianta are iPhone 12, iPhone 12 Pro, iPhone 12 Pro Max and a new variant altogether, iPhone 12 Mini. The iPhone 12 and iPhone 12 Pro are expected to come with 6.1-inch screens. The iPhone 12 Pro Max is expected to feature a massive 6.7-inch screen and the iPhone 12 Mini, is expected to feature a small 5.4-inch screen. All phones will most likely maintain a similar notch design as previous generations. 
    

What is the price of the iphone 12? 
    The actual price of the iphone 12 is not yet clarified but we can give you some insights on the prices for all the variants 
For reference, the iPhone 11 started at $699 / £729 / AU$1,199, the iPhone 11 pro starts at $999 / £1,049 / AU$1,749, and the IPhone pro 11 max starts at $1,099 / £1,149 / AU$1,899.

iPhone 12 prices might be as shown below


How ever we BrillMindz, a Top Mobile app Development Company In Bangalore are looking forward to the launch and build the apps according to their feature addons
What is RASP
Tags: rasp, security, waf, boxpiper
Published: 2020-09-20 08:52:10


RASP is a security technology that uses runtime instrumentation to detect and block computer attacks. It sits in or near your application while it’s running to monitor and analyze its traffic and behaviour. If an issue is detected, the RASP solution can send alerts and block individual requests. It’s able to watch for whole categories of attacks rather than relying on recognizing the signatures of specific vulnerabilities.

With so many vulnerable apps running in the enterprise, the challenge for network defenders is how to protect those apps from attack. One way is to have the applications protect themselves by identifying and blocking attacks in real-time. That’s what technology called **Runtime Application Self-Protection (RASP)**

Like web application firewalls (WAFs), RASP security tools defend a web application against attacks in production. But RASP solutions have the advantage of not needing to rely on preset patterns or signatures. 


To continue reading, head over to [Box Piper](https://www.boxpiper.com/posts/what-is-rasp/) source.

To read more such interesting topics, follow and read <a href="https://boxpiper.com/">BoxPiper blog</a>.

Support my work and [buy me a Coffee](https://ko-fi.com/E1E72C2MM). It'll mean the world to me. 😇

<a href="https://ko-fi.com/E1E72C2MM"><img src="https://cdn.ko-fi.com/cdn/kofi1.png?v=2"/></a>
Want to learn about NFT's and other use cases on Bitcoin Cash? TUNE IN!
Tags: blockchain, beginners, tutorial, learning
Published: 2020-10-12 15:03:45

Tune in to Joey B. Wong (Directo of SLP Foundation) give an Introductory Overview to the SLP ecosystem for Blockhack Global 2020.

The premier token solution on Bitcoin Cash. This will be a wide overview of tooling on SLP. We will cover existing projects, use-cases, and the current ecosystem. How to create your own token with just one click! (no smart contracts needed). We will also talk about some of the most advanced and exciting features coming to SLP.

https://www.crowdcast.io/e/slp-overview 

If you are new to blockchain and want to learn more, check this out!!
AWS Lambda Function Design Best Practice
Tags: aws, serverless, javascript, python
Published: 2020-10-12 15:02:35


---
title: AWS Lambda Function Design Best Practice 
published: true
description: When designing AWS Lambdas, try to keep the side effects low.
tags: AWS,Serverless,JavaScript,Python
canonical_url: https://jessewarden.com/2020/10/aws-lambda-function-design-best-practice.html
cover_image: 
---

When designing AWS Lambda’s, try to keep the side effects low. Think of your handler function having just 1 IO type. Just like a list can be typed as `Array[string]`, try keeping just one IO type as well.

Function:

```javascript
const handler = async event => {...}
```

Type:

```elm
Event -> IO[String]
```

I know this is hard. If your function does even just 2 things, like reading a file from [S3](https://aws.amazon.com/s3/), then writing it to [Dynamo](https://aws.amazon.com/dynamodb/), that’s 2 IO events. Still, that’s just 3 possible responses: it worked, S3 failed, Dynamo failed.

You’ll be quite surprised at first how quickly “just 1 function” grows in complexity. If you’ve experienced “[big ball of mud](https://blog.codinghorror.com/the-big-ball-of-mud-and-other-architectural-disasters/)” or “big code base that has no friends”, you’ll get WHY you start so small on purpose.

[AWS Lambda best practices](https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html#function-code) encourages small, stateless functions. To say it more formally, they encourage small file size pure functions, with as little IO as possible.

It may be easier to co-locate code in 1 Lambda even if it creates more side effects for ease/speed reasons, which is ok.

If Python, use [returns library with the IO](https://returns.readthedocs.io/en/latest/pages/io.html) marker for [mypy](http://mypy-lang.org/).

JavaScript, return a [Folktale v2 Result](https://folktale.origamitower.com/api/v2.3.0/en/folktale.result.html) in a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).

TypeScript, use fp-ts with their [IOEither](https://gcanti.github.io/fp-ts/modules/IOEither.ts.html) (they’ll encourage a chain, but inside a Promise is ok).

Scala, [ZIO](https://zio.dev/docs/datatypes/datatypes_io) has all kinds of IO types to choose from.
Building A Reddit Bot Using Python & Selenium
Tags: python, programming, automation, bot
Published: 2020-10-12 14:55:54

##"The Age of Automation will be the age of Do it Yourself"- Marshall McLuhan
                                        




Have you ever tried sharing a post to your friend on Reddit using it's DM? If you have then you know how cumbersome the process of sharing the posts via DM is, I mean you got to first copy the link of the post that you would like to share and then open the inbox and paste the link you just copied and then FINALLY send it to your friend.

So, One day during one of my expeditions on Reddit, was surfing through posts and I thought why not automate the post sharing on Reddit and that is exactly what I did.

I used Selenium to do this using Python. What this does is it basically detects the new posts that you upvote, from the upvotes section and sends the latest post that you upvote to the person whose username you pass to the program in the beginning.

I have provided the link to my code and my blog down below, do check them out.

It would be great if you could provide feedbacks on my code. 

{% medium https://medium.com/analytics-vidhya/building-a-reddit-bot-with-selenium-web-driver-87ece50c7d5 %}

{% github https://github.com/sectrumsempra/Reddit_Bot.py %}
Expert Panel Discussion on Tech Jobs on 10/15
Tags: career, discuss, watercooler
Published: 2020-10-12 14:24:01

---
title: Expert Panel Discussion on Tech Jobs on 10/15
published: true
description: 
tags: career, discuss, watercooler
//cover_image: https://direct_url_to_image.jpg
---

If you're in the conference world at all, you know COVID basically turned some remote and caused many to cancel. That sucks for me because I really like going to conferences and meeting new people.

Anyway, one conference called deliver:Agile reached out to me to take part in a panel discussion on getting tech jobs and making sure developers' careers were taken care of.

I think its free, and I'd love to have a huge turnout. So check it out, you'll probably get some helpful career and interviewing advice out of it!

[deliver:Agile Ask the Experts: Starting & Sustaining Your Technical Career in a Pandemic](https://www.agilealliance.org/deliveragile-live/register/)
EndSARS protests: Nigeria president commits to ending police brutality
Published: 2020-10-12 14:20:35

Nigeria's President Muhammadu Buhari has said he is determined to end police brutality, introduce reforms and bring "erring personnel... to justice".

His comments came after two days of protests sparked by a video of a man allegedly being killed by police.

The protest movement initially targeted the federal Special Anti-Robbery Squad (Sars), widely accused of unlawful arrests, torture and murder.

The protesters say they want the unit disbanded rather than reformed.

Previous commitments to change the behaviour of the police have not had an effect, critics say.

In a series of tweets, the president said that his government's "determination to reform the police should never be in doubt". 
He added that he was being "briefed... on the reform efforts ongoing to end police brutality and unethical conduct".

But he called for calm and emphasised that most police officers were committed to protecting Nigerians.

On Friday, in the capital, Abuja, police fired tear gas at protesters who were highlighting police harassment and brutality.
https://recruitmentpastquestions.com.ng/niger-state-civil-service-past-questions/
https://americainfoblog.com/
Badass Github contributions
Tags: github
Published: 2020-10-12 14:09:55

Github has an interesting feature where it counts your contributions and shows a history of how often you commit your code to Github.

![Github contributions example](https://dev-to-uploads.s3.amazonaws.com/i/4ttrjiecjpxdpvgythnu.png) 

I am very happy for this tool as it allows me to assess my activity levels throughout time 🧐

## “Wait, mine is empty..”

![Example of a boring contributions history](https://dev-to-uploads.s3.amazonaws.com/i/x17rbe21amzgkczmba9p.png)

It might seem boring for your profile visitors when they land on your empty contribution history parts, but I see this as a good “billboard” slot for us to fill.

But...
> What if we could put something interesting over there ? Maybe the name of the project we are developing ? Or maybe some memorable funny word to grasp our visitors’ attention for a moment?

## Luckily, we can draw anything there if we want

![Screenshot 2020-10-12 at 17.03.00](https://dev-to-uploads.s3.amazonaws.com/i/x2lz48ah3ct7rvvx1qse.png) 

When generating contribution history Github is counting in even those commits / repositories which were created long time before the creation of your Github account.
Which is great for what we are trying to achieve: a personalised pattern in Github contribution history.
We can create a .git repository, push a bunch of commits in there, modify commits’ dates and thus achieve a desired pattern in contribution history.

## Examples of my contribution history patterns

![zhabinsky_ contributions for 2017](https://dev-to-uploads.s3.amazonaws.com/i/an4eqhiym6my3pqu93us.png)
![zhabinsky_ contributions for 2018](https://dev-to-uploads.s3.amazonaws.com/i/18eljvynjp105482yld9.png)

## How to generate pattern?

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

I created a CLI tool for creating a custom pattern in the contributions history. The tool allows you to generate the pattern based on a text or an image.

The tool: [https://github.com/zhabinsky/github-doodle](https://github.com/zhabinsky/github-doodle)

### Example usage
```
npm i -g github-doodle
github-doodle --text="MEOW"
cd doodle
git remote add origin <YOUR_GITHUB_REPO>
git push -u origin master
```
  
  
Credits:
[Photo by Kristopher Roller on Unsplash](https://unsplash.com/@krisroller?utm_source=medium&utm_medium=referral)