<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\758211560\46blogName\75Tech+Tips,+Tricks+%26+Trivia\46publishMode\75PUBLISH_MODE_BLOGSPOT\46navbarType\75BLUE\46layoutType\75CLASSIC\46searchRoot\75//mvark.blogspot.com/search\46blogLocale\75en\46v\0752\46homepageUrl\75http://mvark.blogspot.com/\46vt\75-4353428196867372024', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
A seasoned developer's little discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks

Reasons to implement Always-On SSL

Monday, August 31, 2015
8 great reasons to adopt Always-On SSL - paraphrased from this PDF that could well have been an online article

  • Google will enhance a HTTPS based website's SEO ranking as it now uses that as a ranking signal
  • Google is recommending that browsers warn when the connection is insecure..and you can't be on the wrong side of Google if you want a website to be popular
  • Users are more at risk than ever as they become more mobile
  • SSL is now fast
  • It stops an invoked web page from leaking information via referrer headers
  • You can now enforce it by baking HTTPS into the browser -  HTTP strict transport security (HSTS)  preload list is a list of sites that are hardcoded into Chrome as being HTTPS only
  • Ad networks now comprehensively support SSL
  • SSL certificates are easier than ever to obtain
Also, ISPs may not be able to inject ads or tracking code into a web page (although a Chrome extension can still can)


This Week I Learned - Week #125

Sunday, August 30, 2015
This Week I Learned -

* Currently (article updated on Apr 27, 2015), SAP does not support its applications on the Linux guest operating system.

* Azure Site Recovery (ASR) provides a comprehensive disaster recovery solution suite.  Typical RPO with ASR should be approximately 15 minutes or less, an RTO of 5-60 minutes and a very quick and effective way to do a Disaster Recovery Test.

Project Gutenberg now allows selected ebooks to be copied directly to Dropbox, Google Drive, OneDrive

* You can save a webpage as a text file in Internet Explorer but not Chrome

* According to LinkedIn data, liberal arts grads are joining the tech workforce more rapidly than technical grads.

* Cartoonist Hugh MacLeod’s Illustrated Guide to Life Inside Microsoft has illustrations that represent the new Microsoft

In the West, public transport authorities give two kinds of feeds: one being a fixed schedule of trains and buses and the other being a real-time feed which gives information about where a particular vehicle exactly is at any given time. But when it comes to India, a lot of groundwork needs to be done. Both types of feeds from transport authorities mentioned above are non-existent. Transitpedia is an Android app that allows users to conveniently search local public transport details of Mumbai, Pune, Delhi (currently).

* "..trying to remove your data from the web is “like trying to remove pee from a swimming pool”

* "I am an old man and have known a great many troubles, but most of them never happened" - Mark Twain


Azure Questions & Answers - 2

Wednesday, August 26, 2015

1. What is Azure Cloud Service & the usefulness of it?

Cloud service is a term that means more than one thing, but in summary it's a logical group.

There's also Worker and Web Roles that usually are referred as Cloud Service too. So, what is Cloud Service, depends on context.

Cloud Services are ways to combine a set of stateful virtual machines (or web/worker role instances, which are stateless virtual machines) into its own private network, sitting behind a public virtual IP address. Cloud service is a management and security boundary for VMs

Cloud Service also provides optional load-balancing between the virtual machines

Originally, the cloud service was a network isolation container into which compute resources are placed. It is used for Azure PaaS and IaaSv1 resources. Its considered "legacy" and is not present in Azure's IaaSv2 which is based on the new Azure Resource Manager model

v1 is the version of IaaS that was launched in 2012. IaaS v2 uses Azure Resource Manager (ARM) API's

2. What are the different ways in which Traffic Manager decides to which endpoint to route traffic?

  • Round-Robin
  • Failover
  • Performance

3. What is the maximum bandwidth provided by ExpressRoute?

1 Gbps when a Network Service Provider is used and 10 Gbps with an Exchange Service Provider

4. How many data drives can you attach to a Standard_G5 VM (the biggest size in the series)?

64 data drives which can provide the maximum IOPS of  32000 (64 X 500)

5. While considering lifting and shipping existing applications to Azure VMs, what are the challenges to prepare for?

Reliability, availability, security, and performance are all important concerns.

Especially, because Azure provides SLAs only if there are at least two VMs in an Availability Set, to ensure availability, you’ll need to deploy the application to at least two VMs and join them behind a load balancer. This might immediately cause some problems because not all applications are designed for such deployment. For instance, some of the legacy systems are designed to have a single central server that handles all user transactions. When the transactions are distributed to multiple instances, you might have two centers of truth that can’t be reconciled. Data replication and customer partition are two effective approaches in some cases.

6. When you have servers running on both on-premises and the cloud, it’s almost unavoidable that you will experience some performance degradation because of the extra network latency. What code changes would you make to reduce latency?

Common techniques include introducing cache to reduce accesses to databases, using asynchronous IO operations, compressing data, sending deltas and only required data instead of complete data sets, and paging.

7. What is the difference between Upgrade Domain and Fault Domain?

Upgrade domains are similar to Fault domains in function, but they support upgrades rather than failures.

An Upgrade domain is a logical unit of instance separation that determines which instances in a particular service will be upgraded at a point of time

A Fault domain boundary is basically a different hardware rack in the same datacenter. Fault domains don't share a common power source or network switch

8. What is the difference between Access Control Lists & Network Security Groups?

You can use both network Access Control Lists (ACLs) and Network Security Groups (NSGs) to control traffic to your VMs. In either case, the traffic is filtered before it reaches your VM so that your machine doesn’t need to spend extra cycles on packet filtering.

NSGs are different from ACLs in a couple of aspects:
* ACLs are applied to traffic with a specific VM endpoint, whereas NSGs are applied to all traffic
that is inbound and outbound on the VM.
* ACLs are associated to a VM endpoint, whereas NSGs are associated to a VM, or a subnet
within a virtual network.

9. What are the different sources of images for a Azure VM?

  • Azure VM Gallery
  • VM Depot
  • Custom images

10. What is the role of Internal Load Balancers?

ILBs provide load balancing among VMs residing in a Cloud Service or a regional virtual network. ILBs (Internal Load Balancers) are not publicly accessible.

Note - Features of Azure services may change at any time.

ReferenceExam Ref 70-534 Architecting Microsoft Azure Solutions

Labels: ,

This Week I Learned - Week #124

Sunday, August 23, 2015
This Week I Learned -

* Linux now (August 2015) drives about 25 percent of the activity on Azure - Wired

* Cloud computing was invented by Amazon in 2006.  Netflix built its TV and movie business atop the Amazon cloud. Dropbox erected its file-sharing operation there. Google and Microsoft released beta versions of similar cloud services in 2008 — Google App Engine and Windows Azure - Wired

* ..you should think of Docker as a shipping container for software. Just as shipping containers give us a standard pod we can transfer from boat to train to truck, Docker offers a standard means of moving software from machine to machine to machine. If an app needs more computing power—or some of the machines running it quit working—Docker provides a way of easily spreading to new machines - Wired

Hyper-V requires a 64-bit processor that includes Hardware-assisted virtualization & Hardware-enforced Data Execution Prevention (DEP)

* The Hyper-V role is not supported on Windows Azure Virtual Machines. Microsoft supports only specific versions of Microsoft server software within the Azure virtual machine environment.

If your application needs 1 quad core processor in a physical server, you can say that it will need 4 virtual processors as a virtual machine.

* The PDF eBook version of Skype for Business User Tips & Tricks for Anyone is free to download

* The System Information tool (Msinfo32.exe) available with Windows OS. On some older versions of Windows, it cannot be invoked by typing msinfo32.exe at the command line. In such cases, it can be located at this path - c:\program files\common files\microsoft shared\msinfo

* Mark Russinovich, now Microsoft Technical Fellow, completed a computer engineering master’s degree from the Rensselaer Polytechnic Institute in New York and a PhD at Carnegie Mellon, before doing a post-doc at the University of Oregon. He specialized in the design of computer operating systems.

...future patches are going to continue to say nothing more than "This update includes improvements to enhance the functionality of Windows 10."

* ServerWatch ranks Ubuntu as the best in its list of top 10 Linux server operating systems for 2015

* India-born, Britisher, Sir Ronald Ross received the Nobel Prize for Physiology or Medicine in 1902 for his work on malaria.  After two years of research failure, he discovered the presence of the malarial parasite inside the gut of mosquito in 1897 in Secunderabad. It is Italian physician and zoologist Giovanni Battista Grassi who demonstrated that human malarial parasites were transmitted only by female Anopheles. Ross's personal vendetta with G.B. Grassi became a legendary tale in science. Ross carefully saved virtually everything about himself: correspondence, telegrams, newspaper cuttings, drafts of published and unpublished material, and all manner of ephemera

Archibald Campbell brought tea cultivation to Darjeeling

Louis Pasteur created the first vaccines for rabies and anthrax.  He is best known for his invention of the technique of treating milk and wine to stop bacterial contamination, a process now called pasteurization.  Three of his five children died of typhoid before reaching adulthood. These personal tragedies were his motivations for curing infectious diseases. Historical reassessment of Pasteur's notebook revealed that he practiced deception to overcome his rivals.

* "In the field of observation, chance favors only the prepared mind" - Louis Pasteur

JD Salinger ("The Catcher in the Rye"), Anna Sewell ("Black Beauty"),  Margaret Mitchell ("Gone With the Wind") are a few of the most celebrated authors who did not write a second novel

Some tax experts recommend filing Income Tax returns even if you annual income is below the taxable limits so that you can claim a refund in the following cases -
- you have suffered losses from stock market transactions and you want to carry it forward to the next year then you must file refund
- your employer has cut Tax Deducted at Source (TDS)
- you earned some money through freelance work and the company deducted TDS at 10 per cent. Since your income is lower than the taxable limit, you are entitled for refund.
- you are earning rental income of more than Rs 1.8 lakh per year. In this case, the tenant has to deduct TDS. So, while you are entitled to refund, if you have no other source of income, you have to file return to claim the refund

Labels: , , , ,

HOW TO copy a doc / spreadsheet from Google Docs to OneDrive without saving to local computer

1. Open the document or spreadsheet to be copied to OneDrive, within Google Docs / Drive
2. From the menu, choose File > Email as Attachment...

3. In the dialog box that opens, choose to attach the file as .docx or .xlsx as appropriate and email it to your Microsoft account

4. When the email is opened within Outlook.com, click on the button View in OneDrive to view & save that file in OneDrive to view it in Word Online or Excel Online

Labels: , ,