text
stringlengths
15
59.8k
meta
dict
Q: Java: Array with loop(matches) I need to find the first match in this task. Probably i am just missing something. As you can see, i found the last match.I am not copied the first half of the code. Thank you. for (int i = 0; i <= n - 1; i++) { if (iv[i] == a) { hely = i; } } if (hely == -1) { Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/35957900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stop/invalidate NStimer I am using [NSTimer scheduledTimerWithTimeInterval:0.1f target:self selector:@selector(update) userInfo:nil repeats:YES]; I want to stop calling this tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/15170518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Spring Security Login Redirects to /j_spring_security_check Without Authenticating I am currently trying to get a simple Spring security login to work. I am using mongodb and can get users to be saved to the database (can query them from mongo shell). However, when I enter the credentials into the login form, I get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24535164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2008 The transaction ended in the trigger. The batch has been aborted I got this stored procedure: CREATE PROCEDURE getManagerSalary ( @Emp_id INT, @ManagerSalary MONEY OUTPUT ) AS SELECT @ManagerSalary = es.Salary FROM [outdoorparadise].[dbo].[Employee] AS e INNER JOIN [outdoorparadise].[...
{ "language": "en", "url": "https://stackoverflow.com/questions/6360618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java AES decryption error, encryption is working fine I have a question about using Decrypt in AES. I wrote the same program that encrypts the text. Here is my Decrypt class. (I use a 16 byte key). public static byte[] decryptAES(String message) throws Exception { String secretKey = "JohnIsAwesome!1!"; Secret...
{ "language": "en", "url": "https://stackoverflow.com/questions/19286076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mocha: how do I use the assert.reject in typescript with promise in params? how do I use the assert.reject in typescript with promise in params? here is my code: import { assert } from "chai"; import { suite, test, timeout, slow } from "mocha-typescript"; import "mocha"; import { car } from "./Car"; // module that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56084545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting an ObservableCollection after editing a property of an item I'm trying to bind an ObservableCollection<T> to a DataGrid in WPF. Below the DataGrid, there are fields to edit the currently selected item from the DataGridlike so: So the generic T of the ObservableCollection<T> has the following properties: - T...
{ "language": "en", "url": "https://stackoverflow.com/questions/52423445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When does a double become NaN? I am trying to understand which circumstances can cause a double to become NaN. For instance, 0/0 is nan. This is also stated in the official Documentation. https://learn.microsoft.com/en-us/dotnet/api/system.double.nan?view=net-6.0 However, my debug code indicates that the division is...
{ "language": "en", "url": "https://stackoverflow.com/questions/73662582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reduce, reduceByKey, reduceGroups in Spark or Flink reduce: function takes accumulated value and next value to find some aggregation. reduceByKey: is also the same operation with specified key. reduceGroups: is apply specified operation to the grouped data. I don't know how memory managed for these operations. Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/58154979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error making/compiling objective C file Today I had my first lesson in Objective_C, it was about how to create "HELLO WORLD". After I downloaded the compiler and wrote the program I had to run it through the "shell" ,as stated in the tutorial, using the command "make" but i receive "No target specified and no makefi...
{ "language": "en", "url": "https://stackoverflow.com/questions/23462065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Putting Submit button at the bottom of the form I want the submit button to be at the bottom of the form. I have tried using <div>, <div float="left">, <div float="right">, <br> and <span>. So far the only solution I have come up with is to repeat <br> multiple times which is a messy solution and one that is only c...
{ "language": "en", "url": "https://stackoverflow.com/questions/62354598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: timestamp in milliseconds and date range - elasticsearch query string I have a timstamp in milliseconds, like 1645825932144 I'd like to make a date range query with elastic search query string for being able to get all records whom timestamp is in the last 24h: timestamp:[now-24h TO now] This does not work as timest...
{ "language": "en", "url": "https://stackoverflow.com/questions/71500880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to integrate firebase/angularfire with Nx I am try to use firebase (angularfire) with Angular/Nx. I found the plugin @nxtend/firebase. https://nxtend.dev/docs/firebase/getting-started/ When trying to add it via ng add @nxtend/firebase I get the following error: An unhandled exception occurred: Schematic "ng-add"...
{ "language": "en", "url": "https://stackoverflow.com/questions/69172110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: pyspark -- an error appears only in IPython, but not in vanila python If I start pyspark by typing /usr/bin/pyspark in the console, the following sample code runs without any error. However, if I use it with IPython, either by invoking $IPYTHON_OPTS="notebook" /usr/bin/pyspark # notebook or by $IPYTHON=1 /usr/bin...
{ "language": "en", "url": "https://stackoverflow.com/questions/32889120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unable to click on a link inside textview message on android mobile app-Appium Anyone help on this.... code I want to access the hyperlink within my text as depicted in the pic : Notes: I tried directly clicking in text by using id but didnt worked. I tried using scrollTo() but still it didnt worked. I tried wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/35482941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using ViewFlipper with onclick to switch views I'm using ViewFLipper with Random.nextInt(). to change layouts onClick (Button). Now I have 3 xml layouts. 1_view.xml 2_view.xml 3_view.xml. Starting from 1_view.xml I have a button there. When button clicked I should get a random layout. it works. But the problem is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/11442287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Searching in couchdb or do river thru an elastic search I understand we create views on couchdb and then we can search. Another interesting approach is to connect couchdb with elasticsearch thru river and search in elasticsearch. I have two questions: * *in terms of disk space usage, will elasticsearch be more ef...
{ "language": "en", "url": "https://stackoverflow.com/questions/13025065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Banner overlay a html5 video and something happen when click on play i'm searching for a long time a solution for my necessities but i can't find anything help me. Well, i have a html5 player with a video (with exception, if not support, use flash) i wanna insert a banner into this video at a certain time and for a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40343391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Thin Controllers in Laravel 4 I am trying to work out the 'best' way of structuring my controllers/models in a new Laravel 4 app. Obviously I want to keep the controllers thin and lightweight. So I want to work with Repos/Services to separate things, however I don't really know how to implement this in Laravel 4. La...
{ "language": "en", "url": "https://stackoverflow.com/questions/14645929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Table export jquery - display issue I have a table with a Header Row and a Sub-header row. The Header row has colspan of 3 for most cells. When exporting to Excel, I cannot get this Header Row to: * *Show as merged cell. *Leave blank spaces if it cannot merge. As a result the Header row is shorter than the sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/47173846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing color of HTML element using radio button I have 10 groups of radio button with two options, each group separated by a <div>. <div id = "radio1"> <p>Do you like to walk?</p> <input type="radio" value="a" name="radgrp1"/> Yes <br /> <input type="radio" value="b" name="radgrp1"/> No <br /> </div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20040731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tabs in the Pyqt4 Which command to use to "break" a row of tabs? I would like to have, for example, 3 tabs in one row and 3 tabs just below it. The skeleton I have referenced as tabs is: # layout tab tabs = qg.QTabWidget() # Create tabs tab1 = qg.QWidget() tab2 = qg.QWidget() tab3 = qg.QWidget() tab4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52171529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two Layouts for row in ListView I have two layouts that are used according to product availability (available and missing) in stock. I tried to use them but without success, so I created a standard layout and change the Shape that contains the settings for each case. This is the best way to do? How can I use both in...
{ "language": "en", "url": "https://stackoverflow.com/questions/26935758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SignalR in windows forms SignalR is very interesting and impressive in real time web applications. Now I am doing a simple chat applciation using windows forms. Whenever, I use ".wait()", it threw an error 'one or more errors' and while invoke the message from text box, there is an error 'start must be call before...
{ "language": "en", "url": "https://stackoverflow.com/questions/13641928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to translate shutter speed values into usable data? I'm gathering light statistics of EXIF data for a large collection of photos and I'm trying to find the simplest way (i.e. performance doesn't matter) of translating Exposure Time values to/from usable data. There is (as far as I can find) no standard for what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4197206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Filter list of old bookmark URLs to exclude websites no longer in service using Vim I'm trying to learn some more about Vim and the Linux command line; the project I'm working on is: Trying to convert a browser's export of bookmarks.html into a plain text list of URLs that still work. * *First, I used lynx -dump ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75067844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rebase from commit I have a framework that I coded, it's into a Github repository, as the master branch. Into that branch are only the core files of the framework, so I named it the core branch. Now into other branches, I list projects that use said core framework — I did this because I though working with branches ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10693644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: API for google apis console? Is there any way how to access https://code.google.com/apis/console with any kind of api? I need to access it with python and add subdomains to oauth2 callbacks dynamically, thanks. A: No, there's no API to programmatically configure projects in the APIs Console.
{ "language": "en", "url": "https://stackoverflow.com/questions/12121555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenAL Memory not release in iOS I used OpenAL to play sounds ,I used alGetError(); check every OpenAL functions , no errors ,after finished used OpenAL I release the buffer、source 、 context 、 OpenAL device I used Instrument to check the memory used , there still some memory cannot be release // relese source buffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/73033225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't customize bootstraps tab's border-top - have blank space with 100% width in absolute position Can't customize bootstrap's tabs border-top - have blank space with 100% width in absolute position after the line. http://jsfiddle.net/Vimpil/0mmv73oh/ li.active:after { position: absolute; width: 97%; pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/39364561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error at backbone model fetch to slim framework I'm trying to get a simple app working. It uses backbone, the slim framework and cordova. For now, all i'm trying to do is fetch user models from a MySQL database. Client side code looks like: // Cordova is ready function onDeviceReady() { // This little code snipp...
{ "language": "en", "url": "https://stackoverflow.com/questions/24128323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turing a monolithic application into a Microservice based architecture and keeping the GIT history I'm planning to split a monolithic application into a micro service based architecture, but I want to keep the GIT history. The monolit should be split into three micro services. My first approach would be, copying th...
{ "language": "en", "url": "https://stackoverflow.com/questions/43515765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SignalR Hub hosted in azure misses to send message to few connections - AspNetCore.SignalR I am using Microsoft.AspNetCore.SignalR to broadcast a message to all connected clients. The Hub is hosted in Azure as App Service. I am able to see the connected client's Connection IDs by inserting them to a table in DB. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/52369272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Graph for URLs - Getting the number of shares for a group of pages How can we know the sum of all Facebook shares for all URLs that start with: http://www.guardian.co.uk/artanddesign/ There's an API method for a specific URL that is: https://graph.facebook.com/?ids=http://www.guardian.co.uk/artanddesign/201...
{ "language": "en", "url": "https://stackoverflow.com/questions/9354003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cannot run the cardboard demo on iOS device I have done everything google developer website told,but the problem is Xcode still has some problems when compiling the demo project. The problem is:ld: /Users/Day1/Desktop/temp files/New Unity Project 3/cardboarddeomsave2/Libraries/Plugins/iOS/libvrunity.a(unity-6C9520...
{ "language": "en", "url": "https://stackoverflow.com/questions/32393691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WHat is the use of @Valid when @NonNull does the job for us? Code in controller - @PostMapping("/employees") public Employee saveEmployee(@Valid @RequestBody Employee employee) { return employeeService.saveEmployee(employee); } Entity Object - @NotNull(message = "Department must not be null") @Colum...
{ "language": "en", "url": "https://stackoverflow.com/questions/70369960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LSTM Text Generation Applied on a Time Series with Keras I am currently working on time series prediction. LSTM for Regression with Time Steps subsection in the link gets me going pretty well. However, I want to predict into the further future, not only one-step ahead (i.e. predict every step into the future up to 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/42818068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using ostream overloading on pointers to objects So, I have a struct Bike, which looks like this struct Bike { std::string brand; std::string model; bool is_reserved; friend std::ostream& operator<<(std::ostream out, const Bike& b); }; std::ostream& operator<<(std::ostream out, const Bike& b) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37586337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why can I retrieve environment variable in one part of my code, but not another? I've stored an API token as an environment variable in my wsgi file. I'm able to retrieve it in one instance in my Django app, but not another. I'm able to use the token successfully during a save_model operation in my admin. When I use...
{ "language": "en", "url": "https://stackoverflow.com/questions/58672512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: junk after document element Firefox Error Loading Content With JQuery Get I have a page (which is unfortunately behind a login system), which basically has a nav bar down the left of a list of articles, and when you click on an article, it loads the content from a .inc file stored on the server, using a provided fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/34201654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can't get image from camera with intent chooser on 4.2.2 AVD I'm working on a part of my application that allows a user to select an image either from camera or from gallery, using an Intent chooser. It's working fine on my 2.2.1 android phone, but when i compile it on a 4.2.2 AVD it returns a null pointer error wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/16381616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In AVD emulator how to see sdcard folder and install an APK to the AVD? I have created an Android emulator (Android Virtual Device), but I am unable to find out the SD card I have built during creation of this. How can I find the SD card and its content and also how to install APK files to the AVD? A: These days th...
{ "language": "en", "url": "https://stackoverflow.com/questions/10680992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Saving variables in swing Text field I know how to make a text field but I have no idea how to take the info inputted un the text field and save it into a variable. also be able to save only after pressing enter. import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.Action...
{ "language": "en", "url": "https://stackoverflow.com/questions/70822819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Allow others to develop plugins for my app I'm developing a home screen replacement for Android with search functionality in the app drawer. I not only want to allow (not force) users to search for installed apps, but also other content like Stack Overflow, Wikipedia or their local files. Currently I'm developing th...
{ "language": "en", "url": "https://stackoverflow.com/questions/26977827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Play is showing wrong API level After uploading my APK in Google Play it shows in APK details : API levels : 14-17 and publicly showing "4.0 and up" in play store. Although my previous version has API levels 14+ but i changed my app and set following minSDK and targetSDK: <uses-sdk android:minSdkVer...
{ "language": "en", "url": "https://stackoverflow.com/questions/17501745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: D8: Program type already present: com.MyCompany.Game.BuildConfig I get this error after i add GoogleMobileAds plugin into my project. I have shared codes of AndroidManifest.xml of GoogleMobileAds plugin. Can anyone please help ? (UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Module...
{ "language": "en", "url": "https://stackoverflow.com/questions/59334839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: For Azure Data Factories is there a way to 'Validate all' using powershell rather than the GUI? * *A working Azure Data Factory (ADF) exists that contains pipelines with activities that are dependent on database tables *The definition of a database table changes *The next time the pipeline runs it fails *Of cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/56160306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to delete a saved project in Advanced REST client standalone app? I'm trying to delete unused projects in ARC as they are stacking up. I couldn't find any setting related to this. I found deleting an API call in ARC standalone app(how to delete a saved request in chrome's arc (Advanced REST Client) extension?) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56346295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open specific web browsers using hyperlinks? I have a simple app which contains a link, I want on mobile apps eg LinkedIn people to click this link and open it in a browser eg safari I tried this <a href="safari-https://meed.audiencevideo.com">May open on Safari</a>' When I click this link it opens in a n...
{ "language": "en", "url": "https://stackoverflow.com/questions/58221788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django: How to show the updated information on the page without reloading I am working in Djnago and I want to update the information without reloading the page. At first, I have used Ajax for post method so that the page should not reload after submitting the form, and it is working properly. Then I used Ajax for g...
{ "language": "en", "url": "https://stackoverflow.com/questions/68209153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bash running python inline in shell script still not working I am on Windows and using GitBash to run shell scripts in bash that run python scripts. I'm trying to run python inline in a bash shell script using the answer from How to execute Python inline from a bash shell. I'm using a specific python environment, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/73573871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code I have written for Burger, Coca and Salad price calculation doesn't work I have written a code to calculate Burger, Coca and Salad price. The code should return a number (or a factor) based on the number or each ordered item. I can't figure out which part of the code is not right. it doesn't work when I change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45205033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare integers by using for loop I'm python newbie and got a problem while doing some practices. Below is the code that I've got so far: def gt(nums, n): for c in nums: if n < c: return True elif c < n: return False else: break With above code, it d...
{ "language": "en", "url": "https://stackoverflow.com/questions/12026747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I give an interval for a react application I am using react with antd framework. I have created a form and handling the submit: My forms.js: import React from 'react'; import { Form, Input, Button, notification } from 'antd'; import axios from 'axios'; class CustomForm extends React.Component { handleF...
{ "language": "en", "url": "https://stackoverflow.com/questions/63487401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: There is any way to encapsulate a SOAP object using WebClient framework? <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:Security xmlns:ns1="http://docs.oas...
{ "language": "en", "url": "https://stackoverflow.com/questions/68275855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get value of INT for a "STRING" variable I need output like 0 - os.O_APPEND - 1024 1 - os.O_CREATE - 64 2 - os.O_EXCL - 128 3 - os.O_RDONLY - 0 4 - os.O_RDWR - 2 5 - os.O_SYNC - 1052672 6 - os.O_TRUNC - 512 7 - os.O_WRONLY - 1 I am able to to do half of it with func main() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56619323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript: shorthand for conditionally adding something to an array I am writing a Mocha test for a server at work. I get two potential phone numbers for a customer, at least one of which will be defined. var homePhone = result.homePhone; var altPhone = result.altPhone; I want to use underscore's _.sample ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32215178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Consul KV data store http api write acquire lock and release session I'm using this command to store key value using session lock in Consul data store. curl -X PUT -d 300 http://10.0.0.10:8500/v1/kv/my-key-value?acquire=$session How can I release the lock acquired and can I do so in the same command line? A: consu...
{ "language": "en", "url": "https://stackoverflow.com/questions/53599239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Style Listviews Selector.SelectedItem I have ListView with SelectionMode=extended and style for ListViewItem thus: MainWindow.xaml: <Window x:Class="ListViewSelection.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4825418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert HTML code from page source to regular page source - PHP I have a web page, that include another web page source. It looks like <html> .... <div id="content"> {"note":"\n<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<!--[if IE 9]>\n\t\t\t<script src=\"\/js\/PIE\/PIE_IE9.js\"><\/script>\n\t\t\t<link rel=\"stylesheet\...
{ "language": "en", "url": "https://stackoverflow.com/questions/21981293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Could not find a valid gem install activerecord-sqlite3-adapter I'm a beginner to Ruby. I follow the steps on http://rubyonrails.org/download and installed Ruby on rails and created a project called "Blog" by following the youtube tutorial. http://www.youtube.com/watch?v=UQ8_VOGj5H8 But whenever I used the command ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16512908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: From text to formula I wan't to create a formula as a textstring from dynamically updated cells with a content of references to ranges in different sheets. This textstring needs then to be converted into a formula in another sheet. I guess I would be able to use the Evaluate function in excel. But in google spreadsh...
{ "language": "en", "url": "https://stackoverflow.com/questions/54731819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MSVC 2008 Immediate Window nonsense and some code confusion I've been fooling with the MSVC 2008 immediate window for the last few hours and I'm flabbergasted with both myself and Microsoft... It probably doesn't help that I stumbled on this mystery at bedtime and it's now 6 hours later. :) Please see the following...
{ "language": "en", "url": "https://stackoverflow.com/questions/4806567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: %s not working properly with my return value, in C As the title says %s is not working properly This is for a code wars so %s needs to be able to work with the array to pass the sample test cases; Cannot change function declaration of playPass. Using Ascii table. Also the for loop to print in main() works and give...
{ "language": "en", "url": "https://stackoverflow.com/questions/58926774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery dynamic created input sum and subtract on select option i'm working with jquery and need help to calculate the values of input depended on select option inserted dynamically. i want if select value is debit it will subtract from selected credit value and difference show in id diff as i inserted more ows all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19155632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to enable multiple Server.log(s) in Azerothcore I want to enable multiple Server.log so I can see what happened with the server before it restarted. What I mean is: saving separate Server.log files every time the server restarts, instead of rewriting the same file. A: The solution is enabling LogTimestamp in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/56612159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need a unity3d swarm generator script I'm trying to make a simple game where lots of flying and walking insects attack a player, and he has to shoot like mad to stay alive. I want them to attack together in varying attack patterns as group, like a swarm of bees, or like the way jet fighters attack in formation. Does...
{ "language": "en", "url": "https://stackoverflow.com/questions/35466046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make site show always in Portrait orientation? I'm doing a mobile site, and i need it to show screen as it always was in portrait orientation. Like Instagram app. works. How could i do this with codes ? if (window.orientation === 90 || window.orientation === -90) { window.orientation=0; } A: Not a good i...
{ "language": "en", "url": "https://stackoverflow.com/questions/24720583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LightInject Registration of Generic Query Handler I am pretty new to the CQRS pattern and am having issues tying all of this together with my dependency injection container of choice.(LightInject) What I have is a generic query object public interface IQuery<TResult> { } which is implemented by the GenericQuery pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/29977733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to connect to db using jndi and only through xml files not through InitialContext Please guide me on this ?? As I have already worked on private void initializeDataSource() throws SystemException { // set up the parameters for the data source to be used by the // connection factory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45504615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get previous year start month/date and end month/date How can i get the previous year start date/month and end date/month Below is the code, i have tried, but its not working... var lastyear = new Date(new Date().getFullYear(), 0, 1); lastyear.setFullYear(lastyear.getFullYear() - 1); var start = (new Date(lastyear, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39298443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google drive spreadsheet and calendar invite guest Okay, first of all, what I'm trying to do is updating Google sheet and calendar simultaneously. So, let say if there's an update to your spreadsheet there will also be an update to the calendar. However, here's all the things that I failed to do. * *If there's ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/29936870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending emails jsp Glassfish What I'm trying to do is to send emails to clients via Gmail automatically as a reminder in a specific time. So I found a tutorial on YouTube: https://www.youtube.com/watch?v=gy2eEZhLihk, I made the same thing, same code but I didn't work. Here is my code, I'm using eclipse and Glassfish...
{ "language": "en", "url": "https://stackoverflow.com/questions/31985526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading many images simultaneously causes Activity/Fragment to lag I'm new to developping android TV applications. I am building a quizz game which needs a lot of images, videos, mp3 and gifs to show up simultaneously at a given time depending on the business logic of the game. I am using: * *glide to show images ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66579264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jackson Serialise a Scala Set I have a question related to fasterxml jackson in serialising a scala class Genre with a Set as one of the fields Set[Type] where Type is a case class with single param value class Type(val value: String) extends AnyVal case class Genre(name: String, types: Set[Type]) When I try to ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/41147862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine cursor visibility for a thread in Win32? Each thread have their own cursor count that is incremented/decremented by ShowCursor calls. Is there a way to query that counter to determine if the cursor is currently visible? This pattern is supposed to work but there are some problems with that: ShowCurs...
{ "language": "en", "url": "https://stackoverflow.com/questions/57513069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keyword "Click Element" doesn't always work correct I'm facing problem, that keyword "Click Element" doesn't always work correct. For example, I want to go to the link on the web-site. xpath for the Link is the: ${xpathIMButton} xpath=//a/span[contains(text(),"${exprIM}")] ${exprIM} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13762033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add a text to taken screenshot in Selenium WebDriver? My question might be a little bit reckless, but I would like to know if anybody had an experience with adding a text to a taken screenshot using Selenium WebDriver or any other Java library? Currently I'm utilizing: File screenShotFile = ((TakesScreenshot...
{ "language": "en", "url": "https://stackoverflow.com/questions/35845941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pass all arguments to another function I have two functions like this: function mysql_safe_query($format) { $args = array_slice(func_get_args(),1); $args = array_map('mysql_safe_string',$args); $query = vsprintf($format,$args); $result = mysql_query($query); if($result === false) echo '<div class...
{ "language": "en", "url": "https://stackoverflow.com/questions/936192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Why is this regular expression accepting special characters and numbers? I've created a simple regular expression for email. It is: /[a-z]+@{1}[a-z]{2,}/ Now the problem is that it's accepting an email like something;;99@asd when tested. But it shouldn't allow ;;99 ? I want letters only. Secondly, please tell me abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/38432233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying laravel api rest on ubuntu and nginx I have a REST API with Laravel 5.5 LTS that I want to deploy to my ubuntu server and use nginx. I have uploaded the api to my ubuntu server and the updated my nginx config file like this: server { listen 80; listen [::]:80; root /myservername/api...
{ "language": "en", "url": "https://stackoverflow.com/questions/54678194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am trying to open specific comments related to post using Jquery I am trying to open specific Comments related to post but when i click to view more comments so all comments is opening but i want to open comments related to post not all please help me how can resolved that ? thank u html view <div class="comment...
{ "language": "en", "url": "https://stackoverflow.com/questions/72309646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bad Padding Exception :pad block corrupt when calling dofinal I am working on encryption and decryption. I am very new to cryptography and i am facing pad block corrupt exception when using bouncy castle Here is my encryption/decryption code. private AESFastEngine engine; private BufferedBlockCipher cipher; private...
{ "language": "en", "url": "https://stackoverflow.com/questions/14397672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android string resource vs application size Is there a cost to using the android string.xml resources? If I want to keep my application size down, which of the following is better * *Declare my string literals within the layout files, as in <TextView android:text="Hello"> *Use only one string file to store all s...
{ "language": "en", "url": "https://stackoverflow.com/questions/17797042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Oracle sys_refcursor returned stored procedure resultset in c# using entity framework I have a stored procedure which returns select result set using sys_refcursor. Now I want to show these results in c# windows form application by Entity Framework (Model-First) function import feature, but EF Model Designer c...
{ "language": "en", "url": "https://stackoverflow.com/questions/54052447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Timestamp columns and InvalidOperationException I've recently added a timestamp column to a table in a linq-to-sql DBML file. It caused an InvalidOperationException when the entire web service loaded (no queries were even run). The exception is: [InvalidOperationException: System.Data.Linq.Binary cannot be serialize...
{ "language": "en", "url": "https://stackoverflow.com/questions/3957531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get route not found in laravel I have registered get route like below: Route::get('/user/verify?email={email}&token={token}', 'UserController@verifyEmail'); But when I try to access this route with the following: website.com/user/verify?email=example@gmail.com&token=38757e18aad8808832ace900f418b03763789755 It says...
{ "language": "en", "url": "https://stackoverflow.com/questions/63545388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tuple Comparison I`ve a dictionary defined like this : d = {"date": tuple(date),"open":tuple(open),"close":tuple(close),"min":tuple(min),"max":tuple(max),"MA":tuple(ma)} Each one of those tuples contains a list of values ( same number of values for each tuple ), how can I iterate trough each value of paticular keys...
{ "language": "en", "url": "https://stackoverflow.com/questions/4405122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I change the delimiter used in CSV file? UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2219: character maps to <undefined I would appreciate your help A: From CSV Examples: Since open() is used to open a CSV file for reading, the file will by default be decoded into unicode using the...
{ "language": "en", "url": "https://stackoverflow.com/questions/68823133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiplication division using DFSORT utility in Mainframe There are two files FILE1.DATA and FILE2.DATA To calculate percentage (Number of records in FILE1/Number of records in FILE2)*100 using DFSORT in Mainframe. And setting Return Code if it crossing a threshold (90%). //********Extracting Unique records data****...
{ "language": "en", "url": "https://stackoverflow.com/questions/41949074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to access arguments.callee in CoffeeScript class? I have the following code class Foo a: -> console.log arguments.callee.name b: -> @a() c: -> @a() f = new Foo f.b() #=> should output 'b' f.c() #=> should output 'c' Question: How can I get the name of the calling function in my class? H...
{ "language": "en", "url": "https://stackoverflow.com/questions/13897882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JAXB Object to Clob How to create jaxb Object to Clob. When i tried the following not serializable error coming. public static void createClob(TestTo testTo){ PreparedStatement pst = null; Connection con = null; //Clob studentListClob = null; try { con...
{ "language": "en", "url": "https://stackoverflow.com/questions/21831031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a Dataset to input only Images I need a dataset object that contains only images for unsupervised learning in Chainer framework. I am trying to use DatasetMixin for this purpose. Images is a list containing images. class SimpleDataset(dataset.DatasetMixin): def __init__(self, Images): self.Image...
{ "language": "en", "url": "https://stackoverflow.com/questions/56421679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Specman - add bits in the beginning and end of list of bit I have the following list of bit which contains 8 bits (input to function): bs: list of bit; I have the following struct: struct uart_frame_s like any_sequence_item { %start_bit : bit; data_size : uint; %data[data_size] : list of bit; %stop_bit...
{ "language": "en", "url": "https://stackoverflow.com/questions/49130951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get text from using Jsoup To be short. I have following code: elements.select("#offers_table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td:nth-child(1) > div > p.color-9.lheight16.marginbott5.x-normal").get(0).toString(); and I am getting <p class="color-9 lheight16 marginbott5 x-nor...
{ "language": "en", "url": "https://stackoverflow.com/questions/31501959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Row merging based on two conditions I am currently cleaning my data set for a farm and I need to merge the records from 3 separate rows into one. I'd like the get all the records merged based on columns FARM and SHED. The dataset currently looks like this: Ideally, I wish to make it look like this: What is the bes...
{ "language": "en", "url": "https://stackoverflow.com/questions/72516824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: tracking button click as goal in Google Analytics I am trying to do button click in GA, but getting this This Goal would have a 0% conversion rate based on your data from the past 7 days. Although in the Real Time report, there are conversations. I found this post and I have done exactly this. Goal type: Event Ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/39959282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to send a html file with css as a response to a connecting client using express So I've been trying to figure this out for a while now and the answers that I have found are just confusing, vague without explanation and or, do not work - (At least for me). First here is my project structure. .. denotes a folder ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51658834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server reporting services version issue I am facing following error during deployment of SSRS report on server. The definition of this report is not valid or supported by this version of Reporting Services. I have been trying to find out issue on internet for two days but no luck. Reporting Services version on...
{ "language": "en", "url": "https://stackoverflow.com/questions/59661768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a SignalR Application run on IIS 8.5 on Windows Server 2012 R2? Plain and simple: Is it even possible for a SignalR Application to run off IIS 8.5 on Windows Server 2012 R2, or is this not a compatible setup? There are tons of threads all over Stack Overflow that pose the same issue, that the dynamically generat...
{ "language": "en", "url": "https://stackoverflow.com/questions/42169544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }