Showing posts with label Google. Show all posts
Showing posts with label Google. Show all posts

Tuesday, March 28, 2017

Are there tools to look at financial information of the stock market in R?

I read a very illuminating article on R-Bloggers which was originally published on R-Curtiss Miller's Personal Website (https://ntguardian.wordpress.com/2017/03/27/introduction-stock-market-data-r-1/).

Ever since Microsoft SQL Server began supporting R in its 2016 version, I got interested in R language. It is extremely rich with wide applicability from Astronomy(http://www.astro.umd.edu/~harris/r/index.html) to Zoology(https://www.zoology.ubc.ca/~schluter/R/data/) and everything in between.

Financial information from Yahoo as the source, the packgae 'quantmod' brings with it most of the useful financial information about stocks. quantmod gets data from Yahoo Finance and Google Finance plus from other sources.

In order to work with financial data you should download the package which can done as shown:
------------
> # Get quantmod
> if (!require("quantmod")) {
+     install.packages("quantmod")
+     library(quantmod)
+ }
Loading required package: quantmod
Installing package into ‘C:/Users/Jayaram/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘xts’, ‘zoo’, ‘TTR’
[ I chose the CRAN site in California ]
trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.2/xts_0.9-7.zip'
Content type 'application/zip' length 662188 bytes (646 KB)
downloaded 646 KB

trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.2/zoo_1.7-14.zip'
Content type 'application/zip' length 905140 bytes (883 KB)
downloaded 883 KB

trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.2/TTR_0.23-1.zip'
Content type 'application/zip' length 432456 bytes (422 KB)
downloaded 422 KB

trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.2/quantmod_0.4-7.zip'
Content type 'application/zip' length 473601 bytes (462 KB)
downloaded 462 KB

package ‘xts’ successfully unpacked and MD5 sums checked
package ‘zoo’ successfully unpacked and MD5 sums checked
package ‘TTR’ successfully unpacked and MD5 sums checked
package ‘quantmod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\Jayaram\AppData\Local\Temp\RtmpOIHqF6\downloaded_packages
Loading required package: xts
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric

Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘quantmod’
2: package ‘quantmod’ was built under R version 3.2.5
3: package ‘xts’ was built under R version 3.2.5
4: package ‘zoo’ was built under R version 3.2.5
5: package ‘TTR’ was built under R version 3.2.5
---------------
Once it is installed. You can set up start and end dates variables for viewing your stocks like in:
start<- as.date="" br="">end <- as.date="" br="">
With these defined, you can get the Apple's stock price using its ticker symbol AAPL using the functions in the package as shown obtaining data from the Yahoo source.
> getSymbols("AAPL", src="yahoo", from=start, to=end)
To view the data just run the statement
head(AAPL)

Saturday, April 23, 2016

What is HTTP/2?

HTTP/1.0 was the protocol used in 1996 and was updated in 1999 as HTTP 1.1. HTTP/2 which does not have this version number with a decimal (it is not HTTP 2.0) was approved in February 2015 and is designed to overcome the older HTTP limitations. These are some of the benefits of using the new standard:
  • Multiplexing and Concurrency
  • No more need to establish multiple connections between Client and Server. Many requests can be sent on the same TCP connection and responses may return not in the order the requests were sent
  • Stream dependencies. Client can indicate which of the resources are more important than the others
  • Header Compression. Drastic reduction in the size of the headers by compression
  • Server Pushing without a request from the client

The HTTP APIs continue to work as that part has not changed but the application can perform better  with reduced consumption of resources.

Read the excellent information  here and here.

Most of the browsers already support HTTP/2 built on Google's SPDY (https://en.wikipedia.org/wiki/SPDY) protocol to reduce web content load latency and improving web security. Going forward HTTP/2 will supersede SPDY.

Regarding browser support, the HTTP/2 protocol is supported my most of the browsers as shown in this image taken from here.
http://caniuse.com/#search=http2


HTTP/2 and Microsoft Edge 34.14295.1000.0


Thursday, September 3, 2015

What is Web RTC?

WebRTC is still evolving although it has already made a big presence.

WebRTC stands for Web-based Real-Time Communications. It is free and the WebRTC project provides mobile applications and browsers to have communication capabilities using simple Application Programming Interfaces (APIs).  Since voice and video are involved it is complicated because of various standards it has to contend with.

WebRTC is supported by Google, Mozilla, Opera and others. Microsoft is not in the list having differences over some of the details such as Google's VP8 video codec to become the default.

Microsoft has its own web based communication which is called CU-RTC-WEB. Microsoft acquired Skype which has browser-based version of voice and video calling application and it is in Microsoft's interest to stay with evolving WebRTC.

The key resource is WebRTC.org.

Here are the components of WebRTC, a screen shot from the WebRTC site.



If you are interested in the under-the-hood details of WebRTC go here (http://www.webrtc.org/reference/webrtc-components).

Here is video of browser based communication between Mozilla and Chrome.



Read more on how the technology is evolving;
http://www.pcworld.com/article/2849392/does-skype-for-web-mean-webrtc-is-ready-for-prime-time.html

Tuesday, December 30, 2014

2014 was a mixed year

2014 was a mixed year. I lost my brother Dr. Vijaya Raghavan Krishnaswamy, a neuro-surgeon by profession. He left a void that cannot be filled.

I did not complete the book I was writing.

Regarding the blogs I did quite well with a record number of posts.
                                                 Year   Posts
Hodentek.blogspot.com           2013   94
                                                 2014   246

HodentekHelp.blogspot.com.  2013.  17
                                                 2014   56

HodentekMsss.blogspot.com   2013   34
                                                  2014  48
 
HoentekMobile.blogspot.com  2013   13
                                                  2014  

I started a new blog in 2014- http://hodentekPlus.blogspot.com.

I also found that a certain person was pilfering (http://hodentek.blogspot.in/2014/12/domain-name-service-dns-and-dns-changer.html) entire content from blog, my hardwork of about 10 years. I complained to Google without any success. I suppose this is not on Google's priority. Google wants every post that is stolen with proof of content stolen. There were over 900 posts in my blog and you can imagine the work involved.
 

Wednesday, November 19, 2014

What is DMCA?

DMCA stands for Digital Millennium Copyright Act (it is part of the US Copywrite law) and it criminalizes, "production and dissemination of technology, devices, or services intended to circumvent measures (commonly known as digital rights management or DRM) that control access to copyrighted works".

This United States copywrite law implements two 1996 treaties of World Intellectual Property Organization.

Follow Wikipedia for further details: http://en.wikipedia.org/wiki/Digital_Millennium_Copyright_Act.

According to this law you could be penalized and pay penalties for copywrite infringement on the Internet.

DMCA provides protection to online providers such as Google from copywrite infringement liability claims provided, Google and similar providers remove or disable the alleged infringing sites.
You can get more information here for DMCA related information for Google Products:
http://www.google.com/transparencyreport/removals/copyright/faq/

If you think you are the target of copywrite infringement (Let us say your blog or some picture) you could bring it to the notice of Google or the other provider so that they can take steps to remove.

How effective is this process?

Internet is big and the complexity grows each day and I am not really sure how much protection you can get. I have been the target and you can read about it here  and here.