Posts

NYSE Historical Stock Price Data From Quandl

Image
Quandl is a great resource for historical stock price data. I thought I'd pull some meta-data out of the "Wiki EOD Stock Prices" data set in order to help future developers.

First, here is the table structure I used to insert the CSV flat file into SQL Server:

CREATE TABLE [dbo].[SymbolHistory](
[ticker] [varchar](5) NULL,
[date] [date] NULL,
[open] [decimal](16, 6) NULL,
[high] [decimal](16, 6) NULL,
[low] [decimal](16, 6) NULL,
[close] [decimal](16, 6) NULL,
[volume] [decimal](26, 15) NULL,
[ex-dividend] [decimal](22, 18) NULL,
[split_ratio] [decimal](21, 19) NULL,
[adj_open] [decimal](25, 18) NULL,
[adj_high] [decimal](25, 18) NULL,
[adj_low] [decimal](25, 18) NULL,
[adj_close] [decimal](25, 18) NULL,
[adj_volume] [decimal](25, 18) NULL


Second, here is a list of all 3,194 NYSE symbols in the Quandl flat file as of 2017-11-06, and the min and max dates that they appeared.

https://gist.github.com/aaronhoffman/9ef359cbf39f2eefdf50fbd82f5d368a





Hope this helps,
Aaron


Generate Random AES Encryption Key

Image
I was looking for a way to quickly generate a random AES key online, but couldn't find anything. I looked into a couple methods using JavaScript, but determined that a C# solution would be better.

I needed to base64 encode the key array to store that value in a config file.

Here's the code I ended up with:
https://gist.github.com/aaronhoffman/09b56f77a95205fe10365bde2f4a02e5




Hope this helps!
-Aaron



Sync Gmail Contacts Between Accounts

Image
For the last few years I've needed a way to easily sync contacts between gmail accounts. The only method previously supported by Google is to export to csv then re-import the contact list.

This may work for some, but clearly there is a desire for something else.


I finally found some time to dig into the Google Contact APIs and created a site to perform this sync operation easily, without needing to install any software:

https://www.gmailcontactsync.com/







Steps to sync:

 1. Authorize your gmail account
 2. Link an second gmail account (up to 5 currently)
 3. Compare two accounts to see which email addresses and phone numbers will be created.
 4. Click the Sync Accounts button to initiate the sync! It's that easy!



Hope this helps,
Aaron


links:
product hunt





Hide Main Menu for Visual Studio 2017

Image
To improve my development experience, I disable as many windows and toolbars in Visual Studio as possible. The one toolbar that you can not disable via the IDE itself is the "main menu" toolbar (File, Edit, View, etc.).




There is an extension that I've used in previous versions of Visual Studio that hides this menu until the user presses the `alt` key. Here is a link to that extension in the gallery:

old -- https://marketplace.visualstudio.com/items?itemName=MatthewJohnsonMSFT.HideMainMenu -- old


For whatever reason, that extension does not appear available in 2017, so I've published my own extension to complete the same task: https://marketplace.visualstudio.com/items?itemName=AaronHoffman.HideMainMenu2017


I will gladly take mine down if Matthew Johnson ever updates his extension.


Hope this helps!
Aaron