Posts

Showing posts from 2019

Redirect users to new URL based on current URL

Image
I'll be using JavaScript and the new feature called URLSearchParams for creating a new url out of the current URL and forward the user to it. Why? My use case was to forward my users to Google Play Store on Android using a link shared through Unity Android application. Now the Play Store link or Market link will not be detected as a browser request but regular text. Market link looks like this: market://details?id=com.shiftescape.meowity&referrer=EFFX This link when opened in computer web browser will lead to nothing. When opened in Google Chrome it would rather make a search. Only other solution is to force the user's browser to open link and not do a search. For this we'll be making a little website which will forward any visitor to our modified link retaining their referral code. Initial Setup XAMPP server installed and Apache module running. For running our JavaScript code let's make a new web page index.html <!DOCTYPE html> <html&

Cryptocurrency mining explained for beginners

Image
With the recent shortcomings, the fate of cryptocurrency in India is still unsure. Even though various media groups have posted the Panel favours ban of cryptocurrency, the case is still pending. But if you're interested in what the Department of Economic Affairs of India has to say about cryptocurrency, you can check out the signed report and bill that will be presented to Central Government for their verdict from this link: https://dea.gov.in/sites/default/files/Approved%20and%20Signed%20Report%20and%20Bill%20of%20IMC%20on%20VCs%2028%20Feb%202019.pdf Anyway moving on to the topic in hand, since this is not a political blog and I'm not interested in pointing out the inadequacy of our ministers, let's check out how can one mine cryptocurrency and what is the future of cryptocurrency? Explaining Cryptocurrency The accountability of cryptocurrency is dependent on the miners that act as a witness to a transaction. These witnesses in return for

How to use ads.txt file in Blogspot Blog

Image
Google Adsense recently rolled out a new requirement to be met so that your ads are displayed properly. That is to use proper ads.txt file. If you have logged into your Adsense recently you would've seen the warning of earnings at risk. If you click on "fix now" you'll get to see a page where you can download your ads.txt file. If you're running a blog or website on private hosting by simply going in the file explorer of your host and upload the file in the root directory. In the case of Blogger/Blogspot, Log into your Blogger account and select the blog you want to set up ads.txt file for. In the left-hand side menu, you'll find Settings. Go to Search Preferences and under monetization enable Custom ads.txt Open your ads.txt you downloaded from Adsense.com and copy the content from this file. Paste the content the editor you get after enabling custom ads.txt See images below in case of any doubt. Settings>Search Preferences>Monetiz

How to make neon light signs in Unity 3D

Image
As part of my game, I was trying to create a whole apartment like environment. I decided to call it a motel instead. So I had to put a sign saying it's a motel( how else would people know right? ) To create the simple glowing text you need text mesh pro. It's available in Asset Store as well as in Unity Package manager. Inside Unity, go to Window > Package Manager and search for text mesh pro. Now go to Game Object > 3D Object > Text Mesh Pro Text Now enter whatever text you want and select distance field shader in text mesh pro inspector tab. See image below. Once selected you'll be able to see a number of settings under shader and can enable glow from there. I'd recommend playing with numbers here to suit your scene.  Now that you have your glowing text if you want more you'll notice they seem to be using the same shader which will cause a problem if you want glow signs in different colours. For this, we need to creat

Making Sensor Lights in Unity 3D

Image
Lighting in Unity 3D can some times get tricky. I just spent hours into making sensor lights only to come up with a very obvious solution. At first, I was using baked maps which were the primary reason for my trouble. I know it's kind of obvious but I need to state it for anyone who is struggling with the same. Don't use Baked Lightmaps if you want real-time illumination. As simple as that. I even considered lighting up the environment by real-time switching different lightmaps. Thanks to the complexity of such task I didn't do it. Finally, the solution was to use simple point lights. To give the lights better look I used emissive materials. Here are the results.         Here's how I did it. Created an empty Gameobject Light Controller and under that created two small cuboid, LightsOn and LightsOff and a point light called Bulb here. Added a box collider in Light Controller and ticked Is Trigger .   Here's the script attached to the Light Con

CODA Blogger template

Image
I have decided to make some changes to this blog and the pages that run around here. For that reason, I'm moving the content of the Theme Download Page to a blog post. I have made significant changes to the CODA theme which are not yet reflected in the version available for download below. I'll soon make it available. Not too soon though. Until then feel free use, modify or distribute the blogger template below. Follow the instructions for easy usage,  click here .  CODA Basic 2.1  is free to use the Blogger template. You are free to remove the footer link as well. Will be considered a generosity if you let the footer link remain. Download Change Log: -Added Footer. -Font changes. - Removed header navbar background. - Added Background Color. - Added Card style for posts. - Sidebar restructured. - Non-floating top navigation bar. Previous Versions: CODA Basic 2.1                               Download CODA Basic 2.0          

Galaxy Fold is here Full Phone Specifications and dimensions

Image
Samsung recently unveiled their new Samsung Galaxy Fold and it's as pretty and innovative as it's price. The 1,980$ phone will be made available for purchase in April of 2019. The phone will be featuring 2 AMOLED Display where one of which can be folded is called Dynamic AMOLED Capacitative display. Samsung Galaxy Fold with the Cover display of 4.6 inch Samsung Galaxy Fold with Dynamic 7.3 inch screen Full phone specifications are below. Dimensions: 17 mm thickness Size:  7.3 inches, 154.5 cm2 Weight Display &  Resolution : Dynamic AMOLED capacitive touchscreen, 16M colours 1536 x 2152 pixels, 16:10 ratio (~414 ppi density) and Cover display: 4.6 inches HD+ Super AMOLED (21:9) Chipset:  Qualcomm SDM855 Snapdragon 855 (7 nm) CPU:   Octa-core (1x2.84 GHz Kryo 485 & 3x2.42 GHz Kryo 485 & 4x1.8 GHz Kryo 485) GPU:  Adreno 640 Memory : Internal 512 GB, 12 GB RAM (No external memory card support) CAMERA:  Triple Camera Setup 12 MP, f/1.5-

Remove all Liked Videos on YouTube

Image
Do you find a need to remove all the video you've ever liked?  Well, you can do it but let me first be clear here that there is no coming back. Once you remove all the videos from your Liked Playlist or whatever you call it, it's gone.  Now if that is clear to you, you may proceed to login to your YouTube account and click on Liked Videos link to the left of your screen. Step 1. Then click on the Edit button to edit your Liked videos playlist. From here on you can either manually remove any video from this playlist. Or if you want to just remove all of these videos follow the following steps. Step 2. Press F12 on your keyboard and go to the console tab. Step 3. Copy and paste the following block of code in the console. var items = $('body').getElementsByClassName("pl-video-edit-remove-liked-video"); for(var i = 0; i < items.length; i++){ items[i].click(); } Hit enter and the page will refresh. Now if you'll

How to transfer your Domain to CloudFlare

Image
Cloudflare recently came into Domain Registrar Business and they're probably the best when it comes to pricing. Why? No markup. No surprise fees." That's right.  Apparently, there is not much of a service you need once you registered a domain and it pointing to right name servers.  Now in order to transfer your domain from a different registrar to CloudFlare, you need to open the dashboard on your current registrar and make sure there is no Registrar-Lock on your domain. Once confirmed you'll need to get an EPP Code which you'll be entering in the CloudFlare panel where you transfer a domain. Now when transferring a domain you need to make sure your domain is supported by CloudFlare. To check that head to TLD Policies by CloudFlare here . https://www.cloudflare.com/tld-policies/ For anyone concerned .in domains don't come in this policy yet. So if you're having trouble transferring a .in domain to CloudFlare there is no way to do it as of

Samsung Galaxy M20 and M10 GSMArena Full Phone Specifications

Image
Samsung recently announced two new phones that'll target the budget phone market for them. Samsung Galaxy M20 will be sold starting at 10,990 Indian Rupees and Samsung Galaxy M10 will be starting at just 7,990 Indian Rupees. The sale will go live at 5th of February, 2019 at 12pm at Amazon.in Here are full phone specifications from GSM Arena on both the phones. Model Samsung Galaxy M20 Galaxy M10 Launch Announced 2019, January 2019, January Status Coming soon. Exp. release 2019, February 5 Coming soon. Exp. release 2019, February 5 Body Dimensions 156.4 x 74.5 x 8.8 mm (6.16 x 2.93 x 0.35 in) 155.6 x 75.6 x 7.7 mm (6.13 x 2.98 x 0.30 in)

Why a one account for all Streaming Services would be a great idea

Image
Since 2011, Netflix has become one of the most powerful companies in the world, boasting a worldwide user base of nearly 150 million. Between 2011 and 2015, Netflix and other streaming services penetrated the global market so effectively that piracy plummeted roughly 50%. However, for the first time in years, that trend line is changing.  In 2018, global piracy went up. Global piracy rate is a useful indicator for the health of the streaming market because it highlights a key value of streaming providers:  convenience . Netflix proved that even in a world where piracy is accessible and relatively low-risk, users are willing to pay for convenience. No one wants to search dodgy corners of the internet to stream  The Office if they don't have to. The migration of users from streaming services back to piracy indicates that streaming services are no longer offering the same level of convenience they used to. There are two major reasons for this. The first is market segmentati

How to access Websites in Blocked in your Country

Image
The short and simple answer is to use a VPN. VPN stands for Virtual Private Network. Upon using a VPN your request to see a website is routed through a remote server located in a different country. Opera Web Browser provides free VPN server and is the easiest way to access any blocked content. You can download Opera Web Browser from their website here . To use VPN in Opera Browse follow steps below. Open Opera Web Brower. Click on Menu at top-left of the browser and open Settings. In the search on right type VPN Enable VPN by clicking on the toggle.

What's Domain Authority and how you can increase it

Image
Domain authority is one of the many factors(yet a very important one) which affects the placement of your website's content in searches. Although Search Engine Optimisation(SEO) plays a very crucial role in making your content accessible in search results Domain Authority covers an entirely different aspect. It states a level of importance of the Webpage or website, in turn describing how reliable is the website or webpage. How to increase your Domain Authority? Quality Content Search Engine Optimisation Internal Linking High-Quality Backlinks Regular Updates Avoid Broken Links To check your Domain Authority you can head to Moz website and also you can have their addon installed to keep a track of Domain Authority of any webpage you visit. Domain Authority is also a viable way to research your competition.  You'll always have a better chance over a website with lower Domain Authority compared to your website. Here's how you can increase the Domain A

I'm going to increase the visitors on my blog and here's how

Image
Up until now, I've been blogging on what so ever I feel like writing. Turns out it's not a healthy habit for blogging. As I previously explained how following a niche helps your blog it also inversely affects it if a niche is not being followed. So I plan to fix that and by posting more content on a certain topic and let the define the niche of my blog. I did my research and found that people(other bloggers) tend to interact more with posts that are SEO or blogging based. The reason is obvious to get better backlinks and traffic of the same niche. I plan to do it by doing little research on similar web pages and mostly throw KWFinder. For those who don't know, KWfinder is an easy way for researching keywords you can target for better search result placement. KWfinder gives free five searches for a day. Also, you can do keyword research using Google Adwords.