teleren/devto huggingface dataset:
What are your goals for the week of September 25?
Tags: discuss, motivation
Published: 2023-09-25 14:25:53

## What are your goals for this week?


- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week? 
  * Any suggestions of events to attend?
- Did you meet your goals last week?

### Last Week's Goals

- [:white_check_mark:] Continue Job Search.
- [:white_check_mark:] Blog. Here and LinkedIn
- [:white_check_mark:] Code Challenges. Did CSS Battles.
- [:white_check_mark:]Project work. Did some CSS art. But that's not a full project.
- Events
  * [:x:]  Possibly Attend [Virtual Coffee(VC)](https://dev.to/virtualcoffee) Thursday
  * [:x:] Other VC events if I can. 
  * [:white_check_mark:] Codeword Conf on Sept 21 [Codeword](https://cfe.dev/events/codeword-conf-2023/). This conflicted with Thursday afternoon VC. So I missed VC but some members were in the chat.
- [:white_check_mark:]Run a weekly Slack thread similar to this post. 
- [:white_check_mark:] I joined a 30 Day Accountability group on LinkedIn. It's 30 days of prompts to create content and support other group members. I'll post there daily. Last week has two prompts a day.
- [:white_check_mark:] Build LEGO Sets Just some Marvel blind bag mini figs.


### This Week's Goals

- Continue Job Search.
- Blog.
- Prep for HacktoberFest. Sign up on Tuesday.
- Code Challenges
- Project work
- Finish React course.
- Events
  * Possibly Attend [Virtual Coffee(VC)](https://dev.to/virtualcoffee) Thursday
  * Other VC events if I can. 
  * RedwoodJs Wed (Virtual)
- Run a weekly Slack thread similar to this post. 
- I joined a 30 Day Accountability group on LinkedIn. It's 30 days of prompts to create content and support other group members. I'll post there daily. 
- Build LEGO Sets

### Your Goals for the week


You've read my goals so I'll throw the questions back to you.


- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week? 
  * Any suggestions of events to attend?
- Did you meet your goals last week?



```html
-$JarvisScript git push
```
Hacktoberfest 2023 t-shirts are NOT entirely gone!
Tags: hacktoberfest23, hacktoberfest, opensource, beginners
Published: 2023-09-25 14:23:35

Yes, you read it right. You can still participate in Hacktoberfest, make meaningful contributions, and stand a chance to win some cool swags ([from Collectiv](https://chat.collectivai.com/hacktober-fest)) It's our version of enabling more and more developers to contribute to open source and still keep the excitement of getting t-shirts alive one more year :D



**What is Collectiv?**

Collectiv is a platform that helps thousands of developers from across the globe to work with OSS repos. Developers use collectiv to search, understand, and contribute to 2000+ open source codebases. Check it out here at - https://chat.collectivai.com

One of the biggest problems with open-source contributions, especially for those just starting out, is understanding the complex codebase. You find yourself going through tons of code, docs or relying on someone in the community to address your doubts. 

Let's admit it: contributing to open source is complicated and a craft mastered over time with patience. We can at least make it a bit easier. AI tools get all the rage for doing more harm than good, especially when it comes to coding related tasks. Collectiv challenges that. It's not made for a fancy prototype, but a reliable system that can help you search and understand a codebase. 



**So how does collectiv x hacktoberfest 2023 work?**

Before I dig deeper, I want to clarify that this is not "official" hacktoberfest merch (because there isn't any this time :p), but collectiv merch that you get when you contribute to open source in the month of october!

It's simple: make four meaningful (read non-spam) contributions to *any* repo with >100 stars and [fill out this really simple form](https://tally.so/r/3xDxgJ). We will verify and ship a really cool merch kit anywhere you are in the world! 

Hacktoberfest has been infamous for spamming the maintainer community for many low-quality contributions. We sincerely hope that now, with collectiv, even beginners can take up a bit more challenging issues that make an impact on the OSS ecosystem.


**So, gear up for an exciting month full of fun, learning, and hacking this October! See you all at Hacktoberfest 2023 w/ Collectiv!!**

> Originally published on [collectiv's blog.](https://collectivai.com/blog/hactoberfest-2023-t-shirts-are-not-entirely-gone)
What coffee are you drinking?
Tags: discuss, watercooler
Published: 2023-09-25 14:14:31

---
title: What coffee are you drinking?
published: true
tags: discuss, watercooler
---

We're programmers/hackers/software engineers. The stereotype dictates that we drink coffee and Jolt! cola, right?

What are you drinking this morning?

---

I'll start - I've got some fresh ground Jardines Sidra from Corvus Coffee. It's got hints of Strawberry/Peach in it.

My usual is anything from Summer Moon coffee here in Austin. Their stuff has excellent flavor, but its unique in the fact that they roast their beans over an oak wood fire. (Fireside is 🔥)


---
If I could drink Surge all day, I would!
Project-Focused learning to DSA Journey...
Published: 2023-09-25 13:51:53

Do you see the cover photo on top? That's my current state. Two years back, I was employed as a content writer around this time of the year. Why work as a content writer instead of graduating with 
Mech Engg degree? The blame is on me and the industry's situation. I got sidetracked during my studies purely because of the lack of motivation.

The idea of earning money popped into my mind during the final year. Since I had no love for studies and had a knack for writing, I started working part-time at a content-producing company. It paid well. But it got boring fast.

Why am I blabbering on and on about these when the title mentions otherwise? Well, long story short. Just when the love of writing was spent, I found the folder in my laptop full of Python tutorials I downloaded for the thesis on Machine learning that never came to be. So, I started learning Python again with the help of a classmate who had already transitioned from a Mech Engg background to a full-blown software developer. Shoutout to Mehedi Hasan Piash.

After a few tutorials and codingbat problems, I thought I was well on the way. It was in the middle of Covid-19. I sought advice from a senior about how to get into the local industry. Taking heed of his advice, I took a break from my Python journey and picked up Javascript as it was the easiest way to get an entry, especially the front end, i.e. React. So, I took almost a year to learn the basics of Javascript and React. Built a few small projects.

However, my confidence level didn't grow. Instead, I now had the impostor syndrome even before being recruited as a developer. I realised I could not survive in programming with only project-based skills. So, to emulate the skills of someone with a CS degree, I started learning about data structures and algorithms. CS50 was the starting point, and then the famous playlists on YouTube put me on the DSA track.

So here I am, grinding through Leetcode 2-3-4 problems a day. On the side, I am trying to have a taste of the esoteric language, C++, on codeforces.

I'll be sharing the tidbits of my DSA journey.
Exploring the Diverse World of Advertising Forms
Published: 2023-09-25 13:47:50


Advertising Forms is a term that can have several meanings in the context [https://claspo.io/templates/use-case/promote-special-offers/](https://claspo.io/templates/use-case/promote-special-offers/) of advertising and marketing. Here are a few of them:



**Ad Formats:** This refers to various ways of presenting advertising content. For example, advertising forms can include banners, videos, interactive ads, text ads, social media ads, and much more. Each of these formats has its own features and advantages depending on the goals and audience of the advertising campaign.

**Data Collection Forms:** These are forms used in online advertising to collect information from potential customers or clients. For example, these could be forms for entering names, email addresses, phone numbers, or other information. They are often used for building customer databases or conducting marketing research.

**Advertising Message Formats:** These are the means, methods, and structure of a message used in advertising. They include elements such as headlines, subheadings, images, text, and more. The format of an advertising message plays a crucial role in capturing the audience's attention and conveying key messages.

The purpose of advertising forms depends on the context. In the advertising industry, using various advertising formats and forms helps companies attract customer attention, promote their products and services, gather information about potential customers, and achieve the goals of marketing campaigns.
Iptables使用
Published: 2023-09-25 13:25:35

根据 ArchWiki 配置一个基础的防火墙: [Simple_stateful_firewall](https://wiki.archlinux.org/title/Simple_stateful_firewall#Prerequisites)

### 开启端口

切换 root 用户,提升权限."sudo"命令敲得很累

```bash
su
```

忘记命令,看看之前怎么写的.

```bash
iptables -S
```

部分结果如下,在根据 ArchWiki 配置了[Simple_stateful_firewall](https://wiki.archlinux.org/title/Simple_stateful_firewall#Prerequisites)之后就是这个效果,注意 TCP 链,这个是 ArchWiki 配置后增添了 TCP 和 UDP 链.

```bash
-A TCP -p tcp -m tcp --dport 22 -j ACCEPT
-A TCP -p tcp -m tcp --dport 80 -j ACCEPT
-A TCP -p tcp -m tcp --dport 443 -j ACCEPT
-A TCP -p tcp -m tcp --dport 53 -j ACCEPT
-A TCP -p tcp -m tcp --dport 3000 -j ACCEPT
-A TCP -p tcp -m tcp --dport 19000 -j ACCEPT
-A UDP -p udp -m udp --dport 53 -j ACCEPT
```

想再开一个端口,依葫芦画瓢.

```bash
iptables -A TCP -p tcp -m tcp --dport 2222 -j ACCEPT
```

### 关闭端口

查看相应链相应行数

```bash
iptables -nvL --line-numbers
```

以行删除规则

```bash
iptables -D TCP 6
```
On testing
Tags: rspec, testing, tests
Published: 2023-09-25 13:25:00

---
title: On testing
published: true
description: 
tags: RSpec, testing, tests
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2023-09-25 13:25 +0000
---

## Why test?
* Improves development quality and speed - needed state is usually faster and easier to set up and manipulate in test environment.
* Establishes confidence that things work as needed and will continue to do so.
* Serves as documentation.
* Drives better design - if it's hard to test, it's poorly designed. 

## What to test?
Follow [J.B. Rainsberger's idea of "isolated tests"](https://blog.thecodewhisperer.com/permalink/integrated-tests-are-a-scam) - test pieces of source code in a single file, usually public methods.

Do contract testing - stub out calls to other class methods, but assert that the calls happen with correct parameters and that code under test correctly handles the mocked return value. This way code close to input/output (for example controllers) need not run through the whole app stack.

```rb
# sample action
def update
  record = find_user!
  return render_record_missing_error unless record
 
  result = SomeService.call(
    user: record,
    company: current_company,
    options: safe_params.to_hash,
  )
 
  if result.success?
    render(json: result, status: :ok)   
  else
    render(json: result, status: :unprocessable_entity)
  end 
end
```

Focusing on only testing the code written in the file worked on tells us that `SomeService.call` should be treated as a black box and stubbed out. We do not care what side-effects it produces, only that code under test can use its return value properly.
Furthermore, we have three ways out of this method:
1. early return due to missing user and two proper results
2. a success
3. a failure

Covering these scenarios should reach 100% coverage without excessive specs.

```rb
# sample good spec
describe SomeController, "update" do
  context "when user can not be found" do
    it { responds_with_record_missing }
  end
 
  context "when SomeService call returns a success outcome" do
    before do
      allow(SomeService).to receive(:call).and_return(success_outcome)
    end
 
    it do
      responds_with_success_json
 
      expect(SomeService).to have_received(:call).with(
        user: user,
        company: company,
        options: {some: param},
      ).once
    end
  end
 
  context "when SomeService call returns a failure outcome" do
    before do
      allow(SomeService).to receive(:call).and_return(failure_outcome)
    end
 
    it { responds_with_failure_json }
  end
end
```
Expert AI, Digital & Cloud Software Services
Tags: webdev, softwaredevelopment, ai, datascience
Published: 2023-09-25 13:23:48

The US development center in Richmond, VA  is a key pillar of our “right sourcing” global delivery model. Using a frugal innovation methodology, the US based team engages with clients for both technical and strategic needs in AI, analytics, cloud, digital, and [custom software development services](https://ignitho.com/usa/custom-software-development-companies-richmond/).
Unleashing Innovation: How DevBird Propels Projects to Extraordinary Heights
Tags: devbird, projectmanagement, itservices, customizedcollaboration
Published: 2023-09-25 13:19:44

**Introduction:**

In the ever-evolving digital landscape, innovation and expertise are paramount. Enter DevBird, a catalyst for turning visionary ideas into remarkable realities. With a presence across 22+ countries, we’ve become a trusted partner for both burgeoning startups and established tech giants. Dive into the world of DevBird and discover how we’re making waves in the tech industry.

**Harmony of Talent and Diversity:**

At the heart of [DevBird](https://devbird.co) is our diverse ensemble of professionals. From AI maestros and cybersecurity virtuosos to adept web developers, we’re a melting pot of knowledge and skills, poised to address multifaceted tech challenges and deliver bespoke solutions.

**Customization Meets Collaboration:**

Our client-centric approach sets us apart. By delving deep into our clients' visions and needs through detailed consultations, we handpick resources that align perfectly with project goals, ensuring a harmonious blend of customization and collaboration every step of the way.

**Unwavering Commitment to Excellence:**

Quality is the cornerstone of our ethos at DevBird. Our meticulous assessment processes and stringent quality assurance protocols underscore our commitment to delivering nothing but the best, consistently exceeding client expectations, and setting new industry benchmarks.

**Agility and Proactive Engagement:**

In a dynamic and competitive marketplace, adaptability is key. DevBird’s flexible engagement models and proactive support mechanisms ensure seamless project evolution and foster enduring relationships, encapsulating the essence of true partnership.

**Conclusion:**

[DevBird](https://devbird.co) is more than a hub of exceptional talent; it’s a beacon of innovation and a testament to what’s achievable when expertise and ingenuity converge. Join us in crafting the future, fostering technological advancements, and realizing extraordinary visions. The journey to unparalleled success starts at DevBird!

---

**Location:**
1968 S. Coast Hwy #3765, CA 92651, United States

**Phone:**
+1-618-961-3547

**Website:**
[DevBird](https://devbird.co)
JavaScript : Modules and ES6 Modules (English/Hindi)
Tags: webdev, javascript, beginners, programming
Published: 2023-09-25 13:17:07

## English

JavaScript modules are a way to organize and structure your code by splitting it into smaller, reusable pieces. ES6 (ECMAScript 2015) introduced a standardized module system known as ES6 modules, which provide a more efficient and organized way to manage dependencies in your JavaScript code.

Here's how you can create and use ES6 modules:

**Creating a Module (math.js):**

```javascript
// math.js
export function add(a, b) {
  return a + b;
}

export function subtract(a, b) {
  return a - b;
}
```

In this example, we have created a module named **math.js** that exports two functions, **add** and **subtract**, using the **export** keyword.

**Using a Module (main.js):**

```javascript
// main.js
import { add, subtract } from './math.js';

const result1 = add(5, 3);
const result2 = subtract(10, 4);

console.log(result1); // 8
console.log(result2); // 6
```

In the main.js file, we import the functions **add** and **subtract** from the **math.js** module using the **import** statement. This allows us to use these functions in our **main.js** file.


## Hindi

JavaScript modules ek tarika hain apne code ko vyavasthit aur structure kiya jaane ka, jahan aap apna code chhote, punargunvanneeya tukdon mein baat karke likh sakte hain. ES6 (ECMAScript 2015) ne ek mukhya module pranali ko prastut kiya, jise ES6 modules ke roop mein jaana jaata hai, jo aapke JavaScript code mein dependencies (aavashyakataayein) ko prabandhit karne ka ek adhik upayukt aur vyavasthit tarike ka pradaan karte hain.

Neeche bataya gaya hai kis prakar se aap ES6 modules ko banate hain aur upayog karte hain:

**Module Banane Ka Tariqa (math.js):**

```javascript
// math.js
export function add(a, b) {
  return a + b;
}

export function subtract(a, b) {
  return a - b;
}
```

Is udaharan mein, hamne ek module **math.js** banaya hai jo **export** shabd ka upayog karke do functions, **add** aur **subtract**, ko bahar nikalta hai.

**Module Ka Upayog Karne Ka Tariqa (main.js):**

```javascript
// main.js
import { add, subtract } from './math.js';

const result1 = add(5, 3);
const result2 = subtract(10, 4);

console.log(result1); // 8
console.log(result2); // 6
```

**main.js** file mein, ham **import** statement ka upayog karke **math.js** module se functions **add** aur **subtract** ko import karte hain. Isse ham apne **main.js** file mein in functions ka upayog kar sakte hain.
BOPP Self Adhesive Tapes
Published: 2023-09-25 13:15:15

**BOPP Self Adhesive Printed Tapes** or BOPP Self Adhesive Customized Tapes refers to any one of the various combinations of backing materials coated with an adhesive. Different backing materials and adhesives are often used counting on the intended use. Branded packaging tape manufacturer in Mumbai, branded brown tape manufacturer in Mumbai.
History of AWS Well-Architected
Tags: aws, wellarchitected, awscommunity, cloud
Published: 2023-09-25 13:14:22

#Well-Architected Initiative 2012

In 2012 Philip "Fitz" Fitzsimons started the Well-Architected initiative as he explains in [his blog](https://aws.amazon.com/blogs/architecture/on-architecture-and-the-state-of-the-art/). In this blog Fitz references Roman Architect Vitruvius Pollio and Henry Harrison Suplee, who in his view formed the basis for architecture reuse.
>Both authors wrote books that captured the current knowledge on design principles and best practices (in architecture and engineering) to improve awareness and adoption.

Design principles and best practices form the basis for Well-Architected. The initiative was started to share best practices for architecting in the cloud. AWS Architect start writing and sharing architectures that were cloud native.

#Well-Architected Framework 2015

During Re:Invent 2015 Amazon CTO Dr. Werner Vogels announce the white paper AWS Well-Architected Framework.
Where frameworks like TOGAF and Zachman concentrate on a centralized  enterprise architecture capability. AWS prefers to distribute capabilities into teams rather than having a centralized team with that capability. The Well-Architected Framework therefor talks about _practices_ and _mechanisms_ which should be adopted by all teams.
The white paper describes the 4 pillars of:
- Security
- Reliability
- Performance efficiency
- Cost Optimization

#Well-Architected Review 2016

In September 2016 Enterprise support customers get access to the Well-Architected Review.
Delivered by an AWS Solutions Architect, the review provides guidance and best practices on the four pillars of the Framework.

#5th Pillar 2016

The Framework introduces Operational Excellence as the fifth pillar. This pillar looks at the ability to run and monitor systems to deliver business value and to continually improve supporting processes and procedures.

#Well-Architected Partner Program 2017

During Re:Invent 2017 Well-Architected Partner Program was announced. With this program the conduction of the Well-Architected review was moved to the AWS partner network. AWS partners were now responsible to carry out the review instead of the AWS solutions architects.
At the moment 31 partners were selected _Launch Partners_.

#6th Pillar 2021

On the global movement of decarbonization AWS announced during Re:Invent 2021 the 6th Pillar of the Well-Architect Framework. The Sustainability Pillar focusses on the environmental footprint of your workload. It introduces the Shared Responsibility Model of Cloud Sustainability.
Docker使用
Published: 2023-09-25 13:06:37

> - Dockerfile: 用来创建自定义镜像
>
> - docker-compose.yml: 可整合多个镜像, 常用于在启动容器时配置运行参数,便于命令行操作
>
> 以上是常见的文件命名方法, 也可取其他文件名. 例如 abc.yml.

有了镜像就要启动, 启动成容器运行在计算机上. 如果容器需要接管本地流量, 则宿主机作代理, 开启映射端口

```bash
docker run -d --name=code-server -p8080:80
```

## 运行 code-server

假如我们运行一个 code-server,我们想给一些参数

```bash
docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -e PASSWORD=password `#optional` \
  -e SUDO_PASSWORD=password `#optional` \
  -e DEFAULT_WORKSPACE=/config/workspace `#optional` \
  -p 8443:8443 \
  -v /path/to/appdata/config:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/code-server:latest
```

*以上代码来自[linuxserver/code-server](https://hub.docker.com/r/linuxserver/code-server)*

显然不易维护. 利用 docker-compose 读取 docker-compose.yml 文件并启动容器

```bash
docker-compose up -d
```

默认读取当前文件夹下的 docker-compose.yml, 选项 -d 意为 daemon 使它运行在后台,每次运行容器只需这一个命令和一个配置文件. 例如给出 code-server 的配置文件 docker-compose.yml:

```bash
---
version: "2.1"
services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai
      - PASSWORD=password #optional
      - SUDO_PASSWORD=password #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
    volumes:
      - /path/to/appdata/config:/config
    ports:
      - 8443:8443
    restart: unless-stopped
```

_以上代码来自[linuxserver/code-server](https://hub.docker.com/r/linuxserver/code-server)_

> 修改文件比修改命令更容易

## 测试

###  构建镜像 

通常在开发完工后会将项目打包成生产环境, 也就是产品. 

```bash
docker build -t celiae/ceblog:latest .
```

稍等片刻,可以得到镜像名为"celiae/ceblog",标签名为"latest"的镜像.latest 以为最新版.

### 启用容器

```bash
docker run -p 1024:3000 celiae/ceblog:latest
```

端口映射, 浏览器输入"localhost:1024",OK

### 查询

```bash
docker ps -a
```

它会列出正在运行中的容器进程

## DockerHub

### 测试成功后推到 dockerhub

```bash
docker push celiae/ceblog:latest
```

在 dockerhub 登陆账号在仓库(repository)中能看到 celiae/ceblog 的最新版本

### 获取镜像

```bash
docker pull celiae/ceblog:latest
```

run 的步骤基本一样

### 服务器上运行镜像

```bash
docker run -d -p 1024:3000 celiae/ceblog:latest
```

-d 运行在 daemon 后台