teleren/devto huggingface dataset:
Publish File Changes to Remote Server with Rsync
Tags: rsync, shell, publish, upload
Published: 2020-08-24 12:13:16

I am sharing a small script to automate file upload from local to remote server with preview option.

I use `rsync` to mirror both directories. It will only upload changes and will delete any file from remote directory that are not in local.

This script will default to **dry-run** (no changes will be made). Just add `--run` option to upload and write changes.

Script File: `rsync-www.sh`

```shell
#!/bin/zsh

# default to --dry-run to prevent accidental sync
SYNC_OPTION="--dry-run"
if [[ $1 == "--run" ]]; then
  # remove dry-run option and sync
  SYNC_OPTION=
fi

if [[ -d "./dist" ]]; then
  # sync/mirror ./dist/ with remote dir, delete extranous file in remote dir
  rsync -avz $SYNC_OPTION --delete ./dist/ you@yourser.ver:/var/www/html/
else
  echo "./dist does not exist"
fi
```

Run this script

```shell
rsync-www.sh       # preview all changes
rsync-www.sh --run # upload all changes
```

Note -- You might need to change file mode to executable
```
chmod +x rysnc-www.sh
```

------------

All codes in this post is provided under [CC0](http://creativecommons.org/publicdomain/zero/1.0/) licence.
Exchange EDB to PST Converter - Migrate and Convert EDB to PST
Tags: edbtopstconverter, convertedbtopst, edbtopstmigration, edbtopstconversion
Published: 2020-08-24 12:10:56

Try this <a href="http://www.pcrecoveryutility.com/edb-to-pst-converter.html">EDB to PST Converter</a> Software that can easily repair all the corrupted and damaged edb files and convert all the convertible edb files into pst format in few simple steps. This software has multiple feature available that enable the users to smoothly migrate all the edb files into pst format. Its every steps is very simple and enable the users to easily performed edb to pst conversion. Technical or non technical both can easily use this software without have any technical skill. It provide an enhanced easy to use user friendly interface to reduce the risk of data loss. You should use it free demo version first.

<b>Use this discount coupon code ( SYSPRING30OFF ) at checkout point to get 30% discount on full licensed version.<b>

Read more info:- http://www.pcrecoveryutility.com/edb-to-pst-converter.html
Efficient EDB to PST conversion tool to Convert EDB to PST file
Tags: edbtopstconverter, convertedbtopst, edbtopstconversion, migrateedbtopst
Published: 2020-08-24 12:09:06

This <a href="http://www.filesrecoverytool.com/edb-to-pst-converter.html">Efficient EDB to PST Converter</a> scan all over the device and load all the convertible edb files into preview panel. In which you can easily convert selectively edb files into pst format in few seconds. After conversion, It can automatically save resultant PST files at desired location. Moreover, It can also repair and recover all corrupted or damaged EDB files. An enhanced easy to use interactive user friendly interface also provided by this software for intense conversion. Use it free demo version to analyze it features and functions. 

<b>Use this discount coupon code ( SYSPRING30OFF ) at checkout point to get 30% discount on full licensed version.<b>

Visit here to get more information :- http://www.filesrecoverytool.com/edb-to-pst-converter.html
EDB to PST Converter Tool to Convert Multiple EDB Files to PST
Published: 2020-08-24 12:06:53

Use this <a href="https://www.softmagnat.com/edb-to-pst-converter.html">Efficient EDB to PST Converter</a> Software to convert damaged edb files into pst format. This software can also repair all corrupted and damaged edb files before converting into pst format. With it bulk conversion option you can easily convert all multiple EDB files into PST format. It provide selective conversion option which enable the users to selectively convert edb files into pst format and With it find it option you can easily find any edb file from any location if you don't know the location. Use it free demo version first to analyze it features and functions.

<b>Use this discount coupon code ( SYSPRING30OFF ) at checkout point to get 30% discount on full licensed version.<b>

Visit here to know more:- https://www.softmagnat.com/edb-to-pst-converter.html
Daily Developer Jokes - Monday, Aug 24, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-08-24 12:00:15

---
title: "Daily Developer Jokes - Monday, Aug 24, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Aug%2024%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125988c2636.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why did the web developer always go to the wrong hotel room?

___A:___ They were in room 301.
 -->
MySQL Commands You Need To Know To Create A New User
Tags: database, sql, codenewbie, tutorial
Published: 2020-08-24 11:49:51

Working with our root user on all our databases is not a smart move and we all know it. We are going to learn how to use the command line to create a new MySQL user and grant him all the permissions and privileges needed to work independently.

I am assuming you already have  [MySQL](https://www.mysql.com/) installed globally and the service is running. If that's the case you will have a `root` user to login with. Let's use him to create our new user!

## MySQL Server Connection

Let's start by opening our terminal and connecting to our MySQL server!

We can connect by simply running:

```bash
mysql
```

To connect with the default user

OR 

To specify a certain user, we can run:

```bash
mysql -u root -p 
```

Where `-u` stands for user and its value is `root` and `-p` stands for password so we will be prompted to enter the password for the specified user.

## Create MySQL User

Our next step now, is what all this is about, creating the user. To do that we will gracefully run:

```bash
CREATE USER 'rana'@'localhost' identified by 'Bad@Password1';
```

This will give us a new user, who can connect to the server using the user `rana` and the password `Bad@Password1`

But if we tried to connect using our new user, we will find out that our user doesn't have access on anything and pretty much as good as dead. To fix that we need privileges!

## Grant MySQL User Privileges

It's time to grant our user privileges to let him play around like the other kids!

If we want our user to have all the privileges to manipulate everything we can use:

```bash
GRANT ALL ON *.* TO 'rana'@'localhost';
```

The first asterisk in `*.*` stands for all the databases we have and the second one stands for all the tables we have within the database. We can specify which database and which table exactly we want to grant the privileges on. Also, `all` here gathers all the privileges available in the [official MySQL docs](https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html) 

What if we want to create a user who is dedicated to a certain database for a certain project? 

Let's assume we have a database called `amazingdb`! If we want our user to be able to play around with all the grants on this database, we will run:

```bash
GRANT ALL ON amazingdb.* to 'rana'@'localhost';
```

If we want the user to only have some grants like the basic CRUD operations grants, we can go for:

```bash
GRANT INSERT, SELECT, UPDATE, DELETE
ON amazingdb.* 
TO 'rana'@'localhost';
```

Finally, if we want to specify only one grant we will use:

```bash
GRANT INSERT ON amazingdb.* TO 'rana'@'localhost';
```

That's it! Now we can create all the users we need and give them all the privileges they need!
Unravelling JavaScript Console API
Tags: beginners, javascript, tutorial, webdev
Published: 2020-08-24 11:49:35

Nights that end with `console.log()` usually precede mornings that start with `console.log()`. 😔

Well, there's life beyond `console.log()`.

Let's go over some JavaScript console methods that REALLY have the potential to make your life better.

***

###0. `console.log()`

```javascript
console.log("You already know this!");

// This is used to output a message to the console.
```

Output:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/06gek52ea90dmq9n36fx.png)

###1. `console.table()`
Sometimes we want to output a large object on the console. Using `console.log()` can be a pain. 

`console.table()` is a treat to sore eyes.

```javascript
function Crypto(symbol, name) {
  this.symbol = symbol;
  this.name = name;
}

let bitcoin = new Crypto("$BTC", "Bitcoin");
let ethereum = new Crypto("$ETH", "Ethereum");
let polkadot = new Crypto("$DOT", "Polkadot");

console.table([bitcoin, ethereum, polkadot]);
```

Output:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/l76o8o0455nwzk1seyip.png)

How beautiful and incredibly readable does that look!

If you had used `console.log()` here, this is what you would have seen instead:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/iechi4r591emqgs2j1kn.png)

###2. `console.info()` / `console.error()` / `console.warn()`
The `console.info()` method outputs an informational message.

The `console.error()` method outputs an error message.

The `console.warn()` method outputs a warning message.

```javascript
console.info("FYI: Today is Monday");

console.error("Today is not Friday");

console.warn("Get back to work!");
```

Output:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wtb0rczxqcamrc1sfxd9.png)

💡 It is a good practice to log messages on the console with appropriate formatting.

###3. `console.time()` 
This API method will tell you runtime in milliseconds. You can have multiple timers running at once in a JS program. (Maximum 10,000 timers.)

```javascript
console.time("time taken");
//DO SOMETHING
let x = 90;
let y = 100;
let z = x + y / 100;
console.timeEnd("time taken");
```

Output:

```
time taken: 0ms - timer ended
```
***

These were some lesser known methods of console API in JavaScript. 

I am hopeful that these methods will help you! 

Cheers.
Should I Read a Programming book from the beginning to the end
Tags: programming, webdev
Published: 2020-08-24 11:47:44

---
title: Should I Read a Programming book from the beginning to the end
published: true
description: 
tags: programming, webdevelopment
---

As a programmer, do I still need to read a book from the beginning of the book to the end of the book before I get started in that technology ?
Productivity tracker app
Tags: codepen, javascript, css, productivity
Published: 2020-08-24 11:43:03

<p>I created a simple daily productivity tracker app in vanilla js.</p>

<p>It was made only for desktop screens with the intention to be used by myself to track my daily productivity at work and see how i spend my day.</p>

<p>I added a time period from 8-18 and for each hour i can generate dynamically a time frame for 15, 30 mins or one hour</p>

{% codepen https://codepen.io/FlorinCornea/pen/GRozEgV %}

<p>The code code is a bit messy but i intend to clean it up. </p>

<p>Pleas drop me a comment if you find this useful.</p>
Facebook Pixel Event Manager Problem
Published: 2020-08-24 11:30:23

This is my App ==> https://apps.shopify.com/alpha-pixel-best-facebook-pixel-and-facebook-product-feed
We got complain about Purchase Event Missing on FB ads Report
I personally Check my client ads + shopify store stats its huge difference on Sale + reporting 70/30%. but shocking is this we are receiving all data(purchase event ) accurate on Event Manager 
but issue is real time FB ads reporting is not working.
Shopify Purchase Pixel Issue
Published: 2020-08-24 11:25:31

Hello Community

This is my App ==> https://apps.shopify.com/alpha-pixel-best-facebook-pixel-and-facebook-product-feed

 
We got complain about Purchase Event Missing on FB ads Report

 
I personally Check my client ads + shopify store stats its huge difference on Sale + reporting 70/30%. but shocking is this we are receiving all data(purchase event ) accurate on Event Manager 
 

but issue is real time FB ads reporting is not working.
Mconnect Advanced Product FAQ Extension for Magento 2
Published: 2020-08-24 11:23:11

While customers are into their buyer’s journey their mind is filled with many queries or questions. And to get all the answers they might reach you at the different channels available. But they might not wait for your reply and move to another product or competitor’s website. Since you don’t want to lose your potential customers, here’s what you can do. You can assemble all the relevant queries or frequently asked questions from your customers and make a section on your product page that answers all those FAQs. This will encourage your customers to complete their buyer’s journey by purchasing a product.
Mconnect Advanced Product FAQ Extension for Magento 2 displays all the queries and questions most frequently asked by creating a well-organized knowledgeable FAQ section. This FAQ section will answer all the common queries of your customers. The extension has an option to display the FAQs separately on the CMS page or on the product page itself. The admin can customize the various settings and display the position of the extension via backend. With the use of WYSIWYG, admin can add images, blocks, widgets, and prepare questions and answers easily. Also, you can enable search functionality on a separate FAQ page so that it would be easy for your customers to find answers. 
Features of Mconnect Advanced Product FAQ Extension for Magento 2
Customers can quickly find answers to their queries.
Manage FAQs and their categories from backend grids.
The extension has a collapsible interface that hides/shows answers to the questions.
Admin can set how many numbers of the question to show per page.
Due to AJAX Elimination of page reloading when selecting a category of the FAQ.
Easily navigate to the FAQ category from the sidebar.
The extension provides WYSIWYG editor to add images, blocks, widgets in FAQ answers.
Also, it has multi-store support along with SEO and mobile-friendliness.
For more such Magento 2 Extensions visit Mconnectmedia.com

Download now:https://www.mconnectmedia.com/faq-m2.html
Mconnect Advanced Ajax Login & Register Extension for Magento 2
Published: 2020-08-24 11:18:33

The page load time and improper store navigation can make your bounce rate and cart abandonment rate very poor, which directly affects sales and conversion of your Magneto 2 store. A Kissmetrics survey found that 40% of visitors would abandon the website if it takes more than 3 seconds. Therefore, you need a solution that takes care of this problem. A solution that will allow customers to quickly login to their account without redirecting them to the traditional login or registration page.
Mconnect AJAX Login and Registration Extension for Magento 2 is a perfect solution that allows customers to log in easily and rapidly without any page redirect or reload. The extension makes the login functionality smoother and more appealing for the customers. The extension replaces the traditional log in or registration page with a simple popup or a sidebar window. The integration with AJAX helps eliminate the redirection or reload of the page and customers can sign in or sign up from the same page. Also, customers can reset a password if they have forgotten it. The admin of the store can set up personalized success and failure messages to provide better brand experience. The extension helps customers to focus more on their shopping without any hassle of redirects or page reloads.
Features of Mconnect Advanced AJAX Login and Registration Extension for Magento 2
The extension lets customers log in or register without any redirection or reload of the page.
2 types of animated forms for registration, login or forget the password. 
Option to show either popup or a sidebar window for login or registration.
The extension can redirect new or registered customers. 
AJAX integration makes the task easy and rapid.
Option to set success or failure messages for personalized brand experience.
The extension replaces the traditional Magento 2 login and registration process.
It helps to save precious time of your customers and reduce the navigation effort.
Customers will be able to log in from any page on your Magento 2 store.
The extension serves a hassle-free and more focused user experience.

Download now: https://www.mconnectmedia.com/advance-ajax-login-m2.html
For more such Magento 2 Extensions visit Mconnectmedia.com
Skipper Technologies | Topcon distributor in India 
Published: 2020-08-24 11:15:29

We are Skipper Technologies also known as Topcon India are an Exclusive Dealers and Service provider of Topcon Products in India. Looking to buy Total Station, Auto Level, DGPS, and more such Instruments? Call Us Now at +91-9112691126! For more details visit: www.skippertech.com
Mconnect Advanced Ajax Layered Navigation for Magento 2
Published: 2020-08-24 11:11:04

This Ajax layered navigation feature offers allow your customers to select more than one option of the similar feature and provide amazing user experience. Customers can arrange price range according to their wish and as per the reviews and ratings. Productivity goes to another level with the help of this extension because customers will save a lot of time and efforts on surfing = the product and focus more on buying products from your store.
Mconnect Ajax Product Filter Extension for Magento 2 gives the liberty to select the numerous filters with drag and drop features from the list and display them on the search results page as per the product category. It also allows choosing a location to display the filters on the search page. By enabling the Stock Filter from the admin, the owners can permit their customers to choose in-stock or out of stock products displayed with the results. You can set it to horizontal or vertical also. Suppose if the customer want to begin a new product search they can again select the options they can again select the following options as per their need. Overall in short, by this extension you can facilitate your customer with a unique product search feature lessens the search results time to get their required products on time.
Mconnect Advanced Ajax Layered Navigation Extension for Magento 2 Features:
You can select numerous characteristics for the same filter
Price slider is for preferable price range 
Exposure of products that are not in stock or back in stock 
After product search it will clear few characters i.e. under ‘Now Showing By’ category.
Refining products without page load
Automatic or manual utilization of filters 
Products that are out of range Ajax will lay out error message 
In Mconnect advance Ajax the filters can be positioned to the toolbar or sidebar in a horizontal or vertical view.
Filtrate buy stock and sell ratings
Ajax provide absolute feature covered menu 

For more such Magento 2 Extensions visit Mconnectmedia.com

Download now: https://www.mconnectmedia.com/alnavigation-magento-2.html
Mconnect Advance Matrix Rate Shipping Extension for Magento 2
Published: 2020-08-24 11:07:03

For providing a great shopping experience on your eCommerce store, the shipping part of it plays a vital role. Many customers wish to receive their package as soon as possible. But every order is different in size and its destination differs massively. So, offering one size fits all type of solution to all customers could turn your business in losses. Therefore, keep in mind that offering multiple shipping methods can be the most effective and important part of your order fulfillment and shipping processes. As per Pitney Bowes global eCommerce study, 56% of the US consumers felt let down by the brands in shipping and delivery of the items. So, to make your customers happy, you may have to offer them various shipping methods that satisfy their needs as well as do not affect your eCommerce business. 
Mconnect Advance Matrix Rate Shipping Extension for Magento 2 facilitates the admin of the store to configure the shipping methods based on the dimensions, destination, price, size, the quantity of the product, and other things as well. It is one of the flexible table rate solutions one can integrate with their Magento 2 store. The extension is able to automatically calculate the charge for shipping and add it to their order total during checkout. A CSV file containing an unlimited number of shipping methods based on table rate can be also uploaded from the backend, which eases your work. The extension provides the option to charge for the shipping handling fee as a fixed or percentage amount for each order. The admin can set the title of the shipping method, enable only certain countries, and allow only certain eligible products. Also, the admin can create table rates based on weight vs. destination, order total vs. destination, number of items vs. destination, etc. 
Features of Mconnect Advance Matrix Rate Shipping Extension for Magento 2:
With the use of the Matrix rate, you can offer various customized shipping options to your customers.
Option to set your own custom title for shipping method and calculation condition.
The admin has an option to upload a CSV file with an unlimited table rate option. 
Shipping cost support for virtual or downloadable products.
Shipping handling fee charges can be levied on a fixed or percentage manner. 
Enable the extension for specific countries you deal in. 
Option to hide unavailable methods from the checkout page. 
The extension displays various methods on a different location for order fulfillment.
For more such Magento 2 Extensions visit Mconnectmedia.com
Download now: https://www.mconnectmedia.com/advance-matrix-rate-shipping-magento-2.html
Coding standard deviations
Tags: emoji, codingstandard, php, teamwork
Published: 2020-08-24 10:59:58

I’m past my times when I wanted to tweak my projects’ code style. Now I simply conform to one of two standards: either Symfony or PSR. Since the purpose of a coding standard is primarily to be consistent, and readable second, I’d rather keep that consistency across projects (and even open source libraries, vendors, etc), than to bikeshed about little details that nobody can prove would make any real difference.

That said, I do like to deviate some times. 

First and most important:

![](https://lebkowski.name/assets/images/coding-standard-deviations/arrow-function.png)

This space right there, after the `fn` keyword. I mean, how is not mandated by the parser? Important things out of the way, we can move on.

Test cases have long and descriptive names so they are self describing and readable. Let’s take this a little further by sprinkling some magic dust over our names:

![](https://lebkowski.name/assets/images/coding-standard-deviations/tests.png)

Ain’t that better? Once it passes code review at least. And if it doesn’t, I can provide you with a `smudge`/`clean` git filter. It’s especially useful if your team can’t conform to this great addition. See the attached gist: `camelCase_to_piss off your teammates case.sh` 😉 

Last but not least, let’s make those dates stand out a bit.

![](https://lebkowski.name/assets/images/coding-standard-deviations/dates.png)

I agree that it’s a little hard to type, but code completion will lend a helping hand, my friend… Well, on the second thought, not for one-letter symbols. 😦 

Maybe I just need to force push directly to master, to avoid code review? 🤔

---

*„Coding standard deviations” was written on 2020-08-24 by Maciej Łebkowski, and was first published at [lebkowski.name](https://lebkowski.name/coding-standard-deviations/). It’s licensed CC-BY-SA.*