PS:336 – Relaxing by Coding.

So one of my side little projects of late has been the coding of tools to better keep me up-to-date on my coins – my previous post (334) I mentioned the small coding project and I think I may write a small page for it and update the code as I have updates, currently on version .04:

<?php

/****
Coins.php (v.04)

A simple API call to get the value of a coin in the user's desired currency, great for using in Google Sheets (Use: =IMPORTDATA("yoururl") or if you simply want to grab
the current value of a certain coin. Currently geared towards USD, but hope in next version to add proper currency markings for the amount conversion.


## Changelog

.01 -   First Release
.02 -   Adjustments to code & calling methods.
        Changed from XML output to plaintext for use of IMPORTDATA vs IMPORTXML
.03 -   Removed dual posting of plaintext price for import & added amount conversion.
        Commented code.
.04 -   Added Conversion for ATM without Value Text for Onion pull - Also adding $ for easier formatting on Onion curl call.
***/


//Get Data
$url = file_get_contents("https://min-api.cryptocompare.com/data/price?fsym=".$_REQUEST['coin']."&tsyms=".$_REQUEST['curr']."");
$json = json_decode($url,true);
//Check for Amount to Convert
if ($_REQUEST['atm'] != '') {
$value = $_REQUEST['atm'] * $json[$_REQUEST['curr']];
$tvalue = round($value,2);
echo "$".$tvalue;
} else {
//no amount? provide plaintext response for dollar amount.
print $json[$_REQUEST['curr']];
}
?>

Well, it’s quite handy, feel free to use it if you need to, but basically, it’s allowed me to use my Ometa2+’s OLED screen to every 5 minutes update the current value of coins! Here’s a peek:

Enjoying it a lot, really neat to look over and not have to re-open my Google Docs, just a glance and the screen presents all the goodies.

Maybe I’ll write it all up and send it over to the Onion forums, it is simple, purely informational, but thinking about maybe converting a bitcoin icon -> LCD file and place it on the right side? Long-term if the value is huge (they say it will be) then it will overlap, but for now, a bash script, php script, and a cron job give me some info at a glance.

PS:335 – Dental Day… Bleh.

Today was a day of dental work. I went in for a consult on my tooth pain to find that something I’ve been saying to 2 previous dentists, as well as my current, was true: My Tooth is Cracked.

Well, the specialist confirmed it, of course correcting me on where the crack was, and the bummer news that the nerve was dying a slow and painful death thus the reason for my some-days-pain.

So today was a root canal. I’ve had one before which wasn’t bad, but this time…. ouch. ouch. ouch. Not fun, apparently I had “two canals” in which he found one hiding behind some bone? Unless I heard him wrong. At some point I’ll be honest I was in so much pain – I cried and was ready to run away.

I survived, in fact just took my heavy hitter pain meds, so far so good, still feeling pain, but I figure at least a full 30 before they even begin to take a dent off, but the hope is it’ll let me get back to sleep.

Still, need to get a crown on it, for now, just want to rest and try and if possible get some work done. Lots to do, and I know I should rest, but just that need to knock some things off the to-do list.

Who knows maybe this weekend I’ll be running smoothly, or at least getting some much-needed rest. Night all.

PS:334 – Small Coding Project

While I’ve wrapped up a few things on the docket (foof) I took a little time tonight to write a small tweak for a project of my own related to crypto currency.

I replicated a Google Spreadsheet (link) from BiteSize Bitcoin (link) and while it was designed around my Litecoin investment, you can just as easily adapt it to handle Bitcoin or any other alt-coin you like, it simply helps log your transactions.

Now I have a much more complex version rolling now which is a single sheet for all my assets across alt-coins etc. and it contains things like the type of transaction (purchase, trade, mining) as well as some general profit statements across the board.

Now the one thing I wanted to have was a live updated current coin cost, and I used an importXML function someone posted on a video, however, it was slow & tended to time out with “too large” of a dataset to crunch so I wrote this small PHP app:

<?php
$url = file_get_contents("https://min-api.cryptocompare.com/data/price?fsym=".$_REQUEST['coin']."&tsyms=".$_REQUEST['curr']."");
$json = json_decode($url,true);
print $json[$_REQUEST['curr']];
?>

And that’s it. 3 lines to get exactly what I need, and I simply use the Google Sheets command: =IMPORTDATA(“http://domain.xxx/coins.php?coin=BTC&curr=USD”) – That’s it. With that in place and the coins.php made, when I load my sheet to record or review where I’m at – math is all done for me based upon the current rates in my currency! See the example? It’s a break down to BTC in USD currency, so the current USD for Bitcoin. Easy peasy.

Must say all and all, very happy with the code, of course back to the real world, as if I can wrap a few projects this week, I’ll survive back to school! (oi!)

PS:333 – Life isn’t easy. But God is Good.

I’m tired. It’s 3 AM on a Saturday, and let’s just say the amount of stress and things to do this week reached a point in which I was laid out after a dentist visit.

Now nothing happened other than a quick check, then a referral to get a CT scan on a tooth to see what’s going on with my poor teeth – but I came home, tried to work, and just finally ended up laying down and sleeping.

My life has been nuts this year so far, changes in finances, changes in temp, changes in me. I’m tired. I hurt. I’m not always cheerful, but God is still God, and that’s a big thing of what keeps me going.

Right now this very moment? I would rather be sleeping, but instead a break from work, I wish I could push it off, I wish I could disconnect and take a vacation, but sadly? Not in the cards for me. Instead of working through the night to early morning to pay the bills, I’d love to go on a walk, a drive, something not in front of a computer.

I know I’m on the verge of burn out again, things like a random ex-customer leaving a 1-star review and a complaint about a lost live chat session knock me down a bit more than they should, but lately my victory list seems small, so I take the short list and thank God for where I can find the good.

A better balance is needed. Not sure how I can make the changes to make life run smoother, but right now – I’m leaning on God and going to get back to work so that I can go to sleep before I see the sun rising.

 

PS:332 – No Rest. Lots to Do.

So here we are at nearly 3:30 am, seems like a rather common place for me, tonight the culprit was an old PHP app which is showing growth pains (seems to be the usual culprit, sadly its all the same collection of apps in a big website) but I solved the issue in part.

It was creating far too many elements to toss into an array in a cookie, and at some point the garbage was overwhelming and not letting the actual new info in. Easy fix? Cut it down to 100 items displayed. Now customer will likely want those additional items displayed, but for starters? It’s allowing adding/removing – hoping it doesn’t fiddle with reports, but again this thing was not built with the idea this would ever happen.

I have another website I was tinkering with tonight, however, I think I am going to wrap up, thus why I am sitting at the workstation just taking some time to chill out and write. One of the reasons I have it setup. Now granted things are wobbly, I used this as a temp desk before my door desk, but I have a few desk options in mind to build (or get lazy and buy it at IKEA) 😀

Did manage to snag a $300+ monitor for half price, and it’s very crisp, clean and so far working smoothly (writing this using it) a lot nicer than my current monitor on the other desk, but another expense for another year as I doubt the other one is going to die, and it’ll work for now 🙂

Ramblings aside? It’s been a rough couple of weeks. A lot of stress, before I dug back into the code actually just stopped – took a minute, got my bearings and dug back in completing what needed to be done TODAY. More to do later once I wake up, praying things continue to improve and get better, need less stress.

PS:331 – Crypto

So one of the big hypes out there right now is the HUGE rebirth it would seem (not that it ever really went away) of Crypto Currency, not just Bitcoin, but names like Ethereum, Litecoin, Dogecoin – and honestly? I wish those coins I mined years ago on a whim – I wish I knew where I saved the text file lol. Live & Learn I suppose, but BTC even down the last few days @ $2,493.24US for 1 BTC? Oi. Would have been nice.

I’ve done honestly a little home work, and picked up a little coin on this dip, most seem to be from what I can see a careful pull back due to changes on August 1st, but if the trend picks up after things stabilize, not thinking I’ll be rolling in money by any means, but be neat to make this investment and see if perk up after the balance.

One great place to get some solid info is BiteSizedBitCoin. Honestly? He’s got some solid info – worth a watch for some good info, but not the end all, trust me I have a folder in my bookmarks which are just full of resources.

I have a few servers actually using a CPU or two mining for a alt-coin, for which in my finds I get paid out in BTC, which for some spare CPU cycles and not hurting anything on these servers got paid a whomping 0.00104670 Bitcoin (~$2.61 USD) which is for a week of spare CPU cycles and me doing absolutely nothing.

I don’t know how far this investment path will go for me,  but if it continues to grow in any area, maybe re-invest this BTC into LTC (Litecoin) or other alt-coin and see how it takes off, time will tell!

 

PS:330 – Birthday Palooza!

So tomorrow I will no longer have a 2-year-old. No, she will be 3. How time flies and so much fun watching a little girl grow up and a personality form! Oh boy, she has quite the personality!

She does though share her day of birth with 2 others in the family, my nephew Ronnie and my cousin Sarah. Sadly we have not ever had a true mega birthday! Oh how much fun with that be!? Okay okay, may not for anyone else but myself as I think it’d be fun to really just have something awesome for the big day!

This year is mellow as the one set of grandparents are galavanting with my sis and her family. We’ve already had a wild party with her other grandparents which included hats & balloons! (she was excited!)

Not sure what the age of 3 will bring, some have warned its scarier than the 2’s but either way – I love my baby girl!

PS:329 – Brief Pause

So here we are at the end of a crazy week, another is ahead and today after a rough day with little sleep…. I get a brief pause.

Lately, with all I’m hoping to accomplish before summer is done, it has been nothing but go go go. Picking up projects, not saying “Well… not really” because let’s be honest – I’m tired of second guessing myself in what I’m capable of doing.

I’ve made some investments in my future, really working to grow, build, expand, save.  I also have a kid who may want to go to college – or a world wide tour of every Zoo. Too soon to tell at 2.99 yrs old. How time flies.

So tonight, as I’ve slept most of the afternoon that I could, I am going to try and be in bed no later than 3 AM. Have to be at Costco at noon for a cake, likely do digital service from a live stream somewhere here in town (or get wild and maybe a Church Hoster’s service! Be at the in-laws by 1, small party for LG after which she’ll probably just keep partying with Grandparents.

For now, going to sip a tea blend I made (3 black, 2 mint, 1 fenugreek) – tastes good so far! Have a happy Sunday All.

PS:328 – Days Left… or Right.

Days left (as of writing) in this year are 162. That’s it. I only have 37 days until I have written a year’s worth of blog posts. Seems workable.

Been one of those weeks. No stop. Ok, there were a few stops which I hadn’t planned on, thus why it’s 4 am and I’m still awake.

I’ve been working on TFH ideas in the background, TNLLC site ideas, and really putting together some nice finishing touches on FH.  Yes, most of that may seem like code, but typing is not fun right now. I’ve been in this chair too long today.

Next week could be similar, a lot to get done, have one project finally 50% done, I wish it was closer to 75%, but I do sleep now and again, but the goal is to wrap it up no-matter-what this week, that includes a music class, gymnastics class & a swim class for Ms. 3 years old this week 🙂 She’s a busy kiddo, a little overwhelmed by Gymnastics, but she’s learning, she’s exploring, she’s a happy kid.

So going to try and wrap things up here at 4:06 am, tomorrow there are plans to be busy, but honestly? I just want to rest this weekend, but Lilly’s Aunt is coming down, there is a party, I’m in charge of a cake, and I think pizza lol. Aka I guess I’m the food guy! So a lot to work on might as well get at least 5 hours in before I must be awake. Night all.

PS:327 – Forward.

I know You got this whole thing under control
My soul is untouchable because
You’ve already won me
My victory is not in this flesh and bone
It’s in the cross and I know
Nobody’s taking it from me

It has been a rough week. Yesterday was one of those days where everything that could of went wrong, did. I lost a couple hours of work I could have picked up. That’s a rough one because it seems like lately, the hours are less I can pick up, nothing is coming in on a regular basis.

It’s summer and I try to remember that some folks are simply just not in the “do business” mood, they are on break, they are on vacation, they are out and about. Still rough.

The above song has been playing on repeat lately, it’s just one of those reminders that this life, this flesh, and bone is indeed temporary.  I keep trying to shed stress when and where I can, even tonight here at 2:39 am – unwinding with some tea, some music, working on finishing a website for another 30 minutes, then 30 minutes on editing a video I had hoped to have edited yesterday, then hopefully bed before too long.

I need to knock down a lot of random projects here this week, and at every turn it’s been time on everything else, but did pick up some coding work re-working an entire import system – but I don’t think that’s going to improve itself overnight, nor in a few hours of coding today, so going to focus on my own business for a bit.

Night (or Good Morning) 😀