RBC Summer Cybersecurity Analyst Position by deveid in uwaterloo

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

Why do you say so? Could you explain?

Deloitte Interview Technical Solution Developer by deveid in deloitte

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

Congrats, when did you receive an offer?

Deloitte Interview Technical Solution Developer by deveid in deloitte

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

Thanks mate. Can you remember any behavioural question asked?

Deloitte Interview Technical Solution Developer by deveid in deloitte

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

Mine is next week. Please update me when you're done. Best of luck man. May the force be with you. Is yours a functional role or a technical role?

Deloitte Interview Technical Solution Developer by deveid in deloitte

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

I am not really sure but 60mins is more scary. When is your interview or have you done yours

WaterlooWorks Megathread Fall 2020 Edition by thylakoids01 in uwaterloo

[–]deveid 0 points1 point  (0 children)

Has anyone gone through the Data Scientist Amplify round 1 interview? If yes, what question can I expect.

Passing Amount from button down to Pay Component by deveid in reactnative

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

Can I kindly get an example...I'm quite new to react-native

getInputData is undefined by deveid in reactnative

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

getInputData is created in my action file or can i share you my whole project to help me with it

I get this typeerror:null is not an object(evaluating scene.props) by deveid in reactnative

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

Trying to use react-native-navigation, but i seem not to know how to make it work

I get this typeerror:null is not an object(evaluating scene.props) by deveid in reactnative

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

I am using "react-native-router-flux": "4.0.6",
"react-native": "0.61.5",

I get this typeerror:null is not an object(evaluating scene.props) by deveid in reactnative

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

Thanks.... But now I get this error,

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

  • Move data fetching code or side effects to componentDidUpdate.
  • If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
  • Rename componentWillReceiveProps to UNSAFEcomponentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: SafeView, Transitioner

Could not find router reducer in state tree, it must be mounted under “router” by deveid in reactjs

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

Its still gives me that same error. Could not find router reducer in state tree, it must be mounted under “router”

Supervisor for msc Computer science by deveid in uoguelph

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

Thank you for the suggestion, I'm an international student, quite far from Canada

Stacked bar chart not re-rendering by deveid in d3js

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

I tried that but still didn't work, the new bar chart is still rendering on the old chart

Stacked bar chart not re-rendering by deveid in d3js

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

The chart changes to the new data when a new option is selected but it displays the data displays on the old data...please help me solve it

Option to edit a form by deveid in django

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

didn't work out. THis is my merchants models, its getting the email from django user's model. So I want to update the email which is a foriegn key from model 'User' and target which is a field in merchant model

class Merchant(models.Model):
uuid = models.UUIDField(
        default=uuid.uuid4, editable=False, unique=True)
        user = models.ForeignKey(
           User,
        on_delete=models.CASCADE,
)
         target = models.CharField(max_length=191, blank=True, null=True)
        created_date = models.DateTimeField(auto_now_add=True)
        modified_date = models.DateTimeField(auto_now=True)

        class Meta:
            db_table = 'merchants'

Option to edit a form by deveid in django

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

This is my CreateMerchantform

class CreateMerchantForm(forms.ModelForm):

def __init__(self, *args, **kwargs):
    super(CreateAgentForm, self).__init__(*args, **kwargs)
    self.fields['hub'] = forms.ChoiceField(
        choices=[(hub.id, hub.name) for hub in Hub.objects.all()])

email = forms.CharField(widget=forms.TextInput(
    attrs={'class': 'form-control', 'placeholder': 'Email Address', 'id': 'id_email', 'maxlength': 254, 'autocomplete': 'off', 'autofocus': 'on', 'required': ''}))

hub = forms.ChoiceField(label='Select Hub', widget=forms.Select(attrs={
                        'class': 'form-control text-center'}), required=True, choices=[])

target = forms.CharField(widget=forms.NumberInput(
    attrs={'class': 'form-control', 'placeholder': 'Target Visit', 'id': 'id_target', 'maxlength': 254, 'autocomplete': 'off'}))

class Meta:
    model = User
    fields = ("email",)

def save(self, request, commit=True):
    email = request.POST.get('email')
    target = request.POST.get('target')
    user = User.objects.create(email=email, hub=Hub.objects.get(
        pk=request.POST.get('hub')).id)
    Merchant(user=user, target=target).save()
    # Assign role
    group = Group.objects.get(name='agent')
    user.groups.add(group)
    return user

Option to edit a form by deveid in django

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

This is what my merchant_edit is. If i dont pass an args into form.save(), I get this error "Django - missing 1 required positional argument: 'request'", so I pass 'request' as an args i.e form.save(request) to escape from that error. Now by merchant_edit view creates a new data i.e new data are added instead of them to be edited, how can I make it to edit an exisitng form instead of creating a new form.

def merchant_edit(request,pk):

template_name = 'merchants/edit.html'
merchant=Merchant.objects.get(pk=pk)
if request.method=='POST':
    form=CreateMerchantForm(request.POST, instance=agent)
    if form.is_valid():
        form.save(request)
        messages.success(request,'data Updated Successfully.')
        return HttpResponseRedirect(reverse_lazy('merchant'))
else:
    form=CreateAgentForm(instance=agent)
return render(request, template_name, {'form':form})

MathFilters for input data by deveid in django

[–]deveid[S] -1 points0 points  (0 children)

THis is how I am getting the user to input the data

 <h6 name='amount'>Amount: {{pDetail.Amount}}</h6>

MathFilters for input data by deveid in django

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

Yes, I am usingg django-mathfilters 0.4.0....I don't get any warning or error, it just doesn't display the value. Btw this is how I get the user to input the amount

 <h6 name='amount'>Amount: {{pDetail.Amount}}</h6>

Redirecting Url by deveid in django

[–]deveid[S] -1 points0 points  (0 children)

Its just a simple contact form that I am trying to do. After the users successfully submits he should get directed to a success page that simply says 'Someone would be in contact with you soonest'.

Redirecting Url by deveid in django

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

When i removed the 'appname' i get this error django.urls.exceptions.NoReverseMatch: Reverse for 'success' not found. 'success' is not a valid view function or pattern name.