Friday, August 22, 2014

Few IT updates.


  • MK802 devices are disappearing from the stoors, perhaps because most of TVs sold are now "smart TV" with Internet connectivity. NetOnNet still sells MK802III and MK802IV under the Anderson brand name, packaged with power adapter and IR remote control. Not a bad deal if you want to have a tiny Android micro-desktop with a good graphic card.
  • Dropbox is working again on the department system.
  • Finally: a free online TeX service AS IT SHOULD BE: cloud.sagemath.com. Complete with a high quality editor reminding TeXMaker and reverse search (DVI to source). Its arrival makes a lot of difference, Chromebooks and Android tablets with external keyboards (via OTG) are now useful for work! Sagemath site runs some free math software too.
  • A bargain: 49 kronor at NetOnNet for a 8GB USB stick - and not just a stick, but one equipped with USB micro contact and OTG circuit - meaning that IF (a big IF) your smartphone supports OTG, you have a USB stick that connects to the smartphone. [What the hell OTG is? It is a setup that allows Android devices to host USB attachments - external storage, keyboards and even sound cards. More often found in tablets than in phones.]
  • Future of Thinlinc: Cendio, Thinlinc's maker, is working on Thinlinc client that runs in a browser. Meaning, again, that tablets will replace thin clients as a means of connecting to the department's machine. https://www.cendio.com/products/thinlinc/features/html5.xhtml . All is missing is a server upgrade.
  • Sylpheed (a no frills, small footprint mail client)  has now a Mac version. Still a test one, but does not seem to have any bugs worth mentioning.

Wednesday, October 23, 2013

Summary of second meeting

The coffee served before the meeting comes from Italian food shop "Martina", one of the few places in Uppsala where one can buy premium coffee at reasonable price. A cheaper, but still decent, espresso is sold under the ICA brand, and Willis carries Najjar, excellent for Turkish coffee (stove-cooked), but too thinly ground for espresso machines. Illy coffee is found in ICA, and it is very good, but far overpriced. Quality of coffee is less affected by the quality of beans (except that arabica is nicer than robusta)  as by presence of defective beans and by speed with which it is roasted. Cheaper coffee means primitive sorting that leaves some rotten beans, and quick roasting (that increases volume per time unit and capital cost) which leads to loss of flavor.

We continued by discussing various aspects of math editing.

There are two ways to do TeX on portable devices, online (where you send your source for compilation on the server) and the good old local compiler.
The leading online TeX app for android is VerbTex, but almost everyone who has used it eventually gives up. TeXPortal (local compiler) seems to be the best solution so far.

TeXPortal is LaTeX for android devices. It comes with no TeX binaries at all, but installs them little by little based on what is needed for your source file. So, it may take an hour in the beginning looking at error messages - but it works at the end. TeXPortal uses TeTex, which is an older distribution superceded by TeXLive.
It also comes with no editor. Cyril suggested the 920 Text Editor. It is not classified as TeX (all apps that Cyril has seen under category Latex Editor are unusable, Emacs for Android is not as configurable, but vi affectionados can find something to their taste, like VIM Touch) , it is a programmer editor that hightlights syntax of a language, and you can choose TeX in the language option.

We also discussed TeX Live.
According to Wikipedia,
TeX Live is a free software distribution for the TeX typesetting system that includes major TeX-related programs, macro packages, and fonts. It is the replacement of its no-longer supported counterpart teTeX.
The good news is that, in addition to the above, TeX Live is now available for android, although the android port is still in an experimental phase. One needs to download and install the app, copy your TeXLive installation from Windows or Linux to  the /sdcard/texlive/ path, unpack  tl4a-2013-06-18.tar.xz, and use its content to replace the Windows/Linux binaries.

GmailTeX: There is also a way to write TeX in gmail - if you use Chrome as interface. Experiments by Cyril show that it does not work all the time, and when it does not, it shows the source TeX code instead. It can be installed via chrome://extensions and here is an example of what one can do
It works like this: once you press F8, Chrome translates TeX code into MathML. It is only the sender who needs to have  Gmail TeX installed. The recipient can be anyone, but whether they see the formula or TeX code depends on the mail client.

Lyx: an open source document processor based on LaTeX.
LyX (styled as \mathbf{L}\!{}_\mathbf{\displaystyle Y}\!\mathbf{X}) is an open source document processor based on top of the LaTeX typesetting system. Unlike most word processors, which follow the WYSIWYG ("what you see is what you get") paradigm, LyX has aWYSIWYM ("what you see is what you mean") approach, where what shows up on the screen is only an approximation of what will show up on the page.
A quick start guide for LyX. 
There are three shortcuts to remember.

  1. Control-M opens a math edit box where you write TeX. Some practice is required.
  2. Control-Shift-M does the same thing for display math.
  3. Control-R compiles and shows PDF.

A tip for people who do not like how the Math box behaves: write your TeX code as you want it, highlight it and press Control-M. This will show the graphics. You can always get it out of the Math box to edit.

The main non-common editing element of LyX is environment. Every portion of text in LyX is marked up with some environment modifier. It can be Theorem, or Proof, or Standard for the bread text. It can also be Itemize, or Author, or Abstract, or Frame if you prepare a Beamer presentation. Only those environments show in the menu that are supported by the Latex packages that your file invokes. This is set automatically by the file template, or manually in the preamble setting in the document menu.

LyX export to HTML makes beautiful MathJax files.
When you start a new file for anything other than report, exam or grant proposal, better use a ready template or import your earlier TeX file. All your personal TeX macros will be adopted (and you can define more in the Document menu). Note that while export to TeX works flawlessly, import from TeX usually does not make a pretty LyX file.


LaTeX in blogs etc. Wordpress has a long standing reputation for formulas in the text. Google has been experimenting with LaTeX in the most ambitious ways, but some of its experiments that it showed off previously are not seen anymore. Cyril retracts its reference to Blogspot. Firstly it was a mistake, and TeX code was accepted by Google Docs. not by Blogspot, and secondly, it was taken away in later versions of Google Drive. Google's online compiler, Latexlab , still exists, but is not recommended. For people who believe in virtues of online compilers, Sharelatex (former Scribtex) remains a better choice.

Last but not least, I'd like to give a hint on how to use sound on our ill-maintained computer system. We used to have sound but, according to the system administrators, there is no way to have it now. Why, I don't know. Other departments do have sound on their machines. However, here is a solution, not a perfect one, but a solution nevertheless:
  1. Press Control-F8
  2. Unselect "full screen"
  3. Minimize thinlink
  4. On the top left, click on Google Chrome
  5. There, you can have sound.
  6. For example, you can tune in to one of the best classical music radio stations in the world, Radio Swiss Classic. (Thanks to Salva Rodriguez-Lopez for this hint!)

Saturday, October 19, 2013

November meeting - planning

Theme: computers going modular.

While operating circuits (CPU, memory, graphics) tend to be more and more integrated, they are getting now into a small box, while all other components becoming more and more often detached. We will review:


  • SOC (systems-on-chip), which are now transiting from Android to Linux (Raspbery Pi, MK802 family and Cubox); We shall demonstrate a Linux server smaller than one crown coin.
  • IR versus BT portable keyboards; 
  • Removable storage (external hard drives, SD cards and flash memory);
  • Specialized network devices (NAS, printservers) are now more often a part of the router;
  • Smartphone as desktop: connecting smartphones with monitors, keyboards, mice, LAN and hard disks.

Other topics raised by members:

  • We will also start in earnest discussing SIP setups, something we did not get to taking up on the October meeting. 
  • Key bindings. What is worth to remember (Ctrl-Z, Alt-Tab, F5 and Ctrl-Alt-Del?).
  • Help! Experts in computer visualization  of functions and manifolds are badly needed. We did not plan it to be the subject of the club, but if anyone is an expert, can they please stand up?
  • Takis may tell how to make visualizations with maple and xfig.



Friday, October 11, 2013

Next meeting, Oct. 18, agenda

The next IT-club meeting will take place on Friday, October 18, 3:15, room Å74118. Theme of the meeting: new TeX environments.
Come few minutes earlier if you want to discuss setup on your personal laptop/tablet/phone. Coffee will be served. 


We plan some hands-on walkthrough for selected connectivity issues, such as

  • Eduroam configuration in different OS's;
  • Http proxy setup in browser settings;
  • Tips for setting up a SIP account; 
TeX environment topics:
For your own LyX install, all you need is to have a working Miktex or Texlive  and run the lyx installer (from LyX.org) or setup the LyX meta package for Linux.

Also, let's do some troubleshooting. For example, I have encountered the following problems:
  1. I don't know how to connect to the Internet from the Ubuntu partition on the laptop. (From the  Windows partition it works.)
  2. I frequently use http://libgen.org/ (and so do many others). However, downloading to a smartphone or to the ASUS tablet given to us by the department keeps failing. Solution: change on the frontpage of libgen.org the download type to "display  in browser". It won't display in browser on a mobile device of course, but a copy of the file with very descriptive name get.pdf will land in your Downloads directory. Apparently the "download type" appeals to the browser API, so if the browser does not have the invoked command, it gives a default response, which for a fancy command is "i donno" and for a simple command is the nearest similar action.  

Sunday, September 22, 2013

Summary of first meeting

We discuss lots of things, and, frankly, I'm not sure I can remember all of them (although I took notes) or remember them correctly. I take the first stab at writing down a summary.  Please feel free to edit!

File storage on the Internet
There are three companies providing storage:
  1. Google Drive 15GB
  2. Dropbox 2.5 GB (can be increased by inviting people)
  3. Box.net 15 GB
Both Dropbox and Google Drive, if you install their sync application, can be used not only through the browser, but will also appear as a folder (directory) in the local filesystem, on the laptop. So we can treat it as part of the laptop. We can work on the laptop, do LaTeX, whatever, and current copies of the files will be created both on your laptop and in Dropbox and Google Drive (as long as sync program is running - they start automatically, unless you decide to change it). The advantage of Dropbox is that it is installed on the department's Linux system (Google Drive has sync app for all major OS except Linux, where one has to use a 3rd party sync program, for example Insync, with the risk that one day it will get disconnected by Google).  The advantage of  Google Drive is the size. Box.net used to be ahead of competition in terms of free space.

Portable apps   portableapps.com
Provides packaged Windows software suitable for use on portable media, without leaving settings files on the host computer. This is useful, for example, if the only machine in your disposal is a PC in an internet cafe and you need to TeX. Is highly valuable for giving the list of most reliable and nimble open source programs for all needs.

Thinlinc thinlinc.com
We all agree that thinlinc is great and we all use it! It enables us to work on our office computer, using a Linux environment, but remotely. Personally, I feel it is the best thing on computers since the good old days (the 80's) when computers were much better than now. There was only one computer and I used to log into that to work. Why would anyone want to bother with personal computers when it comes to doing work, i.e., Mathematics? Personal computers were created for people who play games, watch movies, etc...
These are pros, but there are some cons: if you need to print a file at home and it is on the work computer, it has to be in the Dropbox folder, or else has to be fetched by sftp. Another disadvantage is that a large pool of users means that system administrators prevent the system from crashing too often by a conservative choice of programs and libraries. For example, one could get from a collaborator a file written in LyX 2.0, and not be able to open it because the university version of LyX is 1.6. 

VPN
VPN stands for Virtual Private Network. I don't know what its full capabilities are, all I know is that it helps us access all kinds of libraries normally not accessible from outside the university (which pays for their use). The use of VPN is unreliable, however, and the guys in Uppsala have not made it very clear. There is a web page at Uppsala Univesity here. Once I followed their instructions and it worked fine. Now it does not work!

However, there is an alternative: The PROXY METHOD!
Here is how it works, from Firefox (recent versions, any OS).
Go to Menu
Select Options
Then Network
Then Settings
Select Manual Proxy Configuration
On the HTTP Proxy field write:   www.proxy.se
On the Port field write:  3128
On the No Proxy For field write: localhost, 127.0.0.1
That's all. Then, every time the browser is on, it asks as for ID and PASSWORD.
The ID is the so-called University Computer ID. The one used to access sites like applicants'files.
The PASSWORD is the so-called PASSWORD B.
This information can be stored so we don't have to type it again.
Proxy can be configured also on Internet Explorer and Chrome (Win/Mac/Linux), or on the level of the system (which, however, will send all your private internet traffic via UU). On Android one can set up the proxy in Firefox after installing, via Firefox Extensions menu, the proxy plugin, and in Android 4.x there is also a proxy option for a specified WiFi connection.

AMS Mobile Access
The American Mathematical Society provides access for mobile phones. It works for anything that runs iOS or Android. The permission is issued when your device is connected to AMS from UU. The permission lasts for 90 days and then we have to do it again, from the UU connection.


IT Support at Uppsala
If there are problems we can send email to
admin@math.uu.se
OR
helpdesk@uu.se
From experience, they may ignore emails, even though they reply they are dealing with the problem.
There is a phone number however. It is:
4717890 (weekdays 8:00 to 12:00 and 13:00 to 16:30).
Problem: They never answer the phone if you don't ring from an internal university phone.


Mail client for Windows: SYLPHEED
The university mail client is horrible, nobody wants to use it. Therefore, we need an alternative.
Sylpheed is a light-weight no-frills program, that might be a better choice than the good-old thunderbird.


Another method is GMAIL.
You can tweek the gmail so you can have a university account associated to it. I don't know how to do it, someone did it for me at some point, and it works.
Caveat: Every time you have to send an email to an alias like alla@math.uu.se, the email WILL NOT GO THROUGH, and you WILL GET NO WARNING IT HAS NOT GONE THROUGH, unless you select the gmail account associated to the university.


Mail client for android: K9


SIP accounts for teleconferencing
High end smatphones have option to select it. Must contact SIP provider.
It appears that this is similar to the UK Telediscount - type methods.


LYX: A Wisiwyg LaTeX
To be discussed later.


Friday, September 13, 2013

First meeting

Scheduled for Friday, 20 Sept. 2013 in Å7:4118

Coffee pack of Italian (Brazilian grown, 100% Arabica) coffee kindly provided by Cyril Tintarev!

Click here to see the list of those who replied to our invitation.

Thursday, September 5, 2013

Wonderful idea

In a world that keeps changing around us, and in an environment where we are being subject to technological innovations regardless of whether we like it or not, we need to stay informed.