<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mac on Arcanelab Blog</title><link>https://blog.arcanelab.com/tags/mac/</link><description>Recent content in Mac on Arcanelab Blog</description><generator>Hugo</generator><language>en-US</language><copyright>Zoltán Majoros</copyright><lastBuildDate>Wed, 08 Feb 2023 14:15:00 +0100</lastBuildDate><atom:link href="https://blog.arcanelab.com/tags/mac/index.xml" rel="self" type="application/rss+xml"/><item><title>Compressing PDFs on Macs Let’s say you have a pdf file with large embedded images in…</title><link>https://blog.arcanelab.com/2023/02/compressing-pdfs-on-macs-lets-say-you-have-a-pdf-file-with/</link><pubDate>Wed, 08 Feb 2023 14:15:00 +0100</pubDate><guid>https://blog.arcanelab.com/2023/02/compressing-pdfs-on-macs-lets-say-you-have-a-pdf-file-with/</guid><description>&lt;h1&gt;Compressing PDFs on Macs&lt;/h1&gt;
&lt;p&gt;Let&amp;rsquo;s say you have a pdf file with large embedded images in it and you’d like to reduce the filesize a bit, here’s how to do it using the command line.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install ghostscript via Homebrew:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;brew install gs&lt;/code&gt;&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Create a shell script, let&amp;rsquo;s call it &lt;code&gt;pdf2smol&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash

if [ -z "$1" ]; then
 echo "Usage: pdf2smol input.pdf [output.pdf] [resolution (default: 150)]"
 exit
fi

if [ -z "$2" ]; then
 output="output.pdf"
else
 output=$2
fi

if [ -z "$3" ]; then
 resolution=150
else
 resolution=$3
fi

set -x

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \
-dNOPAUSE -dBATCH -dColorImageResolution=$resolution \
-sOutputFile="$output" "$1"
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>mologie/NVWebDriverLibValFix</title><link>https://blog.arcanelab.com/2019/02/mologie-nvwebdriverlibvalfix/</link><pubDate>Thu, 07 Feb 2019 21:58:00 +0100</pubDate><guid>https://blog.arcanelab.com/2019/02/mologie-nvwebdriverlibvalfix/</guid><description/></item><item><title>Loading Unity Projects with Visual Studio for Mac Sometimes Visual Studio for Mac…</title><link>https://blog.arcanelab.com/2019/02/loading-unity-projects-with-visual-studio-for-mac-sometimes/</link><pubDate>Sun, 03 Feb 2019 01:43:00 +0100</pubDate><guid>https://blog.arcanelab.com/2019/02/loading-unity-projects-with-visual-studio-for-mac-sometimes/</guid><description>&lt;h1&gt;Loading Unity Projects with Visual Studio for Mac&lt;/h1&gt;
&lt;p&gt;Sometimes Visual Studio for Mac won’t open the project solution files generated by Unity. You are greeted with the following error message: &lt;code&gt;Unknown solution item type: {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1}&lt;/code&gt; The problem is that the solution file contains a GUID that the VS won’t recognize. To solve it, open the Extensions in Visual Studio, then under “Game Development” enable “Visual Studio for Mac Tools for Unity”. That should solve it.&lt;/p&gt;</description></item><item><title>atMonitor</title><link>https://blog.arcanelab.com/2011/12/atmonitor/</link><pubDate>Sat, 10 Dec 2011 08:01:00 +0100</pubDate><guid>https://blog.arcanelab.com/2011/12/atmonitor/</guid><description/></item><item><title>Quick Look source code preview &amp; syntax highlighting on Mac Without much rambling, a…</title><link>https://blog.arcanelab.com/2010/09/quick-look-source-code-preview-syntax-highlighting-on-mac/</link><pubDate>Tue, 07 Sep 2010 14:15:00 +0200</pubDate><guid>https://blog.arcanelab.com/2010/09/quick-look-source-code-preview-syntax-highlighting-on-mac/</guid><description>&lt;h1&gt;Quick Look source code preview &amp; syntax highlighting on Mac&lt;/h1&gt;
&lt;p&gt;Without much rambling, a solution for the problem presented in the title: &lt;a href="http://code.google.com/p/qlcolorcode/"&gt;http://code.google.com/p/qlcolorcode/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To change the color style (theme), use the following command:&lt;/p&gt;
&lt;pre&gt;defaults write org.n8gray.QLColorCode hlTheme [theme name]&lt;/pre&gt;
&lt;p&gt;Where [theme name] can be:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;acid, bipolar, blacknblue, bright, contrast, darkblue, darkness, desert, easter, emacs, golden, greenlcd, ide-anjuta, ide-codewarrior, ide-devcpp, ide-eclipse, ide-kdev, ide-msvcpp, ide-xcode, kwrite, lucretia, matlab, moe, navy, nedit, neon, night, orion, pablo, peachpuff, print, rand01, seashell, slateGreen, the, typical, vampire, vim-dark, vim, whitengrey, zellner&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>