Unix is so Rad!

After running SwiftFormat on a directory, SwiftFormat told me that it had formatted 279 out of 280 files. “What was that one file?”, I asked. So Nathan and I figured out how to do this using Unix commands.

We used find . -name "*.swift" > ~/Desktop/all.txt to find all swift files in current directory and output those lines to a file.

We then used git status | grep -E 'swift$' > ~/Desktop/gst.txt to output the result of git status to a file. Running git status after running swift format . shows all swift files changed.

We then used the TextEdit GUI to remove the ./ from the find output and modified: from the git status output.

We then used sort all.txt > allsorted.txt and sort gst.txt > gstsorted.txt to sort the files in alphabetical order.

Finally, we used diff -y allsorted.txt gstsorted.txt to give us a side by side comparison of the two files.

The result? We figured out exactly which file was not changed by SwiftFormat. After touching the file, we were able to format it by running swiftformat [file name].

Unix is so cool!

UPDATE: Cristian gave us a head start on how to do it with one line and Nathan figured it out:

diff <(find iFarmers -name “*.swift” | sort) <(git status -s | tr -d \” | cut -c 4- | sort)

 

Day of the Dad

Today I woke up at about 6:50 am to get to Simi Valley, CA from Hollywood, CA by 8 am. I did. I had to meet the movers. They came to help me move my pops out of his place. My pops has lived in Simi Valley for over 15 years. Over the last 5 years, his health has rapidly declined. During this Christmas holiday, he ended up in the hospital and then was sent to a convalescent home. I was in vegas with my family celebrating christmas like we always do. When I got back from vegas, I found out the extent of his situation. His apartment complex was no longer accepting Section 8 and he and my uncle had to move out like yesterday. Meanwhile, he’s in the hospital and I have to deal with all of it. I spent new year’s day stressing out about where my dad was going live, where I was going to put his stuff, whether or not he was going to lose his Section 8 voucher, and wondering where my uncle was going to live?

Long story short, its been a crazy start to 2015. It’s been super overwhelming at times. Luckily I have an amazing support network around me. My mom killed it today and over the last couple weeks – like she always does. She helped me pack my dad’s stuff and even visited my pops, her ex, a couple times. My eldest brother is in another state so he could only really help me over the phone. In any case, we got it done. At least for now. His stuff is in storage and my pops is still at that nursing home. Now, I have to find him a permanent place to live, an old folks home or otherwise. I hope to find him an apartment so he and my uncle can still live together, but we only have a certain amount of time before his voucher expires. I wish he could live with me, but I don’t have the ability to take care of him right now, which makes me feel somewhat bad.

Seeing my dad in this situation, so helpless; seeing all his stuff, moving it, feeling slightly resentful for having to, then feeling ashamed and guilty for feeling that way, it’s giving me so much motivation to not end up like him. I don’t want to burden myself like that or my family. I don’t want to just decay, like he has over the last 15 years. Perhaps its not his fault, but I’ll have to save that for another day. What I must say now though is this: I want to thrive until I die, and so I shall strive for that to be. I shall scream so loud with all of my might that my heart bursts and paints the sky with my passion. I declare, I shall thrive.

As He Will Want To Be Remembered, As He Shall

As He Will Want To Be Remembered, As He Shall

A New Start

I need a new start. A reboot. Not a new life, just a fresh perspective. A new purpose. I spent my whole life going to school, writing papers, studying for tests, passing them, and earning decent grades. Long story short, Bachelor’s Degree in Political Science, LSAT, Law School, Bar Exam, and lastly, one and a half years of practicing law. That was the last 30 years of my life. I’ve skipped over a lot of details, of course, but during those years, my main focus was becoming a lawyer. During that time, I never really gave much thought as to what my purpose in life was or what I wanted to dedicate my life to. Growing up, I never had that one thing I loved to do. Becoming a lawyer was always a thought in my mind; a seed planted by my amazing mom and step-dad, both of whom I love, and my real dad who, for now, shall remain the subject of another post.

In any case, those thirty years are gone. I will never get them back. I don’t need them back. I don’t want them back. For however unsatisfied I am with certain aspects of my life right now, I am ultimately grateful for my existence, having little to complain about, and much to be thankful for. Some people find out very early on in their life what exactly it is that they love to do, what they are good at, and how they can make an enjoyable livelihood from it. Some people go their whole lives and never even try to figure that out. Its taken me 30 years to wake up and realize that my life is my own, that I don’t have to live someone else’s narrative, but that I can write my own. And so I shall. And that is what all this is about.

I don’t know what my purpose is in this life. But I am not going to settle until I figure it out. I am not going to give up on myself. I shall afford myself all the time I have for the purpose of figuring it out. I have to. If I don’t, I shall explode. So I declare it to the world, here and now, to make it real, to hold myself accountable, and to let it out of me. If I don’t, I will go mad. I have let my ideas stir and boil too long inside my mind and I need to let them out. I need to share them with you. I need to pour my thoughts into the river to let them join the ocean and feed the fish and return to me, radioactive, to nourish my mind, body, and soul.

goingMad

A Man In A Box Going Mad

Hello, World!

My name is Garric and I am new to blogging. I am learning how to use WordPress because I want to help my fiancé, Lucy start her own fashion blog. I am happy that WordPress exists, but it is taking me a little time to get comfortable with the platform. This shall be my first official post, but really is it just a test. I woke up at 7:30 am today, left the house, and started working by 8:00 am. I came home around noon to have brunch with Lucy. I ate two english muffins with cottage cheese and mulberries. Since then, Lucy has been finishing getting dressed and struggling to find a pink dress that she wants to photograph. We will go out and have lunch somewhere soon.

Life is so good. We are so blessed to have the freedom to live and enjoy our lives. I often think about those that are less fortunate than myself and feel ashamed to talk about life in a positive way. Ultimately, I think that I need to live life to fullest extent possible, help others when I can, and hopefully be an inspiration to others. If the circumstances of my birth are a gift, then it would be more of shame to waste it. But its not the living of which I sometimes feel shy or ashamed, but the public pronouncement of it. I want to share. So badly I do. But I am not trying to say, “Hey, look at my life, look how good it is.” I just want to connect, to share my vision of the world, the way I see it, and the way I want it to be. I am not saying, “Look at me, be jealous.” I am saying, “Come join me!”

Sometimes I feel like a nut.

Sometimes I feel like a nut.

New Year’s Resolution 2015

I will share more. I will no longer feel afraid to share. I will no longer prevent myself from sharing. I will no longer limit myself to only positive statements and thoughts. I will use “no,” “not,” and other negatives, and I will no longer allow the thought of using those words to prevent me from sharing. I’ve allowed that for too long. I limited the wording of my thoughts to strictly positives so that they rarely lived outside my mind. That drove me nuts. No more.

I stopped sharing with the world. Why? For fear of being judged perhaps. Even now as I type, I fear being judged by what I say, how I say it, and that I am even doing so. Why? Perhaps because I have let judgment live in my heart and mind for too long. That is not who I want to be. Perhaps the silencing of myself has caused me to be envious of those who share so freely. And perhaps I am too concerned with what value is added by each thing that is shared.

I am often turned off by what I see others sharing and I judge it and them negatively, but at least they are sharing. I’ve been too afraid to share most things perhaps hiding behind a vail of creative standards. But I can’t do it anymore. I need to share to live. I need to connect. To feel heard. I need to express myself.

That is what makes me human, what makes us human. And that is why any of this matters. I am alive. While I am alive I want to feel great, inspired, clear in thought, mind, conscious, spirit, and soul. I don’t share merely for myself. I share so that I can be the best me, and when I am, I can inspire and help others. If not, I am dead and of no use to myself or anyone else.

A Life So Visible Its Written On The Wall

A Life So Visible Its Written On The Wall