Category Archives: Tech

Antranig Vartanian

December 22, 2022

Screenshot 2022 12 22 at 3 30 47 PM

Could this be a timezone math issue? No wait, I think it’s just bad written software issue!

Personally, I would prefer if it said “Currently doing XYZ” and ideally if it just printed the output of ^T (SIGINFO) somewhere in the window.

Reply via email.

Software Review: #MarsEdit version 5

I haven’t done anything like this before, so please, be gentle 🙂

I first heard of MarsEdit when I was browsing Gruber’s website and I saw it listed in his Essential Apps. At the time I was using Hugo as my “content manager” for my blog, so I moved on. Fast forward a year-or-two, I migrated to WordPress.

A week-or-so ago Gruber blogged about MarsEdit 5.0, so I decided to give it a go.

After 10 days of using it, here is my feedback.

First Impressions

I downloaded the app from Red Sweater Software’s website, at the time I didn’t know that it was also available on the App Store. A simple Zip file which contained the App, I moved it to the application folder and I started it.

Right from the start, it asks you two simple questions: Your blog’s name and the address.

I entered my Armenian blog’s name “Ազատութիւն Ամենեցուն” and address “անդրանիկ.հայ”. As you have noticed, it’s a unicode domain 🙂 This info will be important later.

MarsEdit automatically figured that I’m running WordPress and that it should use the WordPress API!

The interface is nice and intuitive. At first, you will see information about your blog, It’s made of two “parts”

SCR 20221219 kng

At the top is list of your posts and pages
At the bottom is a live preview of your selected page/post

The live preview doesn’t actually fetch things from your server, instead, you can have a template. Luckily, you can edit the preview settings and download your template. Unfortunately, there was (is?) a bug and MarsEdit was not able to download the template of my blog. First thing that came to my mind “I’m using a unicode domain, that might be the issue!” and turns out I was right. As soon as I added my English blog with its domain (the one that you’re reading right now!) the “Download Template…” button worked like a charm!

Screenshot 2022 12 19 at 3 09 40 PM

The Editor

This is, easily, the best editor I’ve seen for blogging.

SCR 20221219 lbx

You start with selecting your blog (1) and the post type (2), you can give your post a title (3), but turns out that’s not mandatory at all. As you start typing in the input box (4), you will notice the toolbar at the top (5), which has the basic formatting buttons such as Bold, Italic, Underline. There’s “adding a link” and paragraph formatting. For example —

This is a plain paragraph style

This is a quoted paragraph style

And this is a preformatted paragraph style

Depending on your theme, it will look different in preview/website and in the editor.

You can (and should!) also add tags (6), which MarsEdit will autocomplete while typing and select Categories (7). There is also the option to specify a “Featured Image”, I’ve never used this in MarsEdit nor in the WordPress editor, so no comments from me!

Finally, you can specify the server settings (9), such as the status of the post (Published, Draft, etc), Password protection, author (I actually DO run a multi-author blog!), comments and TraceBacks!

But the most impressive feature for me is the ability to save things locally, hence the Edited (10) at the title bar! I’m mostly on the move (well, not these day, it’s cold outside), while I don’t travel a lot, I do have daily work-things, such as going to a government office, a bank, a notary office, etc., which means I’m either commuting or waiting for my turn. While I have a mobile internet with me, we all know how old buildings are not built for the wireless era, so it amazes for me that I can just ⌘S and save my post locally to continue later.

All the local drafts are available in the… Local Drafts 😅

SCR 20221219 o9p

Amazing Niceties

The first nicety that I noticed was in the editor and it’s called “Typewriter Scrolling”. It does exactly what it says. The input box’s cursor will always be at the middle of the editor.

Screenshot 2022 12 19 at 5 33 31 PM

The second nicety is that everything is customizable, and I mean everything! For example, I blog a lot with coding samples, so I need a code tag. All I had to do was to go to Format → Customize… and I was able to create a new HTML tag for my code formatted text. Like this:
uname -a

And the final nicety that I noticed was the editor’s integration with TimeMachine-style restore points. I wish if every software had a feature like this!

Screenshot 2022 12 19 at 5 51 33 PM

Common (Personal?) Issues

I wasn’t planning on writing this review, at all, but since I wanted to try out MarsEdit before purchasing it, I wanted to use it intensively. In the last two weeks we had a Capture The Flag hacking competition and an Armenian InfoSec conference, so I blogged every details of these two events using MarsEdit. Actually, I was an organizer of the CTF competition, so I used MarsEdit to blog about everything from server installation, platform setup to “the food is here!” status updates 😄

That’s where I had my first issue! I set the Paragraph Style to Preformatted and I pasted some code, here’s how it looked like, if the code was multi-line;

Screenshot 2022 12 19 at 5 59 09 PM

It took me a while to realize, that I had to 1) set the Paragraph Style to Preformatted 2) Paste the code by doing Edit → Paste HTML Source. I’m not sure if this is an issue with my theme or not, but in case you get a similar issue, that’s how to solve it! Now, the code looks perfect 😇

Screenshot 2022 12 19 at 6 02 30 PM

The only other issue that I had was with the microposting feature, which is new in MarsEdit 5. It looks like a “status update” on Twitter or Mastodon.

Screenshot 2022 12 19 at 6 05 42 PM

When I first used this on MarsEdit 5, MarsEdit crashed. So finally, I’d like to talk about how

Daniel Jalkut is Amazing!

Like I said, I used MarsEdit 5 as soon as it came out, and the “New Micropost” feature crashed every time. Just 6 days after its initial release, Daniel released MarsEdit 5.0.1 which fixes the Micropost issue that I was having.

Finally, I send an email to Daniel saying

Greetings Daniel! how are you?

Looks like that MarsEdit is not crashing after upgrading to Version 5.0.1 (10611), however, a small question (feature request?):

In MarsEdit -> File -> New Post, I can set the Kind (Post Format) to Post, Aside, Status, etc.

I was wondering if there was a built-in way to make sure that my micro-posts are always set to Status? Microposts with no title look silly on WordPress, but in Status mode they look like a twitter/social-media status update!

I was wondering if I can implement that by using the Custom Fields tab in Blog Preferences.

Let me know!

Daniel replied to me just an hour later saying

Hi Antranig – this is a great idea and I’ll try to get it added as a preference ASAP. I’ll let you know when I have it in there!

Daniel

Conclusion

MarsEdit 5 is amazing. Currently it costs $59.95 for a Single User license and $89.95 for a Family Pack license (5 people in a private household), and let me tell you, it’s totally worth it!

MarsEdit 5 is my Christmas gift to myself.

If you are also a blogger who uses one of the platforms that MarsEdit supports (WordPress, Micro.blog, Tumblr, TypePad, Movable Type, and any blog that supports a standard MetaWeblog or AtomPub interface) and don’t want to open your browser every time an idea comes to your mind, then MarsEdit is for you.

P.S. WordPress’s Block Editor is also amazing. The WordPress team has done an amazing work with Gutenberg. And while I’ll be using MarsEdit for my personal blogs while writing from my Mac, Gutenberg has been amazing with my other WordPress blogs while writing from my FreeBSD laptop! Give that a try too! 😉

Reply via email.

Antranig Vartanian

December 17, 2022

Screenshot 2022 12 17 at 2 11 51 PM

You know software is written really well when it’s able to use all cores as needed, properly.

I keep getting impressed with what ffmpeg can do.

Reply via email.

Antranig Vartanian

December 16, 2022

Well, it time to do upgrades on my server. expect this blog will be offline for a while as well.

How long were we up anyway?

root@pingvinashen:~ # uptime 
 9:41PM  up 270 days, 18:36, 4 users, load averages: 0.15, 0.36, 0.38

Not bad, huh?

See you soon!

Reply via email.

FreeBSD arm64.aarch64 on QEMU/UTM with better (but not perfect) graphics

A week ago I posted about Running arm64.aarch64 FreeBSD on QEMU/UTM.app on Apple Silicon, and looks like

  1. Many people liked that post
  2. Everyone asked about running graphics (Xorg)

It took me a while but in the end it was, again, a simple change.

All you have to do is to add this single line to /boot/loader.conf

efi_max_resolution="1920x1080"

Now, QEMU’s display will not be 1080p, but it will be the following

VT(efifb): resolution 1024x768

Here are some screenshots

Here’s also Firefox doing an HTML5 test. As you can see, it passed the exam!

However, I’d like to get more resolution out of this. If you know how, please let me know.

That’s all folks…

Reply via email.

Running arm64.aarch64 FreeBSD on QEMU/UTM.app on Apple Silicon

Around a year ago I got an M1 MacBook Air for work. At this point, a lot of people that I know use these Apple Silicon machines.

While my personal machine is running FreeBSD, many times I’ve been in a situation where I need to run FreeBSD on my M1 MacBook Air, at least as a Virtual Machine.

For 9 months I’ve been running the AMD64 version of FreeBSD on QEMU/UTM.app using emulation. It gets the job done.

But whenever I want to do FreeBSD development, I need a fast machine. While M1 is pretty fast, VM emulation is still slow.

The problem is that whenever I booted the arm64.aarch64 FreeBSD on QEMU, it would use so much CPU on the host, that my battery would die in an hour or so.

After a lot of searching, I finally found this, this and this, which eventually got me to this page on the handbook

1. Set Boot Loader Variables
The most important step is to reduce the kern.hz tunable to reduce the CPU utilization of FreeBSD under the Parallels environment. This is accomplished by adding the following line to /boot/loader.conf:

kern.hz=100

Without this setting, an idle FreeBSD Parallels guest will use roughly 15% of the CPU of a single processor iMac®. After this change the usage will be closer to 5%.

Configuring FreeBSD on Parallels

So I tried that, and here you go!

Ahh, finally, I can do some work.

That’s all folks…

Reply via email.

DND IRL

What does modern macOS and old-school Instant Messaging systems (like AIM or Pidgin) have in common?

They both support “Status”, you know, that thing we had in IMs, where you can set yourself to “Do Not Disturb” and your avatar becomes red.

macOS, as always, does not call that “Status”, instead they call is “Focus”, but it gets the job done.

So yes, I’d like an IRL (In Real Life) version of DND (Do Not Disturb). Maybe my ears should turn red, but most people would confuse it with some other emotions.

That’s all folks…

Reply via email.

Bookmarklets are amazing, still

I don’t remember the first bookmarklet that I’ve used, but as far as I can tell, I’ve never stopped using them.

One of the nicest things of WordPress on iOS is that I can use 3D touch to write a post instantly.

Yet, somehow, I’ve been using a typical bookmark on my computer. So I’d click on the bookmark, which would open my WordPress instance, then I’d click on Add New Post.

Even if I had the Add New Post page bookmarked, it would be “somewhere” on my screen.

But with a bookmarklet, I can make it a popup, which usually would center, and there would be no distractions as well. Just content.

I’ve been running my own instance of Lobsters for a while (at letstalk.netter.am) and one of the niceties is Lobsters’ bookmarklet to submit links.

I realized that I should use a bookmarklet for writing posts as well.

So here it goes.

javascript:{window.open("https://your.wordpress.blog/wp-admin/post-new.php", "NewPost", "popup");void(0)}

And just like that, I can write a new post instantly, as I did right now 🙂

Technically, the first argument can be any URL that you wanna have front and center. Hope this helps you to write/blog/tweet more.

That’s all folks…

Reply via email.

iOS ships Dvorak, finally

I’m a huge fan of the Dvorak keyboard layout, but if there’s one thing I love more than “Evolved vs Engineered” solution debates, is that nothing wins the ”standardized” debate.

That being said, the main reason I never moved to Dvorak properly was always a device not having a proper keyboard. Sometimes it was my Android phone with a weird ROM, but most of times it was my iPhone.

However, I just learned that Apple shipped the Dvorak layout with iOS 16.

Here’s Lilith‘s iPhone running iOS 15

And here’s my iPhone running iOS 16

And I’ve gotta say, it’s not bad at all

That’s all folks…

Reply via email.

Antranig Vartanian

September 23, 2022

I’m running two VMs on my M1 MacBook Air. An x86_64 FreeBSD and x86_64 LureOS (illuria‘s OS), both are emulated.

and yet, somehow, according to macOS, my browser is Using Significant Energy.

To be honest, I believe macOS, but the real question is, how did we get to a place where a piece of software is consuming more power than a complete Operating System?

Reply via email.