teleren/devto huggingface dataset:
Hope to get help from God.
Tags: javascript, node
Published: 2023-11-23 17:32:27


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zccryx7lx6ymwfu8f5jd.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lfvg45e98azom5ig1aa8.png)
Great gods, brothers and sisters, please save the children. I am a novice, so I really don’t know much. My friend sent me a js script on WeChat, and then I had a lot of problems when I first ran it, and then I reinstalled it. Once, after reconfiguring an environment, the software still had this problem when running. I asked others and said there were no dependencies. Then I went online to find a way to add dependencies. I also added a plug-in to vscode, but this was thrown. I searched online and couldn't find a good solution. What exactly is this problem and how should I solve it? I don't think this problem is big, but because I really don't know much about it, I keep looking for it. If you don't get to the problem, you can't find a good solution.
DevOps vs DevSecOps
Tags: devops, devsecops, development, operations
Published: 2023-11-23 17:30:35

**DevOps: Enhancing Collaboration for Swift Delivery**
DevOps, an amalgamation of Development and Operations, constitutes a culture and practices that aim to unify software development and IT operations teams. The primary objective of DevOps is to shorten the system development lifecycle and perpetually deliver top-notch software.

Key tenets of DevOps encompass automation, collaboration, and persistent feedback loops.

Within a DevOps framework, teams collaborate seamlessly throughout the entire software delivery process.

Automation tools play a pivotal role in streamlining tasks, mitigating manual errors, and expediting the release of software updates. This not only diminishes time to market but also enhances efficiency, fostering improved collaboration between development and operations teams.

**DevSecOps: Embedding Security into DevOps**
While DevOps concentrates on collaboration between development and operations, DevSecOps takes a stride further by integrating security into the development process from the outset. DevSecOps, with "Sec" denoting security, underscores the imperative of incorporating security as an integral component throughout the entire software development lifecycle.

In a DevSecOps approach, security is seamlessly woven into every stage of development. This proactive integration ensures the implementation of security measures and early mitigation of potential vulnerabilities. DevSecOps strives to cultivate a culture of shared responsibility for security among development, operations, and security teams.

**The Role of DevOps Consulting Firms:**
When grappling with the intricacies of DevOps and DevSecOps, companies frequently enlist the expertise of a [DevOps consulting company](https://sygitech.com/). These consulting firms specialize in aiding companies in implementing and optimizing DevOps practices, tailoring strategies to specific business needs.

**A DevOps consulting firm can assist with:**
**Assessment and Planning:** Undertake a thorough analysis of existing development and operations processes and formulate a bespoke DevOps or DevSecOps strategy.

**Toolchain Implementation:** Recommend and implement suitable tools to automate processes, monitor performance, and ensure seamless collaboration.

**Training and Skills Development:** Provide training programs to equip your team with the requisite skills and knowledge essential for adopting DevOps or DevSecOps practices.

**Security Integration:** For organizations embracing DevSecOps, consulting firms guide the integration of security measures throughout the development lifecycle.

**Continuous Improvement:** Establish feedback loops and foster a culture of continuous improvement to refine processes for sustained efficiency.
The Unseen Heroes of Coding: Embracing the Imperfections
Tags: coding, programming, softwaredevelopment, techculture
Published: 2023-11-23 17:21:17

In the world of coding, where perfection often seems like the ultimate goal, I find solace in the imperfections. Picture this: late-night debugging sessions, countless lines of code, and the persistent feeling that I've missed something crucial. It's in these moments of struggle that I've come to appreciate the unseen heroes of coding – the imperfections that lead us to innovation.

**Imperfect Code, Perfect Solutions:**
The myth of flawless code is pervasive. We're often led to believe that every line should be a masterpiece, free of bugs or errors. However, as I've navigated through the intricate web of coding challenges, I've learned that imperfections pave the way for perfect solutions. It's in the unraveling of a flawed algorithm that creativity blossoms, giving rise to unique and effective problem-solving approaches.

**The Emotional Rollercoaster:**
Coding is an emotional rollercoaster. The highs of successfully executing a complex function are matched only by the lows of discovering a pesky bug. Instead of suppressing these emotions, I've learned to embrace them. The frustration of debugging is not a sign of failure but a testament to the passion invested in the craft. The emotional journey of coding is an integral part of the learning process.

**Team Collaboration and Learning:**
Coding is rarely a solo endeavor. The beauty lies in collaboration. Working with a team introduces diverse perspectives, each bringing its own set of imperfections. I've discovered that learning from others' mistakes is as valuable as learning from my own. A shared journey through imperfect code fosters an environment of growth, where each contributor is a hero in their own right.

In the grand tapestry of coding, imperfections are the threads that weave our unique stories. Embracing the quirks in our code and the challenges that come with it is not a sign of weakness but a testament to our growth. So, to all the unseen heroes of coding – the bugs, the errors, the late nights – I say thank you. You've shaped me into the coder I am today, and I look forward to the continuous journey of embracing the imperfections.
Javascript Hoisting
Tags: javascript, webdev, codenewbie, codernex
Published: 2023-11-23 17:07:13

## What is hoisting in JavaScript?

Javascript Hoisting is javascript's default variable which moves all the declarations at the top of the script.

A variable can be used before it has been declared.

Example:

```javascript
/** 
* For hoisting the variable x is now on the top of the script;
* var x;
**/

x=5; // Initializing the variable x

console.log(x) // 5

var x; // Declaring the variable x
```

## Varibale Declared with let and const:
variable declared with let and const are also hoisted to the top of the script but it will not be initialized;

Meaning: The block of code is aware of the variable, but it cannot be used until it has been declared.

## variable with let keyword:
Using a variable with a let keyword before it is declared will result in a ReferenceError.

```javascript
firstName='Codernex';

console.log(firstName); // ReferenceError

let firstName;
```

## variable with const keyword
Using a const variable before it is declared, is a syntax error, so the code will simply not run.

```javascript
// This code will not run.
carName = "Volvo";
const carName;
```

Remember Javascript hoisting only works with the declaration, not with the initialization;
```javascript
/**
* Javascript hoisting only move the variable declaration to the 
* top of the script, not the initialization that's why it will 
* print undefined
*/
console.log(x) // undefined
var x=5; // Declaring & Initializing with 5;
```

## Declare Your Variables At the Top!
Hoisting is (to many developers) an unknown or overlooked behavior of JavaScript.

If a developer doesn't understand hoisting, programs may contain bugs (errors).
[Digest] Java, Kotlin, Spring, Cloud, and More - Episode 16
Tags: digest, java, spring, cloud
Published: 2023-11-23 16:57:14

Hey folks, here are some posts that I found interesting recently.

🌱 [Synchronizing with External Transaction Managers in Spring Cloud Stream Kafka Applications](https://spring.io/blog/2023/10/04/synchronizing-with-external-transaction-managers-in-spring-cloud-stream): one of the posts from the post series on how to receive, send messages and save data in a database transactionally with Spring Cloud Stream Kafka. As mentioned in the comments, this solution is fine only if message sending is optional (best effort).

☕️ [How to find dead code in your Java services](https://foojay.io/today/how-to-find-dead-code-in-your-java-services/): an interesting (questionable?) way to find unused code with JaCoCo agent that is run with a service on production. Security and performance are also mentioned.

💡 [Kotlin Multiplatform Is Stable and Production-Ready](https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-stable/): Kotlin Multiplatform is stable now.

💾 [Performance isolation in a multi-tenant database environment](https://blog.cloudflare.com/performance-isolation-in-a-multi-tenant-database-environment/): how guys at Cloudflare deal with performance challenges for multiple tenants in a single database.

🚀 [Limits of Loom's performance](https://softwaremill.com/limits-of-looms-performance): a nice post on Virtual threads and Kotlin coroutines performance comparison.

---

*Dream your code, code your dream.*
Impact of Real-World Asset Tokenization
Tags: blockchain, tokenization, assets, ownership
Published: 2023-11-23 16:42:50


![Impact of Real-World Asset Tokenization](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sjebse9ejg4dbsrj4vd2.png)_Hey, Welcome Again to **@Dev.Three** Blogs_

Let's kick off our exploration by asking: What exactly is **Asset Tokenization**?

Asset tokenization is a process where real-world assets, like real estate or art, are converted into digital tokens on a blockchain. It can be any blockchain depending on the Speed we choose a particular blockchain. 

These tokens represent ownership or a share in the underlying asset. It's like turning a physical asset into digital pieces that can be bought, sold, and traded more easily. Breaking assets into smaller pieces and selling them one by one. Let's take an example in Collectibles things : 

`Imagine you have a valuable painting. Through asset tokenization, you can convert ownership of that painting into digital tokens. Now, instead of selling the entire painting, you can sell or trade these tokens, allowing multiple people to own a portion of the artwork.` 

This makes it simpler to invest in and trade assets that might traditionally be less liquid or easily divisible.

What are the **Advantages of Tokenization of Real World Assets**?

- Increased Liquidity
- Accessibility
- 24/7 Market
- Fractional Ownership
- Reduced Costs

**Dcomm is actively engaged** in the process of 

- Tokenizing solar energy investments, highlighting the role of decentralized finance (DeFi) in facilitating renewable energy funding.
 
- Additionally, the company is championing the tokenization of carbon credits as a crucial step toward advancing sustainability. 

- Furthermore, Dcomm envisions the future of energy grids to be decentralized, tokenized, and blockchain-powered, emphasizing the transformative potential of these technologies.

The commitment to **sustainability**, the pursuit of asset **liquidity**, and the desire for **global market integration** underscores the importance of asset tokenization in these initiatives.

Congratulations & Happy Coding !!! 🎊

[Go Ahead And More Learn About Dcomm](https://dcomm.network/news/the-future-of-energy-grids-decentralized-tokenized-and-powered-by-blockchain/)

@Dev.Three 

Follow for more Updates :
[Linkedin](https://www.linkedin.com/in/neeraj-choubisa-a4952b202/) 
[Github](https://github.com/Kali-Decoder)
[Portfolio](https://kali-decoder.github.io/Portfolio/ )
BakaLLM, part 12, 1 step backward, 4 steps forward: starting new experiment
Tags: llm, machinelearning
Published: 2023-11-23 16:16:26

Hello fairy dairy diary! 

![Ice skating](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/igl75nkethxhpg41u8p1.png)

I was not satisfied with (my implementation of) RMT so far. One of the "problem" with it was how robust 16-token-long RMT was. No matter what kind of things I tried to throw at it, it went worse. Even when I simply increased number of tokens to 24, it got way worse.

So while RMT experiment was the first one to put us below 4.00, it was thrown into the drawer box, locked and let stewn for a while.

I even took a break and played with calculating clipping on the fly (going from 1/2 to  2/e). But after pondering, simplest way forward was found.

Behold super-puper novel architecture `Step4` that works in parallel with MLP and attention plays role of hyper-local attention.

Basic idea is to do linear transformation over several tokens. However to not deal with causal mask, we split text to very small chunks and produce the result of last token only which is built using predcessing N tokens. 

The implementation is simple. Assume we have input tokens to the layer

X,Z,A,B,C,D,E,F,G,H,I,J,K,L

We rearrange these tokens as "wide" tokens by concatenating 4 tokens at once at feature dimension (throwing tokens from left if can't combine 4 tokens exactly)

ABCD,EFGH,IJKL - 3  tokens left

Now we use the same Linear layer on each token that maps `4 * dim_model` to `dim_model`.

ABCD->D',EFGH->H',IJKL->L'

Then we rearrange input but this time 4 tokens are created as new dimension:

Then we reshape it back to `0 0 0 D' 0 0 0 H' 0 0 0 L'`, pad whatever we thrown away `0 0 0 0 0 D' 0 0 0 H' 0 0 0 L'` and return it (it will be added to residual)

It's like linear attention in range of 4 tokens! But no softmax, Linear only: each 4th token is build using tokens 1,2,3,4!

Comapring to RMT-16 (graph shows (Loss(RMT16) - Loss)):

![Blue=RMT](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uor3pjxpzwxxmw2e30sd.png)

It started well, dipped down, then became OKaish ok. Which is already better than previous experiments. 

I also tried to do it outside of layers, and do it once before. But it was bad. After 1 epoch results on `valid` split are promising: loss is 4.4529, which is lower than 4.4648 of RMT. Granted RMT  had only 190M parameters, while this has 218M. But it can be optimised by sharing weights in the middle, for example.

Experiment forward are straightforward: train 2 more epochs. Then "shift" inputs so we return not 25% filled but practically all filled but first 3 tokens (after processing `X,Z,A,B,C,D,E,F,G,H,I,J,K,L`, process `X,Z,A,B,C,D,E,F,G,H,I,J,K`, etc)
and share weights.
Maybe go full MLP mixer and mix 768 times over 4 features. Maybe compress. Well, anyway, new record after epoch 1 is set.

Chill!
Should we use Reactive architecture with Java?
Tags: java, reactiveprogramming
Published: 2023-11-23 16:38:38

###### I am always posting provoking post on my Linkedin, and I have decided to replicate those here. [Let's socialize!](https://www.linkedin.com/in/alexsandro-souza-dev)

**Short answer:**
Forget about reactive programming :grimacing: . In the past, it was rarely a good idea, and today, with virtual threads, it's even less recommended.
This statement from the Quarkus blog [post](https://quarkus.io/blog/virtual-thread-1/) encapsulates my point very well:

> But what are virtual threads? They reuse the idea of the reactive paradigm while enabling an imperative development model. This way, you get the benefits of both reactive and imperative models without their drawbacks!

**The long answer:**
Reactive architecture was developed as an alternative to the high overhead of working with system threads, as Java threads utilise them. However, due to the nature of reactive architecture — one thread per core/event loop — this approach is not really recommended. As you can imagine, it's challenging to ensure there will be no blocking processes in the request. A common example of a blocking process is relational database calls (for which Quarkus offers an extension to mitigate this issue). There are other issues associated with reactive architecture, but I'll leave those for you to research.
Before virtual threads, I would have recommended reactive architecture only in very few cases (e.g., for a proxy, gateway) because once you hit certain multi thread performance limits, you could simply spawn multiple instances of the application and use a load balancer. After all, hardware is relatively cheap these days.

Now, we have virtual threads. Finally! (It has been hard to defend Java among my Golang friends) :smile:
Unfortunately, there's no such thing as a free lunch, and virtual threads do have some small challenges. These challenges are described in the [Quarkus post](https://quarkus.io/blog/virtual-thread-1/), which I won't repeat here. However, I do want to emphasise that our Platform team needs to be aware of these challenges to ensure we have a virtual thread-friendly implementations, especially around database transactions. Quarkus, Narayana and Hibernate have been patched to avoid the pinning.
Another point to note is that the platform team should ensure we have tests against thread pinning by leveraging the `@ShouldNotPin` annotation from [junit5-virtual-threads](https://github.com/quarkusio/quarkus/pull/35992/files).
Learning Git & GitHub Like an Old Dog
Tags: git, github, learning, webdev
Published: 2023-11-23 16:19:04

## But I already learned it

So, today I'm learning about Git and GitHub. I already use them for my own projects but, since I'm now a student, I need to learn a different **way** of using them.

I clearly have a lot to learn about a lot of stuff I've already learned. To be fair to myself though, it's because I've pretty much worked exclusively in a team of one. Me.

Upwards and onwards, or words to that effect...
Revolutionize Your Brand with Top-notch Flutter App Development by TechnBrains
Published: 2023-11-23 16:12:17

**TechnBrains: Leading Flutter App Development Services**

Join the Flutter trend with TechnBrains, your go-to Flutter App Development Company. Our seasoned developers specialize in creating focused, agile, customer-centric apps for iOS, Android, and the web. Benefit from reduced development time and costs through our shared codebase approach, ensuring a feature-rich, accessible, and user-friendly UI/UX design.

**Flutter App Development Services: Your Complete Solution**

Discover all you need in a mobile application with our Flutter development services. From integrating specific features to enhancing your app's design, our professional Flutter app developers guarantee top-notch quality. With Flutter 2.0, we leverage cross-platform development to deliver improved, feature-filled apps for an enhanced user experience.

**What Sets Our Flutter Mobile App Development Apart?**

At TechnBrains, customer satisfaction is our priority. Our experienced developers ensure constant communication from project start to closure, aligning every module with your vision. We embrace creativity, innovating to achieve better results. Our solutions focus on adopting the latest technologies and modern techniques, setting high-quality standards for lasting mobile app solutions.

**Why Choose Us as Your Flutter App Development Partner?**

As a top-rated USA-based [mobile application development company](https://www.technbrains.com/mobile-application/flutter-app-development/), we dedicate ourselves to delivering state-of-the-art solutions for businesses and startups. Our commitment, consistency, and dedication to providing value to our clients have made us a trusted name in the industry.

**Key Features of Our Mobile Apps:**

Location-Enabled Services
Easy-to-Navigate UI/UX Designs
Chatting and Mobile Conversation
Robust Data Security
Lightweight Apps

**Your Journey Starts Here: Unlock Success with TechnBrains.**
Completing our toolbox with the mapper function
Published: 2023-11-23 15:51:56

In the previous post we discover a new utility :

```js

function pick (path) {
  let pickprops =  map((prop) => pickprop(prop), path.split("."));
  return pipe(...pickprops);
}

const mapper = compose(map, pick);

```

Here is a use case :

```js

let citymapper = mapper("owner.address.city")

cities = citymapper(pets)

console.log(cities);

```

Here is our toolbox now :

```js


const curry = function (fn) {
  const curried = (...args) => {
    if (args.length >= fn.length) {
      return fn.apply({}, args)
    }
    else {
      return (...vargs) => curried.apply({}, args.concat(vargs))
    }
  }
  return curried
}

const compose = 
    (...fns) => arg => fns.reduceRight((acc, f) => f(acc), arg);

const pipe = 
    (...fns) => arg => fns.reduce((acc, f) => f(acc), arg);

const asyncpipe = 
    (...fns) => arg => fns.reduce((p, fn) => p.then(fn), Promise.resolve(arg));

const pickprop = curry((prop, obj) => obj[prop] ?? null); 

const map = curry((fn, arr) => arr.map(fn));

const filter = curry((fn, arr) => arr.filter(fn));

function pick (path) {
  let pickprops =  map((prop) => pickprop(prop), path.split("."));
  return pipe(...pickprops);
}

const mapper = compose(map, pick);

```

You can play with a demo here [Demo](https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAGhAGMB7NYmBvEAXwvW10XAFc1qUCACN8AKwRU6DJsTzS4xAATVeAJzUBPJQF4lYftWIR6SgBRg0ASiXAAOmiUr6ilerUQYAE13n8-jDUAczgbHQA+WwcnJwgwc0CQ-Fg0IOJCJXC9S2SmNMIbe0cYpzUYYnVHHIwABxqoTTNgdiVE0OiY1g6nGCg4GCjikrKKtUczf3wANzawyNUNTy98WvrG5opW4Lh8aWoMYjMZ7asrbqUu4svS8sq3Re8HS4cFZTosGtp+33OJ-0tQrpIokgfo0Dsyl5eNQYAAlCBBEhmMwYajUTZgOb6FFoqybRJWADcDheLmUNQgNQGel+kwBWJBETBEO80JgyNR6P0WLAOOoeK2QSJJIEZNacE0AgpVJ+Qz8-3BDOCoIB+EhbORNQx1lBNXw6SYFmsmwACmpaFgIP01fBaFApuyCcK0KTweSINQANY1c01XwLLSa32bWjCMRY0NiZA+2g1AC6SgA-ImlGheFAoESlCLXkosLV-e5Gkb8RolWp8PmakbTsSXaK3fpoIw1IWNMXLKW1OX8JAoC2a86HAYBMZTBSveYagcCoMnLB3V6YzU4L487Ug7GsRPvb6zMuBdP0vg4PUIIc7ARL7WOiM7tL2ZMd8vQnXnmgF+u6jBW3p3p9+jMKtNh3IlKBAfpYCMExwTwABmAAmRBELYDgQEwHA8HESQaHoRhmB4BxPypYhVz0ZAOiKEoSIwgZEGzEAACFoCgS8KHOYQym8JR6MvT5aC8WA2POAB3GAERIeiAEYEPYuVaBEtAfx4ucSiUBSlLGLgVMvE0MHTYS5ScaRiA8YReDHRx6KotSnGwWh+GUejELk2ynGnTRuPosAMD6GBzicdgAtaLwvDKOBV2s4LjPPbR6IYvSPDgS9guuToOiC4obPc8paJ0kAAFkME0DBDOGVE6IYz4IBkNQypiMSJOIeiEIAdlcmINOUqKjPUxSfzy3iQAACSYDx6pKEyzIsmCVNU2z7MclSZI62yPK8pRTN4fzesyhbQvCyL5ts6hYrmy8ABl6C8egUt2840r246aO0oaAHlYx-CalDUCr8v6YgW2+xrEWapQEIABlWvrNJU7LOv6rScHygA5D07QwZLKGCqaRBm0x4vhkpFoYZbZOipR1p8eitp22ynuJg74COonJrO+LLuu26QFSh6MocOMRSI8oVFio8MhpEAuorDAmYi3ZYru4W3liqsqV-L91bMU7iE0cWzgEc9PDI0XdbVn993KdoGzgO0YGSWggm1o34ANkVPx1vWPU9ZS9B3Z3df15XTe0P8xe9i2SLgZAIbjA2FDth2nc9t36yFtOM-TrP63AyCYGglw8AAFgANmQ1DOEwnhdgi8CTNkFhWDjVggA)
Take Your Plumbing Business to the Next Level and Skyrockets Your Growth
Published: 2023-11-23 16:06:00

At [Plumbingwebmaster](https://plumbingwebmaster.com/), we’re more than just a plumbing web designer — we’re your dedicated partners in ensuring your home or business functions flawlessly. With a passion for plumbing excellence, our story began with a commitment to delivering top-notch services to our community.

We take pride in our unwavering commitment to quality, reliability, and customer satisfaction. We understand that a smoothly operating plumbing system is crucial for your daily life, and we are here to ensure just that.
Geierhals loswerden, aufrechte Körperhaltung wahren
Tags: deutsch, health, watercooler
Published: 2023-11-23 16:00:00

Moin Moin,

heute möchte ich einen Gesundheitstipp mit euch teilen – nämlich wie man (s)einen Geierhals loswird.

Dafür empfehle ich folgendes Video ( Dauer ungf. 16 Minuten – schaut man jedoch Abschnittsweise :-).

{% embed https://www.youtube.com/watch?v=BdNORMvZ9Ks %}

Die Übung sind, meiner Erfahrung nach, sehr effektiv und anschaulich erläutert. Es wird ebenfalls darauf eingegangen wie man nach der „Erstaufrichtung“ eine gesunde Körperhaltung beibehält. Nein, einfach den Kopf heben löst das Problem nicht – es verschlimmert es sogar! 

Damit sei meinerseits erstmal alles gesagt. Lasst mich gerne Wissen wissen  inwiefern euch das Video geholfen hat.

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch

Anzeigebild: https://www.pexels.com/de-de/foto/natur-vogel-portrat-tierfotografie-18061234/