text
stringlengths
15
59.8k
meta
dict
Q: Procedure to perform a web search (Bing) in Office 2013 task pane app I am trying to make an office 2013 task pane app where it is required to make a web search and display the result in the task pane. Please explain the processes involved. There is not much given in MSDN. Thank You! A: http://technet.microsoft.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/20408398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If Route doesn't exist -> go to other route using its default action? So I'm having a little problem here with routing. There are two parts to this web application:   1. Brochure / Display Website   2. Internal Site / Client Application We wanted a way to release changes for the brochure without having to do a who...
{ "language": "en", "url": "https://stackoverflow.com/questions/36145574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the correct way to prevent reentrancy and ensure a lock is acquired for certain operations? I'm designing a base class that, when inherited, will provide business functionality against a context in a multithreaded environment. Each instance may have long-running initialization operations, so I want to make t...
{ "language": "en", "url": "https://stackoverflow.com/questions/19016595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: laravel image validation image intervention I have a file upload in my vue js component which sends base64 in server methods: { onFileChange(e) { console.log(e.target.files[0]); let fileReader = new FileReader(); fileReader.readAsDataURL(e.target.files[0]); fileReader.onload = (e)...
{ "language": "en", "url": "https://stackoverflow.com/questions/51758398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating a unique random non-key value in Entity Framework/SQL I have a booking application where a customer will create a reservation. I do not want them to have to create an account and log in, so they will modify/view their reservation using a Confirmation code (like the airlines use) and the last 4 of their cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/71245565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening PDF on React Native I tried to open a pdf file using react-native-pdf-view my code is : export default class PDFExample extends Component { constructor(props) { super(props); } render(){ return( <PDFView ref={(pdf)=>{this.pdfView = pdf;}} src={"./Tizi.pdf"} onLoadCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/52303207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google LineChart Html tag with html tooltip I'm using google line charts in my project and I've got a bit of a problem with customizing tooltips. Fiddle with this problem : http://jsfiddle.net/nq7sk6mq/7/ I want to use HTML tooltips and my chart settings are: if google google.load "visualization", "1.0", pack...
{ "language": "en", "url": "https://stackoverflow.com/questions/25660665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mocking AOP method implementation for unit tests I've a java application which has multiple modules - (GWT-)RPC services, perf-library, remote-client (All java code written/owned by my team). The perf-library contains Spring AOP aspects related code and it's primarily used to push intercepted method logs to a data s...
{ "language": "en", "url": "https://stackoverflow.com/questions/12385042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular Nested mat-menu expansion mat-menu gracefully handles expansion when opening near the bottom of a page (if too close to bottom of page, it will open up) but what if there is an expandable button within the mat-menu. Expansion will always open downwards and off the screen. A workaround seems to be to program...
{ "language": "en", "url": "https://stackoverflow.com/questions/52878275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java delete single file from GridFS Is there a way to delete a single file without the objedId in GridFS? I just found this on MongoDB: objectId fileId; //ObjectId of a file uploaded to GridFS gridFSBucket.delete(fileId); But I don't know how to query all the objectId's to do this. Thanks in advance for your help. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67257131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combine two different device capture frame into one frame and write a video I'm beginner in opencv but well versed in C#/C++. I have created a openCV console app to capture and write frames data to videos from multiple devices or RTSP streams which is working fine. I require to merge the output of two separate devic...
{ "language": "en", "url": "https://stackoverflow.com/questions/55137443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: supoprtedInterfaceOrientation caled every time a rotation occurs supportedInterfaceOrientation should be called only once when viewDidLoad, but in my case it is called every time the simulator rotates. I need only two orientations potrait and portrait upside down. when i rotate to upside down the supported interface...
{ "language": "en", "url": "https://stackoverflow.com/questions/14435651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML div with img in it displaying strangely On the website I'm working on (this), I have a div with an img in it. This is the html <div><overlay> <img class="img1" height="225" src="NYC/wtc1.JPG" width="225" /></overlay</div> <div><overlay> <img class="img2" height="225" src="NYC/wtcmem.jpg" width="225" /></overla...
{ "language": "en", "url": "https://stackoverflow.com/questions/17625960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: inflating class org.osmdroid.views.MapView cause crash I use eclipse as IDE to write a simple test program that put some TextView and Button on the screen and works fine. Then, I do... (1) set compiler compliance level to 15 (2) set ANDROID_SDK_PLATFORM to C:/ADT/sdk/platforms/android-15 (3)add these as external JAR...
{ "language": "en", "url": "https://stackoverflow.com/questions/24084459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: segmentation fault using pointers on array of strings hi there i have this test code written that produces a segmentation fault on third iteration of while... using a debugger i saw the value of tokens[count] and it is correct but in the last iteration there is a segmentation fault, str_split divide the string using...
{ "language": "en", "url": "https://stackoverflow.com/questions/27928166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Make VSCode apply syntax highlighting to .tsx files Trying to start a gatsby+react+typescript project and VSCode will only apply syntax highlighting to the HTML in my .tsx files. The typescript code remains a single color. How do I fix this? Note: I have no plugins installed at the moment and the highlighting works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58177640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android kotlin calling same api with different date params and inserting to room all together I have an api to return data based on from and to date params. The api is limited to return only 1 day data at a time. I need to fetch data for 7 days and insert it to room db. Fetching day by day and inserting to db is tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/72704775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check mulitple data in rows using javascript? I have check calculation in rows of data. Here is my row format. When I have select first row of "Purchase Document". It will automaticaly fill the value in its row fields. As per shown in image. Now In second row, when I select "Purchase Document" with same val...
{ "language": "en", "url": "https://stackoverflow.com/questions/22835898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Radio Button change event not working in chrome or safari I've got some radio buttons on a page and when Yes is selected, some other controls (dropdowns and textboxes) become visible. If No is selected, they become invisible again. This is working fine in FF & IE. It does work when I use the mouse with chrome, but w...
{ "language": "en", "url": "https://stackoverflow.com/questions/5090560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular 6 HttpClient set param date only if its not null I am trying to pass parameter to URL. For which I am using Angular HttpParams. How do I set date param only if date is not null or undefined? Code: let params = new HttpParams() .set('Id', Id) .set('name', name) if (startDate !== null) { params.set(...
{ "language": "en", "url": "https://stackoverflow.com/questions/52407951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Rails getting validation failed error, but no errors in ActiveRecord error model I am having a problem with validation errors when saving a model using save!. The ActiveRecord error model error messages are blank, so i dont know what errors are happening on a validation attempt. When I try errors.full_messages or er...
{ "language": "en", "url": "https://stackoverflow.com/questions/9007093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Shrink polygon to a specific area by offsetting I have a 2D polygon that I want to shrink by a specific offset (A) to match a certain area ratio (R) of the original polygon. Is there a formula or algorithm for such a problem? I am interested in a simple solution for a triangle/quad but also a solution for complex po...
{ "language": "en", "url": "https://stackoverflow.com/questions/20230481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Fill Datatable with Variable dont work. But if i put the exact same value to a php site and request it with ajax. It works.... Why? This is in the variable "test": {"data":[{"HistChar_ID":"4","Vorname":"Garnier","Nachname":"de Naplouse"},{"HistChar_ID":"2","Vorname":"Robert","Nachname":"de Sable"},{"HistChar_ID":"...
{ "language": "en", "url": "https://stackoverflow.com/questions/72559045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a CAAnimation effect like moon rotates around the earth and rotates by itself at the same time in IOS? I know it is simple to create the effect making the moon circling around the earth in IOS. Suppose the moon is a CALayer object, just change the anchorPoint of this object to the earth then it will an...
{ "language": "en", "url": "https://stackoverflow.com/questions/28399892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given this is my codes can anyone tell me what is wrong? $result ="SELECT * FROM report" ; if(mysqli_query($cons, $result)) { echo(" <div class='sc'> <tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/31511923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Restify & Bluebird - how to pass an error from a catch block to restify error handler? I am working on a node js server, and using bluebird for promise implementation. I understand how to use promises, but my problem is what to do with the error returned from a promise. I tried the simple solution - just trowing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/32175643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firebug freezes Firefox on showing errors from FirePHP I have problem with debugging one of my projects. Every notice/warning/error is caught by FirePHP, and set with headers to browser. I catch all those errors with enabled Firebug, and everything's showing right in console: One of function of FirePHP with Firebug...
{ "language": "en", "url": "https://stackoverflow.com/questions/28985429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error: useHref() may be used only in the context of a component. in register,js Good afternoon, I am creating an app in reactjs and all the routes work fine, only the register user gives the error Error: useHref() may be used only in the context of a component.I am using firebase for this, the login with google an...
{ "language": "en", "url": "https://stackoverflow.com/questions/72931914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XSLT replace an element that exists inside another element value I am new to XSLT (using XSLT v1.0) and I have the following input: <SUMMARY> <TITLE>Lorem ipsum dolor <QUOTE ID="replace with this string"/> sit vel eu. </TITLE> <P> Lorem ipsum dolor <QUOTE ID="replace with this string"/> sit vel eu. </P> </SUMMARY> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52223949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual C++, multiple for loops using same iterator name, visible outside of scope in debug mode I'm using Visual Studio Express 2013 and have multiple for loops where I use the same name for the iterator, like so: for (int i = 0; i < 10; i++) { // do something } .... for (int i = 0; i < 10; i++) { // do somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/23050912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to reach my main form controlls from my UserControl I have Balloon user control that opens in the tray when my application is minimyze. So i created simple Button on this Balloon: public partial class ApplicationBalloon : UserControl { private void btnStart_Click(object sender, RoutedEventArgs e) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33439262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add value between tags using XElement? I have looked a bunch of XML samples using XDocument and XElement but they all seem to have self closing tags like <To Name="John Smith"/>. I need to do the following: <To Type="C">John Smith</To> I thought the following would work and tried to look at the object model ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14483455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Error org.json.JSONException: Value Error of type java.lang.String cannot be converted to JSONObject I have a Android app about Public Transportation, and I have a PHP script that connects to mySQL database. This is the main.java package com.chera.trans; import com.chera.trans.R; import android.os.Bundle; impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/25653512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android-tab new contents while viewing it? Some apps have this feature, that when a new post is added while the app is in the foreground it shows this view: Can anybody offer an article or blog post to get this view with animation and all that? I can do it by myself, but I want it to look professional. Any advice w...
{ "language": "en", "url": "https://stackoverflow.com/questions/40684682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is setting Roles in JWT a best practice? I am considering to use JWT. In the jwt.io example I am seeing the following information in the payload data: "admin": true Admin can be considered as a Role, hence my question. Is setting the role in the token payload a habitual/good practice? Given that roles can be dynami...
{ "language": "en", "url": "https://stackoverflow.com/questions/47224931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: what is missing for DocumentNode function to show text in datagridview? What i´m trying to do is to use the documentnode method to find a specific table from the internet and put it into datagridview. My code can be seen below: ` List<string> list = new List<string>(); DataTable dt1 = new DataTable(); var table = d...
{ "language": "en", "url": "https://stackoverflow.com/questions/74656378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: javascript syntax for new objects and prototypes I'm femiliar with OOP from PHP / JAVA but i'm a newbie in JS prototype objects. My question is: I found that there are 4 ways (probably more) to instantiate a new object: 1. var d = Object.create(Object.prototype); 2. var d = {}; 3. var d = new Object(); 4. var d = f...
{ "language": "en", "url": "https://stackoverflow.com/questions/18695748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Align link to bottom of div and center it I'm trying to make a link stick to the bottom center of a div and have it be centered. So far I've come up with this: http://jsfiddle.net/r494Lx0r/2/ div.container { position: relative; height: 110px; width: 120px; border: dashed 1px red; } div.container div.text { positi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27198088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finding specific data in Oracle Tables I needed to find a value for a column in my oracle database but i don't know which table or column it's stored in How can I search for a specific or like %% data as I do in select * from SYS.dba_source is there a table like that Column Name ID Data Type Null? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10879483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Minizinc, how to create a map or a dictionary datastructure I have a simple question regarding the Minizinc's syntax. My input .dzn file contain a set of 2 dimentional arrays (approximately up to 30 arrays), declared as follows: rates_index_0 = array2d(1..3, 1..501, [ 15, 20, 23, .... rates_index_12 = array2d(1..3, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46262667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can users use their email accts to look for friends on my site? I'm working on a new social networking site and I want to give users a way to: 1) Automatically scan my site for people they already know (email/linkedin/facebook/etc) 2) Provide users with the option of inviting their friends to join the site It se...
{ "language": "en", "url": "https://stackoverflow.com/questions/6350536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tensorflow distributed inference I have a large model (GPT-J 6B) and two 16G GPUs (V100 with no NVLink). I would like to do inference (generation). GPT-J needs 24G memory, so I need to split the model across my two GPUs. For me, simplicity is much more important than maximizing utilization/throughput. What is the ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/73547018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error 'class HotelRoom' has no member named 'menu' even though it is there I am attempting to build a hotel reservation program in C++. however, I have an issue. I keep getting the above error message and I can't seem to find a fix. Please provide some assistance. Anything would be greatly appreciated. Below is wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/53376361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use a Variable in Jmeter Regex Extractor I am new to jMeter. I am recording a script for creating a shift. For every transaction New shift ID is generated. I have tried to extract it by using regx Exp extractor but not getting anything. Pls see below information. *Reference Name: strgenShiftId Regular Expres...
{ "language": "en", "url": "https://stackoverflow.com/questions/31664128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL - How to combine the column data into one row I am making an employee attendance record and I have trouble merging the raw data into time in and time out combination format. From the given "Raw Data" Table below I need to combine the time in and time out of the employee into one row like the "Merge Time in/o...
{ "language": "en", "url": "https://stackoverflow.com/questions/25383198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Having a developer-specific configuration for Apache Ivy I'm using Apache Ivy to manage dependencies in the project with several developers. They will share most of the Ivy configuration, but some pieces (like corporate proxy username and password) should be developer-specific. I've created a reference file for ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/2027967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find the string from string array in firestore I have a list of documents and each document has a field of a string array named "fav", it has more than 50k emails, there are almost 1000 documents and in each document's "fav" array has variable length including 50k, 20k,10, etc. I was fetching all documents F...
{ "language": "en", "url": "https://stackoverflow.com/questions/58162355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Rails using Websockets with Nginx and Unicorn? I am considering implementing chess (which needs websockets) with Rails, and in production deployment using Nginx as a reverse proxy to a bunch of Unicorn processes. In thinking about how to make that work led me to have the following questions: As far as I understand w...
{ "language": "en", "url": "https://stackoverflow.com/questions/14906400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: HTML & case sensitive HTML in general is case insensitive. However I`ve noticed some escape names are case sensitive. For example , &Aacute; and &aacute;. Is &amp; case sensitive regarding HTML standard? A: Yes, reserved entities in HTML are case sensitive. Browsers will be nice to you and accept whatever you give ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65741886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Finding the indexPath of a cell with a gesture recogniser in handler method I have a pan gesture recogniser on a UITableViewCell which is attached to a method called didPan(sender: UIPanGestureRecognizer). How can I use this method to determine which cell in a tableView this was activated from? A: A good way to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/34316447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Enable/Disable command buttons in CK Editor I am new to CK Editor. I have a created a plugin that shows a button on UI. I want to disable and enable based on some condition. So I am using the following code to enable var command = editorInstance.getCommand('myButton') command.enable() and to disable var command = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43362761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to migrate Oracle View to Teradata I am working on migration project of Oracle to Teradata. The tables have been migrated using datastage jobs. How do I migrate Oracle Views to Teradata? Direct script copying is not working due to SQL statements difference of both databases Please help? A: The DECODE() Oracle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10602085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to Entities - Subquery in the where statement This must be simple, but I've been searching for 2 hours, and can't find an answer. How do I write this in Linq to Entities: SELECT Reg4, Reg5, Reg6 FROM dbo.Table1 WHERE Reg1 = 15 AND Reg2 = ( SELECT MAX(Reg2) FROM dbo.Table2 WHERE Reg1 = 15); Is it possible to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/4694212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to store list of objects that have different properties in django db? It is straightforward to store in mysql data like [ { 'name': 'Object1', 'color': 'red', 'shape': 'ellipse' }, { 'name': 'Object2', 'color': 'green', 'shape': 'circle' } ] But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39991554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to install WSO2 Enterprise Mobility Manager Hi i am unable to install the WSO2 Enterprise mobility Manager platform , followed the installation provided in the website, java environment variable is set, but getting error as below [2014-05-02 11:27:41,150] ERROR {JAGGERY.config.app:js} - [2014-05-02 11:27:41,1...
{ "language": "en", "url": "https://stackoverflow.com/questions/23421772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to depict non-grid 3D data as heat map? I have 3 columns of numbers x, y, z, where x and y are coordinates and z is intencity. I would like to represent the data as heat map in gnuplot. A: You can set dgrid3d to fill in missing values: set dgrid3d splot 'input.txt' with pm3d
{ "language": "en", "url": "https://stackoverflow.com/questions/12777936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android onTouch Listener Background Color Change I'm using onTouchListener to change the background color when the user's finger is down and change back to default when the user's finger is up. The problem is that when the user's finger is down the background color changes but if the user doesn't takes the finger up...
{ "language": "en", "url": "https://stackoverflow.com/questions/15908274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Encrypting Signed Data I'm submitting a file with the sensitive data to a 3rd party, could anyone explain what is the point in signing it and encrypting at the same time? Does just encrypting not verify my identity (the 3rd party requested it to be signed and then encrypted)? A: You sign with your private key. Sign...
{ "language": "en", "url": "https://stackoverflow.com/questions/32221764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you create in Netbeans a new PHP project with source files located in local network? I'm trying to create a new PHP project in a situation where our client gave us only remote desktop connection to to their files. How does it work usually in Netbeans: To put it simple when a project is created with external ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21875211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to link 1st collection's item property with item from 2nd collection enter image description here Dim stations As New Collection Dim trains As New Collection For i = 1 To 60 Dim new_station As New station With new_station .id = S_statio...
{ "language": "en", "url": "https://stackoverflow.com/questions/36607544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 2D Platformer multiple classes without code duplication I'm working on a 2D platformer in c#, as most people are, but I have got a decent start to the project I have a class called Player, I then handle all collision for that player as well as the scrolling of the blocks in the background within the gamescreen class...
{ "language": "en", "url": "https://stackoverflow.com/questions/22871495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return blank or zero when 'On Error Resume Next' leaves previous value in variable? I have VBA code that gets the stock price in a loop. There are stock symbols not found in this API source. It will result to error for those stocks. I'm using On Error Resume Next so the VBA code will continue to the next symb...
{ "language": "en", "url": "https://stackoverflow.com/questions/59550283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: convert Cartesian width and height to Isometric I'm trying to create an Isometric game in the SDL graphics library. When you render in SDL you require a source rectangle and a destination rectangle. The source rectangle is the portion of the texture you have loaded that you wish to render and the destination rectan...
{ "language": "en", "url": "https://stackoverflow.com/questions/31577053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic prop value in react? I want a dynamic prop value for react. I already have a list of Fruits, but my prop value should be Fruits[0] + 'prop' For example: ApplesProp index.js const ApplesProp = { Name: "Green", Age: 34 } const Fruits = ["Apples", "Pears", "Oranges"] <App prop={dynamic-fruit+'Prop'} /> Trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/70692145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Items not being found in search box even though they exist So basically I have a search box setup in Sheet 2 where I use a barcode scanner to scan the item IDs and when I hit search it populates the information about that item that is found in Sheet 1. I have 2 types of item IDs in the system, one which consists of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45359543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write If statement and For loop programatically with Robot Framework API I have been exploring Robot framework and came across this example which I am trying to use. This example works great except I wanted to try adding a for loop and if statement. I haven't even began the if statement yet as I am stuck with...
{ "language": "en", "url": "https://stackoverflow.com/questions/66366453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get total from table input as grand total in jquery I have a table that makes automatically 2 calculations: * *Calculation of numbers of days after the selection of date started and date end from two input date field with calendar, result is stored is field (days) *Multiplication of 3 fields (horse* days* price)...
{ "language": "en", "url": "https://stackoverflow.com/questions/40952242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bad performance of MobileVLCKit? I have i problem. I builded MobileVLCKit and use in my project. All works, but video playing has bad performance (lagging). Where is the problem? Console says only: creating player instance using shared library shader program 1: WARNING: Output of vertex shader 'TexCoord1' not read b...
{ "language": "en", "url": "https://stackoverflow.com/questions/32796990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collapsing multiple navbar bootstrap I have followed this example http://jsfiddle.net/rDN3P/98/ to create a collapsing navbar. It is working fine as long as I have one level in my menu. The collapsing seems not to work if I have multiple level of menu. In this example, if you open the collapsible menu and click on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35889153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the CURRENT official/recommended MIME type for Javascript? I need to know what could be the correct current/future proof Javascript MIME type. References RFC 4329- April 2006, seems to say text/javascript is obsolete and recommends to use application/javascript : Use of the "text" top-level type for this ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/56868320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unable to retrieve HTML form data running on Localhost:port python I am running a simple form input on my localhost:port using socket programming. Currently, I have a form running on my chrome, just a text box on localhost:2333, I am able to see the text box input on my wireshark like this The input message I typed...
{ "language": "en", "url": "https://stackoverflow.com/questions/66950470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using WHERE with unknown amount of OR I have a table with some integer column A. I need to select rows where A equals 1 or 2 or 4 (for example), but i don't know how many values i need to compare. I have an array of values as input with unknown amount of values. I tried this: myTable.Where(x=> myArray.Contains(x.A))...
{ "language": "en", "url": "https://stackoverflow.com/questions/67196421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance groupBy I have a code similar to this: df = transformation(df) df = df.groupBy("f1").agg(agg1, agg2, agg3) df.collect() The aggregation functions do not contain any window (we could assume they are the F.sumof three different fields). Is there any case in which the operations in the method transformatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/61872435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ERROR: aggregate function calls cannot be nested I am trying to include one more column in my following query to show the average of two columns within. I am new to SQL and PostgreSQL, but referring the following link http://www.postgresql.org/docs/9.3/interactive/index.html select ad.col1, ad.col2, md.col3, ad.col...
{ "language": "en", "url": "https://stackoverflow.com/questions/21250440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Observing Task exceptions within a ContinueWith There are various ways in which to observe exceptions thrown within tasks. One of them is in a ContinueWith with OnlyOnFaulted: var task = Task.Factory.StartNew(() => { // Throws an exception // (possibly from within another task spawned from within this task...
{ "language": "en", "url": "https://stackoverflow.com/questions/11743756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Mongodb findOne - return value I need to fetch id of user from collection 'users' by calling a function and return it's value. fetchId = (name) => { User.findOne({name: name}, (err, user) => { return user._id; }); }; But this implementation returns null. What is the way to fix it? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/53287110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Overwrite data frame value I have two data frame df and ddff df data frame have 3 row and 5 columns import pandas as pd import numpy as np df = pd.DataFrame(np.array([[0,1,0,0,1], [1,0,0,1,0], [0,1,1,0,0]])) df 0 1 2 3 4 0 0 1 0 0 1 1 1 0 0 1 0 2 0 1 1 0 0 ddff data f...
{ "language": "en", "url": "https://stackoverflow.com/questions/70285768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Azure Functions functionAppScaleLimit of 1 isn't working as expected to limit concurrency on Queue Trigger I have a Function App with multiple queue triggers set up and am trying to limit concurrency by setting functionAppScaleLimit to 1. After testing this, I'm getting timeouts because two queue triggers will execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/64533529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to populate large file list in c# DataGridView I have a program which fills a DGV with file details such as name, date etc, and also a few extra custom columns that give info about the files. This works fine until there is a huge amount of files in which case the DGV seems to get slower as it populates. Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/12216695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding parameters of a system of non-linear equations in R using BB package I am trying to solve a system of equation to find parameters (x[1] and x[2]) using BB package but R outputs Unsuccessful convergence precisely it is: Iteration: 0 ||F(x0)||: 469.829 iteration: 10 ||F(xn)|| = 0.5105992 iteration: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51431652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why won't the browser cache my http response? I have a REST api developed with django-tastypie. I have a couple of resources that are quite heavy but are not mutable, so I would like the browser to cache them to avoid unnecesary requests. I've set the HTTP Expire header to a date far two years in the future, this is...
{ "language": "en", "url": "https://stackoverflow.com/questions/10623654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is it possible to embed a blogger comment? I have tow questions * *is it possible to embed a blogger comment ? *how can I call blogger comments automatically . I wont to make like this code : <script src='www.exemple.com/feeds/IDscomments/comments/default?alt=json&amp;callback=showtopcomment&amp;max-results...
{ "language": "en", "url": "https://stackoverflow.com/questions/33679648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: scalacheck: lift custom random generator Is it possible to lift custom generating function into Gen? For example, generating ObjectIds for mongo. import org.mongodb.scala.bson.ObjectId import org.scalacheck.Gen val genObjectId: Gen[ObjectId] = Gen.lift(() => new ObjectId) The only possible solution I've found is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/66750158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Color Changing on click tracker I added a color on the first click and disabled the color on the second click. What I want to be able to do is when the color is already changed I would like to be able to change the color and add that color like as though it is on its first click. For example, I already clicked on a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48216656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular ui Tour - not scrolling I just implemented Angular Ui Tour (https://github.com/benmarch/angular-ui-tour) on my site, everything seems to work, except scrolling to the opened dialog. I created and started the tour like that: uiTourService.createDetachedTour('myTour'); this._uiTourService.getTourByName('myTour...
{ "language": "en", "url": "https://stackoverflow.com/questions/38054430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linker errors after upgrade to xcode 3.2.3 for iphone app I've just upgraded to XCODE 3.2.3 and upgraded my base sdk from 3.0 to 3.2 iphone sdk. After doing this I started getting a bunch of link errors with barely any info, here's what I got: ".objc_class_name_CATransition", referenced from: ".objc_class_name_NSOb...
{ "language": "en", "url": "https://stackoverflow.com/questions/3090889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why this 10 threads always output the same thread name? I ran this code NUM = 0 def count(): global NUM NUM += 1 time.sleep(1) print(t.getName()+":"+"NUM is "+str(NUM)) for i in range(10): t = threading.Thread(target=count) t.start() The output is Thread-10:NUM is 10 Thread-10:NUM is 10 Thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/44641733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Printing numbers I am writing a program to display as below when n=3 1 2 3 7 8 9 4 5 6 when n=5 1 2 3 4 5 11 12 13 14 15 21 22 23 24 25 16 17 18 19 20 6 7 8 9 10 my program is #include<stdio.h> #include<conio.h> int main() { int n=5,r=1,c=1,i=1,mid=0; if(n%2==0) mid=(n/2); else mid=(n/2)+...
{ "language": "en", "url": "https://stackoverflow.com/questions/32525493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Return String value from Activity to a Fragment I'm trying to figure out how to get the value from a method in the Activity class into the Fragment of that Activity. I have set up three files: AsyncTaskActivity.java, EventsList.java, and ListFragment.java. AsyncTaskActivity.java has the method getOtakuEvents() that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10036694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a real purchase from my webapp from localhost:4200? I am using stripe checkout in an angular app. When I make a purchase from my app running in localhost using my stripe test account, everything works fine. When I switch to a production client token, my request is denied by stripe. The message says th...
{ "language": "en", "url": "https://stackoverflow.com/questions/60662685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Timer in winform with an iteration foreach (KeyValuePair<int, int[]> item in replay)// count should be more than 2 { makeSelfMoves = replay[item.Key]; codeFile.ExecuteAll(makeSelfMoves[0], makeSelfMoves[1], makeSelfMoves[2], makeSelfMoves[3]); PrintPieces...
{ "language": "en", "url": "https://stackoverflow.com/questions/5375883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to predict the labels for the test set when using a custom Iterator in MXnet? I have a big dataset (around 20GB for training and 2GB for testing) and I want to use MXnet and R. Due to lack of memory, I search for an iterator to load the training and test set by a custom iterator and I found this solution. Now, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43684975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble with WebClient and Thread management I've been scratching my hair out trying to figure out this problem. I'm using a WebClient control that reads in a dynamic URL. There is data that I am trying to extract that isn't in the HTML source when retrieved from the Server but is rendered later with Javascript/AJAX...
{ "language": "en", "url": "https://stackoverflow.com/questions/31006602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto cell update with use of intersect So basically I have a column in my spreadsheet that tracks the status of bearing conditions. 800+ bearings spread across 8 or so sheets (different areas of a facility) and will continue to increase in the future. There is a corresponding column that tracks the date that the sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/74961358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get image Height and Width I am displaying an image which if small, will fill the size of the control area. I want to display the actual original width and height of the image. How can I do that? A: ImageSource.Width and ImageSource.Height A: You actually kind of answered your own question. There are two depende...
{ "language": "en", "url": "https://stackoverflow.com/questions/1261237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why my app get different expiration time of Facebook access token? I have a web application, which needs user's Facebook permissions, and perform some actions in the background. For most users, this app can get an access token with 2 months expiration time through oAuth process. But today I found it gets only one da...
{ "language": "en", "url": "https://stackoverflow.com/questions/10632494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Html wrapper issue My Flex application is built using ant. The html wrapper task is as follows: <target name="wrapper"> <html-wrapper title="{$title}" file="login.htm" height="300" width="400" application="app" swf="Main.swf" version-major="9" vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/4042750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uploading in React and Redux I'm uploading multiples images and I wanted to display the correct percentage "50%". However I'm calling the API one by one. Meaning I upload the image one by one. The problem is the percentage keeps getting back and forth like 0 - 50%, then going back again to 0 and so on... The reason ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71507806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Enable only dates that are in the array I have just started using jQuery UI's datepicker and I am looking for a way to enable dates that are only in the data array... I tried everything but it doesn't seem to disable any dates. I checked data array and it display everything in the following format if I use console.l...
{ "language": "en", "url": "https://stackoverflow.com/questions/43346949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get (this) element's parent index and pass it as a value? In the following example,how would i get the parent <ol> index inside the wrapper div and pass it as a value in the li's innerText ? tried something like $(this).closest("ol").index() but did'nt work $("li").text("this ol's index is " + $(this).close...
{ "language": "en", "url": "https://stackoverflow.com/questions/66060680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }