instruction stringlengths 0 30k ⌀ |
|---|
I am working on a project of android development with Jetpack compose and Firestore. I have wrtite the code for upload the pdf file from the Admin panel. But I am not able to retrive the uploaded file in user Panel. Can anyone suggest me a library ya give me a code for it.. plzz
I want code or suggestion of library ... |
Can Anyone help me to load pdf file from firebase to user app by URL in jetpack compose? |
|android|firebase|google-cloud-firestore|firebase-realtime-database|android-jetpack-compose| |
null |
So Leadership Team is how I want the end result
```
atGroupsDefaultColors: {
LeadershipTeam: "rgba(255, 3, 3, 1)",
DeveloperTeam: "rgba(230, 83, 0, 0.5)",
ManagementTeam: "rgba(0, 255, 145, 0.5)",
SnrAdmin: "rgba(11, 175, 255, 0.5)",
Admin: "rgba(11, 175, 255, 0.5)",
SnrModerator: "rgba(... |
I am assuming you are referring to XSS problem?
But no XSS defenses are perfect. Maybe you could try:
```
OWASP Java HTML Sanitizer
``` |
I am creating a docker image with a env.yml file. This yml file has a python package named mohit-housing-price-prediction=0.0.2 which I created locally. While creating an image using
docker build -t mohitsharmatigeranalytics/tamlep:0.3 .
I get
```
164.0 ERROR: Could not find a version that satisfies the requireme... |
By default mongoose will buffer commands; this is to manage the possible intermittent disconnections with MongoDB server.
By default, under the event of a disconnection, mongoose will wait for 10 seconds / 10000 milliseconds before throwing an error. This is what happens in your case. Mongoose throws an error after... |
I created a custom HTML element that create a new element from the following template:
<template id="track">
<div class="record">Nothing yet</div>
</template>
Here the JS code that defines the custom element:
class Track extends HTMLElement {
constructor() {
super(); ... |
Change custom element content before and after attaching to the DOM |
|javascript|custom-element|html-templates| |
Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason |
|kubectl| |
null |
I'm using net core 8.0, and for this issue I had to install ```Microsoft.AspNetCore.Identity.UI``` package and add ```.AddDefaultUI();``` to my ```builder.Services.AddIdentity<AppUser, IdentityRole>```
.
```c#
// Identity
builder.Services.AddIdentity<AppUser, IdentityRole>(options =>
{
options.User.Require... |
Try using Scala 2 syntax
fastparse.parse("1234", implicit p => parseAll(MyParser.int(p)))
https://scastie.scala-lang.org/DmytroMitin/MrFZ0EhiSPeFDHd1IyBhrA
(I'll try to find SO question with Scala 3 syntax) |
I've been working on a python discord bot and wanted to containerize it, which has worked pretty well, but while testing one of the features (bot -> open API) via HTTPS I'm getting the following error:
`ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:811)`
I've read various ... |
I'm encountering an issue while trying to run a binary file using both SPWN or Pwntools. Here's the context:
**SPWN Logs:**
```plaintext
[*] Binary: baskin
[*] Libc: libc-2.27.so
[*] Loader: ld-linux-x86-64.so.2
[*] file baskin
ELF 64-bit LSB executable
x86-64
dynamically linked
not stripped
[*] chec... |
I was solving this problem on Leetcode but I am unable to understand why my solution is wrong I am using the hash map approach to solve this, the time complexity is O(n) but the error is not something related to time exceeding
Question:
```
You are given two strings s and t.
String t is generated by random s... |
389. Find the Difference LeetCode |
|hashmap| |
I'm trying to deploy my Django Rest framework app using vercel.
While building, I got an error "Error: Unable to find any supported Python versions."
My vercel.json is below.
{
"version": 2,
"regions": ["hnd1"],
"builds": [
{
"src": "myproject/wsgi.py",
"use": "@vercel/p... |
Deploy my Django rest framework app to Vercel |
|python|django-rest-framework|vercel| |
in my case, this was fixed by "exit" the current sbt shell (in intellij)
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/eMX9n.png |
Inside your Canvas game object, create a Panel that will be the area in with the floating joystick can be spawn. Bellow the Panel add your Button. Now create a global `TouchInputManager` component/script which will detect which UI element has been touched by performing a raycast when the user touches the screen. You ca... |
Validation error for TruCustomApp from trulens_eval - Input should be an instance of Queue [type=is_instance_of, input_value=<queue.Queue object ...> |
|python| |
null |
I've recently updated my app to Material3 and replaced the `ActionBars` in my app with `MaterialToolbars`. My app has a `ViewPager2` where each `Fragment` in the pager has a `RecyclerView`. Previously, scrolling down a list would hide the `TabLayout` but now they don't.
I found if I remove the `MaterialToolbar` the ... |
I'm using [Multipass][1] on an Ubuntu host to launch multiple local VMs, with the goal to create a docker swarm over multiple VMs. Everything with `multipass` itself and the installation of Docker (I've used the scripts at https://get.docker.com/) has gone well.
I've also been able to initialize the swarm by sett... |
Make your function public so you can call it everywhere in your code. After that you need to create a public boolean that would tell you wether to show report or not. It could look like this:
```
var
shouldShowReport : boolean = false;
```
Then what you need to do is change your function a bit, by adding a boole... |
I have an activity with four fragments as tabs. Now I have a ViewModel (`FJViewModel`) for sharing filters between the activity and the fragments(tabs). In my activity, I initialize the filters table with four rows like this (for simplicity unrelated details are ommitted):
```
private FJViewModel fjViewModel;
... |
ELF binary has inconsistency detected by ld.so: dl-call-libc-early-init.c: 37: Assertion `sym != NULL' failed |
|binary|ld|elf|pwntools| |
|sql| |
To resolve issues related to Python environments being externally managed, because of homebrew installed python version, execute below commmand.
```
rm /opt/homebrew/Cellar/python\@3*/**/EXTERNALLY-MANAGED
``` |
failed to upload a table from sql file |
I've been working on a python discord bot and wanted to containerize it, which has worked pretty well, but while testing one of the features (bot -> open API) via HTTPS I'm getting the following error:
`ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:811)`
I've read various ... |
I've been working on a python discord bot and wanted to containerize it, which has worked pretty well, but while testing one of the features (bot -> open API) via HTTPS I'm getting the following error:
`ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:811)`
I've read various ... |
I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata |
|java|android|null|android-livedata| |
null |
I need to add socket support in the backend for real-time chat. Initially, I implemented an automatic reply feature in the API for a mobile app. This feature automatically replies after a user sends a message to another person. Although the queue is working, it's not real-time. Now, I want to add a socket in the backen... |
Resolving ElephantIO ServerConnectionFailureException: Error establishing connection to server |
|php|laravel|websocket| |
It sounds like you are on the right track using [`pl.DataFrame.join_asof`](https://docs.pola.rs/py-polars/html/reference/dataframe/api/polars.DataFrame.join_asof.html). To group by the symbol the `by` parameter can be used.
```python
(
fr
.join_asof(
events,
left_on="Date", right_on="Ea... |
Troubleshoot .readStream function not working in kafka-spark streaming (pyspark in colab notebook) |
I am doing a detailed write up of purrr's accumulate function and for the most part, I understand its mechanics when the `.dir` is set to "forward", however when I set `.dir` to "backward" I am getting non-intuitive results.
Below is understanding of accumulate when .dir is set to "forward":
When using accumulate... |
As you mentioned in your comment checking if the user has permission is the easiest route to go.
Admins = 'manage_options' but you can make it available for editors using 'edit_others_posts'.
public static function check_for_saas_push() {
if ( ! isset( $_REQUEST['json_product_push'] ) || ( isse... |
Appends to dataframes and numpy arrays are very expensive because each append must copy the entire data to a new memory location. Instead, you can try reading the file in chunks, processing the data, and appending back out. Here I've picked a chunk size of 100,000 but you can obviously change this.
I don't know the ... |
How can i get the converted value from Celsius to Fahrenheit to show in a cell in the workbook of my choice?
Here is The Code for the problem:
```
Option Explicit
Private Sub UserForm_Initialize()
ComboBox1.AddItem "Inches to Centimeters"
ComboBox1.AddItem "Feet to Meters"
ComboBox1.AddItem "Cels... |
I am trying to emulate this script which summarizes statuses of pods that are not running by namespace and reason.
```sh
kubectl get po -A --no-headers |
awk '
BEGIN {
SUBSEP=" "
format = "%-20s %20s %5s\n"
printf format, "NAMESPACE", "STATUS", "COUNT"
}
!/Running/ {a[$1,$4]++}
END {
... |
The first thing I noticed was the lack of dots next to the php variables, I didn't check the code. |
I tried installing the NIST NBIS and followed the procedures inside the REL folder but I kept on getting error.
I tried the step by step command
[Steps](https://i.stack.imgur.com/Sua9z.png)
But I always get this error on my raspberry pi in step 2,
> cmake config
```
gcc: unrecognized command line option ... |
How to setup nist nbis in raspbian raspberry pi 4 |
|cmake|raspberry-pi4|fingerprint|pi| |
null |
To better learn React, TypeScript, and Context / Hooks, I'm making a simple Todo app. However, the code needed to make the context feels cumbersome.
For example, if I want to change what a Todo has, I have to change it in three places (ITodo interface, default context value, default state value). If I want to pass d... |
null |
all I have a project that will host Grafana app (whole app not only dashboard/snapshots) inside my website inside an iframe, I'm trying to set a SSO so my users wouldn't have to login to my site then into their Grafana account inside my website.
Grafana version and OS:
- Grafana 10.4.1 enterprise on windows 10
... |
In my case it was the shared-process that was using all of the available CPU. I removed all extensions, turned off sync and automatic upgrades, opened a single file in a clean directory. Nothing helped. VS Code was completely unusable. It just started doing this recently. I am at the latest SW version of VS Code (1.87.... |
{"OriginalQuestionIds":[20380161],"Voters":[{"Id":2943403,"DisplayName":"mickmackusa","BindingReason":{"GoldTagBadge":"php"}}]} |
It's the "Compilation specific hash".
### Origin of the hash
The [output-template in angular-cli](https://github.com/angular/angular-cli/blob/2fc8076a4b72d77df3900a4e419e64bd8e5da9bc/packages/angular_devkit/build_angular/src/tools/webpack/utils/stats.ts#L421):
```javascript
`Build at: ${w(new Date().toISOString()... |
Visual Basic For Application Related Question |
|excel|vba| |
null |
I would like to know how to load two models in memory and make inference with model1 or model2 like I want?
int __stdcall BinaCpp_loadNN(const char* filename)
{
//loading the model each time causes overload.
//The other option is to create a unique pointer which will be loaded once ... |
To check a field for a particular value, there is no need to attach a persistent listener, you can only perform a [Query#get()][1] call.
So assuming that you have two EditText objects:
EditText previousPasswordEditText = findViewById(R.id.previous_password_edit_text);
EditText newPasswordEditText = findV... |
null |
Hey the other day I was setting up arch mirror with rsync
[Unit]
Description=Sync repo
Requires=network-online.target
[Service]
ExecStart=/bin/bash /root/sync-repo.sh
User=root
Group=root
Type=oneshot
And When I tried to run it with systemd I got an error
$ s... |
You could wrap the slow part in an `#await` that defers to the next event loop, which causes the contents to be rendered separately (though still in one chunk).
```svelte
{#await new Promise(r => setTimeout(r)) then}
<!-- slow contents here -->
{/await}
``` |
[enter image description here](https://i.stack.imgur.com/MkbCI.png)
I'm beginning C. I tried to print "helloworld" but it has error
I used visual studio code(Mac). installed C/C++,Code runner
I just follow the C lecture, but occurred error.
anyone know solution this error? |
error in C "clang: error: linker command failed with exit code 1 (use -v to see invocation)" |
|c| |
null |
My script add fields to a pointlayer. This happens while iterating a polygon layer. For each feature I look for the closest point from a dataset. This point gets written to a pointlayer (REL_LAWIS_profiles). Code:
```
## D.4 Write LAWIS snowprofile layer
lawislayer = QgsVectorLayer('Point?crs = epsg:4326', 'lawispr... |
I have came across a strange behaviour when using `UNWIND` in `CALL` sub queries. The following query returns no records:
```
WITH [] as a, [1] as b, [1,2] as c
CALL {
WITH a
UNWIND a as row
RETURN row as A
}
CALL {
WITH b
UNWIND b as row
RETURN row as B
}
CALL {
WITH c
... |
Neo4j CALL subquery with UNWIND returns 0 records |
|neo4j|cypher| |
With iOS 17 it has happened the same to me but widgets start working after rebooting the iPhone |
I'm developing a car racing game in Unity using Dreamteck Splines from the Asset Store for track generation.
Currently, the car automatically follows the spline's rotation and position based on speed, but I want to implement player control where swiping on the phone allows the player to rotate the car manually, overri... |
How to Override Spline Rotation for Player-Controlled Car in Racing Game? |
|c#|unity-game-engine| |
null |
My script add fields to a pointlayer. This happens while iterating a polygon layer. For each feature I look for the closest point from a dataset. This point gets written to a pointlayer (REL_LAWIS_profiles). Code:
```
## D.4 Write LAWIS snowprofile layer
lawislayer = QgsVectorLayer('Point?crs = epsg:4326', 'lawispr... |
so the problem I am facing is when I run this command
from qiskit import execute
I am getting this error
cannot import execute from qiskit
I have tried asking every known source for the solution but no use so can anyone help me with this issue
|
i am not able to import execute from qiskit |
|python|command|qiskit| |
Understanding accumulate function when .dir is set to "backwards" |
|r|purrr| |
I have read a lot about calculating raw (standard) means and EMM. First are data based (descriptive stats), the latter are model based. I try to learn how to calculate both of them. In my example both results are equal. Variables Message and Relevance are factors with two levels.
What did I do wrong ?
Here is my... |
Can raw means and estimated marginal means be the same ? And when? |
|r|model|mean|interaction|emmeans| |
null |
I found a solution. It is probably a dirty solution, but it works.
The problem was to terminate my Activity just after the user manually grant the right MANAGE_EXTERNAL_STORAGE, knowing that :
- even after the user grant the permission, my Activity did not have the right (1)
- more over, if I end my Activity by fini... |
I want to create a new polars dataframe from numpy arrays, so I want to add the column-names when creating the dataframe (as I do with pandas).
```
df = pl.DataFrame(noisy_data.tolist(), columns=[f'col_{i}' for i in range(num_columns)])
```
But polars does not like "columns"
```
TypeError: DataFrame.__init_... |
how to create a polars dataframe giving the colum-names from a list |
|python-3.x|python-polars| |
null |