teleren/devto huggingface dataset:
Gamelarix Game Site
Tags: freegame, mobilgame, gamelarix, game
Published: 2023-08-28 12:24:14

**[Gamelarix](https://gamelarix.com/)** is your one-stop gaming paradise, offering a diverse universe of gaming experiences for enthusiasts of all kinds. As your go-to gaming hub, **[Gamelarix](https://gamelarix.com/new)** boasts a vast selection of games, from thrilling action adventures to brain-teasing puzzles and nostalgic classics.

Discover an ever-growing community of fellow gamers, engage in friendly competitions, and stay up-to-date with the latest game reviews and recommendations. **[Gamelarix](https://gamelarix.com/popular)** is designed for accessibility across devices, ensuring you can enjoy your favorite games wherever you are.

Join us today and unlock a world of gaming excitement at Gamelarix - where the adventure never ends!

<a href="https://gamelarix.com/" target="_blank"><strong>Gamelarix</strong></a></p> <a href="https://gamelarix.com/game/vex-3-play" target="_blank"><strong>Vex 3</strong></a></p>
How to easily join Linux asset to AD
Published: 2023-08-28 12:19:00


Syncing a Linux machine with Active Directory unlock benefits like seamless AD login, simplified asset management, and integrate your Linux machine into your company's existing environment, Here is a simple guide of how to do it :)


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


## RPM Based Distributions (Centos/RHEL)
Setup dependencies
centos7:

```
yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python
```
centos8:

```
yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python-utils
```
Add to AD:

```
realm join --user=[domain user account] [domain name]
# realm join --user=myAdUser dev.com
```
in case of error, run journalctl as described in the error, to fix KDC has no support for encryption type enable Kerberos encryption support:
`update-crypto-policies --set DEFAULT:AD-SUPPORT`

## Debian based systems (ubuntu)
Setup dependencies

```
sudo apt-get update
sudo apt-get install sssd-ad sssd-tools realmd adcli
```
Add to AD:

```
sudo realm -v discover [domain name]
# sudo realm -v discover dev.com
sudo realm join --user=[domain user account] [domain name]
# realm join --user=myAdUser dev.com
```
in case of error, run `journalctl `as described in the error, to fix realm: Couldn't join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli even that they are installed run the following:

```
realm join --user=[domain user account] [domain name] --install=/
realm join --user=myAdUser dev.com
```

## Sources
​

- https://access.redhat.com/solutions/5728591
- https://www.redhat.com/sysadmin/linux-active-directory
- https://ubuntu.com/server/docs/service-sssd-ad
- https://community.spiceworks.com/topic/2018717-joining-debian-machine-to-ad-domain-packages-not-found
How a social network uses graph theory
Tags: graphtheory, apacheage
Published: 2023-08-28 12:07:48

##Introduction
All social networks use graph theory in one way or other to implement their functionalities. Whether it be the friend suggestion of facebook or match suggestion of tinder, all of that is only made possible due to graph theory and its applications.

##The Graph Theory Foundation of social media

Friendship Networks and Connectivity:
Graph algorithms like Depth-First Search (DFS) and Breadth-First Search (BFS) are used to determine if individuals are connected directly or indirectly. This helps in identifying clusters of friends, mutual friends, and even potential new friends based on common connections.

Influence and Centrality:
Algorithms for measuring centrality (e.g., Betweenness Centrality and Eigenvector Centrality) reveal influential individuals within the network. These "influencers" play a pivotal role in information diffusion and trend propagation.

Community Detection:
Communities within social networks often revolve around shared interests or affiliations. Algorithms like Modularity Optimization and Girvan-Newman Method are identify these communities, providing insights into the structure of the network.

Recommendation Systems:
Graph-based recommendation systems employ algorithms like Collaborative Filtering and Personalized PageRank to suggest new friends or content based on an individual's connections and preferences.

Viral Marketing and Spread of Information:
Models like Independent Cascade and Linear Threshold are used to simulate the spread of information, enabling marketers to strategize viral campaigns effectively.

Anomaly Detection and Fraud Prevention:
Graph algorithms are used to identify unusual patterns of behavior that might indicate fake accounts or fraudulent activities.

Graph Databases:
Graph database systems like Apache AGE and Neo4j leverage the principles of graph theory to store, manage, and query complex relationships efficiently.

Graph algorithms breathe life into social networks, enabling platforms to understand user behavior, optimize recommendations, and provide meaningful experiences. By treating social interactions as nodes and connections as edges, graph theory opens doors to a deeper understanding of human relationships and the dynamics that shape our interconnected world.

More about Apache AGE here: https://age.apache.org/
Github here: https://github.com/apache/age/
Knowledge Point, Provide ACT Prep Course Dubai
Published: 2023-08-28 11:50:00

Knowledge Point, Dubai's top training center, can help you reach your full potential. Our top-notch training and exposure programs are meant to empower students and get them ready for an industry job.

We have established a reputation as Dubai's top training facility thanks to our trained personnel, cutting-edge equipment, and dedication to the success of every student. In order to ensure we're giving students the finest instruction possible, Knowledge Point values student feedback and incorporates it into every session.

We provide [ACT prep course Dubai.]( http://knowledgepoint.institute/) Join us today and discover the creative ideas and courses that have made us one of the greatest training colleges in the UAE!"

Website- http://knowledgepoint.institute/

Address: 168, Salah Al Din Street, Office #M10, Mezzanine floor, Speedex Center Building, (Near Abu Baker Al Siddique Metro Station), Exit 1, Opp Kim’s Clinic, Deira – Dubai.
Phone: 04 2624880 
Mobile: +971 5559 87624 / +9715559 87625 /+971 5559 87626
Email: info@knowledgepoint.institute 
Timings: *10:00 am to 09:30 pm*
Days: SUN – SAT
Unveiling the Magic of Access Modifiers in OOP! 🔒
Tags: webdev, javascript, programming, tutorial
Published: 2023-08-28 11:37:29

Access Modifiers in OOP control the visibility of class members. There are four types: public, protected, private, and internal.

**1. Public Access Modifier:**

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

**2. Private Access Modifier:**

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

**3. Protected Access Modifier:**

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

**4. Internal Access Modifier:**

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

**Client-side Example: ReactJS**
In React, you can control component accessibility using JavaScript's export keyword.

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

**Server-side Example: Node.js + Express:**
In Express, access control can be managed in route handlers.

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

**Database Example: MongoDB**
MongoDB allows you to define field access within documents.

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

**Best Practices**

- Use the least restrictive access modifier needed.
- Encapsulate internal details to avoid unintended access.
- Consider security when exposing sensitive data.
- Maintain consistent access control across layers of your application.
Clean PHP: isset() and Null-Safe Operators
Tags: php, laravel
Published: 2023-08-28 11:36:51

Refactor the isset condition in PHP, you can use the null coalescing operator in conjunction with the null-safe (also known as null propagation) operator to achieve the same result in a more concise way.

**BAD**
```
{{ (isset($rowData[$i]) ? $rowData[$i] : null) }}
```

**GOOD**
```
{{ $rowData[$i] ?? null }}
```

_Other Example _
**BAD**

```
if(isset($rowData['name'])){
 $name = $rowData['name'];
}
elseif(isset($rowData['fullname'])){
 $name = $rowData['fullname'];
}
else{
 $name = 'nobody';
}
```

**GOOD**

```
$name = $rowData['name']) ?? $rowData['fullname']) ?? 'nobody'
```
Drinking straight from the source with DX.
Tags: devex, dx, customerfeedback
Published: 2023-08-28 11:30:00


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

Hey guys! Are you all right?

Today I’m going to write about an important aspect, but often overlooked, to have a good DX for internal collaborators: direct feedback from customers.
Customer feedback is essential to understanding the needs, problems, and expectations of end users of the products and services we develop. It helps us validate our hypotheses, prioritize features, fix bugs, and improve the quality of our work.
But how to get that feedback efficiently and effectively? There are several ways to do this, but I’ll highlight three that I find especially useful:
- Satisfaction surveys: these are questionnaires that we may periodically send to customers to measure their level of satisfaction with our products and services. We may use tools such as Microsoft Forms, Google Forms, or SurveyMonkey to create and analyze these surveys. They allow us to obtain quantitative and qualitative data on customer perceptions.
- Customer interviews: these are individual or group conversations that we can conduct with customers to explore their opinions, feelings, and experiences with our products and services in more depth. We can use tools like Teams, Zoom, or Google Meetings to conduct these interviews. They allow us to gain deeper and more detailed insights into customer needs and issues.
- Usability tests: these are sessions in which we observe customers using our products and services in real or simulated scenarios. We can use tools like UserTesting or Lookback to record and analyze these tests. They allow us to evaluate the usability, accessibility, and functionality of our products and services.

These are some of the ways to get direct feedback from customers to have a good DX for internal collaborators. I hope you enjoyed this article and that you can apply these tips in your daily life.
Do you have more tips on how we can bring the development team closer to end users to get direct feedback from the source? Comment below. 😉

Thank you for your attention and see you later!

[Armando Guimarães Junior](https://www.linkedin.com/in/armandojr/) 🥑
How to Speed up and Improve Performance of Your Node JS Application
Tags: webdev, programming, tutorial, node
Published: 2023-08-28 11:29:21

When building Node.js applications, especially in the case of larger projects, it becomes paramount to maintain minimal data transfer during client interactions. This practice is instrumental in achieving peak performance on the client side. Consequently, there is a demand for reducing the payload of the responses being sent to users, all the while preserving the integrity of the response content.

A Node.js compression middleware known as <a href= "https://www.npmjs.com/package/compression" target="_blank"> Compression</a> the-shelf solution for effectively compressing responses sent from the application to clients. This tool seamlessly addresses the aforementioned need, ensuring that data transmission remains efficient and optimized.


##  How to implement compression package in to your node application

- install the compression package 
`npm install compression`
- use the compression middleware in your application 


## Sample code with an Express Application

```javascript
import express from "express";
import compression from "compression";

const app = express();
const PORT = 7000; // Change this to the port you want to listen on

// Apply compression middleware with custom configuration
app.use(
  compression({
    level: 6, //
    threshold: 0,
    filter: (req, res) => {
      if (!req.headers['x-no-compression']) {
        return compression.filter(req, res);
      }
      return false; // Don't apply compression if 'x-no-compression' header is present
    },
  })
);

app.get('/', (req, res) => {
  const data = 'This is a post about how to use the compression package'.repeat(10000);
  res.send(data);
});

app.listen(PORT, () => {
  console.log(`Listening on port ${PORT}`);
});

```
## Custom configuration of compression
### level
The level of zlib compression to apply to responses. A higher level will result in better compression, but will take longer to complete. A lower level will result in less compression, but will be much faster.

### Threshold
The byte threshold for the response body size before compression is considered for the response, defaults to 1kb. This is a number of bytes or any string accepted by the bytes module.

### filter
A function to decide if the response should be considered for compression. This function is called as filter(req, res) and is expected to return true to consider the response for compression, or false to not compress the response.
The default filter function uses the compressible module to determine if res.getHeader('Content-Type') is compressible.


### Before Compression
![Node JS compression](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d98mdx7an1ik9ad3uqs8.png)

### After Compression
![Node JS compression](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xkbnt5fmdwbgbavomc66.png)


The size of payload before was 550kb before and after is 181b
Raku Blog Posts 2023.35
Tags: programming, rakulang, summary
Published: 2023-08-28 11:24:19

- [Fun with UTF-8: variables and operators](https://dev.to/bbkr/fun-with-utf-8-variables-and-operators-5cfi)

*Paweł bbkr Pabian* continued their blog series about Unicode, using Raku examples.

- [On Subs And Typing](https://dev.to/lizmat/on-subs-and-typing-4a29)
- [Multi-Dispatch](https://dev.to/lizmat/multi-dispatch-2md3)
- [Regular Expressions](https://dev.to/lizmat/regular-expressions-bm5)
- [Command-Line Scripts](https://dev.to/lizmat/command-line-scripts-1o46)
- [Optimisation Considerations](https://dev.to/lizmat/optimisation-considerations-4a20)
- [Winding Down](https://dev.to/lizmat/winding-down-mof)

*Elizabeth Mattijsen* completed their series of 24 blog posts about the differences between Perl and the Raku Programming Language.

- [Rakudo Weekly News 2023.35](https://rakudoweekly.blog/2023/08/28/2023-35-october-conferencing/)

*Elizabeth Mattijsen* reports on all recent developments around Rakudo, an implementation of the [Raku Programming Language](https://raku.org).
The Luxury Florett
Published: 2023-08-28 11:23:01

Welcome to The Luxury Florett, your premium destination for exquisite [rose bouquet orders online](https://www.theluxuryflorett.com/categories/rose/products). At The Luxury Florett, we believe that every moment, big or small, deserves to be celebrated with elegance and beauty. Our passion for flowers and dedication to impeccable craftsmanship drive us to curate the most stunning rose bouquets that convey emotions and create lasting memories.
Telegram bot api sends the same message when channel post edited or reacted to post in first time
Tags: telegram, telegrambotapi
Published: 2023-08-28 11:22:07

There is a telegram bot that shares the messages from main channel to other channels and groups.

When message in main channel is changed bot resends this post to other channels. It worked well until we enable reactions to posts. Event channel post text is not changed if message is reacted telegram bot api sends the same "edited_channel_post" request and bot resends posts. Is there anyway to check if channel post text or media is realy changed or message is just reacted?
mTLS in CloudHub 2.0 : What Developers Need to Know
Tags: mulesoft, anypoint, cloudhub
Published: 2023-08-28 11:21:55

## Understanding mTLS

Before diving into the specifics of CloudHub, let's briefly touch on mTLS. mTLS is a two-way authentication process between the client and server. While traditional SSL/TLS ensures server-side security, mTLS ensures that both the client and server authenticate each other.
To harness mTLS in CloudHub, developers must ensure that every API consumer is mTLS compatible. But, as in any real-world scenario, there might be a mix of consumers - some capable of mTLS and some not.

## mTLS in CloudHub 1.0

In CloudHub 1.0, by setting the Dedicated Load Balancer (DLB) 'Client Certificate Validation' to 'Optional,' API access was granted even to those consumers that couldn't handle mTLS. Developers could then inspect the 'X-SSL-Client-Verify' header in their APIs to ascertain whether a valid client certificate was transmitted.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xglte46ksflxstkoiva6.png)


## mTLS in CloudHub 2.0

The landscape has shifted a bit in CloudHub 2.0. Unlike its predecessor, CloudHub 2.0 doesn't offer the flexibility to optionally set mTLS. Instead, developers need to prepare two distinct endpoints - one with mTLS enabled and one without. The crucial decision lies in the application's Ingress settings, where developers specify which endpoint to use based on whether mTLS is required or not.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2s29f5ozdomu396tmov5.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/li9v4r0yk55jxi7792dl.png)


## Conclusion

Adapting to CloudHub 2.0's mTLS implementation requires some rethinking and retooling, especially for those who have been operating with mixed API consumer environments in CloudHub 1.0. By understanding the core changes and preparing adequately, developers can continue to ensure secure and seamless integrations in the MuleSoft ecosystem.
Project IDX by Google 〉Web, Flutter, AI... It's not there yet 💩
Tags: ai, googlecloud, flutter, tooling
Published: 2023-08-28 11:19:29

Google has announced their take on developer tooling and AI coding. [Project IDX](https://developers.googleblog.com/2023/08/introducing-project-idx-experiment-to-improve-full-stack-multiplatform-app-development.html) is available as public preview.

What they did was wrapping VSCode into own cloud hosted environment, setting up templates for Web and Flutter projects, adding AI coding assistant and giving promises of frictionless and more productive dev environment...

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

The moment I imported my Flutter GitHub repo I faced a myriad of problems:

1. `Enable Nix for this workspace` option in the import dialog was breaking everything, IDE failed to start
2. With Nix disabled I got my project imported and opened in Google hosted VSCode (or 'Code - OSS' to be correct)
3. It was very slow (loading files, getting packages, building)
4. Linux, Android, Web are available as devices, though:
  - Linux doesn't work, requires CMake to be installed (and you can't do `apt install`)
  - Android starts building only after you do `flutter upgrade -force` - older version of Flutter is installed by default and has older `gradle` version
  - Android, even when it gets built there's no UI of the emulator seen anywhere
  - Web, well, after starting the app you get a pop-up window with a preview, though it is empty
5. IDX AI - in the [intro video](https://www.youtube.com/watch?v=-wlZY4tfGMY) there was demo of AI knowing codebase (there's an extension setting I enabled). Tried asking about my solution, got nothing

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

Tried it with Chrome. 

Project IDX is very early in development, see no point using it now.
Creating a table in database in BigAnimal
Tags: postgres, edb, methods, database
Published: 2023-08-28 11:12:04

In the last article we saw on how do we connect to the BigAnimal and how we create a database. In this article we will be populating the table with sample data and querying it. 

You can access the last article over [here](https://dev.to/talhahahae/creating-a-cluster-connecting-and-creating-a-database-in-edb-5glj)

### Create a table:
Create a table named associates for storing the status of the employees either active or non active. 
```
CREATE TABLE employees(
  id INTEGER,
  status STRING,
  PRIMARY KEY (id)
);
```
### Populate the database with some employees status and their ids 
```
INSERT INTO employees (id, status) VALUES
  (1, 'active'),
  (2, 'inactive'),
  (3, 'active'),
  (4, 'terminated');
```

### Querying on the table:
The below query will display the active employees
```
SELECT id, status
FROM employees
WHERE status = 'active';
```

Similarly you can make more tables in the database, populate the data and then query over the data.

## References:
1. https://www.postgresql.org/docs/
2. https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/
Steps and approaches to web app optimization
Published: 2023-08-28 11:00:06

Despite high speed internet, low loading web page speed nowadays is not a rare issue.

Main reasons of low speed may be:

- Video and images size
- Too large bundle size
- Slow response from 3rd party
- Unnessible dependencies and files

Steps to solve these problems may be:

- Using CDN
- Optimizing image size
- Gziping files
- Using external optimized video players
- Minifiers
- Lazy loading
- Writing reusable code and removing unused imports, variables, packages
- Using Browser caching or storage connected Browser API.
- Implementing SSR or SSG

Tools for checking:

- Google Speed Test | [https://pagespeed.web.dev/](https://pagespeed.web.dev/)
- Lighthouse (available in Chrome DevTools as well) | [https://developer.chrome.com/docs/lighthouse/](https://developer.chrome.com/docs/lighthouse/)

The next step may be analyzing the bundle by the size of each file and getting its diagram with a percentage per file.
This can point to the specific file and its possible performance problems.

A tool for Javascript libraries/frameworks may be **source-map-explorer** package. [Check docs on npm.](https://www.npmjs.com/package/source-map-explorer)

For projects using Webpack, we can get statistics from its CLI:
```
webpack --json --config webpack.config.js > stats.json
```
Or get visualized version with **webpack-bundle-analyzer** package [npm docs.](https://www.npmjs.com/package/webpack-bundle-analyzer)

Another approach may be analyzing dependencies and their bundle size (minified and gzipped/not) and download time on [Bundlephobia.](https://bundlephobia.com/)