Tuesday, March 19, 2024

Ever feel like no one is listening?

 Ever have that feeling that no one is listening to you? Yeah, that feeling. It can be a strong feeling to have, a hurtful feeling also. The worst is when a psychiatrist says they're listening but all they do is toss medications at you. I mean yeah, the medications are good to work with, but when you don't feel seen or heard it can drop you down low.

I don't know if I'm making any sense right now. I do believe I'm going through an episode of sorts. It's not fun at all and I know that. Hell, anyone who goes through this illness knows that.

Wednesday, March 13, 2024

Life Ain't Easy

 Let's face it, this life isn't easy. Ther are things that we must do daily in order to survive. It can feel like you don't have any control over anything. Personally, I don't like feeling like this. Powerlessness is like the worst thing you can go through. Yet here we are wondering what there is to do about this life. Life has an interesting way to let you know you're alive.

I suppose it's that simple. If simple is even the right word to use here. I'm not quite certain.

There are days where this life feels like it's a chore. There's nothing going on that's important, and we are just doing our mundane things in and out. Every day the same thing. It's consistent, I'll give you that, but it can be boring.

Sometimes you just have to go with the crowd and see what happens. There isn't a reason for it not to work out I guess, but well what can you do about it? Not much I'm afraid, not much at all. That's alright though, you have the power within you to survive. That's what's important for the most part.

Friday, March 8, 2024

Ghosts - Halloween 3 - Carol Comes Back

 Okay, Ghosts this week was an interesting one. I hope they don't keep the Carol character around much and she gets sucked off quickly. But if she has to stick around, Pete isn't going to do well with that at all. So, the gist is, Carol died in the kitchen during a Halloween party. So now she's part of the property and can't leave. Poor Pete. I'm not a fan of Carol, let's face it.

And we find that Flower is in the bottom of well. When she was an owl, she must have fallen down there somehow, and poof gone. Or maybe she didn't get sucked off like we thought? She said she's been down in the well for a month and can't get out. So, who knows what's going on with that. I mean she might not have been sucked off at all. Interesting thought process.

Easy Way To Create HTML/XML String

A simple way to create html tags in Java.

It won't create a tree that you can parse, but it will create the text needed. You see we'll use the StringBuilder class along with the Formatter class to accomplish this. This provides a simple way to format a string without using String.format inside of a sb.append call.

import java.util.Formatter;
import java.util.Locale;

public class LocalMe {
    public static void main(String[] args) {

        StringBuilder sb = new StringBuilder();
        Formatter formatter = new Formatter(sb, Locale.ENGLISH);
        formatter.format("<%s>%s</%s>", "greeting", "Hello World", "greeting");
        System.out.println(formatter.toString());

    }
}

Thursday, March 7, 2024

Get Yesterday's Date

Here's an easy method to return yesterday's date:

import java.time.LocalDateTime;

public class DoIt {

    public static void main(String[] args) {
        LocalDateTime yesterday = LocalDateTime.now().minusDays(1);
        System.out.println(yesterday);
    }
}

As you can see it's quite straight forward and simple. You just minus the number of days you wish to get. You can do this on a LocalDate or a LocalDateTime object.

From there you can do whatever you want with your past date.



Tuesday, March 5, 2024

Ever Wonder

 Ever just sit and wonder about the things to wonder about? There are so many things that you can enjoy and think about or wonder about. It's just possible that you would be able to do such a thing. I'm not certain how it would go for you, as I am only a person. I don't know how you feel.

So here we are, just waiting for something amazing to happen. It doesn't happen all the time unfortunately. It can be annoying at best.

Friday, March 1, 2024

You Are Here

 

Oh, how small and insignificant we are! Look at that, each of us are a little spit of dirt that try our best and don't get very far. I mean we think we get pretty far but in the grand scheme of things we are really nothing.

It would be nice to be able to think that I am more than just one person doing their best to get through this life, I don't know how that will be. I mean all of these other people are also trying to get through life as well. You're not alone. You're never alone.

It's kind of a crazy concept to think of how small we are compared to the rest of the cosmos. I mean we are literally the size of an ant compared to everything else. A single piece of sand on the seashore. That's a good example, no? Yeah, that's what I was thinking.

Ever feel like no one is listening?

 Ever have that feeling that no one is listening to you? Yeah, that feeling. It can be a strong feeling to have, a hurtful feeling also. The...