how to show subscribers on youtube

You can choose to make which channels you’re subscribed to private or public. By default, all settings are set to private. 

  • Private: When your subscriptions are set to private, no other users can see what channels you subscribe to. Your account does not show in a channel’s Subscribers List, even if you’re subscribed. 
  • Public: When your subscriptions are set to public, other users can see what channels you subscribe to. Your subscriptions are listed on your channel homepage. Your account is listed in the Subscribers List for any channel you subscribe to. 

Make your channel subscriptions public or private

  1. Sign in to YouTube.
  2. In the top right, click your profile picture .
  3. Click Settings Settings
  4. In the left Menu, select Privacy.
  5. Turn on or off Keep all my subscriptions private.

Hide your subscriber count 

By hiding your subscriber count, it won’t be publicly visible to others on YouTube. You can still see your subscriber count from YouTube Studio.

  1. Sign in to your Google Account.
  2. Go to YouTube Studio.
  3. Click Settings and then Channel and then Advanced settings.
  4. Under “Subscriber count,” uncheck “Display the number of people subscribed to my channel.”
  5. Click Save.

Email not working in CI

 $this->load->library('email');

$config['protocol']    = 'smtp';
$config['smtp_host']    = 'tls://smtp.mail.net';
$config['smtp_port']    = '465';
$config['smtp_timeout'] = '10';
$config['smtp_user']    = 'apikey';
$config['smtp_pass']    = 'SG..FRzo2eJ4e6kMPH_nadeghjdddjkkDgBOaZwX6NrPYav6eEPHUM7FNpD58';
$config['charset']    = 'utf-8';
$config['newline']    = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not   
$config['wordwrap'] = TRUE;
$config['wrapchars'] = 76;  

$this->email->initialize($config);

$this->email->from('aditya@soatechnology.net', 'Laughing Adda');
$this->email->to($email); 
$this->email->subject($email_template->title);
$this->email->message($email_template->message);  

$this->email->send();

echo $this->email->print_debugger();

Multi-factor Authentication for AWS

AWS Multi-Factor Authentication (MFA) is a simple best practice that adds an extra layer of protection on top of your user name and password. With MFA enabled, when a user signs in to an AWS Management Console, they will be prompted for their user name and password (the first factor—what they know), as well as for an authentication code from their AWS MFA device (the second factor—what they have). Taken together, these multiple factors provide increased security for your AWS account settings and resources.

You can enable MFA for your AWS account and for individual IAM users you have created under your account. MFA can be also be used to control access to AWS service APIs.

After you’ve obtained a supported hardware or virtual MFA device, AWS does not charge any additional fees for using MFA.

Virtual MFA Applications

Applications for your smartphone can be installed from the application store that is specific to your phone type. The following table lists some applications for different smartphone types.

 AndroidAuthyDuo MobileLastPass AuthenticatorMicrosoft AuthenticatorGoogle Authenticator
 iPhoneAuthyDuo MobileLastPass AuthenticatorMicrosoft AuthenticatorGoogle Authenticator

source:https://aws.amazon.com/iam/features/mfa/?audit=2019q1

how to change email id in ubuntu server

By default, any email sent by system is sent to root@hostname. So critical server errors, log errors, corn jobs alerts e.t.c all are sent to this default email address. To change it to different appropriate email id, we can do this by two ways.

By updating email aliases file:

For this example, lets set email to system@mydomain.com

Step 1 : edit /etc/aliases file 

$ vi /etc/aliases

Add email ids at the bottom of the file.

postmaster: system@mydmomain.com

To add multiple email ids, we can simply separate them by comma.

postmaster: system@mydomain.com, linux@mydomain.com

linux@mydomain.com is second email id 

Step 2: Run the aliases command, to compile aliases file. 

$ newaliases

Step 3: Restart postfix server.

service postfix restart

Second way:

We can simply create .forward file to the folder root and add email address there.

$ vi /root/.forward
system@mydomain.com

Restart postfix server
$ service postfix restart.

How to change phpmyadmin url of ubuntu aws server

How to change phpmyadmin url of ubuntu aws server

http://www.domain.in/dbaditya/

this is the url

in this video we change dbaditya to newname

  1. login into server using putty
  2. cd /etc
  3. cd phpmyadmin
  4. ls
  5. sudo nano apache.conf
  6. modify this line Alias /dbaditya /usr/share/phpmyadmin
  7. ctrl + x and press y for exit
  8. sudo service apache2 restart for restart the apache service

Note: top command to show process monitor of server

q used for quit from top command window/screen

http://www.domain.in/mynewdata/
Done URL succcessfully changed

Camera doesn’t work in Windows 10

When your camera isn’t working in Windows 10, it might be missing drivers after a recent update. It’s also possible that your anti-virus program is blocking the camera, your privacy settings don’t allow camera access for some apps, or there’s a problem with the app you want to use.

Open Camera

Before you begin

Before working through the possible solutions listed, do these first:

  • Check for updates. Select Start , then select Settings  > Update & Security  > Windows Update  > Check for updates. If you see the option to View optional updates, select it to see if there are updates available for your camera. Allow available updates to install, then restart your device when it’s ready.
  • Restart your PC. If you haven’t restarted your device since the camera stopped working, you should do so. Select Start , then select Power  Restart. Waking up your device from sleep isn’t the same thing as a restart.
  • Test your camera with the Camera app. Select Start , then choose Camera from the list of apps. If you’re asked to allow access to the Camera, select Yes. If the camera works in the Camera app, the problem might be with the app you’re trying to use. 

    Open Camera

If your camera still doesn’t work, here are some other things to try. For best results, try the possible fixes in the order presented.

Check for a camera switch or button your device

Some laptops and portable devices have a physical switch or button that turns the camera on or off. When turned off, your device won’t recognize that there’s a camera installed. If your computer has a switch or button, make sure it’s in the on position before using your camera.

Check your settings

Give your apps permission

If you recently updated Windows 10, you might need to give apps permission to use the camera. In newer versions of Windows 10, some apps don’t have default access to the camera. 

To let your device access the camera, select Start , then select Settings  > Privacy  > Camera . In Allow access to the camera on this device, if Camera access for this device is turned off, select Change and turn on Camera access for this device

Allow access to the camera on this device

Note: If camera access for the device is turned off and you can’t select Change, you’ll need an administrator on the device to turn on camera access for you.

Before any app can access your camera, make sure camera access is turned on for apps in your user account. Make sure that Allow apps to access your camera is turned on. 

After allowing access to the camera, go to Choose which Microsoft Store apps can access your camera and turn on camera access for the apps you want. Only apps installed from the Microsoft Store will show in this list. 

If you installed the app from the internet, a disc, a USB drive, or your IT administrator installed the app for you, it might not be a Microsoft Store app. To check, go to Allow desktop apps access to your camera and make sure it’s turned on. Many video conferencing apps, like Microsoft Teams, are desktop apps that require this setting to be turned on.  

To learn how you can configure your camera privacy settings in Windows 10, go to this Windows Community (in English) page.

Check your antivirus software

In your antivirus software settings, look for settings that block access to your camera or permission to use your camera. For help, visit your antivirus software company’s website. 

Check your hardware drivers

Try a different USB port and scan for hardware changes

If you’re using an external camera, try using it with a different USB port on your device first. If that doesn’t work, or your camera is built-in to your device, try this: 

  1. Select Start , enter device manager, then select it from the search results.
  2. Find your camera under Cameras, Imaging devices or Sound, video and game controllers.
  3. If you can’t find your camera, select the Action menu, then select Scan for hardware changes.
  4. Wait for it to scan and reinstall updated drivers, restart your device, then try opening the Camera app again.
  5. If these steps don’t fix your issue, continue to the next steps.

Check for an incompatible camera driver

Some older cameras that were designed for older devices aren’t compatible with Windows 10. Here’s how to check if you have if your camera is compatible:

  1. In Device Manager, look for your camera under Cameras, Imaging devices or Sound, video and game controllers.
  2. Press and hold (or right-click) the name of your camera, and then select Properties.
  3. Select the Driver tab, select the Driver Details button, and look for a file name that includes stream.sys. If it’s there, your camera was designed before Windows 7 and you’ll have to replace it with a newer camera.
  4. If you don’t find a file name that includes stream.sys, continue to the next steps.

Roll back the camera driver

If your camera stopped working after an update, try these steps:

  1. In Device Manager, press and hold (or right-click) your camera, and then select Properties.
  2. Select the Driver tab, select Roll Back Driver, and then choose Yes. (Some drivers don’t provide this option. If your driver doesn’t have Roll Back Driver available, go ahead to the next fix.)
  3. After the roll back is complete, restart your device, and then try opening the Camera app again.
  4. If rolling back didn’t work or isn’t available, continue to the next steps.

Uninstall your camera driver and scan for hardware changes

  1. In Device Manager, press and hold (or right-click) your camera, and then select Properties.
  2. Select the Driver tab, then select Uninstall Device. Select the check box for Delete the driver software for this device, then select OK.
  3. In Device Manager, on the Action menu, select Scan for hardware changes.
  4. Wait for it to scan and reinstall updated drivers, restart your PC, and then try opening the Camera app again.

source : https://support.microsoft.com/en-us/windows/camera-doesn-t-work-in-windows-10-32adb016-b29c-a928-0073-53d31da0dad5

gmail smtp settings

Check Gmail through other email platforms

Set up IMAP and change your SMTP settings to read Gmail messages in other mail clients, like Microsoft Outlook and Apple Mail. When you use IMAP, you can read your Gmail messages on multiple devices, and messages are synced in real time. You can also read Gmail messages using POP.

Note: To avoid temporarily locking yourself out of your account, make sure you don’t exceed 2500 MB per day for IMAP downloads and 500 MB per day for IMAP uploads. If you’re setting up a single IMAP account on multiple computers, try taking a break between each setup.

Set up IMAP

Step 1: Check that IMAP is turned on

  1. On your computer, open Gmail.
  2. In the top right, click Settings Settings and then See all  settings.
  3. Click the Forwarding and POP/IMAP tab.
  4. In the “IMAP access” section, select Enable IMAP.
  5. Click Save Changes.

Step 2: Change SMTP & other settings in your email client

Use the table below to update your client with the correct information. For help updating your settings, search your email client’s Help Center for instructions on setting up IMAP.

Incoming Mail (IMAP) Serverimap.gmail.comRequires SSL: YesPort: 993
Outgoing Mail (SMTP) Serversmtp.gmail.comRequires SSL: YesRequires TLS: Yes (if available)Requires Authentication: YesPort for SSL: 465Port for TLS/STARTTLS: 587
Full Name or Display NameYour name
Account Name, User name, or Email addressYour full email address
PasswordYour Gmail password

What is a Noindex Meta Tag?

  1. Noindex: tells search engines not to include your page(s) in search results.
  2. Disallow: tells them not to crawl your page(s).
  3. Nofollow: tells them not to follow the links on your page.

What is a Noindex Meta Tag?

A ‘noindex’ tag tells search engines not to include the page in search results.

The most common method of noindexing a page is to add a tag in the head section of the HTML, or in the response headers. To allow search engines to see this information, the page must not already be blocked (disallowed) in a robots.txt file. If the page is blocked via your robots.txt file, Google will never see the noindex tag and the page might still appear in search results.

To tell search engines not to index your page, simply add the following to the </head> section:

<meta name=”robots” content=”noindex, follow”>

The second part of the content tag here indicates that all the links on this page should be followed, which we’ll discuss below.

Alternatively, the noindex tag can be used in an X-Robots-Tag in the HTTP header:

X-Robots-Tag: noindex

How Can I Use Noindex in a Robots.txt File?
A ‘noindex’ tag in your robots.txt file also tells search engines not to include the page in search results, but is a quicker and easier way to noindex lots of pages at once, especially if you have access to your robots.txt file. For example, you could noindex any URLs in a specific folder.

Here’s an example of a noindex directive that could be placed in the robots.txt file:

Noindex: /robots-txt-noindexed-page/

However, Google advise against using this method: John Mueller has stated that ‘you shouldn’t rely on it’.

What is a Disallow Directive?
Disallowing a page means you’re telling search engines not to crawl it, which must be done in the robots.txt file of your site. It’s useful if you have lots of pages or files that are of no use to readers or search traffic, as it means search engines won’t waste time crawling those pages.

To add a disallow, simply add the following into your robots.txt file:

Disallow: /your-page-url/

If the page has external links or canonical tags pointing to it, it could still be indexed and ranked, so it’s important to combine a disallow with a noindex tag, as described below.

A word of caution: by disallowing a page you’re effectively removing it from your site.

Disallowed pages cannot pass PageRank to anywhere else – so any links on those pages are effectively useless from an SEO perspective – and disallowing pages that are supposed to be included can have disastrous results for your traffic, so be extra careful when writing disallow directives.

How Can I Combine Noindex and Disallow?
Noindex (page) + Disallow: Disallow can’t be combined with noindex on the page, because the page is blocked and therefore search engines won’t crawl it to know that they’re not supposed to leave the page out of the index.

Noindex (robots.txt) + Disallow: This prevents pages appearing in the index, and also prevents the pages being crawled. However, remember that no PageRank can pass through this page.

To combine a disallow with a noindex in your robots.txt, simply add both directives to your robots.txt file:

Disallow: /example-page-1/

Disallow: /example-page-2/

Noindex: /example-page-1/

Noindex: /example-page-2/

What is a Nofollow Tag?
A nofollow tag on a link tells search engines not to use a link to decide on the importance of the linked pages (PageRank) or discover more URLs within the same site.

Common uses for nofollows include links in comments and other content that you don’t control, paid links, embeds such as widgets or infographics, links in guest posts, or anything off-topic that you still want to link people to.

Historically SEOs have also selectively nofollowed links, to funnel internal PageRank to more important pages.

Nofollow tags can be added in one of two places:

The of the page (to nofollow all links on that page):
The link code (to nofollow an individual link): example page
A nofollow won’t prevent the linked page from being crawled completely; it just prevents it being crawled through that specific link. Our own tests, and others, have shown that Google will not crawl a URL which it finds in a nofollowed link.

Google state that if another site links to the same page without using a nofollow tag or the page appears in a Sitemap, the page might still appear in search results. Similarly, if it’s a URL that search engines already know about, adding a nofollow link won’t remove it from the index.

In September 2019, Google announced an update to their nofollow directive and introduced two new link attributes, these are:

rel=“sponsored” – The sponsored attribute should be used to identify links that are for advertisement purposes, where sponsorship and compensation agreements are in place.
rel=“ugc” – As the attribute for User Generated Content, this value is recommended for links within user generated content sites, for example forum posts and blog comments.
In addition, all links marked with nofollow, sponsored or ugc are now treated as hints regarding which links to consider in search and when crawling, as opposed to just a signal, as was used previously for nofollow. You can find out more about this update in our post which also covers the impact of these along with expert insights.

What is Noindex Nofollow?
As mentioned above, adding a nofollow tag to a page won’t prevent it from being crawled completely. Therefore, to prevent it from being indexed, you’ll also need to noindex the page. This will allow Google to still be able to crawl the page but it will not appear in the index. Pages you will probably want to noindex include; admin/login pages, internal search results and registration pages. To stop Google crawling the page completely, you should also disallow it (see above).

Other directives: Canonical Tags, Pagination and Hreflang
There are other ways to tell Google and other search engines how to treat URLs:

Canonical tags tell search engines which page from a group of similar pages should be indexed. Canonicalized (ie. secondary pages that direct search engines toward a primary version) are not included in the index. If you have separate mobile and desktop sites, you are supposed to canonicalize your mobile URLs to your desktop ones.
Pagination groups multiple pages together so that search engines know they are part of a set. Search engines should prioritize page one of each set when ranking pages, but all pages within the set will stay in the index.
Hreflang tells search engines which international versions of the same content are for which region, so that they can prioritize the correct version for each audience. All of these versions will stay in the index.

How much time should you spend on reducing crawl budget?
You might hear a lot of talk on SEO forums about how important crawl efficiency and crawl budget is for SEO and, while it’s common practice to disallow and noindex large groups of pages that have no benefit to search engines or readers (for example, back-end code that is only used for the running of the site, or some types of duplicate content), deciding whether to hide lots of individual pages is probably not the best use of time and effort.

Google likes to index as many URLs as possible, so, unless there is a specific reason to hide a page from search engines, it’s usually ok to leave the decision up to Google. In any case, even if you hide pages from search engines, Google will still keep checking to see if those URLs have changed. This is especially pertinent if there are links pointing to that page; even if Google has forgotten about the URL, it might re-discover it the next time a link is found to it anyway.

Testing using Search Console, DeepCrawl and Robotto

Test robots.txt using Search Console
The robots.txt Tester tool in Search Console (under Crawl) is a popular and largely effective way to check a new version of your file for any errors before it goes live, or test a specific URL to see whether it’s blocked:

Right click off on website

// With jQuery
$(document).on({
    "contextmenu": function(e) {
        console.log("ctx menu button:", e.which); 

        // Stop the context menu
        e.preventDefault();
    },
    "mousedown": function(e) { 
        console.log("normal mouse down:", e.which); 
    },
    "mouseup": function(e) { 
        console.log("normal mouse up:", e.which); 
    }
});
<body oncontextmenu="return false;">
body {
    font-family: 'sf-ui-display-light';
    overflow-x: hidden;
    padding-top: 70px;
    background-color: #ffffff;
    color: black;
    user-select: none;
}