instruction stringlengths 0 30k ⌀ |
|---|
|text|hover|queryselector| |
null |
**You should use window functions** for this, it is likely far more efficient than joins.
Unfortunately, `COUNT(DISTINCT` is not implemented for window functions, so you need to hack it with `DENSE_RANK` and `MAX`
```sql
with ranked as (
select *,
dense_rank() over (partition by column1 order by column... |
Inside my top level SystemVerilog module is an instance, (rd_blk), that has an interface port, (sec_rd). I need to temporarily connect it to combinational code, but I'm having difficulty coming up with an error free solution. Suggestions please.
```
interface sec_rd_if (
input wire clk
);
logic sec_rd;... |
How to connect combo code to a module's interface ports? |
|verilog|system-verilog|synthesis| |
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() {
... |
Deserialize XML with optional different name |
|c#|xml|serialization|deserialization| |
We help people. There are many people who want to promote their business or their content through social media and for that they create links of small WhatsApp groups and they share the links of such groups with us.
[enter image description here](https://i.stack.imgur.com/OmGrC.jpg)
Links are like https://chat.w... |
How to make comman post or page for external links in wordpress website using php or any language |
|redirect|hyperlink|custom-post-type|custom-wordpress-pages| |
null |
I guess the panel used here is not `Grid` but some other custom UI components. Irrespective of culture info, you can fix the buttons like the following xaml and resize to any width.
<Grid.RowDefinitions>
<RowDefinition Height="60" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
... |
This is because of [CSS Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity)
You're CSS bit `.open` is overruled by `.header ul`.
If you change the `.open` to `.header ul.open` it should work. |
>Can anyone help me how we can debug/run logic app using VSCode.
To Debug the error follow the steps below:
When we export the logic apps we are given option to deploy connections, It mentioned the required steps to follow.
> **Note :** To run the Logic apps locally You need to have installed [`Azure Function ... |
SwiftUI: Reset State When Drag Operation Ends Without Drop |
|swiftui| |
> There is no word of changes needed into app.
That's because there are no changes required.
If you read the linked documentation thoroughly, and its linked materials, you'll find that the changes are entirely in the protocol with the FCM API for sending messages from your backend. |
null |
I have a web service that provide information about the (last) song that is currently playing on a radio.
How can my observable update the data from my http request by itself?
My provider:
load() : Observable<{}> {
return this.http.get(this.URL).map(res => res.json());
}
My component:
... |
Check the change of API with observable and update data |
|angular|ionic-framework|observable| |
To work with a `Security Descriptor` using `SDDL` (Security Descriptor Definition Language) you first need to know the structure.
From [MS Learn - Security Descriptor String Format](https://learn.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-string-format)
> The format is a null-terminated string... |
I have subform1 and a query1 with 4 fields as its recordSource. How do I add dynamically items I select from a listbox1 to my subform1 along with the 4 fields from query1. Basically, I want the 4 fields from my query1 plus any 1 or 2 items I select from my listbox1 to be displayed on subform1.
Something like this p... |
Through single repeat:
1. Press: <kbd>i</kbd> to enter into Insert mode
2. Press: <kbd>-</kbd>
3. Press: <kbd>Esc</kbd>
4. Press: <kbd>8</kbd><kbd>0</kbd><kbd>.</kbd>
It will output: 81 `-`, like this:
---------------------------------------------------------------------------------
More details ... |
Our application uses a Tomcat web service to build partial views and insert them into a third-party web program
However, as of a major codebase upgrade from Tomcat 7 to Tomcat 10.1, the display is getting blocked by the X-Frame options, which are always listed as `DENY`
I updated the Tomcat `web.xml` to add the `... |
Incorrect Serialization and Deserialization of Union Types with dataclasses-avroschema |
|python|avro| |
I have followed a tutorial on youtube and the tutorial shows me how to classify 2 datasets (cough, not cough), but now I need to add an extra class which is sneeze, so there are 3 classes that need to be trained on (cough, sneeze, other), and I have no idea how to do this. PLEASE HELP!!!
In the code, the model is tr... |
I had the same issue and it was caused by `_id` from MongoDB not being a plain object, I have used `toString()` and it works. |
null |
I am very new to pine script and am working on some code. I am plotting FVGs for the past 5 days in a certain time range. I have the plotting of the boxes down but I have two problems.
1. I want to fvgs/boxes to only extend to 10:10(end of macro) on the day they are plotted instead of to the current day.
2. I w... |
**100% Working Settings...**
1. Open the Command Palette (Ctrl+Shift+P Windows/Linux or ⇧ ⌘ P Mac).
2. Type "Preferences: Open Keyboard Shortcuts (JSON)" and press Enter.
3. Add the following entries to the `keybindings.json` file:
```json
[
{ "key": "alt+right", "command": "workbench.action.terminal.... |
null |
**Working Settings:**
1. Open the Command Palette (Ctrl+Shift+P Windows/Linux or ⇧ ⌘ P Mac).
2. Type "Preferences: Open Keyboard Shortcuts (JSON)" and press Enter.
3. Add the following entries to the `keybindings.json` file:
```json
[
{ "key": "alt+right", "command": "workbench.action.terminal.focus"}... |
I am writing a program that converts multi-sheet Excel files into .h5 format. The program runs normally in Python, but after being packaged into an exe file with pyinstaller, the convert_to_hdf5 function reports an error 'sequence item 2: expected str instance, NoneType found'.
```
import tkinter as tk
from tki... |
error 'sequence item 2: expected str instance, NoneType found' while operating HDF5 format in Python |
|python|pyinstaller|hdf5| |
null |
Suppose I want to put an object on the "heap", but I need to have some additional memory allocated after it.
My understanding is that the following would be a standard-compliant way of doing this:
(Assume for the moment that nothing is overriding `new`, and the destructor of `SomeClass` doesn't throw)
```c++
#i... |
How to classify multiple classes in TensorFlow |
|python|tensorflow|machine-learning| |
null |
I have been trying to run an undocumented backend which used to work but now it does not, it is supposed to use mapserver and mapscript, I keep trying to send it a post call but I keep getting this error
File "C:\Users\(user)\AppData\Local\Programs\Python\Python37\lib\site-packages\mapscript\mapscript.py", line 10, ... |
Can't run Python's mapscript because of a missing DLL |
|python|import|path|mapserver| |
null |
I am building a memory game and want to loop through all images one by one in javascript.
The idea is to put it in the ImageUrl variable i have made connected to the newCard variable and loop over every image one by one by click on html image.
I've tried to research it but can't find any answers.
This is what i ... |
Want to extend FVG to certain time |
|pine-script|pine-script-v5|tradingview-api|trading| |
null |
**Remove Transforms from Parent Element**
As @Paulie_D commented:
> A position: fixed element is always positioned in relation to the body
> but you have to specify where it is positioned.
However, OP broke this relationship by using a translate transform to center the parent element on the page. The transfor... |
|c++|allegro| |
|java|algorithm| |
Problem solved !
The problem was the way I built the route, here is the great way :
```php
$builder->connect(
"/:category/:item",
['controller' => 'Categories', 'action' => 'item'],
[
'routeClass' => DashedRoute::class,
'pass' => ['category', 'item'],
'category' => '[a-z]+... |
I am trying to convert my Xamrin project to MAUI. In my Xamrine project, I use the "Xamarin.GooglePlayServices.Auth" package. But when I tried this in MAUI I got this error
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/SFVL5.png |
How to do auto OTP filling in MAUI? |
|.net|maui| |
I have a page where I want to put a card around the content. The card is in a `.container` div to provide some padding, and that div is in a `.page` div that is the height of the viewport and that scrolls on overflow. I want the card to fill the height of the page when the content is not big enough to overflow the page... |
I've ran into an issue, where I need to check the sent `JSON` structure with image data inside, currently I can check the request in the browser inspection tab, but the data is too long and the check freezes the browser tab.
**My question is**: Can I somehow minimize the sent `JSON` and display its structure instea... |
Checking request JSON with image data |
|json|debugging|react-hooks| |
As checked on [JavaDoc][1] there is no such class named "Properties" available in Package org.apache.kafka.clients.consumer. Then on what basis you have created the object, Could you please clarify?
Thanks.
[1]: https://javadoc.io/doc/org.apache.kafka/kafka-clients/latest/index.html |
I got the same error message and main error was in my primary key name because I created primary key with different name like GuestId so I have to define manually [Key] attribute schema on GuestId.
Try to check your Class primary property. |
I'm testing Apache Hudi with Flink SQL Client on Yarn cluster. When I'm trying to create a Hudi catalog ([like described][1]) I'm facing an error telling me that `hive.conf.dir` and `mode` options are not supported.
```
org.apache.flink.table.client.gateway.SqlExecutionException: Could not execute SQL statement.
... |
You can revert back to a VStack and remove Combine if you substitute your .onReceive call with .task;
`.task(id: tasks) { ...`
You would also have problems if editing the tasks changes the sort order, and it might be better to create a boolean State variable that your set to true when a `proxy.scrollTo` is needed ... |
I'm having trouble with my code. I'm trying to write a while loop that allows users to enter an album's artist and title. Once I have that information, I can call the function make_album with the user's input and print the dictionary that's created. I also need to include a quit value in the while loop.
My problem is ... |
lcmm() Graphing Models Fit with Random Intercept Only or Random Intercept and Slope |
I'm having trouble with my code. I'm trying to write a while loop that allows users to enter an album's artist and title. Once I have that information, I can call the function make_album with the user's input and print the dictionary that's created. I also need to include a quit value in the while loop.
My problem is ... |
You can try this in powerquery
#"Convert" = Table.TransformColumns(#"PriorStepNameHere",{{"Column1",
each let a=Text.Replace(_,"s",""),
b = Text.Replace(a,"Day","*1+"),
c = Text.Replace(b,"Hour","*1/24+"),
d = Text.Replace(c,"Minute","*1/24/60+"),
e = Text.Replace(d,... |
I built and trained a Keras Tensorflow Probability model. It's basically a fully connected Neural Network model with a DistributionLambda on the output layer. Last Layer code example here:
tfp.layers.DistributionLambda(
lambda t: tfd.Independent(tfd.Normal(loc=t[..., :n], scale=1e-5 + tf.nn.so... |
please recommend simple Web-panel for creating Short Links. I use ubuntu 22.04 and LEMP stack.
Thank you in advance! |
|python|pandas|dataframe|web-scraping|beautifulsoup| |
I opened a source code of `getScaling` and saw how scaling is calculated there: https://glmatrix.net/docs/mat4.js.html#line1197
```js
export function getScaling(out, mat) {
let m11 = mat[0];
let m12 = mat[1];
let m13 = mat[2];
let m21 = mat[4];
let m22 = mat[5];
let m23 = mat[6];
let m31 = mat[... |
this is the first time i use the flutter firebase I have done all the necessary steps for the project and put everything in the right place. But I get this error every time I run the project.
this is the link of my project : https://github.com/hmoodaps/chat_app
E/flutter (15196): [ERROR:flutter/runtime/dart_vm_in... |
I have a logic where I want to insert data into database. SO I am sending `ajax` request through my local machine. Below is the code for the same..
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
$("#btnSubmitCT").on('click', function () {
... |
Getting POST 500 Internal server error while sending request via ajax call |
|javascript|jquery|ajax|model-view-controller| |
**Updated on Mar 29th, 2024**
Please note the following two points when you use `createUserWithEmailAndPassword` to create a new account:
1. Check if you get `auth/weak-password` error code when using a weak password (less than 6 chars)
2. Check if you try to use a registered email (Hozayfa and Aakash mentioned)... |
Create subclass of UIAlertController and in disappear hide view for Alert as below.
@MainActor open class CustomAlertView : UIAlertController {
open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
view.isHidden = true
}
}
... |
I don't know how to get my announcement to insert into the form for editing.
How to insert existing data into the form for editing?
i try use include.
i don't understand how get edit form.
and i have another one question:
how to make favorites announcement without js?
help me please
my model:
```
class Ann... |
I have a fortigate `ec2` instance in public subnet. An `eks` cluster in public subnet application deployed in `eks` is accessible using `NLB` endpoint in public subnet. I want all the traffic to my application pass through the fortigate firewall(fortigate instance and `NLB` are in same public subnet).
So I have tried ... |
Can you stop `asyncio.sleep()` from sleeping? I want to run some code in a coroutine either after waiting 20 seconds or if a Boolean is true, is there any way to do that? I can only think of achieving it like this:
while t < 20 and not value:
asyncio.sleep(1)
t +=1
...
Is there a more ... |
I am developing a C library and have a test harness program that links against the library to test functionality. When buiding for testing, I want both the test harness and the library to have debug symbols as I am using the [Address Sanitizer](https://clang.llvm.org/docs/AddressSanitizer.html) and Leak Sanitizer to de... |
Unsupported options found for 'hudi' |
|apache-flink|flink-sql|apache-hudi| |
I am writing a perl script which uses some fields from "df" command.
```
my $command = "df -a";
my $output = `$command`;
# my $outputs = qx/df/;
print "$output\n\n\n";
```
This is giving me output as follows-
```
Filesystem 1K-blocks ... |
If you want to remove the warning you can follow the approach which [the interfaces uses itself][1] - use the `AllowNullAttribute`:
```csharp
public class TestDataParameter : IDataParameter
{
// ...
[AllowNull]
public string ParameterName { get; set; } = "";
// ...
}
```
See also:
- [At... |
You can define your linear layer separately from the classifier as a standalone layer:
self.linear = nn.Linear(in_features=hidden_units*7*7,
out_features=output_shape))
Then in the forward function, the equivalent implementation would be:
def forward(self, x: torch.Tensor)... |
I encountered the following problem: I have a pandas dataframe that looks like this.
| id_tranc | sum | bid |
|:------- |----:|:----------:|--------:|
| 1|4000|2.3%|
| 1|20000|3.5%|
| 2|100000 |if >=100 000 - 1.6%, if < 100 000 - 100$ |
| 3|30000| if >=100 000 ... |
I am trying to login to this page https://eddui--preprod2.sandbox.my.site.com/s/scplogin?language=en_US&redirectUrl=https%3A%2F%2Ficampp.edd.ca.gov%2Fhome%2Fcaeddicamext_uiostgrf_1%2F0oa6gj2jlz4J3AlIE1d7%2Faln6gj88wtdBQHuBn1d7
and trying to login through the DOM element's Email and Password field but Cypress is una... |
I'm not sure. Is this what you were asking for?
UserConnection::where(function ($query) {
$query->where('from_user_id', $this->id)
->orWhere('to_user_id', $this->id);
});
----------
You can combine it with Laravel Attribute for a single call.
public function userCon... |
null |
Although @oguz-ismail's answer would work with the sample output provided, it seems that actual `equery` output is very strange when fed into a pipe.
This convoluted commandline seems to work around the problems:
```
</dev/null script -B/dev/null -f -q -c '
eix-installed -a | xargs equery depends
' |
tr -... |
sudo gem install -n /usr/local/bin cocoapods -v 1.8.4
It worked for me. |
Had the same exact issue with DevExpress.Reporting.Core and DevExpress.Drawing.Skia 23.2.3 running on Docker Linux container.
Docker container is now generating PDF files.
Project is .NET 8 Api, in the Program.cs file:
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
DevExpress.Dra... |
Is there any way to create a relationship on a Laravel model using an "OR" condition for the field used to join the table while loading an eloquent model?
Example Table: `user_connections`
| Name | Type |
| -------- | -------- |
| id | bigInt\|primary\|auto_increment |
| from_user_id | bigInt |
| to... |
When creating a User Story we chose to close it we get 3 options "Cancel", "Discard" or "save changes".
By choosing the option to "Save changes" one would expect a draft version of the ticket to be created to be saved, but where is it?
Steps to reproduce the case in question:
1. Choose an existing well created a... |
Where to find a User Story draft? |