From my experience, this is likely due to the RDS proxy requesting more database connections than the database can service at the moment, either due to CPU limitations, or a max connection limit.
The original question is how to do a modulus of a very large number, but the detailed problem shows the modulus of a small number with a small exponent (which results in a very large number). These need a very different solution.
The suggested solution (function BigMod) solves the problem for modulus of a relatively small exponential number, but it can't handle one "very large number".
Excel can not store accurate numeric values of more than 15 digits (16 characters when you include the positive or negative sign) These big numbers can also cause formula errors, so you're better off calculating the modulus in another way. (the formula OP gave also gives inaccurate results for these 15 digit numbers, this might have to do with float numbers, but I won't go into detail about this)
Because of this I will show you how to solve a Modulus of a very large number (that is not an exponential number) with formulas and with a function (bottom of my answer)
OP his 2^288 example will be stored as number 497323236409787000000000000000000000000000000000000000000000000000000000000000000000000
This is an incorrect value, such a big number should be stored as a string: "497323236409786642155382248146820840100456150797347717440463976893159497012533375533056" (How you get such a big number as a string is a whole separate topic)
When you have your accurate very big number, you then have to go through the number/string from left to right, calculating modulus each time and then add the next part to it.
First possible formula solution, calculating modulus of the first chunk and adding the rest of the string back to it each time:
(note: Americans need to replace the semicolon for a comma)
A1 = "497323236409786642155382248146820840100456150797347717440463976893159497012533375533056"
(very large number)
B1 = 10
(length of the substring)
C1 = 2017
(modulus number)
A2 = MOD(LEFT(A1 ;$B$1);$C$1) & RIGHT(A1 ;LEN(A1 )-$B$1)
A3 = MOD(LEFT(A2 ;$B$1);$C$1) & RIGHT(A2 ;LEN(A2 )-$B$1)
A4 = MOD(LEFT(A3 ;$B$1);$C$1) & RIGHT(A3 ;LEN(A3 )-$B$1)
A5 = MOD(LEFT(A4 ;$B$1);$C$1) & RIGHT(A4 ;LEN(A4 )-$B$1)
A6 = MOD(LEFT(A5 ;$B$1);$C$1) & RIGHT(A5 ;LEN(A5 )-$B$1)
A7 = MOD(LEFT(A6 ;$B$1);$C$1) & RIGHT(A6 ;LEN(A6 )-$B$1)
A8 = MOD(LEFT(A7 ;$B$1);$C$1) & RIGHT(A7 ;LEN(A7 )-$B$1)
A9 = MOD(LEFT(A8 ;$B$1);$C$1) & RIGHT(A8 ;LEN(A8 )-$B$1)
A10= MOD(LEFT(A9 ;$B$1);$C$1) & RIGHT(A9 ;LEN(A9 )-$B$1)
A11= MOD(LEFT(A10;$B$1);$C$1) & RIGHT(A10;LEN(A10)-$B$1)
A12= MOD(LEFT(A11;$B$1);$C$1) & RIGHT(A11;LEN(A11)-$B$1)
A13= MOD(LEFT(A12;$B$1);$C$1) & RIGHT(A12;LEN(A12)-$B$1)
(remaining string is less than 10 characters, so we can do our final MOD now)
A14= MOD(A13;$C$1)
= 891
Second possible formula solution, calculating the modulus of the first chunk and then keep taking the previous modulus result and adding the next chunk to it:
A2 = MOD( LEFT($A$1;$B$1);$C$1) & MID($A$1;($B$1*1)+1;$B$1)
A3 = MOD(A2;$C$1) & MID($A$1;($B$1*2)+1;$B$1)
A4 = MOD(A3;$C$1) & MID($A$1;($B$1*3)+1;$B$1)
A5 = MOD(A4;$C$1) & MID($A$1;($B$1*4)+1;$B$1)
A6 = MOD(A5;$C$1) & MID($A$1;($B$1*5)+1;$B$1)
A7 = MOD(A6;$C$1) & MID($A$1;($B$1*6)+1;$B$1)
A8 = MOD(A7;$C$1) & MID($A$1;($B$1*7)+1;$B$1)
A9 = MOD(A8;$C$1) & MID($A$1;($B$1*8)+1;$B$1)
A10= MOD(A9;$C$1)
= 891
(with substrings of length 10 it will be done here)
If you know the maximum amount of steps you'll need, then you can combine this into 1 cell:
A2 =
MOD(
MOD(
MOD(
MOD(
MOD(
MOD(
MOD(
MOD(
MOD(
LEFT($A$1;$B$1)
;$C$1) & MID($A$1;($B$1*1)+1;$B$1)
;$C$1) & MID($A$1;($B$1*2)+1;$B$1)
;$C$1) & MID($A$1;($B$1*3)+1;$B$1)
;$C$1) & MID($A$1;($B$1*4)+1;$B$1)
;$C$1) & MID($A$1;($B$1*5)+1;$B$1)
;$C$1) & MID($A$1;($B$1*6)+1;$B$1)
;$C$1) & MID($A$1;($B$1*7)+1;$B$1)
;$C$1) & MID($A$1;($B$1*8)+1;$B$1)
;$C$1)
= 891
Important note: these formulas can start throwing errors when your chunks are too big.
Now that you understand the process, I will put this into a function. This will go through the number character by character to keep it simple and to avoid errors caused by too big numbers. It also accepts both strings and numbers
Public Function BigNrMod(ByVal number As Variant, ByVal modulus As Double) As Double
Dim remainder As Double
remainder = 0
Dim i As Integer
For i = 1 To Len(number) ' Loop through each character
'modulus of string to number (remainder & next character)
remainder = CDbl(remainder & Mid(number, i, 1)) Mod modulus
' Alternatively modulus of sum (10x remainder + value of the next character)
' remainder = (remainder * 10 + Val(Mid(number, i, 1))) Mod modulus
Next i
BigNrMod = remainder
End Function
Here's also the ExponentialNumber function, but with the use of Mod instead of the formula:
Public Function ExpNrMod(ByVal number As Double, ByVal exponent As Integer, ByVal modulus As Double) As Double
Dim tmp As Integer
tmp = 1
Dim i As Integer
For i = 1 To exponent
tmp = (tmp * number) Mod modulus
Next i
ExpNrMod = tmp
End Function
at first glance, it looks like you need to change
$query = "SELECT user_id, firstname FROM users WHERE email = $1";
to
$query = "SELECT user_id, firstname FROM users WHERE email = $2";
I come across this old topic. My way to ignore '\n' is:
#include <string.h>
#include <stdio.h>
#define MAX_LENGTH 512
char *line, *tok;
FILE *file;
fgets(line, MAX_LENGTH, file);
tok = strchr(line, '\n');
if (tok) *tok = '\0';
Most likely the SAP runtime is not installed, corrupted or the installed version does not match the one used in the application.
Following Tom Sharpe's suggestion from comments, I was able to build upon Creating Datavalidation with custom Formula to achieve both of my requirements:
var criteria = SpreadsheetApp.DataValidationCriteria.DATE_ON_OR_BEFORE;
var args = ["=TODAY()"];
var val = SpreadsheetApp.newDataValidation().withCriteria(criteria,args);
This gives me both dynamic check that uses "today()" as date, and date picker for input.
Mine is working fine. I still use flutter 3.24.5
Could you provide the flutter doctor
result?
Have you try to clean the gradle?
./gradlew clean
./gradlew --stop
./gradlew build
so if it was a command like find . -newer "1 week ago" -a -not -newer "3 days ago"
The newer command is just saying to look for files newer then 7 days ago and not to find file newer then 3 days ago, so then the find -newer command must have a date or time specified to look for files that are newer then that date or time.?/
$ find / -newer /tmp/file -print
in this example though theres no time or date specified. is that because it is referencing to
$ touch -mt 09301300 /tmp/file
which has a date and time specified in the file... /tmp/file.
does the find -newer command always need a reference file?
So here is the thing:
And make sure to watch my YouTube video about this: https://youtu.be/Pgl_NmbxPUo.
If you are using <Stack.Screen ...> (in 2025), this may solve your issue
Scenario - Inside the directory where you app.tsx (or) app directory is located, suppose you have sub-directories, which are for different groups / sub tasks for your app (ex - app/auth/otp-handling.tsx). Each such directory will have its own _layout.tsx, in which we typically have the settings for the header, which is local to the directory. Lets say you are developing / testing the otp-handling.tsx, so to do that you may have imported that component directly into your app.tsx (the mistake which I had done). And the header styles were not applied, despite mentioning then clearly in the Stack.Screen in _layout.tsx. Here when you import a component which is under a subdir with its own _layout.tsx, into app.tsx, it (otp-handling.tsx, say) would follow the _layout.tsx of the app directory (outer one). Hence instead of importing it, use 'useRouter' from expo-router and do router.push('/auth/otp-handling'), it will work, as the otp-handling.tsx will now follow _layout.tsx of the auth directory.
Note - do that router.push in a useEffect, in a set timeout (1000ms) Believe me, it works!
export const useProductsStore = defineStore("products", () => { const products = ref<TProduct[] | undefined>();
async function setProducts() { if (products.value !== undefined) return; // if itâs not necessary to block script execution here, use âthenâ instead of âawaitâ products.value = ( await fetchData( "https://dummyjson.com/products?limit=5" ) ).products; }
return { products, }; });
The issue is in the timing. dynamicLoader is defined as ViewChild
and because of that is available only after the AfterViewInit
lifecycle hook and undefined during OnInit
. Just switch ngOnInit
to ngAfterViewInit
and you should be good to go.
To store your creation time in an instance field in an object, use Instant
, not String
. Strings are for presentation to users, for storage if your storage doesnât support date-time types and for data exchange.
For example:
OffsetDateTime creationDateTime = ZonedDateTime.of(
2025, 2, 16, 23, 35, 0, 0,
ZoneId.of("Asia/Yekaterinburg"))
.toOffsetDateTime();
System.out.println(creationDateTime);
Instant creationTime = creationDateTime.toInstant();
System.out.println(creationTime);
Output:
2025-02-16T23:35+05:00 2025-02-16T18:35:00Z
The Instant
already prints in the format you asked for, only it will also print a fraction of second if a non-zero fraction exists.
If against my recommendation you insist on a string, I suggest this formatter:
private static final DateTimeFormatter formatter
= new DateTimeFormatterBuilder()
.append(DateTimeFormatter.ISO_LOCAL_DATE)
.appendLiteral('T')
.appendPattern("HH:mm:ssX")
.toFormatter(Locale.ROOT);
Itâs wordier than yours but has the advantage of reusing the built-in DateTimeFormatter.ISO_LOCAL_DATE
. Now convert to UTC and format:
String utcString = creationDateTime.withOffsetSameInstant(ZoneOffset.UTC)
.format(formatter);
System.out.println(utcString);
Output is the same as before:
2025-02-16T18:35:00Z
An OffsetDateTime
has an offset from UTC, hence the class name. In java.time parlance a time zone is a IANA time zone and comprises past, present and future UTC offsets used in a particular place, the zone, such as Asia/Yekaterinburg in my code example above. So UTC is not a time zone, and an OffsetDateTime
cannot have a time zone in this sense (this is what we have the ZonedDateTime
class for).
Do I need to set timezone using
withOffsetSameInstant(ZoneOffset.of("UTC"))));
or I can skip it?
First, ZoneOffset.of("UTC")
throws an exception. Instead use the built-in constant ZoneOffset.UTC
. Then the answer to your question is, it depends on the result you want, of course. Your result will typically differ depending on whether you convert it to UTC or not.
Power Automate Desktop uses its own Python env, not the system one, which is causing the issue. The packages you are installing are being installed in system's python environment. To resolve the issue, you will have to install the required packages directly in PAD's python installation. So locate and activate that enviroment and do pip install azure-storage-blob.
Yes, Device Bound Session Credentials (DBSC) is an industry effort to better bind cookies to the browsing context on the device.
I get wht's going wrong. Today I realize that the KKS variable include the quotation marks itself, thatÂŽs why the query_sql don't work. What I do is to get rid of the quotation marks with this:
KKS = Mid(KKS,2, Len(KKS -2)
Now it's working, thanks all for your help.
Removing the encryption-related options in the device's fstab should be the easiest way to disable encryption without complicated, bug-prone edits to source code.
You can see examples of an fstab entry for userdata
here.
SHOW tasks will show only 2 states âstartedâ or âsuspendedâ. To view the past executions of task Realtime(without latency) task data of previous 7 days: https://docs.snowflake.com/en/sql-reference/functions/task_history
Task data for last 1 year with 45 minute latency: https://docs.snowflake.com/en/sql-reference/account-usage/task_history
Any update on this? IÂŽm interested..
This Microsoft MVP Access blog seems to answer my question in that there does not seem to be a programmatic way to forget/clear the connection cache.
Even so, here are three options for others to pursue, though I encourage others to read the blog first.
The conditional MS Access policy time out needs to be expanded. Although the security team isn't really budging on this, I still think this is the first solution to explore for anyone else facing my problem.
Using a SQL authenticated account. This is not best practice in my opinion. You can create a dedicated SQL Server authenticated account (or several) and share this with account and the password with users. The obvious risks are outlined more clearly in the MS blog.
Create a custom library to pass the refresh token. The way I might do this is use a .NET (with COM) approach and build something using the MSAL library. Then integrate this into VBA and update the connection string to use the token using the SQL_COPT_SS_ACCESS_TOKEN attribute.
I think the best approach here would be to use the ignoreErrors
option https://docs.sentry.io/platforms/javascript/configuration/filtering/
Sentry.init({
ignoreErrors: [
"Can't find variable: gmo"
],
});
I had the same ussue, updating permissions solved it.
Click create new app, choose source Git and digital ocean will ask you to update git permissions
# Subject: Internal script counter with VARIABLE.
# Example: time of file download, and so on.
now=$(date +'%s')sec;
echo ""
echo "[INF] Running script..."
echo ""
# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.
# Timmer command, Input: 5 seconds.
sleep 5s
InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")
# Output: 5 seconds.
echo "[INF] Internal run time of the script: $InfTimExe"
echo ""
exit
Your direction == "North" or "South" or "East" or "West"
isn't actually doing what you think it is. (There was a reply about this, but it didn't explain fully what was going on.) Every string, in logic, is equivalent to True
. So this actually means direction == True or True or True or True
. This collapses down to direction == True
, which is always false. Instead, you should do direction == "North" or direction == "South" or direction == "East" or direction == "West"
. Python is like English, but it doesn't have all the properties of it. I'm a beginner at Python, can do most basic things, but I don't understand a lot of what these answers are, and I'm glad to help if any more problems are in my expertise. Feel free to edit my typos or anything else. Please don't edit the answer, though, unless it is a vital caveat that I missed.
If you are using Norton Antivirus, try disabling the "Safe Web" feature
Only disabling Firewall is not enough!
open app.config.ts and flow these steps:
import { provideMonacoEditor } from 'ngx-monaco-editor-v2';
providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideMonacoEditor(), ],
The problem is that standard input is not always a pipe, and splice(2) requires at least one side to be a pipe.
$ ./test < test.c
splice: Invalid argument
(exit: 1)
$ cat test.c | ./test
$ ./test
(exit: 1)
In the first case, standard input is a file, which cannot be spliced. In the second case, it is a pipe. In the third case, it's a character device i.e. my terminal.
Thanks to this i got the answer!
If you are using Norton Antivirus, try disabling the "Safe Web" feature
@import "tailwindcss";
@theme {
}
@keyframes asd {
0% {
opacity: 1;
}
10%,
100% {
opacity: 0;
}
50%,
100% {
width: 0;
margin: 0;
}
}
#main {
width: 450px;
height: 200px;
border: solid 1px black;
margin: 100px;
display: flex;
justify-content: center;
}
#one {
width: 200px;
height: 200px;
border: solid 1px red;
}
#second {
position: static;
visibility: visible;
width: 200px;
height: 200px;
border: solid 1px blue;
}
#main:hover {
animation-duration: 1s;
animation-name: make-small;
animation-fill-mode: forwards;
}
#main > *{
margin: 0 auto;
}
#main:hover #second {
animation-duration: 1s;
animation-name: asd;
animation-fill-mode: forwards;
}
For PHP 8.4.3 on Debian 12 "bookworm", the OS of the official docker image, add the following to your Dockerfile
:
RUN apt-get install -y libgmp-dev && \
docker-php-ext-install -j$(nproc) gmp
I always put the string into a local Access table and use DoCmd.TransferText...
The solution was to close the pipe handles after creating the process.
So
if (!CreateProcess(
NULL,
filename, //TODO: check unicode?
NULL,
NULL,
TRUE,
0,
NULL,
NULL,
&si,
pi)
) {
printf("Could not create process\n");
return NULL;
}
CloseHandle(g_hChildStd_OUT_Wr);
CloseHandle(g_hChildStd_IN_Rd);
I guess because then only the child holds a handle to the resources, not the parent.
r=polar.base_scalar(0)
or r,theta=polar.base_scalars()
should be added before definition of the metric g=....
Please note that the definition of x and y x,y=symbols(...)
should be moved before their use in relation_dict = {....
For those who are looking for RSA (asymmetric keys), You can set the key id while constructing the security credentials (below snippet shows an example).
var accessTokenDescription = new SecurityTokenDescriptor
{
Issuer = "https://example.in",
IssuedAt = DateTime.UtcNow,
NotBefore = DateTime.UtcNow,
Expires = DateTime.UtcNow.AddSeconds(accessTokenExpiry),
SigningCredentials = new SigningCredentials(new RsaSecurityKey(rsa)
{
KeyId = "hello-world"
}, SecurityAlgorithms.RsaSsaPssSha256)
};
When the token is generated, it will have kid in the JWT header like below:
I find this happens most often when I switch windows. If I toggle preview on and off (âK then v) - it usually resolves itself.
Feel free to check isolated_box library. This box is build on top on Hive with the same API but different init and is multi-isolate.
Give us SQL Server access from client/server WASM.
If you are using <Stack.Screen ...> (in 2025), this may solve your issue
Scenario - Inside the directory where you app.tsx (or) app directory is located, suppose you have sub-directories, which are for different groups / sub tasks for your app (ex - app/auth/otp-handling.tsx). Each such directory will have its own _layout.tsx, in which we typically have the settings for the header, which is local to the directory. Lets say you are developing / testing the otp-handling.tsx, so to do that you may have imported that component directly into your app.tsx (the mistake which I had done). And the header styles were not applied, despite mentioning then clearly in the Stack.Screen in _layout.tsx. Here when you import a component which is under a subdir with its own _layout.tsx, into app.tsx, it (otp-handling.tsx, say) would follow the _layout.tsx of the app directory (outer one). Hence instead of importing it, use 'useRouter' from expo-router and do router.push('/auth/otp-handling'), it will work, as the otp-handling.tsx will now follow _layout.tsx of the auth directory. Believe me, it works!
Found at: Settings>Editor>UI Tools>Editor View Mode: Resource: Code
Screenshot: Android Studio XML as code setting
Windows 10 and recent Android Studio version: Android Studio Ladybug Feature Drop | 2024.2.2
it seems to be a bug because I was also looking for a solution and I saw that on other sites there are people who have had this problem just recently. I don't usually use stackoverflow, so forgive me for the not very detailed answer (maybe someone can add some more details). The solution that a user on reddit seems to have used, is to do the configuration only on the platforms that interest you. In my case only ios and android.
flutterfire configure --platforms=android,ios
I hope I helped you!
I got the same error I am able to fix it the issue was in the website folder I created the file init.py file incorrectly
first i created like these init.py and when I tried to run main.py I am getting error
ImportError: cannot import name 'create_app' from 'website' (unknown location)
second I renamed the file with two underscores init.py and when I tried to rerun the main.py my issue was solved PS C:\Users\dgr_g\daily-task\flask-web-aaplication> & C:/Users/dgr_g/AppData/Local/Programs/Python/Python313/python.exe c:/Users/dgr_g/daily-task/flask-web-aaplication/main.py
It's pip
issue, updating it should help https://github.com/pygobject/pycairo/issues/384
Facing the similar issue. Did you got the solution for this issue ?
# Subject: Internal script counter with FILE.TXT.
# Example: time of file download, and so on.
now=$(date +'%s')sec;
echo ""
echo ""
# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.
# Timmer command, Input: 5 seconds.
sleep 5s
InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")
echo "$InfTimExe" >> Date.txt
unset -v InfTimExe
# Output: 5 seconds.
echo "[INF] Internal run time of the script:"
echo ""
cat Date.txt
rm Date.txt
echo ""
echo ""
exit
I believe it's simpler. When you create your Firestore database, you probably assign it a name. Try recreating it without specifying a nameâFirestore will automatically create one with the (default) name. That should work. Give it a try!
I changed bcrypt
package to bcryptjs
and it worked đ.
I substantively use the AnthonyC solution by means of a small function that prunes the stratified terms from the model:
library(survival)
library(survminer)
colon <- within(colon, {
sex <- factor(sex, labels = c("female", "male"))
differ <- factor(differ, labels = c("well", "moderate", "poor"))
extent <- factor(extent, labels = c("submuc.", "muscle", "serosa", "contig."))})
stratamodel <- coxph(Surv(time, status) ~ sex + strata(rx) + adhere +
differ + extent + node4,
data = colon )
prun<-function(model) {
if (any(grepl("strata", names(attr(model$terms, "dataClasses"))))) {attr(model$terms, "dataClasses")<-attr(model$terms, "dataClasses")[-which(grepl("strata", names(attr(model$terms, "dataClasses"))))]}
model
}
windows(8,8);ggforest(prun(stratamodel), data=colon, main="Stratified model")
What you can do is:
C:\Users\<your_user>\AppData\Local\Android\Sdk\ndk
<project_directory>\android\local.properties
file by changingndk.dir
value to the version you get in step 1. If ndk.dir
is absent, add ndk.dir=<your_version>
to the file.flutter.ndkVersion
to the same version in <flutter_dir>\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy
file.Java is a Stable Language for many years.
I will answer all the other question as it will come as an comments.
Hide your wp-login then add
rewrite /wp-login.php $scheme://$remote_addr/wp-login.php permanent; in your nginx conf file
I have used angular v18, and I have moved files from the dist > browser folder to the main dist folder and it has resolved the error related to the 404 mainfest file.
this might be a bit comprehensive:
y::z
z::y
!a::Send("{U+00E4}") ; Alt + a â Ă€
!+A::Send("{U+00C4}") ; Alt + Shift + A â Ă
!o::Send("{U+00F6}") ; Alt + o â ö
!+O::Send("{U+00D6}") ; Alt + Shift + O â Ă
!u::Send("{U+00FC}") ; Alt + u â ĂŒ
!+U::Send("{U+00DC}") ; Alt + Shift + U â Ă
!s::Send("{U+00DF}") ; Alt + s â Ă
!e::Send("{U+20AC}") ; Alt + e â âŹ
!=::Send("{U+2260}") ; â
!.::Send("{U+2192}") ; â
+::Send("{U+005D}") ; ]
*::Send("{U+007D}") ; }
+2::Send("{U+0040}") ; @
+3::Send("{U+0023}") ; #
+6::Send("{U+005E}") ; ^
+7::Send("{U+0026}") ; &
+8::Send("{U+002A}") ; *
+9::Send("{U+0028}") ; (
+0::Send("{U+0029}") ; )
Ă::Send("{U+002D}") ; -
+Ă::Send("{U+005F}") ; _
ÂŽ::Send("{U+003D}") ; =
+ÂŽ::Send("{U+002B}") ; +
ö::Send("{U+003B}") ; ;
+ö::Send("{U+003A}") ; :
Ă€::Send("{U+0027}") ; '
+Ă€::Send("{U+0022}") ; "
ĂŒ::Send("{U+005B}") ; [
+ĂŒ::Send("{U+007B}") ; {
^::Send("{U+0060}") ; `
+°::Send("{U+007E}") ; ~
#::Send("{U+005C}") ; \
+'::Send("{U+007C}") ; |
-::Send("{U+002F}") ; /
+-::Send("{U+003F}") ; ?
bottomNavigationBar: Container(
padding: EdgeInsets.symmetric(
horizontal: 10, vertical: 30), // Reduce padding
decoration: BoxDecoration(),
child: ConvexAppBar(
backgroundColor: Colors.white,
cornerRadius: 5,
color: AppColors.black,
activeColor: AppColors.primary2,
style: TabStyle.fixedCircle,
shadowColor: Colors.grey.shade400,
items: [
TabItem(title: 'Home', icon: Icons.list),
TabItem(title: 'Home', icon: Icons.list),
TabItem(
icon: Container(
padding: EdgeInsets.all(5),
decoration: BoxDecoration(
color: AppColors.primary2,
shape: BoxShape.circle,
),
child:
SvgPicture.asset('assets/icons/home_center_flower.svg'),
),
),
TabItem(title: 'Home', icon: Icons.list),
TabItem(title: 'Home', icon: Icons.list),
],
initialActiveIndex: 1,
onTap: (int i) => print('click index=$i'),
),
)
use convex_bottom_bar: ^3.2.0 from pub.dev https://pub.dev/packages/convex_bottom_bar
I was able to reproduced the jiggle both in Debian 12.x and CentOS 9 running your demo program with Java 23.0.2. In Debian the jiggle always happens. In CentOS the jiggle happens once or twice in a row, then a couple of times everything works ok, but then the jiggle comes back, and so on. I changed the visual effects setting and nothing changed. I removed the alert.initOwner() and nothing changed. Have you found a solution to this problem?
I found that I was connecting to the wrong database. My Prisma CLI was connecting find and pulling environment variables from my .env
file, however my Next.Js app was pulling database connection parameters from my .env.local
file. I needed to double check exactly which database I was connecting to.
Old thread, but in case anyone stumbles across this...
Diagnostics should only be use in Analyzers (not Generators).
Reason: With a Generator, you need to cache Diagnostic info during parsing as part of an ImmutableArray. This needs to get passed to your RegisterSourceOutput handler (SourceProductionContext is required to report the Diagnostic).
The reason you should NOT do this is because that diagnostic info invariably relies on Symbol locations, which are highly variant. Thus, you are constantly breaking the cache-flow that relies on immutable data to remain relatively stable.
The means means your Generator will be really slow.
As a side note, I got this exact same error because I crossed the threshold of 6000 characters available for all embeds and fields for a single message. I wasn't aware of that limit, so didn't look for it, but instead paid attention to the limits per embed and field. Very confusing error to return for my specific problem.
I'm facing the same problem, I need to update relations but the integer "id" field is required for this and I didn't get it from anywhere , in my case I have "users" collection that have a many-to-one relationship with "position" collection my update graphql looks like this:
mutation AssignUserToPosition($id: ID!,
$data:UsersPermissionsUserInput!) {
updateUsersPermissionsUser(id: $id, data: $data) {
data {
documentId
}
}}
when I pass this for variables:
{
id: "asdfghjkdsjkgjdvgskl",
data: { position: "laskfjfpgiewjgwp" }
}
I found it like this in strapi v5 documentation this article
So please it's Urgent If anyone knows a solution or can give us a hint of how to preceed with this.
Thank you
MongoDB does not natively support the relational model and its typical relationships like JOINs, which are commonly used in SQL-based databases and handled by ORMs (Object-Relational Mappers). MongoDB is a NoSQL database, and it uses a document-oriented model instead, where data is stored in JSON-like documents.
In MongoDB, relationships are typically managed in a different way, like by embedding documents or using manual references between them, but it doesn't have the automatic relationship management features that ORMs provide for relational databases.
getMonth()
method returns the month as a zero-based index. Hence it is 0 for 12 as a month.
Because the architects of Unix decided that file I/O was best done with per-process arrays inside the kernel, exposing the integer indices as part of the ABI. And that C, Unix's main language, uses zero-based indices for arrays. And that standard I/O, redirect-able and pipeline-able, was best accomplished with three file descriptors, the first three, and assigning them (arbitrarily) in order as input, output, and error. And naming them thus, and providing predefined constants thereof, and utility programs (like the shell) that set all new executing processes up that way...
A Unix process doesn't have to use the standard I/O, it's free to move things around and use them any which way, but that's what every one that's created with the standard tools for doing so will wake up with, and that almost every program that already exists expects to find when it wakes up.
TL/DR? Because that's how Unix works.
I know this is an old question, but I found this today - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/dd4dc725-021b-4c8c-a44a-49b3235836b7
No actual object has objectGUID equal to the NULL GUID. The root object has parent equal to the NULL GUID.
Use gg_season() instead of ggseason().
Explanation:
As can be observed from the book question, it says autoplot(), gg_season(), gg_subseries(), gg_lag(),ACF() |> autoplot().
Whereas your question shows the use of ggseason() which can handle ts objects easily but aus_retail is not a ts object , it is tsibble which requires gg_season()
Found this which looks good (quite new, still in development) https://github.com/fontanf/packingsolver
Virtual threads offer the exact same thing as coroutines. It is just in a different format. And Structured concurrency is on the way for them as well. The Virtual Threads solve the color problem, meaning that any function in Java can be either Async or Sync depending on the Thread, and no code needs to be changed. However for a coroutine, you need to have the suspend keyword on the function. This divides the whole Kotlin ecosystem into two colors - suspend and non suspend. No such thing happens with Virtual Threads.
Many people say they did it due to backward compatibility. Actually, they did it as this is the superior approach and due to backward compatibility.
Is there a specific reason why you are loading configs using an async function?
You might want to consider using environment variables with the resolve keyword, which allows you to inject secrets at runtime without fetching them manually in your application code.
AWS Secrets Manager supports referencing secrets directly in environment variables. You can define them in your serverless.yml
like this:
provider:
stage: ${opt:stage, "your-stage"}
environment:
DB_NAME: '{{resolve:secretsmanager:youraccount-${self:provider.stage}:SecretString:dbName}}'
DB_PASS: '{{resolve:secretsmanager:youraccount-${self:provider.stage}:SecretString:dbPass}}'
If you are not using multiple stages, you can simplify this further by removing the stage reference from the secret path.
With this approach, your NestJS app can simply access these values through process.env
without any additional async calls, something like this:
const DB_NAME = process.env.DB_NAME
const DB_PASS = process.env.DB_PASS
Hadry mene lmoi mn chmnl dvvhgi mbl mn bi or rhnbo fvgju mn kanha shrama yuvajshrama Bhvavn shrama shrama Gajananan sharma mblof 5000
E/error: com.android.volley.NoConnectionError: java.net.ConnectException: failed to connect to /127.0.0.1 (port 4567) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused) This is the server part:
Spark.post("/up", new Route() { public Object handle(Request req, Response res) { System.out.println(req.queryParams()); return "its something"; } });
If anyone counter this issue again, the reason for me was the view option was set to false on the fortify config:
// config/fortify.php
<?php
use Laravel\Fortify\Features;
return [
//...
'views' => true,
//...
];
This question is old, but I wanted to share something, for anyone who is still learning jQuery and can't get this to work:
You might wanna check which quotes you used...Single quotes must be around the data, so the concatenated parts must be in double quotes.
You can simulate EOF with CTRL+D (for *nix) or CTRL+Z (for Windows) from command line. In widows, when you are ready to complete the inputïŒ 1.press the Enter key 2.then press Ctrl+Z 3.then Enter to complete the input.
In Laravel 11, u should register the provider via bootstrap/providers.php :
<?php
return [
App\Providers\AppServiceProvider::class,
App\Providers\FortifyServiceProvider::class,
];
The answer given by @A.Mohammed_Eshaan has been deleted. It was, however, the corect answer: Place static content in a folder named public
at the root level of the project and use the root url to access it. e.g. if you have a file named hello_world.txt
in the /public
folder omit the public
folder name and access as follows async fecth('/hello_world.txt')
.
This is sample module activity plugin that shows an button only that alert('Hello World')
Confirmed that nowPlayingInfo needs to contain:
nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = MPNowPlayingInfoMediaType.audio.rawValue
With the introduction of the QUERY_ALL_PACKAGES
permission, figuring out the native library path of other apps seems to have become disabled by default, as the information is actively being filtered, see https://developer.android.com/training/package-visibility
When an app targets Android 11 (API level 30) or higher and queries for information about the other apps that are installed on a device, the system filters this information by default.
However, any app with the QUERY_ALL_PACKAGES
permission can indeed use getPackageManager().getInstalledPackages()
for example, to query all apps and can then use the method mentioned above, getApplicationInfo().nativeLibraryDir
, to figure out the path.
ailwind CSS follows a mobileâfirst approach. This means that the unprefixed classes (like flex-row) apply to all screen sizes by default, and breakpointâprefixed classes (like md:flex-col) only take effect when the viewport is at least the specified minimum width (768px for md). In your code, flex-row is always active on screens smaller than 768px, and only when the viewport is 768px or larger does md:flex-col override it.
If your intention is to have a column layout on smaller screens and switch to a row layout on larger ones, reverse the order of your classes like so:
...This way, by default (on mobile) you get flex-col and then md:flex-row kicks in on larger screens.
Also, ensure your Tailwind configuration hasnât been modified from the default breakpoints if you expect the standard behavior.
My question is, how do I update PDO to use the latest sqlite3 version?
You have to update the PDO extension, and specifically the sqlite3 driver extension of PDO with the updated libraries.
PDO is part of core, you can find the source code here: https://github.com/php/php-src/?tab=readme-ov-file#building-php-source-code
SQLite3 is already mentioned in the prerequisites before make.
It seems that there is no issue with the links, they work perfectly fine. I tested this on multiple different browsers, including Firefox on other machines, everything works perfectly fine.
Despite what other answers/comments claim, this works fine in Firefox and Chrome. You don't need to change settings or use an absolute path.
My issue seems to have been some settings or plugins in my browser that I have changed. Haven't figure out what those are yet, but the image links work normally.
You can fetch football leagues by date using the API's specific endpoint with a date parameter. Check the documentation for the correct query format and required permissions. If you enjoy football-related content, you might also like FC Mobile Simulation Game. Hope this helps
O problema que vocĂȘ estĂĄ enfrentando parece estar relacionado Ă forma como vocĂȘ estĂĄ tentando extrair uma ArrayList<String>
de um HashMap<String, Object>
. A dificuldade pode estar na maneira como o conteĂșdo do HashMap
estĂĄ sendo interpretado ou convertido.
Aqui estĂŁo algumas possĂveis razĂ”es e soluçÔes:
Tipo de Dados no HashMap:
HashMap
estĂĄ declarado como HashMap<String, Object>
, o que significa que o valor associado a qualquer chave Ă© do tipo Object
. Quando vocĂȘ tenta extrair uma ArrayList<String>
, o Java pode nĂŁo estar conseguindo fazer o cast automaticamente para ArrayList<String>
porque o valor Ă© tratado como um Object
.ArrayList<String>
ao extrair o valor. Por exemplo:
ArrayList<String> test = (ArrayList<String>) mappings.get("role");
Verificação de Nulo:
NullPointerException
.if (mappings.get("role") != null) {
ArrayList<String> test = (ArrayList<String>) mappings.get("role");
}
Tipo Real do Objeto:
ArrayList<String>
, mas sim outro tipo de lista ou coleção. Isso causaria uma ClassCastException
.Object role = mappings.get("role");
if (role instanceof ArrayList) {
ArrayList<?> test = (ArrayList<?>) role;
// Se vocĂȘ precisar garantir que Ă© uma lista de Strings, pode fazer um cast adicional ou verificar o tipo dos elementos.
}
Problemas com o DRL (Drools Rule Language):
ArrayList
e HashMap
..drl
para garantir que todos os tipos de dados estĂŁo corretamente referenciados.Exemplo Completo:
ArrayList<String>
:
if (mappings != null && mappings.containsKey("role")) {
Object role = mappings.get("role");
if (role instanceof ArrayList) {
ArrayList<?> tempList = (ArrayList<?>) role;
if (!tempList.isEmpty() && tempList.get(0) instanceof String) {
ArrayList<String> test = (ArrayList<String>) tempList;
// Agora vocĂȘ pode usar `test` como uma ArrayList<String>
}
}
}
Resumindo, o problema provavelmente estå relacionado ao cast de tipos ou à verificação de tipos. Certifique-se de que o valor no HashMap
Ă© realmente uma ArrayList<String>
e faça o cast e as verificaçÔes necessårias para evitar erros.
I used this information, but I made a small change when I needed to use notNull.
The notNull method didn't work in this case:
price:
decimal("price", {
precision: 10,
scale: 2,
}).notNull() as unknown as PgDoublePrecisionBuilderInitial<"price">
So I changed it to:
price: (
decimal("price", {
precision: 10,
scale: 2,
}) as unknown as PgDoublePrecisionBuilderInitial<"price">
).notNull()
Hello dear i think you are opening the app in local please open your app as a development mode then the this error will be solved
npx expo install expo-dev-client
eas build --profile development --platform android
delete the ios folder, maybe copy any special config you did there first. then recreate the folder through flutter create -i swift -i
def sort_decimals(numbers: List[float]) -> List[float]: return sorted(numbers) print(sort_decimals(['104.900209904', '238.501860857', '9.59893298149', '362.470027924', '419.737339973']))
For people who reads this stackoverflow question:
There is now a new release of string-grouper: 0.7 which fixes several deprecations warnings and is less prone to Cython build error like the one above as it uses a recent version of sparse_dot_topn package and not the specific dependency sparse_dot_topn_for_blocks.
So:
pip install --upgrade string_grouper
NB: I'm a contributor of this release.
This is not necessarily an answer to your problem, it is just a mention that I have a very similar situation, I am using Python 3.12.9, and I have tried even Python 3.13.2, but quite the same problems I had. I am wondering if the possible installation in a SnadBox would be a possible solution to this problem.
The OP also does not mention the DPDK release/version in use. The driver in question was patched not so long ago, precisely with regard to the queue stop functionality. So it is worthwhile rebuilding DPDK v24.11
from source to check whether the issue is still there. And, of course, debug printouts will make it easier to rule out any other discrepancies, should such be present.
I want to clarify that I am not an expert in node.js and much less in electron, I am making this application for personal use and as I learn about the use of javascript focused on the backend with node.js, it is possible that I am not applying community conventions or best practices.
I have managed to get the solution in the following way:
whenReady
.IpcController
passing as argument windowManager
.mainWindow
, for rendering.IpcController
the mainWindow
resulting from the window creation..await app.whenReady();
this.ipcController = new IpcController(
this.windowManager,
this.backendController,
this.appConfig
);
this.mainWindow = await this.windowManager.createMainWindow();
this.ipcController.setMainWindow(this.mainWindow);
The new method in ipcController
is:
setMainWindow(window) {
this.windowManager.mainWindow = window;
}
With this order and logic, both the content handlers and those associated with interactions of the created window work correctly.
I think the answer I found only works for event control of rendered content so it is not a general solution.
Here's how I ended up getting this to work...
int? switchValue = 0; // initial segmented control value
...
onValueChanged: (int? newValue) {
setState(() { switchValue = newValue; }); }
...
// inside ListView.builder...
itemCount: snapshot.data!.length,
builder: (context, index) {
if (switchValue == 0) { // 0 = "show Active only"
switch (snapshot.data![index]['archived']) {
case false:
return ListTile(... // build full listTile
default:
return SizedBox.shrink(); // zero-size/empty
} else { // switchValue is 1, so "show all"
return ListTile(...
}
Seemed like the simplest solution. Thanks to the answers above, though - I learned all about the .where
functionality, and about SizedBox.shrink()
, which I'd never seen before.
Now if I can just figure out a way to smoothly animate the transition between Active only / Show all (instead of the abrupt change), I'll be rolling.
I want to thank you for your link
You need to use different names for Traefik routers
, middlewares
and services
- otherwise you are overwriting existing ones across Docker services.
There is a package called tsc-alias include it along side scripts in package.json npx tsc && tsc-alias this would resolve the paths so that we can run it with node. I believe this is much easier and cleaner
"scripts": {
"build": "npx tsc && tsc-alias"
}
use this tool made using rust gui based tool having good features
https://github.com/Divyamsirswal/asm2hex
.asm -> .bin -> .hex
I found this blog, and it have a solution,
Adding request headers to image requests using a service worker
good day bosses, i have tried all that was written above but did not work so what solved it for me was the scrollControlDisabledMaxHeightRatio parameter of the showModalBottomSheet function. its set to 9/16 by default, I then change it to 8/10, like this:
showModalBottomSheet(
scrollControlDisabledMaxHeightRatio: 8 / 10,
enableDrag: false,
context: context,
builder: (context) => SingleChildScrollView(
child: Padding(
padding: EdgeInsets.only(
bottom:MediaQuery.of(context).viewInsets.bottom),
child: YourWidget(),
)),
);
Thanks everybody! I finally decided to merge the Director and the Identity User and go with the Roles instead of making another class for an entity which is ultimately an Application User. I know this solution is sort of not the exact thing I wanted at the very first place, but it makes everything simple and clean.
That standard arrangement looks like this, extended as neccessary to cover your grid size.
Will elaborate calculation give you anything significantly better?
I'm glad I could help you. Sorry if I'm replying after a day. I'll reply with another answer here because it's too long in the comments.
So printf \0 is used to tell bash that the command is finished, a bit like saying ; in programming languages, to mean that the instruction is finished. This happens if you're in bash, while in the MariaDB terminal it returns lines with \n.
While for $NAMELIST it's a Bash problem, not a dialog problem.
For this you need to use options[@], because it allows you to pass each separate element since it's an array.
If you pass it as a string, Bash interprets it as a single value, even if there are spaces.
To give you a practical example to help you understand the concept, I once came across a database with phone numbers.
The problem was that some numbers started with 0, and the computer if you assigned that number as an integer, the 0 cut it, and consequently the number was very wrong.
Example:
Int number = 055333333 â> 55333333
String number = 055333333 â> 055333333
In this case I had to use a string to solve the problem, rightly the 0 in front of a number without a comma, it's as if it wasn't there.
This is an example in reverse, but it's to make you understand how sometimes you have to interpret things differently on the PC.
Sorry for my English. If you have other questions don't hesitate to ask, for now bye bye and good continuation with the script
It seems Android Studio build's log doesn't show the specific errors. By checking the xcode I can see a build issue:
Which the issue is with room
's config for IOS. By adding the following line in framework
block inside cocoapods
block, the build is successfull:
kotlin {
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
version = "1.0"
ios.deploymentTarget = "16.2"
podfile = project.file("../iosApp/Podfile")
framework {
baseName = "ComposeApp"
isStatic = false
transitiveExport = false // This is default.
linkerOpts.add("-lsqlite3") // I had to add this line
}
}
}