teleren/devto huggingface dataset:
Ember-cli config
Tags: ember, javascript, cli
Published: 2024-01-26 18:15:29

[Ember](https://emberjs.com/) pioneered the standardised usage of [global cli tool](https://cli.emberjs.com/). This is a perfect way to give new users a good onboarding experience as well as existing users power tools for daily usage.

Config for ember-cli lives in `~/.ember-cli` and is merged with `my-project/.ember-cli` file, if applicable.

The [format of `.ember-cli` file](https://cli.emberjs.com/release/appendix/configuration/) is as follows:

> Command line options are passed in a dasherized form on the command line but they must be in camel cased in .ember-cli.

So you can run `ember help` in your terminal and then use the formula above to convert the cli options to config file options.

## Example

This is the global `~/.ember-cli` I'm using in my setup:

```json
{
  "welcome": false,
  "packageManager": "pnpm",
  "embroider": true,
  "typescript": true
}
```

---

Title image generated by Midjourney via prompt: `Command line ninja; The ninja is actually a hamster; --ar 16:9`
Salma Alam-Naylor's "Entertainment as Code"
Published: 2024-01-26 18:04:24

Entertainment as Code
by Salma Alam-Naylor 


CFE (certified Fresh events) and FITC recently held the [Jam.Dev](https://cfe.dev/events/the-jam-2024). This was two days of talks on JavaScript and the Jan Stack. All presentations will be posted on CFE's site in the future.

One of my favorite talks was Salma Alam-Naylor's "Entertainment as Code". Here is [link to talk synopsis](https://cfe.dev/sessions/jamdev2024-entertainment-as-code/). Her talk was about using code in entertaining ways. 

She live codes on [Twitch](https://www.twitch.tv/whitep4nth3r). Much of the talk covered fun bots she made for the audience to interact with here show. Like one that played a guitar riff when someone donated to her stream. But a bug in the played the riff for every dollar donated. $50 dollars meant that riff played fifty times over her stream.

Another fun bot was for people that told her how to code. She called the back seat coders. When activated an animated car is placed around her with a commenters avatar in the backseat.

The talk made me want to build some kind of fun app or game. 

All presentations will be posted on CFE's site in the future.
How to run CRON with Docker in alpine
Published: 2024-01-26 17:57:04

---
title: How to run CRON with Docker in alpine
published: true
description: How to run CRON with Docker in alpine
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-01-26 17:56 +0000
---

In my job, we are using alpine docker images for each application. In order to implement new feature we have installed CRON in a docker image. We have noticed that CRON does not work. In logs we saw the error:

```
crond: can't set groups: Operation not permitted
```

It was unusual bug. I have found that in alpine CRON must be running as the [root privilege](https://github.com/inter169/systs/blob/master/alpine/crond/README.md#run-cron-as-non-root-on-alpine-linux). It's harmful for security concerns. In order to run CRON as the normal user privilege there are two solutions:

1. Using [geekidea/alpine-cron](https://hub.docker.com/r/geekidea/alpine-cron) docker images
2. Choose another linux distributive


The choice is yours...
Lead Generation (Google Maps)
Tags: leadgeneration, microservices, webdev
Published: 2024-01-26 17:53:45

I specialize in providing top-notch Google Maps Scraping Services tailored to your unique needs. I bring years of experience in Google Maps Scraping, ensuring you receive reliable information for your business needs.

Don't miss out on this opportunity to boost your sales and save time. Get in touch with me today and let's talk about your specific lead generation needs.
How to creat a BOT (copilot) in MS teams that extracts data from excel?
Tags: microsoft365, teams, beginners
Published: 2024-01-26 17:45:40

Hi, i´m trying to creat a BOT (Autopilot) in MS Teams that lookup data from a Excel spreadsheet. 

I want a Bot that can be posted in my work Teams, so my friends can use the bot do consult data in the spreadsheet. 

For now I just need it could read a two column table. Like: Column A (Names) and Column B (Values), so you can serach by the name and the bot teels you the value. 

Is that something possible to be done? And if so, how? I cant find any tutorial in the internet.. 

Thx for any help.
Friends List Implementation Using Python Flask
Published: 2024-01-26 17:45:21

Whilst working on a recent Flask project that required a friends list relationship I realized there was a lack of explicit examples on how to implement such a thing so below is the solution I came up with.

To begin this relationship is called a self-referential many-to-many relationship since a User can be related to many Users. This is what makes this problem tricky and can tigger errors in Flask. Many of the examples you see online for friends lists with flask I would describe as a follower connections because they just document a connection between users and nothing else. The trick with a friends list is that you need other attributes associated with the connection other than just foreign keys. These attributes are used to show things like the status of the request ie. has it been accepted ect.

![Database schematic for a friend connection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v7004b86ny0mccbf6qcc.png)

**Follower Example**
To create a follower example you can just implement an association table.

```
follower_connection = db.table(
'follower_connections', metadata,
db.Column('follower_id', db.Integer, db.ForeignKey('user.id'), primary_key = True)
db.Column('followed_id', db.Integer, db.ForeignKey('user.id'), primary_key = True)
)

class User(db.Model)
    __tablename__ = 'users'
    
    id = db.Column(db.Integer, primary_key = True)

    followers = db.relationship('User', secondary = 
        friend_connection, 
        primaryjoin=id==follower_connection.c.follower_id,
        secondaryjoin=id=follower_connection.c.followed_id)
  
```
As a note on the above, you could potentially create a friends list architecture using multiple association tables where depending on the status of the relationship you move the relationship between a pending table and an accepted table but I found the below example more straight forward.

**Friends List Example**
To create the friends list I used an association table so that I could have other values associated with the relationship. 

```
class User(db.Model)
    __tablename__ = 'user'
    
    id = db.Column(db.Integer, primary_key = True)

class Friendship(db.model)
    __tablename__ = 'freindships'

    id = db.Column(db.Integer, primary_key = True)
    friendship_status = db.Column(db.Boolean, default = False)
    requestee_id = db.Column(db.Integer, db.ForeignKey('user.id))
    acceptee_id = db.Column(db.Integer, db.ForeignKey('user.id))

   requestee = db.relationship("User", foreign_keys=[requestee_id])
   acceptee = db.relationship("User", foreign_keys=[acceptee_id])
```

The important thing to remember about the above example is to specify the foreign key relationship or else you will get an error. Once you have the relationship established you can use the boolean status or any other field you choose to establish the state of the friendship.
How do you bring formatting standards into a large project with several active developers?
Published: 2024-01-26 17:38:03

Our team wants cleaner, more PEP 8 compliant code, type annotations, and leverage the advice of `flake8` and `mypy` pointing out deficiencies. I've enabled `pre-commit` hooks for a couple of projects that are typically a single or two developer project, and reviewed the step-by-step changes in code review such that the two most senior engineers are content with the outcome in future usage.

But we have a larger project, with many devs (internal and external) which have branches open that a simple py-black formatting across the repo will ruffle feathers with the inevitable merge conflicts, and we don't want to naively order a full cease-fire on work for this project either.

What advice do you have or what mistakes have you experienced with trying to standardize code/editor practices in a large project with many active contributors?
Create a Conversational AI of Yourself with AWS Bedrock (Part 1)
Tags: aws, cloud, ai, tutorial
Published: 2024-01-26 17:31:45

Hey! In this tutorial you'll learn how to quickly mimic your own way of talking using AWS Bedrock. This tutorial is just the first part of a series. All suggestions for improvement or more cool ideas are welcome :)

First, go to your [console](https://aws.amazon.com/console/) and look for the AWS Bedrock service.

![AWS Bedrock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29yz53f24zpzbx4exo18.png)

I'll use Meta's LLaMA 2 Chat 13B model. Make sure you have the permission to use it!


![LLaMA 2 13B](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m7tzqa7cofv41n87zlk8.png)


In the meantime remember to create your own S3 bucket to store the data.

![S3 Bucket](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7p96nzycuusc6p8kyp84.png)

As the training data I will use the messages I exported from WhatsApp. If you want, you can do the same, or export it from Facebook. For even better effect you should clean the data, and get rid of any <media> markups. After you've done that, put it in your S3 bucket.


![WhatsApp Export Messages](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gc5mq0kptsgs9zkfkmfu.png)


Now create a fine-tuning job. Go to "Custom Models" under Foundation Models" tab, scroll down, click on the "Customize Model" button, and select "Create Fine-tuning Job".


![Job Details](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0k87017ztj3nf6wtf4c9.png)


After you're done, specify the number of epochs you want it to run for (5 should be good enough for our purpose, but I will try 10 for a better effect), and hit "Fine-tune model".

In the next post I will attempt to evaluate the model. Stay tuned!
python selenium architecture and virtual environment
Published: 2024-01-26 17:25:12

The architecture of Selenium consists of several components:

Selenium WebDriver: This is the core component of Selenium that allows you to programmatically control a web browser. It provides a programming interface to interact with web elements, simulate user actions, and navigate through web pages.

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

Selenium IDE (Integrated Development Environment): This is a browser extension that allows testers and developers to record, edit, and replay interactions with the browser. It's a simpler tool compared to WebDriver and is often used for quick test script creation.

Selenium Grid: This component enables parallel execution of test scripts on multiple machines, allowing for distributed testing. It's particularly useful for large-scale test automation.

Virtual Environment:

The purpose of a virtual environment is to create an isolated environment for a Python project, allowing you to manage dependencies and avoid conflicts with other projects.

1.Isolation: Each project can have its own environment, preventing conflicts between different versions of libraries or packages required by different projects.

2.Dependency Management: Virtual environments allow you to specify and manage project-specific dependencies. This makes it easier to track and reproduce the exact environment needed for your project.

3.Clean Development and Deployment: Using virtual environments helps maintain a clean development and deployment process. You can avoid cluttering your global Python installation with project-specific dependencies.

4.Version Compatibility: Projects may require specific versions of libraries or Python itself. Virtual environments enable you to use the desired versions without affecting the system-wide installations.

5.Portability: Virtual environments can be easily moved or shared. You can create a requirements.txt file that lists all the dependencies, making it easy for others to recreate the environment.
between
Tags: is
Published: 2024-01-26 08:19:24

Liaocheng Hejin Special Steel Co., Ltd.Liaocheng Hejin Special Steel Co., Ltd.
1. Spray-plastic bridge, vertically installed spray-plastic cable tray, should choose ladder rack or spray-plastic cable tray with binding frame. 
In public corridors or outdoor streets, the lowest plastic-sprayed cable tray is suitable for spray-plastic cable tray. 
When preparing the pick-up list of plastic sprayed cable tray hanger, you should fill in: name + height H + cross pole length L, for example: suspension frame, DK-101-50mm 25 represents the suspension frame suitable for 50x 25 bridge (excluding through wires). 
2. Galvanized bridge. For trough galvanized cable bridge, the height of the connecting piece depends on the height of the bridge, and the width of the connecting piece depends on the width of the bridge. 
The thickness of the connecting piece should be the same as that of the Cable Tray Elbow Suppliers, or one grade thicker. 
The galvanized cable tray bracket can be installed directly on the wall, or you can install the suspension bracket on the floor first, and then install the galvanized cable tray bracket on the suspension bracket. 
3. The thickness of the bridge. For the trough cable bridge, the height of the connecting piece depends on the height of the bridge, and the width of the connecting plate depends on the width of the bridge. 
The thickness of the connecting piece should be the same as that of the bridge tray, or one grade thicker. 
The thickness of the cable tray connecting plate should be at least as thick as the pallet, or one grade of thickness can be selected. 
The thickness of the cable tray cover can be one grade lower than or consistent with the pallet. 
4. National standard, 2000 national standard is suitable for cable bridges of industrial and civil buildings, indoor and outdoor, high and low voltage transmission and distribution projects. 
The relevant national standards cited are GB/T 4208-1993 shell protection grade (IP code). 
The 2000 national standard refers to the national standards such as CECS31:91 and JB/T6743-1993, combined with the present situation of bridge production in our country, complements the technical conditions of aluminum and FRP bridge, and improves the national standard test method of bridge.
ELI5: Data Lake vs. Data Warehouse vs. Data Pond etc.
Tags: explainlikeimfive
Published: 2024-01-26 17:23:27

_[Cover image via Unsplash](https://unsplash.com/photos/brown-wooden-dock-near-calm-body-of-water-surrounded-by-trees-aRya3uMiNIA)_

---

These terms can be somewhat jargon-y and inter-mixed.  How would you explain the nuance between a **`Data Lake`** vs. **`Data Warehouse`** vs. **`Data Pond`** vs. any other common terms in this arena to a 5 year old?
Task-14
Published: 2024-01-26 17:23:25

[Q.no.1]

Difference between Automation and manual testing.

1)Automation testing:-

(i) Automation testing uses computer programs, applications, or scripts to write pre-defined tests and run them programmatically.

(ii) Automation testing is a practical option when the test cases are run repeatedly over a long time period.

(iii) Automation testing can be easier in the long run, as it can save time and effort on repetitive tasks.

2)Manual testing:-

(i) Manual testing allows for human observation, which may be more useful if the goal is user-friendliness or improved customer experience.

(ii) Manual testing involves manually sending requests to an application's interface and verifying the responses.

(iii) Manual testing is often considered easier to start with, as it does not require any specialized skills or tools.


[Q.no.2]

Automation testing tools:-

(i)Selenium:-
         Selenium is an open-source, automated testing tool used to test web applications across various browsers.

(ii)Appium-
        Appium is a cross-platform testing framework that is flexible, enabling testers to write test scripts against multiple platforms such as iOS, Windows, and Android using the same API.

(iii)TestRail:-
       TestRail is a web-based test case management tool. It is used by testers, developers and team leaders to manage, track, and organise software testing efforts.

(iv)Katalon:-
       Katalon is a comprehensive software quality management platform and test automation solution.


[Q.no.3]

Cross browser testing:-
         Cross browser testing refers to the practice of verifying that web applications work as expected across many different combinations of web browsers, operating systems, and devices.

[Q.no.4]

TDD and BDD:-

1)TDD:-

(i) TDD is a development technique that focuses more on the implementation of a feature.

(ii) In TDD, the developers write the tests.

(iii) TDD, developers test first, then use the test results to guide their development.

(iv) TDD is the process of writing a test for a specific portion of functionality, allowing the test to run to determine failures, and then adjusting the code as necessary to remedy the failures.

2)BDD:-

(i) BDD is designed to test an application's behavior from the end user's standpoint.

(ii) BDD is a development technique that focuses on the system's behavior. 

(iii) BDD the automated specifications are created by users or testers.

(iv) BDD is another agile-based development process for creating tests that describe an application's expected behavior based on users' expectations.
Lịch sử hình thành
Tags: webdev
Published: 2024-01-26 17:18:36

Ngày thành lập: 8/1/2024
Đội ngũ sáng lập: Nhóm 4 lớp DM18417 môn DOM107
Ý tưởng dự án: Hiện nay, cuộc sống ngày một phát triển và con người cũng trở nên bận rộn, vất vả hơn rất nhiều. Chính vì vậy nhu cầu sử dụng các thiết bị đồ dùng thông minh, tiện lợi trong gia đình ngày một gia tăng. Chúng tôi phát triển một bộ sản phẩm đồ dùng nhà bếp thông minh và năng lượng để giúp người dùng tối ưu hóa trải nghiệm nấu ăn và quản lý nhà bếp.
10 most impressive companies that have generated millions in revenue with 0 employees
Tags: webdev, saas, programming, javascript
Published: 2024-01-26 17:14:32

I want to offer some motivation to solo developers out there, as I am a solo founder myself. Y Combinator advised me to find a co-founder using their matching tool, but it's challenging for me because I have trust issues.

Many people might say that you need co-founders, workers, etc. to hit your $1M goal. However, I strongly believe that's not the case. If you are putting effort into solving a problem and providing value in people's lives, then you don't have to worry about anything.

Here are some companies who achieved the result as solo warriors;

**Stardew Valley**

- It's a country-life role-playing game
- Developed by Eric Barone
- It has generated $300M+ in revenue in 6 years
- Eric could become the first 1-person founder to do $1B+ in sales

**BuiltWith**

- It helps you find what technologies and services a website uses
- Founded by Gary Brewer
- It generates $14M in revenue per year

**Viral Nova**

- It's a curation site for the most viral content on the Internet 
  (similar to Buzzfeed)
- Founded by Scott Delong
- At its peak, it generated $5-$10M per year in revenue and 100M 
  readers per month with 0 funding and 0 employees

**Photopea**

- It's a free photo and graphics editor
- Made by Ivan Kutskir
- It generates 10M visits per month and ~$1.5M in revenue per year
- People spend 1.5 million hours a month using Photopea

**Digital Inspiration**

- It builds google plugins for docs, sheets, slides, and more
- Founded by Amit Agarwal
- It gets 5M visits per month and earns $10M in revenue per year
- 40M+ have downloaded the plugins

**Rego apps**

- 3 of its apps (5-0 police scanner, remote for tesla apps, and 
  police scanner+) are the most downloaded apps in their category
- Founded by Allen Wong
- He has made over $100M+ from these apps

**Portfolio of diverse businesses**

- Justin Welsh has built several businesses that generate $3M+ in 
  revenue (94% margins)
- He earns through consulting, courses, paid community, newsletter 
  sponsorships, and more

**Brumate**

- It sells adult beverage (beer, wine) cans to keep them cold for 
  24+ hours
- Founded by Dylan Jacob
- He made $20M in revenue with 0 employees
- It has 2.5M+ worldwide customers

**Portfolio of diverse businesses**

- Pieter Levels has built several companies—remote job 
  marketplace, AI photography, nomad community, and others—that 
  make ~$3M+ in revenue

**Carrd**

- It's a one-page website builder
- Founded by AJ
- It generates $1M+ ARR
- 4M+ sites have been built on Carrd

I wrote this post in [my newsletter](https://theselfishmind.substack.com/) to encourage my readers to adopt a positive mindset towards their work and projects. It's important to keep moving forward and remember that success is a gradual process. I want to highlight the importance of learning to be patient and taking pride in every little accomplishment along the way.
Can't watch videos on my external monitor with Mac Air Apple m1 processor.
Published: 2024-01-26 17:01:07

If you are also having this kind of issue.


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

The solution is quite easy.

Open your Chrome browser, go to **settings**, selection **Advanced** (sometimes it is not explicit), next **System**, then disable "**Disable hardware Acceleration**".


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



Now, you will be able to watch videos on your external monitors by using a Mac Air Appl M1.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/95k5vap6c6ntqdcivajv.png)
x
order by column null first
Published: 2024-01-26 17:04:23

postgres의 order by에도 null 값을 먼저 나오게 할 수 있다. 

```sql
select date, created_at, deleted_at
from meal_orders
where date = '2023-07-09'
order by deleted_at nulls first, created_at asc
limit 10
```

이렇게하면 null 값이 먼저 나오고, 그 다음의 정렬 조건에 맞춰서 데이터가 정렬된다.

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

---


```sql
select date, created_at, deleted_at
from meal_orders
where date = '2023-07-09'
order by deleted_at nulls last, created_at asc
limit 10
```

이렇게 null을 나중에 나오게 할 수 있다.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eos6jb2wtr6i7z4jt3b8.png)
Unlocking the Power of Caching in Laravel
Tags: laravel, php, learning, webdev
Published: 2024-01-26 16:55:09

Caching, in simple terms, is a technique used to store frequently accessed data temporarily. In the context of web development, this could be anything from database queries to HTML output. Rather than recalculating or re-fetching the same data repeatedly, Laravel allows us to store it in a cache, making subsequent requests faster and more efficient.

*Why is Caching Important?*

1. **Performance Boost**: Caching significantly improves the performance of your Laravel application. By reducing the need to regenerate the same data repeatedly, your website becomes faster and more responsive.
2. **Scalability**: As your application grows, caching becomes crucial for scalability. Handling increased traffic and data can be resource-intensive, but caching helps mitigate these challenges by serving precomputed results, ensuring a smooth user experience even during traffic spikes.

Ready to dive deeper into caching in Laravel? Check out the dedicated "caching" branch on our Laravel Hands-On [GitHub repository](https://github.com/mazimez/laravel-hands-on/tree/caching)