Showing posts with label wine. Show all posts
Showing posts with label wine. Show all posts

Sunday, 14 April 2024

Macbook Air M1

Having acquired a Macbook Air M1 for my birthday, I set about getting Astrolog to run on it under Wine. I succeeded under Linux but it's proving frustrating using the Macintosh operating system running on the newer non-Intel chip. I've had Astrolog running quite happily on my 2013 Macbook Pro when the Mac OS was installed. The error message when trying to get WINE to run the astrolog.exe mentions "bad CPU type" so the newer CPU seems to be the problem.

There is a Macintosh version but it only seems to work in the terminal and produces output as shown in Figure 1. As the documentation says:

The main difference from the Windows version is that it does not offer a Graphical User Interface, and so you will not find a mouse-driven menu system or dialog interface. However, it offers just about everything else. You can even draw temporary squiggles/annotations with your mouse ona chart displayed in X11.

This is clearly of limited use and takes me back to the bad old days of the late 1980s using MS-DOS on a 286 PC.


Figure 1

Of course I could install Virtual Box and run astrolog.exe under Windows proper but it's a lot of trouble to go to for just one program so it's a problem that I'll have to keep working on. Here is what Google's Gemini had to say about the problem when I asked the question:

I have installed WINE on my Macbook Air but it will not run astrolog.exe. I keep getting an error message. Here is what it says. If you can understand it, you're a better man than me (I then copied the entire error message).

The error message you provided indicates an issue with running astrolog.exe using Wine on your Apple Macbook Air with M1 chip. Here's a breakdown of the error and potential solutions:

Understanding the Error: 
"Bad CPU type in executable": This is the core issue. Wine expects a program compiled for a specific CPU architecture (likely x86 for traditional computers). However, your Macbook Air uses an M1 chip with ARM architecture, which is different. Astrolog.exe is likely compiled for x86 and incompatible with your Mac's CPU.

Why Wine Doesn't Work with M1 Macs (for now):

Wine typically translates instructions from Windows programs to work on the underlying system's architecture. However, M1 chips are a significant departure from Intel x86 architecture, and full compatibility with Wine is still under development.

Possible Solutions (Limited)

There are unfortunately no guaranteed solutions to run astrolog.exe directly on your M1 Mac with Wine at this time. Here are some possibilities to consider, but keep in mind their limitations:

Alternative Software: Explore if there are alternative astrology software programs that are native to macOS or have web-based versions.

Crossover (Paid Software): Crossover is a commercial alternative to Wine that attempts to run Windows applications on macOS. It might have better compatibility with M1 Macs than the free Wine version, but there's no guarantee it will work with astrolog.exe specifically.

Virtualization with Windows on ARM (Experimental): There are ongoing efforts to run Windows on ARM processors through virtualization. While Microsoft does offer a limited preview of Windows 11 for ARM on compatible devices, it's still in development and might not be suitable for everyday use yet.

Recommendation:

Since Wine isn't a reliable option for astrolog.exe on your M1 Mac at this point, investigating alternative software or waiting for potential future compatibility improvements in Wine or virtualization solutions might be the best course of action.

Of course, there's paid astrology software for the Mac but I've gotten used to using Astrolog for free over many years and it does all I need it to do. 

Wednesday, 31 August 2022

Charging Issues

It's been a while since my last post but I was out of town for quite some time and did not take my laptop with me. On return however, I noticed that charging cable for my beloved MacBook Pro 2013 was playing up again. After the original, I've replaced the 60W charger twice and the current one is proving troublesome with the little green light not always lighting up unless it's tweaked.

I've ordered and received a new one which I'll keep in reserve as the current one is not too annoying just yet. It will fail eventually of course. It's worth forking out for new chargers as my laptop with Mint LInux installed is running just fine and doing everything that I want it to do. Likewise my Raspberry Pi is fully operational. The advantages of USB C charging are obvious but of course my old laptop does not have such a port and so I'm stuck. The quality of the chargers I'm buying is clearly suspect but they're cheap and work for a while at least. 

Speaking of my Raspberry Pi, I've discovered that I can listen to music via headphone jack to a USB C and then to USB 3.1 as shown in Figure 1. It's a necessary workaround because I can't get Bluetooth to function and there is no headphone jack, for some mysterious reason. Previously I'd been using the headphone jack on a USB C hub but I've given that to my granddaughter so I had to come up with a workaround.


Figure 1

I still can't get WINE to run and that's something that I'll have to keep working on if I ever want to get my astrology program, Astrolog, to work again.

Wednesday, 6 April 2022

Ubuntu Upgrade

Maybe it was changing from the main server to an Indonesian server that finally enabled me to begin the upgrade from Ubuntu 20.04 to 21.10. Figure 1 shows the early stages of the upgrade process. Let's hope that this upgrade will resolve some of my problems but knowing Ubuntu I'll probably a whole new set of problems. In terms of hardware, my only persistent issue is that the webcam on my 2013 MacBook Pro isn't functioning. Sporadically however, as I've mentioned in previous posts, the mouse, trackpad and keyboard all freeze. Software-wise, there are many issues: few installations proceed smoothly but I would have to single out WINE and Flatpak as being especially troublesome.


Figure 1

After a few hiccups, Ubuntu 21.10 has been installed and so far so good. Flatpak, Stacer, Calibre, Wine and Astrolog have all been successfully installed. I must say that Flatpak, once it's up and running, makes software installation very easy. You need to remember however, to log out and then log back in again in order to see the programs that you've installed. It took me a while to realise that.

I've also managed to install SageMath which I'm quite happy about. Figure 2 shows a screenshot of my first use of it. However, just as I was getting excited, the whole system froze again and I had to reboot. I suspect the problem may arise when I have too many tabs open. The poor old laptop's fan was working hard and I had many tabs open when disaster struck. I need to close down tabs and applications that I'm not using. The freeze may be the result of overheating but I need to investigate further.


Figure 2

I should keep a log of these freezes in an effort to discern any patterns.

Tuesday, 8 January 2019

Chess: A Personal History

I've just finished reading "The Immortal Game" by David Shenk. It's a brief history of chess set against the backdrop of the so-called Immortal Game played on June 21st  1851 in London between Adolf Anderssen (White), a famous player and informal world champion of the mid-19th century, and Lionel Kieseritzky (Black), another strong player of the day. It's an interesting approach: drip feeding the moves to the reader over the course of the various chapters while at the same time expatiating upon the historical, psychological and cultural aspects of chess in general.

A brief discussion of the moves involved in this famous game can be found on WikiBooks. Unfortunately for Kieseritzky, he died not long after playing this game. To quote from the book:
Kieseritzky ... would forever carry the moniker “Immortal Loser.” Upon returning home to Paris ... he was soon forced to fold his failing chess magazine as he struggled with his finances and his health. He died in a Paris mental hospital in 1853, just two years after his loss in the Immortal Game. He had no money to his name. No one in the chess world contributed to give Kieseritzky a decent burial. No one stood by his grave.
This got me thinking about my own chess history and I've chosen to document a little of my story here. Oddly, the story begins with my father when I was about eleven years of age. One day he decided that we should learn to play chess. I was agreeable. We went off in search of a former boarder in our house who was now living elsewhere but whom we remembered as having been a keen chess player. I can clearly remember him playing, some years before, against an opponent who was a boarder at my maternal grandparents' house. This would have been my earliest memory of a chess game.

My father and I never did find our former boarder. He had moved elsewhere. Regarding that other boarder who was English, he later returned to Britain but revisited Australia years later with an Irish bride in tow. By this time, I had learned to play chess and we played several games together when I was in my mid-teens. Back to the beginning and not long after our failed attempt to find the boarder, I somehow acquired a small fold-up chess set with magnetic pieces that included instructions as to how to move and thus I learned the basics of the game from this. My relationship with my father was never close and only worsened in my teenage years and I don't think he ever learned to play.

I can't remember the exact chronology but around 1964, the year that I was in Grade 10 of high school, I started to take the game very seriously. I purchased several books, amongst the first was Irving Chernev's "Logical Chess" of which I still have a physical copy. It's one of the very few books to survive from my youth. Up until the composition of this post, I'd not been able to find an electronic version of the book but happily I have now obtained one. It's been converted into algebraic notation whereas the original edition that I had used descriptive chess notation (P-K4 etc.). The latter was the most widely used notation in the 1960's and I found it quite difficult to adapt to the algebraic notation that came to dominant in the 1970's. It's as if my brain had been hard-wired with the classical notation but the algebraic to me lacked "magic". I felt there was something magical about 1. P-K4 whereas I felt nothing for 1. e4. Strange, I know, but there you have it.

There has been some criticism of Chernev's book in later years (read these forum comments on chess.com) but to me, at the time, it was a wonderful book and I pored over it in an effort to improve the quality of my play. My best friend at school also became interested in the game and during our remaining high school years we played a great many games. I subscribed to a chess magazine (the name of which eludes me) and I read other chess books including Lasker's "Common Sense in Chess" and "My System" by Aron Nimzowitsch. This was an exciting time for chess. Bobby Fischer's star was on the rise and the supremacy of the Soviet chess machine was being challenged.

Grandmaster Yuri Averbakh
During my year at University (1967), I remember watching a simultaneous exhibition by the well-known Russian grandmaster Yuri Averbakh. This was my first ever time seeing a grandmaster in action. He is still alive believe it or not, aged 96. I've included a photo of him here in his prime rather than one of him as he now looks. My friend from school also attended University but he was beginning to show signs of the paranoid schizophrenia that would overwhelm him in the early years of the next decade. His interest in chess was declining and I guess my initial enthusiasm had faded as well. I did play correspondence chess on and off for a couple of years in the early 70's which was quite tedious because a letter needed to be posted for each move. For most of the decade however, I just played in a desultory fashion.

For some reason, in the early 80's I joined a local chess club and enjoyed a brief flush of fame when our team headed off one evening to play a rival team. The team size was eight as I recall and we were comprehensively beaten 1.5 to 6.5 with all players beaten except for me, who secured a win with the white pieces playing a Ruy Lopez, and another team member who managed a draw. Not longer after that I headed off with my family to Britain and while travelling around there, my interest in the game was rekindled. I remember buying a copy of Reuben Fine's "Basic Chess Endings" and studying it very enthusiastically.

What I lacked over the years since my schooldays was a regular opponent and it was only between 1985 and 1987 that I become friends with a German guy who enjoyed chess and Stratego. On many Friday nights during that time, I would drop by his unit and we would enjoy wine and nibbles while playing firstly a few games of Chess before finishing up with a game of Stratego. I remember he bought what must have been at the time one of the first electronic devices capable of playing chess. I knew that the limitations of such devices were most glaring in the end game and so, on the few occasions that I played it, I usually managed to win by simplifying as quickly as possible into an advantageous end game. However, I much preferred my human antagonist and I have fond memories of that period and all the wine-sodden games that we played together.


At various times during my high school teaching career I've supervised school chess teams but that usually involved driving the students to the opposing team's venue or hosting the opposing team at our school. The students who signed up for the team could already play and I didn't really spend much time teaching them about chess. With the advent of computers and later smartphones, I played many desultory games against my electronic adversaries but it was only after retiring in 2015 that I found I had a lot of spare time and my enthusiasm for chess was rekindled. I became aware of the extensive resources available online for playing chess, improving one's level of play and just finding out more about the game in general. An interest in learning about the personalities and styles of the leading players of the day had characterised my early association with chess and now more than 50 years later, that same interest had been rekindled. I've come full circle.