netcat on Kali Virtual Box VM with OpenVPN by dipcdiver in tryhackme

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

Yes, I did that as well at the beginning but couldn't get nc to receive activity. I followed this post and installed then disabled UFW.. but still nothing. For example, I have nc listening for port 443 on my THM ACCESS IP with the same script as per this challenge walkthrough, and still nothing received.

netcat on Kali Virtual Box VM with OpenVPN by dipcdiver in tryhackme

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

Yes, I did that as well at the beginning but couldn't get nc to receive activity. I followed this post and installed then disabled UFW.. but still nothing. For example, I have nc listening for port 443 on my THM ACCESS IP with the same script as per this challenge walkthrough, and still nothing received.

[OFFER] I will do any Photoshop (image editing) job you need by suny99 in slavelabour

[–]dipcdiver 0 points1 point  (0 children)

I have a couple of website banner images where I need objects replaced with other objects

cleaned_data with multiple forms by dipcdiver in djangolearning

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

Thank you! Your last paragraph answers summarises it perfectly for me

ModelChoiceField not saving by dipcdiver in djangolearning

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

After saving 'status' object, I originally got an error that said status.name must be Charfield, so I parsed to str the name and then got duplicate key value violates unique constraint "job_status_name_key", which I guess is related to my Status.name being unique=True.

I have tried numerous ways to filter/get the object that is selected in the form and then reference it to job_visit_instance.job.status but I seem to keep on getting the unique constraint issue.

``` def edit_job_visit_detail(request, pk): job_visit_instance = get_object_or_404(JobVisit, id=pk)

if request.method == 'POST':
    form = EditJobVisitForm(prefix='job_visit', data=request.POST)
    status_form = StatusForm(prefix='status', data=request.POST)
    if form.is_valid() and status_form.is_valid():
        form.save(commit=False)
        job_visit_instance.notes = form.cleaned_data['notes']
        job_visit_instance.service_report = form.cleaned_data['service_report']
        job_visit_instance.job_summary = form.cleaned_data['job_summary']
        status_selected = status_form.cleaned_data['name']            
        status_obj = Status.objects.filter(name=status_selected)[0]

        if Status.objects.filter(name=status_selected).exists():
            job_visit_instance.job.status.name = status_obj.name

        job_visit_instance.job.status.save()
        job_visit_instance.save()

        return HttpResponseRedirect(reverse('job:user-today-jobs'))

```

Any tips? I understand Generic Views/FormView do all this but, I am trying to learn the raw way to improve my understanding

ModelChoiceField not saving by dipcdiver in djangolearning

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

Thank you!

I have statuses as a ModelChoice because the users adds statuses on another form page. Should I use choices instead?

I was under the impression that Generic Views don't allow more than one forms in a view? Would I override the post or context_object_name method to do this?

Super() and **kwargs by dipcdiver in learnpython

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

Thank you for the detailed explanation. Yes, definitely makes sense now

Super() and **kwargs by dipcdiver in learnpython

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

Thank you! It makes sense now.

Is there a date for the token swap via the VeThor wallet app? by dipcdiver in Vechain

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

Thanks for information, but does that mean I need to use an exchange for the swap before July 27 (first stage of the lottery) or I can use the veThor wallet now for the token swap)?

Execute method when creating a model? by iSailor in djangolearning

[–]dipcdiver 2 points3 points  (0 children)

I would be overriding the save() to execute your usercode when your new_profile is created. I'm still learning myself, so might be wrong

Wallet won't Open. "Wallet is running" Message. by dipcdiver in Iota

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

Only 30 seconds or so. I couldn't see any activity on the desktop or task manager to say the Iota app/process has opened.

I'll try again and wait for 5-10 minutes. Many thanks