teleren/devto huggingface dataset:
How install PHP Phalcon Framework on CentOS 6
Tags: linux, centos, redhat
Published: 2020-03-05 09:29:15

THE STEPS

1. Updated all repo centos

      sudo yum update

2. Then I installed the proper php devel pacakage along with other depencies that were needed for the install by using the command

    yum — enablerepo=remi,remi-php54 install php-devel

3. Then I had to also install the gcc package from yum with the following

    sudo yum install gcc

4. Then I downloaded the phalcon repo from github.com and ran the following commands

git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install

or you can build from ext folder with these command : 

cd cphalcon/ext
phpize
./configure
make clean
make && sudo make install


5. I Restart the webserver :

sudo service httpd restart

6. I also created a phalcon.ini file to included in the php runtime configuration in the folder /etc/php.d/phalcon.ini. It had the following line:

extension=phalcon.so

To make sure Phalcon installed properly, make a dummy php page and use phpinfo() to see if Phalcon is installed and enabled.


7. restart httpd again :
sudo service httpd restart

Then check if phalcon get error or trouble on php with :

    php -m | grep phalcon

If get this php warning:

   Cannot load module 'phalcon' because required module 'psr' is not loaded in  Unknown on line 0

that mean need compile and install php-psr package first


You have installed v4 phalcon  which requires the PSR extension to be loaded first.

Have a look at this article: https://docs.phalconphp.com/4.0/en/upgrade

In short psr.so

PHP-PSR References:
  
    https://github.com/jbboehr/php-psr

Phalcon requires the PSR extension. The extension can be downloaded and compiled from this GitHub repository. Installation instructions are available in the README of the repository. Once the extension has been compiled and is available in your system, you will need to load it to your php.ini. You will need to add this line:

   extension=psr.so

before

   extension=phalcon.so

Alternatively some distributions add a number prefix on ini files. If that is the case, choose a high number for Phalcon 

restarted webserver after changing the php.ini file

sudo service httpd restart

create a temporary info.php page (restrict the script or remove after checking it) with the following content:

<?php
phpinfo();
?>

Check the phpinfo page at your host:

http://yourhost/info.php

You should see the most current version of Phalcon loaded on your phpinfo

make sure  Phalcon loaded on your phpinfo
How should you label boolean columns in a user-facing table?
Tags: discuss, ui, tables
Published: 2020-03-05 09:16:35

---
title: How should you label boolean columns in a user-facing table?
published: true
description: 
tags: discuss, UI, tables
---

I'm having one of those mornings where I'm questioning all the things.

I prototyped a table where a boolean column was labeled with "Has Alert." This means the row is associated with an action item.

I'm the only native English speaker at my job, and this label looked funny to my colleagues. Now it looks funny to me!

I started to think about boolean columns, and I reasoned that there are broadly two types, those of Being and those of Existence[^1]:

* `Being`: The row "is" or "is not" a certain way
* `Existence`: The row "has" or "does not have" a property

For Being columns I usually omit the "is" in the label. E.g., if something can "be finished," I'd just write "Finished" in the column header.

For Existence columns, I'm not so sure. I thus invite you to overthink this with me 😁

**How would _you_ label an existence column? What feels natural to you?**


[^1]: I don't desire his approval, but I feel like [Heidegger](https://www.marxists.org/reference/subject/philosophy/works/ge/heidegg2.htm) would be proud of this classification
How to autocancel GitHub Actions workflows 
Tags: githubactions, github
Published: 2020-03-05 09:15:16

GitHub announced some months ago [GitHub Actions][actions], a system that allows you to run arbitrary code based on some given events happening around a given repository. People flocked to it, hoping it would allow them to run their test suites. This is particularly true for open-source projects, since GitHub gives out an unlimited amount of minutes to run actions for these kind of repos.

At Codegram we wanted to try it for some of our repos, but found some little issues that kind of made switching difficult. For example, GitHub Actions does not support autocanceling previous workflows.

Imagine this scenario:

1. I commit to a branch and push it to my repo
1. A CI build is triggered
1. Before the CI build is finished, I push again
1. Another CI build is triggered

What I'd like to happen is that the first CI build is stopped, since it's no longer necessary: it's become redundant, now that we have new changes.

Some CI services (CircleCI, for example) support autocancelling built on these kind of scenarios. Autocancelling is useful because it frees resources so that you can run newer, more up-to-date test suites, and it helps you save money (in case you're paying for those resources, of course).

### Enter actions!

GitHub Actions has a concept that is a game changer, in my opinion: community actions. This means you can reuse actions made by other people, the whole community can benefit from them. And well, it took a while, but finally someone made it: [an action to autocancel redundant builds][marketplace]. Here's how to use it:

```yml
on:
  push: []
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
    - uses: rokroskar/workflow-run-cleanup-action@v0.2.2
      env:
        GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
    - uses: actions/checkout@v2.0.0
    ...
```

By running the action *before* checking out the repo we save a couple of seconds (*it ain't much, but it's honest work*) so we can cancel redundant workflows earlier. Beware, though: as its configured, it will run on any branch. We can limit it, though, to avoid autocancelling workflows on our `master` branch.

```yml
on:
  push: []
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
    - uses: rokroskar/workflow-run-cleanup-action@v0.2.2
      env:
        GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
      if: "github.ref != 'refs/heads/master'"
    - uses: actions/checkout@v2.0.0
    ...
```

Note the `if:` part. I won't go into too much detail here, but we can conditionally run some steps based on the `if:` key. In this case, we're telling GitHub Actions to ignore this step if the current branch is `master`. You could add other branches, depending on your own workflow, but I hope you get the idea. Don't forget to check [the repo][repo] for more info.

So, in any case, thanks [Rok Roškar][rokroskar] for your work on this action!

[actions]: https://github.com/features/actions
[marketplace]: https://github.com/marketplace/actions/workflow-run-cleanup-action
[repo]: https://github.com/rokroskar/workflow-run-cleanup-action
[rokroskar]: https://github.com/rokroskar
How to Upgrade PHP 5.6 to PHP 7.2 on CentOS 6-7
Tags: linux, centos
Published: 2020-03-05 09:11:07

I’ll show you how to upgrade PHP 5.6.xx which is by default installed by Vesta CP during installation to PHP 7.2.xx latest, I’ve tested on many server before writing this tutorial and its just working fine without any issue hence it is safe to upgrade to PHP 7.2, part of this tutorial is copied from remi repository.

Why upgrade to php 7.2 –  Because it will give you security & performance boost + KICK, since WordPress will load much faster and uses less resources.

STEP 1 :

Install Remi Repository and EPEL Repository on your server :
RHEL 7

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
subscription-manager repos --enable=rhel-7-server-optional-rpms

RHEL 6

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
rhn-channel --add --channel=rhel-$(uname -i)-server-optional-6

CentOS 7

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

CentOS 6

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

STEP 2 :

After you have installed repository you need to follow some extra configurations :
Run this command one by one for RHEL or CentOS

yum install yum-utils
yum-config-manager --enable remi-php72

 STEP 3 :

Now just run this command :

yum update -y

You’ll see php packages are getting updated, After the update process you need to restart Apache server/php-fpm-(nginx) and check the php version from by below mentioned command:

php -v

[root@server ~]# php -v
PHP 7.2.7 (cli) (built: Jun 20 2018 08:21:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Hi! 🙃
Tags: firstpost, welcome, hello
Published: 2020-03-05 09:00:04



Hi! I'm Marco, i'm Software Architect and i live in Rome. I'm devoted to the [Open Source](https://en.wikipedia.org/wiki/Open_source) philosophy and i love music, travel and solve complex problems mixing technologies and methodologies. 

This is my first of more (i hope) posts on [dev.to](http://www.dev.to). I've a lot of experience gained in the IT consulting and look as most of us "*i've seen things that you humans ever imagined it!*" 🤯

My intent is to share my knowledge with the community, **create positive connections**, and help some other IT brothers to solve problems or simplicly give them another point of view. 

At this purpose all the **posts** it will be **short and concise**, i wouldn't want your boss to take you back while you read long and boring articles 😜

Soon my first technical article, so stay tuned and happy coding! 👩‍💻 👨‍💻

So, if i need to choose a song for celebrating my first article it be 
{% spotify spotify:track:0bVtevEgtDIeRjCJbK3Lmv %}

Feel free to reply!
Avoid these 5 common coding interview mistakes
Tags: java, tutorial, career, computerscience
Published: 2020-03-05 08:59:53

Over 90% of people make these 5 common coding interview mistakes that reduces their chance of getting hired at top tech company.

In this video, you will learn how to avoid these mistakes and succeed at getting job offers from top tech companies like Google, Amazon or Microsoft.﻿

1. So you can master those things
2. You can avoid the most common pitfalls that people make in such interviews.

{% youtube DPGXJ3PNaDc %}
Accepting Linkedin invitations through javascript
Tags: javascript, webdev
Published: 2020-03-05 08:56:09

Hey guys,
       Everyday many people gets lot of linkedin invitations and we have to accept it them manually. And i got an idea to automate such things. 

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

<b>First step:</b>
 Get the className of that button

For accepting invitations, the accept button classname is <code>invitation-card__action-btn artdeco-button artdeco-button--2 artdeco-button--secondary ember-view</code>

For rejecting invitations, the reject button classname is <code>invitation-card__action-btn mr2 artdeco-button artdeco-button--muted artdeco-button--2 artdeco-button--tertiary ember-view</code>

<b>Second step:</b>
 Open console, enter the code
<div class="highlight"><pre class="highlight"><code>var x = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--2 artdeco-button--secondary ember-view");
for(var i=0;i < x.length;i++)
{
x[i].click();
}
</code></pre></div>

<b>FYI</b>  This trick even works on Instagram too
Usage of ReCAPTCHA v3 in Asp.Net Core MVC Project
Tags: aspnetcore, mvc, recaptchav3, recaptcha
Published: 2020-03-05 08:48:25



Hi All, 
This is my first English post. So there can be some grammar mistakes in post, sorry about that in advance.

In this post, I will explain what is the difference between ReCAPTCHA v2 and v3 and how to use ReCAPTCHA v3 in Asp.Net Core MVC project.

ReCAPTCHA v2 requires a user interaction from user, such as clicking the ReCAPTCHA button to proof that you are a human. But ReCAPTHCA v3 will never interrupt your users. Google Api generates a score from 0 to 1 in v3. It means that generated score near to 0 (e.g. 0.1 or 0.3) is a bot, however generated score near to 1 is a human. Thus, according to the score, you can make a desicion that your form will be submitted or not.  

You can integrate ReCAPTCHA v3 easily in your project. You need two keys(secretkey and sitekey from Google). You can give these keys with your google account. You can find information how to integrate in your code. And than save to your domains where you want to use ReCAPTCHA v3.

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

I'm created a simple example project using ReCAPTCHA v3 in [Asp.Net Core MVC.](https://github.com/Huseyin6/reCAPTCHAv3Example)

I hope that this help you. For more information, you can look [Google Document](https://developers.google.com/recaptcha/docs/v3)
React Bubble
Tags: react, frontend, javascript, healthydebate
Published: 2020-03-05 07:47:23

Someone recently asked here on DEV if there is any frontend job which doesn't ask for React. In the area where I live, I'd say that 95% of the companies are asking for React skills.

Is this a good or a bad thing?

I would like to hear community thoughts on this.

Is React a "bubble"?
How to run your first React Native App on macOS for iOS devices
Tags: reactnative, beginners, tutorial, programming
Published: 2020-03-05 07:40:24

---
title: How to run your first React Native App on macOS for iOS devices
published: true
description: A get started guide to run react native app
tags: reactnative, beginners, tutorial, programming,
cover_image: https://reactnative.dev/blog/assets/oss-roadmap-hero.jpg
---

I am currently working on React Native Apps and I thought to share the steps I do when I create a new React Native App through Xcode.

*P.S. This guide is only for macOS users and target OS is iOS device.*

##Step 1: Installing Node and Watchman

Official guide suggests to use `Homebrew` to install `Node` and `Watchman`. So first thing first, run this command to install **Homebrew**

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```

After brew is installed, run these commands to install `Node` and `Watchman` respectively.

```
brew install node
brew install watchman
```
*Make sure you have 8.3 or newer version of node.*

##Step 2: Installing Xcode

Open your **AppStore** and search `Xcode` to install. Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.

We shall also need to install the Xcode Command Line Tools. 
+ Open Xcode.
+ Choose "Preferences..." from the Xcode menu.
+ Go to the Locations tab and install the tools by selecting the most recent version in the Command Line Tools dropdown.

And to install an iOS simulator.
+ Open Xcode.
+ Choose "Preferences..." from the Xcode menu.
+ Go to the Components tab and download a simulator you want to use.

*Yass! we are half way through to run a new app.* ✌️

##Step 3: Installing CocoaPods

In official guide they used gem to install `CocoaPods`, run this command
```
sudo gem install cocoapods
```

if "gem" command dont work for you used this command instead.
```
brew install cocoapods
```

##Step 4: Creating a new Application

Now all the dependencies are installed and we can create our new Application. Run this command to create new React Native App

```
npx react-native init AwesomeProject
```
This will create a new project named *AwesomeProject*. 
If you used "gem" to install `CocoaPods`, you would also need to run `pod install` command to install all the dependencies.

Wow! We are almost done. 👏 
Here I am mentioning 2 ways to run React Native App.

### ✅ Running App through Command line

+ First navigate to project folder.
`cd AwesomeProject`
+ then execute this command to run App in simulator
`npx react-native run-ios`

This will open your App in simulator shortly. 🎉 🎊

### ✅ Running App through Xcode

+ Go to your App folder, then go to ios folder. You'll see a file named `AwesomeProject.xcworkspace`. 
+ Open this file and it will open your App in Xcode. 
+ Select the desired simulator and click the ▶️ button to run your App.

and Tadaaa!! 🎉 🎊
How quitting my first job in IT showed me who I am
Tags: resignation, firstjob, reflection, junior
Published: 2020-03-05 07:37:31

Which type of junior developer are you? That type shyer or more talkative? More proactive or reactive? I was thinking about that today. I was thinking about how I could define myself to other people. Which are my skills? My weakness?

Doing my work resignation I could find the answer to my questions. In my last week, my manager asked me to document a few projects I participated, including existing problems and how to solve them. My first thought was to refuse that task. "What am I going to write? I am just the junior developer!" But I couldn't reject that task. 

So, I started doing a review inside my mind about everything I had done for the company. Suddenly, some ideas started appearing. I thought about how I was responsible about Google Tag Manager project and how it was important to me. It was my first responsibility at work. I was the first to write a documentation about how to use JS linters in our projects. Like pulling out of a hat, I started writing about several important contributions I had done.

Probably, my manager didn't expect to inspire me a reflection. As a consequence of his task, I finally notice my importance and the relevance of my work. Writing that I notice how many things I have done in a period of 1 year and a half! The importance of this discovery for me is huge. I always think about my decision to give up from a History Research career to a Front End developer career. Sometimes it's tough to not imagine how could be my life if I didn't change my profession. 

Turning back I could prove to myself one more time that I have done the right decision and more. I identified that I had my own space inside of an experienced team. Our relationship was so nice, most of them dedicated time to listen to my ideas and support me when I would like to do something new. They were open to hear what were my concerns and ideas about problems.

Definitely it was a very good way to learn and get experience. So, based on my analysis I concluded that I am a persistent talkative stubborn dedicated passioned nerd junior front end developer. Perhaps too many adjectives, but nobody can be described using only one adjective, right?! 

To be honest with you, the propose of this article is to save this text/findings for me. I want to read it on those moments that I would feel tired of the work, that I'm not good enough, and to not forget about my starting. This is a good professional moment to be and I would like to share my findings with you. 

I learned a few things that can be shared with others when starting a new career. First, get support from your team, their help is fundamental for us in the beginning.  Second, try to find your space, something you can do and show to others you're there as part of the team.  Don't be shy to share your opinion, you're a team member and people are going to listen to you. Don't be shy to ask, nobody knows everything. I'm sure these lessons are crucial for your professional growth, as it was for me.
How to remove a link from Google search
Tags: seo
Published: 2020-03-05 21:09:55

---
title: How to remove a link from Google search
published: true
date: 2020-03-05 00:00:00 MST
tags: seo
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/kabo7httkr6m0y5qm3fi.jpeg
canonical_url: https://developerbacon.ca/articles/how-to-remove-a-link-from-google-search/
---

> **Disclaimer**: You have to own the domain of the URL that you would like to remove from Google.

## Google Search Console

Before beginning this tutorial you will need to set up your [Google Search Console](https://search.google.com/search-console/about) account with the domain property that has the link you would like to remove.

## Step 1: Select your domain property

Once you have an account setup you can select your domain property. This has to be the same domain from the URL you wish to remove from Google Search.

![The list of domain properties from Google Search Console of Developer Bacon](https://dev-to-uploads.s3.amazonaws.com/i/1hozgnhkl0lbknx8iwn3.jpeg)

## Step 2: Goto Index then Removals

Once you have selected your domain on the left sidebar under Index select removals, and you will see where the list of links.

![The top section of the navigation menu from Google Search Console](https://dev-to-uploads.s3.amazonaws.com/i/k972c1uiu73h75jd2hls.jpeg)

## Step 3: Click new request and enter the URL

To finish this off just hit New Request and enter the link you would like to remove in the input field and hit next.

![The form to remove a link from Google Search results](https://dev-to-uploads.s3.amazonaws.com/i/0uevgfjnogilf592k89b.jpeg)

## Step 4: Now to play the waiting game

After you have submitted the link you would like to remove, I've seen it take anywhere from 10 minutes to a few hours for the link to be removed from Google Search results.
Builder.ai fuels Middle East Digital Transformation with New Dubai Office Opening

Tags: engineerai, builder, digitaltransformation
Published: 2020-03-05 06:38:29

Builder.ai  (formally known as Engineer.ai), the platform that lets anyone build apps and software without knowing how to code, announced that it has responded to the massive potential for digital disruption in the Middle East by opening a new office location in Dubai. 

Builder.ai is now in an optimal position to help its customers in the region easily and cost-effectively develop their software ideas and go to market sooner with its human-assisted AI. This move underscores Builder.ai’s rapid international growth, now operating in five locations including London, Los Angeles, Delhi, Tokyo and Dubai, with 275 employees around the world.

Mr. Sachin Dev Duggal, co-founder and CEO of <a href="https://medium.com/@aliamalhotra/sachin-dev-duggal-co-founder-of-engineer-ai-interview-8943adacf9b8">Engineer.ai</a>, said, “Our research shows that there are a lot of up and coming businesses in the Middle East that want to elevate their digital footprint to better serve their existing customers and expand their base internationally. 

In fact, the cross-border data flow connecting the Middle East to the other countries around the world has increased by a multiple of 150 in the past decade. This region has been an under served market and is ready for a platform that can digitally amplify its businesses. There is a massive opportunity for Builder.ai in the Middle East to support and inspire startups to build their digital ideas.”

Read Full Article @ https://technuter.com/artificial-intelligence/builder-ai-fuels-middle-east-digital-transformation-with-new-dubai-office-opening.html