I have the same issue. Eclipse seems very fragile for plugin issues. This error occurs in Marketplace showing the currently installed components. The error log just duplicates the same message from the Marketplace UI: MarketplaceDiscoveryStrategy failed with an error Unexpected response for '2963451,661,1794107,3519199,2755329,2706327,2177882,507775,3581018,2894763,1336,4716941,150,4706981,1617241,1099,1789419,3536358,2568658,5585660,3644319,593,1549,2963400,1963651'
One suggestion: Try to update the components with Help -> Check for updates. It will probably fail with a message similar to ''No repository found containing: ...'. Try fixing the Eclipse Configuration Update sites (removing no longer valid sites), updating everything except for those plugins, and reinstalling those failing component updates. In my case these plugins were problematic: Dbeaver, sonarlint, spotbugs. YMMV.
I found a solution to my problem. The connection string and SQLstatement were wrong. I also added the functionality I wanted to open word, perform the mail merge and convert to pdf using the first name and last name from my database. I will post code below for anyone interested. Thanks to all who responded. Appreciate the help. Cheers.
Public Sub MailMergeRun(FilePath As String, WorkbookPath As String, SQLstring As String, SelRow As Long)
Dim wdapp As Object
Dim mydoc As Object
Dim connectionString As String
Dim firstName As String
Dim lastName As String
Dim folderPath As String
Dim pdfFilePath As String
Dim folderName As String
Dim xlSheet As Worksheet
Dim firstNameCell As Range
Dim lastNameCell As Range
' Access the Main Database sheet in the current workbook
Set xlSheet = ThisWorkbook.Sheets("Main Database")
' Get the person's first and last name from the Main Database sheet (based on SelRow)
Set firstNameCell = xlSheet.Cells(SelRow, 3) ' Assuming FirstName is in Column C
Set lastNameCell = xlSheet.Cells(SelRow, 4) ' Assuming LastName is in Column D
firstName = firstNameCell.Value
lastName = lastNameCell.Value
' Create the folder path using the person's name
folderName = firstName & " " & lastName
folderPath = "C:\Documents C\Mail Merge Conscious Clay\Conscious Clay Mail Merge Forms\Populated PDFs\" & folderName ' Change this base path as needed
' Check if the folder exists, and create it if not
If Dir(folderPath, vbDirectory) = "" Then
MkDir folderPath
End If
' Build the file path for saving the PDF
pdfFilePath = folderPath & "\" & firstName & "_" & lastName & "_" & Replace(Mid(FilePath, InStrRev(FilePath, "\") + 1), ".docx", ".pdf")
' Initialize Word application (Check if it's running, otherwise create a new one)
On Error Resume Next
Set wdapp = GetObject(, "Word.Application")
On Error GoTo 0
If wdapp Is Nothing Then
Set wdapp = CreateObject("Word.Application")
End If
' Make Word invisible for processing
wdapp.Visible = False
' Open the Word document for mail merge
Set mydoc = wdapp.Documents.Open(FilePath, False, False, False)
wdapp.ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
' Connection string for Excel workbook (adjust path as necessary)
connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & WorkbookPath & ";Extended Properties=""Excel 12.0 Xml;HDR=YES;IMEX=1"""
' Open the data source (Excel file) and execute the mail merge
wdapp.ActiveDocument.MailMerge.OpenDataSource _
Name:=WorkbookPath, _
Format:=wdOpenFormatAuto, _
ConfirmConversions:=False, _
ReadOnly:=False, _
LinkToSource:=False, _
AddToRecentFiles:=False, _
PasswordDocument:="", _
PasswordTemplate:="", _
Revert:=False, _
WritePasswordDocument:="", _
WritePassWordTemplate:="", _
Connection:=connectionString, _
SQLStatement:="SELECT * FROM [Main Database$]", _
SubType:=wdMergeSubTypeOther
' Perform the mail merge
With wdapp.ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
.DataSource.FirstRecord = SelRow - 1 ' Ensure the first record is adjusted correctly
.DataSource.LastRecord = SelRow - 1 ' Ensure the last record is adjusted correctly
.Execute Pause:=False
End With
' Save the new document as a PDF (the merged result)
wdapp.ActiveDocument.SaveAs2 pdfFilePath, 17 ' 17 = wdFormatPDF
' Close the new merged document without saving changes (this prevents saving changes to Word doc)
wdapp.ActiveDocument.Close SaveChanges:=False
' Quit Word without saving any changes to the original document
wdapp.Quit SaveChanges:=False
' Release objects
Set wdapp = Nothing
Set mydoc = Nothing
Set xlSheet = Nothing
MsgBox "Mail merge complete and saved as PDF in: " & pdfFilePath
End Sub
emphasized textSHA256
:
import hashlib
m = input('password')
h = hashlib.sha256(m.encode())
Thanks for the hint about StreamReader being text only....doh!
so creating a memorystream works great.
ms = new MemoryStream(client.DownloadData(baseUrl + endPoint));
Response.Clear();
Response.BufferOutput = true;
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment; filename="report.pdf");
Response.BinaryWrite(ms.ToArray());
Thanks all
You can achieve this by using the appendTo="body" property along with CSS to control the width.
<p-dropdown
[options]="options"
placeholder="Select an option"
appendTo="body"
[panelStyle]="{'min-width': '100%'}">
</p-dropdown>
You Just Remember The main purpose of anchor tag :
so you can't open folders directly, but you can add download attribute to anchor tag
<a href="/path/to/file.zip" download>Download File</a>
If you need your RedirectUrl to be more dynamic, you could just instead do
redirectUrl := "http://localhost:9090/oauth2callback"
token, err := oauthConf.Exchange(oauth2.NoContext, code, oauth2.SetAuthURLParam("redirect_uri", redirectURL))
Try adding buttons using a plugin. Create one plugin in the tinymce.script.js file and add your button code there. In the tinymce.override.json file, add your plugin and button. Everything should work.
Lexical recently published new versions after I installed the version I was using (0.25.0), in 0.26.0+ they seem to have fixed this issue so no extra code needed for me.
The whole idea of chunks in all frameworks I've encountered so far, incl. Minecraft is to have them in a spatial grid. Especially so that calculations like these become trivial.
The framework you use most likely provides you some coordinates for every chunk in the world. Either in real world X & Y of the chunks corner, or as Chunk X and Y which you have to multiply with the size of a chunk. Minecraft shows all that in the debug screen.
With those numbers using colliders is absolute overkill. It's just good ol' pythagoras to get distance to the player.
Do you actually use a chunk based voxel framework that does not have that? Does it use chunks of different sizes somehow?
It sounds like your WebFlux controller is not properly subscribing to the reactive stream, causing it to hang indefinitely. Given that the same service works fine when triggered from a Kafka listener or manually subscribed with subscribeOn(Schedulers.boundedElastic()).subscribe(), the issue is likely due to one of the following:
Above are some guesses but I believe you might need to trace logs more and more to catch this issue. Good luck !
'cominedLtv':
inside the $project
looks like a typo.
With @Query
there is no explicit $project
(and also no typo).
<Route path="/" element={<Users />} />
You're using the built-in Mediapipe function draw_landmarks
to handle all the drawings. This function takes an image, a normalized landmark list, and connections as inputs. However, the NormalizedLandmarkList
type in Mediapipe doesn’t support merging multiple landmark lists, making it difficult to pass landmarks for both hands to the function and find connections.
An alternative approach is to extract the coordinates from the hand landmarks and draw a line using the cv2.line
method, as you mentioned. Here’s the code to implement this approach:
right_hand_landmarks = results.right_hand_landmarks
left_hand_landmarks = results.left_hand_landmarks
# try to render a line if both hands are detected
if right_hand_landmarks and left_hand_landmarks:
# find the position of wrist landmark (as it is normalized, it should multiplied by width and height for x and y respectively)
right_wrist = np.array([right_hand_landmarks.landmark[0].x * image.shape[1], right_hand_landmarks.landmark[0].y * image.shape[0]]).astype("int")
left_wrist = np.array([left_hand_landmarks.landmark[0].x * image.shape[1], left_hand_landmarks.landmark[0].y * image.shape[0]]).astype("int")
# draw a line between two wrists
cv2.line(image, right_wrist, left_wrist, color=(255,255,255), thickness=3)
If you want to select another landmark other than the wrist
, check this link to see landmark indices.
With your android device connected, you can use adb reverse
to grant your device access to local host running on your computer.
See this article for more info.
thanks for your answers, I didn't realize there would be several ways to write the syntax for this but I was also able to get it working by using this 0%/100% notation (whereas using the from/to notation did not work):
@keyframes rotate {
0% {
--angle: var(--offset-angle)
}
100% {
--angle: calc(var(--offset-angle) + 360deg);
}
}
it seems that specific pair doesn't have 15x leverage at all, by default it is set on 5x and I don't have enough balance to buy 299 BAL on 5x leverage.
Is like all other expressions used in shell commands.The idea is that it will work the same in both cases with or without quotes.
Still there can be subtle difference if some of the checks require exactly string values so in that case you can quote that and other case will be when u need to use string interpolation for example adding some prefix or not.
Try to search explanation broader for example if cases or simple string expressions.
You can switch gawk to byte-mode by using the -bE instead of -E in the shebang:
#!/usr/bin/gawk -bE
BEGIN { printf "%c",255 }
https://bugs.openjdk.org/browse/JDK-8329140 claims the related issue was fixed in Java 23.
Mistake in Your Approach
Your approach:
python
corr = np.corrcoef(a.T, b.T).diagonal(a.shape[1])
What Went Wrong?
Incorrect Use of 'np.corrcoef'
-'np.corrcoef(a.T, b.T)' computes the correlation matrix for column-wise comparisons, not row-wise.
-Since '.T' transposes the matrix, it correlates columns rather than rows.
Wrong diagonal() Usage
-diagonal(a.shape[1]) is incorrect.
-diagonal() extracts elements from the main diagonal, but in this case, the relevant values are not located where expected.
Code With Correct approach: python
import numpy as np from scipy.stats import pearsonr
-Define the arrays a = np.array([[1, 2, 4], [3, 6, 2], [3, 4, 7], [9, 7, 7], [6, 3, 1], [3, 5, 9]]) b = np.array([[4, 5, 2], [9, 2, 5], [1, 5, 6], [4, 5, 6], [1, 2, 6], [6, 4, 3]])
-Compute correlation for each row correlation_values = np.array([pearsonr(row_a, row_b)[0] for row_a, row_b in zip(a, b)])
-Display results print(correlation_values)
[Tell me if its useful or not]
turned out Godot couldnt deal with the used color space from my image. So i changed the color space to a color space that i knew Godot could accept and now its working.
Maybe this is helpful for someone having similar issues.
And if you try with Expand
(or Flexible
) instead of SizedBox
?
Using pip install gradio --no-cache-dir
installs with no errors
In 2025, the URL for reporting a bug in the Chrome browser is https://issues.chromium.org/issues/wizard
.
stripe.checkout.sessions.create metadata will reflect on checkout.session.completed. If you want to pass metadata to charge.updated, you have to create metadata for Payment Intent since charge oject is created from it.
how did you resolve this issue?
You can try asyncio.run()
for the event loop:
if __name__ == "__main__":
print("Трекер начал работу...")
client.start()
print("Трекер успешно подключился к Telegram'у!")
asyncio.run(main())
I, Don't know anything so, Bye.
https://www.youtube.com/results?search_query=Lets+game+it+out
Very funny guy.
I found it. I had to add a "Data Flow Task" to the control flow first, then the "Other Sources" appear within the data flow, including "XML Source".
The reason is because AWS does not currently have enough capacity for that instance type. The think you can do is to try to create the instance in a different AZ or different instance type.
what IP address is in your code when you run flutter build apk
? It should not be 10.0.2.2. 10.0.2.2 is for emulators to host machines only. you need to use the LAN ip address of your machine, connect your phone to the same network as your machine. Look at the logcat for more info, it may give you more insight as well. here is a screenshot of logcat
https://www.designgurus.io/blog/horizontally-scale-sql-databases ^ This is a good resource to add more food for thought when considering distributed systems and databases.
A bit stupid of my part, the string was actually filled with \n and double quotes, I needed to replace all these characters for the html string to be normally formatted
The reason is because AWS does not currently have enough capacity for that instance type. The think you can do is to try to create the instance in a different AZ or different instance type.
Another option is to use the "capture" tag, which captures the string inside two tags, and then assigns the result to another (string) variable (see docs on Liquid variables for details). For an input integer variant.id
(following @fabio-filippi here) you'll end up with something like this:
{% capture variant_id %}{{ variant.id }}{% endcapture %}
Variable variant_id
is now the string representation of variant.id
. I personally think this is slightly more elegant than the other proposed solutions I've seen floating around the net. I'm still surprised Liquid doesn't have a built-in, dedicated tag for such a basic operation though.
I can confirm that I created multitenant database in silent mode plus using also response file: dbca -silent -createDatabase -responseFile dbca.rsp
As a result, my PDB database has no SYSTEM, SYSAUX, UNDO, TEMP, USERS. Just nothing, though it was created and I can connect to it. I can list these tablespaces in PDB but all of them seem SHARED from CDB, i.e. there is no separate data file on hard drive for PDB.
The connection was simply running on a different bus on the 7100. It was running on bus 2.
sudo i2cdetect -y -r 2
showed that there was a device on 0x36
You can simply create an own static Logger for your class:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(YourClass.class);
See the iruby example here: SciRuby example notebook
What thay propose is:
File.open('IRuby Examples/ruby.png')
Unfortunately, the right solution is to contact support to request an increased limits. The InstanceLimitExceeded is because you have been reached the EC2 limit for your account.
kaeck2h3:trietdeptrai:_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_115C3DE36C3308CEA78CB1CD06DA4143C52100C1AB88CD5F714964868106E70FBB73E6A31CFC17516E1F2B1FAAB59160F7F85278ACB5C657A4488DB729750B1A66B6F2484CF918E01C4ECED2A5E91D4043E585FDE0745790314A204B844AABA904A83D210F2B5D3ACB3F313EDEF4FE36357118CA978F7844BE7129F44124DDC466005A226A4636D9B4A0C45FFE39FC28D7B04628B2B5FB0F66A7C1A40D34BBEDA371140212240632890F430702FD5E76E90BEAD824AD5FD9B4C69E877E7DCB883A0B4990EB15D0C2904F4849DE6C537A632037E6596F3CC7BE56C0D65B8A970239CE3F334D920C22E4C47ED270CAA055DA6693FB93EF56668562F780194F620F064043BDA900F519CE80A425EC9ECF7138AD45357AF1569B3824ED36B8E4C34E648BD581E240A9DE47B561BE16D3CB302CFE8079736C2F6025F8523270BF989AFCFA63C3D1F24574AFFBA18FE9D4CBAECFFDE3DEE3010ABB26D4914AA385C6964745B8D1DCC5F9D5ADB2E4042EBEBD2B889DDA2593989783CA630A5B70A46796516F0B3C8DEB66241895DC8FC1278DF7BA631DE88C2EFA12901669B00A31C1A2A6576DBF02C89E3871845BF4A219A9D0E9AA9A805BF4E4AE7BC9D7DA1E1D8999FAB0181140CC3670B50C17EB2C259688A18E17A84D8673E594C4EE05A57E1CFF367423B9F9AB7C2D261DB61713CD9DD44AFA1497CC15B5BAC2A25ED0047A2CDE4AD00A6C6C166520EEE46CE27DFA9514A8AF7274E0B6635C61DA54B6328803F339A7CB90005FC5AE8A4C89A6941165EDB3555861820496F92A1C8CC36CAE63527FD641141454D45B05619C4C21D0037D2D5188CFF37AC616465782A519EA055B3BF5B3DE20D6CB5896104DBF416DA328E9D042C136F368F07DCDA7ED946E0BD0D386C38EC86E5DB28360A0767C2728F309E90BF55703506BDFCFE7C90AA8255291D6FCE71B91A5BD5AE8ED9008147AA4A701F6300F5B21C4B296ABBEC04A95AFE23B260EF9B7E8F2BA695527BC7ECEF7BEF899ADC62E1D3864B5147AF6C33FBFFC4B024519801DA36065976BD5CB5786A8A9B301D2F608C288F2B66E2F88124C4CBC251A6EFE08FA9218B669B735F688970B4E85
i am experiencing this too. I enabled/disabled the APIs, then I created a new API, which initially gave a different error (possible because it takes up to 5 minutes to load), but after I got the same ApiNotActivatedMapError.
Had this same problem in Win10. Turns out that pip was installed, just not in the scripts folder. Executing python -m pip --version works fine. python -m ensurepip --default-pip returns: Looking in links: c:\Users\BERTKO~1\AppData\Local\Temp\tmpzbbk5r9_ Requirement already satisfied: pip in c:\users\bert kortenbach\appdata\local\programs\python\python313\lib\site-packages (25.0.1)
This is my first time using Python. Problems problems. Can't say I like it very much so far.
There are 3rd party options, like:
The reason my dropdown still displayed the selected option—even when I didn't store the selected value in the parent—was due to Angular's change detection optimizations. Since the selectedValue
in the parent never actually changed, Angular did not trigger a UI update, and the browser's native behavior retained the selected value.
To force Angular to reset the dropdown back to the default option, I had to explicitly introduce a temporary value change before resetting it back to ''
.
Working Solution
handleOnChange(event: any) {
console.log(event.target.value);
// Temporarily set a different value to force change detection
this.selectedValue = 'temp-value';
// Use setTimeout to reset it in the next JavaScript cycle
setTimeout(() => {
this.selectedValue = ''; // Revert to default selection
});
}
Using setTimeout() ensures that Angular detects both changes separately, allowing the dropdown to reset properly.
After more debugging and tinkering with the code, eventually it turned out its not a problem with the software but with the serial port on the computer where my code worked. With the help of someone else I was able to use a logic analyzer and saw that on the /dev/ttyS0
port the request goes successfully to the Modbus RTU device but the response did not arrive properly. It seems like the port is being used for something else too even though I used before that linux commands in the terminal to check if the port is being used and I saw nothing then.
After finding this out, I moved the RS-485 cable to the other serial port present on the computer /dev/ttyS1
and then everything worked fine.
Thank you all for the input. Hopefully this is useful for other people in need too.
All right folks, firstly, I am very sorry when I do not obey the rules - I do not have the concrete answer to the original question. Instead, I would like to refine the question to shed some light on the difficulty of the post: Most of the replies start with "if"... followed by some conditional statement. This is not the way you would handle the question when it boils down to evaluating the "equals" method for two distinct objects. Thus, re-phrasing the original question: exactly when are two objects "equal" by CONTRACT (considering cross-platform) when they contain intrinsic double or float values? If it was java.lang.Double or java.lang.Float I would rely on their respective equals method. In general, though, I suppose, this must not be dependent on situations such a THRESHOLD, libraries, fuzzies, wavelets, AI or the like... So, who is fond of JAVA, please help: what is the DEFINED answer to this question?
You case use this spec:
[
{
"operation": "shift",
"spec": {
"*": "data.&"
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"*": "=recursivelySquashNulls"
}
},
{
"operation": "shift",
"spec": {
"data": {
"*": "&"
}
}
}
]
This spec covers all levels of json
There are different models of uncertain data in literature, and they are not compatible data types.
UKMeans needs discrete samples from uncertain data, it does not process continuous distributions directly. You need to use a DiscreteUncertainifier to produce such discrete samples from the uncertain data.
See the JavaDoc of the class hierarchies and filters:
https://elki-project.github.io/releases/current/doc/elki/data/uncertain/package-summary.html
UPD: paste into ios 15.5 simulator still does not work in Xcode 15.4
paste into ios 17.2 simulator works fine
The combination of @andy-jackson's answer, and the comment by @mb21 about data types put me on the right track. It turns out that my problem was caused by the fact that the value of page.comment_id
is an integer, whereas it needs to be a string to work in the file reference.
Surprisingly (at least to me), Liquid doesn't appear to have any built-in tags to convert an integer to a string! After some searching I did find this workaround that appends two quotation marks to an integer variable, which then magically returns a string. This works, but it's a bit hacky for my taste though.
Digging into the docs on Liquid variables I did find the "capture" tag, which captures the string inside two tags, and then assigns the result to another (string) variable. I applied this to page.comment_id
, and stored the result in a new variable comment_id
. I then used that variable in the way suggested by @andy-jackson.
Here's what I ended up with:
{% capture comment_id %}{{ page.comment_id }}{% endcapture %}
{% assign comments = site.data.comments-gh[comment_id] %}
{% for comment in comments %}
(processing code)
{% endfor %}
With these changes, the data file references work as expected on each page.
This seems to be a problem with the session. You can eliminate this by editing the Kate configuration file in ~/.config/katerc
and replacing the corresponding lines with this:
Restore Window Configuration=false
and
Startup Session=none
Source:
[1] https://www.reddit.com/r/kde/comments/slxj9k/kate_doesnt_remember_the_last_project_folder_on/
[2] ChatGPT
By any chance are you using vector_graphics package? it might be a dependancy of many packages, like flutter_svg.
Some time ago there was an update on this package that caused us having same issue with rendering texts. (version 1.1.16) we pinned the version to vector_graphics: 1.1.15 and it worked.
You can try to use alias for your module:
resolve: {
extensions: ['.jsx', '.js'],
alias: {
'react/jsx-runtime': path.resolve(__dirname, 'node_modules/react/jsx-runtime.js')
}
}
How to achieve hiding tabs in case of expo-router ?
Don't think it is the actual issue, but spotted that in the provided configuration, the port is set first to '6379' then set to '0'.
Question, did u solve that? I am encountering the same issue...
How should I be able to edit wsdl if it is generated by third party sources,
To fix this error, simply delete the entire node_modules folder and the ios/Pods folder, and then replace your entire Podfile with a default one from a brand-new React Native project.
I think the only way is using inheritance (if it fits your needs. If not, please provide more details on how you want to use this protocol):
protocol Protocolable {
var data: Int { get }
func update()
}
class Dummy: BaseProtocolable {
//any specific to Device class code
}
class Device: BaseProtocolable {
//any specific to Device class code
}
class BaseProtocolable: Protocolable {
private(set) var data: Int = 0
func update() {
updateData()
}
private func updateData() {
data = 100
}
}
I've deployed to production. So far, the issue does not happen anymore. My only guess is something to do with the Google App Store test suite. I will be closing this question due to lack of information.
deberas, aplicar:
<Stack
screenOptions={{
contentStyle: {
backgroundColor: COLORS.background,
},
}}>
en cada layout que tengas en app, porque Expo Router utiliza un sistema de layouts anidados.
En Expo Router, cada Stack dentro de una carpeta actúa como un layout independiente, por lo que el Stack dentro de Layout.tsx no hereda automáticamente las opciones de screenOptions del Stack en RootLayout.tsx.
2da Opcion, en el _layout raiz, agregar un View que renderice el stack, (desconozco su rendimiento):
import { Stack } from 'expo-router'
const Layout = () => {
return (
<View style={{ flex: 1, backgroundColor: 'def_color' }}>
<Stack>
<Stack.Screen name='' options={{ headerShown: false }} />
</Stack>
</View>
)}
export default Layout
you can just dispatch a keyboard event, mapping key "a" to "<-"
if (e.key === "a") {
document.dispatchEvent(
new KeyboardEvent("keydown", {
keyCode: ARROWS.LEFT,
})
);
// System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Should be path to chromedriver exe .. not bin folder
Thanks to everyone who provided an answer, and special thanks to @HolyBlackCat for pointing out the restriction on the standard library—I wasn't aware of it.
After some thought, I've come up with a solution that meets my needs and would like to share it with you. Please feel free to critique it if I’ve overlooked any potential issues or if it breaks any C++ standard restrictions.
The code below supports basic types like std::pair
, std::tuple
, and std::array
, as well as my custom specializations, to the best of my understanding.
#include <iostream>
#include <algorithm>
#include <string>
#include <array>
#include <tuple>
#include <functional>
// Define a simple struct MyStruct with two different types
struct MyStruct { int i; double d; };
struct MyOtherStruct { int i; double d; std::string s; };
// Specialize std::tuple_size for MyStruct to enable tuple-like behavior
namespace std {
// Standard allows specialization of std::tuple_size for user-defined types
template <> struct tuple_size<MyStruct> : std::integral_constant<std::size_t, 2> { }; // MyStruct has 2 members
template <> struct tuple_size<MyOtherStruct> : std::integral_constant<std::size_t, 3> { }; // MyOtherStruct has 3 members
}
namespace My {
// Support for all std::tuple-like types using std::apply
template <std::size_t N, typename StdStruct>
constexpr decltype(auto) Get(const StdStruct& a) {
return std::get<N>(a);
}
template <std::size_t N, typename StdStruct>
constexpr decltype(auto) Get(StdStruct& a) {
return std::get<N>(a);
}
template <std::size_t N, typename StdStruct>
constexpr decltype(auto) Get(StdStruct&& a) {
return std::get<N>(a);
}
// Specialization of Get for MyStruct to access its members
template <std::size_t N>
constexpr decltype(auto) Get(const MyStruct& a) {
if constexpr (N == 0)
return (a.i);
else if constexpr (N == 1)
return (a.d);
}
// Specialization of Get for MyOtherStruct to access its members
template <std::size_t N>
constexpr decltype(auto) Get(const MyOtherStruct& a) {
if constexpr (N == 0)
return (a.i);
else if constexpr (N == 1)
return (a.d);
else if constexpr (N == 2)
return (a.s);
}
// Convert a struct to a tuple using index sequence as someone else suggested
template <typename Tuple, std::size_t... I>
constexpr auto ToTupleImpl(Tuple&& t, std::index_sequence<I...>) {
return std::make_tuple(Get<I>(t)...);
}
// Public interface to convert a struct to a tuple
template <typename Tuple>
constexpr auto ToTuple(const Tuple& s) {
return ToTupleImpl(s, std::make_index_sequence<std::tuple_size<Tuple>::value>());
}
// Implementation of Apply to invoke a callable with tuple elements
template <class Callable, class Struct, size_t... Indices>
constexpr decltype(auto) Apply_impl(Callable&& Obj, Struct&& Strct, std::index_sequence<Indices...>) noexcept(
noexcept(std::invoke(std::forward<Callable>(Obj), Get<Indices>(std::forward<Struct>(Strct))...))) {
return std::invoke(std::forward<Callable>(Obj), Get<Indices>(std::forward<Struct>(Strct))...);
}
// Public interface to apply a callable to a tuple-like structure
template <class Callable, class Struct>
constexpr decltype(auto) Apply(Callable&& Obj, Struct&& Strct) noexcept(
noexcept(Apply_impl(std::forward<Callable>(Obj), std::forward<Struct>(Strct), std::make_index_sequence<std::tuple_size_v<std::remove_reference_t<Struct>>>{}))) {
return Apply_impl(std::forward<Callable>(Obj), std::forward<Struct>(Strct),
std::make_index_sequence<std::tuple_size_v<std::remove_reference_t<Struct>>>{});
}
}
int main() {
// Example usage of MyStruct
constexpr MyStruct ms{42, 3.14};
const MyOtherStruct mos {42, 3.14, "My other struct"};
// Apply a lambda to MyStruct converted to a tuple
My::Apply([](auto&&... args) {((std::cout << args << ' '), ...); std::cout << "\n";}, My::ToTuple(ms));
// Apply a lambda to a std::pair
My::Apply([](auto&&... args) {((std::cout << args << ' '), ...); std::cout << "\n";}, std::pair {2, 3});
// Apply a lambda to a std::array
My::Apply([](auto&&... args) {((std::cout << args << ' '), ...); std::cout << "\n";}, std::array {4, 5});
// Apply a lambda directly to MyStruct
My::Apply([](auto&&... args) {((std::cout << args << ' '), ...); std::cout << "\n";}, ms);
// Apply a lambda directly to MyOtherStruct
My::Apply([](auto&&... args) {((std::cout << args << ' '), ...); std::cout << "\n";}, mos);
return 0;
}
It looks like your EmptyViewTemplate is not updating properly because CollectionView does not react to changes in IsLoading. The EmptyViewTemplate only appears when News is empty, and it does not update dynamically unless News itself changes. So update the XAML. Instead of EmptyViewTemplate, set the EmptyView dynamically:
<CollectionView ItemsSource="{Binding News}"
EmptyView="{Binding EmptyViewMessage}">
</CollectionView>
Also modify your view model
private string _emptyViewMessage;
public string EmptyViewMessage
{
get => _emptyViewMessage;
set
{
_emptyViewMessage = value;
OnPropertyChanged();
}
}
private bool _isLoading;
public bool IsLoading
{
get => _isLoading;
set
{
_isLoading = value;
OnPropertyChanged();
UpdateEmptyViewMessage();
}
}
private void updateemptyview()
{
if (IsLoading)
EmptyViewMessage = "Loading...";
else if (Status == ConstantsFile.STATE_NOT_FOUND)
EmptyViewMessage = "No se han encontrado coincidencias.";
else if (Status == ConstantsFile.STATE_SERVER_ERROR)
EmptyViewMessage = "Ups.. Parece que algo no ha ido como debería.";
else
EmptyViewMessage = string.Empty;
}
Hope that helps!
This comment was writen to test stackoverflow api. Sorry for inconvenience
Issue resolved by moving jwt and session callbacks inside auth.config.ts file above authorized function in callbacks object. Can someone maybe explain why providers were working but callbacks didn't inside auth.ts? Is it maybe that session callback needs to be provided to middleware? This is my middleware.ts:
import NextAuth from 'next-auth';
import { authConfig } from './auth.config';
export default NextAuth(authConfig).auth;
export const config = {
// https://nextjs.org/docs/app/building-your-
application/routing/middleware#matcher
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
};
async client not support poller.status() and poller.done()
you have to use this
from azure.ai.documentintelligence import DocumentIntelligenceClient
not below
from azure.ai.documentintelligence.aio import DocumentIntelligenceClient
I have used the last program above but whilst if I make a public integer Q and run it in a long for loop in the startloading method it counts up, which is just fine, and can be stopped by the other button. But I wanted to see the count as it runs by putting a textbox with an update() inside startloading, but it says I have a "cross threading exception" if I do this. So I added another public integer CQ (this stands for "cancel Q") and the it is set to zero and also set to zero when the start button is pressed. But when the stop button is pressed CQ is set to one. An if(Q==1){Break;} is inserted inside the for loop inside the startloading method, and this works, it exits the loop when the stop button is pressed and if the loop is not finished shows the count up to the time the button was pressed, a bit like a stopwatch. But as for the remaining problem of actually displaying the count "live" I simply set a timer at a high tick rate and put this in the timer (see below) textBox1.Update; textBox1.Text=Q.toString(); But is their a more conventional way of achieving this? See code below
using System.ComponentModel;
namespace startstop2 { public partial class Form1 : Form { public int Q = 0; public int CQ = 0;
private BackgroundWorker bw = new BackgroundWorker();
public Form1()
{
InitializeComponent();
bw.WorkerSupportsCancellation = true;
bw.DoWork += new DoWorkEventHandler(bw_DoWork);
bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)//start button
{
CQ = 0;
if (!bw.IsBusy)
{
bw.RunWorkerAsync();
}
}
private void button2_Click(object sender, EventArgs e)//stop button
{
CQ = 1;
if (bw.WorkerSupportsCancellation)
{
bw.CancelAsync();
}
}
private void bw_DoWork(object sender, DoWorkEventArgs e)
{
BackgroundWorker worker = sender as BackgroundWorker;
if (worker.CancellationPending)
{
e.Cancel = true;
return;
}
StartLoading(); //Some Method which performing I want to stop at any time
}
private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Cancelled)
{
//"Canceled!";
}
else if (e.Error != null)
{
//"Error: " + e.Error.Message);
}
else
{
//"Done!";
}
}
private void StartLoading()
{
for (int i=0;i<1000000000;i++)
{
if (CQ == 1) { break; }
Q++;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
textBox1.Update();
textBox1.Text = Q.ToString();
}
}
}
Use:
#!bin/bash
.venv/bin/python main.py
This happened to me and I tried everything above without luck.. hours later I tried turning off "Rocket Loader" in Cloudflare, and it worked! Hope this helps someone.
Define a formatter that takes a list and prints it the way you want it. Then apply it to the dataframe:
formatter = lambda l: ', '.join('{:0.2f}'.format(i) for i in l)
df.style.format(formatter)
Should print out what you want:
Values
0 0.12, 0.00, 0.00
1 0.00, 0.00, 0.00
dat <- data.frame(
names <- unique(c(dat$source, dat$target))
dat$source <- factor(dat$source, levels = names) dat$target <- factor(dat$target, levels = names)
mat <- xtabs(count ~ source + target, data = dat) mat[lower.tri(mat)] <- t(mat)[lower.tri(mat)] mat target source A B C D A 0 4 5 6 B 4 0 3 3 C 5 3 0 5 D 6 3 5 0
Can be a memory issue? Got the same error and fixed only by increasing memory
I had to deactivate the following, then it worked again.
Settings > Profiles > Text > Ambiguous characters are double-width
I will try to help you with your task. To extract the table using DOCX, I suggest following a few steps:
I hope this advice will help you!
There are multiple ways to achieve this:
My preference is to have more granular events for more control and I will probably not fire the general "AddPersonUpdatedDomainEvent" event, but as I say that may vary from application to application.
In summary I think there is strict rules how to do this, but it may depend of application needs.
did you find a bug? I can't configure ssl either, looking for solutions
You use a lot of push_back or emplace_back, but I don't see any calls to reserve. Threads all need to get memory from the same place, so any re-allocation would cause them to go through that bottleneck.
Your best bet for multithreading is to pre-allocate the buffers as if they would be serviced by a single thread. Once you do that, the worker threads should each change values in different portions of that buffer (by reference). Threads are for computing so try to eliminate anywhere that they need to perform memory allocation.
Since the data node can be anything ,can it be checked for the identifier of data and its before or after characters ,so if you put that json in and as a string you can just check for the data keyword and create a string pattern according to what node it is like data :{ or data:[{ ,this might take more computational time because inside the subfields can be those arraynode or object nodes too
Try to remove the proxyConfig
and try to change the url you want to visit also if you are using an OS with a visual GUI try to inspect using your eyes
the behavior and the breaking points. Because the provided information are not enough for debugging
Brackets do multiple things in JavaScript.
What you want to do is add elements to indexes in the Array object called fileData. Brackets can be used to add elements to indexes.
Because in JavaScript an Array is a descendant of an object, you can actually add properties to it as well. If
data["uniquePropertyName"]
were equal to something like 3, bracket notation would allow you to make an assignment to fileData[3].
If however, data["uniquePropertyName"] makes reference to something like a string, you will create a property on fileData.
let array = [];
console.log(typeof array);
//OUTPUT: object
let data = { my_object_key: "my object value", value: "my 2nd object value" };
array[data["value"]] = "something that I am trying to insert into array";
console.log(array);
//OUTPUT: [ 'my 2nd object value': 'something that I am trying to insert into array' ]
console.log(array['my 2nd object value']);
//OUTPUT: something that I am trying to insert into array
array[0] = "Another array insertion";
array[1] = "2nd array insertion";
array[2] = "Third array insertion";
console.log(array);
//OUTPUT:
// [
// 'Another array insertion',
// '2nd array insertion',
// 'Third array insertion',
// 'my 2nd object value': 'something that I am trying to insert into array'
// ]
But if data["uniquePropertyName"] makes reference to an object:
let evil_deed = { do_not: { try_this: "at home" } };
array[evil_deed["do_not"]] = "Why, you ask?";
console.log(array)
//OUPUT:
// [
// 'Another array insertion',
// '2nd array insertion',
// 'Third array insertion',
// 'my 2nd object value': 'something that I am trying to insert into array',
// '[object Object]': 'Why, you ask?'
// ]
That's all fun and games, until you are trying to access that property:
console.log(array[evil_deed["do_not"]])
//OUPUT: Why, you ask?
In the second example
You are creating an object with a single property name, and then pushing that object into an Array. That will place the elements into indexes.
Without using @namespace in any .razor files, I got past this by modifying my MainPage.xaml code (in project with name "test_only") to include an extra namespace declaration "componentsNamespace".
It would appear that the x:Type Markup Extension syntax
<object property="{x:Type prefix:typeNameValue}" .../>
(as per this) doesn't like dot notation in the "typeNameValue". Also successfully tested with a project that has a dot-delimited longer name.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:test_only"
xmlns:componentsNamespace="clr-namespace:test_only.Components"
x:Class="test_only.MainPage">
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
<BlazorWebView.RootComponents>
<RootComponent Selector="#app" ComponentType="{x:Type componentsNamespace:Routes}" />
</BlazorWebView.RootComponents>
</BlazorWebView>
When I was trying to save jupyter notebook as PDF Below commands works for me:
pip install nbconvert
then:
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
Taken reference from:
https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.
I had the same error and spent a few hours solving it. I created a demo repository with the solution steps: https://github.com/gindemit/TerraformGCPAuth
enter image description hereThere will be a missing field, just fill this field.
Based on furas answer,I discovered that not only body must be included, but also the parameters. So the create_withdrawal must be implemented like this:
def create_withdrawal(self, ccy, amount):
clientId = self.create_client_id()
endpoint = f'/api/v5/fiat/create-withdrawal?paymentAcctId=my-account?ccy={ccy}?amt={amount}?paymentMethod=PIX?clientId={clientId}'
body = {
"paymentAcctId": "my-account",
"ccy": ccy,
"amt": amount,
"paymentMethod": "PIX",
"clientId": clientId,
}
url = self.baseURL + endpoint
request = 'POST'
header = self.get_header(request, endpoint, body = json.dumps(body))
response = requests.post(url, headers = header, data = json.dumps(body))
return response.json()
use
import fs from "fs/promises"; import path from "path";
The PathRegexp
function is supported as of Traefik v3.1.0 (commit).
So if you got an unsupported function: PathRegexp
error, chances are you are using Traefik v2.
Answer from spring-data github issues:
The referenced fragment points to the commons part of the documentation with limited applicability. Is-New detection for all modules but JPA works that way, assuming that the initial value of a primitive version is zero and zero indicates a state before it has been inserted into the database. Once inserted in the database, the value is one.
However, with JPA, we're building on top of Hibernate and we have to align with Hibernates mechanism that considers zero as first version number and so we cannot use primitive version columns to detect the is-new state.
The Spring Data JPA Entity-State detection uses a slightly different wording at https://docs.spring.io/spring-data/jpa/reference/jpa/entity-persistence.html#jpa.entity-persistence.saving-entities.strategies, however, it doesn't point out that primitive version properties are not considered so I'm going to update the docs.
I solved this problem re-installing all dependencies again –
signal_handle = getattr(dut, "slaves[0]", None)
signal_data = signal_handle.internal_data.value
Many developers and programmers experience sciatica pain due to prolonged sitting and poor posture. Sitting for long hours can put pressure on the lower spine, leading to nerve compression and pain that radiates down the leg. One effective way to relieve sciatica pain is through targeted exercises and stretches that help improve posture and spinal alignment.
I found this helpful resource on chiropractic care and pain relief: https://meadechiropractic.com/
If you’re dealing with sciatica pain, consider using an ergonomic chair, standing desk, and taking frequent breaks to stretch. Has anyone else here struggled with this issue while coding for long hours? What solutions have worked for you?
//add this inside application tag in manifest
<meta-data
android:name="flutterEmbedding"
android:value="2" />
Ok solved @Superbuilder is unusefull...
Solved. It really was an old and forgotten Gitlab plugin. I disabled the plugin and the icon disappeared afterwards.