Skip to main content

Posts

If Mac OS X ssh with correct password does not work...

If this occurs to you, don't spend hours like me hacking /etc/ssh/sshd_config but check "All users" in System preferences > Sharing. Moreover, to apply the changes you must restart the server and you can do so quickly also in Sharing by checking out and in "Remote login". Indeed the behaviour is kind of buggy because you are still prompted for password and there is nothing to see in ssh -v. 
Recent posts

How to access target user's Library with Mac OS X file sharing

The problem Sharing files from Mac to Mac (both on Mac OS X El Capitan) on the same local network, I cannot see a target user's Library (as opposed to his other directories).  The solution For the target user,  ~/Library is accessible, with the same permissions as other directories, but appears greyed out . Let the target user do:  in Finder, View > Show View Options, check Show Library Folder. Remark No problem with nfs server on target Mac. Reference Mac OS X file sharing

A bug in Wolfram language Sum

Start form fresh kernel: In[21]:= Quit[] This is an indefinite Sum (see the documentation of Sum): In[1]:= Sum[x[i],i] Out[1]= Underscript[\[Sum], i]x[i] In[2]:= Sum[Indexed[x,i],i] Out[2]= Underscript[\[Sum], i]Subscript[x, i] This evaluates wrongly: In[3]:= Sum[_,i] Out[3]= i _ and seems to break Sum: In[4]:= Sum[y[i],i] Out[4]= i _ In[5]:= Sum[Indexed[y,i],i] Out[5]= i _ although all the sums that were previously evaluated are still correct: In[6]:= Sum[x[i],i] Out[6]= Underscript[\[Sum], i]x[i] In[7]:= Sum[Indexed[x,i],i] Out[7]= Underscript[\[Sum], i]Subscript[x, i] Conclusions : - Sum is broken by Sum[_,i], - the kernel has some cache. Indeed there is a cache and it can be cleared In[8]:= ClearSystemCache[] but this has no effect on Sum: In[11]:= Sum[x[i],i] Out[11]= Underscript[\[Sum], i]x[i] In[12]:= Sum[y[i],i] Out[12]= i _

Input cell numbering in Mathematica notebook

After some googling about cell numbering, I ended up being able to number inline formula, text, output, but not input cells. Of course, there is already the In[_] numbering or the possibility of numbering the corresponding output cell (if it exists), so that input cell numbering may not be necessary after all. However, when input is reevaluated, the In[_] numbering changes and the output cell numbering is lost so input cell numbering is really important. According to CounterTutorial.nb by P. J. Hinton, 1998: A CounterBox[ ] can appear only in a TextData[ ] expression of a cell, so that means you can use them only [in] cell styles associated with headings and body text.  They cannot be used in the contents of typeset math cells. Therefore, input cell numbering may not be so easy.  However: You can inspect the low level trickery that is used by opening up the notebook's style sheet and unformatting the prototype cell for NumberedEquation.  I won't go into too much mor

Cleaning iTunes calendar sync list

iTunes can be used to sync calendars on Mac and iPhone. However, iTunes calendar sync list gets cluttered with deleted calendars. See for example https://discussions.apple.com/thread/6840043 In order to clean iTunes calendar sync list, check the unwanted calendars, sync, delete them on iPhone.  Go back to iTunes, uncheck the unwanted calendars, sync again, and the unwanted calendars should disappear before your eyes. This worked for me with iTunes 12.8.12, Mac OS 10.11.6, iOS 12.1.2.
How to change word completion language in iOS 12 applications using the keyboard, like Mail, Skype, Whatsapp, Viber... ?  On the keyboard, press the globe, this shifts the language. If the language you need is not available, go to Settings > General > Language & Region and choose the language you need.  This will install it.  You can revert to English later.