first program of a new adventure

I wrote my first program (not including the false start last time I attempted programming) in Python… and it works! after a few bug fixes it’s actually quite small and some would think insignificant.

But I’m getting used to the syntax and form of the language.

print (“hello”)

print (“nwhat are your 2 favourite foods of all time?”)

food1 = input (“nt1.”)

food2 = input (“nt2.”)

print (“I have made “,food2+food1,” for you!”)

input (“press a key to exit and enjoy your meal :)”)

my first three Python scripts

1

inventory = [“sword”, “Shield”, “Charm”, “Luck”]
spent = “”
word = “”
import random
while inventory != “”:

word = random.choice(inventory)
print (word)
spent = spent+word

if word in spent:
inventory.remove(word)
else:
print(“/n”)

input (“press a key”)

What this program does is select a word at random from a list.
Then it displays the word.
It then selects another word, it will not select the same word more than once.
It will always be a random selection.
The program concludes when there are no more words to display.

2

def game():
again = “”
buy = “”
wallet = 30
attributes = {“Dexterity”: 30, “Wisdom”:30, “Health”:30, “Strength”:30}
print (attributes)
while again != “n”:
if attributes == “”:
print(“goodbye!”)
else:
choice = int(input(“1 = exit n 2 = spend money on attributes n for your character. n 3 = sell an attribute. n 4 = sell off an entire attribute. n Choose a number from 1-4:”))
choices = {1, 2, 3, 4}
while choice in choices:
if choice == 1:
print (“Goodbye”)
input (“press a key”)
elif choice == 2:
#spend coin
buy = input (“what would you like to spend money on?:”)
if buy in attributes:
attributes[buy] += 5
wallet -= 5
print (“You have “, wallet, ” dollars left”); print (attributes)
else: print (“that is not a legit attribute!”)
again = input (“play again y/n”)
if wallet <= 0: print (“you can’t play anymore”); break
elif choice == 3:
#make coin
sell = input (“what would you like to sell for money?:”)
if sell in attributes:
attributes[sell] -= 5
wallet += 5
print (“You have “, wallet, ” dollars left”); print (attributes)
else: print (“that is not a legit attribute!”)
again = input (“play again y/n”)
if wallet <= 0: print (“you can’t play anymore”); break
elif choice == 4:
#sell an attribute
sellAll = input (“which attribute would you like to sell all of?:”)
if sellAll in attributes:
wallet += attributes[sellAll]
del attributes[sellAll]
print (“You have “, wallet, ” dollars left”); print (attributes)
else: print (“that is not a legit attribute!”)
again = input (“play again y/n”)
if wallet <= 0: print (“you can’t play anymore”); break

replay = input(“Are you tough enough to play? y/n”)

if replay == “y”: game()

This program still has a ton of bugs in it.

What it does is display a list of attributes and quantities of those attributes that your character has in his inventory.

Then the program gives you the option of selling some of or all of any of the attributes, or buying more of any of the attributes. I haven’t yet got it to the point where you can choose to do anything.

It all runs fine until you decide to take a different action.

The program never returns to the main menu to list your available actions, it just repeats the question, for example, “what would you like to spend money on?” whereas it should say “what would you like to do next?”

3

parents = {“Luke Skywalker”: “Darth Vader”, “Judy Garland”:”Liza Minelli”, “Peter Fonda”:”Henry Fonda”, “Kate Hudson”:”Goldie Hawn”}

print (“I know these children”)

allInherit = list(parents.keys())

print (allInherit)

child = input (“Tell me a child and I will tell you their parent.”)

if child in parents:

    inheritance = parents[child]

    print (inheritance)

    input (“press a key.”)

This program is much simpler.

The program lists a number of people’s names and boasts that it can tell you the name of one of their parents. You are supposed to input one of the names, be sure to spell it correctly. And the program will display the name of the parent.

This works, but it is a bit too simple, it does one thing and then exits.

my first real Javascript program – “the name game”

copy and paste it into an entirely blank html doc/web page or a notepad++ save it as HTML then open it to run it automatically in browser. If you want to share code, the easiest way is to upload it to a server and share the link.

<!DOCTYPE html>

<html>

<head>

<meta charset=”UTF-8″>

<title>name game</title>

</head>

<body>

<h1> the name game </h1>

<script>

var lastName = “”

var firstName = “”

var initial = “”

var name = “”

firstName = prompt(“Hi dickhead, what’s your first name?”, “”);

alert (“Hi, dickhead!” + ” I mean, ” + firstName, “”);

lastName = prompt(“What’s your surname then, beef?”,””)

initial = prompt(“Do you have a middle name? if not just make one up. What is your middle initial?”,””);

name = firstName + ” ” + initial + ” ” + lastName;

alert (“So your name is ” + name + ” That’s stupid!”);

</script>

</body>

</html>

Dawn Raid 2021 (dir. Oscar Kightley) VS WeWork or the making and breaking of a $47billion Unicorn 2021 (dir. Jed Rothstein)

In the same way that watching The Big Short and Margin Call (and Kill the Messenger with American Made) together, gives you two sides of the same story. Dawn Raid tells the New Zealand side of the entrepreneurial story where hustling only gets you so far, and where a lot of good entrepreneurs (or good hustlers in the case of WeWork) fail is when they are required to scale and they fail to put in place systems to protect themselves, and simultaneously put in place experts in business strategy who they can trust, to support their exponential growth and avoid the (to some) obvious pitfalls.

It sometimes amazes this writer, given these conditions, how people like Steve Jobs, Neri Oxman, Tom Kalinske, Peter Tamte, Jay Silver, Will Wright, Paul Boswell, Marty Sklar and Jony Ive were able to succeed at such a level, without falling victim to these pitfalls. A different time perhaps? Or maybe that part of the story was left untold, in the main biopics.

A fiction series that gives a lot of these keen insights is the South Korean drama, Startup 2020 by Park Hye-Ryeon (not to be confused with the less realistic, but ultimately more exciting American series, Startup 2016 by Ben Ketai.) As a family member once said to me when I was trying to build a tech startup, “You need a Do San.” Referring to the fact that I’m not a software/hardware engineer (the CEO in the series is a young woman called Seo Dal Mi, and Nam Do San is the software/hardware engineer genius, who at first wanted to be the CEO), although I am a digital product designer and developer.

WeWork: or the making and breaking of a $47billion Unicorn 2021 (dir. Jed Rothstein)

A roller-coaster ride of a film, about a company I had never heard of with equal parts charisma and idealism, but in the end when business sense was lacking the void was filled with bulls&%t and it crashed through the floor hurting those who loved it… With a bail-out for its creator. Still, lesson learned, when you can afford to, you should pay your staff what they’re worth. And/or at least not be a hypocrite about socialist ideals.

This is a fascinating flick!
And reminds me a bit of the story Dawn Raid by Oscar Kightley of the nz hip-hop label Dawn Raid.

In both cases, the business that was created by the creative hustler entity’s innovation and momentum, almost permanently changed their environment’s landscape positively which would have massively impacted the potential opportunities for the next breed of game-changers in their community.

Yes I do understand that the people behind WeWork are hustlers to the point of criminality. Other than that the two stories are eerily similar.

Wework: 2.5 stars

Dawn Raid: 2.5 stars

Takeaways:

  1. Everybody hates on you when you get big.
  2. Innovators and hustlers often don’t know what to do when they start to scale – that’s when the accountants/vultures attack.
  3. Lawyers and actual accountants are useful when you start a business, use them – they could save your life (but they shouldn’t be in charge of creative decisions.)

For All Mankind 2019 (co-created by Ronald D. Moore) vs Liaison 2023 (created by Virginie Brac)

With “For All Mankind”, (currently streaming on Apple TV) – an alternate history drama where the space race never ended, the characters are what make it work. That’s almost a cliche but it’s so apt. Karen is a deeper version of a typical 1950’s housewife, it’s the late 60’s but alot of the ‘wives’ didn’t get the memo. And with the politics of the time, (only just laws passing for equality, and still no gay rights) – though this is probably accurate, things feel very 10yrs-old.

Fear of communism tied to fear of homosexuality, democracy and liberalism, especially in the system i.e. laws/political sensibilities/career ascension and those who do the hiring and firing. It’s so unfair it’s almost criminal, but we’re told that’s just how it was. It took a few brave people to stand up and not take their shit, “all systems are corrupt” to change things.

The way things change and stay the same introduces so many shades of grey into the political landscape penetrating the surface of the stories, that allows the characters and the performances to have so much more depth than if the show played it straight as a docudrama with only the excitement of space travel.

The drama on the ground is almost more interesting than the glacial achievements of the space-chasing heroes which pretty much succeed in stopping wars, changing governments etc.

Putting a woman in Space was initially a publicity stunt because the ‘commies’ did it first. But the overseeing and integrity and hard ass management of the process made it a true thing – Deke wasn’t going to put these women into space, wasn’t going to have them succeed the program if they hadn’t earned it and weren’t ready.

The domestic difficulties are fascinating but there could have been more. Which is where one might recognise that there is no real violence in this series. It’s a show with depth of character, truisms and complexity – but is far from gritty if that’s what you’re looking for.

Wayne Cobb (husband of first American woman on the moon) and Karen are from different worlds, but they have more in common with each other than either could have imagined.

Perhaps the heroes of the story would be unlikeable if there was domestic violence. But it’s okay to have Gordo cheat on his wife. And she not leave him – for the deciding reasons, which only she knew. Suggested reasons include: she loves him, for the kids, and survival – without him what happens to her and the kids, as a space wife?; the publicity, the shame, how would she survive on her own?

Liaison is a completely different style of show (also streaming currently on Apple TV.)

There are a couple of Syrian hackers who get into trouble while resisting the ‘evil’ system but they discover some files which they decide to report to the authorities. But first they need to get out of Syria and be granted asylum. Just knowing the information puts them under immediate and deadly threat.

In France, corrupt politicians and a private security agent negotiate each other to handle the situation.

In London, there is a cyberattack, a warning of what is coming.

The French private agent – Gabriel (Vincent Cassell) and the London government agent – Allison Rowdy, were lovers at a time when something terrible happened – to be revealed later.

The reveals and the way the action and intrigue is plotted, are probably the best thing about the show. Domestic drama on the surface, love and sex on the surface, but a mystery waiting to be unwoven is the heart of this story.

Top tier writing on this show and the performances, though not particularly varied, are fierce. As long as you don’t mind subtitles.

Liaison 2 stars

For all Mankind 1 star

A note on my rating system; if I give anything 3 stars or more, that’s a recommend and you have to watch it at least once. 2-2.5 stars is good. 1 star is decent. 0 stars is crap.

Logan Lucky (2017) – Dir: Steven Soderbergh (written by his wife, Jules Asner)

So these two guys, brothers, get fucked by the world and decide it’s time to finally pull off a heist.

The smart one with a limp and the capable one with one hand – both injured during military service.

The one handed guy, (who I didn’t even recognise is Adam Driver – as Clyde Logan) manages the local bar. The smart one, Jimmy Logan (Channing Tatum) is struggling to raise his daughter and then he gets fired from his job driving a digger, (because someone saw him limping and he didn’t declare his injury when he applied for the job – so for insurance purposes he was let go.) His boss is not an asshole, his boss’ superiors are forcing him to let the guy go.

Still, though, he’s trying to raise a kid, he’s divorced and his job prospects don’t look great. It’s time to do something about it.

‘Cauliflower’ The secret password for doing something really stupid.

His brother, Clyde, hears him out, they agree and it begins.

That’s all you need to know about the story, that way I’m not giving away the good stuff.

Daniel Craig is brilliant as the tough as nuts hard man, vault guy – Joe Bang.

Predictable is exactly what this film is not. Even, I suspect, if you could always solve the old Jonathan Creek mysteries.

You might predict the first wave of trickery, how they are planning to do it, how they do it, how they hope to get away with it.

But will you predict the second wave of trickery, what we didn’t notice, what they actually did versus what they want you and the two idiots to think they did, etc?

The humour isn’t really there, but it’s a smart, complex heist movie, with twists and turns and depth of character.

Joe Bang is a creepy dude, but with heart. You can trust him, just don’t cross him.

Clyde is a nice guy, who follows through and loves his brother.

Jimmy, the protagonist, (this is emotionally obvious, plot-wise I would say there are a few potentially central characters), is way more clever than he appears.

Clyde, Soderbergh and Joe Bang

It might be a bit whitebread of me, but I have to ask…

The only question I have is why a heist? They could apply that level of thinking and execution to any number of missions, quests or enterprises and pull it off. Perhaps it is their environment? They are surrounded by people who only excel when they’re ripping people off. The Logans can only work with the people they have access to. They just need a good reason to do so, low risk (a brilliant plan and relevant motivation) and high reward (cash.)

Or maybe they just like ripping people off. Fair enough, but I didn’t get that from their character. There feels like a whole other half of this movie that wasn’t on the screen. Even the ending implies there’s more to the story.

Okay so it’s a solid heist movie – but it still makes me wonder, if they’re that good, why are they working low-income jobs which is presumably the reason they are committing the heist in the first place? Why aren’t they running an espionage company or exploiting weaknesses in the market, or pooling their resources to make an adult film/Larry Flynt-esque operation? Those things have far less bodily harm/legal risk.

Perhaps it is not so much about reason as it is about emotional motivation. They are doing a heist because they want to rip off people who piss them off. On the surface you think it’s a crime of passion, purely emotional instinctive lashing out and kicking ass.

But eventually you realise the meticulous planning that went into this not only surviving but having no option to fail and certainly no way of those assets letting slip what they did.

So we come back to my question if they are that fucking clever and capable, why a heist?

2 stars.

Ups: Clever and entertaining, emotionally rewarding.

Downs: Missing a few pieces and not emotionally, artistically or intellectually amazing. Not an original story.

Uncut Gems (2019) – Dir: Josh Safdie (Heaven Knows What) and Benny Safdie

Adam Sandler disappears into the role of young, Jewish hustler and degenerate gambler, Howard Ratner, with big dreams and a sharp mind. A wife who loathes him and doesn’t understand him, but his kids love him. His girlfriend is in love with him and she is sweet and devoted, even if it is somewhat difficult for him to trust her fidelity at times.

Howie did his research and while dodging a loan shark and his idiot loose-cannon bodyguards and bullets, as well as excessive hand-to-hand violence, from them, he has a million dollar stone to sell.

Howie is a jeweller so he’s in the right business. The stone is worth a million because he acquired something nobody else was looking for.

Howie is also a basketball fan, his young son follows his dad’s passion for basketball. In other circumstances, Howie could be a great father. He loves his kids and always tries to be there for them. But his gambling and lack of caution when dealing with violent criminals, can get him in trouble – which when he finds himself in it, seems to take him by complete surprise.

One thing it is important to recognise is that Howie is a top-tier bullshit artist and compulsive liar. He’s also an expert businessman. Alot of the time, when he’s trying to do business, people don’t believe him and this also puzzles him. He can’t close deals sometimes, or there are upsets, when he tries to do legitimate business, but the uneducated associates think he’s full of shit. Which is true sometimes, but it still feels so unfair when he gets ignored by the ignorant – who should know better. Unfortunately, this usually happens when he has a lot to lose – often his life and/or bodily harm – which is his own fault most of the time.

Okay, so the writing is good in the way that it’s a simple story with lots of intricate puzzle pieces, layers of complex elements and lenses. We have a few important characters. Especially Howie and his girlfriend. The style of writing is nice, too. The characters and dialogue are fresh and interesting enough. The way the story is told is, in a sense taking the audience on a journey, following Howie and the others, in raw detail.

Simply told. But we care about the characters because every character in the film has several dimensions, even the walk-on parts are interesting in that there is consistently more to them than surface details and obvious motivations. Some people care about Howie, others don’t so much. And it’s not always obvious telling which people are on his side – that’s the most unique thing about this film. Trying to figure out who is on Howie’s side and watching Howie, himself, hoping that he wins this time, as he bets more than he has, again.

The visual language of this film is simple. And there is no x-factor. I have covered about the limits of this film’s upside. The downside is that besides the solid ending and that donkey that the audience will wish hellfire upon, there’s not much more to it.

2.5 stars

First Thoughts on my Favourite Comic Books – episode one

Captain Atom no. 51 (my favourite single issue comic book)
In this book, Captain Atom is not actually the central character. Instead we are treated to a simple story which mirrors the events in Cap’s life right now – his checkered past catching up with him. The central character is an old man called Pops. He “might be more powerful than Captain Atom.” His power is an energy based telekinetic blast. When he was a kid he was bullied and he couldn’t take it so he lashed out and the bullies were killed. This haunts him. In his present day life, Pops avoids confrontation, turns a blind eye to violence in his neighbourhood. But his son is the opposite. Son of Pops inspires the neighbourhood to get rid of a gang who are bullying residents, robbing, raping, mugging. The pimp-style gang boss decides to send a message, beats up the son’s girl and kidnaps him. He is beaten to within an inch of his life. Pops finds out when he is called to the hospital to see to the girl. Everybody knows where the gang hide out, so it is not hard for Pops to find his son. He walks in, blowing away anything, anyone in his way. Picks up his son and leaves. The fact that finally he puts away what happened and focuses on doing the thing his heart requires, that he uses his powers in the end even though he vowed to never again – it’s a compelling story, even if it is rather simplistic.

Captain Atom arrives home at the end of the book and there is a news item about Pops. So the story links in part with the main plot at the end of the book. Captain Atom’s past is tainted by the fact that he was on death row for murder and he was a hamster in an experiment, guaranteed his freedom if he survived. The nuke he was sitting on, when it exploded it fused the alien metal casing which he was contained in with his flesh. The alien metal kept him alive as he dematerialised and rematerialised. The atomic bomb also became a part of him as he ingested its energy. And he became Captain Atom. This was an unexpected result. Due to the force of the explosion, he teleported a few times as he began to reform his body, finally landing a few decades in the future. The general who was in charge of the experiment tried to cover it up and destroy the Captain. But Cap found an ally in a survivalist scientist who also had been following the experiment – but whose interest in Cap was purely academic.

I love stories which explore family relationships in a new way. Captain Atom 51 does this. 

First Thoughts on my Favourite Comic Books – episode two

Wolverine no. 119, the first of a mini series called Not Dead Yet
Wolverine 119 is the first book in a mini-series set in Hong Kong where Wolverine has no adamantium after Magneto took it from him in X-Men: Fatal Attractions. Not Dead Yet is a great storyline written by Warren Ellis and with art by a favourite artist, Leinel Francis Yu.

For those who don’t already know, Wolverine’s skeleton is coated in an indestructible metal called adamantium. He also has the ability to heal instantly from any wound. And he has brilliant animal senses. Not to mention sharp bone claws (also coated with adamantium) that protrude from his knuckles. Logan (Wolverine’s most popular human name) has a berserker rage and since his healing factor has slowed his aging process by a ridiculous amount (he’s been in his 30’s since before WW2) he has had plenty of time to learn and master countless fighting styles. He survived Hiroshima.

What I like about the art is it’s vintage romantic feel, despite being made in 1997. The gore is minimal which is a shame, because Asian films celebrate violence in a really special way and Asian comics are often concerned with fighting. So there was an opportunity to do something really shocking with this book.

119 is a book I wish to display because Wolverine is one of my favourite characters, I especially love this mini-series because it shows a vulnerability and familiarity with a superhero whom we have never before felt so close to. Wolverine is arguably the most unkillable, unbeatable superhero – now we see him as more of a man, as closer to ourselves.

He is no longer unkillable, without the adamantium. But his healing factor is increased, so that point is debatable. He is more vulnerable, but his primal senses have increased, so he is in some ways a more effective killer.

I should note here that some of the God-like superheroes could probably kill Wolverine just by dematerialising his entire body in one go. But my impression of Wolverine as the unkillable superhero is limited to living non-Gods. I don’t think Captain Atom could kill Wolvy and if he tried it would be one Hell of a fight.

The setup is two aged assassins – McLeish the white ghost and Logan, tossing back a few beers in a local pub. McLeish is apparently the greatest killer alive and he’s talking about getting old. Logan is also getting old. In the start, it’s a flashback. Two old guys talking about the old days, of killing, drinking and sharing a few laughs.


Logan has a Chinese girlfriend, he takes her to the movies. Before Logan left the pub, McLeish did let on that he is remembering Logan’s schedule – a foreshadow that perhaps McLeish is planning to assassinate Logan.

In present day Manhattan, Logan is without the adamantium, he is developing a past-his-prime complex. McLeish is hunting Logan.

“The best killer in the world has had years to plan a way to kill me. And he thinks I’ve still got the adamantium, which made me a lot harder to kill.”

My first meme – thoughts?

myfirstmeme.jpgHere’s how I see this going down

Captain Atom dematerialises Mr Gone and the JSA except for Spectre who is impenetrable and he forgets to dematerialise Nny because Nny is just lucky that way. He doesn’t bother to dematerialise Curse of Spawn, because he can rematerialise anyway and is already dead – Cap knows this.

Mr Gone is now dead along with most of the JSA sorry Alan (the first Green Lantern) – you didn’t see it coming. Nny tries to kill Captain Atom – but as we all know he’s pretty unkillable, he stuns Nny knocking him unconcsious, and again forgets to kill him.

Eddie and Rick get drunk and fart. Rick pops out for a wank.

Eddie punches Spawn in the head, which makes him angry, but before he can kill Eddie, Dr Strange pauses time. I would love to see the two Doctors go at it, but Dr Fate isn’t impenetrable so Cap would oust him at the first opportunity, like I said.

 

Design a site like this with WordPress.com
Get started