Wednesday, May 31, 2023

Festival: Transformational

 11-11-11 - A magical beginning

On a small hilltop in rural Mpumalanga, a small province in South Africa, a mystical adventure in an epic landscape had begun. It was 11 November 2011, and just after 01h00 we rolled in, the full moon having just risen over the peak of a shimmering pyramid. We had just arrived at ONE Festival - the first festival experience for me (Arriving to this without knowing Psy was quite an experience).

I'd spent the last 3 or 4 months in a dark place. My Brother (Shaun) had called me up a few hours earlier, told me to pack a sleeping bag, tent and few other basics. It was good - the festival kicked off the start of a much needed healing process. We'd met a few like-minded people that we really clicked with. These handful of friends became family over the next few years. 

Parting Ways

8 years and many festivals later (all local to SA), we came together once again at the end of 2019. Our core group had grown substantially (probably not too far off from 20) with a significant number of festival-goers having familiar faces and some form of connection. "Camp Marshmallow" was great home to have in the campsites. However, there was a slightly sombre undertone this time. This would most likely be the last one a while. Change had been happening. My family and I were preparing to move to the US, and this was a farewell to what had become my festival family. It was a hard, heartfelt goodbye.

Return to Festival

Now it is an early Wednesday afternoon in late May, in 2023 as we sit in a hot and dusty car line just outside of Bakersfield. After arriving in the US in early March 2020, the state of the world combined with personal circumstance was not the most conducive for heading out for dusty stompings for a few years. But that had passed, an outing was overdue. We were heading in to Lightning In a Bottle. Bubbly excitement was prevalent, although I was also aware of a tinge of melancholy - I would be here without my Camp Marshmallow family. Good friends that were my car companions as we waved our armbands at the entry checkpoint brought the needed balance: An awesome couple had been going to US festivals for a while who I had connected with through disc golf (Paul & Yuri); and a new Brother (Duane), who was about to pop his festy-cherry. 




Lightning In a Bottle

Enter LIB. Wow. The highlight of festival-going prior to arriving here was AfrikaBurn (Burning Man South Africa), where we hosted the infamous Dr Wung's for the ~10k burners in 2015. As we meandered from the Sunset car/tent camp through Group Camping, then vendor/performer camps and on into the festival entrance, the scale of this event started to become apparent. I later learnt only 2/3's of last year's attendees came through: 18k vs 27k in 2022. Without this knowledge at that moment though, I was nodding my head to myself at how well everything seemed to be coordinated. Rangers were evenly distributed at points where everything from walk-in wheelbarrows to RVs were guided towards availability or designated camp spots with minimal bottlenecks. There were never lines at festival entrances through security checks. 

It was not as sparse all the time at the food vendors though - definitely some favourites that pulled longer waits during peak times. Tuna Poke bowls, Hawaii chicken and a breakfast burrito were noticeably enjoyed by many other people in addition to myself. It was super-convenient to use the cashless option (RFID on the wrist-band ticket). The bars were well placed and staffed. . It would have been nice to have a bit more selection on drinks though. It was not the end of the world to end up at Grand Antique for a bourbon or Irish. 

The bane of many festivals are the toilets. Yet here they were readily available - at worst a 10 minute walk from anywhere that I found myself lost at, and with enough to handle the number of people (I don't think I waited for more than 2 people in front of me at peak in the middle of the festival); and they were clean and stocked (TP / soap / hand-cleaning stations)! Without actually timing it, it seemed like they were being cleaned every 4 - 6 hours, maybe more frequently during busy periods. Water points were on point too - accessible without being too far apart, we were able to stay hydrated in the festival area, and stocked up in the campsite. Recycling/trash stations were easily accessible on the walk in through camping area, and there was daily availability of ice (although not at the outpost past Group Campsites in Sunset until day 3, so it was a long walk to the Shower/Recycling stop for a couple of days). 

LIB Experience - Art, Wellness, Music

After the move to the US, music was a common theme/soundtrack when we reconnected with our SA friends. Before immigrating, our Friday evening playlist while braai'ing (SA for BBQ) would often include the likes of Stephan Bodzin. A few months after moving here, we would put on a Ben Bohmer mix on our Saturday morning / their Saturday evening, and I've played this Sabo and Goldcap mix on more Sundays than months in each year. So when I discovered LIB's lineup, there was an immediate hook. I wanted to go. Just to be able to go to some stage called "Woogie" where I could experience 3 artists with "personal history" was enough to sell me. Not to mention some more popular mainstream names like Liquid Stranger or Zhou that have had enough replays in our household to make it monotonous to many. The initial interest in LIB was primarily about the music. We started wandering towards Junkyard on Wednesday evening, but as we got closer, it could not help transforming to a hop, skip and bounce as we got drawn into the dancefloor to have a fun jam session. 

It was shortly after this warmup that I started to realize how LIB is about so more than just the tunes. I'd seen some of the info about Yoga and talks before coming through, but took navigating through giant bananas or hustling through a light tunnel to click. "Oooooh - yeeeessss - thiiiiis". I've seen some posts on social media indicate that this year, there was a lot more focus on music headliners and a little less on some of the art aspects. Without history or expectation, this was icing almost as thick as the cake. The cake mixer was a thick beat blasting out a Funktion1 sound system right through my chest cavity. The Art cars were spectacular cherries on top.



Late one weekend morning, I found myself standing in front of the menu at Learning Kitchen, absorbing what talks were available. Going in with a music-centric focus had set the stage, and I had a moment of realization that has the sort of feeling one might get by going to an all-you-can-eat buffet, filling up on meat and then noticing there were some amazing veggie / starter / dessert options that you missed out on. I managed to squeeze in a few Compass activities (sunset smoke ceremony at Ceremonial Fire, a session at Crossroads), but would definitely like to earmark a few more at the next one.

80's hits at Grandma's house was a blast, and Grand Artique was an experience to remember - a drummer, an auction and the pickles amongst others.

Connections and community

The most rewarding and fulfilling aspect of festivals are the connections that form. There's a saying that's stuck with me, a saying I learnt from someone who taught me a lot: "You make friends / connections with people for reasons, seasons or lifetimes". 

On Saturday afternoon, standing in Grand Artique, I felt a tap on my shoulder. As I turned, I was greeted with a friendly face, followed by a question: "Are you from South Africa?" (the SA flag hat must have been a give-away). Within a few exchanges of words, the phrase comes up: "It's so good to hear that accent again". It always sounds good, and it always brings back a feeling of where I come from. That one felt like a reason - a short, transient reason that transpires quickly - to remind someone of home, and to be reminded of home. 


Sometimes the connections are a bit more persistent. Bonds feel strengthened with those who came in with you as friends. Excitement bounces off each other. Anxiousness is diluted and dissipated between us. New connections are established. There's a feeling of comfort with letting out some personal quirkiness that would normally be held back - being more yourself - and they don't seem to mind it, maybe even enjoy it a bit. Their quirkiness is fun and exciting too. 

I feel soul-fulfilled. I feel humbled, and the melancholy of my first festival family still lingers. I hope to reconnect with them in this sort of space. 

The strengthened and new connections are like sparks starting to form along some invisible network. I'm not even sure what the medium is - maybe it's just air. And the sparks are just lightning. And I am just a bottle.


Pics n stuff























Love to Shaun, Karin, Alex, Fran, Greg, Sean, Renee, Duane, Chris, Tash, Lee. Missed you guys stacks.

Saturday, December 3, 2022

What if mass actually consumes spacetime?

 Dark energy is an unknown force that is attributed to accelerating spacetime.


But what if it just seems like spacetime is stretching (the universe is expanding) because spacetime is being consumed by mass. Or even if not by mass, but the fabric sort of evaporates that gives the same effect as it stretching.

But it doesn't necessarily have a defined volume/ limit, 



*Edit* - we see quantum gravity, within larger fields of gravity. This is prevalent in how we can split solutions under varying levels of acceleration. Mud from water in short times. Blood seperation under increased pressure being spun in test tubes. Fossil fuel distillation (any dissemination process)

Saturday, August 13, 2022

cosmology problem ponderings - dark matter as the results to force of dark energy?

My understanding of the indicator of dark matter is the rotational speed of galaxies, specifically how stars further out rotate at higher speeds than what is expected from the gravity of normal matter - there is something exerting a force pulling it in, that acts like extra gravity.

Then, dark energy is a force that causes space at large scales to expand. 

If there's some force stretching space at large scales, then surely there would be a resultant counter force that pushes at smaller scales (of galaxies)? 

Probably a bad analogy, but something like a super slow time lapse of what happens after letting a firework off in a glass jar filled with tiny bubbles - after the explosion, there is a rapid outward expansion (assuming the jar has exploded) and everything is expanding outwards, but the high pressure that created the explosion created localized pressure. The bubbles in the jar (galaxies) are still experiencing pressure / compression as the expansion goes beyond the original boundary of the jar.  From an instant in time just after the explosion / jar shattering (in super slow time lapse mode), it would seem like the bubbles are heavier than what they are / spin quicker (dark matter) because of the force of the explosion on them (dark energy). 

So maybe there isn't "undetectable stuff that adds gravity", it's just the pushback of a rapidly expanding universe 



Friday, April 3, 2020

Party Games - Being social in isolation

The world is weird, let's have fun

Things are different right now. Things are changing - not for a short bit, but in ways that will leave ripples for a while. Generations. The world is experiencing a global pandemic right now and many countries and governments have encouraged or enforced isolation : avoid contact. The virus is contagious. Physical contact, sneezing & coughing or heavy breathing the wrong propinquity could get you infected. The world just cracked 1m cases of infection, and just over 50k deaths. And everyone is staying at home.

I'm sitting in a new country - relocated 3 weeks ago. South Africa, my nest, is under enforced lock down. California, which lies ahead of me, is also pretty shut down. I miss my family that isn't traveling with me (which is much more than blood). I am grateful for technology that helps keep in contact though.

Do You Like Tech?no

The weirdest thing is that while I've changed my physical presence to a new continent, I'm not any less isolated than the people I wanna keep in touch with. Everyone is staying in their homes. But we're not actually that isolated. My wife had her big TWENTY-EIGHT'th the other day (I've decided to start counting birthdays in hex from now on). A significant celebration with friends on these milestones has always been a biggie for her. She wanted connection. We had wifi.

So, on the Saturday morning, we launched a Zoom video conference room. Our family joined. Us far west. Parents and siblings, and other close friends in South Africa. More family in Germany. Nigeria. New Zealand. Neighbors [sic - we're Murican now] 3 blocks away. Camera's on. Mics on. The world really does fit into a living room. We were fortunate enough to not have anyone that needed the loo on the call.

Play on: recipe of the day (circa April 2020).

A new way to socialize is emerging. Playing game. Not just WhatsApp video calls or Zoom. But integrated social interaction. Here's a recipe that works well, and has been taken for granted. It's my suggestion to try this month:

Ingredients:

Method:

  1. Host a Zoom call somewhere
  2. Fire up JackboxTV host. Join Zoom call if it's not the host.
  3. Share JackboxTV app + sound into the call.
  4. Every location joins the Zoom to follow the share. Big screens and loud speakers. Turn on your cam.
  5. Everyone joins the game from their phone - http://jackbox.tv - follow the instructions. Every phone is a controller.
  6. Have fun.

Tuesday, December 5, 2017

Intro to Crypto

Not for you, for me.

If you ended up here looking for any form of introduction to cryptocurrency, this is probably not the right place - this is a more a share of my experience of being introduced to the basics. Nothing very useful here. Move on.

Phase 1: Get Bitcoin!

At present, crypto is crazy. Social media is buzzing with it, everyone is getting in or considering getting out. My first comment on the topic was a few months earlier this year - I was a late adopter. It was something along the lines of "It's not gonna last" or "it's a short up and down". I was met with a fair amount of evidence to the contrary and decided to take a little (emphasis on little) bit of extra cash that I had available and was willing to part with and hop on for a little ride. I asked about what platform to use on social media and Luno (shameless link to my referral code right there) came back as quite a popular local option. I downloaded the app, signed up and sent off the required documents. A couple of days later my account was active so I parted ways with traditional currency and into my BTC wallet.

Right on cue.... this happened...
As if the digital gods were watching me... waiting for me.... to drop it. But 1 thing I've heard enough of in the small amount of exposure I've had to the investing world is that any investment should not be emotional; and knee-jerk reactions to market changes can cost lots. So I sat tight. And cried a little inside as my little venture lost 35% in 4 days. And then I did something bravely foolish - I threw a bit more ZA Ronds at it. I think the gods favoured my foolishness because it turned. From R60k per coin to over R100k in about 3 weeks, BTC was in the news with another upwards rampage. Subconscious calls for bicycle upgrades started surfacing into my consciousness. I spoke to my kids about it and they wanted to put their pocket money in. I explained that if they put anything in, they must be willing to loose it. "Oh, so Bitcoin is like gambling" they surmised perfectly. And they hopped on the wagon a bit too.


And that is the start of my crypto journey - forex trading on a very hot currency (currently R170k/BTC)








Phase 2: The questioning

Ok - so now this crypto thing is actually holding something of value to me. I've past the "Let's play" part and am having fun skating on a frozen lake with no idea of how thick the ice is or cold/deep the water underneath. And my mind starts turning to questions - "How does it work". "Why is there such a demand for it / such value being given to it" and "Where does it come from".

The concept of the underlying Blockchain technology is built on solid principles - it's an unmodifiable (from a practical sense), open ledger of transactions validated cryptographically. The Wikipedia link explains it pretty well. Bitcoin was the first cryptocurrency based on this technology. There are many others now. The properties of the currency is a decentralized, peer-to-peer, trust-based value system - no central institution controlling it. The nature of "What it is" or "How does it work" answers the second question of rapid adoption of the technology.

But where does it come from? If there's no central institution, how is it made? I began reading. And so I started learning about mining. Miners are the peers of the network - members of the general public using computers to validate and timestamp transactions, adding them to the ledger. The idea is that it takes a lot of work to calculate the transaction but not a lot of work to validate it. So 1 computer will calculate something and submit it to the network; and a few other computers will validate it and confirm that work was done to get to the result. The calculating computer / node is then rewarded for its work.  But what work? "Miners solve complex problems" - aaah great - the value proposition. Coins are being awarded for doing something useful, right? I wanted to get a better understanding of these "complex problems" and where they came from. The problems are relatively arbitrary! Pretty self-contained to the crypto network. 1. Pick a hash. 2. Work out how to get there. That's it. So we're running computers that use lots of energy to calculate something and then proof that they did the calculation. But the calculation serves no purpose other than proof that it did the calculation! To prove that power must have been consumed. What?? This didn't sit right - a fundamental flaw in the proposal of the value system. Global mining is using more power than 100's of countries at time of writing. Generating a coin using this model takes a few days at least with some pretty specialized hardware. What a waste. I wanted to get out.

I started chatting to friends - ranting on the phone. "It's not sustainable, it will never last!" (sorry bwot). But the shock settled and after some sleep and more thought I got a different perspective on it. It's not an underlying flaw in the technology, it's just an inefficiency. I work and earn traditional currency through what I do. This is a representation of value in a centrally controlled system (government, tax man, banking system). Energy is a transfer mechanism of this value representation from 1 system to another: I pay my power utility. They give me electricity. I use electricity. I get Bitcoin. The value is now out of the traditional system and into the decentralized, peer-validated system. Quite clever. But still something wrong. Why do so much work for nothing?

Reward models

The mining model described above that led to somewhat fevered phone calls is referred to as Proof of Work (PoW). The peer network can validate that work was done easily, and the node that did the work is rewarded. I wanted a more efficient system. Some way of doing the same thing as mining, but instead of solving arbitrary problems, the compute power could be used to solve real world problems; problems like identifying cancer markers; analysing LHC collisions; or mapping the galaxy. And I'd find a way to do it. Revolutionary thoughts. I'm not a revolutionary though, and some smart people had already thought of that.

There's another way of generating tokens of value in a cryptocurrency network. It's a model called Proof of Stake. The idea of this model is that members of the network are given more opportunities to create the next block the more coins they own and/or the longer they wait (owning more coins increases opportunities to earn more coins instead of owning more mines to earn more coins). Combing this with a system of distributed consensus on the calculations, you can now use the compute energy to do REAL work and solve problems facing humanity. And this is where I'm exploring now.

Phase 3: The present and the future

So a PoS system seems much more efficient but has some flaws. So do PoW systems. The best value seems to be in networks that somehow leverage both. One system that uses a combination of both is Gridoin's Proof of Research which I quite like fundamentally. It gives an opportunity to generate coins while doing something useful

And it seems a little less volatile than BTC or Ethereum:




So that's where I am at the moment. Gently throwing a little bit of energy at modeling the Milky Way, solving cosmological problems and analysing LHC collisions, while increasing stake in a slightly more efficient and hopefully sustainable currency system.

Tuesday, April 7, 2015

From Dusk to ... Dusk

February 22nd - a lazy Sunday morning. Open up Facebook and notice a post from Rob van den Bergh in the Pretoria East MTB Facebook Group:

Hi all - I am looking for MTB riders to join me on a ride from Cullinan2Tonteldoos. This amazing adventure is open to 50 cyclists who either want to 'go the distance', 'hop-on, hop off' or even do the last 80kms - you choose. The places will be taken VERY quickly - so be quick to Book your Seat!

My interest perked. 220km - it would be a stretch. I'd only cracked the 100km MTB mark a few months back in September on a ride from Van Gaalens to Breedts Nek, and put in 3 triple digit rides since (albeit just over the 100km mark). It was also Easter weekend, and the never-ending family / cycling conflict played in the back of my mind. But to be safe, I put in my entry.

On the afternoon of April 3rd, I headed through to Pretoria to meet up with Robert. Robert was also doing the ride - on a 26" single speed! From there, we headed through to Cullinan to meet up with some of the other Pretoria guys with whom I've had the privilege or riding with before: Christiaan and Heinz, who I'd met at a WTF hill challenge, Wilhelm who had broken his 100km cherry with me in September and a couple of others. Bikes were unloaded, lights attached, kit donned and quickly wolfed down a couple of pizza slices before a brief briefing and then we were off.


More prepared than usual....



The ride started off with a 20km roll from Cullinan mine entrance to the Onverwacht school to drop off soft toys and Easter egg marshmallows. Riding into the school gave me goosebumps as we high-fived the kids lining the road, with lit candles, singing and chanting. A quick delivery, and we were off the tar and heading east.

Race Briefing with Paul and Rob.


The evening's riding was pleasant - easy paced and relatively flat with gently rolling hills. The ride had an eery feel as we turned off our lights on some sections, guided by the almost-full moon. It was good to get to know some riders better and meet new ones (thanks to Christiaan, Wilhelm and Rob, could not have asked for better company). A quick stop at the 35km WP1 and we continued east. 1 of the few unpleasant patches of the evening ride was a strip of soft sand around 45km in - easy gear, weight off the front wheel and high cadence needed to spin through the momentum drain. I'd pumped my wheels up to 2.5 bar to lesson the rolling resistance which wasn't great for this environment. But, we all got through and carried on. We could almost smell the cappuccino’s at the 70km WP2, the perfect drink at 1am after a few hours riding!

 Waterpoint 2 @ 70kms - Cappuccinos and snacks

We reached a road crossing around 2am / 85km after my first twinges of tiredness, and I'd reached there a couple of minutes ahead of the riders heading up the rear. I figured it was time for a quick 3 minute power nap, the first of the evening. I had barely closed my eyes, when the Debbie from WildTrail on the support quad was waking me up. "Excuse me, are you ok". I sat up with a start to see the tail lights of the group disappearing into the night, nearly being left behind! The combination of 5 minutes of shut-eye and an adrenaline-boosted awaking nicely shook the bit of fatigue I'd started feeling.

The rest of the evening's riding was soul-food: solo mission in my own rhythm and time for some mental / intellectual filing. It felt like the most uneventful section - 1 short wrong turn, and the 1 or 2 slightly steeper climbs. Another stop at 100km to refuel, after which I decided to stretch my legs a bit for 23km, reaching the Loskop Dam Nature Reserve gate in just under an hour. This gave me time to slip in a 20 minute power nap, very welcomed at 4am. Little did I know that Murphey was also riding this section, and we turned around to ride back a whopping 500m into the gate, with a 1 hour wait for the reserve's representatives to meet up with us and confirm the route to the end of Stage 1. No warm clothing or blankets in the cool outdoors can be overcome by tiredness, and the 60 minute snooze recharged me even more. Experiencing the descent from the reserve boundary to the stage 1 / stage 2 transition area was rich and fulfilling: a loose, rocky, steep drop down (13km, -350m) while watching red-orange burning clouds suck the sun up over the horizon, only to blanket it with greyness shortly after had some parallels to how body and mind were feeling.

We spent just over an hour at the transition, with delicious bacon / egg wraps, a shower and a change of kit, and then headed off on the next leg: supposedly 80km with a fair amount of climbing.

Transition: fed, showered, and ready to go...

Rob had mentioned that there was a 9km climb about 20km in - enough of a ride to warm up the legs before stretching again. I decided to use a bit of a boost for it, and had 1 Gu down about 10 minutes before reaching the gate. The timing was perfect, and the 300m ascent was almost enjoyable. Even more enjoyable was the treat waiting for us at the top, at Farmer Marius' Emangweni Game Farm. Peanut butter sarmies, easter eggs and a cold pool to relieve aching knees were just what the doctor ordered, complimented by a stunning view of Mpumalanga

Good to go: 172km to Emangweni Game Reserve

The next section was where the wheels started their first wobble: the field was narrowed down a fair bit as many riders opted for a "hop off" to the next WP (which was on top of another serious climb) and 1 or 2 other logistical issues cropped up (e.g. Robert's single speed was loaded onto a support vehicle and then taken to the end instead of the next WP, counting him out of any more riding). WP7 at an abandoned farm was never seen (not sure if I missed it, or it wasn't there...), but the 18km / 400m ride to WP8 was another strong 1 for me, reaching it in under an hour. Waiting for the rest of the group, mother nature decided to have a say, and a cool wind and drizzle started picking up. Sitting and waiting in the wet and cold is not pleasant after 200km of riding. But... only 20km to go... or so I thought.

The group of now 20 riders were eager to get going, with more riders still due to reach the stop. With the weather playing up, we changed routine, and rode on before the support vehicles had caught up with us. This proved to nearly end the ride prematurely for me, as I had only loaded up enough snacks to get to WP8. Coupled with a misunderstanding of "only 15km to the end", I started the last haul in now steady rain and cold wind with only a handful of fruit/nuts for sustenance.  24km later, after a knee-deep river crossing and some unridden climbs through rocky veld, my Garmin beeped it's last beep for the ride, having fully discharged itself. My body, seemingly somehow connected, followed suit about 3 minutes later - I hit a wall comparable to that of China's; or, in the words of Alex Harris: The Uruk Hai had come.

Crawling along, I passed some other riders, either waiting for their partners or waiting for a rescue mission. 1 rider was kind enough to share some biltong with me, giving enough of a boost to trodge along for another 3km or 4km while kindly informing me that there was still 15km and a big climb ahead. When I saw Paul's (Rob's son) car, a mixed sense of relief and defeat filled me. A lift home! In retrospect, it was fortunate for me that his car wasn't able to carry my bike. Waiting in the sanctuary of his back seat for his brother Mark to pick me up, with heaters on, slowly but consistently munching on baked potatoes, topped up the carbs and settled the mind enough to decide: I must go on, time to unpack the spare sense of humour.

8km more - in just over 40 minutes, I reached the top of Where the f#@k is Tonteldoos, passing Rob and shouting out the segment name as I passed, slowly rolling in to the show grounds, with Robert and his wife patiently waiting in the cold for the trip back home. 

Distance: 240km
Elevation gain: 2,800m
Moving time: 12h30
Elapsed time: 20h

Friday, April 26, 2013

One of the reasons why I love where I work


This was taken from one of our planning systems...


Monday, January 21, 2013

Gravity and the quantum forces: exploratory thoughts on unification

Our universe is constantly being explored and analyzed, and the biggest challenge in physics today is a unified theory that can explain everything. From the sub-atomic quantum world to the macrocosmic universe of galaxies, quasars and supernova.

The world as we know it is explained in terms of 4 forces, described in order of scale from large to small: Gravity - a force that mass exerts on all force, as explained by Mr. Newton over 300 years ago ; The electro-magnetic force as first described to some accurate extent by James Clerk Maxwell in the early 20th century, which is the force that stops us from walking through walls and matter from occupying the same space, and is powering your PC as you read this; And then the 2 quantum forces, the weak nuclear force, responsible for radioactive decay and initiates fusion in stars; and the strong nuclear force, responsible for binding neutrons and protons in an atomic nucleus, a force which when harnessed, destroyed Hiroshima;

One problem faced by physicists and cosmologists is providing a single theory that considers all 4 forces together. Gravity (Einstein's theory of General Relativity) works well over large distances with a lot of mass, while the other 3 forces operate at tiny atomic scales. When the theories are combined, they produce unpredictable, wild results. And while in our given world as we know it today, we can safely use seperate theories to explain the big world and the small world in different terms, we can't do so  under extreme conditions, such as the early stages after the creation of the universe, 13.7 billion years ago. Or in black holes, where immense gravitational forces causes matter to collapse to tiny scales, where both sets of theories are required to explain and predict the behaviour (huge mass - GR, tiny scale - quantum). It is from this necessity that a number of theories have developed, the most popular being String theory and the more evolved M-theory.

There is a very interesting characteristic of quatum particles. In traditional physics, when we think of matter, we think of it as built from atoms, tiny particles arranged together. Even modern day scientists used to consider matter as particles. Until an extraordinary quatum discovery. An experiment was developed that can be used to determine whether something is matter or energy: the double slit experiment. If you're not familiar with it, hit play:


Now consider this: at a quantum scale, particles exist as a wave of potential, a state of possiblity. When  observed, the wave function is collapsed and the wave becomes a point. This is how we experience matter: a single position of a particle out of potentially thousands. As we stop observing, the matter returns to a state of potential.

On the other side of the scale, in the macroscopic level, the world as we know it exists primarily in collapsed particle form. Our constant observation of the world around us holds in it a state of position, of matter. Your table and chair. The roof over your head right now. The atmosphere. The earth. The sun. The andromeda galaxy: all particles in very definite positions.

To go off on a quick tangent. There is an overwhelming similarity in structure betwen an atom and a solar system
  • A central nucleus, being orbited by electrons / planets
  • The centron / nucleus is positive, consisting of protons (positive) and neutrons (neutral). It is massive, compared to electrons. The sun is positive, consisting of hyrogen ions (positive) and helium atoms (neutral). It is massive, compared to the planets.
  • The electrons are negatively charged. The planets are negatively charged. For example, the earth carries around 500 000 C of electric charge (think of the free electrons in our atomosphere that cause lightning). 

There is one characteristic that is, quite different. The atom's particles exist as waves of potential. The macroscopic universe, through observation, exists in a state of collapsed matter. Without mathematical formulas to back this concept and based more on concept, could there be some correlation between the structure of atoms and molecules, the structure of solar systems and galaxies, and the weakness of gravity compared to electromagnetism and the nuclear forces? If energy of a system were compared to water, then think of the amount of force required to contain a certain volume of water with potential, for example by containing it with a balloon. The balloon exerts considerable force around the water to hold it together in 3 dimensions. Now consider the same balloon of water, and the amount of force required at only a single point, for example the neck of the balloon. A fraction of force is required at a single point - all you need to do is stick your finger in to stop the water running out.

Given that quantum theories explain a system of wave potential, then surely the force to maintain the system is a wave function too. And given that cosmological models and general relativity are based on particle physics and the forces in these systems are only 1 dimension of the force in a wave potential system, then it could it be possible to expand on GR and thinking of the current cosmological parameters as the set of parameters for a single point of a function?

There are some challenges that cosmology faces today. One of the biggest is providing an explanation of the total mass-energy of various systems (e.g. galaxies). "Baryonic pressure" - visible matter - only accounts for about 4% of the total mass-energy that can be calculated (this is determined by observing rotational velocities of galaxies and orbital movements around large gravity systems). About 25% is attributed to dark matter, and 70% to dark energy - matter and energy that we to date have not been able to observe. Observe? As Dr. Quantum says: "The act of OBSERVING collapses the wave function". Maybe it happens in the bigger picture too (albeit on a completly different time scale).




Thursday, September 15, 2011

Boundaries between cyclic universes

This morning my 6 year old son asked me 2 questions, seemingly unrelated.
  1. Why does space never end
  2. What is a black hole
Being familiar with only very basic and somewhat incorrect quantum theory with extensive patches of unknowns in my understanding, I explained as best I could (with some bad assumptions that would get me shot in any reputable university) - space never ends because its boundaries are defined by dimensions higher than the 3rd - in effect, moving through space in a loop, with a cyclic 4th dimension. Much like traveling around the surface of the earth (2 dimensions) will end up moving in circles because the earth exists in 3 dimensions (cyclic 3rd dimension). And a black hole is the area that light fails to escape where the gravitational pull of a singularity is greater than the speed of light. This led on to explaining a singularity - a single point in space (almost no volume) with an enormous mass.

Feel free to shoot now - the assumptions and deductions are about to begin.

The mass of a singularity is so great that time is bent back on itself in a tiny area - creating a cyclic time-based entity. So the singularity of 1 universe's black hole IS a universe. Any matter falling into the singularity would have enormous gravitational forces applied to it. Possibly enough to collapse the energy of the matter? In effect, the 3 atomic forces (strong nuclear, weak nuclear and electro magnetic forces) would be overcome by a huge gravitional force. If an atom were to be exposed to sufficient gravitional force (huge mass, tiny volume), could the atom be collapsed? The electrons merged with the nucleus (protons & neutrons), surely the energy would be reduced and in effect undergo a universe jump - from 1 universe to another parallel one.
 The subatomic particles, having had energy reduced / cancelled would become matter in the universe defined by the singularity.

What a great concept to come up with, right? Well, it's actually a concept thats been floating around for a bit - http://endlessuniverse.net/. After some research, I eventually came across an interesting blog post - http://www.math.columbia.edu/~woit/wordpress/?p=563. which discusses the endless universe and these connections

 Well hopefully someone who has a better understanding could clarify: could it be possible that singularities are the bridge into the parallel universes, through the collapsing of energy? How would this affect the growth of the universe within the singularity, and the increase in mass of the universe? The "Big Bang" event of a universe would effectively be point in time at which sufficient matter in 1 universe has enough gravity to cause a collapse, thus creating the singularity (and the universe). It would also address the "Big Crush" theory, where sufficient energy is collapsed into the singularity so that the singularity explodes, releasing matter (while on the universe, matter collects together and forms a singularity that "swallows the universe")...

I'll post an update when I understand the quantum mechanics of it a bit better, check back in 10 to 15 years.


Your free corner just got reposessed

Ok - so that method is not quite free any more, since Dyn acquired everydns.net

But there are other free dns providers


Wednesday, June 15, 2011

Your own free corner of the intraweb

Every now and then you receive an email from a really cool domain (the part after the @), and might wonder how you could get your own. Lots of technical knowledge required, right? High costs and service providers throwing jargon at you, right? Wrong. It's easy, and here's how:

Registering your own domain for email / a web-site has 3 components:
  1. The domain name - mine is "cave.za.net"
  2. The nameservers - in order for people and emails to know how / where to find you (without getting too technical), a registry of servers is needed. It's sort of like the equivalent of an address book for your domain.
  3. The service provider - someone to give you the space where your email gets delivered to or where you can stick a web page.
Ok - a little jargonish. But here's the practical way of setting it up for free:
  1. Find a domain name. http://www.za.net offers free (no catches) domain registrations, so head on there, click on "whois" and type yourname.za.net to make sure its available. www.za.net only offers domains ending in "za.net" and "za.org", so you are limited to these. No .com's, sorry. Once you have found your dream domain, you'll need to set up nameservers before registering.
  2. Nameservers - the address books of the internet. http://www.everydns.net offers free DNS hosting. Create an account. Add new domain (basic).
  3. Ok, back to step one. Now that the nameservers are configured, go to the registration form at http://www.za.net/register.html, fill in the domain name and your information. It's probably a good idea to not publish your home address as this information is published publically. The technical part requires 3 name servers. When using everydns.net, nameservers should be set to ns1.everydns.net, ns2.everydns.net and ns3.everydns.net. This info is given to you when you click on your domain name that was created above in the everydns.net control panel.  The IP's can stay blank, za.net will figure them out for you. The actual registration might take a few weeks (I've waited up to 4), but its free, and this is the only waiting period you should have.
  4. Lastly, service provider. There's this awesome company called Google that provides free domain mail and web hosting, so mosey on over to http://www.google.com/a, click on Solutions -> Google Apps (Free) and hit the "Get Started" button. Or just click https://www.google.com/a/cpanel/domain/new to get you right there. The setup of the hosting is probably the most complicated part, but Google gives you all the instructions you need. It will ask you to set up some settings with your domain, which can be done via the everydns.net control panel - adding a txt record, updating the A records (for the website) and setting MX records (for email delivery). Then create accounts (to receive email on) and maybe configure a site.
Welcome to your first semi-privately owned space on the net. It might not be a https://www.jemstep.com, but it's yours. Have fun.

Thursday, April 14, 2011

Gradle: execute a task and write output to a file

i searched for a while to get this working as expected. The solution is really simple and straightforward.

task writeOutputToFile << { new FileOutputStream(new File("$outdir/$outfile")).withStream { os ->
def res = exec {
executable = "/bin/echo"
args = ["param1","param2"]
standardOutput = os
}
}
}

I was initially using Process to write, but groovy has a bug where the main process exits when it finishes, causing the thread to exit before it finishes writing (using a FileWriter).

Friday, January 21, 2011

expressive error message

Don't often find strange / funny error messages that often, just came across this one in a new testing framework...

I'm pretty sure this one won't stay as-is for long.

Error Message
org.jboss.arquillian.spi.LifecycleException: Bad shit happened

Friday, July 9, 2010

XSS bug in Canvas plugin for wordpress

I recently discovered an XSS vulnerability in a blog that uses Wootheme Canvas with Yoast breadcrumbs.

in wp-content/themes/canvas/includes/theme-plugins.php, line 219, the search widget does not escape html entities, resulting in potential code injection. e.g. search for:

>"></strong><script>alert('injection');</script>

In order to fix this, the line should read as:
$output .= bold_or_not($opt['searchprefix'].' "'.htmlentities(html_entity_decode(get_search_query())).'"');

Wednesday, June 30, 2010

making the most of bash

To the modern, Windows-accustomed, ungeeky person, those who who work in shells are often thought to hang out with folks like Neo and Morpheus. The truth is: we don't hang out with them, we just `talk` across terminals or occasionally say hi on multiplayer notepad (a.k.a IRC). And it's during these encounters that we sometimes share little nuances that make working in console just a little easier. I'm going to let you in on a few that could encourage you to don dark glasses and start muttering phrases such as 'Know Thyself';

This assumes you understand stuff like cd, cat, redirection, piping, ls and so on
  • screen - create a virtual console that you can detach from. Use ctrl + a, ctrl + d to detach. 'screen -x' will reattach (and allow multiple attachments). Try 'screen -d -m sleep 10' to run the command (sleep 10) in a screen in detached mode. 'screen -x' will attach.
  • wall / talk / mesg / write - wall broadcasts messages to all consoles, for system notices. mesg controls access to your terminal. talk & write is for sending messages to other users.
  • du -sh - Count the size of a directory. the -h outputs in human readable format and -s just shows the total, not all files.
  • df -h - shows disk usage
  • watch - allows you to repeatedly execute a command. e.g. to watch network connections (10s refresh): watch -n 10 netstat -nt
  • which - gives full path to a command in $PATH.
  • CTRL + R and ! - these are bash history functions. '!somestr' will execute that most recent command that matches 'somestr'. e.g. if the most recent command starting with 'ech' was 'echo hello', then '!ech' would re-execute it. CTRL + R allows bash history searching
  • `command output substitution` - backquotes (the one under the tilde~) substitute the output of a command. e.g: echo "Hi, the date is `date`" would stick the date in there. 'vi `which myscript`' would edit '/full/path/to/myscript' if it is in your PATH.
  • jobs, fg, bg, & and CTRL + Z - job control. You can run a process in the background by adding a & to the end of it (e.g. 'sleep 60 &'). in order to bring it to the foreground, you can get the job id using `jobs` and then 'fg '. It is now in the foreground. a CTRL + Z signal will send it back to the background, in stopped mode. 'bg ' will make it run in the background again. note that these jobs are attached to your current terminal session, so a job running in the backgroun will end if you exit.
  • looping and conditions - this can really make life easy for a sys admin, here's some examples:
if [ -f /tmp/somefile ]; then echo "/tmp/somefile exists"; fi
[ -f /tmp/somefile ] && echo '/tmp/somefile exists"
for item in /tmp/*; do echo "Found the following in /tmp: $item"; done
while [ 1 ]; do echo "Infinite loop"; sleep 10; done

Here's a more complex one, using a few:
for db in `mysql -e 'show databases' -B | sed -e "1d"`; do
   for table in `mysql $db -e "show tables" -B | sed -e "1d"`; do
      if mysql $db -B -e "show create table $table" | egrep -qi 'ENGINE=innodb'; then
         echo "$table in $db is InnoDB engine"
      else
         echo "$table in $db is not InnoDB"
      fi
   done
done

  • bash expansion (nice for writing scripts) - bash has some nice features like conditionals and search and replace, that can use less piping to awk / sed (lower on resources). Some examples:
MYVAR=${SOMEVAR:-"default"} - this will set $MYVAR to the value of $SOMEVAR if $SOMEVAR is set, otherwise $MYVAR will be set to "default"
MYVAR=${SOMEVAR//search/replace} - MYVAR will be set to $SOMEVAR with all occurences of 'search' set to 'replace'.

  • in-file search and replace - this can be done with perl or sed, and can match on regex. for example, if you want to change all occurences of INSERTs to REPLACEs within a sql file: perl -i.bak -pe 's/INSERT INTO/REPLACE INTO/g' /path/to/some.sql
the -i.bak backs up the original file.

There's plenty more, so comments / suggestions are welcome (and I'll add some more in here as I remember).

    Tuesday, June 15, 2010

    The Architect

    Dave is an extremely creative and underutilized resource in our office.


    Friday, May 14, 2010

    The Pizza Cloud

    Friday night - it's been a long week, and time to head home. Friday nights are takeout night, so its a stop to pick up some quick 'n easy Italian cuisine on the way. Quick? Doesn't seem like it. For no apparent reason, everyone decided that Pizza would be Perfect. Phones ringing like crazy, staff on the verge of cracking. Angry customers walking out. Angrier customers cancelling orders on the phone. 2 hour delays. Not good at all.

    As I stood staring into the mesmerising flames of the wood oven, I figured these guys should expand. Then again, I've never seen them this busy. They need dynamic auto-scaling. Wouldn't it be great if everything was as easy as 1, 2, IT?

    Amazon launched their cloud service, http://aws.amazon.com about 2 or 3 years ago, being 1 of the first to offer the product. Since then, many major players have hopped on. There's a comprehensive list here.

    Moving from traditional hosting services to cloud computing can be quite cost-effective for many businesses. The stream of pizza orders being cancelled was not business lost for the night. It was business lost. Bad service = non-returning customers. 1 good marketing operation might find new orders coming in, as you notice your Analytics trending upwards. It's ok - your site is running on decent HA infrastructure, with a couple of servers. Its a really big pizza oven, and you can deal with the orders. You expect it, its Friday night!

    People are saying "Wow. Really valuable site. With anchovies please" - it starts to hit the viral networks. Tweeps are tweeting and its a real Buzz. "Do I have enough wood in my pizza oven" you think to yourself as CPU gets consumed by hungry database queries. The oven almost seems to be shrinking as available memory is gobbled by the overworked application servers.

    Right now would be a good time to 'click, click' and bring on 40% more servers. It's really that easy. AWS Management console. Launch new instances. 4 more servers online. 10 more servers online. 20 more servers online. Bring it on. It's not only the physical resources that add value. The providers are offering a great portfolio of products, such as monitoring services (CloudWatch), Auto Scaling that automatically grows infrastructure as load increases and shrinks it as it becomes unnecessary, and a multitude of web appliances built by specialists that you can launch. As an example, we have recently started investigating aiCache  as a scalable frontend SSL offloader. They have AMI's available to launch at your disposal and have put together a good solution - http://aicache.com/blog/last-man-standing-cnbc-soars-on-aicache-dyn/).

    We recently had a successful launch at Finovate in San Francisco, and fearing the TSPOP (Too Small Pizza Oven Problem), we decided to migrate our infrastructure to AWS.  Scale-up. Scale-down. No problem.
    Read more about the launch at http://www.jemstep.com/blog/2010/05/jemstep-has-successful-demo-at-finovatespring-2010/

    *Finally* - the pizza's are ready. They are hot but it took way too long. Next time I'll rather order from jemstep.com.

    Friday, January 15, 2010

    Farmville, now in Linux

    Installing any of mainstream linux distrubutions these days is a lot easier than a few years back, unless you want to get your hands dirty with a Gentoo "unsupported" stage 2 (which used to be the norm). The installation systems have really come a long way, and it doesn't take more than a an hour or 2 to have a mostly functional < server | desktop | laptop > up and running.

    Working in a relatively small startup company, we have found that installing / re-installing is a relatively common process to go through; with advances in hardware, virtualization has boomed over the last 3 years and  you could find yourself installing a few VM's over and over for ... whatever purpose you find fit. Here are some methods that could streamline installation of multiple Linux systems.

    1) OS Installation media - PXE-me-up
    PXE ('pixie'), or Pre-boot eXecution Environment, is a specification created by Intel that basically gives us stuff like network boot / network installs.  It can be built relatively easily by a sys admin: all you need is a DHCP server, a TFTP Server and OS installation images (pxe-enabled of course). Check out http://menteb.org/tech/gentoo-pxe as 1 of many howto's.

    2) Preconfigured installs with Kickstart (for the RH-type distros)
    Kickstart is a Rehat product developed to automate OS installations (and used in similar distributions, such asd CentOS and Fedora). The configuration is saved in a file, served via any method accessible to the PXE kernel, such as HTTP. There is an extension configuration parameter set that can be used to tune your install, ranging from partitioning to software sets to install, with the manual available at http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-kickstart2.html. Use a scripting language (perl / python / php) to dynamic present kickstart files for even better dynamic installs. Post-installation scripts, set via the %post configuration, gets the host up and running the way you need it to, complete with centralized authentication configuration (keep reading).

    3) Maintenance: local software repositories - Mirror mirror in the server room, what's the fastest of them all.
    The joys of sub-standard infrastructure. While most of you probably live in a country where bandwidth flows more freely water through the Amazon, we do not all share these small pleasures. Here in sunny South Africa, bandwidth is slow. And expensive. With as little as 10 hosts of the same distribution (and major version perhaps), it would be probably be a good idea for the average small to medium business to have a local repository of software updates, mirrored from upstream providers. The initial sync can be painful. Right now, we have a mirror of the latest release of CentOS (5.4) and Fedora (12), which is a little over 100GB. Once it's set up, a daily rsync will ensure that you always have the latest updates at your finger tips. Until the next release of course.

    4) Package management
    I love having the latest and greatest software versions on test systems - new features. Software crashes. Really broken dependency trees. Fun fun fun. Why? Source installations - the bane of the inexperienced system administrator. Most distributions have package management for a reason - it ensures integrity of software. It's been tested.  Many hours are spent by the distribution developers ensuring that everything fits together nicely for you so you don't have to worry about rebuilding 40 different libraries manually. Keep to yum, up2date, apt and portage if you can. And if you do need something thats not available, its not that difficult to set up your own repository. (rpmbuild + createrepo for RH distributions are great tools to familiarise yourself with).

    Lastly...
    5)Centralized authentication
    My first home network: 1 gentoo "server" *cough* celeron *cough* (which is still running today, 6 years later) and a Windows 2000 notebook. And centralized authentication with LDAP. And a Samba PDC. Those where the days, plenty of time to spend.  This is really only useful if there are more than 2 or 3 people needing authorized access to 10+ hosts and a handful of services (web applications, mail, source).
    One password to authenticate all, one password for them all. One password to authorize all and in the network bind them.

    Wednesday, September 16, 2009

    The forecast: cloudy weather expected

    Every year, a few hundred geeks migrate towards a central location somewhere in the US to attend the community-driven JBoss World (http://www.jbossworld.com). But this year was to be different from the rest: Jboss World was to be combined with the annual Redhat Summit in Chicago - a real treat. And there is a slight shift in direction with one of the biggest (and probably the fastest growing) OS / middleware stack solution.

    The biggest trends with JBoss middleware seem to be on SOA and cloud computing (incorporating virtualization and technologies such as REST) - and why not. Following the SOA governance principles ensures portability, scalability and overall software maintenance costs in software development, while cloud computing offers scalability and cost effectiveness for deployment of applications. (The Summit had a fair amount of focus on virtualization as the underlying technology of cloud computing).

    Cloud computing, for those of you who are not familiar with the technology, is a "paradigm of computing in which dynamically scalable and often virtualized resources are provided as a service over the Internet". One of the forerunners of this technology is Amazon's AWS (http://aws.amazon.com). I decided to give it a go.

    Monday, 6pm: Register for AWS after an hour or 2 of reading up on the various products, their features and pricing models.

    Tuesday, 2pm: Register for EC2 (computing) and S3 (storage) services. Once the services were set up, everything on the provider's side would be ready. The next 3 hours were spent reading up on how to deploy a virtual machine (instance based of an image, aka AMI) to the EC2 infrastructure. This included setting up keys and certificates for athentication, and building an operating system to deploy. By 5pm, everything was prepped and I headed off home.

    Wednesday, 10am: Start figuring out how to bundle, upload and register the images created.

    Wednesday, 3pm: My first cloud-based resource deployed, and available publically, with some basic services running.

    That's it - 1 full days work to order, access and deploy an operating system stack with services to a public environment. Compared to 4 - 5 days of setting up purchased hardware in a data center, this was such a pleasure. Not to mention that all resources are charged on a "pay-per-use" basis - no monthly leasing fee's. no service configuration costs. no hardware cost. Just stop all the services and there is no billing (Those expensive data center costs and hardware outlays really can hurt a business).

    My first impression: A truly powerful technology implemented with a good set of tools (as provided by AWS) is the way to go for web apps, whether you are a developer, reseller or service provider.