// Source - https://stackoverflow.com/a/38972737
// Posted by fedorqui, modified by community. See post 'Timeline' for change history
// Retrieved 2025-11-22, License - CC BY-SA 3.0
awk 'flag{
if (/PAT2/)
{printf "%s", buf; flag=0; buf=""}
else
buf = buf $0 ORS
}
/PAT1/ {flag=1}' file
Another way to do it using rustfmt.toml
Create File rustfmt.toml in your project directory and add this code:
rustfmt.toml
tab_spaces = 2
For reference, you can go to https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=#tab_spaces
Thank you so much! All the responses have been very helpful! I asked stupid ChatGPT and Claude (pro version!!) and they both gave me the wrong responses which was "I needed to use std::move"!! So grateful that I can get accurate responses here.
I found this issue that led me to reinstall the package using an older version of setuptools that doesn’t create the file __editable__.luma_lcd-2.11.0.finder but relies on some older mechanics. The import now works in VS Code. Still not sure what’s wrong with the newer setuptools.
try the "uv run"
Install it with pip:
# With pip.
pip install uv
or curl:
curl -LsSf https://astral.sh/uv/install.sh | sh
read more here:
https://pypi.org/project/uv/
Google showed this thread as important. I recommend to have a look at this source:
https://github.com/STMicroelectronics/stm32f4xx-hal-driver
and this overview: https://github.com/orgs/STMicroelectronics/repositories?q=stm32f4xx
My python script is not inside the venv. If I move it there and change the path in the zsh script, I can get rid of all the other stuff?
The reason the create is there is because Python refused to work without a venv, and once I finally got it working, I didn't bother to remove that line. I don't mind the messages when the output is correct.
But would did that diagnostic message begin appearing and the other stop when neither script had been changed?
It depends on what you want to change the
1. background image
or
2. background color.
Use the appropriate CSS properties to achieve the result you want.
_BitInt values are fixed-with integers, so although they could be used to help with certain operations, they are not really big integers in the usual meaning of the term.
I had the challenge of facing a similar problem for planning downtime. But had to go forth with it anyway. My DB has relatively low workloads.
With a table of 22 columns, 300 GB of data and 25 million rows, this took about 20 minutes for me on AWS on Aurora RDS postgresql db3.t.large instance.
A similar setup I did in a DEV instance that had about 200k rows, with db3.t.medium instance, it took 8 seconds.
I also had to kill nearly all the connections to the DB temporarily to ensure the command runs without problems. Hope that provides a small benchmark.
"i am not sure of what the crew of the sailboat does "
Did you look at the video?
For browsers after 2021, this is no longer relevent
https://mathiasbynens.github.io/rel-noopener/
2021 update: Browsers now implicitly set
rel=noopenerfor anytarget=_blanklink, following a spec change.
Sergey ragebaiting me 10 / 10.
i'm sorry writing on mobile. poor internet connection, so gotta b quick.
usually, usually, usually: you use C structs as a bricks to your C++. So, with that in mind ;)
''' struct { uint8 data[1]; bleh; meh; }
templatet struct { static consepr size_of_array = std::array_size(S); typedef what_type_is_daya decltye(S::data); bleh( whattypeisdata *pidzata); meh. ( whattypeisdata *pIDatA); '''
again sorry for syntax, it is really hard to type on a phone.
I don't like the majority of these answers. I have a little more complete answer.
The issue is that the CA Root Certificate you are using is not in the certificate chain for your application.
Now, in python, your ca certs are determined by a package named Certifi, like previous mentioned above. If you replace the cacert.pem file in that package, you will end up enabling your specific URL but disabling others.
Append the contents of your .pem file to the end of that certifi file and you will be set. That should do it.
When a Lambda is deleted, it may not remove the corresponding Event notification / Trigger from the associated Bucket.
To see if this is the case, go to S3 > [Bucket of interest] > Properties > Event Notifications. That list should show all events / triggers associated with the Bucket. It will also show the names of associated Lambda functions (on the far right), so you can see if those are still-active, or familiar-but-deleted Lambdas.
Delete any you don't want, and try the creation again.
If you get
android.content.res.Resources$NotFoundException: unknown resource 2131362072
try using
android {
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
in your build.gradle
If you can't "insert", you need to find another method to "add"; then "move" or change the "Z-order" if that's the issue.
Use Queue :
It is especially useful in threaded programming when information must be exchanged safely between multiple threads. The Queue class in this module implements all the required locking semantics.
If you get the error one resolution is to download the command line tools. Open a terminal and pass the following command and run it. A Dialog will open an help with the download and install.
xcodebuild -downloadComponent MetalToolchain
To elaborate, this CRC also takes an additional 32-bit parameter value, which I suspect is the initial value or related to it somehow. The behavior I mentioned with even-odd xor is when that parameter is non-zero.
For generating checksums it only accepts data that is sized as a multiple of 32 bytes, of which the last 8 bytes are always unused and don't affect the result.
An example of some results appearing online that I mentioned is the value 0xc5b9cd4c, which is the result when the parameter value is 0 and the input is the byte 0x01 followed by 31 null bytes. This number returns various CRC-related results in google, in one of which this value seems to be in a lookup table of CRC remainder values.
All include some more results below, all with the parameter value I mentioned at zero, and an input of 32 bytes, all unmentioned bytes are null:
All null bytes: 0
Byte 0 as 0x01: 0xc5b9cd4c
Byte 1 as 0x01: 0xf382b7f2
Byte 2 as 0x01: 0x64c29d0
Byte 3 as 0x01: 0x56af9db2
Byte 4 as 0x01: 0x17d3315d
This happened because I had followed the guidance at https://nuxt.com/docs/4.x/guide/concepts/typescript#type-checking and installed vue-tsc and enabled typescript type-checking at run/build time. I don't know why it wasn't an issue previously but what I needed to do was run npm install @types/node --save-dev. (I did not need to add "types": [ "node" ] to the compilerOptions section of my tsconfig.json file.)
you might get a better answer at https://bitcoin.stackexchange.com/
si j'ai la même erreur en react JS il n'y a pas un moyen de régler le problème en frontend puisque je n'ai pas accès au backend?
_quarto.yml in the r root directory ( the one with .Rproj)
add the line fully left justified
editor: source # or visual
This will affect the whole project. If you want to affect just one file out "editor: source" in the yaml fully left justified
The odd/even thing is exactly as expected. An even number of xor's would work only if the CRC had a zero initial value and zero final exclusive-or.
What does "Many checksum results of simple input tests (e.g. a small number of null bytes) also appear online in tables of CRC remainders." mean? Can you give an example?
Yes, for a 32-bit CRC it should be straightforward to determine the parameters with enough examples. If it really is a CRC. If you would like to provide examples here, we can see if it is.
In that case, you can start with, say, 20 examples of random 4-byte messages and their CRCs, in hex. That should be enough to determine a) if it's a CRC, b) the polynomial, and c) the ordering of the bits and bytes. If that verifies it's a CRC, then a few five-byte-message examples would be all that's needed to determine the initial value and final exclusive-or.
That was a failure on my part - for whatever reason, the makefile dictated that all included files be passed as compiler arguments, which is what I had to do.
thanks for answering!,
firstly i didn't know that i was too ambitious , thought that this was the right thing to ask.
also, 2d works as long as i can get close to accurate data. it would at max 3 metres . the competition will in in april from ibiza to spain, so assume the winds speeds and water currents at that time.
i don't know if i need currents , maybe . i just want to start simulating my navigation algorithm and then i would add these features as i need . but at last i want to start with a good, competent simulator so that i don't have to change simulators at the middle.
realistic marine navigation scenario will be simulating water currents and winds according to the data of these from websites , so that i can have same marine conditions from the area we are competing in.
okay, i am not sure of what the crew of the sailboat does but i surely know the physics, if you want this is a code [Google](https://pastebin.com/b6t2X4Na)
i can change the directions of the sail by a motor and that's what my navigation algorithm also helps in! it will change the direction of the sail according to the winds speed and direction.drawing the sheet too tight, i haven't thought about it, i hues we can't change the tension midway.
we would have an anemometer for sensing the change in wind directions and speeds.so no problem in sensing that!
BTW thanks for your response, it helps me find my loopholes. but answering your questions , do you have the answer to my original question. which simulator should i use? 2d or 3d ? if you have resources of the simulator you mention , please add that too.
THANK YOU FOR YOUR TIME
If you just want a different title and description for each page, you can make an additional page file under "files". In the Cayman package it's called "another-page.md". In the preamble to that page, you'd put:
---
layout: default
title: Title of your new page
description: Description of your new page
---
That should let you have different titles and descriptions on different pages, though the buttons will be the same on each as defined in the default layout.
Same issue here. I solved it by using Cogrouping like here https://cwiki.apache.org/confluence/display/KAFKA/KIP-150+-+Kafka-Streams+Cogroup
Installing newest snapshot of clangd solved the issue (link)
:MasonInstall clangd@snapshot_20251005
Yes, there is. You should be using cogrouping described here https://cwiki.apache.org/confluence/display/KAFKA/KIP-150+-+Kafka-Streams+Cogroup
Ok, I found the solution. It is here https://cwiki.apache.org/confluence/display/KAFKA/KIP-150+-+Kafka-Streams+Cogroup
It took me 2 days to figure this out. The solution is this imho https://cwiki.apache.org/confluence/display/KAFKA/KIP-150+-+Kafka-Streams+Cogroup
You could use Pytorch or Tenserflow, thay have functions to do all what you need.
In my opinion, if your network architecture is big use Pytorh , otherwise use Tenseflow.
Moving when returning is usually just going to be a pessimisation.
C++ is a statically typed language.
Adding
&authSource=admin
to the connection URI did the trick. Thx to a friend!
Your plan is waaaaay too ambitious!!!
Why do you think you need 3D?
How small is your boat? The smaller the boat the more significant wave interactions become - yet you do not mention waves.
Please provide an example of what you consider to be a "Realistic marine navigation scenario".
On recent Akeneo Version you can.
Use the rule system, there is one action called: GENERATE dynamic content where you can use twig syntax for that.
As I see there’s no other reason except that spring team somehow decided to support the old one instead of deprecating or rewriting it. I’ll continue with AbstractPaginatedDataltemReader.
It worked for me when i put additional break point before async execution code.
I tried this recently with sudo 1.9.17 on Fedora 43 and doesn't work anymore.
Anyone has any idea?
If you can use the same URI from a different client, the problem would appear to lie in the Ruby on Rails client side. It appears the SCRAM-SHA-1 authentication mechanism failed. Is it possible this is something as simple as wrong password, perhaps a special character that needs escaping?
Just restarting and re-running the notebook worked for me after installing the package
<<< Recoverable Error >>>
External code file (oms_gw) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_log_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_micro_sim) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_ot_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_path_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_pipeline) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_pkt_analyzer) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_pr) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_ptree) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_qm) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_routing_convergence) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_rr) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_sim_attr_cache) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_stat_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_string_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_sv) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_tan) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (oms_vlan_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
External code file (umts_gtp_support) compilation failed
Errors given in file (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
----
<<< Recoverable Error >>>
Object repository construction failed
External code file (D:\14.5.A\models\std\umts\umts_gtp_support.ex.c) compilation failed, see error messages in (C:\Users\GAMER\op_admin\tmp\cc_err_6756)
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_rebuild)
----
<<< Program Abort >>>
Error encountered rebuilding repository -- unable to proceed
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load)
If still relevant: consider Switch to SeleniumVBA. Still actively supported and migration effort is minimal.
For anyone hitting this problem, I’ve bumped into it as well, and came up with my solution:
https://ksol.io/en/blog/articles/2025/11/django-mediafile-deletion/
Agree it's horrible. I understand the direction but not the way it's happening. Wonder if they'll have to backtrack somehow down the line.
If you run it on linux, you can do
chmod a-x .
This will prevent directory listing to all Linux processes (except owned by root), including your own shell.
There is an example in the grpc directory:
Instead of calling the blocking Wait, we sleep on the main thread until the signal interruption calls Shutdown. Does the job f
// Source - https://stackoverflow.com/q
// Posted by Basya Rosemann, modified by community. See post 'Timeline' for change history
// Retrieved 2025-11-22, License - CC BY-SA 3.0
Operator '+' cannot be applied to types 'number[]' and '-1000'.
In the meantime I came up with some heuristic solutions. My algorithm goes as follows:
First find all of the trivial nodes in the graph. This is kind of a simplification step. With trivial nodes I mean the group of nodes with the same type/colour that can be trivially grouped together without problem. These can be found using Strongly Connected Components (https://en.wikipedia.org/wiki/Strongly_connected_component). So first we group all the nodes together of the same type. Then we find the Strongly Connected Components in that grouped graph. Now we can see that alle the Strongly Connected Components with only 1 node inside correspond to the trivial nodes of the original graph
Next we still have to solve the non-trivial groups. Here I tried a couple of approaches
Approach 1:
This the same approach as in the original suggestion
Start from the topologically sorted graph. Where the trivial nodes are already grouped
Iterate over all the nodes starting from the root node
Try to add the node to the last subgraph of that colour
Check if that node has any connection to nodes outside the current subgraph. If so, check that we don't introduce any cycle. If we don't create any cycle, merge the node together with the subgraph. The cycle detection can probably be optimised with some incremental cycle detection algorithm
If we can't add the node to the current subgraph, we create a new subgraph for that type/colour of node
This approach is heuristic but runs rather quick and gave good enough results
Approach 2:
Recursive approach:
Try to find a worst node or collection of bad nodes in the Strongly Connected Components that should be split of first. This can be done with some metrics appropriate for you problem or graph layout
Split the node with the worst metric into its own group
Perform another run of Strongly Connected Components detected on the reduced graph and find the new trivial nodes
Do these steps recursively
This approach is also heuristic and also runs quick. It may be difficult to find a good metric for finding the worst node to cut
Approach 3:
Travers all the options of the branches that you can take
Perform smart cutting of the branches to prune most options
This approach will guarantee the correct solution but was cumbersome to get all the pruning conditions correct. In the end I gave up on this approach since the other approaches were much quicker and the results were good enough
For those that find this over a decade later. This issue still persists in Visual Studio 2026. Only one file is modifiable in the compare tool and it's the first file you select when selecting multiple files.
I have this issue with simulator running iOS 18.6. No matter what I do, Transaction.currentEntitlements are always empty when I reinstall the app. I have yet to figure out a solution. In App Purchases have worked perfectly in the past :(
This is old but I just wanted to add that I encountered this exact problem when I was attempting to merge a file to a Stream using a view on another Stream.
pymsi might work if you're okay with Python. It's on pypi with the package name python-msi, and then you get a CLI utility called pymsi that has options for dumping info on an MSI file and extracting files, as well as being able to import pymsi to use it in your own Python scripts. There is also an interactive web demo similar to lessmsi if you want to try it out and get a sense of what it can handle.
My goal is to reproduce the ASP.NET core IServiceCollection.
The idea behind the dynamic tuple is to have it constructed with structure containing all the "settings" as template parameters:
std::tuple<Service<ServiceType::Singleton, Interface, Implementation /*, ...*/> /*, ... */>;
and then using reflection on this tuple type to later generate the different container when calling a build function.
What I call "container" is the structure containing all the information about the service and the different builder callback. (equivalent of instantiating
Service<...>)
I give up on this idea (this is currently not feasible) and will use an IService (base interface of Service<...>) in combination of std::meta::identifier_of and some other c++26 reflection features to generate the container directly with meta-information. When needed during DI, I will use the already existing meta-information, to retrieve all the necessary type, to then cast the interface to it's original type using std::static_pointer_cast and do the rest of the instantiation of the service.
You can check it out on my github
At the time of writing, I'm still working on the implementation
Hey prasant chettri,
Hope your issue is resolved. If not, here is a good guide to troubleshooting SHIR: https://learn.microsoft.com/en-us/purview/scanning-shir-troubleshooting
Have you considered using MongoDB Search?
https://www.mongodb.com/docs/manual/core/search-in-community/connect-to-search/
What stops me from installing all those libraries is that the IT that made the HPC installation said it was not necessary because the architectures of the nodes were very similar. But then I tried to install a few programs and I did not find the way, unless the libraries were also installed in /usr/lib at each CN. I asked the IT for clarification but his company required 3000€ for that. After a few weeks struggling and looking for info, I had the suspicious that maybe the IT was wrong, but since I am a newbie I wanted to be sure.
I have followed your answers and everything works fine in the CN. Many thanks!!
Thank you Ankit kumar, I did not know you could do that this way with Hibernate.
Thank you life888888, I haven't heard of MyBatis Generator, I'll have a look!
zwitserloot, thanks for your detailed answer. I appreciate the time you took to write it, and I want to clarify my perspective because I think my original question may have given the wrong impression.
I definitely do not find SQL or databases scary. My background is in Business Data Processing studies, where we were very data-oriented. We often worked in C#, using ER diagrams, forward engineering, and WPF projects. We generated models from the database, but we never treated those generated classes as the application itself. With MVVM and layered designs, we always separated business logic, view models, domain behavior, and everything else.
Later, in my professional work with Java, I mostly used Code First approaches with Quarkus, Spring Boot, and Hibernate. So I have experience on both sides, Code First and Database First.
Recently, I talked with an old classmate who builds ERP modules. His company still uses a Database First approach because it helps them design clean data models from the start, which works well for modular ERP systems. That made me think about the advantages and disadvantages I have seen myself. Code First usually lets you move faster at the beginning, but I often ended up refactoring a lot when the data structure evolved. Database First is slower at the start, but since I think visually, working with ER diagrams makes it easier for me to design something stable and maintainable.
For personal projects, I want to try combining both ideas. I would design the schema first, maybe generate simple models, and then build a proper hexagonal architecture. Domain objects would stay independent from the persistence layer. For example, a User domain object may have behaviors that are not stored in the database and that are unrelated to table fields.
My question was not about treating database tables as domain objects. I agree with you on that. I was only asking whether Java has something similar to what I used in C#. I have already done Database First there, but never in Java.
Both philosophies have their pros and cons.
By the way, just to be sure before answering you, I tested MySQL Workbench to check that when you modify tables with forward engineering, it doesn’t erase the existing tables and keeps everything. It works. I liked that approach because it really lets you visualize your database (yes, I know UML is not often apprieciated in the working world, but I still like it maybe that’s my old student side showing XD).
About database engine migration, I might have misunderstood your point. From my experience, switching from MySQL to PostgreSQL is a major change no matter which approach you use. And version upgrades depend heavily on the system’s architecture, not just the ORM.
Thanks again for your answer and your perspective. And if I misunderstood anything you wrote or you want to add something, feel free to let me know.
I was getting similar permission errors trying to connect to a WSL Distro from VSCode.
It turned out that, as I'm running on a virtual desktop, my Windows profile is actually held on a separate disk and mounted into a mount point folder under c:\users\.
From Windows' point of view this is seamless.
From WSL's point of view, it's trying to automatically map Windows file system permissions into Linux file system permissions... and cannot do that for mounted volumes.
To resolve this I have moved my vscode extensions to a different folder on the main drive using this answer.
define a File class and make getFile a method.
class File:
def __init__(self):
self.filename=None
def getFile(self):
self.filename=filedialog.askopenfilename()
file = File()
then command=file.getFile
Now file.filename should contain the return value of askopenfilename
Try Cardinal: https://github.com/cardisoft/cardinal
It will find out files in milliseconds after indexing, wildcard is also supported.
The full answer is that, as matt said, Code Review should be disabled, but the crucial point is that Show source control changes should be activated.
If Show source control changes is disabled and Code Review is activated, you will see the thick blue line with only the Discard Change option.
If Show source control changes is activated and Code Review is disabled, then you will see the fine blue line with the three options
Hat tip to @M, the problem seems to have been with the CRAN version of RNHANES: https://cran.r-project.org/web/packages/RNHANES/index.html
using devtools::install_github("silentspringinstitute/RNHANES")
To install the [development version](https://github.com/SilentSpringInstitute/RNHANES/issues/18) fixed the problem.
Leaving this here in case others run into this, and to take the answer out of the comments.
The shortcut is not with a second key press, but with a click.
You have to ⌘-Click on the blue line to activate the Hide Change command without opening the popup.
The fact that you align the => operators but NOT the [ ] brackets drives me insane.
$arr =
[
'foo' => 'bar',
'fooo' => 'bar'
]
// the other way makes my brain want to explode. xD
You use "interfaces" to hook models and view "code behind". The interface only includes elements that would be valid in say a "Standard library". When that won't do, you use a "converter"; e.g. a boolean to visibility converter (one way or two way); since "visibility" is a UI enum. BTW, MS is "slanting" away from MVVM due to its impact on "performance" (compiler limitations and "indirection").
What's stopping you from installing said files? Let's assume compute nodes consist of alternating hardware and OS; in Unix, you wouldn't remotely mount one common set of executables or dependencies from a different system
So the objectTree is not required to setThemingColor? The geometry_loaded event doesn't seem to fire when skipPropertyDb: true
For hibernate 6.2.7.Final works "IN (?1)".
I am running into the same issue, that makes sense because MWAA is running in a docker compose environment which does not access by default the host file system where docker runs.
So I tried to mount the missing file in my docker environment but I am still having this error:
[2025-11-21, 15:59:13 UTC] {{docker.py:157}} ERROR - Failed to establish connection to Docker host unix://var/run/docker.sock: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')) [2025-11-21, 15:59:13 UTC] {{taskinstance.py:3311}} ERROR - Task failed with exception
I tried to give more authorization to the airflow user inside the docker container so that it can write to the mounted file, but that did not solve the issue.
I will keep investigating, looking at more genral setup where a script inside a docker image needs to run another docker image, independently from MWAA.
Supported:
<p>, <span>, <strong>, <b>, <i>, <em>, <br>
Supported tags with attributes:
<a href="URL">
<img src="URL" alt="description">
Supported by some:
<div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <span style="color:red">
Not supported:
<iframe>, <script>, <div>, <style>
I think you're on the right track with this by looking at the Python module. What I want to try here is something along the lines of defining the type originally in Python and relying on the Python module's Class wrapper type, then potentially defining methods in Chapel as much as possible and calling over into the Python type for only the more basic functionality. But I'm not sure if that'd allow you to call those methods from Python, or even what the performance would look like from doing so, as it might still require a custom TypeConverter to accomplish that or even some feature requests for things we haven't implemented yet.
I'm hoping Jade will chime in on this thread, they may have some better ideas than I do. In the meanwhile, I'll muse on the structure of this and play with some things locally.
running through the same issue altho my table is a data.frame. The columns values are booleans T/F, do they have to be 0/1s instead?
Intercom complains if I enter localhost, but I can still I save the changes, and it works (2025-11-21)
In newer versions there is no comment at the beginning - so search for string: var VERSION =
You can’t. Homey’s OAuth2 login view always opens the URL inside Homey’s own in-app browser, and the SDK doesn’t provide any way to force it to open in the device’s external browser.
The whole OAuth flow is handled internally by the Homey app. The SDK only gives you the callback and the URL — how that URL is opened is completely controlled by the Homey mobile app, not by your code.
Because of this, Google’s restriction against embedded webviews can’t be avoided. The only real option is to ask Athom to add external-browser support for OAuth login in a future update.
You should already know this you dumb stupid fuck. Welcome to Stackoverflow! We krazy in this bitch
StackOverflow is a Q&A site for technical questions and troubleshooting. You should ask for feedback on CodeReview instead.
The latest advice is to set property vnetRouteAllEnabled to true instead of using WEBSITE_CONTENTOVERVNET as seen at:
However, even that advice is not up to date, as that property has been renamed since Apr 2024:
az resource update --resource-group <group-name> --name <app-name> --resource-type "Microsoft.Web/sites" --set properties.outboundVnetRouting.contentShareTraffic=true --api-version 2025-03-01
Using @Santiago Squadron answer I now have a forth option. Executing script in the module context is a powerful trick. I have to think about it. Life would be a lot easier if it was possible to have name space, or getter/setter for regular variables.
$value = 0
function doCheck {
write-host $value
$script:value += 1
}
Export-ModuleMember -Function 'doCheck'
[CmdletBinding()]
param ( )
begin {
import-module -Name '.\myModule.psm1' -Force
$myModule = Get-Module myModule
}
process { }
end {
write-host (. $myModule { $value })
. $myModule { $value += 1 }
myModule\doCheck
write-host (. $myModule { $value })
CommonJS is still more widely used so it can myabe be easier to work with since many modules can be written for CommonJS. I'd still suggest ESM for a new project, it's cleaner and surprisingly or no, more optimised. There's also a r performance related thing, ESM imports are asynchronous whereas CommonJS imports are synchronous. Also it has robust type checking and is statically analysable which are not available with CommonJS.
Having the same issue, have you been able to solve it?
I realised that the path needed to be relative from where the init function was being call - maybe obvious, but took a while for me to realise. The test function was called a few levels under my internal dir (which was on the same level as the database dir in the question. I just have to: ../../ and so on until I got to the correct level.
E: Package 'python-pip' has no installation candidate
What I understood from your question is that you want 'n' to match with both 'n' and 'ñ' when doing a word search. If that is the case, you can simply define an equivalence table and construct a pattern from it:
import re
multi_match = {
'n': r'[nñ]',
'e': r'[eé]',
# and more
}
def word_search(text:str, word: str):
pattern = ''
for c in word:
pattern += multi_match[c] if c in multi_match else c
return re.findall(pattern, text)
text = 'épée epee piñata pinata'
print(word_search(text, 'epee'))
print(word_search(text, 'épée'))
print(word_search(text, 'pinata'))
print(word_search(text, 'piñata'))
Output:
['épée', 'epee']
['épée']
['piñata', 'pinata']
['piñata']
Of course you could also define equivalences so that 'ñ' matches with both 'n' and 'ñ', if that is something that you want.
With your data:
library(dplyr)
ok.netroles=c( "netrole1", "netrole3", "netrole4")
fes = c("black", "latinx", "asian", "othermx", "noeths", "prefno")
df = structure(list(black = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0), latinx = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0), asian = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0), netrole1 = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0), netrole2 = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0), netrole3 = c(1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0)), row.names = c(NA, -101L), class = c("tbl_df",
"tbl", "data.frame"))
And following the comment from @r2evans about the usage of any_of, the solution can be done with one single summarize and a helper function:
m = \(a, b = any_of(a)) across(b, ~sum(.x, na.rm = TRUE)) / sum(across(b)) * 100
df %>%
summarize(m(fes), m(ok.netroles))
# A tibble: 1 × 5
black latinx asian netrole1 netrole3
<dbl> <dbl> <dbl> <dbl> <dbl>
1 17.6 0 82.4 0 100
And regarding your atempt to use eval to calculate the total (?) sum of the columns:
df %>%
summarize(nr.sum = sum(sapply(ok.netroles[ok.netroles %in% names(.)], \(a) sum(get(a))), na.rm = TRUE))
Welcome to [SO]. This is not a code-writing or tutoring service. We help solve specific problem with code you are writing, not open-ended requests for code or advice. Please edit your question to show what you have tried so far, and what specific problem you need help with. See the [what you are asking] page for details on how to best help us help you.
Late solution (2025):
Go to the Danger Zone, remove the repository from the fork network. After that you refresh your page, and you can set the thus forked repository to Private.
You might find this answer useful. It states:
We can often use any class from the project being tested that is sufficiently exposed to the test project.
Try to use a class that belongs to only the project you are testing as the type parameter for the WepApplicationFactory.
In newer Java Versions (since 17) there is HexFormat:
byte byteVal = (byte)HexFormat.of().fromHexDigits("7f");
assert(byteStr.equals("7f"));
assert(b == byteVal);
HexFormat commaFormat = HexFormat.ofDelimiter(", ").withPrefix("#");
byte[] bytes = {0, 1, 2, 3, 124, 125, 126, 127};
String str = commaFormat.formatHex(bytes);
byte[] parsed = commaFormat.parseHex(str);
assert(Arrays.equals(bytes, parsed));
// The formatted string is: "#00, #01, #02, #03, #7c, #7d, #7e, #7f"
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/HexFormat.html
This is very common and you may find additional information by reviewing polymorphism behavior. This commonly used in JSON Schema and OpenAPI.
# Source - https://stackoverflow.com/a/55561751
# Posted by David Silveiro, modified by community. See post 'Timeline' for change history
# Retrieved 2025-11-21, License - CC BY-SA 4.0
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome()
driver.maximize_window()
wait = WebDriverWait(driver, 3)
presence = EC.presence_of_element_located
visible = EC.visibility_of_element_located
# Navigate to url with video being appended to search_query
driver.get('https://www.youtube.com/results?search_query={}'.format(str(video)))
# play the video
wait.until(visible((By.ID, "video-title")))
driver.find_element(By.ID,
"video-title").click()
Following the thread linked by Andras, this can be fixed using 1000*round(1-i, 1) instead of 1000*(1-i) as the size parameter.
This is a known issue when using Ruby with OpenSSL 3.6.0. According to the last comment on the issue this was fixed with Ruby 3.4.7 by building it against OpenSSL 3.5.4 instead of OpenSSL 3.6.0.
You cannot create sloped roofs because MapLibre's extrusion tool only pulls flat shapes straight up into blocks, which means you must either slice your model into many small steps to fake a curve or install a separate library like Deck.gl that is capable of displaying real 3D models on top of your map.
There is an issue with jfrog-artifactory-oss version 7.125.x.
I cannot access it after upgrading or performing a clean install. The API works, but not the webapp. Most, or all, of the webapp appears to be missing. Try installing a previous version. The newest version that worked for me is 7.117.19.
Hoping someone else can confirm this. I still can't figure out how to report the issue!
Cheers