Ana içeriğe atla

Kayıtlar

Fedora 36 latex beamer error

 Today I tried to compile a .tex document with a futile attempt.I received an error stating that beamer.clt file not found. I checked its installation, reinstalled, found its location on the disk with no help. Fedora seemed to have a bunch of texlive packages installed. When I tried to remove beamer.cls from my computer, it performed a huge deletion of files including those I have never thought to be touched (R installation and texmaker). I believe this was dute texmaker's installation. Even RStudio seemed to disappear. Anyway, I reinstalled all but the problem continued (as I suspected beforehand). After some hours of searching for a solution, luckily I found this little code to bring back beamer into the sce tlmgr install beamer I also reinstalled babel using this command. Now it works as expected.

Hayat dersi

 55 Yaşını geçen bir adamın Doğum Gününde Yazdığı, Herkesin Okuması Gereken Hayat Dersi; . Deneyim, her türlü maddiyattan daha değerlidir. . Hayatınızda yapacağınız en önemli kariyer seçimi, eş seçiminizdir. . Parayla ilgili üç yetenek vardır: Onu kazanmak, elde tutmak ve büyütmek. Bunların üçü de birbirinden çok farklı yeteneklerdir. . Bu konudaki tüm bilimsel çalışmaları bir kenara bırakarak söyleyebilirim ki, sekiz saatlik bir uyku çok önemlidir. . Yiyip içtiklerinize dikkat edin ve her geçen yıl porsiyonlarınızı biraz daha küçültün. Yaş ilerledikçe ne kadar spor yaparsanız yapın bir faydası olmuyor. . İnsanların sizin hakkınızda ne düşündüğünü önemsememek için çaba sarf edin. Bu, benim için hâlâ çok zor ama öğreniyorum. . Öfke aslında gerçek bir his değildir; onu yaratan korkudur. Öfkelenmeden önce sizi korkutan şeyin ne olduğunu düşünün. . Her beş senede bir hayatınızda radikal değişiklikler yapın. Aksi halde hayat oldukça sıkıcı olabiliyor. . Her gün yaratıcılığınıza belirli ...

Fedora 27 Generic release interference with Virtualbox

Recently I upgraded to Fedora 27. Everything was smooth except that Oracle Virtualbox stopped working after some time. I first thought that this is a problem with Virtualbox and thought of even upgrading to new version and do everything from scratch. But it wasn't and I was lucky not doing it. I realised that it was Fedora generic-release to be blamed. A simple search has led me to this reddit page and it was easy to switch back to fedora-release. Virtualbox started working as it did before.

Dnf fastestmirror

I was trying to upgrade Fedora 24 to 25. The mirror dnf using was poor. I interrupted the download process many times with the hope that it will connect at a much more speed. But at last I decided to change the mirror that dnf uses. While searching for the correct code to do this, I noticed that there is a plugin that forces dnf use the fastest mirror (fastestmirror). It was already installed in my box but dnf was not instructed to use it. Hence a simple line fastestmirror=true in dnf.conf solved my issue.

Beautiful Soup get contents of a tag

I was embodying multiple body tags into a huge body tag to make a web page printable more efficiently. I used bash and python BeautifulSoup to get the web pages and parse them. Actually all of the job could have been done with python BeautifulSoup as the name suggests, but because I used some sed stuff previously, I did not attempt to change them into python equivalents (this requires usage of some libraries like urllib2 which I did not use since much time). By using such a code str(soup.find('body')) BeautifulSoup returns all the contents of body including and tags. Because I aggregate these tags into a new one, multiple tags appear in the new html document. This might cause some CSS problems in the presentation of the document, I propose. Thats why I needed to eliminate those superfluous tags.  This page from stackoverlow has helped me.  The required code was like that   body=body+''.join(map(str,soup.find('body').contents)) I really like  Beauti...

Html to Pdf conversion with wkhtmltopdf

Still need to convert html to pdf. I was looking for a batch converter. wkhtmltopdf seems to be a nice converter. It has many options including batch converting (ie. converting multiple html pages into one pdf file) and it does its job nicely except some pitfalls. When installed from standard Ubuntu repo, a cropped version is installed which does not have the ability of batch conversion. After you install full version from its website, it gives you broader options. By the way, since the web pages I needed to print to pdf contain many mathematical formulas, wkhtmltopdf conversion ability was limited and I preferred not to use it. Instead I used some bash hacking, and Firefox's print to pdf file option with Stylish addon as I have described in a previous post .