teleren/devto huggingface dataset:
Maybe i should rebuild it?
Tags: webdev, beginners, productivity, devjournal
Published: 2022-07-07 10:45:26

Two months creating the code and then one day, you wake up in the morning and you think that. Did i rebuild it?. This is the story of how i created https://contratospublicos.eu.

## The context

Two years ago. Pandemic. Not many job opportunities.

My options where:

- Freelance jobs. Discarded too many people in the same situation.

- Working for a company. Discarded because companies stopped contracting people due to the uncertainty of the future.

- Make an onlyfans account. Discarded because even I wouldn't pay to see myself.

Found the platform for public contracts in Spain. Tried to find programming jobs and saw it was horrrible.

I decided i was going to make a better version for me to get the better jobs. 

![baby running](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ywvgytbdcfva2vazom7h.gif)
## My first mistake

Started programming. The contracts could be found in the website so i created a scrapper to get the Programming jobs. Took me about 2 months to create a scrapper. Create a website and added ElasticSearch to find the contracts.

Found many problems.


- It could take a lot to get the information. 

- Since they publish jobs many times a day, you have to keep getting the information all the time. 

- The contracts don´t have an strict format so sometimes you don´t get the information. 

- The plattform is not very fast.

## Now is working

After 2 months everything seems to work reasonably well. Scraping the info is painful but works. Not all the info is correct but enough for me.

Yes. Two full months working on this. I have to say that while i was working on it, saw the utility of it and decided to create something for me but also for others. 

I found that this was a real problem and that there are other companies who has portals similar to mine. So i decided to create a SAAS.


![Big mistake](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4pmcpwh413zf3s7mnnqr.gif)
## A slap in my face

One day, i discover they have an open data page. Yes, i was so concentrated in how to get the data scraping it that didn´t see that. 

First though. You are stupid.
Second though. You are the most stupid person in the world.
Third though. What do i do now? 3 options

1. Throw it all by the toilet
2. Keep building what i was building
3. Throw it all, loose 2 months of work and do it properly using the open data.

After a week thinking about it (and a little bit depressed, to be honest) i decided to throw it all and start again.

18 months later i don´t regret what i did. Yes, I lost 2 months of work but now it works great and users keep coming everyday and registering.

Have you ever done something like this or am I the only lout in here? :)


![Homer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hucdb6hgqq03bkev1ir.gif)
kusto & concat string array
Tags: kusto, applicationinsights
Published: 2022-07-07 10:34:31

From time to time I want to summarize a kusto query by a combination of multiple values.

One way to do that is to concat them all manually, like this
```
strcat(cloud_RoleName, "-", application_Version, "-", resultCode)
```

During investigations I often want to change which values I group by and writing the query like this simplifies that
```
strcat_array(pack_array(cloud_RoleName, application_Version, resultCode), "-")
```
I'll do it later...
Tags: motivation, discuss, productivity, leadership
Published: 2022-07-07 10:26:53

## May be good?
In some cases, I feel that procrastination might be good. How? Well, if you are too tired, and don't feel like doing anything.
<br>
### What about the bad effects?
Well, it all boils down to sleep. Sleeping is the upmost importance to everything. Without sleep, it feels really, really bad. It would also leave a bad impression to do things at the last minute... so you really should try to finish your work as early as possible!
<br>
### How do I, control my breaks?
Well, give yourself 1 to 2 hours to do coding, or read a nice book. Or maybe take a nap. All you have to make sure is that your working hours and your rest ratio must be at least 4 : 1 (which means in 12 hours, you must do 9.6 hours of work and 2.4 hours of rest.)
<br>
Seriously though, do relax a little. Over working is pretty bad. But also make sure to have a right balance!
<br>
### Check out my [M & M post](https://dev.to/wjplatformer/management-2a96)!
I tell you all about to-do lists and stuff (#notanad lol) as I am too lazy to tell you in one post. It would help you manage your time and things to do!
Just step back and relax
Tags: motivation, programming
Published: 2022-07-07 09:55:35

As programmers, we are inclined to dedicate our lives to constant improvement. We always push our limits to reach the "ultimate success" and wisdom. It's like each of us has been trying to write our own version of the "black book" of programming.

It's ok to start with the highest ambitions at first. Our knowledge is only a fish in the sea, and we have lots of time ahead to explore. Yet, as the process continues, the speed of the technology and development paradigms makes us blind to the cyclic process we are in. After each local success, we tend to raise the bar a little bit instead of slowing ourselves down and accepting the applause. As we  increase our speed, our awareness also increases. Thus, we discover that some people have been dealing with much cooler things than we do. We realize that there are so many fishes in the sea. Sooner or later, we will come to realize that we are not even close to reaching the end of the sea. As we dig deeper, the sea grows more. 

As the "work smarter, not harder" mantra summarizes: the more we try harder, the more we are likely to be lost in the sea. We might be in the local maxima and need to raise our heads a little. Sometimes we just need to relax. We should sit back and enjoy the view we left behind. If the path seems to get stuck, we can always step back and see new paths. Remember, this is our journey, which is supposed to be fun, and nothing else should matter.
Throw Away Your Productivity Techniques
Published: 2022-07-07 09:46:00

I have read every productivity book out there. GTD, the Rapid planning method by Tony Robbins, The seven habits of highly successful whatever… all of them, and I have benefitted a lot from each of them. But all of them aim at getting your projects done.

That’s a bad idea. Your projects get done, and now what? As a productive individual, with what are you left? With my recent approach to things that took my first startup Proxies API to profitability, I realized that aiming productivity tools at projects were not helping me.

Instead, I aim to build habits.

Because mastery of productivity tools and methods don’t build your confidence, habits develop your confidence. You are only as confident as your habits. Tweet that!

I, in my psyche, don’t see that I have to build a successful startup in Proxies API. It appears like that to other people. For me, I have built two habits, which, in turn, create a successful startup. The habits are:

a) Make the product better every day

b) Write every day

I have never really missed a day; that’s where my confidence comes. Even if Proxies API fails for some reason, it is not a huge setback, because I got my boys, which is this relentless chugging away at making the product better and writing about it every single day.

I feel this is the proper application of all productivity techniques. If you subscribe to this view, here is a check that you can do at the end of every month to see if you are on the right track.

What habit have you built in the last 30 days? Which you have done every single day?

What pattern are you planning to develop in the next 30 days?

The answers to these questions can be quite telling because they predict the success or failure of your projects or startups. Also, they anticipate your confidence level.

The author is the founder of Proxies API a proxy rotation API service.
Working With Fonts: What About It?
Published: 2022-07-07 09:41:43

Fonts fonts fonts, what do we know about them, what are they used for? Are they to represent text only or do they have other qualities that we may have ignored. 
Let's shallow dive in and take a look, who knows what we've been missing. 

Fonts are like good friends because we use them for everything  unlike my friends they don't complain, if you know what I mean. Font's are used for chats, email, documents to name a few.

Did you know that a font determines how your document or design is received? 
Typography is very essential in writing a document or creating a design, which is why it's important to get it right. 

Let's take a look at the classifications of fonts: 

- Serif : Serif fonts are a strokes that are attached to the end of a larger stroke in a letter or symbol within a particular font or family of fonts. 
Examples of commonly used serif fonts are Times New Roman, Garamond, Georgia, Baskerville, and Courier New.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/44k9kqp4c5ef3h2tg7p1.png)

- **Sans-Serif:** Unlike the serif fonts, sans- serif does not have extending features called "serifs" at the end of strokes. They have less stroke width variation than serif typefaces. Examples of san-serif fonts are Arial, Helvetica, Proxima Nova, Futura, and Calibri.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q23zvselom4ko3bf4rz9.png)

- **Script:** Script fonts are fluid stroke created by handwriting. They are generally used for display or trade printing. Some examples are Alex Brush, Lobster, Alura, Pacifico, Wind Song etc. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r1a7mbu6cqzsq9u74hk6.png)
 
- **Display:** Display fonts are used for large sizes for headings, rather than for extended passages of body text that is a font in which the set widths of the characters are wider than in the standard typeface. Some examples are Warnock Pro, Asthetik, Made Canvas, Febre, Gil etc.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6z5adkh9434pui7mdka.png)


In typography it's important to take note of how to use the different classifications of typeface. Typically, Serif and sans-serif are used for body text or headings while while script and display fonts are used for headlines only. 

What are the benefits Of Using the right fonts? 

1. Attraction: Font's are used for communicating with people and using the right fonts can attract people when reading your documentation or going through a design.  

2. Professionalism: Fonts are used to communicate professionalism. The content you provide assures people of the what they're receiving and people receive what you have to say mostly on how it looks. For the sake of Aesthetic you must have the right font in place. 

3. Mood: Different fonts evoke different feelings in people, some fonts are used to show seriousness while some 
give off a more light and playful vibe. 


I'll wrap it up by saying, there's a lot to cover and this is just the beginning.
What is AWS Lightsail?
Tags: aws, lightsail, serverless, cloud
Published: 2022-07-07 09:12:17

Amazon Lightsail is a service that provides virtual private offerings/services, which offer a variety of templates to choose from. It is also known as a virtual machine or a virtual private server, which basically offers all characteristics of a server/computing machine (SSD-based storage, data transfer, DNS management, and a static IP etc.) but can’t be physically seen.
The template here refers to a wide variety of basic structures which ranges from bare-bones OS (such as Amazon Linux, Ubuntu, Windows, Cent OS, Debian etc.) to an operating system that comes with pre-equipped applications ( WordPress, Node.js , Mern, Joomla, Django etc. ) which are ready to be used with just a click of a button.

The cloud service, Lightsail, provides facilities that include required infrastructure, cost-effective nature of maintaining and managing the application, scalability and easy-to-setup options. In simple words, it can be visualized as the simpler or scaled down version of Amazon Elastic Compute. EC2 requires fine-tuning and manual application management where Lightsail handles those automatically. When an instance of a Lightsail is created, it doesn’t need to be maintained by servers like other applications. It is easy to set up an instance and operate it, which means developers, AWS enthusiasts, and smaller teams can easily concentrate on bringing their ideas into life instead of worrying about minor technicalities or how to go about implementing a specific feature.

When the amount of traffic to your application increases, it can be scaled-up and redundant data can be incorporated into the database with the help of load balancers. Load balancers, as the name suggests, distributes the incoming requests to multiple instances of Lightsail, making it available in many Availability Zones. The instances can be removed or added as and when required, without disturbing the all-round flow of the service. 
Most highlighted benefits of Lightsail are,

**Simplified UI**: It runs through pre-installed software. There will be less confusion for users who are using it for the first time.

**Familiarity**: Developers and companies who use Amazon Lightsail for web hosting and application development will find it more alluring.

**Affordability**: The subscription is free for the first 3 months for new users and is $5/month for the cheapest tier.

**Ecosystem**: Benefits from the massive AWS ecosystem.	

**Reliability**: The need for replacement is rare as the services run through Amazon infrastructure and data centers.
How to Create Neural Network in Elixir Using Nx and Axon?
Tags: elixir, todayilearned, tutorial
Published: 2022-07-07 08:57:22

Neural networks mirror the behaviour of the human brain, enabling computer programmes to recognise patterns and solve common problems in the fields of artificial intelligence, machine learning and deep learning.

Nowadays neural networks are used frequently for various tasks such as text translation, face identification, recognising speech or handwritten text, control robots and autonomous vehicles, image recognition, image classification and many more.

If neural networks are becoming so popular it would be good to create them in an easy way and the Axon library which is built on top of Nx allow to do that in Elixir.

[Read more](https://curiosum.com/blog/how-create-neural-network-elixir-nx-axon)
picoCTF 2022 ~transposition-trial writeup~
Tags: security, ctf, python
Published: 2022-07-07 08:52:46

# Description

>Our data got corrupted on the way here. Luckily, nothing got replaced, but every block of 3 got scrambled around! The first word seems to be three letters long, maybe you can use that to recover the rest of the message. Download the corrupted message here.

First, open `message.txt`.
<!---まずはmessage.txtを開いてみましょう．-->

```
heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V9AAB1F8}7% 
```

To be honest, this challenge needs a bit of an inspiration, but if you replace spaces with underscores (_) and look carefully, you can see the encrypting rules.
<!---正直この問題はひらめき要素が強いですが，スペースをアンダースコア(_)に置き換えて注意深くみると並び替えの規則が見えてきます．-->

```
"heT" : "The"
"fl_" : "_fl"
"g_a" : "ag_"
"s_i" : "is_"
"icp" : "pic"
"CTo" : "oCT"
```

If you connect them, you can read `The_flag_is_picoCT`. Let's separate message.txt by three characters (3-gram) and decode it.
<!---つなげてみると`The_flag_is_picoCT`と読めるのがわかります．どうやら頭文字が末尾に移動しているだけのようですね．message.txtの中身を3文字で区切り(3-gram)，デコードしましょう．-->


```python
def main():
    f = open("message.txt", "r", encoding="UTF-8")
    txt = f.read()

    n=3
    txt3gram = [txt[i:i+n] for i in range(0, len(txt), n)]
    decode_lst = []

    for i in range(len(txt3gram)):
        decode_lst.append(txt3gram[i][2]+txt3gram[i][0]+txt3gram[i][1])
    
    print(''.join(decode_lst))

    
if __name__ == '__main__':
    main()
```




You can get `The flag is picoCTF{7R4N5P051N6_15_3XP3N51V3_A9AFB178}`, submit it!

<!---フラグはR0UND_N_R0UND_C0A86577ですね．これをpicoCTF{}で囲んであとはサブミットです．-->
How to remove SKU in WooCommerce
Tags: wordpress, woocommerce
Published: 2022-07-07 08:51:07

When you set up a new WooCommerce installation you will see SKU field in your store. I will show you how to remove SKU from WooCommerce without any plugin.

## What is SKU

SKU means Stock Keeping Unit. It is a unique ID you can assign to a product for inventory purposes. It's very useful when you use bar codes, you have big inventory and many products. Many products require good inventory management.

But in may cases - especially in small shops - SKU is not used and "SKU: N/A" is a unnecessary information.

![Remove SKU in WooCommerce](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4eykrnw1hgwvz4rn9cri.png)


## How to remove SKU in WooCommerce without plugin?

First we need to open functions.php file which is inside our theme directory. Remember that usually you should use child theme. Next put these lines into functions.php file:

```php
// remove SKU
function ct_remove_product_sku($enabled) {
  if (! is_admin() && is_product()) {
      return false;
  }
  return $enabled;
}

add_filter( 'wc_product_sku_enabled', 'ct_remove_product_sku' );
```

Next save the file and refresh the page. SKU has gone!


![Remove SKU in WooCommerce without plugin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hboz3x8blsgo44zgr6gr.png)

If you want more tips follow me on Twitter or visit my blog:

* [Chris Texe](https://twitter.com/TexeChris)
* [WordPress blog](https://madlon.eu/blog)
Web accessibility for better togetherness
Tags: a11y, motivation, devjournal, community
Published: 2022-07-07 08:42:49

The Vienna district where I live organizes an event called **"Miteinander in Mariahilf"** (en.: Together in Mariahilf), where locals can contribute different ideas for a better living together. The best idea is even rewarded with a prize 🏆.

This is where my specialty **web accessibility** comes into action. Let me share my thoughts.
 
## My district - Mariahilf

I have lived in Mariahilf for 15 years and I love 🫶🏽 it here. Mariahilf has stood for **DEI** 👨‍🎤🧑‍🤝‍🧑🧑‍🦽for as long as I can remember: **Diversity**, **Equality** and **Inclusion**. It is a cultural district, known for its many gay bars, women from this district are invited every year to participate for free in the Vienna Women's Run 🏃🏾‍♀️, and no other district celebrates Pride Month 🏳️‍🌈 as hard as we do.

Good neighborhood is especially lived and supported in Mariahilf. This is also shown by the initiative that promotes living together in the district - this year for the first time with the [Mariahilfer Neighborhood Award (in german)](https://www.gbstern.at/themen-projekte/miteinander-in-mariahilf/mariahilfer-nachbarschafts-award/). 

## My idea - web accessibility

How could I contribute to making Mariahilf an even better place? Well, what I know is the web, so why not make websites and applications for services in the district as accessible as possible?

So I want to offer my knowledge of web accessibility to at least ten businesses, like movie theaters, cultural centers, etc., places where people come together 🫂, and make their websites and apps as accessible as possible for free.
I know that, for example, some apps of the cinemas we have in our district are not fully responsive and therefore accessible, so I think this is where I would start.

**What do you all think of this idea?** Would this contribute to good neighborhood and respectful living together and bring people together in shared activities?

---

**Update: October 20th, 2022**
Unfortunately, my idea was rejected before the voting had even started. I guess because of another misconception. "Web Accessibility only helps businesses, not people in the district". 😔

---
![Thank you](https://docs.google.com/uc?export=download&id=166Ecq6uBl61U14OUlkHOHIBv2ArKoumJ)

_Thanks for your reading and time. I really appreciate it!_
What is a JavaScript Beautifier?
Tags: javascript, codequality, webdev
Published: 2022-07-07 08:41:09

A properly designed code means that a website will be easier to maintain in the future. Especially if you're working with a team, code formatting is essential since it makes your code easier to grasp when adjustments or edits are required in the future.

Tools for formatting code are known as code beautifiers. These technologies are utilised to make code more readable for other programmers and can beautify code in only seconds.

Let's have a look at the tool listed below that will help you format your JavaScript code properly.

## [JavaScript Beautifier](https://www.foxinfotech.in/2022/04/javascript-beautifier.html)

If you require a simple website to beautify code, this is the tool. [JavaScript Beautifier](https://www.foxinfotech.in/2022/04/javascript-beautifier.html) is a code formatter for JS code that removes irregularities in the codebase's styling and formats the output code using its predefined styles.

The best feature of this tool is that it formats unformatted code with just single click without reloading the page. And also, you can minify the JavaScript code to enhance the performance of the webpage.
Is your Kubernetes API Server exposed? Learn how to check and fix!
Tags: kubernetes, cybersecurity, api, security
Published: 2022-07-07 08:40:42

I just published "Is your Kubernetes API Server exposed? Learn how to check and fix!"

{% embed https://medium.com/@dotdc/is-your-kubernetes-api-server-exposed-learn-how-to-check-and-fix-609ab9638fae %}
Software development is DEAD SIMPLE!!
Tags: discuss
Published: 2022-07-07 08:36:34

Do me a favour, write out the title of this article on a piece of paper, create 50 copies of it, and hang up each copy at strategical places in your house, your office, your car, **everywhere**. Why? Because it allows you to _remember the truth every time somebody tries to feed you their lies_. Their lies of course are ...

> Software development is difficult

Seriously, _software development is not difficult, it's DEAD SIMPLE_! Software developers have been lied to for such a long time, they've started to believe their own rubbish, and even repeating it, until it's turned into a self fulfilling prophecy, where everything _becomes_ complex as a consequence of that they believe in their own lies. To illustrate the dilemma, I want to paraphrase Erik Naggum.

> The inexperienced software developer had a problem, so he said "I know, I'll just use OOP, OOA, OOD, SOLID, Design Patterns, applied into a Micro Service Architecture with Kafka, MongoDB, Event Driven Architecture and Sagas" - The inexperienced software developer now has 11,365 problems ...

The solution to a problem is _never_ to add _more_ problems into the pot. If you start out over engineering your solution, it's no longer a solution, but a self sustained _problem_!

If you start out by doing what I told you to do in the first paragraph of this article, and you spend 75% of your scheduled project time to make yourself believe in it, you'll probably finish before the guy who didn't follow my advice. Literally, I truly mean that!

Code is a projection of your mind. If your mind is full of rubbish, your code will be full of rubbish. Hence, your first task as an aspiring software developer is to clean your mind from all the rubbish they've made you believe in before you start creating software.

> To clean your mind of rubbish, realise that if it's a software development acronym, there's a 99.999999999999999999999999999999999999% statistical probability of that it's rubbish! Get rid of it!