Ana içeriğe atla

Kayıtlar

Hanging around with i3wm

My late favorite windows manager is i3wm and I have been using it since a year I believe. I am getting used to  controlling and managing it.  It's a nice lightweight, minimal window manager not so easy to manage. It has a very few desktop applications and very basic ones. Since I don't want to install a more complicated manager like KDE or alike, I needed to rely on those desktop applications such as feh for  image viewing, ranger for filesystem manipulations, pavucontrol for sound management and xrandr for display management. I have almost installed a satisfactory amount of such applications to perform minimal desktop needs and gained a lot of experience with i3wm conf file, binding keys to specific needs like using two monitors in different scenarios.  The last modification I made was writing 3 different xrandr commands to comply with 3 different tasks, turning on and off the second HDMI monitor, and mirroring a Display port more resolution monitor to the second lo...

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...