teleren/devto huggingface dataset:
Getting Started with Typesense and its Interesting Search Implementations
Tags: typesense, searchingrecipe, opensource, spellchecker
Published: 2021-10-06 09:12:25

Information over the internet continues to grow every day as the demand for resources increases. Nowadays people commonly use search engines to retrieve or find the important piece of information they need. A search engine is a web-based tool that enables users to locate information on the World Wide Web (WWW). We can also define a search engine as a program that searches for and identifies items in a database corresponding to keywords or characters specified by the consumer, used especially for finding particular sites on the World Wide Web.

‌

We all have heard about already popular search engines like Google, Elasticsearch, Yahoo, and DuckDuckGo. However, there's more to it than what catches our eyes. You can head over to [Search Engine](https://gs.statcounter.com/search-engine-market-share) Market to know more about their functionalities, recent trends, and updates.

‌

Each engine is designed to provide its users with the most accurate and trusted information. So search engines use some sort of indexing to provide the rights. On the other hand, bodies or organizations that make information available on the WWW do it in such a way that search engines can easily index it. Well that’s it for the little literature, today we will focus on an open source search engine called Typesense and we will cover the following topic, So grab a cup of tea and make yourself comfortable.

## What is Typesense?

Typing with sense, or [Typesense](https://aviyel.com/post/550/welcome-typesense-to-the-aviyel-family-an-algolia-and-elastic-search-alternative-to-craft-delightful-search-as-you-type-experiences) is an open source search engine that is typo-tolerant and optimized for instant (typically sub-50ms) search-as-you-type experiences and developer productivity.

> An Open Source alternative to Algolia and an Easier-to-Use alternative to ElasticSearch

‌

If you know about [Elasticsearch](https://www.elastic.co/) or [Algolia](https://www.algolia.com/), I guess you should see Typesense as a sort of combination of the two search engines.

‌

Now you may have an idea about Typesense, but there may still be questions in your mind that have not been answered yet like Why should you use Typesense or what is it exactly used for. Well, stay put as we will be revealing this in the next section. What is Typesense used for?

‌

It is basically used to retrieve information from a database to reduce the time to market for building a great instant search experience that provides relevant results out-of-the-box. Each feature of the search engine was made in such a way that it’s intuitive and easy to use. Talking about this search engine’s features, we have provided a detailed description in the next section.

Find the complete article [here](https://aviyel.com/post/1080/getting-started-with-typesense-and-its-interesting-search-implementations)
A first update on our salary survey
Tags: career, devops, cloud, salary
Published: 2021-10-06 09:10:01

🎉 We have a little update on our salary survey which we launched roughly [three months ago](https://insights.devops-jobs.net/share-your-salary-and-see-what-everyone-else-is-making-in-devops/) (check out [https://salaries.devops-jobs.net/](https://salaries.devops-jobs.net/) if you haven’t yet) and needless to say we’re still pretty excited about it.

About four weeks after the launch we enabled the [download](https://salaries.devops-jobs.net/download/) feature on the site so everyone can get the latest dataset in JSON and CSV format. Furthermore there’s now a weekly sync of these results to a dedicated [github repo](https://github.com/foorilla/devops-jobs-net-salaries) as well.

As initially announced, but not yet implemented during that time, we built our own [FX data API](https://fxdata.foorilla.com/) to provide free and public currency data (yes, you can use it as well if you like!) for the Forex calculations taking place on the dataset in the salary_in_usd column. This is because we allow people to fill in their annual salary in their home or actually paid out currency and then do the work for you to translate that into its corresponding USD amount (yearly average) for better comparability/reference, with data provided by the [Bank for International Settlements](https://www.bis.org/) (🏦 the bank for the central banks, basically).

Well, it’s always fascinating how much effort can go into something seemingly simple like a salary survey (hint: way more than you anticipated). But still, it looks like it’s worth the effort.

We also put in some more descriptive information on the [download page](https://salaries.devops-jobs.net/download/) about what each column in the dataset represents or how to interpret it. Should be pretty straight forward by now, and hopefull very easy to work with.

Now the plan is to keep this site up there indefinitely for the future to collect remote work salary information year by year on an ongoing basis. With this in mind it should be a good reason now to share this with your colleagues and friends if you haven’t done so yet. 😉

It’ll be very interesting to see how much data we can gather in the long term, and also keep in mind that all this is in the [public domain](https://salaries.devops-jobs.net/download/) (though mentioning the data came from us would be nice and also increases the amount of data available to share). Meaning it’s free to use by anyone for anything. 🙂

Last but not least: Many thanks to all of you who filled out the survey form and shared the site with others. That’s pretty awesome! 💪

*This post first appeared on https://insights.devops-jobs.net/a-first-update-on-our-salary-survey/*
Global AI Challenge for Building E&M Facilities - Technical Conference
Tags: conference, smartbuilding, datascience, ai
Published: 2021-10-06 09:03:02

## A World-class Conference About AI Applications in Smart Cities 

#### About this event
The Electrical and Mechanical Services Department (EMSD) of the Government of HKSAR and Guangdong Provincial Association for Science and Technology proudly present to you the Global AI Challenge for Building E&M Facilities – Technical Conference. The international conference will focus on AI technologies in the building electrical and mechanical (E&M) industry and gather innovators from around the world who share a common interest in practical solutions for smart cities through AI innovation. It will explore one of the most important issues of our time: how can data and AI create a smarter world?


#### Topics

- How data and AI can create a smarter world
- How AI applications revolutionise the traditional electrical and mechanical (E&M) industry
- How AI applications lay the groundwork for smart cities

Our impressive lineup of speakers include world-renowned AI leaders from organisations including Amazon Web Services, ATAL Building Services Engineering Limited, ASHRAE BACnet™️, Colorado School of Mines, Hong Kong Baptist University, Hong Kong Polytechnic University, Hong Kong Science and Technology Parks Corporation, Huawei Technologies Co., Limited, IBM Corporation, International Energy Agency Annex 81 “Data-Driven Smart Buildings”, Microsoft Corporation, Pacific Northwest National Laboratory, Schindler Limited, Siemens PORT Limited, Tencent Technology Co. Limited, The Hong Kong and China Gas Company, PropTech Alliance, Veolia, World Green Building Council, WSP, and more!

#### Conference Details

| Date    | Time    | Format |
| -------- | -------- | ------- |
| 12 Oct 2021 | PART 1: 9:30am - 12:00pm (GMT+8) | ONLINE | 
|             | PART 2: 1:00pm - 6:00pm (GMT+8)  |        |

Get your **free pass** now via this link!

[https://globalaichallenge.com/reg/conference.php?lang=en](https://globalaichallenge.com/reg/conference.php?lang=en)

We look forward to having you at the conference!

Please stay tuned to the programme and speakers lineup on [www.globalaichallenge.com](http://www.globalaichallenge.com "www.globalaichallenge.com")

Should you have any inquiries, please contact us at [info@globalaichallenge.com](mailto:info@globalaichallenge.com)
Install OKD OpenShift 4.7 on VMware Bare Metal - User Provisioned Infrastructure(UPI)
Published: 2021-10-06 08:59:01

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

Youtube Video - https://www.youtube.com/watch?v=oqgaK6hsZUM
Add Personal-Access-Token to repo easily. 
Tags: github, git
Published: 2021-10-06 08:42:56

github stopped their support for the `password` authentication. Now `personal-access-token` is on the plate, there is an easy way to add the `personal-access-token` to your repository. with a simple command.

1. First `cd` into your repo
2. add the below command 

``` git remote set-url origin https://USERNAME:PERSONAL-ACCESS-TOKEN@github.com/USERNAME/REPO.git ```

Here, the `USERNAME` is your git username, `PERSONAL-ACCESS-TOKEN` is your `personal-access-token` generated in your account and the `REPO` is the repository name. 

This will bind the personal-access-token to the repo and will never ask for username and password for that particular repo.
🆕 New feature in the Luos #release 2.0.0: Profiles to simplify user API
Tags: release, luos, embedded, opensource
Published: 2021-10-06 08:21:45

🆕 New feature in the Luos **release 2.0.0**: Profiles to simplify user **API**

Profiles are predefined structures representing a **embedded service** type. Since Luos 2.0.0, you can comply services to a specific profile allowing anyone to know how your feature work.

For example, any motor (stepper, brushless, Dynamixel, ...) can use the servo-motor profile. Then you can control any of them the same way. Profiles also simplify your motor driver development. Instead of dealing with messages, profiles give you input and output variables to interact with anything else (other services, cloud app, ...).

You can easily create your own profiles and share them with the community or your team as a feature API definition. Luos is **open-source**.

[Check the Luos documentation dedicated to profiles](https://docs.luos.io/pages/luos-technology/services/profile.html)
100 algos in 100 days (Day 20)
Published: 2021-10-06 08:09:33

[04/10]

I realized that my previous iterations at learning these structures missed out graphs.

So on a monday after work I set out to learn about Directed, Cyclical, Weighted and Colored Graphs.

The various ways of setting them out Edge List, Adjacency List, Adjacency Matrix will need a bit more work from my side to become confident problem solving.
100 algos in 100 days (Day 19)
Published: 2021-10-06 08:05:58

[03/10] After having a great restful Saturday it was a full day of Binary Search Trees on Sunday!

###Question: Find the second largest number in a search tree

This seemed quite easy and I attacked it assuming the tree was balanced. However, the big gotcha was that you could have a sub tree at the maximum number.
New version of dotConnect for PostgreSQL 7.21 with significant improvements of EF Core Support
Tags: dotconnect, entityframeworkcore, postgres
Published: 2021-10-06 08:01:55

---
title: New version of dotConnect for PostgreSQL 7.21 with significant improvements of EF Core Support 
published: true
description: Devart rolled out the new release of dotConnect for PostgreSQL 7.21. This version includes improved EF Core support with the new data types and extends LINQ query translation capabilities. 
tags: dotconnect, EntityFrameworkCore, postgresql
//cover_image: https://direct_url_to_image.jpg
---
Devart, a recognized vendor of world-class data connectivity solutions for various data connection technologies and frameworks, announced the new version of [dotConnect for PostgreSQL 7.21](https://www.devart.com/dotconnect/postgresql/?utm_source=devto &utm_medium=referral&utm_campaign=pr_dotconnectpostgresql_06.10.2021). The main feature is significant improvements of Entity Framework Core support with the new data types and extends LINQ query translation capabilities. 

**The list of the following enhancements:**

- dotConnect for PostgreSQL in EF Core 3 and 5 now supports WHERE condition for index in Code-First Migrations in order to create PostgreSQL partial indexes.

- Translation of more LINQ features to SQL for both EF Core 3 and 5 is now available. 

- The product now supports mapping the internet/intranet System.Uri type to PostgreSQL ‘text’ data type, both for EF Core 3 and 5. 

- The latest version 7.21 supports mapping network types System.Net.IPAddress and System.Net.NetworkInformation.PhysicalAddress to PostgreSQL ‘inet’ and ‘macaddr’/’macaddr8’ data types, both for EF Core 5. 

- Mapping the dictionary .NET types to HSTORE PostgreSQL data type is available in dotConnect for PostgreSQL 7.21

To learn more about the recent release and download new products, visit: 
https://blog.devart.com/ef-core-support-improvements-in-dotconnect-for-postgresql-7-21.html

**dotConnect for PostgreSQL** is a high-performance ORM enabled data provider for PostgreSQL that builds on ADO.NET technology to present a complete solution for developing PostgreSQL-based database applications. It introduces new approaches for designing application architecture, boosts productivity, and facilitates the development of database applications.

**About Devart** 
 
Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration, and backup solutions. The company also implements Web and Mobile development projects. 
For additional information about Devart, visit https://www.devart.com/.
100 algos in 100 days (Day 18)
Published: 2021-10-06 08:00:23

[01/10] Finally a Friday.

I jumped into Binary trees revising about DFS vs BFS.

This website seemed to have the [simplest algorithms examples](https://stephanosterburg.gitbook.io/scrapbook/math/algorithm-khan-academy/breadth-first-vs-depth-first-tree-traversal-in-javascript) to start with:

It was also cool to see a fellow [Bootcampers blog](https://medium.com/swlh/traversing-trees-breadth-first-and-depth-first-searches-with-javascript-316f23c9fe8f) on this.

The first problem I did was calculating whether a tree was superbalanced i.e. leaf nodes were never more than 1 height apart. Relatively trivial
Multi paramers in yii2
Tags: yii2
Published: 2021-10-06 07:58:49

I want get params from search controllers in yii2, howover link one errors.
sort city, province..
Ex: index?cate_id=129&city_id=79&provin_id=54
- index/cate-name/city-nam/province-name
Please help this errors. Thanks.
Summary of my recently published and upcoming talks
Tags: aws, beginners, career, womenintech
Published: 2021-10-06 07:53:10

I have created dev.to account long ago and have planned few posts. To start with thought of enlisting some of my recently published and upcoming talks. Hoping to start my dev.to journey soon. Until then enjoy some of my content! 

Just a quick summary :

1. I just completed my very first **Twitch series Let's Ship it with AWS**. We built a web application from basics - creating an AWS Account, to using the AWS primitives like VPC, EC2, RDS, etc. We also talked about Cost, Scalability, Data Strategies, High-Availability, Fault-Tolerance, Disaster Recovery, and more in **6 EPISODES** only. If you are new to AWS cloud, this maybe a good quick crash course to get you upto speed. All you need is here - [Landing Page Let’s Ship It — with AWS](https://pages.awscloud.com/global-traincert-twitch-lets-ship-it-with-aws.html)

2. It was so much fun working with Ridhima Kapoor and Suman Debnath to bring a fun, awesomeness packed **AWS Women in Tech Community Edition**. We had 15 women leaders talking tech + non-tech. This live event was such an amazing experience for everyone! I moderated panel with amazing esteemed women leaders at AWS on ***How to think like a leader*** and had a tech session on ***Application integration patterns for microservices*** [Level 200]. Do checkout the videos on AWS User Group India's YouTube [Channel Playlist](https://www.youtube.com/playlist?list=PLs8YaskKVodPRqTh7pktjbNZlAm567XZQ)

3. I delivered a 2hr **Workshop** for the 8th NASSCOM Annual Technology Conference on ***Build Well-Architected Multi-Tier App on AWS***. You can watch the conference recordings via their platform [https://natc2021.exposim.io/](https://natc2021.exposim.io/) [Day 2, Parallel Workshop 1] I also showcased the [AWS Well-Architected Labs](https://www.wellarchitectedlabs.com/) in this session.

**Upcoming:** 

1. **Open Source India** (Oct 7 & 8 ) - Based on feedback from our previous engagements, we have a special AWS track this year that focusses on OpenSource at AWS. Do join us! [Register here](https://www.opensourceindia.in/).

2. **AWS Innovate Online Conference - Modern Applications Edition** (Oct 27 & 28 ). [Register here](https://go.aws/3FxXF8z).
    * Day 1 - Core concepts & Fundamentals, Session levels: 100-300. My session - ***Increase availability with AWS observability solutions*** (Level 200)
    * Day 2 -Advanced tech & Hands-on, Session levels: 300-400. My session - ***Reliability, consistency, and confidence through immutability*** (Level 300)

Also, do check out the most awaited event, **AWS Community Day South Asia 2021** (22nd & 23rd Oct 2021). With the combined power of AWS User Groups in India, Nepal, Sri Lanka & Bangladesh, we are back with a bang to host the event, unveiling success stories, use cases & much more from industry leaders. [Register here](https://communityday.awsug.asia/).

Of course, there's more in the pipeline 😄 and will announce as it happens. Until then enjoy and go build!! Happy learning.
BUG: Making vs code tab size to 4 by default
Tags: vscode, flutter
Published: 2021-10-06 07:36:39

Ok. So this is something that bugs me a lot. The VS Code reverts back to spaces everytime I open a new file. 

To solve this you have to switch on the **Detect Indentation** under **Settings** and then you have to open **settings.json** for the language you are coding in and use these two options - 

```
"editor.tabSize": 4,
"editor.insertSpaces": false,
```

That should do the trick.
Making Rails App Work on Mac M1 Chip
Tags: ruby, rails, webdev, beginners
Published: 2021-10-06 07:05:53

We all are very excited while building a new software on new hardware. But, what if your hardware is too advance to run your server well by following the documentation! I was in trouble for a week to get things right!

You can get started with creating your first project on rails from https://guides.rubyonrails.org/getting_started.html

Every time I was trying to use rails console using "rails c", I used to get some huge error related to mimemagic and many others. If you get the same, you are at the right place. Let's get to the point!

---

Follow the following steps: (I hope it will resolve your issue!)
Step 1:
bundle install

Step 2:
brew install shared-mime-info

Step 3:
bundle update nokogiri marcel mimemagic

Step 4:
Add gem 'sassc' to Gemfile

Step 5:
bundle update ffi sassc

Step 6:
bundle update sass-rails

---

This should make your rails app work on Mac M1 Chip. But, if it's still not working then try this out after all the above steps:

bundle install --path vendor/cache

---

All the above steps have helped to keep going with rails and I hope it will help you too! If not, let's get on discussion here or DM me https://twitter.com/AmishaShukla5.

Keep Googling, Keep Coding!
Disable Right-Click Context Menu in JavaScript
Tags: javascript
Published: 2021-10-06 07:01:55

When a user on your website or app right-clicks, the [contextmenu event](https://developer.mozilla.org/en-US/docs/Web/API/Element/contextmenu_event) is triggered.

We can listen for this event by attaching an event listener to the window interface, but I'd suggest first adding the below one-liner to ensure compatibility with some older browsers:

```js
typeof window.addEventListener === `undefined` && (window.addEventListener = (e, cb) => window.attachEvent(`on${e}`, cb));
```

Anyway, here is the actual snippet that will listen for the `contextmenu` event, intercept it, and prevent the default behavior:

```js
window.addEventListener(`contextmenu`, (e) => {
    e.preventDefault();
});
```

Here is a one-liner variant that is equivalent to the above snippet:

```js
window.addEventListener(`contextmenu`, (e) => e.preventDefault());
```

## Conclusion

While exploring how you can create custom context menus is a bit beyond the scope of this article, I hope you found this snippet useful.

Remember to only disable context menus when absolutely necessary!
How GitHub Uses Codespaces to Build GitHub
Tags: github, devops, podcast, techtalks
Published: 2021-10-06 07:00:57

GitHub Codespaces is a great service. But did you know that GitHub Engineering has switched over to it, so now __GitHub uses Codespaces to build GitHub__?

In this live stream, we talk with Mike McQuaid (Staff Software Engineer at GitHub) about how GitHub uses Codespaces to Build GitHub, the challenges, the gains, and the future of how GitHub builds GitHub.

The GitHub.com codebase is almost 14 years old. And over those 14 years, the core repository powering GitHub has seen over a million commits And over the past months, GitHub's Engineering has evolved and moved to GitHub Codespaces for the majority of GitHub development.

This is your chance to discover how GitHub uses GitHub to build GitHub :)

{% youtube xrZo4SHOdg0 %}

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

__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 xrZo4SHOdg0 %}
How to work with Command Line Arguments and Flags in Golang?
Tags: go, programming, cli, learning
Published: 2021-10-06 06:49:20

Command Lines arguments are the major or we can say important part of a program if we’re about to hit a feature when running a program to achieve that we uses command line arguments or flag.
For Example: If you’ve ever use any command in Operating System each command holds arguments , like if we’re talk about ls command which helps us to list all the files in a directory but it doesn’t shows us all files. It leaves hidden files and don’t renders those files, But to get hidden files as well we use a flag with the command which is -la. It prints all the files including hidden files as well..
Please Checkout to Know More About Command Line Arguments and Flags.
https://kdsingh4.blogspot.com/2021/10/command-line-arguments-in-golang.html