Friday, August 28, 2015

Fonts on Mac

Use Font Book to install, view and manage fonts.
Located in the applications folder.
Open Font Book, or double-click a font file.

Q: How to make a MS Word document look like it has been typeset in LaTeX?


Mac Instructions only Based on James Lingard's MS Word template page.
Lingard's template file (LaTeX.dot) can be used to produce documents that look a lot like they've been typeset in TeX/LaTeX but you'll need to install the Computer Modern TrueType versions of fonts used by LaTeX to make them available in MS Word.

Installing the fonts:
  1. Download the minimum set: cmr10.ttf, cmbx12.ttf and cmbx10.ttf and other suggested tt files (e.g. bakoma true type fonts) Other examples: https://guides.lib.jmu.edu/freemedia/font and  https://www.1001fonts.com/ and more... 
  2. Once downloaded on the Mac, go to the download location and open the files by double-clicking. This starts Font Book which opens the tt (TrueType) font file. Font Book is included with OS/X. Basic instructions on using Font Book from Apple.
  3. Font Book provides a small display of the font and gives an option to "Install Font" via the button at bottom right of the window. 
  4. Click Install Font; Font Book then checks/validates the font. You might need to review warnings, all trivial as far as I make it, after which the font is now available for Mac applications to use. 
  5. The next time you open MS Word it will spend 30s or so updating its font listing. 
User installed fonts view in Font Book
Installing the Template:
Mac instructions only: You add Lindgard's LaTeX.dot file to the appropriate templates folder:
MS Word template location. From the Finder menu; Finder>Go>Go to Folder...
~/Library/Application Support/Microsoft/Office/User Templates/My Templates
Then create a new MS Word document based on the template via:
  1. From the MS Word menu bar: File > New from Template... 
  2. The MS Word "Document Gallery" window opens... 
  3. Select "My Templates" in the navigation pane... 
  4. Select the template named "LaTeX" 
Word Document Gallery: New from Template. Chose LaTeX

Your new document is now using Lindgard's stylesheet in MS Word, which should also be using the bakoma TrueType fonts. The screen and output should now mimic a LaTeX typeset document very closely.

Chemical reactions in Tex

Test that you have the packages loaded; from the command prompt enter

texdoc chemmacros
...to open The Chemmacros Bundle guide "chemforumla_en.pdf", inspired and based on usefully extending mhchem. 

My example...
\documentclass{article}
\usepackage{chammacros}
\begin{document}
\ch{Na2SO4 ->[ H2O ] Na+ + SO4^2-}\\
\ch{( 2 Na+ ,SO4^2- ) + (Ba^2+ , 2 Cl- ) -> BaSO4 v + 2 NaCl}\\
\ch{2 CaCO3 <=>[ H2O ] 2 Ca^2+ + 2 CO3^2-}\\
\ch{HCOOH + H2O <=>[ H2O ] H3O^+ + HCOO^-}\\
\ch{2 CO3^2-\ + 4H^+ <=> 2 CO2 + 2 H2O} \\
\end{document}

Tuesday, August 25, 2015

Nvivo Exercises

Notes after attending Ben Meehan's "Nvivo; Analysing your Data" course

  • Create Phase folders in the Nodes area to capture the state of the codes at different phases.
  • From initial readings develop an initial coding framework. 
  • Add the initial coding framework, i.e. add 'nodes' you anticipate using to code your data.
  • Gather your Interviews or transcripts in word. Formatting may be used for later auto-coding ('noding'). Applying Header 1 for several standard structured questions (closed or open), and can also apply Header 1 for the completely open ended unstructured lines of questioning. Could also use Header 1 for categorical data, structural data, attributes (e.g. male, female, rural, urban, highest qualification, age range).
  • Internal Sources. Add your transcripts, interviews and other data sources as separate files (word documents), ie. imported as internal documents. Organise them into separate folders or not. Folder structure might mimic the structure you've used in a file system. 
  • Alternatively you can include them as External Sources. The problem with external sources is that you lose the in-system coding and analysis capability. In this case the actual external source isn't accessible, rather the file/object you add to your Nvivo project is what is used for coding. So you'll need to add your own description or copy/paste some of the data in order to enable node coding and query/search etc.
  • Refine and develop the nodes/codes after each phase of coding.
  • Annotations are a bit hard to dig out but they are 'findable' via the query. Recommend using a keyword at the beginning of each annotation so that you can retrieve them all quickly. This is particularly handy if you use annotations as a place for developing ideas and your own writing.
  • Memos are a kind of 'next step' beyond 'annotations' for your own writing. Memos are handy in terms of being part of the Nvivo interface, they can be organised, subsetted and otherwise subject to global query/search coding/noding etc.
  • Memos are for secondary materials that you develop yourself. I use them as the starting point for my written analysis.
  • Classifications are a mechanism for associating categorical data, usually categories from tabulations (see above). A classification would match categorical/quantitative values with associated interview/observation or otherwise less structured matching data; done via a matching key as unique data index.
  • Query/search is a mechanism for more mechanical questioning of your data. Sifting motivated by defined questioning that can be expressed in terms of more and more complex search queries. Can use boolean and search logic to build up queries. Query/searches can be saved. Results of query/search can also be saved as 'coded' nodes, or as 'Collection' sets. 
  • Collection sets are more static versions or results from the data. They aren't usually incorporated into future query/search or dynamic node logic.
Magic step: interview files with same name as index in categorical excel 'table' can be automatically 'joined'. 


Adding Sources: (link)
Adding a new internal.
Q: Can I format the internal within Nvivo Mac? For example, add heading1, heading2 to structure the document or should I do this kind of formatting before bringing it into Nvivo Mac?
A: When in edit mode, click on the 'home' tab and use the 'styles' group. (link)

Monday, August 24, 2015

Interpretive data analysis tips

John Schulz gives some insightful guidance on analysing interviews. But I feel his ideas can as equally apply to interpretive data more generally including texts, observations, recordings. Analysis can be approached in two basic ways, in a top-down deductive approach and a bottom up inductive approach. In fact many researchers alternate between the two approaches, particularly because analysis rarely occurs wholly in one more or the other. If we're honest about it we often combine the two approaches, where prior theories inform how we gather and treat the data, and where the data pushes back against preconception and instead offers up other interpretations.

Thursday, August 13, 2015

Three steps to charging (taking money) from a mobile phone account

My 12 year old's phone isn't working. He tells me that he hasn't been able to text or call anyone for months.
He hands it to me reluctantly. I top it up with €10 and out of curiosity check the credit again, typing *174# into the phone. What! Only €2.50 left? Immediately followed by receiving a system message on screen.
You have a reverse charge message for you from 57977 that expires on 12-Aug-15. You currently have insufficient credit to receive this message. Vodafone IE-4832 SerivceProviderTxt.Nation Ltd
It isn't a text message because when I click it disappears, no trace left on the phone.
I suspect this has been happening for a while. It turns out that it has been happening for months and €112.50 in call credit has been siphoned off as a result.
No wonder he hasn't been able to make calls or texts.

So what's happening? I ring Vodafone. A fellow called Samir answers; "Yes, I can see the messages, I'm not sure how long you've been receiving them but you can assume it has been happening for a while. But you see sir, this isn't anything to do with us. All I can suggest is that you send a txt with the word 'STOP' in the body to halt your subscription to the service. If that doesn't work you need to contact the service provider immediately and make a complaint."

This is a revelation to me, the mobile phone operator doesn't actually get involved in debit transactions against its own customer's phone accounts. In fact it appears that Vodafone have no control or even visibility, of who or what services (read companies) can make charges to my mobile phone number.

I suppose I'm now being unreasonable but I have to ask, "what about getting my credit back?"
Samir says "Well, first you'll need to find who the number belongs to."
"How do I do that?" I ask, "how to I contact them?"
"You should go to http://www.phonesmart.ie/ then enter the number 57977. Phonesmart is a service run by the Regulator in Ireland, ComReg, they regulate phone-paid/premium services in Ireland.

The Phonesmart webpage returned the following information:
Number Check Results
If you're signed up to a subscription service on your mobile phone but want to quit, simply text the word STOP to the five-digit short code number associated with the premium rate service
( please note that a standard network charge may apply for this text).
Short Code: 57977
Service Provider:TxtNation Ltd
Helpline:1800 812 799
Email:aeus@txtnation.com.
Samir explained what happens. "You will have to call the premium service operator or email them directly. You might want to try to get back your credit. I'm afraid I can't to any more for you, you have to deal directly with the service."

Although I'm getting more annoyed and frustrated I decide to follow his advice. ComReg are the regulator, do they have any information about this scam? A quick look at ComReg's website puts paid to that idea (http://www.phonesmart.ie/Common_Questions/88#A14).
"Just because premium rate services cost more doesn’t mean that they are a scam or that they are bad. Most premium rate services operate without causing consumer harm."
It seems that as far as ComReg is concerned premium rate services are part of a healthy telecommunications ecosystem. Fair enough, but what about the children I say! What checks are in place against a child being enabled, even facilitated, to enrol in a premium rate service? You might say that's my responsibility since I gave the child a mobile phone to use in the first place...

Well the story doesn't end here. I checked the txt.Nation website (www.txtnation.com). It appears to be a bone fide business, they've won awards, go to trade shows and have contracts with government agencies like the UK's NHS. What are they doing taking money from my 12 year old?

I still don't know where or what the money is being taken for. I also feel like talking to someone. Is txt.Nation for real? So I called the helpline (1800 812 799).
A nice sounding lady called Beth answers. "Yes I can help" she says, "if I can verify your contact details and to mention that calls will be recorded for regulation and training purposes."
I explained what was happening and then she explained to me that I would need to log a support request. In fact she is able to start the process for me after which it can continue by email. "You see I'm sort of like a receptionist" she said. "I just take calls, you'll need to contact the support team. I've entered your details, you'll receive an email soon. Just log in to the customer care system and enter your complaint..."

I receive an email "Welcome to Customer Care, Support | txtNation" with instructions to setup an account on their system. I generate a password and access their system. Oh my god, this is getting tedious.

Message from Answer-4u for TXT NATION LIMITED Date and Time: 10/08/2015 20:00 CLI: Message Taken By: Your personal A4U team PA Call Type: New Enquiry Caller's Name: Mr xxxx xxxxx Telephone Number: xxxxxxxx Country: Ireland Email: xxxx.xxxx@gmail.com Message: Caller wishes to discuss charges to his phone.

A support team person added a comment to the 'request' with a message.

Dear xxxx.xxxx, I can see that your mobile number has been billed by the service detailed below. You have now been opted-out of the service so will not receive further billing attempts from the service, unless you choose to opt-in again at some point in the future. If you are disputing the opt-in and wish to request a refund, you should contact Remote directly via +44 (0)333 202 0418 or help@careformobile.com.
Remote is a company that charges €7.50 per week for you to enter a competition to win an iPhone/iPad/MacBook by texting keyword "phone", "apple", "book". You would have first visited the competition website and answered a multiple choice question before entering you mobile number into the box provided on the website...
...
After you have done this, you will receive a free text message.
Once you reply with the appropriate keyword, you will receive another message stating:
"Message: FreeMsg U have subscribed to WIN an iPad playie.77win.co & WIN the iPad each week for euro7.50/wk 3x2.5 euro/msg until u send STOP to 57977".
Best Wishes txtNation Online Support
Two days to get this far. I begin to see why people think premium rate services are dodgy. Just to get to the bottom I've had to contact Vodafone, then txt.Nation, to an operator called Remote running a 'competition' website managed by a service called careformobile.com.

Hmm, let's have a look at that website. Notice the very small lettering indicating that the "Player must be 18 years or over"? I've drawn a red line around it to draw your attention to it...


It turns out that Vodafone have no control of premium rate service access to your account nor do they have access to the data trail that it took me 2 days to piece together.

So money has moved from me to Vodafone. From Vodafone to txt.Nation. From txtNation to Remote. And perhaps also from Remote to careformobile who hosts this iPhone/iPad/MacBook prize lottery websites.

Surprisingly, there are just three (3) steps involved in permitting them to take money from me.
1. Click on the website, provide a mobile number, and click "Enter".
2. My mobile phone receives a message to reply to win by texting a keyword.
3. Send a text message with the keyword to the premium rate number.
Goodbye money.

My complaints are several.
No audit trail provided of communication initially authorising debits.
The actual competition element does not display the age limit prominently, apart from text in very small font at bottom of a secondary web page.
No valid age checks employed to prevent future underage use.
No default time limits set on subscription (it's permanent).
No defined process by which charges may be disputed or refunded.
No evidence that these kinds of lotteries or competitions are properly run or regulated. Is the lottery actually run, are results independently verified, what were the competition results over the period in which I was putatively subscribed to the lottery service? Was a competition actually taking place? How many phones, tablets or laptop computers were actually awarded as prizes?


Sharing 360° video?

So, you've got a 360 degree video file from your GoPro. What to do with it? Well, share it on YouTube. YouTube supports uploading and pl...