Problem ocurred because my layout.tsx
was in path folder that is in brackets (client)
and I placed my error.tsx
in the same folder expecting that error page would be shown inside layout.
If I properly understood, because my error.tsx
was in path folder in (client)
, Nextjs. When I moved it one layout higher, it started working. And then i understood that in my situation error.tsx
needs it's own layout not inherit it from (client)
folder's layout, so i left error.tsx
there.
I get this issue today.. this happened because we need to register our package and sha1
I do this on development it's worked but in release mode failed
What happened?
That because we need to use different sha1 for debug and releas
So first
use web client id not android id
Even we use web client id we still required to register our app package to oauth client id for type android
Register two type sha1 for release and development are different
So actually u need to create 3 times
Web client id
Android id (release)
Android id (build) this step is optional if you in release mode this no needed
go to vs code > flask icon to see the tests > it will show info like your project file is disabled, click on it and enable then at bottom right corner a pop up will show asking you to confirm. confirm that and your vs code will now recognize those tests.
This worked fro me in firefox
Open the history in the firefox
right client on the website where you want remove the HST
Select forget , Now the site will be accessible
Yes, nothing should stop you of doing so. You can create singleton instance so that you may avoid instantiating the client over and over (which could be expensive: allocating new resources, sockets and so on).
@Aytac No need to downgrade version. As manipulateAsync()
function is deprecated now but we can apply SaveOptions
with the help of saveAsync(options: SaveOptions)
function using ImageManipulatorContext
in expo-image-manipulator
version ~13.1.7
(latest as of today).
As per official documentation We can do something like this -
const imageRef = await ImageManipulator.manipulate(imageUri)
.resize({
width: 640,
height: 480,
})
.renderAsync();
const manipResult = await imageRef.saveAsync({
compress: 0.8,
format: ImageManipulator.SaveFormat.JPEG,
});
setManipulatedUri(manipResult.uri);
Explanation:
We have to get ImageRef
provided by renderAsync()
function which will return Promise<ImageRef>
.
const imageRef = await ImageManipulator.manipulate(uri).renderAsync();
Now on ImageRef
we can apply SaveOptions
with the help of saveAsync(options: SaveOptions)
function.
const manipulationResult = await imageRef.saveAsync(options: SaveOptions);
Quarkus native builds can take time and likely time out if it takes longer than timeout set. You should give it a look to the builder pod log, which is the one in charge to build the Integration (the maven build). There you will see the real status, if it is progressing or if it's stuck in a given phase. You may find more detailed info in the Camel K troubleshooting guide.
Thanks a lot you Guys, this helped me.
so the issue is that Pub/Sub is super strict about schema compatibility, more than plain protobufs. Adding a new enum value breaks forward compatibility because old subscribers might choke on the new integer (like 5) since they don't know what it means.
In protobuf alone, it's fine (just info loss), but Pub/Sub demands both backward and forward compat, so it rejects the change as incompatible.
Yeah, it's a pain if your enums change often, it does make schemas tricky for evolving messages.
Best fix: Switch those enums to strings for now. That way, you can add new "values" without breaking anything, since strings are flexible.
Just define the possible strings in your app code or docs for validation.
If enums are a must, add a new field with the updated enum and deprecate the old one gradually.
Or create a whole new schema (like v2) and migrate topics/subscribers over time.
Avro schemas might be better for this if you can switch, as they handle enum additions with defaults.
Reserved numbers in enums can help plan ahead, but won't fix existing issues.
Check Pub/Sub docs for updates on this, it's a known limitation.
Solution Overview:
I needed a way to close the GLFW window from any part of my application. Initially, I tried calling glfwSetWindowShouldClose(window, GLFW_TRUE)
, but I wasn't sure how to get the correct window
pointer into the other screen modules.
What I tried & why it fell short:
What changed:
static
and public
. This allowed global access without passing it around.Result:
Now, I can simply call App::window
from any screen and close the window cleanly, improving both readability and maintainability.
докажеш шо ти пастер чи шо нишей
This is not possible through action/filter, you will have to use react for this.
This is very well explained here https://medium.com/@ManBearPigCode/how-to-reverse-a-number-mathematically-97c556626ec6
BTW my extended answer which also includes a reverse geo-location lookup is in this public repository:
https://github.com/MarsFlyer/GPXtools
It uses the the geocoder library and the OpenStreetMap's Nomanatim service. As this is a public facility with throttling, I've also used the ratelimit library.
from geopy.geocoders import Nominatim
from ratelimit import limits, sleep_and_retry
The location address has lots of sub-parts, so the getLocation function tries to reduce duplicated place names. You may want to adjust that to cope with how your local place names are handled.
How can I achieve with an ARRAYFORMULA that also the range is increasing as in a drag-downed references? All should increase if there is no "$" sign before them like this:
=COUNTIF(T$2:T2;T2)
=COUNTIF(T$2:T3;T3)
=COUNTIF(T$2:T4;T4)
This
=ARRAYFORMULA(COUNTIF(T$2:T2;T2:T))
Counts as this equivalent drag-down formula:
=COUNTIF(T$2:T2;T2)
=COUNTIF(T$2:T2;T3)
=COUNTIF(T$2:T2;T4)
This one
=ARRAYFORMULA(COUNTIF(T$2:T;T2:T))
Counts as this equivalent drag-down formula:
=COUNTIF(T$2:T;T2)
=COUNTIF(T$2:T;T3)
=COUNTIF(T$2:T;T4)
Any hint is welcome how to increase also the range and achieve the first pattern with ARRAYFORMEL.
For everyone would like to use connect to FastMCP server but face the same issue on Postman:
You can disconnect the connection and try to reconnect again. This will instantiate a session with valid ID and you can start calling tool from it.
Try Adding your domain in it. Like this.
res.set_cookie(
key="SOME_KEY",
value=cookie_value,
httponly=True,
samesite="none",
path="/",
max_age=1000,
expires=COOKIE_EXPIRY_DATE_TIME,
secure=True,
domain="example.com", # <-- Add this line
)
Flutter version 3.35.1 added 'scrollable' field in NavigationRail.
$primary : #121212;
$link: $primary;
// Override global Sass variables from the /utilities folder
@use "bulma/sass/utilities" with (
$primary: $primary,
$link: $primary,
);
It is possible now with modular approach.
I realized https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes#common-file-system-operations doesn't say This section applies only to virtualized apps.
so I guess this is an intended behavior for mediumIL
apps and I'm actually asking an XY question. I'll post a new one.
Sample React Native App which integrate Native Modules(Turbo Modules)
the error not found means is not detected,
have u clearly define in your route?
go to public_html>routes>web.php
I made a package for this :)
You can block users, emails, ip addresses, domain names, cities, states, countries, continents, and regions from using your application, logging in, or registering.
https://github.com/jeremykenedy/laravel-blocker
It is IP-based, not throttling-based.
This extension's developent has been paused, a simpler approach has been created to accomplish WinFormsZOrderViewer VS Extension's functionality in a much simpler NuGet
This question and the Issue on the Github page will be closed, the repos will be archived as well.
The issue stems from Excel's clipboard behavior, which includes hidden intervening columns when copying non-adjacent selections. A simple workaround is to use Excel's "Go To Special" dialog: press F5, click "Special", select "Visible cells only", and then copy. This will ensure only your selected columns are placed on the clipboard for pd.read_clipboard()
to read correctly.
i tried this macro to not use range select. Instead of clicking cells in table, macro clicks below active cell vertically
Sub RefreshAll_LinkClickable_v2()
Application.ScreenUpdating = False
ActiveWorkbook.RefreshAll
Dim ws As Worksheet
Dim rRng As Range
Set ws = ActiveSheet
Set rRng = ws.Range("ControlTable[Borrower]:ControlTable[Agreement], ControlTable[Date of Balance Confirmation], ControlTable[The last related Document]")
Dim rCell As Range
For Each rCell In rRng
Application.SendKeys "{F2}"
Application.SendKeys "{ENTER}"
Next rCell
Application.ScreenUpdating = True
End Sub
I found a method that sender.get_commandArgument() can get the stored value in e.commandArguement. Then use split to get the targeted message.
function UnlockConfirm(sender, args) {
var commandArgument = sender.get_commandArgument();
var parts = commandArgument.split('|');
var recordNo = parts[2];
if (No != "") {
args.set_cancel(!confirm('Confirm to delete record' + No + '?'));
} else {
args.set_cancel(!confirm('Confirm to delete?'));
}
}
did you find the answer even i am getting similar issue can you help me ERROR - APIUtil Error when getting the list of roles
org.wso2.carbon.user.core.UserStoreException: Invalid Domain Name
Using this example Excel-File and copying it's content by strg + c:
this python code creates a dataframe out of the clipboard-content:
import pandas as pd
df = pd.read_clipboard(sep=r'\s\s+')
Resulting df:
a b c
0 12 1 4
1 13 1 5
2 14 1 6
3 15 1 7
4 16 1 8
5 17 1 9
You can see how to find native libraries in Android Studio by using APK Analyzer over this link. You can also check your libs.versions.toml
, as Android Studio warns you about libraries that are not aligned to 16KB.
In my case, I first needed to install and configure the "AWS Toolkit with Amazon Q" extension for Visual Studio.
I tried this :
ax = sns.swarmplot(data=df, x="value", y="letter", log_scale=2, hue="type", palette=my_palette, size=6)
collection = ax.collections[0]
offsets = collection.get_offsets()
xy_stars = []
# Select first 15 offset (stars)
i = 0
for (x, y) in offsets:
if i < 15:
xy_stars.append([x,y])
ax.scatter(x - 0.000001, y, s=40, color='#944dff', marker=(5, 1), zorder=100)
i += 1
x_stars = [xs[0] for xs in xy_stars]
for collection in ax.collections:
offsets = collection.get_offsets()
# Removes 'star' scatters
new_offsets = [offset for offset in offsets if offset[0] not in x_stars]
# Update offsets collection
collection.set_offsets(new_offsets)
Sample React Native App which integrate Native Modules(Turbo Modules)
execute dotnet new packagesprops in the root dir of your solution.
edit Directory.Builds.props and set use central stuff to false.
Did you finally get any directive on this
this's the solution
how to update assetlinks for two apps
you just need to update the asstlinks.json with your sha256_cert_fingerprints for debug, release, and store, and it'll work well No need to verify from app settings "App info" -> "Open by default" and add verified links It'll be verified automatically with installing the app Android will open the target app according to the prefix in your link
If you are using Security/Service Principals (and not SAS or Shared Access Key) to connect to the container then you can do it by using ACLs:
Use the Azure portal to manage ACLs in Azure Data Lake Storage (11/26/2024)
Extract :
Access control lists (ACLs) in Azure Data Lake Storage (12/03/2024)
What you’re seeing means PHP isn’t being executed at all.
Browsers never run PHP. A web server must process your .php
file and return plain HTML. If you “open” a .php
file directly from disk (e.g., file:///C:/.../index.php
) or use a static dev server (like VS Code’s Live Server), the raw PHP is sent to the browser and appears as if it’s “commented out.”
The “Quirks Mode” warning is a separate HTML issue (missing/incorrect doctype). It doesn’t make PHP run or not run.
Run with PHP's built-in server:
cd project
php -S localhost:8000
then you can open your project at http://localhost:8000/index.php
Add <!doctype html>
at the top of your HTML to stop the Quirks Mode warning.
Use <?php ... ?>
(not short tags like <? ... ?>
).
Apna dil kya bara main, bas ghamon ka sahara hu,
Muskurata sab ke saamne, andar se to ashk ka dariya hu.
Jo khwab sajaaye the, unhi mein kahin bichhra hu,
Meer-e-Wafa kehta hai, main khud se bhi hara hu."**
Ya pata haina ies ko Krna
hai
This is a common issue with manufacturers implementing aggressive power-saving methods on their devices. The HCI snoop log can help identify why a specific connection was disconnected. In some cases, changing the default settings may resolve this issue.
This behavior may be caused by the design of Windows Installer service. All custom action binaries (i.e. the .dll file) are extracted in the user's %temp% location at the very beginning of the installation.
So, during an upgrade the installation process first extracts the new version of your custom action DLL, then it continues with the uninstall of your old product version and during this stage the old version of your custom action DLL binary is extracted again and thus it will overwrite the existing DLL. Afterwards when the new version of your custom action DLL is called it will actually use the old version of the binary.
I think the best solution to avoid this behavior/issue, as @Joshua Okorie suggested too, will be to make sure you rename the binary of your custom action DLL each time you rebuild it. For instance you can try to use a template that include the file version in its name.
If you had plain nested loops in your code both loop variables would be locals in the same method body. This doesn't work and will result in a CS0136 compiler error.
However in your case you have a foreach loop and a second one which is in a closure. This means that the someItem variable of the outer loop is compiled into a closure field while the inner someItem loop-variable is compiled into a local variable. Since they are different kinds of symbols there is no conflict.
i'm getting this error 'Property assignment expected.javascript' in my code
data: [{
type: "area",
indexLabelFontSize: 16,
dataPoints: {{chart_data|safe},}
}]
});
how to resolve it?
Have you already read this document
https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/#3--make-calls-to-the-api-using-the-access-token
I think the problem occurs because you wrote on memory that you don't own sizeof
return how many bits does the datatype takes in memory and since your are given it an int
it probably return 4 or 8 according to your system
So I think a fix for your problem will be (Char*)malloc(sizeof(char) * Length + 1)
Looks like you’ve hit one of those spots where Hamcrest gives you a nice matcher out-of-the-box, but AssertJ doesn’t try to cover it. That’s why Co-Pilot spit out that huge reflection-based helper — technically correct, but way too much boilerplate for what you actually want.
If your goal is just “make sure getters and setters work”, you’ve got a couple of simpler options:
Use a small bean testing library (e.g. OpenPojo or Pojo Tester).
They integrate fine with JUnit 5 and keep your test short:
import com.openpojo.validation.ValidatorBuilder;
import com.openpojo.validation.test.impl.GetterTester;
import com.openpojo.validation.test.impl.SetterTester;
import org.junit.jupiter.api.Test;
class GetServiceModelsByDistributionStatusResponseTest {
@Test
void shouldHaveValidGettersAndSetters() {
var validator = ValidatorBuilder.create()
.with(new GetterTester())
.with(new SetterTester())
.build();
validator.validate(GetServiceModelsByDistributionStatusResponse.class);
}
}
If it’s just one or two beans, don’t overthink it — write a tiny manual test:
@Test
void shouldSetAndGetStatus() {
var bean = new GetServiceModelsByDistributionStatusResponse();
bean.setStatus("OK");
assertThat(bean.getStatus()).isEqualTo("OK");
}
So in short:
If you’ve got lots of beans → bring in OpenPojo or Pojo Tester.
If it’s only a few → just test the properties you care about with AssertJ directly.
Would you like me to show you a super minimal reflection-based AssertJ helper (like 20 lines) that you can reuse across all your beans, instead of the giant sample Co-Pilot gave you?
This is because you can only Instantiate a GameObject on unity's main thread and the message you receive calls your handler code on an async thread.
I would recommend looking at the UnityMainThreadDispatcher package to help with this.
A simple but less efficient method to fix this would be to have a bool that is set true in your handler. Then in update function if that bool is true, Instantiate your GameObject.
void Start()
{
EventHandler<MsgHandlerEventArgs> handler = (sender, args) =>
{
messageReceived = true;
};
// Update is called once per frame
void Update()
{
if(messageReceived)
// create object
}
Sample React Native App which integrate Native Modules(Turbo Modules)
Please try to change the procedure name. It will definitely work.
What is the value of innodb_buffer_pool_size
? (It should be about 70% of RAM.) How much RAM? What is the typical size of metadata ?
Please provide `SHOW TABLE STATUS LIKE 'invoice';`
` SELECT COUNT(*)
FROM invoice
WHERE issue_date BETWEEN '2025-01-01' AND '2025-07-30'
AND customer_id = 20
AND status BETWEEN 1 AND 7
AND workflow = 1
Together with
INDEX(customer_id, workflow, status, issue_date)
INDEX(customer_id, workflow, issue_date, status)
LLMs are built mainly for natural language, not for directly understanding spreadsheets. When you pass a table as text (CSV, Excel copy-paste, etc.), the model just sees a stream of tokens — it doesn’t “know” rows and columns. This often breaks the structure and leads to wrong (or hallucinated) answers.
Better approaches:
Clean and normalize tables before sending (consistent headers, no merged cells).
Convert to JSON or key-value pairs so relationships are explicit.
Split large tables into smaller, labeled chunks.
For complex data, query it with SQL/Pandas first, then give the summarized result to the LLM.
General Principle:
Think of it this way:
LLMs = language + reasoning layer
Databases/spreadsheets = structured data layer
Best practice is to let each system do what it’s best at, and connect them.
Get some testnet ETH on a faucet eg https://faucet.chainstack.com
For example, on Sepolia Ethereum.
i try all of the method avove to solve the auto import issue. But none of them work for me soo don't waste your time.
Maybe try use View > Appearance > Zoom IDE with the screen splited. It will zoom in the same level for both of them though.
Here are the steps I’ve already tried (from a commonly suggested solution):
Stopped all XAMPP services and exited the application.
Went to C:\xampp\mysql directory.
Renamed the data folder to data_old.
Created a new data folder and copied the entire content of the backup folder into it (except ibdata1).
Copied all folders/files from data_old into the new data folder, making sure not to replace any existing files (skipped replacements).
form {
width: 600px;
background: #ccc;
margin: 0 auto;
padding: 20px;
border: 1px solid black;
}
<form method="post" enctype="multipart/form-data">
<div>
<label for="file">With jpeg</label>
<input type="file" id="file" name="file" accept=".jpg, .jpeg, .png" multiple>
</div>
</form>
<form method="post" enctype="multipart/form-data">
<div>
<label for="file">Without jpeg</label>
<input type="file" id="file" name="file" accept=".jpg, .png" multiple>
</div>
</form>
When you do:
Decimal(1.2)
Python first has to take the binary floating-point approximation of 1.2 (1.2000000000000001776...) and then convert that into a Decimal. That conversion step is slower, and it gives you the full imprecise binary expansion:
>>> Decimal(1.2)
Decimal('1.20000000000000017763568394002504646778106689453125')
On the other hand:
Decimal("1.2")
parses the string directly into an exact decimal representation. This avoids the intermediate float conversion, so it’s faster and more accurate:
>>> Decimal("1.2")
Decimal('1.2')
Buy Aged Discord Accounts:
https://accsgg.com/product-category/discord/
https://accsgg.com/product-category/discord/
https://accsgg.com/product-category/discord/
Buy Instagram Accounts :
https://accsgg.com/product/2020-2012-aged-account-1k-followers-full-acces-account/
Standard Tennis Court Dimensions and Layout
If you're wondering about the size of a tennis court, the official measurements are set by the International Tennis Federation (ITF).
Tennis court length: 78 feet (23.77 meters)
Tennis court width: 27 feet (8.23 meters) for singles and 36 feet (10.97 meters) for doubles
Tennis court dimensions in feet (including run-off space): Usually 120 ft x 60 ft
Area of a tennis court: Approximately 2,808 sq. ft. for playing area and up to 7,200 sq. ft. including buffer zones
Knowing the tennis court size in feet is crucial when planning construction or selecting a site.
For more info - https://topflooring.in/
Experiencing the same issue after upgrading my kali.
This is due height and width passed to displayDialogAsync were NaN (invalid), and newer Excel builds no longer auto-fallback to defaults and expects width & height to be passed
Since you enabled 'teams' => true
in config/permission.php
, the package expects a team_id
value whenever you assign a role/permission.
To assign team
$teamId = 1; // or fetch/create your default team
$superAdmin->assignRole($superAdminRole, $teamId);
Add a ternary operator to your sortIcons.sorted prop.
Like this:
sortIcons={{
sorted: sortStatus.direction === 'asc' ? <>↑</> : <>↓</>,
unsorted: <>↕</>,
}}
I've added simple Unicode characters in the example, but you can replace them with what ever icons, or ReactNode you like.
Hope I got you correct.
if this wouldn't help please let me know.
import 'package:clock/clock.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
//prepare a clock in setup and use it inside each test via withClock.
// Note: code under test should read time from clock.now() not DateTime.now().
late Clock fixedClock;
setUp(() {
fixedClock = Clock.fixed(DateTime(2000, 1, 1));
});
test('uses fixed year 2000 inside withClock', () {
withClock(fixedClock, () {
expect(clock.now().year, equals(2000));
});
});
test('outside withClock, time falls back to system clock', () {
//clock.now() defaults to the system clock when not overridden.
expect(clock.now().year, equals(DateTime.now().year));
});
}
Almost all answers in this post are not working for me, they seem to be deprecated.
path.join(__dirname, '/logsmain.log');
The above code will produce a path inside app.asar, and this does not work because electron-log writes logs inside app.asar
import { app } from 'electron';
import log from 'electron-log/main';
import path from 'path';
const executablePath = app.getPath('exe');
const executableDirectory = path.dirname(executablePath);
log.transports.file.resolvePathFn = () => path.join(executableDirectory, 'logs/main.log');
log.transports.file.level = 'debug';
log.transports.file.level = "info"
export { log as logger };
The above code works for me.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
import jakarta.validation.constraints.NotBlank;
Flutter raised the bar to Android 7.0 (API 24) because it lets the team focus on modern performance and security for the vast majority of users, rather than spending energy on the less than 1% of devices still on older software. So yes, this is the new recommendation to make your app better and your life easier.
Who asks these questions here this isn't reddit
Latest results in .NET 9, C# 13. Use myList[0]
.
The code:
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace Benchmarks
{
public class ListAccessBenchmark
{
private List<int> _myList = null!;
[GlobalSetup]
public void Setup()
{
_myList = Enumerable.Range(1, 100).ToList();
}
[Benchmark]
public int FirstLinq()
{
return _myList.First();
}
[Benchmark]
public int FirstOrDefaultLinq()
{
return _myList.FirstOrDefault();
}
[Benchmark]
public int Indexer()
{
return _myList[0];
}
}
public static class Program
{
public static void Main(string[] args)
{
BenchmarkRunner.Run<ListAccessBenchmark>();
}
}
}
Working solution for whole website background,
For the HTML code,
<div class="video-background">
<iframe src="https://www.youtube.com/embed/QyhrOruvT1c?playlist=QyhrOruvT1c&controls=0&showinfo=0&rel=0&autoplay=1&loop=1&mute=1" frameborder="0" allowfullscreen></iframe>
</div>
It is important to set autoplay=1
, playlist=<video id>
, and loop=1
.
In the CSS part, we could use the @media
to manage the video size depends on the video aspect ratio,
.video-background {
pointer-events: none;
position: relative;
overflow: hidden;
width: 100vw;
height: 100vh;
iframe {
position: absolute;
width: 300vw; /* use 300vw to hide logos of Youtube, creator, and title */
height: 100vh;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* example video is 16:9, change the value depends on your use */
@media (min-aspect-ratio: 16/9) {
height: calc(9/16 * 100vw);
}
@media (max-aspect-ratio: 16/9) {
/* match the width trick for hiding logos */
width: calc(16/9 * 100vh * 3);
}
}
}
Live example is as below,
How about add those attributes with a default value None
by using a metaclass
?
from dataclasses import dataclass
keys = ('id',
'name',
'pwd',
'picture',
'url',
'age')
class MyMeta(type):
def __call__(self, *args, **kwargs):
for p in keys:
kwargs[p] = kwargs.get(p)
cls_obj = self.__new__(self, *args, **kwargs)
self.__init__(cls_obj, *args, **kwargs)
return cls_obj
@dataclass
class User(metaclass=MyMeta):
id: str
name: str
pwd: str
picture: str
url: str
age: int
attributes1 = {"id": "18ut2", "pwd": "qwerty", "name": "John Doe", "picture": None, "age": None, "url": "www.example.com"}
user1 = User(**attributes1)
print(user1)
attributes2 = {"id": "18ut2", "pwd": "qwerty", "name": "John Doe", "url": "www.example.com"} # No picture or age key anymore
user2 = User(**attributes2)
print(user2)
I found a fix
Add this to your pom.xml file and it does resolve the issue
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
Anyone knows why it works?
I encountered the same issue when binding with ~/host_dir:guest_dir_path
. After running the find
command to search for a specific file, I discovered that the file was located neither in the Windows user folder nor in the home directory of the docker-desktop distro, but instead in /tmp/docker-desktop-root
.
I fix the problem in gitlab ci cd set the variable: GIT_COMMIT_AUTHOR with value: “name <[email protected]>”, You can find that reference in :
I am using the copy object on the browser's watch window to copy the json value. I used to be able to copy the jason value when using visual studio code but lately it stopped working.
Choose Ctrl-Shift-D, then choose debug or release, and then press F5. The system "remembers" the debug/release selection. Each time you subsequently press F5, you get a debug or release build that is remembered from the initial selection.
Plotly.d3
was removed in v2.0.0 of plotly.js. You'll need to import D3 separately going forward.
Detecting in-app browsers is a tricky business. The package detect-inapp use to be the go-to but it has sadly not been maintained in a long while.
I forked and refactored it into inapp-spy
and continue to maintain it for anyone who is still looking for a way to detect in-app browsers in 2025!
Did this solve your issue?
In your main.dart
file:
localizationsDelegates: const [
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
FlutterQuillLocalizations.delegate,
],
locale: const Locale('en', 'PH'), // Set locale to Philippines; replace with your locale
supportedLocales: S.delegate.supportedLocales,
Note: You can remove the local configuration if you don't want to implement it across your entire app, and apply it per widget instead, just like what you did in your second code snippet.
I've already faced the same issue before, that configuration helped me.
I had a similar issue and ended up using a tool called Converly. It's like Zapier but for conversion tracking in tools like Google Analytics, Google Ads, etc. You basically select a trigger (Avada form submitted) and then the actions (Conversion in Google Analytics, Conversion in Google Ads, etc). Worked perfectly for us
I'm getting the same error!
If I ask for "openid email profile accounting.transactions accounting.settings offline_access" it works.
...but if I add accounting.contacts to that list, I get sent to this page:
**Sorry, something went wrong**
Go back and try again.
If the issue continues, please visit our Status page
Error: unauthorized_client
Invalid scope for client
Error code: 500
I've tried in multiple browsers on multiple computers and always get the same behaviour. Asking for "accounting.contacts" breaks it.
What's strange is we have 2 xero apps, a test one and a production one. The test one lets me connect with the accounting.contacts scope, but the production one does not.
Did you ever find a solution to the problem?
A simple way is to use the Key-Generator’s online tool designed specifically for generating secret keys for Next.js Auth — very convenient:
https://key-generator.com/next-js-auth-secret-generator
In my Facebook account notification came tomorrow from Facebook Tht you are temporarily restricted for uploading photos til today at 8 PM
Did you ever solve this?
Here are some more characters because you need at least 30...
Seems like this will do it (didn't test it yet myself).
https://plugins.jenkins.io/multibranch-job-tear-down/
Your from parameter must be `[title] <yourmail.yourdomain.com>`
Example:
from: `Verify Email <[email protected]>`
For anyone who needs this:
I have vim-rails working under TJ Devries Kickstart project ( see link). It was as simple as adding one line of code to init.lua. https://github.com/nvim-lua/kickstart.nvim?tab=readme-ov-file
Here is a link to his YT video explaining the single kickstartt file https://www.youtube.com/watch?v=m8C0Cq9Uv9o
The URL of the Maven repo uses HTTPS protocol, not HTTP.
Run mvn help:effective-pom
and inspect the result for definitions.
They should be at least:
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
Consider mirroring of the default Central Maven repository (the last resort to look in) with a statement in your settings.xml
like:
<mirror>
<id>public-local</id>
<mirrorOf>central</mirrorOf>
<name>Let the default Maven Central repository is resolved in the local Nexus' public repository</name>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
From the log above I see that you use a local Archiva, so change the URL accordingly, but still Archiva does not find the needed plugins - maybe it is not defined as a proxy of Maven Central?
import os
import re
import urllib.request
import youtube_dl
import shutil
import discord
from discord.ext import commands
from discord.utils import get
bot = commands.Bot(command_prefix='g.')
token = '<mytoken>'
queues = {} # for tracking queued song numbers
# -----------------------------
# Function to check and play next song
# -----------------------------
def check_queue(ctx, voice):
Queue_infile = os.path.isdir("./Queue")
if Queue_infile:
DIR = os.path.abspath(os.path.realpath("Queue"))
length = len(os.listdir(DIR))
if length > 0:
first_file = os.listdir(DIR)[0]
song_path = os.path.abspath(os.path.realpath("Queue") + "\\" + first_file)
if os.path.isfile("song.mp3"):
os.remove("song.mp3")
shutil.move(song_path, "./song.mp3")
voice.play(
discord.FFmpegPCMAudio("song.mp3"),
after=lambda e: check_queue(ctx, voice)
)
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.3
print("Playing next queued song...")
else:
queues.clear()
print("Queue empty, stopping.")
else:
queues.clear()
print("No Queue folder found.")
# -----------------------------
# PLAY command
# -----------------------------
@bot.command(pass_context=True)
async def play(ctx, *args: str):
search = '+'.join(args)
if search.strip() == "":
await ctx.send("Uso: g.play (Video)")
return
html = urllib.request.urlopen("https://www.youtube.com/results?search_query=" + search)
video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode())
url = "https://www.youtube.com/watch?v=" + video_ids[0]
print("Found URL:", url)
# remove old song if exists
if os.path.isfile("song.mp3"):
try:
os.remove("song.mp3")
queues.clear()
print("Removed old song file")
except PermissionError:
await ctx.send("Error: Ya estoy poniendo musica! Usa g.queue para agregar más canciones.")
return
# clear old queue folder
if os.path.isdir("./Queue"):
try:
shutil.rmtree("./Queue")
print("Removed old Queue Folder")
except:
pass
await ctx.send("Preparando cancion...")
voice = get(bot.voice_clients, guild=ctx.guild)
if not voice:
if ctx.author.voice:
channel = ctx.message.author.voice.channel
voice = await channel.connect()
else:
await ctx.send("⚠️ No estas en un canal de voz.")
return
ydl_opts = {
'format': 'bestaudio/best',
'quiet': True,
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
print("Downloading audio now\n")
ydl.download([url])
for file in os.listdir("./"):
if file.endswith(".mp3"):
name = file
os.rename(file, "song.mp3")
voice.play(
discord.FFmpegPCMAudio("song.mp3"),
after=lambda e: check_queue(ctx, voice)
)
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.3
await ctx.send(f"▶️ Reproduciendo: {url}")
# -----------------------------
# QUEUE command
# -----------------------------
@bot.command(pass_context=True)
async def queue(ctx, *searchs):
search = '+'.join(searchs)
if not os.path.isdir("./Queue"):
os.mkdir("Queue")
DIR = os.path.abspath(os.path.realpath("Queue"))
q_num = len(os.listdir(DIR)) + 1
while q_num in queues:
q_num += 1
queues[q_num] = q_num
queue_path = os.path.abspath(os.path.realpath("Queue") + f"\\song{q_num}.%(ext)s")
ydl_opts = {
'format': 'bestaudio/best',
'quiet': True,
'outtmpl': queue_path,
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192'
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
html = urllib.request.urlopen("https://www.youtube.com/results?search_query=" + search)
video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode())
url = "https://www.youtube.com/watch?v=" + video_ids[0]
print("Queueing:", url)
ydl.download([url])
await ctx.send("➕ Añadiendo canción " + str(q_num) + " a la lista!")
# -----------------------------
# SKIP command
# -----------------------------
@bot.command()
async def skip(ctx):
voice = get(bot.voice_clients, guild=ctx.guild)
if voice and voice.is_playing():
voice.stop() # triggers check_queue through after callback
await ctx.send("⏭️ Canción saltada.")
else:
await ctx.send("⚠️ No hay canción reproduciéndose.")
# -----------------------------
# On Ready
# -----------------------------
@bot.event
async def on_ready():
print(f"Bot {bot.user} has connected to discord!")
bot.run(token)
This code works without any errors, the key point was adding the correct columns (1:5) in point_accuracy_measures in the accuracy function.
fit %>%
fabletools::forecast(h = 1) %>%
fabletools::accuracy(Time_Series_test, measures = point_accuracy_measures[1:5]) %>%
dplyr::select(.model:MAPE) %>%
dplyr::arrange(RMSE)
You should be able to do it by the following:
set the registryUrls
in your renovate.json
's packageRules
, as explained here: https://docs.renovatebot.com/configuration-options/#registryurls. Also see this for finding out the repo URL for CodeArtifact: https://docs.aws.amazon.com/codeartifact/latest/ug/npm-auth.html#configuring-npm-without-using-the-login-command
keep the aws codeartifact login
inside the pipeline
copy the renovate.json
file from the repo directory to a temporary location
embed the .npmrc
inside the temporary renovate.json
, perhaps using a tool like jq
set the RENOVATE_CONFIG_FILE
environment variable to point to the temporary renovate.json
sql_tmpl = "delete from Data where id_data in (SELECT UNNEST(:iddata))"
params = {
'iddata':[1, 2, 3, 4],
}
self.session.execute(text(sql_tmpl), params)
I needed to upgrade node
This helped:
npm update node
tienes que tener instalador el firebird, para esa version creo que es la 2.5 Firebird 2.5
tambien el ApacheFriends XAMPP Version 5.6.40
pero checa que el puerto del server firebird sea esa.
I managed to find a solution for this. If someone knows a better solution, please let me know.
public File aggregateAllBenchmarks() {
// Load benchmark configuration
PlannerBenchmarkConfig benchmarkConfig = PlannerBenchmarkConfig.createFromXmlResource("benchmarkConfig.xml");
File benchmarkDirectory = new File(String.valueOf(benchmarkConfig.getBenchmarkDirectory()));
if (!benchmarkDirectory.exists() || !benchmarkDirectory.isDirectory()) {
throw new IllegalArgumentException("Benchmark directory does not exist: " + benchmarkDirectory);
}
// Read all existing benchmark results from the directory
BenchmarkResultIO benchmarkResultIO = new BenchmarkResultIO();
List<PlannerBenchmarkResult> plannerBenchmarkResults =
benchmarkResultIO.readPlannerBenchmarkResultList(benchmarkDirectory);
if (plannerBenchmarkResults.isEmpty()) {
throw new IllegalArgumentException("No benchmark results found in directory: " + benchmarkDirectory);
}
// Collect all single benchmark results and preserve solver names
List<SingleBenchmarkResult> allSingleBenchmarkResults = new ArrayList<>();
Map<SolverBenchmarkResult, String> solverBenchmarkResultNameMap = new HashMap<>();
for (PlannerBenchmarkResult plannerResult : plannerBenchmarkResults) {
for (SolverBenchmarkResult solverResult : plannerResult.getSolverBenchmarkResultList()) {
allSingleBenchmarkResults.addAll(solverResult.getSingleBenchmarkResultList());
solverBenchmarkResultNameMap.put(solverResult, solverResult.getName());
}
}
// Create and configure the benchmark aggregator
BenchmarkAggregator aggregator = new BenchmarkAggregator();
aggregator.setBenchmarkDirectory(benchmarkDirectory);
aggregator.setBenchmarkReportConfig(benchmarkConfig.getBenchmarkReportConfig());
// Perform the aggregation - returns HTML report file
File htmlOverviewFile = aggregator.aggregate(allSingleBenchmarkResults, solverBenchmarkResultNameMap);
return htmlOverviewFile;
}
https://github.com/dohooo/supazod
This project was created for this purpose.
Okay I finally got this working after following the first answer by @vangj
The issue is some default scopes like 'openid' do not return an accessToken. I found this out by implementing a manual SSO function and some googling. (this is the only one I had defined)
You need to create a custom scope and expose your API for the 'accessToken' to return within the microsoft interceptor config.
So make sure your protected resource scopes has a scope included that will indeed return an accessToken. (openid will not)
export function MSALInterceptorConfigFactory(): MsalInterceptorConfiguration {
const protectedResourceMap = new Map<string, Array<string>>();
protectedResourceMap.set ( // This triggers automatic silentSSO
environment.apiUrl, //your app will try to get a token if protected resource gets called
['openid', 'https://yourapi.onmicrosoft.com/{clientid}/App.Access'] // You need a custom application scope and expose an API, in order to get 'accessToken' to return, if not it will be empty and fail.
);
return {
interactionType: InteractionType.Redirect,
protectedResourceMap,
};
}
class MetroRailway:
def __init__(self):
# Initialize the MetroRailway with an empty list of stations
# Using list instead of queue to allow easier insertions/deletions
self.stations = []
# Method to add a new station
# Special handling is done when adding the 4th station
def addnewstation(self, station):
if len(self.stations) < 3:
# Directly add the station if fewer than 3 stations exist
self.stations.append(station)
print(f"Station '{station}' added successfully.")
elif len(self.stations) == 3:
# When adding the 4th station, user chooses position
print("Insert at --")
print("[1] First Station")
print("[2] Middle Station")
print("[3] Last Station")
choice = input("Choose Position: ")
# Insert based on user choice
if choice == "1":
self.stations.insert(0, station) # Insert at the beginning
print(f"Station '{station}' inserted as First Station.")
elif choice == "2":
self.stations.insert(2, station) # Insert at the middle
print(f"Station '{station}' inserted as Middle Station.")
elif choice == "3":
self.stations.append(station) # Insert at the end
print(f"Station '{station}' inserted as Last Station.")
else:
# Invalid choice defaults to adding at the end
print("Invalid choice. Added to the Last Station by default.")
self.stations.append(station)
# Display the updated first 3 stations
print("\nUpdated First 3 Stations:")
for i, s in enumerate(self.stations[:3], 1):
print(f"[{i}] {s}")
# Ask user for preferred position (just an additional prompt)
pos_choice = input("Enter position: ")
print(f"You selected position {pos_choice}.")
else:
# If more than 4 stations, simply append at the end
self.stations.append(station)
print(f"Station '{station}' added successfully.")
# Method to print all stations in the list
def printallstations(self):
if not self.stations:
print("No stations available.") # Handle empty station list
else:
print("Stations List:")
# Print each station with numbering
for i, station in enumerate(self.stations, 1):
print(f"{i}. {station}")
# Method to delete a specific station by name
def deletestation(self):
if not self.stations:
print("No stations to delete!") # Handle case when list is empty
return
station = input("Enter station name to delete: ")
if station in self.stations:
self.stations.remove(station) # Remove the station if it exists
print(f"Station '{station}' deleted successfully.")
else:
# Notify user if station is not found
print(f"Station '{station}' not found in the list!")
# Method to get the distance between two stations
# Distance is calculated as the difference in their list indices
def getdistance(self, station1, station2):
if station1 in self.stations and station2 in self.stations:
index1 = self.stations.index(station1)
index2 = self.stations.index(station2)
distance = abs(index1 - index2) # Absolute difference
print(f"Distance between {station1} and {station2} is {distance} station(s).")
else:
# If one or both stations are not in the list
print("One or both stations not found!")
# Main function to run the MetroRailway program
def main():
metro = MetroRailway() # Create a MetroRailway instance
# Display welcome message and available actions
print("\nWelcome to LRT1 MetroRailway")
print("Available Actions:")
print(" help - Show this menu")
print(" printallstations - Show all stations")
print(" addnewstation - Add a new station (special choice on 4th input)")
print(" deletestation - Delete a specific station by name")
print(" getdistance - Measure distance between two stations")
print(" stop - Stop current run")
print(" exit - Exit the program completely")
# Infinite loop to keep program running until user chooses to stop/exit
while True:
action = input("\nChoose Action: ").lower()
if action == "help":
# Show help menu again
print(" help - Show this menu")
print(" printallstations - Show all stations")
print(" addnewstation - Add a new station (special choice on 4th input)")
print(" deletestation - Delete a specific station by name")
print(" getdistance - Measure distance between two stations")
print(" stop - Stop current run")
print(" exit - Exit the program completely")
elif action == "printallstations":
# Show all stations
metro.printallstations()
elif action == "addnewstation":
# Prompt for station name then add
station = input("Enter station name: ")
metro.addnewstation(station)
elif action == "deletestation":
# Delete station
metro.deletestation()
elif action == "getdistance":
# Prompt user for two stations and calculate distance
station1 = input("Enter first station: ")
station2 = input("Enter second station: ")
metro.getdistance(station1, station2)
elif action == "stop":
# Stop current run but not exit the whole program
print("Stopping current run...")
break
elif action == "exit":
# Exit the program completely
print("Exiting program completely. Goodbye!")
exit()
else:
# Handle invalid actions
print("Invalid action. Type 'help' to see available actions.")
# Run the program only if file is executed directly
if __name__ == "__main__":
main()
use imazing to extract it then change it to .ipa and I don't know how to change it to swift