I made a presentation today that I will have on Tuesday. The audience will be pupils from a local secondary school, and the topic will be basic criminology. You can see the presentation from here.
I recently installed Fedora Linux on my sons gaming computer. He has had Ubuntu on it before, and before that Arch Linux. Arch was the first Linux operative system I installed for him, since I thought he would learn from using it. And he did. The reason is that Steam constantly crashed when updated, and he had to fix it. After a while he wanted to move on to Ubuntu because he didn’t want to fix things and because he could see on Steam that games are tested on Ubuntu. After using Ubuntu for maybe 6 months we moved over to Fedora. The main reason is that Fedora is the distro I generally use.
I have never had problems installing Fedora. The only thing that can be a little bit tricky is you have a Broadcom chip for wifi. But that is not either a big deal.
But this time we had some problem. To install Fedora was easy, but the problem was that the computer restarted from time to time. This was particularly annoying when the computer was updating. It can be several reasons why a computer restarts — for example a bad power supply or some kind of problem with the motherboard. However, both the power supply and the motherboard are rather new, and everything just worked under Ubuntu. Another cause can be problems with the driver. This was my guess as well so a changed the hdmi-cable going to the screen from the graphic card to the motherboard, and everything worked. After installation and updating I installed the Nvidia driver (from RPM-fusion), shut down the computer, changed the hdmi-cable back to the graphic card — and hoped for the best. And it worked. So if you have a dedicated graphic card and you are installing at new operative system, flip the hdmi-cable over to the motherboard until you have installed the proper drivers.
… but some words of wisdom:
slow is smooth… smooth is fast!
I have MacOS on my main computer. I mainly use Fedora Linux on this computer, but since it is a Mac computer it is good to have MacOS on a partition. The reason is that firmwares on these machines are updated inside the operative system.
Today I decided to update the operative system to the latest MacOS Mojave. It is doing this right now. But I have to say, updating MacOS is so painfully slow. The same is the case when installing MacOS. It takes several hours. This is painful when using Linux, which only takes maybe 15 minutes to install.
I just, for fun, made a site to publish some handy R-codes. I have just ordered them alphabetical order. Some of the codes I don’t use anymore. Here they are anyway!
Now I have produced and published several presentations — mostly on sociological theory. Check them out!
A couple of years ago I stoped using graphical interface such as libreoffice to do my presentations. Instead I used Latex and Beamer. The reason is that I work much faster if I don’t have to consider how it looks, but can concentrate on the content. On this website you can find some of my presentations here.
Recently though I found out about ox-reveal and reveal.js. I will from now on do my presentation using these instead. The reason is that it is just so easy, and the presentations is OK. It is futher easy to use gitlab or similiar to produce the presentaion on the internet.
You have to download the ox-reveal package from github. You mave have to install org-mode from elpa as well. If so follow the instruction. Be especially careful with not having org-mode on any buffer open when you do the installation.
After downloading ex-reveal put the .el-file somewhere and make a load path to it in you init-file. I made a directory in my .emacs.d-directory and put in the following code.
(add-to-list 'load-path "~/.emacs.d/ox-reveal")
Then you have to require ox-reveal
After you have done this you need to point to the path to reveal.js. In my init-file it looks like this.
(setq org-reveal-root "file:///home/dala0001/.reveal.js")
There are several themes built in reveal.js. Go to your reveal.js, css and theme. To use them just put the following code into your org-mode-file:
…where beige is the theme.
When you are done with your presentation you export it as an HTML using C-c-e R B. You can then use the html-file when doing the actual presentation.
You can further put it on the internet. The easiest way to do this is to use gitlab, github or similar. If so it is a good idea to use the reveal root (the css that is on the internet). Just put the following into you org-mode-file:
I had Void on my secondary computer for a long time. However, the computer was partitioned in a problematic way — there was no room in root, while a lot in home. I therefore decided to try something else — and I have never installed Debian on a real machine (only in virutal machines). I installed the stable version and choosed xfce as desktop enviornment, and later on installed xfce4. I must say that computer runs great for the work I do on it.
Reading big data into R can take some time, since R reads the data directly into the Ram-memory. If the data is big it can even happen that R crashes. Things has become better, but this is still a problem. I have 16 GB in Ram and seldom have so big data that it does not fit into the Ram. But while using R with rather big data, it may not be a good idea to be running other heavy programs at the same time. It is for example not recommended to ”virtualize” other computers, if you happen to do that (I have Windows as a virtual machine).
But even though data may fit, it can still take some time to read it into R. A trick around this is to use the data.table package. The data.tabel function reads the data as a table instead of data.frame — which takes a lot lesser time.
Install the package
wd <- fread(dataname.csv)