VIRTUAL DAN

VIRTUAL DAN

Notes from my travels around the internet

VIRTUAL DAN
  • My Pacific Northwest Solar
  • About

Category Archives: Uncategorized

The End…

After over 10 years and 337 posts, I have decided to end contributing to my blog. I feel kind of sad about doing it, but I am having a hard time coming up with new topics I feel energized to write about. Perhaps I have said all I have needed to say, and there are a lot more people and platforms where people are writing, so its harder to contribute anything new to the conversation.

My journalistic endeavors won’t end completely. I still plan to write occasionally for Seeking alpha where you can follow me. If I do see something that I have to opine about, I will likely use twitter – mostly for retweets of interesting articles. But that will likely be few and far between.

In previous posts I have written about Blazor – and perhaps that is part of the culprit as to why my posts have dwindled. I am really enjoying programming using that framework – its relaxing like doing a crossword puzzle, and I find a lot of my creative energy going there. This last 10 years has taught me something – programming comes easier to me than writing. I recall a note I saw from my Grandfather who did some writing – who said something like the hardest part of writing is to put your rear end in a chair and start writing. It does take a surprising amount of motivation and energy to coalesce your thoughts and try to put them in a good (or in my case adequate) structure. I don’t seem to have that problem with programming – I can just sit down and open up a program – and the fingers just start flying.

I also plan to continue to work to try to streamline the generation of content. The articles I write for Seeking Alpha take a surprising amount of time and effort to write, and I am still trying to build out a framework for generating articles on a consistent basis. I still have hopes I can do this, after several years of trying. I also want to work more on automating content – perhaps the perfect marriage of programming and content. A simple example of this is what I do on the VFS Daily home page, which generates contest based on various events. One post I don’t think I ever got around to was the rise of computer generate news articles, which you see a lot of in financial and sports reporting. I think at some level I can create something to make it easier to create content – perhaps achieving a goal of Virtual Dan writing articles instead of the real Dan.

But for now, thanks for reading – and we will see if I can devise a future incarnation of Virtual Dan in the future.

August 3, 2021 Dan 1 Comment

Blazor Authentication Continued

Previously I posted a note on Blazor authentication and how my approach worked great. As it turns out, I think that approach was wrong and it left me at a deadend. So I thought it would be worth going deeper into what I am trying to do, and how I think my new approach will work better.

When I first design the layout and pattern for my Blazor application, I thought it was pretty straightforward. I wanted a login status bar at the top of the page showing the current logged in user, or if no usr is logged in a login button. I put my loginbar control directly in the main layout page to keep all my other pages from having to deal with it.

The problem occurred when I built a user dashboard page that I wanted to function where when that page is requested, and no one is logged in, it pops open a modal form (using Blazored Modal) and prompts the user to login. After messing with it a bit, I could get the user dashboard page to refresh after login, but could not get the login bar to update when the user logs in via this method.

After much googling and tinkering, I finally decided to deal with creating custom events to notify the controls of a login. I had been avoiding this – after working with javascript events I swore off dealing with that level of complexity on the front end. But after reading the docs, it appeared that this will be a useful tool for any Blazor project. I was really getting stymied until I stumbled upon Jason Watmore’s example on Github. That is a nice simple example of communicating between components.

I was able to adapt the example to my scenario, and it turns out to be a nice simple solution. Here is how it works. I created a ‘OnLoginComplete’ event which my login form fires when there is a successful login. I added a listener for this event to the loginbar and my userdashboard page, so when the event is fired these components wake up and refresh themselves, and reflect the username and other data important to the logged in user. Once I got the hang of it, it was quite simple.

I thought about creating an ‘OnLogout’ event, but it turns out I don’t need it. For now the only place I have a logout button is in the loginbar at the top of the page, and when that is clicked I destroy the credentials and redirect back to the home page.

After many attempts I feel like I have the right solution, and I think firing and listening for events will be handy for future projects. I took a lot of wrong turns in arriving at this solution.. but then isn’t that part of the fun of learning new languages?

APPIP ERROR: amazon-search[

]
December 9, 2020 Dan Leave a comment

Is Amazon over-over valued?

Amazon is a tough stock for a value investor like me to own – it has always been overvalued.  Yet it has been a great stock for years – up over 10 times over 10 years.  It currently is a $270 stock, with a negative 12 months earnings.  Compare that to Google – $800 stock with $32 in annual earnings, or even a Costco – a $100 stock with $4 in trailing 12 month earnings.

I decided to run some comparisons of Amazon with Costco – somewhat similar retail presence, leaders in their field, and likely to thrive in the new internet-centric economy. First, take a look at this earnings yield comparison:

amznearningsyield

It doesnt alarm me that their earnings yield has gone negative – Amazon has always been running on tight margins, investing in growth.  They are pumping lots of money into new distribution centers in many states to allow for quicker and cheaper shipping to more destinations.   However the 18 month trend of shrinking yield – caused largely by the stock price runup, has me a little worried – and when compared to a solid company like Costco, they have a lot of ground to make up.

The other chart that bothers me a little more is the revenue growth chart:

amzncostrev

Revenue growth has been shrinking – perhaps the new distribution centers will help, but you have to wonder if the glory days of Amazon’s growth is behind it.  The market certainly doesn’t think so – during this time Amazon has quadrupled:

amznprice
Amazon Stock Price Feb 2008 – Feb 2013

As much as I like Amazon the company and its future prospects, at this point I think I can find better long term value in the stock market.  Its tough to bet against this stock – its always proven doubters wrong, but maybe this time its time to get out.

February 22, 2013 Dan 1 Comment

Archives

  • August 2021 (1)
  • May 2021 (1)
  • April 2021 (1)
  • March 2021 (1)
  • February 2021 (1)
  • January 2021 (1)
  • December 2020 (2)
  • November 2020 (2)
  • October 2020 (2)
  • September 2020 (2)
  • August 2020 (2)
  • July 2020 (2)
  • June 2020 (2)
  • May 2020 (2)
  • April 2020 (2)
  • March 2020 (2)
  • February 2020 (2)
  • January 2020 (3)
  • December 2019 (2)
  • November 2019 (2)
  • October 2019 (2)
  • September 2019 (1)
  • August 2019 (2)
  • July 2019 (2)
  • June 2019 (1)
  • May 2019 (3)
  • April 2019 (2)
  • March 2019 (2)
  • February 2019 (2)
  • January 2019 (3)
  • December 2018 (2)
  • November 2018 (2)
  • October 2018 (2)
  • September 2018 (2)
  • August 2018 (2)
  • July 2018 (2)
  • June 2018 (2)
  • May 2018 (2)
  • April 2018 (2)
  • March 2018 (2)
  • February 2018 (1)
  • January 2018 (3)
  • December 2017 (2)
  • November 2017 (2)
  • October 2017 (2)
  • September 2017 (2)
  • August 2017 (2)
  • July 2017 (2)
  • June 2017 (3)
  • May 2017 (2)
  • April 2017 (1)
  • March 2017 (3)
  • February 2017 (3)
  • January 2017 (2)
  • December 2016 (2)
  • November 2016 (3)
  • October 2016 (2)
  • September 2016 (2)
  • August 2016 (2)
  • July 2016 (2)
  • June 2016 (2)
  • May 2016 (2)
  • April 2016 (2)
  • March 2016 (2)
  • February 2016 (3)
  • January 2016 (4)
  • December 2015 (2)
  • November 2015 (2)
  • October 2015 (3)
  • September 2015 (3)
  • August 2015 (2)
  • July 2015 (4)
  • June 2015 (2)
  • May 2015 (4)
  • April 2015 (3)
  • March 2015 (4)
  • February 2015 (4)
  • January 2015 (4)
  • December 2014 (5)
  • November 2014 (3)
  • October 2014 (5)
  • September 2014 (3)
  • August 2014 (5)
  • July 2014 (4)
  • June 2014 (4)
  • May 2014 (3)
  • April 2014 (3)
  • March 2014 (5)
  • February 2014 (2)
  • January 2014 (5)
  • December 2013 (4)
  • November 2013 (6)
  • October 2013 (3)
  • September 2013 (3)
  • August 2013 (4)
  • July 2013 (3)
  • June 2013 (3)
  • May 2013 (5)
  • April 2013 (2)
  • March 2013 (6)
  • February 2013 (6)
  • January 2013 (5)
  • December 2012 (5)
  • November 2012 (4)
  • October 2012 (3)
  • September 2012 (4)
  • August 2012 (3)
  • July 2012 (3)
  • June 2012 (2)
  • May 2012 (3)
  • March 2012 (3)
  • February 2012 (2)
  • January 2012 (1)
  • December 2011 (3)
  • November 2011 (3)
  • October 2011 (2)
  • September 2011 (2)
  • August 2011 (3)
  • July 2011 (4)
  • June 2011 (4)
  • May 2011 (3)
  • April 2011 (6)
  • March 2011 (8)
WEBSITE DISCLAIMER: The operator of this site (Vertical Financial Systems, Inc) are not registered investment advisers, broker/dealers, or research analysts/organizations. The content on this website is issued solely for information purposes and should not to be construed as an offer to buy, sell, or trade in any way, any security mentioned herein. All information presented on this website is believed to be reliable and written in good faith, but no representation or warranty, expressed or implied is made as to their accuracy, completeness or correctness. You are responsible for doing your own research before investing in any securities mentioned herein. Readers are urged to consult with their own independent financial advisors with respect to any investment. Neither Vertical Financial Systems, Inc, nor its officers or employees accept any liability whatsoever for any direct or consequential loss arising from any use of information on this website.
Full Disclosure: As an Amazon Associate I earn from qualifying purchases
Powered by WordPress | theme SG Simple