Skip to content

psychology

August 21 2023

Instabrams are back baby! Thanks to Alfred, Obsidian, Ghost, and GPT that is!

I found out today that, oddly enough, my dislike for food—and smells, as an offshoot—liberates my ears. I can fill them with all kinds of sounds, just like I fill my mind with all sorts of books. And who knows, this might make my understanding richer, deeper. After all, tastes and sounds, they both bring in similar complexities, don't they? What's the science behind this, I wonder?


Planning with time blocks using the Time Block Planner is something else, I tell you. Just staring at how my hours roll out in reality, versus where I believe in my mind that they're going.

It really makes me treasure those fresh hours each morning when I draft the plan. But, damn it, they do race by like comets while I'm knee-deep in living them. Sure makes one thing clear though - there's still quite a road ahead of me to align my time better with the stuff that sits front-row in my priorities.


Today, I cranked out a couple scripts that just might fan the flame back into my inconsistent habit of creating Instabrams. Knocked up one heck of a pipeline for DALL-E, taking chunky texts, wringing them dry into neat, crisp summaries, and morphing them into fetching cover art.

Then there's the second script. What does it do? Well, simple: it chews up shorthand blurb, like the one you're picking through now, and spits it back out in the flavor of a certain author close to my heart, our man Murakami himself. Now, you can sneak a peek at both these scripts down below and take in the art piece a notch above.

Both scripts neatly tuck away the outputs onto my clipboard. Handy for the lazybones that like me, can use ‘em just about anywhere across the machine. Embrace sloth!

i wrote two scripts today that should hopefully harken the return of instabrams. i created a dall-e pipeline that takes text, summarizes it and turns into a cover art.
in addition i wrote a script that rewrites shorthand like you are reading now into the style of one of my favorite authors, haurki muarkami. you can see both of the scripts below, and the art for this peice in the image above.
importantly, both copy results to clipboard for usage anywhere across my machine. let's go laziness!

Really would be nowhere without these amazing tools that devs have built (Ghost, Obsidian, GPT). I merely build the ligaments that connect the very solid bones.


GitHub rang the bell for the 700th star on chat gpt md today. It's been awhile since any updates were added, and I can't help but feel a twinge of regret. But the open source world - well, it can be a free ride for some folks, especially amongst the Obsidian folks. It's like being a chef with everyone sampling your soup, but no one foots the bill.

there was an enormous disconnect between how we think open source works and what is actually happening on the ground today. There is a long, and growing, tail of projects that don’t fit the typical model of collaboration. Such projects include Bootstrap, a popular design framework used by an estimated 20% of all websites, where three developers have authored over 73% of commits. Another example is Godot, a software framework for making games, where two developers respond to more than 120 issues opened on their project per week.† -- Working in Public: The Making and Maintenance of Open Source Software

Create a Ghost Cover Image with DallE

import dotenv from "dotenv";
dotenv.config();

import OpenAI from "openai";
import clipboard from "clipboardy";
import fs from "fs";
import fetch from "node-fetch";

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

async function summarizeClipboard() {
  const text = clipboard.readSync();
  // console.log(`Summarizing: ${text}`);
  const completion = await openai.chat.completions.create({
    messages: [
      {
        role: "system",
        content:
          "Summarize the following into a theme and create an art prompt from the feel of the text aesthetically along the lines of: 'an abstract of [some unique lesser known art style from history] version of {x}' where x is the feel of the text aesthetically. Just return the art prompt, say nothing else." +
          text,
      },
    ],
    model: "gpt-4",
  });

  // console.log(`Summary: ${completion.choices[0].message.content}`);

  return completion.choices[0].message.content;
}

async function saveImgFromUrl(url) {
  const response = await fetch(url);
  const buffer = await response.buffer();
  const filename = `./dalle-images/${Date.now()}.jpg`;
  fs.writeFile(filename, buffer, () => console.log("finished downloading!"));

  return filename;
}

async function appendToLog(logItem) {
  const log = JSON.parse(fs.readFileSync("./log.json"));
  log.push(logItem);
  fs.writeFileSync("./log.json", JSON.stringify(log, null, 2));
}

async function main() {
  let prompt = await summarizeClipboard();
  prompt = prompt.replace("Art Prompt: ", "").trim();
  const image = await openai.images.generate({ prompt: prompt });
  const imageUrl = image.data[0].url;

  const imgFilename = await saveImgFromUrl(imageUrl);

  const log = {
    query: clipboard.readSync(),
    prompt: prompt,
    imageUrl: imageUrl,
    imgFilename: imgFilename,
  };

  await appendToLog(log);

  // save prompt to clipboard
  clipboard.writeSync(prompt);
  console.log("./dalle-images/" + imgFilename.replace("./dalle-images/", ""));
}
main();

Rewrite Chicken Scratch as Murakami

import dotenv from "dotenv";
dotenv.config();

import OpenAI from "openai";
import clipboard from "clipboardy";
import fs from "fs";

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

async function rewriteClipboard() {
  const text = clipboard.readSync();
  // console.log(`Rewriting: ${text}`);
  const completion = await openai.chat.completions.create({
    messages: [
      {
        role: "system",
        content:
          "Rewrite the following in the style of Haruki Murakami, using short, punchy, easy to read, simple words that flow. Almost as if spoken cadence. Text:\n" +
          text,
      },
    ],
    model: "gpt-4",
  });

  // console.log(`Rewrite: ${completion.choices[0].message.content}`);

  return completion.choices[0].message.content;
}

async function appendToLog(logItem) {
  const log = JSON.parse(fs.readFileSync("./log.json"));
  log.push(logItem);
  fs.writeFileSync("./log.json", JSON.stringify(log, null, 2));
}

async function main() {
  let prompt = await rewriteClipboard();
  prompt = prompt.replace("Rewrite: ", "").trim();

  const log = {
    query: clipboard.readSync(),
    prompt: prompt,
  };

  await appendToLog(log);

  // save prompt to clipboard
  clipboard.writeSync(prompt);
  console.log("Prompt saved to clipboard");
}
main();

Images From the Script

These have wriggled under my skin, becoming my favorites of the day. You can make buckets of them without breaking much of a sweat. Keep your eyes on the blog – there's more visual feast on the way!

https://bram-adams.ghost.io/content/images/2023/08/bramses_A_Futurism-style_depiction_of_an_abstract_human_figure__e79092cb-85c9-455b-a712-c383189f701b.png
bramses_A_Futurism-style_depiction_of_an_abstract_human_figure__e79092cb-85c9-455b-a712-c383189f701b.png
https://bram-adams.ghost.io/content/images/2023/08/bramses_Art_Prompt_Create_a_Tonalist_and_Symbolist_fusion_manif_17f75554-e2fc-449e-8380-9f44cd92965c.png
bramses_Art_Prompt_Create_a_Tonalist_and_Symbolist_fusion_manif_17f75554-e2fc-449e-8380-9f44cd92965c.png
https://bram-adams.ghost.io/content/images/2023/08/DALL·E-2023-08-21-15.55.18---Art-Prompt_-Create-a-Tonalist-and-Symbolist-fusion-manifesto-of-an-enchanting-wilderness-filled-with-mystic-animals-and-towering-trees-embodying-the-p.png
DALL·E 2023-08-21 15.55.18 - Art Prompt_ Create a Tonalist and Symbolist fusion manifesto of an enchanting wilderness filled with mystic animals and towering trees embodying the p.png
https://bram-adams.ghost.io/content/images/2023/08/1692647643756.jpg
1692647643756.jpg
https://bram-adams.ghost.io/content/images/2023/08/1692645793636.jpg
1692645793636.jpg
https://bram-adams.ghost.io/content/images/2023/08/DALL·E-2023-08-21-15.21.35---Create-an-abstract-version-of-the-Cubism-style-that-portrays-the-challenges-of-financial-burdens-and-health-care-costs.png
DALL·E 2023-08-21 15.21.35 - Create an abstract version of the Cubism style that portrays the challenges of financial burdens and health care costs.png
https://bram-adams.ghost.io/content/images/2023/08/DALL·E-2023-08-21-15.13.12---Create-an-abstract-watercolor-version-of-the-constant-struggle-between-the-expansion-and-collapse-of-the-mind.-Use-vibrant-colors-and-fluid-brushstrok.png
DALL·E 2023-08-21 15.13.12 - Create an abstract watercolor version of the constant struggle between the expansion and collapse of the mind. Use vibrant colors and fluid brushstrok.png
https://bram-adams.ghost.io/content/images/2023/08/bramses_An_abstract_Quilting_Art_version_of_the_intersection_be_bfa3dc6d-2abb-4e57-8699-b8970fdbf520.png
bramses_An_abstract_Quilting_Art_version_of_the_intersection_be_bfa3dc6d-2abb-4e57-8699-b8970fdbf520.png

Half a decade past, this is where I lived.

I snapped this photo, and soon after found myself in a nearby bar, nursing a drink and ruminating on the past five years. I had some predictions right - walking away from full-time software engineering to chase dreams of startups and artistry. But there were surprises too - who could've predicted a pandemic, or AI taking great leaps ahead?

I pondered over the goals I set for myself in 2018 - many still unmet, many still echoing around my head. Is that a good thing or a bad thing? Not sure. But one thing I've learnt is this: success is a recipe. It calls for dogged effort, an accreting outlet for said effort (think: investment returns), a dash of lady luck, and being at the right place just when it's the right time. Voila, dreams come true and they'll call it fate.

Like Ging said to Gon, "I can't get there quite yet, but I'm relishing the ride."

"Five years ahead?" I reckon I'll be there, right at the threshold of that old, worn out door of mine.

Oddly enough, it seems as if my eyes on the photo on the right been brushed with a dash of guyliner. Can't make heads or tails of that, honestly.

bramadams.dev is a reader-supported published Zettelkasten. Both free and paid subscriptions are available. If you want to support my work, the best way is by taking out a paid subscription.

The Danger of Journaling IS Introspection

I was having an off-day a few months ago. To try and lift my spirits, I decided to take advantage of the fact that I have the ability to time travel.

Not literally, of course, but figuratively in the one direction of the past (which is almost as good as not at all, admittedly).

By maintaining a daily journaling habit for ~5 years now, I can "revisit" any day in that timeframe, remember the people I interacted with, the thoughts I was thinking, and the admire the seeds of ideas that incubated in the interim of then and now.

On this particular day, June 21, I "visited" 2018, 2019, 2020, and 2021.

And holy shit. So much has changed…but nothing has changed.

Physically, I am a different person. My location is different. My age is different. My finances are different. My crushes, my friends, my job, all radically different.

But what has stayed the same, disappointingly, is the shape of my goals. The mountain I set out to climb nearly 1500 days ago is still looming, and I am still at base camp.

Sure, I've made "progress" towards the summit of self actualization, but in reality, I've written a lot more about what I want to do as opposed to what I have done over the past five years.

In a way, introspection has held me back. It has made me viscerally aware of my shortcomings in the financial, professional, romantic, and physical realms. Introspection has reminded me of dropped promises, awkward encounters, unfounded concerns. It reminds me of just how naked and vulnerable in the cold of space and time I really am.

But on the other hand it's kind of… really fucking funny?

The raison d'etre of the exercise of daily journaling is to step outside of the stream of time, to crystallize thoughts and emotion, to view oneself from as detached a perspective that can be mustered.

I'm looking from now, from "above", in 2022, at this gelatinous creature in 2018 with desires and pains, likes and dislikes, thoughts that amounted to being nothing or more often entirely incorrect. I'm watching him lament, I'm watching him try to problem solve, I'm watching him cope, and build, and destroy, and dream, and panic. It's hard to not examine this creature with pity, with a dose of concern for his mental well-being.

And yet… he's kind of cute. His persistence is admirable. He gets up every day in pursuit of his goals, even though I know as the future reader that in many ways, he has failed. I find myself cheering for this man stuck in the page, go you fighter, go! Continue to strive out the mud. Continue day in and day out to climb this unforgiving fucking cliff face, and if your fingers are bloody at the end of it, and you sit breathless at the bottom, staring up as the snowy wind pelts your face, you can rest easy knowing that you've tried.

I know you've done your best.

There's proof.

Pop Science Shouldn't Quote Real Science

This is one of the most important things I can share with you. Why is it so hard to be happy? Because life was mostly short, brutal, and highly competitive over the two hundred thousand years our species has existed on this planet. And our brains are trained for this short, brutal, and highly competitive world. (Location 332)

Least scientific psycho-pop drivel. Sometimes unverifiable statements like this upset me as a reader. Taking a grain of a truth and expanding on it casually does not make the follow true.

Consumerism in a 250 Year Old Country

There’s a quip from the historian Will Durant, that a nation is born stoic and dies epicurean. (Location 538)

What hard work is there to be done in 2023? Has rampant consumerism subsumed our desire to struggle to create a more perfect Union?

…over time, this dynamic leads to a very small percentage of the population gaining and controlling exceptionally large percentages of the total wealth and power, then becoming overextended, and then encountering bad times, which hurt those least wealthy and least powerful the hardest, which then leads to conflicts that produce revolutions and/or civil wars. When these conflicts are over, a new world order is created, and the cycle begins again. (Location 361)

Will we ever be satisfied?

The Subjectivity Vortex

The Focus of a Furnace Without a Chimney

Of all the advice in the world that you do not want to listen to, it is the advice of a disturbed mind. (Location 1317)

Telling myself the worst case scenario can happen non-intuitively allows me to pass the block. It seems that by fully embracing and acknowledging the anxiety, it is allowed to occupy the part of the brain that disposes of closed loops.

But it is just as important to realize that most of what you take in does not get blocked; it makes it right through you. Imagine how many things you see all day. They’re not all stored like that. Of all these impressions, the only ones that get blocked are those that cause either problems or some extraordinary sense of enjoyment. (Location 827)
Consciously remember that this is not what you want to do, and then gently disengage. Do not fight it. Do not ever fight your mind. You will never win. It will either beat you now, or you will suppress it and it will come back and beat you later. Instead of fighting the mind, just don’t participate in it. When you see the mind telling you how to fix the world and everyone in it in order to suit yourself, just don’t listen. (Location 1367)
For example, there are myriad things that you see at any given moment, yet you only narrate a few of them. The ones you discuss in your mind are the ones that matter to you. (Location 211)
Your consciousness is actually experiencing your mental model of reality, not reality itself. (Location 213)

Local experience of reality is actually subjective fixation on one or some amongst the many. This is a very powerful tool, but is a double edged sword when used to cause suffering.

Meaning and reality were not hidden somewhere behind things, they were in them, in all of them. (Location 369)

The Anthropomorphic Urge to Otherize

Govinda said: “But what you call thing, is it something real, something intrinsic? Is it not only the illusion of Maya, only image and appearance? Your stone, your tree, are they real?” “This also does not trouble me much,” said Siddhartha. “If they are illusion, then I also am illusion, and so they are always of the same nature as myself. It is that which makes them so lovable and venerable. That is why I can love them. (Location 1343)

The anthropocentric attitude of othering is a hard complex to break. We are all mortals, just like the squirrels and the amoeba that float in the sea.

Relaxition for Me is Focusing Elsewhere

When our beliefs are hopeful and optimistic, the mind releases chemicals that put the body in a state of physiological rest, controlled primarily by the parasympathetic nervous system, and in this state of rest, the body’s natural self-repair mechanisms are free to get to work fixing what’s broken in the body. (Location 777)

Relaxation (for me) tends to happen when all my focus is external and the internal dialogue is drowned out…

I especially relax when I focus on systems and machines:

A SANE MIND, A SOUND BODY, AND A HEALTHY CHART (Location 1046)

Confirmation Bias and How to Avoid It

We have the need to be right and to make others wrong. We trust what we believe, and our beliefs set us up for suffering. (Location 197)

Being firm about a goal to achieve and having an open mind are not mutually exclusive.

I’ve often noticed that many of the notes people take are of ideas they already know, already agree with, or could have guessed. We have a natural bias as humans to seek evidence that confirms what we already believe, a well-studied phenomenon known as “confirmation bias.”6 That isn’t what a Second Brain is for. The renowned information theorist Claude Shannon, whose discoveries paved the way for modern technology, had a simple definition for “information”: that which surprises you. If you’re not surprised, then you already knew it at some level, so why take note of it? Surprise is an excellent barometer for information that doesn’t fit neatly into our existing understanding, which means it has the potential to change how we think. (Location 884)
This is why viewpoint diversity is so essential in any group of scholars. Each professor is—like all human beings—a flawed thinker with a strong preference for believing that his or her own ideas are right. Each scholar suffers from the confirmation bias—the tendency to search vigorously for evidence that confirms what one already believes One of the most brilliant features of universities is that, when they are working properly, they are communities of scholars who cancel out one another’s confirmation biases. Even if professors often cannot see the flaws in their own arguments, other professors and students do them the favor of finding such flaws. The community of scholars then judges which ideas survive the debate. We can call this process institutionalized disconfirmation. (Location 2006)
Ejectability, is the capability of embracing a decision around a need but always keeping the necessary tools to be able to replace that decision with any equality fit to the need