<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pallavi Ray on Medium]]></title>
        <description><![CDATA[Stories by Pallavi Ray on Medium]]></description>
        <link>https://medium.com/@pallavi.ray24?source=rss-bc0a0b253048------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ILXI21ktO8uLxNw3L-3nRw.jpeg</url>
            <title>Stories by Pallavi Ray on Medium</title>
            <link>https://medium.com/@pallavi.ray24?source=rss-bc0a0b253048------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:57:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pallavi.ray24/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning- Human to Machine]]></title>
            <link>https://medium.com/@pallavi.ray24/learning-human-to-machine-be44d34a1bb8?source=rss-bc0a0b253048------2</link>
            <guid isPermaLink="false">https://medium.com/p/be44d34a1bb8</guid>
            <category><![CDATA[human-thinking]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Pallavi Ray]]></dc:creator>
            <pubDate>Sun, 10 May 2026 23:24:19 GMT</pubDate>
            <atom:updated>2026-05-10T23:29:32.982Z</atom:updated>
            <content:encoded><![CDATA[<p>1)world 2)community/ natural world 3)self 4)math, 5)biology, 6)physics, 7)chemistry</p><h3>How do we as <strong>HUMA</strong>NS learns?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wsQnNS_nvjhc30G7" /><figcaption>Source: <a href="https://www.jeffwinterinsights.com/insights/dikw-pyramid">https://www.jeffwinterinsights.com/insights/dikw-pyramid</a></figcaption></figure><p><strong>DATA</strong></p><p>Since we are born, we are told 1)yes or no, 2)right or wrong, 3)good or bad. And that we <em>learn </em>based on <strong>feedback </strong>that we get from our 1)environment or physical world around us, 2) family or community and lastly not to leave out 3) the self. Examples of feedback could be, if i touch something hot my hand will burn, 1) either the object is red hot or smoking or 2) parent scold us or encourage us 3) we feel the pain or not. And we learn based on these repeated experiences which <strong>train </strong>us.</p><p><strong>INFORMATION</strong></p><p>Now this <em>learning </em>happens through multiple different experiences and helps us create<em> </em><strong>a model</strong><em> </em>for ourselves. This helps us define ourselves withing this universe by learning the world around us, circle of family and friends, and our value systems or personality. For example this helps me understand <strong>what </strong>is 1)hot or cold<em>, 2) good or bad or 3) comfort and pain.</em></p><p>And this ultimately builds our —</p><p><strong>KNOWLEDGE (</strong>acquisition of facts, information, and skills through education or experience, representing what you know)</p><p>this knowledge can range from 3)what object to not touch or not touch which is a very personal instinct/intuition that we as individuals develop or 2)for communities to develop the understanding of how to avoid extreme heat or extreme cold environments and 1)master the rules of thermodynamics. For example 1)</p><p>And this gives us as an organism in this living world, a community/ humanity and self—</p><p><strong>WISDOM</strong> (is the ability to apply that knowledge effectively, using judgment, insight, and experience to make sound decisions)</p><h3>How do <strong>MACHINES </strong>learn?</h3><p><strong>MATH</strong><br>The very smallest dimension is 1D- which when expressed in a coordinate system is a <em>dot</em>. It can either 1)exist or 2)not exist. And then a series of points which make a <em>line</em>. An then from a line there can be a 2D <em>shape </em>eg: a square. And as the dimensions increase we go to 3D which can be a <em>form eg a cube.</em> In our physical world we can perceive world around us in 3D and if we add <em>time </em>as the 4th dimension then its 4D and the <em>data/estimation/cost</em> we make is the 5th Dimension of this continuum. And the dimensions and keep growing beyond what the physical realm can denote but our mind though abstractions in mathematics have been able to perceive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32dZbX6BngLKel7DA1lb9g.png" /><figcaption>geometric representation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*MZKaCDG1dEfylNdSjRmcFQ.png" /><figcaption>3d representation of our physical world</figcaption></figure><p>the same phenomenon can be represented algebra in the following way as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoFTKd_tQuoxSqCm4uzAPw.png" /><figcaption>algebraic formula for the geometric representation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*uprMsmUxjBHmmXoG49U5bg.png" /><figcaption>A line can be represented by the formula <strong>y= mx + c</strong>, where m is the slope and c is the bias.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFBGPVdS8_f2tymLt8fCSg.png" /></figure><p>This line can now be used to split a 2D space in 2 parts. So if the data is determined in 2 We can think of these 2 parts as 4)0 or 1, 5)life or death, 6)matter or antimatter, 7)balance and discrete shifts in atomic relationships</p><p><strong>BIOLOGY</strong></p><p>In biological systems, 0 and 1 often represent binary “all-or-nothing” physiological states. [<a href="https://www.quora.com/What-is-analogy-in-biology">1</a>]</p><ul><li>Cellular Division (Binary Fission): In the <a href="https://en.wikipedia.org/wiki/Fission_(biology)">reproduction of prokaryotes</a>, a single cell (1) divides to become two, or conversely, a “0” state in a specific location becomes a “1” when a new daughter cell is formed. [<a href="https://en.wikipedia.org/wiki/Fission_(biology)">1</a>]</li><li>Genetic Presence: In classical genetics, 0 and 1 are used as analogies for the absence or presence of a specific trait or allele in a population.</li><li>Neural Firing: A neuron either fires an electrical pulse or it doesn’t; there is no “half-fire”. This is the brain’s version of binary code, where 1 is the spike and 0 is the silence. [<a href="https://www.quora.com/What-is-analogy-in-biology">1</a>]</li></ul><p><strong>Perceptron<br></strong>The fundamental component of artificial neural networks, is loosely modeled after biological nerve cells, is called the <strong><em>perceptron</em></strong>, alternatively known as an <strong><em>artificial</em> <em>neuron, vector </em></strong>or <strong><em>node</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*3Lj_-IrQBo7vDIvB.png" /><figcaption>What happens in side a neuron. Source: <a href="https://mriquestions.com/what-is-a-neural-network.html">https://mriquestions.com/what-is-a-neural-network.html</a></figcaption></figure><p><a href="https://www.google.com/url?sa=i&amp;source=web&amp;rct=j&amp;url=https://www.geeksforgeeks.org/deep-learning/what-is-perceptron-the-simplest-artificial-neural-network/&amp;ved=2ahUKEwi12ebjua2UAxVRTGwGHTg0IAIQ0YISegoIAggACAAIARAG&amp;opi=89978449&amp;cd&amp;psig=AOvVaw3u37Q7Ow7p7_xtr48SoOQw&amp;ust=1778458888964000">A perceptron is the simplest, foundational form of an artificial neural network, acting as a single-layer, binary classifier used for supervised learning. It functions as an artificial neuron by taking weighted inputs, summing them, and applying an activation function to categorize data into <em>one of two classes, provided the data is linearly separable.</em></a><em> [</em><a href="https://mriquestions.com/what-is-a-neural-network.html"><em>3</em></a><em>]</em></p><p><strong>COMPUTATION</strong><br>Computation in its earliest form started when humans started tying knots on ropes for record keeping and then they also developed the art of weaving textiles. Fast forward to the 1800s the technique of Jacquard loom, used binary punched cards to automate complex patterns. This technology inspired Charles Babbage’s Analytical Engine. Following that Ada Lovelace recognized that the binary mechanism used for weaving could represent data and instructions. This lead her to understand and visualize algorithms and pioneer programming.</p><p>Today, research continues into integrating electronic components into woven fabric and using computers to generate complex, artistic, or functional patterns called programs that are written using a high level language like python which is then read by a low level language like c++ that can be compiled further for as machine readable 0s and 1s.</p><p><strong>MACHINE LEARNING</strong></p><p>Machine learning is a subset of Artificial Intelligence (AI). <br>AI is the broad concept of machines simulating human intelligence to perform reasoning, search and knowledge representation. <br>Machine Learning (ML) is a subset of AI that focuses on training algorithms to learn patterns from data and make predictions. Rather than being explicitly programmed.</p><blockquote>In explicit systems (set of instruction/ program), intelligence is in the programmer.</blockquote><blockquote>In implicit systems(ML models), intelligence is in the data.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7M9xhDj1mjqn4Oux-dV6bg.png" /><figcaption>Source: <em>Source: </em>“ML for Robotic Architectural Fabrication“, Lecture by Gabriella Rossi</figcaption></figure><p>It is happens very much like how we humans learn as we saw above and can be broken into 3 steps as follows:</p><p>INFER/ PREDICT — ERROR/ LOSS — TRAIN/ LEARN</p><p>Step 1: INFER/ PREDICT — make and initial guess : how hot will a cup of coffee be?</p><p>Step 2: ERROR/ LOSS — how correct or wrong is my guess : how hot will a cup of coffee be?</p><p>Step 3: TRAIN/ LEARN — In this step, you take the “Error” from Step 2 (e.g., <em>“My guess was too hot”</em>) and use it to update your internal model. You change your logic — perhaps by considering how long the coffee has been sitting or the size of the cup — so that your next prediction is closer to the actual temperature and you don&#39;t burn your hand.</p><p>The Full Cycle in ML Terms:</p><ol><li>Infer (Prediction)- <strong>Forward propagation</strong>: The model takes an input and produces an output.</li><li>Loss (Evaluation)- <strong>Calculation of the loss function</strong>: The model compares its output to the “ground truth” (the actual temperature) to see the margin of error.</li><li>Train (Optimization)-<strong>Backward pass/Back propagation</strong>: The model uses an optimizer (like Gradient Descent) to tweak its internal weights, reducing the error for future guesses.</li></ol><p>These steps repeated over multiple times help us create an understanding of how likely is a cup to be hot and how we should be approaching to hold any cup, by not directly griping but holding the handle which is a very cleaver design that dissipates the heat, by the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*jpIXbI77CcM7RX97.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdQyZ4LCHbkjib0GqBkWLQ.png" /></figure><p>This designing of the optimal cup handle would likely have been and effort that spans beyond the experience of just one person. Here the WISDOM is being collected though the 1)experiences for the physical world 2)by coming together of designers, ceramics and material experts 3) and couldn’t have been achieved though self realization of these individual people, who will most likely have the same different such <strong>models</strong>.</p><p>This could be thought of as moving a small step from narrow AI towards general AI. We can think if this a separate models that optimizes for the material to be study enough and a different one that optimizes for the form to be easy and comfortable to hold. Now we can also then build a combined models that is able to design efficient cups handles considering parameters such as material composition to human hand ergonomics and designed form to give you a decision whether its a <em>good design</em> or <em>bad design</em>. Now designing can also be a structured to follow the design thinking framework. It can be also reflected that <a href="https://medium.com/@jim-ekanem/machine-learning-and-design-thinking-are-the-same-9d262987b4d8">Neural networks and design-thinkers learn the same way: By listening to feedback and improving with every iteration.</a></p><blockquote>And applying a design thinking framework to Machine Learning (ML) can transforms AI from a purely technical endeavor into a human-centric solution, reducing failure rates by focusing on user needs before model development.</blockquote><h3><strong>Is Singularity </strong>Possible?</h3><p>Currently what we have is <strong>narrow Ai</strong>, which is the models that are able to learn specific tasks like learning how to play the game of go, or how to classify between a cat and a dog, to LLMs that can now most definitely pass the Turing test. But still these models are yet not able to do what humans can do. Be able to see, hear, talk, make art and Theory of Mind (ToM)[<a href="https://en.wikipedia.org/wiki/Theory_of_mind">4</a>] all at once is yet to be achieved by Machine. Which will be then be general AI.</p><p>Which will then eventually lead to Singularity. The term “singularity” in this context draws from 4)mathematical concepts indicating a point where existing models break down and continuity in understanding is lost. 5) gravitational singularity is a theoretical point in space-time — usually at the center of a black hole 6) in nature like the Slime moulds are unique organisms that exist primarily as single-celled, amoeboid organisms. They known for their ability to aggregate and merge into large, multinucleate, or multicellular structures to reproduce or when food is scarce, acting as a single, coordinated entity. 7)</p><p>Technologically this describes an era where machines not only match but substantially exceed human intelligence, starting a cycle of self-perpetuating technological evolution. This will be driven emergence of <a href="https://www.ibm.com/topics/artificial-intelligence">artificial intelligence</a> (AI) that surpasses human capabilities and can autonomously enhance itself like we humans do.</p><p><strong>INFORMATION</strong></p><p>The Evolution of Information</p><ul><li>Biological Encoding (The DNA Era): For billions of years, information was transmitted solely through genetic inheritance. DNA served as the primary hard drive for life, storing the “instructions” for survival and passing them across generations through reproduction. [<a href="https://wyss.harvard.edu/technology/dna-data-storage/">1</a>, <a href="https://www.vedantu.com/biology/significance-of-dna">2</a>]</li><li>Sensory Signaling (Animal Communication): As complex organisms evolved, they developed immediate communication through biological signals — scents (pheromones), vocal calls, and visual displays — to convey urgent information like danger or social status. [<a href="https://www.youtube.com/watch?v=oxTUC5I22LU&amp;t=6">1</a>, <a href="https://pumble.com/blog/history-of-communication/">2</a>]</li><li>Oral Tradition (The Linguistic Leap): Humans revolutionized this by developing complex spoken language. This allowed for storytelling, which enabled “cultural inheritance” — passing accumulated knowledge, values, and history through generations without needing to change our biological DNA. [<a href="https://www.cfh.com/insights/blogs/communications/a-brief-history-on-the-evolution-of-communication/">1</a>, <a href="https://www.robometricsagi.com/blog/ai-policy/llms-as-a-tool-to-preserve-a-society-in-history">2</a>]</li><li>External Storage (Writing &amp; Printing): To overcome the limits of human memory, humanity invented writing systems (like cuneiform and hieroglyphs). The subsequent invention of the printing press in the 15th century democratized this information, making mass communication and literacy possible. [<a href="https://en.wikipedia.org/wiki/History_of_communication">1</a>, <a href="https://lan-portal.uob.edu.ly/list/PUB/8W43X03594/a_history_of_information_storage_and_retrieval.pdf">2</a>, <a href="https://testbook.com/history-of/communication">3</a>, <a href="https://umsystem.pressbooks.pub/information/chapter/242/">4</a>]</li><li>The Digital Network (Computers &amp; Internet): The 20th century moved information into the digital realm. Computers and the Internet allowed for the near-instantaneous retrieval and global distribution of vast amounts of data, effectively linking human knowledge into a single, accessible “cloud”. [<a href="https://www.youtube.com/watch?v=An5NB-EMgUE&amp;t=401">1</a>, <a href="https://moodle.mtu.edu.ng/zlevelj/rhopeo/180426/1MR6618182/a-history-of-information__storage_and_retrieval.pdf">2</a>]</li><li>Generative Synthesis (The LLM Wave): Large Language Models (LLMs) represent a fundamental shift from <em>storing</em> information to <em>processing</em> it. While the internet acted as a library of information where we had to find facts, LLMs act as a reasoning layer that can synthesize, explain, and apply that collective human knowledge in real-time to summarizes the specific connection we are looking for. [<a href="https://toloka.ai/blog/history-of-llms/">1</a>, <a href="https://www.sciencedirect.com/science/article/pii/S0001691825009503">2</a>]</li></ul><p>LLMs brought with themselves a new wave of change in thinking. If DNA is the biological record of survival and writing is the physical record of human history, LLMs are a digital collective of human intelligence. We have gone from being told how to survive by our genes to creating systems that can help us think. Can we then think of the LLMs might act as a “cultural genome” for future civilizations?</p><p>As 3)individuals with limited time on this universe we navigate the temporality of these wisdom. 2)But as communities these can outlive a single persons live and 1)as humanity we hope that these wisdom that communities gain through years are preserved and sustain over the years and not merely lost to selfish gains (wars destroying knowledge that communities have built over years) so that we has humanity can strive for our maximum potential always. But from history we have seen for one idea to exist there always has to be a self reset in out societies that bring about new ideas. Like we moved from -classical- Renaissance- Neoclassicism- Art Nouveau- Art Deco- Streamline Moderne-, Neo-Modernism and Parametricism. These are not merely art style but very rooted in the ideologies of their times.</p><h3><strong>Limitations and Way ahead</strong></h3><p><strong>PHYSICS</strong></p><p>Physics treats 0 and 1 as measurable physical states or levels of energy. [<a href="https://sathee.iitk.ac.in/sathee-neet/ncert-books/neet-ncert-books/neet-nb-phy-11/phy-11-chapter-1-units-and-measurement/">1</a>]</p><ul><li>Digital Voltage: In electronics, 1 represents a high voltage state (on), while 0 represents a low or ground voltage state (off). [<a href="https://testbook.com/question-answer/which-number-system-uses-only-digits-0-and-1nbsp--68888a07dad05db893b1a27e">1</a>, <a href="https://www.quora.com/What-goes-as-both-0-and-1-at-the-same-time">2</a>]</li><li>Quantum Superposition: In <a href="https://www.ibm.com/think/topics/quantum-computing">quantum computing</a>, a qubit can exist as a “superposition” of both 0 and 1 simultaneously until it is measured, at which point it collapses into a definite classical state (either 0 or 1). [<a href="https://itnext.io/stop-saying-a-qubit-is-0-and-1-at-the-same-time-951265f50c8e">1</a>, <a href="https://www.ibm.com/think/topics/quantum-computing">2</a>]</li><li>Vacuum Energy: Physics teaches that “0” (the vacuum) is never truly empty; it is a “buzzing” state of potential where particles can spontaneously appear. [<a href="https://medium.com/@manpreet031989/zero-and-one-beyond-numbers-into-reality-4db60454115e">1</a>]</li></ul><p>With Moores law, the speed of computing was observed to double every 2 year with the size of microchip reducing. However we have seen that the currently using electricity in the the semiconductors are limiting the compute power of computers. The size of electrons are limiting the size of the chips that can be manufactured. Hence we need to move ahead of just using the voltage difference of the electron and use the Quantum Superposition to build more better computers.</p><p>We can also see the same through the lens of chemistry-</p><p><strong>CHEMISTRY</strong></p><p>In chemistry, 0 and 1 describe the balance and discrete shifts in atomic relationships.</p><ul><li>Oxidation States: An atom might have a neutral charge (0) or a formal charge (such as +1 or -1) representing the loss or gain of a single electron. [<a href="https://www.khanacademy.org/science/organic-chemistry/organic-structures/oxidation-reduction-review/v/comparing-formal-charges-to-oxidation-states">1</a>, <a href="https://aklectures.com/lecture/oxidation-reduction-reactions/oxidation-numbers">2</a>, <a href="http://www.kwanga.net/chemnotes/ch-5-notes.pdf">3</a>, <a href="https://www.vaia.com/en-us/textbooks/chemistry/chemistry-13-edition/chapter-10/problem-38-give-the-formula-of-an-anion-comprised-of-iodine-/">4</a>]</li><li>Bond Order: A single covalent bond represents a bond order of 1, signifying a shared pair of electrons, whereas a bond order of 0 indicates that no stable bond exists between two atoms. [<a href="https://www.wizeprep.com/textbooks/undergrad/chemistry/4017/sections/2173897">1</a>, <a href="https://byjus.com/jee/covalent-bond/">2</a>, <a href="https://testbook.com/objective-questions/mcq-on-molecular-orbital-theory--63f37f154cbe8d0484e96f37">3</a>, <a href="https://www.vaia.com/en-us/textbooks/chemistry/chemistry-structure-and-properties-2-edition/chapter-6/problem-49-apply-molecular-orbital-theory-to-predict-if-each/">4</a>]</li><li>Binary Mixtures: 0 and 1 are often used in mole fractions to represent a pure substance (1) versus its total absence (0) in a chemical mixture. [<a href="https://fiveable.me/physical-chemistry-i/unit-8">1</a>, <a href="https://testbook.com/chemistry-formulas/mole-fraction-formula">2</a>]</li></ul><p>As we know that electrons can exits in multiple orbits and based on the energy provided can jump between these various orbits. This was defined in Quantum Superposition by Schrödinger.</p><p>We can maximize compute and push toward a universal model by turning our current hardware and energy constraints into catalysts for efficiency. Using these limitations to sharpen our find more efficient solutions by using alternate theories is the most viable path forward.</p><p>Singularities show where a specific model fails or cannot continue. Gödel had showed a fundamental limit to what can be proven, regardless of the model. Singularities are often used in physics to describe extreme, perhaps impossible, scenarios. While Gödel was concerned with the inherent nature of mathematical logic. [<a href="https://www.facebook.com/theinstituteofartandideas/posts/in-the-early-20th-century-the-mathematician-godel-showed-that-any-mathematical-s/1003547945136729/">1</a>, <a href="https://www.youtube.com/watch?v=Wwg_15a0DJo">2</a>] Thus as a Gödelian limitation is considered absolute and insurmountable within that logical system, A singularity often requires a “new theory” (e.g., quantum gravity) to resolve it.</p><h3><strong>TECHNOLOGY</strong></h3><p>“Technology” originates from the early 17th-century Greek-derived <em>technologia</em>, meaning a systematic treatment of an art or craft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*tCnmN5_AuHpvCoAP" /></figure><p>It is the practical application of scientific knowledge for human purposes, encompassing tools, systems, and methods that solve problems and enhance efficiency. It ranges from simple inventions like cups and chairs to complex systems like urban planner simulators, the internet, and nanotechnology, evolving continuously to improve quality of life.</p><p>It is not just hardware (machines, gadgets) but also software (knowledge, processes) and “orgware” (institutional structures). The primary goal is to solve problems, increase efficiency, and make tasks easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*bGjT40kAvEFbDuu-.jpg" /></figure><p>[Portions of this article were generated with the assistance of AI]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be44d34a1bb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doodling with code]]></title>
            <link>https://medium.com/@pallavi.ray24/doodling-with-code-955815c42a2f?source=rss-bc0a0b253048------2</link>
            <guid isPermaLink="false">https://medium.com/p/955815c42a2f</guid>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[creative-technology]]></category>
            <category><![CDATA[processing]]></category>
            <dc:creator><![CDATA[Pallavi Ray]]></dc:creator>
            <pubDate>Sat, 20 Jun 2020 21:01:11 GMT</pubDate>
            <atom:updated>2020-06-20T21:06:35.583Z</atom:updated>
            <content:encoded><![CDATA[<p>As I sat down to prepare my talk for <a href="https://processingindia.org/">Processing day,</a> I reflected on my own experience with Processing. I realized it was more like doodling but with code. In this article, I shall talk about how I came across processing and explored it, and hope you can too.</p><p>I did Architecture in my undergrad from a college where they emphasized on the hand drawn process for designing. For 4 years we had hand drafted all our projects. If you have ever seen one of those blueprints then you know that what I am talking about. In one of my projects (in vernacular architecture) I designed a building with curves and making the architectural drawings soon turned out to be a nightmare. Needless to say in all my building designs after that I only used straight lines. <br>Luckily when I joined for my internship I got to work with a team that used various computer tools for design.</p><p>Why am I saying all this?</p><p><em>Working with these new computer tools felt like getting superpowers. </em>I realized what I had been doing before can be done much faster and better in various aspects if I incorporate these tools in my design process. Not only that it now opened up new possibilities. I no longer had to hold back from making buildings of organic shapes. <br>It was sometime in the duration of the internship year that I came across processing. Eager to learn the possibilities of computer tools within the visual art I started doodling with processing. After my architecture, I went on to pursue product design and now I identify myself as a creative technologist.<br>Creative technologists can be</p><p>· a techie with a creative interest<br>· or a creative with a knack for tech.</p><p>I fall in the latter category and because this article is about my experience it will be inclined towards a creative’s approach to technology.</p><p><strong>WHAT is doodling (with code)?</strong><br> <br>As kids, most of us scribble on the margins of the notebook. While sitting through a class that we weren’t interested in or when there was free time between classes. Even as adults we sometimes do it jovially out of boredom or for relaxation if pen or paper laying around.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*zLY8b7aPkFwEGUzc6xLPnA.png" /><figcaption>What is doodling?</figcaption></figure><ol><li>So the requirements are very <strong>minimal</strong>. And these doodles are not about making artistic masterpieces.</li><li>They are mostly composed of <strong>random and abstract lines which can sometimes have representational meaning.</strong></li><li>And whatever you doodle <strong>can never be wrong</strong>. (Honestly have you ever erased a doodle?)</li></ol><p>So why do I say my experience with processing is like doodling but with code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*_BudzQHvRZyO56iaYtksWA.png" /><figcaption>Processing IDE</figcaption></figure><p>Like the paper version the requirements for processing are minimal. All you need is a PC and the Processing IDE/or a code editor like Visual Studio Code, Sublime or any other of your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*GVeZLP6c2R1lcm0gVzbzZQ.gif" /><figcaption>Random Walker</figcaption></figure><p>Processing lets you manipulate the fundamentals elements of design to make <strong>sketches </strong>(each program created in Processing is called a “sketch”) which can be random and abstract and sometimes have representational meaning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*PUM5-xceY3fBk1yDr3hG2w.gif" /><figcaption>Accidental output</figcaption></figure><p>As long as it can run without any logical error its never wrong. Above is an example of my accidental code output.</p><p><strong>HOW to doodle with code?</strong><br>My works on processing went through iterations of these 4 stages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*g5JUwFijhG0vKh2spCgYiQ.png" /></figure><ol><li>Setup- <a href="https://medium.com/tab-space/which-to-choose-processing-or-p5js-7cbba6fb6e11"><em>Choosing the platform</em></a><em> </em>depending on what you want to do with your code.</li><li>Research- <em>Filling the knowledge gaps. </em>It can be to find the desired equations for the geometry you want to draw or for finding libraries which will help you build your code.</li><li>Building- <em>Writing the algorithm </em>based on the desired output<em>. </em>Once the logic is in place you can start to write your own code from scratch.<em> </em>Alternatively, while carrying out your research you might come across algorithms which you can use as a starting point. But its important to understand the logic behind the code so that you can build on it. (Also remember to check for licensees and give credits where appropriate.) Sometimes before starting to write the code it might help to sketch out in paper and pencil what you want as the final output and deciding on the basic logic behind it.</li><li>Feedback- <em>Evaluati</em>ng the sketch. It happens in two stages- First internally when you try to get the optimal output from the code and then externally from others on what can be improved in the experience or in the code itself. It can be through social platforms like Instagram or Reddit or forums.</li></ol><p>For example below is a processing sketch I did as a part of the <a href="http://www.36daysoftype.com/">36 days of Type</a> where I worked with processing. On the last day I decided to explore Augmented Reality.</p><iframe src="https://www.instagram.com/p/BiicSRdFCDl/embed/?cr=1&amp;amp;rd=https%3A%2F%2Fwww.instagram.com" width="658" height="882" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f8b2dd73775a507c40f4879cc7ae4db/href">https://medium.com/media/2f8b2dd73775a507c40f4879cc7ae4db/href</a></iframe><ol><li>As I wanted to get a video which I can be posted I decided to make it on Processing IDE in Java.</li><li>As I had decided to work on making an Augmented reality I had to look up the ways AR can be achieved on Processing. I found the <a href="https://nyatla.jp/nyartoolkit/wp/?page_id=198">NyARtoolkit library</a> and <a href="https://www.creativeapplications.net/processing/augmented-reality-with-processing-tutorial-processing/">its tutorials</a> which helped me proceed to building my own sketch.</li><li>Once I found the required library I had to piece together my own <a href="https://github.com/circe06/TYPOGRAPHY/blob/master/sketch_9/sketch_9.pde">code</a>.</li><li>Now that you have the code <em>Test it</em>. and once its ready <em>Share it</em>.</li></ol><p>While these were the basic 4 stages, it required a lot of back and forth between each stage.</p><p><strong>WHY doodle with code?</strong><br>It’s definitely a fun way to explore your creativity with technology! But beyond that it can also help you in your career in the following ways:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*CLHFwtdNc6fBCUEbvAXvmg.png" /><figcaption>Why doodle with code?</figcaption></figure><ol><li><em>Learn the basics of Coding</em>: When you have worked on some sketches you start understanding the data flow. Like poems have a structure to it so do a code. So I realized as a creative technologist it is more important to understand the fundamental so that you can work across different platforms and programming languages. You can interface with Arduino, Grasshopper, get data from the web in your project to make cool stuff! The possibilities are endless.</li><li><em>Be better collaborators</em>: As we work with more interdisciplinary teams, knowing about coding helps to collaborate better. Its like knowing another language. Similarly I would like to believe that having creative instincts helps technologist come up with better product.</li><li><em>Embrace Computational design</em>: I would like to emphasize and elaborate on it as it is also close to my personal interest.</li></ol><p>The <a href="https://processing.org/">Processing </a>project was initiated in 2001 by <a href="https://en.wikipedia.org/wiki/Casey_Reas">Casey Reas</a> and <a href="https://en.wikipedia.org/wiki/Ben_Fry">Ben Fry</a>, at the MIT Media Lab under the tutelage of J<a href="https://en.wikipedia.org/wiki/John_Maeda">ohn Maeda</a>. John Maeda is dedicated to linking design and technology. Every year he and his team have been publishing a report called Design in Tech.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Bl_9QdPkIFUWeETX_JWFqQ.jpeg" /><figcaption>Design in Tech Report 2017</figcaption></figure><p>The report speaks about the three kinds of design- C<a href="https://qz.com/1585165/john-maeda-on-the-importance-of-computational-design/">lassical Design, Design Thinking, and Computational Design.</a> Computational designers are creative people who wield their mastery of knowing how software, hardware, and the network all interact. (Maeda) John Maeda believes that the design’s role in this world is constantly shifting. In the 2019 report it said that “88% of designers surveyed believe that in 5–10 years AI will begin to reach the skill level of human designers when it comes to certain visual design tasks”. To conclude coding skills will be an add-on to any designer and might even <a href="https://www.wired.com/2017/03/john-maeda-want-survive-design-better-learn-code/">become crucial</a>.</p><p>In the end, I would say that processing has been a fun experience and has helped me shape my interests towards a career. I hope it does for you too if you choose to. So jump in!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=955815c42a2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Saving P5.js Sketches as Videos]]></title>
            <link>https://medium.com/@pallavi.ray24/saving-p5-js-sketches-as-videos-9376068afc10?source=rss-bc0a0b253048------2</link>
            <guid isPermaLink="false">https://medium.com/p/9376068afc10</guid>
            <category><![CDATA[processing]]></category>
            <category><![CDATA[creative-coding]]></category>
            <category><![CDATA[ffmpeg]]></category>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[p5js]]></category>
            <dc:creator><![CDATA[Pallavi Ray]]></dc:creator>
            <pubDate>Wed, 06 May 2020 10:54:05 GMT</pubDate>
            <atom:updated>2020-05-06T11:00:16.568Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I recently moved from working on <a href="https://processing.org/">Processing</a> to <a href="https://p5js.org/">P5.js</a> in my exploration of creative coding. When I wanted to share the output on Instagram it was straightforward to save a still image from p5.js with the <a href="https://p5js.org/reference/#/p5/saveCanvas">saveCanvas()</a> function, but for saving animations with more than 15 frames <a href="https://p5js.org/reference/#/p5/saveFrames">the website</a> suggested the <a href="https://github.com/spite/ccapture.js/">CCapture.js</a> library. However I soon released it is not compatible with versions later than p5.js 0.9.0 <a href="https://github.com/spite/ccapture.js/issues/108">(Issue #108)</a>. So I worked my way around and thought of sharing it.</p><p>Lets say you have a P5.js sketch that generates different frames in each loop.</p><p>Full code for the output below can be viewed <a href="https://github.com/circe06/Game-of-life/blob/master/sketch.js">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*nkxcfj9q1O4RDkc2jRuR_w.gif" /><figcaption>GIF from frames</figcaption></figure><p>To convert the output into a video which can be easily shared, the approach I used involves generating the individual frames and combining them into a video.</p><p><strong>I. Exporting frames</strong></p><p>This is can be done by using the <a href="https://p5js.org/reference/#/p5/saveCanvas">saveCanvas()</a> function in P5.js. It gives the option to save the frames in jpg or png format. To get the frames from each loop you need to include the saveCanvas() function within draw() function and not the setup() function.</p><pre>function draw(){</pre><pre>// saving the frame<br>saveCanvas(&#39;Img&#39;, &#39;png&#39;);<br>}</pre><p>Alternatively you can also create a separate function and call it based on the defined condition eg: <a href="https://p5js.org/reference/#/p5/keyPressed">keyPressed()</a> or by using a counter.</p><p>*Make sure to enable multiple file downloads if you are using Chrome. <a href="https://www.howtogeek.com/428416/how-to-enabledisable-multiple-file-downloads-in-chrome/">Here</a> are the steps if you can’t find the settings.</p><p>Once you run the P5.js sketch the image files will be saved into the download location of your system.</p><p>*If you don’t have a conditional statement then you ll have to manually close the webpage from generating further images once you have all the frames you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*UB71pNFMSeu_PECPsreAVA.png" /><figcaption>Images of each frame</figcaption></figure><p>But before these images can be fed to the converter they need to be renamed in a particular sequential format. <strong>The reason we need to do this is because a file named </strong>15.png<strong> should be read before </strong>110.png<strong> but most computer will read </strong>110.png<strong> before </strong>15.png<strong>. The solution is to put padding 0s. So the file need to be renamed as </strong>0015.png<strong> and </strong>0110.png<strong>.</strong></p><p><strong>II. Batch renaming</strong></p><p>Renaming a long list of images is definitely not something you would want to do one-by-one. Well luckily here is a easy solution to renaming files using Microsoft Excel (or any other spreadsheet software) and the windows command prompt. There are also many software available for doing batch renaming but I found the method below efficient.</p><p><strong><em>Sequencing the files</em></strong></p><p>Sometimes chrome auto names the files differently. So to make the task easier we will do the initial sequencing in the folder:</p><ul><li>Select all the image files (<strong>CTRL+A</strong>)</li><li>Right click on the the first file and select Rename (<strong>F2</strong>)</li><li>Type ‘_’(space) for the file name and then hit <strong>Enter</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*kYWI6P2GctkAJSvnDwsUIg.png" /><figcaption>Rename image as per sequence</figcaption></figure><p><strong><em>Generate File List</em></strong></p><p>Open up the command prompt. (Press Windows+R to open “Run” box. Type “cmd” and then click “OK” to open a regular Command Prompt.)</p><p>Change the current directory to the one where the Image sequence is stored.</p><p>Now to generate the list of images enter the command:</p><pre>dir /b &gt; list.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*N0osMNa48cpJVzw-86XNQw.png" /></figure><p>This will create a list of all the files in the folder and export them to a new file called list.txt. (You can call this file whatever you want.)</p><p><strong><em>Edit names in spreadsheet</em></strong></p><ul><li>Open the file list.txt in a spreadsheet. Remember to remove the list itself.</li><li>Then Copy and Paste the names from first column to next cell across and select them all.</li><li>Choose the Data tab atop the ribbon and Select Text to Columns.</li><li>Ensure Delimited is selected and click Next.</li><li>Clear each box in the Delimiters section and instead choose Others and type “.”.</li><li>Click on the first column and change it to Text and second column and skip it. Click finish.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*B5Nhh_AdzsvRPLGWqv9aRQ.png" /></figure><ul><li>The using the find and replace feature remove the ‘(’ and ‘)’ sign one by one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*Q_j9CrPZpdYsAEe47_JYtA.png" /></figure><ul><li>Using the format option add the padding 0000s. This becomes the name of the new file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*P9vboU7RuOLEawlz7q0Eow.png" /></figure><p><strong><em>Writing the command</em></strong></p><p>Now the syntax for renaming files with the command prompt is:</p><pre>ren [original filename] [new filename]</pre><p>So in our spreadsheet we are going to create this. This is what our next column should look like. In the third column paste the formula.</p><pre>=CONCATENATE(“ren ”””,A1,””””,” “,””””,TEXT(B1,”0000&quot;),”.png”,””””)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*vBtjB2m-1JqeV2_AHVJ3sQ.png" /></figure><p>Now, copy the last column and paste it into our command prompt (remember to right-click, Ctrl+V doesn’t work). The window will now start working away, renaming all our files. And that’s it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*P2gip2PieIKNm-CJT43KrA.png" /></figure><p><strong>III. Covert to video</strong></p><p>Now that we have our Image sequence we will convert it into a video using the command line program <a href="https://ffmpeg.zeranoe.com/builds/">FFmpeg</a>. If this is your first time using a command-line program like me then I suggest following the instructing given <a href="http://blog.gregzaal.com/how-to-install-ffmpeg-on-windows/">here</a> to know how to install it properly and get it running.</p><p>To take a list of images that are padded with zeros (0001.png, 0002.png…. etc) use the following command:</p><p>ffmpeg -r 30 -f image2 -s 700x700 -i %04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p test.mp4</p><p>where the %04d means that zeros will be padded until the length of the string is 4 i.e 0001…0020…0030…2000 and so on.</p><ul><li>-r is the framerate (fps)</li><li>-f image2canonical form to work with image sequences</li><li>-s is the resolution</li><li>-crf is the quality, lower means better quality, 15-25 is usually good</li><li>-pix_fmt yuv420p specifies the pixel format, change this as needed</li><li>test.mp4 the output video</li></ul><p>When you run the above command, you’ll see a bunch of messages from ffmpeg while it executes it and once it is done you’ll have a file named <strong>test.mp4</strong> in the same directory as the image files.</p><p><strong>References:</strong></p><ol><li><a href="https://p5js.org/reference/">https://p5js.org/reference/</a></li><li><a href="https://peterbeshai.com/blog/2018-10-28-p5js-ccapture/">https://peterbeshai.com/blog/2018-10-28-p5js-ccapture/</a></li><li><a href="https://www.ffmpeg.org/ffmpeg.html">https://www.ffmpeg.org/ffmpeg.html</a></li><li><a href="https://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/">https://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/</a></li><li><a href="http://blog.gregzaal.com/how-to-install-ffmpeg-on-windows/">How to Install FFmpeg on Windows — Adaptive Samples</a></li><li><a href="https://benholland.me/tutorials/2011/11/11/rename-multiple-files-using-excel-in-windows.html">https://benholland.me/tutorials/2011/11/11/rename-multiple-files-using-excel-in-windows.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9376068afc10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>