Skip to main content

Posts

Showing posts from May, 2019

Japanese new era date - 日本の新時代の日付

Since April 1, 2019, the new era name was announced for Japanese date Reiwa (令和). I came across few question by programmers regarding Japanese date and most of it was showing old era as not all user had updated their operating systems libraries. On April 25, Microsoft released packages for different Windows operating systems containing the updated registry key with the new era name. Update your device and check your registry to see if it has the new key, and then test your application. The Japanese calendar is divided into eras, and for most of the modern age of computing, system have been in the Heisei era; however, on May 1, 2019, a new era began Reiwa (令和). Because this is the first time in decades for an era to change, software that supports the Japanese calendar will need to be tested to ensure it will function properly when the new era begins. In the following sections, you will learn what you can do to prepare and test your application for the upcoming new era.

How to get the URL of the current page using C#

I have often came across a question where developer look to ways to get different page URL Below example will show you have to get different url and its segments Let us say my page URL is  http://localhost:51259/ TEST.aspx ? querystringOne=one Below is code snippet to get different segments of URL  Response.Write("<br/> 1= " + HttpContext.Current.Request.Url.Host); Response.Write("<br/> 2= " + HttpContext.Current.Request.Url.Authority); Response.Write("<br/> 3= " + HttpContext.Current.Request.Url.Port); Response.Write("<br/> 4= " + HttpContext.Current.Request.Url.AbsolutePath); Response.Write("<br/> 5= " + HttpContext.Current.Request.ApplicationPath); Response.Write("<br/> 6= " + HttpContext.Current.Request.Url.AbsoluteUri); Response.Write("<br/> 7= " + HttpContext.Current.Request.Url.PathAndQuery); Result from above code is as  1= localhost 2= localhost:51

What is Google Nest?

Nest is part of Google LLC which providers set of home automation products such as thermostats,  Cameras, Video Doorbell, Alarm Systems, Door Locks, Smoke Detectors etc.. All of these devices are smart devices which can be programmed and access via WiFi connection and controlled remotely also. One such example of smart Thermostat which learns over time what kind of temperature you like and optimizes temperatures accordingly and when connected with other sensors & phone it can control temperature and shift into energy saving mode when one is away from home. Nest Camera: Nest has range of smart cameras which can be used for 24/7 live feed and send send alerts/notifications to your phone. Nest Doorbell (Nest Hello): This is a video based doorbell which provide you with HD video and can be accesses remotely. These doorbell cameras have night vision mode with 160 degree view and other features. Nest can provide you peace of mind when combined with other products but comes at

How to upload Large videos on your twitter?

You can add large videos on Twitter either by uploading video as sponsored video using twitter feature or you can live stream prerecorded videos using periscope & Restream.io Steps to move forward 1. You need to have twitter, Periscope & restream.io account 2.  You need to link your twitter & periscope account     -    Open Pscp.tv website and login with your Twitter account     -   You need to authorize correct Periscope account to twitter account   (If Twitter/Periscope account are new then it may some time for Authorization to work as in my case I created new account for twitter & periscope and I was not able to authorize for about 30minute)         3.  Create account on https://restream.io/ and link account with periscope ( via add channel opetion)     - Select RTMP URL     - Add New Channel by clicking the add Add channel button     - Select Periscope     -  Connect Periscope account to authorize it     - Once you are authorize

How to create Whatsapp Click To Chat link

WhatsApp now offers a feature called" Click To Chat " which allow recipient of email to initiate a chat with you with just click of  button or link So how to create a link or a button? WhatsApp now offer  " Click To Chat " feature which allows you to begin chat with someone without having having their number saved in contacts. This feature is very useful for marketing enthusiast. You can add a link with your WhatApp phone number in EDM / Newsletter so that user / recipients can get back to you with a click of a button or link. How do i add button / link to my EDM / Newsletter? You can do so by adding phone number & predefined message to following link https://api.whatsapp.com/send?phone=XXXXXXXXXX&text=My Message will go here You need to remember few thing while creating this link Add phone number without without Zero's 00 or Plus + to start of phone number You also need Encode message of you can encode complete URL   https:/