teleren/devto huggingface dataset:
Investing in Your Future: Lonton Wealth Management Center's Commitment
Published: 2024-04-07 07:35:51

Lonton Wealth Management Center is a global leading wealth management company headquartered in the United States, founded in the 1990s, with offices in multiple countries worldwide.
Initially focused on providing investment advisory services and developing wealth management plans for governments worldwide to achieve steady wealth growth, LONTON expanded its scope to include individual wealth management in the 21st century. Tailoring wealth management solutions for individual investors, the company is dedicated to providing comprehensive wealth management services for high-net-worth individuals and families.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g7oca6y9t4hlgcl40ryg.jpg)
As of 2023, Lonton Wealth Management Center has served over 15,000 clients, including individual investors, family funds, retirement plans, educational institutions, non-profit organizations, and other institutional investors, achieving an overall annualized return rate of 15%. The company consistently prioritizes customer-centric service, earning the trust and support of its diverse clientele through customized wealth management and investment solutions.
Emphasizing wealth management and investor education, LONTON offers investment courses through its business school to enhance market awareness.
Lonton Business School comprises a team of top experts from various regions including Silicon Valley, Wall Street, and Seattle, spanning multiple domains such as the internet, technology, AI, finance, and business. Our experts possess extensive practical experience along with profound academic backgrounds, delivering high-quality research and consulting services to clients. The aim is to provide every investor with comprehensive investment knowledge education and wealth management services in one place.
Notes templates
Tags: notes, digitalnotes, pkm, beginners
Published: 2024-04-07 07:35:40

**Notes templates** can significantly enhance your note-taking workflow by providing consistent structures for different types of notes. Here are some useful templates you can create:

1. **Daily Notes (Journaling)**:
   - Use this template for daily reflections, thoughts, and events.
   - Include sections like "Highlights," "Challenges," and "Gratitude."
   - Capture your mood, accomplishments, and any significant moments.

2. **Weekly Review**:
   - Reflect on the past week's achievements, setbacks, and learnings.
   - Consider adding sections for goal progress, lessons learned, and upcoming priorities.

3. **Monthly Review**:
   - Similar to the weekly review but on a monthly basis.
   - Evaluate your overall progress, adjust goals, and plan for the next month.

4. **Article Writing**:
   - Organize your thoughts when writing articles or blog posts.
   - Include sections like:
     - "Type of post" (opinion piece, guide, list, etc.)
     - "Rapid fire thoughts" (raw ideas to explore)
     - "Tags"
     - "Headlines"
     - "Outline"
     - "Intro"
     - "Main points"
     - "References/Resources"

5. **People Notes**:
   - Create a template for capturing information about individuals.
   - Include fields for name, contact details, background, and any relevant notes.

6. **Book Notes**:
   - Use a structured table to record book details:
     - Author
     - Published date
     - Theme
     - Keywords
     - Date read
     - Status (finished/abandoned/ongoing)
   - Add sections for:
     - "The Book in 3 Sentences"
     - "Relevant Quotes"
     - "My Notes"
     - "Related Books"

7. **Movie Notes**:
   - Customize a template for movie reviews:
     - Title
     - Release year
     - Genre
     - Plot summary
     - Personal rating
     - Favorite scenes or quotes

8. **Cornell Notes**:
   - Set up a Cornell Notes template with sections for:
     - "Main ideas" (key points)
     - "Notes" (detailed information)
     - "Summary" (brief overview)

9. **Bullet Notes**:
   - Create a simple template for quick, concise notes.
   - Use bullet points or numbered lists to capture information efficiently.

Remember that these templates are adaptable to your specific needs. Feel free to modify or create additional templates based on the types of notes you frequently add to your vault. Happy organizing! 📝✨

For more inspiration, you can explore other users' templates and adapt them to your workflow. 😊

Source: 
(1) 7 Obsidian Templates to Streamline Your Notes - Medium. https://medium.com/@dianademco/7-obsidian-templates-to-streamline-your-notes-ab3a3c8757be.
(2) 6 Useful Templates for Obsidian - Filipe Donadio. https://filipedonadio.com/6-useful-templates-for-obsidian/.
(3) Free Obsidian Templates - Alphr. https://www.alphr.com/free-obsidian-templates/.
(4) Practically Paperless with Obsidian, Episode 8: Note Templates for .... https://jamierubin.net/2021/11/30/practically-paperless-with-obsidian-episode-8-note-templates-for-consistency/.
None data type in python with an example
Published: 2024-04-07 07:32:57

```py
def get_user(database, user_id):
    # Simulate database lookup
    user = database.get(user_id, None)
    return user

# Simulated database
users = {
    1: 'Alice',
    2: 'Bob',
    # Notice there's no user with ID 3
}

# Fetching a user
user = get_user(users, 3)
if user is None:
    print("No user found with that ID.")
else:
    print(f"User found: {user}")

```
What Are Your Best Clean Code Tips?
Tags: discuss
Published: 2024-04-07 07:00:00

What are your favorite strategies for writing code that's easy to understand, maintain, and extend? Share your top tips and tricks for keeping your codebase sparkling clean and developer-friendly.
<br>
Follow the DEVteam for more discussions and online camaraderie!
{% embed https://dev.to/devteam %}
Sync Update Pivot (SyncWithPivotValues) In Laravel 9
Tags: webdev, tutorial, laravel, php
Published: 2024-04-07 06:37:33

{% youtube Ickh3GE0YcY %}

We often use to write Many-to-Many relationships and have new columns created in the generated table. So how can we add values ​​to the added columns and update it?
Example
_Product many-to-many Language_
**Product Model**:  I have created new columns to add to the table " product_language " (title,keyword,description,slug,body)
```php
public function languages(){
        return $this->belongsToMany("App\Models\Language","product_language","product_id","language_id")->withPivot('title','slug', 'keyword', 'description', 'body')
        ->withTimestamps();;
    }
```

**Language Model**: (id,code)
```php
public function products(){
        return $this->belongsToMany('App\Models\Product','product_language','product_id','language_id');
    }
```
My 100-Day JavaScript Learning Challenge Journey Begins Today!
Tags: webdev, javascript, beginners, programming
Published: 2024-04-07 06:28:43

Hey everyone,

I am thrilled to share that today marks the beginning of my **100-day JavaScript learning challenge!** As someone from a non-tech background, I am embarking on this journey to explore the world of JavaScript and enhance my skills over the next 100 days.

In this blog series, I will be documenting my experiences as I delve into JavaScript, following the user-friendly **MDN JavaScript documentation**, the engaging **"Chai aur Code"** JavaScript playlist on YouTube, and leveraging the assistance of ChatGPT for additional support and guidance.

These resources have been recommended to me as a beginner, and I am excited to see how they will help me grasp the fundamentals of JavaScript. ChatGPT will provide me with valuable insights and explanations to complement my learning journey.

While I may not have a technical background, I am eager to learn and grow through this challenge. JavaScript is known for its versatility and importance in **web development**, and I am keen to understand its concepts and applications.

I invite you to join me on this journey as I navigate through the world of JavaScript with the help of ChatGPT. Your support, insights, and tips are greatly appreciated as I take on this exciting adventure.

Stay tuned for updates on my progress, reflections, and newfound knowledge as I tackle this 100-day challenge. Let's make the most of the next 100 days and code together!

**_Happy coding! 🚀_**

Dev Pattani
5 Best Websites for Free Gatsby Templates
Tags: html, css, gatsby, webdev
Published: 2024-04-07 06:15:40

This is a roundup of the best websites where you can find and download free Gatsby templates. These high quality items will power up your websites, landing pages, blogs, portfolios and ecommerce.

There are many template creators in the online space. Here are the reasons that make the ones mentioned below stand out from the crowd.

- Templates are offered free for both personal and commercial use
- Items look modern and are presented with the mandatory Live Preview
- You are not required more than an email address or signup to download

## HTMLrev
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m874rpeympq0qfgceog4.jpg)](https://htmlrev.com/)
[HTMLrev](https://htmlrev.com/) (free) showcases the best curated free Gatsby templates from generous creators around the world. You will find a large assortment of website, landing page, coming soon, blog, portfolio, directory, ecommerce and documentation templates. Items are manually checked and updated to maintain a reliable inventory.

**Features**
- Showcases the best templates created by top makers
- Constantly updated with the latest releases
- Easy to browse through categories

---

## Travis Lord
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sj7fwdn1m4ixf6jq78og.jpg)](https://travislord.xyz/projects)
[Travis Lord](https://travislord.xyz/projects) (free) is an experienced Gatsby template creator with a keen eye for design and passion for clean code. You will find 2 awesome free templates on his website. One for modern business websites and the second one for creative portfolios. They're easy to download and customize for your own projects.

**Features**
- Gorgeous unique designs
- Easy to setup and launch

---

## Startup Landing
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qmsucbnv3pqzc1adxg2v.jpg)](https://startuplanding.redq.io/)
[Startup Landing](https://startuplanding.redq.io/) (free) is a superb collection of free Gatsby landing page templates. 18 were available at the moment of writing this article. Designs are modern and eye-catching. They're a mix of image backgrounds and beautifully colored illustrations.

**Features**
- Designs work for both creative and business projects
- Wide range of use cases to choose from

---

## Landify
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zgud30d48efh6hgf23ph.jpg)](https://www.landify.design)
[Landify](https://www.landify.design) (free + paid) is a dedicated creator of beautiful UI kits, components and templates. They offer a set of free Gatsby templates passionately crafted for successful landing pages. The designs are modern and consistent for each use case.

**Features**
- Stunningly beautiful templates
- Great foundations for your projects

---

To assemble this roundup I've went through all imaginable online sources where templates can be found. I hope it makes your work easier.
Azure Locks: Securing Your Cloud Resources
Tags: azure, tutorial
Published: 2024-04-07 06:04:45

## Understanding Azure Locks and How to Secure Your Azure Storage Account 🔒


![Azure Lock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8j58ry17n6jwxgbtrfg.gif)

Azure Locks is a valuable feature provided by Azure that serves to maintain resource integrity and prevent unintended modification or deletion. This feature can be applied to resources including Azure Storage Accounts and encompasses two primary types of locks:

1. **CanNotDelete**: This lock allows authorized users to read and modify a resource but prevents the deletion of the resource.
2. **ReadOnly**: This lock allows authorized users to read a resource without the ability to delete or update it.

These locks are essential tools for administrators to safeguard their Azure resources. 🛡️

## How to Apply Locks to Azure Storage Accounts 💡

Applying locks to your Azure Storage Account is a straightforward process that can be done through the Azure portal, PowerShell, or Azure CLI. Here's a step-by-step guide on how to set these locks using the Azure portal:

1. Navigate to your storage account in the Azure portal.
2. Under the **Settings** section, select **Locks**.
3. Click on **Add**.
4. Provide a name for your lock and select the lock type (CanNotDelete or ReadOnly).
5. Optionally, you can add a note to describe the reason for the lock.

Remember, applying a lock at a parent scope ensures that all resources within that scope inherit the same lock, even resources added later.

## Considerations Before Applying Locks 📊

Before setting up locks, it's important to understand their scope and implications:

- Locks apply to control plane operations, not data plane operations.
- Lock inheritance means that any locks applied at a parent level will cascade down to all child resources.
- The most restrictive lock in the inheritance chain takes precedence.

Locking your Azure Storage Account is a best practice recommended by Microsoft to prevent accidental or malicious deletions. However, it's crucial to note that locking a storage account does not protect containers or blobs within that account from being deleted or overwritten. For comprehensive data protection, consider additional measures such as Azure RBAC and data protection strategies.

In conclusion, Azure Locks are a vital part of managing and securing your Azure resources. By understanding the types of locks available and how to apply them, you can ensure your Azure Storage Accounts remain protected against unintended changes.
Ruby double splat (**) operator cheatsheet
Tags: ruby, rails
Published: 2019-08-28 11:11:55

The operator `**` is useful as an options hash.

```rb
def one_method(**options);end
```
This form is completely similar to the following:

```rb
def another_method(options = {});end
```

In addition, you can strictly define the set of required keys for the method.

```rb
def one_strict_method(first_name:, last_name: , **options)
  puts "options: #{options}"
  greeting = "Hello #{first_name} #{last_name}"
  puts options[:upcase] ? greeting.upcase : greeting
end
```
```irb
pry(main)> one_strict_method(upcase: true)
ArgumentError: missing keywords: first_name, last_name

pry(main)> one_strict_method(first_name: 'John', last_name: 'Doe', upcase: true)
options: {:upcase=>true}
HELLO JOHN DOE
=> nil
```

Another advantage of double splat literal is that it works like #merge for [Ruby Hash](https://ruby-doc.org/core-2.5.1/Hash.html#method-i-merge)

```rb
class Contact::ShowRepresenter #:nodoc:
  def call(contact)
    {
      contact: {
        **base_info(contact),
        **legal_info(contact),
        # You can add something more complex here.
        # **GeoLocaionRepresenter.new.(contact)
      }
    }
  end
  
  private

  def base_info(contact)
    {
      id: contact.id,
      first_name: contact.first_name,
      last_name: contact.last_name,
      email: contact.email,
      phone: contact.phone
    }
  end

  def legal_info(contact)
    {
      legal_name: contact.legal_name,
      legal_type: contact.legal_type,
      mailing_address: contact.mailing_address
    }
  end
end
```

```irb
pry(main)>Contact::ShowRepresenter.new.(Contact.last)
=> {
  :contact=>{
    :id=>51986,
    :first_name=>"Ilia",
    :last_name=>"Kriachkov",
    :email=>"ilia.kriachkov@jetrockets.ru",
    :phone=>"+79000000000",
    :legal_name=>"JetRockets",
    :legal_type=>"LLC",
    :mailing_address=>"15 Let Oktyabrya Street, #10b, Tver, Russian Federation 170008"
  }
}
```

In conclusion, I want to demonstrate some benchmark results.  
As you can see, the `**` operator is a bit faster than Hash#merge.

```rb
require 'benchmark'
n = 50_000
Benchmark.bm(2) do |x|
  x.report('merge:             ') { n.times { merge } }
  x.report('double_splat_merge:') { n.times { double_splat_merge } }
end

def merge
  hash = { a: 'a' }
  { b: 'b' }.merge(hash)
end

def double_splat_merge
  hash = { a: 'a' }
  { b: 'b', **hash }
end
```

```irb
                     user      system      total        real
merge:               0.109247   0.088652   0.197899 (  0.204470)
double_splat_merge:  0.079480   0.003590   0.083070 (  0.083642)
```
Engineering Management Tip #6
Published: 2024-04-07 05:42:58

To communicate clearly speak crispy. Breathe until your fight/flight emotions fade away. Breathe until you have something useful to say. And when you speak (1) remove the upswing at the end (2) lower the tone of your voice and (3) remove self-analysis (there's just not time to worry about how you sound)/hesitancy when speaking. All via https://www.youtube.com/watch?v=NRsOm13pWag via my manager. The tip about leading with open-ended questions is great too.
Wall Street Veteran John Harrison Joins Finance Innovation
Published: 2024-04-07 05:41:52

Name : John Harrison
Age: 58
Place of birth: New York, America
Education: New York University, with a master's degree in finance from the Wharton School of the University of Pennsylvania

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyjo6pn0yxitjyv1ubkd.png)
Career:
John has worked on Wall Street for over 30 years, during the time, he has held senior positions at several well-known hedge funds, quantitative analyst, investment manager, co-founder of the Pinnacle Hedge Strategy Fund, and one of Soros' most prized students. 
He is known for his exceptional investment strategies and market forecasting abilities, with particular expertise in utilizing complex algorithms and data analysis to guide investment decisions. John's investment strategies typically focus on long-term growth and risk-hedging management, and he has successfully guided his team and clients through several financial crises, earning him widespread respect in the industry and helping his clients achieve strong returns.
Any risk when upgrading front-end framework from angular to vue3
Tags: discuss
Published: 2024-04-07 05:33:28

We try to upgrade our frontend framework from angular to vue3 by product component, so that means, we have to different url for them in next several months.
angular: https://domain/#/
vue3: https://domain/v3/#/
I want to know if some of you had experiences on that, any risk we need to consider on both development and testing?
my first 100 stars on the GitHub repo
Tags: github, opensource, go, sideprojects
Published: 2024-04-07 05:03:50

This is my first post here on dev.to, and I am here to talk about one of my recent achievements - I've got 100+ stars in one of my open-source projects. Not only that, I've got 4000+ views and 2400+ unique views on my github repo, and all these happened within 24 hours.


![Github repo traffic](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0my1ceqb8qtcprqd0iga.png)

My project, [goralim](https://github.com/0verread/goralim),  is a simple lightweight Golang package for rate-limiting API calls. I tried to have little to no external dependencies, so anyone can extend it with their choice of go packages and use it. 

I usually get stars on my GitHub repo from 2-3 friends of mine who follow me on GitHub. but that's it. But a few days back, I was kinda stress-eating and coding at night. Before I went to bed, I thought of posting the project on hackernews, thought no one would care to comment or star it, and why should they because the code is not production-ready. It's just a GitHub repo with only 2 stars and no proper documentation. 

When I woke up I already had 70+ stars and 20+ comments on my post. People are giving me feedback to improve it and make it better. Some people asked for some reasonable features to add (which I'm working on). and I realized the only person who thinks my projects are stupid is me. It stayed on the top 10 of the homepage of the hackernews for almost 20 hours. 

I'm one of those people who builds hobby projects and do not broadcast about it. I never broadcast about it because oftentimes I build stuff for my personal use and/or am not sure about my code quality ( I don't even write test cases if the number of lines of code is under 200). But I did that with almost no expectations and got overwhelming responses -  most importantly people told me who they wanted - feature requests. I was almost moving on from the project to work on my other python open-source project ( which I will release pretty soon) but now I guess I've to work on this project as well. I love this.


![Iliveforthis](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/apc99p8qtrpaq4pxtasp.gif)

So if you're someone like me thinking no one will notice your project, just release it and talk about it - you never know what might happen. You've got nothing to lose.

If you're someone who loves to contribute to open-source projects, you're more than welcome to contribute to my project
[goralim](https://github.com/0verread/goralim). If this story of mine gave you a little bit of motivation to work on that stupid idea you've had, go work on it. Build it for yourself. And I would appreciate some stars too on my project.
How to connect aws EC2 to CLI?
Published: 2024-04-07 04:01:37

Hi everyone! In this blog i am going to share the details that how to connect your EC2 instance to your CLI ...So bing reading.....
Step 1: 
       In first step you have to create the aws EC2 instance..It can be done by following 4 ways 
    a)using aws CDK
    b)using Direct communication with API(consuming programming languages ,you can connect to EC2 API)
    c)aws CLI
    e)aws Cloud Formation template
    d)using terraform
This are the ways to connect to your EC2 ibstance..But here we are going to discuss about the aws CLI (option c)
  
Step 2:
   -- Login to your aws account and create the EC2 instance ,you can name your instance ,choose the OS, and have to choose SSH key-value pairs to generate (it is used to login into your VM) and choose the extension as .pem (you have to keep your .pem file safe) and fill all necessary details that are applicable to free tier and create instance ,after some seconds,you can see that your instance is running!

Step 3:
  -- Here you have to click your account located on the top right corner,there you have to choose an option SECURITY CREDENTIALS,then you have to scroll down on the page and have to give give generate access keys.You will be generated with access keys and secret access keys.Again here you have to keep this keys safe .

Step 4: #Connecting using CLI
  -- Here, goto your CLI(ubuntu or CentOS (any distribution of linux systems) ).Follow the commands below ..
    >> sudo -
    >> Enter your password for root account
    >> mkdir "Directory_name" (creating a new directory to store p.pem file)
    >> cd "Directory_name"
    >> vi "file_name.pem"
    >> press the i(to insert the contents) paste the downloaded .pem contents into this file ,after that press ESC ,press Shift + : ,w,q (your contents will be saved )
   >> If you don't know the exact location of a current file ,give
find / -name "your_file_name"
   >> This command is to login into your VM 
        ssh -i filepath hostname@publicipV4_address 
  >> aws configure
  >> you will be prompted for inputs (-> Give the access key in first prompt -> Give secret access key in second prompt -> Give the region name and press Enter)
  >> To check whether you are connected or not you can give commands like (aws s3 ls)
 >> you get some list of names of your aws s3 bucket ,you are connected to aws instance

[Access keys are used for programmatic access into your account(used for managing resources)]

Step 5: 
  Then ,what's next ,you're successfully connected !! 
              << Happy Journey>>

NOTE: if you get some error like .pem file is too open(permissions are too open) ,you can change permisiion by giving command 
  chmod 600 -your_path_to_the _.pem_file  )