Categories
Uncategorized

finding, not finding, find $PWD

Spotlight

Typically if I need to find a file while my Mac is connected to a network volume, I can easily search that volume using the Finder. This usually works well, and I can find what I need. This doesn’t work at all for the Windows shares I have to use at work.

It’s a full-on Windows environment at work, and everyone has a Windows machine on their desk. I’m the only one who uses a Mac as their primary computer. I do all my own support, which is fine. I just have to find my own workarounds sometimes.

ls -laR

Since I often have to look through one of the Windows shares for old files, I’m stuck browsing since I cannot search, so I originally went into the terminal and did a ls -laR and dumped it to a file so I could easily search for specific files. This sort of worked, but since the listing via ls lists the directory and then all the files in the directory, I had to look at more than a single line of text to find the path to the file I wanted.

find $PWD

I then found the power of combining find with $PWD for find $PWD. This allowed me to list every single file on the Windows share, and dump it all to a file (which is 18MB) that I can easily grep in about a second.

The file’s information isn’t real-time, but I’m typically not looking for new files, but old files that someone else created years ago. I can always refresh my local store every week or so.

If I need to find every Arduino sketch, it’s now as easy as egrep -i '\.ino' ~/WindowsShare.txt

Categories
Uncategorized

The Artist is Dead

The Artist

The Artist has died. The Artist created Art, and gave it to the world, and we still have that Art, but the Artist is gone.

I don’t find jokes about how Artists are worth more dead than alive amusing. Artists contribute to our world in many ways, and while it’s easy to ridicule those who pursue degrees in the Arts, I ask you instead to consider the impact Art has had on your own life.

Artists are performers, actors, musicians, singers, writers, educators, photographers, chefs, directors, designers, filmmakers, inventors, entrepreneurs, and above all, people.

If you’ve enjoyed a movie, or an album, or a book, or a delicious meal, or learning, you may need to thank an Artist.

If you haven’t died because of poorly communicated warnings, or signage that prevented you from danger, you may need to thank an Artist.

Artists create work that makes us happy, and sad, and makes us feel something. Artists create work that people enjoy, that changes lives, that saves lives.

We all contribute to this world in our own way. Nearly all of the Artists I know try to contribute to this world in a positive way. Most of them art not motivated by greed or power, but by the desire to create and share with others.

The world needs more Artists.

Categories
Uncategorized

Knowledge – Ideas – Skills

KIS

I’ve been thinking about this triangle consisting of three elements: Knowledge, Ideas, and Skills, and how people have these three things.

Knowledge is the things that you learn. The bits of data that you collect over the years, either from reading, or experience, or just taking in the world around you.

Skills involve actually doing things. Building things, writing code, designing stuff. Going beyond theories and ideas to create.

Ideas are what you bring to the table. Your own thoughts and dreams, as it were. The spark that ignites the creation of something.

Ideally you’d want to be right in the center, and be equally strong with Knowledge, Ideas, and Skills. Though perhaps as you exist in the center your strength at each one diminishes. Perhaps there are the rare individuals who can excel at all three, but in thinking about people I know (and myself) it’s probably more likely that people hit one or two of them strongly, and a third not as much.

I used to know a guy who was a phenomenal guitar player. His technical skills were amazing, and his knowledge was up there, he knew tons of songs and could play them perfectly. Sadly, his ideas were lacking, and he wasn’t much of a songwriter. Luckily he was in a band (a team) where others could provide the ideas. This is what teams should do, right? Bring together members with different strengths to create something better than what just one person can do.

In my own work (and play) knowledge is something I’m always chasing after. I spend a lot of time reading, and occasionally I ask questions. I tend to make a lot of notes as well, which helps, because I just can’t remember everything. I figure if I can remember where I stored some bit of information, that’s good enough.

And then there’s skills… Acquiring skills takes time, and practice, and doing things over and over again, and applying the knowledge you’ve acquired to the thing you’re trying to do. Design work, using tools, manipulating materials, writing words, capturing images… they all fall under skills.

As for ideas, I have plenty of them, I’m sure some (ok, most) of them are bad, or ridiculous. Often I go with the ridiculous ideas to see where it takes me, and along the way I hone my skills and acquire more knowledge. Occasionally in doing so I create a thing, and I enjoy the process and the journey.

Maybe I should call this the KIS Principle (Knowledge, Ideas, Skills) for short.

Disclaimer: I don’t pretend to know what I’m talking about, and when I write this sort of thing it’s really just an exploration of my thoughts, typed out on the screen. Occasionally I feel like sharing these thoughts with the world.

Categories
Uncategorized

MsgViewer views .msg files

MsgViewer

Occasionally I save an email message from Thunderbird to a file, and when I do that the file has an .eml extension. For those new to this concept, the .eml file extension is usually applied to files in the MIME RFC 822 standard format used by email applications. You can open that .eml file using Thunderbird (which is available on Mac OS X, Windows, and Linux) or using Mail.app on Mac OS X, and I’m sure using many other applications that adhere to the standards. I can even open .eml files in a text editor and easily read the text/plain portion of a multi-part email message.

Unfortunately I recently came across some emails with a .msg extension. It seems that Microsoft Outlook saves emails files to disk as .msg files, which is probably not the MIME RFC 822 standard format, and is some weird format you can’t easily read without Outlook… (It’s actually based on the “Compound File Binary Format” and require a MAPI-aware application to view them.)

Luckily MsgViewer is an application (well, a JAR file) which (as long as you’ve got Java installed) can open these .msg files. You can grab MsgViewer from SourceForge.

And seriously, why does Microsoft do this kind of stuff??

Categories
Uncategorized

*nix is the new *nix

*nix

Hey there… Dan Gillmor moved to Linux and it’s even better than he expected!

As for me, I’ve been using Mac OS X pretty much since it came out, and before that I used System 9, 8, 7, etc… Operating systems created by Apple. I’ve also used FreeBSD in the past (though mainly on servers) and I’ve been using Linux in some form or another for close to 20 years. Along the way I’ve also used Windows, though always for work, never for fun.

I’m going to call out a few things Dan mentions, just so I can comment on them.

…here I am, writing this piece on a laptop computer running the Linux* operating system and LibreOffice Writer, not on a Mac or Windows machine using Microsoft Word. All is well.

Luckily you can use LibreOffice on Mac OS X, Windows, and Linux. You can also use OpenOffice on Mac OS X, Windows, and Linux. And hey, you can also run NeoOffice on Mac OS X (sorry Windows and Linux users) which is what I did years ago before OpenOffice ran on Mac OS X.

This brings up a point I’d like to expand on, that even if you run Mac OS X (or Windows) you can almost always lean towards the open alternative that is available. This might mean LibreOffice instead of Microsoft Office, and it may mean Thunderbird instead of Mail.app, or Firefox instead of Safari.

Other software I use includes jEdit, Arduino, Processing, Fritzing, Inkscape, Audacity, OpenSCAD, and yes… those are all available for Mac OS X, Windows, and Linux. You might also notice that (almost) all of the websites listed end with .org, which is telling.

The applications you use all depend on what you do with a computer, and what you use a computer for. I tend to use computers to make things, and luckily the specific things I like to make fit in well with the software I use.

Some of the applications listed above rely on Java. I’ve always had a love/hate relationship with Java, but it does help a lot of software run on multiple platforms. One of the applications listed relies on an X11, or more specifically, XQuartz. X11.app used to be distributed by Apple, but they abandoned it, but that’s okay because XQuartz exists.

One application I use that is not available for Linux is Evernote. I should say “not officially available”, since there is Nevernote and Geeknote. Yeah, often you can find an unofficial client for Linux that might work.

Of course if your work demands you use specific software, you may not be able to exclusively run Linux. Oh well…

Now…

No one should ever have to open a command-line window and type “sudo apt-get update” or other such instructions.

I tend to cringe when I see things a computer user should never have to do. I mean, if you want to do X, you may have to learn Y, right? Now, personally, great power comes from being able to open a command line window and type commands. It’s not always the easiest thing to do, though sometimes it is the easier thing to do, if you have the knowledge. If you don’t want to open a command line window and type things, chances are good you won’t have to. (But you should anyway, if you really want to harness the power of your computer. As long as it’s running *nix, I mean. Sorry, Windows users!)

And then…

It’s almost certainly too late for Linux to be a hugely popular desktop/laptop operating system, at least in the developed world.

Maybe, I don’t know… I have seen Linux change over the last two decades, and I’m still excited about what I see.

Dan did say “desktop/laptop operating system”, but let’s look elsewhere. Linux is used on servers, and appliances, and things. What do I mean by “things”? Well, every Raspberry Pi project runs Linux. Here’s 400+ projects running Linux. Here’s a few more projects and some tutorials, all using Linux. I even use Linux computers at work (building exhibits) that just play sounds. Using Linux on a Raspberry Pi makes sense for this, and lots of other things.

Anyway, Dan’s post is good (though it’s strange it’s posted on Medium instead of his own web site, because, freedom and all that) and I’d urge anyone who is not familiar with Linux to take a look at it. It’s pretty awesome. So is open source, and freedom, and the command line.