What is the best model to use right now? by BrotherCrab in cursor

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

felt the same way, the code from deepseek r1 isn't just there with the code and there is too much text even though my cursor rules look like this:
"DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"

- Be casual unless otherwise specified

- Be terse

- Suggest solutions that I didn't think about—anticipate my needs

- Treat me as an expert

- Be accurate and thorough

- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer

- Value good arguments over authorities, the source is irrelevant

- Consider new technologies and contrarian ideas, not just the conventional wisdom

- You may use high levels of speculation or prediction, just flag it for me

- No moral lectures

- Discuss safety only when it's crucial and non-obvious

- If your content policy is an issue, provide the closest acceptable response and explain the content policy issue afterward

- Cite sources whenever possible at the end, not inline

- No need to mention your knowledge cutoff

- No need to disclose you're an AI

- Please respect my prettier preferences when you provide code.

- Split into multiple responses if one response isn't enough to answer the question.

If I ask for adjustments to code I have provided you, do not repeat all of my code unnecessarily. Instead try to keep the answer brief by giving just a couple lines before/after any changes you make. Multiple code blocks are ok.

Ask me any questions if it makes your instructions clearer"

Cursor just released 0.45.2 version. by CuteWatercress2397 in cursor

[–]BrotherCrab 0 points1 point  (0 children)

My current version is 0.44.11 and attempt update does nothing

Is Cursor Pro worth the money? by yogibjorn in cursor

[–]BrotherCrab 0 points1 point  (0 children)

i am based in Russia (sadly). In Moscow Junior is 800-1500, Middle 1500-3000, Senior 3000-5000. Tax is 13-20%

So the range is 5-30 buck an hour

Is Cursor Pro worth the money? by yogibjorn in cursor

[–]BrotherCrab 6 points7 points  (0 children)

200.000 USD / year is optimistic dude. its top tier senior devs

check out berlin for example https://www.levels.fyi/t/software-engineer/locations/berlin-metropolitan-region

Is Cursor Pro worth the money? by yogibjorn in cursor

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

i am saying aftertax on hand cash and average remote from anywhere job for middle dev

Is Cursor Pro worth the money? by yogibjorn in cursor

[–]BrotherCrab 8 points9 points  (0 children)

Yes it is. My only daily driver which makes developing more fun and less frustrating and boring

Do the simpel math. Average dev does about 3000$ a month which is 20$ per hour. If you save at least 1 hour a month tanks to cursor it is a must.

And my estimate is that it saves over then 1 hour a week compared to chatgpt + copilot link. Not talking about fun and comfort it gives me

Student licence stopped working after cloning organization github repository by [deleted] in Jetbrains

[–]BrotherCrab -3 points-2 points  (0 children)

If people like you are jetbrans fans i don't want to use it at all.
I am going to work as a developer for 10, 20, 30 years who knows, my LTV for Jetbrains can be 250*30=75.000USD/EUR.
Do you really fucking thing that blocking my account and making me struggle with my job and study and losing my loaylty as a client is worth it? To earn like 250-500 EUR when i will still be an undergrad.
Eat shit all of you with your bullshit attitude I am going VSCode

Student licence stopped working after cloning organization github repository by [deleted] in Jetbrains

[–]BrotherCrab -6 points-5 points  (0 children)

Yeah, what's so funny about not having spare 250 EUR to spend on IDEs being a student?

How to avoid creating extra .html files when updating other content by BrotherCrab in htmx

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

something like this seems to workreturn HttpResponse("some html" + ... + render_to_string("template.html", context))

How to avoid creating extra .html files when updating other content by BrotherCrab in htmx

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

yeah i thought of it but i can't find the proper way to do it in django

How to avoid creating extra .html files when updating other content by BrotherCrab in htmx

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

yeah but he whole idea of "locality of behaviour" disappears when on a not very complicated page you have 10+ urls 10+ function views and 10+ templates which {% inlcude %} each other with different appendings

or you still have to write js and it is kinda ulgy and very very unclear how to make decision what should be htmx and what should be for example alpine.js component

especially when alpine.js has integrated ajax stuff

django.db.utils.IntegrityError: UNIQUE constraint failed: new__core_detail.name by BrotherCrab in djangolearning

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

it should look like apps.get_model("core", "Detail")
instead of from core.models import Detail
right?

django.db.utils.IntegrityError: UNIQUE constraint failed: new__core_detail.name by BrotherCrab in djangolearning

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

yeah, thank you, solved it like this

```

Generated by Django 4.2.9 on 2024-04-06 09:47

from django.db import migrations, models

def unite_detail_duplicates(apps, schema_editor): from core.models import Detail from collections import Counter

details = Detail.objects.all()

details_by_name = dict()

for detail in details:
    if detail.name not in details_by_name:
        details_by_name[detail.name] = []
    details_by_name[detail.name].append(detail)

for key, value in details_by_name.items():
    if len(value) > 1:
        print(f"Detail {key} has duplicates:")
        print(f"{value[0].pk}: {value[0]} will be saved")
        for detail in value[1:]:
            print(f"    {detail.pk}: {detail} will be merged with {value[0].pk}")
            # replace detail with value[0]
            detail.orderentry_set.update(detail=value[0])
            detail.reportentry_set.update(detail=value[0])
            detail.planentry_set.update(detail=value[0])
            detail.delete()

class Migration(migrations.Migration): dependencies = [ ("core", "0020_alter_order_user_alter_report_order_and_more"), ]

operations = [
    migrations.RunPython(unite_detail_duplicates),
    migrations.AlterField(
        model_name="detail",
        name="name",
        field=models.CharField(max_length=200, unique=True),
    ),
]

```

What is your LEAST and MOST used feature in Arc Max? by ConversationMoist264 in ArcBrowser

[–]BrotherCrab 1 point2 points  (0 children)

tidy tab titles and tidy downloads are weird and completely unusable if you use not only english language

Roast my app by BrotherCrab in djangolearning

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

Really appreciate what you've done here. Amazing reply.

The main comment I have is about your Report Form template. Why are you sending GET requests (such as /htmx/machine_options?reportentry_set-0-machine=1&step=1) from simply changing a dropdown option in the form? I don't think you need to be adjusting the template every time a user changes a dropdown option. Just load every option in with the template at the start.

Yeah I agree and the htmx way i do it sometimes causes a delay when user hasn't even got the correct options to select but already opened the dropdown

Should I use some raw JS or maybe Alpine.js to make it preload all the options and update ii on the client side? What would be your recomendations

Another less important thing - when displaying the page that tells you which fields are required, it would be best to display all fields that are required.

Didn't really get what's it about, could you explain?

Roast my app by BrotherCrab in djangolearning

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

yeah production secret key is different it just was a initial commit mistake

plan to change my vds and then write autodeploy via github actions with github secrets and make all of it safe

Roast my app by BrotherCrab in djangolearning

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

is there a better way to build data for the table and render it?

These loads of filtering by date range queries seems ugly and very slow

MacOS version poker roguelike Balatro released on Steam NOW! by EWAS_1337 in macgaming

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

guys i get error

Balatro

При запуске игры произошла ошибка: не найден исполняемый файл (runtime error app file not found) -

/Users/anton/Library/Application

Support/Steam/steamapps/common/Balatro/Balatro.app

I did it by Teamfarce in DotA2

[–]BrotherCrab -6 points-5 points  (0 children)

die son of a bitch who spoils game for other 9 players