darkoshi: (Default)
Previously when I tried out dark mode for various applications on my laptop, it made text seem less coherent to me, so I didn't use it.

But recently the normal (light) mode started bothering my eyes (they've been getting very tired & dry & achy), so I switched both my work and personal laptops into dark mode in the Windows settings. I've been switching individual applications into dark mode too, where possible.

My spreadsheets have been giving me difficulty. They are LibreOffice Calc ODS files. For whatever reason, most of the text in them is set to black, not "automatic". So when I switch to the "LibreOffice Dark" color scheme, I end up with black text on a black background, impossible to read.

I have many spreadsheet files, with many tabs (sheets) in each file.
There ought to be an easy way, a script, to update multiple spreadsheet files at once to convert all text, current and future, to the "Automatic" color. But I haven't found such a script yet.

Doing it manually involves going it each tab in each file, selecting all the cells, and updating the text color. And then doing something else to change the default for new cells too. I did the first step for two spreadsheets. Then I noticed that text I enter in a row below the last existing row ends up black on black again. That's why I think the 2nd step is required too (and I don't even know how to do that step manually yet).

I asked Gpt4o-mini (via DuckDuckGo) for assistance. It suggested creating a macro, and gave me sample code for the macro. The sample code was giving me an error in the part for finding all ODS files in a specified folder. I worked through that error with Gpt4o-mini's assistance. Now the part for updating each file is giving me an error (probably the first of several). Sigh. I don't want to spend my vacation time trying to code and debug a spreadsheet macro. Debugging the macro isn't as easy as debugging Java code in Eclipse. You can't just select a variable in the code and see all the details for it.

Surely such a macro or script already exists somewhere. I can't be the first person facing this problem.

I get stuck in all these problems. How can i make progress. How can I ever get to sleep at a good time. How can I ever catch up.

UPDATED:
I tried asking Copilot. There were a few issues with the first code it suggested too, but we fixed them. This logic seems to work well to update the text color to "Automatic" in all ODS files in the specified folder:

Sub ChangeTextColorInFolder()
    Dim oDoc As Object
    Dim oSheet As Object
    Dim oCell As Object
    Dim oRange As Object
    Dim oCursor As Object
    Dim sFolderPath As String
    Dim sFileName As String
    Dim i As Integer
    Dim oSimpleFileAccess As Object
    Dim aFiles() As String
    Dim args(0) As New com.sun.star.beans.PropertyValue

    ' Set the folder path
    sFolderPath = "C:\path\to\your\folder\"

    ' Get the SimpleFileAccess service
    oSimpleFileAccess = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")

    ' Get the list of files in the folder
    aFiles = oSimpleFileAccess.getFolderContents(ConvertToURL(sFolderPath), False)

    ' Loop through all the files in the folder
    For i = LBound(aFiles) To UBound(aFiles)
        sFileName = aFiles(i)
        
        ' Check if the file is an ODS file
        If Right(sFileName, 4) = ".ods" Then
            ' Open the ODS file in hidden mode
            args(0).Name = "Hidden"
            args(0).Value = True
            oDoc = StarDesktop.loadComponentFromURL(sFileName, "_blank", 0, args)

            ' Loop through all the sheets in the document
            For Each oSheet In oDoc.Sheets
                ' Get the used range of the sheet
                oCursor = oSheet.createCursor()
                oCursor.gotoEndOfUsedArea(False)
                oRange = oSheet.getCellRangeByPosition(0, 0, oCursor.RangeAddress.EndColumn, oCursor.RangeAddress.EndRow)

                ' Loop through all the cells in the range
                For j = 0 To oRange.Rows.Count - 1
                    For k = 0 To oRange.Columns.Count - 1
                        oCell = oRange.getCellByPosition(k, j)
                        ' Set the text color to Automatic
                        oCell.CharColor = -1
                    Next k
                Next j
            Next oSheet

            ' Modify the default cell style to automatic color
            Dim oStyle As Object
            oStyle = oDoc.StyleFamilies.getByName("CellStyles").getByName("Default")
            oStyle.CharColor = -1

            ' Save and close the document
            oDoc.store()
            oDoc.close(True)
        End If
    Next i

    ' Show a message box to indicate completion
    MsgBox "Macro completed successfully!", 64, "Success"
End Sub



That is for both the first and 2nd steps.
For how to do the 2nd part manually, this answer works:

To ensure that all cells, including those outside the used range, default to Automatic color, you can modify the default cell style in LibreOffice Calc. Here’s how you can do it manually:

Open LibreOffice Calc.
Go to Format > Styles and Formatting (or press F11).
In the Styles and Formatting window, click on the Cell Styles icon (second icon from the left).
Right-click on Default and select Modify.
In the Cell Style dialog, go to the Font Effects tab.
Set the Font Color to Automatic.
Click OK to apply the changes.
darkoshi: (Default)
This year, I took the ornaments off the Christmas tree on May 27. I left the tree up, still enamored with the Twinkle lights on it which can be set to many different color combinations and effects. Today I took the silver garland off the tree branches. I'm still enamored of the lights and won't take the tree down at all this year (possibly the first time ever). It's too late anyway; no point in taking it down now just to put it up again in a few months. In December, maybe I will take it over to Qiao's house for a change.

.

I have watched both the Olympics and the Paralympics opening ceremonies. Both were wonderful. I have the closing ceremonies recorded, ready to watch.

dazzles

Tuesday, December 19th, 2023 11:56 pm
darkoshi: (Default)
This year I bought a set of Twinkly lights for the Christmas tree. Each bulb can be programmed to any color, and the app has bunches of pre-programmed effects to choose from, or you can create your own. I haven't even put any ornaments on the tree yet, and it's already so beautiful!!!

I also installed the latest version of the Foobar2000 music player on my laptop, with the projectM visualizer component, which "reimplements the esteemed Winamp Milkdrop by Geiss". I then connected the laptop via HDMI cable to the big TV, to play the visualizations on the TV. I turned on the whatchamacallit box, to play the TV sound through the external speakers.

It is awesomely beautiful.

Some of the Twinkly effects in the app have a music icon to let the Christmas tree lights flash in rhythm to music/sound picked up by the phone's microphone. But that's only working for me so far in preview mode... I'm very new to this.

Let me see if I can take a video and if Youtube will let me post it in spite of the music in the background.
...
Here we go:



https://www.youtube.com/watch?v=cWDImT75xwg

New "Twinkly" brand lights on Christmas tree (without yet having been "mapped" in the app), and foobar2000 music player with projectM visualizer on computer and TV.
The background music on this video is "Violet Shrine" by Dan O'Connor (DanoSongs.com) (I removed the actual music that was being played by foobar2000 due to copyright).
darkoshi: (Default)
I had a set of Mr Sketch scented markers as a kid. I still have a few of them. When they dry out, I open them from the bottom and drip some water in to rehydrate them. The colors are no longer as bright and strong, but they still have their scents. Black "licorice", dark "green apple", purple "grape", red "cherry", blue "blueberry". I don't have the other colors anymore, but I remember how most of them smelled. Brown cinnamon, pink watermelon, orange, lemon, "raspberry". All except the light blue one shown in those search results. Mango? I don't remember that scent at all. I didn't even remember there being a light blue color. And why mango for blue?

M the 5 year old has been using the markers. The scent of their marks on the paper is still so strong I had to move the papers off this desk. Even though they are 40-ish years old.

Holiday Lights

Saturday, December 31st, 2022 10:38 pm
darkoshi: (Default)
Fireflies Holiday Lights at Segra Stadium (the Fireflies are a local baseball team) - another pretty photo at the link:





A couple of well-lit houses:



darkoshi: (Default)
Today I noticed how similar Puerto Rico's flag is to the Cuban flag. The design looks basically the same except for the red and blue colors being swapped. But the dimensions are also a little different and the shades of the colors may differ:

Puerto Rican flag vs Cuban flag

Flag of Puerto Rico

It is at least easy to remember which is which, due to Puerto Rico's having red and white strips, and a blue background for its star, the same as the U.S. flag.

ruffles

Thursday, June 30th, 2022 03:40 am
darkoshi: (Default)
I found this cute and colorful ruffly skirt at Target in the Pride section (it looks so good on the model on that page!). I passed on by with an admiring glance, but came across another one while browsing for knee shorts. You know, like a sign that I should at least have some fun trying it on. The dressing rooms were already closed. But when I held it up against myself in a mirror, it looked so good together with the contrasting colors of my shirt and socks, that into my cart it went.

I find skirts to be impractical, but ruffly ones are fun.
darkoshi: (Default)
I was wondering, does Rowling get royalties from sales of the official Harry Potter movie soundtracks?

While working in the yard, I cut down these branches which were growing in the wrong place but then felt sorry for them, so took them inside and put them in a vase.



The important plumbing work that I've needed done has finally been done!
It included replacing the bathroom faucet; the new one came in this packaging:



But the cardboard turns out to have a face, so how can I just toss it away with the rest of the recyclables?

Edited to add:
And not only a face, but also floppy ears and its arms held out for a hug; that makes it even harder.

livejournal

Wednesday, March 16th, 2022 05:26 pm
darkoshi: (Default)
Today I again chose to wear my yellow/blue/pink striped socks which I got at the Pride Festival last year. Those are the colors of the pansexual flag. I am asexual, not pansexual, and got the socks mainly because the colors are pretty. Few people around here would know what the colors represent anyway.

Looking down at the socks on my legs, I belatedly realized that the blue and yellow colors are also like Ukraine's flag.

.

I still have my old LiveJournal account. Several years back I imported all my old entries to Dreamwidth and deleted them from over there.

I've considered deleting the account, as I want nothing further to do with a Russian company, given the current government's abominable policies and actions.

But doing that seems like a wasted opportunity to post a message of some kind in an area where people from Russia might actually be able to see it. Perhaps I'd have to turn on Cyrillic services in the settings though, for my posts to be accessible from over there? Hmmm.

I hadn't noticed or remembered this from before, but on the LJ homepage there is a "Top LJ" dropdown which includes entries for: Cyrillic, non-Cyrillic, Russia, Ukraine, Belarus.

It is interesting to browse through those Cyrillic and Ukraine entries, using Google Translate to translate from Russian to English.

It is also wearisome, wondering who is behind each post and all the comments, trying to make sense of some of the translations, trying to figure out what side if any they are on in regards to the war in Ukraine, what nationality they are and in which country do they live, are they being paid to post misinformation, or are they writing what they truly believe based on what they've themselves experienced or based on the news they listen to?

Considering all that which is being posted, I doubt anything I could post would make the slightest impact on anyone, even if they did see it.

warm blue

Thursday, November 18th, 2021 02:01 pm
darkoshi: (Default)
My last working incandescent fairy lights strand. The color faded, more white than blue now. The bulbs get warm when it's plugged in. A hundred little furnaces in glass.

I still remember, about 30 years ago when I first bought them, plugging it in and draping it across my neck, lights adorning me, the warmth against my skin. Lights adorning the room. That room where I used to listen to music, dance, stare into the internet on the glowing computer monitor.

The short wave receiver, receiving signals through the air, sent from the other side of the world.

Compact disks, audio cassettes, the internet delivered over telephone lines.

The electric blue rug from that room is here in this room now.

Per my notes, the strand uses 41 Watts. That's not too bad. Do I keep it? For the physical tangible link back to my memories? Even though I've already replaced it with a strand of bluer blue LEDs?

Lilo & Stitch

Monday, May 17th, 2021 12:46 am
darkoshi: (Default)
It's only been 19 years since it came out, but I've finally watched the Lilo and Stitch movie (I'd wanted to for a long time). I enjoyed it.

I know there are several more movies and a TV series - I saw an episode of the latter once. At this rate it will take me decades to watch the rest, if ever.

.

I went grocery shopping yesterday. When I got home, I realized that all the fruit I bought was orange. Loquats, a papaya, a mango, a satsuma mandarin, apricots.
darkoshi: (Default)
Taken while on a walk last month.



darkoshi: (Default)


Video title: Quilting for the Culture, Bisa Butler
Posted by: Sok.Vision
URL: https://www.youtube.com/watch?v=_P3_61nh3xo
Date posted: Jun 6, 2020





Video title: Textile Artist Makes Beautiful Quilted Portraits | Localish
Posted by: Localish
URL: https://www.youtube.com/watch?v=k15Npcc-b84
Date posted: Mar 17, 2020

no pretty mask

Thursday, November 12th, 2020 01:06 am
darkoshi: (Default)
At Target a few weeks ago, they had a couple of racks near the entrance with cloth face-masks for sale. Not having seen that in a physical store before, I thought it was great and started browsing through them. But all the ones with pretty colors and patterns were for children, child-sized. The ones for adults were bland boring colors.

I saw a school bus drive by today and realized it's been so long since I've seen school buses. Unlike the past, I didn't hear a cacophony of children yelling as it went by. Though I'm not sure if I had the house windows open at the time or not.

My mom stopped by and talked to me on the porch. She had a cloth face mask on which kept slipping down under her nose. So I guess all those people you see on TV and in photos with masks under their noses aren't necessarily, maybe not even mainly, wearing them that way on purpose. Do they sell small clips that people could just snap onto ear loops to make them tighter? Or what else works well for that? On one of mine that was too loose, I sewed the loops tighter. On another I used safety pins. I suppose stapling them might work, if the straps are wide enough.

.

Charleston County Sheriff's Election:
Kristin Graziano won a historic bid to unseat the longtime incumbent, Al Cannon, who has been sheriff in Charleston County since 1988. She is the first woman and first openly gay person elected to serve as a county sheriff in South Carolina.

christmas tree lights

Wednesday, April 22nd, 2020 12:15 am
darkoshi: (Default)
I'm taking the Christmas tree down. I might have kept it up longer, but for the lights having completely gone out. At the start of the season, half of the green and half of another color were already out. But some time after Christmas they all went out, and even after taking them off the tree and jiggling them all around, they still don't work. The controller may have broken. The fuses seem ok.

These lights were the mini-bulb incandescent kind, from K-Mart (I still have the box), called "Magic Lights", with 4 colors (red, yellow, green, blue) and 8 functions (combination, in waves, sequential, slo-glo, chasing / flash, slow fade, twinkle / flash, steady on).

I mostly used the "steady on" mode, but "slo-glo" was also nice. That would cycle through each color individually, slowly fading out one color while fading in another, staying on that color for a little while before fading out to the next.

I'd been wanting to replace the incandescent strand with LEDs anyway. So I bought a multicolor LED strand to replace them. The new strand's description listed the exact same 4 colors and 8 functions as the old one, so I was hopeful it would work the same way. But it doesn't. The new strand always has at least 2 colors on at the same time. Slo-glo simply switches between both sets of 2 colors. Also, the fading in and out is too fast, and the fade-in isn't done at the same time as the fade-out, so there is a moment where all the lights go dark. That is not nearly as smooth and relaxing as slo-glo on the old set was.

Based on videos I found online, it seems possible for LED strands to do slo-glo mode the same way as my old set. They can at least fade in and out in a slow and gradual fashion. But I didn't actually find any multi-color ones for sale along with a video demonstrating all their modes so that one could be certain how they worked.

So I've gone ahead and put the new strand on the tree. (When putting the tree away for storage, I fold the branches in against the trunk, and store it in a "Christmas tree bag" in the attic. I keep the lights on the tree so that setting it up again in December is easier.)

To put the lights on the tree, I first wove the light strand from the center of the tree up one branch on the left side of the branch towards the tip of the branch, and then back down the right side of the branch the same way. I did the whole first bottom level of branches like that. It was quite simple to do it that way; faster than my usual method. But then I determined it didn't look so good that way. Too much visible cord, too many straight lines of cord.

So I started over and did it my old way: wrapping the cord around the branch a few times from the center up towards the tip, and then weaving it back down the right side towards the trunk. It does look better that way. The cord isn't as noticeable as it doesn't have as many straight lines.

However, I ran out of lights before I ran out of tree branches. The top foot of the tree is relatively dark. Both the old and new strands had 300 lights each, but the old one was 112 feet long and the new one is only 105.

Another difference is that the old strand was really 2 strands, both attached to the same controller box. The new one is one long strand.

It occurs to me now that I could get 2 completely different strands in different colors, and put each strand on alternating branches. Then I could have either one, the other, or both sets on at once. I feel like having pink lights at the moment, and orange. But oh well. What is, is. The lights are on the tree now and I'm not taking them off again if I don't have to.

yah yah yah

Friday, May 31st, 2019 09:25 am
darkoshi: (Default)
This is a catchy EDM tune. Such a big concert, so many people. Such beautiful colorful lights! Fireworks!



Video title: Armin van Buuren - Blah Blah Blah (+ Brennan Heart & Toneshifterz Remix) [Live at Tomorrowland 2018]
Posted by: A State Of Trance
Posted on: Jul 24, 2018
URL: https://www.youtube.com/watch?v=45_MVtE5xsI


At first, watching that makes me wistful, wishing I could go to a concert like that. There aren't ever any techno concerts staged around here, that I know of. But then I think, all those crowds, what about when I have to use the bathroom? Having to walk a mile to get to one, and possibly wait an hour to use it? And then I remember the concerts I've been to, much smaller than this one, and how bad the acoustics were. How could the acoustics of a gigantic concert be any better? I think they must have edited the audio on this video to make it sound better, as well as probably having had microphones in better places compared to what the audience would hear. And then I think it's much more enjoyable watching something like that on my computer or TV screen, than it would be in real life. Except not getting the strobe lights flashing and sweeping over you, and not really feeling the excitement of the crowd.

pink house

Monday, December 31st, 2018 02:43 am
darkoshi: (Default)
Pink house, with some kind of tiny house beside it.

https://www.google.com/maps/@31.5799623,-84.1272199,3a,51.6y,213.13h,79.45t/data=!3m6!1e1!3m4!1scjf8cOIopcKJ_Nsnoclu1A!2e0!7i13312!8i6656

I took a photo of that house a couple years ago while we were driving by, on a road trip. At the time, it no longer had those signs on front. I didn't have the address, but with a few other clues, I was able to find it using Google Street View.

lavender

Tuesday, August 7th, 2018 11:20 pm
darkoshi: (Default)
Note to self: Do not wash the purple knit sweater with any light-colored clothes, as it bleeds, a lot.
darkoshi: (Default)
Walking back from checking the mailbox, a car/SUV passed me on the street. It had rainbow changing-color lights on the tire rims and under the chassis, and looked awesome. But it was driving so fast, I didn't get more than that short glimpse of it.

May 2025

S M T W T F S
    123
45678910
11121314151617
1819 202122 2324
25262728 293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sunday, June 8th, 2025 08:56 am
Powered by Dreamwidth Studios