When disabling trimming for android in release mode the aab file works as expected.
I was having a similar problem while creating an example for my new book (currently in beta) Mastering Building Web Assembly Apps using Rails.
I am using Rails8 which creates a new app using Propshaft and Importmaps by default to manage static assets and JS libraries respectively. I tried creating a controller with an action to provide WASM module as an asset but it didn't work thus i had to modify my WASM module's .js gluecode.
The whole instructions are in the book available for free to read. May be it might of any help to you.
I also had problems with Java 21.
Try downgrading to Java 17 to test.
These commands may be useful:
echo %JAVA_HOME%
java --version
flutter configure --jdk-dir YOUR_JDK_17
I created a playbook of installing Remix and Deploying it in CPANEL. I polished it with Chatgpt. Here is the link.
The playbook has been tested and works seemlessly. However I used Node version 20.18.2.
https://chatgpt.com/canvas/shared/67d037cf49648191abffff0809e8f043
This was happening for me, and I hadn't attached the sqs arn to my s3 bucket. You can get this by running show pipes;
.
After adding it, and rewriting the files back to s3, they were all picked up correctly
thank you @nnatter It's working
I answered a similar question for a PostgreSQL database.
I adapted it to your table names in a fiddle, it may need adaptations to run under Redshift (thus I don't post it as is here)
but it holds all the principles:
Fixed the problem eventually, it was all about configuring http rewrite.
When using typescript, you can pass the props type to the forwardRef as the second generic param. To use your example:
export const Services = () => {
const servicesRef = useRef(null);
return (
<div>
<ServicesList ref={servicesRef} />
</div>
);
};
export const ServicesList = forwardRef<HTMLTableSectionElement, PropsWithChildren<{}>>((props, ref) => {
return (
<section className="my-24 md:my-32" ref={ref}>
{props.children}
</section>
);
});
Open your Xcode project.
Go to Signing & Capabilities under your project’s TARGETS.
Check Automatically manage signing to let Xcode handle certificates and profiles.
I want text field for each line item in the cart and entered value should be displayed for order in admin . How we can achieve this.
I fixed it by adding { provide: APP_CONFIG, useValue: {} },
to the providers for my test.
Can someone help further the modify the Azure Data Factory expression for the following T-SQL code: SELECT DeltaTable. * FROM dlt.DeltaTable LEFT OUTER JOIN dbo.TableName AS tgt ON dlt.DeltaTable.signature = tgt.signature
WHERE tgt.signature IS NULL;
You will probably get the error when you directly add the expression. as below
To resolve this error, follow the below steps:
@concat('SELECT ',pipeline().parameters.DeltaTable,'.\* FROM ',pipeline().parameters.DeltaTable,' LEFT OUTER JOIN ',pipeline().parameters.TargetTable,' ON ',pipeline().parameters.DeltaTable,'.signature = ',pipeline().parameters.TargetTable,'.signature WHERE ',pipeline().parameters.TargetTable,'.signature IS NULL')
Output:
I'm facing the same issue. Did you solve this by any chance? what was the cause and how to fix it? thanks
Mine was zoomed out, I went to File- Runtime- Actual size, and its now okay. Shared just incase one comes to look for a solution as I have
since it should adjust on screen size you should be able to use the onchange=[(e) => set screen.width(e.target.value)} however i am unsure of this solution but implementing the onchange e handler should maybe work?
I cannot add a comment to Vishal's answer, but it is a valid workaround!
I made a simple helper function:
export async function reportLog(test: any, title: string, ...args: string[]) {
await test.step(title + ": " + args.join(", "), () => {});
}
Used like: await reportLog(test, "An arbitrary 'step' comment!", "This is a comment!");
Which outputs in the 'step' flow:
Alternative ways to add info to the report is annotations, console.log, attachments (as shown by unickq) and expect.
Annotations put the info at the report head:
test.info().annotations.push({ type: 'Info', description: 'An annotation' });
Whereas attachments and console.log() are added to the 'Attachments' box in the report foot.
Expect can be used if you want a 'failure' red X in the report, but the caveat is that it will also appear in your 'Errors' box.
expect.soft(true, "This is a good outcome!").toBeTruthy();
expect.soft(false, "This is a bad outcome!").toBeTruthy();
I recently have the same problem and I have not changed anything in my auth or Livewire component.
I use Laravel 12 myself, but my code is otherwise similar.
Have you found a solution yet?
Adding on @Vikas's answer, you can implement more granular control in your S3 bucket CORS policy like this:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"POST",
"GET",
"PUT"
],
"AllowedOrigins": [
"https://*.example.com",
"http://localhost:*",
"https://*.test.example.com"
],
"ExposeHeaders": [
"ETag",
"Content-Length",
"Content-Type"
],
"MaxAgeSeconds": 3600
}
]
I've worked out what the problem was here. I had the .alert(isPresented:) on the Connect Sheet but of course, the connect sheet was itself set to hide (via the 'show' boolean). This meant that the alert only became visible if I re-triggered the view to allow me to login again.
Before, the boolean was set correctly but there was no view to show the alert. I've fixed it by attaching the alert to a view that is permanently visible.
you are waiting 60 seconds for your content? I would say the problem is in your api instead of frontend, can you in anyway batch your requests, so you are sending more requests in order to receive smaller responses?
I doubt it's possible, just add a link to the sharepoint slides in the PBI button, with a fancy button maybe to make it look nicer.
@Jesse Chisholm's answer is great. I would just add the following:
menuHeader.IsHitTestVisible = false;
This allows mouse clicks on the textbox to be handled by parent (menuitem) and also avoids the mouse cursor change.
Using CASE WHEN col1 = 'b' THEN 1 ELSE 0 END
to flag 'b' values, aggregating these flags per FKey with COUNT(), and applying a HAVING clause filters groups where 'b' appears more than once.
SELECT FKey
FROM your_table
GROUP BY FKey
HAVING COUNT(CASE WHEN col1 = 'b' THEN 1 END) > 1;
output:
FKey
-----
11
Here's a tweak for @Motine's excellent answer, because I discovered that it no longer worked after updating to selenium-webdriver 4.26. For 4.26 (and presumably later versions, though I haven't tested it!):
module Capybara::Node::Actions
alias_method :original_attach_file, :attach_file
def attach_file(*args, **kwargs)
implement_hacky_fix_for_file_uploads_with_chromedriver
original_attach_file(*args, **kwargs)
end
def implement_hacky_fix_for_file_uploads_with_chromedriver
return if @hacky_fix_implemented
Capybara.current_session
capybara_selenium_driver = session.driver
selenium_webdriver = capybara_selenium_driver.browser
bridge = selenium_webdriver.send(:bridge)
bridge.add_commands({upload_file: [:post, "session/:session_id/file"]})
@hacky_fix_implemented = true
end
end
i have faced same issue just day before yesterday until now, (upto 3 days), but i finally fixed it by updating Vs code version( to 1.98.1) & vscode-icons extension. then, i uninstall and install that extension multiple times along with restarting the vscode.
Just be aware of python version in my case was v3 so you need to run with apt-get install python3-pip
Looks like we found a solution by setting up consent mode, following these instructions:
https://www.youtube.com/watch?v=MqAEbshMv84
Came along this thread having similar issue and it helped me to understand my problem.
But it still was not a solution to my problem..
So here is my "solution" for docker rootless with data on a CIFS share.
In my case, the volume was mounted as CIFS share on host.
Mounting it in context of docker rootless user fixed it for me.
First we need to know UID and GID of the user docker rootless is running as.
# UID
id -u {USERNAME}
# GID
id -g {USERNAME}
Now we add uid and gid to mount options of our cifs share in /etc/fstab e .g.
# just a simplified example
//host/share /media/user/share cifs uid=1000,gid=1000 0 0
After remount the cifs share is running in same user namespace as docker rootless and should work as expected.
For systemd mount unit just extend your Options as follows
# just a simplified example
...
[Mount]
What=//host/share
Where=/media/user/share
Type=cifs
Options=uid=1000,gid=1000
TimeoutSec=30
...
I added wire:ignore to the alert container, and this resolved the issue:
<div id="alert-container" wire:ignore>
it was extension Indent Rainbow that has been enabled
Df["x"] = df1.y
Why I am getting this error while assigning a column as new column
The only approach I've seen is to have a separate copy of the deployment settings file for each environment
Have you tried a UI component library? For example, shadcn ui? Depending on your frontend framework/requirements. This is worth exploring? It's touted for its web accessibility.
Late to the party but I ended up using host.minikube.internal
In my initial post, I wrote:
However, I am wondering if there might not be a better way to do this argument validation. Potentially using a third party library. I guess my point is that I am feeling that I might be reinventing the wheel and that people smarte than me likely faced this issue before and probably implemented a better solution.
I found that I could use either attrs, pydantic, or beartype to do what I wanted so I implemented solutions using each to test them and decide for myself what seems to make more sense for my project. typeguard was another alternative which I haven't tested.
Below are the three implementations.
import attrs
@attrs.define
class GetAttrs:
id: str | list[str] = attrs.field(
validator=attrs.validators.or_(
attrs.validators.instance_of(str),
attrs.validators.deep_iterable(
member_validator=attrs.validators.instance_of(str),
iterable_validator=attrs.validators.instance_of(list),
),
)
)
id_type: str = attrs.field(validator=attrs.validators.instance_of(str))
ctry_code: str = attrs.field(default = "", validator=attrs.validators.matches_re(r"[A-Z]{3}$|^LOCAL$|^$"))
is_alive: bool = attrs.field(default = False, validator=attrs.validators.instance_of(bool))
def get(self, **kwargs):
# doing some stuff
object1 = Object(kwargs)
# doing some other stuff to get data
return data
GetObj = GetAttrs(id=["id1", "id2"], id_type="myidtype")
GetObj.get(kv1={"k1": 1, "k2": 2}, kv2="test")
My main issue with this solution is that I have to pass kwargs to the method get()
and not at the instanciation of GetAttrs
. From what I found, I could pass kwarg at the instanciation of GetAttrs
but it does not seems super clean.
However, I good point is that as I am now planning to use attrs
in my modules, using it here would not lead to multiplication of third party libraries.
from typing import Literal
from pydantic import Field, validate_call
type Liststr = list[str]
@validate_call
def get_pydantic(id: str | Liststr,
id_type: str,
ctry_code: str = Field(default="", pattern=r"^[A-Z]{3}$|^LOCAL$|^$"),
is_alive: bool = False,
**kwargs ):
# doing some stuff
object1 = Object(kwargs)
# doing some other stuff to get data
return data
get_pydantic("id"=["id1", "id2"], id_type="myidtype", kv1={"k1": 1, "k2": 2}, kv2="test")
Works quite well and I have no real concern with this solution. However, the decorator @validate_call
is a very tiny part of pydantic, which does many other things, so it might make sense to use something dedicated to argument validation with a bit less scope.
from typing import Annotated, Literal, Union
import re
from beartype import beartype
from beartype.cave import IterableType
from beartype.vale import Is
IsCtry = Annotated[str, Is[lambda string: re.fullmatch(r"[A-Z]{3}$|^LOCAL$|^$", string)]]
@beartype
def get_beartype(id: Union[str, IterableType[str]],
id_type: str,
item_type: str,
ctry_code: IsCtry = "",
is_alive: bool = False,
**kwargs
):
# doing some stuff
object1 = Object(kwargs)
# doing some other stuff to get data
return data
get_beartype(id=["id1", "id2"], id_type="myidtype", kv1={"k1": 1, "k2": 2}, kv2="test")
Works quite well and I found it quite elegant. I do not see any strong issue and as I want to use attrs
in my module, I have the impression that I don't have the strong overlap with it that pydantic
might have. So I have decided to use it as my solution.
Hope that helps anyone who might have a similar problem. Further any feedback on how thos implementations could be improved is very welcome.
You can try the above Solution if you Package.json file is corrupted or not working but if its ok. then just simply go to terminal and write,
cd my-react-app
hope that helps :)
i found this solution for my case where i want to calculate orders with only one product, so i changed it like that and it works
Number of orders with one id product =
CALCULATE(
DISTINCTCOUNT(Orders[order number]),
FILTER(
SUMMARIZE(Orders, Orders[order number]),
CALCULATE(
DISTINCTCOUNT(Orders[Id_product]),
ALLEXCEPT(Orders, Orders[order number])
)=1
)
)
same issue here, network_access enabled in extension toml setting, but still got error
We can make use of the fs module. Here's the link to use it.
Configuration example for SSL implementation using fs module
This very fact that you cannot initialize a class member of the same type as the class on the stack, is something that should have been fixed a long time ago. The C++ standard should have tackled this issue, instead of debating of useless features, such construct is essential to become an integral part of C++. I cannot understand why a compiler cannot calculate the size of Foo, in a two pass or three pass compilation and linkage.
Old thread, but stumbled upon this when having a similar problem, hoping someone in the future may see this aswell:
I just had the error:
Error: Renderer 'undefined' is not imported. Please import it first.
The Problem at the end was, that i was using
import * as echarts from 'echarts';
but also
import { EChartsOption, SeriesOption } from 'echarts';
The second line was throwing everything off. So use the "namespace" echarts and dont import anything other than * as echarts.
Чи можна пробачити зраду?
Зрада — це слово, яке болить навіть тоді, коли його лише вимовляєш. Воно асоціюється з болем, розчаруванням, втратою довіри. Але чи завжди зраду потрібно карати осудом? Чи можна її пробачити?
Кожна людина хоча б раз у житті переживала момент зради — від друзів, близьких, коханих. Це рана, яка довго не гоїться. Але життя складне й неоднозначне. Іноді зрада — це не просто злий умисел, а наслідок слабкості, страху або помилки. Тоді виникає інше питання: якщо людина щиро кається, чи варто дати їй шанс?
Пробачити — не означає забути. Це радше внутрішній вибір: не дозволити болю керувати собою, а дати можливість зцілитися. Прощення не звільняє зрадника від відповідальності, але звільняє нас від тягаря ненависті. Пробачити — це вияв сили, а не слабкості.
Однак пробачення можливе лише тоді, коли є щирість, усвідомлення провини та бажання змінитися. Якщо зрада повторюється — це вже не помилка, а свідоме зневажання почуттів. У такому разі прощення стає самообманом.
Отже, зраду можна пробачити, але не кожну і не завжди. Усе залежить від обставин, щирості людини та нашої здатності розрізнити слабкість від зневаги. Іноді прощення — це шлях до внутрішнього миру, а іноді — крок назад. Важливо не тільки пробачати інших, а й не зраджувати себе.
Was wondering the same thing and came across this question.
Apparently Sentry is using an AsyncLocalStorage based on the Node's async_hooks API. (on previous versions, the Domain API was used).
I'm sure someone smarter than me can give a more detailed explanation but from what I understood this API allows you to get the ID of the current execution context (which would be the callback passed to the withScope
method in your example). Internally Sentry will then associate this newly created scope with the execution context's ID. Now, when captureException
is called within the same execution context, Sentry can use the ID to look up the scope automatically without you having to explicitely pass it to that method.
You assert that a link is equal to a relation.
But you should assert that a relation is equal to a relation.
assertEquals(IanaLinkRelations.SELF, ex.getSelfLink().getRel());
for anyone still encountering this issue, inserting the debug urls at the top of the list works
if settings.DEBUG:
import debug_toolbar
urlpatterns.insert(0,path(r'__debug__/', include(debug_toolbar.urls)),)
Mh.. It looks like fetchAllWorklogs is not being mocked properly in your test, which is why Jest isn't tracking calls to it.
You are mocking JiraUtils but not fetchAllWorklogs directly. Modify your mock to explicitly mock fetchAllWorklogs:
import * as JiraUtils from "../src/services/JiraUtils";
jest.mock("../src/services/JiraUtils", () => {
const actual = jest.requireActual("../src/services/JiraUtils");
return {
...jest.genMockFromModule("../src/services/JiraUtils"),
getIssuesWithWorklogs: actual.getIssuesWithWorklogs, // Keep this function real
fetchAllWorklogs: jest.fn() // Ensure fetchAllWorklogs is properly mocked
};
});
And since fetchAllWorklogs is called asynchronously inside a then, ensure your test is waiting for it. Add await
in expect() to ensure it has had time to execute:
await new Promise((resolve) => setTimeout(resolve, 100)); // Ensures async execution completes
expect(JiraUtils.fetchAllWorklogs).toHaveBeenCalledWith(result[2].id);
Can you add this and check if it logs anything?
console.log("Mock calls:", JiraUtils.fetchAllWorklogs.mock.calls);
You need to personalize a Contact Us form for your website to enhance customer interaction and user experience. An ecomexpert can personalize the form based on your business needs and brand using advanced customization processes. An ecomexpert can include features like dropdowns, file upload, and condition logic in the form to enhance its usability using advanced customization processes.
A properly fitting contact form should have the minimum fields like name, email, subject, and message but can include order-specific questions, feedback surveys, or support questions. Adding automation through chatbots or auto-reply will enhance it. Integrating with CRM tools like HubSpot, Salesforce, or email marketing tools will make it automate even more.
For ecom expert websites, one can apply dynamic features such as order inquiry tracing, product question tracing, and real-time customer support. An adjustable speed-load form gives an uninterrupted experience to the user regardless of the platform.
Security too is of first priority. A spam protection service is offered by an ecomexpert using CAPTCHA and verification techniques. An organized and neat contact form is extremely useful to build customer faith and interest and thus drive improvement in conversion rate. Investment in business by professionals enables your contact form to be optimized for the user experience as well as enables your business to grow.
After the installation of the Uniface IDE, got to the start menu and search for license activation. In the opening window enter the Entitlement ID getting with the confirmation mail of the Rocket® Uniface
Use multi-cursor selection for copying code while ignoring what is folded in.
Press Ctrl
+ Shift
and without releasing them start to highlight text that you want to copy with your mouse.
Are you using the Access token value or the ID token value? It won't work with Access Token. Try using ID token value that you get after successful oauth.
This command just produces flags like these `-I/usr/include/python3.10 -I/usr/include/python3.10 -Wno-unused-result -Wsign-compare -g -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -g -fwrapv -O2 -Wall` - you can set up your parameters (e.g. path to include dir of Python installation %userprofile%\AppData\Local\Programs\Python\Python310\include). a python3-dev package should be installed to run it on Linux, I'm not sure if it's available on Windows.
I found that this is bugs or limitation in extjs . after open more than 3 modal windows on top one another, this happen on chrome,firefox , opera , edge .
please note that prompt /alert also count as another windows
To clarify things, IAS does authentication, AMS does authorization, XSUAA does both authentication and authorization, which will eventually be replaced by IAS+AMS.
Currently, SAP Cloud SDK Java has a beta support for using IAS. (JS does not support IAS and is aware of this feature request.)
AMS has its own library. And assuming you are a CAP Java user, it is already feasible to integrate a CAP application with AMS. Check https://cap.cloud.sap/docs/releases/oct24#tool-support-for-ams for tool support when using AMS in CAP project.
Quite old question, but this was my fix as of 2025:
npm install -D tsx
in package.json:
{
"scripts": {
"test-old": "mocha -r ts-node/register tests/**/*.test.ts",
"test": "mocha -r tsx tests/**/*.test.ts",
}
}
ts-node/register did not work, but tsx saved the day. Thanks to Jazcash
Having the same issue, but my ticket got closed and was told it's a duplicate ticket of a ticket 8 years old. As if the same issue and fix from 8 years ago is going to be valid.
I'd expect the lovely people on this site with down vote your issue and this will also get closed. They get a little power trip with the Admin button.
#!/bin/bash
echo "Enter a grade"
read grade
if [ $grade == "A" ]
then
basic=6000
elif [ $grade == "B" ]
then
basic=5000
else
basic=4000
fi
echo "Your basic is $basic"
@for (item of ('common.arrayOf Something' | translate); track item) {
<li class="title-18 normal">{{item}}</li>
}
I do it like this
In my case I have to uncheck the option under Xcode > Settings... > Text Editing > Wrap lines to editor width
https://github.com/djunsheep/CRANextra/blob/main/README.md
add the following to the .Rprifile
and Rprofile.site
# fixing the CRANextra warnings when installing packages
# the following two chucks of scripts will/may run from start of R
local({
r <- getOption("repos") # Get the current repositories
r <- r[names(r) != "CRANextra"] # Remove CRANextra
options(repos = r) # Update the repositories
})
# the cloudyr project
# https://cloudyr.github.io/drat/
if (!require("drat")) {
install.packages("drat")
library("drat")
drat::addRepo("cloudyr", "http://cloudyr.github.io/drat") # Add coudyr to repositories
}
if someone has the video size problem in full-screen mode in Chrome Android context;
the problem may come from default page zoom ; parameters / content parameter / Accessibility / default page zoom. set it back to 100% (or around 91%) and it should be good.
and a faster way, not modifying parameters, is to show the web page in 'version for computer' (parameter three dots) and from there, put the video in full-screen mode.
friendly
A similar question was asked here.
Since the values are likely being treated as strings the order isn't based on numeric values (but string values).
This is verbose code I've just smashed out that for production would need to be cleaned up, added whitespace control and made more efficient - but should be easier to read for this thread.
{% assign myArray = "11,7,4,3,12,9,2,8,6,10,1,5" | split:"," %} {% assign myNewArray = "" %} {% assign zeroFill = "00000000" %} {% for i in myArray %} {% assign thisFill = zeroFill | slice:i.size, zeroFill.size %} {% assign newValue = thisFill | append:i | append:"," %} {% assign myNewArray = myNewArray | append:newValue %} {% endfor %} {% assign myNewArray = myNewArray| split:"," | sort %} {% for i in myNewArray %} {{ i | abs }}<br /> {% endfor %}
Does that help?
I also touch on something similar here.
https://freakdesign.com.au/blogs/news/sort-products-in-a-shopify-collection-by-metafield-value-without-javascript
He adds zeros to each number in order to work around the issue.
I cannot reproduce on Mathlib (which was the Lean project I happened to have open when I read your question)
buzzard@brutus:~/mathlib/Mathlib$ cat > A.lean
namespace inner
buzzard@brutus:~/mathlib/Mathlib$ cat > B.lean
namespace inner
buzzard@brutus:~/mathlib/Mathlib$ cat > C.lean
import Mathlib.A
import Mathlib.B
I can open C.lean
without any errors. Indeed this pattern is commonplace in mathlib. Are you sure you've diagnosed your problem correctly?
Try to rename the project name and update the name in the package.json file.
package.json file
{ "name": "update name of project here", }
now start the server.
If you are building an app in Flutter and any of these solutions doesn't work then run -
- flutter clean
- flutter pub get
or trying to clean gradle -
- cd android
- ./gradlew clean
Use background-attachment: scroll for Safari: As you are already applying a media query to change the background-attachment for mobile devices (background-attachment: scroll), it seems that this is not being applied to all mobile browsers effectively.
Use transform for smoother parallax effect: Instead of relying on background-attachment: fixed, you can achieve a parallax effect using transform and translate3d, which is more stable across browsers.
The issue was the size of the SVG I tried to include, it was too big, I had to resize from 471 to 50.
wampserver use different php.ini for cli and web
for cli , if you need to edit the php.ini under bin/php/phpX.XXXX/php.ini
so if the program is for cli, simply uncomment the intl.dll
for web , you can edit under apache folder
Well I finally found the answer myself. I had to open a code window and click on the Tools menu. This revealed a list containing References... Macros... Options... and (wait for it) Oldname Properties... and when I clicked on this last one it opened a rather boring page with a number of text boxes, the first one being labelled Project Name. This contained the old name, so I entered the new name.
Seemed a rather silly place to hide this information, but then it is a Microsoft Application so one shouldn't be too surprised.
By the way, when I clicked on the link in the email I received from Stack Overflow, it led me to a login page where none of my saved passwords worked. Eventually I tried going to https://stackoverflow.com and found I was automatically logged in straight away! I'll never understand web security...
Solved with @Zacharias answer.
For me the problem was at webserver level. I had the Referrer-Policy header set to strict-origin. By definition that header value makes the webserver to use only the origin and only if HTTPS. Changing that header to 'same-origin' solved the problem in dev environment (because i was on HTTP)
Once your model loads once in Panda3D it gets stored in the model cache; if the textures failed to load, there may now be a version of the model cached without loaded textures. Open the egg file in a text editor and save it again; that will update the modification timestamp on the file, and Panda will re-load it from disk. Then you can check if the same errors are still displayed.
Add to .vscode/settings.json:
"python.testing.unittestArgs": [],
"python.testing.unittestEnabled": true,
In root of your project create a .env file:
MANAGE_PY_PATH=manage.py
if you don't want create .env file in root, add to .vscode/settings.json:
"python.envFile": "${workspaceFolder}/-your-folder-/.env"
I encountered a similar problem recently. In a solution file, I have my library project and a web API project. In both projects, I installed a nuget package of a different project I own. I had a problem of locally referencing that project in the web API.
This was because I had referenced the nuget package in the library, I couldn't use a local reference in the web API. This is not mentioned in any of the error messages. I knew it was a problem only on the web API because the assembly path updates when I add the reference to other projects.
So it should also help if you look into your references if any are causing conflicts with your library DLL. It might be that other referenced libraries/projects you have in the new web app is using a different version of the library DLL.
Correct way to mock sftp-list operation where attributes can be available inside foreach loop:
\<flow doc:name="Flow" \>
\<file:list doc:name="List" config-ref="File_Config" directoryPath="/tmp/"/\>
\</flow\>
\<munit-tools:mock-when processor="file:list"\>
\<munit-tools:with-attributes\>
\<munit-tools:with-attribute attributeName="doc:name" whereValue="List"/\>
\</munit-tools:with-attributes\>
\<munit-tools:then-return\>
\<munit-tools:payload value="#\[\[MunitTools::createMessage( "ITEM-1", "text/plain", { property : 'ATTRIBUTE-1'}, null) , MunitTools::createMessage( "ITEM-2", "text/plain", { property : 'ATTRIBUTE-2'}, null)\]\]" /\>
\</munit-tools:then-return\>
\</munit-tools:mock-when\>
You can doit by using the Null-coalescing assignment operator ??=
$ExistingVar = 'set by script'
$MyPath ??= $env:PWD
$MyVar ??= 'default value'
$ExistingVar ??= 'Cannot set this string to not null vars'
echo $MyPath
echo $MyVar
echo $ExistingVar
guethis is guest yser user guestst
It is very true. I had to downgrade to visual studio 2015 and work with 4.5.2 framework. Viewer added easily. I followed advise on stackoverflow to copy .vb, designer and resx into my current project (2015), added the items, excluded from project and added only the .vb form file. All controls appeared correctly. It is advisable to approach that if a control is not dependent on a reference library.
If you're using the http-server
package from npmjs, there is a way to have a catch-all redirect to itself again for SPAs like Angular: https://www.npmjs.com/package/http-server#catch-all-redirect
You can also simply do:
tree.tk.call('.'+tree_name, 'tag', 'add', tag_name, f'{{{iid}}}')
Note that to do this you also have to add the option name=tree_name
when defining the Treeview object.
You're on the right track with setting up a one-to-many relationship in PostgreSQL using Spring Data JDBC. The issue you're facing is common when using LEFT JOIN
, It duplicates the parent row for each child, which isn't ideal since you're using a Set<ChildEntity>
.
Since Spring Data JDBC automatically maps child entities when fetching a parent, you don’t need to manually join tables. Instead of using LEFT JOIN
, just fetch the parent entity directly or fetch separately the child records separately.
SELECT * FROM parent_table WHERE position_id = ?; or SELECT * FROM child_table WHERE parent_table_id = ?;
why wouldn't
contains()
orendswith()
be indexed as well?
NOTE: contains()
and endswith()
are NOT indexed because they require scanning every row, making them slow. SharePoint does not support reverse or full-text indexing in Graph API, which would be needed for contains() and endswith(),
Recommended way is to use startswith()
for fast Graph API queries For more details Refer this QnA.
startswith()
is indexed because SharePoint stores data in sorted and indexed structure, allowing quick lookups without scanning the entire dataset, which makes more efficient compared to contains()
and endswith()
.
Generated the access token and used the same $filter
query with startswith()
:
GET https://graph.microsoft.com/v1.0/sites/<site-id>/lists/<list-id>/items?$filter=startswith(fields/FileLeafRef, 'query')
Reference:
After below changes, I am able to access individual API and also via ocelot gateway using docker.
- Removed ports definition from docker-compose.yml
- In ocleot.json included service name as host and port as 8080
- Exposed only 8080 as port from API's docker file
Final ocelot.json
{
"Routes": [
{
"DownstreamPathTemplate": "/api/products",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "productservice",
"Port": 8080
}
],
"UpstreamPathTemplate": "/products",
"UpstreamHttpMethod": [ "Get" ]
},
]
}
Please check the documentation
https://git-extensions-documentation.readthedocs.io/en/release-5.1/remote_feature.html#pull-changes
How can I change the CSV output such a way that it removes the trailing zeros and does not use exponential notation (without explicitly using Decimal(18,2) data type)?
Follow the below steps to get the expected output:
Step1: Please try using the following expression to achieve the expected results.
replace(toString(toDecimal(Data)),'.00','')
Step2: I have used the same sample data that you provided.
Step3: Use the following expression in the derived column as required.
replace(toString(toDecimal(Data)),'.00','')
Step4: Output is as expected as per your requirement.
The colored "odoo" logo is in ~/odoo/addons/web/static/img/logo.png if that is what you where looking for.
From shelve documentation, i can see use Shelf.close()
if you want to close a shelf; use flag='r'
ensures read-only mode and flag='c'
allows creation if it doesn't exist. Other flag modes are w
open an existing shelf; n
always create a new, empty shelf, open for reading and writing.
What worked for me with physical device
Just Invalidate caches in android studio
File >> Invalidate Chaces
In my case the issue was a wrong build command for meson. I.e:
meson setup build --reconfigure -Db_coverage=true -Dc_args=-Og,-w
Is wrong, and should instead be:
meson setup build --reconfigure -Db_coverage=true -Dc_args=-Og
Adding an extra -w
causes meson to pass that -w
to a default C compiler as a test, which causes the compiler to return an exception. Meson then decides that the compiler doesn't work - and announces that the compiler for "c" is not specified for the host machine.
My recommend is Mongoose to management mongodb in nest.js project.
the watermark logo is being set to a fixed size (100px 100px) using background-size, which can cause it to appear too large on smaller screens, especially on mobile devices. To make the watermark more responsive and avoid it being too big on smaller screens, you can use media queries and relative sizing.
Every day, I look forward to my quick mental workout on Wordle Today (https://wordletoday.cc/). It’s the perfect way to start my morning—simple, fun, and just the right amount of challenge.
Today’s puzzle had me stumped at first, but after a few strategic guesses ("CRANE," "SLICE," "THIEF"), I finally cracked it with "OLIVE"! That moment when all the tiles turn green is so satisfying.
If you haven’t tried Wordle Today yet, I highly recommend it. It’s a great way to sharpen your mind and have a little fun. Plus, it’s free and easy to play!
What was your Wordle Today experience? Share your results below! 🎉Every day, I look forward to my quick mental workout on Wordle Today (https://wordletoday.cc/). It’s the perfect way to start my morning—simple, fun, and just the right amount of challenge.
Today’s puzzle had me stumped at first, but after a few strategic guesses ("CRANE," "SLICE," "THIEF"), I finally cracked it with "OLIVE"! That moment when all the tiles turn green is so satisfying.
If you haven’t tried Wordle Today yet, I highly recommend it. It’s a great way to sharpen your mind and have a little fun. Plus, it’s free and easy to play!
What was your Wordle Today experience? Share your results below! 🎉
Experiencing the same issue with .net 9 :-(
process seems hard to solve, it needs a notification system
Tailwind CSS new version is currently not working. Add the different version of Tailwind. It will work
I tried doing this, but every time I force quit the app and reopen it, the authentication does not persist
class SupabaseService {
Future initialize() async {
await Supabase.initialize(
url: supabaseUrl,
anonKey: supabaseKey,
);
}
}
// register the service
await locator<SupabaseService>().initialize();
// .. some code
if (!locator.isRegistered<SupabaseClient>()) {
locator.registerLazySingleton<SupabaseClient>(
() => Supabase.instance.client,
);
}
I had managed to make it persist by using local storage and saving the sessionString and recovering it. But now that I have upgraded my flutter and supabase version, the persistSessionString no longer exists
String? sessionString =
locator<SupabaseClient>().auth.currentSession?.persistSessionString;
// Add to local storage
// Get session string from local storage and recover session
await locator<SupabaseClient>().auth.recoverSession(sessionString);
Anyone got any ideas?
You can try to use:
'php_class_name' => self::class
Using this undocumented vc_map attribute allowed me to use completely different classname inside custom namespace.
source: https://stackoverflow.com/a/52983111/16246216
If the labels are not showing up then it means maybe fluent bit’s kubernetes filter is not configured correctly. For this you need to manually enrich the events using a custom Lua filter if the default kubernetes metadata collection isn’t sufficient.
Regarding your query, whether it requires direct calls to the Kubernetes API server via Lua scripts. Yes, Lua plugin would require direct API calls to the k8s API server to fetch Job labels. But the Fluent Bit Lua filter plugin has some limitations, like the Lua plugin does not include the necessary HTTP modules to fetch job metadata from the k8s API. To resolve this you need to enrich the data through an external processor. Refer to this How to configure Fluent Bit to collect logs for your K8s cluster blog by Giulia Di Pietro, which will be helpful to resolve the issue.
Note: If you intend to use Lua to interact with kubernetes API directly you will need to implement HTTP requests within Lua however this may require additional modules that aren't included by default fluent bit’s Lua plugin.
The formula should be dynamic based on your input value.
Change your formula to
formula = (x * 0.5/n) ** 2 + (y * 1.0/n) ** 2 - 1
This works fine
If you used pyproject.toml file
You may prefer list those filters in pyproject.toml file :
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning"
]
did u got an solution for this
After researching and testing more, I managed to solve this problem by acquiring Power Automate Premium license from my company and after that removing and importing the package again. This way all flows were turned on automatically after importing was done.
To my understanding majority of the flows required Premium license because they used Dataverse as the trigger.