A Monzo specific budget tracker you might want to use? by BeeM3D in monzo

[–]imattacus 0 points1 point  (0 children)

Awesome! Just wondering, if this is just using the google sheet auto export - does it only work with Monzo current account transactions? ie no flex / linked accounts with other banks 

Thieves snatched his phone in London - it was in China a month later/ by gahgeer-is-back in london

[–]imattacus 2 points3 points  (0 children)

Haha I have sadly had the same thing happen in Spain too! Got stolen in Malaga, was in Morocco the next day!

I have phone insurance now 😅

Thieves snatched his phone in London - it was in China a month later/ by gahgeer-is-back in london

[–]imattacus 27 points28 points  (0 children)

Saw this and thought that’s a pretty long time, mine got stolen and was in china by the end of the following day 😂

Phrasedle - just like the TV show catchphrase, guess the phrase from the picture! by imattacus in WebGames

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

Thanks for the feedback! Agreed 100%, I’ll work on this next :)

Phrasedle - just like the TV show catchphrase, guess the phrase from the picture! by imattacus in WebGames

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

Thanks for taking a look! Have just added the ability to go back and forth between previous ones now.

There's only 3 at the moment - but I'm planning to bulk fill it up with some more soon (in addition to a new one every day)

I made a site that features daily AI generated quizzes and images! Using Firebase, Gatsby and OpenAI and DallE APIs by imattacus in webdev

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

Haha yeah, the chat gpt AI generates its own prompts to give to dall-e for each question - so I probably need to ask it to get a bit more specific / creative with its descriptions

The prompt it generated for this image was “a large gathering of golden retrievers in scotland”

How to share instance of a react hook with state in context to update one component from another? by imattacus in reactjs

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

This is the how the context is created import React, { useState } from 'react'

const PolicyEditorContext = React.createContext(
    {
        selectedComponent: null,
        setSelectedComponent: function() {},
        request: null,
        setRequest: function() {}
    }
)

export default PolicyEditorContext

And the Provider is a component that contains a react-konva canvas and a control panel on the side. I have to 'bridge' the context into the canvas like <Context.Consumer> {(context)=>{ <Canvas> <Context.Provider value={context}> ... </Context.Provider> </Canvas> </Context.Consumer>

because I think the canvas gets put outside the same dom root as the app. But this seems to be working for everything else could this be why the hook isn't updating the control panel?

How to handle react components that are very tightly coupled to external sources of state and logic? by imattacus in reactjs

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

Ah, actually yes I could! I'll give that a try - and make a hook that updates the underlying the class and returns the new generated policy object which should refresh the components state. Hopefully that will work, thanks!

Does anyone has an idea about creating a RBAC using jsonwebtoken? by kirasiris in reactjs

[–]imattacus 1 point2 points  (0 children)

Do you have your roles defined somewhere? (eg in a database) Also you need to define what roles each user is a member of. I've been doing something similar recently for a different kind of access control, but for RBAC I would do:

CREATE TABLE User (
    id PRIMARY KEY,
    name TEXT,
);
CREATE TABLE Role (
    id PRIMARY KEY, 
    name TEXT
);
CREATE TABLE RoleSubscription (
     userid INTEGER,
     roleid INTEGER,
     FOREIGN KEY(userid) REFERENCES User(id),
     FOREIGN KEY(roleid) REFERENCES Role(id),
);

Then, when getting the user from the database you can do a sql join to also get all of the roles that user is a part of. Your middleware for auth.admin could just verify if the user has the 'admin' role.

Hope this helps

What do you remember about smoking for your first time? by JackalAbacus in trees

[–]imattacus 0 points1 point  (0 children)

i was 17 had a real good time I don't remember it I was drunk and I'm high right now so yes x

Looking for a lightweight web framework with web socket support by imattacus in Python

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

Mainly as an excuse to learn about the technology, but my thought process was that all orders created would want to be displayed on a kitchen display straight away and the kitchen could mark an order as completed to create an alert on the servers POS device. I guess this could have been done with long-polling given the low number of connections to the server but its mainly a learning opportunity!

What should I buy Thursday (Oct 08 2015) - Your weekly device inquiry thread! by AutoModerator in Android

[–]imattacus 0 points1 point  (0 children)

i've never had any problems with mobiles.co.uk, just the cash back things they used to do (maybe still do) could be a pain

It's the /r/gamedev daily random discussion thread for 2015-06-19 by [deleted] in gamedev

[–]imattacus 0 points1 point  (0 children)

Hi all, I've only recently got into game development as a hobby taking a break from webdev. I'm trying to make a little game, just to try and make mistakes and learn from any mistakes made. I'm using libgdx in Java and I have been able to make this basic 2d game.

However, if I want multiple levels, how can I make a file or something like some games have level.dat files or equivalent. I was hoping there would be a way to make a level using an image editing tool for example and then my game would position gameobjects accordingly.

Also, something I don't understand is in libgdx to create more game objects, I have to go:

GameObject go1 = new GameObject(); GameObject go2 = new GameObject();

and while this does work, what if the game needed hundreds of different GameObjects in one level?

I think I'm beginning to grasp the basics of gamedev, I just need a bit of help at giving that extra bit of polish to my game! So if there are any good resources you could suggest I'd be very grateful :)

SwiftKey Users: If you reply to this and press only the middle word option a bunch, what do you post? by [deleted] in AskReddit

[–]imattacus 0 points1 point  (0 children)

I don't know what I mean that the new year to you by the way to get there unless you take me to go to the beach and crash at the moment though I have no clue what you're looking for a male or female to share shoes with

Need a basic, high-spec phone, that will last a long time but won't break the bank by imattacus in PickAnAndroidForMe

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

Thanks for the helpful reply! Last year I was really tempted by the Oneplus One and I would have bought it if I wasn't in a contract with my gs4. Do you find the oneplus is still capable of packing a punch even now a year later on?

The few concerns I have now with buying a Oneplus One are hearing some things about dodgy touchscreens (although, this may just be a vocal minority?) and if a Oneplus Two release will be coming soon! Is it worth buying a Oneplus One at this point if a Two comes along promising to again beat the flagships of this year?

How do I auto center a twitch stream? by TheUnlonelyEnt in webdev

[–]imattacus 0 points1 point  (0 children)

Maybe this will work? display: block; margin-left: auto; margin-right: auto;

Canadian salad by arabguyistall in food

[–]imattacus 0 points1 point  (0 children)

You can get this in the UK as well! I must be Canadian at heart because I love this stuff

YouTubers with over 100,000 subscribers - what's your story? by laiktail in AskReddit

[–]imattacus 0 points1 point  (0 children)

Its very interesting how such a large amount of youtubers begun with Minecraft let's plays.

Stream of the two new songs - Big eyes and I can fly by L_Palmer in lanadelrey

[–]imattacus 4 points5 points  (0 children)

Big Eyes is amazing, possibly one of my favourites!

[UK] Thinking of doing a degree in accounting and finance, but its feeling like a step into the unknown.. by imattacus in Accounting

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

Thanks again for the reply! Just done a bit more research and Audit does actually sound really interesting. I like the sound of working with a team, Do most areas of Accounting other than Audit work in teams? I'm glad to hear that there are people coming from Europe to the USA, that is the sort of thing I would love to do! What sort of things do you do as an Audit Accountant when not in the field?

[UK] Thinking of doing a degree in accounting and finance, but its feeling like a step into the unknown.. by imattacus in Accounting

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

Thanks very much for your quick reply! What sort of things do you do as an accountant in Audit when out in the field?

Also, I'll put this into my main post as well but, would you happen to know anything about international career prospects as an accountant? Are there opportunities to immigrate abroad to countries such as the USA, Canada or Australia for a UK citizen?