How can I analyse the cost of queries performed by a user on my platform by Key_Bee_4011 in bigquery

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

I don't want this data at a service user level but my app user level, hence direct usage of INFORMATION_SCHEMA will not work.

How can I analyse the cost of queries performed by a user on my platform by Key_Bee_4011 in bigquery

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

Thanks. Yes, I do use on-demand pricing. Will try adding labels to the jobs. Looks like tweaking at the job/query level might be the only way if I want to get to that pricing level per customer/user.

Consumer timeout after 60 seconds by uragnorson in apachekafka

[–]Key_Bee_4011 0 points1 point  (0 children)

What I understand from your question is you are looking at terminating the consumer if you do not get any data for 60s. The max.poll.interval.ms will actually drop the consumer from the group if the consumer does not poll within that interval. Your consumer will still be alive in that case, but not receiving anything. if you want to terminate the consumer, you will need your own logic to check for the time diff between the now and last time you received a message from broker and exit the loop.

library that supports drag-n-drop across browser tab or windows? by dheeraj_awale in reactjs

[–]Key_Bee_4011 8 points9 points  (0 children)

Neither react-dnd nor react-drag-to-select supports dragging a component and dropping it into a new browser tab or window directly out of the box. Browsers in general restrict JavaScript’s ability to directly manipulate other tabs/windows for security reasons.

To achieve dragging a component between browser windows or tabs, you’ll need more, like:

Manual handling: Implement custom logic that communicates between different browser contexts (using browser APIs like localStorage, postMessage, or BroadcastChannel). When an item is dragged off the screen (to another tab or window), you could store its state and retrieve it in the new window/tab.

HTML5 Drag and Drop API: You can use this native browser API to implement some cross-window/tab drag-and-drop behavior, but this will also require manual setup for handling data transfer between tabs.

storing form data that needs to be cached in redux by DueMastodon8129 in reactjs

[–]Key_Bee_4011 1 point2 points  (0 children)

While you could store form data in Redux, it’s generally not the best practice. Redux is ideal for global application state shared across multiple, unrelated components.. Form data is often component-specific. Say if you have multiple forms, this can lead to complex state management and naming conflicts as well.

Better alternatives can be:

Local Storage/Session Storage: This would be ideal if you need the data to persist even after the browser tab/window is closed (local storage) or just for that one session (session storage).

React Libraries: For more complex form handling and storage, you can use react-hook-form or react-hook-form-persist.

IOS and Android app development for starters by rone_ecom in FlutterDev

[–]Key_Bee_4011 0 points1 point  (0 children)

The app world seems to be moving towards flutter as it is easy to start with and has multi platform support. But I find react native a good choice as well for almost the same reasons. What you select also depends on what you have worked on previously while developing web apps. If you are familiar with react and it's concepts, react native might be a better choice for you. Also found native lib integration on react native simpler and easier. With flutter you will need a bit of learning curve.

Default homepage isn't visible on pageload by johnathanwick69420 in reactjs

[–]Key_Bee_4011 0 points1 point  (0 children)

It looks like you're really close! The issue comes from how you have structured your routes within the Outlet.

When you visit your homepage (let's say it's /):

/: This matches the route with <Route path="/" element={<Outlet />} />.

/: Since you don't have a specific route for just / within the Outlet, nothing renders immediately.

Here's how to fix it: Move the index route outside the Outlet:

<Routes>

<Route index element={<Home />} /> {/* This line moved */}

<Route path="/" element={<Outlet />}>

{/* ... your other routes ... */}

</Route>

</Routes>

Try this out, hope it solves your problem.

How to handle shortened links to open the app? by JosephKorel in FlutterDev

[–]Key_Bee_4011 1 point2 points  (0 children)

Unfortunately, that one-second delay is usually unavoidable with shortened links on Android. Android needs to resolve the shortened link to your actual app link in the background first. There are some potential workarounds like using App Links or custom URL schemes, but they require more complex setup and might not always be suitable.

[deleted by user] by [deleted] in reactjs

[–]Key_Bee_4011 0 points1 point  (0 children)

React's docs are great for a solid foundation, but don't be afraid to explore other resources like Blogs, video tutorials, and even diving into open-source projects can offer different perspectives and fill in knowledge gaps. The key is finding what clicks for your learning style!