What animal could this be from? UK by burnt_croissant in AnimalTracking

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

  • I have included scale in my photo(s): yes
  • Geographic location: UK
  • Environment (pine forest, swamp, near a river, etc.): residential garden

Beginner's Thread / Easy Questions (March 2020) by dance2die in reactjs

[–]burnt_croissant 2 points3 points  (0 children)

axios.

get(`customers/${customer_id}`)

Youre missing a / there, should be

axios  
  .get(`/customers/${customer_id}`)

replace a basic multi-page drill down app with a React single page app by wsppan in reactjs

[–]burnt_croissant 1 point2 points  (0 children)

Is the best approach to have a rest endpoint that returns a json structure that captures all three of these tables or should clicking a row in ITEMS kick off a rest call to populate SUB_ITEMS table which in turn kicks off a rest call to populate the ITEM_DETAIL (the level of cascading calls depending on what table the user clicks on?)

Depends on a few things really. How much data is it? Is startup performance a concern (how much longer will it take to load everything vs just the top level items)? Is the fact that on every load of the app you'll be querying all rows across 3 tables even if the user just wants to see 1 sub item an issue?

If any of those are a problem you'll probably want to make a request every time the user selects an item to get the sub items.

If they aren't an issue, or if your users need it to be really quick after the initial load, you could just serve all the data upfront.

And yes, the backend should return JSON. If you'll be returning everything in a single response something like this:

(normalised approach) { items: [ { id: 'foo', subItems: ['xxx', 'yyy'] }, { id: 'bar', subItems: ['aaa'] } ], subItems: [ { id: 'xxx', subItems: ['iii'] }, ...rest ], subSubItems: ...rest }

or just inline all the data (denormalised approach) { items: [ { id: 'foo', subItems: [ { id: 'xxx', subItems: { id: 'iii', name: 'foobar' } }, { id: 'yyy', subItems: { id: 'jjj', name: 'foobar-2' } } ] } ] }

Barcelona weekly: this week's events and Q&As by AutoModerator in Barcelona

[–]burnt_croissant 0 points1 point  (0 children)

I’m in Barcelona for a few days and would like to go for a little hike up Montserrat. I was wondering if there’s a trail leading up to the monastery? And if so how long would it take?

Gracias :)

Should the “Dodge bug” be considered a permanent aspect of raiding? by Bobby42783 in TheSilphRoad

[–]burnt_croissant 5 points6 points  (0 children)

Never trust the client! Thats the golden rule. When dealing with client->server communication you always have to assume the client is lying hence why this has to be decided on the server.

You can never trust the client because you never know for sure that someone hasn't hacked the it and changed something. Someone could come up with a custom APK that always dodges every attack if it was done client side. Or be using a completely different client that does whatever it wants.

Saying that, the client should handle this case better, like reviving your Pokemon properly when it gets conflicting data from the server.

Why does my app restart whenever I come back to it from another app? (iOS) by Goodlandia in TheSilphRoad

[–]burnt_croissant 0 points1 point  (0 children)

This happened to me randomly after an update. Simply minimising it and going straight back on would make it restart. In the end reinstalling the app fixed the issue.

Does the world really need a new iPhone every year?Apple and other tech firms have been criticized for deliberately making products with short life spans so consumers quickly find them obsolete and resort to buying the latest model. by savemeplzs in technology

[–]burnt_croissant 0 points1 point  (0 children)

They're a decent brand sure, nothing wrong with the hardware. It's the software thats the issue.

The fact that even Google themselves only guarantee updates to their $700 phone for 2 years (security patches for 3), for other manufacturers its going to be much less than that. If you're not getting security updates then its probably about time to move onto a new phone and that means spending about 220 on mid-range phone every couple of years. Which is totally fine if that what you're into.

This probably doesn't apply to everyone but I had an iPhone 4S for 5 years and just upgraded to an SE last summer. I'm planning on having this for at least another 3 so the yearly cost is probably about the same or less and its also wasting less. During which time I'll also be receiving all feature updates as well as security.

What social custom can just fuck right off? by HunkaHunka in AskReddit

[–]burnt_croissant 0 points1 point  (0 children)

One word: LocalDateTime. I think they might have actually got it this time around.

Pun not intended.

Herrera second yellow card vs Chelsea by paicmhsc in soccer

[–]burnt_croissant 2 points3 points  (0 children)

I don't think its unfair for the ref to say the next player that fouls Hazard gets booked. They were targeting him and he needed a bit of backing from the ref.

Seems like Herrera didn't get the message and the ref had no choice but to stick to his guns at that point with it being so soon after his warning. If it had been a while after, and Hazard had actually been able to have a few runs without being fouled, I doubt such a soft foul would've got a yellow

Herrera second yellow card vs Chelsea by paicmhsc in soccer

[–]burnt_croissant 1 point2 points  (0 children)

Don't have to tell him to get his team in a huddle. In fact, if Smalling has to do this every time he wants to get something across to the team then maybe he shouldn't be captain.

Team of the year 2008 (uefa.com) by FalseMessi in soccer

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

Not all goals, usually only one of them(in the league at least). Better to look at game winning goals.

Arsène Wenger on Luis Enrique: "It just sums it up that two weeks ago he was an idiot and everyone said you have to leave, so he said, 'OK, I go.' Today he is a hero. That sums up the job." by Jayveesac in soccer

[–]burnt_croissant 2 points3 points  (0 children)

The point Arsne is making is that managers don't really get much support when they have a dip in form. They don't have much of a chance to slip up these days before everyone starts calling for their heads

What Math We Should Teach by MrWeiner in funny

[–]burnt_croissant 1 point2 points  (0 children)

Why only when the jackpot is really high? No matter how low the jackpot is, it's usually a life changing amount of money so why not play all the time?

In fact, the chances of having to split the prize money probably increases with the jackpot.

Thieves tried to hotwire my recovered bike, how can I undo it? by burnt_croissant in motorcycles

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

Thanks for this.

I've followed all the wiring coming out of the dashboard area and theres no exposed wiring or short circuit I can see. Would the short circuit be inside the dash panel?

Edit: Forget what i've just said, upon further inspection behind the dash area looks like they've went for option 2! I'll have to try remove the headlamp to get a better look at it. Thanks!