Recent Questions - Stack Overflow |
- EFC6 Updating object tries to insert FK into to related table
- rc-table - background-color table row
- How to unit test Angular's Meta service?
- how to change table cell text on hover and return it back
- GETTING SOME ERROR TO FETCH THE MODEL DETECTION finding solution for this asap
- How to filter an aggregation based on the values of top hits?
- Always valid domain model and ubiquitous language
- Cuda Async MemCpy behavior when 'lapping' itself
- Adding Ocelot to web API breaks SignalR
- Error in using InputPath to select parts of input in a Step Functions workflow
- Jenkins pipeline with multiple triggers not triggering correctly
- How to access response object from mode task in chainlink job?
- Regex for matching Italian accented letters working in browser console but not in my code
- Create views by joining 3 tables
- SQLAlchemy many to may relationships, how to properly set up?
- Difference of code result using step by step vs and running normally Python
- CHAI - See if two objects are the same where one attribute has a different order
- Creating new column in a Pandas df, where each row's value depends on the value of a different column in the row immediately above it
- Transmit data to an adress stm32CubeIde
- How to change name of columns if it contains specific text
- how could I create an array of the last marked value from an index array
- Extract part of the strings with specific format
- Why is this causing a connection reset?
- How to allow HTTP webServiceURL in apple wallet's pass.json file
- Google Drive API - application/vnd.google-apps.spreadsheet
- Convert string to 2 decimal Number in 1 line
- pkpass not downloading on physical iOS device
- HCW - hybrid configuration wizard modern - InternalUrl_Duplicate
- Python SMTP function sending .txt file as .bin file-type
- How do i stop drag select on wpf data grid
EFC6 Updating object tries to insert FK into to related table Posted: 07 Jul 2022 03:42 PM PDT For a class with a FK/Navigation property, I'm trying to update a FK value. When the EFC Save triggers, it tries to insert the related FK, but it already exists. As expected, the Change Tracker shows the FK modified. The TicketType is not found because that TicketType has not yet been used by the context. This returns an error. It is trying to insert the TicketType into the table even though the record already exists. I don't want to have to load every possible value for every related property just so I can use the ones that I need. How do I tell EFC to save the Ticket FK update to the database, without dealing with the untracked navigation property? |
rc-table - background-color table row Posted: 07 Jul 2022 03:41 PM PDT I'm using rc-table - https://www.npmjs.com/package/rc-table For rendering tables in react. And when I'm tring to use And that's the result I want - How can I fill the gaps? The code - HTML - CSS - |
How to unit test Angular's Meta service? Posted: 07 Jul 2022 03:41 PM PDT My Component is using Angular's Meta service to update a meta tag during How can I modify my test so that it knows the value of my template literal my.component.ts my.component.spec.ts region.service.ts |
how to change table cell text on hover and return it back Posted: 07 Jul 2022 03:41 PM PDT I have a table including a Courses ID's and I want when hover the cell change the Course id to course name. how can I do this if I have lot of courses? I am using HTML / CSS / JS |
GETTING SOME ERROR TO FETCH THE MODEL DETECTION finding solution for this asap Posted: 07 Jul 2022 03:40 PM PDT error: OpenCV(4.1.2) /io/opencv/modules/dnn/src/dnn.cpp:525: error: (-2:Unspecified error) Can't create layer "FeatureExtractor/MobilenetV3/Conv/BatchNorm/FusedBatchNormV3" of type "FusedBatchNormV3" in function 'getLayerInstance' |
How to filter an aggregation based on the values of top hits? Posted: 07 Jul 2022 03:40 PM PDT The mapping of the elastic search documents are as follows: I want to aggregate these votes such that it returns songs that you AND your friends like. So far, I have buckets of songs that you and your friends like, but some buckets may be songs that only your friends like. |
Always valid domain model and ubiquitous language Posted: 07 Jul 2022 03:40 PM PDT The principle of always valid domain model dictates that value object and entities should be self validating to never be in an invalid state. This requires creating some kind of wrapper, sometimes, for primitive values. However it seem to me that this might break the ubiquitous language. For instance say I have 2 entities:
This to me entails the following classes Doesn't that break the ubiquitous languages a bit ? It just feels a bit off to have all those classes that are essentially prefixed (HotelName vs HouseName, HotelImages vs HouseImages, and so on). |
Cuda Async MemCpy behavior when 'lapping' itself Posted: 07 Jul 2022 03:39 PM PDT Say you have a fairly typical sequence of async compute:
Now if you're running in a loop, the host will loop back to step 1 as 2&3 are non-blocking for the host. The question is: "What happens for the host if it gets to step 2 again and the system isn't yet done transferring data to the device?"
If the latter, presumably this buffer can run out of space if your host is running too fast wrt the device operations? I'm aware that modern devices have multiple copy engines, but I'm not sure if those would be useful for multiple copies on the same stream and to the same place. I get that a system that ran into this wouldn't be a well designed one - asking as a point of knowledge. This isn't something I have encountered in code yet - looking for any pointers to documentation on how this behavior is supposed to work. Already looked at the API page for the copy function and async behavior and didn't see anything I could recognize as relevant. |
Adding Ocelot to web API breaks SignalR Posted: 07 Jul 2022 03:39 PM PDT I have a web API project where I use SignalR. Recently I added and configured Ocelot to be my gateway towards another web API. Ocelot routes the requests correctly but has messed up my SignalR configuration somehow. Program.cs: Client-side code: Ocelot.json I need Ocelot only for HTTP requests. It shouldn't affect websocket connections with this configuration as far as I understand. If I comment out the Ocelot lines in my Is it something to do with the order of the middleware that is causing the issue? I have tried multiple different orderings but to no avail. This is a .NET 6 project with Ocelot version 18.0. Both projects are containerized with Docker. |
Error in using InputPath to select parts of input in a Step Functions workflow Posted: 07 Jul 2022 03:39 PM PDT I am creating a Step Functions workflow which has various steps. I am referring to this topic in their documentation [InputPath, ResultPath and OutputPath Examples][1]. I am trying to check the identity and address of a person in my workflow as they've shown in their document. I'm passing the input for this step within the state machine definition inside Note: But when I run this, am getting the error -> What am I doing wrong here? Can someone please explain? |
Jenkins pipeline with multiple triggers not triggering correctly Posted: 07 Jul 2022 03:38 PM PDT I have a jenkins pipleine which has two triggers one for pollSCM and the other is a cron job to run every Tuesday and Thursday at 6 pm EST. I configured it as follows I followed the document here to set up the trigger. The pollSCM trigger works correctly. But the cron trigger, instead of triggering the build at 6 pm EST. Its trigerring at 2 pm EST. Why is this happening? |
How to access response object from mode task in chainlink job? Posted: 07 Jul 2022 03:38 PM PDT Im trying to access the response object of the mode task in a chainlink job. The response: If I tried to get the first index of I tried two differnt solutions:
How I'll be able to get the result of the mode task? This is the link to the Chainlink docs of the mode task: https://docs.chain.link/docs/jobs/task-types/mode/ |
Regex for matching Italian accented letters working in browser console but not in my code Posted: 07 Jul 2022 03:42 PM PDT I have created this regex When written in my program gives false here's the code snippet: where folderNewName is a String. note line 1502 in the console in the last image giving false. I'm using Chrome 103.0.5060.114 to debug this. Any help would be great, also if you have suggestions on how to make this regex better, would be nice. Thanks, everyone. |
Create views by joining 3 tables Posted: 07 Jul 2022 03:41 PM PDT I'm creating SQL views join of 3 tables, orders,products,purchases by below code. Everything looks good, still not getting anything updated. I'm not getting new views. Kindly looking for help. Thanks. |
SQLAlchemy many to may relationships, how to properly set up? Posted: 07 Jul 2022 03:41 PM PDT The documentation naturally is too vague to be any help. I have an app with users, applications, and sections. Users can have any number of applications associated with them. Users can have sections associated with them, but each section is unique to that user. So essentially im trying to create a model for this: each user can have a number of named sections, each with apps. I cant seem to figure out how this is setup in SQLAlchemy. For users, I have: And in the code, I can do: which will properly associate. But I cannot seem to wrap my head around how to handle integrating sections, users, and applications altogther. It seems way easier to just create another table, but according to the poorly written docs, I should use relationship tables. Can someone give me some advice? |
Difference of code result using step by step vs and running normally Python Posted: 07 Jul 2022 03:40 PM PDT Hello I try to get some data from a web page with selenium. But some weird things happen that I doesn't understand. When I run my programm step by step it works but running normaly it doesn't. I haven't seen any post related on python or selenium on the internet. Here is my code : Note that i doesn't understand the first if of the problem i put it here for fixing an error that i've seen on this forum When the code is running normally the line :" list=driver.find_elements(By.CLASS_NAME,"app-navigation-entry__title")" seems not to be executed Have you any idea of what's going wrong ? Thank you for your help |
CHAI - See if two objects are the same where one attribute has a different order Posted: 07 Jul 2022 03:38 PM PDT I have two object arrays: I am trying to use chai to see if they are equal, despite the order of otherNmaes for the first object in array1. I have tried array1.to.be.eql(array2) //false array1.to.have.deep.members(array2) //false But it keeps returning false. Is this even possible? I have tried looking at similar questions, but I could only find questions where "name" and "otherNames" were in different order. |
Posted: 07 Jul 2022 03:39 PM PDT Assume the following Pandas df: I want to add a new column to the df called 'Placeholder.' The value of Placeholder would be based on the 'Dummy_Variable' column based on the following rules:
The desired result is a df with new 'Placeholder' column that looks like the df generated by running the code below: I can do this easily in Excel, but I cannot figure out how to do it in Pandas without using a loop. Any help is greatly appreciated. Thanks! |
Transmit data to an adress stm32CubeIde Posted: 07 Jul 2022 03:41 PM PDT I am newly working on Stm32CubeIde and I am trying to understand how it works. I would like to transmit data to a specific address using the UART port and I don't know how to do it. So far I have been able to transmit using these three methods: using the poll —> HAL_UART_Transmit using the interrupt —> HAL_UART_Transmit_IT using DMA —> HAL_UART_Transmit_DMA but none of them in their implementation refer to transmitting to a specific address. Can someone help me ? |
How to change name of columns if it contains specific text Posted: 07 Jul 2022 03:41 PM PDT How do I go about changing the text in columns? for e.g instead of MAC000306_Std_E_Affluent, it'll be affluent. I would like to change all the names to the last name. So ideally I'd end up with columns printing Affluent, Comfortable, enter image description hereand Adversity. |
how could I create an array of the last marked value from an index array Posted: 07 Jul 2022 03:40 PM PDT I'm kind of new to python and not really used to a lot of the syntax yet. I would like to know how to get an array of the last value that has been marked as a 1 from an index array. For example for The desired array would look like The sample code I'm working with uses xarray to create the index array, so maybe it could also be used to get the final array. Thanks for any help or suggestions Edit: the length of both arrays will be the same, and if the index array starts with a 0, the output should be 0 until there is a 1 in the idx array |
Extract part of the strings with specific format Posted: 07 Jul 2022 03:41 PM PDT I am currently trying to crack the seemingly simple problem in R but somehow I am unable to find a way to do it with Problem Assuming that I have a column vector of certain length (say, 100). Each element in a vector has the form of Desired output. |
Why is this causing a connection reset? Posted: 07 Jul 2022 03:41 PM PDT I'm experimenting with a simple HTTP server here in Kotlin in order to try and reproduce a more complex problem where content seems to get cut off if it's one byte above a certain number which causes a That number depends whether it's deployed locally or on AWS or running in IntelliJ. In the following example, I start a simple blocking HTTP server which prints out 50,000 hashes in the browser without any problems. Now when I increase that If I put a Thread.sleep in there at the end of the I thought that maybe a ... but this doesn't seem to be the case, without the timer in the CompletionHandler callbacks, I'm still getting What or when is the correct way / time to handle the closing of the The documentation mentions calling |
How to allow HTTP webServiceURL in apple wallet's pass.json file Posted: 07 Jul 2022 03:41 PM PDT I'm creating a web service for automatic updates to a pass, just for testing purposes. According to apple's documentation: "Your web service must use an HTTPS connection for production, but you can use an HTTP connection during testing." However, it seems that I can't actually use HTTP for testing because if I put webServiceURL in pass.json as http, the pkpass file cannot open. Is there a way to force allow an HTTP webServiceURL in pass.json? *Note: if I change my web service to https with an SSL certificate, the pass downloads, but I don't get any post requests from Apple's service to my endpoint to register the pass. I could be doing this wrong but I'm not familiar enough with the https process (or how apple actually calls my endpoint) to know how to fix it. I can post more details about this if that would be a better approach. Any help would be greatly appreciated! |
Google Drive API - application/vnd.google-apps.spreadsheet Posted: 07 Jul 2022 03:40 PM PDT Does the Google Drive API mime type application/vnd.google-apps.spreadsheet still work? I am using Freshservice's Workflow Automator paired with the Google Drive API to create a file in Google Drive. When using the mime type of application/vnd.google-apps.spreadsheet, the file does not get created. When using the mime type of application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, I am able to create the document with the API. Was there an update to the mime types that no longer allows application/vnd.google-apps.spreadsheet? |
Convert string to 2 decimal Number in 1 line Posted: 07 Jul 2022 03:41 PM PDT I have a string 123.4567 that I want to convert to a Number with two decimals and I want to do this in 1 short line in Javascript. |
pkpass not downloading on physical iOS device Posted: 07 Jul 2022 03:38 PM PDT Background: I'm learning Apple Wallet by creating a barebones sample app and am trying to automatically update a pass. In order to do so, I understand I need to run a web server that sends push notifications to the device when it's time for the pass to update. I'm using Apple's sample code and running their Ruby webserver via localhost. It correctly generates a .pkpass file, which I can add to Apple Wallet in the simulator by visiting the localhost site or by dragging in the .pkpass file. Problem: This process doesn't work on my physical iPhone. When I go to the localhost on my iPhone, it shows a 200 response code but comes with the popup "Safari cannot download this file." Even if I try just emailing the generated .pkpass file to myself, it won't open in Wallet. |
HCW - hybrid configuration wizard modern - InternalUrl_Duplicate Posted: 07 Jul 2022 03:39 PM PDT Unable to get through the Hybrid Configuration Wizard in Modern mode. This is necessary because we want to migrate mailboxes. Classic mode works. It knows that there is a Hybrid Agent, but I can't successfully install with either path of using existing or adding a new one. In Azure there is an App Proxy registration which appears to have the incorrect IP for the route to on-prem. This was due to a misconfiguration of our outgoing firewall. However after the firewall configuration was fixed, the App Proxy still has the old return IP, and there is no way in Azure to remove this record. I've removed the app proxy components on the server, and let the HCW install again but this record is not updated or removed. Also have gone through 'Classic' path which according to community posts is supposed to remove the App Proxy record, but it doesn't. According to what I've read, if the record is inactive for 10 days, it will be removed, but I'd rather resolve this without waiting for 10 days. I've tried patching the record using Graph but it doesn't work. 2022.01.31 22:09:59.707 10333 [Client=UX, fn=SendAsync, Thread=15] FINISH Time=2170.2ms Results=BadRequest {"error":{"code":"InternalUrl_Duplicate","message":"Internal url 'https://LOCALFQDNSERVER/' is invalid since it is already in use","innerError":{"date":"2022-01-31T22:09:58","request-id":"d5c4dfe0-096d-4382-9da0-9559f45e0217","client-request-id":"d5c4dfe0-096d-4382-9da0-9559f45e0217"}}} |
Python SMTP function sending .txt file as .bin file-type Posted: 07 Jul 2022 03:39 PM PDT When calling the below SMTP function, the message is sent to my mailbox, but the log file is attached as .bin file-type. When opened, the .bin file reads as it would if it were a .txt file-type, but I cannot open .bin files on my mobile device, which is a huge problem for me. Is there any way to attach this file to the message using its original file-type? Any feedback is very much appreciated. Edit: The file is sent with its original file-type (.txt) when I run this from a Windows machine, but the file-type is mishandled when I run it from a Linux machine. I have tested this with both Outlook (preferred) and Gmail. Outlook recognizes the file as .bin file-type while Gmail does not recognize a file-type at all. |
How do i stop drag select on wpf data grid Posted: 07 Jul 2022 03:42 PM PDT Hi all this might sound trivial but I want to stop drag select on I have a simple grid like how can I stop multiple selection on click drag but and have multiple selection by Shift and Ctrl. thanks |
You are subscribed to email updates from Recent Questions - Stack Overflow. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment