text
stringlengths
15
59.8k
meta
dict
Q: How in Powershell see all XML Levels I have a test xml and I want to get the value from this line ATTRIBUTE NAME="News- offers_OPT_EMAIL">F so I can check for the value F or T if I do below I can get the title but how do I get the above line value. [xml]$xml = Get-Content testFile.xml $xml $xml.CUSTOMERS.CUSTOMER.NA...
{ "language": "en", "url": "https://stackoverflow.com/questions/64371411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String concatenation without libraries in C I am having trouble concatenating strings in C without library function. I tried the following: #include <stdio.h> struct word { char *str; int wordSize; }; void concat(struct word words[], int arraySize, int maxSize) { // word array, its size, and max size given c...
{ "language": "en", "url": "https://stackoverflow.com/questions/63953081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Instragram - Redirect URI dose not match with registered - Objective C I am getting error while Login with oAuth for Instagram, it says the redirectURI is wrong. I have researched on it and I have checked many answers on stackoverflow but its not helpful for me. Here is the complete detail of what I did in my appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/22978485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ rhel confd cdb_get returns elements in a weird order encountring a weird issue with confd. Items are indexed by uint key - when i use configuration with 9 items or lower, everything is ok - cdb_get with index 1 returns the first item, index two the seconds and so on. When i add the 10th item - the 1st item I que...
{ "language": "en", "url": "https://stackoverflow.com/questions/43963836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display or hide JSON data on a page based on a string value? I have a form which has an Email field. There is also an option to hide or show email address on a web page depending on which radio button was selected ("YES" or "No"). So, when exclude_email="No" the email should not be displayed. I know it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52561400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building a table from Python nested dictionaries with missing values Here's the current data structure I have: {'bin1': {'A': 14545, 'B': 18579, 'C': 5880, 'D': 20771, 'E': 404396}, 'bin2': {'A': 13200, 'B': 12279, 'C': 5000, 'D': 16766, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18746278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using generic class as type parameter I would like to use a generic class as a type parameter for another generic class. At first my class definition was like this: class Foo<T, R extends BaseDto> {} Then my requirements changed and I had to use a wrapper/holder class for my R type My attempt so far: (Gives compile...
{ "language": "en", "url": "https://stackoverflow.com/questions/60090167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get cumulative sum of unique IDs with group by? I am very new to python and pandas working on a pandas dataframe which looks like Date Time ID Weight Jul-1 12:00 A 10 Jul-1 12:00 B 20 Jul-1 12:00 C 100 Jul-1 12:10 C 100 Ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/55051707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Validate plugin is validating a field which has become "disabled" I have a field gender? which enables is Pregnant? if gender is set to FEMALE, then if is Pregnant? field is unanswered, it's flagged as invalid. If you go back and set gender? to MALE The validation still flags is Pregnant? as invalid, even t...
{ "language": "en", "url": "https://stackoverflow.com/questions/14379913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: react/prop-types and flow My .eslintrc looks like this and I am using flow: { "extends": [ "plugin:flowtype/recommended", "plugin:react/recommended", "prettier", "prettier/flowtype", "prettier/react" ], "plugins": [ "flowtype", "react", "prettier" ], "parserOptions": { "...
{ "language": "en", "url": "https://stackoverflow.com/questions/44872197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Terraform breaking Azure Logic App connections I am creating an Azure Logic App (using it to unzip to a blob storage). For this I need the Logic App workflow and a connection to the blob storage. I create the empty Logic App Workflow with Terraform and the actual Logic App implementation with Visual Studio that I ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/55217929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: std::transform() and toupper(), no matching function I tried the code from this question C++ std::transform() and toupper() ..why does this fail? #include <iostream> #include <algorithm> int main() { std::string s="hello"; std::string out; std::transform(s.begin(), s.end(), std::back_inserter(out), std::toupp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7131858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: String to javascript in Firefox extension (without eval(), setTimeout or new Function) I'm passing strings such as "getElementById('div1')" or "getElementsByName('div2')" from a remote server depending on the page the user opens. How can I run these as javascript in the page without using any of the above mentioned ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11218854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Specific object selection in xcode Is there way to select object by their specific tag without the use of a loop? So instead: for (UIImageView *someObject in [self.view subviews]) { if (someObject.tag == someInteger) { [someObject removeFromSuperview]; } } Use something with a more direct approach ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8285883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get list of answers per city I have this db: Users-table: +----+---------+ | id | city_id | +----+---------+ city_id -> references id on city Cities-table: +----+------+ | id | city | +----+------+ Answers-table: +----+---------+ | id | user_id | +----+---------+ user_id -> references id on users Now I want a...
{ "language": "en", "url": "https://stackoverflow.com/questions/22194000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How browsers will convert mixins to regular css In Less and Sass we make use of lots of mixins, how does the browser compile or converts those mixins to regular CSS and apply those styles? A: The browser DOES NOT convert pre-processed (LESS, SCSS, Compass) CSS rules. You need to use a build script/compiler BEFORE l...
{ "language": "en", "url": "https://stackoverflow.com/questions/57597654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: QAF Reports are not populated in dashboard.htm * *Got the latest code here: https://github.com/infostretch/qaf-report. *Extracted dashboard directory & dashboard.htm to the project root directory. *Ran QAF tests. *Opened dashboard.htm during test run & also after test run. *Tried to open dashboard.htm in Googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/62087063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Elasticsearch: Filter Query not working I've been working to change my query to a filter in Elasticsearch using the java api. I've made sure that the fields I am running searches on are set to "not_analzed". Here is the java code for the filter: FilterBuilder andFilter = FilterBuilders.andFilter(FilterBuilders.termF...
{ "language": "en", "url": "https://stackoverflow.com/questions/36059126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Curved arrow along a circle MATPLOTLIB I need to plot some curved arrows which should lie on a circle. I tried with patches.FancyArrowPatch, but I could not find a connectionstyle able to follow a circle. Is there any connectionstyle that I can use to get the arrows of the shape I need? Thanks for any help. This is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60218316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drawable from String in Android How do I get a Drawable resource if I have the String (its name) as it appears in the drabale folder? int categoryPicIndex = myCursor.getColumnIndex(CookingContract.CategoryEntry.COLUMN_PIC_CATEGORY); String categoryPic = myCursor.getString(categoryPicIndex); At this point I have the...
{ "language": "en", "url": "https://stackoverflow.com/questions/37354803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: domain class field not being displayed on view page I am unable to view all of the below fields when I run my grails app the " Cost" field is not being displayed on the view page, the fields are displayed on the add page. If I remove the "name" field the "cost" field is then displayed. Is there a field limit that im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XSD for soap result not working I want to check a soap response against a xsd. Here is the xml soap response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"...
{ "language": "en", "url": "https://stackoverflow.com/questions/30839149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is this the correct way of presenting the formula in code I am creating a pokemon like game, I am currently trying to add the damage calculations into my game but I am not good at maths or reading formulas, the code I have wrote: func take_damage(move,attacker): var modifier : float = rand_range(0.85,1.0) va...
{ "language": "en", "url": "https://stackoverflow.com/questions/67388822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I model a ordered, variable-length series of string collections in a database? I'm developing an application which has very specific/odd database requirements. I need to store collections of strings. If it helps, one string per collection is designated as "canonical", and the others are "alternatives". The l...
{ "language": "en", "url": "https://stackoverflow.com/questions/29585594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: Cannot fit requested classes in a single dex file (# methods: 67593 > 65536) How to solve this error I'm getting in Android Studio: Error: Cannot fit requested classes in a single dex file (# methods: 67593 > 65536) cant build my project now A: Do this 4 step 1: Add this library in dependencies of the app ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52801386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Choosing Windows Phone IsolatedStorage My web service returns some data. I want to cache it. Do I use this and serialize it to a file? IsolatedStorageFile.GetUserStoreForApplication() Or do I use this and stick it into the Dictionary? IsolatedStorageSettings.ApplicationSettings A: For caching data I would stick i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7922820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plotting fixed plot area I have simple question, how can I plot fixed height barplots, i.e. stretching the plot area only change margins not the bararea, like the following: > A <- 4 > plot (A) > barplot(A, col = "green4") When I strech are, bar area also get increases. Edits: I want to keep the box size const...
{ "language": "en", "url": "https://stackoverflow.com/questions/10406848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: the if statement syntax in the jsp mvc, jsp and bootstrap in which i am passing 2 model attributes * *model.addAttribute("map",map) *model.addAttribute("size",SIZE) now on the jsp i want to iterate over this map and want to check if map value matches the SIZE varibale value for which i tried below syntax <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/25379444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Element vs. Generic Type I wonder why Swift uses Element rather than Generic <T> in the following example. What is the difference between Element vs T A: From Generics: Type Parameters Type parameters specify and name a placeholder type, and are written immediately after the function’s name, between a pair of ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/55542757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use TestScheduler in RxJava How should I use RxJava's TestScheduler? I come from a .NET background but the TestScheduler in RxJava does not seem to work the same way as the test scheduler in .NET rx. Here is sample code that I want to test Observable<Long> tick = Observable.interval(1, TimeUnit.SECONDS); cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/26699147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Project with Match in aggregate not working in mongodb I am trying to fetch data based on some match condition. First I've tried this: Here ending_date is full date format Offer.aggregate([ { $match: { carer_id : req.params.carer_id, status : 3 } }, { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33752817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: which select sql is faster? which sql is faster ? What I am trying to do is find out all fund which have not been snapshoted today. I take snapshot daily and save it in this snapshot table. explain SELECT id from fund where id NOT IN (select id from fund_daily_snap where date_trunc('day',day) = CURRENT_DATE-1); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32536539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create MultiPolygon SqlGeography from Polygon SqlGeographys I have a list of SqlGeographys that are Polygons. I want to combine them into one SqlGeography of type multipolygon. List<SqlGeography> areaPolygons = GetAreaPolygons() SqlGeography multiPoly = null; foreach (SqlGeography geog in areaPolygons) { /// Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/24605196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Wildfly 10 JAX-WS attachements : MTOM threshold not working as expected (?) I have JAX-WS endpoint defined with @MTOM annotation and set threshold as below. So I expect any attachments less 5MB shall be sent inline as base64binary. But the soap response is always returned as MTOM for even small files. Is this expect...
{ "language": "en", "url": "https://stackoverflow.com/questions/45105758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: aes_ctr_128_encrypt in Android using boringSSL I am trying to implement aes_ctr128_encrypt in android using BoringSSL as defined by google. I built the application with CMAKE and Gninja by following the link https://boringssl.googlesource.com/boringssl/+/master/BUILDING.md Now I have crypto and ssl folders in the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/44176769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to monitor the complete network through Python? I want to use Python to monitor the complete network, if the route or link goes up/down will get the notification. I found a few packages like lanscan, but I’m not sure that will work fine or not. Basically, I want to use python same as NMS (Network management syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/66022670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firefox bug with position absolute inside table-cell It looks like Firefox has a bug with positon: absolute inside of a table-cell displayed parent. Is there any way to fix this? Show case It works well in Safari / Chrome but doesnt NOT work properly in Firefox (the browser treats #css-table as the parent instead o...
{ "language": "en", "url": "https://stackoverflow.com/questions/19447796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to save files to a specific folder using Plupload plugin? I'm using plupload jquery plugin to upload files to my server, how can I change the path where to save the file based on the user's input? (I also included a select dropdown input at the ui page, I need to change the path of file getting saved based on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/29104496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding today's date to Oracle query results when using wildcard * this might be a lack of very basic knowledge, but I just can't figure it out. Searching for the answer and trial and error haven't helped much. Returning all recordsets from a table (SELECT * FROM X) --> no problem. Returning today's date (SELECT TO_C...
{ "language": "en", "url": "https://stackoverflow.com/questions/29075753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Highlight cells according to mysql value I have fetched mysql results as below..I need to do is, check each $row["$date07"] value with a threshold and highlight the cell. while ($row = $result -> fetch_assoc()) { $table_rows[$rowId] .= '<tr> <td style="text-align:center"><b>'.$r...
{ "language": "en", "url": "https://stackoverflow.com/questions/73497795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I effectively find a Graphics2D rendering error? Can you suggest a method of identifying the source of a rendering error from a debugger? Misko Hevery classifies bugs into three categories: * *Logical *Wiring *Rendering Its clear to me that my problem is a rendering bug. I have a Swing application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25372649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python in Windows Store apps The Windows Store app Python 3 For Metro claims that it allows users to edit and run Python files (I can't get it to work). How is this possible from within the sandbox? Can I run a file (say test.py on the desktop) from my JavaScript app? A: How is this possible from within the sandbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14211949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is it possible to intercept all DataNucleus' JDO SQL queries? Assuming one has an operational Java application using DataNucleus's implementation of JDO to access a database, is it possible to intercept all SQL queries made to the database? The intention is to run statistics on them and keep a log/trace. A: You may...
{ "language": "en", "url": "https://stackoverflow.com/questions/9635216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to hover on multiple charts with the same x axis with plotly (Python)? I have figure with 2 subplots: a candlestick stock chart and the volume bar chart associated below. I would like to hover on both charts when I move my cursor on one of them. At the moment, the hover is only active on the subplot where the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/65007954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should the update for my app be compatible with iPhone 5 screen? I had some minor changes to an older app of mine. Now, I am going to update a newer version on the App Store. But it doesn't have support for iOS 6 or iPhone 5 screen. I understand, I will have to give support for iOS 6. But should I update the App for...
{ "language": "en", "url": "https://stackoverflow.com/questions/12596476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zk jmeter plugin I want to perform load tests on Zkoss with jmeter. I have installed jmeter and the zk jmeter plugin. then i placed the jar file in jmeter/lib/ext folder as specified in the Zk site http://blog.zkoss.org/2013/08/06/zk-jmeter-plugin/. Now i am facing a problem. when I place this jar in the respective ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44543265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenPyXL - find last row in existing excel file New to this and having problems findings the last row in an existing excel file with openpyxl. I tried using max_row and len(ws["A"]) but no luck. I keep getting numbers way larger than expected. It appears this is a common issue but could not find a workaround my prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/69740763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: expected expression before 'struct' on c I tried to make a userdata where it's declared as a struct. I tried to use scanf, but everytime i tried to compile it always says "expected expression before 'userdata'. Anyone know how to fix this? Thank you Here's my code: #include <stdio.h> typedef struct { char name[30];...
{ "language": "en", "url": "https://stackoverflow.com/questions/71727537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: css sprite images showing but a:link urls not showing when I hover over the images My CSS sprite images show just fine on website and sprite image changes with hover, but link URLs are not working when I hover over the images. Not sure what I am doing wrong but I'm sure it is probably something simple. The URL of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27019423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is std::cout in a header file bad practice? This might be a duplicate question but all of my search results talk about not putting using into a header file, which is not my question. I have read up on this and understand why you should not place using inside of a header file. I am new to C++ and am trying to make su...
{ "language": "en", "url": "https://stackoverflow.com/questions/54152460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to fix my leaderboard for my Music Quiz I'm making a Music Quiz for a school project. I've made a working game however I cannot get the leaderboard (which should be text and is saved as leaderboard.txt) to show different names as it overwrites the previous name. For example, if "Sam" was to get a score of 9 and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63647898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How perform authorization with session Symfony2 in 3rd party application I have problem with following scenario: In my Symfony2 application, user which is logged in, open 3rd party application (filenamager for TinyMCE). How to authorize user with credentials from SF2 application? If user check remember_me on login p...
{ "language": "en", "url": "https://stackoverflow.com/questions/19977642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get query url on PHP I have this url http://www.mywebsite.com/code.php?number=1234233566456766 or http://www.mywebsite.com/code.php?1234233566456766 if first example is not possible, and i try to get the code number on <input type="text" value="<?php get_textafternumber ?>"> it is possibile? A: //first, check numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/17735251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to split contents of column into different columns in csv files using python? I have a CSV file that has the output from my machine learning model. It should ideally have three columns ( Source, Relation type, Target). When extracting the output my outputs are being stored as a single content of the cell for n n...
{ "language": "en", "url": "https://stackoverflow.com/questions/74298100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wait for Ajax to render (JSF) I have a PRIMEFACES dialog, in wich I use onCloseUpdate atribute to re-render all the content of the dialog when dialog is closed. The problem is that when I close the dialog, and (fast) click to open it again, I see that onCloseUpdate hasn't finished re-rendering the content of the dia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7119466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Python logging to determine where a method was called from I'm trying to debug a Python Django app. I've got additional fields being added to a model. I've tracked this down to one method: django.db.models.options.add_field() The only place this method is called is: django.db.models.fields.init.contribute_to_cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/2237355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flow Framework: How does @Signal behave and can be used to perform some dynamic tasks, which change the execution flow in SWF Some of my observations on researching about flow framework are: @Signal starts executing in the decider replay once the signal is received. @Signal method is executed in all the future repl...
{ "language": "en", "url": "https://stackoverflow.com/questions/43673610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which FK column is update by EF when there are multiple navigation properties to Users table Scenario I have tables like * *Users (ID, Email, Password) *User_Profile (ID, UserID_FK, First, Last, Created_On, Created_By_FK) This is how I create new user account Users us = new Users { Email = 'xyz@example.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/38800784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Json serdes override / customize base class construction I have a deep object hierarchy where the base class parameterless constructor looks like this: public class BaseClass { private Session session_; public BaseClass() { session_ = ...; } } Serialization is OK. Problem happens in deseria...
{ "language": "en", "url": "https://stackoverflow.com/questions/36547727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: find_all is only working for some tags the .findall function within bs4 is only working for some HTML tags. I am trying to scrape a website. from bs4 import BeautifulSoup import requests url = 'https://bitskins.com/' page_response = requests.get(url, timeout=5) page_content = BeautifulSoup(page_response.con...
{ "language": "en", "url": "https://stackoverflow.com/questions/54505251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transformation inside while loop- BPEL 10g Requirement is read data from file and invoke webservice. Target webservice can handle one payload at a time but there will be multiple payload in source. So am using while loop to process payload one by one. Issue: In target service EarningTypeInclusion is optional elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/44628368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Waypoints sticky nav when scrolling up via a click is 1px off I'm close to tearing my hair out with Waypoints. First of all, I'm far from being experienced in javascript. I'm using Waypoints to 1) fix the nav to the top of the screen at a certain point (this works fine) and 2), highlight nav items when certai...
{ "language": "en", "url": "https://stackoverflow.com/questions/15824467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can i order queryresults by the PK of a m2m-relationtable? I have a model with a m2m relation to users: class SomeModel(models.Model): user=models.ManyToManyField(User,related_name='linked',blank=True,null=True) to which i have a query: linked_objects=SomeModel.objects.filter(user__id__contains=request....
{ "language": "en", "url": "https://stackoverflow.com/questions/5142573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mapping one DTO to multiple entities I have the DB model like the following. Here I describe entities I have in the EF model: public class Person { public int Id { get; set; } public int AddressId { get; set; } public int RoleId { get; set; } public string Name { get; set; } publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/18446182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the interpretation of <>P -> (!P U R) What is the interpretation of <>P -> (!P U R)? This seems to be contradiction since in future P is expected and checking the absence of P until R. Model checking tool passes this via BDD as well as BMC techniques. A: I don't see any contradiction. The property is made t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55762828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create MailMessage object from .msg File Path? Is there a way to create a MailMessage object from a directory path of a .msg file? Such as MailMessage x = new MailMessage("path") A: There is no direct conversion between these two entities out of the box - the Outlook message file and the MailMessage class from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69486646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shorter and more efficient way of writing this Java code What is the best way to write this code and avoid repeatedly? if (doAction() || checkNumber() || canMove() || avoidAttackersWhileHeal()) { return; } if (doCast() || doAttack()) { return; } I have a ton of methods like this, and each method that retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/54609837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Read-only file system Error With S3 and Lambda when downloading a dump file from MYSQL I'have the following code for running query from mysql dump_query=/media/+"/mysql -u"+user+" -p'"+passwd+"' -h"+host+" "+name+" -e '"+query+"' | sed 's/\t/,/g' > "+filepath+"test.csv" proc = subprocess.Popen(dump_...
{ "language": "en", "url": "https://stackoverflow.com/questions/60089963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mock methods regardless of params with Mockito I write an interface like this: public interface IPlayer{ boolean capture(); boolean capture(String path); } I want both of the methods return true in my unit testing.For the first method, I mock like this: IPlayer iplayer = Mockito.mock(IPlayer.class); when...
{ "language": "en", "url": "https://stackoverflow.com/questions/45958244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter use variable created inside Future builder outside of the build method, I have a future builder witch i use to fetch data, i need to use what i get from the api to a text editing controller that has to be defined outside of build and i need to give the text editing controller an initial value, in this initia...
{ "language": "en", "url": "https://stackoverflow.com/questions/70980002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WebAPI and mvc4 An error has occurred Type '.Controllers.APICategoryController' does not have a default constructor i having this error as title mention , what causes this anyone?? heres my code i just want to display the files from SQL Database but it does have error any help? thanks! namespace a.Models public...
{ "language": "en", "url": "https://stackoverflow.com/questions/21363710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to slide out content on hover - flexbox-layout i have a beautiful little landing page with big pictures and small boxes with headings in it. if you hover over the headings, the box around it should slide out (getting more width but shouldn't push the picture away, instead it should be above the picture) the pict...
{ "language": "en", "url": "https://stackoverflow.com/questions/35367591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set a position that changes when the window size changes I'm creating a web page for my grandpa, and I'm going to have this lil biker dude, that runs across the screen and when hovered over, stops and says"wear a helmet". I got him to move back and forth and it is fixed to the navbar, but the problem is that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61622962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Curl Not Sending I have this curls on my localhost and these just works fine doing its task. These curls are: [1] - GCM ; [2] - my own api. However, when uploaded these files to my online server, curl [2] is not working but curl [1] is just doing fine. // curl [1] - my own api public function send($recipient, $mess...
{ "language": "en", "url": "https://stackoverflow.com/questions/29794548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to tell Mathematica to replace 0 to power 0 by 1? Experts; Given f = (#1^#2) & Is there a way to define 'f' above such that if #1 and #2 are both zero, then the value of the pure function 'f' should be 1 ? so that when I write f[0,0] it will return 1 and not Indeterminate? btw, I know I can write f = (If[#1 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/8403626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: handling "No results" with Jquery Autocomplete Hey I'm trying to return a message when there are no results for the users current query! I have looked all over the net and there are similar scenarios, but I can't seem to get it working with my code below! Can anyone help me figure this out please, as I am pulling my...
{ "language": "en", "url": "https://stackoverflow.com/questions/13181557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep a round imageView round using auto layout? How do I turn a rectangular image view into a circular image view that can hold shape in auto layout without setting width and height restraints? Thereby allowing the imageView to define it’s size, and size bigger and smaller relative to objects around it with l...
{ "language": "en", "url": "https://stackoverflow.com/questions/32362934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Using Array(Tuple(LowCardinality(String), Int32)) in ClickHouse I have a table CREATE TABLE table ( id Int32, values Array(Tuple(LowCardinality(String), Int32)), date Date ) ENGINE MergeTree() PARTITION BY toYYYYMM(date) ORDER BY (id, date) but when executing the request SELECT count(*) FROM table WHERE...
{ "language": "en", "url": "https://stackoverflow.com/questions/60768819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I want the view to remain static but the content to re-orient within the view I am making a view with several subviews for iPad. I want all the positioning and sizing of the subviews to stay the same when rotating the iPad, but the content inside the subviews to re-orient. Does anyone know how to do this? A: It sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/6024399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance Issues in Celery I already read other posts about that but none of them solve my problem. I have function to scan all ports for a given ip. It takes 5-10 seconds to complete without celery but if I use the celery to run this function, it takes approximately 15 minutes. I observed that function without ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/57902529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Input validation using PHP and Jquery Ajax I want to validate an user input with ajax. It is the first time I use Ajax and I got stuck. If the input is correct I still get an error message and I don't know why. I get as an error 'Subtax error in the jquery file'. What do I do wrong? Thank you in advance. HTML: <form...
{ "language": "en", "url": "https://stackoverflow.com/questions/25885685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORA-22992 / ORA-06502+ORA-06512 errors I'm using this part of code in large one : SELECT DISTINCT P.SKU, SUBSTR(X.ATTRIBUTENAME, 14, 3) ATTRIBUTECODE, X.ATTRIBUTEVALUE FROM PRODUCT@ISPSTAG2 P, XMLTABLE('/attrs/attr' PASSING XMLTYPE(REGEXP_REPLACE(P.ATTRIBUTES_DE_AT, '<attr name="longDescription">.*...
{ "language": "en", "url": "https://stackoverflow.com/questions/58862055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Azure app service restarts when swapping slots? After having this issue in production for a long time, and having read anything i can find about (such as this or this or that), i made a simple test. * *Create an empty asp.net website *in Application_Start, send an email or message (i've used PushBullet) to y...
{ "language": "en", "url": "https://stackoverflow.com/questions/55479062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: inquirer package, present questions based on previous answers I'm using NPM 'inquirer' package in order to present the user various questions. One of them is a 'choices' selection. Is there a way to present follow up questions based on the 'choices' selection? Here's my code: const { prompt } = require('inquirer...
{ "language": "en", "url": "https://stackoverflow.com/questions/54909019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access an application using different host and port with JBoss 5 I have deployed my application in Jboss and I want to give users access to my application with different host and ports per user. To explain clearly: http://192.168.11.21/MBeanProject/servcount for user1 and http://192.168.11.22/MBeanProject/...
{ "language": "en", "url": "https://stackoverflow.com/questions/5167427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python 2.7 : UnicodeDecodeError when I use character point with import socket connect I work with python under windows. I have this error "UnicodeDecodeError: 'utf8' codec can't decode byte 0x92" when I excecute this simple code : import socket s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((controlAd...
{ "language": "en", "url": "https://stackoverflow.com/questions/41856598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set the selected value of two dropdownlists simultaneously using jQuery How to set the selected value of a dropdownlist to the selected value of another? The below code shows how to accomplish this correctly. ASPX <asp:DropDownList ID="ddl1" RunAt="Server" DataValueField="ID" DataTextField="ID" AppendDataBoundItems=...
{ "language": "en", "url": "https://stackoverflow.com/questions/19177852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Postman Response download is NOT pretty in Atom and other editors While using Postman and Sending and Downloading a Request, I have saved the JSON locally and when opening in Atom, Notepad++ and other editors, the Postman JSON is not parsed. I've tried changing LF in Atom and it doesn't seem to do anything. See be...
{ "language": "en", "url": "https://stackoverflow.com/questions/53128857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display a delivery day range based on shipping country in Woocommerce In Woocommerce, I'm trying to add an estimated delivery day range on cart and checkout pages. I have set 2 shipping Zones: Germany and other European countries (outside Germany) called "DHL Europe". I need to display a different delivery day rang...
{ "language": "en", "url": "https://stackoverflow.com/questions/55287041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Display notifications on a particular time I would like to display notification on a particular time and daily routine (i.e at 8'o clock morning). I am using broadcast receiver, alarmmanager to display notifications. But the problem is, I am not getting the notifications displayed on mobile. I've added wake lock pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/31555310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show records of a particular year in one page <?php $hostname = "localhost"; $user = "root"; $password = ""; $dbname = "abcd"; $conn = new mysqli($hostname, $user, $password, $dbname); $sql="SELECT YEAR(date) as year from events GROUP BY year"; $row2 = mysqli_fetch_array(mysqli_query($conn,$sql)); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50771734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failing data insert in php mysql I need to add records into the table 'writings'. As you can see in the code below, the failure leds to the message data insert failed. I've already tried to change everything that online forums adviced but it didnt help. All the program outputs is data insert failed and thats all. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/43773309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tracker.autorun not working inside componentDidMount of react Tracker.autorun not working inside componentDidMount of react when I specify the projection (fields) for output. But the same works when I dont have any projection on mongo query. This works: Meteor.subscribe('quotes'); this.quotesTracker = Tracke...
{ "language": "en", "url": "https://stackoverflow.com/questions/50933897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running PHP - when using a node instance and port I'm running an application using nodejs and it's listening on port 8000, so my web url bar is ip:8000. I have an ajax call to a php file: $.ajax({ url: './chat/store.php', type: 'post', data: {message: message}, error: function () { consol...
{ "language": "en", "url": "https://stackoverflow.com/questions/34003082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing MJPEG Stream .net core I am trying to access a mjpeg stream through my .net core app. It seems AForge.Video is not compatible with .net core. Is there any lib / coding example available how to access a video stream and get single images out of it? Is there any possibility to get Aforge running with .NET co...
{ "language": "en", "url": "https://stackoverflow.com/questions/61139263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using python loop to change part of variable name within function (e.g. inserting different number at end) Updated question in Edit II I am running a regression model. For that model, I want to test a large set of values in one specific part of the function and then run the model and all following functions. E.g. al...
{ "language": "en", "url": "https://stackoverflow.com/questions/67030801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV Assertion Failed with SolvePnP I'm trying to use solvePnP in a C++ program that detects a chessboard in a video stream. Every time the calibration finishes, I try to run solvePnP, but I keep getting errors that I think are related to the translation and rotation vectors. This is the error: The error This is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/36815605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert React Components into web Components Want to convert existing react components into isolated web components in which we share data using props and custom events and also theme(styling) was set according to the props we share . Like if we share theme=light , web Component theme should be default and same is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/74570843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for any way to transfer file from PPC to PC i looking for any way to transfer file from PPC to PC - and from PC to PPC , i dont want to use WebService, and if i use RAPI i need that in the PC will be any program - and i dont want (i dont want that in the PC will be any of my program) how i can do it ? thank'...
{ "language": "en", "url": "https://stackoverflow.com/questions/1821318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Pass local variable to create.js.erb for an iteration in an iteration I have a Post and a Comment model, while a post can have multiple comments and a comment belongs to a post (and a user). I am iterating through all Posts by doing @posts.each do |d|, which is not a big deal. Also i am iterating through all the com...
{ "language": "en", "url": "https://stackoverflow.com/questions/66907452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }