未解决
(.venv) (base) oscc:aiagent cc$ pip uninstall JWT
WARNING: Skipping JWT as it is not installed.
(.venv) (base) oscc:aiagent cc$ pip uninstall PyJWT
Found existing installation: PyJWT 2.10.1
Uninstalling PyJWT-2.10.1:
Would remove:
/Users/cc/Downloads/java_stu/aiagent/.venv/lib/python3.9/site-packages/PyJWT-2.10.1.dist-info/*
/Users/cc/Downloads/java_stu/aiagent/.venv/lib/python3.9/site-packages/jwt/*
Proceed (Y/n)? y
Successfully uninstalled PyJWT-2.10.1
(.venv) (base) oscc:aiagent cc$ pip install PyJWT=1.6.4
ERROR: Invalid requirement: 'PyJWT=1.6.4': Expected end or semicolon (after name and no valid version specifier)
PyJWT=1.6.4
^
Hint: = is not a valid operator. Did you mean == ?
(.venv) (base) oscc:aiagent cc$ pip install pyjwt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyjwt
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/ad/689f02752eeec26aed679477e80e632ef1b682313be70793d798c1d5fc8f/PyJWT-2.10.1-py3-none-any.whl (22 kB)
Installing collected packages: pyjwt
Successfully installed pyjwt-2.10.1
报错
import jwt
encoded_jwt = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
不行
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[19], line 2
1 import jwt
----> 2 encoded_jwt = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
AttributeError: module 'jwt' has no attribute 'encode'
For Java 21,
java -Xlog:class+load=info -cp your-app.jar com.myapp.Main
to show all modules attempted to be loaded.
Filter from there for Java packages as needed.
Diversity and multiculturalism are pillars of Australian society, and Young Academics makes it a priority to ensure all children in our care are given a safe and inclusive environment that fosters a sense of belonging and respect, regardless of cultural identity or background.
It is now widely recognised that the early years of life are the most important for learning. Research suggests that children who grow up in diverse and inclusive environments likely develop personality traits and characteristics that show empathy, compassion and a broader perspective. In contrast, children raised in a homogenous environment are less likely to accept or may struggle to understand differences.
Strategies for creating an inclusive early learning centre: Here are some practical strategies Young Academics has implemented to create a more inclusive and welcoming environment for every child:
Ensure that staff and educators are trained in cultural sensitivity and inclusion. Use diverse materials, books, toys, and images representing different cultures and identities. Celebrate cultural holidays and events like Diwali or Chinese New Year. Create a safe space for children to express their identities. Encourage cross-cultural friendships and interactions among children. Establish a zero-tolerance policy for bullying, discrimination, or exclusion. Positive outcomes of early childhood education and care programs that promote inclusion Early childhood education and care programs significantly impact young children’s cognitive, social, and emotional development. When coupled with intentional teaching of inclusion and diversity, this can even have a greater impact on children’s development:
Cultural appreciation: Programs that promote inclusion and diversity expose children to different cultures, languages, and traditions. To do this, our curriculum encourages children’s respect towards other cultures and beliefs from a young age. This exposure helps children develop a better understanding and appreciation of diversity and can contribute to developing their cultural identity. Improved social-emotional development: Inclusion and diversity in early childhood education and care programs provide children with the opportunity to interact with peers from different backgrounds, which helps them develop social-emotional skills such as empathy, respect, and tolerance. Children who attend these programs are more likely to develop positive attitudes towards diversity and have stronger social relationships. Increased family engagement: Early childhood education and care programs prioritising inclusion and diversity often involve families in their children’s education. These programs encourage families to share their cultural traditions and language, which helps build stronger relationships between families and educators. Better academic outcomes: Children attending early childhood education and care programs have a strong foundation in language and literacy, as well as critical thinking and problem-solving skills. Promoting equity: Inclusion and diversity in early childhood education and care programs can help promote equity by ensuring that all children have access to quality education regardless of their background or identity. These programs can help reduce educational disparities and allow all children to reach their full potential. At Young Academics, the formative years become our responsibility. Despite significant transitions, one thing remains constant—the multicultural composition of the Australian population. At each of our early learning centres, we foster positive relationships regarding community and citizenship so that the upcoming generations empathise and respect the differences within our society.
To get to know our programs and policies a little more, contact us today.
Had the same error. I'm running a Mac, Sequoia 15.4.1. I was able to resolve by opening a Terminal window, going to my Homestead root folder and runnning brew upgrade
And then running vagrant up again.
Once can print loop count of current thread group as
${__jm__MyLoopController__idx}
if your Threadgroup name is login , we need to change it as below
${__jm__login__idx}
Validation should run as soon as the user interacts with the field (e.g. on change or blur).
Error messages should show immediately when a user enters invalid data into a field (i.e. not just after clicking "Next").
How can I get real-time validation state just for the current step’s fields, and make the “Next” button reactive based on that?
Set all
mode
for your form. Read the API. Example:
const form = useForm({
resolver: zodResolver(resourceNoteFormSchema),
defaultValues: { note: '' },
mode: 'all'
});
The "Next" button should be disabled by default, and should only become active when all fields in the current step are valid.
Use getFieldState API to get field states for step + useWatch API to subscribe on step updates. Example:
const useStepValidity = (form, stepFields) => {
// Watch all current step fields so we re-render when they change
const watch = useWatch({ control: form.control, name: stepFields.map(({ name }) => name) });
return useMemo(() => {
return stepFields.every((stepField) => {
const { isDirty, invalid } = form.getFieldState(stepField.name);
return (isDirty || stepField.isOptional) && !invalid;
});
}, [form, stepFields, watch]);
};
Full Example :
const useStepValidity = (form, stepFields) => {
// Watch all current step fields so we re-render when they change
const watch = useWatch({ control: form.control, name: stepFields.map(({ name }) => name) });
return useMemo(() => {
return stepFields.every((stepField) => {
const { isDirty, invalid } = form.getFieldState(stepField.name);
return (isDirty || stepField.isOptional) && !invalid;
});
}, [form, stepFields, watch]);
};
const TestForm = () => {
const form = useForm({
mode: 'onChange',
defaultValues: {
firstName: '',
lastName: '',
email: ''
}
});
const { register } = form;
const isFirstStepReady = useStepValidity(form, [
{ name: 'firstName' },
{ name: 'lastName', isOptional: true }
]);
const isSecondStepReady = useStepValidity(form, [{ name: 'email' }]);
return (
<form>
<div>
<label>First Name</label>
<input {...register('firstName', { required: true })} />
</div>
<div>
<label>Last Name</label>
<input {...register('lastName')} />
</div>
<div>
<label>Email</label>
<input {...register('email', { required: true })} />
</div>
<p>First Step Ready: {isFirstStepReady ? 'Yes' : 'No'}</p>
<p>Second Step Ready: {isSecondStepReady ? 'Yes' : 'No'}</p>
</form>
);
};
NOTE: getFieldState
you should handle fields that optional but have some other validation rules (is it covered in the example).
This page has all the methods for the rest api: https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0&preserve-view=true
same Problems i fix this problema with Update tsconfig.json with following code.
"lib": [
"es2018",
"dom",
"ES2022", "dom", "dom.iterable"
]
or
"compilerOptions": {
"lib": ["ES2022", "dom", "dom.iterable"]
}
reference of error
I have a problem configuring bootstrap 5.3.0 in angular 15, popovers, tooltips and toasts no work
sad , tried it with : javascript:(function(){ document.querySelector('video').playbackRate = 2.0 ; })();
to speed up netflix video.
Only working for few seconds on netflix then back normal speed in firefox on linux
Using just cycle and the built-in zip you can also just do it like this.
from itertools import cycle
[char for _, char in zip(range(3),cycle(["a","b","c"]))]
This works because zip
just stop when an iterator is depleted.
You can, but you shouldn't. Vercel has a different approach to hosting backend works, and compared to your traditional setup it would be non-performant. I would suggest Heroku, but as the post below states, it is no longer free and may not be suited for you.
This was already answered in another StackOverflow post too, here. I recommend you reading and verifying as I'm newer. It also tells you how to set it up on up-to-date information, if you're still interested.
I am not able to comment below your question due to fewer reps, so mentioning my observation here.
@media ( max-width : 968px) {
#sidebar.active {
margin-left: 0;
transform: none;
}
}
The above lines are commented in your CSS file inside the media query. Can you remove the comments and check?
How does the plot works for the Multiple dates estimations?
use cvtss2sd before printf
transform float to double
This might be a session vs system daemon issue, can you try adding --connect qemu:///system
to your virt-install
command, and/or running it with sudo
? Some distributions default to using the qemu:///session
daemon by default, which doesn't have a default network. Unless you need this machine to run as your user or otherwise unprivileged?
After trying to deploy locallly first and via cloud run, I have fixed the issue. It is just need to refresh the ADC credentials, due to the validity status false (expired).
Here is the code :
def _get_credentials():
"""
Mendapatkan kredensial menggunakan Application Default Credentials (ADC).
Di lingkungan Cloud Run, ini akan menggunakan service account yang terkait.
"""
try:
logging.info("Attempting to get credentials using google.auth.default()...")
credentials, project_id = google.auth.default(scopes=SCOPES)
logging.info(f"Successfully obtained ADC. Project ID: {project_id}, Type: {type(credentials)}")
if hasattr(credentials, 'service_account_email'):
logging.info(f"ADC: Service Account Email (from ADC): {credentials.service_account_email}")
else:
logging.info("ADC: Service Account Email attribute not found (expected for user creds from gcloud auth application-default login, not typical for SA on Cloud Run).")
# Periksa validitas awal ADC
adc_initially_valid = credentials and credentials.valid
logging.info(f"ADC: Credentials initial valid check: {adc_initially_valid}")
# Jika kredensial ADC awalnya tidak valid, coba lakukan refresh.
# Ini akan memastikan upaya refresh selalu dilakukan jika ADC tidak langsung valid.
if not adc_initially_valid and credentials:
logging.warning("ADC: Credentials initially invalid. Attempting refresh...")
try:
credentials.refresh(Request())
logging.info("ADC: Credentials refresh attempt completed.") # Log setelah refresh dicoba
except Exception as adc_refresh_err:
logging.error(f"ADC: Failed during credentials refresh attempt: {adc_refresh_err}", exc_info=True)
# Biarkan credentials.valid akan diperiksa di bawah
if not credentials.valid:
# Ini seharusnya tidak terjadi di Cloud Run dengan SA yang dikonfigurasi dengan benar.
logging.warning("Credentials obtained but are not marked as valid after potential refresh. This might indicate an issue with the ADC setup or permissions.")
# Anda bisa memutuskan untuk mengembalikan None di sini jika validitas sangat krusial
# return None
return credentials
except google.auth.exceptions.DefaultCredentialsError as e:
logging.error(f"Failed to get Application Default Credentials: {e}", exc_info=True)
return None
except Exception as e:
logging.error(f"An unexpected error occurred while getting credentials: {e}", exc_info=True)
return None
@app.route('/check-adc')
def perform_adc_check():
"""Melakukan tes untuk mendapatkan ADC."""
logging.info("Performing ADC check...")
credentials = _get_credentials()
if credentials and credentials.valid:
logging.info("ADC check successful: Credentials obtained and are valid.")
project_id_msg = f"Project ID from ADC: {credentials.project_id}" if hasattr(credentials, 'project_id') else "Project ID not directly available on credentials object."
return f"ADC Check OK: Credentials obtained and are valid. {project_id_msg}", 200
elif credentials and not credentials.valid:
logging.error("ADC check found credentials, but they are NOT valid.")
return "ADC Check FAILED: Credentials obtained but are not valid.", 500
else:
logging.error("ADC check FAILED: Could not obtain credentials.")
return "ADC Check FAILED: Could not obtain credentials.", 500
Thanks
Build->Rebuild project
There's a Morphia 2.5 now that brings driver 5.0+ support, fwiw. 2.4.x and 2.5.x only differ in what drivers they support so the transition should be seamless for you.
My 50 cents to the topic. A one liner to get a cookie value.
I had to add a session check / creation to a webhook in n8n, so I used:
//get:
let sessionKey = $json.headers.cookie.matchAll(/([^;=\s]*)=([^;]*)/g).toArray().find(c => c[1] == 'SESSID')?.reduce((acc, v, k) => k == 2 ? decodeURIComponent(v) : acc, '') ?? '';
Yes, $json.headers.cookie would be need to be the correct request.headers?.cookie array.
n8n Workflow: https://community.n8n.io/t/how-to-set-a-real-session-id-through-the-browser-for-webhooks/113570/1
gist: https://gist.github.com/BananaAcid/42a5a4bdb95678154202ae391232c224
In postman, form data, click the ... new bulkedit button to add content type column, the for the document row choose application/json. look at this screenshot postman image
Here's how I got my TextBox to fill the form:
<DockPanel LastChildFill="True">
<TextBox TextWrapping="Wrap" Text="TextBox" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
AcceptsReturn="True" AcceptsTab="True" />
</DockPanel>
As of May 2025, github.copilot.editor.enableAutoCompletions
has been deprecated, instead use github.copilot.enable
:
"github.copilot.enable": {
"*": false
}
Clear Lockdown Folder on PC (Important!):
Navigate to:
C:\ProgramData\Apple\Lockdown
Delete everything in that folder. These files store pairing records that may be corrupted.
Reconnect your device and re-trust it.
other file is separate module, you need to create it as a package. With in the same project check config base path
If you are like me, and you only want to disable annoyances with quotation autocompletion, and continue having braces autocomplete, you may be in luck!
I just installed this plugin here to fix the usability issues:
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.QuoteCompletionFix
This fixed my issues with quote autocompletion in code files from what I can tell so far - but the issue still persists in plain text files. But I don't care about quote or brace autocompletion in text files, so I just disabled it entirely for only that file type by turning off the option located in the Visual Studio UI at:
Toolbar -> Tools -> Options -> Text Editor -> Plain Text -> General -> Automatic Brace Completion
Many thanks to Mads Kristensen for this highly useful extension!
I have this same issue. Were you able to solve it?
Ensure assets/images/logo.png
exists with correct casing and is listed under flutter > assets:
in pubspec.yaml
with proper 2-space indentation.
Run flutter clean
, then flutter pub get
, and restart the app (not just hot reload).
Check the debug console for asset loading errors.
That double colon (::) is invalid. It should be just:
background-color: #fff;
and
body {
background-color: rgba(255, 200, 100, 0.5);
color: #0af;
}
Also Make Sure: Your file css/style.css is actually located at project-root/css/style.css.
You’ve cleared browser cache or done a hard reload (Ctrl+Shift+R).
this would probably work, right?
list = ["alex", "jack", "sam", "patrick"]
output = ""
for i in list:
output += i + " "
print(output)
aaah how did you fix your issue?
Appearntly, when origin is an Azure resource, like a WebApps or static website, etc, you must also include the parameter
--origin-host-header "$STORAGE_WEB_APP_URL"
otherwise all requests will fail.
When the askyesno pops up, there are 2 buttons: Yes and No, but I want to customize these buttons to "OK" and "Cancel", for example.
Add the Askyesno
module import.
Snippet:
def confirm_choice():
response = askyesno("Are you sure you want to choose this text file?")
if response:
print("User chose Yes")
else:
print("User chose No")
To locate hotels near the Dubai World Trade Centre (DWTC) using Selenium, you can automate the process of extracting hotel information from online booking platforms. This involves writing scripts that navigate to hotel booking websites, input search criteria for DWTC, and scrape details such as hotel names, addresses, and prices. For a comprehensive list of accommodations near DWTC, you can refer to DWTC hotels, which provides curated options tailored to various preferences and budgets.
From MySQL documentation https://dev.mysql.com/doc/refman/8.4/en/create-temporary-table.html
CREATE TEMPORARY TABLE `TempTable`
SELECT * FROM ( WHATHEVER, UNION, ETC ) Z ;
SELECT * FROM `TempTable`;
If you pass the entire datos data frame to qcc it will include the Nro..Muestra column in the data analysis. You will get your desired plot if you drop that column from the data passed to qcc().
qcc(datos[,-1], type = "R")
You only perform one simultaneous.
Snippet:
def BuildApplication():
for key in jsonValueDict:
label = ttk.Label(topContainer, text="Insira a coluna " + jsonValueDict[key])
label.pack()
entry = ttk.Entry(topContainer)
entry.pack()
:
:
Screenshot:
As of now (3.14 beta), there's no internal mechanism in CPython to trigger any callback after a line executed.
Since Python 3.13, pdb has supported multi-line input natively.
@shrotter answered but removed their comment. suggestion was to try testvar="B3"
this worked, thanks!
Please give this a try. Defining RELEASE
as zero(0) or one(1) will directly impact the length of array filtered_data
... smaller if RELEASE
==1 ... which assumes you do Not want the full array of data for production/release.
Compiles and runs in both modes ( RELEASE
1 or 0 ); tested in Visual Studio just now.
#include <stdio.h>
#define RELEASE 0
#if RELEASE
#define MACRO_DATA 0
#else
#define THRESHOLD 5
#define MACRO_DATA \
X( 1 ) \
X( 8 ) \
X( 3 ) \
X( 12 ) \
X( 5 )
#define X(value) ((value) >= THRESHOLD ? value : -1),
#endif //RELASE
// Generate filtered array
int filtered_data[] = { MACRO_DATA };
int main()
{
printf("%d\n", filtered_data[0]);
return 0;
}
If you have this problem in your Composable Preview, you can downgrade the API level like this
@Preview(apiLevel = 34)
Or update your Android Studio
This formula will count the number of blank cells starting in the column that matches the time entered in $B$1
(rounded down to 10-minutes) and moving to the right.
=XMATCH("*",OFFSET(D$1:CX$1,ROW()-1,XMATCH(FLOOR($B$1,"010"),D$1:CX$1)-1),2)-1
Was this issue resolved? Because I have been facing the same issue
You can open in the AWS management console from the Lambda Code Explorer the timeline of the file. This allows you to go back and see the previous file changes.
You can open in the AWS management console from the Lambda Code Explorer the timeline of the file. This allows you to go back and see the previous file changes.
You can open in the AWS management console from the Lambda Code Explorer the timeline of the file. This allows you to go back and see the previous file changes.
step 1 . check indentation
step 2 . flutter clean
step 3. check image url again
step 4. flutter run
Select a project immediately to the right of Google Cloud in the top left of the screen.
You can query postgres as well as many other databases. It looks like it's pretty easy to integrate
Install the Composer Vendor on the server.
Install node modules -> and create the build file using the command: npm run build
So it will create the build files in the public dir.
Access the files from the public folder for the live domain. Hope it will work.
Also, you can addan .htaccess file, which will access the files from public/index.php
Adjusting Tailwind CSS v4 not to strip utility classes in combination with @apply in CSS Modules, you have to pick up your. css in content array of tailwind. config. js. For performance reasons, Tailwind no longer scans CSS for files by default. By explicitly adding '. /src/*/. css files to be processed by Tailwind on build time. That's important when you use @applying within module CSS files to cover off missing styles like bg-slate-700.
['. /src//*. {js,ts,jsx,tsx}', '. /src//*. css']
It is definitely possible to create projects in HTML and CSS only (I actually have done a few paid customer projects like that). Examples are:
JS is anyways not a requirement on a website, nowadays many animations and other functionality can be done in CSS, forms did always work without JS. JS is only needed for advanced functionality on the page.
The other thing that is required to publish a website is a web server that is properly set up and connected to the internet. Or a web space at a hosting provider, where the hosting provider is taking care of the web server.
As @JavierMR already said: The first thing where you need to use a programming language (like PHP, Python or Ruby, etc.) is on the server side, because the website will have reoccurring elements like menus that have to be placed on every page of the website, and you will usually not want to make every change on every page per hand. This can also be achieved by utilizing a pre-built CMS (Content Management System) like WordPress or the likes, which many hosting providers allow you to install on their website. By using a CMS or learning a server-side programming language yourself, you will then also be able to do more complex things, like storing data or user input in a database and retrieving that data again and showing it on the website (If you do that, take a good look at best practices and security guidelines, because as soon as you put something on the internet that takes data input, malicious forces will try to abuse it).
But ultimately you do not need all that to start making websites.
Run
flutter create .
in your project directory
This will create all necessary files (including missing files)
You’re encountering an issue because you’re trying to use your SoundManager from child views via @Environment, but you’re not injecting it from the parent view. Here’s what you should do to fix and improve the structure:
Since SoundManager is marked as @Observable
, you need to pass it down using the .environment(\_:)
modifier from your root view (ContentView). Otherwise, the child views won’t be able to access it and might crash at runtime.
.environment(soundManager)
Rather than having SoundManager read from UserDefaults or @AppStorage internally (which can cause timing issues or stale values), it’s more reliable to read the toggle value directly from the view using @AppStorage, and pass it to playSound() as a parameter:
try soundManager.playSound(sound: .confirmTone, soundStatus: soundStatus)
This makes your code more predictable and avoids syncing issues with persistent storage.
import AVKit
import SwiftUI
import Observation
@Observable
final class SoundManager {
var player: AVAudioPlayer?
var session: AVAudioSession = .sharedInstance()
enum SoundOption: String {
case posSound
case confirmTone
case positiveTone
}
// use here your toggle state from @AppStorage and pass as parameter
func playSound(sound: SoundOption, soundStatus: Bool) throws {
if soundStatus {
guard let url = Bundle.main.url(forResource: sound.rawValue, withExtension: ".wav") else { return }
do {
try session.setActive(true)
try session.setCategory(.playback)
player = try AVAudioPlayer(contentsOf: url)
try session.setActive(false)
player?.play()
} catch let error {
throw error
}
}
}
}
struct ContentView: View {
@Bindable var soundManager: SoundManager
@AppStorage("toggleStorage") var soundStatus = false
init(soundManager: SoundManager = SoundManager()) {
self.soundManager = soundManager
}
var body: some View {
NavigationStack {
VStack (alignment: .leading) {
List {
NavigationLink("Buy Tomatoes", destination: Feature1())
NavigationLink("Buy Potatoes", destination: Feature2())
Toggle(isOn: $soundStatus,
label: { Text("App Sound Confirmations") }
)
}
}
}
.environment(soundManager) //pass environment from here to your child views
}
}
struct Feature1: View {
@Environment(\.dismiss) var dismiss
@Environment(SoundManager.self) private var soundMgr
@AppStorage("toggleStorage") var soundStatus = false // Read toggle value directly from AppStorage here
@State private var error: Error?
var body: some View {
VStack {
Text("Feature 1")
.font(.title)
Button {
do {
// Pass soundStatus to the playSound function
try soundMgr.playSound(sound: .posSound, soundStatus: soundStatus)
} catch {
self.error = error
}
dismiss()
} label: {
Text("Purchase Tomatoes?")
}
}
}
}
struct Feature2: View {
@Environment(\.dismiss) var dismiss
@Environment(SoundManager.self) private var soundMgr
@AppStorage("toggleStorage") var soundStatus = false // Read toggle value directly from AppStorage here
@State private var error: Error?
var body: some View {
VStack {
Text("Feature 2")
.font(.title)
Button {
do {
// Pass soundStatus to the playSound function
try soundMgr.playSound(sound: .posSound, soundStatus: soundStatus)
} catch {
self.error = error
}
dismiss()
} label: {
Text("Purchase Potatoes?")
}
}
}
}
Querystreams.com
It does quite a few other databases as well
Put this in the top of your CSS. I tried all the other hacks, but this worked:
p {
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust
You definitely can build a web page with html and css. Although if you want to perform some kind of logic (client or server side) it would be a little bit more complex than that.
If you are a beginner in web development, first of all try languages like js or python to do basic stuff (scripting, basic web page logic) and try to identify what do you like more, and go for it, at the end on web development you will have like front and backend specialist and after some time you can become a full stack. You should definitely start with the stuff that calls you into action.
Thanks for the answer.
I will try this workaround tomorrow, but I would prefer not to change the module (to make it possible to upgrade to future versions of the module without sideeffects.
My stupid mistake was renaming the json file "credentials.json" in windows when it already had the .json extension. So quickstart.py could not find my "credentials.json.json" file. Try listing the contents of your directory to make sure you have the name right.
This error has issue github.com/david-lev/pywa/issues/115 The fix for this issue github.com/seboraid/pywa
I am in a coding bootcamp I have a tutor that insists that [`$events'] will work in the code but have not found fix. I know you discuss ['$events'] as not being adequate is there anywhere else in the code that can be changed to make this work? //Copy reason why stringify (idea where they coming from) Why Stringify? Why use ${allLocations} and not just allLocations? Well, it’s important to always avoid directly putting complex data-type variables into useEffect’s dependency array.
This is because such variables have memory references stored in them that point somewhere else in the memory to where the array values are.
This is in contrast to primitive data-type variables, such as strings.
Take a look at the following illustrations to get a better idea:
Diagram demonstrating potential memory reference difference when using complex data type variables
Figure 4. Memory reference #6441AFFF doesn't equal memory reference #FCC3177A. As a result, useEffect() will think the state has been changed, despite both pointing to arrays that have the same values. The useEffect() callback will be executed, which isn't supposed to happen.
Now let’s look at a situation where useEffect()'s dependency array contains primitive values, such as strings. In this case, the variable stores the actual value rather than a reference to the value. Let’s assume that you have a string dependency, name, where both the old and new values are "test":
Diagram showing variable storing actual value, rather than a reference to the value
Figure 5. "test" does equal "test". As a result, useEffect() will think the state hasn't been changed, and the callback won't be executed, which is the expected behavior.
This is why you would use ${allLocations} to compare the lists after they’re converted to a string (you could also use JSON.stringify(allLocations) to convert it to a string). useEffect() will compare string representations of the arrays, not their memory references.
Keep in mind this is one of many ways that you can compare arrays or objects. In fact, this is one of the more inefficient options, but since it’s so simple, it’s easy to use here.
For a more advanced approach, you could use React hooks like useCallback and useMemo.
Had a similar problem with gcc-15
i installed a fresh msys Environment and downloaded below packages from https://repo.msys2.org/mingw/
pacman -U mingw-w64-i686-gcc-libs-14.2.0-3-any.pkg.tar.zst
pacman -U mingw-w64-i686-gcc-14.2.0-3-any.pkg.tar.zst
pacman -Ss base-devel
Granting employment notice /
1502515/27/02/2025
Programming date: 23/06/2025
16:10
It's personal data
Name
Khatri
Sex
F
Citizenship
NEPAL
detachment notice
Home address
Bardiya
Nunme previous
First name
Renu
Civil status
Unmarried/a
Home
NEPAL
Date of birth
27/10/2001
Previous first name
Sass has a NPM Package available to help with migration: sass-migrator.
I recently used it on a large codebase and while it didn't do the complete migration, it did a big part of it.
You have here the link to the npm package and you can install it with npm i --save-dev sass-migrator
.
Once you install it run sass-migrator <migration> <entrypoint.scss...>
on the CLI.
According to the documentation:
The Sass migrator automatically updates your Sass files to help you move on to the latest and greatest version of the language. Each of its commands migrates a single feature, to give you as much control as possible over what you update and when.
This option (abbreviated -d) tells the migrator to change not just the stylesheets that are explicitly passed on the command line, but also any stylesheets that they depend on using the @use rule, @forward rule, or @import rule.
This option (abbreviated -I) tells the migrator a load path where it should look for stylesheets. It can be passed multiple times to provide multiple load paths.
This comando "rm -r ~/ .eclipse/" delete all archives of Ubunt, without "Ctrl+Z".
I lost all my files. Good luck to whoever posted this here.
You should migrate to Nextjs if possible (i'm not a front end dev)
En las versiones de Teradata posteriores a 16.20 se tiene que calcular por el espacio CDS:
Select SUM(CurPermCDS) from DBC.CDSTableSizeV;
Es necesario tenerlo bien definido, si alguna BBDD no es correcta o no se considera como espacio CDS se tendrá que excluir con las macros de SystemFE. El tamaño total será en bytes
SystemFE.CDS_AddExclusion('BBDD','*');----------> Excluir todos los objetos de la BBDD en CDS
do you have any solutions for this ?
i got the same problem using the module federation ( in modernjs)
There might be a problem with the cell numbering changing at run so that the current cell has a larger index than the ones below.
nginx expects a datagram socket, not a stream socket. you can create a datagram socket like this:
use std::os::unix::net::UnixDatagram;
fn main() -> std::io::Result<()> {
let socket_path = format!(
"{}/logtool.sock",
std::env::var("XDG_RUNTIME_DIR").unwrap_or("/tmp".to_string())
);
let _ = std::fs::remove_file(&socket_path);
let listener = UnixDatagram::bind(socket_path)?;
loop {
let mut buf = vec![0; 1_024];
let read = listener.recv(&mut buf)?;
let buf = &buf[..read];
dbg!(buf);
}
}
serverComponentsExternalPackages is depreciated and no more supported. Here is a screenshot from their official site
This is an interesting and ambitious idea! Tokenizing research contributions could indeed provide more incentives for innovation and transparency. It might also empower individual researchers by giving them ownership over their work. However, I wonder how challenges like quality control, peer review, and preventing misuse would be handled in such a decentralized setup. Also, would there be a standard way to evaluate the value of each tokenized contribution?
You can try groupby()
along with sum()
to group the data by the 'date'
column and calculate the total sales per day.
result = df.groupby('date')['sales'].sum().reset_index()
If you'd like to keep date
as the index, you can remove .reset_index()
.
For flutter iOS I did the first step that mentioned by Sai Prashanth in the appDelegate.swift file AND
I added the Encoded app ID in the URL schemes [check image]. you can find the Encoded app ID in your firebase project settings in the area where you download the GoogleService-Info.plist file
My test shows: yes.
test before & after running (c:\usp\jobhp\ml_service_demo1\.conda) C:\usp\jobhp\ml_service_demo1>conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 pytorch-cuda=12.1 -c pytorch -c nvidia
The increment of space taken:
24.9GB-16.2GB=8.7GB
The folder that takes the actual space:
C:\Users\nshln\miniconda3\pkgs - 8.87GB
The folder that appears to take up space, but actually not, it uses hardlink:
C:\usp\jobhp\ml_service_demo1 - 6.27GB
terminal output:
(c:\usp\jobhp\ml_service_demo1\.conda) C:\usp\jobhp\ml_service_demo1>conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 pytorch-cuda=12.1 -c pytorch -c nvidia
Channels:
- pytorch
- nvidia
- defaults
Platform: win-64
Collecting package metadata (repodata.json): -
done
Solving environment: done
## Package Plan ##
environment location: c:\usp\jobhp\ml_service_demo1\.conda
added / updated specs:
- pytorch-cuda=12.1
- pytorch==2.5.1
- torchaudio==2.5.1
- torchvision==0.20.1
The following packages will be downloaded:
package | build
---------------------------|-----------------
blas-1.0 | mkl 6 KB
brotli-python-1.0.9 | py311h5da7b33_9 346 KB
certifi-2025.4.26 | py311haa95532_0 158 KB
charset-normalizer-3.3.2 | pyhd3eb1b0_0 44 KB
cuda-cccl-12.9.27 | 0 16 KB nvidia
cuda-cccl_win-64-12.9.27 | 0 1.1 MB nvidia
cuda-cudart-12.1.105 | 0 964 KB nvidia
cuda-cudart-dev-12.1.105 | 0 549 KB nvidia
cuda-cupti-12.1.105 | 0 11.6 MB nvidia
cuda-libraries-12.1.0 | 0 1 KB nvidia
cuda-libraries-dev-12.1.0 | 0 1 KB nvidia
cuda-nvrtc-12.1.105 | 0 73.2 MB nvidia
cuda-nvrtc-dev-12.1.105 | 0 16.5 MB nvidia
cuda-nvtx-12.1.105 | 0 41 KB nvidia
cuda-opencl-12.9.19 | 0 17 KB nvidia
cuda-opencl-dev-12.9.19 | 0 62 KB nvidia
cuda-profiler-api-12.9.19 | 0 19 KB nvidia
cuda-runtime-12.1.0 | 0 1 KB nvidia
cuda-version-12.9 | 3 17 KB nvidia
filelock-3.17.0 | py311haa95532_0 38 KB
freeglut-3.4.0 | hd77b12b_0 133 KB
freetype-2.13.3 | h0620614_0 554 KB
giflib-5.2.2 | h7edc060_0 105 KB
gmp-6.3.0 | h537511b_0 330 KB
gmpy2-2.2.1 | py311h827c3e9_0 205 KB
intel-openmp-2023.1.0 | h59b6b97_46320 2.7 MB
jinja2-3.1.6 | py311haa95532_0 359 KB
jpeg-9e | h827c3e9_3 334 KB
khronos-opencl-icd-loader-2024.05.08| h8cc25b3_0 100 KB
lcms2-2.16 | h62be587_1 568 KB
lerc-4.0.0 | h5da7b33_0 185 KB
libcublas-12.1.0.26 | 0 39 KB nvidia
libcublas-dev-12.1.0.26 | 0 348.3 MB nvidia
libcufft-11.0.2.4 | 0 6 KB nvidia
libcufft-dev-11.0.2.4 | 0 102.6 MB nvidia
libcurand-10.3.10.19 | 0 46.7 MB nvidia
libcurand-dev-10.3.10.19 | 0 242 KB nvidia
libcusolver-11.4.4.55 | 0 30 KB nvidia
libcusolver-dev-11.4.4.55 | 0 95.7 MB nvidia
libcusparse-12.0.2.55 | 0 12 KB nvidia
libcusparse-dev-12.0.2.55 | 0 162.5 MB nvidia
libdeflate-1.22 | h5bf469e_0 180 KB
libjpeg-turbo-2.0.0 | h196d8e1_0 618 KB
libnpp-12.0.2.50 | 0 305 KB nvidia
libnpp-dev-12.0.2.50 | 0 135.6 MB nvidia
libnvjitlink-12.1.105 | 0 67.3 MB nvidia
libnvjitlink-dev-12.1.105 | 0 13.8 MB nvidia
libnvjpeg-12.1.1.14 | 0 5 KB nvidia
libnvjpeg-dev-12.1.1.14 | 0 2.4 MB nvidia
libpng-1.6.39 | h8cc25b3_0 369 KB
libtiff-4.7.0 | h404307b_0 1.1 MB
libuv-1.48.0 | h827c3e9_0 322 KB
libwebp-1.3.2 | h18467be_1 83 KB
libwebp-base-1.3.2 | h3d04722_1 303 KB
lz4-c-1.9.4 | h2bbff1b_1 152 KB
markupsafe-3.0.2 | py311h827c3e9_0 39 KB
mkl-2023.1.0 | h6b88ed4_46358 155.9 MB
mkl-service-2.4.0 | py311h827c3e9_2 67 KB
mkl_fft-1.3.11 | py311h827c3e9_0 176 KB
mkl_random-1.2.8 | py311hea22821_0 266 KB
mpc-1.3.1 | h827c3e9_0 85 KB
mpfr-4.2.1 | h56c3642_0 266 KB
mpmath-1.3.0 | py311haa95532_0 1.0 MB
networkx-3.4.2 | py311haa95532_0 3.1 MB
numpy-2.0.1 | py311hdab7c0b_1 11 KB
numpy-base-2.0.1 | py311hd01c5d8_1 9.6 MB
openjpeg-2.5.2 | h9b5d1b5_1 268 KB
pillow-11.1.0 | py311hea0d53e_1 916 KB
pysocks-1.7.1 | py311haa95532_0 36 KB
pytorch-2.5.1 |py3.11_cuda12.1_cudnn9_0 1.21 GB pytorch
pytorch-cuda-12.1 | hde6ce7c_6 7 KB pytorch
pytorch-mutex-1.0 | cuda 3 KB pytorch
pyyaml-6.0.2 | py311h827c3e9_0 205 KB
requests-2.32.3 | py311haa95532_1 128 KB
sympy-1.13.3 | py311haa95532_1 15.5 MB
tbb-2021.8.0 | h59b6b97_0 149 KB
torchaudio-2.5.1 | py311_cu121 7.2 MB pytorch
torchvision-0.20.1 | py311_cu121 7.9 MB pytorch
urllib3-2.3.0 | py311haa95532_0 242 KB
win_inet_pton-1.1.0 | py311haa95532_0 10 KB
yaml-0.2.5 | he774522_0 62 KB
zstd-1.5.6 | h8880b57_0 708 KB
------------------------------------------------------------
Total: 2.47 GB
The following NEW packages will be INSTALLED:
blas pkgs/main/win-64::blas-1.0-mkl
brotli-python pkgs/main/win-64::brotli-python-1.0.9-py311h5da7b33_9
certifi pkgs/main/win-64::certifi-2025.4.26-py311haa95532_0
charset-normalizer pkgs/main/noarch::charset-normalizer-3.3.2-pyhd3eb1b0_0
cuda-cccl nvidia/win-64::cuda-cccl-12.9.27-0
cuda-cccl_win-64 nvidia/win-64::cuda-cccl_win-64-12.9.27-0
cuda-cudart nvidia/win-64::cuda-cudart-12.1.105-0
cuda-cudart-dev nvidia/win-64::cuda-cudart-dev-12.1.105-0
cuda-cupti nvidia/win-64::cuda-cupti-12.1.105-0
cuda-libraries nvidia/win-64::cuda-libraries-12.1.0-0
cuda-libraries-dev nvidia/win-64::cuda-libraries-dev-12.1.0-0
cuda-nvrtc nvidia/win-64::cuda-nvrtc-12.1.105-0
cuda-nvrtc-dev nvidia/win-64::cuda-nvrtc-dev-12.1.105-0
cuda-nvtx nvidia/win-64::cuda-nvtx-12.1.105-0
cuda-opencl nvidia/win-64::cuda-opencl-12.9.19-0
cuda-opencl-dev nvidia/win-64::cuda-opencl-dev-12.9.19-0
cuda-profiler-api nvidia/win-64::cuda-profiler-api-12.9.19-0
cuda-runtime nvidia/win-64::cuda-runtime-12.1.0-0
cuda-version nvidia/noarch::cuda-version-12.9-3
filelock pkgs/main/win-64::filelock-3.17.0-py311haa95532_0
freeglut pkgs/main/win-64::freeglut-3.4.0-hd77b12b_0
freetype pkgs/main/win-64::freetype-2.13.3-h0620614_0
giflib pkgs/main/win-64::giflib-5.2.2-h7edc060_0
gmp pkgs/main/win-64::gmp-6.3.0-h537511b_0
gmpy2 pkgs/main/win-64::gmpy2-2.2.1-py311h827c3e9_0
intel-openmp pkgs/main/win-64::intel-openmp-2023.1.0-h59b6b97_46320
jinja2 pkgs/main/win-64::jinja2-3.1.6-py311haa95532_0
jpeg pkgs/main/win-64::jpeg-9e-h827c3e9_3
khronos-opencl-ic~ pkgs/main/win-64::khronos-opencl-icd-loader-2024.05.08-h8cc25b3_0
lcms2 pkgs/main/win-64::lcms2-2.16-h62be587_1
lerc pkgs/main/win-64::lerc-4.0.0-h5da7b33_0
libcublas nvidia/win-64::libcublas-12.1.0.26-0
libcublas-dev nvidia/win-64::libcublas-dev-12.1.0.26-0
libcufft nvidia/win-64::libcufft-11.0.2.4-0
libcufft-dev nvidia/win-64::libcufft-dev-11.0.2.4-0
libcurand nvidia/win-64::libcurand-10.3.10.19-0
libcurand-dev nvidia/win-64::libcurand-dev-10.3.10.19-0
libcusolver nvidia/win-64::libcusolver-11.4.4.55-0
libcusolver-dev nvidia/win-64::libcusolver-dev-11.4.4.55-0
libcusparse nvidia/win-64::libcusparse-12.0.2.55-0
libcusparse-dev nvidia/win-64::libcusparse-dev-12.0.2.55-0
libdeflate pkgs/main/win-64::libdeflate-1.22-h5bf469e_0
libjpeg-turbo pkgs/main/win-64::libjpeg-turbo-2.0.0-h196d8e1_0
libnpp nvidia/win-64::libnpp-12.0.2.50-0
libnpp-dev nvidia/win-64::libnpp-dev-12.0.2.50-0
libnvjitlink nvidia/win-64::libnvjitlink-12.1.105-0
libnvjitlink-dev nvidia/win-64::libnvjitlink-dev-12.1.105-0
libnvjpeg nvidia/win-64::libnvjpeg-12.1.1.14-0
libnvjpeg-dev nvidia/win-64::libnvjpeg-dev-12.1.1.14-0
libpng pkgs/main/win-64::libpng-1.6.39-h8cc25b3_0
libtiff pkgs/main/win-64::libtiff-4.7.0-h404307b_0
libuv pkgs/main/win-64::libuv-1.48.0-h827c3e9_0
libwebp pkgs/main/win-64::libwebp-1.3.2-h18467be_1
libwebp-base pkgs/main/win-64::libwebp-base-1.3.2-h3d04722_1
lz4-c pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_1
markupsafe pkgs/main/win-64::markupsafe-3.0.2-py311h827c3e9_0
mkl pkgs/main/win-64::mkl-2023.1.0-h6b88ed4_46358
mkl-service pkgs/main/win-64::mkl-service-2.4.0-py311h827c3e9_2
mkl_fft pkgs/main/win-64::mkl_fft-1.3.11-py311h827c3e9_0
mkl_random pkgs/main/win-64::mkl_random-1.2.8-py311hea22821_0
mpc pkgs/main/win-64::mpc-1.3.1-h827c3e9_0
mpfr pkgs/main/win-64::mpfr-4.2.1-h56c3642_0
mpmath pkgs/main/win-64::mpmath-1.3.0-py311haa95532_0
networkx pkgs/main/win-64::networkx-3.4.2-py311haa95532_0
numpy pkgs/main/win-64::numpy-2.0.1-py311hdab7c0b_1
numpy-base pkgs/main/win-64::numpy-base-2.0.1-py311hd01c5d8_1
openjpeg pkgs/main/win-64::openjpeg-2.5.2-h9b5d1b5_1
pillow pkgs/main/win-64::pillow-11.1.0-py311hea0d53e_1
pysocks pkgs/main/win-64::pysocks-1.7.1-py311haa95532_0
pytorch pytorch/win-64::pytorch-2.5.1-py3.11_cuda12.1_cudnn9_0
pytorch-cuda pytorch/win-64::pytorch-cuda-12.1-hde6ce7c_6
pytorch-mutex pytorch/noarch::pytorch-mutex-1.0-cuda
pyyaml pkgs/main/win-64::pyyaml-6.0.2-py311h827c3e9_0
requests pkgs/main/win-64::requests-2.32.3-py311haa95532_1
sympy pkgs/main/win-64::sympy-1.13.3-py311haa95532_1
tbb pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0
torchaudio pytorch/win-64::torchaudio-2.5.1-py311_cu121
torchvision pytorch/win-64::torchvision-0.20.1-py311_cu121
urllib3 pkgs/main/win-64::urllib3-2.3.0-py311haa95532_0
win_inet_pton pkgs/main/win-64::win_inet_pton-1.1.0-py311haa95532_0
yaml pkgs/main/win-64::yaml-0.2.5-he774522_0
zstd pkgs/main/win-64::zstd-1.5.6-h8880b57_0
Proceed ([y]/n)? y
find the hard link of one file by fsutil hardlink list <your_path>
nsht@AZIH C:\Users\nshln
$ fsutil hardlink list "C:/usp/jobhp/ml_service_demo1/.conda/Lib/site-packages/torch/lib/torch_cuda.dll"
\Users\nshln\miniconda3\pkgs\pytorch-2.5.1-py3.11_cuda12.1_cudnn9_0\Lib\site-packages\torch\lib\torch_cuda.dll
\usp\jobhp\ml_service_demo1\.conda\Lib\site-packages\torch\lib\torch_cuda.dll
not important:
There is a related topic for a javascript node_modules
package manager pnpm
:
javascript
~= python
pnpm
~= conda
npm
~= pip
node_modules
~= .venv
/ .conda
Why does my
node_modules
folder use disk space if packages are stored in a global store?pnpm creates hard links from the global store to the project's
node_modules
folders. Hard links point to the same place on the disk where the original files are. So, for example, if you havefoo
in your project as a dependency and it occupies 1MB of space, then it will look like it occupies 1MB of space in the project'snode_modules
folder and the same amount of space in the global store. However, that 1MB is the same space on the disk addressed from two different locations. So in totalfoo
occupies 1MB, not 2MB.For more on this subject:
- Why do hard links seem to take the same space as the originals?
- A thread from the pnpm chat room
- An issue in the pnpm repo
Does it work on Windows?
Short answer: Yes. Long answer: Using symbolic linking on Windows is problematic to say the least, however, pnpm has a workaround. For Windows, we use junctions instead.
more related:
pnpm like installation mode to save space · Issue #3487 · python-poetry/poetry
https://github.com/python-poetry/poetry/issues/3487
python - Does anaconda support hardlink in Windows? - Stack Overflow
https://stackoverflow.com/questions/75657317/does-anaconda-support-hardlink-in-windows
pnpm for Python · pnpm · Discussion #3164
https://github.com/orgs/pnpm/discussions/3164
- $>"
- **Use conda environments for isolation**
- - Create a conda environment to isolate any changes pip makes.
- Environments take up little space thanks to hard links.
<$
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
- $>"
There’s not a whole lot to this. [Conda tries to use hard links whenever possible](https://github.com/conda/conda/blob/4.6.7/conda/gateways/disk/create.py#L297-L337). Hard links increase the reference count on disk to a specific file, without actually copying its contents.
<$
https://www.anaconda.com/blog/understanding-and-improving-condas-performance
pnpm, but for Python? - DEV Community
https://dev.to/ghost/pnpm-but-for-python-3hb3
header 1 | header 2 |
---|---|
cell 3 | cell 1 |
cell 4 | cell 2 |
For those who searched here, do check if your extension is missing win_delay_load_hook.c
.
@zarzou did you find any solution? I am facing the same issue.
Use these two commands:
$ adb kill-server
$ adb start-server
Also go to your mobile "Developer Options" and then close and open the "USB Debugging" option.
I seem to be having the same problem. Making the repository in GitHub didn't help.
? For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository)
! The provided authorization cannot be used with this repository. If this repository is in an organization, did you remember to grant access?
i Action required: Visit this URL to ensure access has been granted to the appropriate organization(s) for the Firebase CLI GitHub OAuth App:
https://github.com/settings/connections/applications/89cf50f02ac6aaed3484
√ For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository)
kellywr10/repository1
Error: Request to https://api.github.com/repos/undefined had HTTP Error: 404, Not Found
I tried to "ensure access has been granted to the appropriate organizations" but a) I'm not sure who the appropriate organization is, and b) I'm not sure how to grant access (should I make it publicly visible? add collaborators? something else?).
To achieve GROUP BY
with pagination in Spring Data JPA, you need to use the Criteria API within a custom repository implementation. You'll construct a query with groupBy()
and having()
to filter by department, and then apply pagination using setFirstResult()
and setMaxResults()
. A separate count query is needed for the total number of groups for pagination metadata. The result will be a Page<Employee>
, where each Employee
represents one department group
You must have the contacts app installed to make changes to an existing contact.
The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers.
With the alternate approach after the statefulset recreated, the downstream pods(which was orphan) will get restarted simultaneously. This will create a downtime.
Do you need 100% Finance? I can service your financial need with less payback problem that is why we fund you for just 2%. Whatever your circumstances, self employed, retired, have a poor credit rating, we could help. Flexible repayment over 1 to 30 yea .Contact us at:[email protected]
The option options.update_state_every_iteration = true;
enables to get updated solutions in callback
CSS will not apply a transition effect to the mobile navbar element when you use display: none;
in the .closed
style rule. Remove or comment out this rule setting.
In addition, remove right: -200;
from your sample and add the following:
.navbaritensmobile {
left: 100%;
transform: translateX(0);
transition: transform 0.5s ease-in-out;
}
This places the left edge of the mobile navbar element off-screen at the right side.
When you display the mobile navbar element, use a transform
that transitions the mobile navbar element to the left by the width of the navbar (200px
in your sample).
.navbaritensmobile.open {
transform: translateX(-200px);
}
Here's a working sample with minimal changes to your sample code. It includes the modifications listed above.
function injectNavbar() {
const navbarHTML = `
<nav class="navigationbar">
<div class="navbarcontainer">
<div class="navbaritens navbaritens1">
<a href="/" class="navbarlogo"><img src="images/RMLevel.png" alt="Navigation Bar Logo"></a>
</div>
<button class="navbaritens navbaritens2 navbarmenuhamburger" onclick="toggleMobileMenu()">
<span class="lines line1"></span>
<span class="lines line2"></span>
<span class="lines line3"></span>
</button>
<div class="navbaritens navbaritens3">
<a href="/" class="navbaritem">Início</a>
<a href="/comprar.html" class="navbaritem">Comprar</a>
<a href="/empresas.html" class="navbaritem">Empresas</a>
<a href="/eventos.html" class="navbaritem">Eventos</a>
<a href="/manutencao.html" class="navbaritem">Manutenção</a>
<a href="/contato.html" class="navbaritem">Contato</a>
</div>
</div>
</nav>
<div class="navbaritensmobile closed">
<a href="/" class="navbaritem mobile-item">Início</a>
<a href="/comprar.html" class="navbaritem mobile-item">Comprar</a>
<a href="/empresas.html" class="navbaritem mobile-item">Empresas</a>
<a href="/eventos.html" class="navbaritem mobile-item">Eventos</a>
<a href="/manutencao.html" class="navbaritem mobile-item">Manutenção</a>
<a href="/contato.html" class="navbaritem mobile-item">Contato</a>
</div>
`;
document.querySelectorAll('.navbarplaceholder').forEach(placeholder => {
placeholder.insertAdjacentHTML('beforeend', navbarHTML);
});
}
document.addEventListener('DOMContentLoaded', injectNavbar());
function toggleMobileMenu() {
const navbarItensMobile = document.querySelector(".navbaritensmobile");
const hamburgerButton = document.querySelector(".navbarmenuhamburger");
if (navbarItensMobile.classList.contains("closed")) { //Abre o menu
navbarItensMobile.classList.add('open');
navbarItensMobile.classList.remove('closed');
hamburgerButton.classList.add('xshape'); // Add 'open' to the button
hamburgerButton.classList.remove('regularshape'); // Ensure 'closed' is removed from button
}
else if (navbarItensMobile.classList.contains("open")) { //Fecha o menu
navbarItensMobile.classList.add('closed');
navbarItensMobile.classList.remove('open');
hamburgerButton.classList.add('normalshape'); // Add 'open' to the button
hamburgerButton.classList.remove('xshape'); // Ensure 'closed' is removed from button
}
else { //Caso o menu não tenha sido aberto ou fechado, adiciona a classe closed
navbarItensMobile.classList.add('closed');
navbarItensMobile.classList.remove('open');
console.error("Elemento '.navbaritensmobile' não encontrado!");
}
hamburgerButton.classList.toggle("change");
}
.navbaritensmobile {
position: fixed;
top: 64px;
height: calc(100% - 64px);
border-radius: 5% 0 0 5%;
width: 200px;
left: 100%;
display: grid;
grid-template-rows: auto;
background-color: #242738;
padding: 20px 0;
padding-top: 64px;
box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
z-index: 8888;
transform: translateX(0);
transition: transform 0.5s ease-in-out;
}
.navbaritensmobile.open {
opacity: 1;
transform: translateX(-200px);
}
@media (max-width: 960px) {
.navbarmenuhamburger {
display: block;
/* Show on smaller screens */
}
.closed {
/*display: none;*/
/* Hide the menu items on smaller screens */
}
.open {
display: grid;
/* Show the menu items on smaller screens */
}
.navbaritens2.open {
display: flex;
/* Show the menu when the 'open' class is applied */
}
.navbaritens3 {
display: none;
/* Hide the original menu items on smaller screens */
}
}
/* https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_menu_icon_js */
.navbarmenuhamburger {
display: inline-block;
cursor: pointer;
}
.line1, .line2, .line3 {
display: block;
width: 35px;
height: 5px;
background-color: #333;
margin: 6px 0;
transition: 0.4s;
}
.change .line1 {
transform: translate(0, 11px) rotate(-45deg);
}
.change .line2 {
opacity: 0;
}
.change .line3 {
transform: translate(0, -11px) rotate(45deg);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home</title>
</head>
<body>
<header class="navbarplaceholder"></header>
<div class="container">
<main role="main" class="pb-3">
<h1>Home</h1>
</main>
</div>
</body>
</html>
Just an update went ubto kivy school website and followed the kivy wsl install instructions which sorted it out snd a kot of sh, ndk, adb probs , i would reccomend follwing their set up
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="id", insertable = false, updatable = false)
private Long id;
Add @Column
annotation to your id field so that hibernate will not include id column when generating insert queries.
html{
background-attachment: fixed;
background-size: cover;
}
Currently FVM does not auto detect which Flutter version to run a project with except you specify using
fvm use <flutter_version>
Also, you can read more on FVM from pub.dev
I'm not 100% if I understand your question, but I think you want to remove the /category/
base? Go to Settings > Permalinks > Choose Custom Structure
and choose /%postname%/
(which is your /subsub/
example). Then to remove the base (your /sub/
), add a .
to the Category Base
field near the bottom under Optional
.
In addition @ReDragon said:
add set matchit
to .ideavimrc
add let b:match_words = '<:>,<tag>:</tag>'
to .ideavimrc
""" Plugins -------------------------------
set matchit
""" Plugin settings -------------------------
let b:match_words = '<:>,<tag>:</tag>'
And it should be good
For anyone still having this problem. Use Zod V4.. That one fixes this issue...
I have taken your code and tried to show the stock status of product instead, but something is off cause it gets stuck in loading, do you have any idea?
// Add new column
function filter_woocommerce_admin_order_preview_line_item_columns( $columns, $order ) {
// Add a new column
$new_column['stock'] = __( 'Stock', 'woocommerce' );
// Return new column as first
return $new_column + $columns;
}
add_filter( 'woocommerce_admin_order_preview_line_item_columns', 'filter_woocommerce_admin_order_preview_line_item_columns', 10, 2 );
function filter_woocommerce_admin_order_preview_line_item_column_stock( $html, $item, $item_id, $order ) {
// Get product object
$product_object = is_callable( array( $item, 'get_product' ) ) ? $item->get_product() : null;
$product = $item->get_product();
// if product is on backorder and backorder is allowed (adjust accordingly to your shop setup)
if ( $product->is_on_backorder( $item['quantity'] ) ) {
echo '<p style="color:#eaa600; font-size:18px;">Διαθέσιμο 4 Έως 10 Ημέρες</p>';
}
// else do this
else {
echo '<p style="color:#83b735; font-size:18px;">Άμεσα Διαθέσιμο</p>';
}
add_filter( 'woocommerce_admin_order_preview_line_item_column_stock', 'filter_woocommerce_admin_order_preview_line_item_column_stock', 10, 4 );
// CSS style
function add_order_notes_column_style() {
$css = '.wc-order-preview .wc-order-preview-table td, .wc-order-preview .wc-order-preview-table th { text-align: left; }';
wp_add_inline_style( 'woocommerce_admin_styles', $css );
}
add_action( 'admin_print_styles', 'add_order_notes_column_style' );
Sorry for my english. Open shortcuts, go to "endLine". Right click -> add shortcut -> press ctrl ". Control + pinky click click - convenience.
i have no idea what this is, can someone please simplifi this for a total noob
Here is the solution in Javascript
const str='I am 25 years and 10 months old';
let count=0;
let sum=0;
for(let i=0; i<str.length; i++){
if(str[i]!=' ' && !isNaN(str[i])){
sum+=str[i]-0;
count++;
}
}
console.log(`sum: ${sum}, Avg: ${sum/count}`);
added provideHttpClient() in my angular 18 project to the app.config.ts providers and.... it still doesnt work
This annotation means 'ignore it' for all code style, test coverage and bug finding tools such Jacoco.