teleren/devto huggingface dataset:
Pagekit
Published: 2022-05-16 05:32:42

![Pagekit | Made with Javacript | Vue JS](https://res.cloudinary.com/madewithjavascript/image/upload/v1652641834/large_pagekit_made_with_vue_js_65f85d66d1.png "Pagekit | Made with Javacript | Vue JS")


### A modern Open Source CMS Intuitive. Modular. Flexible.

> Pagekit is a modular and lightweight open source CMS built with [Symfony](https://symfony.com/) components and [Vue JS](https://vuejs.org/)
> 
> Pagekit also has a very detailed [documentation](http://pagekit.com/docs) that is super helpful for anyone starting on their platform.
> 
> ## Build sites easily
> 
> The central place to manage your content is the Site Tree. Set up your menu structure, edit your pages and manage widgets. All in one interface, with simple drag and drop.
> 
> ## All stats in one place
> 
> The configurable dashboard provides an overview of your project and allows for quick access to your content. Explore your Google Analytics statistics and track visitors in real-time.
> 
> ## Start blogging now
> 
> Pagekit’s blog provides you with the tools to start creating content and to share your stories right away. The built-in comment system allows you to involve your users.

## Check out more such amazing projects on our website

[Made with Javascript](https://madewithjavascript.club)

## Want us to feature your project


Simply Fill out this Google Forms page.

[Submit your Project to Made with Javascript](https://madewithjavascript.club/submit-project)


You can also write to us for any of your queries at:

[Email Made with Javascript](mailto:madewithjavascript@gmail.com)

## Project already shared on our social media handles.

| SocialMedia | SharedLink |
| ----------- | ---------- |
| Twitter | [Pagekit on Twitter](https://twitter.com/withjavascript/status/1526071291014533120?s=20&t=GAHDNGtR8_jYvMRLXi4wNg)
 |
| Medium | [Pagekit on Medium](https://medium.com/@madewithjavascript/pagekit-d68f6b837264)
 |
| Facebook | [Pagekit on Facebook](https://www.facebook.com/madewithjavascript/posts/pfbid02rCw6f6WMqHygPF979GzMrbpipjNA6Rg941Q4vC1e5UrBeYYge3u7ck8pUhg6mxiYl)
 |
| Tumblr | [Pagekit on Tumblr](https://madewithjavascript.tumblr.com/post/684383505743069184/pagekit-made-with-vue-js-a-modern-open-source)
 |
| LinkedIn | [Pagekit on LinkedIn](https://www.linkedin.com/feed/update/urn:li:activity:6931837102833733632)
 |


Filled Under:

 - [Made with Javascript](https://madewithjavascript.club)
 - [Made with Vue JS](https://madewithjavascript.club/categories/vue-js)


`Make sure to give this post 50 hearts, click the unicorns and follow 
@madewithjavascript 
 for more such awesome showcases. Show you love for the people who have worked so hard!`

Tag us in your showcase, for a chance to get showcased!
Adding an executable target to a Rust library
Tags: rust, library, targets, snippets
Published: 2022-05-16 05:12:36

---
title: Adding an executable target to a Rust library
published: true
description: Let's see how to create a combined library-binary project in Rust with 0 extra config.
tags: ["Rust", "Library", "Targets", "Snippets"]
canonical_url: https://www.iamkonstantin.eu/post/2022/05/13/adding-an-executable-target-to-a-rust-library/
//cover_image: https://direct_url_to_image.jpg
---

Using Cargo, we can easily create a library project with the `new` command:

```bash
cargo new pumpkin-rs --lib
```

Of course, the primary purpose of libraries is to encapsulate some kind of functionality that can be then exported for use by other libraries or applications.

For the purpose of this post, let’s define a simple function in `src/lib.rs` which will be the essence of our library. Later we will see how we can use this function from a runnable binary target in the same project.

```rust
pub fn say_hello() {
    println!("Hello from the library");
}
```

You may run `cargo build` just to double-check everything builds successfully… and voilà!

## Cargo Targets

In certain situations, it may be helpful to have a library project include a runnable component - a stand-alone, runnable program that can be executed.

Cargo [targets](https://doc.rust-lang.org/cargo/reference/cargo-targets.html) allow us to define different combinations of source files which can be compiled in a project. Targets can specify what part of the source code is a library, binary, example, unit test, or benchmark.

The cool thing is that Cargo also uses folder structure [conventions](https://doc.rust-lang.org/cargo/guide/project-layout.html) to guess which source file does what. For example, `src/lib.rs` is where it will look for the library code, executable code is expected in `src/main.rs` or `src/bin/`.

### Add a default binary target

Following the conventions above, we can add a default executable to a library project by creating `src/bin/pumpkin.rs`:

```rust
use pumpkin_rs::say_hello;

fn main() {
    say_hello()
}
```

Running `cargo run` will execute the binary! 🎉

Not only that, but `cargo build` now also produces 2 separate outputs - we get the compiled binary for the library as well as the executable.

### More than one binary targets

We are not limited to a single binary target. There can be more than one!
Let’s create `src/bin/tomato.rs`

```rust
fn main() {
    println!("Hello 🍅")
}
```

Now, if we just run `cargo run` like before, we’d get an error message because there are two available binary targets, and cargo doesn’t know which one we want to use. The error message helpfully suggests we can use the target configuration in `Cargo.toml` to define a `default-run` key or pass the `--bin` argument to the `run` command.

```rust
cargo run --bin tomato
```
Being a Engineering Management Major, can I get into Software engineering field ?
Tags: programming, computerscience, career, motivation
Published: 2022-05-16 05:01:06

I've always wondered something. I am a former Computer science Software Systems major. For two years, I was a comp sci student & left for Engineering Management minoring in Computer Science.Engineering Management is great but is it only for factories such as Amazon, Nissan that deal with engineering hardware and materials? Do anyone know if ETM Engineering management offers more versatility than that? Let's say, dev ops, data analytics, product management in tech, software development, back-end / front-end, etc and more of the work from home or office setting?

I really loved the coding aspect of computer science but hated the unnecessary math past calculus too. I truly hope I can still get into the Software Development industry.
How to Bind Data to the React Spreadsheet Component
Tags: react, webdev, reactnative
Published: 2022-05-16 04:58:23

Learn how easily you can bind data to the React Spreadsheet component of Syncfusion. In this demo, remote data is bound by assigning service url as an instance of the DataManager to the datasource property under the ranges of sheet. The Syncfusion Data Manager acts as an interface between the service endpoint and the Spreadsheet component. This video also explains how to bind cell data and change the data source dynamically. 

Product Overview: https://www.syncfusion.com/react-ui-components/react-spreadsheet

Download an example from GitHub: https://github.com/SyncfusionExamples... 

Refer to the following data-binding documentation: https://ej2.syncfusion.com/react/docu...

{% youtube FK1OPoHIUPc %}
Medium Uploader: A Contentful Integration App
Tags: contentful, blog
Published: 2022-05-20 02:39:35

---
title: Medium Uploader: A Contentful Integration App
published: true
date: 2022-05-16 04:52:44 UTC
tags: contentful,blog
canonical_url: https://blog.designly.biz/medium-uploader-contentful-integration-app
---

#### Medium Uploader: A Contentful Integration App

![](https://cdn-images-1.medium.com/max/1024/1*B8H2EyyoZ4Osl4vMtdP7Mg.jpeg)

I use Contentful.com as my headless CMS for [Designly Blog](https://designly.biz/blog). Previously, I’ve been using Medium’s import post function to bring my posts in. I got tired of this and thought, “Surely there’s a way to automate this!”

Thankfully, Contentful is a highly-extensible service and I delved deep into the developer docs and came up with a perfectly-working plugin app that allows you to upload your blog post from Contenful directly from the entry editor screen.

The app is called, cleverly, “Medium Uploader.” Yeah… I know… Currently, Medium Uploader only supports **Short Text** markdown fields for content. I plan to implement Contenful’s **Rich Text** format in the near future. I’m quite partial to markdown, so I’m a little reluctant to change now.

Another limitiation is Medium Uploader currently only supports English language versions of your content. Once I learn more about language options in the Contentful APP SDK, I will be adding support for multiple languages.

#### Getting Started

If you’re not already a Contentful user, I highly recommend you sign up. It’s completely free with limitations, but I have yet to exceed those limitations.

The next thing you need to do is generate an **Integration Token** from your Medium profile settings. Once you install Medium Uploader, you’ll be presented with a configuration screen. Simply paste this token into the field and click  **Fetch**.

You’ll need to structure your blog post **Content Type** in a way that Medium Uploader can understand. You’ll need the following fields:

- Title
- Slug (generated from title)
- Content (Short-Text Markdown)
- Tags (Referrence -> Array of Short Text)

Medium only recognizes the first three tags you submit, so be sure to prioritize the ones you want on Medium first.

I sure hope people find this app useful and I offer it 100% free of charge! To install Medium Uploader, please [Visit the Website](https://medium-uploader.vercel.app).
Is there really a 'fun' in functions?
Tags: javascript, functions, beginners
Published: 2022-05-16 04:29:55

So, I know most people would argue that there is a lot of fun to be had with functions, but being a beginner with this language, and worse, failing to completely understand its in and outs, I must disagree wholeheartedly. Perhaps in a few weeks or months when I further my studying into Javascript, I will learn to appreciate it for what it is. Right now, it is a dread. But, what the little I know, it is most definitely interesting.
I will not sit and type here as if I am some guru of the language, because as I have mentioned, I am far from it. But functions, to me, are the heart of this language, and if you can wrap your head around how functions work, how there can be a function within a function, make anonymous functions, make a function with one purpose so that it can then be called back on later on in your code, that's definitely a good place to start.
A function usually starts with 

```
Function
```
a declaration, followed by parenthesis and curled brackets. Ultimately, looking like so:

```
Function() {
   //code here
}
```
OR, it can be turned into an arrow function, like so:

```
placeholderName() => //code here for what is to be returned
```
In the last example, curled brackets can be used if there are multiple statements to be returned, meaning if the function has multiple things it can do. The word 'Function' is also eliminated since we use '=>' instead, which Javascript understands is a function declaration, rightly called an arrow function. Either of these methods work and I guess the important thing to note with these is what belongs in the code blocks, which as I mentioned before, are descriptions of what the function can do; statements. Within these we can have simple console.logs, we can run loops, etc.  There's plenty that can be done and this can be its own blog post to be honest.
But wait, hold on. What about the parentheses? Can that just be left as is. Depending what you want your function to do is the answer. If you put something within your parentheses, those are called parameters, which are arguments that you will pass through the function.
Being as this is my first blog post, I deliberately want to keep it simple and also write on a simple topic. Hopefully at some point in the future I can come back to this initial post and just laugh at all the trouble I am having with Javascript and realize how far I have come. I hope.
The Little Things Matter...
Published: 2022-05-16 04:18:04

When first learning to code if your anything like me you started with printing "Hello World!" in your language of choice. 

Then it was variables how to set them. Data types like string, integers and Booleans …etc. Then it was function using the variables and passing them in as arguments and the list goes on. 

But one key concept I learned early was iterating. At the time I didn't understand how important this was going to be combine with all the basic I was learning before. So my advice to anyone learning to code is *Take Your Time* really get a good feel for the basic before moving forward. 

For my example were going to use JavaScript as our language and were simply going to be looking at a reverse string algorithm problem and connecting the dots. 

This is an example of how a for loop is set up: 

```
for (initializer; condition; iterator) {
    // statements
}
```
Here is an example of a for loop in action with a simple reverse string algorithm problem. 
In this example we have a combination of the basic on display. 
1. We have a variable set to an empty string. 
2. We have a function with an argument of str (short for string) -which is a data type. 
3. We are iterating over the string
4. Returning the string in reverse.  
```
function reverseString(str) {
  let reversed = "";       
  for (var i = str.length - 1; i >= 0; i--){         
    reversed += str[i];  
  }     
return reversed;  
} 
```     
As I continue to start working on learning different algorithms. It is clear that these simple concepts are actually really important to the being able to do complex things in coding. 
As I have learned. You really have to crawl before you walk. 
I hope this helps and as always. 

Happy Coding 👨🏿‍💻👨🏻‍💻👩‍💻🧑🏾‍💻
Best way to manage links?
Tags: discuss, productivity, help
Published: 2022-05-16 04:14:35

Every organization has links for meetings, documents, PDFs, excel, roadmap etc. But the links are cluttered in slack, emails, messages, bookmarks. These links need to be updated, shared with new/existing team members, etc.

How does your organization manage so many links? 
How do you share them?
What apps do you use?

I am doing survey to validate my idea. Based on the interest will be launching a tool to simplify this process. If anyone interested in collaborating reach out to me. 
Please fill out the survey form here - https://forms.gle/yPiiJzFfgqmXoYav5
Coding fonts comparison
Published: 2022-05-26 21:09:43

---
title: Coding fonts comparison
published: true
date: 2022-05-16 04:07:23 UTC
tags: 
canonical_url: https://www.lkhrs.com/blog/2022/05/coding-fonts/
---

## [Coding Fonts](https://coding-fonts.pages.dev)

Following CSS Tricks’s [acquisition](https://www.digitalocean.com/blog/css-tricks-joins-digitalocean) by Digital Ocean, it seems some projects on their domain have had their DNS entries removed, including their handy Coding Fonts comparison site.

Fortunately, the site’s [source](https://github.com/chriscoyier/coding-fonts) is on GitHub, and I forked it under the MIT license and put it up on CloudFlare Pages. You can view the new site [here](https://coding-fonts.pages.dev).

While the code is under the MIT license, the CSS Tricks logo and brand is not, so I removed them to avoid potential issues there, while still acknowledging Chris Coyier’s work. I’m maintaining this for my own personal use, but you are free to use it as well, and open PRs with new fonts or fixes.

Some fonts don’t work, and I think it’s due to missing external stylesheets provided by font sellers for licensing reasons. The non-working fonts include:

- Hasklig
- Monoid
- Iosevka
- JuliaMono
- Menlo

At some point I will update the site’s packages or rebuild it in Hugo; it currently uses a year-old version of 11ty.

## My new preferred coding font

I’ve been a religious [Hack](https://coding-fonts.pages.dev/fonts/hack/) user since it came out in 2015, though I also like [Cascadia Code](https://coding-fonts.pages.dev/fonts/cascadia-code/), Menlo, and [JetBrains Mono](https://coding-fonts.pages.dev/fonts/jetbrains-mono/).

I went hunting for the Coding Fonts site because I wanted to see how [SF Mono](https://coding-fonts.pages.dev/fonts/san-francisco-mono/) (shipped with macOS) compared with the rest of them, and then I discovered [Recursive](https://coding-fonts.pages.dev/fonts/recursive/), which is now my current coding font. I use the Duotone version for fancy Markdown headers.
Project One (C++): Tic Tac Toe
Tags: cpp, programming, beginners, opensource
Published: 2022-05-16 04:06:49

## Why?
Hello, this is my first posted C++ project. This project was created with the intention of exposing myself to C++, stack overflow, GitHub workflow, and developer tools.


![Screenshot of Title Screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bsr7ohupa86uvodwa1w1.png)


## How
The project uses beginner coding concepts in order to create a simple tic-tac-toe game in a terminal. It uses the iostream standard library. The board is represented by an array of size nine.

[GitHub](https://github.com/shiahalan/tic-tac-toe-cpp)

## Conclusion
I hope you enjoy this part of my C++ journey!

## Advice?
Advice is greatly appreciated (post in comment section).
Hidden Gems Book
Tags: datascience, eventdriven, recommender, beginners
Published: 2022-05-16 03:43:30

If you are interested in 
🌟 Data Visualization 
🌟 Text Mining
🌟 Network Graphs 
🌟 Cosine Similarity Recommenders 
🌟 Topic Modelling 
🌟 Dimension Reduction using Principal Component Analysis

please check out the notebook written in book format in [Hidden Gems Book] (https://ambarishg.github.io/hiddengems/what-is-kaggle.html)          

# What is Kaggle           

From the Kaggle website            

> Kaggle offers a no-setup, customizable, Jupyter Notebooks environment. Access GPUs at no cost to you and a huge repository of community published data & code.       

> Inside Kaggle you’ll find all the code & data you need to do your data science work. Use over 50,000 public datasets and 400,000 public notebooks to conquer any analysis in no time.         

Kernels in Kaggle Terminology are scripts , notebooks which have been shared in Kaggle to be viewed by the community         

Kaggle also hosts **data science competitions , datasets , notebooks** shared by the community and also a number of wonderful **courses to learn hands on data science**                         



# Hidden Gems


**Heads or Tails** [`Martin Henze`] has compiled a list of 300 kernels for a period of 100 weeks which he believes are **Hidden Gems** , Kernels which are Gems but they did not get their due recognition. Thanks to the wonderful effort, Heads or Tails for the Kaggle Community.                          


*Photo by Dan Farrell on Unsplash*
What did this week: 5/15/22
Tags: javascript, webdev, react, productivity
Published: 2022-05-16 03:39:42

Was not really sure what I wanted to write about, so I thought I would just write about a few of my thoughts I had this week. 

**Heroku's free tier**
I just switched the front end for my Vue app [myCodingStats](https://my-coding-stats-com-client.vercel.app/) to Vercel. It was originally hosted on Heroku. On the free tier of Heroku, if a site does not get any requests for 30 minutes, it will sleep. this results in a five second spin up time when someone goes to the site. It is definitely not ideal for the frontend of your site. I am keeping the api hosted on Heroku though. It seems fine if there is a bit of a delay when you first login, as long as you are able to get to the frontend quickly. If I was to remake the whole site, I would likely use Vercel's Edge and serverless functions for my api.

**Next.js build time**
I worked on my main three projects this week, one written in React, one in Vue, and another in Next. I always serve them locally using whatever command I have in package.json for 'dev'. After switching back and forth between them, I was amazed by how fast Next ran. It would take a few seconds, as opposed to a few minutes. I know that the recent version of the Next compiler was written in Rust, so I am guessing that is why it is so fast. If I was starting a new project, I would likely choose Next, for this reason and others.

I did a quick comparison of the three projects. Here was the time it took to build the project after serving them locally in 'dev' mode:

- Vue: 01:36
- React: 01:45
- Next: 00:02

Leave a comment if you have any feedback.

Website: [https://www.aden-eilers.com/](https://www.aden-eilers.com/)
Github: [https://github.com/fig781](https://github.com/fig781)
2022.05.15 Programming
Published: 2022-05-16 02:57:26

# Anagram

```javascript
/**
 * @param {string} s
 * @param {string} p
 * @return {number[]}
 */
var findAnagrams = function(s, p) {
    // let's create hashmap for p
    let champ = {}
    for (let pChar of p) {
        champ[pChar] ? champ[pChar]++ : champ[pChar] = 1
    }
    let right = 0
    let left = 0
    let count = p.length
    let output = new Array()
    
    while (right < s.length) {
        if (champ[s[right]] > 0) {
            count--
        }
        champ[s[right]]--
        right++
        
        if (count === 0) output.push(left)
        
        if (right - left === p.length) {
            if (champ[s[left]] >= 0) {
                count++
                
            }
            champ[s[left]]++
            left++
        }
    }
    return output
};
```
Most Common Mistake in Induction Proofs
Tags: math
Published: 2023-01-06 03:01:37

---
title: Most Common Mistake in Induction Proofs
published: true
date: 2022-05-16 02:49:34 UTC
tags: Math
canonical_url: https://brandonrozek.com/blog/common-mistake-induction-proofs/
---

One of the most common mistakes I see in induction proofs is assuming the recursive case and working backwards towards the induction hypothesis. This may be fine for formulas that are symmetric like those involving equality, but this way of proving induction fails if not. This post will show such example.

## Question

Prove $x - 1 \ge \frac{x}{2}$ for $x \in \mathbb{Z}^+$

## Base Case

Let $x = 1$. Then, $$ \begin{align\*} 1 -1 &\ge \frac{1}{2} \\ 0 &\ge 0 \checkmark \end{align\*} $$ The right side simplifies to zero since we’re doing integer division.

## Recursive Case (Correct)

Let us assume the induction hypothesis, that is, $x\_n - 1 \ge \frac{x\_n}{2}$. We will show that $x\_{n + 1} - 1 \ge \frac{x\_{n + 1}}{2}$.

We know $x\_{n + 1} = x\_n + 1$, therefore, $x\_n = x\_{n + 1} - 1$.

Substituting into our inductive hypothesis: $$ \begin{align\*} (x\_{n + 1} - 1) - 1 &\ge \frac{x\_{n + 1} - 1}{2} \iff \\ (x\_{n + 1} - 1) - 1 &\ge \frac{x\_{n + 1}}{2} - \frac{1}{2} \iff \\ x\_{n + 1} - 1 &\ge \frac{x\_{n + 1}}{2} + \frac{1}{2} \implies \\ x\_{n + 1} - 1 &\ge \frac{x\_{n + 1}}{2} \end{align\*} $$ Therefore, via induction this theorem holds. Note that the last step was only an implication, this is where the symmetry breaks.

## Recursive Case (Incorrect)

Now let us see how we can go astray if we start from the wrong direction. Substituting what we know about $x\_n$ and $x\_{n + 1}$: $$ \begin{align\*} x\_{n + 1} - 1 &\ge \frac{x\_{n + 1}}{2} \iff \\ (x\_n + 1) - 1 &\ge \frac{(x\_n + 1)}{2} \iff \\ x\_n &\ge \frac{x\_n}{2} + \frac{1}{2} \iff \\ x\_n -1 &\ge \frac{x\_n}{2} - \frac{1}{2} \end{align\*} $$ Sadly from here we cannot imply that $x\_n - 1 \ge \frac{x\_n}{2}$.

## Conclusion

Remember, when performing the induction step of the proof:

- State the induction hypotheses
- State what formulas you know about the various variables
- Substitute into the **induction hypothesis**
- Simplify until you reach the $n+1$th step.