The “Cannot find ‘\_\_\_’ in scope” error is a very common issue in Swift development, especially during the early stages of using Xcode and SwiftUI. Here are some systematic troubleshooting steps and solutions to help you quickly identify and fix the problem:
✅ 1. Check if the file is added to the correct Target
This is one of the most common causes!
✅ 2. Ensure the symbol (class/struct/function) is `public` or `internal` and within the same module
By default, Swift uses `internal` access level, meaning it’s visible only within the same module. If you’re using multiple modules (like those imported via Swift Package Manager), you may need to declare your symbol as `public`.
✅ 3. Has the file/module been properly imported?
If you're using a struct or class from another file, make sure the name is correct and the module is imported.
However, in the same project, `import` is usually not needed unless you’re working with a framework.
✅ 4. Compiler state stuck / Xcode bug
Sometimes the issue is due to Xcode being in a weird state. Cleaning the build folder or restarting Xcode may help.
✅ 5. Is there a typo or case sensitivity issue?
Swift is case-sensitive. Double-check that your type or symbol name is spelled exactly the same as its definition.
✅ 6. Group ≠ Folder
In Xcode, a “Group” does not necessarily reflect the actual folder in the file system. A file may appear in a Group but still be mislinked if the file path is incorrect.
✅ 7. Check if the issue is related to SwiftUI Previews
SwiftUI's preview area has some scope limitations. If you define a custom struct inside a preview and try to use it elsewhere (or vice versa), it may cause scope errors.
Hope this answer helps you.
In my case, the error is
Click on the error section to identify the target that is reporting the error (my case: share_plus)
Go to target -> build setting -> go to OTHER_LDFLAGS -> add $(inherited) if not already there -> clean build and rebuild
Magento stores all schedules in table in GMT time. When Magento tries to schedule new job and add it in table, this method \Magento\Cron\Model\Schedule::trySchedule convert time according to server timezone and compares with schedule specified in your crontab.xml. During schedule executions Magento converts time from table using server timezone as well and compares it with current server time.
So it isn't the issue. There are always all schedues in table in gmt.
Why is $objDoc declared but not used?
I use 0.75.0 version, and I just added // to comment out the line. It works fine so far
//apply from: "../../node_modules/react-native/react.gradle"
I haven't tried this option.
When I needed to work with XML, I used xml-sax
xml-sax(e) %handler(XMLHandler : dsCommArea) %xml(uMsgBody : 'ccsid=ucs2');
if %error;
...
endif;
the original xml was in a string that was previously converted to ucs2.
As far as I remember, one of the event types in xml handler is *XML_EXCEPTION and one of the parameters is exceptionId. Maybe it's worth trying to intercept this event?
And I also remember that there were some problems with recognizing and parsing [CDATA] blocks - I had to parse them manually because SAX itself did not recognize them quite adequately.
cd android && ./gradlew cleanNow you can read directly.
const workbook = XLSX.readFileSync("asset/files/excel/report_card_template.xls");
Remove or correct the line mapping "ctrl" to a string, keeping only the public clsCtrl Ctrl { get; set; } property with appropriate [JsonPropertyName("ctrl")].
It's because of
content.focus()
You are focusing textarea immediately instead of waiting for transition to end. I would suggest instead adding transitionend event listener to content:
content.addEventListener('transitionend', function() {
content.focus();
});
remove
paddingBottom: 60
from
styles.scrollContent
nice tryyyyyyy to solve my problem,thans!
You are(were?) on the completely wrong way ;)
....NET seems to take care of it when using AddSingleton...
You seem(ed?) to lack fundamental understanding of dependency injection. It is arguably the next step in object oriented programming. Simplified, the idea is, that the new() keyword is kind of evil. new Car() ??? Cars aren't transformers, they don't build themselves. When thinking in objects to represent reality, this isn't right. A CarFactory would be more accurate. But you don't want to implement a factory for every object. How to solve this dilemma? -> The concept of Dependency Injection. Simplified, it's one big object factory. Or a bit like Amazon, you tell it what you want and then you get it.
...but not sure how to correctly instantiate the StateService manually in the Program.cs file...
That's the neat part - you don't.
"Just" tell it what you want in Program.cs:
builder.Services.AddScoped<IStateService, StateService>();
builder.Services.AddHttpClient<ITestService, TestService>(httpclient =>
{
httpclient.BaseAddress = new Uri("https://www.google.com/");
});
(I made StateService scoped, because it holds no actual state information in a variable, you are just using it to access data)
As Stephen Cleary linked, the .AddHttpClient here is called a Typed HttpClient. Whenever you use NEW HttpClient instead of something like above, you are doing something dangerous. And I mean beyond the object-building-itself thing. For HttpClient specifically the new keyowrd is evil. Let the framework handle HttpClient, so that connections are being handled efficiently and nothing is left open, otherwise you might get those infamous socket exhaustion issues and general performance problems.
There are many way to inject dependencies into a class, here is one.
public class TestService(HttpClient HttpClient, IStateService StateService) : ITestService
{
public async Task<string> DoStuff()
{
HttpResponseMessage response = await HttpClient.GetAsync("search?q=hellogoogle&thisCallDoesntWork=copyYourOwnSearchStuff");
if (response.IsSuccessStatusCode)
{
string content = await response.Content.ReadAsStringAsync();
return content;
}
else
{
return string.Empty;
}
}
}
In your StateService, you are using another kind of dependency injection, but it effectively does the same: Getting a service from the predefined ones in Program.cs
private IJSRuntime jsRuntime;
public StateService(IJSRuntime _jsRuntime)
{
jsRuntime = _jsRuntime;
}
Injection in the UI file looks a bit different with @inject. Here in the Counter.razor of the HelloWorld Blazor:
@page "/counter"
@rendermode InteractiveServer
@inject ITestService TestService // Dependency injection
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private async Task IncrementCount()
{
string apiCallResult = await TestService.DoStuff(); // Using our injected service
currentCount++;
}
}
Please note that I do not want to pass stateService itself as a parameter to test service because Test Service is completely decoupled from the playform it is running on, therefore it is not aware of how or where the token comes from, only that it has a token to work with.
This problem you describe is kind of why dependency injection was invented (improving object orientation is just a nice side effect). In my setup TestService has no StateService-parameter, it gets a IStateService INTERFACE injected:
builder.Services.AddScoped<IStateService, StateService>();
There is no hard coupling. You can completely change the implementation of StateService and simply adjust the Program.cs code, the TestService will never notice the difference, its code does not need to be touched one bit:
builder.Services.AddScoped<IStateService, CompletelyDifferentStateService>();
It is fine that TestService has a dependency on IStateService, the reality is, it DOES access it and that is fine. But it has no dependency on StateService, the concrete implementation is decoupled.
It probably makes more sense, if you think of my made up class "IUserProvider" with a GetUsers() method. What is the implementation?
UsersApi.cs, calling a server?
TestUserJsonReader.cs reading users from a file?
UsersGenerator.cs, making up random new users out of some hardcoded data?
Any class using IUserProvider via Dependency Injection doesn't care, it is well decoupled. You can even change it dynamically, if IsTestEnvironment -> inject a different implementation.
(I know I'm a bit late to the party)
1 Make sure that no shortcut is assigned to the key(may conflict)
2 Try deleting the library (pip3 uninstall <package-name>) and then reinstalling it, because it could have corrupted.
3 If you use multiple interpreters for instance Pycarm (I see you are using it) and PyDev it could create conflicting access pathways or automatically download to a wrong fille.
4 Check drivers may be corrupted.
5 I recommend add a tag 'pycharm'.
You may consider using a Execute Javascript code in your dynamic action with type Button pressed and then do a Ajax callback.
https://apex.oracle.com/pls/apex/germancommunities/apexcommunity/tipp/3341/index-en.html
Override get_train_dataloader in the Trainer class
I think you should add in file.te
type functionfs_file, file_type,mlstrustedobject;
If you are using busybox image then you have to use sleep command to keep you container running.
kubectl run test busybox --restart Never --image busybox:latest --command -- /bin/sh -c "echo I am the tester pod now I will sleep; date; sleep 3600"
In Typo3 v12 and later you need to replace typo3cms with vendor/bin/typo3 as the command typo3cms has been removed.
(Disclaimer: this is not an answer to the user's problem)
1. It looks like perimeter security implementation. It means that gateway acts as a centralized authorization point at the network perimeter. It means all security checks happen at the gateway entrance and once a request passes the gateway, microservices trust each other completely.This decision is workable and many adopt it, but there are also drawbacks. If one microservice is compromised, it can potentially access any other service without additional security checks. Also, relying solely on network security for internal service communication is a significant security risk.
How can other services thust each other? There are several approaches, such as zero-trust tolerance, mTLS, and OAuth. Just check them out. Perhaps some of them will be preferable for your needs.
So, you definitely have to verify JWT in each microservice despite the fact that it adds additional overhead.
2. Yes, it is common to include auth details like userID, roles, permissions, and scopes within a JWT. It's one of the benefits of a JWT. It's called authorization context. BTW, with the authorization context, each service can validate permissions for specific operations.
3. I recommend you using a separate DB for each service. Using a single DB is anti-pattern and very bad idea. You will get it when your application grows.
xml = server.get_job_config("demo")
server.create_job("demo-copy", xml)
I’ve faced this issue too. GridDB CE doesn’t support GROUP BY or multi-entity time-window aggregations (like TIME_SLICE) within a single TimeSeries container that holds multiple device IDs. TIME_SLICED aggregation works only on single-entity TimeSeries containers without logical partitioning like deviceId.
The recommended approach in GridDB is to create a separate TimeSeries container per device. This allows you to leverage INTERPOLATE and TIME_SLICED queries efficiently. If managing thousands of containers is a concern, consider automating container management, but unfortunately, CE doesn’t support per-device aggregation in a shared container directly via query
Someone mentioned this in a comment, but this should be a reply
This git repository provides a tool to generate the yocto recipes automatically from a requirements.txt file.
Setting android:extractNativeLibs="true" is not recommended, as it can slow down your app. For more details, please refer to the following link:
https://github.com/facebook/react-native/issues/44291#issuecomment-2084952099
In the simplest case, I believe the OP is looking for a similarity measure that compares point-wise the images in question. If both these grayscale images are thresholded, one can measure the amount of overlap they have. For instance, if X and Y are binary label images then,
DSC(X, Y) = 2|X ∩ Y| / |X| + |Y|
This is called the Dice similarity coefficient and it tells you the degree of overlap. A DSC value of 1 indicates perfect overlap while 0 indicates no overlap at all. There are also other similarity measures like the Tannimoto coefficient.
In the comments, the OP says "whether they look the same or not, from a human eye". If I'm interpreting this correctly, the OP is talking about segmentation. This is a rather large field and there are plenty of ways to segment an image. I recommend starting with scikit-image's edge-based segmentation. Once both images are segmented, the above DSC can give you a similarity measure.
Edit: I forgot to explain the formula. ∩ are the regions in the images where both equal 1 and |.| is a summation.
idk im just writing this so i can get reputation points
It looks like it's possible to add css a limited amount of rules to the gmp-place-autocomplete selector.
Below is an example:
gmp-place-autocomplete {
background-color: rgb(249 250 251);
color-scheme: light;
border: 1px solid rgb(209, 213, 219);
border-radius: 9px;
}
See the documentation here
https://developers.google.com/maps/documentation/javascript/reference/places-widget#PlaceAutocompleteElement-CSS-Properties
I confirmed that Nelson is correct about autodoc_typehints = 'description' causing the issue, but you can set another option to get rid of the parameters. You don't just have to set autodoc_typehints to 'none' or 'signature'. You can set autodoc_typehints_description_target to 'documented' or 'documented_params' and the parameters section will go away. Here is a link to the option in the Sphinx documentation.
I have been trying the MAPIlab mail merge and found error at the last step to send email via Outlook, with the error message "Class is not registered".
Please advise.
To build an AI chatbot that can perform CRUD operations via API requests, you need to combine conversational AI capabilities with backend API integration. This means setting up a chatbot that not only understands user intent but also communicates with your backend system to Create, Read, Update, and Delete data.
Large Language Models (LLMs) such as OpenAI’s ChatGPT are great at generating natural language and understanding user input. However, they don’t natively perform real-world actions like hitting an API or updating a database. So, to enable CRUD operations, you need to create a system around the AI that handles those operations.
One effective way to connect an AI chatbot to APIs is by using "function calling" (available in OpenAI’s GPT API). This allows you to define functions (like createUser, updateItem, etc.) and send those definitions to the model. When a user says something like “Add a new user named John,” the model can choose the appropriate function and fill in the parameters.
Alternatively, if you're not using OpenAI’s function calling, you can add a parsing layer that interprets the AI's output as a command (in JSON or structured text), which your backend can then use to trigger API calls.
Once the chatbot determines which operation to perform, you’ll need a secure and reliable way to send requests to your APIs. This can be done through an intermediate server or webhook layer. For example:
Create: POST request to an endpoint like /api/users
Read: GET request from /api/users/{id}
Update: PUT or PATCH request to /api/users/{id}
Delete: DELETE request to /api/users/{id}
Make sure to validate user input and implement proper authentication, especially if sensitive data is involved.
One of the strengths of AI chatbots is that they can explain what’s happening in plain language. After performing an action, the chatbot can return a friendly message like “User John was added successfully!” or “Sorry, I couldn’t find that item to update.” This feedback loop makes the chatbot more trustworthy and engaging for users.
When you build a chatbot like this, test it with real-world use cases to make sure it can handle unexpected input, wrong formats, or missing data. LLMs are powerful, but they’re only as good as the structure around them.
The key to a successful AI chatbot that performs CRUD operations lies in blending the natural language understanding of LLMs with solid backend integration. You’re essentially creating a conversational interface to your API.
There’s a detailed guide on this topic by GeekyAnts that shows how to use the ChatGPT API to build such a system, including a live demo. It explains how to prompt the model, interpret responses, and handle live data. Worth checking out if you want a hands-on example.
GeekyAnts specializes in digital transformation, end-to-end app development, digital product design, and custom software solutions.
It seems that you had resolved your issue, can you share your build.gradle.kts file that how you fix this? thanks a lot.
Hope this will work with you. I found this solution shortcut same as VS Code.
Solution as below,
CTRL+M+O
Make sure your project has updated
Right click on the project & go throught maven-->Update Project....
Things will sets up
thank you. I just deleted a folder name -yflow in site-packages folder. no more warning now.
In most instances, this issue arises if you're using a phone with low RAM, which makes it difficult to stream HD videos.
You want to replace "module-name" with ACTUAL module name:
declare module "launchdarkly-js-sdk-common" {
export interface LDFlagSet {
"your-flag": boolean;
anotherOne: string;
}
}
It seems that a license is required in the new version. https://docs.automapper.io/en/stable/15.0-Upgrade-Guide.html
CORS issues can be avoided while creating an offline website. The content must be hosted locally by downloading dependencies locally and using relative paths. Cross-Origin request must be avoided. While testing with XHR and Fetch, "file://" must be avoided. A service worker can be used for advanced online behavior. APIs must be used with a CORS proxy. Headers must be set correctly on the local servers.
Did you find any solution for this? I also have same issue.
You must allow the container to see the host's processes by sharing the PID namespace and grant the necessary permissions
docker run --pid=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN your_image_name
I am also getting same error. But after searching all over I didn't get any answer. But I remembered that I was upgrading all dependencies. So I was sure about that must be issue in any dependencies and then I checked all by revert upgraded dependency one by one. Then I found the issue and that was in Hilt version 2.56.2 and I downgrade that version to 2.56.1 and that working fine now. Please check there may same issue in your project
Try
Hilt version 2.56.2 --> 2.56.1
or try to downgrade of dependency if you have just upgraded any one.
Try using DevTools to figure out what’s going wrong.
Press F12 (or right-click and choose Inspect) and check the Console for red error messages — for example, a 404 means the image wasn’t found, usually because the path or filename is wrong.
Next, go to the Network tab and reload the page. Filter by Img and look for errors like 404 (file not found) or 403 (access denied).
You can also right-click the <img> in the Elements tab and choose "Open in new tab". If the image doesn’t load there, the file path or name is likely incorrect.
If you are using the Google Play App Signing, the key that signs your release app is they Google Play-generated signing key, not the uploaded keystore.
This generates a different SHA-1 fingeprint which would most likely cause the blank map error.
You could create your Play App Signing SHA-1 through:
Add the SHA-1 to your API restrictions and your blank map should now render properly.
In datatable, Open file buttons.html5.min.js
Find code
var k = (a.URL || a.webkitURL || a).createObjectURL(h);
Replace
var k = window.webkitURL.createObjectURL(h);
In addition to ensuring origins are correctly set in Auth0,
Don't use fetch(http://localhost:8080/login) in your client code.
Use window.location.href='http://localhost:8080/login' or similar.
So you're getting the super annoying "Cannot find ___ in scope" error in Xcode. You've probably tried a bunch of stuff already, but let's go through some troubleshooting steps together!
You must make sure your file path is all good. If you've got files grouped in Xcode, try making real folders on disk to match. Sometimes Xcode gets confused if things don't match up.
If that's not the problem, try cleaning and rebuilding your projet. Xkode's indexing can get all wacky sometimes, and a good old clean-slate build can fix it right up.
If none of this stuff works, can you tell me more about your project setup and the error you're getting? I'll do my best to help you debug it!
import time
import random
def game():
print("🏃♂️ Welcome to the Text-Based Jump Game!")
print("Type 'jump' when you see an obstacle!\\n")
score = 0
for i in range(1, 11):
time.sleep(1)
obstacle = random.choice(\[True, False\])
if obstacle:
print(f"Obstacle {i} ahead! Type 'jump': ", end='')
action = input().strip().lower()
if action == "jump":
print("✅ You jumped over it!\\n")
score += 1
else:
print("❌ You hit the obstacle!\\n")
else:
print(f"No obstacle {i}. Keep running!\\n")
score += 1
print(f"🏁 Game over! Your final scocoin = pygame.Rect(300, 310, 20, 20)
# In the draw section:
pygame.draw.rect(screen, (255, 215, 0), coin) # Gold color
# Collision check:
if player.colliderect(coin):
print("Coin collected!")re: {score}/10")
game()
The problem seems to be resolved in last versions of org.apache.commons.lang3. I used v. 3.18. It works ok with OSGi. Previous v. 2.6 throws org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException.
You could use the Concat function in the Text property of your control: Concat(YourMultipleChoiceColumn, Value, ", ") - this will concatenate all selected values separated by commas. As an alternative, you could create a calculated column directly in your SharePoint list that automatically converts the multiple values to text, which would be more efficient and allow PowerApps to display the data without additional configuration in each control.
Thanks, this code is working fine.
This would be caused by a data issue in the Street View imagery. Only the bottom part of Starenweg street and in front of NiederreinSolar GmbH is being relocated as opposed to your expected result from the POI Roermonder Str. 78. Here is a sample request, which you could also see in the Google Maps web app:
Best to report this street view suggestion through the Google Maps via ‘Send Feedback’. You can check out this link on how to do it: https://support.google.com/maps/answer/3094045
flutter create --platforms=ios .
I think your problem is that you haven't figured out the sequence of connecting each pixel point.You can determine the order of the connection points by judging whether the pixel points are connected.Search for the eight adjacent pixels of a pixel point through BFS to confirm whether the pixel is blue.Then, for the pixels confirmed to be blue, using DFS search to confirm the connected pixels should be able to solve this problem.
the path has been changed, please use the following code:
from llama_index.core.text_splitter import SentenceSplitter
from llama_index.core import SimpleDirectoryReader
try append connection string with "TrustServerCertificate=True", this works for me.
In vs code if you find the error gcc.exe: error: a.c: No such file or directory
gcc.exe: fatal error: no input files then , use this code :
gcc ..\a.c -o hello
.\hello
In PHP > Quality Tools > PHP CS Fixer: Make sure it is set to ON. Also click the "..." next to it and click "Validate" to ensure PHPStorm is using it properly.
In PHP > Quality Tools: Make sure "External Formatters" is set to "PHP CS Fixer"
In Editor > Inspections: Search for "PHP CS Fixer" and make sure it is selected. Also check the Severity and Highlighter Settings. Generally you'll want this as "Weak Warning", but can be set to whatever you'd like
That's everything I can think of.
As mentioned in the pg function document [here](https://pgpedia.info/l/lo_get.html), you could do it with the function `encode`:
SELECT encode(lo_get(12312), 'escape');
spring.cache.type=simple
try this
Advanced. You are correct that standard declaration merging is static. The solution here is to use Generics combined with Intersection Types (&) to create a type-safe "mixin" function.
This function won't change the original class declaration, but it will return a new class constructor whose instances are correctly typed to include both the original class and the mixin object. Help that helps.
{
"fullName": "Nguyen Van A",
"email": "[email protected]",
"password": "123456",
"phoneNumber": "0123456789",
"department": "IT"
}
Resolved!
brew install --cask zulu@17
Make sure you have added correct SHA1 fingerprint in your Firebase console.
To get the fingerprints:
cd android
./gradlew singingReport
Look for fingerprints for app from the list.
SQLite has a set of reserved keywords (or reserved words) that are part of its SQL syntax. These words are used by the SQL language and should not be used as identifiers (e.g., table names, column names) unless they are quoted
Lazy Loading disabled for images in above the fold
And not scroll content
Jpg images not bed but webp is great full!!!
Compression image and
Js & css
Preload used font in top page!
Unused css and delay js
I hope best performance will u
Yes, there are reserved words in SQLite. See the list as the bottom: https://www.sqlite.org/lang_keywords.html
Using brackets will technically work; however, this is not standard SQL. Instead use double quotes as that is standard SQL. The above link also makes this fact clear.
There should not be any issues on the SQLite side of things. However, there can be issues if you want to change databases later of course. To avoid any potential issues just wrap the identifiers with double quotes.
It's been reported in the Fabric Community
The bug is affecting many people, fingers crossed MS fix this very soon
It's strange this is downvoted, I'm going through Netlify onboarding and the build doesn't work and nothing is clear.
Perhaps you can try the paginator.
You can also run this (or similar) from the qt-everywhere-src-5.15.10 unzipped directory, assuming you are using the command line:
cmd.exe /E:ON /V:ON /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64
I followed this guide and got it working:
https://www.geeksforgeeks.org/flutter/flutter-install-pod-in-windows-and-macos/
Edit the app name plist in the project directory with a 3rd party editor.
In Maven if you are trying to run the application in the CLI, you may have to add the maven-assembly-plugin plugin like below. This plugin will help package all the dependencies in the same target jar file.
NOTE - To update the main class and package name in the <mainclass> tag.
<!-- Add the assemble plugin with standard configuration -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.mycompany.app.App</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
You can then compile using maven like below to force the dependencies in the same target jar file.
$mvn clean compile assembly:single
This will add -jar-with-dependencies to the jar file.
To run the built application, you can now do.
java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App arg1 arg2
PS - Thanks to this for the answer, which is in almost the end.
It looks like this is a property of the font you have selected, cmr10. If you render the font elsewhere, you will see that the superscript two is different to a standard two.
GetTickCount functions do not report anything useful about boot time or uptime. There is no guarantee that it will be reset under any conditions. "Checked" (debug) builds of Windows actually set it to a few minutes before the 49-day rollover, just to help catch all the faulty code that doesn't handle rollover.
Vercel supports running Unity WebGL games from GitLFS, works on the free service too. You just have to go into the Vercel settings and check a box to support GitLFS.
Thanks for your answer. I included the curly braces and got some of my work completed.
Overall, what I am trying to accomplish is to igore all keypresses except numerals 0-9. The full code of my module is below, and my spreadsheet output is below that. The OnKey now works for the first (numerically) code that appears to be treated as a control code ("%") by triggering the On Error Go To, but fails to work the second time a 'control code' is encountered. Is my error processing in error or is something else happening? Why did the On Error only take effecrt once?
Option Explicit
Dim KeyPressed As String
Dim i As Integer
Sub Test()
For i = 33 To 127
If i >= 48 And i <= 57 Then GoTo Nexti ' Skip 0-9
KeyPressed = Chr(i)
On Error GoTo OnKeyFailed
Application.OnKey KeyPressed, "IgnorThisPress"
Range("G" & i) = i
Range("H" & i) = Chr(i)
Range("I" & i) = "Accepted: "
GoTo Nexti
OnKeyFailed:
KeyPressed = "{" & KeyPressed & "}"
Range("G" & i) = i
Range("H" & i) = Chr(i)
Range("I" & i) = "Not Accepted: "
Application.OnKey KeyPressed, "IgnorThisPress"
Nexti:
Next i
End Sub
End Sub
Sub IgnorThisPress()
MsgBox "Ignor this key."
End Sub
Sub ResetTest()
For i = 33 To 127
If i >= 48 And i <= 57 Then GoTo Nexti ' Skip 0-9
KeyPressed = Chr(i)
On Error GoTo OnKeyFailed
Application.OnKey KeyPressed
Range("J" & i) = "Removed: "
GoTo Nexti
OnKeyFailed:
KeyPressed = "{" & KeyPressed & "}"
Application.OnKey KeyPressed
Range("J" & i) = "Removed: "
Nexti:
The way which is recommended by microsoft to extend claims is custom authentication extension events.
you can use TokenIssuanceStart event to enrich claims in token. If claims are coming from external API.
Here is a documentation of TokenIssuanceStart event:
UBD situation.
The problem was due to an error in the conf/web.xml file when parsed against later versions of the servlet specification as specified by the version attribute of the <web-app> element. There were two instances of the <session-config> element, which generates an error in Tomcat's server log. When the version was 2.4, parsing is more forgiving.
With the removal of the duplicate <session-config> element, the MIME type lookup functions as expected when the version attribute is set to 3.1 or 4.0.
Oh my goodeness I had this same issue last night (now July 2025 - Windows 10 - Visual Studio 2019)
Yes - restarting my PC fixed it.
I was so confused as my debug build had the issue but my release build did not.
Remember "... have you turned it off and back on again..." lol.
How to Prevent Layout Shift in Your Web Component Sidebar
That annoying jump when your sidebar loads in? That's Cumulative Layout Shift (CLS), and it happens because your <x-sidebar> component doesn't render its content immediately. Here's how to fix it properly:
When your page first loads:
The browser sees <x-sidebar> as an empty tag
It lays out the page without reserving space for the sidebar
Then JavaScript runs and injects your sidebar content
The page suddenly shifts to make room - causing that jarring jump
Don't build DOM with strings in connectedCallback. Define a template outside your class instead:
javascript
// sidebar/index.js
const sidebarTemplate = document.createElement('template');
sidebarTemplate.innerHTML = `
<div id="sidebar" class="d-flex flex-column h-100 p-3 bg-body-tertiary">
<a href="/admin/home" class="h4 text-decoration-none text-nowrap">Central Api</a>
<hr>
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<a id="home" class="nav-link" href="/admin/home">Home</a>
</li>
<li class="nav-item">
<a id="users" class="nav-link" href="/admin/users">Usuários</a>
</li>
</ul>
</div>
`;
class Sidebar extends HTMLElement {
connectedCallback() {
if (!this.shadowRoot) {
const shadow = this.attachShadow({ mode: 'open' });
shadow.appendChild(sidebarTemplate.content.cloneNode(true));
// Highlight active page
const url = window.location.pathname;
if (url.includes('/home')) {
shadow.querySelector('#home').classList.add('active');
} else if (url.includes('/user')) {
shadow.querySelector('#users').classList.add('active');
}
}
}
}
Add this to your global stylesheet:
css
x-sidebar {
display: block;
min-width: 220px;
min-height: 100vh;
}
This tells the browser "reserve this space" before the component even loads.
Make sure your component registers as soon as possible:
html
<head>
<script type="module" src="/main.js" defer></script>
</head>
Using defer means it won't block page rendering but will execute in order.
If you want something to show before JavaScript loads:
html
<x-sidebar>
<div style="min-height: 100vh;">Loading sidebar...</div>
</x-sidebar>
This gets replaced when your component renders but prevents layout jumps.
Have you resolved the problem? We are currently struggling with it when updating wildfly from 27 to 34...
Did you ever get this working?
Works so well, one of the best solutions I found for the problem online.
Thanks
I had this issue and I had to uninstall Strawberry perl and delete the entire Strawberry folder from my drive then reinstall it.
So after some investigation, i replaced the JSX tags with a parent View
I have the best solution for non enterprise, I did the same like @Sagar Chilukuri but when sort o filter the row change, I use the refresh Cells
I added a Click proterty to a ImageButton in the Shell Data Content, when i called the Binding FlyoutIcon, it gives me the Clicked to all the Icons.... is there any way to add a different Clicked property to each Icon keeping the Shell DataContent????
Your code might not work because MEC processes content after `the_content` filter, or the plugin uses custom templates that bypass `the_content`
is your filter really running? did you try logging to the debug?
Probably too late to the party but building on top of @Dakai Ou answer I achieved the following effect, using @miblanchard/react-native-slider and the react-native-linear-gradient:
<LinearGradient
colors={["#e2e8f0", "#f1f5f9", "#fbbf24"]}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 0 }}
style={[
styles.linearGradient,
{
position: "absolute",
left: 0,
right: 0,
top: "50%",
transform: [{ translateY: -5 }],
},
]}
/>
<Slider
minimumTrackTintColor={"transparent"}
maximumTrackTintColor={"transparent"}
thumbStyle={{
backgroundColor: "white",
width: 24,
height: 24,
borderColor: "black",
borderWidth: 1,
borderRadius: 12,
position: "absolute",
top: "50%",
marginTop: -12,
}}
/>
You cannot always do a post call on page unload.
Answering my own question because of a couple things I discovered in my research:
There's no such thing as "check if the page was not left after preventdefault was called."
Also, this is not what preventdefault is for. The get call is made no matter what, even if you don't leave the page.
beforeUnload may work all the time locally, but not on the server. Listen to what everybody says, it's not worth it.
However, pageHide does almost everything you want successfully. In page navigation/refresh, it will do the API call, if you put "keepalive: true" in your request options.
+U悖镖9饗鯁沆呣厥t.g�^s翋钺X-
+瑤|
衽匥纠锉�>i忀�>1P� 闉.�.彇ca�"荐鵰�nS!mI酠竨)蟵煊滠o+礵�職)W7檺
3巰`}俤~素�$<�硭�a忮`L眎-竌莔咕勜娥u橾嫚g�&绷Wo驕�1w�'94 !(la居�亮弐a'�"W� 蹼貑棁i霿劬笉FTa|2TiM(槣喲�*M[2躭�敶示玑|�咊BR檓�乴瘻瘁l`]滸U鈅r��
iv�偬^Si碝w咯D�)m%4v苞銀烸�0�狣M皥vE�!硆>蠞抃�7q拥�曕↓飓�y�%i|ùS冰衖)G%噪拽/�阔
I�冖�6惂u�觾贏燳鐈H郏9A} �1�=�$迕伎連Y
xayl0T�2�5�+{>�3^5T凶俫嘄p)节.賙z熵c芤j?:�3焴擀k柿駅K#旷
氷@愻饄鄀沪2/Rb鷶坐[挜蝢轞跺溚q遯�+脫m眳�l鱒+匱8*sW砥r礽@c褯?>‘榱鶡L螖�)c鬒楰�6�&-z歉^椔N� 萱v槽Y﹨�~�峿MZ讥K驂錩i魓淌g嵏榒瀣�6薩櫮~(N厏j
峸O铼��2@7愦k�� �?櫓瀭/ゞ柚慮s倒鉒d3梊攡$/j€F�P壛�)�>泸O79uh"p�.訾p蘁呓t�'"�-}�5 訪vk挂Ja<O�>K$遹�绽P!凉詖s��縂荘S8���5]a6騂�'2赸�Z"杖_�6� 馡郊计鶞噸殡O苿fJ敻檪tl6�波N�4bCd腱禓�6�/uFほhPE藯Xt蔠T崸諥>'幉
垩薮;珄a�/rナ揦葮炰鳋�樉曡璤穦∽吥柃喷Y� 4<玭燺B�8�#u8兓.L驗%G\2��9X[�v?叕堛C�?6Y�!@珓戆aR3��*宺�A�簼�)f5磅�2礄3�5j纽粞�"p
廋!阃犾懻\擏樷G%鷒r^�+`钢R
鮐閤\(K|啣恂r])�]錥P廡Y`瞤膹_�
鵜ima嘔r磉齗qA弦�谇p�0毑z%]�7巟f锧X胒扂?dZ氤zD韠玒r涋>妤I'm�-
A partial answer to my own question:
This Hyper-V guest VM had two accounts - a Microsoft account (kusha) and a local account (Chansey). A strange observation was that even though the local account was used by default to log into the desktop, only the Microsoft account's username appeared under C:\Users (i.e., C:\Users\kusha).
I created a brand-new VM with Windows 11 IoT LTSC and ensured it didn’t use a Microsoft account (meaning the system only had a local account). This resolved the issue.
So, it’s reasonable to suspect it was a Windows account-related problem. However, tonight I rebooted the old guest VM and found the issue no longer existed in the old guest VM.
Thus, the root cause still remains unclear (perhaps a reboot was required after installing OpenSSH Server).
If no one else responds, I’ll close this question in 2-3 days. Thanks.
I recommend using the dockerized version, docker compose to be more specific: https://docs.gitlab.com/install/docker/installation/#install-gitlab-by-using-docker-compose
This has nginx already in the GITLAB_OMNIBUS_CONFIG.
I am not aware of any "specific" configuration either, as mention, the WebSockets might be something extra the fiddle with. But if you put a reverse proxy in front of gitlab, disable the http_to_https redirect in omnibus config if the reverse proxy is already handling that
# Load the newly uploaded image
new_image_path = "/mnt/data/5B49AFEE-DAC2-486C-9BA8-445206C877B1.jpeg"
new_image = Image.open(new_image_path)
# Convert to OpenCV format
new_image_cv = cv2.cvtColor(np.array(new_image), cv2.COLOR_RGB2BGR)
# Upscale and enhance
upscaled_new_cv = cv2.resize(new_image_cv, None, fx=4, fy=4, interpolation=cv2.INTER_CUBIC)
enhanced_new_cv = cv2.detailEnhance(upscaled_new_cv, sigma_s=10, sigma_r=0.15)
enhanced_new_cv = cv2.edgePreservingFilter(enhanced_new_cv, flags=1, sigma_s=60, sigma_r=0.4)
# Convert back to PIL
final_enhanced_new_image = Image.fromarray(cv2.cvtColor(enhanced_new_cv, cv2.COLOR_BGR2RGB))
# Save final image
final_new_output_path = "/mnt/data/final_enhanced_uploaded_image.jpg"
final_enhanced_new_image.save(final_new_output_path)
final_new_output_path
I was able to fix an old S3 URL that looked like this:
https://s3.amazonaws.com/olson.host/nl6.jpg
By changing it to this:
Hello
The answer from Mike is not correct. J1939-21 contains only the most basic messages.
The diagnostic messages are in J1939-73 which also are also few messages, but very important.
Quite a big amount of PGNs and SPNs is defined in J1939-71
But if you only purchase these it will still be incomplete.
This is only a small part of all the data that you will see on a real J1939 CAN bus.
The vast majority of J1939 messages is defined in the SAE J1939-DA.
It comes with a huge Excel file of 15 MB, which is even more important than the PDF's.
But not even this document contains all messages!
If you want to get an impression of the complexity of J1939 I recommend to install HUD ECU Hacker which comes with some example logfiles, like from real Heavy Duty Kenworth Truck.
always use -Wall -Wextra -Werror when compiling
This may help a few people out there. I finally figured out that quite simply the title of one of my posts was too long. I reduced it down to two lines and the posts all lined up perfectly.