teleren/devto huggingface dataset:
Rust Learning Resources
Tags: rust
Published: 2021-09-10 08:13:33

---
title: Rust Learning Resources
published: true
date: 2021-09-10 00:00:00 UTC
tags: rust
canonical_url: https://www.cryptorustacean.com/posts/rust-learning-resources
---

In my current quest to efficiently ramp up my skills in Rust so that I could start contributing to the [Solana](https://solana.com) ecosystem, my friend [Mark](https://twitter.com/logicmason) from [Alchemist Camp](https://alchemist.camp) suggested a pathway that would quickly ramp starting from some fairly approachable resources.

- [Hands-on Rust](https://pragprog.com/titles/hwrust/hands-on-rust/): This book is from the author of the free [Roguelike Tutorial - In Rust](https://bfnightly.bracketproductions.com/rustbook/chapter_0.html). Since I have access to [learning.oreilly.com](https://learning.oreilly.com/) already, I'll probably just straight into the book first, but the tutorial looks fun too so I may go through it as well if it doesn't duplicate too much of the content in the book.
- [Programming WebAssembly in Rust](https://pragprog.com/titles/khrust/programming-webassembly-with-rust/): I know Mark had a lot of good things to say about this one, and I'm happy he suggested this one for the second resource since I've been wanting to start checking out [Wasm](https://webassembly.org/) but haven't had a compelling reason to do so.
- [Rust Web Development](https://www.manning.com/books/rust-web-development): This book is still being written as we speak, so hopefully there will be a few more chapters completed by the time I get to it. Since I do mostly web development, I feel that having a book that teaches a different programming language, but in a familiar context, is a great way to learn.
- [The Rust Programming Language](https://nostarch.com/Rust2018): This one goes into the nitty-gritty of the language. I'd like to get some awesome things built before getting to this one. It's pretty important to figure out ways to stay motivated on the learning path and getting to this book too early may just stop me in my tracks.

There are a few other books that look pretty interesting, like [Rust in Action](https://www.manning.com/books/rust-in-action), that I may look at before getting to The Rust Programming Language. It all depends on how well I feel I've absorbed the information and the fluency with which I build applications.
Defer commitment
Tags: lean, decisionmaking, productivity
Published: 2021-09-13 13:15:24

---
title: Defer commitment
published: true
date: 2021-09-10 00:00:00 UTC
tags: lean,decisionmaking,productivity
canonical_url: https://jhall.io/archive/2021/09/10/defer-commitment/
---

As I briefly mentioned [yesterday](https://jhall.io/archive/2021/09/09/real-options/), there’s a concept in [Lean software development](https://en.wikipedia.org/wiki/Lean_software_development) called deferred commitment, or more colloquially, [decide as late as possible](https://en.wikipedia.org/wiki/Lean_software_development#Decide_as_late_as_possible):

> As software development is always associated with some uncertainty, better results should be achieved with a set-based or options-based approach, delaying decisions as much as possible until they can be made based on facts and not on uncertain assumptions and predictions.

We can apply the same principle to many areas of life. When driving down a 5-lane freeway during rush hour, which lane should you be in (ignoring, for the purpose of our thought experiment, any laws that may require you to drive as far to the right as possible)? All else equal, you probably want to be in center lane. This gives you the maximum flexibility. You can choose to change lanes left to pass, or change lanes right to prepare to exit (assuming a [RHT country](https://en.wikipedia.org/wiki/Left-_and_right-hand_traffic)).

As you near your destination, you’ll want to commit to the right lane, to prepare to exit, limiting your option to pass on the left. Committing too early to the right line would likely delay your arrival, as you would have little or no option to pass slower vehicles.

This principle of Lean software development is often criticized for being too limiting. And rightly so, I think, to a degree. It’s not _always_ appropriate to wait to make a decision. Waiting until the last _possible_ moment to change to the right lane can be disasterous, too.

![](https://jhall.io/archive/images/exit-ramp.jpg)

While deferring commitment serves as a good general rule of thumb, it’s not a commandment. I like to change the rule from “Decide as late as possible” to “Don’t decide until you have a good reason.”

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
{emayili} Rendering Plain Markdown
Published: 2021-09-18 05:56:15

---
title: {emayili} Rendering Plain Markdown
published: true
date: 2021-09-10 00:00:00 UTC
tags: 
canonical_url: https://datawookie.dev/blog/2021/09/emayili-rendering-plain-markdown/
---

![{emayili} Rendering Plain Markdown](https://datawookie.dev/blog/2021/09/emayili-rendering-plain-markdown/featured.jpg)

We’ve been able to attach text and HTML content to messages with `{emayili}`. But something that I’ve really been wanting to do is render [markdown](https://en.wikipedia.org/wiki/Markdown) directly into an email.

In version 0.4.19 I’ve added the ability to directly render plain markdown into a message.

```
library(emayili)
```

The `render()` method will handle plain markdown either as a character vector or from a file.

## Markdown String

Let’s start with markdown in a character vector.

```
email <- envelope() %>%
  render("[This](https://www.google.com) is a link.")
```

What’s the raw email document look like?

```
print(email, TRUE)

Date: Fri, 10 Sep 2021 03:42:47 GMT
X-Mailer: {emayili}-0.4.19
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="e28a25a2a39253440353e12c623"

--e28a25a2a39253440353e12c623
Content-Type: text/html; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

<p><a href=3D"https://www.google.com">This</a> is a link.</p>

--e28a25a2a39253440353e12c623--
```

The markdown has been translated into HTML and inserted as a `text/html` MIME element.

## Markdown in a File

You’re more likely to have your markdown in a file. Suppose that the file `message.md` contains the following:

```
[This](https://www.google.com) is a link.

- One
- Two
- Three

![](https://cran.r-project.org/Rlogo.svg)
```

The `render()` function will identify its argument as a file path and render the contents of the file.

```
email <- envelope() %>%
  render("message.md")
```

And this is what the resulting MIME message looks like:

```
print(email, TRUE)

Date: Fri, 10 Sep 2021 03:42:47 GMT
X-Mailer: {emayili}-0.4.19
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="8301b826a4415341f24323d192f"

--8301b826a4415341f24323d192f
Content-Type: text/html; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

<p><a href=3D"https://www.google.com">This</a> is a link.</p>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<p><img src=3D"https://cran.r-project.org/Rlogo.svg" alt=3D"" /></p>

--8301b826a4415341f24323d192f--
```

This new feature partially scratches a persistent itch. But I’ll only be satisfied when I can render R markdown straight into an email. Stay tuned.
Feature Flags Simply Explained 🎥[video]
Tags: codenewbie, devops, video, explained
Published: 2021-09-09 23:44:31

What are Feature Flags (or Feature Toggles)? How do they work? Why they are important?

__Feature Flags are a super important tool__ to use in your application, but many are still confused about them

This is why I put together a video with a __simple explanation__ on how Feature Flags work, how to implement them, and what __benefits__ they bring.

⏲️ The overall outline of the video is:

- What are Feature Flags
- Release vs Deployment
- Feature Flag Implementation theory
- Continuous Experimentation
- Platforms with Feature Flags
- Controlling Feature Flags
- Recap
- Final Considerations

Enjoy the watch!

{% youtube c8KgKTgyFUE  %}

[Link to the video: https://youtu.be/c8KgKTgyFUE](https://youtu.be/c8KgKTgyFUE)

What do you think of it? How do you plan to use or already use Feature Flags? Any more questions about this topic?

__Let me know in the comment section below__.

__Like, share and follow me__ 🚀 for more content:

📽 [YouTube](https://www.youtube.com/CoderDave)
☕ [Buy me a coffee](https://buymeacoffee.com/CoderDave)
💖 [Patreon](https://patreon.com/CoderDave)
📧 [Newsletter](https://coderdave.io/newsletter)
🌐 [CoderDave.io Website](https://coderdave.io)
👕 [Merch](https://geni.us/cdmerch)
👦🏻 [Facebook page](https://www.facebook.com/CoderDaveYT)
🐱‍💻 [GitHub](https://github.com/n3wt0n)
👲🏻 [Twitter](https://www.twitter.com/davide.benvegnu)
👴🏻 [LinkedIn](https://www.linkedin.com/in/davidebenvegnu/)
🔉 [Podcast](https://geni.us/cdpodcast)

<a href="https://www.buymeacoffee.com/CoderDave" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important; width: 108px !important;" ></a>

{% youtube c8KgKTgyFUE %}
5 must have Visual Studio Code extensions
Tags: vscode, programming, productivity, ui
Published: 2021-09-09 23:40:00

One of the reasons Visual Studio Code is the best IDE is the wide range of extensions that makes developer’s life simpler.

5 must have extensions to help you with your application development are:
###1. Prettier
![8](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqlf7nmy9iivsx28xg5r.png)

###2. Sonarlint
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osp0825ot44qknzuvtjb.png)

###3. GitLens
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jimh9nf9b127btar0zrb.png)

###4. ES7 Snippets
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/twajtuj4dz7nmmjuiqn1.png)

###5. Thunder Client
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0vr76m71w2uh20zv5htk.png)

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

Follow us on [Instagram ](https://www.instagram.com/commitandpush/)
How to use Captcha on localhost?
Tags: googlecloud, security, programming, webdev
Published: 2021-09-09 23:34:00

According to the Google’s developer guide, localhost domains are not supported by default due to which you will get the following error on captcha:

###“Localhost is not in the list of supported domains”


In order to access captcha on your localhost, you need to add them to the list of supported domains for your site key.

Follow the steps below to remove the above mentioned error:

1. Go to the [reCAPTCHA Enterprise console](https://console.cloud.google.com/security/recaptcha) or to the [reCAPTCHA console](https://www.google.com/recaptcha/admin).
2. Click on the Settings icon (⚙️).
3. Scroll down to domains section.
4. In the Add a domain input section, add localhost and press enter. **(localhost:4200, 127.0.0.1:4200 and http://localhost:4200 all are invalid formats, only use localhost)**        
5. Click SAVE.


**Optional:** if you are using 127.0.0.1 instead of localhost, add 127.0.0.1 too.


Once you refresh your webpage, you will be able to access captcha on localhost. You can now use it to develop and test your web application.
It is recommended to use separate keys for development and production, where you can use development site key on your local.

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

Follow us on [Instagram ](https://www.instagram.com/commitandpush/)
Nim Notes
Tags: nim
Published: 2021-09-09 23:22:39

---
title: Nim Notes
published: true
description: 
tags: nim
---

### Stuff to remember when developing in Nim.

<sup>This post will be updated over time.</sup>

&nbsp;

- Using `raise` with `Defect` cannot be caught when `--panics:on` is used

&nbsp;

- You can cast `noSideEffect` pragma:
  ```nim
  {.cast(noSideEffect).}:
    # code goes here
  ```

&nbsp;

- Almost always prefer `{.inline.}` over `template`, as it lets the C compiler decide when it's best to inline a proc
Facebook and Ray-Ban Launch Smart Glasses for $299+
Published: 2021-09-09 23:08:16

Facebook launched its first smart glasses to boost augmented-reality experiences. The glasses, created in partnership with Ray-Ban maker EssilorLuxottica, let you listen to music, take calls, and capture photos or short videos, then share them across Facebook's services with a companion app. The price of Ray-Ban Stories starts at $299.

"We’ve believed for a long time that glasses are going to be an important part of building the next computing platform," said Mark Zuckerberg.

The announcement states the glasses will not access the media used by its smart-glasses customers without their consent. What is more, the content of the photos or videos captured using the glasses and stored in the Facebook View app will not be used for personalizing ads.

The glasses include an optional virtual assistant to capture photos and videos through voice commands. There's an LED light on the glasses to show when the camera is on so other people will be aware when a wearer is taking a photo or video.

Don't forget to check out our blog bishopshub.blogspot.com where we share the latest news especially in tech, product reviews, and more.
Linked lists, Arrays and Selection sort...
Tags: algorithms, datastructure, linkedlist, array
Published: 2021-09-09 22:56:26

Here is with chapter 2 of Grokking Algorithms.
    • Computer memory is like a giant set of drawers, each drawer has an address. Each time we want to store an item we ask computer for some space and it gives us an address where we can store the item.
    • Storing multiple items requires an array or a list

 “Array Vs Linked List”

Arrays
    • using array means our items will be stored contiguously in memory.
    • Every time we add an item to the array we need to check if there is an empty place in the array it is added successfully else we need to ask if there is an empty place in memory that fits all our items right next to each other. 
    • The place of an item in array is known because items are stored contiguously so to read an item from array it takes O(1).
    • To insert in an array it takes O(n) as  if we want to insert item at the beginning of an array we will need to shift all other items in the array.
    • To delete from an array it also takes O(n) as every thing needs to be moved up when we delete an item.   
    • Elements in array should be of the same type (int, string...etc,)                                                                                                

“Let’s say we created an array with 10 slots but used only 5 slots in this case we won’t need to move to a new place in memory but here we wasted 5 places in memory.”

Linked Lists
    • using linked lists allow items to be stored anywhere in memory.
    • Each item in the list stores the address of the next item.
    • insertion takes O(1) in linked list as we only need to change what a previous element points to.
    • deletion takes O(1) as well .
    • Reading from a linked list takes O(n) as reading needs to go one by one to read the required element.

“Selection Sort”
    • sorting items according to certain criteria like:
    1. sorting list of songs from most liked to least.
    2. travel dates
    3. emails ( newest to oldest)
    4. names in a phone book 
    • time complexity of selection sort is O(n2) as we loop through list items 2 times (n x n).

####### Here is an example of selection sort to find the smallest number in an array.

<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/48it1fuh9ea5csvimn7z.png" />
The semester begins with OSD...
Tags: opensource, beginners, webdev, javascript
Published: 2021-09-09 22:36:31

<h1>Hello World!<h1/>

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

My name is Jun Song who is studying Computer Programming & Analysis(CPAC) program at Seneca College. 

I finished 4 semesters and now taking the 5th semester I learned many things such as C, JAVA, JavaScript, React, and Angular. Especially, I love JavaScript mostly. Because it was my first programming language, also still very easy to use for me.

I believe this OSD600 will appear my potential in JavaScript skills, so I'm excited about the next classes.


<h1>Where am I?<h1/>

At home a bit far from Seneca College. Online Class make me possible to stay in Thornhill.


<h1>Goals and Interests</h1>

My goal is to complete this semester without a lack of grade and learning "Real Practical Work Skills". Until the 5th semester we just studied academic things, but this 5th semester will provide me with a chance to learn what is real work skills. My interest at this moment is to try to make trendy web designs by React and playing games especially, now waiting for Battlefield 2042!!!


<h1>GitHub Trend Repo<h1/>

My GitHub Trend Repo pick is <a href="https://github.com/TheAlgorithms/Javascript.git">The Algorithms - JavaScript<a/>. I was trying to study Algorhythm, but not easy to installing each of examples from internet, now I can practice all in one! I really love to do something with JavaScript, so practicing Algorhythm with JavaScript will be helpful to me. I hope I will improve my Algorhythm skills :)
How to find non-admin Notion user IDs
Tags: javascript, html
Published: 2021-09-09 21:57:27

For our Standup Integration project, we needed both the Slack and Notion user IDs to be able to tag users on both platforms. However, you can only see the User ID of the admin members of Notion through Notion software. So we had to get creative, and this is what we came up with.  


# The process
## Step 1) 
Go to your main Notion page and go to the developer tools using inspect. Navigate into the "Network" tab on the top of the console, and then refresh the page. It should look like this when you're done. 
 
![network tab in dev tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/smeiazdgi89fxb7o33qr.png)

## Step 2) 
On the left hand side near the blue funnel thingy, there's a search icon. Search a team member username. In our experience, the team members that showed up depended on who's name you searched, so in order to find everyone you might have to search a few different names. 

## Step 3) 
Click on the `syncRecordValues` request and go into the response tab. Copy all text. 

![sync record values request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mfgdoqhfff7t425dt5zn.png)

## Step 4) 
Cleaning up the JSON with a JSON Beautifier makes it easier to understand what we're looking at (we used [https://codebeautify.org/jsonviewer](https://codebeautify.org/jsonviewer)).  

![JSON Beautifier](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/325qm9lx1251c1lxonxj.png)

## Step 5) 
Gather all your teammates ID's within the "notion_user" brackets. Again, if all your teammates aren't there, you may have to search a couple different names. 

## Step 6) 
In order to match the Notion ID to Slack user, I found it easier to use the Slack user ID too. You can find this by going into the teammates profile page, clicking on "More" (three dots), and "Copy member ID". 

# Finished result:

```jsx
// Slack user ID to Notion user ID dictionary
const slackNotionId = {
  UT9G67J1Z: "f2ca3fc5-9ca1-46ed-be8b-fb618c56558a",
  U0185FAF1T5: "6718f0c7-f6e3-4c3a-9f65-e8344806b5b6",
  U025P5K0S0Z: "6f7ce62c-fa2e-4440-8805-72af5f937666",
  U021UR4DW5C: "8fd7689c-d795-4ae9-aa53-5846ac1569b7",
  U0224KFNYRW: "7c02e0ba-2aec-4696-a91d-ecaa01b616ce",
  U025J9SLXV3: "94f6b8b7-e8b0-4790-8265-f08e6b1d550c",
  UT9G67YFM: "6c3a6ec1-4b99-4e5c-8214-cea14fd9b142",
};
```
My First Blog
Tags: opensource, webdev, html, css
Published: 2021-09-09 21:45:09

Hello, my name is _Xiongye Jiang_. I'm studying at __Seneca college__ so far. And this is my 5th semester at Seneca. For the last two semesters of my program, I can choose a few professional courses from the __16__ courses that Seneca offered. The first time I noticed a course called __Open Source Development__, I knew that this was the one for me! Obviously, as a programmer, we are going to work with the open-source environment in the future. And this course will gain a lot of real work experience for working in an _open-source environment_. 

I'm currently living in _Toronto_, _Canada_. My personal goal for this term is I can learn something about __Open Source Development__. Also, through this course, I hope I can become more and more comfortable working with other people because we have to work with other team members in real life! 

Honestly, I'm still having a vague understanding of coding stuff or being a programmer. But one thing I know is I'm more prefer coding a __Web Application__. I like the flexibility of coding with __HTML__, __CSS__ and the creativity of the website I build.

The _GitHub_ trending repo I researched is __Minimal Mistakes Jekyll theme__. It's a repository for building personal sites, blogs, and portfolios. As I mentioned above, I prefer coding a web application. And this repository is a perfect example for me to learn about how to make an __amazing__ website. 

Link to the repository: [https://github.com/mmistakes/minimal-mistakes]
Day 448 : Waiting
Tags: hiphop, code, coding, lifelongdev
Published: 2021-09-09 21:32:06

_liner notes_:
- Professional : Pretty action packed day. Spent the morning preparing for a demo I had in front of the team for a project I've been working on with another team. Everything was going great till at the end of my demo, my laptop decided to lock up. Awesome. Of course. At least I was basically finished. Had a couple of other meetings. Helped out with some community questions. Pretty much buttoned up a blog post and demo (the one I mentioned before) and submitted it for review. That's about it.

- Personal : Last night, I watched the latest episode of Marvels "What If...?" and it had zombies! Pretty good episode. Wonder if it will spill over in future episodes. Listened to some tracks for this week's radio show. If I did do any coding, it was light and I don't remember, haha.

![Landscape photo of Torres del Paine Nat'l Park, Chile with snow capped mountains in the background, a lake in front of that and some dirt fields in the foreground all under a blue sky with very few clouds.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wrspra57849n7qb7b48y.jpg)

Can't believe it's Thursday already. Really need to have more tracks done for the radio show by this time. I've been waiting all day in the house for a package whose tracking number says it's still in Texas and supposed to be in Florida by 8pm today. Why have expedited shipping if the location won't be updated? We'll see. I want to go through more tracks and maybe work on my side project.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube oqyl0Aa-aaY %}