Why is Ubuntu that stupid and inflates the file /var/log/kern.log.1 to dozen GB?

I was shocked to see that my 2 week old Ubuntu 18.04 system, installed on a 128GB drive, was out of space!

Got a few warnings in form of notifications of out of space, me knowing that I used probably 20GB max or even less than that.

Decided to dig in and saw that for some reason /var/log is huge, more exactly kern.log and kern.log.1. In my case:

/var/log$   sudo ls -laSh | grep "kern" -rw-r-----   1 syslog            adm              47G iul  6 23:42 kern.log.1 -rw-r-----   1 syslog            adm              63K iul 11 14:42 kern.log 

So serious question now: How can this be? How can a log file, even kernel related can get this big this fast?

And more importantly how can I stop it? Permanently? Sure I can remove it but it will grow again fast and chubby.

Also why does Ubuntu behave like this?

Stupid slicing and append question in a string

I am doing some practice and want to change ‘macdonald’ to ‘MacDonald’ However, my output is just displaying the last value that is ‘True’, which is ‘D’. How do I have the program display the full text?

name = 'macdonald'  def myfunc(name):      for x in name:         finalName = ""         if x == name[0] or name[3]:             finalName += x.capitalize()         else:             finalName += x      return finalName 

Stupid pattern lock

I can’t open some of my apps due to pattern lock. How can I remove it if I can not get into the apps. It sucks badly. Im trying and trying to connect the four dots like I did and. Well dont wanna curse, but wow can anyone help me out please. Much gratitude if U can HELP me. Vivian

PayPal are so Stupid – Let’s Bypass Those Limitations!

PayPal are the most reatrded company in the world, I have had such great fun with them.

First time I registered I submitted fake ID and fake bank statement, I manipulated everything with photoshop.

:p They verified me and I used them for years.

Unfortunately in June 2010 they banned me and sent me the usual "We want to part ways" email.

But since there are no real alternatives to PayPal, I had no choice but to use proxy and open another account with a different card.

PayPal log your ip…

PayPal are so Stupid – Let's Bypass Those Limitations!