AKRONE.COM
Posts From 2018
05/02/18 - Paul Reese...
paul reese quote:
Reflecting on 40 years of running and racing, I've come to the realization that the most important consideration about running is not how fast you can run, not how far you can run, but rather, the degree and manner in which running and racing enhance your life. That is the sum and substance of the worth of running. Having said that, I would venture to guess that very few runners either think or dwell on such enhancement. Their energies, their thoughts, are directed to times, PRs (personal records), races, mileage, gear, and the eternal search for the perfect shoe. I plead guilty to having done much of that when I was competing. Maybe the realization and appreciation of enhancement dawn only after a person has suffered the loss of running and racing. While active, we're just too damned obsessed with the inconsequential to recognize how privileged we are, how running and racing enhance our lives. One thing for sure, if you lose running and racing, you had better be able to devise ways to compensate because you will have a huge void to fill when you come to realize how running enhanced your life." Paul Reese, 2004
04/30/18 - No More Logging Off
Just thinking aloud. It occurred to me that through cookies, ad banners, applications themselves (i.e. apps) and lots and lots of javascript embedded in pages throughout the internet it is VERY difficult to browse the web without traces of data left permanently behind in logs that are aggregated into massive databases that can literally track you daily routing.

If you are like me, you have a smartphone and you use your phone in the morning and throughout the day. Even if you are not logging on to Bing, Google, Microsoft, Facebook or Amazon there are literally BILLIONS of ads in aps, webpages, embedded in emails, etc that track and create a picture of an individuals behavior for the express purpose of "advertising".

-Andy
04/05/18 - Loading Random Pages in "Context"
Hello,

Working on a project called "Kiosk Mode" to display live information on an information Kiosk much like people see in an airport. One of the challenges is streaming real time data from a reputable weather source like weather.gov. Using an "App" or third party tool creates the potential for failure and users will then see something like "error, unavailable" or having to pay a fee and dealing with a middle man.

So, here is the php solution to get the temperature and visibility direct from weather.gov. This method can also be used on XML or RSS feeds. Note the "method" and "header" being sent with the "$options" array". The script below is accessssing "weather.gov" using "GET" and that it is "Mozilla/59.0". The data the php code is requesting is the Airport code "KSFO" (San Franscisco Airport). The last four lines using "explode()" are just pulling the actual numbers we want rather than the entire page.

-A

	$options = array(
	  'http'=>array(
		'method'=>"GET",
		'header'=>"Accept-language: en\r\n" .
				  "Cookie: foo=bar\r\n" .  // check function.stream-context-create on php.net
				  "User-Agent: Mozilla/59.0\r\n"
	  )
	);

	$context = stream_context_create($options);

	$url = "http://w1.weather.gov/xml/current_obs/display.php?stid=KSFO;

	$page = file_get_contents($url, false, $context);

	$temp1 = explode("", $page);

	$temp1 = explode("", $temp1[1])[0];

	$vis1 = explode("", $page);

	$vis1 = explode("", $vis1[1])[0];
03/28/18 - Blockchain West Coast Conference
Hi All,

Just returned from the "BlockChain West Summit and Trade Show" (https://blockchainwest.com/san-francisco-2018/) . Lot's of discussion from Military, Government, Initial Public Offerings, to an ATM that provided the ability to buy crypto-currency.

Lot's of Hype to be honest but it was nice to see IBM with a completely functional BlockChain product in production and being used by a Foreign Currency Trading Platform KlickEx. Most of the participants were "about to use" or "looking to implement" a blockchain of some kind.

HyperLedger (https://www.hyperledger.org/) looks to be the largest open source Enterprise based open source platform. Most of the conference participants fell into three groups: 1). pushing a new "app" that involved blockchain/cryptocurrency (most were a completely unrealistic). 2). Very Technical and Theory based discussions on the feasibility of "poc's" (proof of concepts) or 3). Curious to how the blockchain technology might impact their particular sector/industry.

I think crypto currencies gloss over why a stable central authority has existed with standard currencies in the past. I prefer not to call the US Dollar "Fiat" currency but this was the description of money held or backed by a national government. Probably most insightful was Bob Tapscott's observation that Bretton Woods (https://en.wikipedia.org/wiki/Bretton_Woods_system) while old, is a fundamental part of current day commerce and trading. Illicit activities seem to be why a lot of people use crypto currencies and this was also sort of ignored. Blockchain has now been around since 2009 so I would also argue with most of the speakers who tout the technology as "cutting edge" or in "first generation".

I think we will see a downhill slide for the vast majority of crypto currencies while only a few will remain. What is left will also not be largely adopted because most people either do not care or are not interested in the volatility and future unknowns surrounding said currency. Unless of course a person/group is looking to do something illicit or in secret.

Finally, I think the value is in small private blockchains that may have expiration. Some data does not need to be saved forever, this goes against the everything for ever mantra of the internet but Business is not always interested in "forever" ledgers.

-A

03/26/18 - Updating posts with $_POST and zero mysql
While not the most eloquent I think this page can get kudos for most "simple"

I can load a file to update using a basic form all secure with a $_SESSION variable.

//updates a file
if($_POST['update']){
	file_put_contents ($_POST['filename'], $_POST['text']); 
	$contents = file_get_contents ($_POST['filename']);
}

//actually loads the file
if($_POST['load']){
	$contents = file_get_contents ($_POST['filename']);
}

//creates a new php file, one for each post
if($_POST['create']){
	$page = fopen($_POST['filename'], "a");
	fwrite($_POST['filename'], "empty");
}


//deletes files...
if($_POST['delete']){
	unlink ($_POST['filename']);
	echo "deleted";
}
02/22/18 - Blockchain Technology Is Here To Stay
Still doesn't answer "what is it" but still a good article? https://www.robertherjavec.com/blockchain-technology-here-to-stay/
02/22/18 - Site Update
I got tired of losing my blog to never ending updates and requiring this website to have a database seemed ridiculous. Word press is cool but it has gone too much with aesthetic. Also just mirrored andrewkrone.com to akrone.com. and less with the content for my needs.

All The Pages...