instruction stringlengths 0 30k ⌀ |
|---|
Outlook has limited CSS support, especially when it comes to layering elements on top/bottom of each other. Unless you can get real creative with using table elements to mimic what looks like elements on top of each other, the answer is no. It's not possible to pull this design off in Outlook instances as of today. |
I apologize for the excessive text, but I tried to explain how I think in detail.
Also, I know that term "sub-module" does not exist, since all modules are equal, but I am referring to a case where one module (go.mod file) is within some other module.
I am reading [documentation](https://go.dev/ref/mod) for gola... |
Error deploying Next.js app on Vercel: "RangeError: Maximum call stack size exceeded |
|next.js|vercel| |
|angular|rxjs| |
I'm using Next.js app version 14.
RTL is not applied to Shadcn components.
I'm also using next-intl to support multiple languages
Here's how my layout.tsx file looks like:
```
layout.tsx
import type { Metadata } from "next";
import "../globalsyour text.css";
import localFont from "next/font/local";
import ... |
How to build an object from strings in rust? |
|oop|rust|type-conversion| |
null |
Try Removing @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
@EmbeddedKafka( |
TYPO3 12.4, Powermail 12.2.1:
the following cObject in Mail to User or in Submit Page:
{f:cObject(typoscriptObjectPath:'lib.anrede',data:'{anrede}')}
throws the following error:
TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::getContentObjectRenderer(): Argument #1 ($request) must be of type Psr\Http\M... |
typoscriptObjectPath throws error in Powermail 12 |
|typo3| |
A return type changed from `const Bar& getBar()` to `const Bar getBar()`.
If i use:
`const auto& bar = getBar();`
and the return type changes. I have a reference on a temporary object.
If i use:
`const auto bar = getBar();`
i always make a copy of `Bar`.
What is The best practice for this problem?
... |
//next.config.js
```javascript
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
output: 'export',
images: {
unoptimized: true
}
// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
// trailingSlash: true,
// Optional: Prevent automatic `/me`... |
How to Apply RTL Support to Shadcn Components in Next.js? |
|next.js|next-i18next|radix-ui| |
I was using HTML, CSS, PHP and JavaScript to code a simple one page website in Visual Studio Code. I basically only added a background image and a header containing a logo and title when I left to do something else. When I came back, I recieved the following error:
> Error spawning PHP: Command failed with exit cod... |
|php|html|visual-studio|executable| |
null |
I have 2 services(2 app runner endpoints) with 2 different api(1. test.com/svc1/home, 2. test.com/svc2/home). If I hit **test.com/svc1/home** it should get the data from service 1 and the URL should transfer into test.com/home and its the same for service 2. If I hit **test.com/svc2/home** it should get the data from s... |
setting same API path for different service and transfering api path |
|api|aws-api-gateway|api-gateway| |
null |
Just as an academic challenge, here is a short-circuiting recursive approach that doesn't rely on a loop and explicitly checks for null-ness (versus falsey-ness). This won't be outperforming other scripts which use `foreach()` and no iterated function calls.
Code: ([Demo][1]) ([IIFE One-liner Demo][2])
$array... |
Do note that the variables like `month` are tied to the UNIX time of the candle's open. For forex exchanges, Feb 5 candle opens on Feb 4, and Feb 6 candle opens on Feb 5, so the open on the Feb 5 daily candle returns `dayofmonth` of 4. As such, the expression you provided will be `true` for the end part of the Feb 5 ca... |
I'm looking for a preg_replace that can replace " with ' when between font-family: and ;
I'm having an issue with my some dynamic html I'm using which requires me to replace the quotes with single quotes in my style attribute. Font and Font-family attributes can sometimes have quotes when they have spaces in the nam... |
Replacing quotes with single quotes between two strings in php using preg_replace |
|php|preg-replace| |
null |
The justify-content:center is making the content to align to center and some of the left is cut off. You could remove it and try.
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-css -->
.container {
width: 1000px;
margin: 0 auto;
disp... |
null |
The `justify-content: center` is making the content to align to center, and some of the left is cut off. You could remove it and try.
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-css -->
.container {
width: 1000px;
margin: 0 auto;
display: flex;
... |
It's just an operator precedence issue that you're facing.
In the expression **x&1 == 0**, `==` has the highest precedence; it will be executed before `&`. As a consequence, **x&1 == 0** will evaluate to **x & (1 == 0)** which evaluates to **x & 0** (always equal to 0).
You can find here the official C++ Operator... |
I had a small question.
I was reading some code and found (code accepting filename and command line parameters)
**@ :: ARGS** = ($0,@ARGV);
but unable to understand 1st part of the expression, what exactly it is doing ?
is it behaves the same way as **@ARGS** = ($0,@ARGV);`
|
Perl :: special character use |
|perl| |
The problem is due to email enumeration protection which is active by default on Firebase accounts created after September 2023.
When this feature is active numerous auth functions no longer work. Specifically, concerning this question:
> You can no longer use the linkWithCredential client SDK method with an
> E... |
i am very new to JavaFX and no nothing about it. i have been watching youtube videos on how to use scenebuilder but somehow when im on this part i cant set the code and this message prompts.[this is the message that prompts](https://i.stack.imgur.com/VDeO2.png)
a fix for my problem that keeps on occurring
Log... |
How to create a virtual-hosted-style presigned URL for an S3 bucket in a non US region? |
|amazon-web-services|amazon-s3|boto3|pre-signed-url| |
null |
Step 1: Create a file called header.js and paste following code:
`$(function(){
$("#header").html(`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">........`);
});`
... |
I made a library to convert from parquet to Postgres’ binary format: https://github.com/adriangb/pgpq.
It lets you use PyArrow to read the parquet data and your postgres driver of choice to write it out (e.g. psycopg).
Update: it's been pointed out to me that DuckDB can do this as well. Here's a benchmark where I... |
I am trying to generate a signature programmatically for the body of my SOAP Messages
Looking at the [spec](https://www.w3.org/TR/xmldsig-core2/#sec-KeyInfo) it should be possible to have
```
<KeyInfo>
<X509Data>
<X509Certificate/>
<X509IssuerSerial>
<X5... |
null |
docker 19.0.3 ([release notes](https://docs.docker.com/engine/release-notes/19.03/)) added a `--gpus` argument to their `docker run` command
which we can provide through vagrant's `create_args` docker configuration option, [docs](https://developer.hashicorp.com/vagrant/docs/providers/docker/configuration):
> create... |
The thing is that I need to create a table and export it as a photo. There are some elements that I need them to be aligned to the right, but I want them to have some margin with respect to the end of the cell. What I did is to convert these numbers to a string, and then I added a blank space at the end (representing t... |
I am trying to remove a item from a list. I have a table named InvItem and another table named InvItemLoc. When I add a item then the id of InvItem table is used as foreign key in InvItemLoc table. But when I delete a item the child table row is not deleted. Now I need to generate a list of InvItemLoc table by the InvI... |
Sam's answer worked. Also, I had to add a **+0** at the end to get 0 when the values are not present.
Bug Count 2 =
CALCULATE(
COUNT('test_execution_summary'[ExecutionDefect]) + 0,
'defect_report'[Issue Type] = "Bug"
) |
Since you're not using Hilt for dependency injection, you need to provide an instance of FoodDao to your MainViewModel manually.
you can modify your code to provide the FoodDao dependency to MainViewModel:
@Composable
fun MainActivityScreen(viewModel: MainViewModel = viewModel()) {
val context = L... |
I'm assuming you ARE getting an error message. You check the logs and you get a message, "Sign-in button successfully located.", then a message, "Failed to locate the sign-in button.", and THEN the actual exception message printed to the logs. I'm assuming the error message is an element not interactable exception.
... |
As the title suggests, I want to record the screen with the iPad's own record button. Currently, I can record in silent mode. I received information saying "it does capture sound, you just need to enable it." However, I can't find where to enable it.[![de][1]][1]
[1]: https://i.stack.imgur.com/C5KDh.png |
Record screen with sound in İpad Pro(11-inch) simulator |
|ios|xcode|simulator| |
Since you have explicitly mentioned decrease clause, Dafny will use that decrease clause. You assumption that it will compare `x + y` with tuple `x`, `y` is wrong. It would have chosen tuple `x`, `y` as if you haven't provided decrease clause. In either case it will compare decrease clause of invoking function/lemma wi... |
unreachable network error when establishing a bluetooth connection between raspberrypi and laptop |
|python|c++|raspberry-pi|bluetooth|network-programming| |
I have a project and when i try to run the main or the test directories i have no problems with the gradle build.
But now when i try to run a an android test i get this error:
Directory 'C:\Users\...' does not contain a Gradle build.
i wrote a Compose Test that looks like this:
`@RunWith(AndroidJUnit4::cla... |
The app I work on currently uses Java 8. We're migrating to 17 and as part of that I need to convert some code which currently references SoyTofu to use SoySauce ([Google Closure Templates][1]). Here's the relevant parts of the class I'm working in. My goal is to have the lightest possible touch on this code, but I'm g... |
Create an Azure AD application and grant User.Read API permission:

Generate the auth-code by using below endpoint and sign-in with the user account:
```json
https://login.microsoftonline.com/TenantID/oauth2/v2.0/authorize?
&client_id=ClientID
&r... |
null |
null |
I would like to check if it is possible for CKAN to connect to SSL/TLS solr and redis?
I have created CA and certificate (signed by CA) using openssl, then I imported the certificates into the certificate manager in linux, here is what I did to import to the certificate manager.
In **Dockerfile** of solr,
... |
Is CKAN able to connect to self-signed certificate of solr and redis? |
|ssl|solr|ckan| |
**HTML**
<h1 class="font-black uppercase text-6xl md:text-8xl text-center py-8 px-4">
<div [ngStyle]="true ? { color: 'red' } : { color: 'yellow' }">home page</div>
</h1>
**ts**
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
@Com... |
This is easy to decode manually:
* 30: data type
* 0f: 15 bytes of data follows
* 31: data type
* 0d: 13 bytes of data follows
* 30: data type
* 0b: 11 bytes of data follows
* 06: data type
* 03: 3 bytes of data follows
* 550403: data
* 13: data type
* 04: 4 byte... |
Мне необходимо вывести таблицу (целиком) из файла Excel в модель Anylogic.
Во время моделирования в файл xlsx будут записываться значения некоторых переменных (таблица изначально непустая). После будут проводиться еще некоторые действия и снова запись в файл xlsx. Нужно чтобы во время всего моделирования на экране б... |
How to display an Excel table in an AnyLogic model? |
|excel|model|anylogic| |
null |
I'm trying to write this code and I'm only partially done. Not sure how to finish it. Tried many times only to get errors. See attachments for partial code.
[code 1][1]
[code 2][2]
program CrazyGame;
#include( "stdlib.hhf" );
static
number1: int32;
number2: int32;
... |
I have a form that includes multiple fields, but I encounter an issue when displaying selected input fields and radio buttons such as 'Country' and 'Status of Availability' in a Tablesome table. When I select 'Afghanistan', it appears correctly in Forminator submissions. However, when attempting to display all the data... |
My apprise container running on 8000 port. When I try to send an Http Request Im facing below error message
An unhandled exception has occurred while executing the request.
System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:8000)
I tried t... |
Apprise: No connection could be made because the target machine actively refused it. (localhost:8000) |
|c#|containers|connection| |
null |
Is there a way to play a notification sound as fast as a button click? I feel like there is a delay of a few hundred milliseconds!
Im using this
```
public void btn_Click(object sender, eventargs e)
{
playExclamation();
}
public void playExclamation()
{ SystemSounds.Exclamation.Play();
}
... |
You can directly include the html without `include` function like this. This is a working live snippet:
<!-- begin snippet: js hide: false console: false babel: false -->
<!-- language: lang-html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-... |
I am building an CNN model using Tensorflow 2.0 but not using transfer learning. How to predict with new images? I want to load it from my directory and need predictions (classification problem).
My code is given below:
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import De... |
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/O5C27.png
In the provided picture, you have imported LoginComponent, but the component itself is not included in the declarations array. Therefore, it will not be able to utilize imports like LoginRoutingModule or MaterialModule. Is LoginC... |
{"OriginalQuestionIds":[36659600],"Voters":[{"Id":5754656,"DisplayName":"Artyer","BindingReason":{"GoldTagBadge":"c++"}}]} |
The snippet below shows a struct (`ckmsgq`) with a function pointer as a member (`func`). Then there is a function (`create_ckmsgq`) that is assigning a value to the function pointer. However the function isn't using the usual syntax for a function pointer parameter. It's just accepting what looks like a normal poin... |
Assign value of function pointer in struct member via a const paramater |
|c|pointers| |
This is how you can do it without FAISS and only langchain tooling, and you can have multiple retriever configurations:
from langchain.chains import RetrievalQA
from langchain.retrievers.merger_retriever import MergerRetriever
from langchain.chat_models import ChatOpenAI
def init_llm(
... |
If I have an array:
[null, 'a', 'b', 'c']
I want to get the first non-null value from the array, in this case "a". How could I go about doing that nice and easily? |
Get first non-null value from a flat array |
The problem you have, I think, is not that there are changes at higher levels of the url, but that the pages you are looking at are constantly changing (for example adding timestamps, and very much more).
The way to resolve this is to look at which lines in a webpage have changed since you last looked. In this way y... |
> will it affect my original instance, the one that is currently running?
No.
> I just need to make sure that I will not affect in any way, the original instance, to avoid damages or anything that might affect the operation of the original instance.
Indeed, you have to ensure, to have separate accounting for t... |
|powershell|powershell-core|secret-manager| |
I need to get from my Pytorch AutoEncoder the importance it gives to each input variable. I am working with a tabular data set, no images.
My AutoEncoder is as follows:
class AE(torch.nn.Module):
def __init__(self, input_size, hidden_layer, latent_layer):
super().__init__()
... |
|php|arrays|null| |
null |
|sql|sql-server|t-sql|sql-server-2012| |
{"OriginalQuestionIds":[69802194],"Voters":[{"Id":5470544,"DisplayName":"JSON Derulo"},{"Id":8017690,"DisplayName":"Yong Shun"},{"Id":5468463,"DisplayName":"Vega","BindingReason":{"GoldTagBadge":"angular"}}]} |
If `chkconfig` is still available (it seems on ESXi v8), you can type this command :
```shell
$ chkconfig --list | grep -w on | sort
DCUI on
ESXShell on
apiForwarder on
cdp on
clusterAgent on
dcbd on
dellism ... |
I have spend a reasonable part of my career writing engineering simulation software but as these pieces of code have only been used internally I have never written an interface and have no experience of GUIs at all. I am now thinking of making my software more user friendly and would like to make a drag and drop interf... |
That regularly/predictably formatted string is a "**AWS authorization header**" or a "**AWS Signature Version 4 header**".
You can use `sscanf()`: ([Demo][1])
$str = "AWS-HMAC-SHA256 Credential=eyJhbGciOiJIUzI1NiIsIngtc3MiOjEy/20160911/cn/user-service/request,SignedHeaders=host;x-aws-date, Signature=d9ee2d43f... |