text
stringlengths
15
59.8k
meta
dict
Q: Avoid permanent redirect to login page http://127.0.0.1:3000/login I have a problem using nuxt/auth v4.9.1. when I logged in and I enter a URL for example http://127.0.0.1:3000/configuration/locations it redirects me to the login page http://127.0.0.1:3000/login while I I'm already logged in and my token hasn't expi...
{ "language": "en", "url": "https://stackoverflow.com/questions/71110873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image used for wordpress posts on Facebook I've seen it several times on my facebook timeline where the image of a shared link is not in the post itself. Example: https://www.facebook.com/BarakaBits/posts/1065758210116791 - Image has text on it. screenshot Here's the post itself: http://www.barakabits.com/2015/01/be...
{ "language": "en", "url": "https://stackoverflow.com/questions/28254174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't call async method synchronously from MeasureOverride I need to call an async method from MeasureOverride. This call should be synchronous because I need to return the value of the async method. I tried about a dozen different calls from these threads: Synchronously waiting for an async operation, and why does...
{ "language": "en", "url": "https://stackoverflow.com/questions/34485996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Bootstrap carousel news slides timing wrong I've been developing a wordpress template with a bootstrap (3.3.6.) carousel news slider. But the slides timing is all wrong after a few seconds. I already set a timer in custom.js, but it only worked on the news button (replacement of indicator), while the slides are movi...
{ "language": "en", "url": "https://stackoverflow.com/questions/34176195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dispatch controller zf2 event manager I have a base controller named MyController I extend my Controller from MyController instead of AbstractActionController What's wrong with this code ? It doesn't work : $sharedEventManager->attach('MyController', 'dispatch', function ($e) { $controller = $e->getTarget(); },...
{ "language": "en", "url": "https://stackoverflow.com/questions/24469400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NodeJS writes to MongoDB only once I have a NodeJS app that is supposed to generate a lot of data sets in a synchronous manner (multiple nested for-loops). Those data sets are supposed to be saved to my MongoDB database to look them up more effectively later on. I use the mongodb - driver for NodeJS and have a daemo...
{ "language": "en", "url": "https://stackoverflow.com/questions/39966845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to test akismet in a Rails app? I'm using the rakismet gem to submit user content to Akismet for spam testing. So far every test I have done has classified the content as spam. I'm starting to think I'm doing something wrong. Does anyone know why I might be getting all false positives on my test data? A: ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1725857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show and hide div on the basis of radio button selection I have two radio button on the selection of radio button it's should display div and hide div. Below is my script I don't understand why it's not working. JavaScript $(document).ready(function() { $(".text").show(); $(".text1").hide(); $("#r1...
{ "language": "en", "url": "https://stackoverflow.com/questions/42827454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you merge dataframes in pandas with different shapes? I am trying to merge two dataframes in pandas with large sets of data, however it is causing me some problems. I will try to illustrate with a smaller example. df1 has a list of equipment and several columns relating to the equipment: Item ID Equipment ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64976628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update streamProvider stream based on other providers value I want to update StreamProvider stream, based on the value of the Provider. I arrived at this solution. return Provider<SelectedDay>.value( value: selectedDay, child: ProviderToStream<SelectedDay>( builder: (_, dayStre...
{ "language": "en", "url": "https://stackoverflow.com/questions/68642086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Locate stack/heap variables in memory I am currently trying to hot patch programs (update code and data in the program memory, according to a released patch). Assume that we can stop a running program, and do the patch. If the patch changes some data initialization or assignment values, how could we know where the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/35144001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert ndarray to string array Lets say there is array values = [[ 116.17265886, 39.92265886, 116.1761427 , 39.92536232], [ 116.20749721, 39.90373467, 116.21098105, 39.90643813], [ 116.21794872, 39.90373467, 116.22143255, 39.90643813]] now I want to convert this to values = [[ '1...
{ "language": "en", "url": "https://stackoverflow.com/questions/72466665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails_Admin - how to export specific rows My Table contains rows, each row has an account field containing the email of the current_user so that users have access only to rows containing their own data. Rails_Admin exports successfully ALL rows. How could I export ONLY the rows that belongs to the user email account...
{ "language": "en", "url": "https://stackoverflow.com/questions/47997157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flutter post request with header and body anyone could help me to write flutter request post for the following header and body with the corresponding response below; Example Post Request Header Request: Content-Type:application/x-www-form-urlencoded Body Request: grant_type: client_credentials scope: accounts cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/57448858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get relative links from html page I want to extract only relative urls from html page; somebody has suggest this : find_re = re.compile(r'\bhref\s*=\s*("[^"]*"|\'[^\']*\'|[^"\'<>=\s]+)', re.IGNORECASE) but it return : 1/all absolute and relative urls from the page. 2/the url may be quated by "" or '' randomly . A...
{ "language": "en", "url": "https://stackoverflow.com/questions/24472957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid content from overlapping div border Here I have this markup: <div class="cabinet"> <ul> <li>This is short</li> <li>This one is longer</li> <li>Yet this one is a lot more longer</li> </ul> </div> And here's the CSS: div.cabinet{ width:...
{ "language": "en", "url": "https://stackoverflow.com/questions/25057701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Find column value Excel I have a data that looks like this in Excel: A 17 8,5 5,666666667 4,25 3,4 2,833333333 2,428571429 B 5 2,5 1,666666667 1,25 1 0,833333333 0,714285714 C 5 2,5 1,666666667 1,25 1 0,833333333 0,714285714 G 4 2 1,333333333 1 0,8 0,666666667 0,571428571 I want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46019348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In OpenTest, how does one run tests across multiple actors using a single template that contains a dozen tests? As it stands currently, we have a single template with a dozen tests underneath it. We have two actors, but the second actor never picks up any tests under the session using the template that was launched....
{ "language": "en", "url": "https://stackoverflow.com/questions/58756223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access in folder images in node.js? So in my project I have folder /Pictures and everything else is all over the project folder. My problem is that I can access all the CSS , JS, HTML, but it doesn't let me get this image folder as a source of the web app. I tried this(doesn't work): app.get('/water.jpeg', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53936760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot infer type for `U` I am using Rust and Diesel: fn create_asset_from_object(assets: &HashMap<String, Assets_Json>) { let connection: PgConnection = establish_connection(); println!("=========================================================="); insert_Asset(&connection, &assets); } pub fn insert_A...
{ "language": "en", "url": "https://stackoverflow.com/questions/46255634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Threejs: Disable frustum culling for some objects In order to solve the problem of z-fighting, I limited the near and far of camera to a small range.But when I want to add a larger object,it was culled by view frustum. I tried object3d.frustumCulled property,not working as expected,the reason is as follows: https://...
{ "language": "en", "url": "https://stackoverflow.com/questions/59727192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to detect the screen DPI using VB.NET? I need the screen DPI so i can adjust my program accordingly. So my question is How to detect the screen DPI using VB.NET? A: try this: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim g As Graphics = Me.Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/50818466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to continue at particular step - spookyjs? I am using spookyjs to test my application. Question Is there anyway to enforce the spookyJs to start at particular step? How to force start at particular step spookyJs? Example SpookyJs will run step by step, Suppose some connection error happened at particular step an...
{ "language": "en", "url": "https://stackoverflow.com/questions/30974458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Helper not available in the view I am migrating from 1.3 to 2.0.6 and have the following problem: Notice (8): Undefined variable: session [APP/View/Users/login.ctp, line 2] Fatal error: Call to a member function flash() on a non-object in login.ctp on line 2 Why is there a problem accessing the session helper? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/32952043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show count for messages which are hidden below the scroll using jQuery? I need to show counter for loaded but scroll down messages in conversation screen. Suppose there are 15 messages in total but showing only 6 on browser right now. It means 9 messages are hidden in below so counter should display 9. But wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/44701595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: addTextChangedListener Null Pointer Exception Been looking at other questions but none of them solved my problem. I have an editText and I need to implement an addTextChangedListener to this field so i can update values of other text views in real time. public class MainActivity extends ActionBarActivity { @Overr...
{ "language": "en", "url": "https://stackoverflow.com/questions/23083150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to compare two column values incrementally and copy entire row if the cells in those columns meet a condition I am trying to compare two columns in one workbook and based on a certain condition copy the row where that condition is met to another workbook. This is for a "database" I am working on. I have a Master...
{ "language": "en", "url": "https://stackoverflow.com/questions/54295269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: would a css grid framework be a good fit for creating application like layouts? I have a webapp that I am making and it has some particular layout needs that are closer to an application than a website. The layout has: * *a left sidebar that is fixed to the left side of the browser window and has a static width u...
{ "language": "en", "url": "https://stackoverflow.com/questions/18651474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spring Transaction not working I'm having a problem with transactions, when execution reaches taskExecutor.execute(); I get an Exception: Caused by: org.springframework.transaction.IllegalTransactionStateException: No existing transaction found for transaction marked with propagation 'mandatory' I know this err...
{ "language": "en", "url": "https://stackoverflow.com/questions/17474257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to ask a context in EF how big its tracking set is? I'm running into what appears to be a fairly typical problem in EF. As I continue accessing my context, the number of items it tracks and enumerates over in detect changes increases. Eventually, everything slows to a crawl. Here's what I'm current...
{ "language": "en", "url": "https://stackoverflow.com/questions/38906108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML xquery retrieve the descendent nodes value from a xml string I'm reading a XML document using XQuery in SQL Server. This is my XML: declare @xml as xml=' <contactdata> <contacts> <groupkey>24</groupkey> <groupname>Test Group One</groupname> <contact> <contactkey>100</contactkey>...
{ "language": "en", "url": "https://stackoverflow.com/questions/20881146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GCM Notification not register for token and not receiving notifications This is my appdelegate where is my notification implementations goes on. Sometimes I register with token and token is received. But not receiving notifications. But some time there is no registration with token at all. This is my code below. i...
{ "language": "en", "url": "https://stackoverflow.com/questions/60629328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to configure Swagger in Spring project, getting File not found exception I am trying to configure swagger for my spring application. Below is the configuration. However, getting an error [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class] cannot be opened because it does not exist Spring ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56929655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ResourceReferenceKeyNotFoundException on NotifyIcon I'm using WPF NotifyIcon, and actually I'm trying to learn how to display a simple NotifyIcon in the system tray. Actually In the MainWindow I put this code: private TaskbarIcon tb; public MainWindow() { InitializeComponent(); } private void Met...
{ "language": "en", "url": "https://stackoverflow.com/questions/37160474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to post values of each item in model from view to controller as a List or Array? example of view priority list of orders i have a orders model, i need the user to arrange orders in order of priority by numbers. for each order a different number of priority and post to the controller the id of the order and the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/50451972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expanding to consumer to cater for each producer? I have the following socket connection codes. Where for every connection is one new thread. After receiving the data which is done via the producer then I put into a queue for next database processor which is the consumer. This works fine but the moment the queue get...
{ "language": "en", "url": "https://stackoverflow.com/questions/40311266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In DynamoDb, is there a way to atomically check a secondary index for an item before writing it? I've got an object like this: { "id": (UUID generated at call time) "referenceId": (Foreign key for another system) "referenceType": (enum) } The primary index is just * *Primary key: id And I've got...
{ "language": "en", "url": "https://stackoverflow.com/questions/66002469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does mapping over a DataFrame using a case class fail with "Unable to find encoder for type stored in a Dataset"? I have already imported spark.implicits._ But still I get error Error:(27, 33) Unable to find encoder for type stored in a Dataset. Primitive types (Int, String, etc) and Product types (case classe...
{ "language": "en", "url": "https://stackoverflow.com/questions/47971162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make first post bigger in wordpress This is probably very easy to do, but unfortunately I'm not too good with coding. I am honestly trying to learn though. I have a theme in wordpress that makes posts tagged with "spotlight" twice the size of the rest. I would like to change this so that it's automatically t...
{ "language": "en", "url": "https://stackoverflow.com/questions/40627899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter: why can't I create a DateTime object with all 0 values? So I want to make a Stopwatch in Flutter. static void startTrip() { SharedPrefsHelper().setIsCurrentlyOnTrip(true); _elapsedTime = DateTime( 0, //year 0, //month 0, //day 0, //hour 0, //minute 0, //second 0, //milliseco...
{ "language": "en", "url": "https://stackoverflow.com/questions/71259139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading Clojure code in Eclipse plug-in I have this kind of problem. I have Clojure code contained in Eclipse plug-in (denoted A) in *.clj files. I don't want AOT compilation. However, I need to load the clojure code from another Clojure plug-in B. This is possible when B depends on A. Clojure can easily access the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12689605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Implement fold with for-comprehension How can a fold be implemented as a for-comprehension in Scala? I see the only way is to use some recursive call? This is a try that is failing, not sure how to do this? What is the best way to implement fold as a for-comprehension val nums = List(1,2,3) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39618657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scala/Spark Apriori implementation extremely slow We are trying to implement the Apriori algorithm in Scala using Spark (you don't need to know the algorithm to answer this question). The function computing the itemsets of the Apriori algorithm is freq(). The code is correct but it gets slower after each iteration i...
{ "language": "en", "url": "https://stackoverflow.com/questions/64835206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Enable :active state in IE7 with jQuery? I've searched for a simple jQuery plugin to enable the active state in IE7, but I've only been able to find IE7-js, which doesn't play well with my current javascript. I think I could build this myself, but I figure someone else has already done a better job of it than I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/5794057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android launchin thridparty intent not working I 'm trying to launch the camera app on button click but I don't want to hav the fot I want it to behave like it is launched by the lauc´ncher but when I call my code the application simply closes and the camera isn't starting.There isn't even an error code. Code : if(v...
{ "language": "en", "url": "https://stackoverflow.com/questions/10837353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Terminals.tokenizer() tokenize unregistered operators/keywords? I've just discovered the root cause of some very confusing behavior I was observing. Here is a test: @Test public void test2() { Terminals terminals = Terminals.caseInsensitive(new String[] {}, new String[] { "true", "false" }); Object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24384203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Screenshot comes out black on Wayland I found this code to take a screenshot on Ted Mielczarek's website. /* * gdk-screenshot.cpp: Save a screenshot of the root window in .png format. * If a filename is specified as the first argument on the commandline, * then the image will be saved to that filename. Otherwis...
{ "language": "en", "url": "https://stackoverflow.com/questions/41560368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to query a document with the highest value of a field Let's say I have a collection of documents. To make this simpler, let's say all these documents have just 2 fields, name and id, like below. I want to get the document with the greatest value of "id". Can I use the .find({}) with some parameters? If so, I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/55737093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ADB2C - How to change UI for password confirmation screen(In reset password flow) I have created sign-in user flow with reset password user flow. I have updated UI with custom UI in both the flows. When user click on 'Forgot password' link then user is seeing new UI for 'Reset password' user flow, but after email ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/71605173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resolve @RegisteredOAuth2AuthorizedClient with the token obtained outside of spring server of Spring Security 5.2.x I have a controller method that has an argument OAuth2AuthorizedClient with annotation @RegisteredOAuth2AuthorizedClient. ResponseEntity<String> getFoo( @RegisteredOAuth2AuthorizedClient("c...
{ "language": "en", "url": "https://stackoverflow.com/questions/66623303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Importing python packages, nested packages... going up, traversing, etc... doesn't appear to work - what am I doing wrong? I'm having an issue. I'm porting a lot of code to Python from various other languages of things I've coded over the years and turning it into a large package. Because not everything fits under a...
{ "language": "en", "url": "https://stackoverflow.com/questions/59971816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "__NSAutoreleaseFreedObject(): release of previously deallocated object" out of the blue I'm not sure if this is an error or not. The code compiles fine (no warnings), but when I enter a method, a local's value (an NSMutableString) displays this content in the debugger: __NSAutoreleaseFreedObject(): release of previ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5344645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSV -> JSON -> PostgreSQL "Token invalid" I have a CSV file containing 1 column ("json_doc") with many rows of JSON data. I want to collect this json data and upload it to a Postgres database. The rows are in the format: {"id": "0436d9b9305d", "base": {"ateco": [{"code": "46.11.03", "rootCode": "G", "description": "...
{ "language": "en", "url": "https://stackoverflow.com/questions/53648602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting Pending Request on HTTP Client Response while ataching multiple files I am facing an issue while sending API requests to by HTTP Client. I am getting a Pending Request. How to fulfill the response and get the response data from $response->collect() here is my code: public function postMultipleFiles($url, $fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70688117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Security: Sending email address in a url parameter Is it considered bad security practice to include somebody's email address in a url as a parameter over http? The email address belongs to a client, and they may not want anybody to see it. The url points to my own domain, I'm just creating unique urls with email ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/17303940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Code not working. Dropdown menu in Android This is the java file of the code followed by xml file. The programs shows an error "Unexpectedly stopped working" I cannot find the error through logCat also. Can someone suggest something ? Java file: package com.example.ui; import android.os.Bundle; import android.app....
{ "language": "en", "url": "https://stackoverflow.com/questions/23854538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse LDT doesn't run local Lua interpreter I have problem with Eclipse LDT. When I run my test Lua app, it executes just fine using JNLua inside JavaVM environment. But according to this tutorial, when I reference native lua.exe interpreter and set it in Run Configuration as Runtime Interpreter, Run Configuration...
{ "language": "en", "url": "https://stackoverflow.com/questions/18716699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I calculate subtotals using onblur and javascript? How do I calculate subtotals for each row of a product listing by using an input text field to enter one of the numbers? example: colA colB colC 100 - [text input] = [calculated result] 880 - [text input] = [calculated result] 720 - [text i...
{ "language": "en", "url": "https://stackoverflow.com/questions/8718114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Manually sanitize SQL parameters I would like to run a script like: CREATE LOGIN [me] WITH PASSWORD = @0 and run it like: var createUserCommand = conn.CreateCommand(); createUserCommand.CommandText = script; createUserCommand.Parameters.AddWithValue("@0", passwordDecrypted); However, this throws: A first chance e...
{ "language": "en", "url": "https://stackoverflow.com/questions/26489820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenCV. detectMultiScale() function return error I'm new to OpenCV. Took an example from official documentation. When I try to run the code, an error pops up. When you try to run the code, an error pops up when you call the function detectMultiScale () Mat image; image = imread("1.jpg", CV_LOAD_IMAGE_COLOR); imshow(...
{ "language": "en", "url": "https://stackoverflow.com/questions/57108437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java. HSSF. Apache-poi. How to modificate code My data is stored in a format(look down): [-] means a blank cell, on the right may be only 10 columns, after the space. Something like this: [string0] [-] [string1] [string2] [string3] .. [string10] [-] How to change this code for: 1) obtain only [string0] 2) o...
{ "language": "en", "url": "https://stackoverflow.com/questions/18082358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to populate additive field via JOIN with Doctrine Suppose i have an entity with a ManyToOne relation (with EXTRA_LAZY) and obviously a join column. eg. Article (main entity) -> Author (external entity) suppose i add a field author_name to the Article that NOT mapped to the ORM and that in certain contexts this...
{ "language": "en", "url": "https://stackoverflow.com/questions/42551664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: class that extends AbstractGoogleJsonClient constructor expecting Builder, rather than 5 params from Android Developers Tic Tac Toe client (Android), https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-android there is.... public class Tictactoe extends AbstractGoogleJsonClient { etc} with the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/21007597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android get unique firebase token and authenticate with cloud functions I'm building a multi-player Android game, and it uses Firebase Cloud Functions. There are some tutorials that explains how to allow only users of my application to use my cloud function (link below), but I don't want to allow all the users to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/50924981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting smallest value from column that holds numbers as strings I'm saving numbers as strings because they are generally larger than the maximum limits MySQL allows for integers. What I'm trying to get is the smallest and largest values from this column, but just comparing as strings returns very different results....
{ "language": "en", "url": "https://stackoverflow.com/questions/18548306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Debugger Visualizer and "Type is not marked as serializable" I am trying to create a debugger visualizer that would show control hierarchy for any Control. It's done but I'm getting the exception "Type is not marked as serializable". How do I overcome that? Control is a .NET Windows Forms framework type, I can't ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/2959048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Continue on exception I get a few exceptions when I run my code. What I want to do is, I want to continue on FileNotFoundException and NullPointerException and break on any other exception. How can I go about it? Thanks A: try { stuff() } catch( NullPointerException e ) { // Do nothing... go on } catch( File...
{ "language": "en", "url": "https://stackoverflow.com/questions/4752361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: import file into skype for business calender I created a patient schedule file outside of Skype for business. I want to associate a patient with a selected physician. How can I import the file to the Skype for business calendar? What format should the imported file be? A: Skype for Business does not support its own...
{ "language": "en", "url": "https://stackoverflow.com/questions/36252048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace a word in a sentence using preg_replace How can I replace a string like style="color:red;width:90%;" class="textbox" to style="color:red;width:65%;" class="textbox" using preg_replace? I just want to replace "width:90%" with "width:65%" and the rest of the string should stay as it is. What regular expr...
{ "language": "en", "url": "https://stackoverflow.com/questions/4284635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to multiply index values looped in a list I get this error when I run my code however I had converted the data in my list to an int I have been working on this for weeks and cannot figure it out ValueError: invalid literal for int() with base 10: '95.7' How can I by pass this error to get the total , import csv ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70025347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use OrderBy to sort a custom object ascending by Date I have a collection of a custom object as follows: public struct Record { public string Caller { get; set; } public DateTime Started { get; set; } public string Dialed { get; set; } public decimal Duration { get; set; } public decimal C...
{ "language": "en", "url": "https://stackoverflow.com/questions/31280433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Unable to extract key-value pairs from BigQuery table which has arrays and structs I have integrated Firebase analytics data with google BigQuery and everyday a new table gets created with the DATE stamp. one sample table is "projectID.com_dev_sambhav_ANDROID.app_events_20170821" One sample table is shown below sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/45836216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: shortcut for creating an javascript object from an array of objects using lodash I often have an array of objects and want to make it into an object of objects by keying on a specific key of the contained objects. Currently I'm doing something like: _.zipObject(_.pluck(results, '_id'), results); However, this is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/23931758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting the name of cells inside a vba function While inside a VBA function I'm attempting to change the name of certain cells to flag them and use them later. I have a searching function that searches excel docs for keywords from a .txt file and need to know which cells don't include any of the search terms. To do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27382881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: httplib post call error I am trying to automate few http requests where, I have following POST call data which i captured from the web : Method: POST Request Header : POST /cgi-bin/auto_dispatch.cgi HTTP/1.1 Host: 10.226.45.6 Connection: keep-alive Content-Length: 244 Cache-Control: max-age=0 Upgrade-Insecure-Req...
{ "language": "en", "url": "https://stackoverflow.com/questions/40036814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Socket connection only when needed I have a web application that needs to refresh some values ​​often because the changes have to be available almost in real time. To do this, I run via ajax a refresh.php routine every 15 seconds, which returns the updated information. Time that increases if there is no user activit...
{ "language": "en", "url": "https://stackoverflow.com/questions/46288636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sorting in Linux I have a string "abc" and I am greping it in 15 files in my directory in shell. When I grep "abc" in my 15 files than it returns me the whole line of the files in which its present like this: abc 0.2 9.0 abc 0.01 8.0 abc 0.06 9.4 abc 0.02 8.7 Now I want this output to be sorted in ascending order ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9028972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to eliminate elements of a vector according to a pattern I have this vector: a <- c("es1", "es2", "es3", "is1", "is2", "is3") and i would like to eliminate all elements staring with "es", so it ends up looking like this: b <- c("is1", "is2", "is3") Thanks everyone! A: If you want to remove all words that cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/22933492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Toast in not showing in asynctask I am trying to get message from the server to show in toast but it does not appear. The client receives the message from the server without any errors.I have tried opening UI thread in onpost but it didn't work protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
{ "language": "en", "url": "https://stackoverflow.com/questions/44549191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: best way to access a windows service via GUI I'm curious about the best way for a C# gui to access the functions of a Windows Service, be it WCF or ServiceController or some other option. I'll explain what I'm doing: on a regulated time interval the service will be zipping one hours worth of datafiles from location...
{ "language": "en", "url": "https://stackoverflow.com/questions/18133474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sticky Table two header using CSS for all OS i have two table headers and i want to sticky it using CSS only. Here is my html, and also posted image of my table, i have all the dynamic data and columns. <div class="fix-table-parent"> <table> <thead> <tr class="first_head"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59663249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i Tlit the layout from Left to Right? I want to know about the Layout which can be Tlit from Left to Right. please give me any suggestion for help out me. A: You can create .xml layouts for when the phone is placed horizontal or vertical. To create a horizontal layout, simply create a new .xml file and chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/11083337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: URL gives 404 ..Angularjs I'm having issue with my url..i actually was trying to remove # tag from my url..which is done but the problem is now if i'm having url like this http://localhost/xyz it redirects me to http://localhost/xyz/home but the if i try and refersh the same page http://localhost/xyz/home it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39486575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the differences between OLEDB/ODBC drivers when connecting to SQL Server? I have an SQL Server database, and I need to push data into it through vbscript, as well as pull data into Excel. I have found multiple connection strings, but no repository for the benefits of performance and functionality comparing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37894058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to initialize and set a 2D array in golang I am trying to simplay make a 2D array as a field on an object. I want a function that creates the object and returns it. But when trying to create the 2d array it returns a single array. type Struct struct { X int Y int Grid [][]bool } func NewLifeSimulato...
{ "language": "en", "url": "https://stackoverflow.com/questions/63239776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: yarn workspaces monorepo with vite, react, tailwind - VS Code fails to resolve packages I have created a monorepo using yarn@3 workspaces. My root package.json: { "name": "hello-yarn-workspaces", "packageManager": "[email protected]", "workspaces": [ "apps/*", "packages/*" ], "devDependencies": { "@co...
{ "language": "en", "url": "https://stackoverflow.com/questions/70572380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firebase indexOn issue Edit: I want to filter all the post liked by someone using their phone number My app was working since 3 years earlier i got warning in console about indexOn issue and i have added security rules as per instructed, now when i have updated firebase sdk and also now I'm using addOnCompleteListen...
{ "language": "en", "url": "https://stackoverflow.com/questions/71401495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ZeroClipboard - Using multiple elements ZeroClipboard for single click copy. Both the links are giving the same output, rather than different. Demo link HERE <a id="c101" href="javascript:void(0);">OBJ1</a> &nbsp;&nbsp; <a id="x101" href="javascript:void(0);">OBJ2</a> <script type="text/javascript"> var dom_ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/18710339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter: LateError (LateInitializationError: Field 'user' has not been initialized.) I am nit sure about this error because user should be inithialized in Auth Provider and then I will be able to use it in User Provider but flutter continue giving this error. Here is my code. Can someone help to solve or tell me a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/71423823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB: Search Query to return an object inside the array I have a Journal Schema which contains an array of notes. I want to implement MongoDB search in my application so that it returns the note that matches the query. Right now it returns the entire Journal Object which contains the matched note. Journal Schema:...
{ "language": "en", "url": "https://stackoverflow.com/questions/71507954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I apply drop Shadow right and bottom of transparent view in Android? I want to apply drop shadow right and bottom on view (TextView/LinearLayout) with transparent background. I have draw shadow using Layer-list as said in this link: Add shadow on right and bottom side of the layout but it is not giving me de...
{ "language": "en", "url": "https://stackoverflow.com/questions/30436790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Value from Another Form: Apostrophes are not displaying Simply put, the apostrophes are not displaying inside my text field. The result is here: www.unidrones.co.za/VRentals In the search box, try typing something with an apostrophe like 1920's car or something. You will see a new form that appears. The "Mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/50750249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ templated container scanner here's today's dilemma: suppose I've class A{ public: virtual void doit() = 0; } then various subclasses of A, all implementing their good doit method. Now suppose I want to write a function that takes two iterators (one at the beginning of a sequence, the other at the end). Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/1873766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import Scala from Groovy Is there a way, preferred standard way to import Scala code (local jar, or local maven, or remote artifactory)? We are using Groovy on Grails, and some library we want to use are written in Java or Scala. Considering they are all JVM languages, there must be a way to interplay. I've search...
{ "language": "en", "url": "https://stackoverflow.com/questions/31015822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android base library module implementation We are currently updating the app code, and we are splitting the code into different library modules, which are used by one application module. The problem is that the app compiling time has increased exponentially and all of a sudden the 64k multidex limit has been exceede...
{ "language": "en", "url": "https://stackoverflow.com/questions/48065961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Renaming Row Count Column in SQL I can’t find how to rename the row counting column in a table in an SQL Server RDMS. When you create a table and you have user created columns, A and B for example, to the farthest right of those columns, you have the Row Number column. It does not have a title. It just sequentially ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61493197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Travis CI simple bash broken with latest update any "n" character seen as "\n" line break Travis CI seems to be misbehaving very oddly since yesterday. I know they pushed out an update on the 21st June 2017 to Travis but this issue only started happening yesterday to me causing a total mess of one of my repo's but l...
{ "language": "en", "url": "https://stackoverflow.com/questions/44826148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: github webhook with flask - Github not trigger or not send requset I tried to write a flask app that when every time you do a push event to the Github repo it sends a webhook to the flask server. My code for flask app is: from flask import Flask, request app = Flask(__name__) @app.route("/") def getGitUpdate(): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73149792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Purge cache in Cloudflare using API What would be best practice to refresh content that is already cached by CF? We have few API that generate JSON and we cache them. Once a while JSON should be updated and what we do right now is - purge them via API. https://api.cloudflare.com/client/v4/zones/dcbcd3e49376566e2a19...
{ "language": "en", "url": "https://stackoverflow.com/questions/66207019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort Dictionary swift 3.0 At some point of coding, I require to sort dictionary to get ordered data based on the Dictionary's Key. I tried to get the result by: let sortedDict = dict.sorted { $0.key < $1.key } It results into: let dict = ["a0":1, "a3":2 , "a10":2, "a20":3] Though, desired result: let dict = [...
{ "language": "en", "url": "https://stackoverflow.com/questions/47826640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }