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)
I used to be slightly near-sighted, mostly due to astigmatism. My left eye's distance vision was worse than the right.
I got my first eyeglasses from an optometrist in 2005.
The first pair was completely wrong; they'd made some mistake with the prescription.
The 2nd pair improved my left eye's vision, but made the right eye's distance vision slightly worse.
My close-up vision wasn't a problem; I'd wanted glasses to make my distance vision better so that long distance driving wouldn't give me headaches.

At that point, I no longer trusted optometrists to be able to give me a good prescription.
I ordered a cheap pair of glasses online, with only the Cylinder and Axis parts of the last prescription, and that pair pleased me better.
I still didn't wear the glasses much, even while driving. I don't remember why; maybe my vision was better for a while or I wasn't driving long distances anyway.

Later on, my right eye's near vision got worse, sometimes giving me eyestrain with my computer work.
Wearing my glasses helped, but they improved the clarity of both eyes such that the right eye was still blurrier than the left.
My left eye's vision still felt fine to me without glasses, so to prevent the left-right mismatch I removed the left lens from the glasses.
Wearing a lens only for the right eye made my vision equal in both eyes for reading text on the computer, and I liked it that way.
I still only wore the glasses once in a while, whenever my right eye bothered me.
(My vision has been changeable all along; some days worse than others.)

In 2014, I had continuing vision problems after dealing with several chalazions. It was then I started getting annual eye exams at an ophthamologist.
I still didn't trust their prescriptons much, whether it was due to my vision being so changeable, or their tests being flawed - often I couldn't easily tell which of 2 lenses they were switching back and forth between gave me clearer vision.
Their Rxs from one year to the next were often very different, even in the axis component!

But my old glasses were no longer good enough, so I ordered two new pairs online, one based on the latest eye exam/Rx, and another pair using the Cylinder component of that eye exam but the Axis component of my old glasses.
The latter pair turned out to be better.
Glasses being so relatively cheap to order online, I then ordered a few more pairs with different Cylinder strengths and slightly varying Axis values, to see which would be best.
I printed out a ray chart to help me determine my angles of astigmatism for the best Axis values. I also tested the Axis values by covering one eye and holding a pair of glasses in front of the other eye, and rotating the lens clockwise and anticlockwise. If rotating the lens made my vision better, I knew I had to adjust the Axis value by the same angle I was turning the lens.
I started ordering only glasses with round lenses so that I could turn the lenses to adjust their Axis, if necessary.

With all that, I ended up with a pair I liked. I used it for computer work when my right eye was bothering me which happened most often in the morning. In the afternoons, my eyesight was better, and then I didn't need glasses.

Over the next years, my vision remained changeable. I started to get presbyopia, where my eyes can't focus as well on close-up things. I now often have to wear my glasses for computer work later in the day too, not only in the mornings. My left eye is best for near vision while my right eye is best for distance vision.
I ordered some new glasses for computer work, including a Sphere component for nearly the first time since those two initial unsatisfactory pairs of glasses.

In 2020, I ordered a small "trial lens kit" which is similar to what optometrists use for vision tests. It comes with a bunch of lenses of different strengths. It helps me determine what prescription would be best for new glasses.

One interesting thing is that when I work on my laptop outside in the daytime, I don't need glasses, even when I did just need them when working inside. The greater amount of light outside makes my vision clearer.

A new thing happened today that made me want to write about all this.
My pair of computer glasses make my right eye's close-up vision better.
In the past, whenever I glanced at the TV at the other end of the room, I had to lift the glasses to see the TV clearly. I considered getting bifocals or progressive lenses to avoid that, but decided against it. I simply continue putting the glasses on and off.
But today, the TV *isn't* blurry with the glasses on, and is even slightly clearer with than without them!

It seems like I should be pleased at not having to put my glasses on and off when switching between looking at the laptop and the TV.
But my right eye's vision must have gotten worse for this to be the case. On the bright side, I don't notice any difference in my distance vision with the glasses off compared to before.
darkoshi: (Default)
I was trying to think of a word with a meaning like "visually stifling", as in when your vision is blocked towards the bottom by an too-large cloth face mask and towards the top by a thick warm headband, making you feel trapped like in a nightmare. (I'd been trying on different masks for keeping my face warm while I went for a quick walk before sundown.)

Instead I came across this term, which I hadn't heard of before:

Visual Snow Syndrome
Visual Snow Syndrome is a neurological condition that impacts an individual’s vision, hearing, and quality of life. Patients see flashing lights, flickering dots, and static, which obstruct their visual field 24/7. There is no relief for them, even when their eyes are closed. It causes many other debilitating visual & non-visual symptoms. Once thought to be rare, Visual Snow affects an estimated 2-3% of the world’s population.


I don't have the condition. But these videos about it (as well as the comments) are interesting:

https://www.youtube.com/watch?v=dCoNaIyRJ5w
https://www.youtube.com/watch?v=JStDb4EiYAs
darkoshi: (Default)
Yesterday, I showed Qiao the Right Up Our Alley drone video which I posted about before.

But the drone seemed to be flying so fast this time that it felt disorienting and unreal to me. Too fast for me to see much of the bowling alley or the people in it. I could barely make out the words spoken in the video as they went by so quickly too. Certain that the video wasn't playing correctly, I brought it up on another device, but it had (or seemed to have) the same problem there too.

Later that day I compared the video length displayed in the video to the amount of time it took to play; the numbers matched.

Today I had the idea to play back the video at 0.75 speed, and that way it feels and looks much better to me, like when I watched it the first time, though the audio sounds somewhat distorted at the lower speed. I'm still confused as to why the normal playback seems different to me now than before.

ocular

Saturday, May 11th, 2019 01:37 am
darkoshi: (Default)
I had a weird visual phenomenon this evening.

As I was getting a popsicle out of the freezer, there was a small spot in my vision, like the kind you get after staring at something bright. I didn't think anything of it until I sat down in front of my computer and had trouble reading because of the spot. It was grey and blurry with my eyes open, but bright when I closed my eyes. It occurred to me that I hadn't been staring at anything bright, so what the heck could it be?

The spot was in the center right side of my vision. The edge of the spot was psychedelic, flickering color patterns. Over the course of about 15 minutes, it got larger until it filled almost half of my right eye's vision.

I did a search to find out what it could be.

https://www.ourhealth.com/conditions/eye-conditions/temporary-blind-spots-in-vision

Some of the comments on that page mention high blood pressure, so I got out Q's blood pressure monitor and checked mine. 105 over 65; that is normal for me. By then, the spot had faded away.

From some more that I read, it sounds like it might have been an ocular migraine, without the headache. I haven't had anything like that before. Except one time when I was a kid and I lost my vision for a few minutes while I was waiting for the bus; never could explain that either but I had attributed it possibly to chlorine getting in my eyes as I'd just come from the swimming pool.

Now I'm feeling a bit woozy. Not sure if it's an after-effect of that strange phenomenon, or just because it is late.

update, Saturday afternoon: Today while working in the yard, exerting myself, I had a different visual phenomenon, one which isn't unusual for me. The kind where when I close my eyes, I see dark clouds with bright/silvery linings. That only lasts a few seconds.

bush-cats

Friday, May 19th, 2017 09:30 am
darkoshi: (Default)
There's an "End Road Work" sign across the street which was put up months ago and is still there, even though no road work has been done. At first the sign was taped over with black plastic, but that has since blown away. I suppose they were planning to do some roadwork originally, but it must have been delayed.

Someone put up a small new sign underneath it. I squinted at it through my window to see what it says. "Cats in the Bushes" ?

I looked again. "Cash for Houses"

Hmm. The first version was more interesting.

movie formats

Wednesday, January 1st, 2014 06:48 pm
darkoshi: (Default)
Qiao and I went to see The Hobbit: The Desolation of Smaug movie yesterday, in the IMAX 3D HFR (high-frame-rate) format.

This page explains the different formats that the Hobbit movies are being shown in at different theaters.

We went to see the IMAX version of the movie, as no other theaters in my area were showing the movie in HFR.

My impressions of the movie technology:

1. 3D : Seeing the movie in 3D was neat and worthwhile, although the glasses were annoying (see below).

2. HFR : I can't say whether the HFR part made any difference to my movie experience - I didn't notice any difference in detail from other movies.

3. IMAX...
3a. I wouldn't choose to watch a movie in IMAX next time, unless it was really shot in IMAX. What they call IMAX nowadays pales in comparison to the large curved screens with steep seating that I remember from when I was a kid. Now, IMAX seems to simply mean a taller than usual flat screen, with regular seating.

3b. As this movie wasn't filmed in IMAX, I wonder how they converted it to fit on the IMAX screen - do they crop out part of the picture to make it fit?

3c. The IMAX 3D glasses have one vertically polarized lens and one horizontally polarized lens. My left lens had 3 or 4 annoying streaks of vertical light, apparently reflections from the lights in the room. (Qiao's glasses were the same way, so it's unlikely that I simply had a bad pair of glasses.) Once the lights were darkened for the movie, the streaks weren't as bad, but were still faintly there. From what I've read, non-IMAX 3D movies use circularly polarized lenses, so I assume they wouldn't have this problem. In retrospect, I wonder if me seeing those vertical streaks of light is related to my astigmatism.

December 2025

S M T W T F S
 12345 6
78 910111213
14151617181920
2122 23 24252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Monday, December 29th, 2025 01:57 am
Powered by Dreamwidth Studios