New Posts:

How to install Photo app in windows 10

For fixing some issue and removing unneccesary application we remove application from our system. Now we will learn about re install or installing an application using command prompt.

Please follow the below steps to know how to install Photo App in Windows 10:
1) Close the Photos app if you currently have it open
2) In the the Cortana/Search Windows box type powershell
3) Click on ‘Windows PowerShell’ when it appears – right click on it and choose ‘Run as Administrator’
4) In the PowerShell window enter the following command (tip: copy and paste will save mistakes.

Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}


First, run the following command to get the Package ID of Photos App and then use it in the 2nd command below:

Get-AppxPackage Microsoft.Windows.Photos -allusers | select PackageFullNam


Note down the Package name shown. For example, if the Package name is listed as Microsoft.Windows.Photos_16.302.8200.0_x64__8wekyb3d8bbwe, execute the next command as follows:

Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.Windows.Photos_16.302.8200.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode

This reinstalls the Photos App.
Another option to install Photos is to download it from Windows Store.
Open Windows Store from Start/Search.
In the Store App, search for Microsoft Photos and install it.
Read more

How to uninstall Photo app in Windows 10

In some case we need to uninstall any system application package from windows. To remove this application we need to go Apps & Features from settings. But this uninstall button disabled and can not uninstall this software at all.

Sometime we face error whenever we want to update system application and it return an error code again and again. For this issue fixing we need to uninstall this application and reinstall it again.

Today we will be learn how to uninstall windows system application package.

I will be glad to help you with the issue you have with the computer. I understand the frustration when things don't work the way it should.
Please follow the below steps to know how to uninstall Photo App in Windows 10:
1) Close the Photos app if you currently have it open
2) In the the Cortana/Search Windows box type powershell
3) Click on ‘Windows PowerShell’ when it appears – right click on it and choose ‘Run as Administrator’
4) In the PowerShell window enter the following command (tip: copy and paste will save mistakes.
Get-AppxPackage *photo* | Remove-AppxPackage
A ‘Deployment operation progress …’ message will temporarily appear. When this goes the uninstall has finished.

You can use any package name to uninstall any application like as below. It's recommend to replace package name from "Mictosoft.Windows.Photos" to your desire package name.

get-appxpackage -allusers *Microsoft.Windows.Photos* | remove-appxpackage
The Photos app will now be gone and the Windows Photo Viewer will now be used to open your images.

Install application package in windows 10 again. Run this command again in Windows PowerShell

Add-AppxPackage -register appxmanifest.xml_file_path -DisableDevelopmentMode

Need to reinstall an application without uninstall and reinstall run this command inside power shell

Add-AppxPackage -register "C:\Program Files\WindowsApps\PackageFullName\appxmanifest.xml" -DisableDevelopmentMode

If this command not work insert this following command to reinstall all default app again

Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}

To have complete guide about install Photo app in Windows 10 click for go...

Hope this information is helpful. Please post in case you have any further issues, we are happy to help you further.
Thank you.
Read more

Gitlab push failed for Permission denied (publickey) fixing

Create a project inside gitlab and push from local pc file is a simple way before some a days. But  now some security reason held and make extra protection to submit project data in git repository.
I already faced this problem and googling a lot for solution. In this case I always try to have solution from gitlab.com or some authorized website. The process is most complex and tough. After all i follow most of them and why and how this process working can not understand at all.

I am now going to represent process of fixing this issue. First of all I make this step by step for batter understanding.


  1. Go to "Git Bash" just like cmd. Right click and "Run as Administrator". 
Read more

After installation Visual Studio can not run and show error fixing

I am using windows 10 with latest update of January, 2020. I start to learn c# and ASP.NET. I have install latest version of visual studio and select my required feature on installation time. It finish installation without any error notification and require a restart to complete installation process.

I restart and nothing happened in visual and also in task manager. I try to run visual studio from start but there have no search result about this. It make me surprise. I can detect there have something in my C: drive which take about 8 GB of storage. I search a lot and find out exact file location to run.



C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe

I double click to open and fail notification pop up in my screen.


I simply go to this provided log directory and open log to know about the error. Almost in the bottom I can find out Failed to initialize Registry Root Hive massage. I search a lot and find out many people facing problem in Visual studio but most of them are same but not exact.

I try to apply every method which i found in googling. After all i can found a solution which solve my issue and that is from Visual studio developer community. Here Ernie revealed a method which are given below.



C:\Users\[user]\AppData\Local\Microsoft\VisualStudio\16.0_[something]\vspcm & privateregistry

I applied this and now working everything without any error.
Read more

How to disable mySql strict mode

This is enabled by default, but you can disable it in one of a couple ways. First, verify which mode(s) MYSQL is running with:
$ mysql -u root -p -e "SHOW VARIABLES LIKE 'sql_mode';"
You'll need to replace root with whatever username has superuser permissions on your server (but, it's usually just root). You'll also be prompted for the password. This will print out something like this (but much prettier):
                sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,
NO_ZERO_IN_DATE,NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO,
NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Full documentation for setting MySQL modes is available on the Server SQL Modes page in the MySQL Documentation. A description of all of the modes is also available on that page.

1. To Disable Strict Mode via SQL:

You can disable strict mode on your MySQL server by running the following command on your Linode's command line:
$ mysql -u root -p -e "SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';" 
You can set other values for sql_mode as well. See sysvar sql_mode in the MySQL Documentation for a list. Then, you can verify that the mode is set by running the following:
$ mysql -u root -p -e "SELECT @@GLOBAL.sql_mode;"
or

2. Disable Strict Mode via my.cnf:

Disable it by setting your own SQL_MODE in the my.cnf file, then restart MySQL. The my.cnf file can be found in one of a few locations (depending on which distribution you're using). The most common locations are /etc/my.cnf and /etc/mysql/my.cnf. Inside my.cnf, look for a heading like [mysqld] and then look for the value of sql_mode. It might look like this (the actual value of sql_mode may vary):
          sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
You can change the value of sql_mode to NO_ENGINE_SUBSTITUTION to completely disable strict mode, but you may want to look up each mode that is configured before disabling it. If sql_mode isn't set, you can add it under the [mysqld] heading, then save the file, and restart MySQL.
Read more

How to Change The Color of Address Bar in Mobile Browser

Do you want to change the color of your site address bar in mobile? Many popular sites and blogs are using this tricks to change the color of address bar so that in a mobile browser, it looks like a mobile app. In this post, we share some best method to apply this technique to your blog and website.

Designing and color combination is also the most important part of a blog or website to success. Address bar color convert website into native app designs. It does not have any significance but makes your blog eye-catching.

Want to Change the Address Bar Color, Why?


In the present scenario, almost all the wordpress websites are mobile responsive and when we open these mobile responsive websites in the mobile browser, it looks awesome but waits, these still look like a website.

Therefor chrome and other popular web browsers (not all) give the option to change the color of address bar so that it appears like the native mobile app. take the image below to understand it in a better way.

Step to Change Address Bar Color Using Meta Tag


In this method, you need to put a snippet of code in your site HEAD section. Copy the code given below and paste it into the <head></head> section of your theme.

Don’t edit directly your theme files (in wordpress, header.php where you will find <head></head> section). To accomplish this task, install Insert Header and Footer wordpress plugin. Just copy the code from below and paste in plugin head editor and hit save. The main benefit of this plugin is, whenever you change your wordpress theme, this code will never disappear.

For Chrome, Firefox And Opera



<meta name=”theme-color” content=”Hex Color Code” />


for example,



<meta name="theme-color" content="#00e7d9" />


Put your hex color code in the ‘content’ section of the code snippet.

For Windows Phone



<meta name="msapplication-navbutton-color" content="#00e7d9">


For IOS Safari



<meta name="apple-mobile-web-app-capable" content="yes">




<meta name="apple-mobile-web-app-status-bar-style" content="#00e7d9">


Now with these code snippet, you are capable to change the address bar color in the mobile browser and make it looks like the native app.

Read more

Make Wordpress theme copy protected


There have many process to prevent copy of Wordpress theme. Some are using licensing system to activate and some have no enough tracking system. Today we sill discuss a little trick about this. For security reason and make site 100% sure to run you need to cPanel login. For expert person it can be done without cPanel login but sensitive. If any unexpected text input here you must resolve from cPanel file manager.

Lets start. First of all we think an example given below.
Domain name: http://sokriyo.com
Theme name: templateOne
Theme folder: public_html/wp-content/themes/templateOne
Focus file:  public_html/wp-content/themes/templateOne/function.php

Code modification:
In below code sample we can notice that "sokriyo.com" is present in line number two. Replace this word with your allow domain name. If this domain not match with current site url it will show error message and not load site at all.

Now we will edit this file. From the beginning of file we can see "<?php"
after this line we need to add some code according to bellow code sample.


/**********************************************************************/
if (strpos(get_site_url(), 'sokriyo.com') <= 0){
echo "<title>Contact SOKRIYO</title><h1 style='position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%)'>Theme is corupted. Never try to copy this theme.</h1>";
exit();
}

Warning:
Take a backup of function.php file to safety. Before save be sure about your current domain name match with replaced word form code. If error message show in visit site you need to modify this code properly to replace domain name again and save before try again. If fail again and again it can be say that is not for you. Please remove inserted line and restore this file as previous and stay like as previous.
Read more