fabiochiu/medium-articles huggingface dataset:
[Swift] 藤原千花はお洒落したい
Tags: iOS, Swiftui, Swift

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
How to Work with Programmatic View Controllers in Xcode 12
By: Nam Khanh Vu
Tags: Uikit, iOS, Swiftui, Xcode

After Xcode 12’s release, I had a mini heart attack when I tried to create a new project. This is what I am talking about:

New project, okay so far so good

What’s this?! Where’s my UIKit?!!

It has always been known that SwiftUI is intended to be the replacement for UIKit as iOS’s goto UI framework, but the change was meant to be gradual. While intuitive and easy to use, Swift UI in its current form is missing plenty of features that UIKit has to offer.

I thought I would have way more time before the transition. Needless to say, Xcode 12’s change to offer SwiftUI by default really caught me off guard! I was also one of those people who did everything UI related programmatically, so having storyboard there as an option did not help.

If you’re like me, and would like to stick to UIKit just a little bit longer, maybe because you have an established code base with UIKit, or maybe you’re not yet comfortable with SwiftUI and find UIKit much more suitable to your needs, then read on. I will be showing you two different methods to initiate a new Xcode project, and start working with UIKit programmatically in Xcode 12.

Method 1: Initiate Interface with SwiftUI

Step 1: Select SwiftUI as the option for your Interface in the new project. Also make sure you choose UIKit App Delegate for the Life Cycle option.

Step 2: Delete ContentView.swift, and create your own view controller file. Name your view controller however you like.

Delete this

Create a file with this

Step 3: Navigate to SceneDelegate.swift, and change its contents to use your new view controller as the starting point instead.

Your app’s starting point

Change this function

To this

And you’re done! Run your build on a device or a simulator and it should work.

Method 2: Initiate Interface with Storyboard

Step 1: Select Storyboard as the option for your Interface. Also make sure your Life Cycle is selected as UIKit App Delegate.

Step 2: Delete the Main.storyboard file, and remove the reference to it from your project setting.

Delete Main.storyboard

Delete the Main from Main Interface and leave it empty

Also, navigate to Info.plist, and delete the reference to Main.storyboard there.

Delete this line

Step 3: Similar to before, navigate to SceneDelegate.swift, and change its contents to use a view controller as the starting point. You should also already have an UIViewController class created for you. Feel free to change the name of this class.

Change this function

To this

Run your build and test your programmatic view controller.
Custom Home Screen App Icons in iOS 14
By: Peter Flickinger
Tags: Swiftui, Apple, iOS, iPhone, Ios 14

How to change your home screen app icons in iOS 14

With the introduction of iOS 14 and the ShortCuts app, it is now possible to save shortcuts to your home screen that open apps. This means you can customize the app icons of your favorite and most-used apps.

Step 1: Get Icons

Using the myAppIcon app you can create your icons in the color you want.

Just use the app to select the apps you use, pick out the colors you want to use, and download the set of new app icons.

Step 2: Add shortcuts

For each app, you need to create a shortcut that opens the app.

Add a “Scripting” action with the “Open App” command.

Pick out the app.

Name the script the name of the app.

Use the three dots to “Add to Homescreen”.

Change the image to the one save to the camera roll.

Vala, you're done. Now just repeat for each app you want to add and you got yourself a customized home screen.
Recreating The Gear Icon Animation from iOS in SwiftUI
By: Patrick Maltagliati
Tags: Swiftui, iOS App Development, Swift

The spikes of the cog are created with a replicator layer. The replicator layer repeats the instance layer a specified number of times. The instance layer is filled with a simple shape that looks like a spike on the gear. With a rotation in proportion to the number of spikes, the replicator layer rotates each spike correctly.

In order to use CAReplicatorLayer in SwiftUI, we must wrap our SpikeCircleView in a UIViewRepresentable View.
使用 SwiftUI 預覽 UIBezierPath繪製圖片-簡陋的三井壽球衣
Tags: Swiftui, Uibezierpath

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
SwiftUI: Using Filter in List View
By: Sacha Schwab
Tags: Swiftui, Listview

Image by AltumCode on unsplash.com

Introduction

How do I limit items to display in a List using ‘filter’? This brief tutorial reflects the solution to this simple problem that I encountered during my SwiftUI learning journey:

Szenario used here: From messages created, show only current ones (i.e. from today).
Disabling Dark Mode on Widget in XCode 12 ( SwiftUI)
Tags: Xcode, Swiftui, Dark Mode, iOS, Widget

Disabling Dark Mode on Widget in XCode 12 ( SwiftUI)

@main

struct testwidget: Widget {

let kind: String = “testwidget”

var body: some WidgetConfiguration {

IntentConfiguration(kind: kind, intent: ConfigurationIntent.self, provider: Provider()) { entry in

testwidgetEntryView(entry: entry) .environment(\.colorScheme, .light)

}

.configurationDisplayName(“My Widget”)

.description(“This is an example widget.”)

}

}
繪製圖案筆記：用 SwiftUI 預覽 UIBezierPath 的繪圖
Tags: 筆記, Swiftui, Uibezierpath, iOS App Development

1. 建立SwiftUI App 專案：Xcode新增專案，Interface 選擇 SwiftUI。

2. 在 ContentView.swift 覆蓋貼上程式

import SwiftUIstruct DrawView: UIViewRepresentable {

func makeUIView(context: Context) -> UIView {

let view = UIView()



return view

}



func updateUIView(_ uiView: UIView, context: Context) {

}



}struct ContentView: View {

var body: some View {

DrawView()

}

}struct ContentView_Previews: PreviewProvider {

static var previews: some View {

ContentView()

}

}

3.點選右上Resume產生預覽

4.在 function makeUIView 裡繪圖與程式步驟說明
How to Validate Complex Passwords in SwiftUI
By: Pablo Blanco
Tags: Swift, Swiftui, Cybersecurity, Ios Development, Programming

What Is a Validation System?

A validation system allows an app to evaluate a user input stream and decide if that data is valid based on some rules.

Face ID, Touch ID, etc. These are impressive technologies that have improved the way we protect our data. But even when using them, sometimes our business logic requires the user to enter a manual password. And that password must be strong. And strong usually means complex.

Creating complex passwords can be tricky if the user does not have a clear understanding of how to make it work.

For that reason, a complex validation system is needed — and it must fulfill some requirements to make it safe and maintainable to manage.

Having this in mind, let’s define the main principles behind our validation system.

A single source of truth

Validation must rely on a single place. Why? If validation was defined in more than one place, that could create misbehaviors and differences through the app, in case you validate fields on several screens.

Note: Although validation is a must on the server side, a double-check validation on the client side is also great, as it can be faster and more responsive for inline validation.

Dynamic and scalable

The definition of validation rules could change over app versions, so a flexible system could make the difference when adapting the validation to any new business requirement.

Continuous input validation

Validation must react to every input entered by the user. Being reactive is important to let the user understand what is right or wrong with the input content.

Useful outputs

A validation without a clear result is useless. The system must provide a result to display to the user and it must be adapted to the user interface to provide useful information. Some examples are the following:
List performance and iOS 14
By: Carlos Silva
Tags: Swiftui, iOS App Development, Mobile

In my app IPTV Time, after iOS 14 I noticed a performance problem during scroll and search in the channels list, nothing changed in the code, so must be something related to the iOS update.

The SwithUI code used for the actual list is pretty straightforward.

On iOS 13 everything runs smoothly, but on iOS 14 everything is laggy as hell.

I was clueless about what’s going on and after some attempts to solve the problem I decided to tackle another problem that emerged with IOS 14. The list separator hack that I was using is not working with iOS 14.

The correct way to fix was to use the new LazyVStack with a ForEach inside to iterate through data.

And voila, both problems solved with outstanding performance on iOS 14, much better than List performance on iOS 13.

The only downside is that I now have custom code for iOS 14, but with the release of the next version of iOS I can require iOS 14 as the minimum version for my app and, then, I can delete the old implementation.

LazyVStack 😍
Convert multiple media files at ease with Elegant Converter 2
By: Khoa Pham
Tags: Swiftui, Converter, GIF, Mac, Media

Hi all, I’m excited to introduce the next version 2.0 of Elegant Converter. This is months of hard work, and is an overhaul redesign and rewritten from scratch to make it work as smooth and effective as possible.

🤩 Why make this app?

I write this app firstly for myself and friends who have been asking for native, offline first, convenient Mac application to easily convert multiple files at speed with multiple popular formats

I myself always need to convert, compress, resize media, images, and especially gif files in order to publish on social media or my projects.

🔥 What can Elegant Converter do for you?

New in 2.0 is a task selector, where we can easily select from a bunch of tasks

◇ Convert audio, video file to many different formats lile like, mov, mp4, mp3, gif, ogg, wav, opus, avi, webm, flac, …

◇ Resize video, change bit rate, frame rate, trim duration

◇ Add poster image to an audio file, this is suitable for producing video from podccast recording and a cover image

◇ Special convert to and from gif

◇ Compress video, audio and gif files to reduce file size with lots of options

◇ Resize images

◇ Remove and extract audio part of a video

◇ Merge and split video file to smaller chunks

👌 What’s more?

The app is built with privacy in mind, no tracking, no network calls. All your finds are processed quickly and locally on your machine with parallel processing.

I continue revamp and listen for feedback to make this app better. Hope you find it useful ❤️

🙌 Show me

The app is available at https://onmyway133.com/elegantconverter/ and Product Hunt campaign is https://www.producthunt.com/posts/elegant-converter-2
【iOS】#4 會走路的機器人Duino，運用UIBezierPath 以及製作動畫
By: Leo Kuo
Tags: Animation, Swift, Swiftui, SVG, iOS

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
How to Create an Animated Heartbeat Shape With SwiftUI
Tags: Swift, Xcode, Mobile, Swiftui, Programming

Animated Heartbeat (1)

Heartbeat shape

Creating a single heartbeat shape is relatively easy. Decide where your heartbeat is going to be. Start with a line, then a second one near where you want the heartbeat shape. Next, you need to add two lines with different y values to create the beats. Lastly, add two more lines — one to get back to the middle of your rectangle and the second will take the line to the end of the rectangle/screen.

In the example below, you will see how we can utilize the rectangle’s midX , midY , maxX , and maxY values to get the heartbeat shape:

HeartBeat view

Create a new struct view and stack two of the heartbeat shapes we created above inside a ZStack . To the second shape, add the trim modifier and pass to it two state variables with the value 0 . The trim modifier will be used to animate the second heartbeat.

Animation
Converting a pure view model to a reactive one
By: Terrick Mansur
Tags: Reactive Programming, Functional Programming, Swiftui, Software Development, iOS

Writing a pure view model makes it very easy to test and understand. But writing a pure view model reactively makes for better code.

Photo by Steve Johnson on Unsplash

In my last article, we converted an impure view model into a pure one. At the end of the article, we saw that the mutability of one of the properties in the view model property is not ideal. In this article, I will fix this issue by converting this pure view model into a reactive one.

Let’s take a look at the view model again.

The name property in the view model is mutable, and it needs to be since this needs to be updated when we update the view model with the NameService.Response . However the issue with name being mutable is that anyone that has access to our view model can change its value. Here is an example of a mistake someone might do.

We can easily fix this by marking the set as private by declaring it like so private(set) var name = "" . But we are still leaving room internally to make mistakes like so.

The reason there is still room for mistake in this setup is because name is only the storage of the result of the transformation of NameService.Response to name.

When you write FRP code, you never want to store any state. What you want is name to be the actual transformation. Below is an example of how you could write this in a functional way.

name is now the transformation of NameService.Response to name, NOT the storage of the resulted transformation.

Where reactive programming comes to play is with events. For that, we would need to take a signal of the type Service.Response in the initializer and have name be a signal that is the mapping/transformation of the Service.Response signal into the name signal. Let's look at the example below.

In this example again we can see again that name is not the storage of the resulted transformation, but the actual transformation of the response. The only difference in this example is that it is reactive.

Thank you for reading

If you liked this article please follow me and show your support with a clap. If you want to read my other articles, below is a list.

My articles:

1. The missing piece of MVVM

2. What are Pure Functions?

3. Pure functions? What about Pure view models?

Get in touch:
How to create a preferences window in Big Sur with SwiftUI
By: Darío González Martínez
Tags: Swift, Xcode, Bir Sur, Swiftui, Macos

SwiftUI preferences window

In this tutorial we will be writing a preferences windows for a native Big Sur macOS app written with SwftUI.

We will be using the amazing Preferences library by Sindre Sorhus.

After adding the library to our Xcode project, the first to do is create the a SwiftUI view.

Import the Preferences library and replace the Hello World text with a Preferences.Container and inside it a Preferences.Section, because it is a SwiftUI you cand add any supported view like Buttons, Pickers, Sliders…

The code below should show you something like the image below.

Right now the preferences aren´t stored anywere so every time the view is destroyed, all user seleccions are lost. To solve this problem, change the @State modifier for @AppStore, this way the values are automatically saved and restored by the system.

To add a little bit of variation, create another view for more user actions, like database manipulation.

Now that all the SwiftUI views are created, create an extension of Preferences.PaneIdentifier.

The next step is the creation of two PaneHostingController, as you can see we can user SF Symbols for the icon that will be show in the toolbar of the window.

The last step is to overwrite the command that opens the Setting view is macOS with a Button that created a PrefeferencesWindowController with the two PaneHostingControllers.

Congratulations! Now you have a totally responsive and native preferences windows, following the big sur desing style and writed with SwiftUI.
You Are NOT Broken
By: Josh Bunch
Tags: Depression, Self-awareness, Buddhism, Self Improvement, Meditation

You Are NOT Broken

Nothing to heal. Nothing to fix. I am valuable.

That hit me like six trucks this morning while meditating.

Where the concept originated, I can’t say — can we ever? — but it was one of those treasures created from nothing, from nowhere, and everywhere at the same time.

I settled. When cosmic revelations like that happen, I’ve learned not to push. Epiphanies are like timid cats; if you rush over to pet them, they’ll just runoff. So I stayed there on the pillow, cross-legged on the floor, atop the ‘Shinning’ inspired rug in the room with the ominous ticking clock.

The concept intrigued me. Actually, it angered me. This wasn’t what I signed up for when I started meditating all those years ago. I came for the action, not the love story. And here was my mind tossing up something that attacked the excuses I’d relied on for so long, the misery I wore as some sick badge of honor. I struggled to believe it, but it didn’t disappear.

Nothing to heal. Nothing to fix. I am valuable.

The more I let the notion sweep over me, the more disarming it felt. Letting it in my Mind Palace was like letting in a stranger with a gun. But I did it anyway because good meditation is dangerous meditation. It welcomes the unknown, challenges the ruling class of the mind, and transforms the world instantly.

I began to chant: Nothing to heal. Nothing to fix. I am valuable.

I did my best to believe it. I left the baggage behind. I learned that fear and anguish, and doubt does not have to continue. And best of all, I understood something I never had before; I’m not broken.

If we’re talking strength, then it’s pretty clear that accepting the notion of no healing and no brokenness is going to take all we have. At least for most of us. We’re taught early on that our environment, childhood, and culture is what makes us who we are. And maybe so. But who’s to say we need to be broken by it? What if the past wasn’t something to overcome? What if the bad things that happened didn’t leave us in desperate need of repair but added to our ability to achieve?

Excuses are comforting. They remove responsibility. Life becomes mom and dad this, my boss and coworkers that, and if the world would only …! But excuses aren’t helpful, and it’s far better to take advantage of the power within you than to justify weakness. And that starts by accepting a future where there is nothing to heal, nothing to fix, and YOU are valuable.
The Path of Five Ranks
By: Monk Enō
Tags: Rhymes, Zendorhymes, Buddhism, Poetry, Dharma

The Path of Five Ranks

Lake Tahoe

Seeing Two is our First wrong View

Can I be wrong about this Me and You?

So we sit and we bow and finally break thru

Rearranging this Life there is much to do

Then comes the day when all One is wrong Too!

Like a Box and its Lid this One and Two

At Peace with our Nature now we feel True
Buddhism Day by Day: It is Foolish to Ignore or Deny the Contributions of Medicine
By: Adam, Diabetic Cyborg
Tags: Prose Poem, Buddhism, Poetry, Puppies, Poems And Stories

Buddhism Day by Day: It is Foolish to Ignore or Deny the Contributions of Medicine Adam, Diabetic Cyborg ·Dec 26, 2020

“It is foolish to ignore or deny the contributions of medicine. Otherwise, faith descends into fanaticism. We must use medical resources wisely in fighting illness. Buddhism gives us the basic ingredient to health, to long life and to happiness. The new century of health, then must be a new century of wisdom.”

Credit Daisaku Ikeda for the quote.
Enlightenment under stupidness
By: Masako Oda
Tags: Enlightenment, Life Lessons, Life Hacking, Japanese Culture, Buddhism

Even if it seems like a meaningless thing to do if you keep doing it for a long time, it becomes much more meaningful to you.

−A story about one of Buddha’s disciples named Myoga. The guy was a total moron and couldn’t memorize even the simple Sutra. The other disciples always teased him. One day the Buddha said to him, “Myoga, you’re not very bright, so you don’t have to learn any Sutras. Instead, I’d like you to sit at the entrance and polish everybody’s shoes.” Myoga was an obedient guy, so he didn’t tell his master to go screw himself. So for ten years, twenty years, he diligently polished everybody’s shoes. Then one day he achieved enlightenment and became one of the greatest of all the Buddha’s followers.
In Service of Emptiness
By: Nikhil Suri
Tags: Purpose Driven Life, Prayer, Silence, Buddhism, Spirituality

Silence is the substratum.

Noise is a disturbance in the silence.

Music is a disturbance that leaves behind a richer, more enlivened silence.

What silence is to sound, emptiness is to existence.

Matter gets created in emptiness. We live on a planet floating in emptiness.

And ultimately we dissolve into emptiness.

The emptiness is even within. Break down an atom, and it's mostly space. Look deeper into the particles and they're just waves dancing in this emptiness.

Just in between we are like clouds. Seemingly here, but barely so. In the infinity of time, what is this human existence?

Perhaps just the lullaby of a mother to calm the mind of her child.

Perhaps the dance of the spirit within.

Or music in the eternal silence.

Whatever it is, we are in it. We are it. Yet we are lost in the fullness of it, in the many many manifestations of the energy as existence.

So what to do with this spec of time given to our account to live on this planet?

To my mind, the highest use of this time would be to enliven the silence of existence. To serve the emptiness by bringing it into experiential reality into everybody’s life. To make it a part and parcel of everyone’s understanding of what they are — not just in words, but as a tangible, palpable, livable part of life.

Everyone yearns for it. There is so much wanting for peace within and people are searching for it in so so many ways. Yet so few find it, and yet even fewer are able to get to a space where they are able to witness life as a happening within this emptiness, which is just as near as the sensation of every breath taken consciously.

It is in the service of this cause that I have dedicated my life. It is in the service of bringing this most beautiful of gifts back into the centre-place of the human existence that I willingly am ready to spend all my moments here.

If you are searching for it, I pray that you find it. I am here to help in any way possible.

If you are spreading it… I bow down to the essence that has woken up in you.

If you are curious about what all this is…just continue reading on. I’ll be exploring this theme in the time to come.
River
By: Ulf Wolf
Tags: River, Being, Zen, Buddhism, Meditation

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Seeing
By: Ulf Wolf
Tags: Mental Obstruction, Thinking, Buddhism, Seeing, Meditation

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
The Four Noble Truths
By: Monk Enō
Tags: Rhymes, Zendorhymes, Buddhism, Poetry, Dharma

The Four Noble Truths

(a)dalailama — Instagram

Life is Dukkha the Buddhists say

Understanding this is the Middle Way

Life is Suffering the Beatniks translated

Reclaiming the gap the Bible created

Dukkha is better said as being Stuck

This is the cause of Life running Amok

Like the Wheel of a Cart which does not roll

It Drags you Aside and you Fight for Control

Our Wheels are that which pesters our Mind

We Want what we Lack or Rid of some Bind

The Roots of the problem are Fear and Desire

They Haunt our Mind or even set it on Fire

The Fear is of Losing what we hold Dear

Desire to Gain what we want to be Near

So we Cling to one and Grasp for the other

These are the Actions that make us Smother

Neither are bad it’s all in how we React

There’s surely a way to stay Sane and Intact

It is Simple they say; just Stop clinging and grasping

Then Life will be Freedom … … Everlasting

Just follow the Path prescribed forthwith

The Eight Fold Path, this is Buddha’s gift
Considering Reincarnation
Tags: Self-awareness, Mindfulness, Buddhism, Photopoetry, Spirituality

Considering Reincarnation

Image taken by author

In my sleep I often dream of flying,

it draws my energies but I can surmount anything.

Sometimes I dream of breathing underwater,

the dense masses do not hinder my limber motion.

I happen to dream of dearest loved ones,

and it is hard to regain consciousness.

I like to think of these as fragments from previous lives.

It sounds foolish, I do not have evidence other than a hunch.

However, this ludicrous idea breached of inherited beliefs and transformed my world.

Image taken by author

We think ourselves free from stringent beliefs of the past.

Though, we bow to new commandments.

NEVER ENOUGH.

We praise gods who reassure our basic needs. Yet, we suffer.

Our spiritual essence is neglected and we search for pleasures to forget about it.

We pursue a distorted view of success and cost-efficient love.

YOU CAN BE THE BEST. BUT IF YOU ARE NOT,

YOU ARE NOTHING.

What am I worthy?

Image taken by author

Like a capsized snowglobe, glitter swirl all around my mind when I imagine future lives.

Fears and expectations crumble when inner self is the core, rather than appearance.

I grasp the courage to shoulder the responsibility of my inactions and I find the boldness of saying

NO

more than I thought I could.

Pushing away depression.

New hopes blow on the embers of my true aspirations.

Image taken by author

Looking through the eyes of a cat I redeem empathy.

Besides me, at the centre of my world, many souls appear. I sense my same desires and fears:

SAFETY, LOVE, FREEDOM.

I recognize privileges are due to dumb luck rather than merit.

And death will be ironically democratic in the redistribution of bodies and conditions.

We may have died already and it could happen again later today. Idem, for the next we cross.

Look through those eyes.

What will you see?
Buddhism Day by Day: What Religion Does This Person Follow?
By: Adam, Diabetic Cyborg
Tags: Prose Poem, Buddha, Buddhism, Poetry, Puppies

Lola is a religion in herself sometime! 😁❤️🐶😝 (Photo by me)

“Buddhism does not ask ‘What religion does this person follow?’ but ‘What is this person’s state of life?’ Buddhism exists to enable all people to cultivate and manifest the world of discrimination and distinctions. But Buddhism transcends all superficial differences and focuses directly on life.”

Credit Daisaku Ikeda for the quote.
Buddhism Day by Day: Where’s Happiness Found?
By: Adam, Diabetic Cyborg
Tags: Prose Poem, Buddhism, Poetry, Puppies, Poems And Stories

“Where is happiness to be found? The famous Roman philosopher-emperor Marcus Aurelius said, ‘A man’s true delight is to do the things he was made for.’ Human happiness, he maintained, lie in doing those things only humans can: seeking the truth and acting to help those who work cheerfully and take joy in the fruits of their labor are truly happy. These are the words of great thinkers, and as you can see they are in complete accord with the teachings of Buddhism.”

Credit Daisaku Ikeda for the quote.
The 36 Chambers of Shaolin
By: Anandi Baba
Tags: Martial Arts, Anandi Baba, Buddhism, Shaolin, 36 Chambers Of Shaolin

THE 36 CHAMBERS OF SHAOLIN

The first chamber is, ‘I shall fight.’

The second chamber is, ‘Give food, water, medicines and things like that.’

The third chamber is, ‘Give wealth, clothes, ornaments and things like that.’

The fourth chamber is, ‘Void.’

The fifth chamber is, ‘Observe.’

The sixth chamber is, ‘Work.’

The seventh chamber is, ‘Work hard.’

The eighth chamber is, ‘Act.’

The ninth chamber is, ‘Believe.’

And the 36 are, ‘the 9 in the 4 directions.’
Equality, or doing away with birth-based privilege, is a legacy of the Enlightenment and French…
By: Shivatva Beniwal
Tags: French Revolution, Equality, Hinduism, Buddhism, Hindutva

Equality, or doing away with birth-based privilege, is a legacy of the Enlightenment and French Revolution. Equality was the most important part of the French Revolution, for equality they were willing to sacrifice their political liberty. They did this when they accepted the rule of Napoleon I. Fraternity, or brotherhood with all men was also sacrificed.

Equality has always been an alien philosophy in the history of South Asia. The philosophy of equality does not exist in any Indic philosophy or religion. The ones who claim Jainism and Buddhism do not believe in the hierarchical caste system are ignorant; they have either never read the primary sources of Buddhism or read them selectively.

Yesterday, I was reading a commentary on the Brahma Sutra by Acharya Shankara, who propagated the Oneness (of the Creator and the Creation), and I was deeply offended by his views on the Shudras (the Hindus who makeup around 80℅ of the total Hindu population and do not belong to any of three upper castes collectively known as the Dvija). My Gosh, that man was totally sick!

Now I understand why the Hindutva movement, which protects the traditional privileges and interests of the three upper-caste groups, has created immense hatred against the Western civilisation and knowledge system which were brought in India by the European missionaries and merchants who ruled India for around two centuries.

The Hindutva movement wants to re-impose the traditional birth-based privilege and discrimination system, but before that, they need to defame the Western civilisation and knowledge system which have exposed Indians to the philosophy of equality.
Joy, I Tell You, Joy
By: William B. Turner
Tags: Enlightenment, Buddha, Joy, Buddhism, Meditation

The Buddha

Is what you get if you meditate long enough, consistently enough. Once you get reliable access to the consciousness that is always available and the sea that we swim in, you can put your mind in joy any time you want.

It’s pretty remarkable. Teachers warn that this is not necessarily the whole enchilada and against resting content with joy short of full awakening, and I won’t argue, but it does seem sort of like a distinction without a difference, or letting the perfect nitpick the good. We’re all on the path in our own ways and with our own goals, so if you decide you’re happy with being happy and choose to stop here, that’s up to you. It’s not clear how that would work, of course. This is a practice. You really kind of can’t go backwards. Once you’ve moved the trend, you can’t revert totally to where you started.

But the joy might lose its sheen if you stop practicing, and if you keep practicing, you will move further down the path, but there’s nothing wrong with that. The Buddha identified several types of people on the basis of their progress on the path, from being within at most seven rebirths from complete enlightenment up to certain to achieve enlightenment in this lifetime. Moving up that ladder is all to the good, no matter what rung you are on.

Regardless, keep meditating until you can enjoy being in joy.

We have a book.

Please help spread the word.
Is Buddhism Fair?
By: Amara Shein
Tags: Religion, Buddhism, Faith, Philosophy, Spirituality

When you start your life cycle, you are given a credit card. This is your karma. Now, the good things you did in your past lives all accumulated positive credit on your account. Said the truth? Plus $50. Donated money? Plus $100. Saved a life? Plus $500.

But now, what happens when you do something bad? In this case, capitalism trumps karma — you have to pay up. Each time you do something immoral, your card goes cha-ching, subtracting credit from your account. Lied to your loved ones? Minus $50. You catch the drift.

Unfortunately, there is no way to close this credit card (except to reach nirvana, which is a bit difficult, to say the least) and you must accept it each life. And your credit determines a good amount of your life. It could be the difference between you being reincarnated into a human or animal, born rich or poor, or able-bodied or disabled.

Perhaps due to the fact that Buddhism was founded in the 6th century BCE, the credit system is very basic and does not provide its users with much information or access. While you are accumulating this credit, you have no idea how and when it will be applied. Likewise, the good deeds you are currently doing may not be applicable in this life. A person can be generous but misfortunate due to their debt from another life.

Karma is a cloud following your every life, despite your births and deaths. You could have been a saint in a past reincarnation, but a murderer now, or vice versa. There is no way to get this information, yet current bloodthirsty killers may have good luck with their wrongdoings due to unknown moral deeds, despite them not having the same character as their past saint-self. Using the credit card analogy, it is as if Discover called you and said:

Remember that time you killed someone in a past life? You don’t? Well, you’ll have to pay for it anyway.

How is this fair?

We are entrapped in this cycle of reincarnation in which our karma determines details of our current life, yet our memories and mind do not carry over. It is impossible to reflect, evaluate, and improve ourselves. It is impossible to try to make meaning of this injustice— if we knew why we face some of the challenges we do, they may seem and be more manageable. It is impossible to use the information of our past to prepare for future misfortune, or even fortune, that may arise. The question of why is a heavy one due to the value its answer would bring, but it also entails a sense of clarity that I was determined to seek out.
Feed ewe’r soul
Tags: Poem, Christianity, Buddhism, Poetry, Philosophy

Hi!

oh! Ho!

.

.

Don’t want 2b be a hoe 4Medium

.

.

Sew, I’ll ramble on till my poem

.

.

Goes down like Sunsets & T-rex’s

.

.

We’re, oui, almost going down

.

.

Just few more stanza if ewe can stand zit

.

.

We’re LOL laf @hourz selfs

.

.

Our souls if U believe in God

.

.

What would drive the engine of an atheist?

.

.

Girls? Boyz? More bananas?

.

.

Nukes & bigger klbus 2xclude &dumbinate?

.

.

Is it innat, our Viking souls

.

.

Cing Veilhalla in everything

.

.

They rape like Israel during the Crusades

.

.

&Palestne after WW2

.

.

Our souls? Do we have1, Brits?

.

.

Blood thirsty vikings in Kill’ts

Thanks for fewer patience….

Feed your soul.

even if U feel emptied.

Feed it even or oddly carved out.

If your soul want 2dye her hare,

my soul wants lights out 4sport! Hm?

The ancient voices now talk 2 me, deathly

along with chatty photos on some1’s wall

Feed ewe 2ur soul sold 2the low’st me

ight, my soul tells me I’m an octopus in mourn’

Feeds me to the vicious PJ Sharks

Just bc my soul was bored, I was torn

Boared my soul in2 ewes

Peace bye piece by an octo-pieces

fft, til’dis’satisfaction hungered

for mo’ fictshun about spirits & souls..
Stillness
By: Ulf Wolf
Tags: Stillnes, Just Sitting, Zazen, Buddhism, Meditation

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Grossly Distorted
By: William B. Turner
Tags: Body Image, Enlightenment, Buddha, Buddhism, Meditation

The Buddha

Your image of yourself, that is. Research has shown that humans have a mental image of their bodies that is usually at least somewhat different from the actual physical qualities of those bodies. Again, no one perceives anything directly. The sensory data enters through the sense organs, mostly eyes and ears, but only becomes perception after the brain has interpreted it, a process that allows for some alteration of the original data, or requires some alteration.

For ordinary, daily life, this is not a problem. It’s just our reality.

From a Buddhist perspective, it is the problem.

Until and unless we develop our meditation practice consistently enough and long enough, we take our bodies and our materiality as reality, as all there is, when it is really the product, the outcome, the effect or manifestation of mind, which is primary. Consciousness is where it’s at. It is primary. Without it, we would perceive nothing. We would know nothing.

To awaken, we need to redirect our awareness within consciousness away from the material to the consciousness itself. The nothing that is everything. The source of clarity, peace, and joy.

Try it. You’ll like it.

We have a book.

Please help spread the word.
Buddhism Day by Day: Even if Today may Seem to be a Time of Total Darkness, it Will not Last Forever
By: Adam, Diabetic Cyborg
Tags: Prose Poem, Poetry Writing, Monday Motivation, Buddhism, Puppies

Buddhism Day by Day: Even if Today may Seem to be a Time of Total Darkness, it Will not Last Forever Adam, Diabetic Cyborg ·Dec 21, 2020

“Even if today may seem to be a time of total darkness, it will not last forever. The dawn will surly come if you advance, ever forward, without being defeated. The day will definitely come when you can look back fondly and declare, ‘I am savoring this happiness because I struggle back then.’ It is those who know the bitterness of winter that can savor the true joy of spiring.”

Credit Daisaku Ikeda for the quote.
This Pain:
By: Emily Shell Gamage
Tags: Emotions, Suffering, Transformation, Poetry On Medium, Buddhism

Disgusted with constraint,

Weakness-

I set myself free

To feel all of it,

This pain,

The threshold burst,

Boundless-

Demanding further tolerance,

I am overflowing.

This pain,

I eat it for breakfast,

Cereal-

Milking silver linings

Over a bowl of screws.

This pain,

Shreds my innards,

Swallowing-

Becomes molten metal

Burning my guts.

This pain,

Has me singing,

Ratcheting-

As I’m bleeding

From my mouth.

This pain,

Has me laughing,

Maniacally-

Gritting red teeth

And stained smile.

This pain,

Is heavy metal,

Volatile-

I am radioactive,

I am glowing.

This pain,

Is engulfing me,

Radiating-

I am changing phases,

I am transforming.

This pain,

Reveals only love,

Inexhaustible-

I am a crackling hearth

To warm cold hands.

This pain,

This burning heaviness,

Energy-

This effort against entropy,

This loss and futility.

This pain,

This richness of existence,

Suffering-

This depth of experience,

This consequence of living,

This pain.
You Know What You Think
By: William B. Turner
Tags: Thoughts, Enlightenment, Buddha, Buddhism, Meditation

The Buddha

Before you think it. If you stop and think about it (!), you will realize that this is the case.

Thoughts are words inside your head. Where do they come from? Do you know? The content has to come from somewhere, and you must know what it is before you formulate it in words.

It is possible to think up a random series of words, but even then, you have to have some idea of what “random” means and how to arrange a set of words deliberately so that they are random, meaning not in any combination that would formulate a sentence or coherent statement in whatever language you think in. In order to break the rules, you have to know what they are. You can state the rules if you stop and think about them (!), but that means that the knowledge must reside somewhere in your consciousness (!!) before you think the thought in words.

The Buddha’s awakening gave him knowledge that we are just now confirming with the most advanced scientific research we can muster.

If the Buddha could awaken, if we can awaken, and the Buddha said we can, then the universe must operate according to laws, physical and moral. Those laws are knowable. The knowledge is already there, waiting for us to get our minds quiet enough to let it enter into our awareness.

You get there by meditating. So keep up your consistent practice.

We have a book.

Please help spread the word.
How Do Asian Religions Explain Natural Disasters? (2)
By: Eiji Suhara Phd
Tags: Religion, Suffering, Mindfulness, Karma, Buddhism

In addition to this teleological argument, let us consider why/how we suffer as human beings from a Buddhist psychological perspective. In order to contemplate this question, let me first quote the American Tibetan Buddhist Pema Chödrön:

When you begin to investigate, you notice, for one thing, that whenever there is the pain of any kind — the pain of aggression, grieving, loss, irritation, resentment, jealousy, indigestion, physical pain — if you really look into that, you can find out for yourself that behind the pain there is always something we are attached to (Lion’s Roar).

Chödrön made the above statement based on the second of the Four Noble Truths. It states that the cause of suffering is craving (taṇhā) (attachment or ignorance, according to different interpretations).

Why does craving or attachment cause suffering?

According to the Buddhist theory of impermanence, nothing in this world has a stable, permanent existence. Everything is uncertain. We believe that everything we see in this world is a stable substance. However, according to Buddhist doctrine, such belief is a misrecognition based on our ignorance of the fact that every-”thing” is impermanent.

For example, many of us may implicitly believe that the substantial agent called the “self” exists somewhere in our minds. However, the Buddha claims that such a self is a mere image constructed from a combination of several impermanent factors, an impression of sensation, form, meanings, memories, and so on. These factors are glued together by karmic force and fabricated as a stable substance that we label the “self.” However, it is an illusion, like an image projected on a movie screen, and is unrelated to “reality.”

Therefore, when we attach to some-”thing,” we do something contradictory. When we crave objects of greed, we try to grasp something that doesn’t exist. It is impossible to do, though, just as we can’t catch a rainbow.

As a result, we can never be satisfied as long as we continually make this cognitive error. In this sense, the Sanskrit duḥkha, often understood as “suffering,” should be translated in the context of the Four Noble Truth as “dissatisfaction.”
Accept the Unacceptable
Tags: Impassable, Achievegreatness, Acceptunacceptable, Buddhism, Rest Dont Quit

Many have had to accept a great amount of the unexpected and unacceptable in 2020. And certainly in many lives through all centuries, we have accepted the impassable, yet the human spirit has gone beyond predictions.

don’t stop now — rest instead

What we conclude with each achievement, and all moments, are realizations in triumphs.

These momentary thoughts and ideas, which never make sense, are often those of greatest achievements.

We may come to place where we wish to quit, rest instead, and reclaim your brilliance less fatigued; life is strenuous at the barest of times; when creation is ready to explode!

MicheleElys
Make Love of Yourself Perfect
By: Jacqueline Weppner
Tags: Love, Self-awareness, Buddhism, Self Love, Spirituality

Make Love of Yourself Perfect

You are perfect, only you don’t know it.

Learn to know yourself and you will discover wonders.

All you need is already within you, only you must approach yourself with reverence and love.

Self-condemnation and self-distrust are grievous errors.

Your constant flight from pain and search for pleasure is a sign of the love you bear for yourself;

all I plead with you is this: make love of yourself perfect.

Deny yourself nothing — give yourself infinity and eternity and discover that

you do not need them; you are beyond.
A day of quietude.
By: Ian Miller
Tags: Lifestyle, Mindfulness, Meditation, Buddhism

A day of quietude.

Up early. Today will be a full day of meditation with my local zen group.

Known as zazenkai which literally means ”to come together for meditation”.

A day of quietude. Shared solitude.

Seeking a little internal silence is almost a reflexive immune response to the overwhelming feeds from COVID-19 that have been poured over our collective psyche this last wee while.

The problem is its just really hard to put it all down. A threat of vague and as yet unknown personal significance. Yet it activates the fight, flee, freeze, fuck parts of our brains and grabs us like existential velcro.

Beware the creep of your own hypervigilant angst right now that can leave you drained and on edge (not to mention a little immunosuppressed).

Instead, pick a few trusted sources to follow (but not chase) and turn down the noise on the rest. Way down.

You have taken precautions, you are prepared, now pay attention to the stuff that dances in the spaces between.
Why Buddhism is fundamentally different from other religions
By: Kenneth Leong
Tags: Absolute Truth, Education Of The Heart, Non Attachment, The Raft Simile, Buddhism

What is Buddhism? In Chinese, the word Buddhism is literally “the teachings of Buddha.” I like that meaning better than the alternative meaning of “the Buddhist religion.” Buddhism is not a religion in the Western sense. If we understand its founding spirit, based on what Buddha taught in the Kalamas Sutta, it is a form of education. Such education is not indoctrination. It is not the transmission of dogma because free inquiry, debates, and questioning are encouraged in Buddhism. I see Buddhism as the education of the heart, with a focus on the nature of human suffering and the ending of it.

The teachings of Buddha are different from the teachings of other religions in this crucial way: Buddha did not regard any of his teachings as some kind of absolute truth. Buddha compared his teachings to a raft. A raft is for helping us solve a certain immediate problem — to cross over some waters. The value of a raft is provisional and transitory in nature. It is not for holding on to. In fact, a major theme of Buddha’s teaching is that nothing should be clung to. Such clinging is a source of suffering. This teaching is paradoxical in nature because it applies also to Buddha’s teachings. The Diamond Sutra says, “Even the Dharma should be let go, save the non-Dharma.” No teacher in the world has ever taught like that.

I conclude that Buddhism is a non-religion. However, if we regard it as a religion, it has the potential for being a non-dogmatic and non-toxic religion. Historically speaking, Buddhism is one of the least violent religions. This is understandable — it never claims to teach any kind of absolute truth.