<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><description>Assorted notes on statistics, R, psychological research, LaTeX, computing, etc. See also my primary blog for more substantive posts: jeromyanglim.blogspot.com</description><title>Jeromy Anglim's Notes</title><generator>Tumblr (3.0; @jeromyanglim)</generator><link>https://jeromyanglim.tumblr.com/</link><item><title>Not getting message notifications on Apple Watch when using my computer</title><description>&lt;p&gt;For a long time, I&amp;rsquo;ve been having issues with not getting certain text message notifications on my Apple Watch. It was always very mysterious. 
I&amp;rsquo;d often get a text message from an important family member about something time-urgent, yet I would not be notifiied. 
They&amp;rsquo;d then ask me whether I got the message, and I&amp;rsquo;d look at my phone. The message was displayed on my iphone lock screen, but nothing had gone through to my watch.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;d then try to test the idea that I was not receiving notifications on my apple watch. So I&amp;rsquo;d send a message from their phone to me, and the text message would go through to my watch perfectly.&lt;/p&gt;

&lt;p&gt;I noticed that it would often arise in the late afternoon (but it would occur other times) when I&amp;rsquo;d be finishing up work for the day and I&amp;rsquo;d get sent a message. I thought that maybe I just got too absorbed in work and ignored the arm vibration.
It was a great mystery.&lt;/p&gt;

&lt;p&gt;But I think that I may have finally resolved the problem.&lt;/p&gt;

&lt;p&gt;I think that when Apple sends iMessage (i.e., Apple text messages) notifications, it looks for what is the active device. Thus, when I&amp;rsquo;m using my Mac, it sends the notification to my Mac rather than my watch. This would make sense why I was not getting the watch notifications while working, and why every time I tried to test the issue, I could not reproduce it, because I was away from my computer.&lt;/p&gt;

&lt;p&gt;I also hate notifications and interruptions on my computer. So I&amp;rsquo;d disabled most notifications on my computer. In particular, I&amp;rsquo;d disabled notifications from &amp;ldquo;messages&amp;rdquo; in the notifications center. So, I think when I was on the computer, the notification was directed to the Mac, and then the Mac was applying these notification settings to silence the message, so no notification was received anywhere.&lt;/p&gt;

&lt;p&gt;So, it seems that the two solutions are to (a) go to the messages app on the mac and log out of the messages app or (b) enable message notifications on the Mac (and then receive messages on the Mac).
For now, I&amp;rsquo;ve done both. Hopefullly, it finally solves the issue.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/704021677361774592</link><guid>https://jeromyanglim.tumblr.com/post/704021677361774592</guid><pubDate>Mon, 19 Dec 2022 10:49:51 +1100</pubDate><category>@osx</category></item><item><title>How to disable Readcube and Science Direct Viewer?</title><description>&lt;p&gt;You can go to the following website:
&lt;a href="https://www.readcube.com/epdf_settings"&gt;https://www.readcube.com/epdf_settings&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Assuming your browser is compatible, this should allow you to set a cookie to disable readcube so that when you click on a pdf it goes straight to the PDF.&lt;/p&gt;

&lt;p&gt;To disable elsevier / ScienceDirect PDF viewer, go here:
&lt;a href="https://www.sciencedirect.com/enhanced-reader/settings"&gt;https://www.sciencedirect.com/enhanced-reader/settings&lt;/a&gt;&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/174201998241</link><guid>https://jeromyanglim.tumblr.com/post/174201998241</guid><pubDate>Thu, 24 May 2018 15:45:24 +1000</pubDate></item><item><title>MFC-9970CDW Replace toner warning</title><description>&lt;p&gt;The following article described a process for resetting the toner count:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.easyink.co.nz/support/brother-mfc9970cdw-toner-counter-reset/"&gt;https://www.easyink.co.nz/support/brother-mfc9970cdw-toner-counter-reset/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This also seemed to make the cyan warning I was getting go away.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/173248535441</link><guid>https://jeromyanglim.tumblr.com/post/173248535441</guid><pubDate>Tue, 24 Apr 2018 14:01:37 +1000</pubDate></item><item><title>Endnote makes comments disappear and changes markup settings in Word OSX</title><description>&lt;p&gt;I am using Word 2016 on OSX and Endnote X8.&lt;/p&gt;

&lt;p&gt;Often, when I&amp;rsquo;m editing a document and writing text in a Word document with Endnote references, the comment boxes disappear and the review markup options change.&lt;/p&gt;

&lt;p&gt;Specifically, Endnote seems to seems to change the &amp;ldquo;all markup&amp;rdquo; option to &amp;ldquo;no markup&amp;rdquo; in Word. It often seems like it does this all the time.&lt;/p&gt;

&lt;p&gt;On closer inspection, it seems that it does this either when you refresh references. It also does this regularly when instant formatting is on. This took me a while to realise, because I think I must disable instant formatting normally. So when I received a document that had instant formatting on that I was trying to provide feedback on, it was driving me crazy.&lt;/p&gt;

&lt;p&gt;But anyway, the basic work around is to disable instant formatting on the document.&lt;/p&gt;

&lt;p&gt;The issue is described here with regards to Endnote X7
&lt;a href="http://community.thomsonreuters.com/t5/EndNote-How-To/Endnot-x7-Turns-Markup-off-in-Word/td-p/130939"&gt;http://community.thomsonreuters.com/t5/EndNote-How-To/Endnot-x7-Turns-Markup-off-in-Word/td-p/130939&lt;/a&gt;&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/166702095626</link><guid>https://jeromyanglim.tumblr.com/post/166702095626</guid><pubDate>Mon, 23 Oct 2017 17:40:05 +1100</pubDate></item><item><title>Faster navigation to folder on save dialogue on OSX</title><description>&lt;p&gt;When I click save in OSX on a file, the first challenge is to navigate to the folder where the file is meant to be saved. Of course, you can click through the links manually, but this is terribly slow if your files are stored several folders deep in a hierarchy.&lt;/p&gt;

&lt;p&gt;Traditionally, I have had the folder opened in Finder.
I often navigate to the folder using Alfred keyword search.&lt;/p&gt;

&lt;p&gt;You can drag and drop the folder name on the top of the Finder window into the save as dialogue box and this will take you to that folder.&lt;/p&gt;

&lt;p&gt;However, one problem with this approach is that you have to hold your mouse down for a few seconds to enable this feature. Otherwise, you simply move the Finder window.&lt;/p&gt;

&lt;p&gt;A faster approach is to activate the Path bar in finder.
&lt;a href="https://www.tekrevue.com/tip/show-path-finder-title-bar/"&gt;https://www.tekrevue.com/tip/show-path-finder-title-bar/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This allows you to drag and drop immediately.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/162571341806</link><guid>https://jeromyanglim.tumblr.com/post/162571341806</guid><pubDate>Tue, 04 Jul 2017 11:17:33 +1000</pubDate><category>@osx</category></item><item><title>How to disable Press and Hold on key repeat in RStudio on OSX?</title><description>&lt;p&gt;I use Vim mode in Rstudio. I often hold down letters such as &lt;code&gt;j&lt;/code&gt; and &lt;code&gt;k&lt;/code&gt; and use key repeat to move the cursor multiple lines, words, and characters.&lt;/p&gt;

&lt;p&gt;However, OSX has a feature where when you hold down a letter, instead of repeating the key, it brings up options for character variants.&lt;/p&gt;

&lt;p&gt;This is discussed &lt;a href="https://support.rstudio.com/hc/en-us/community/posts/200629268-Holding-down-j-and-k-in-vim-modein-RStudio-0-98-477-on-OSX-don-t-repeat"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;One solution is to run the following at the terminal:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;defaults write -g ApplePressAndHoldEnabled -bool false
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This changes the global default setting for all applications to disable press and hold.&lt;/p&gt;

&lt;p&gt;However, this involves two issues&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Stick and hold is actually a nice feature in many apps (e.g., when you need to write european letters).&lt;/li&gt;
&lt;li&gt;The setting seems to get reset over time. I&amp;rsquo;m not sure what program restores the global setting to enable press and hold, but I do find that after a few days, the setting has been reset.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thus, I thought a solution would be to try to disable press and hold just for Rstudio. Perhaps whatever resets it globally would not reset it on Rstudio.&lt;/p&gt;

&lt;p&gt;I saw in another forum discussing a different application that the following would disable press and hold for &lt;code&gt;com.github.atom&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;defaults write com.github.atom ApplePressAndHoldEnabled -bool false
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I then tried&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;defaults write Rstudio ApplePressAndHoldEnabled -bool false
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I think this may have worked. But we will see.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/161339075791</link><guid>https://jeromyanglim.tumblr.com/post/161339075791</guid><pubDate>Fri, 02 Jun 2017 13:12:05 +1000</pubDate></item><item><title>Workaround for Word 2016 OSX and MathType</title><description>&lt;p&gt;At the time of writing MathType is ostensibly not compatible with Word 2016 on OSX (&lt;a href="http://news.dessci.com/mathtype-now-works-office-2016-windows-mac-office-2016-soon"&gt;see here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;In addition, I&amp;rsquo;ve long had others issues with MathType:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Equations objects are converted into non-editable images. This is caused by auto-save in Word. I don&amp;rsquo;t use this, but collaborators do, so equations become non-editable.&lt;/li&gt;
&lt;li&gt;I also somtimes get issues with others being able to correctly view equations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thus, I&amp;rsquo;ve been thinking about workarounds. This is one that I am experimenting with.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write equation in MathType.&lt;/li&gt;
&lt;li&gt;Copy and paste the equation into Word 2016&lt;/li&gt;
&lt;li&gt;If the equation then needs to be edited, copy and paste back into MathType, edit, and copy back.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It seems to work and the images seem to continue to be editable. This contrasts with the bug whereby MathType field codes are converted to images. These images are no longer editable.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/161264742636</link><guid>https://jeromyanglim.tumblr.com/post/161264742636</guid><pubDate>Wed, 31 May 2017 13:22:21 +1000</pubDate></item><item><title>Pipeline publications</title><description>&lt;h3 id="articles-under-preparation"&gt;
2002 to 2004 member of the publication team for COP Victorian Section.&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;i&gt;The Pipeline&lt;/i&gt;. (2002, Summer-Autumn) APS College of Organisational Psychologists (Victorian Section). &lt;a href="http://www.groups.psychology.org.au/Assets/Files/Pipeline_APR_2002.pdf"&gt; Online PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;The Pipeline&lt;/i&gt; (2002, Winter-Spring) APS College of Organisational Psychologists (Victorian Section). &lt;a href="http://www.groups.psychology.org.au/Assets/Files/Pipeline_Oct_2002.pdf"&gt; Online PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;The Pipeline&lt;/i&gt; (2003, Summer-Autumn) APS College of Organisational Psychologists (Victorian Section). &lt;a href="http://www.groups.psychology.org.au/Assets/Files/Pipeline_APR_2003.pdf"&gt; Online PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;The Pipeline.&lt;/i&gt; (2003, Winter) APS College of Organisational Psychologists (Victorian Section). &lt;a href="https://docs.google.com/fileview?id=0B5myzIhnbhoFMzFmMDllOTMtZWNkMS00M2EzLTg1NGUtMTk3MWQyZmQwNmUy&amp;amp;hl=en"&gt; Online PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;The Organisational Psychologist&lt;/i&gt; (2004, 1, 1) APS College of Organisational Psychologists. &lt;a href="http://www.groups.psychology.org.au/Assets/Files/TOP_july_2004.pdf"&gt; Online PDF&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>https://jeromyanglim.tumblr.com/post/158952205896</link><guid>https://jeromyanglim.tumblr.com/post/158952205896</guid><pubDate>Wed, 29 Mar 2017 14:38:31 +1100</pubDate></item><item><title>Little differences between Excel 2011 and 2016 on OSX</title><description>&lt;ul&gt;
&lt;li&gt;The shortcut key for insert cells is command + shift + = (perhaps this was always the case, but I just had just had a different shortcut)&lt;/li&gt;
&lt;li&gt;The shortcut keys in the paste special dialog (e.g., command plus v for paste as value) no longer work with command; instead you have press fn + v (i.e., use the fn key as the modifier). &lt;strong&gt;UPDATE&lt;/strong&gt;: This seems to work now (not sure if it was after an update) without any modifies. So just press v in that dialog box and it selects the past as value option.&lt;/li&gt;
&lt;/ul&gt;</description><link>https://jeromyanglim.tumblr.com/post/158382417441</link><guid>https://jeromyanglim.tumblr.com/post/158382417441</guid><pubDate>Tue, 14 Mar 2017 16:06:49 +1100</pubDate></item><item><title>Setting up terminal on OSX to be more like iTerm2</title><description>&lt;p&gt;I like iTerm2, but quite a few Apps (e.g., RStudio, ) and others open Terminal by default. So I wanted to get Terminal working reasonably well.&lt;/p&gt;

&lt;p&gt;A few things I did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up the fonts in the profile; in particular I changed the font colours, I also quite like Monaco 12pt as a font.&lt;/li&gt;
&lt;li&gt;I quite like 100 columns as a witdh.&lt;/li&gt;
&lt;li&gt;I had to copy .bashrc into .bashprofile to get my bash customisations to load &lt;a href="http://apple.stackexchange.com/a/13019/11747"&gt;http://apple.stackexchange.com/a/13019/11747&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I had to use this trick to remove the text that it displays by default &lt;a href="http://stackoverflow.com/a/16181082/180892"&gt;http://stackoverflow.com/a/16181082/180892&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>https://jeromyanglim.tumblr.com/post/158216814556</link><guid>https://jeromyanglim.tumblr.com/post/158216814556</guid><pubDate>Fri, 10 Mar 2017 15:20:39 +1100</pubDate></item><item><title>Can not edit image in Word 2016 on Mac OSX</title><description>&lt;p&gt;I recently installed Word 2016 on OSX. 
I noticed that when I selected an image, the image editing ribbon did not appear, and the option to edit the image was greyed out.&lt;/p&gt;

&lt;p&gt;My file was in the older &amp;ldquo;.doc&amp;rdquo; format. When I saved the file as &amp;ldquo;docx&amp;rdquo; the image ribbon reappeared when the image was selected.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/157845267896</link><guid>https://jeromyanglim.tumblr.com/post/157845267896</guid><pubDate>Wed, 01 Mar 2017 13:41:50 +1100</pubDate><category>@osx</category></item><item><title>How to post about code on blogger</title><description>&lt;p&gt;I have often been frustrated by the blogspot post editor. In particular, if you write about code, then it often feels like it does all sort of weird things if you accidentally move between compose and HTML mode. Anyway, here as some notes on working better with it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Switch post settings to compose mode = &amp;ldquo;show HTML literally&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Switch post settings - options to &amp;ldquo;Press Enter for line breaks&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The above settings seem to persist across posts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is a courier font for code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I&amp;rsquo;m still working on making line breaks attractive.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/150295101076</link><guid>https://jeromyanglim.tumblr.com/post/150295101076</guid><pubDate>Mon, 12 Sep 2016 13:58:36 +1000</pubDate></item><item><title>How to export references that cite a particular article using Google Scholar?</title><description>&lt;p&gt;It seems like you can do this with &lt;a href="http://www.harzing.com/resources/publish-or-perish"&gt;Publish or Perish&lt;/a&gt; (Free software that uses Google Scholar as its underlying database).&lt;/p&gt;

&lt;h1&gt;Procedure:&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Search for the article in Publish or Perish and find the article&lt;/li&gt;
&lt;li&gt;Right click on the article in Publish or Perish and select &amp;ldquo;Lookup Citations&amp;rdquo; (this will bring up the citing references)&lt;/li&gt;
&lt;li&gt;Save the references in your preferred format (e.g., BibTeX, Endnote, csv, etc.)&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;Example&lt;/h1&gt;

&lt;p&gt;Search for the journal (e.g., search for title, author or some combination):&lt;/p&gt;

&lt;p&gt;&lt;a href="http://i.stack.imgur.com/zPLKD.png"&gt;&lt;img src="http://i.stack.imgur.com/zPLKD.png" alt="enter image description here"/&gt;&lt;/a&gt;
Selecting the article and choosing lookup citations:
&lt;a href="http://i.stack.imgur.com/nc26T.png"&gt;&lt;img src="http://i.stack.imgur.com/nc26T.png" alt="enter image description here"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the citing articles:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://i.stack.imgur.com/SDSOg.png"&gt;&lt;img src="http://i.stack.imgur.com/SDSOg.png" alt="enter image description here"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select save as&lt;/p&gt;

&lt;p&gt;&lt;a href="http://i.stack.imgur.com/r1Trf.png"&gt;&lt;img src="http://i.stack.imgur.com/r1Trf.png" alt="publish or perish save as"/&gt;&lt;/a&gt;&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/149398070616</link><guid>https://jeromyanglim.tumblr.com/post/149398070616</guid><pubDate>Wed, 24 Aug 2016 13:23:05 +1000</pubDate></item><item><title>Debugging knitting from rmarkdown using ProjectTemplate</title><description>&lt;p&gt;This post summarises some general and specific points about debugging an rmarkdown file.&lt;/p&gt;

&lt;h3&gt;General Strategy&lt;/h3&gt;

&lt;p&gt;In general, users realise they have a problem when something that is working when in manual mode, does not work when they press the knit button in RStudio.&lt;/p&gt;

&lt;p&gt;A common cause of this problem is that objects in current workspace are not in the knitr workspace.&lt;/p&gt;

&lt;p&gt;it is common to get errors like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Line ... Error in eval (expr, envir, enclos) : object 'foo' not found
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &lt;code&gt;foo&lt;/code&gt; is an object like a data frame or something else you are working with.&lt;/p&gt;

&lt;p&gt;In some cases, there will be an obvious error in your code that you can quickly fix up.&lt;/p&gt;

&lt;p&gt;After that, a first general step in debugging the problem is to clear the workspace (e.g., by pressing the broom button in rstudio, or typing &lt;code&gt;rm(list=ls())&lt;/code&gt; into the console). Then run each code chunk consecutively starting from the first one in the knitr file. There are shortcut keys in RStudio for running both the current and next code chunk. This can speed up the process. If you get an error, then fix that code.&lt;/p&gt;

&lt;p&gt;Sometimes you can get issues, if you issue some commands that are not meant to appear in the knitr documents. In partiuclar, requesting help for a function can cause knitr to hang. So remove any instances of that.&lt;/p&gt;

&lt;p&gt;If everything is working after you have cleared the workspace and run all the code manually, its possible that the relationship between the rmarkdown file other files is broken. So, you need to check that the working directory in manual mode is the same as when you run knitr. You can get the current manual-mode working directory by typing &lt;code&gt;getwd()&lt;/code&gt;. By default, knitr will use the folder that it is in as the working directory. However, if you are using my &lt;a href="https://github.com/jeromyanglim/AnglimModifiedProjectTemplate/"&gt;modified ProjectTemplate structure&lt;/a&gt;, I find it tider to keep the rmarkdown files in a subdirectory called &lt;code&gt;reports&lt;/code&gt;. If you do this, then you need to include a command in the first code chunk to tell knitr to treat the working directory as one level up.&lt;/p&gt;

&lt;p&gt;Thus, the first code chunk should have the following code inside:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;library(knitr)
opts_knit$set(root.dir = normalizePath('../')) # required when rmd is in subdirectory
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Alternatively, you can just move the rmd file up one level manually and not include the above chunk.&lt;/p&gt;

&lt;h3&gt;Other assorted errors&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Need a later version of rmarkdown&lt;/strong&gt;: Sometimes RStudio will indicate that it needs a later version of rmarkdown. I&amp;rsquo;ve seen in some cases that RStudio&amp;rsquo;s script for this can fail. if so, just install the rmarkdown package with &lt;code&gt;install.packages("rmarkdown")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can&amp;rsquo;t knit to PDF&lt;/strong&gt;: In general, you need to install a tex distribution. This is free and fairly large download: 
&lt;a href="https://www.latex-project.org/get/"&gt;https://www.latex-project.org/get/&lt;/a&gt;&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/149007934121</link><guid>https://jeromyanglim.tumblr.com/post/149007934121</guid><pubDate>Tue, 16 Aug 2016 11:26:57 +1000</pubDate><category>@rstats</category></item><item><title>A few notes on Michael Levy’s talk on teaching R</title><description>&lt;p&gt;Michael Andrew Levy presented a talk at User2016 on how to teach R to new users. I thought had a few good tips that I imagine I&amp;rsquo;ll incorporate into my teaching. Here&amp;rsquo;s the video, and I have a few notes below:&lt;/p&gt;

&lt;iframe src="https://channel9.msdn.com/Events/useR-international-R-User-conference/useR2016/Teaching-R-to-200-people-in-a-week/player" width="960" height="540" allowfullscreen frameborder="0"&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href="https://channel9.msdn.com/Events/useR-international-R-User-conference/useR2016/Teaching-R-to-200-people-in-a-week"&gt;https://channel9.msdn.com/Events/useR-international-R-User-conference/useR2016/Teaching-R-to-200-people-in-a-week&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few ideas which I liked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Motivate students first; then get into details&lt;/li&gt;
&lt;li&gt;Code live when teaching; it slows down the pace; it shows the process of coding including recovering from errors, looking up help and so on.&lt;/li&gt;
&lt;li&gt;Include frequent exercises; it increases in engagement and it is crucial for learning&lt;/li&gt;
&lt;li&gt;Initial exercises are very structured and gradually make them less structured.&lt;/li&gt;
&lt;li&gt;Use real time multiple choice questions using Google Forms to assess understanding.&lt;/li&gt;
&lt;li&gt;It&amp;rsquo;s useful to have basic and advanced exercises given that skills will vary a lot across students.&lt;/li&gt;
&lt;/ul&gt;</description><link>https://jeromyanglim.tumblr.com/post/147628077306</link><guid>https://jeromyanglim.tumblr.com/post/147628077306</guid><pubDate>Tue, 19 Jul 2016 14:18:16 +1000</pubDate></item><item><title>White boxes instead of image files displaying in Word OSX 2011</title><description>&lt;p&gt;I recently had this strange problem where all my images in Word files using Word OSX 2011 were displaying as white boxes.&lt;/p&gt;

&lt;p&gt;The problem originally arose when I received a file from a Windows user. So I assumed it was some compatability issue. But then when I looked around, I saw that the issue applied to other documents as well.&lt;/p&gt;

&lt;p&gt;It turned out an option in the preferences at been inappropriate activated.&lt;/p&gt;

&lt;p&gt;I just had to deativate &lt;code&gt;preferences - view - image placeholders&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m not sure how it was activated in the firs place. I sometimes toggle field shading, so it might have been accidentally selected. Alternatively, I wonder whether a document sent to me could have overrided the setting, although that seems a little strange. Or perhaps there&amp;rsquo;s some keyboard shortcut I&amp;rsquo;m not aware of.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/147220051536</link><guid>https://jeromyanglim.tumblr.com/post/147220051536</guid><pubDate>Mon, 11 Jul 2016 13:35:47 +1000</pubDate><category>@osx</category></item><item><title>Thoughts on Publons: Verified peer review website</title><description>&lt;p&gt;I recently received an invitation to join publons a site that verifies journal review activity.&lt;/p&gt;

&lt;p&gt;Overall, it was a fairly pleasant experience.
The website is clear and clean.
It was relatively straightforward to set up a profile.&lt;/p&gt;

&lt;p&gt;Then I just needed to search my emails and forward emails thanking me for reviewing an article to publons. They then use these email receipts to verify a particular review activity. I imagine it would just be a matter of remembering to automatically forward these emails in the future.&lt;/p&gt;

&lt;p&gt;There&amp;rsquo;s some nice export options that allow you to compile your review statistics for CV related purposes.&lt;/p&gt;

&lt;p&gt;The statistics on your profile also allow you see various features of your reviewing activity. For example, you can see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many reviews you are doing over time&lt;/li&gt;
&lt;li&gt;the impact factor of the journals you are reviewing for and how that compares to your field.&lt;/li&gt;
&lt;li&gt;The days of the week that you submit your reviews&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can have a look at &lt;a href="https://publons.com/author/1169380/jeromy-anglim"&gt;my profile here&lt;/a&gt; or here&amp;rsquo;s what a &lt;a href="https://publons.com/author/669602/neal-m-ashkanasy#stats"&gt;more established professor&amp;rsquo;s review profile might look like&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Overall, I like the premise of the site. Academia needs more systems to recognise and celebrate those who do lots of peer review.&lt;/p&gt;

&lt;p&gt;That said, I always have my concerns when a presumably commercial company takes on the curation of scholarly data.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/146923066551</link><guid>https://jeromyanglim.tumblr.com/post/146923066551</guid><pubDate>Tue, 05 Jul 2016 11:32:48 +1000</pubDate></item><item><title>Pasting URLs from Chrome to Outlook on OSX is not working</title><description>&lt;p&gt;Recently, I&amp;rsquo;ve noticed that when I try to paste a URL from the Chrome address bar into Outlook on OSX, nothing is displayed.&lt;/p&gt;

&lt;p&gt;A fix is to use &amp;ldquo;Edit - Paste and Match Style&amp;rdquo; or the shortcut is alt+shift+cmd+v.&lt;/p&gt;

&lt;p&gt;This will paste the URL.&lt;/p&gt;

&lt;p&gt;I recently saw a &lt;a href="http://www.slate.com/blogs/future_tense/2016/06/27/paste_url_bug_in_chrome_for_macs.html"&gt;discussion on Slate&lt;/a&gt;. This suggests that installing the beta version will fix this issue. Or just wait a bit and it will be fixed in general.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/146529975401</link><guid>https://jeromyanglim.tumblr.com/post/146529975401</guid><pubDate>Mon, 27 Jun 2016 11:44:04 +1000</pubDate></item><item><title>How to copy character vector from Excel to R using the scan function</title><description>&lt;p&gt;I often have lists of variable names in an Excel spreadsheet. I then one to copy some of those variables and bring them into R as a character vector that can be placed in my script.&lt;/p&gt;

&lt;p&gt;The following code works.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;temp &amp;lt;- scan(what = "character")
apple
banana
carrot

dput(temp)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It yields the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;gt; dput(temp)
c("apple", "banana", "carrot")
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The idea is that I have some variable names (e.g., apple, etc.) which I paste afetr the &lt;code&gt;scan&lt;/code&gt; function. Annoyingly, it is necessary to specify the variable type. By default it expects numbers.&lt;/p&gt;

&lt;p&gt;The empty line between the vector and &lt;code&gt;dput&lt;/code&gt; is necessary to indicate the end of input.&lt;/p&gt;

&lt;p&gt;I can then copy the character vector into my script &lt;code&gt;c(...)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Other resources&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.johndcook.com/blog/r_excel_clipboard/"&gt;http://www.johndcook.com/blog/r_excel_clipboard/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.endmemo.com/program/R/scan.php"&gt;http://www.endmemo.com/program/R/scan.php&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>https://jeromyanglim.tumblr.com/post/143374965926</link><guid>https://jeromyanglim.tumblr.com/post/143374965926</guid><pubDate>Mon, 25 Apr 2016 23:02:36 +1000</pubDate></item><item><title>A Proper Auto-Save for Microsoft Word in OSX</title><description>&lt;p&gt;I have had many problems with auto-recovery built into Word on OSX. It corrupts documents.&lt;/p&gt;

&lt;p&gt;I wanted a solution which actually does a proper save of the document automatically at regular intervals.&lt;/p&gt;

&lt;p&gt;For a while I was using a plugin called the &lt;a href="http://wordribbon.tips.net/T010361_A_Real_AutoSave.html"&gt;Real AutoSave&lt;/a&gt;. It&amp;rsquo;s not bad. It does the job. However, it is also quite annoying. It brings up a pop-up menu for read only documents; it performs a save on documents that already up to date. It brings up a pop-up menu for documents that haven&amp;rsquo;t already been saved. This is annoying because you get pop-ups when you&amp;rsquo;re read-only viewing email attachments and so forth.&lt;/p&gt;

&lt;p&gt;Thus, I found an actual solution. It involves using the second apple script &lt;a href="https://forum.keyboardmaestro.com/t/auto-save-microsoft-word/2096"&gt;listed here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;with a program called &lt;a href="http://www.keyboardmaestro.com/"&gt;Keyboard Maestro&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The broader process is explained &lt;a href="http://www.engadget.com/2014/04/16/auto-save-microsoft-word-with-keyboard-maestro"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m new to Keyboard Maestro, but it seems to be a very flexible tool for triggering automation that might be worth learning more about.&lt;/p&gt;</description><link>https://jeromyanglim.tumblr.com/post/133454282781</link><guid>https://jeromyanglim.tumblr.com/post/133454282781</guid><pubDate>Wed, 18 Nov 2015 18:33:38 +1100</pubDate><category>@osx</category></item></channel></rss>
