2025-10-30 10:31:00

honestly just was testing the media uploading since i upgraded to premium but also LOOK AT THIS CUTIE
2025-10-27 03:31:00
For years, I've thought about the mess I would leave behind if I die, and the fact that I have made zero preparations for that.
First and foremost, I need a sheet with names and contact information for my friends to be contacted in the event of my death.
I don't have kids so that's simple.
I have a little money (Never more than $500) and a few material belongings like my laptop and magic card collection.
I have sentimental belongings to dole out. I'd like to give one bear to each bestie, but I can't split them up, they're brothers. (I have other stuffies that can be split up)
I don't care about my clothes or purses or shoes or other incidental possessions.
I have many software projects, which, quite frankly, would die with me. But it would be nice if somebody could renew the domain names and hosting for a few years and keep them online.
I'd want my friends/family to find my digital photos (except the naughty ones lol).
I want my obituary to use they/them pronouns. I want to be recorded as the one who organized my city's first Pride Fest. I want to write a pseudo-eulogy for myself. I want my loved ones to write their own eulogies (if they please). I'm fine with a pastor conducting my funeral (I like my family's pastor), but don't want him doing all the speaking or making it a religious ceremony (I'm an atheist).
I want to have as eco-friendly of a postmortem as possible (is this cremation? or a "green" burial?).
I want my people to find my blog, and pick some of my writing to share at my funeral. I want my Letters To The Editor to be printed and shared at my funeral.
I'm not sure what I'd want done with my private journals. Let my mom and best friends read through them if they please. Warning: Shit's pretty unhinged at times, especially a few years ago when my mental/emotional systems were haywire.
I want my people to know how much I loved and appreciated them, even the people I'm no longer close to.
2025-10-24 03:31:00
The below script will prevent you from leaving a blog post that you're in the midst of editing. It allows exit if you publish, save as draft, or Delete.
See my other Bearblog Tips & Tools
Visit https://bearblog.dev/dashboard/customise/ and paste the below code into the 'Dashboard footer content'.
<!-- Prevent accidentally leaving 'New Post' and 'Edit Post' page. -->
<script type="text/javascript">
window.addEventListener('beforeunload',
function(event) {
const url = window.location.href;
const body_content = document.getElementById("body_content");
// Make sure we're on the NEW POST / EDIT POST page.
if (!url.includes('/dashboard/posts/')
||body_content == null) {
//console.log("url not match or body_content null");
return null;
}
const target = event.originalTarget.activeElement;
// If you're submitting or deleting, we allow page exit
if (target.getAttribute('type') == 'submit'
|| target.innerText == 'Delete') {
//console.log("is a submission or deletion");
return null;
}
//console.log("confirm exit");
// it's a new/edit post (or page), so let's confirm you want to leave
const msg = "Are you sure you want to leave this page?";
// the .returnValue approach "is consistent across modern versions of Firefox, Safari, and Chrome." according to mdn, but I leave the return msg as a fallback for niche browsers in case they do it wrong.
(event || window.event).returnValue = msg;
return msg;
}
);
</script>
This is the 3rd iteration. Version 2. Version 1.
Note: It seems, at least in Firefox, if you load the page then try to leave without changing anything, then the exit-prevention doesn't work. Idunno why, I'm guessing onbeforeunload doesn't get called? It doesn't matter, since you don't lose any work.
2025-10-21 05:06:00
An Archaeopteryx wrote a post about Generating a ToC, and it looked like a painful process.
UPDATE: They shared their ToC styles, which look very nice, and I have implemented for this post as an example. At their suggestion, I also removed the nested css classes of toc-head and toc-list.
So, I wrote some Javascript to create a button on your 'New Post' page that will generate ToC for you.
ALSO: checkout my other Bearblog Tips
Note: This has been added to Herman's Bear Blog Plugins and it is best to copy+paste code from there instead, as it is more likely to be up-to-date.
Note: There must be at least one blank line between any HTML and any markdown. The generated ToC HTML thus has extra blank lines added before-and after to make it a little more foolproof.
You can use your BearBlog theme to style the table of contents however you like. Here are some selectors (but no styles):
div.toc {} /* wraps the whole thing */
div.toc ol {} /* the outer, numbered list */
div.toc ul{} /* any sub-lists, not numbered */
div.toc li {} /* list item */
div.toc li a {} /* the link within the list item */
div.toc ol > li > a {} /* numbered links only */
div.toc ul > li > a {} /* non-numbered links only */
div.toc ol > li > ul > li > a {} /* tier 2 links only */
Heavily commented for non-coders. This goes into your "Dashboard footer content".
You can also view and modify this in jsfiddle.
<!-- Generate Table of Contents -->
<script type="text/javascript">
// create a new button element
const toc_btn = document.createElement('button');
toc_btn.classList.add('rdb_post_restorer');
toc_btn.setAttribute('onclick', "event.preventDefault();generate_toc();");
toc_btn.innerText = 'Generate ToC';
// add the button to your 'New Post' page
document.querySelector('.sticky-controls').appendChild(toc_btn);
/** scan your post text and generate a ToC, copying it to your clipboard */
function generate_toc(){
// HTML for the start of the ToC list
var toc = "\n\n"+'<div class="toc">'
+"\n"+'<h2>Contents:</h2>'
+"\n"+'<ol>';
// get your post's content
const body = document.querySelector('#body_content').value;
// find all header occurences
const headers_flat = body.matchAll(/^#{1,6}/gm);
// the first header in the ToC should use '##'
let header_size = 2;
// 'started' is to make sure we don't add an </li> before any list items
let started = false;
// loop over the header occurences and generate html
for (const match of headers_flat){
// how many hashtags this header has
const length = match[0].length;
// you should not use '#' for section headers. Use `##`
if (length < 2)continue;
// generate indentations for the HTML so it looks nice
const indent = " ";
const adjusted_indent = indent.repeat(length-2);
const li_indent = adjusted_indent + indent;
if (length == header_size && started == true){
// close a list item if it does not have a nested list
toc += "</li>";
} else if (length > header_size) {
// add a new sub-list for sub-headers
toc += "\n"+adjusted_indent+"<ul>";
} else if (length < header_size){
// end a sub-list, escape into the parent list
// .repeat allows us to close multiple open sub-lists at once if needed
toc += "</li>\n"+adjusted_indent+"</ul></li>".repeat(header_size - length);
}
header_size = length;
started = true;
// get the full text of the header
const start_index = match.index + length;
const end_index = body.indexOf("\n", match.index);
const header_text = body.substring(start_index, end_index)
.trim();
const header_id = slugify_title(header_text);
// the html for a link to one section below
toc += "\n"+li_indent+'<li><a href="#'+header_id+'">'+header_text+'</a>';
}
const list_closers = "</ul></li>".repeat(header_size-2);
// close the ToC list HTML
toc += "</li>\n "+list_closers+"\n</ol></div>\n\n";
navigator.clipboard.writeText(toc);
// debugging code used during development
//console.log(toc);
//document.getElementById("sample_table").innerHTML = toc;
}
/**
* Convert a header title into a lower-case version with special characters and spaces removed/replaced.
*
* @dirty_title any string
* @return a slugified string with only lowercase letters
*/
function slugify_title(dirty_title){
let clean = dirty_title.toLowerCase();
clean = clean.replaceAll(/[^a-z0-9\_\- ]/g, '');
clean = clean.replaceAll(' ', '-');
clean = clean.replaceAll(/\-+/g, "-");
return clean;
}
</script>
This whole section is just for testing the ToC generator and showing you what it looks like when un-styled.
blah blah body text body text and what about an ###inline hashtag which should be ignored.
so let's hope that an super ## inline hashtag doesn't mess things up
We're now even deeper in the ToC
okay but this one will only have one nested list
testing testign 2 1
testing testing 2 2
2025-10-21 04:27:00
In what universe are Schumer, Jeffries, Biden or Harris not kings? ... They bomb whole populations out of existence in order that they and their aristocratic friends can live in ridiculous luxury, and spread their religion - capitalism - across the globe, violently, with despotic impunity and disregard for international law.
The current 'No Kings' movement is unfortunately not what it should be, not what you present it as.
No Kings means no more feudalism. No more laborers living in squalor and indentured servitude based on unforgivable debt and monthly payments to lords who do nothing but cash the checks of their passive income.
No Kings means no more nationalism. Replace the endless war-making and border protection with a new spirit of global cooperation.
No Kings means no more aristocracy. No more revolving door between the corporate world and lawmaking, where oligarchs’ lobbyists write our policies.
I wish the No Kings protests meant all of that. I do. But they're moreso focused, as far as I can tell, on the dictatorship led by Donald Trump and Nazi Republicans.
So I think establishment Democrats, as genocidal and capitalist as they are, do fit in with the current movement.
Your piece has more power as being a criticism of the No Kings movement itself:
If No Kings is only about venting some frustration, and giving corporate tools a chance to launder their image, fine, but then this is not a movement that will save us.
But I also firmly disagree that No Kings is about "venting some frustration". Yes, we should see a No Kings movement persist post-Trump, and carry this forward to end the oligarchy and empower the people, to empower workers.
But 'No Kings' is not a venting of frustrations toward the SYSTEM. It is a protest against Trump and Republicans dismantling the system, taking away checks and balances, kidnapping and murdering brown people, silencing free speech, erasing trans people from existence, banning books with LBGTQIA+ characters, and taking more moves that bring us toward a genocide in AMERICA.
While criticizing the status quo that so many wish to return to, you should not minimize the horrors of our Nazi regime by saying we are just "venting some frustration".
And also:
Global opinion has been moving away from capitalism for 20 years. It has reached a crisis for the few who have benefitted so much from capitalism's reign. Traditional methods of persuasion are no longer working, so a more extreme method has been put in their place: Anyone who stands in the way of capitalism’s continuation will now simply be physically attacked. That includes socialist governments, immigrants demanding livable wages, Palestinians inconveniencing Israeli real estate plans, anti-tyranny dissidents, underground economies, Amazon employees forming a union, and anyone who strikes, boycotts, or sues in the name of future generations.
Let's not forget that all these tactics are old tactics, and that the corruption of our government is even older. The U.S. has done coups and propaganda abroad for decades (Bay of Pigs, among others) to dismantle socialism and hold-up capitalism. Union busting did not begin in the last 20 years, but during the industrial revolution when factory labor first became real. Western influence and control of the middle east also goes back decades. During World War 1, global governments took sides in the civil war within Russia, trying to help the conservatives beat out the Bolsheviks.
My point is that "Traditional methods of persuasion" never worked in isolation, and have long functioned within the context of state-sanctioned violence and wealth-dominated politics. Some of it is worse right now, some of it has been getting worse for awhile.
Our criticisms of the present should keep history in mind, and we should not dismiss a new horror while criticizing existing horrors.
the news media, owned by oligarchs, treat current events like a random series of isolated, unrelated aberrations to an otherwise peaceful and functional capitalist society.
P.S. My criticisms are meant to improve your writing, not denounce it. FUCK the oligarchy. Let the people rise and the Kings fall.
2025-10-20 11:00:00
It's a weird fuckin book. I don't regret reading it, but i don't think I liked it. It's ... interesting? Idunno man. I probably wouldn't have finished it but it was REALLY short. I think it's worth a try, at least.
I was seeking out a book that featured non-binary characters because I am non-binary and haven't seen my kind represented in fictional books I've read. This did not particularly satisfy my desire to see myself represented, but I appreciated some of the commentary on gender.
For a different (and very good) book that casually features some non-binary characters, see Black Sun by Rebecca Roanhorse
This book is, in part, a commentary on gender. The alien's race does not have fixed genders, and the alien can be either male or female human, depending what date they've setup. They play a straight human at times, and a gay human at others.
The commentary revolves around feeling out of place in the world as a queer person, and wanting to find others like you. This is written by Dolki Min, a South Korean, who wanted to bring forward queer media in the face of threats to the LGBTQIA+ community. This book is a translation of Dolki Min's original.
Below, I spoil the central plot of the book, but not the outcome. You learn the main plot pretty early on.
The main character is an Alien who's (crash?)landed on earth and who's regular form is quite monstrous by human standards. They can shapeshift and take the form of a person, which they do each day before they go out to hunt. Their method of hunting is to setup dates on a dating app, have sex, and kill their prey right after orgasm. They eat humans.
There is a lot of grueling detail about how hard it is for them to walk, and to simply hold themselves in human form. It's quite the struggle.