teleren/devto huggingface dataset:
Xent.fx devblog 2
Published: 2022-10-11 15:28:57

_well, I overshot my goals... ._

Hey folks! Been a lil' bit but I have news!
Xent has entered the gamma stage of development and we are seeing a release for 0.2 alpha sometime in november...

for now, enjoy some fancy import export code


```xent
$DEF
@use[xcore]
&using[xcore] mks [io/in;;io/out] 
$MSP
cspace _[]{
   set _PlaceA as "work trying to make xent.fx a great language!" {ANY} %%type defs and variables :D
   %% type defs are: space (namespace), table (array/dictionary), cls (not usable yet), int, bool, double, ANY, str, chr, b8,ub8,b16,ub16,b32,ub32,b64,ub64
   in#put("heya folks! I am at ${get _PlaceA &&}") %% the &&} has a use I will explain in the future but for now just know it makes get work inside of the text!
   
}
```


Now let's explain this code...


line 1. ``$DEF``
the ``$DEF`` tells xent that you are about to import a whole lotta things 


line 2. ``@use[xcore]``
xcore is the library of gods, if you wish to use anything that xent provides without an external source, xcore is the way to obtain that resource


line 3. ``&using[xcore] mks [io/in;;io/out]``
io/in and io/out are swapped! compared to most languages, in is the way you get inputs from console, but in xent *this is swapped and for good reason I will explain in alpha tests*. The same situation is for out, out is the input from console.


line 4. ``$MSP``
~~(c) microsoft project~~ this literally is where the code truly starts, anything below this can be used and called ANYWHERE, while anything inside of a space can only be called when 'included'


line 5. ``cspace _[]{``

>``cspace``

the main code, this name may be changed but know it stands for the "direct call space"

>``_``

"RUN ME FIRST"

>``[]``

if you want to get a system variable, place it in these brackets (non exist yet)

>``{``

if you know javascript you know what this is.


line 6 needs no explanation.
line 7 needs no explanation.




anyways now that you've seen the newest xent example, lets talk about a few specifics
xent will be a micro c++.
how xent will work is it will be compiled into c++ code and the compiled further into a proper executable.
The reason for this is to make xent *actually have a purpose* as an intended to be easier language that works just like c++ and will allow you to see the c++ code that came out of the xent code. 

Seems like a buncha crap don't it? 
Yea it does but you gotta put some faith, Xent is like CoffeeScript. Xent will be like Typescript. Xent *is* coming.
How to Center Multiple Pins for Google Maps API
Tags: react, javascript, beginners, jsx
Published: 2022-10-11 15:20:17

<h1>I'll keep this short!</h1>

This will work if you're starting with a large number of locations and you have their latitude and longitude.

For this project I was working with React so we are using a helper function to parse a center out of those above items and pass it to the map component.

```javascript
let centerMath = [0, 0];
locations.map((place) => {
    centerMath[0] += place.latitude;
    centerMath[1] += place.longitude;
}
centerMath[0] = centerMath[0] / locations.length;
centerMath[1] = centerMath[1] / locations.length;
setCenter({
    lat: centerMath[0],
    lng: centerMath[1],
});
```

Then we pass the state down to the map component and use it here (in my case in the GoogleMap component):

```jsx
<GoogleMap
zoom={10}
center={center}
options={settings}
>
```

Feel free to scaffold this directly.

We're basically just adding all the lats and dividing by the number of places, same for longs. If we have two places at 0, 10 and 0, 20 then our center point comes out to be 0, 15. Not too complex but figured it might help someone out!

Cheers
-Elliot/Big Sis
LINUX series (Part 1)
Tags: linux, unix
Published: 2022-10-11 15:19:20

## Introduction to UNIX

UNIX is an operating system developed by AT&T in 1969. UNIX is a multi-user, multi-process operating system.

Primarily there are two base versions of UNIX available: 
1. AT&T System V
2. Berkeley Software Distribution (BSD).

Most of the UNIX versions are built using one of these versions.

## Variants of UNIX
1. Sun Solar UNIX
2. IBM AIX
3. Hewlett Packard HP-UX
4. Red Hat Enterprise LINUX
5. Fedora Core
6. SUSE Linux
7. Debian OS X
8. Mac OS X
9. KNOPPIX

10.Yellow Dog Linux
11.SCO OpenServer
12.SGI IRIX
13.FreeBSD
14.OpenBSD
15.NetBSD
16.OS/390 Unix
17.Plan 9

As you can see there are many available variants, and their implementation is also different, but the core commands and their functionalities remain the same. IEEE has created a standard called **Portable Operating System Interface (POSIX)** to standardize the UNIX OS. Though all the UNIX versions does not follow the POSIX standard completely, but most do adhere to the major principles outlined in the standard.

Currently UNIX development focuses on UNIX-based system called LINUX. 
**Two major groups of Linux distribution**
**1. .rpm based:** .rpm stands for Red Hat Package Management
**2. .deb based:** .deb is the short form of Debian.



## Basic commands:
1. To find the version:
   

```
sudip@system1=:~$ cat /proc/version
```

Or you can also use `uname` command
    

```
sudip@system1=:~$ uname -a
```
 
 `-a` is used to print all information
 You can refer to the `man` page to see different options.

 2.List the content of a directory:
   This will list all the files and folders present in your current directory. 
   

```
sudip@system1=:~$ ls
```

 3.To concatenate the files and print the standard output:
   `cat` command can be used as
   

```
sudip@system1=:~$ cat fileName.txt
```

   Let me explain this a bit. Suppose the above-mentioned file `fileName.txt` contains your biodata. So, this `cat` command will print the contents of that file. You can also edit the file with the use of some inbuilt editors. That we will discuss later.
 Remember we have used the same `cat` command to get the version information? Well, that was nothing, we were just printing the version information stared in this `/proc/version` location.

 4.To find present working directory `pwd` is used:
   

```
sudip@system1=:~$ pwd
```

 5.Give information about login users use `w`:
   

```
sudip@system1=:~$ w
```

 6.Use `hostname` to find the name of the host:
   

```
sudip@system1=:~$ hostname
```
How to make a Documentation Website in React JS?
Tags: help, webdev, javascript, discuss
Published: 2022-10-11 15:15:38

I want to make a Documentation website for my client.

But I don't know how to make Documentation like **paystack** & **stripe**.

there is any library ( even any paid template / service  ) for making exact like blow this pic using react js? 

> NOTE: finally integrate the `doc web` with react-js website.

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

## Stripe

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

Please suggest me, developers.

Thanks :)
ANNOUNCEMENT - Smart POST or PATCH Joomla! articles via API code example 200loc pure PHP
Tags: blog
Published: 2022-11-12 18:14:21

---
title: ANNOUNCEMENT - Smart POST or PATCH Joomla! articles via API code example 200loc pure PHP
published: true
date: 2022-10-11 15:10:34 UTC
tags: Blog
canonical_url: https://alexandree.io/blog-joomla-specialist/smart-post-patch-200loc
---

![](https://alexandree.io/images/behzad-ghaffarian-hello-unsplash_7dc86.jpg)

The [first announcement](https://alexandree.io/blog-joomla-specialist/j4x-api-examples "First announcement about Joomla! Api code examples"), few days ago was about Joomla! Web Services practical code examples with pure php or with Joomla! Framework. If you missed it, [here it is](https://alexandree.io/blog-joomla-specialist/j4x-api-examples "First announcement about Joomla! API code samples")  
  
Today, it's about a major improvement of the samples, in particular POST and PATCH. It enhance the developer experience in about 200 lines of pure PHP.  
  
Here it is:  

[Read More …](https://alexandree.io/blog-joomla-specialist/smart-post-patch-200loc)
Cracking The PMI DUMPS Code
Published: 2022-10-06 09:55:04

Expired Status This occurs as soon as the suspension duration ends with out gratifying the CCR necessities of your certification. Accordingly, certification popularity modifications to expired. Thus you want to use for a brand new examination on the way to regain your certification. Retired Status A certification holder with accurate CCR status can determine voluntarily to retire his certification. This popularity most effective applies to the ones who've been certification holders with accurate status as a minimum for consecutive <b>PMI Dumps</b> years. PMI-ACP PDU Online Courses Earning PMI-ACP PDU is straightforward while you make a decision to make use of on-line guides. There are as many alternatives for on-line guides as you may think about. Although the alternatives are many, only some stand out as worth alternatives. You have to now no longer think about them as a way to simply in an effort to acquire a few PMI-ACP PDU with out contributing for your non-public improvement. PMI-ACP PDU One of those centered worth applications is our PMI-ACP PDU direction package deal. This package deal is particularly designed to provide a full-cycle PMI-ACP PDU which lets you earn all of the required PMI-ACP PDU at as soon as. In addition to this one-shot advantage, the package deal is likewise designed that will help you sharpen your capabilities and broaden them. 

Click Here More Info >>>>> https://dumpsarena.com/vendor/pmi/
Are you looking for a professional moving service?
Tags: site, webdev, beginners, programming
Published: 2022-10-11 14:54:17

If so, choose a Manasquan, NJ based firm, Jersey Shore Moving & Storage. We offer short and long distance moving to all our customers. Regardless you move within the town or the state, we can help get you there. 

For more information, please follow this link: [Jersey Shore Moving & Storage
](https://www.jerseyshoremoving.com/)
Day21 of #100DaysOfCode - Finally a breakthrough! 😂
Tags: nextjs, webdev, javascript, beginners
Published: 2022-10-11 14:53:47

Woohoo! I finally solved the slug issue. 

Just need to keep reminding myself that Google is my friend and the problems that I have have already been solved by other people. 😂

Now I just need to work through all of the Notion API data fetching to fill out all of the pre-generated pages.

And then I will have to figure out how to deploy the site!
How to use the Relay fetch policy to ensure fast rendering?
Tags: javascript, graphql, react, relay
Published: 2022-10-11 14:44:04

One of the main tools of [Woovi](https://woovi.com/) is Relay. Relay is a GraphQL Client designed for high performance on any scale. When performing one of your main operations, query, we use a hook called `useLazyLoadQuery`, this hook has a property called `fetchPolicy`, which defines whether the query will be made from the local cache (we call it "store") or whether it should be made from a network request (we call it "network"). 

The following definitions `fetchPolicy` are:

## store-or-network
`store-or-network` is the default value, if data exists in the store, and is not obsolete, it won't do a network request, otherwise, it will do a network request.

![store-or-network](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdkx3zghm4thjzshz66n.png)

**Example:** We can use it in high-flow places to save network requests. Consequently avoiding unnecessary requests.

## store-and-network
`store-and-network` will use the data of the store, and always do a network request without making regardless.

![store-and-network](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c7hri9vvy59610ma8usa.png)

**Example:** We can imagine the Instagram home, we can render outdated data while fetching new data.

## network-only
`network-only` always will search the data making a network request.

![network-only](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xpr9vpj7hxyccpud4oh.png)

**Example:** We need to render the balance of the customer, we can't render a balance out of date, so always we will make a new network request without considering the store.

## store-only
`store-only` always will search the data of the store.

![store-only](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/quexq8qe7fuudoo69gz8.png)

**Example:** We use store-only when we assume that this data already exists in the store, and we will not need the refetch.

If you want to work with us, we are [hiring](https://woovi.com/jobs/)!
🔴 Live Q&A session on Discord TODAY at 5:00 PM CEST with Nicolas Rabault.
Tags: live, opensource, microservices, luos
Published: 2022-10-11 14:41:08

💬Comment on this post with your question now and we’ll answer it and chat live!

⏩[To participate](https://discord.gg/DUNWRFQSdP?event=1026867797004927027)

Save the date, it will be a small friendly event to ask all the questions you want about Luos: upcoming features, vision, best use cases, pros and cons.
Indexes in SQL {Using Rails}
Tags: sql, rails, codenewbie
Published: 2022-10-11 14:39:37

Indexing in SQL is a useful tool to make querying database tables much faster and easier. It is ideal for when you plan to have large amounts of data in your table and often need to extract that data by certain column values. For example, when a record requires a different, maybe formatted, ID than what's auto-assigned in the database table, or you want to be able to pull a set of records by its value in a category column, indexing is the perfect tool.

You might be thinking, "Why not just use the WHERE clause?" The WHERE clause is not ideal because it causes the database engine to look through every single record in the table. This can result in a substantial amount of search time, especially if you have a table with, say, a million records (which is not hard to have). Why waste that kind of time when you can reduce it to one second with this simple step?

To add an index to a column via Rails Migration:

When first creating your table:
```
create_table :table_name do |t|
  t.integer :column_name_one, index: true
  t.string :column_name_two, index: true
end
```

If your column already exists:
```
add_index :table_name, :column_name
```

What's happening under the hood when you create indices is: a new table gets created to store each row's value of the indexed column and a pointer to its location in the database. Although it may seem like a questionable trade-off between storage and search time, the new table is considerably small in width since it only stores the index and pointer and not the records themselves. Then, when you use an index in your query, the database engine is able to use the newly created table to quickly obtain those records, instead of searching through every record one-by-one. As one might say, the benefits outweigh the cost.

There are more ways to modify an index to benefit your querying further, which are greatly outlined [here](https://api.rubyonrails.org/v7.0.4/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_index). So be sure to check them out when you start implementing indexes in your tables. Hope this helped!
Hi, I'm new.
Tags: beginners, programming, python
Published: 2022-10-11 14:34:58

Seven years ago, I was let go from my last IT job. I was heartbroken. Not because I'd lost the job per se, but because I'd been let go for suffering with mental health.

**No, really.** **I was sacked for having mental health issues.**

I adored my IT career, having worked in retail from 15 years of age, I managed to sweep into 1st Line support when in 2007, when I was 22. Fast forward a couple of years, I went from service desk analyst to software deployment, getting stuck into SQL and learning very very basic C++.

Having been bitten by the bug, I wanted to go into software development, but didn't know where to look, sure there were online courses and bootcamps, but I simply just couldn't afford them. Stupid financial decisions in my youth meant I spent most of my time living hand to mouth. And IT back then just wasn't an inclusive place, hell - maybe it was and my face just didn't fit. Not getting any opportunities to develop, I job hopped, a lot. From software installation to deployment, hoping to find the "in" to kick-start my software development career.

But it wasn't to be,I thought I'd landed on my feet in 2013 with a relatively small and new company. I was learning a lot with SQL server and things seemed to be going well - until the Big Black Dog arrived.

I struggled daily with depression and changes to my mental health, I bottled it up and it was obvious. People noticed, but noticed for the wrong reasons. I was lashing out and being quite abrupt. My line manager at the time noticed, I shared what I wanted to share, but instead of support, I got berated. Told I was disruptive and "not a team player."

This continued for some time, I was trying my best, I really was - but I felt and was treated like an outcast and a burden.
My biggest regret in that company was not taking a job offer from a valued friend in the business. He headed up the technical side of the business and clearly knew something was up! He approached me in the kitchen area of the office and asked if I fancied joning his team as a Technical Consultant. I should have said yes,but for some reason, I said no. I couldn't even tell you what I said, because I can't remember.  Either way, two days after that conversation I was let go.

I needed a job, and fast. Disillusioned by IT due to the way I was treated, I ended up landing a job as an Assistant Commercial Manager - someone who deals with contracts in construction.  Fast forward seven years and now I'm a Chartered Surveyor suffering a mid-life career crisis.

Do I like my job? Yes! Am I passionate about it? No, not in the slightest.  I'm passionate about software and development.

So here I am, a newbie developer, teaching himself Python and BASIC to light a spark inside me that hopefully produces an inferno of passion.

**I want to be a developer.** Help me make that dream. 

- Az.
Introduction To Pandas.
Tags: python, programming, opensource, beginners
Published: 2022-10-11 14:29:49

<u>## What is Pandas</u>

- A software library for Python programming language for data manipulation and analysis.

The command 'import' commands python to import something as a shortcut you'll state eg =
import pandas as pd
 pd is the shortcut of pandas 

csv = comma separated values file allowing data to be saved in a tabular format.

df = data frame; a two-dimensional data structure ie contains rows and column.

head() = the function used to get first n values in the specific column.
tail() = the function used to get the last n values in the specific column.

matplotlib.pyplot = A comprehensive library for creating static, animated and interactive visualizations in python.
imported as plt.

**_KEYBOARD SHORTCUT:_**
1. Ctrl + ENTER: Run
2. ESC + M : Set to Markdown
3. ESC + Y : Set to Code
4. ESC + A : Adding cells above your current cell
5. ESC + B : Adding cells below your current cell
6. ESC + DD : Deleting the selected cell

Exporting DataFrame:
For file Blood.csv,
Blood.to_csv("exported-Blood.csv")
exported_Blood = pd.read_csv("exported-Blood.csv")

MARKDOWN
A lightweight markup language that you can use to add formatting elements to plaintext text document.
XPmarket and 3Commas integration
Published: 2022-10-11 14:18:41


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4bj2127sr91apexs608o.png)
3Commas.io - is a cryptocurrency trade management platform offering DCA bots, Grid bots, Options bots, Futures, bots, HODL bots, Scalper Terminal, and full Portfolio management all from a single convenient interface. It helps users grow their crypto investments using a feature-rich terminal and proven automated bots that operate on over 20 major exchanges and are adapted for every market condition. 

We’re excited to announce that XPmarket has been integrated into 3Commas' native Dapps marketplace, expanding the user-base that now has access both to XRPL ecosystem and advanced trading tools. This is also a first step between XPmarket and 3Commas collaboration. We are looking to reduce the entry barriers for new blockchain enthusiasts and provide advanced tools for sophisticated traders. 

Visit 3Commas: https://3commas.io
Visit our dApp: https://app.3commas.io/d/apps/139 
_________________________________________________
_Follow us for the latest updates:
[XPmarket Data Aggregator](https://xpmarket.com/)
[XPmarket DEX](https://xpmarket.com/exchange/XRP/USD+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B)
[Twitter](https://twitter.com/xpmarket)
[Telegram](https://t.me/xpmarket)_
Num Subarray Product Less Than K
Tags: javascript, leetcode
Published: 2022-10-11 14:15:28

Problem Statement #
Given an array with positive numbers and a target number, find all of its contiguous subarrays whose product is less than the target number.

Example 1:

Input: [2, 5, 3, 10], target=30 
Output: [2], [5], [2, 5], [3], [5, 3], [10]
Explanation: There are six contiguous subarrays whose product is less than the target.
Example 2:

Input: [8, 2, 6, 5], target=50 
Output: [8], [2], [8, 2], [6], [2, 6], [5], [6, 5] 
Explanation: There are seven contiguous subarrays whose product is less than the target.


```js
/**
 * @param {number[]} nums
 * @param {number} k
 * @return {number}
 */
var numSubarrayProductLessThanK = function (nums, k) {
  let left = 0;
  let right = 0;
  let product = 1;
  let output = 0;
  while (left < nums.length) {
    if (!product) {
      product = product * nums[left];
    } else {
      product = product * nums[right];
    }
    if (product < k) {
      right++;
      output++;
    } else {
      left++;
      right = left;
      product = 1;
    }
  }
  return output;
};

```
Contribute to Lenra, a SaaS to create your crossplatform app, using any language
Tags: hacktoberfest, github, python, node
Published: 2022-10-11 14:15:27


Hello !

Check our website for more info www.lenra.io about our project :)

V / php / swift / java / C# / elixir / python .... We need contributors for our templates ! Feel free to help !

https://github.com/lenra-io/template-v

https://github.com/lenra-io/template-php

https://github.com/lenra-io/template-swift

https://github.com/lenra-io/template-java-springboot

https://github.com/lenra-io/template-csharp

https://github.com/lenra-io/template-elixir

https://github.com/lenra-io/template-python

Or if you're a NodeJS fan, you can help us with the migration of our data here :

https://github.com/lenra-io/Lenra/issues/143


Happy Hacking everyone !!