teleren/devto huggingface dataset:
PHPKG Package Manager in PHP
Tags: php, programming, opensource, tooling
Published: 2023-02-07 08:25:57

Composer is a popular tool for managing dependencies in PHP projects. It is often referred to as a package manager, but its capabilities extend beyond just managing packages.

Composer allows you to easily include external libraries in your projects and manage their updates. Once you have added a library to your project using Composer, it will automatically load the classes from that library using its autoloader. This means that you don't have to manually include the required files for used classes every time you want to use them in your code.

However, Composer is limited in that it only supports autoloading classes. It does not support functional programming in PHP, which is a significant limitation for many developers. Additionally, while you can write functions within namespaces, you cannot use functions in the same way you would with pure PHP.

This is where [phpkg](https://phpkg.com) comes in. Unlike Composer, phpkg is not just a simple autoloader, but a full-fledged package manager for PHP. With phpkg, you have the ability to manage your dependencies, add new packages, update packages to newer versions, and remove packages from your project.

The most exciting feature of phpkg is its ability to support a wide range of programming styles in PHP. You can write your code using classes and functions, and phpkg will automatically transpile your code into production-ready code by adding the required "_include_" statements. This means that you are not limited to writing code using classes, and can instead use a mix of classes and functions as needed.

Additionally, phpkg allows you to use PHP in ways you may never have thought possible before. You can write a PHP script that performs a specific task for you, such as processing data or generating reports, and then easily run it from anywhere at any time. All you need to do is push your code to a Git repository, and then run `phpkg run your-repository-url`. phpkg will download the repository, install it, and then run your code. This opens up a whole new world of possibilities for PHP developers.

In conclusion, while Composer is a useful tool for managing dependencies and autoloading classes, phpkg takes this a step further by offering a full-fledged package manager that supports a wide range of programming styles and use cases. Whether you're a seasoned PHP developer or just starting out, phpkg is worth considering as a tool to enhance your PHP development workflow.
Generate Dynamically months array in PHP
Published: 2023-02-07 08:20:22

if date is 2023-02-07 then run only till to feb 
if date is 2022-06-12 then run loop only till to June if date is 2022-12-31 then run till to dec 


```
$selected_date= "02/07/2022" // d/m/Y
$selected_month_number = date('n', strtotime($selected_date));
$selected_year = date('Y', strtotime($selected_date));

$months = array();

for ($i = 1; $i <= $selected_month_number; $i++) {
    $month_name = date('M', strtotime("$selected_year-$i-01"));
    array_push($months, $month_name);
}
 print_r($months);
//  Out put will be Array ( [0] => Jan [1] => Feb )
```
10 Must-Have Tools for Swift iOS Development: Boost Your Productivity Today
Published: 2023-02-07 08:15:32

> As an iOS developer, having the right tools can greatly enhance your productivity and the quality of your work. With the increasing popularity of Swift, a programming language developed by Apple, there has been a surge of tools specifically designed for iOS development. In this article, we will be discussing the top 10 tools for iOS developers using Swift, including their technical details and a simple explanation to help you understand their purpose and usage. Whether you're a seasoned iOS developer or just starting out, these tools are sure to make your development process smoother and more efficient. So without further ado, let's dive in!

Here are the top 10 tools for iOS developers using Swift:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjhgwd5mtyx0f7dsg6rq.png)
**Xcode**
 - The official integrated development environment (IDE) for iOS, macOS, tvOS, and watchOS development.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jsk6p4jytxnnjruutvqa.png)
**CocoaPods** - A dependency manager for Swift and Objective-C Cocoa projects.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eilj1sc63jytij2yjsqo.png)
**Alamofire** - An HTTP networking library written in Swift.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxcs34xz89q69nxrfau5.png)
**Realm** - An open-source object database management system for mobile devices.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s8ncr67efbte6k5lmab6.png)
**SwiftLint** - A tool for maintaining a consistent coding style in Swift projects.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z76dr1cshqs2z2dxyxiu.png)
**Sketch** - A digital design tool for user interface and user experience design.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2852y0gxwnf4n8p48sx.png)
**Fastlane** - A continuous delivery platform for iOS and Android apps.

**Fabric** - A mobile platform with modular kits for crash reporting, analytics, and beta testing.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hukzrorh85nskw36qyu3.png)
**GitHub** - A web-based hosting service for version control repositories.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4d622y1olg0mbe4vgzjg.png)
**Stack Overflow** - A question-and-answer community for programmers to share their knowledge and learn from each other.

These tools are some of the most widely used by iOS developers and can greatly enhance your development process. Whether you're working on a small personal project or a large enterprise application, these tools can help you get the job done more efficiently and effectively.
Check kuda balance
Tags: kuda, ussd, transfer
Published: 2023-02-07 08:12:26

[https://www.bankfanz.com/kuda-bank-transfer-code/](https://www.bankfanz.com/kuda-bank-transfer-code/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)

https://plaza.rakuten.co.jp/kudatransfer2023/diary/202302070000/
https://www.divephotoguide.com/user/Kudatransferussd17
https://www.producthunt.com/@kudacode_17
https://www.provenexpert.com/kudabanktransfercode17/
https://vocal.media/authors/kuda-bank-transfer-code-17
https://wakelet.com/@Kudabanktransfercode17367
https://www.lifeofpix.com/photographers/kuda_bank_transfer_code_17/
https://rosalind.info/users/Kuda_bank_transfer_code_17/
http://phillipsservices.net/UserProfile/tabid/43/userId/197763/Default.aspx
https://camp-fire.jp/profile/Kuda_bank_transfer_code_17
https://app.roll20.net/users/11602462/kuda-bank-transfer-code-17-p
https://seedandspark.com/user/kuda-bank-transfer-code-17
https://plazapublica.cdmx.gob.mx/profiles/Kuda_bank_transfer17/activity
https://www.metal-archives.com/users/Kuda_bank_transfer_code_17
https://trabajo.merca20.com/author/kuda_bank_transfer_code_17/
https://www.intensedebate.com/people/Kuda_bank17
https://www.mifare.net/support/forum/users/kuda_bank_transfer_code_17
https://pinshape.com/users/2569210-kuda-bank-transfer-code-17#designs-tab-open
https://www.kiva.org/lender/kudabanktransfercode2653
https://www.credly.com/users/kuda-bank-transfer-code-17/badges
https://www.myminifactory.com/users/Kudabankussdcode17
https://www.sqlservercentral.com/forums/user/kuda_bank_transfer_code_17
https://guides.co/a/kuda-bank-tra-4899
http://foxsheets.com/UserProfile/tabid/57/userId/120122/Default.aspx
https://storium.com/user/kuda_bank_transfer_code_17
https://speakerdeck.com/kuda_bank_transfer_code_17
https://www.kompasiana.com/kudabanktransfercode17
https://www.longisland.com/profile/Kuda_bank_transfer_code_17
https://myanimelist.net/profile/Kuda_bank17
https://social.msdn.microsoft.com/Profile/Kuda_bank_transfer_code_17
https://www.iheart.com/podcast/269-kuda-ussd-code17-108452821/episode/kuda-bank-transfer-code-17-108452823/
9. Eliminare lo spazio di ricerca
Tags: computerscience
Published: 2023-02-07 08:08:00

Abbiamo visto fin'ora svariati algoritmi di ricerca, i quali però possono essere migliorati prendendo in considerazione più percorsi verso un nodo. Introduciamo quindi una tecnica che si chiama potatura. In questo articolo vedremo due strategie di potatura che agiscono in maniera diversa in base all'obiettivo.

La prima strategia che vedremo è denominata ciclo di potatura o cycle pruning. Un grafo che rappresenta uno spazio di ricerca può includere cicli. In questa strategia per eliminare il ciclo si controlla se l'ultimo nodo sul percorso appare già prima sul percorso del nodo iniziale. Questi percorsi vengono scartati quando vengono aggiunti alla frontiera o non vengono aggiunti affatto.

La complessità computazionale della potatura del ciclo dipende dal metodo di ricerca utilizzato. Per i metodi depth-first, l'overhead può essere basso come un fattore costante, memorizzando gli elementi del percorso corrente come un set (ad esempio, mantenendo un bit impostato quando il nodo è nel percorso o utilizzando una funzione hash). Per le strategie di ricerca che mantengono percorsi multipli il ciclo di potatura richiede un tempo lineare rispetto alla lunghezza del percorso cercato.
Install Node on MacOS M1/M2/Apple Silicon
Tags: mac, node
Published: 2023-02-07 08:05:29

#### 1. Create `~/.zshrc` if not exist, using following command
```
touch ~/.zshrc
```

#### 2. Download `NVM`
Get the latest version URL from:
https://github.com/nvm-sh/nvm

```
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
```

#### 3. Update `.zshrc`
Run
```
export NVM_DIR="$HOME/.nvm"
```

OR

Open .zshrc: `nano .zshrc` and add the following line:

```
export NVM_DIR=~/.nvm
```

Save and run:
```
source .zshrc
```

Close the terminal and open it again.

#### 3. Install `Node`
```
nvm install --lts
```

Try running following command to verify versions:
```
node -v
npm -v
```

---

### Other useful commands

#### To check all available node version
```
nvm ls
OR
nvm ls-remote
```

#### To install specific version

```
nvm install <version>
```

eg:

```
nvm install v16.19.0
```

#### Switch to specific version

```
nvm use <version>
```

#### Set default node version
```
nvm alias default <version>
```
Sticky Notes with CSS3
Tags: webdev, html, css, tutorial
Published: 2023-02-07 07:50:34

What is a sticky notes with css3, How do you make a sticky notes with css3?

**Sticky Notes with CSS3 HTML Code:**
```html
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sticky notes with CSS3</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Reenie+Beanie&subset=latin' rel='stylesheet' type='text/css'>
<ul id="notes"> <li> <p>Push new feature to Kiln for code review</p> </li> <li class="kiln"> <p>Browse hacker news for a bit</p> </li> <li> <p>Read JavaScript: The Good Parts by Douglas Crockford</p> </li>
</ul>
</body>
</html>
```

---

**Sticky Notes with CSS3 CSS Code:**
```css 
body { background: #B2CCCC;
}
#notes li { position: relative; width: 300px; min-height: 100px; margin: 25px auto; padding: 60px 15px 15px 15px; background: #fff url(http://our.fogbugz.com/images/tbKiwiLogo.gif) no-repeat 4px 8px; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,.5); -moz-box-shadow: 0 2px 12px rgba(0,0,0,.5); box-shadow: 0 1px 2px #000; -webkit-transform: rotate(-.5deg); -moz-transform: rotate(-.5deg); -o-transform: rotate(-.5deg);
}
#notes li:nth-child(even) { -webkit-transform: rotate(.5deg); -moz-transform: rotate(.5deg); -o-transform: rotate(.5deg);
}
#notes li.kiln
{ background-image: url(https://rob.kilnhg.com/Content/Images/kiln_focus.gif);
}
#notes li p { text-align: center; font: normal normal normal 40px/48px 'Reenie Beanie', Helvetica, Arial, sans-serif; color: #000; text-shadow: white 1px 1px 0px; overflow:hidden;
}
#notes li::before { content: ' '; display: block; position: absolute; left: 115px; top: -15px; width: 75px; height: 25px; z-index: 2; background-color: rgba(243,245,228,0.5); border: 2px solid rgba(255,255,255,0.5); -webkit-box-shadow: 0 0 5px #888; -moz-box-shadow: 0 0 5px #888; box-shadow: 2px 2px 2px #000; -webkit-transform: rotate(-6deg); -moz-transform: rotate(-6deg); -o-transform: rotate(-6deg);
}
#notes li:nth-child(even)::before { -webkit-transform: rotate(6deg); -moz-transform: rotate(6deg); -o-transform: rotate(6deg);
}
```

---

👉 Source & Preview: [https://scriptcodes.co/sticky-notes-with-css3-afkxe](https://scriptcodes.co/sticky-notes-with-css3-afkxe)
What are the .ND files in QuickBooks Desktop?
Tags: beginners, webdev, javascript
Published: 2023-02-07 07:48:09

.ND files also known as Network data files are configuration files that permit the QuickBooks software to access the company file in a multi-user environment. These files are created by the QuickBooks Database server manager **(QBServerUtilityMgr.exe)**. The .nd files identify the database server used by the program. to learn more about **.nd files in QuickBooks desktop **, make sure to read this post till the end. Or you can also consult our tech support team at **+1-844-521-0490** and they will help you clear your queries related to QuickBooks. 
**

## What are the functions of .ND files?
**
ND files are supposed to perform the following functions in QuickBooks:
• The file is created by the [QuickBooks database server manager](https://www.qberrorsupport.com/quickbooks-database-server-manager/) that too in the same folder, where the company file is situated. 
• It can be easily identified with the help of .ND file extension. 
•   **MyCompanyFile.nd 
•     MyCompanyFIle.qbw.nd**
• They could also be seen in a single-user environment that earlier had multi-user access options turned on. 
• The file is **1 KB in size** and is a text file. 
• This file can be easily opened and edited in Notepad and can be identified with a text icon. 
• It contains the information that the QuickBooks accounting software required to communicate with the server, such as the IP address and the port. 
• These files find out whether the company file is in use or not.
**

## Sample nd file
**
Here is what all a sample nd file contains. 
• **Server IP Address –** One can get the server IP address and then evaluate it with the one contained .ND file. 
• **Server Name and QB Year – **The server name can be seen in the middle and the QuickBooks database server manager version is at the end: 28=2018, 27=2017, 26=2016, etc. 
• **Port used –** The port is to be opened/added in the firewall settings. 
• **Full path to company file –** Note that any path other than C: will need additional troubleshooting. 
• **1 for hosting on and 2 for hosting off –** Note that the hosting need to be turned on for a file to be opened in a multi-user network setting. 
**See Also:** [Point of Sale QuickBooks Error 175305](https://www.qberrorsupport.com/fix-quickbooks-pos-error-175305/)

[.Nd files in QuickBooks](https://www.qberrorsupport.com/nd-files-in-quickbooks-desktop/) are of great assistance. We hope that the above-stated information might be of some help in understanding these files better in QuickBooks. However, if there is any query or if the user requires our assistance for some reason, then contacting our [QuickBooks Error support](https://www.qberrorsupport.com/) at **+1-844-521-0490** might help. We are a team of certified QuickBooks professionals who work round the clock in providing immediate assistance.
Save time and run APIs directly from your Mac Menu Bar
Tags: webdev, api, productivity
Published: 2023-02-07 07:47:58

Hi Reddit community!

We're excited to introduce [SnapAPI](https://getsnapapi.com), the quickest way to access APIs from your _Mac's menu bar_. No more hassle of using complicated tools to run APIs, with SnapAPI you can easily access your favorite APIs with just a click!

Our app makes it super easy to use APIs, with an intuitive menu-only interface that saves you so much time. Whether you're a developer or just someone who needs to access APIs on a regular basis, SnapAPI is the perfect solution.

And the best part? It's [available on the Mac App Store](https://apps.apple.com/us/app/snapapi-quick-api-from-menu/id1668117899) now! So what are you waiting for? Download SnapAPI today and make your API experience a breeze!

Let us know what you think, we'd love to hear your feedback!
💻Become a Cloud Club Captain🔥: Learn AWS Tech, Build Your Career 📈
Tags: awscloudclubs, awscloud, cloudcomputing, aws
Published: 2023-02-07 07:42:53

🔥Students, Power Up!💥



AWS has just announced AWS Cloud Clubs, student-led user groups for ages 18+, are opening in 10 regions worldwide. 🌍



💼 Apply to become your student community’s Cloud Club Captain to network, learn AWS tech, and build your career. 💻 



As you create events for learning together and connecting with other Clubs, you’ll be able to earn perks for yourself and your community including swag, AWS credits, AWS Certification Vouchers, mentoring and coaching opportunities with the Academic Advocacy Team and friends, and more! 🎁



Don't miss out on this amazing opportunity! Apply today to join this select program! 📩 



Visit:  https://s12d.com/students to apply now!
What I learned : Immutability as I understand it.
Published: 2023-02-07 07:40:18

 An immutable data type can be defined as one where the data cannot be changed. A new copy of the data type is returned with the altered data instead. Immutability is a very important concept in react. In order to re render a component react checks to see if state has changed by comparing the memory location of the old and new state object. If the memory locations are different , react determines that the state has changed and re renders the component. This is why its extremely important to change the contents of a state object in an immutable way instead of mutating the object.

```
import "./styles.css";
import {useState} from 'react'

export default function Shelf() {

  const [shelf, setShelf] = useState([]);
  const [book, setBook] = useState("");

  function handleFormSubmit(e){
    e.preventDefault();
    
    //Update shelf state in an immutable way to trigger 
    // a re render.
    setShelf([...shelf,book]);

  }

  return (

    <>
        <form onSubmit={handleFormSubmit}>
          <label htmlFor="book">Book: </label>
            <input type="text" id="book" value={book} onChange={(e)=> setBook(e.target.value)}/>

        </form>
        <ul className="App">
          {shelf.map((book,index)=><li key={index}>{book}</li>)}
        </ul>
    </> 
  );
}

```
All you need to know about table partition in SQL
Tags: sql, partition
Published: 2023-02-07 05:47:20




**What is table partition ? How to create a table partition?**

Table partitioning is a database management technique that allows breaking down a large table into smaller, more manageable parts, called partitions. This can improve query performance and reduce maintenance overhead by allowing certain operations to be performed on only a portion of the data.

Here is an example of table partitioning in SQL using the PostgreSQL database:

```
CREATE TABLE sales (
    sales_id serial primary key,
    sales_date date not null,
    product_id int not null,
    quantity int not null,
    price decimal not null
) PARTITION BY RANGE (sales_date);

CREATE TABLE sales_q1_2022 PARTITION OF sales
FOR VALUES FROM ('2022-01-01') TO ('2022-03-31');

CREATE TABLE sales_q2_2022 PARTITION OF sales
FOR VALUES FROM ('2022-04-01') TO ('2022-06-30');
```
In this example, the sales table is partitioned by sales_date column and two partitions sales_q1_2022 and sales_q2_2022 are created for the first and second quarter of 2022 respectively.

**How to select data from partitioned table?**

To use a SELECT query on a partitioned table, you can simply query the parent table and the query will be automatically redirected to the relevant partitions based on the data being requested. For example:

```
SELECT * FROM sales WHERE sales_date BETWEEN '2022-01-01' AND '2022-03-31';
```
In this case, the SELECT query will return the data from the sales_q1_2022 partition, since the data being requested is within the range specified in that partition.

It's also possible to explicitly query a specific partition, if needed. For example:

```
SELECT * FROM sales_q1_2022;
```

To retrieve data from a table that is partitioned into multiple partitions, you can use a SELECT query that combines data from multiple partitions. Here's an example in SQL:

```
SELECT * FROM sales WHERE sales_date BETWEEN '2022-01-01' AND '2022-06-30';
```
In this case, the SELECT query will return the data from both the sales_q1_2022 and sales_q2_2022 partitions, since the data being requested is within the range specified in both partitions.

You can also use the UNION operator to combine the results from multiple SELECT statements, one for each partition. For example:

```
SELECT * FROM sales_q1_2022
UNION
SELECT * FROM sales_q2_2022;
```
This will return the data from both the sales_q1_2022 and sales_q2_2022 partitions in a single result set.

**How to delete table partition?**

To delete a table partition in SQL, you can use the ALTER TABLE statement with the DROP PARTITION option. The syntax is as follows:

```
ALTER TABLE <table_name> DROP PARTITION <partition_name>;
```
Replace table_name with the name of the table, and partition_name with the name of the partition you want to delete.

It's important to note that the exact syntax may vary depending on the specific database management system (DBMS) you're using.
The Rise of Innovative Technologies Transforming Industries
Tags: technology, development, indtechverse
Published: 2023-02-07 07:13:48

In recent years, technology has been advancing at a rapid pace, bringing about new and innovative solutions that are changing the way industries operate. From artificial intelligence to the Internet of Things, these technologies are making our lives easier, more efficient, and more connected.

Here are some of the innovative technologies transforming industries:

1. Artificial Intelligence (AI): AI is being used in a variety of industries, from healthcare to finance, to improve decision-making, automate tasks, and provide personalized experiences.

2. Internet of Things (IoT): The IoT connects devices and allows them to share data and communicate with each other. This technology is being used in smart homes, industrial automation, and transportation to increase efficiency and enhance experiences.

3. Virtual and Augmented Reality (VR/AR): VR and AR are being used in a variety of industries, including entertainment, education, and healthcare, to create immersive experiences and improve communication and collaboration.

4. Blockchain: Blockchain is a decentralized technology that provides secure and transparent transactions. It is being used in finance, supply chain management, and various other industries to increase transparency and security.

5. 5G: 5G is the next-generation wireless network that promises faster speeds and lower latency. This technology will have a significant impact on various industries, including transportation, healthcare, and entertainment.

In conclusion, innovative technologies are transforming industries and shaping our future. From AI to 5G, these technologies are making our lives easier, more efficient, and more connected. It's exciting to see how they will continue to evolve and impact our world in the years to come.