Categories
SMArt Codes

E2A – Passiflora

#E2_A
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import time
import random


print("starting")
start = time.time()

x_data = []
y_data = []
x2_data = []
y2_data = []
x3_data = []
y3_data = []

fig, ax = plt.subplots()
ax.set_xlim(-1.5, 1.5)
ax.set_ylim(-1.5,1.5)
line, = ax.plot(0,0)
line2, = ax.plot(0,0)
line3, = ax.plot(0,0)
r=1
r2=1.2
r3=1.5


def animation_frame(i):
    print(i)
    x=round(i/500)r2=r*(x+1)if ((x % 2 == 0)):
        x2_data.append(x*r2*np.cos(i))
        y2_data.append(x*r2*np.sin(i))
    elif ((x % 3 == 0)):
        x_data.append((x*r2*np.cos(i)))
        y_data.append((x*r2*np.sin(i)))
    else:
        x3_data.append((x*r2*np.cos(i)))
        y3_data.append((x*r2*np.sin(i)))line.set_xdata(x_data)
    line.set_ydata(y_data)
    line2.set_xdata(x2_data)
    line2.set_ydata(y2_data)
    line3.set_xdata(x3_data)
    line3.set_ydata(y3_data)
    line.set_linewidth(1)
    line2.set_linewidth(0.3)
    line3.set_linewidth(0.3)ax.set_xlim(-(i/500+1)*(i/500+1),(i/500+1)*(i/500+1))
    ax.set_ylim(-(i/500+1)*(i/500+1),(i/500+1)*(i/500+1))
    line.set_color('orange')
    line2.set_color('purple')
    line3.set_color('green')return line, line2, line3

z_data = []
count=0
for z in range(1, 6500):count=count+2.2z_data.append(count)


animation = FuncAnimation(fig, func=animation_frame, frames=z_data, interval=10, blit=True)


animation.save('passiflora2.mp4', dpi=500, bitrate=-1, codec="libx264", extra_args=['-pix_fmt','yuv420p'])
#plt.show()
end = time.time()
print(end - start)
Categories
SMArt Codes

E1 – Shell Life

#E1
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation

x_data = []
y_data = []

fig, ax = plt.subplots()
ax.set_xlim(-200, 200)
ax.set_ylim(-200,200)
line, = ax.plot(0,0)
r=1.2

def animation_frame(i):
    x_data.append(-r*i*np.cos(i*i)-i*np.cos(i))
    y_data.append(r*i*np.sin(i*i)+i*np.sin(i))

    line.set_xdata(x_data)
    line.set_ydata(y_data)
    line.set_linewidth(0.3)
    return line,


animation = FuncAnimation(fig, func=animation_frame, frames=np.arange(0, 132, 0.001), interval=40, blit=True)


#animation.save('E1.mp4', dpi=400, bitrate=-1, codec="libx264", extra_args=['-pix_fmt','yuv420p'])
plt.show()
print("done")

Categories
Blog

2 – Deliberate practice

I’ve recently been listening to the The Unmistakable Creative Podcast, which I have been thoroughly enjoying through it’s mix of stories by inspirational people and discussions about some really progressive technologies or concepts. It was listening to this podcast on a recent trip to Armidale that actually inspired me to start my own, as the host, Srinivas Rao, said something along the lines of “I really enjoy meeting people, so I decided to build a platform where I can do that”. I thought – what a great idea. I also like meeting people. I like talking about research. Why not have a go myself?

Now in the episode I am currently midway through, the interview is actually with Srini, where he is discussing his new book, An Audience Of One. This motivated me to write this blog post for two reasons. Firstly, to write it for myself. The second reason was due to the discussion on deliberate practice.

Deliberate practice is something I am diligent on in many aspects of my life – however my focuses can fluctuate. Currently, I am sitting on a 264 day streak for Japanese on Duolingo, a 53 day streak for brain training on the Peak app (although, I’m probably sitting on 363 of the past 365 days that I did it). I am on day 32 of a 16:8 intermittent fasting self-experiment (perhaps this could be a post in its own right). I had similar habits with meditation, although unfortunately that has fallen away a bit as it requires a very deliberate allocation of time for it. I had similar pedantic habits in 2011 and 2012 with my running training (although it was more of a do not miss a day of my training program – even if that meant resting).

Perhaps the point I’m coming to with all of this is, this particular blog post is a piece of deliberate practice for my writing. Not because I want to become a writer or a blogger, but because I want to improve my writing for when I need to do it – most notably for scientific journal articles. When I say I want to improve my writing, probably the quick assumption would jump to improvements in grammar, articulation, vocabulary. Sure, I would like these things to improve, but the real purpose is process. To remind myself that yes, I can write 500 words in 45min if I just let my thoughts flow from my head, down my arms and into my hands, where the fired neurons allow the click-click of my fingers against the keyboard.

It is somewhat a strange practice, writing this for myself, whilst it is accessible to anyone with an internet connection. However, it may still only be read by me. Perhaps this is a good test. If you are reading this, here is a message for you:

Hello! I hope you are having an excellent day. Feel free to leave a comment saying- “First!” You win. Unless there is already a comment saying “First!” In which case, “Second!” You were so close! Unless there is already a comment saying “Second!” In which case, this really blew up didn’t it. If it gets to that many comments, I’ll allow free reign of the corrections to my grammar (not that anyone really requires permission), but perhaps I can learn a thing or two from this deliberate practice. Alternatively – leave me a challenge topic to write about for my next deliberate practice of writing.

Good day, enjoy the multifarious thoughts, and keep anion the future.

Categories
Blog

1 – Testing out the Blog

What is a blog? Is it the journal of our age? Where we put our thoughts – yet instead of it being a personal and private experience, it is instead very public and extrinsic. Although in this particular case – it is probably quite private, given the lack of publicity this website currently has. Which I am thankful for, for the time being. Less pressure to have a sufficient level of grammar to survive the online slander that may inherently occur in line with more views on the writing. Less exposure to the judgement of others, and therefore less of a requirement to adhere to my occasional perfectionist tendencies.

I suppose right now I am testing it out as a brain dump – trying to see where everything will be posted on my website and how I might need to clean everything up to have it more organised and easier to navigate. I sit here wondering – will this be the only post I do? Or, will I decide to write about my interests?

Perhaps an internal discussion about my thoughts on the brain and neurochemistry could be one topic. For example, one thought is – with sufficiently accurate brain scanning technology, could you effectively read someones mind? Could you use electrodes to stimulate someones mind? Such that they were experiencing what you wanted them to – which is an exciting and terrifying thought. Exciting in the sense that you could have new age movies that were instead experienced. Perhaps, empathy could be reached from a literal sense if you could actually experience walking in someone else shoes. Terrifying, by the same measures. Firstly, a malicious person could make you experience a torturous event (my mind goes to an Altered Carbon scene). Secondly, would we have a problem of not knowing what is real (here I think of inception)?

Now, I’ve already diverted my thoughts along this railway, and it begs the very philosophical questions. If that technology were possible, how do I know I’m not already experiencing it? If I was experiencing it, would it even really matter – it feels real to me? How could I test if it were real? What kind of laws would need to be put into place with this technology? Would it be something humanity achieves and then realises its not something to be used? Much like the atomic bomb. Or, would the subtle nature of its encroachment into society ensure we don’t realise what we’re doing, like the frog in boiling water fable (even if this fable isn’t inherently based on truth – the message itself might).

Okay, now I switched thought trains because of the frog fable and as to whether there are any stories that might replace this, and whether it is based on psychological reasons. Maybe I can check for papers on the topic. But does can it derive from over investment in a situation, shares or project because of not wanting to waste an initial investment, so a doubling down ensues.

Time to wrap this up. Despite my tendency to feel like I’ve always got to write at least X amount – perhaps I can practice holding back here, and only write (X-1) amounts. So, I’ll stop my procrastination now and write the little bit of python code that I need to in order to do a batch analysis of radial distribution functions. I’d prefer to automate the process than do over 1000 myself.

Good day, enjoy the multifarious thoughts, and keep anion the future.

Categories
Podcast Episodes

E2A – Brent Gregory | Hypnosis, NLP and Learning | The Power of the Mind

In this episode I am joined by Brent Gregory to discuss the power of the mind.

Timestamps:
1:00 – Hypnosis
4:50 – Wheelchair story
8:50 – People don’t tell the truth
11:00 – We’re all constantly hypnotising each other
13:00 – Teaching and NLP
19:00 – The internal representation
22:50 – What is internal representation?
27:30 – Subtle motivators
28:50 – The concept of flow
30:45 – Anchoring
34:10 – Question about magicians
35:22 – The Gorilla illusion
37:57 – Exercise correlations with money earned
39:40 – Causality discussion
43:04 – Henri Poincare’s creativity and learning process (The 4 stages)
44:47 – Archimedes Eureka moment

SMArt by Kasimir Gregory – “Passiflora”

Music by Kasimir Gregory

Categories
Podcast Episodes

E1 – Professor Sue Gregory | Virtual Worlds and Online Learning

In this first episode of Anion The Future I am joined by Professor Sue Gregory to discuss the future of education.

Timestamps:
3:10 – How prepared was the education sector for COVID-19?
7:47 – Unexpected Challenges that have evolved
11:05 – Virtual Learning and Virtual Worlds
18:46 – Virtual and Augmented reality in Education
24:08 – Phones in Education
25:55 – Social media and alternate learning sources
30:19 – Sue’s Career 35:55 – Collaboration benefits
37:11 – Obstacles 40:05 – Dream Project
45:30 – Changes to the Education system?

For more information about Sue visit: https://www.une.edu.au/staff-profiles/education/sgregor4 For more information about the podcast visit: www.anionthefuture.com Anion The Future is a podcast hosted by Kasimir Gregory for exploring academic’s novel ideas, origins and networks. It aims to bring advanced current research to an accessible level for all and see where we, as a society are headed. It is a discussion of ideas and stories. Ideally, we’ll cover a broad range of fields – from science to education.

Categories
Podcast Episodes

E1 – Professor Sue Gregory | Virtual Worlds and Online Learning

In this first episode of Anion The Future I am joined by Professor Sue Gregory to discuss the future of education.

Timestamps:
3:10 – How prepared was the education sector for COVID-19?
7:47 – Unexpected Challenges that have evolved
11:05 – Virtual Learning and Virtual Worlds
18:46 – Virtual and Augmented reality in Education
24:08 – Phones in Education
25:55 – Social media and alternate learning sources
30:19 – Sue’s Career 35:55 – Collaboration benefits
37:11 – Obstacles 40:05 – Dream Project
45:30 – Changes to the Education system?

For more information about Sue visit: https://www.une.edu.au/staff-profiles/education/sgregor4 For more information about the podcast visit: www.anionthefuture.com Anion The Future is a podcast hosted by Kasimir Gregory for exploring academic’s novel ideas, origins and networks. It aims to bring advanced current research to an accessible level for all and see where we, as a society are headed. It is a discussion of ideas and stories. Ideally, we’ll cover a broad range of fields – from science to education.

Categories
Podcast Episodes

E1 – Professor Sue Gregory | Virtual Worlds and Online Learning

In this first episode of Anion The Future I am joined by Professor Sue Gregory to discuss the future of education.

Here is the python code for some math art (“SMArt”) used in the video.

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation

x_data = []
y_data = []

fig, ax = plt.subplots()
ax.set_xlim(-200, 200)
ax.set_ylim(-200,200)
line, = ax.plot(0,0)
r=1.2

def animation_frame(i):
    x_data.append(-r*i*np.cos(i*i)-i*np.cos(i))
    y_data.append(r*i*np.sin(i*i)+i*np.sin(i))

    line.set_xdata(x_data)
    line.set_ydata(y_data)
    line.set_linewidth(0.3)
    return line,


animation = FuncAnimation(fig, func=animation_frame, frames=np.arange(0, 132, 0.001), interval=40, blit=True)


#animation.save('E1.mp4', dpi=400, bitrate=-1, codec="libx264", extra_args=['-pix_fmt','yuv420p'])
plt.show()
print("done")