Category Archives: diary

Breaking free from the confines of the mind… is this what insanity is like?

For years I trained my brain to engage in lucid dreaming, I’ve played with hypnosis, NLP, paraliminal learning, photo reading, and other crazy reprogram and expand your brain exercises.  Last night I got what I deserved (I guess).

As I awoke, but still asleep, I began to dream that I was programming my body in my brain.  I was pushing and popping instructions off the stack of my mind to create my heartbeat, to expand my diaphragm, to push blood through my veins.  For a brief moment, I thought “this is awesome”, I’ve finally broken free of The Matrix.

However, very quick I realized that if I was controlling my autonomic functions, if I screwed up on the programming, my heart would stop, I would suffocate, my organs would die of asphyxia. Having this realization, I started to panic.

Mind you, I was dreaming, but aware I was dreaming.

So, I finally said to myself, this is silly, why panic, you can just wake up.  But I couldn’t.  I tried to stop thinking about programming my bodily functions.  But I couldn’t.  I tried to stop worrying about injecting the wrong opcodes.  But I couldn’t.  So then I started thinking, “Is this what happens when you go crazy”.  “Will I wake up, insane”.  “What if I can never get control over my mind again”.

I always thought going John Nash crazy wouldn’t be so bad, at least it would be in brilliance; but now, I couldn’t imagine being stuck in a world where I knew I was trapped in my own mind, but couldn’t break free.

Have you ever started thinking so much that your head started to throb?  Burn?  Ache?  I felt like my CPU was overclocked, overheating and was about to core dump.

And then I crashed – I don’t remember how it resolved, or how long it went on, but I woke up this morning… a little ragged, with vivid memory of the whole ordeal.  Happy to report, that I am still part of The Matrix, and I’m not John Nash insane.

Maybe I should stop messing so much with my brain.  Maybe I should take a break from technology.

Nah.  Back to The Matrix.

x96 ASM bubble sort in VIM

Bubble sort in x86 ASM

[[NOTE: For a more efficient way to implement the bubble sort, see my later post]]

Why?  I have no idea.  It’s funny how many times I set off my AV scanner trying to compile and run my PE.  That brings back some great memories with the VCL.

I’m sure there are cleaner ways to do it – but right now, I’m just worried about making it work.  😉

NOTE: Written in FASM, and the training.inc can be found over at xorpd on git.

; Author J. Logiodice
; Date: 05/22/2016
; Purpose: Bubble SOrt
; This method will read in a series of TOTAL_NUMS numbers
; And bubble sort them, then print them out in sorted order to the screen
format PE console
entry start

include ‘win32a.inc’

TOTAL_NUMS = 10 ;10

section ‘.bss’ data readable writeable

array_numbers dd TOTAL_NUMS dup (?)
nMinus1Mem dd ?
boolSwapped dd ?

section ‘.text’ code readable executable

start:

; Set up the loop variables
mov ecx, TOTAL_NUMS
mov esi, ecx
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Read in one number at a time, for TOTAL_NUMS numbers, store them in the bytes that
; start with array_numbers
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
loopRead:

dec esi

; read input into eax but first clear out eax
xor eax, eax
call read_hex

; move value into memory offset (reverse order)
mov dword [array_numbers + esi * 4], eax

loop loopRead

; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; I am sure there is a more effecient way of doing this
; I will probably try and clean it up later, but for now it works.
; loop iteratively over the array until no more swapping occurs,
; and the highest number ends up in the lowest part of the array (lowest to highest)
; start with array_numbers
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Set back up the loop variables
restartLoop:

mov ecx, TOTAL_NUMS
mov esi, ecx

; set the swapped variable to false
mov [boolSwapped], dword 0

loopSort:

dec esi
mov eax, esi
sub eax,1d

test esi, esi
jbe loopExit
mov edx, dword [array_numbers + eax * 4]
cmp edx, dword [array_numbers + esi * 4]
jbe noSwap
; if we get into this section, then swapping needs to occur
; set the boolSwapped to true
mov [boolSwapped], dword 1

; need to swap the two numbers
mov [nMinus1Mem], dword edx
mov edx, dword [array_numbers + esi * 4]
mov [array_numbers + eax * 4], dword edx
mov edx, dword [nMinus1Mem]
mov [array_numbers + esi * 4], dword edx
noSwap:
; jump here if no swapping needs to occur, but we’re still in the loop
loop loopSort

loopExit:

; if boolSwapped isn’t false, then we’ve swapped at least one
; during the iteration, let’s go through it one more time to make sure
; that we don’t have any more to swap
cmp [boolSwapped], 1b
jae restartLoop
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Print each number back out to the screen for unmodified numbers
; we will loop from the lowest to highest part of the array – which is the largest to smallest number
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

;mov edi, array_numbers
mov ecx, TOTAL_NUMS
mov esi, ecx

loopPrint:

dec esi
mov eax, [array_numbers + esi * 4]
call print_eax

loop loopPrint

exit_prog:
push 0
call [ExitProcess]
include ‘training.inc’

Manipulating bits for fun [..and profit..?]

For years I’ve understood assembly enough to get by with debugging and disassembling when needed; I finally decided it was time to learn to write.

The world of the computer language is intriguing, easy and frustrating all at the same time. Here are two equivalent pieces of code, they do the two very simple things in slightly different ways.

The first I wrote interpreting from a higher-level language that I can read & write (C); the second was the code rewritten to be more compact.

Why?  I don’t know… just because….  at what point would I ever use this newly acquired(ing) skill for something valuable…  I guess we’ll see…

assembly code

 

To the Left and the Right… troubling times are here…

I found this draft blog post today after seeing another attempt of the Obama administration using coercion to try and override the Democratic process. Things haven’t changed in over a year. smh.

http://www.allenbwest.com/michellejesse/breaking-justice-department-makes-huge-ruling-on-transgender-bathrooms

[cont. from almost a year ago]

This quote I ran into this afternoon is worth pondering… put the most recent ruling aside, because no matter which side you are on, you should smell danger.

Some of the most recent areas of contention: marijuana, Obama Care and equal rights based on sexual proclivities underlines a growing pattern: when the government overrules the democratic process, how long will it be before the people rise once again to say “enough is enough”?

Today, I can think of only one thing that is providing the glue that keeps us in a cohesive bond across this country… and that alone, is scary, given its ephemeral, coercive nature: money and the federal reserve bank.  How long will states allow their constitutional sovereignty to be overridden based on the color of printed paper?  How would the government respond if states decided to secede from the union?

We need to find a democratic way to bring us back to our democratic roots, because, based on history, our republic is not really “our” republic, and ‘our’ government, created by the people and for the people, will not hesitate to take unilateral action to remain in control… it’s the nature of humanity.

Definitely worth pondering…

Here is the quote:

“It appears the American Experiment (i.e. can man, acting in concert with his Maker, govern himself free of despots and tyrants) has largely terminated after only a couple of hundred years. I am thankful to God to have been given a fleeting glimpse of the tail end exiting freedom’s door.”

I must go down to the sea again

There is something indescribable and wondrous about the vast and endless sea.  The call of the ocean, echoing in history, throughout the future.  I cannot recall physically going into the ocean for the past 30 years.  It is an amazing feeling, a feeling of both insignificance and of fortitude: insignificance in the realization of how tiny and insubstantial I am, but strength in realizing that of all creatures in creation this world was made for me.

I, as human, represent the pinnacle of crowning achievement for creation; the most complex, the most intriguing of all creatures with my abilities to think and love and reason in unique ways: being granted the blessing (or curse) of being one of the few known reasoning creatures that will spend most of my lifetime contemplating my own mortality.

I started this weak on Cocoa Beach officiating the wedding of my brother-in-law, and new sister-in-law: Jeremy and Rebecca Jewers.  It was an honor and a privilege to be asked to perform the ceremony, it is the second time in my life I have been called upon to do such an amazing thing.  Marriage is as wonderful as birth, and baptism; both representing a transition, a newness, a transformation from old to new; from form to form.

2014 Cocoa beach

2014 Cocoa beach

The wedding started with the scene from the Princess Bride:  Mawage, Mawage is what bwings us togethwer today.  It was the perfect fit, a perfect couple: a farm boy turned pirate and a princess.  Two people, that were meant to be together.

Cocoa beach wedding 2014

Cocoa beach wedding 2014

On our last night on the beach, Amanda and I were taking a walk down the beach in the moonlight and we ran into a majestic but ominous looking foot long crab.  We were in awe at his size and amazed at his beauty, until we saw that he held in his claw a baby hatchling loggerhead turtle.

We immediately went into rescue mode.  I took on the crab (and he was vicious!) and encouraged him to drop the turtle (ok, I might have kicked him in the rear with my bare foot while Amanda kept his attention). Then, while I kept the crab occupied (he continued coming after me), Amanda guarded the baby turtle as it made it to the water.

In the end, we both were able to watch the turtle swim out to sea, and we then returned to the crab to take a picture of him.  He belongs on the wall of shame! This was one of the most amazing things I have experienced in nature.

Being saved from Crab

Being saved from Monster Crab

Attempting to eat a Loggerhead

Wall of Shame: Attempting to eat a baby Loggerhead

 

 

 

 

 

 

 

 

We are now preparing, after a full week of God’s beautiful nature to head back to the city of San Antonio.  We miss friends there, but honestly, we are not overly excited to go back; we miss the nature, the openness, the sea breeze of the east coast.  It’s hard to say what the future will hold for us, but one thing for sure.  Home is where the heart is, and there is no place like home.

Amanda and Jediah August 2014

Amanda and Jediah August 2014

From generation to generation

 

Grandma-Grandpa-LogiodiceTwo-Gens-of-PeteLOGIODICE, PETER PAUL, JR. Peter Paul Logiodice, Jr., age 85, of Orange, passed away on Thursday, March 27, 2014 peacefully in his home. He was born on June 25, 1928 in West Haven to the late Peter Paul and Anna Pucillo Logiodice, Sr. He was employed for over 35 years as a Cable Splicer for the Southern New England Telephone Company. After retiring, he drove a bus for the Orange School System. An active member of the community, he was a member of the Orange Volunteer Fire Department and was a coach for the Orange Little League, an avid gardener and camper in Cape Cod and in his spare time, he attended his grandchildren’s sporting events. Mr. Logiodice is survived by his loving wife, Veronica Molyneux Logiodice, devoted children Peter Paul (Dawn) Logiodice III of Maine, James (Jackie) Logiodice of Rhode Island, William (Roseann) Logiodice of Guilford, CT, Kathleen Logiodice of Madison, CT, Veronica (Louis) Pisano of Orange, CT, Russell (Bouaneung) Logiodice of Milford, CT and Jennifer (Paul Fischer) Logiodice of Idaho, 20 grandchildren, 15 great grandchildren, and sister Mary Benz of Orange. Besides his parents, he is predeceased by his son Thomas John Logiodice, grandson Louis Pisano Jr., brother Pasquale Logiodice and sister Ann Passariello. The family appreciates all the help and support of the nurses and staff at Milford Hospital and Life Choices Hospice. Calling hours are Monday, March 31, 2014 from 4:00 pm to 7:00 pm at the Smith & Sefcik Funeral Home, 135 N. Broad St., Milford. A Mass of Christian Burial will be celebrated on Tuesday at 10:00 am directly in Holy Infant Church, RaceBrook Rd, Orange. Internment will follow in St. Lawrence Cemetery in West Haven. Donations may be made in his name to Life Choices Hospice, www.lifechoicehospice.com, or Orange Volunteer Fire Dept., 625 Orange Center Rd., P.O. Box 878, Orange ,CT 06477 or Leukemia Society, 300 Research Parkway, Suite 310 Meriden, CT 06450. To leave condolences or for directions, please visit our website at: www.georgejsmithandson.com

Published in The New Haven Register on Mar. 30, 2014

 

Four Generations of ‘Pete’

the-peters-2.smaller

Up and running (again)

The blog has been down for a couple months – blame it on the juniper; although the Cisco is still acting flakey.  In the mean time, life is about to change drastically for me (again).  This week marks the last week of my graduate level courses.

After friday, I will have conferred upon my personage the Degree of Master – and there will be time in my life for new and different things.  I think I shall require everyone to call me “Master Jediah” from now on.  It’s only fitting for the accomplishment, right? 😉

So in futuristic contemplation, I have no idea what I am going to do with my life yet.  School has consumed every waking free hour for the last 6.5 years. So this weekend, I will be celebrating the new life.  I guess.

I will break the posting silence by stating: and so the next chapter advances, the page turns, the sun cycles on yet another day: opportunities await.  To me, my next directive is to go forth and live – whatever living looks like.

To my children on father’s day 2013 – be yourselves!

As a parent, I want to encourage my children to think and act ‘out of the box’. When I was young, I was weird, I was among the first to start dying my hair different colors in our small town in Maine, I was among the first to start shaving designs into my head and my eyebrows. I was among the first to start wearing mismatching shoes or socks, wearing my ties around my forehead instead of around my neck… and the list goes on and on.

2013 Fathers day tie from Braeden

My Father’s day tie 2013 – making everyone jealous!

I want to encourage my children to think differently than everyone else, to march to the beat of their own drum… in fact, at least one of my children, not only march to the beat of his own drum, he invents new types of drum-sticks! I want to encourage that!

So to show my support, I wore my tie to Church today. Yes, there were thousands of people that don’t know me. yes, there are hundreds of people that stared awkwardly. Yes, there were even a few people that commented on and appreciated my tie.

These are the years that they will learn to dance and skip and hop to the music in their head, and not someone else’s tune.

It was very ironic today that Randy from Oak Hills church quoted one of his old professors when he said: “Everyone is born unique, but most die a copy”. Today was my day to remind my children to be themselves – no matter what.

I must say that I am lucky that I only had only one child that made me something wearable this year.

Yet, I wore this to church as I have never really been one to worry about what people think of me – just ask my own parents.

🙂

Happy Father’s day to all you Father’s out there.

20130616-184644.jpg