Telegram does not provide an official API for bot analytics. However, you can use third-party services like https://tgbotstats.com, which allows you to track user activity, subscriber count, messages, and other metrics.
I finally found the solution, it was a simple mistake on my part. For Android, it's not enough to just grant location permission to the app; the device's location services must be continuously enabled. As for iOS, you need to add the "Access WiFi Information" capability to your Xcode project under the "Signing & Capabilities" section.
You could replace the for loop by this What this does is it just breaks the inner for loop for the invalid input and not the entire for loop. The while loop only runs for a single element of the list.
This type of problem could have been more easily solved if it were c++ as we could just decrement x by one in else block. Hope this helps!
for x in range(0,len(students)): while True: register=input(f"Is {students[x]} present? ") if register == "yes": present += 1 break elif register == "no": absent += 1 break else: print("invalid input")
I handle gamebutton presses in my bar.
https://developer.android.com/about/versions/15/behavior-changes-15#ux The easiest and temporary workaround is to target Android 14.
To resolve this you should add the line:
<PropertyGroup> ... <DbScopedConfigDWCompatibilityLevel>50</DbScopedConfigDWCompatibilityLevel>
in the .sqlproj file
NttCAD is a free and easy-to-use 2D/3D CAD software. This software is written in Java SE and therefore is multi-platform: it works on all operating systems (Microsoft Windows, Mac, Linux...).
It was because of the sign_out link was using get instead of delete
devise_for :users, controllers: { sessions: 'users/sessions' }, sign_out_via: [:delete, :get]
Will fix the isue.
why can't you use while loop to test validate input or not.
students = ["Julio","Jayden","Josh","John","Jamal"]
present = 0
absent = 0
for x in students:
register=input(f"Is {x} present? ")
while register not in ("yes", "no"):
register = input(f"Is {x} present? ")
if register == "yes":
present += 1
elif register == "no":
absent += 1
print(f"{present} people are present")
print(f"{absent} people are absent")
I think the problem related to browser , the browser shows pop-up said (" change your password") or like this at all , try to click on the pop-up ok button using Cypress code and it will works .
Had the same problem, after a clean install with "I2C on" the ic2detection showed my sensor, then a python virtual environment setup and a reboot later, I go this error.
Turns out the raspi-config had "I2C off" in it and after sudo raspi-config and switching it on again, everything worked.
A simple idea would be to have a second vertical table limited to one record, which displays all the fields you want to show. The main drawback is it won't disappear when no record is selected (it will display the top one). For what it's worth, I searched briefly for other options, but only found the same suggestion.
If anyone is trying to use @Rotem's answer for h.265 security camera LAN video and needs low latency, this might help (although it might be better to use Qt6, because apparently ffmpeg has already been incorporated into the multimedia backend):
import cv2
import numpy as np
import subprocess
import json
# Use local RTSP Stream for testing
in_stream = 'rtsp://user:[email protected]:554/live/0/main' + '.h265'
# "ffplay -loglevel error -hide_banner -af \"volume=0.0\" -flags low_delay -vf setpts=0 -tune zerolatency
# -probesize 32 -rtsp_transport tcp rtsp://user:[email protected]:554/live/0/main -left 0 -top 50 -x 400 -y 225"
probe_command = ['ffprobe.exe',
'-loglevel', 'error', # Log level
'-rtsp_transport', 'tcp', # Force TCP (for testing)]
'-select_streams', 'v:0', # Select only video stream 0.
'-show_entries', 'stream=width,height', # Select only width and height entries
'-of', 'json', # Get output in JSON format
in_stream]
# Read video width, height using FFprobe:
p0 = subprocess.Popen(probe_command, stdout=subprocess.PIPE)
probe_str = p0.communicate()[0] # Reading content of p0.stdout (output of FFprobe) as string
p0.wait()
probe_dct = json.loads(probe_str) # Convert string from JSON format to dictonary.
# Get width and height from the dictonary
width = probe_dct['streams'][0]['width']
height = probe_dct['streams'][0]['height']
# if False:
# # Read video width, height and framerate using OpenCV (use it if you don't know the size of the video frames).
# # Use public RTSP Streaming for testing:
# cap = cv2.VideoCapture(in_stream)
# framerate = cap.get(5) #frame rate
# # Get resolution of input video
# width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
# height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
# # Release VideoCapture - it was used just for getting video resolution
# cap.release()
# else:
# # Set the size here, if video frame size is known
# width = 240
# height = 160
command = ['ffmpeg.exe', # Using absolute path for example (in Linux replacing 'C:/ffmpeg/bin/ffmpeg.exe' with 'ffmpeg' supposes to work).
'-hide_banner', # Hide banner
'-rtsp_transport', 'tcp', # Force TCP (for testing)
'-flags', 'low_delay', # Low delay is needed for real-time video streaming.
'-analyzeduration', '0', # No analysis is needed for real-time video streaming.
#'-fflags', 'nobuffer', # No buffer is needed for real-time video streaming.
#'-max_delay', '30000000', # 30 seconds (sometimes needed because the stream is from the web).
'-i', in_stream, # '-i', 'input.h265',
'-f', 'rawvideo', # Video format is raw video
'-pix_fmt', 'bgr24', # bgr24 pixel format matches OpenCV default pixels format.
'-an', 'pipe:'
] # Drop frames if the consuming process is too slow.
# Open sub-process that gets in_stream as input and uses stdout as an output PIPE.
ffmpeg_process = subprocess.Popen(command, stdout=subprocess.PIPE)
while True:
# Read width*height*3 bytes from stdout (1 frame)
raw_frame = ffmpeg_process.stdout.read(width*height*3)
if len(raw_frame) != (width*height*3):
print('Error reading frame!!!') # Break the loop in case of an error (too few bytes were read).
break
# Convert the bytes read into a NumPy array, and reshape it to video frame dimensions
frame = np.frombuffer(raw_frame, np.uint8).reshape((height, width, 3))
# Show the video frame
cv2.imshow('image', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
ffmpeg_process.stdout.close() # Closing stdout terminates FFmpeg sub-process.
ffmpeg_process.wait() # Wait for FFmpeg sub-process to finish
cv2.destroyAllWindows()
Always changing...Now it's this:
MobileAds.shared.start(completionHandler: nil)
npm install next@canary --legacy-peer-deps
npm i --force
Use this command for installing canary version of next js , as it will update all the version of your previously used dependency
NOTE : This is not recommended for production !
I jave just found prop-types are no longer validated in React 19.
For other late arrivals like me: you can just do [YourCollection].rawCollection().findOneAndUpdate
in this case to access the Mongo Node.js driver's native methods.
Thank you miltone. You're right it's a behaviour I have with Firefox.
I did redirect to route and it works fine (even without the 303 HTTP code).
Now I understand what's happening. Thank you very much.
You can add a Parameter to your REST Source named "filter" at the module level. Make sure it is of the "URL Query String" type, and also make sure that the Use for Row Search switch is enabled.
If a parameter has that switch enabled (and only one parameter in a REST Source can have that enabled), then all APEX components with a "search" functionality will use that parameter for their search.
You can use OpenApi Generator plugins to generate classes based on an OpenApi spec. Then use these generated classes as parameters for your endpoints.
just use variables without {{}}
in an assignment
var_a := "hello"
var_b := "world"
var_v1 := var_a+"-"+var_b
var_v2 := 'export exp_a='+var_a+'; echo "${exp_a}-'+var_b+'"'
var_v3 := var_a + var_b
@default:
echo var_a: {{var_a}}
echo var_b: {{var_b}}
echo var_v1: {{var_v1}}
echo var_v3: {{var_v3}}
#echo var_v2: {{var_v2}} #what are you trying to do?
As of Python 3.9, string.removeprefix
and string.removesuffix
are available.
The following code produces '(word)'
.
'((word))'.removeprefix('(').removesuffix(')')
It is unclear whether the OP wants a solution that strips exactly-one or all-but-one parens. This solution accomplishes the former, which is a reasonable interpretation based on their ultimate question.
Is there a way to specify that I only want the first and last one removed?
I just want to point out that using a non-escaped "++" in a regex pattern should no longer raise a "multiple error" in version 3.11, as it now has a specific meaning:
x*+, x++, and x?+ are equivalent to (?>x*), (?>x+), and (?>x?) respectively.
see re documentation
The crash in iOS 12 is solved by setting the Optimization Level from "Optimize for Speed" to "No Optimizaiton"
This doesn't work because this package smart_auth
is simply not iOS compatible.
Only the Android platform is indicated on the doc: https://pub.dev/packages/smart_auth
wrote the code again, attached another csv file. The problem with this part of the code is solved, moving on Thanks
Adding to the points made earlier, static_assert is very useful to catch certain error or problems early by doing a compile time check itself. IT makes the code robust and avoids run time issues.
Mostly it is used to ensure the types meet certain criteria or validating any constant expression.
Here I want to point out one more example to show static_assert use with template:
template <typename T>
int someFunction(T obj)
{
static_assert(sizeof(T) == 8, “Only 64 bits parameter supported”);
}
Or
template <typename T>
int otherFunction(T obj)
{
static_assert(std::is_integral<T>::obj, “Only integral types “are supported”);
}
facing same issue! did you find solution for this?
You cannot disable the reload button or the back button in a browser because refreshing a page is equivalent to navigating away and unloading the DOM. As a result, the onbeforeunload event will always be triggered. However, you can prevent the buttons from being used. This requires some effort, and it might not be possible to cover every scenario, but you can give it a try.
See: https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
The main use case for this event is to trigger a browser-generated confirmation dialog that asks users to confirm if they really want to leave the page when they try to close or reload it, or navigate somewhere else. This is intended to help prevent loss of unsaved data.
in .net core 6 and above:
GetType().Assembly.GetName().Version.ToString();
or
Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyFileVersionAttribute>().Version
reference to: https://edi.wang/post/2018/9/27/get-app-version-net-core
Modify the configuration in next.config.js or mjs below.
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'res.cloudinary.com',
pathname: '**',
},
],
},
A few things.
If you want TLS access to Artifactory, the best option is to set up a Nginx server in front of Artifactory (even on the same machine) and have the ssl termination handled by it. Artifactory can generate a nginx config snippet to make this set up very easy. See here: https://jfrog.com/help/r/jfrog-artifactory-documentation/reverse-proxy-settings
Turning on TLS is only if you must have internal TLS communication and is generally not needed.
I want to clarify. You currently have access on 8082 over http? or https? If it is http, then I suspect the access.config.import did not work to enable TLS.
i don't know if this answer will be relevent to you but, i faced the same problem in my code too, hope this might help someone because i was not able to find anything regarding this. my problem was that i was creating the connection in a different directory and trying to get the data from another directory where my main query was written . both this directory had their own mongoose node modules . so due to conflict it was causing this error. so i would recommend to keep all the mongoose related data like connection , queries, models etc in one place that way you wont have to worry about this complications.
The answer was defineSlots
Thanks for all the suggestions. This seems to work well once the attributes are associated: LIST MBR.FILE BY.EXP MBR_NM MBR_UMID MBR_NM MBR_BTH MBR_AGE MBR_SEX MBR_PHONE MBR_GK_BD MBR_GK_ED MCARE_ID PROD_LOB GK_ADJ_CD RPT_PE WHEN ASSOCIATED (GK_CTRCT = "000226827 PCP313" AND GK_ADJ_CD = "" AND PROD_LOB = "MER" AND RPT_PE = "02/01/2025") ID.SUPP BREAK.ON GK_NM HEADER "'LC' Medicare-Risk Roster for 'B' 'LC' PE Date: 02/01/2025"
"With" doesn't seem to work with "Associated" no matter where it's placed in the query. I'm not certain why the 'B' option in the Heading fails to return the Break.On value.
As a last resort, reboot your computer.
No, this feature was enabled in PostgreSQL 17
I have fixed it now... all I needed to do was to reinstall godot-cpp.
I think AccessMode for id field what you were asking
@Schema(accessMode = Schema.AccessMode.READ_ONLY)
You need to allow the needed tags in a custom RTE preset.
Here is how to implement a custom preset:
https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Examples.html#how-do-i-create-my-own-preset
And here you can see how to allow the needed html tags in the RTE:
https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Examples.html#how-do-i-allow-a-specific-tag
Now, your point about Autoboot and encryption is spot-on. Many embedded devices prioritize convenience and cost over security. Autoboot means the device needs to load the kernel and root filesystem without user interaction—no password prompt, no decryption step. For that to work, the storage typically can’t be fully encrypted, because the bootloader would need a way to access a decryption key automatically. If there’s no secure hardware module (like a TPM or HSM) to store that key—and many cheap embedded systems don’t have one—the key would have to be plaintext somewhere on the device, defeating the purpose. So, yeah, in a lot of cases, the NAND or eMMC is left unencrypted to keep things simple and fast.
That said, some devices could use encryption and still autoboot, but it requires more sophistication. For example, a secure boot chain with a trusted execution environment (TEE) could store keys and decrypt the filesystem transparently. Or the bootloader could pull a key from a fused hardware register (like eFuses or OTP memory) that’s inaccessible after manufacturing. High-end embedded systems—like some automotive ECUs or IoT devices from bigger vendors—might do this. But the average off-the-shelf board or hobbyist-grade hardware? Probably not. It’s too expensive or complex for the use case.
So, what stops an attacker from desoldering and reading the storage? Practically speaking, not much beyond physical effort and know-how. The real barriers are:
If the device isn’t encrypted—and with Autoboot enabled, it probably isn’t—then desoldering gives the attacker everything. The “UART and JTAG disabled = secure” claim is more about reducing low-hanging fruit for casual attackers, not stopping a determined one with physical access. For real security, you’d need encrypted storage, secure boot, and ideally some anti-tamper measures—all of which add cost and complexity most vendors skip unless they’re forced to care.
I think easiest think is to use style attribute.
const [variantColor, setVariantColor] = useState<string | undefined>(""); const colorOptions=["#00FFFF","#FAEBD7","#DC143C"]
{colorOptions?.map((color) => {
return (
<div key={index}
style={{
borderStyle: "solid",
borderColor:
variantColor === color ? ${color}
: ${color}50
,
}}
>
<div
onClick={() => setVariantColor(color)}
style={{
backgroundColor:
variantColor === color ? ${color}
: ${color}50
,
}}
/>
);
})
);
})}
Everyone
Option to choose table is good and it work absolutely correct but didn't work correctly when my table header height is too large it just stop printing header from the next page.
I read about this and found the the height of the header to work correctly is about 234 px and above that it will not get printed from the next page this is default behaviour of the browser bit how do I surpass thia I don't want to put and height contrain on my header height
Thank in advance for the solution
As suggested by @Mike M's comment, I had to just add
<size android:width="100dp" android:height="100dp" />
to the drawable to get it working.
Hot off the presses! I realize this question was asked 9 years ago, and finally in January of 2025 searching by metadata is available!
For your Neovim settings.lua: vim.g.netrw_bufsettings = 'noma nomod nu nowrap ro nobl'
If it is searchable pdf file I would suggest using Camelot. If it is not searchable or a scan, I would use Tesseract OCR to extract text from the table. Let me know if it helps or if you need more info regarding either Tesseract or Camelot.
Since I have the same problem I wonder you were able to fix the problem, and if so how :-)
I tried the recommendations, and it's even worse. I had to rewrite the whole thing enter image description here
I found this benchmark on github: https://github.com/porsager/postgres-benchmarks?tab=readme-ov-file
It shows that postgres-js is the fastest postgres driver, but take it with a grain of salt, because its 4 years old.
Follow This: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/studio-versions and go back a version.
@LoicTheAztec Sorry, but my client was on a trip and I couldn't test the comments. Can you please send the comment that was deleted?
I did some research and found that the issue was likely due to version conflicts. To resolve it, I uninstalled Angular and reinstalled it globally. Now, everything is working fine.
The issue back again in Spring Boot v3.3.8, Spring v6.1.16, Hibernate ORM core version 6.5.3.Final As a workaround explicitly set a lengh for text column
@Column(name = "name", nullable = false, columnDefinition = "text", length = 2147483647)
private String name;
order_by := case when direction = 'up' then 'asc' else 'desc' end;
Not really a solid solution, but currently just prompt users to verify they’re logged in to X before initiating the OAuth flow. It’s a bug on Twitter’s side that will need to be resolved by them, I guess. Will be happy to here other workarounds on this issue.
you may first verify the column names and data alignment:
print(df.columns.tolist())
print(df.head(2))
And also check if there any non-date values.
As mentioned here, a Modal Bottom Sheet, like dialogs, appears on top of the app content. Anything modal is drawn above the app content. That's why the Snackbar inside the Scaffold gets covered by the Modal Bottom Sheet.
If we want to display a Snackbar above the Modal Bottom Sheet, we should show it inside the content of this composable.
Turns out that not all images had Build Action set to "Content" 🤦♂️ Changing this fixed the issue. Maybe exception handling is now slower and I didn't noticed the exceptions earlier. I'm sure there was no 30s lag in previous commits.
See this answer.
for i in range(100):
optimizer.zero_grad()
output = model(**model_inputs, labels=labels) # forward pass
loss = output.loss
loss.backward()
optimizer.step()
print('Fine-tuning ended')
I could run the above loop only once in Google Colab and notebook crashes if i increase the range even to 2 or 3. Experiencing the same problem even if I use Databricks ML instance too?. What alternatives you recommend to run the notebook with AdamW optimizer as suggested above in Cloud?.
See this answer.
See this answer.
Here is my solution, if you have a string and not a list of strings:
def normalize_text(text: str) -> str:
output_string = re.sub(r'(\d+)', lambda m: num2words(m.group(), lang='en'), text)
print(output_string)
return output_string
based on @svandav's version
Hope it helps
Laravel 11. it run success.
Passport::ignoreRoutes();
Passport::tokensExpireIn(now()->addDays(7));
Passport::refreshTokensExpireIn(now()->addDays(30));
Passport::useTokenModel(\Laravel\Passport\Token::class);
Passport::enablePasswordGrant();
I think you need to change file extention yourFileContext.ts => yourFileContext.tsx
It might be bugged in an update process by Microsoft, creating a new environment pointing to the newest version allows me coding again:
We can pass data to named route in three ways. Map, List, Extra Class.
final args = Get.arguments as Map<String, String>; final name = args['name'];
List => Arguments as list
final args = Get.arguments as List?; final name = args?[0] ?? 'default if not given'; // Arguments as map or list appBar: AppBar(title: Text('Screen One $name')), // Directly pass arguments as List here appBar: AppBar(title: Text('Screen One ${Get.arguments[2]}')),
Separate Class => Make a separate class and use it
// Define a class class ScreenOneArguments { final String name; final int age; final String profession;
ScreenOneArguments({ required this.name, required this.age, required this.profession, }); }
// Passing arguments Get.toNamed( '/ScreenOne', arguments: ScreenOneArguments( name: 'Muhammad Bilal Akbar', age: 25, profession: 'Flutter Developer', ), );
// Accessing arguments final args = Get.arguments as ScreenOneArguments; final name = args.name; final age = args.age; final profession = args.profession;
Use a Map: For small, simple use cases where type safety isn't critical. When you need flexibility in the data structure.
Use a List: For very simple use cases with a small, fixed number of arguments. When you don't need descriptive keys or type safety.
Use a Custom Class: For larger, more complex use cases where type safety and maintainability are important. When you want to enforce a clear structure for your arguments.
Passing arguments as a List is indeed faster and simpler, especially for small and fixed parameters. However, it has some drawbacks:
Pros of Passing Arguments as a List ✅ Less code (no need to define keys like in a Map). ✅ Slightly better performance (accessing Get.arguments[0] is a direct lookup). ✅ Good for small, fixed parameters (e.g., an ID and a name). Cons of Passing Arguments as a List ❌ Hard to understand later (without looking at the sender’s code, it's unclear what Get.arguments[1] means). ❌ Order-sensitive (if you change the order, the app might break). ❌ Not good for optional parameters (e.g., if only the second argument is needed, the list index might be null).
When is it "Better"? If you're passing only 1-2 arguments, and their order will never change. Example: Get.toNamed('/details', arguments: [42, 'Product Name']); (ID and Name). When is it "Not Recommended"? If you need more than 2-3 parameters, since remembering indexes (Get.arguments[3]) becomes difficult. If your app needs optional parameters, since missing values can cause crashes (Get.arguments[3] might not exist).
If it's a 2d game it must have a sprite renderer to be visible or invisible, it can't be an empty gameobject. Also, if you are testing in the engine then even if it's off the screen in the game view but you can still see it in the scene tab then it will still register as visible.
From the documentation
"Note that the object is considered visible when it needs to be rendered in the Scene. For example, it might not actually be visible by any camera but still need to be rendered for shadows. When running in the editor, the Scene view cameras will also cause this value to be true."
I'm also getting the same error. Can anyone help me with this issue to resolve?
The "pkceCodeVerifier value could not be parsed" issue occurs when a user accepts an invitation. However, for normal sign-in or sign-up, it works fine.
I have created a regular app in Auth0 and also set all the required URLs.
Below is the code for the NextAuth configuration file and provider configuration for Auth0:
const authConfig = {
debug: true, // Enabled because we are in development
providers: [
Auth0Provider({
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
issuer: process.env.AUTH0_ISSUER,
authorization: {
params: {
prompt: "login",
},
},
}),
],
adapter: DrizzleAdapter(db, {
usersTable: users,
accountsTable: accounts,
sessionsTable: sessions,
verificationTokensTable: verificationTokens,
}),
callbacks: {
async signIn({ user, account, profile }: ISigninAuth0) {
const updates: IUpdateUser = {};
if (profile?.email_verified && !user?.emailVerified) {
updates.emailVerified = new Date();
}
if (Object.keys(updates).length > 0) {
await updateUserByEmail(user.email!, updates);
}
return true;
},
session: async ({ session, user }) => {
const userData = await getUser(user.id);
if (!userData) {
throw new Error("User data not found");
}
return {
...session,
user: {
id: user.id,
...{
name: userData.name,
email: userData.email,
emailVerified: userData.emailVerified,
}
},
};
},
},
trustHost: true,
} satisfies NextAuthConfig;
const { auth: uncachedAuth, handlers, signIn, signOut } = NextAuth(authConfig);
const auth = cache(uncachedAuth);
export { auth, handlers, signIn, signOut };
Organization admin invites user to join the organization by using Auth0 management API.
POST /api/v2/organizations/{id}/invitations
Body: {
"inviter": {
"name": "string"
},
"invitee": {
"email": "[email protected]"
},
"client_id": "string",
"user_metadata": {},
"ttl_sec": 0,
"roles": [
"string"
],
"send_invitation_email": true
}
The user receives an email with a link to join the organization. The user clicks on the link (which looks like https://example.com/api/authorize?invitation={invitation_id}&organization={organization_id}) and is redirected to our website.
There, we extract the invitation_id and organization_id from the query params and generate a new invitation link with the following code:
const baseUrl = `https://myauth0domain.com/authorize`;
const url = new URL(baseUrl);
url.searchParams.append("response_type", "code");
url.searchParams.append("client_id", clientId);
url.searchParams.append("redirect_uri", redirectUri);
url.searchParams.append("invitation", invitation);
url.searchParams.append("organization", organizationId);
url.searchParams.append("scope", "openid profile email");
const finalUrl = url.toString();
return NextResponse.redirect(new URL(finalUrl as string, baseURL));
The user is then redirected to the Auth0 login page, and after successful login, the user is redirected back to our website with the code in the query params. However, I get the error "pkceCodeVerifier can not be parsed," and the user is not logged in. I have checked the logs in Auth0, and all logs are fine. I'm using the regular Auth0 application, and the pkceCodeVerifier flow is handled by Auth0 itself in regular application.
I have also passed the code challenge, code challenge method, and state in the URL but am still getting the same error. Below is the code for the same:
Ref to create code verifier and code challenge: https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/add-login-using-the-authorization-code-flow-with-pkce#create-code-verifier
// code verifier
function base64URLEncode(str: any) {
return str.toString('base64')
.replace(/\+/g, '-')
.replace(/\//g, '_')
.replace(/=/g, '');
}
const verifier = base64URLEncode(crypto.randomBytes(32));
// code challenge
function sha256(buffer) {
return crypto.createHash('sha256').update(buffer).digest();
}
const challenge = base64URLEncode(sha256(verifier));
url.searchParams.append('code_challenge', challenge);
url.searchParams.append('code_challenge_method', 'S256');
url.searchParams.append('state', state);
I have also tried to set the cookie options in the NextAuth configuration file but am still getting the same error. Below is the code for the same:
cookies: {
pkceCodeVerifier: {
name: "authjs.pkce.code_verifier",
options: {
httpOnly: true,
sameSite: "none",
path: "/",
secure: true, // Set to true in production
},
},
},
I have also added the code verifier in the cookies below is the code
const baseUrl = `https://myauth0domain.com/authorize`;
const url = new URL(baseUrl);
url.searchParams.append("response_type", "code");
url.searchParams.append("client_id", clientId);
url.searchParams.append("redirect_uri", redirectUri);
url.searchParams.append("invitation", invitation);
url.searchParams.append("organization", organizationId);
url.searchParams.append("scope", "openid profile email");
const finalUrl = url.toString();
const response = NextResponse.redirect(new URL(finalUrl as string, baseURL));
const cookieOptions = {
httpOnly: true,
secure: false,
maxAge: 900, // 15 minutes
path: '/',
};
response.headers.set(
'Set-Cookie',
serialize('authjs.pkce.code_verifier', verifier, cookieOptions)
);
return response
Simple signUp/signIn Works fine but when I try to log in with the invitation link then i get the error.
in later version there is a thing called sync project that should resolve it enter image description here
I still hesitate to rely on Android Studio refactoring capabilities, even for simple projects. Just today, I attempted to change a single package name and restructure a package, and the whole project unexpectedly broke. After two hours of debugging, I had no luck fixing it.
In the end, I had to delete the .idea and .gradle folders, open the project in a simpler IDE (where I could easily search and replace strings), manually restructure the files, then open it with Android Studio and build project, and guess what, everything works fine now.
Android Studio Ladybug Feature Drop | 2024.2.2
When encountering the error "Step 2 script Build the App exited with status code 70" while trying to set up CI/CD for your SwiftUI application using Codemagic, there are a few possible causes to investigate. Status code 70 generally indicates an issue with the build process, often related to the build configuration or dependencies.
Here are some steps to troubleshoot and resolve the issue:
Check the Build Logs Start by examining the full build logs to get more detailed information about where the build is failing. Codemagic logs can give you insights into whether the issue is related to missing dependencies, misconfigured project settings, or other errors in your code.
Verify Xcode Version and Dependencies Make sure that you’re using the correct version of Xcode specified in your Codemagic configuration. If your project requires specific Xcode settings, such as particular SDK versions or dependency configurations (CocoaPods, Carthage, Swift Package Manager), ensure that these are correctly set in your codemagic.yaml file.
Check Your Environment Variables Sometimes, environment variables (such as signing credentials or API keys) might not be correctly set, leading to a build failure. Ensure that any required environment variables are configured in Codemagic's UI under the Environment Variables section.
Inspect Your SwiftUI Project Setup If your SwiftUI project uses any custom scripts or build phases, ensure they are compatible with Codemagic’s build environment. A common issue is custom build scripts that don’t execute properly in the CI/CD environment.
Update Dependencies If you're using dependencies via CocoaPods, Carthage, or Swift Package Manager, try cleaning the build folder and updating the dependencies to their latest versions to rule out issues with outdated packages.
Check the Build Scheme Ensure the correct build scheme is selected in your codemagic.yaml file. Sometimes, the wrong scheme can cause issues when Codemagic tries to build the app.
Test Locally If possible, try to replicate the build process locally by running the same commands used in your Codemagic setup. This can help isolate the issue and confirm whether it’s related to your local environment or the CI/CD setup.
As you're getting familiar with CI/CD and Codemagic, don’t hesitate to refer to Codemagic’s documentation or support resources for more detailed troubleshooting steps.
And while you’re working through these issues, why not take a break and enjoy some [Wawa chips][https://wawamenu.org/]? A little snack can help keep you energized and focused as you continue fine-tuning your CI/CD process!
Did you figure out a solution for this? If yes can you please share it here? thanks
The code you provide (date.Binding = new Avalonia.Data.Binding("date")
) is actually valid and compiles in Avalonia if you are not using NativeAOT.
Support for DataGrid with NativeAOT has not happened yet, so you can't use the two together in the first place.
It worked by right clicking the object I wanted to view the code inside the object designer, then select "Open definition from app file"
Results are here, I can see the code :)
Somebody has been tested this on a repeatable field?
I used this code for swiper version 11 with tailwind.
navigation={{
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}}
Outside the swiper tag:
<div className="bg-gray-500 w-28 relative -top-14">
<div
className="swiper-button-prev !text-xs !text-grayDarkMe !size-10 rounded-full bg-grayMe !after:text-sm ">
<MdOutlineKeyboardArrowLeft size={12}/>
</div>
<div
className="swiper-button-next !text-xs !text-grayDarkMe !size-10 rounded-full bg-grayMe !after:text-sm ">
<MdKeyboardArrowRight size={10}/>
</div>
</div>
!after:text-sm means it's important
<Swiper
loop={true} pagination={{clickable: true,}}
// navigation={true}
modules={[Navigation, Pagination]}
navigation={{
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}}
slidesPerView={2}
breakpoints={{
430: {
slidesPerView: 3,
spaceBetweenSlides: 25
},
480: {
slidesPerView: 4,
spaceBetweenSlides: 25
},
640: {
slidesPerView: 4,
spaceBetweenSlides: 25
},
970: {
slidesPerView: 5,
spaceBetweenSlides: 25
},
1260: {
slidesPerView: 6,
spaceBetweenSlides: 30
},
1530: {
slidesPerView: 8,
spaceBetween: 10
}
}}
className=" overflow-hidden relative">
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
<SwiperSlide><Brand/></SwiperSlide>
</Swiper>
<div className="bg-gray-500 w-28 relative -top-14">
<div
className="swiper-button-prev !text-xs !text-grayDarkMe
!size-10 rounded-full bg-grayMe !after:text-sm ">
<MdOutlineKeyboardArrowLeft size={12}/>
</div>
<div
className="swiper-button-next !text-xs !text-grayDarkMe
!size-10 rounded-full bg-grayMe !after:text-sm ">
<MdKeyboardArrowRight size={10}/>
</div>
</div>
Your video card doesn't have enough memory for the model you are trying to run, and the numbers in the error message just don't give the whole extent of that. You need to fit the entire model into memory.
data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDwhLS0gRGVmaW5lIGEgaG9yaXpvbnRhbCBncmFkaWVudCBmcm9tIGhvdCBwaW5rIHRvIGxpZ2h0IHBpbmsgLS0+CiAgIDxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZDEiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjAlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6I0ZGNjlCNDtzdG9wLW9wYWNpdHk6MSIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkQxREM7c3RvcC1vcGFjaXR5OjEiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8IS0tIENyZWF0ZSBhIGdsb3cgZWZmZWN0IC0tPgogICAgPGZpbHRlciBpZD0iZ2xvdyI+CiAgICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjQuNSIgcmVzdWx0PSJjb2xvcmVkQmx1ciIvPgogICAgICA8ZmVNZXJnZToKICAgICAgICA8ZmVNZXJnZU5vZGUgaW49ImNvbG9yZWRCbHVyIi8+CiAgICAgICAgPGZlTWVyZ2VOb2RlIGluPSJTb3VyY2VHcmFwaWMiLz4KICAgICAgPC9mZU1lcmdlPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDwhLS0gQmFja2dyb3VuZCA8IS0tCiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0id2hpdGUiIC8+CiAgPCEtLSBMb2dvIHRleHQgd2l0aCBncmFkaWVudCBmaWxsIGFuZCBnbG93IGVmZmVjdCAtLT4KICA8dGV4dCB4PSI1MCUiIHk9IjUwJSIgZG9taW5hbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIKICAgIHN0eWxlPSJmb250LWZhbWlseTogJ0NvbWljIFNhbnMgTVMnLCBjdXJzaXZlLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IDQwcHg7IGZpbGw6IHVybCgjZ3JhZDEpOyBmaWx0ZXI6IHVybCgjZ2xvdyk7Ij4KICAgIEdsb3cgd2l0aCBHbGl0dGVyCiAgPC90ZXh0PgogIDwhLS0gU3BhcmtsZSBsZWxlbWVudHMgdG8gZXZvayBnbGl0dGVyIC0tPgogIDxjaXJjbGUgY3g9IjgwIiBjeT0iNDAiIHI9IjMiIGZpbGw9ImdvbGQiIC8+CiAgPGNpcmNsZSBjeD0iNDIwIiBjeT0iMzAiIHI9IjIiIGZpbGw9ImdvbGQiIC8+CiAgPGNpcmNsZSBjeD0iMjUwIiBjeT0iMTAiIHI9IjIiIGZpbGw9ImdvbGQiIC8+CiAgPGNpcmNsZSBjeD0iMTIwIiBjeT0iMTYwIiByPSIzIiBmaWxsPSJnb2xkIiAvPgogIDxjaXJjbGUgY3g9IjM4MCIgY3k9IjE3MCIgci09IjIiIGZpbGw9ImdvbGQiIC8+Cjwvc3ZnPg==
This is because earlier version of flutter has completely removed PluginRegistry interface, which is for Flutter's v1 embedding and they suggested to upgrade all the plugin by following this Flutter Plugin API.
To overcome this you may have following options-
A non-hacky solution is described here: https://www.chartjs.org/docs/latest/samples/tooltip/interactions.html
Basically, add / adjust your options.interaction
settings:
options: {
...
interaction: {
mode: 'nearest',
intersect: false,
axis: 'x',
},
...
}
As of now, VSCode supports a simplified glob pattern, wherein the ^[...]
syntax can only be used to negatively match a range of characters.
See the documentation here: https://code.visualstudio.com/docs/editor/glob-patterns.
VSCode's glob matcher code clearly shows that it only supports a simplified kind of glob matching. See the match function.
For me, the problem was a native DLL in the project that I had set to 'Copy Always' for the output directory. The issue was resolved by changing this file's setting to 'Do not copy'
For Android, native libs should not be in bin directory.
I added the UIAutomationClient dll but it was still couldn't find the System.Windows.Automation in my .net8 console application.
Google Gemini suggested me to add <TargetFramework>net8.0-windows</TargetFramework>
into the <PropertyGroup>
in the csproj file of my project. Then the visual studio could find the library succesfully.
Edit: Also I needed to add <UseWPF>true</UseWPF>
into <PropertyGroup>
thanks to the @Zhijian Jim Luo's suggestion.
Answer
Currently it seems difficult for an third-party app to access a "foreign" directory in the "On My iPhone" section, which, in the system is referred to as /Documents/
.
However, if using react-native-fs
and then declaring const path = RNFS.DocumentDirectoryPath;
the path returned will be one to the "On My iPhone" section, aka. /Documents/
.
If you now create a folder or file under this given path, with, let's assume: RNFS.mkdir('${path}/myfolder');
( where ' is a backtick-symbol inside the mkdir() ), you will be able to see that the following path was created:
Under "On My iPhone" you will see a folder with your app's name and icon (not always an icon), and inside it your created folder (myfolder).
This, though, still does not open the opportunity of writing/reading files outside of this RNFS.DocumentDirectoryPath
. Will keep looking.
Thank you very much. I found that error was because I needed to have the compatible version between React/Chakra. I finilly used the 18.2.2 version React and 2.8.0 Chakra version.
How can I have all the programmed code together?
simply you can visit - https://base64pdf.com and you can convert your base64 to pdf and pdf to base64 data uri here you can also decode encode pdf files. base64pdf
Please explain your question? Are you trying to change default.xml and use yaml or anything else.
This is currently not possible as default.xml and other xml files are for keeping the configurations.
But if you want to change json or yaml input in request body to any other form like xml that is possible with an use JavaScript, transformers like xml transformer etc. for this.
You can respond to this thread with explanation. Feel free to contact.
As it turned out, it was a simple configuration issue in database.php.
Just modified the DB_CONNECTION_TIMEOUT to change the wait timing.
Thanks anyway.
Did something change? Is Microsoft no longer allowing .vsix downloads directly?
Yes. Simply put, that was the change. The download links are no longer displayed in extension pages. But they still "exist", and they still function if you know how to get them, which you can find in the answers to the question you already linked- How can I install Visual Studio Code extensions offline?.
Run it from the portable bundle that you can find at https://www.syntevo.com/smartgit/download/
It will run emulated. And I don't see it being ported to Native anytime soon :( We already have OpenJDK running natively on ARM64, but I saw this when I was helping the SWT toolkit getting running on ARM64 (SmartGit also uses SWT): https://github.com/eclipse-platform/eclipse.platform.swt/pull/1048#issuecomment-1994365705
Thanks for this tip. this worked for me... somehow all the youtube videos make it look like piece of cake... but whatever I tried it didn't work for me that way...
try to open pdf in chrome through inspect mode and change resolution to mobile size (like any device screen size which you are using), if it opens there then it means there is problem with how blob is getting loaded in specific mobile device browser.
I am getting the error "ReferenceError: exit is not defined." I tried to solve this error by using process.exit(1), which is a global function provided by the process object.
once you click on the sidebar (because don't change font size in the editor) and press "Ctrl" + "+" to increase and "Ctrl" + "-" to decrease
Here's a task to view input and output, similar to online coding platforms:
{
"label": "Run Python with i/o",
"type": "shell",
"command": "cls & echo Input: & python a.py > temp.txt & echo. & echo Output: & type temp.txt & del temp.txt",
"presentation": {
"showReuseMessage": false
}
}
Result: