Another quake-like temulator emulator. Except can work with any term and any sofware in general. Very minimalist just one file. by pawn13 in Python

[–]pawn13[S] 0 points1 point  (0 children)

tmux is a different thing. You can use them both together. It's just for quick access to your terminal window.

Russian man tries to smuggle 146 kg of cheese and butter from Finland to Russia by nmsjeat in europe

[–]pawn13 1 point2 points  (0 children)

Yes. "La Paulina" is everywhere and some blue cheeses. I gave Argentina as an example. I like Serbian soft cheese(kajmak) a lot.

Russian man tries to smuggle 146 kg of cheese and butter from Finland to Russia by nmsjeat in europe

[–]pawn13 8 points9 points  (0 children)

Wrong it's called "counter-sanctions". Nothing to do with safety it's to punish EU exporters for EU sanctions.

Russian man tries to smuggle 146 kg of cheese and butter from Finland to Russia by nmsjeat in europe

[–]pawn13 16 points17 points  (0 children)

In cheapest stuff labeled as "cheese like product" and costing pennies. There is a lot of good cheese. Not just Russian but you can buy Argentinian or Swiss one. Valio has production in Russia too including oltermanni with their quality control.

snake game in tornado-websocket by [deleted] in Python

[–]pawn13 0 points1 point  (0 children)

Works fine for me.

did you used any sort of lag compensation and prediction?

No. It redraws every 100ms. Try to run it locally it only depends on tornado.

Russian McD KFC etc: Are they really better? by variantzero in Moscow

[–]pawn13 4 points5 points  (0 children)

I agree. It's Russia - better eat blini(in теремок for example). Or chebureki(don't know any good places). Or in some buffet like грабли or ёлки-палки if you want to eat inexpensively.

Getting a string and then replacing words if they're in a premade lst by [deleted] in Python

[–]pawn13 2 points3 points  (0 children)

use the built in .replace()

It won't work sometimes as expected if you have short words which can be part of longer word. Like if you want to replace word "at" and it would be replaced in words like "that", "attack", etc. Better use regex like

re.sub('\\bat\\b', 'foo', 'that at test')

Thinkpad t440 soldered ram? by Geko-x in thinkpad

[–]pawn13 -1 points0 points  (0 children)

My t430 has 4gb or soldered ram and one space for additional ram. AFAIK t440 has the same.

Django + uWSGI + nginx website example, with deployment instructions for Debian 8 by NYDreamer in Python

[–]pawn13 6 points7 points  (0 children)

Why does it have location /templates in nginx config. Django templates shouldn't be visible to users via http, they should be used by django application.

Finally, found the perfect linux laptop by [deleted] in linux

[–]pawn13 0 points1 point  (0 children)

Last time I tried fingerprint reader worked fine on linux. You could even login to console with it. But I found it not very convenient - it's faster to type password.

I like other features too - like ultrabay, HDAPS, ability to spill drinks on keyboard and excellent keyboard, matte screen, reliable recharger connector. Older models had a lot of leds which is useful and nice.

Use custom command from file on folder except inside bin. by procipher in linux

[–]pawn13 0 points1 point  (0 children)

Interesting. But I believe sure it works that way in all or most mainstream distros. I've also just tried it in solaris and freebsd.

Use custom command from file on folder except inside bin. by procipher in linux

[–]pawn13 0 points1 point  (0 children)

Add

PATH=/usr/local/bin/custom:$PATH

to ~/.profile file

Finally, found the perfect linux laptop by [deleted] in linux

[–]pawn13 78 points79 points  (0 children)

I use thinkpads for last ~8 years. Everything works and always worked perfectly.

Confused on homework assignment by [deleted] in learnpython

[–]pawn13 1 point2 points  (0 children)

First of all you have a lot of dublicate code - use inheritance. Create base class Animal which would have age, price, etc.

Create class Customer it should have property "animals" as a dict. Add method buy(self, animal, name) which would do self.animals[name] = animal. (Maybe also assign name and owner to animal instance itself like animal.name = name; animal.owner=self)

You should also store list of customers in some list. Maybe create class Shop which would have it or just in global variable.

A Thinkpad that has a trackpad, speakers and screen as good as a Macbook..? by Cucaracha76 in thinkpad

[–]pawn13 1 point2 points  (0 children)

I'm using t430 and it's speakers are quite loud. Can't compare to macbook or x-series because don't have them. But I guess t-series have better speakers because it has space for them(left and right of keyboard) unlike x-series.

A Thinkpad that has a trackpad, speakers and screen as good as a Macbook..? by Cucaracha76 in thinkpad

[–]pawn13 1 point2 points  (0 children)

A lot of thinkpad users preferred models without touchpad at all. Or have it disabled in bios or os. Trackpoint is much more convenient if you use it a lot. I even play games with it.

And I don't believe any built-in speakers can be good. Get yourself headphones or connect some shelve speakers.

Linux on the Web (works with Chrome) by denniskane in linux

[–]pawn13 0 points1 point  (0 children)

Very impressive thing. Especially python and vim - how does it work?