teleren/devto huggingface dataset:
Lumen is NOT Recommended for New Projects - Laravel
Tags: webdev, programming, laravel, php
Published: 2022-03-09 17:09:08

I found this source youtube.com/watch?v=dX_1K1X_eS0 that shows us a very important official information that Lumen has been removed from the ecosystem and is not recommended now in new projects.


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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1y3ng8ejfs236k67emw3.PNG) 

Following are the important links that will help you delve deeper into not relying on Lumen over time
- https://laravel-news.com/lumen
- https://laravel-news.com/should-you-use-lumen-for-a-speed-boost
- https://lumen.laravel.com/docs/9.x
- https://laravelshift.com/convert-lumen-to-laravel
- https://www.youtube.com/watch?v=0pylMAlfw5k

I hope you enjoyed with me and to learn more about this release visit the sources and search more. I adore you who search for everything new.
Enable cors sharing origins with build
Tags: angular, webpack
Published: 2022-03-09 17:01:22

Hello All,
I'm trying to migrate the frontend of a monolithic application to Angular. 

I have created an Angular project and I already have interfaces and an http client that can communicate with the backend using SOAP.

The problem is that I have a proxy in place and so it works in dev using ng serve. But when I use `ng build`, I can't add a proxy.

The problem is that the application I'm working on is almost 20 years old. And it's very complicated to manage the backend cors. 

That's why I'm trying to set up a temporary solution and set up a proxy using `ng build --prod`.

Would you have a solution so that I can create a build with a proxy even if it is not recommended? 
Knowing that the prod build runs on a development weblogic so it's not really a production environment.

I hope you can help me, thank you.
Learning Terminal (Notes) Day #2
Tags: productivity, terminal, beginners, linux
Published: 2022-03-09 16:43:27

#Handle Files & Directories

There are a few parameters that can be useful with command _ls_ 

- **ls**: 

 - S: This modifier give us the list of files and directories ordered by _Size_

 - r: Sort the list in reverse

-Tree: Show our whole directories as tree structure
 - -L: The _L_ parameter show our tree with the number of levels that we specify 

![command tree preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5z9zuh2lsx6ud4nb5tv1.png)

- **mkdir**: with this command we can create a new directory or commonly called a folder just we have to type the name after the command and if you want that the folder's name have spaces you have to type between quotation marks.

- **touch**: Create a new file

> We can create as much files and directories as we want at once just typing the name of the folders or files after the previous one.

- **cp**: Command copy as you can imagine this command allow us to copy files just type the name of the file to copy and the name that you want the copy have also you can specify the directory where you want to copy save.

- **mv**: It works like copy but moving the files 

- **rm**: WARNING Take care of this command you can broke your whole Operative System, you can delete files with this command and you can delete directories with parameter -r (_recursive_). _If you type the paremeter -ir you can review and decide if you want to delete the files_.
System Design এর টুকি টাকি
Tags: softwaresystemdesign, systemdesign, design, software
Published: 2022-03-09 16:42:35

System Design সফটওয়্যার ইঞ্জিনিয়ারিং এর এমন একটা গুরুত্ব ফিল্ড যাতে কাজ করতে হলে চারিদিকের চারটা চোখ খুলে নিয়ে ফিউচার সফটওয়্যার (বা প্লাটফর্ম) এর আপাদমস্তক গবেষনা করতে হয়।
সফটওয়্যারের (বা সফটওয়্যার প্লাটফর্মের) রিকয়ারমেন্ট এনালাইসিস করার পর আপনাকে
- প্রোগ্রামিং ল্যাংগুয়েজ সিলেকশন নিয়ে চিন্তা করতে হবে
- ফ্রেমওয়ার্ক কোনটা ইউজ করবেন সেটা নিয়ে ভাবতে হয়
- ডাটাবেজ সিস্টেম কোনটা ব্যবহার করবেন সেটা নিয়ে চিন্তা করতে হয়
- ডাটাবেজ ডিজাইন করার পিছনে বিস্তর মাথা খাঁটাতে হয়
- অথেনটিকেশন ও অথোরাইজেশন কিভাবে হবে সেটা নিয়ে ভাবনা করতে হয়
- দিন ও রাতের কোন সময়ে ইউজার বেশি থাকতে পারে সেটা এনালাইসিস করতে হয়
- পৃথিবীর কোন লোকেশন থেকে আপনার সফটওয়্যার বেশি ব্যবহার হবে তা নিয়ে গবেষনা করতে হয়
- এবার সেই লোকেশনের কোথাও একজায়গায় সার্ভার রাখতে হয় (সার্ভার কিনতে হয় বা সার্ভার ভাড়া করতে হয় যাই বলেন)
- একাধিক সার্ভার থাকলে তাদের নিজেদের মধ্যে স্মুথ কমিউনিকেশনের জন্য আবার নেটওয়ার্ক ডিজাইন করতে হয়
- সবগুলো সার্ভার এবং সার্ভারে ডেপ্লয় করা সফটওয়্যার কম্পোনেন্টকে সব সময় আপ এন্ড রানিং রাখার জন্য আবার আলাদা টুলস (ধরেন Kubernetes) কনফিগারেশনের বিষয় মাথায় রাখতে হয় ...

আরো কত কি যে মাথার মধ্যে দলা-মোচড় করতে হয় তার ইয়ত্তা নেই। এসমস্ত জ্ঞান আবার শুধু ক্লাস করে, ভিডিও দেখেই শিখে ফেলা যায়না। সময়ের সাথে হাতকে এলোপাতারি কাজ দ্বারা ঘষামাজা করতে করতে অর্জন হয়।
How tf to get famous on twitter super fast!
Tags: javascript, web3, webdev
Published: 2022-03-09 16:33:58

So, today gonna let you guys know how to get famous AF on twitter overnight. The key to this is to post random shit facts you know about the topic that is trending. Do this for like 1 week, and you get famous!

Also, if you like this, don't forget to follow me on twitter - https://twitter.com/AKASH_AM1
Extra: Android, Flutter & AWS
Published: 2022-03-09 16:33:16

## Android

- Instal JDK

Visit [Oracle JDK Download](https://www.oracle.com/technetwork/java/javase/downloads/index.html) and download the latest JDK

- Install Gradle

```bash
brew install gradle
```

## Flutter

- Install

```bash
brew install flutter
brew install cocoapods
```

- Check for errors with Flutter doctor

```bash
flutter doctor
```

## Aws

- Install

```bash
brew install awscli aws-keychain aws-elasticbeanstalk
```
Node, NPM, Yarn & NVM
Tags: node, javascript, guide, apple
Published: 2022-03-09 16:32:08

Now it's time to start configuring our development environment. A good node.js is crucial as a primarily JavaScript developer, and it is vital to make sure it's working well.

## NVM
There is no better way to manage node than using [NVM](https://github.com/nvm-sh/nvm)

```bash
# NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
```

### Updating NVM

To update NVM to a newer version, you can use this command without losing your globals. Remember to change `<version>` to the version you want installed.

```bash
nvm install <version> --reinstall-packages-from=$(nvm current)
nvm use <version>
nvm alias default <version>
```

## Yarn

I prefer to use Yarn as the package manager, but this is a personal selection.

```bash
# Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
```

## NPMJS.com

Set the defaults value for your NPM user

```bash
npm set init.author.name "your name"
npm set init.author.email "you@example.com"
npm set init.author.url "example.com"
```

Then login into NPM with

```bash
npm adduser
```
#66 Days of Data
Tags: python, datascience, 100daysofcode, ankitgupta
Published: 2022-03-09 16:27:11

## **Learning Python**  👨‍💻

D 25 of #66daysofdata 📈

Today I have learnt - Python Indentation, Packages in Python, Modules vs Packages in Python ✌️

Checkout 👉 [My #66 Days of Data timeline on Github](https://github.com/mrankitgupta/66DaysOfData)

I'll be glad to connect & learn with similar goal centric people on 
👇

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

**Github** @ [MrAnkitGupta](https://github.com/mrankitgupta)
Configuring the GIT client & SSH
Tags: git, apple, guide, webdev
Published: 2022-03-09 16:10:18

It's time to configure our git client. This process is easy and doesn't take a lot of steps.

## Git LFS & Flow

- Install

```bash
brew install git-lfs git-flow
```

## Configuring the client

- Set the configuration file

> If you forked or downloaded the [repository](https://github.com/bloodf/mac.environment), please use this command to copy the configuration file with a lot of pre added alias and other stuff.

```bash
ln -s $(pwd)/git/gitconfig ~/.gitconfig
```

After executing this commands, configure your Git user settings

```bash
git config --global user.name "Your Name"
git config --global email "you@your-domain.com"
```

### Improving Git Log
You can add more colors to your git log output by executing this command.

```bash
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
```

## SSH

> If you forked or downloaded the [repository](https://github.com/bloodf/mac.environment), please use this command to copy the configuration file.

```bash
ln -s $(pwd)/ssh/config ~/.ssh/config
```
LeetCode problem #5 — Longest Palindromic Substring (JavaScript)
Tags: leetcode, algorithms, javascript, programming
Published: 2022-03-09 16:05:18

In [this LeetCode challenge](https://leetcode.com/problems/longest-palindromic-substring/) we’re asked to find the longest palindrome in a given string (a palindrome being a sequence of characters that is the same backwards as it is forwards, such as “bob”).

Now you might be inclined to think that the solution to this is simply to look at every character, and then move outwards until the characters no longer mirror each other. However, whilst this would work for a string like “aba”, it would not work for a string like “abba”, so we need to look for mirrored characters both by individual letter, and by letter-couple.

Solution #1: Loop, call twice, and store globally
-------------------------------------------------

Not a catchy title I know, but as this is my only real solution a catchy name seemed unnecessary!

In this solution, we loop through all characters in the string, and for each one, we begin checking for palindromes both on the current character and on the current character-couple. For each palindrome found, we check if it’s the new longest one, and store it if so.

{% embed https://gist.github.com/DuncanMcArdle/e8487db3fce69c5d73ca5232ff58f6b2 %}

This solution works great, and is pretty quick. In fact, the only way I’ve found to improve its performance is to replace the somewhat expensive string storing operations with pointer storage instead. In other words, instead of storing (and subsequently overwriting) the longest palindromes found each time, we instead store (and overwrite) pointers to the start and end of the longest palindrome. As you can imagine, once we get seriously long strings, this really starts to improve performance (at the cost of readability).

{% embed https://gist.github.com/DuncanMcArdle/695c2ffb6f633d4d22275ff10ee9ab37 %}
LeetCode problem #4 — Median of two sorted arrays (JavaScript)
Tags: leetcode, javascript, programming, algorithms
Published: 2022-03-09 16:02:38

In [this LeetCode challenge](https://leetcode.com/problems/median-of-two-sorted-arrays/) we’re provided with two ordered arrays, and asked to find the median value.

Just to clarify, the median is the **middle** value. So for example, the median of the array `[1,2,3]` would be 2. However, if there are an odd number of values, then the median is the average (mean) of the middle two values. So in an array of `[1,2,3,4]` the median value is the average (mean) of 2 and 3, which is 2.5.

Solution #1: The power of JavaScript
------------------------------------

Okay, so this is kind of like cheating. With JavaScript, we can concatenate (combine) the arrays, sort them into ascending order, and then just pluck out the middle number(s). This makes things incredibly simple, but isn’t all that efficient:

{% embed https://gist.github.com/DuncanMcArdle/cc0efd92cea5fcdda350ffd420e373d0 %}

Solution #2: Looping to the middle
----------------------------------

I came up with this idea while trying to crack the “correct” approach (see below). Basically, we start by figuring out the middle point of the combined array, and then we loop towards that point, pulling in the lower value of each array as we do, 1 element at a time, until we reach the middle. Once we reach the middle, we know we’re at the median.

{% embed https://gist.github.com/DuncanMcArdle/af931fc4cbd869eece00ce9202f17c0d %}

This approach is actually really quite efficient (faster than 97% of JavaScript submissions at the time of writing), but isn’t particularly mathematical, which is what most submissions on LeetCode seem to suggest.

Solution #3: The “right” approach (binary searching)
----------------------------------------------------

I’ll be honest and up front here: I do not like this solution at all. Despite being elegant and (eventually) understandable, it’s just not what good programming is to me. If I were to ask someone during an interview to solve this problem (which I would never do), I would be perfectly happy with them spending 5–10 minutes on providing me with either of the above two solutions. Watching them struggle for 45 minutes on this approach would have no value to me.

As a matter of fact, even though I do now, after many hours, finally understand this approach, I just don’t see the point in me writing one out. Instead, this fantastic video will take you through the math behind it and provide some code, in far simpler terms than the “Solution” page on LeetCode.

https://www.youtube.com/watch?v=LPFhl65R7ww
Weekly web development resources #112
Published: 2022-03-09 15:53:05



______

##[Almond.CSS](https://github.com/alvaromontoro/almond.css)
[![Almond.CSS](https://wweb.dev/weekly/content/112/almondcss.jpg)](https://github.com/alvaromontoro/almond.css)
A collection of class-less CSS styles to make simple websites look better.

______

##[SingleFile](https://github.com/gildas-lormeau/SingleFile)
[![SingleFile](https://wweb.dev/weekly/content/112/singlefile.jpg)](https://github.com/gildas-lormeau/SingleFile)
A Web Extension and CLI tool to save a copy of an entire web page in a single HTML file. 

______

##[DevDocs](https://devdocs.io/)
[![DevDocs](https://wweb.dev/weekly/content/112/devdocs.jpg)](https://devdocs.io/)
A website that combines multiple API documentations in a fast, organized, and searchable interface.

______

##[One Tooling](https://tooling.one/)
[![One Tooling](https://wweb.dev/weekly/content/112/onetooling.jpg)](https://tooling.one/)
A collection of useful tools for developers.

______

##[zzzenith](https://fffuel.co/tttemplates/zzzenith/)
[![zzzenith](https://wweb.dev/weekly/content/112/zzzenith.jpg)](https://fffuel.co/tttemplates/zzzenith/)
A simple personal HTML page template.

______

##[Gooey Warping SVG Numbers](https://frontend.horse/articles/gooey-countdown-svg/)
[![Gooey Warping SVG Numbers](https://wweb.dev/weekly/content/112/gooey.jpg)](https://frontend.horse/articles/gooey-countdown-svg/)
An article on how the morphing number CodePen from Fabio Ottaviani works.

______

##[Huemint](https://huemint.com/)
[![Huemint](https://wweb.dev/weekly/content/112/huemint.jpg)](https://huemint.com/)
A tool that uses machine learning to create unique color schemes.

______

##[lwder.js](https://bmsvieira.github.io/lwder.js/demo/index.html)
[![lwder.js](https://wweb.dev/weekly/content/112/lwder.jpg)](https://bmsvieira.github.io/lwder.js/demo/index.html)
A lightweight JavaScript library for loading animations.

______

##[React Awesome Shapes](https://awesomeshapes.netlify.app/)
[![React Awesome Shapes](https://wweb.dev/weekly/content/112/shapes.jpg)](https://awesomeshapes.netlify.app/)
A library to easily insert shapes into your react site.

______

##[Drift](https://github.com/maxleiter/drift)
[![Drift](https://wweb.dev/weekly/content/112/drift.jpg)](https://github.com/maxleiter/drift)
A self-hostable Gist alternative.

______

To see all the weeklies check: [wweb.dev/weekly](https://wweb.dev/weekly)
IT governance for DevOps teams - Survey
Published: 2022-03-09 15:51:53

The researcher is inviting DevOps leaders who have implemented IT governance strategies to participate in a study focused on the adoption of IT governance strategies for DevOps teams.

This study seeks volunteers who satisfy ALL the below criteria:

1. IT leaders who have adopted IT Governance strategies such as COBIT5, ITIL, TOGAF, ZACHMAN or ISO27001 in their organizations.
2. Form part of the IT governance body in the organization.
3. Work with an organization which utilizes IT governance to manage DevOps teams.

Results of the research:

Once the research has been approved and published, the results of this research will be posted on this site.

Click on the below link to participate in this study.

https://www.surveymonkey.com/r/RussellCamilleriDITSurvey2022

Thanks in advance
The initial setup on a fresh OS
Tags: apple, guide, environment, webdev
Published: 2022-03-09 15:41:48

After finishing your MacOS initial setup, you will face that default screen with many default Apple apps on the docker, and nothing configured.

Now let's configure the MacOS with the basic settings.

## Settings
These are configurations done in the MacOs settings.

###Dock & Menu Bar
- Remove most applications from Dock
- Automatic Hide
- Medium Dock
- Gennie Effect (Gives me that nostalgic feeling)
- "Double-click a window's title bar to" `zoom`
- Minimize windows into application icon
- Animate opening applications
- "Show recent applications in Dock" off
- "Show indicators for open applications" on
- "Automatically hide and show the menu bar on desktop" off
- "Automatically hide and show the menu bar in full screen" on

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

### Display
- Nightshift
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atf8ykvi158lqueuec4t.png)
 
### Security
 - Touch ID
 - FileVault Enabled

### Siri
- Disable

### Keyboard
- Text
 - Disable "Add full stop with double-space"
 - Disable "Use smart quotes and dashes"
 - Use `"` for double quotes
 - use `'` for single quotes

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w3o3f4ubd45keiw601fr.png)
 
### Mission Control
- Hot Corners: disable all
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x763rm6k6bj2hrdd1nm8.png)

 
### Finder
- Create a `Developer` folder inside your home folder `~` (It adds a custom icon to the folder)
- Sidebar:
 - activate all Favorites
 - move Library to Favorites
 - Add Drive and Dropbox to Favorites
 - Add `Developer` folder to Favorites
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iubdw3xlz4v1o9pr4rt4.png)

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

 
- Show all Filename Extensions
- Remove Items from Bin after 30 Days

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

## Terminal Settings
_(Affects Finder and other Applications)_

- Show Hidden Files
```bash
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder;
```

- Clear .DS_Store files
```bash
sudo find / -name .DS_Store -delete; killall Finder
```

- Take screenshots as jpg (usually smaller size) and not png
```bash
defaults write com.apple.screencapture type jpg; killall Finder;
```

- Show Library folder
```bash
chflags nohidden ~/Library; killall Finder;
```

- Show path bar
```bash
defaults write com.apple.finder ShowPathbar -bool true; killall Finder;
```

- Show status bar
```bash
defaults write com.apple.finder ShowStatusBar -bool true; killall Finder;
```
MacOS Environment Setup Guide - Developer Edition
Tags: apple, guide, environment, webdev
Published: 2022-03-09 15:30:27

I've been using MacOS for development since 2008. One thing that I miss the most between MacOS and Linux is the possibility of creating your script to copy your desktop environment setup between machines easily.

Some time ago, I decided to create a GitHub repository with my Environment setup, where I can have everything ready with a simple `git clone and some installation steps.

I want to share with you guys some of my personal preferences tuned after a lot of time dedicated inside an Apple machine.

I will separate this guide into different sections, so it's easier to follow, and you can choose what kind of personalization you want to achieve in your machine.

Also, feel free to fork my environment solution at [bloodf/mac.environment](https://github.com/bloodf/mac.environment)
SOLID principle #5: Dependency Inversion (JavaScript)
Tags: solid, javascript, programming
Published: 2022-03-09 15:24:35

The dependency injection principle states that high level code should never depend on low level interfaces, and should instead use abstractions. It’s all about decoupling code.

Not following? I don’t blame you, but it’s surprisingly simple.

Let’s say we have a piece of software that runs an online store, and within that software one of the classes (`PurchaseHandler`) handles the final purchase. This class is capable of charging the user’s credit card, and does so by using a PayPal API:

{% embed https://gist.github.com/DuncanMcArdle/297d135615ed9d0975902dbea7fd555c %}

The problem here is that if we change from PayPal to Square (another payment processor) in 6 months time, this code breaks. We need to go back and swap out our PayPal API calls for Square API calls. But in addition, what if the Square API wants different types of data? Or perhaps it wants us to “stage” a payment first, and then to process it once staging has completed?

That’s bad, and so we need to abstract the functionality out instead.

Rather than directly call the PayPal API from our payment page, we’ll instead create another class called `PaymentHandler`. The interface for this class will remain the same no matter what underlying payment system we use, even if the two systems are completely different. We’ll still need to make changes to the `PaymentHandler` interface if we change payment processor, but our higher level interface remains unchanged.

{% embed https://gist.github.com/DuncanMcArdle/b7b702a0e0e28acd468de21d3898adac %}

Now you may be looking at this and thinking “but wait, that’s _way_ more code”, and you’d be right. Like many of the SOLID principles (and indeed OO principles in general), the objective is less about writing less code or writing it quicker, and more about writing _better_ code. The above change will save you days or maybe even weeks further down the line, in exchange for spending a few hours on it now.
Datasource enabling multidimensional indexing and sampling pushdown
Tags: opensource, datascience, news, github
Published: 2022-03-09 15:23:23

Do you wonder how a multidimensional index would look like in Spark? 

Recently we launched the Qbeast Open Source Format, a Data Lakehouse enhancement to speed up your queries!

Based on [Delta Lake](https://delta.io/) and available for [Apache Spark](https://spark.apache.org/), it allows indexing your data by different columns and read a representative sample directly from storage :fire:

Quick example of how you can boost your query performance using Qbeast:

**This is a Normal Query with Spark and Delta format.**
![Normal query](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bdc1ngafo9jh6s740x33.gif)


**This is the same query but with Qbeast Sampling of 1%**
![Qbeast Sample Query](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ln8duog3i6fzlx3moznv.gif)

The gifs are cool, right? Let's compare both executions:

| Format | Execution Time |   Result  |
|--------|:--------------:|:---------:|
| Delta  | ~ 2.5 min.     | 37.869383 |
| Qbeast | ~ 6.6 sec.     | 37.856333 |

As you can see, **1% sampling** provides the result **x22 times faster** compared to using Delta format, with an **error of 0,034%**.

If you want to play with it, check out the [Qbeast-Spark github](https://github.com/Qbeast-io/qbeast-spark
)

And don't forget to give us a star!

Your support means a lot :heart: