text
stringlengths
15
59.8k
meta
dict
Q: Plus Minus Toggle on Clicking a Link I have a link with a plus symbol (More Details[+]) ... when the user clicks the link, I want the link to change to a minus (More Details[-]), and show the content below it. I can show/hide the content, but the +/- toggle doesn't work. Note: I'm new to javascript, so please be pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/49910174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change a Char in a String in a TStringList After writing the content of the text file to the TStringList object, I try to change one character in the line and then write the entire content of the object back to the file. In the saved file, the changed line character was not saved as expected and is still unch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75339236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting up a library in Eclipse CDT I am creating a project which needs to use the libnoise headers. However I am having difficulty compiling. I have put the headers into my src/ directory of my project, so I am able to include them with #include "noise/noise.h" #include "noise/noisegen.h" #include "noiseutils.h" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24713869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery datepicker - Set display position of the calendar when displayed as an overlay Is there any way to specify where will the calendar be displayed when the related input gets the focus? I didn't find a way of doing this in the doc. Thanks! A: Ok, so one solution a coleague gave me for this was to comment out th...
{ "language": "en", "url": "https://stackoverflow.com/questions/2790848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When I do Flask run, it shows error : ModuleNotFoundError: No module named 'werkzeug.contrib'. Can anyone help me with this? the exact error I get is : flask.cli.NoAppException: While importing "application", an ImportError was raised:Traceback (most recent call last): File "/home/harshit/.local/lib/python3.6/s...
{ "language": "en", "url": "https://stackoverflow.com/questions/60624139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Smooth slideup/down after creating DOM elements I have a larga amount of xml data in $(db). When a certain element is clicked, a function traverses through $(db) and creates new DOM elements inside a hidden div. How can I then smoothly slide down the div? $('li').live('click', function(){ // many $('div.content'...
{ "language": "en", "url": "https://stackoverflow.com/questions/10195758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android2.3 DownloadManager I use DownloadManager, which in available since Android 2.3, to download FTP. But it does not work. I do not know how to make it work? I did not find proper examples. Does DownloadManager support FTP? A: Unfortunatelly, FTP won't work. DownloadManager supports HTTP. And HTTPS is supporte...
{ "language": "en", "url": "https://stackoverflow.com/questions/14212339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: python dynamic multiple inheritance __init__ I am trying to write a plugin environment where I need to do multiple inheritances on an unknown number of classes. Therefore, I have opted to use the type class creation: class A(object): def __init__(self,s): self.a="a" def testA(self,x): print(x) cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/49946616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android context & OSGi Bundle I'm actually working on OSGi on Android, and I'm close to reach my goal, but there's one little problem. The framework (Apache Felix) is running successfully. The problem comes from Bundles that want to get Context of the Application. I just can't try to use them, because at runtime, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/5188652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EntityManager inside Entity Bean how-to How to use (inject) entityManager to Entity Bean? Inside my Entity bean I have some validations that need to do query on other (unrelated) Entity, some kind of List-Of-Values Entity. What is the right way to do this? To put EntityManager to a constructor of Entity Bean? Or wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/10532256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cast to derived class in base class constructor Python I have a base class and a derived class. I want to be able to cast the base class to derived class in the constructor of base class, using one of the arguments passed. Elucidated below: Class A(object): def ___init___(self, arg1, arg2 ..., shouldBeDerivedCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/45108643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: prevent user to login from other device or other browser at same time prevent user to login from other device or other browser at same time If user is logged in from one pc/device then that perticular user can not log in using same id and password from another pc/device or another browser. using php and mysql A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/33202383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Add a health check in Startup.Configure We want to standardize health checks across our .NET Core APIs, and we thought an easy way would be to install a NuGet package which contains something we could add in the Startup file like so. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger...
{ "language": "en", "url": "https://stackoverflow.com/questions/44709327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ValueError: The model is not configured to compute accuracy. You should pass `metrics=["accuracy"]` to the `model.compile()` method I am very new in Deep Learning: I am doing a deep learning course on Udemy. once I execute my code, it says: ValueError: The model is not configured to compute accuracy. You should pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/59556100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make image height auto adjust to text height Given this HTML <div class="flex"> <div> <img src="https://via.placeholder.com/300x300" alt=""> </div> <div> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis facilisis nisi elit, vitae interdum nisi porttitor a. Maecenas porta mollis venenatis. P...
{ "language": "en", "url": "https://stackoverflow.com/questions/61037163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button OnClick in string variable pass another method This code is not working. cellDeleteButton.innerHTML = "<input type='button' value='Sil' id='btnSil'; class='btn btn-danger' onclick='DeleteRow("+table_id+","+lastRow+")'/>"; This is code output : <input type="button" value="Sil" id="btnSil" ; class="btn btn-dan...
{ "language": "en", "url": "https://stackoverflow.com/questions/68781778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: FluentNHibernate and persistence of tree structure I have an application storing a tree structure and is able to generate the database fine, but when inserting I get an exception. I simplified the code to narrow down the problem. The class to be saved: public class Node { public virtual int NodeId { get; set; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9551456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "common_google_play_services_install_title" error I am trying to export my application which uses google play services library. But there is a lint warning which prevents me to export the app even though I've cleaned the project. But its running fine in the emulator.Here is the warning it shows: "common_google_play_...
{ "language": "en", "url": "https://stackoverflow.com/questions/16791119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kohana Exception not clear I'm using Kohana and when running index.php page, I've got following error: Kohana_Exception [ 0 ]: Directory a:0:{} must be writable a:0:{} what is it? Everything is writeable: I'm working under linux debian squeeze and ls-l done on every folder and subfolder remove every doubt.. I've c...
{ "language": "en", "url": "https://stackoverflow.com/questions/20418231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assistance with CVLine/CVPoint In a text file, npoints3, I have coordinates of the form 1 242 2 242 3 242 ... 900 242, which is a straight line across my image;however, the following code prints a straight line plus an additional line segment. I am not sure what I am doing wrong. Can someone assist me with why I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/14913944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android use CFB I'm trying to encode my String with AES and CFB. If im doing this Cipher cipher = Cipher.getInstance("AES/CFB/NoPadding"); , it works fine. But if i'm using "AES/CFB/NoPadding" instead of "AES", then the same String with the same password is different. Here is my Code: SecretKeySpec key = new Secret...
{ "language": "en", "url": "https://stackoverflow.com/questions/23087482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle Merge - constraint violation on unique key I have this table in oracle 11g. TABLE: ORDER_LOCK Name Null Type ---------------------- -------- ---------- ORDER_ID NOT NULL NUMBER(10) [PRIMARY KEY] ORDER_REF_ID NUMBER(10) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21904005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I add progress bar to my github action I am writing some GitHub actions for my project and I would like to have the orange progress bar to track the progress of my action. A: The progress bar is shown on jobs that define the attribute environment Here's an example of how to use it: jobs: deploy: runs...
{ "language": "en", "url": "https://stackoverflow.com/questions/72912540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Display even numbers from a range in the tkinter Spinbox I'm trying to display the even numbers from a range between 0 and 1000 in a spinbox. Below is the following code : Spinbox(root, from_ = 0, to = 1000, textvariable = year).pack() How can I modify such that only the even numbers between 0 and 1000 is display...
{ "language": "en", "url": "https://stackoverflow.com/questions/44065733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange copy/paste behavior in custom itemEditor component used in a Datagrid I'm turning to you folks for answers because this really blows my mind... Let me explain: I'm using a slightly modified spark NumericStepper as an item editor in a datagrid. I had to modify the original because for some reason it's values ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4960481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rename all files in a folder I'm on a linux, and a download a lot of funny pictures. Unfortunately, I'm left with a bunch of duplicate names like download (1) and image.jpeg. I would like to change them all to something a bit more helpful. Is there a way to (preferably using bash) to rename all files to sequential ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16306877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: runtime error for leetcode problem 154 : reorder list https://leetcode.com/problems/reorder-list/ this is my codes logic 1) taking care of edge cases when 0,1,2 elements in list 2) storing node addresses in vector addr 3) inserting last nodes after 1st nodes one by one i.e 1-2-3 should become 1-3-2 /** * D...
{ "language": "en", "url": "https://stackoverflow.com/questions/62167014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to upload an array of images using Alamofire but getting error I'm trying to upload an array of images to the server using Alamofire 4.8.2 Here is the function: func uploadMultiplePhotos(centreId: Int, imagesArray: [UIImage]) { let parameters = ["ec_id": centreId, "uploaded_image": imagesArray] as [S...
{ "language": "en", "url": "https://stackoverflow.com/questions/56683594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Renaming input file before uploading with jquery and laravel I want to rename input file to be uploaded before sending to laravel. Basically, i found an another way to rename the file in laravel but in this question I want to rename the file before sending to laravel. In my case, I'm using jquery upload file, and no...
{ "language": "en", "url": "https://stackoverflow.com/questions/46557825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: joomla 2.5 module retrieve data from database i want to retrieve data from database in my module page.for that my helloworld.php put the code // Get a database object $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('id, description'); $query->from('#__banners'); // sets up a database query f...
{ "language": "en", "url": "https://stackoverflow.com/questions/20244411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to cache stored procedure results to retrieve the results faster? I have a stored procedure which takes a lot of time (around 5 minutes) to execute. This stored procedure fills up a table. Now I am retrieving the data from that table. I have created a job to execute this stored procedure every 15 minutes. But wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/27177600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If the GCM server receives a message to be sent to an Android phone, is the message going to survive on the server until it reaches the client? I mean, once the message has reached the server, can I rely on GCM for that message to arrive to the phone whenever the phone is online? Can the message be lost in the middl...
{ "language": "en", "url": "https://stackoverflow.com/questions/11780507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Context Menu on everything except "input" in jQuery I want to add custom context menu with jQuery for the whole body of the page, except the textfields. How can I do that? I have tried that code: $('body:not(input)').bind('contextmenu', function(){ /*code*/ }); A: Check the srcElement before plugin exec...
{ "language": "en", "url": "https://stackoverflow.com/questions/21047264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Purchase Status API I'm developing an app which has several non-consumable inApp products in it and i need to get the purchase status of those by directly sending requests to Google server and receiving the result. As i understood "Purchase Status API" gives that possibility but it's not working for me. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19230320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ansible string concatenation into config file I have a list of variables ("/dev/sda", "/dev/sdb") which I would like to to dynamically update a config file. The config file is finally expected to look like filter = [ "a|/dev/sda[145]|", "a|/dev/sdb[145]|", "a|/dev/mapper/3500.*part1|", "r|.*|" ] Currently, the conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/57451002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: docker postfix - missing logs I created docker container like this: FROM debian RUN export DEBIAN_FRONTEND=noninteractive RUN apt-get update RUN apt-get install -y syslog-ng syslog-ng-core RUN apt-get install -y postfix vim \ && rm -rf /var/lib/apt/lists/* CMD /etc/init.d/postfix start && /bin/bash And start it l...
{ "language": "en", "url": "https://stackoverflow.com/questions/46998673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I design a data warehouse model that allows me to dynamically query for total action count, unique user count, and a count of total users Currently facing a problem where I am trying to create a login utilization report for a web application. To describe the report a bit, users in our system are tagged with d...
{ "language": "en", "url": "https://stackoverflow.com/questions/66342700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find number of specific column in csv using pandas? This is my csv file. Iam uploading this data to db using python pandas.How to find the number of fee columns are there(fee_1,fee_2,fee_3)?. Because the start,end,fee columns are dynamic. I need to upload based on the number of fee columns. If number of fee ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73944940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: shift operation in linked list name played games score Deep 5 540 (head) Peter 34 455 Avijit 2 430 Pekka 4 310 (tail) For the above linked list of player list, I want to sort list in ascending order when Avijit gets higher score than Peter. So its a shift operation in linked list. Can anyone help me to find out the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5918955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Special characters in Request URL in SoapUI I use SoapUI to send HTTP and SOAP requests. There is an URL like this: https://mydomain/response? , where a HTTP request should be posted. URL in raw request view it appears without question mark. I tried to provide it in URL encoded(%3F) form too, but it is not resolved,...
{ "language": "en", "url": "https://stackoverflow.com/questions/53062929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open folder vs create new project from existing files, located under shared network drive in PhpStorm It's not clear to my why I should use the option in PhpStorm to create a new project from existing files instead of just opening a folder and declaring the project directory. I have a web server installed and I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36935776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding scrolling programmatically when needed I have a screen set up in my app with all the constraints and everything, and so don't want to set up a scroll view for this view in the interface builder if it means that I will lose the constraints. The content size varies, so I only want to make the view scrollable if...
{ "language": "en", "url": "https://stackoverflow.com/questions/52165239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: IPN not receiving from paypal sandbox I had developed a website with online transaction using paypal as payment option. Checkout and the shopping cart calculations on paypal side are working, but i'm not receiving any IPN messages from paypal sandbox. <form name="paypal_form" action="https://www.sandbox.paypal.com/c...
{ "language": "en", "url": "https://stackoverflow.com/questions/11625285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS based 50% Transparent border without using transparent image I need to make the border of fancy box transparent after i have made some modifications to it. For some reason i cant make it work with transparent. I have create a sample example which is somewhat & i want to make the borders of the inner DIV transpar...
{ "language": "en", "url": "https://stackoverflow.com/questions/12793041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: for loop/list-comprehensions to apply zip_longest for list of lists combinations to get (l1[0]:l2[0]) without getting l1[0]:l2[1]) I have been working on combining lists of lists...testing answers to various questions on zip, zip_longest, lists, list comprehensions, iteration through lists of unequal lengths lists o...
{ "language": "en", "url": "https://stackoverflow.com/questions/74047967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Merging a decrypted search of items within a LINQ query I have the following search query: IQueryable<File> files = GetFiles(f => f.Clients.Any(fc => fc.Contacts.Any(c => c.Companies.Any(x => x.Name.Contains(searchText))))); Unfortunately the search for Companies.Name will never work because the Name is encrypted. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16703863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create an association class in draw.io? I've started using the website draw.io, I want to create a class diagram but I couldn't find how to create an association class, any help would be useful. Thanks. A: draw.io is a drawing tool, not a UML tool. As such you can simply draw two class shapes, connect them w...
{ "language": "en", "url": "https://stackoverflow.com/questions/47158665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Proper way to handle Query Cursor in Google Firestore? (Vue/Nuxt.js) I run a chat application with Firebase Firestore and it works all super well, however I'm running into the following issue: For paginating my conversations & chats I use query cursors for my listeners. I save these query cursors into my state (vuex...
{ "language": "en", "url": "https://stackoverflow.com/questions/53243866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Converting enums to symbols in Julia I have a definition of an enum as below. I would like to map each instance of the enum into the corresponding symbol. I can do this by manually constructing an array symbols and indexing into it. Is there a way of accomplishing this without specifying the array of symbols by hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/64619215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML,PHP issues I am creating a website at school for a pretend client. At this stage it is a mobile repair/shop with services and products. My aim is to get all the products on my edit page so that if an item was out of stock my (client) could login as an admin and edit the page without having to go through the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/54602299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Python dictionary, how can I create a key with a string and the actual key combined? I hope this is a quite easy question, but for me without a lot of python background I can't find an answer. df = pd.DataFrame( {'Messung': ['10bar','10bar','10bar','20bar','20bar'], 'Zahl': [1, 2, 3, 4, 5], 'Buchst...
{ "language": "en", "url": "https://stackoverflow.com/questions/66886187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: android sort integers from database from big to small I made an quiz android app where the user get score every time he finish the quiz and after that the score will be saved in the database and after that the user can display the saved score. and my question is how I can display or sort these score on the page scor...
{ "language": "en", "url": "https://stackoverflow.com/questions/26679665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Parse SGML using beautiful soup Below is the sample content :- <WKEXT-META-ATTRS> <WKEXT-META-ATTR NAME="uri" VALUE="http://sample.com/ceres/wk-us/Concept/i8148" DATA-TYPE="OTHER"></WKEXT-META-ATTR></WKEXT-META-ATTRS></WKEXT-META-OBJECT> <WKEXT-META-OBJECT NAME="UNIONREPINFO" ID="ext-met-0005" PUBLISHER-URI="http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/64966365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netty doesn't complain if port is already used Following problem: I expect an exception if a port is already used. So I tried to start my server twice in a thread public void start() { new Thread(new Runnable() { @Override public void run() { EventLoopGroup bossGroup = new EpollEv...
{ "language": "en", "url": "https://stackoverflow.com/questions/72352246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write CLLocation's GPS information into UIImage using PHPhotoKit? Is there any method to write GPS info into one image? for example, I want to develop a camera app that can take photos with location information. Can I use PhotoKit related methods or some other methods such as ImageIO? Thanks. A: You can add...
{ "language": "en", "url": "https://stackoverflow.com/questions/40777333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: merge sort merge run time anaylsis I have some confusion of the run time analysis of the merge function in merge sort. Merg(A,p,q,r) 1 n1=q-p+1 2 n2=r-q 3 let L[1..n1+1] and R[1..n2+1] be new arrays 4 for i=1 to n1 5 L[i] = A[p+i-1] 6 for j =1 to n2 7 R[j] = A[q+j] 8 L[n1+1] = infinity 9 R[n2+1] = infinity 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7668392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create multi-page document from a single page template using doc4j I am planning to use doc4j for search and replace in a template. I'do like to create the page for each member in the list. Basically, I need to replicate the same page from the template. I have done simple search and replace. However, this little c...
{ "language": "en", "url": "https://stackoverflow.com/questions/36226178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: search the product by tag or category not working I am working on a search. I am trying to search the product by tag or category. I tried the below code but it's not working. I am getting Nothing Found Also, the Below code is working only with title and content. Would you help me out with this? <?php /** * The t...
{ "language": "en", "url": "https://stackoverflow.com/questions/59300576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to load dataset from "" using class com.github.springtestdbunit.dataset.FlatXmlDataSetLoader I wrote a demo of Spring Boot + JPA, and here I met a question that confused me couple of days when I try to do some tests on repository. The error is **java.lang.IllegalArgumentException: Unable to load dataset from"...
{ "language": "en", "url": "https://stackoverflow.com/questions/70060569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uri Segment When Using Ajax In my codeigniter application i want to display the uri segments.Iam using ajax to call controller. This is my html code function add_store(){ var path="<?php echo base_url()?>images/loader.gif"; $("#add_store").html("<div align='center' style='margin-top:200px;'><...
{ "language": "en", "url": "https://stackoverflow.com/questions/8413433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Counting number of records in database: Django I'm trying to output the count of the number of "subscribers" in my database in Django, I've found count in my view and then I think I'm using it correctly in the html, but it always just outputs "there are subscribers" without the number, when I use "|length" in the ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/61350232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to bind a String to a TexBlock Property ? WPF c# I have this : TextBlock MyText = new TextBlock(); String SomeWords; I want to bind those two properties but I dont know how to do it with a string : Binding binding = new Binding(); binding.Path = new PropertyPath(MyText.Text); BindingOperations.SetBinding(SomeW...
{ "language": "en", "url": "https://stackoverflow.com/questions/18632617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Create an Angular 2 app inside no Angular project I've created an Angular 2 app inside a normal javascript project and I need to use some files (.CSS, .JS, etc) outside the Angular app, but if I use the CLI with command ng serve it creates the app in the http://localhost:4200/, and the app works, but these files out...
{ "language": "en", "url": "https://stackoverflow.com/questions/42391211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python Decorator for printing every line executed by a function I want to, for debugging purposes, print out something pertaining to each and every line executed in a python method. For example if there was some assignment in the line, i want to print what value was assigned for that variable, and if there was a fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/32163436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: IF-statement depending on notebook.page.label (gtk#) I am realtively new to C# and am trying to have an action in my toolbar that will act depending on which page in a notebook that I am currently "viewing". Here is what I am trying to do: protected void OnRefreshActionActivated (object sender, EventArgs e) { i...
{ "language": "en", "url": "https://stackoverflow.com/questions/43331758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WebKit gradient from an image Does anyone know if there is a tool that will take an image (.png, .gif, etc) and output the gradient that the image contains? I really want to recreate this image in css. Looks like a mix of linear and radial gradients and is beyond my css skills A: Getting the gradient from a random...
{ "language": "en", "url": "https://stackoverflow.com/questions/3847188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replace input field error message text based on input field label name So I have this account creation form for a company. Here's what it looks like: I am going to explain first how a feature in this system works. * *After company creation, a table will be shown, listing all the companies I created. *In the A...
{ "language": "en", "url": "https://stackoverflow.com/questions/36299287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python - Create a Bar Chart of Average Estimated Salary by c_rating, but do a facet_wrap by gender My data set is Churn_Modeling: RowNumber CustomerId Surname CreditScore Geography Gender Age Tenure Balance NumOfProducts HasCrCard IsActiveMember EstimatedSalary Exited 1 1563...
{ "language": "en", "url": "https://stackoverflow.com/questions/65270025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twig impossible to invoke a method on a string variable After updating "twig/twig" to "v2.4.4" I have an error when calling macro function. Impossible to invoke a method ("widget_prototype") on a string variable (":ERP/timesheets:_form_part.html.twig"). My macro: {% macro widget_prototype(widget, remove_text) %} {%...
{ "language": "en", "url": "https://stackoverflow.com/questions/47013982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Specifying matplotlib scatter size in plot units I would like to specify my scatter dot size not using points or pixels but rather using plot units. Take for instance the following: import matplotlib.pyplot as plt x = [0] y = [0] plt.scatter(x,y) plt.show() This produces a plot as follows: What if, say, I wanted m...
{ "language": "en", "url": "https://stackoverflow.com/questions/57543182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Details of socket using socket ID This question may sound basic one . Are there any functions in c or Java where I can get the socket details like , port , address , buffer size using only socket identifier ? A: Some minimal information available with me is posted below. I don't know much of Java. But as far as 'C'...
{ "language": "en", "url": "https://stackoverflow.com/questions/10851515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add additional columns during BULK INSERT without modifying source file I have a BULK INSERT into a table but I need to add data that is not in my csv for the last column in each row of the table. For example, if my csv file contains 10 columns but the database table contains 11 columns, how can I add data...
{ "language": "en", "url": "https://stackoverflow.com/questions/67004594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get string between two sets of characters in shell I pipe the following string "version": "1.0.0", to sed and I'm trying to get 1.0.0 out of it. I want to get it by the rule: get string between : " and ",. I've been trying the following: sed -e '/:\ \"/,/\ ",/p' sed -e 's/:\ \"\(.*\)\",/\1/' The first one does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/44161285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Storing Documents on Azure with custom metadata i am trying to find the best way to implement a small site allowing the user to upload a file and then search on it. i used azure search with blob storage. the file is stored on the blob storage and is then gets indexed by azure search indexer - so far so good. the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/48628574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to enable SSL usage when using local XML autodiscover file? I use the Redemption library and I encountered a problem I can not solve by myself. In my project, I use a local XML file to login to the Exchange server (Autodiscover service is disabled on the server and can not be enabled). For this purpose, I create...
{ "language": "en", "url": "https://stackoverflow.com/questions/75056646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trigger to run TeamCity based on file existence I want to run TeamCity processes based on file existance. I have two TeamCity processes (Dev and Prod): * *Dev should be run if there is DevParam file in repo (or in specified location). *Prod should be run if there is ProdParam file. I want to run exactly one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54690386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intel Compiler /QxCORE-AVX2 switch and compatibility with AMD Excavator/RyZen For some unknown reason Intel decided to does not support AVX2 via typical /arch: option. /arch: recognizes only following instructions IA32,SSE,SSE2,SSE3,AVX. So if you want to compile for AVX2 you are basically forced to activate /QxCORE...
{ "language": "en", "url": "https://stackoverflow.com/questions/41550108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a jQuery event that fires when all effects are done running The title explains the question, otherwise is there way to call a function when all the effects on a page are done running? A: You could nest your animations like this $('#Div1').slideDown('fast', function(){ $('#Div2').slideUp('fast'); }); An...
{ "language": "en", "url": "https://stackoverflow.com/questions/462778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular + TypeScript + AMD = duplication? I've been developing in Angular for a few months and am now investigating whether it's worth moving to TypeScript for my development. One of the issues I'm having is the duplication when using external modules and injecting services. For example I have this (simplified) code...
{ "language": "en", "url": "https://stackoverflow.com/questions/32627930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to integrate a maven project with parent pom as module? I'd like to use a parent maven project/aggregator to build my project and a dependency which I have in my source root as git submodule, e.g. aggregator pom.xml - dependency pom.xml - project pom.xml I naively adapted this layout from GNU C/C++ projects, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31770982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server queries xls file worked yesterday(I swear), now refuses to. 0.o Hey all, the following select statement used to correctly query an Excel spreadsheet on a 64bit SQL Server 2008 R2, and now provides me with an error. SELECT MPNCode, Supplier, Stock , Price, Manufacturer, [Description] FROM OPENR...
{ "language": "en", "url": "https://stackoverflow.com/questions/4656500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: package ‘RMySQL’ is available as a source package but not as a binary I am receiving the above error when I try to install this package. Reading this question install RMySQL for Mac I read the install guide. Here's what is said: During installation, RMySQL looks for the MySQL headers and libraries in the system dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/24229696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to chain api calls with AngularJS I'm new to angualrJS and web development in general. I have a controller named FavoritesCtrl that makes an api call and returns an object. My controller looks like this: controllers.controller('FavoritesCtrl', function($scope, $http) { $http.jsonp('https://api...=JSON_CALLBAC...
{ "language": "en", "url": "https://stackoverflow.com/questions/21035855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Log with Python logging in Robot Framework I use robot framework 3.0 under Python 2.7.8. Robot framework's documentation (http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#programmatic-logging-apis) states that In addition to the new public logging API, Robot Framework offers a built-in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/36739964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to detect if a JS variable is undefined? // mystring contains dynamic text. Sometimes can be // null var a = mystring.split(" "); var proc = a[0] + " " + a[1]; If a does not contain text, after split proc is undefined. If I try to assing its value to a textbox the result is "undefined": mytextbox.val(proc); S...
{ "language": "en", "url": "https://stackoverflow.com/questions/13630926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET application closes without error on using library methods I have a C++ DLL Library. I'm testing the DLL with a C# Project with NET Framework 4.0. In the C++ DLL I'm using some libraries, like POCO, Boost, ODBC, SQLite, SOCI... It was doing great until I decided to replace the SOCI interface with the POCO one to...
{ "language": "en", "url": "https://stackoverflow.com/questions/23114511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Code executes differently on Windows and Android I'm coding a simple game called Jotto. A player tries to guess a secret five letter word; each letter is unique. After each 5-letter guess word you're told how many letters in the guess are also in the secret word. It's my first attempt at cross-platform development w...
{ "language": "en", "url": "https://stackoverflow.com/questions/66649475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Knockout.js How should I add computed value to observaleArray? I need to add to observableArray computed values, my current code is look like this: self.prices = ko.observableArray(); ..... var pax = $("select#ticketsnumber option:selected").val(); var irt; if ($("input[name='isrt']").is(":c...
{ "language": "en", "url": "https://stackoverflow.com/questions/28690366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift code that will print a string of all the characters of a new word typed in a UITextView as they are being typed I need help with swift code or function that will run in the body of UITextView function textViewDidChange that will print a string of all the letters of a new Word as they are being typed in a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35947054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: AS3 Assign Class to XML Loaded element I need to load a set of images with from XML and assign Interactivity to them first I load the XML import flash.display.Loader; import flash.net.URLRequest; var loader:Loader = new URLLoader(); var request:URLRequest = new URLRequest("myXML.xml"); loader.load(...
{ "language": "en", "url": "https://stackoverflow.com/questions/1265361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Formatting CDATA string shows unexpected character I have this string entry: <string name="title_label">[<![CDATA[<b>Title</b>]]> %s</string> and I format it this way: String titleLabel = getString(R.string.title_label); Spanned title = Html.fromHtml(String.format(titleLabel, "My Title")); However, it shows: [Titl...
{ "language": "en", "url": "https://stackoverflow.com/questions/38716119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop Camera from rotating around a rotating parent I have a rolling marble and would like my camera to follow it. My problem is that my camera is also rotating around my object as it is rotating. Here's my code. -(void) setupCameraOnMarble:(SCNNode*)marble { [cameraNode removeFromParentNode]; [marble addCh...
{ "language": "en", "url": "https://stackoverflow.com/questions/45701159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stripe multiple subscriptions at checkout best method? I am using Stripe and have a site (node, express, react) where customers purchase subscriptions. They can purchase multiple subscriptions at a time and those subscriptions can have varying intervals. So, each subscription is created separately on the back end du...
{ "language": "en", "url": "https://stackoverflow.com/questions/66974896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use json response in wpf application My wpf application is communicating with php web api. First I post some data to web api and recieved json resonse. At server side php script just prepared an array and json_encode(arrayName)is sent to client. At my client side I am using following code using (WebResponse j...
{ "language": "en", "url": "https://stackoverflow.com/questions/29191934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass custom props to drawer screens in React Navigation 5? Here's my Drawer Navigation config: return ( <NavigationContainer theme={navigationTheme}> <Drawer.Navigator drawerContent={(props) => ( <DrawerContent {...props} /> )} > <Drawer.Screen name="Home" c...
{ "language": "en", "url": "https://stackoverflow.com/questions/62275750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setTimeout(fn,0) triggering before styles have been applied When I want to yield execution of my javascript and allow the browser to apply styles etc. before I continue, I tend to use the common technique of setTimeout with a delay of 0 to have a callback queued at the end of the event loop. However, I came across a...
{ "language": "en", "url": "https://stackoverflow.com/questions/42229156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I send data from a Component to another Component in Angular? I'm very new to Angular, and I'm really struggling to find a concise answer to this problem. I have a Form Component Here: (I'm excluding the directives and imports as they're not really relevant) export class JournalFormComponent implements OnInit...
{ "language": "en", "url": "https://stackoverflow.com/questions/63443573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is selected option selected if attribute is in DOM or not To create a Dual Listbox like Bootstraps I needed to remove the default gray color of selected option. The only way to remove this gray color was to change the selected state of the element to false. No other trick worked to remove the gray background color o...
{ "language": "en", "url": "https://stackoverflow.com/questions/40482300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate only continuous combinations of a list of numbers I have a list in python [1, 2, 3, 4, 5, 6]. I want to generate all possible combinations of length 2, 3, 4 and 5. I have used itertools.combinations to generate the combinations but it doesn't generate continuous combinations only. For example, length 2 comb...
{ "language": "en", "url": "https://stackoverflow.com/questions/53186152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to turn a Rails app with Devise into an OAuth provider? I have a Rails application with admin accounts using Devise for authentication. I am creating a second application and would like to authenticate using the first application instead of duplicating admin accounts in the second application. So my idea is to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/25878009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }