text
stringlengths
15
59.8k
meta
dict
Q: How to mock getWcmMode() using mockito In AEM, there is a Java USE class wherein following code is present getWcmMode().isEdit() Now, I am struggling to mock this object using mockito in Test java class. Is there any way we can do that? A: getWcmMode() is a final method in WCMUsePojo, mockito does not support mocki...
{ "language": "en", "url": "https://stackoverflow.com/questions/46719848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Url parameter read twice so language service cant pick Updated I am working on angular5 application where I need to take some data from URL query string. I am able to get the data but somehow I am getting undefined value which is converted into my expected value later. I want to use this data from query string to de...
{ "language": "en", "url": "https://stackoverflow.com/questions/50834611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FragmentManager has been destroyed EDIT: It seems that this only happens if my previous activity is in landscape, and the setRequestedOrientation() is portrait, what could possibly be the problem? I have a code in an activity, which starts a Volley request to a REST API to retrieve some data, and have a callback whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/58814735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: for each not updating variables When using the AS3 for each construct I find that I can't update the members of the array that im iterating. for each( obj:Object in array ){ obj = new Object(); } when I loop over the array again they will still have the same values as before the loop. Am I stuck with using trad...
{ "language": "en", "url": "https://stackoverflow.com/questions/17073211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: play video in app through video out http://www.google.com/products/catalog?oe=UTF-8&gfns=1&q=iphone+video+out+cable&um=1&ie=UTF-8&cid=17045329161497634089&ei=JpU1TcymOcnogQfC25C7Cw&sa=X&oi=product_catalog_result&ct=result&resnum=5&ved=0CCgQ8wIwBA# I want to know if its possible to play video from an app through a le...
{ "language": "en", "url": "https://stackoverflow.com/questions/4724600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to aggregate timestamp data in Spark to smaller time frame I'm working on a project using New York taxi data. The data contain records for pickup location (PULocationID), and the timestamp (tpep_pickup_datetime) for that particular pick-up record. I want to aggregate the data to be hourly for each location. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/72827699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Declaring a global CSS variable generates error in Dreamweaver As found here I am trying to declare a golbal CSS variable in a root element. The html displays correctly and I cannot find any error except the one Dreamweaver tells me: * *"Expected RBRACE at line 5, col 3" *"Expected RBRACE at line 6, col 3" *... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69884165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to form a correct MySQL connection string? I am using C# and I am trying to connect to the MySQL database hosted by 00webhost. I am getting an error on the line connection.Open(): there is no MySQL host with these parameters. I have checked and everything seems to be okay. string MyConString = "SERVER=mysql7.0...
{ "language": "en", "url": "https://stackoverflow.com/questions/10505952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Installing SSL On apache2 & Ubuntu 14.04 I'm trying to install ssl on my apache2.4.7 ubuntu 14.04 server I'm following the digital ocean tutorial here but it keeps redirecting me to the normal http version. This is my 000-default.conf in sites-available (even when I delete the whole content it still loads my websit...
{ "language": "en", "url": "https://stackoverflow.com/questions/32218634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sql injection mysql_real_escape_string I have a dilemma how should I mysql_real_escape_string() my variables without inserting them into the database \n, \r, \x00 when someone uses " ' or <br> on my comment field, I tried with preg_replace instead of mysql_real_escape_string, but seems I don't know exactly how to al...
{ "language": "en", "url": "https://stackoverflow.com/questions/14283556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring MockWebServiceServer handling multiple async requests I have multiple async soap requests and I need to mock the responses of those requests. However, it seems the order of the expected requests matter and I was wondering if there were any workarounds. I came across this example using MockRestServiceServer wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/52935325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to express the type for a constant? I have to write some functions with a significant amount of constant in it in a relatively small amount of lines. ( Don't bother about the way I wrote the formula, it's there to simply express the fact that I have a lot of constants in a small package, this specific example is...
{ "language": "en", "url": "https://stackoverflow.com/questions/23660950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to allow your app with usage access? From android lollipop, the app that wants to access usage of other apps needs to be enabled by security. Rather than manually enabling it manually by Settings -> Security -> Apps with usage access, I want to enable it programmatically. I cannot find a clear answer anywhere. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/38573857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I create a list of dates, before doing a LEFT JOIN? I am using BigQuery SQL. I have the following tables: Table "public.org" (records all organisations) Column β”‚ Type β”‚ Modifiers ──────────────┼────────────────────────┼─────────── code β”‚ character varying(6) β”‚ not null nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/34179398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Class to test if date is valid using Int input with boolean output, and how to test (java) I have an assignment for class in which I have to create a class (called FunWithCalendars) that takes in 3 int values (month, day, and year) and uses 1 boolean method (isValid) to check if the overall date is valid, which uses...
{ "language": "en", "url": "https://stackoverflow.com/questions/64423047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to upload multiple files using Django I want to upload multiple files or a folder in form , The html form uploads the multiple files successfully but when it comes to django handling it is showing me night-mares in day light . I have created my html form like this <input type="file" name="file" multiple /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62132613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Working with images in C++ or C The first thing is that I am a beginner. Okay? I've read related answers and questions, but please help me with this problem: How can I open an JPEG image file in C++, convert it to a grayscale image, get its histogram, resize it to a smaller image, crop a particular area of it, or s...
{ "language": "en", "url": "https://stackoverflow.com/questions/4906736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android: Disable texture filtering/interpolation on AnimationDrawable I have a frame-by-frame AnimationDrawable that I'd like to scale without Android's default, blurry interpolation. (It's pixel art and looks better with nearest-neighbor.) Can I set a flag? Override onDraw? Anything to tell the GPU not to use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/23750139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use the pumping lemma to show that the following languages are not regular languages L = {anbm | n = 2m} Use the pumping lemma to show that the following languages are not regular languages L = {an bm | n = 2m} A: Choose a string a^2p b^p. The pumping lemma says we can write this as w = uvx such that |uv| <= p, |v...
{ "language": "en", "url": "https://stackoverflow.com/questions/62106698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Declaring constants with the nameof() the constant as the value Scenario I have a class for declaring string constants used around a program: public static class StringConstants { public const string ConstantA = "ConstantA"; public const string ConstantB = "ConstantB"; // ... } Essentially, it doesn't m...
{ "language": "en", "url": "https://stackoverflow.com/questions/40888699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Magento connect's order delivery date extension disable required dates I used Magento connects Order Delivery Date extension to allow the buyer to set the date, when they should receive the goods. Now i want to disable some dates on the calendar that shows at checkout page. Can i use general JQuery calendar date dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/20964588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain list of devices and their parameters using HKLM\SYSTEM\CurrentControlSet\Enum? How to obtain the content and the main parameters of devices using registry section HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum? Well, I need to scan registry tree, containing ..\Enum\{SomeID}\{OneMoreID}\{MyDearValue},...
{ "language": "en", "url": "https://stackoverflow.com/questions/14426521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to sql table dynamically with ExecuteQuery VB I am using VB Framework 4.0 and Linq to sql. I want to choose dynamycally the name of table. I have used the library namedtable.dll and I have mapped all the tables of database and it's Ok. My problem is when I try to execute executequery. Here my code. Imports Micr...
{ "language": "en", "url": "https://stackoverflow.com/questions/13911036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android kotlin shared preferences unresolved reference getSharedPreferences error I am learning Kotlin by trying to build a small app that find and and remember last connected BLE device. To recognize the last connected device I decide to save its MAC address using shared preferences (is that the best way to do that...
{ "language": "en", "url": "https://stackoverflow.com/questions/66820897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MvvmCross throwing InvalidStackFrameException I am using MvvmCross to develop an ios app. Everything worked fine until suddenly I got the following exception: Mono.Debugger.Soft.InvalidStackFrameException: The requested operation cannot be completed because the specified stack frame is no longer valid. at Mono.Deb...
{ "language": "en", "url": "https://stackoverflow.com/questions/21215725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sql Server Stored Procedure not executing from MVC I am trying to execute a stored procedure in my Sql Server Database from an Asp.Net MVC project. I have set it up in a way that I can use it for testing purposes, which is why the variable "procedureTest" is a constant value (I know that "2044" is an existing record...
{ "language": "en", "url": "https://stackoverflow.com/questions/31530797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert special HTML-symbols with HAML When I'm saying: %p= item.price + "&nbsp;dollars" I'm getting 50&nbsp ;dollars instead of having non-breakable space symbol. How to insert this and another special symbols using HAML ? A: How about %p= item.price + "&nbsp;dollars".html_safe A: This answer is for a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6305414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Trying to replace values in a data frame with other values I have a list of vectors, L1, and a data frame, df2. I want to take values from df2 and replace the values of L1 with these. For example, when ABCC10 of L1 says "TCGA_DD_A1EG", I want to replace this with the value, 2.193205, from row 1 (ABCC10), column 3 (T...
{ "language": "en", "url": "https://stackoverflow.com/questions/45947581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binding value in JSP page I have a XML value in controller and i'm passing that value to jsp page and binding as shown in the below code. <input type="hidden" id="thisField" name="inputName" value='${xml}'/> It is binding the value as shown in the below. <input type="hidden" id="thisField" name="inputName" value=...
{ "language": "en", "url": "https://stackoverflow.com/questions/48564808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: REGEX to extract multiple name/value tokens (vbscript) Given a template that looks like this: <td class="creditapp heading">{*}Street Address:</td> <td colspan=2 class="tdaddressblock"> <!-- @template="addressBlock" for="buyer" prev="" @--> ^^ might be a space here, might not ^^ always a space here </td>...
{ "language": "en", "url": "https://stackoverflow.com/questions/45200777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: find out what instructions write to this memory address olly dbg cheat engine Is there an option in ollydbg to find out what pieces of code write to a memory address ? Just like Cheat Engine shows all the assembly instructions that write to a specific address. "breakpoint --> memory" does not work. A: Yes, With oll...
{ "language": "en", "url": "https://stackoverflow.com/questions/27363155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setNeedsDisplay not resulting in dirtyRect filling entire view I am having a confusing issue. I try to draw a graph, and call setNeedsDisplay each time new data is added to the graph. The graph receives new data via addData:(NSNotification*)theNote, which then tries several ways to call setNeedsDisplay to redraw th...
{ "language": "en", "url": "https://stackoverflow.com/questions/38696797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JIRA Xray Cloud - Import Execution Results using REST API Hi I am using JIRA Cloud and trying to import execution result using REST API. End Point URL - https://xray.cloud.getxray.app/api/v1/import/execution Request Type - POST Content-Type - application/json Authorization: Bearer "" Body - { "info" : { "project": "...
{ "language": "en", "url": "https://stackoverflow.com/questions/73788673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected behavior Using React useState, Very strange output I am a newbie in React. I was experimenting around to see how things work, and I found a very strange Behavior of React or useState whatever you want to call it. Please, Someone, explain, what is going on and how this piece of coding is working. const {...
{ "language": "en", "url": "https://stackoverflow.com/questions/68496796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing the shape of a new assigned variable in Tensorflow if you change a tf.Variable using tf.assign with validate_shape=False the shape is not updated. But if I use set_shape to set the new (correct) shape I get a ValueError. Here a quick example: import tensorflow as tf a = tf.Variable([3,3,3]) with tf.Sessi...
{ "language": "en", "url": "https://stackoverflow.com/questions/53611227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove backup logs on application startup I have a RotatingFileHandler with mode=w, maxBytes=20000000 and backupCount=10 as shown below: [loggers] keys=root [logger_root] level=INFO handlers=file [formatters] keys=simple [formatter_simple] format=[%(levelname)s] %(asctime)s : %(name)s - %(message)s datef...
{ "language": "en", "url": "https://stackoverflow.com/questions/56890049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to debug Spring Cloud Kubernetes Configuration Watcher when it is not working as expectted There are two components in my k8s namespace. * *The first component is a simple Spring Boot Web Service with actuator/refresh endpoint exposed. I have mannualy make post request to the endpoint and it will trigger a con...
{ "language": "en", "url": "https://stackoverflow.com/questions/70061702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS mobile devices and hamburger menu I have designed a website that uses a CSS hamburger menu to activate a slidebar with a links to different webpages on the site. I also have written an iPhone/andriod apps that need to have an hamburger menu that open a slider work that run swift and android code. I want to add ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45897302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NativeScript Typescript: JSON Array to Typescript Typed Array I need your help, I'm learning NativeScript, here I read the txt file which has JSON data below output. After I fetch them I want to assign it to Array countries. But no luck :( public countries: Array console.log(response) console.log(JSON.parse(JSON.str...
{ "language": "en", "url": "https://stackoverflow.com/questions/43926540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery array confusion I have a web page with a bunch of tables decorated with the datatable jquery plugin. When the page is loaded, they're hidden. Then I have a function that toggles them based on the index: function expand_job(i) { $(".dataTables_wrapper")[i].show(); } But it didn't work. Browser complains t...
{ "language": "en", "url": "https://stackoverflow.com/questions/6787741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: redux differentiation with context api My understanding is that React's Context API was essentially introduced for quick and dirty global state management, particularly before Redux Toolkit was introduced to simplify the overhead of implementing Redux. My understanding is that one of the main downsides of Context AP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75498437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ThreadPoolTaskExecutor giving ConnectionPoolTimeOutException Getting this error even though the total count of active thread is less than the corepoolsize. ThreadPool which I have created : ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(1500); executor.setMaxPoolSize...
{ "language": "en", "url": "https://stackoverflow.com/questions/66383729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it necessary to hash REST API tokens? So I have a REST API and some socket APIs which use a common token validation module. Here are the things that the token module does: function tokenManager() { this.generate = (db, userId, cacheManager) => { /*Generates a token for a user and stores it in a db, also put...
{ "language": "en", "url": "https://stackoverflow.com/questions/64403682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS Firebase ML Kit Simple Audio Recognition "Failed to create a TFLite interpreter for the given model" I have been trying to implement the Simple Audio Recognition Tensorflow sample in iOS using the Firebase's ML kit. I have successfully trained the model and converted it into a TFlite file. The model takes the Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/54093248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML link with GET parameters: load page html and javascript before executing ajax request When I paste the HTML link below in my address bar or press the browser "previous page" button my ajax GET request is executed before the html content is fully loaded resulting in my ajax returned content being displayed above...
{ "language": "en", "url": "https://stackoverflow.com/questions/47904530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get random ID from DB on button click Hi guys (I'm a beginner so take it easy) I have this code which searches my database and brings up the title / artists and that works fine. I am required to make a button which when clicked it brings up a random ID from my database. I have looked around but can't find anything u...
{ "language": "en", "url": "https://stackoverflow.com/questions/51824399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to develop apps for iOS with iPod? I develop games for Android, but now I want to try the iOS platform. Actually, I have Mac Mini, but I haven't enought money to buy iPhone, so I think about buying iPod Touch instead. Is it possible to develop games (Unity engine) using iPod? What about games performa...
{ "language": "en", "url": "https://stackoverflow.com/questions/6746559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django tagging migration to GAE I have a Django app that use a django-tagging. I need to port this application to GAE. So, the main problem is to migrate tagging part. It has a complicated model, that should be rewritten to work with Google store. I think tagging is very popular django app and someone has the same p...
{ "language": "en", "url": "https://stackoverflow.com/questions/1643838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add delay between jquery steps transition (jquery steps plugin) I am using http://www.jquery-steps.com/Examples#advanced-form plugin. How can I add delay between the two steps? I have tried adding the timeout function in onStepChanging and onStepChanged but it's not working. Here's what my code looks like: va...
{ "language": "en", "url": "https://stackoverflow.com/questions/45648661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Reflection to determine which Fields are backing fields of a Property I'm using reflection to map out objects. These objects are in managed code but I have no visibility into their source code, underlying structure, etc. other than through reflection. The overarching goal of all this is a rudimentary memory ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/14322660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Line below link on hover How can I add a short line below link ? The line should be visible only on hover. I tried with border-bottom, but that way the line is 100% of the link width and I want the line to be shorter than the link . Here is a example image of the effect that I try to make. A: This is something I...
{ "language": "en", "url": "https://stackoverflow.com/questions/23631822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: EF Insert Array into db With View I have something to ask , i 'm going to create a simple application that store value of student Below is my class which i have tried . Class Data{ public int Id {get;set;} public string Name {get;set;} public int[] ValuesStudent{get;set;} } And below is example of the data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39550765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a property I can check to see if code is rendered using hydrate vs render? I have a React app (with SSR) and need to handle things differently for server vs browser renders. A: I ended up using the following, but my gut feeling is there is a better way. if (typeof window !== "undefined") { // This code i...
{ "language": "en", "url": "https://stackoverflow.com/questions/64279861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to abort processing a request in NodeJS http server I have your standard callback-hell http server like (simplified): http.createServer((req, res) => { doSomething(() => { doMoreSomethings(() => { if (!isIt()) // explode A if (!isItReally()) //...
{ "language": "en", "url": "https://stackoverflow.com/questions/40808578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking for a script/tool to dump a list of installed features and programs on Windows Server 2008 R2 The same compiled .Net / C++ / Com program does different things on two seemingly same computers. Both have DOZENS of things installed on them. I would like to figure out what the difference between the two is by lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/2448612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Python CGI for a big HTML file I have a big html file named exercise.html, I need generate to one som stuff by Python CGI. I want to ask you what is the best way to print this HTML. I know that it is possible by print method with using format methods %s, %i etc.: print '''<html> <head><title>My first Python C...
{ "language": "en", "url": "https://stackoverflow.com/questions/23654230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Callback parameters gets shifted I have a video c++ callback function where the parameters get suddently shifted after a few hours. In debug, it will assert on this: void CCameraInstance::VideoCallback(void *pContext, unsigned char *pBuffer, long nWidth, long nHeight, long nFrameErrorNo) { assert(nWidth < 4000); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19498545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Composite/Combined Indexing vs Single Index vs multiple Combined Indexed on a large table I have a very large table (that is still growing) (around 90GB with ~350mil rows). It is a table that include sales of items, if you were wondering. In this table, there's (for example), column A,B,C,D,E,F,G. Currently, I am us...
{ "language": "en", "url": "https://stackoverflow.com/questions/73581169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert below javascript code to work in IE11 I want to convert my code from es6 to es4-3 so that it supports IE11. I am trying to toggle the class="open" for the three button which helps me to open a small div. JS: let customSelect = document.getElementsByClassName('input-select') Array.from(customSelect).f...
{ "language": "en", "url": "https://stackoverflow.com/questions/71392000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FileNotFoundException : Could not open ServletContext resource [/WEB-INF/spring/root-context.xml] I am facing below exception while building a SpringMVC application through Maven. Maven builds the application and tries to deploy on already running tomcat which fails. If I build and run the same code through eclipse+...
{ "language": "en", "url": "https://stackoverflow.com/questions/32652133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In python, is it easy to call a function multiple times using threads? Say I have a simple function, it connects to a database (or a queue), gets a url that hasn't been visited, and then fetches the HTML at the given URL. Now this process is serial, i.e. it will only fetch the html from a given url one at a time, ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/4962022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: password set during checkout issue I have an issue with customer registered through checkout. After the checkout process, the customer lands in β€œMy Account” but once logged off, he can’t acces "My Account" anymore, the message "Invalid login or password" is displayed. Setting a new password through β€œForgotten Passw...
{ "language": "en", "url": "https://stackoverflow.com/questions/42439888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change part of window content upon combo box selection changed event? In my wpf window I want to change part of it (make different controls visible) when combo box selection is changed. Exactly like TabControl works, just with combobox. I know I could just make some controls visible while hiding the others in...
{ "language": "en", "url": "https://stackoverflow.com/questions/10541331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to block mouse click events from another form I have a winforms single form application that uses a "Thickbox" I've created whenever the loads a new view into the application form. The "Thickbox" shows another form in front of the application's form that is semi-transparent and has a user control that is the box...
{ "language": "en", "url": "https://stackoverflow.com/questions/35684964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create twin object a.k.a. inheritance clone The working twin(source) function below generates a new object with the same own properties as source and with the same parents (prototype chain). (e.g. twin(isFinite) would be [object Object] and instanceof Function) Does any native function provide the same effect? /** ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16594717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Updating parent component only after multiple child components have completed running I have a Parent react component with multiple child components that are created through a .map() function. I am passing in a function addCallback() as child props so I have a reference and can trigger all child's handleRun() functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/56784785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to access a variable that was available when an async method was called? The animal names are fetched from an API that could return 404 if the animal is not found. But in order to properly log the error, we need to have access to the animal's country. Is it possible? I've read something from a guy called Stephen...
{ "language": "en", "url": "https://stackoverflow.com/questions/69383186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML divide and conquer i am looking for the best pratice when it comes to HTML. Now my normal programming instincts tells me to always divide and conquer but i am not sure how or even if it is recommended when it comes to HTML. So say for example i have the following index file: <!DOCTYPE html> <html> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17914717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select ScrollView element (Button) by code I would like to set my scrollView element seleted, using code. Here is what I have so far (commented code is not working): public class Dictionary extends Activity implements Runnable, OnClickListener { //Candidates candidatesScrollView = (HorizontalScrollView) find...
{ "language": "en", "url": "https://stackoverflow.com/questions/17036867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing unit tests that work with the DOM I have some functionality that works with the DOM, specifically dealing with resizing elements. I looked over the Unit Testing documentation here and couldn't find anything on doing this. Is it possible? Is there any existing documentation that shows how to do it? A: Try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14987852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Object reference not set to an instance of an object. Instantiating Class within a List? public class OrderItem { public string ProductName { get; private set; } public decimal LatestPrice { get; private set; } public int Quantity { get; private set; } public decimal TotalOrder { get {return Lates...
{ "language": "en", "url": "https://stackoverflow.com/questions/8701846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there a way to make app engine turn off when no traffic I am currently using App Engine in Google Cloud with Docker to handle Mux Video requests. The problem is I am being charged over $40 when the app is in development and there is virtually no traffic on the app. Is there a way to turn off the App Engine when n...
{ "language": "en", "url": "https://stackoverflow.com/questions/70173388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "save link as" bulk download I have a list of links in an html file and I want to perform a "save link as" for all of them so it downloads all the files into one folder. Is this possible? I need to do this from within firefox or chrome as I am required to be logged in to the website, Thanks, A A: Whilst it's possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/8112283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do we need to define a function to call another function? In the implementation of ResNet architecture in Pytorch I encountered the code below which is from line 264 til 283: def _forward_impl(self, x: Tensor) -> Tensor: # See note [TorchScript super()] x = self.conv1(x) x = self.bn1(x) x = self....
{ "language": "en", "url": "https://stackoverflow.com/questions/72111540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read logging configuration from appsettings.json in .net Core 2.2 In .net Core 2.1 it was done like this var loggingConfig = configuration.GetSection("Logging"); loggerFactory.AddConsole(loggingConfig); I have moved it to ConfigureServices and now I get Error CS1503 Argument 2: cannot convert from 'Micros...
{ "language": "en", "url": "https://stackoverflow.com/questions/54321456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Facebook Likeview is not working I have implemented Like as suggested on Facebook developer site I just added Likeview and set Object id for post code is as below likeView = (LikeView)findViewById(R.id.like_view); likeView.setObjectId("https://www.facebook.com/karan.raj.5070276/posts/396696657159566"); My lay...
{ "language": "en", "url": "https://stackoverflow.com/questions/27821911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Offsets to create n-sided shape around starting point in Javascript I would like to find an function where, given a starting point (x, y) P, a radius r, and an integer n, I can generate offsets from P to create n well-placed points to create a shape (within a circle of radius r) around P. For example: For P = {x: 0,...
{ "language": "en", "url": "https://stackoverflow.com/questions/33378118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is setuid not running as the owner? I am currently trying to learn what the special bits in file permissions do but am currently stuck trying to understand what the setuid bit does. From all the online resources it says: Commonly noted as SUID, the special permission for the user access level has a single funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/69958788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Managing users in the TFS work items "Assigned To" field So I know there have been a couple of posts around about this topic, but I don't think they've quite got to the bottom of it! So my problem is that when I create a new work item in TFS, the users which I can assign it to include NT Authority\Local Service (whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/3422653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Anybody who have used Django and JQuery Autocomplete? Is there anybody out there who have used Django and JQuery Autocomplete? Am stuck on this and i will highly appreciate to see how someone else has done this! especially without using the AutocompleteWidget! Gath A: There are some easy to follow examples in this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/738529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Running a docker container which uses GPU from kubernetes fails to find the GPU I want to run a docker container which uses GPU (it runs a cnn to detect objects on a video), and then run that container on Kubernetes. I can run the container from docker alone without problems, but when I try to run the container from...
{ "language": "en", "url": "https://stackoverflow.com/questions/68653976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cant get android sqlite select statement to work I'm trying to select the items that have expired in my database but nothing is ever returned. I've tried the following: select * from productTable where columnExpiration < date( currentDate) All dates in the format yyyy-mm-dd When that didn't work I tried: Select* fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7898612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find the number of each elements in the row and store the mean of each row in another array using C#? I am using the below code to read data from a text file row by row. I would like to assign each row into an array. I must be able to find the number or rows/arrays and the number of elements on each one of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/11541076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Audio not working in html5 I was adding audio to an HTML5 website. The audio works fine with FireFox and IE but does not show up and play in FireFox. Any ideas why and solution? Thanks in advance. <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Docume...
{ "language": "en", "url": "https://stackoverflow.com/questions/10667932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: TextInfo ToTitleCase missing in Xamarin Forms I am trying to convert a string to title case in my cross platform Xamarin app using the following code. string rawString = "this is a test string"; System.Globalization.TextInfo textInfo = CultureInfo.CurrentCulture.TextInfo; string formattedString = textInfo.ToTitleCas...
{ "language": "en", "url": "https://stackoverflow.com/questions/50333596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Group By and Sum Quantity by Direction Column Good Day guys is there a way for me to group by an item and sum its quantity using the direction column? I want to add new column positive_quantity (direction are 1, 4, 5) and negative_quantity (direction are 2, 3, 6) here's my code: SELECT il.warehouse_id, w.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/58077607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I use create a program that uses GDI+ 1.0 on XP and 1.1 on Vista/Win7 I know that if I use the features of GDI+ 1.1, the .EXE file won't run on Windows XP. I want to make a program that runs on Windows XP and Windows 7 both, and use the GDI+ 1.1 feature on Win7. Is there anyway to do this? A: A simple way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7398145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use "-replace" in Set-ADUser? I want to use PowerShell via my C# to modify Active Directory attributes. Here is my PowerShell command which I can use to replace an Active Directory attribute: Set-ADUser -Identity "kchnam" -Replace @{extensionAttribute2="Neuer Wert"} How can I add the @{extensionAttribute2="N...
{ "language": "en", "url": "https://stackoverflow.com/questions/31921187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Visual Studio Code, container: terminal hangs very long before prompt appears I'm using Visual Studio Code to develop within a Docker container (notably, mcr.microsoft.com/vscode/devcontainers/javascript-node:0-12). This is the content of my settings.json file: { "terminal.integrated.defaultProfile.linux": "zsh...
{ "language": "en", "url": "https://stackoverflow.com/questions/70861778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: use vmalloc memory to do DMA? I'm writing a driver which need large memory. Let's say it will be 1GB at least. The kernel version >= 3.10. Driver needs run in X86_64 and Arm platform. The hardware may have IOMMU. * *This large memory will mmap to userspace. *Device use those memory to do DMA. Each DMA operation...
{ "language": "en", "url": "https://stackoverflow.com/questions/61092347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Batch update in php I have a mysql table with multiple fields: SNo id status Now the status has changed and i need to update it when the value of Sno is 1 from my php script. I do not want to do it individually as this may be time consuming. Is there any way to update the values of status when I have the value of...
{ "language": "en", "url": "https://stackoverflow.com/questions/12831197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confluent KSQL "Register a stream or table for this topic" doesn't populate topic fields I have 4 topics where I was able to successfully stream data to, and their schemas look good. But after clicking a topic > "Query in KSQL", I noticed only 1 of them populates the "Field(s) you'd like to include in your STREAM". ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59534357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python spark Dataframe to Elasticsearch I can't figure out how to write a dataframe to elasticsearch using python from spark. I followed the steps from here. Here is my code: # Read file df = sqlContext.read \ .format('com.databricks.spark.csv') \ .options(header='true') \ .load('/vagrant/data/input/inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/39559121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: sycn a vertical recyclerview with and horizontal recyclerview I am creating a food menu layout, the menu has categories with items. at the top is a list of category names like drinks, sushi, etc, which is a recyclerview that scrolls horizontally, at the bottom are the category items for example under drinks there is...
{ "language": "en", "url": "https://stackoverflow.com/questions/74567007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found I'm trying to install bern2 locally. bern2 installed successfully. when I started running, I got this error. ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /opt/conda/envs/bern2/l...
{ "language": "en", "url": "https://stackoverflow.com/questions/74556574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: css: make inner container height 100% with top and bottom margin I have strange case: I try to make an inner container to fill parent (height with 100% height), but as result I get overflowed content in bottom: But it must be so (100% except margin top and bottom): code: <!DOCTYPE html> <html> <head> <link ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31233811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hadoop - Creating a single instance of a class for each map() functions inside the Mapper for a particular node I have a Class something like this in java for hadoop MapReduce public Class MyClass { public static MyClassMapper extends Mapper { static SomeClass someClassObj = new SomeClass(); voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7872830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using Socket.io with React and Redux to handle a hundred of updates per second I have a list of items which are objects of data from the server (about 1000) that I need to sort, filter, put into Redux and connect to a React table component. I'm using socket.io to listen for updates which sends these individual data...
{ "language": "en", "url": "https://stackoverflow.com/questions/50999907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VueJS - standard practice for ordering functions in export? New to Vue and wondering if there is there a standard practice for ordering the exports? The name seems to always be at the top and the lifecycle hooks seem to be in the order of the lifescycle but I'm not sure about the rest (data, computed, etc.). Though...
{ "language": "en", "url": "https://stackoverflow.com/questions/62253825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python error importing dateutil I try to execute marathon-lb.py and it throws the next error: Traceback (most recent call last): File "./marathon_lb.py", line 46, in <module> import dateutil.parser ImportError: No module named 'dateutil' I just install python with apt and with pip. I have run: sudo apt-get in...
{ "language": "en", "url": "https://stackoverflow.com/questions/37434917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }