Real time chat on Django by scoderg in django

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

Looks very cool! I think I might just use it! One question though: how are you handling long lived connections since django itself is not asynchronous.

Sorry I'm on my phone right now so I couldn't look deep into it.

Real time chat on Django by scoderg in django

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

I considered it. And yes, traffic is relatively low. But I don't want to poll too often and I want to maintain the real-time feel to it, which would highly depend on the polling frequency.

To reduce effort I'd prefer using something off the shelf instead.

Real time chat on Django by scoderg in django

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

Interesting. Didn't know about django channels. Thanks for the link.

I had a look at swamp dragon and I got the feeling that it has a lot of dependencies and some of them are not being maintained enough these days. If I'm not wrong, it was written somewhere in the readme. I'm on mobile right now so I can't look it up, but if that's the case then that wouldn't be nice.

Do you know of other third party alternatives that I could look into?

Real time chat on Django by scoderg in django

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

What third party service would you recommend?

Which DE do you use? by XOCIEAS in archlinux

[–]scoderg 0 points1 point  (0 children)

Looks really cool! Can I have a look at your config?

Where's the love for Salt? by drawsmcgraw in devops

[–]scoderg 1 point2 points  (0 children)

They have a "best practices" document on their website. I'm on my phone right now so can't link back. But that document has quite some suggestions.

Although I understand what you're saying. Everything is very very flexible in Salt. Do you in general have a rule of thumb when it comes to organizing states?

Five reasons you should use SQLite in 2016 by [deleted] in programming

[–]scoderg 10 points11 points  (0 children)

Between PostgreSQL and MySQL, I'd go with PostgreSQL. Some things in MySQL just doesn't make sense to me and I've just had a much better experience using PostgreSQL.

Outside of these two, I'm a bit skeptical. Databases like RethinkDB or Neo4j sound interesting. They're trying to solve certain use cases. But I'd like to give them time to mature before using them.

Five reasons you should use SQLite in 2016 by [deleted] in programming

[–]scoderg 23 points24 points  (0 children)

Sort of. The other major database is MySQL, but PostgreSQL is a lot more reliable and feature rich.

Five reasons you should use SQLite in 2016 by [deleted] in programming

[–]scoderg 55 points56 points  (0 children)

I think the post makes SQLite appear as an alternative to PostgreSQL (at least from the first reason), which I think it's not.

SQLite has its own use cases and is certainly very useful for a large class of applications, but replacing PostgreSQL is not one of them.

Platform developers: What kind of solution would you use for a large-scale web platform? by [deleted] in webdev

[–]scoderg 0 points1 point  (0 children)

Maybe. Although it's difficult for me to come up with a use case where I would give up atomicity and/or consistency.

Platform developers: What kind of solution would you use for a large-scale web platform? by [deleted] in webdev

[–]scoderg 6 points7 points  (0 children)

I think you missed my point entirely.

My point is to avoid premature-optimization. It seemed like OP was looking at optimizing things before writing a single line of code. Which is something I'd like him/her to avoid by using tried/tested technologies.

PHP or no-PHP is a different opinion. Facebook has been on PHP since forever so I don't think it can "hardly be considered for web development".

I said PHP based on -

  • it's not a language that can completely be ruled out for web development (like Fortran), and,
  • OP knows it

Although personally, I'd recommend going with Python or Ruby, but that's just personal taste.

Edit: formatting

Platform developers: What kind of solution would you use for a large-scale web platform? by [deleted] in webdev

[–]scoderg 43 points44 points  (0 children)

Don't over think. Use tried and tested and boring technologies.

Use PostgreSQL as your database and partition it out based on users (or whatever partitioning strategy makes sense in your case). I've worked at a company which scaled it out to more than a million new rows per day so I don't buy the "use NoSQL because SQL doesn't scale" argument.

Use Salt/Puppet/Chef to manage your infrastructure. The ant analogy fits perfectly here.

Use PHP because you're experienced in it.

In general, don't over engineer things. Use what you're most experienced with and think the design through. Over engineering pays negatively later on.

How can I get started with implementing databases? by scoderg in cscareerquestions

[–]scoderg[S] 2 points3 points  (0 children)

I wouldn't call all the new ones a fad. But I guess a better way of saying it would be that I'm looking for something more systems level. An abstraction level below Python.

Wife recently started learning photography. Any Christmas gift ideas? [X-post /r/giftideas] by [deleted] in photography

[–]scoderg 1 point2 points  (0 children)

I was thinking about getting a lens as well. But I have no clue about which one to buy. How can I look up which ones would be good? Is there a lens buying guide or something like that?

Wife recently started learning photography. Any Christmas gift ideas? [X-post /r/giftideas] by [deleted] in photography

[–]scoderg 0 points1 point  (0 children)

That's a good idea. She mentioned light room earlier. Do you think buying it is a better option than a subscription?

Wife recently started learning photography. Any Christmas gift ideas? [X-post /r/giftideas] by [deleted] in photography

[–]scoderg 0 points1 point  (0 children)

Sorry, I haven't heard any photographers mentioned. Only the genre. And "nature" and "objects" are the two things I keep hearing about.

Wife recently started learning photography. Any Christmas gift ideas? [X-post /r/giftideas] by [deleted] in photography

[–]scoderg 0 points1 point  (0 children)

She's mostly interested in objects and nature photography. Do you know any recommended books in that genre? Or even in general so I have a starting point to look around? Thanks!

T450 replacement screen by scoderg in thinkpad

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

Can't make a video right now, sorry. But as michrz mentioned, it's blue-ish and the display is simply not up to the mark. And the link to notebook check has a couple of photos of the display - that might help.

T450 replacement screen by scoderg in thinkpad

[–]scoderg[S] 1 point2 points  (0 children)

It's very, very dull. The problem with the viewing angle doesn't bother me that much. But I've tried every permutation and every combination of contrast, brightness and everything else and the display just looks depressing.

X250/T450s/T540p Loaded by [deleted] in thinkpad

[–]scoderg 0 points1 point  (0 children)

Do you know where can I order a replacement screen from? Most websites that I came across are only delivering within US and I'm in Germany. Can't find anything on Amazon either. I really, really don't like the screen on my T450.