Blog

  • The oak at Brackley Manor

    The oak at Brackley Manor

    They said the oak was cursed.

    No one could quite remember when the whispers began — only that by the time anyone took them seriously, it was already far too late.

    The oak stood on the edge of the Brackley estate, a hulking silhouette against the sky. Its bark was thick and ridged, its branches clawing upward like bones breaking through the soil. For generations, couples had carved their devotion into its trunk, believing the act would bind them forever. It did — though not in the way they imagined.

    The first couple were found in their car at the edge of town.

    Their throats torn open — jagged, uneven —

    as though the killer’s hands had shaken with rage.

    The second pair were cleaner, almost ritualistic.

    By the fourth, they weren’t cut at all. They were found in their home, sitting upright on the sofa, hands clasped, their faces twisted into identical smiles — bark fragments lodged beneath their fingernails.

    Someone — or something — was learning.

    It was a weary constable who spotted the link: every one of the victims had visited Brackley Manor days before their deaths. Every one of them had carved their names into that same ancient oak.

    Attempts to understand the curse led back to the manor’s beginnings. The estate had belonged to Lord Brackley, a magnate of the Industrial Age whose wealth was as infamous as his cruelty. When he died, his family planted the oak in his memory — soil from his grave said to have been mixed into its roots. Over time, the Brackley fortune dwindled, and the manor was sold to the National Trust. Only one man remained from the old days: the groundsman, Henry.

    He was a gruff old soul, rarely spoke, and never smiled.

    Villagers said he talked to himself as he worked. Some claimed he avoided the oak altogether. Others swore they’d seen him standing before it in silence, as if listening.

    The next bodies were found hanging from a tree far from the manor, faces marked with the same cruel initials they had once carved in play. That was when the oak was finally cordoned off. Yet fear breeds fascination. The curious still came — whispering, daring, touching the bark as though to test its hunger.

    The public demanded the oak be felled, but superstition triumphed over sense. No one wished to be the one to strike the first blow.

    A tabloid headline made light of the whole affair: “A Bite Worse Than Its Bark.”

    Years passed. The story faded. The oak stood in silence, waiting.

    Then came the jilted lover. He carved his rival’s name into the bark one mist-soaked evening, laughing to himself as the blade bit deep. Two weeks later, he was found sprawled in his flat, chest opened wide, his heart missing. The rival lived on, none the wiser.

    The oak slept again.

    Until one cold, windless night, Henry was seen walking toward it, a lantern in one hand, a small knife in the other. He moved slowly, as if drawn by something unseen. He stepped over the broken cordon, stopped beneath the oak’s heavy branches, and began to carve.

    What he wrote, no one saw.

    By morning, he was dead, found in his cottage bathtub, wrists slit, the water the colour of rust. The police called it suicide.

    But one old officer,

    haunted by memory,

    walked the path to the oak before leaving.

    And there — beneath the rough bark —

    a fresh carving gleamed pale in the dawn light.

    HENRY BRACKLEY.

  • The threshold

    The threshold

    It was a night as bleak as the November wind that howled through the barren trees, casting long, skeletal shadows upon the countryside. Beneath the looming clouds, Ben and Emma, seasoned adventurers of the subterranean world, made their way through the craggy moors towards their chilling destination—an ancient, forsaken cave whose entrance was hidden deep within the earth. This was no ordinary cave, for legend whispered of a threshold buried within, a portal to the netherworld itself. And though the centuries-old sigil etched upon the ground had held the horrors at bay, curiosity, as it so often does, proved a potent lure.

    The two thrill-seekers had heard the tales, of course—everyone who had dared venture near spoke of the lingering scent of sulfur, the oppressive heat that seemed to radiate from nowhere, and the uncanny silence that would descend without warning. But those were tales for the faint of heart. Ben and Emma had set their minds on seeing the fabled gateway with their own eyes, perhaps even to summon whatever dwelt beyond. To them, this was no mere cave but a challenge to be conquered, a riddle to be solved by those daring enough to face the unknown.

    The journey through the narrow, dripping passageways was arduous, as the air grew thick with the stench of brimstone. Every creak of rock and drip of water seemed to carry a sinister note. The deeper they ventured, the more stifling the atmosphere became, as though the very cave itself were warning them to turn back. Yet, driven by the thrill of discovery, they pressed onward.

    At last, they came upon the threshold. In the dim light of their oil lamps, it appeared grotesquely out of place—a grand, seven-foot archway, ornate with ancient runes and symbols that pulsed faintly in the murk. Its smooth stone frame was a stark contrast to the jagged walls of the cavern, as though it had been carved by hands that had long since turned to dust. But it was not the beauty of the archway that unnerved them; it was the impenetrable blackness within. It seemed alive, as if something lurked just beyond, waiting.

    They sat in the eerie silence of the cave, their hands trembling slightly as they unpacked their provisions. The oppressive heat and foul odor had intensified since their arrival, and a sense of dread hung heavy between them. Ben, his face pale and drawn, broke the uneasy quiet. “Are you sure about this, Emma?”

    Her response was sharp, though there was a hint of uncertainty beneath her bravado. “You don’t believe any of this, do you? It’s all in your head,” she muttered, though her eyes betrayed her. She had suggested this expedition, desperate to prove to herself that the legends were mere superstition. But now, standing at the threshold of what might be the very gates of hell, doubt had begun to gnaw at her resolve.

    “I’ll go first,” she said, her voice faltering only slightly. Ben, always the cautious one, looked towards the symbol etched into the floor—the sigil that had protected the world from whatever lay beyond for centuries. “Just watch the symbol, Ben,” she commanded, her tone more forceful than she felt. “Make sure nothing crosses that line.”

    Ben nodded, his throat tight with fear. “We can still leave,” he suggested weakly, but Emma silenced him with a curt response. “Don’t be a coward. We came this far. We’re not turning back now.”

    Emma positioned herself before the black void, her breath shallow, her body rigid. Ben, still at the edge of the threshold, kept his gaze fixed on the sigil, his pulse racing. “Ready?” she asked, though it sounded more like a question to herself than to him.

    “Ready,” Ben replied, though his voice was barely a whisper.

    Emma began to chant, her voice low and steady, the words strange and unnerving. “We seek an audience, oh dark one. We are here to serve.” The echo of her voice seemed to be swallowed by the oppressive stillness. “We seek an audience, oh dark one. We are here to serve.”

    Suddenly, the steady drip of water from the cave’s ceiling ceased, and an eerie growl rumbled from the blackness. Emma faltered, her eyes wide, but she continued. Ben’s knuckles turned white as he gripped the lantern, forcing himself to keep his eyes on the sigil. But something was wrong. The air grew hotter, the smell of sulfur thickened, and a shadow began to stir within the void.

    “Emma?” Ben’s voice was barely audible over the rising tension, but she did not answer. Her eyes were fixed on the growing shape within the portal. A figure—dark, monstrous—began to emerge. The very cave seemed to tremble at its presence, as if the earth itself recoiled in horror.

    “Emma, stop!” Ben shouted, panic seizing him. But Emma’s voice, trembling now, continued to call the creature forth. “Come to me, master,” she whispered, her breath catching in her throat. The figure loomed larger, a grotesque mass of shadows and malevolence, and then—suddenly—it was there, fully formed, standing before her.

    A scream tore from Emma’s throat, a sound so raw, so filled with terror, that it sent a shock through Ben’s spine. In that moment, his gaze lifted from the sigil to the scene unfolding before him. Emma’s eyes were wide with fear, her body rigid, and then—in the blink of an eye—she was gone. A streak of blood smeared the ground where she had stood, leading into the threshold.

    “Emma!” Ben’s voice cracked as he collapsed to his knees, horror and disbelief gripping him. For a moment, he could do nothing but sob, his mind racing, unable to comprehend what had just happened. But soon, a cold resolve took hold. He had no choice. He had to follow her, even if it meant stepping into the abyss itself.

    With shaking hands, Ben grabbed the oil lamp and slung the backpack over his shoulder. Steeling himself, he took a deep breath and, without another thought, plunged into the chasm beyond the threshold.

    The darkness closed around him, and the nightmare truly began.

  • The Carriage

    The Carriage

    Tom could feel his vision blurring as he stared at the fuzzy pixels on his computer monitor. His mind drifted until a jolt of slumber brought him back to reality. His body reminding him it was getting late. He checked his phone and was able to confirm just how late it was. 3 missed calls from his wife. Another indicator that he’d been getting his work-life balance all wrong. He closed his laptop,  stowed it away in his bag and grabbed his jacket from the back of the chair. He headed towards the office’s exit. Nodding at the security guard who looked at his watch and gave a physical tut gesture.

    Wondering the streets of London. He watched through pub windows as the patrons sipped the remnants of their last orders. He strolled past a homeless beggar who offered his finger-less gloves in anticipation of any charity. Tom offered a regretful shrug as he ambled down the steps to his tube platform.

    Ten minutes remained until his train’s arrival, and an eerie sense of solitude enveloped him in the deserted station. Even the pre-recorded announcements had fallen silent. 6 minutes. Tom stared into the dark abyss from which his train would soon appear. Almost willing it to appear and save him from this sense of dread. The darkness from within the tunnel seemed strangely darker than usual. 4 minutes. As he stood on the platform he felt something brush past him. Not uncommon on a London Underground platform but an empty one?!? He looked in the direction of the breeze but saw nothing. He quickly convinced himself that this was likely a trick of the senses or a gust from a hidden train. The silence pressed on, intensifying his growing unease. 2 minutes. 

    He looked over at a discarded newspaper that was lying on a bench furthest from him. The pages began to turn of their own accord, first slowly, then with increasing urgency. With a final flourish, the paper hurled itself onto the tracks. His heart raced as he observed the same eerie occurrence happening to another newspaper on the next bench.The menace behind this force seemed to inch closer, each paper thrown with greater intent. As the last paper was thrown a blood-curdling sweeping screaming sound came towards him. He screamed!

    The tube train pulled to a halt in front of the now-petrified commuter. Tom stumbled aboard, relief washing over him. The train felt like a sanctuary, a reprieve from the malevolent presence haunting the station. Tom started to relax in his seat. As his composure was restoring he looked left down the carriage to see if it was empty. It was. He then looked right. It was empty bar a single passenger. A tall figure concealed beneath a hooded sweatshirt and mud-stained tracksuit zipped up to the collar. His trainers were also heavily soiled.  The stranger loomed ominously, arms hanging limply at his sides. 

    Tom quickly averted his eyes. He could sense the stranger’s eyes boring into him from the depths of that blackened hood.  The train embarked on its journey, and the shadowy figure began to advance. “Don’t panic” Tom told himself. He could hear the loud footsteps getting louder and louder. Tom gazed back towards the stranger. As the figure passed from one carriage into the next, the lights behind him extinguished. Tom couldn’t explain it and decided to head towards the driver’s cabin. Glancing back repeatedly, he realised the sinister stranger was closing in. The squirming blackness behind this menace writhed with the motions of the train. Tom quickened his pace. The nerves and the shaking tube making it impossible to move any quicker. A sense of relief came over him as he got to the driver’s cabin door. Tom pounded on the door….no answer. He turned to see that the unknown companion was now in the same carriage. “Help” Tom yelled while banging even harder on the entrance. The figure was now upon him. It leaned forward. For the first time, Tom could make out the face of his assailant. With pale almost blueish skin, the lower part of a face could be made out from the shadows of the hood. The most unnerving crooked grin came across the shaded visage. The horror of which rendered Tom utterly speechless.

    Abruptly, Tom bolted awake, his surroundings reasserting themselves. He was still on the tube. He looked around and could see a few other commuters. A friendly Asian lady gave him a reassuring smile. Tom laughed to himself. Feeling embarrassed. “We are now approaching Farringdon” came an announcement. Tom collected his belongings, eager to disembark. The door beeped and opened. Tom stepped out onto the platform, but as his foot met the concrete it seemed to vanish from underneath him. He landed on the tracks with a thud. He gingerly turned and looked up at the carriage. He could see he had somehow come out of the train on the wrong side. The hooded face leered down at him from the train, surrounded by passengers who all stared, their smiles joyless and forced. 

    His instinct for self-preservation kicked into overdrive, but a blinding light pierced his vision, and the tracks beneath him rumbled violently. Tom struggled in vain to regain his footing before the approaching train claimed him. He felt nothing.

    In the harsh illumination of the oncoming train’s lights, the malevolent features of the shrouded spectre were fully revealed. It was Death itself. The other passengers bowed their heads in apparent shame, slowly fading into obscurity. Death stepped away from the train’s door and entered the driver’s cabin, sealing the door behind him, as the train departed for the next stop.

  • First person

    First person

    It was a Monday like any other when “They made me do it” came into Toby’s life. He returned home, as usual, receiving the standard warm hug and kiss from his mother. With his customary grunt in response to her inquiries about his day, he retreated to his bedroom.

    Crashing into his room, he dropped his bag, closed the door, and powered up his gaming console. And there it was on his TV screen—the “They made me do it” game. It was unsettling not only because of its strange, symbolic artwork but also because Toby had no recollection of installing it. The mysticism of this new game made it impossible to resist. He donned his VR headset and selected “Play.”

    Toby found himself in the most immersive virtual reality experience he had ever encountered. He briefly lifted the headset to confirm it was just a game, then slowly lowered it again to survey his virtual surroundings. He stood in a kitchen, gazing at an open drawer containing a large knife. He pushed the drawer shut, and a message appeared: “Game over! Retry?”

    This time, Toby picked up the knife. He turned to see a man with grey hair, glasses, and a goatee beard. “Are you okay?” the stranger asked with genuine concern. Toby waited for a prompt to respond, but it never came. Instead, he walked past the man, searching for something else to interact with. Once more, the message flashed on the screen: “Game over! Retry?”

    On his third attempt, Toby turned and faced the concerned stranger again, hearing whispers in his head, urging him to act: “Do it,” “Just do it,” “End it.” Without conscious thought, Toby thrust the knife into the man’s chest. After the first blow, an unfamiliar sensation engulfed him. This was unlike any video game he had played before. He felt sick, and his head began to spin. He hastily removed the equipment and rushed to the toilet to vomit. “Are you okay?” his mother called from the stairs. “The… g-g-g-game,” he stammered.

    Toby’s mother entered his room first, with the shaking boy following gingerly behind. The television screen displayed the console’s home screen. “What!?!” exclaimed Toby. He frantically searched the game library but found no reference to “They made me do it.” “I swear, Mum.” “It’s okay, dear. Just turn it off, okay?” For once, Toby didn’t argue.

    Toby failed to sleep that night. The vivid imagery of that kitchen danced relentlessly through his head. The next morning, he descended drearily into the living room, where his mother was watching the morning news. Despite his grogginess, his senses sharpened rapidly when he heard the reporter mention a “fatal stabbing.” They sharpened further when the victim’s photo appeared on the screen—the same man from the video game. “Police are questioning the man’s wife, who was found at the scene. Witnesses say she was hysterical, insisting on her innocence.”

    A cold pulse ran down Toby’s spine. He knew the wife was innocent, and he kept repeating to himself, “But they made me do it!” Toby staggered to the kitchen for some water, his mother following closely behind. “Oh, sweetheart, what is it?” she inquired, rubbing his back to offer comfort. Toby felt himself calming down. He noticed his mother’s touch had ceased. He drank directly from the tap and splashed his face. Turning to his mother, he found her standing over the kitchen drawer. “Mum… Mum… what is it, Mum?” He approached her and placed his hand on her shoulder. She turned to face him, and her eyes were no longer hers. Instead of the caring blue eyes, they were as black as tar. “Mum?” Toby asked as he caught a glimpse of the knife she held. The last thing he felt was the cold steel of the knife entering his heart. The last thing he saw was “game over.” The last thing he heard was his mother’s screams.

  • The room

    The room

    The man with his trembling hands clutching the test strip, monitored the line with a mixture of hope and despair. His fervent prayers seemed futile as the line remained defiantly visible. The verdict was in, and it was a merciless one. The positive test result confirmed his worst fears. A sinking sensation had gripped his heart earlier when the insidious symptoms first reared their ugly heads.

    The verdict was clear, and he resigned himself to a night of solitary confinement in the dreaded sanctuary known as THE ROOM.

    From the very first moment he had set foot inside it, an overwhelming discomfort had settled in the pit of his stomach. The estate agent’s swift ushering, her evident unease, had only heightened his suspicion. THE ROOM exuded an unnatural chill, casting ominous and unexplainable shadows. His paranoia, never confronted, was further fuelled by the fleeting glimpses of discomfort on the faces of contractors who had dared to enter. None, including himself, had spent more than a mere ten minutes alone in that dreadful room.

    The room itself was modest in size, barely large enough for a camp bed and a small side table. Yet, it wasn’t the dimensions that elicited such profound unease; it was something far more sinister that gnawed at his very core.

    With the sun’s descent, the room was shrouded in eerie moonlight, the sole source of illumination emanating from an aged lamp on the side table. He tried to distract himself with a book, but his feverish mind resisted the words on the page. Setting the book aside, he extinguished the light, allowing strange, unnatural shadows to dance upon the walls. The man reluctantly closed his eyes, seeking refuge from the malevolent spectres that seemed to lurk in every corner.

    As he attempted to drift into sleep, peculiar thoughts swirled within his fevered mind. A disconcerting scratching sound pierced his consciousness. Was it real or a manifestation of his fevered dreams? The sound persisted, emanating from the door. Trembling, he fumbled for the bedside light and approached the door, apprehension tightening his chest. Upon opening it, he caught a fleeting glimpse of the cat darting into the darkness under the stairs. The guttural, primal fear in the cat’s cries chilled him to the bone. He strained to convince himself that something other than the room had triggered such a reaction, though his own doubts loomed large as he reluctantly pushed the door shut.

    Resettling into bed, he battled the tension coursing through his veins and slipped into fitful slumber. Nightmares of schoolboys and grotesque headmasters intruded upon his restless rest, punctuated by eerie whispers and the sound of hurried footsteps. The clatter of small shoes on wooden floorboards sent shivers down his spine.

    Enough was enough. The man approached the exit with determination. Panic surged as he grappled with the doorknob, futilely attempting to escape. It was as if an unseen force held the door fast, pulling it closed from the other side.

    The whispers of children had transitioned from playful chatter to anguished cries, and the footsteps grew heavier, more ominous. An invisible force pulled him down onto the bed and held him there, as the sounds of tormented children filled the room. The colossal footsteps circled the bed and halted behind him. Trembling, he mustered the courage to turn and confront his tormentor. What he witnessed surpassed any horror he had ever imagined. A scream welled up within him, yet no sound escaped his lips. The shadowy spectre had accomplished its sinister task, and with an ominous creak, the door to THE ROOM slowly creaked open.

    The following morning, the wife descended with breakfast in hand. Her piercing screams echoed through the street, a harbinger of the gruesome scene she had stumbled upon. Officially, the man’s demise was attributed to the virus, but had anyone examined his agonised, terror-stricken countenance more closely, they might have considered the far more sinister forces at play in his untimely demise.

  • The lady in white

    The lady in white

    In the hushed corridors of history, myriad tales swirled around the enigmatic lady in white. Most dismissed them as idle gossip and superstitious ramblings. Over the years, those who claimed to have glimpsed her were often blamed for excessive wine consumption or attributed their sightings to mere tricks of light. The ancient castle, rumored to be her dwelling, bore witness to centuries of human drama. Yet the lady in white’s story remained elusive, shrouded in vagueness and inconsistency. Some whispered that she was a nanny who had descended into madness and set the castle ablaze, while others insisted she was the mistress of the house, eternally tethered to her final resting place. To Anna’s practical mind, it was all nonsensical folklore. She was on the verge of marrying in this castle, and no spectral mumbo-jumbo would mar her joy. So convinced was she of the ghost’s nonexistence that she felt perfectly at ease staying alone in the bridal suite the night before her wedding.

    Anna’s stomach churned with pre-wedding jitters, rendering her unable to eat that evening. She ascended the castle’s long, dimly lit staircase, its eerie ambiance only intensified by the shroud of night. As she approached her room, a shadow darted swiftly beneath the door. With trepidation, Anna pushed open the door, revealing an empty room. “Just a figment of my imagination,” she reassured herself.

    In an attempt to distract herself from both the impending wedding and the unsettling atmosphere, Anna reached for the romance novel resting on her bedside table. While engrossed in her reading, a peculiar clicking sound resonated in the room—click, click, click. Anna set the book aside, her curiosity piqued. The sound ceased when she stood up. Odd, indeed. She resumed her reading, and once again, the clicking commenced—click, click, click, followed by a resounding bang. Anna’s gaze darted to the corner of the room where her wedding dress, covered in a protective garment, had tumbled to the floor, revealing a gown marred by bloodstains. Terror gripped her, and she screamed, rushing forward to inspect the dress. Strangely, upon closer examination, the dress appeared unblemished. Anna zipped it back into its protective cover.

    Though shaken to her core, Anna dismissed these occurrences as mere figments of her imagination. She decided to ease her nerves with a soothing bath. As she lay in the tub, the sound of a woman sobbing drifted from her bedroom. Anna leaped from the bath, hastily wrapping herself in a towel, and dashed into the bedroom, but it was empty, the weeping having ceased. Her dress lay on the bed, outside its protective cover. This was no mere product of her imagination. Fear began to gnaw at her; perhaps she should flee. Or maybe, she thought, she could pacify the spirit by donning the wedding dress. She made the decision to put it on.

    After drying herself, Anna slipped into the dress with care. She settled in front of her vanity, methodically brushing her hair. Then, the crying began again. Slowly, she turned the mirror toward the source of the sound. And there, in the reflection, stood the lady in white. The spectral figure’s face remained obscured by a veil, her torn gown stained with blood. She sobbed uncontrollably. Anna, compelled by a mixture of curiosity and dread, inched closer to the apparition. When she reached the ghostly figure, she gently lifted the lady in white’s veil. To her astonishment, she gazed into her own eyes. Anna gasped and dropped the brush. The woman in white was herself! The dress she wore was the wedding dress Anna had donned. A blood-curdling scream escaped her lips, and she turned to flee. In her panic, she failed to consider the length of her dress’s train. At the top of the stairs, she tripped and tumbled, never reaching her wedding. Perhaps, in the end, there was no wedding at all, only a timeless nightmare woven into the castle’s haunted tapestry.

  • Hello again!

    Hello again!

    Hello, it has been a while. So Nick what’s changed with you?

    Well, very kind of you to ask. So my last post was in 2017 which was 6 years ago! The cruel mistress of time becomes more vicious the older you get. Since our last catch up I bought my 1st house, closed my company and failed to learn French again during the 1st pandemic for over 100 years!

    The biggest shock blessing in my life has been the birth of my daughter. The 1 to 2 child step was much more than I could have ever anticipated. That said Holly is worth it. At 6 she is showing signs of being a smart and beautiful girl with just the right amount of sass.

    My eldest Josh is now 12. Leaving primary school for secondary has been a huge transition for him. Especially as not any of his circle of friends went to the same school. I’m super proud of how he has coped. And he’s excelling in his new school. Sadly, he recently decided to quit his football team. We’re hopeful he’ll find another passion (not involving a control pad) soon!

    Professionally, I’m working at a start-up after quitting contracting and becoming permanent again. I’m now leading a team of engineers on some very engaging projects.

    The bleakest update till last I’m afraid. Since my previous blog, my beloved Southend United have fallen on hard times. They’ve been relegated to the non-league. And their financial predicament looks terminal. Ron Martin has put the club up for sale after numerous winding-up orders and countless months of not paying staff. Who will buy a club without any notable assets?! 

    I think this is a good enough summary for now. I’m trying to get into a regular cadence of writing, so watch this space!

  • AWS EC2 PHP7 upgrade

    Goal: Upgrade AWS EC2 to PHP7
    Secondary Goals: Learn Docker

    After the dust had settled from the birth of our 2nd child, I decided it was time to revisit my to-do list. Top of that list was to upgrade my AWS EC2 instance to PHP7. Those braver than myself may have simply just upgraded and hoped for the best. My doomsday mindset wouldn’t allow me to do this. Although, as it turned out the more gun-ho approach would have probably been fine.

    My existing production environment is a LAMP stack with all dependencies installed on the same AWS AMI EC2 instance. I use this WordPress blog as a service so this is also hosted on the same box. I also have several side projects each with its own VHOST entries. My dev environment is using Zend server community edition which is still using PHP5. This dev environment is what I’m hoping I can replace with Docker.

    Preparation

    Ok, first up I created a new directory that would contain all files I would need on the box.

    /container
    /container/configs/apache — an vhost conf file for each domain
    /container/mysql/ – SQL dump files to import tables
    /container/sites/nickbennett/ – all files for main site
    /container/sites/blog/ – all files for the blog

    A point to note regarding the SQL files is because the DB is blank you will need to set up your initial user e.g.

    /container/mysql/user.sql

    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mypassword');

    /container/mysql/databases.sql

    CREATE DATABASE IF NOT EXISTS nickbennett;

    The Dockerfile

    FROM amazonlinux:2017.03
    RUN yum update -y
    RUN yum install -y php70 php70-mysqlnd httpd24 mysql56-server nano.x86_64
    ADD sites/nickbennett/ /var/www/site/nickbennett
    ADD sites/blog/ /var/www/site/blog
    ADD configs/apache/ /etc/httpd/conf.d/
    ADD mysql/ tmp/
    EXPOSE 80
    CMD service httpd start
    CMD chkconfig mysqld on
    CMD service mysqld start
    CMD mysql < /tmp/users.sql
    CMD mysql --password=mypassword < /tmp/databases.sql
    CMD mysql --password=mypassword < /tmp/nickbennett.sql
    CMD mysql --password=mypassword < /tmp/blog_nickbennett.sql

    Then to build

    docker build -t nbsite .
    docker run nbsite

    wait something happened…there were no errors…but I can’t access anything on port 80!

    I run docker ps and there is no container listed. I tried without much luck to find the answer. My assumption was that the httpd service running would be enough to keep the container running. I even raised a stack overflow question…

    Stack Overflow

    Luckily, an old colleague came to the rescue with this command…

    docker run -it -p 8080:80 --rm nbsite bash

    This runs bash within the container so as long as I remain logged into bash the container would remain open. The only downside is all of the ‘CMD’ calls made in the Dockerfile would no longer be run. These would have to be run manually. To save running these each time I created a new directory /container/Bash and inside it, I made an executable shell file with the same commands as the docker file. I simply copied this onto the container and ran it from the command line. Hey presto my local AWS AMI PHP7 box is up and running! I can access the site via port 8080 i.e. nickbennett.dev:8080 (remember to update your local /etc/hosts).

    To use the container as a dev environment I need the ability to edit the local files on the container. Docker has a simple -v command which allows you to map a local directory to the one on your container. I can edit the files locally and see the change immediately in the browser.

    docker run -it -p 8080:80 -v /LOCAL_PATH_TO_CONTAINER_DIR/container/sites/nickbennett:/var/www/site --rm nbsite bash

  • How much deposit do I need

    So I’m now 36 and I’m still not on the property ladder. I know it shouldn’t, but it makes me feel like a pathetic loser. I really shouldn’t be so hard on myself when I look at the statistics. This recent BBC survey goes to show I’m not alone. I haven’t given up on the dream and have a gut feeling that one day it will happen. Being a pragmatic developer I decided the first step is to see what kind of deposit I need. That’s when I came up with the idea for howmuchdepositdoineed.uk. It’s a simple web app that allows you to enter your postcode and the kind of property you’re looking for. Using Google geolocation we can determine the radius of the property area. Then we ask Zoopla for the first 50 listings that match our property type. It works quite well although I wish the deposits were a little smaller.

  • Agile 101….0

    Is it ten-ten or one-zero-one-zero. I have no idea. What I do know is that this game is more addictive than heroin. If you haven’t already, download it today at your own peril. The idea is very similar to Tetris. However, the difference is you are given 3 shapes at a time and you can place them anywhere. Like all good games, the simplicity makes this one a winner. So what the hell has this got to do with Agile I hear you scream. Well, it occurred to me while playing my 100th hour how there are many parallels between the game and Agile methodologies.

    When you first start playing the game you have your Tetris mindset on. You start trying to tightly fill the spaces so there are no isolated gaps. Then the next 3 shapes appear BOOM! Game over! The game is random I’m sure, but has a  knack for giving you the exact shapes that you cannot place on the board at the right time. This seemed to me to match the common waterfall approach of project delivery. Planning to the nth degree until an unforeseen blocker appears. Game over. The striving for perfection the first time is a fallacy I’ve experienced at countless companies. Let’s be honest though, it isn’t just management it’s devs too. Give a developer a Greenfield project and they will have the same visions of grandeur that will never be achievable within the given deadline.

    So how do you play 1010 then? Well, the same way you deliver Agile projects. Piece by piece delivering value as often as possible. So for the game, it is essential to clear lines as soon as you can. The game wants you to plan for the future. Relying on certain shapes to appear. Don’t! Just try to stick to the edges and always take the lines when you can. I remind myself of Judi Dench in Skyfall saying ‘take the shot’. Replacing ‘shot’ with ‘line’. Sure, you’ll have ugly gaps on your board but you’ll also have a high score at the end. Maybe this has been a corny blog post but I think the similarities are undeniable. So for all Agile practitioners out there have a play with 1010 and maybe it’ll help you hone your understanding of delivering value at every opportunity.