instruction stringlengths 0 30k ⌀ |
|---|
|ios|swift|swiftui|uicollectionview| |
I have js DataTable to display list of items.
Each item has few properties and few images.
I create js DataTable to display all info.
Everything is working except the image.
Usually image is accessible by link:
@product.ProductImages.ImageUrl
My js DataTable code:
function loadDataTable() {
... |
My question is on line 72. Why can we do the same operation at line 81 without any errors? Are there any preferences that should be done if we declare an object that needs parameters to be passed to its class constructor?
```c++
#include<iostream>
using namespace std;
class clsPerson
{
string _FullName;
... |
|ios|apple-push-notifications|ios-background-mode| |
{"Voters":[{"Id":6022243,"DisplayName":"Roy"},{"Id":2802040,"DisplayName":"Paulie_D"},{"Id":616443,"DisplayName":"j08691"}],"SiteSpecificCloseReasonIds":[13]} |
You can try to adapt the C code in [zipflow][1] to use in your C# application. zipflow takes in chunks of data and streams out a zip file, without ever having to keep either the entire input of any entry or the output zip file in memory or the file system.
I don't know what "ZipTools" is, nor can I find it. However ... |
[![enter image description here][1]][1]
I want to click on the checkbox. Tried different methods. But not working. Any solution?
@FindBy(xpath="//label[@for='Tnc']")
Still its not getting the exact element of check box. Instead it is clicking on the Terms and Coniditions hyperlink and opening the pop up page.
... |
Recently I started to have an unexpected OS shutdown (Kernel Power Error 41) so I started to diagnose the cause. I noticed I also have Error Code 33 Shown By the Motherboard LED.
This is my system information:
```
Operating System: Windows 10 Pro 64-bit (10.0, Build 19045)
System Manufacturer: Gigabyte Technology... |
I have a question regarding the usage of SQLite with Unreal Engine 5.0.3 c++ for deployment on Microsoft HoloLens 2 as Universal Windows Platform (UWP) application.
## Initial situation
I have an own written library integrated in my Unreal Project as Module, which is dependent on SQLite (https://www.sqlite.org/), w... |
How can i solve SQLITE_IOERR_SEEK on Unreal UWP application on MS Hololens2 |
|sqlite|uwp|hololens|unreal-engine5| |
null |
Yes, it is possible, use `RequestMultiplePermissions()` instead of `RequestPermission()`. With this you can request multiple permissions at single time, and in callback you will get `Map<String, Boolean>` where permissions are keys and value is granted/denied `Boolean`.
```kotlin
@Composable
fun rememberPermission... |
`std::tie` returns a tuple of reference types. [`std::tuple<...>::operator=`](https://en.cppreference.com/w/cpp/utility/tuple/operator%3D) is *not* marked `constexpr` in C++17.
You can emulate what `operator=` does with other (`constexpr`) functions:
```c++
auto set = [this](const auto&... args) {
std::appl... |
From the Google Picker, after selecting the file, I receive a "file not found" error in the backend integration |
|google-workspace|google-picker| |
null |
>What is `__consumer_offsets` ?
Kafka uses its own compacted internal topic, called `__consumer_offsets`, which relates directly to your consumer offsets themselves.
> How is it being used?
Kafka does not need a history of offsets that a consumer group consumes; it just needs the latest offset. By storing the ... |
{"Voters":[{"Id":5320906,"DisplayName":"snakecharmerb"},{"Id":874188,"DisplayName":"tripleee"},{"Id":2144390,"DisplayName":"Gord Thompson"}],"SiteSpecificCloseReasonIds":[11]} |
Good morning, I have to manage a Django project where each client has small customizations, both in terms of apps and API endpoints. I would like to avoid having to manage too many branches for each individual customer:
**First solution**
In the .env file, add a field indicating the client ```CUSTOMER=customer1``... |
How to manage different repositories for different clients with the same project? |
|django|git|architecture| |
I'm working on a non-distributed library in C++ that offers an object serialization interface. This interface can serialize objects into bitstreams using a method similar to the following:
```cpp
std::stringstream ss;
obj.writeTo(ss);
std::string serialized_obj = ss.str();
```
The size of these serialized obj... |
enter code here{
"name": "myapp",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",
"devstart": "nodemon ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"express": "^4.19.1",
"http-errors": "~1.6.3",
"jade... |
As previous answers have stated, it is inded caused by the latest update of Chrome browser. The user [SelfMade][1] also explains it in [this answer][2].
There is no solution for now, I would recommend using other browser or install some older version until they fix it.
[1]: https://stackoverflow.com/users/8082... |
I try to compile an Angular JS app with Cordova to get an apk.
I use this command :
***cordova build android***
I get this ERROR message :
(...)
***"Element provider#android.support.v4.content.FileProvider at AndroidManifest.xml:15:9-17:20 duplicated with element declared at AndroidManifest.xml:12:9-14:20"***
... |
I want to query my table and specifiy some offset to get rows before and after my found one.
E.g. getting this result set (Specifying offset of 2):
- data 1
- data 2 --> offset: 2 --> so this row is added to my result set as well
- data 3 --> offset: 2 --> so this row is added to my result set as well
- data 4... |
I want to ask if someone can tell me, or even show me an example, of a dataflow job template, preferably in Python, in which I can:
1. Continuously read JSON data from a Pub/Sub topic
2. Process this data / Enrich it with custom logic
3. Load the data into an existing BigTable table
I've tried delving into the ... |
How to stream data from Pub/Sub to Google BigTable using DataFlow? |
|google-cloud-dataflow|apache-beam|google-cloud-pubsub|google-cloud-bigtable|bigtable| |
null |
Ive heard a lots that aggregate roots depend on the use case. But what does that mean in coding context ?
You have a service class which offcourse hold methods (use cases) that gonna accomplish something in a repository. Great, so you use a repository which is equal to an aggregate root to perform your querying.
... |
The constructor is not where you register your custom element: you register it "immediately" after declaring the class, and then if you want your code to start running only after the browser has finished loading that in, wait for it:
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language:... |
Although I know surely have to look it up, I have to come here to offer some help or suggestion from someone here and so my problem is with the e-commerce website:
When a customer just completed the order or check-out successfully, staff immediately know what order just been created by somewhat customers through not... |
How to update orders customer in real-time in laravel? |
|javascript|laravel|e-commerce|analytics| |
null |
I was trying to install bagisto, then I gave up and removed the folder from my var/www/html directory. After I had given a command when setting up Bagisto, my phpmyadmin won't let me access my dashboard. I enter my login info and it says my web server isnt responding. Here is the error I am getting from phpmyadmin:
... |
I tried installing Bagisto on a Pi, and I decided to uninstall it. Now, my PHPmyadmin doesn't work |
|phpmyadmin| |
Had the same issue on Mac, even with the drag & drop option.
Click the small icon in the middle of the top line (right to the "Autogenrate" etc. things).
Select "Provide code in this dialog" and paste:
from qgis.PyQt.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
def __init__(self):
... |
How do I force my library to jump to the start of initialization order?
-----------------------------------------------------------------------
You can't.
Assume there is some magic technique by which your library can jump to the front of the initialization priority and jump to the end of deinitialization priori... |
while verify signed data with app-store-server-library.
facing while crating base object TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor
fin out on documentation form github repo and github documentation.
https://github.com/apple/app-store-server-library-node?tab=readme-ov-file
https:... |
TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor node js app-store-server-library |
|ios|node.js|server|in-app-purchase| |
null |
{"Voters":[{"Id":476,"DisplayName":"deceze"}]} |
I Have a hql file which is being used in oozie hive action. I am running hive on spark engine by specifying the below in my hql file.
`set hive.execution.engine=spark;`
But the job is failing with error :
`java.lang.NoClassDefFoundError: org/antlr/runtime/tree/CommonTree`
I researched about it and trying to ... |
How to set spark.executor.extraClassPath & spark.driver.extraClassPath in hive query without adding those in hive-site.xml |
|apache-spark|hive|antlr|hadoop-yarn|oozie| |
null |
{"Voters":[{"Id":2554330,"DisplayName":"user2554330"},{"Id":22180364,"DisplayName":"Jan"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
I'm trying to subset this issue using R base. I have a list of names that I want to subset by severam nested lists of indices.
The list of names comes in as very compact and straightforward, the list of indices is nested an the indices may have leaps, ie, some numbers can be non-consecutive; each sublist starts the co... |
I'm encountering an error when running the `ng build` command in my Angular application.
**environment setup:**
Angular/cli version: 15.0.3
Node.js version: 20
Any other suggestions instead of give more memory to node process using `NODE_OPTIONS="--max-old-space-size=8192"` env
I upgraded to angular/cli ... |
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory in angular application |
|angular-cli| |
null |
I have a project, previously ef commands such as add-migration and update-database were working correctly.
But I did some things after which these commands don't work anymore.
1- Adding Resharper plugin. that even by disabling this plugin, these commands still don't work. In addition, I made a test project that wit... |
You are probably looking for this [python xml parser module][1]
In your case:
import xml.etree.ElementTree as ET
tree = ET.parse('employeedata.xml')
root = tree.getroot()
[1]: https://docs.python.org/3/library/xml.etree.elementtree.html#xml-tree-and-elements |
The error is in the upper bound of the rank variable.
changing it to:
l_rank = model.NewIntVar(-1, 100, 'rank' + alt_suffix)
gives an optimal solution:
```
3
Horizon = 1360
Solution 0, time = 0.052364 s, objective = 505, makespan = 495
Solution 1, time = 0.060635 s, objective = 500, makespan =... |
We are trying to export all current User Rights from our PROD environments following the guide posted here:
https://community.sap.com/t5/crm-and-cx-blogs-by-sap/sap-commerce-export-only-usergroup-employee-access-rights/ba-p/13488710
This works fine in 3 out of 6 environments and takes less than 5 minutes. In the ... |
Aggregate roots depend on the use case so does that mean that we might end up with really a lots of repositories? |
For example, given the inventory
```ini
shell> cat hosts
test_01
test_02
test_03
```
and the files */tmp/fstab* (all the same) for testing
```bash
shell> ssh admin@test_01 cat /tmp/fstab
UUID=423d168c-5a90-44f9-94b2-d2da9f0e1e4f / ext4 errors=remount-ro 0 1
UUID=0F15-7883 ... |
## tl;dr
Copy/pasta into your Terminal
```
brew install python@3.11
export CLOUDSDK_PYTHON=/opt/homebrew/bin/python3.11
gcloud components update
```
---
## Detailed Answer
This answer is for those who have Homebrew installed but did not install `gcloud` via Homebrew (though it should work even if you did). I... |
Keras 2.10.0
I am trying to save my Variational Autoencoder built in Keras and Tensorflow once it is trained.
I am not being able to do so. What can I do to save the model?
Attached is the Colab link to my running base model.
https://colab.research.google.com/github/MaxIG1/var_auto_for_synth_data/blob/saving... |
null |
**Here i'm trying to do spring mvc project and i've written code like below, but i'm not getting any output on browser screen. Please anyone can help me?
```
code1: add_car.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<me... |
what is error for the below springmvc code? |
|java|spring-boot|spring-mvc| |
null |
I've found some interesting information related to your issue. It has to do with permissions and dependent services.
Regarding permissions, I think that's not the issue, as no IAM error is shown. However, it's worth double checking you have enough permissions for using Service Usage [here](https://cloud.google.com/... |
I am trying to get data from a csv file that is uploaded via a ReactJs front end and then import it into a sqlite database in a Django/Python backend.
I am trying to use the same code for several different imports and I have at least two cases that work but when I try to replicate the code, it is not working.
It ... |
We are developing a multi-tenant application with a common webapi for all the tenanats and tenant specific databases.
We are planning to use a single azure application insights using opentelemetery for instrumentation.
Questions
- how can we ensure that the tenant of is populated in all the metrics, logs a... |
I am using [L5-Swagger][1] to build my swagger in PHP with Laravel. Can we prefix all endpoint URLs so as not to repeat them for each one? Typically the prefix "**/api/v1**" in this example:
[![enter image description here][2]][2]
I saw several options in `config.l5-swagger.php`, but I tried many things and faile... |
How to prefix all the URLs of a swagger with L5-Swagger? |
For safety reasons, a library I am working on has to determine owning process stages. Precise determination is not required but something like before/after main, before/after multithreading is enabled?
Something like std::atexit but for the startup?
The best idea I have is to create a class that will set a mark a... |
Is there are a wat to detemine process stages from inside a library |
|c++|initialization| |
Tokens are 3-4 characters each, so 1000 tokens would output 3-4 thousand characters. Try setting the token limit to something like 250.
For example:
```
client.max_output_tokens = 250
answer = client.generate_content(query, safety_settings = safe)
```
Where `client` is your genai model.
|
great response thank you! I do appreciate the analogy of using it like a search engine. |
null |
I'm trying to instantiate a BERT model using TensorFlow. This code was running correctly until a few days ago, but now I'm getting this error. I've used this same code to instantiate BERT models on Kaggle in other notebooks and it worked fine. Can anyone give me a hint? I should note that I'm using Transformers version... |
One should always differentiate between the license of the
1. wiki software
2. content of a given wiki (not your own wiki, presumably)
3. content of your wiki
The [DokuWiki][1] "license" setting locally configures the license under which the **content of your wiki** can be distributed. This can be achieved ... |
I'm trying to do performance testing of the below mentioned code with three scenarios by logging the execution time of a getName method of a Person Class.
1. LambdaMetaFactory
2. Direct Access
3. Reflection
Ideally, reflection should take more time to execute than the LambdaMetaFactory. But, my output is su... |
Not sure what your Azure Data Factory pipeline is designed to complete. For general purpose to set up an Azure Pipelines release that automates the deployment of a data factory to multiple environments, please refer to [Automate continuous integration - Azure Data Factory | Microsoft Learn](https://learn.microsoft.com/... |
The type cast is needed in the assignment *pint* = (*int* *) *p* because *pint* and *p* have different types; *pint* is a pointer to an integer whereas *p* is a pointer to an array of two integers. The assignment makes *pint* point to the first integer of the *i*:th row in the matrix. Note that *p* + *m* will advance t... |
I want to generate apk in vs code by command `flutter build apk` but after execute it in vs code terminal, returns this error :
> No Android SDK found. Try setting the ANDROID_HOME environment variable.
So i defined `ANDROID_HOME` in environment variable but problem not solved and occures same error again.
[!... |
My Receipt Print code is:
// ReceiptPage.js
import React from 'react';
import { View, Text, TouchableOpacity, SafeAreaView, StyleSheet, ScrollView } from 'react-native';
import { AntDesign, FontAwesome } from '@expo/vector-icons';
import { colors, mainStyle } from '../../Style';
import * as Print from 'expo-p... |
React-Native Printing issue |
|android|reactjs|react-native| |
null |
It's issue with IMA: https://github.com/googleads/videojs-ima/issues/1098
Here is my workaround:
let tempVolume;
player.ima.addEventListener(google.ima.AdEvent.Type.STARTED, () => {
const adVideoEl = player.el().querySelector(".ima-ad-container video[src]");
tempVolume = player.volume()... |
Add a file .vscode\settings.json with the contents:
<code>
{
"dotnet.defaultSolution": "your-solution-name-here.sln"
}
</code>
If you can put each *.sln file in a different subdirectory, then you can open each subdirectory in a different VS Code window and each will have its own intellisense and its own files... |
Another alternactive, when you build DOM with a native Web Component you have full control on when an Element enters the DOM (the default ``connectedCallback`` fires)
You can create SVG upfront in _shadowDOM_ just those pesky SVG NameSpaces to aware of.
You can then keep interaction closely tied to Element withou... |
Opentelemetry in an multi-tenant aspnet core app |
|c#|azure|open-telemetry|azure-monitor| |
Recently I have migrated my project from .NET 6 to .NET 8.
I have used migrate assistant to upgrade my project, I am able to build solution with .NET 8 packages. I can see only following packages are upgraded in my solution.
Old packages:
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7... |
Entity Framework Core 8 throws "Method not found: 'Void CoreTypeMappingParameters..ctor" error |
I have a Laravel project that has been modularized using the `nwidart/laravel-modules` package, and I’ve installed Livewire on it. However, when executing a component, I encountered the error:
> The GET method is not supported for this route. Supported methods: POST.
I realized that I needed to install the `mhm... |