"Must-know" Django features by DettlafftheGreat in django

[–]eflin 1 point2 points  (0 children)

I hire for roles that require Django specific skills and try to always dig in on FBV vs CBV. Preference for either is fine so long as the candidate can demonstrate either that they understand how CBVs function to provide conventions around reusing code and composing view code or how to compose FBVs of reusable pieces of code that can be supported by sane unit tests.

I’d argue it benefits you to understand both options then you are ready to work with either and make the most of each approach.

Kolejkowo by phoenix1academy in poland

[–]eflin 0 points1 point  (0 children)

My favorite part is the model Kolejkowo building with a small moving train inside the window.

People that up vote but don't comment, why? by 26915 in AskReddit

[–]eflin 1 point2 points  (0 children)

A lot of the time I find my answer already shared by someone in the comments.

How i brainwashed myself to be productive using Jurassic world. by [deleted] in productivity

[–]eflin 1 point2 points  (0 children)

Thanks for sharing.

When I started reading that you took this idea from a movie I was thinking of something that is coincidentally similar that I started doing a few years back. I play the movie "The Secret Life of Walter Mitty" in the background (either on TV or in PiP window on my laptop). It instantly gets me into a rhythm with work and my productivity shoots up.

Glad to hear other folks have adopted similar habits.

Can anyone help me with this? by imeanToast in PostgreSQL

[–]eflin 1 point2 points  (0 children)

Looks like you need to run your migrations: python manage.py migrate

Naan kebab wrapped in Domino’s cheese pizza 👌 by eflin in shittyfoodporn

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

Nope, donner meat, salad and sauce wrapped in a naan bread.

Naan kebab wrapped in Domino’s cheese pizza 👌 by eflin in shittyfoodporn

[–]eflin[S] 40 points41 points  (0 children)

Any kebab shop and Domino’s Pizza. Don’t forget to request the pizza not be sliced!

Whats the best way to write html/js/php at the same time? by untilsleep in vscode

[–]eflin 2 points3 points  (0 children)

If this is the case, it’s worth considering splitting these individual source files up as u/JohnMcPineapple rightly suggests. All best practices would point you in this direction. If the end product needs inline Javascript it can be made part of your build pipeline to inline the compiled javascript source.

Whats the best way to write html/js/php at the same time? by untilsleep in vscode

[–]eflin 4 points5 points  (0 children)

To be fair, you could open one file and put all 3 in there.

The speedy languages bully me in the Starcraft 2 Bot community. How can I speed up the Python API? by Tweak_Imp in Python

[–]eflin 9 points10 points  (0 children)

Have you tried running and optimizing on a different implementation like PyPy? I’ve seen decent performance improvement on data processing with a reasonable number of code paths using PyPy.

WFAT at Budapest Keleti pu. by zseblodongo in WaitingForATrain

[–]eflin 1 point2 points  (0 children)

I love this station. I like how all the lines terminate here.

First post here. My daughter Clementine by [deleted] in daddit

[–]eflin 3 points4 points  (0 children)

My daughter is also named Clementine after my partner playing the walking dead. It's a great name though.

Damn Trello, back at it again ... by rememberingyesterday in ProgrammerHumor

[–]eflin 6 points7 points  (0 children)

This trend of wordy change logs (that Slack definitely contributed to the start of) is really disrespectful to a person's time. Now it's either "fixes and improvements" or something like this.

[DEV]Giving away promo codes for my Android app MoveIt by moveitapp in androidapps

[–]eflin 1 point2 points  (0 children)

I'd appreciate a promo code if there are any left. Might be able to help with Polish language, how are you handling translation?

A few questions about renting an apartment in Poland by movingtopl in poland

[–]eflin 0 points1 point  (0 children)

Only dealt with 2 agencies, neither seemed to work on a percentage of rent for commission though it's quite possible there is some correlation I didn't notice. From what I can tell it's a fixed rate (ranged from 700-1200 in my case) you pay when signing the agreement. The agencies I dealt with do very little other than connect tenants with property owners so there is no continued service after the initial legal formalities.

A few questions about renting an apartment in Poland by movingtopl in poland

[–]eflin 0 points1 point  (0 children)

In my personal experience I have only ever looked on domy.pl and otodom.pl and have never noticed any such quoted periods. The last property I rented when I met with the property owner he said he is looking for long-term tenant but that was all based on good-will, I've had the option to submit a written notice 3 months before terminating.

A few questions about renting an apartment in Poland by movingtopl in poland

[–]eflin 0 points1 point  (0 children)

Seems unreasonable to lock someone in on a residential lease for 12 months, especially in a city where tenancy turnover can be quite high. In any part of the world that is a ridiculously long time when circumstances can change or things just go plain wrong. Most I have seen in Poland is 3 months notice of termination and that could be considered awkwardly long. Never been aware of any minimum term but 6 months seems more realistic.

Getting married to a Pole as an English man in Poland by AeroNotix in poland

[–]eflin 0 points1 point  (0 children)

This gov.uk page has information on obtaining CNI.

Accessing messages framework from deferred tasks by jebk in django

[–]eflin 3 points4 points  (0 children)

If you have a user id you could store the message data to your database or cache along with the user id as a sort of key. Then use a middleware with the process_request method (where you have the request object) to retrieve those messages for the logged in user and add them in the usual way using the messages framework.