U need to open it first in xcode, w8 until everything will load up and set up ur iphone, and then u can open it in vsc
as Steve mentioned above, we might not know kernel's business but looking further at close syscall docs (close(2)) we can see:
If fd is the last file descriptor referring to the underlying open file description (see open(2)), the resources associated with the open file description are freed;
export default authMiddleware({
publicRoutes : ['/','/account','/contact','/order','/product/:category(.*)']
});
Adding :category(.*) will handle dynamic segment case.
Kind of, I was able to make it work E2E, read this: https://akobor.me/posts/the-curious-incident-of-google-cast-in-jetpack-compose
Follow this, this has solved my problem
sudo ffmpeg -f avfoundation -i "1" -c:v libvpx -deadline realtime -cpu-used 5 -b:v 500k -c:a libvorbis -listen 1 -content_type "video/webm" -f webm "http://localhost:8080"
this is working on my m1 playing with VLC or Firefox, not with Chrome.
my solution : make new env variable name like DB or DBLINK (capitalcase) then use it
Please verify file system permissions by ensuring the Spark application has necessary read and write permissions for the target directory. Also verify the file system configuration in your Spark application, especially for distributed file systems like HDFS. Check if the target directory has enough free space to accommodate the data being written.
0
It's possible that _thread.lock is actually a method instead of a regular class object. pickle didn't pickle methods, last I checked. However, dill does. You might try using dill instead of pickle and see if it works.
If you're on Ubuntu, you can install it with sudo apt-get install python3-dill.
I have the same question but the items repeated with a different number of times, determined by the next column. I have tried the formula: =VSTACK(BYROW(B3:B6,LAMBDA(x,TOCOL(IF(SEQUENCE(,OFFSET(x,,1)),x))))) but it didn't work. I attached a photo here for your reference. Please help me out with this. Thank you very much 
try correct English "The name is Bond, James Bond"
Delete the existing project, try adding a new project in the 'New Project' window, and under the generator, select the archetype as 'Quick Sort'.
where should i code? at views.py or at the html file?
In the view, definitely. A template is only meant for rendering logic, so presenting the data you already retrieved in a nice way. The view is responsible to retrieve the data or update data.
You may wanna refer to AWS's documentation for this: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs.html
Thanks!
Define a stage variable, pass your environment variable to that stage variable. In subsequent steps you can refer the value of the stage variable.
I have also the same problem. Have you solved it?
For anyone having the same problem, I have another solution:
Do not call the php script in crontab via
/usr/bin/php /home/desyn/public_html/cron/send_scheduled_emails.php
but use a http-request in the crontab file instead:
/usr/bin/curl -s http://example.com/cron/send_scheduled_emails.php > /dev/null
This did the trick for me.
I experienced the same issue as you.
In devices connected in Debug Mode, FCM's OnNewToken() and OnMessageReceived() were called successfully, but in the Release Mode app, they were not invoked.
This is because, starting from .NET 7.x, unused code is trimmed during the build process due to the use of the linker. FCM Firebase relies on dynamic linking and calls functions later when events occur. However, during compilation, the linker considers these functions unnecessary and removes them to optimize the app.
Although there isn't an exact solution yet, you can resolve this issue by adding the following settings to your .csproj file. Add or modify the following within the section:
<RunAOTCompilation>False</RunAOTCompilation>
<PublishTrimmed>False</PublishTrimmed>
This disables trimming during deployment, ensuring that dynamically called Firebase functions are retained. However, keep in mind that the size of the deployed app will increase as it won't be optimized.
Refer to the following link for more details:
to avoid that inside Apply to each to the group /person, the another answer is right, select , join to extract the email address.
But the best way to do is make it simple, in the sharepoint list, the email address to typed in by the user, that is the best choice.
Thank you all. The problem is solved)
https://www.reddit.com/r/pycharm/comments/14r6mdf/changing_terminal_shell/
"Help | Find Action," type registry, Enter
Disable terminal.use.conpty.on.windows
Restart PyCharm
Replacing initial-scale with minimum-scale on html header should solve the problem
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
On windows 11, I needed to:
I did not find anything related to code runner, that the other answers talked about.
The issue for me was that I was NOT sourcing the .zshrc file. Doing it again and restarting the terminal seemed to work for me (in macOS Sequoia 15.1).
Thanks for all the help, I will mark the question as resolved.
According to the error your mac uses z shell which has file .zshrc for environment variables. Begin by identifying the directory where Java is installed on your Mac. Typically, Java resides in the ‘/Library/Java/JavaVirtualMachines/’ directory. Open terminal and follow these steps -
Open .zshrc in vim editor
vim ~/.zshrc
Press Insert or i (insert mode) Paste the java path — —
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Escape and then press :x (To save and exit)
Verify JAVA_HOME environment variable is correctly set up.
source ~/.zshrc
echo $JAVA_HOME
Restart terminal for the changes to reflect or better restart your mac.
I should use <?= htmlspecialchars($row['about']) ?> not <?php echo htmlspecialchars($about); ?> for the textarea value.
for instance if I what find taget how I will get and I need more understanding about this app so that I can be able to participate on it please help me out that is I want to know more about it
https://www.elprocus.com/half-adder-and-full-adder/ (and many others now (not that many 14 years ago)
I had similar case where the path length was simply too long for NETOmniDriver-NET40.dll. Perhaps one of the component used just doesn't handle long paths.
Running the software from C:/ solved it for me.
I don't know if this is very helpful but i know a website called playit.gg that does something similar. Couldn't set it up to use for my python code tho.
I am not sure if this is the correct way, but it works. Change the form to:
<form th:action="@{/happyEat/shopping-lists/create}"
th:method="POST"
th:object="${__${objectForForm}__}">
and in the call hand over a String:
<div th:replace="~{fragment/form :: formWithContent(
~{fragment/shopping-list/input :: create},
'shoppingListCreateRequest)'}">
</div>
For Expo Web, I was trying the analytics debug view in Brave. But it didn't work.
I have installed Google Analytics Debugger in Brave but no luck.
Then I changed the browser from Brave to Chrome and installed Google Analytics Debugger.
Now it's showing the web analytics in Firebase DebugView which is expected.
If your 2D Unity game character suddenly stops as if hitting an invisible object, the issue may be collider-related. For instance, your character's collider might be interacting with small gaps or unintended colliders in your level design. Check for overlapping or misaligned colliders and adjust the physics layers.
Another possibility is a script bug causing velocity to reset unexpectedly. If you're implementing mechanics like in Brawl Stars, ensure your dash or movement scripts don’t accidentally stop momentum. We have faced same issues in this game due scrips conflict.
Optimize your Rigidbody2D settings—like friction or collision detection—to prevent unwanted behavior. Debugging the scene view while testing can help identify hidden obstacles.
Many thanks to @MikeM. for suggestions (if you want to post an answer I will accept it)
I changed the code to say explicitly
java.util.Collections.reverse(dataToIncrease)
return dataToIncrease.toMutableList()
...and that compiles and runs fine under sdk 35!
The IDE suggested changing the static call with the kotlin stdlib so now I have
dataToIncrease.reverse()
return dataToIncrease.toMutableList()
I looked up what the difference between "reverse and "reversed" is and it seems reversed always returns a read-only result....since I don't ever write to the results I get from this function - I instead copy them, it seems that this code will work well for me.
Thanks for your help!
R Copy code
Sys.getlocale()
Sys.setlocale("LC_CTYPE", "en_US.UTF-8") 2. Check Your Terminal’s Encoding Ensure that the terminal where you're running R supports Unicode and is set to display characters correctly. For example:
In Linux, the terminal typically uses UTF-8 by default, but you may need to configure it manually. In Windows, make sure your console supports Unicode characters (you might want to use RStudio or Windows Terminal, which supports UTF-8 more effectively). In macOS, the default terminal also uses UTF-8. You can try setting the terminal's encoding to UTF-8 by running:
bash Copy code chcp 65001 # For Windows command prompt to set UTF-8 3. Printing Unicode Characters Directly If you're working with characters like ° (degree symbol), you can print them directly using their Unicode escape sequences. For example:
R Copy code
cat("\u00B0") # Prints the degree symbol (°) Or simply use the character:
R Copy code cat("The temperature is 25°C\n") # Prints "The temperature is 25°C" 4. Saving to Files with Correct Encoding If you're saving output to a file, ensure that the file is being written with the correct encoding. For example, when writing to a text file:
R Copy code writeLines("The temperature is 25°C", "output.txt", useBytes = TRUE) Make sure the file is saved with UTF-8 encoding, which most modern text editors support.
R Copy code charToRaw("\u00B0") This will show the raw byte sequence of the character.
By ensuring proper encoding both in R and in your terminal, you should be able to see the actual characters instead of their Unicode escape sequences.
Nothing beats the performance of this naive implementation:
export const toHex = (array: Uint8Array) => {
let result = "";
for (const value of array) {
result += value.toString(16).padStart(2, "0");
}
return result;
};
KISS!
If you see error like in below image

then execute below command and u can see result in below image
docker context use default
then execute below command u can see result in below image
minikube status
You might want to see solution posted by https://github.com/victorbrax on https://github.com/xlwings/xlwings/issues/1360
Today I messed up on my jenkins server in RBAC so I went to /var/lib/jenkins/config.xml file and reverted changes as I mistakenly added developer role for overall and reverted back to admin
before doing changes in config file stop the server
systemctl stop jenkins
Can you check that the httpRequest.getHeader("origin") value is correctly retrieved and is not encoded. Log the origin value to confirm its format.
System.out.println("Origin Header: " + origin); // For debugging
If it's encoded can you decode and add
final String origin = java.net.URLDecoder.decode(httpRequest.getHeader("origin"), "UTF-8");
Your Chrome browser probably updated and now has a different version than Chromedriver. If this is the case then you have to download the chromedriver for the new version of the Chrome browser. Also the undetected_chromedriver may not work with the new version of Chromedriver. Anyway this package DOES NOT hide your IP address, your ip may be blocked. Check if you can access the store webpage in your browser.
Yes, GitHub Pages will allow you to host such an application. Only to use React you will need to set up multiple entry points and possibly modify the build.
In general, you need to change its structure and page transitions correctly to avoid using the limitations associated with dynamic routes.
I know this question is generally for git, and this question already got answered for git. but I assume some of the users seeing this question are GitHub users so I will add my tip here:
One easy way I found to be somewhat quick and helpful if you use GitHub, is to use GitHub desktop app to see if merging branches will have some conflicts before merge. If you try to merge branches with the GitHub desktop app, it will tell you if there are conflicts BEFORE the merge. It won't tell you how much and in which files though, but in some cases (for me at least) this will be suffice.
Just try to merge and one step before the merge itself it will prompt you that there will be conflicts (it will also tell you if there won't be any conflicts which might be helpful too in some cases)
The !findWidgetVisible seems to be new and it throws a wrench in the works. I get the point that ALT-A means something in the global Find/Replace widget as well as in the search viewlet. But it creates a lot of funny behavior because sometimes Alt+A works and sometimes it doesn't. Surely the fact that I just opened the search viewlet should mean that I am using it and not the global Find/Replace widget.
Yes, it is possible to host a multi-page React application on GitHub Pages. GitHub Pages can serve static files for any type of web application, including a multi-page application. However, you need to ensure that the routing for your application is set up correctly, as GitHub Pages uses the URL structure to serve files. This typically means you will have to manage your routes either by using hash-based routing (using HashRouter) or configure your application to handle routing properly in a way that aligns with how GitHub Pages serves the files. Make sure that your build process generates a unique HTML file for each route in your MPA.
you have two way.
for gcp secret: you can encode the json in base64 and add it in secret manager. after you get the secret in your function and decode from base64 in runtime.
(long opération for each runtime)
in github secret: you can encode too but décode only in ci:cd or github secret provide you a file solution well you write directly the json without base64 step. ( work on gitlab not sûre for the file in github)
you can provide a service account for each environnement and stage local with your dev environnement in .gitignore
I've followed @CoastalB and its worked but the problem is it's take some delay to get index. so I've used two separate listener (animate and tap) for get index.
The current code is implemented with GetX, but you can easily apply this approach with stateful widget:
class GenerateController extends GetxController with GetSingleTickerProviderStateMixin {
late TabController tabController;
RxInt activeTabIndex = 0.obs;
@override
void onInit() {
super.onInit();
tabController = TabController(vsync: this, length: 2);
tabController.addListener(_onTabIndexChanged);
tabController.animation?.addListener(_onTabAnimation);
}
void _onTabIndexChanged() {
// Fires at the end of tab change animation
activeTabIndex.value = tabController.animation!.value.round();
print("Tab index finalized: ${tabController.index}");
}
void _onTabAnimation() {
// Fires during the animation
activeTabIndex.value = tabController.animation!.value.round();
}
@override
void onClose() {
tabController.dispose();
super.onClose();
}
}
I was exposing port 7000 of cassandra to 0.0.0.0:9042 . I needed to map port 9042 of cassandra to 0.0.0.0:9042 . As cassandra's CQL client connections listens to port 9042.
As in docker
docker stop cassandradb
docker rm cassandradb
docker run -d --name cassandradb -p 9042:9042 cassandra
It fixes the Cassandra connection.
you can try
"styles": [
"src/styles.scss",
],
and on your styles.css add this lines
@import "primeng/resources/themes/mira/theme.css";
@import "primeng/resources/primeng.css";
@import 'primeflex/primeflex.scss';
@import "primeicons/primeicons.css";
also considers running an npm upgrade
Just in case this may help someone: I put a bogus password on my VPN settings in my jamf configuration profile and it fixed my issue. I'm running Mac OS 14.7.1 and was getting the error that the VPN Service could not be created.
In my case I was pushing a Netskope VPN configuration with Jamf Pro by following the instructions at "https://docs.netskope.com/en/jamf/#approve-vpn-popup-for-app-proxy-1". Based on my research, the issue seems to always be related to a profile misconfiguration. Additionally, VPN profiles now require a password in order to apply. The password can be anything you want as it's not necessarily used.
I hope this helps someone.
catch the crash by yourself and log the total threads of the app. Find out whether there is a thread leakage.
The problem was that I did not use openInvoice correctly.
The way to call openInvoice using JavaScript is as follows:
window.Telegram.WebApp.openInvoice("linkOfInvoice","CallBack(optional)")
To obtain "linkOfInvoice", we can use the Telegram API and the createInvoiceLink method.
Make sure that the ..\ui\extension folder exists in the components directory of your Next.js project. If it does not exist, create it and then run the following command: npx @shadx/cli add carousel. It will work
Title: Type created with keyof cannot be used to index the type it was created from
Body: I’m trying to write a utility function in TypeScript to access properties inside an object. Specifically, I want the function to: 1. Take an object (of a known structure) as the first argument. 2. Take the name of a property within data (from the object’s type) as the second argument. 3. Return the value of that property, with TypeScript correctly inferring the type of the returned value.
What you've already setup is a worker account, with multiple regions, so keep everything you have there.
The question is asking you to more or less setup an Organization in AWS (see details https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tutorials_basic.html) Within the organisation you can create accounts, under organizational units, that exist only for particular workloads or environments. The above link describes this in far more detail, so there's not much value summarising it.
With regards to your specific requirement:
Account Management - I would say they are looking for you to setup a 'landing' account where the SSO occurs. This account exists for this purpose of managing policies and users, generally backed by something like Azure or similar.
Security and Compliance - These accounts maintain security services like Guard Duty for all the accounts within the Organization. Some workplaces also forward all cloudwatch, VPC logs and cloudtrail logs to this account for parsing/scanning/compliance reasons
Machine Learning - Self explanatory
Billing and Support - Billing is generally handled by the organization management account (see https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/consolidated-billing.html). I'm not sure what it means by 'support' here
Hope that helps
Open:
system/config/default.php
system/config/catralog.php
Find:
$_['session_engine'] = 'db';
Replace
$_['session_engine'] = 'file';
try this
Cloud Run uses Docker containers, but it does not support Docker Compose. If you're relying on that docker compose yaml to wire up your containers, it's not going to work. If you want to use a yaml file to store your service configuration, Cloud Run uses a Knative service as its native Yaml format.
Cloud Run also doesn't support disks, so unless you want to have a very slow database serving off of a GCS storage bucket or a very expensive database serving off of a $400/month NFS share, you probably should run that in Cloud SQL and use the built in connector to connect the database to your Cloud Run Service.
For me this fixed it
sudo apt install libei-dev
If you are still facing problems troubleshoot with the help of Claude Sonnet it helped me narrow down the issue step by step which led to the solution
I've found a solution here which is a windows application that works like a charm
And this is the github repo for the TentacleSoftware.Telnet package
Kaggle doesn't have real competition, and that's the only reason why is No1. I always loose my nerves when I have to upload something.
Saved my day, thanks monster, after days searching, get the winutils (full) and put hadoop inside spark, and spark not in (spark-3.5.1) but simple in C:/spark. and hadoop on C:/spark/hadoop and bin winutils inside hadoop, after that configure global variables and works!!
Ensure that the audio file is indeed accessible via the public URL. Even though the URL may appear correct, there might be issues with server configuration or firewall restrictions.
#a script I use on my seedbox to grind media files down #10-22-24
find -iregex "..(mp4|avi|mkv|asf|divx|flv|m4v|mkv|mov|mpeg|mpg|ts|wmv|rm|rmvb|webm|m2ts)" -not -name ".x264.mp4" ; -exec HandBrakeCLI -i {} -o {}.handbrake.x264.mp4 -q 14 -e x264 -E mp3 -Y 480 ; -exec tar zcvf {}.tar.gz {}.handbrake.x264.mp4 ; -exec rm -vfr {} {}.handbrake.x264.mp4 ;
#crunches and tar balls
This is because your controller layer returns a string "post" instead of the post object
To get the PresentationSource for a WPF MessageBox, you can access the PresentationSource property of the Window that is internally created by the MessageBox when it is shown; however, directly accessing this property is not recommended as the MessageBox is a system-level dialog and its internal structure might change across versions
Tab limiter helps you get back control over your browsing – by limiting the number of tabs you can open at once. You can specify the number of tabs in total and per window. Moreover, you can show a customizable message when the tab limit is hit.
Ok - thanks to the jmcilhinney comment - it got me thinking. I found a solution - although it is not working exactly the way I want/need it to.
Now - this part was exactly what I was hoping to do - but it only gets calculated when I move the to the active record in the grid attached to the Master table. This makes sense - but not what was I was trying to do. I need to have the boolean value in the Table showing in the grid all the time - not just when I move to that record... I need to know which Master records have at least one Detail record with text in that field...
I guess I will have to create a calculated field and populate it in code when ever the table is loaded - or either the Master or Detail table are changed. Many thanks to those who took time to comment!
Is anybody have solution for it ? I have same problem.
The Inverse Square Law might help. When you double the distance from the light source you get 1/4 the brightness of light.
https://petapixel.com/assets/uploads/2016/06/lightfalloffsquare.jpg
According to this post on a ExifTool forum thread, I found success by losslessly remuxing videos with FFmpeg to remove video metadata with:
ffmpeg -i Input.mp4 -vcodec copy -acodec copy Output.mp4
Use this shortcut to it:
CTRL+M+O
You can go in Edit/Outlining/Colopse to Definions.
Not in all files, but is just one command and you collpse all your code.
google chrome old version v125.0.6422.112 is here.
This is last version of chrome Centos7 support.
As we know printf stetment return the number of character printf("1") return 1 Then we go to condition Statment printf("0") returns 1 but here the statement is (!printf("0")) !1=0 and the condition get false and we get out from for loop
I've found that running test flows "Automatically" causes this issue (even if previous dependent "Manually" run test flow works) ... whereas a fresh "Manually" with the PDF/etc attached to email (i.e. not DragDrop) works.
No, the arch_free_page function can be called from an atomic context (such as an interrupt). It is not possible to place a mutex in this function as it is required to not block or wait.
The function must be written to support freeing the page atomically.
@Ben Gribaudo mentioned that a bug does not allow the <Application.Resources> to connect properly. In his blog: http://bengribaudo.com/blog/2010/08/19/106/bug-single-application-resources-entry-ignored he mentioned a fix where you add a 'dummy' style entry as the bug seems to take effect when only one entry is defined.
I added <Style x:Key="unused because Application.Resources does not load if only one entry is defined." /> at then bottom under my button style which did the trick. Shame that a bug reported in 2010 is still here almost a month to 2025.
import matplotlib.pyplot as plt import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection='polar')
ax.set_xticks(np.arange(1, 25) * np.pi / 12) ax.set_xticklabels([str(number) for number in range(1, 25)])
ax.set_yticks(range(1, 32)) ax.set_yticklabels([str(number) for number in range(1, 32)])
ax.grid(True)
ax.scatter(np.pi / 12 * 24, 31)
ax.set_ylim(0, 32)
plt.show()enter image description here
I think the issue lies with the version of java used by default. Android studio V34 (at least the gradle version, which some plugins may use) uses Java 17. Take a look at https://developer.android.com/build/jdks#compileSdk and see if this might help.
PS - I don't think you need to reinstall Android Studio, just install the version of Java it wants
No way. It does not even make any sense. Attributes are static, they just add some metadata to the file. They are already known during build time. During runtime, you can only read the metadata related to the attributes. This is how you make runtime behavior dependent on the attributes.
And you are talking about actual parameters (not formal parameters, not their types). They not just runtime object, they are different in each stack frame.
Creating an app that generates a random video game and displays its cover is an excellent idea for gaming enthusiasts! This app could be a fun tool for users who are indecisive about what to play next. By including filters such as genres, platforms, or release years, it could cater to different gaming preferences. Adding features like game descriptions, reviews, or links to stores could make it even more engaging and useful. With a polished interface and a touch of creativity, this app could become a go-to resource for discovering hidden gems in the gaming world.
While exploring gaming ideas, don’t miss out on the engaging simplicity of Money Rush, a game that’s perfect for a quick, entertaining break. In Money Rush, players strategize to grow their wealth by navigating obstacles and making the right choices, all while enjoying its fast-paced and addictive gameplay. Similarly, your app could offer a quick and exciting way for users to explore new games, just like Money Rush delivers instant fun. Whether it's discovering random games through your app or diving into the thrilling mechanics of Money Rush, both provide unique and enjoyable gaming experiences!
I'm having same problem, but I figure out that inside the android folder delete .gradle this will fix the issue
You'll need to install Rtools before updating htmltools.
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
After installing Rtools, you can search for the htmltools package to update or navigate to Navigate Tools -> Check For package updates.
Python in Excel:https://support.microsoft.com/en-us/office/get-started-with-python-in-excel-a33fbcbe-065b-41d3-82cf-23d05397f53d It might help you
The on-board LED Unlike the original Raspberry Pi Pico, the on-board LED on Pico W is not connected to a pin on RP2040, but instead to a GPIO pin on the wireless chip. MicroPython has been modified accordingly. This means that you can now do:
import machine led = machine.Pin("LED", machine.Pin.OUT) led.off() led.on()
or even:
led.toggle()
to change the current state. However, if you now look at the led object:
led Pin(WL_GPIO0, mode=OUT)
You can also do the following:
led = machine.Pin("LED", machine.Pin.OUT, value=1)
which will configure the led object, associate it with the on-board LED and turn the LED on. NOTE Full details of the Raspberry Pi Pico W can be found in the Raspberry Pi Pico W Datasheet. WL_GPIO1 is connected to the PS/SYNC pin on the RT6154A to allow selection of different operating modes, while WL_GPIO2 can be used to monitor USB VBUS.
Are you using OAuth2 or basic authentication?
"Yes, after September 16, 2024 Basic Authentication can no longer be used to access any Outlook account."
Try to access https://github.com/settings/tokens and create a New personal access token (classic) with permissions: repo, user, gist and copilot. Worked for me like a charm! :)
The reason your code fails is due to the following;
On your 1st iteration it takes the list ["Entry 1", 1, 5] which translates to writing "Entry 1" into the merged cells from 1 to 5 (A to E) on the next row where these cells are tested as 'empty'. You start your checking from row 2 using cell row/column co-ordinates and given its a new Sheet this row will be empty and so A2:E2 is merged and the value written.
On the 2nd iteration you now have the list ["Entry 2", 2, 6] which translates to writing "Entry 2" into the merged cells from cols 2 to 6 (B to F) on the next row where these cells again test as 'empty'. You start with row 2 again but this time you are checking the cells from Column B. What I guess you dont realise is that the cell B2 still exists and can be referenced. Many of its usual attributes remain including .value and this attribute will be None, therefore passing your test.
I'll note here if the referenced cell or attribute did not exist your code would crash at this point anyway.
So all the cells you test in row 2 in the range B2 to F2 exist and all will have None as the value and pass your test.
Your code then tries to merge that range, which will execute but corrupt your workbook in the process and then try to write the text to cell 'B2' at which you code crashes as cell B2 is a merged cell resulting in the error
'AttributeError: 'MergedCell' object attribute 'value' is read-only'.
if you checked the cell types instead
for count_column in range(entry[1], entry[2]+1):
print(type(ws.cell(row=count_row, column=count_column))) # <--- Add this line
if ws.cell(row=count_row, column=count_column).value is None:
you would see for each cell the type is
<class 'openpyxl.cell.cell.MergedCell'>
except for the last cell which is not part of the previous merge. It's type will be
<class 'openpyxl.cell.cell.Cell'>
which is the type you'll see for all the cells A2:E5 on the 1st iteration
So you can see your test does not cover every eventuality that can cause a problems writing your data.
I don't know how sophisticated you want the check to be but certainly you can include the cell type check if you think that is necessary.
However one simple thing you could also do is skip the row your know your already wrote data to.
In you code rather than hardcoding the start of the row range as 2, use a variable that starts at the next row after the last one you used so after the 1st iteration when you wrote to row 2 the next start row should be 3.
for count_row in range(2, 5): # <--- Modify this range on each list iteration
This obviously means the end value of the range would need to be adjusted too as the start could possibly eventually be larger.
However the method used here may not be the best anyway given your directive If so, I want Python to skip to the next row and write it there. What if rows 2, 3, 4 fail the test, do you want to stop there or keep going until you find a row for each of your list entries?
I finally got it working! It's 2:44am here now and we're two weeks of fucking around later :-P
I don't known why, but I started getting in trouble with the VirtualizingWrapPanel constantly flickering up to the point it became unusable and when I breaked the program I saw in the stack trace that it was constantly measuring and arranging. So I reckoned it had trouble sticking to a constant item size so I set the ItemSize property of the VirtualizingWrapPanel to something constant. And now all of a sudden all of my problems are gone and everything is working:
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<vwp:VirtualizingWrapPanel
SpacingMode="None"
Orientation="Vertical"
ItemSize="240,20">
</vwp:VirtualizingWrapPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
In more recent versions the library's api changed and now they use the argument additional_headers to add new headers:
async def connect():
async with websockets.connect("wss://site.com/ws", additional_headers=headers) as websocket:
response = await websocket.recv()
print(response)
Reference: https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html#opening-a-connection
As many here have already suggested, I would definitely check out nektos/act. In fact, I recently developed a VS Code extension called GitHub Local Actions which leverages nektos/act, but also provides an interface designed to feel as familiar as the official GitHub Actions extension.
You can check it out using the links below:
You are making it hard on yourself.
Use the NavigationComponent. You'll then never need to make a FragmentTransaction manually, as it is all done internally. Your single activity should be AppCompatActivity, which is inherited from FragmentActivity.
Get rid of Platform.CurrentActivity, whatever that is. In a single Activity app, you can refer to Activity when inside a Fragment. There is only one, so it can never be null.
Look at the new project I mentioned the other day with the new BooksFragment, and check how it's RecyclerView.Adapter works.
This was the error:
providers: [AuthService]
I totally forgot that having this creates a new instance of the service.
Putting here both question and answer since I am not allowed to comment on post for I don't have 50 reputation.
Error
While building a docker image with node.js NPM tries to access registry "https://registry.npmjs.org/express" but it can't find the root certificate that a "network proxy " demands for verification before forwarding the request to internet.
> [6/7] RUN npm install:
0.870 npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
0.870 npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
0.873 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to get local issuer certificate
0.881
0.881 npm ERR! A complete log of this run can be found in:
0.881 npm ERR! /root/.npm/_logs/2024-11-24T00_00_24_287Z-debug.log
------
Dockerfile:17
--------------------
15 |
16 | >>> RUN npm install
17 |
18 | COPY . .
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1
Answer
The NPM needs a root certificate for verification by proxy before proxy allows it to go out to internet.
More secure way then turning off ssl check!
npm config set strict-ssl
or Running this which did not work.
npm config set registry http://registry.npmjs.org/
is as mentioned in the code, copy this to your VScode.
FROM node:14
# Here you are setting the environment variable for your docker environment, no certificate existing yet!
ARG NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
# Export and save your Org/company's root certificate (./certificates.crt) to your DOCKERFILE location (In WSL copy to \\wsl$\home\wsl\location)
COPY ./Certificate.crt ./usr/local/share/ca-certificates/
# Now the contents are being copied to default location of certificates where npm will look, its same location as set in env variable of docker.
RUN cat /usr/local/share/ca-certificates/Certificate.crt >>/etc/ssl/certs/ca-certificates.crt
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "app.mjs" ]
[Note: Do check https://www.docker.com/blog/docker-best-practices-using-arg-and-env-in-your-dockerfiles/]
Inspect not just the table argument but also the value argument to your callback. It contains the object. You can check for things such as the fk_event property.
(TLDR at the end.) From OpenGroup POSIX specification:
in the locale definition, the expression "[[.ch.]]" shall be treated as an RE containing the collating symbol 'ch', while "[ch]" shall be treated as an RE matching 'c' or 'h'. Collating symbols are recognized only inside bracket expressions. If the string is not a collating element in the current locale, the expression is invalid.
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05
The solution was to use double brackets. I will push upstream to document this better.
Well, this is supported. There are no extra steps necessary to do this. One issue I see is that you have random hashtags in your elements...?? Here is a full example of a video element in HTML:
<video id="video" preload="auto" muted>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Thank you so much dude. It worked nicely. Nice and small code fixed it all. How about removing or changing labels near x and y-axis?
do you use typescript? you might need to create a nativewind-env.d.ts file with just this line in it:
/// <reference types="nativewind/types" />
and in your metro.config.js file, make sure you have this setup:
const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");
const config = getDefaultConfig(__dirname);
module.exports = withNativeWind(config,{ input: "./styles/global.css" });
Not even close. I cannot even guess where did you get such ideas. What you are trying to do under init looks line constructor and belongs to a constructor.
As to real init it simply means “initialization-only”. This is the accessor used to make compilation fail if some code tries a write operation on a property except the constructor of the class having this property.
This is an example
class ReadWritePropertyDemo {
internal ReadWriteDemo() {
ReadableInternallyInitOnly = 42; // only here
ReadablePubliclyAndWritablePrivately = 43; // and by other methods
// of this class,
// see below
}
void SetterForOne(int value) {
ReadablePubliclyAndWritablePrivately = value;
}
internal int ReadableAndWritableInternally { get; set; }
public int ReadablePubliclyAndWritablePrivately { get; private set; }
// write access only for derived classes in containing assembly:
public int ReadablePubliclyLimitedWrite
{ get; private protected set; }
public int ReadablePubliclyAndWritableByDerivedClasses
{ get; protected set; }
internal int ReadableInternallyInitOnly { get; init; }
// and a lot more combinations with public,
// internal, private, internal protected, private protected...
}
qiskit is trash and doesn't work. use cirq or penylane