instruction
stringlengths
0
30k
|azure-data-factory|parquet|
Instead of using `@astropub/md`, you can use the Content Collections API to render your content. For example: ```astro --- import { getCollection } from "astro:content"; const allPosts = await getCollection("posts"); --- <ul> { allPosts.map(async (post) => { const { Content } = await post.ren...
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":7582247,"DisplayName":"Ted Lyngmo"},{"Id":2287576,"DisplayName":"Andrew Truckle"}],"SiteSpecificCloseReasonIds":[13]}
Modifying the URI of upcoming requests
One way to approach this (although might not be the best way) is to first vectorize the words in the two sentences (i.e. essentially giving a number to each word) which would give you a vector for each sentence. Then compare those two vectors for similarity. Code-wise, you can do the following in python. from...
Regular Expression convert to MYSQL format
|sql|mysql|regex|
null
This is expected behavior, use `AsNoTrackingWithIdentityResolution` instead of just `AsNoTracking`: ```csharp Context.Entity1s .AsNoTrackingWithIdentityResolution() .Include(x => x.Entity2) ``` Which should result in the desired output (if all the needed entities where fetched in the query). From th...
If you are running Bash 4.3 or later then this should work: shopt -s dotglob globstar git add **/[Ll]ivewire/*[Ss]tring1*.php * `shopt -s ...` enables some Bash settings that are required by the command: * `dotglob` enables globs to match files and directories that begin with `.`. `find` processes ...
In my case it was repeating the `<tr><th>` instead of only the `<th>` values. Non-working ``` <thead> <tr *ngFor="let item of tableColumns"> <th>{{ item }}</th> </tr> </thead> ``` Working ``` ...
I am having issues trying to display logon sessions info with Telegraf. How I have my setup at work is we use Telegraf, Prometheus, Grafana. I have created a bash file that gets me the data I need in json #!/bin/bash # Use last -F to get detailed login information, grep for "logged" to filter relevant...
|python|kivy|apk|kivymd|buildozer|
null
I have been reading about binary heaps and I was wondering if there was a similar representation that could be used to represent a non-complete binary tree, if that binary tree happened to also be full. We can use a sort of arena-allocation to represent any binary tree, using indexes into our memory arena rather th...
Represent a full, but not complete, binary tree with an array structure
|tree|binary-tree|abstract-data-type|representation|data-representation|
In my case i'm adding icons like this assets: - assets/images/ - assets/icons/ but in my case i have not use any icon in the project and i have remove this line - assets/icons/ in pubspec.yaml after that i have pubget that and i have hot restart apply in my project and this error are resolved
{"OriginalQuestionIds":[280712],"Voters":[{"Id":3832970,"DisplayName":"Wiktor Stribiżew","BindingReason":{"GoldTagBadge":"javascript"}}]}
When I define a molecule with qiskit's PyscfDriver, it has a certain number of (spatial) orbitals. In this example, I define a NaH molecule and get an object with 10 spatial orbitals. I would like to reduce this number by reducing some orbitals from the active space. I intend to the FreezeCoreTransformer as in `F...
How does orbital ordering in Qiskit Nature work?
|python|chemistry|qiskit|
null
#### Through the Jupyter ui open the `Cell Tags` under the `COMMON TOOLS` - For Jupyter Notebook: navigate through `View -> Right Sidebar -> Show Notebook Tools` - For Jupyter Lab: go to the [Property Inspector][1] ⚙ (top right corner) add tag `#A` for the first cell, for instance: ```python import numpy as np ...
Typically, I answer Cytoscape desktop (not Cytoscape.js) questions, but I have built a web site (see https://spoke.rbvi.ucsf.edu) that does exactly what you are proposing. For a number of reasons, we implemented it with an intermediate REST interface so that we don't have to expose our Neo4J database. The REST interf...
It looks like you should be able to visualize your own AOP using AOP Xplorer. If you go to: https://github.com/DataSciBurgoon/aop_networks they have a number of sample networks (look for .sif files). If you construct your data similarly, you should be able to read it in. I've never used that app, however, so your mi...
I tried updating the certs as others suggest, but they just become outdated and then the same problem repeats itself. What you have to do on windows is to configure java to use the MS cert store, instead of javas. So in the same directory as the eclipse.exe, find eclipse.ini. In it find the line: -vmargs ...
{"Voters":[{"Id":328193,"DisplayName":"David"},{"Id":11182,"DisplayName":"Lex Li"},{"Id":14732669,"DisplayName":"ray"}],"SiteSpecificCloseReasonIds":[19]}
I have not found the Problem, but afer update greenlight to the newest version the Error disappears
Change the dependency to below <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>4.10.0</version> </dependency>
I have .net 6.0 API project. Its containerized application using docker. Its built using Visual Studio. It uses AzureAD for token based Auth. I want to run this API on my dev machine using Docker Desktop. I am using Windows 11 laptop for my development. When I run API from Visual Studio (without docker) and c...
the issue seems to be the token, generated new token and it worked. just make sure the token has all the access to read the contents from the target repo
I'm parsing a text file (hosts.txt) that has the following format: #line to ignore 127.0.0.1,localhost 192.168.0.1,my gateway 8.8.8.8,google DNS My goal is to read each line, store the 2 pieces of information in a class, and then store the class in a table. Later on, I will go through the table, will read e...
How to store/retrieve a class information to/from a table?
|python|class|
null
Using MudTextField works well once you've added the **name=**"Model.Field" because asp.net core with that can find <input> tag and bind the fields of Model. <EditForm Model="vm" OnSubmit="Submit" FormName="LoginForm"> <MudTextField @bind-Value="vm!.UserName" name="vm.UserName" Label="User Name" /> ...
I've found this useful help to Merge All Windows in Visual Studio Code: [text](https://stackoverflow.com/questions/45916181/vs-code-how-to-keep-two-projects-open-in-tabs-instead-of-two-windows) Now I'd need: - to set as default on Visual Studio Code startup - and when I open a new Window (when I press Shi...
How to set Merge All Windows as default in Visual Studio Code?
|visual-studio-code|vscode-extensions|
null
{"OriginalQuestionIds":[46274888],"Voters":[{"Id":6216216,"DisplayName":"Leviathan"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels","BindingReason":{"GoldTagBadge":"java"}}]}
``` from turtle import * import colorsys speed(0) bgcolor("black") h = 0 for i in range(16): for j in range(18) c =colorsys.hsv_to_rgb(h, 0.9, 1) color(c) h += 0.005 rt(90) circle(150-j*6,90) lt(90) circle(150-j*6,90) rt(180) c...
I have two arrays containing file names files_ref=( ($find . -name '*.fasta') ) files_fq=( ($find . -name '*.fastq') ) I understand that if I want to iterate over pairs of items I would do something like this: for i in "${!files_ref[@]}"; do printf "%s is in %s\n" "${files_ref[i]}" "${fil...
Why is it a bad idea to remove elements from an array whilst iterating through it?
You can add some validation in your handleChange function to remove all characters that are not numbers ```javascript const handleChange = useCallback((inputValue: string) => { const newValue = inputValue.replace(/\D/g, ""); // rest }, []); ```
I am using React Js and express together for my web application where in express will serve static files of react build. MY Requirement is to pass the environment specific react urls at the time of deployment. So for this I have created a .env.template file where I have maintaine template like below REACT_APP_PR...
I solved this problem as follows: {{ model.body|safe }}
After visiting many sites on the internet, I could not find the way, How can I make a `div` which fills the browser window? Firstly it should be hidden but on postback, it should be visible. This div is not the direct child of the `body` tag instead it is placed inside the table row. What kind of CSS should I apply so ...
null
``` import { createRouter, createWebHistory } from 'vue-router' import Page1 from '../components/Page1.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'Page1', component: Page1 }, { path: '/Page2', ...
Failed to resolve import "vue-router" from "src/router/index..js". Does the file exist?
|vue.js|
null
Imagine this scenario. I need to write a bunch of test methods that all require the same slow and complex set-up. I need to ensure that: 1. Every test method tests only one thing. If I have a myriad of unrelated assertions in one test method, and the test fails, it won't be immediately clear what exactly went wrong ...
docker desktop remote certificate is invalid
|.net|docker|authentication|azure-active-directory|
null
we are calling the highcharts library to render a line chart. each data point will have a lower and upper confidence limit we also render as a line. the line is rendered using the to_pixel function to find the coordinates where to plot the line and using renderer to actually plot it. now we are experiencing that a...
how to know if the high charts chart has finished rendering
|highcharts|
null
Hi i have installed keras and keras_nlp but when i try to use any module from keras_nlp it throws AttributeError. For example module keras_nlp has no attribute "models". i am using python 3.11.0 and the keras version is **3.2.0.dev2024032703** [![enter image description here](https://i.stack.imgur.com/UOxcw.png)](htt...
AttributeError: module 'keras_nlp' has no attribute 'models', __verssion, etc
|python|keras|attributeerror|keras-nlp|
null
I have a chat function in which I pass text and it is displayed in a chat bubble for question and answer. The chat function passes answers which could sometimes be large amount of text( just like in Whatsapp) so need a Read more functionality so that only if they want to read, they can click on the button and read it. ...
The chat functionality with 'Read more and Read less' functionality not working
|php|android|ios|flutter|flutter-dependencies|
null
I am in the process of adapting the selectpicker code which is in Jquery to Native JavaScript i got this problem since 3 weeks, that I don't know how to resolve it [dropdown default focus](https://i.stack.imgur.com/PC2tG.png) [focus blue background that I want to use](https://i.stack.imgur.com/Cr6Fx.png) -norma...
I'm doing web scraping but the website detects me. I changed the userAgent, platform, appName etc using Object.defineProperty(navigator, "example"). But the last thing is the navigator.userAgentData.platform and navigator.userAgentData.getHighEntropyValues. Is there any way for the `getHighEntropyValues` to return t...
How can I override navigator.userAgentData?
|javascript|web-scraping|user-agent|fingerprint|navigator|
def prompt_for_angles(angle_name: str) -> float: try: angle: float or None = float(input(f"Angle for {angle_name}: ")) while not (0 < angle < 180): # while input is NOT correct print("Invalid. Please enter an angle between 0 and 180") angle: float or None = float(in...
With respect to your first question, in monadic Happy parsers, the monadic actions are executed at the time of reduction. If you dump the debugging info for your Happy parser with: happy Parser.y -i and inspect the resulting `Parser.info` file, you'll find the following state: State 12 inj...
Replace REACT Variables in build folder before serving the build by express Server
|reactjs|node.js|express|build|gitlab|
null
I am attempting to address the following puzzle concerning a Liquibase schema XML script. My goal is to create a new index for a PostgreSQL table using Liquibase schema, with the following conditions 1. If the index already exists, the script should drop the existing index and then create a new one. 2. If the index...
I have a multi select list in which items can be marked as selected. I'm using a state to pass the data prop to the Flashlist and I'm storing the selected item in a separate state. An already selected item will get deselected if pressed again. An item gets marked as selected and deselected on first and second press...
def prompt_for_angles(angle_name: str) -> float: try: angle: float or None = float(input(f"Angle for {angle_name}: ")) while not (0 < angle < 180): # while input is NOT correct print("Invalid. Please enter an angle between 0 and 180") angle: floa...
This is how you create a link in markdown: ``` [link text](link.address) ``` So you have to wrap your badge with: ``` [](mailto:test@test.com) ``` Result: ``` [![Email Badge](https://img.shields.io/badge/Gmail-Contact_Me-green?style=flat-square&logo=gmail&logoColor=FFFFFF&labelColor=3A3B3C&color=62F1CD)](ma...
I have a `CValues<VkLayerProperties>` which is passed to a C function so that it can fill the array. ```kotlin val layerProperties = createValues<VkLayerProperties>(layerCount.value.toInt()) {} vkEnumerateInstanceLayerProperties(layerCount.ptr, layerProperties.ptr) ``` How do I convert this array to a `L...
How to convert CValues to List in Kotlin/Native (or iterate)?
|kotlin|kotlin-native|cinterop|
There's always a lowercase `v`. But seriously, aside from Unicode, all I can find would be `&darr`, which looks like &darr;.
I need send a int to a C# server (POST) and then return Json. On server (C#) always comes zero. In JS browser console all right (not null/zero). It's error 500 (Failed to load resource: the server responded with a status of 500 () ) Code: ``` const CallNextTextFromChoice = (nextChoiceID) => { axios.post...
Writing test methods with shared expensive set-up
|java|testing|junit|junit5|
I want to disable showing soap services in wso2 api manager 3.2.0 gateway. <br> [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/JFTkS.png <br> Because of security risks (soap action spoofing) I don't want this page to come up. How can I restrict access to this page?
null
|process|operating-system|resources|dining-philosopher|
I want to select from a Listbox and use the value selected to retrieve other data which will also be inserted to another Listbox for selection. When selecting the first Listbox, it works successfully without any error. The second Listbox also gets updated with new list on selecting the first one. The problem comes when...
How do I select from a Listbox without errors?
|python|
null
Bit fields don't have a storage but they have memory location of same size as the scalar type you had supplied, therefore alignment usually is at least of same size, but order in a is not defined until a zero-sized field is encountered - "non-zero bit-field sequence of same type". In your case , on little-endian sys...
Telegraf input.exec not working with json
|prometheus|grafana|telegraf|telegraf-inputs-plugin|