<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Computer Problems on yozy//NET</title>
    <link>https://yozy.net/tags/computer-problems/</link>
    <description>Recent content in Computer Problems on yozy//NET</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 26 Jan 2018 10:20:00 +0100</lastBuildDate>
    <atom:link href="https://yozy.net/tags/computer-problems/feed.xml" rel="self" type="application/rss" />
    <item>
      <title>Zoom out any page on mobile Safari</title>
      <link>https://yozy.net/2018/01/zoom-out-any-page-on-mobile-safari/</link>
      <pubDate>Fri, 26 Jan 2018 10:20:00 +0100</pubDate>
      <guid>https://yozy.net/2018/01/zoom-out-any-page-on-mobile-safari/</guid>
      <description>&lt;p&gt;Just now I wanted to publish a new version of my app to testers. This is to be done on the iTunes connect website. I only had my phone, but according to Steve &amp;ldquo;iOS has full web experience&amp;rdquo; so this should not be a problem.&lt;/p&gt;&#xA;&lt;p&gt;However, iTunes connect does not work exactly well on mobile. This is because the zoom level of the page is fixed on the &amp;ldquo;background&amp;rdquo; while the dialogs are in front. The result is that the button &lt;em&gt;Submit&lt;/em&gt; is inaccessible.&lt;/p&gt;&#xA;&lt;p&gt;After some amount of looking for a solution I have found several bookmarklets that should unlock the zoom. None of them worked. So I made my own solution.&lt;/p&gt;&#xA;&lt;p&gt;Bookmark this page in Safari and change its URL to this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;javascript&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;kd&#34;&gt;function&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(){&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;document&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;getElementsByTagName&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;body&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)[&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;].&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;style&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;zoom&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;0.5&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;})()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then, on a page which has elements outside of the viewport, launch the bookmark from the bookmark menu. The page will be twice as small, but more of it will fit!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Parallels 12 and Windows 7 Slow Cursor</title>
      <link>https://yozy.net/2017/11/parallels-12-and-windows-7-slow-cursor/</link>
      <pubDate>Wed, 22 Nov 2017 11:41:09 +0100</pubDate>
      <guid>https://yozy.net/2017/11/parallels-12-and-windows-7-slow-cursor/</guid>
      <description>&lt;p&gt;After updating my macOS, Parallels 12 has broken loading a VM from the&#xA;Bootcamp partition. This has forced me to use my Windows 7 virtual machine&#xA;and I have discovered a weird problem:&lt;/p&gt;&#xA;&lt;p&gt;The mouse cursor inside the virtual machine is really slow if an&#xA;application is loading something or doing some activity.&lt;/p&gt;&#xA;&lt;p&gt;At first I thought this was because the machine was hogged, but the&#xA;problem is actually simpler than that: &lt;em&gt;Windows 7, in Parallels 12, is&#xA;really &lt;strong&gt;slow&lt;/strong&gt; when rendering an animated cursor&lt;/em&gt;. I have changed my&#xA;cursor theme to an old non-aero one and everything is fine now.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>MiKTeX 2.9 and Windows 10 package installation woes</title>
      <link>https://yozy.net/2017/08/miktex-2.9-and-windows-10-package-installation-woes/</link>
      <pubDate>Wed, 02 Aug 2017 15:42:08 +0000</pubDate>
      <guid>https://yozy.net/2017/08/miktex-2.9-and-windows-10-package-installation-woes/</guid>
      <description>&lt;p&gt;Today my MiKTeX installation stopped installing packages on the fly. After trying to install packages through Package Manager I found out that this did not work either. The error that I have obtained is this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;The executed process did not succeed.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;fileName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;C:\Program Files (x86)\MiKTeX 2.9\MiKTeX\bin\initexmf.exe&amp;#34;&lt;/span&gt;, &lt;span class=&#34;nv&#34;&gt;arguments&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34; --mklinks --mkmaps&amp;#34;&lt;/span&gt;, &lt;span class=&#34;nv&#34;&gt;exitCode&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;1&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I googled around and found out that this might be a problem with the installation folder not being accessible and the suggested solution was to install MiKTeX somewhere else (or just for the local user). This was not an option for me as a toolchain that does not depend only on me requires the latex binary to be in the default folder.&lt;/p&gt;&#xA;&lt;p&gt;My solution was to go to the &lt;code&gt;C:\Program Files (x86)\MiKTeX 2.9&lt;/code&gt; folder properties and changing the &lt;strong&gt;Users&lt;/strong&gt; permissions to &lt;strong&gt;Full Control&lt;/strong&gt;. Not extremely secure but at least now I can build my documentation.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>A bookmarklet to make a stretched article readable</title>
      <link>https://yozy.net/2013/07/a-bookmarklet-to-make-a-stretched-article-readable/</link>
      <pubDate>Tue, 09 Jul 2013 11:21:33 +0000</pubDate>
      <guid>https://yozy.net/2013/07/a-bookmarklet-to-make-a-stretched-article-readable/</guid>
      <description>&lt;p&gt;There are many tools like &lt;a href=&#34;http://www.readability.com/&#34;&gt;Readability&lt;/a&gt; or &lt;a href=&#34;http://evernote.com/clearly/&#34;&gt;Evernote Clearly&lt;/a&gt; to make any&#xA;arbitrary article readable and they are very good at their job.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes however you do not want to get rid of all of the formatting and&#xA;sometimes they simply just do not work, e.g., on web forums.&lt;/p&gt;&#xA;&lt;p&gt;One thing you can find all over the Internet is pages stretched from side to&#xA;side, and they are all but readable on larger screens. Of course with&#xA;responsive design you can just resize your browser but that is not what you&#xA;want to do all of the time.&lt;/p&gt;&#xA;&lt;p&gt;Here is a handy bookmarklet that will &amp;lsquo;columnize&amp;rsquo; any webpage:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;javascript&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;document&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;getElementsByTagName&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;body&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)[&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;];&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;style&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;width&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;11in&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;style&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;margin&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;0 auto&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;void&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enjoy&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>US Extended layout for Mac with switched `/~ and §/± keys</title>
      <link>https://yozy.net/2012/10/us-extended-layout-for-mac-with-switched-/~-and-/-keys/</link>
      <pubDate>Thu, 18 Oct 2012 23:02:03 +0000</pubDate>
      <guid>https://yozy.net/2012/10/us-extended-layout-for-mac-with-switched-/~-and-/-keys/</guid>
      <description>&lt;p&gt;The Mac keyboard layout is weird. Some choices Apple made when designing it are&#xA;good but some of them really come from outer space. Why would anybody need a ±&#xA;symbol on his keyboard is beyond me. Luckily Ukelele software provides an&#xA;acceptable solution.&lt;/p&gt;&#xA;&lt;p&gt;Personally I use U.S. Extended layout for almost everything. The only time I&#xA;switch is when I have a very lengthy french text to write. (Speaking of which,&#xA;why does french layout have a  character directly on the keyboard? Just how&#xA;often would anybody use that?). So, in order to keep the layout consistent with&#xA;other keyboards I have made a U.S. Extended+ version which changes flips the&#xA;&lt;strong&gt;§±&lt;/strong&gt; and &lt;strong&gt;`~&lt;/strong&gt; keys around.&lt;/p&gt;&#xA;&lt;p&gt;Download it here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://yozy.net/files/downloads/USExtended+.zip&#34; title=&#34;USExtended+ keyboard layout&#34;&gt;USExtended+&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Fix the home and end keys in Firefox with Keyconfig and Vimperator</title>
      <link>https://yozy.net/2012/04/fix-the-home-and-end-keys-in-firefox-with-keyconfig-and-vimperator/</link>
      <pubDate>Wed, 25 Apr 2012 11:12:58 +0000</pubDate>
      <guid>https://yozy.net/2012/04/fix-the-home-and-end-keys-in-firefox-with-keyconfig-and-vimperator/</guid>
      <description>&lt;p&gt;Somme funny man thought that it would be good to screw up the behavior of home&#xA;and end keys in firefox on Mac. Nobody knows why and everybody is complaining.&#xA;Also, the same genius have made the &lt;em&gt;⌘→&lt;/em&gt; and &lt;em&gt;⌘←&lt;/em&gt;&#xA;commands navigate in history instead of doing what they do in every other&#xA;application which is &amp;ldquo;move to the end or beginning of the line&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;Oh well.. Luckily there IS a solution for this. The extension keyconfig will&#xA;fix half of the problem. &lt;a href=&#34;http://forums.mozillazine.org/viewtopic.php?t=72994&#34; title=&#34;Keyconfig Firefox Extension&#34;&gt;Get the keyconfing extension here&lt;/a&gt; and&#xA;disable the incriminating keys. Many thanks to the author. Now you have working&#xA;command keys. As for the home and end key, I fixed my problem in vimperator,&#xA;since it is an extension I use on all of my firefoxes. Basically the idea is to&#xA;remap home and end (along with +shift variants)) so they fire off the&#xA;command+arrow commands. Here is the code, enjoy :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;imap &amp;lt;Home&amp;gt; &amp;lt;M-Left&amp;gt;&#xA;imap &amp;lt;End&amp;gt; &amp;lt;M-Right&amp;gt;&#xA;imap &amp;lt;S-End&amp;gt; &amp;lt;M-S-Right&amp;gt;&#xA;imap &amp;lt;S-Home&amp;gt; &amp;lt;M-S-Left&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Either run it in the vimperator command line and do a :mkvimperatorrc! or put&#xA;it directly into your configuration file.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Global keyboard actions in Snow Leopard without third-party software</title>
      <link>https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software/</link>
      <pubDate>Wed, 04 May 2011 08:00:15 +0000</pubDate>
      <guid>https://yozy.net/2011/05/global-keyboard-actions-in-snow-leopard-without-third-party-software/</guid>
      <description>&lt;p&gt;When I first got to use Mac OS X I have wondered whether it is possible to do&#xA;stuff which I was used to do (more or less) easily on Linux. Among others there&#xA;is the possibility to assign keyboard shortcuts to arbitrary actions (and&#xA;especially shell scripts). I found several tutorials on how to do this, but&#xA;they often include third party software like Quicksilver. Since I want to keep&#xA;my system as vanilla as possible I was searching for a way to do it otherwise,&#xA;and found it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introducing-services&#34;&gt;Introducing Services&lt;/h2&gt;&#xA;&lt;p&gt;Snow Leopard has this great thing called Services, which is a very simple to&#xA;use way of creating very powerful actions in no time. Now, usually these are&#xA;bound to a specific application or context, but they can be global. Since it is&#xA;much easier to explain something on an example, let us use a simple example.&#xA;Following this article on how to pause iTunes for a short period of time.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-1&#34;&gt;Step 1&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open up the &lt;strong&gt;Automator&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a New Service.&lt;/li&gt;&#xA;&lt;li&gt;In the &amp;lsquo;service receives selected&amp;rsquo; drop-down box select &lt;strong&gt;no input&lt;/strong&gt; in&#xA;&lt;strong&gt;any application&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In the left sidebar find &lt;strong&gt;Run AppleScript&lt;/strong&gt; and drag it into the workflow&lt;/li&gt;&#xA;&lt;li&gt;Paste the code below on the place where it says &lt;em&gt;(&lt;/em&gt; Your script goes here&#xA;&lt;em&gt;)&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save the service as &amp;ldquo;Pause iTunes for 5 minutes&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The script in question follows:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-applescript&#34; data-lang=&#34;applescript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;application&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;iTunes&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;pause&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;delay&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;300&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;play&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;tell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In the end the whole Automator window should look like this.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/global-mac-shortcuts/Automator-service-example.png&#34; alt=&#34;automator-service-example&#34; title=&#34;Automator service example&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you go to the current application&amp;rsquo;s menu now you should see your service in&#xA;the Services sub-menu.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-2&#34;&gt;Step 2&lt;/h3&gt;&#xA;&lt;p&gt;Now the only thing that remains is to add a keyboard shortcut for this service.&#xA;Open up System Preferences → Keyboard → Keyboard Shortcuts. In the left panel&#xA;click on Services and then click on the + button under the right panel. In the&#xA;following dialog choose:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Application : &lt;strong&gt;All Applications&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Menu Title : &lt;strong&gt;Pause iTunes for 5 minutes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Keyboard Shortcut : &lt;strong&gt;F10&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Following shortcut illustrates the result. Note that it is vital that the Menu&#xA;Title chosen is &lt;strong&gt;exactly the same&lt;/strong&gt; as the name under which you have saved the&#xA;service.&lt;/p&gt;&#xA;&lt;p&gt;[Update] New services will be added to the list automatically. The only&#xA;remaining thing is to add a shortcut key. This might be a feature of Lion or&#xA;Mountain Lion as I do not recall it while using 10.6.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://yozy.net/images/global-mac-shortcuts/Automator-service-example.png&#34; alt=&#34;shortcut-asignment&#34; title=&#34;Snow Leopard keyboard shortcut assignment&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;All done, you can now enjoy launching your script anywhere, anytime by pressing&#xA;F10.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
