text
stringlengths
15
59.8k
meta
dict
Q: Complex shape with rainbow gradient I'm trying to draw a figure on a canvas, to be filled with a rainbow-colored gradient. The wanted result is something like this: Creating the shape itself is pretty easy, just creating a path and drawing the lines. However, actually filling it with a gradient appears to be somewh...
{ "language": "en", "url": "https://stackoverflow.com/questions/35317997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .Net HttpClient Class within Xamarin only works in Full Debug info mode I'm new in Xamarin development.I build a small demo which use .Net Httpclient to send and receive message from remote server.Everything is fine except the httpclient segament If I choose Debug and output full debug info the response is "Success"...
{ "language": "en", "url": "https://stackoverflow.com/questions/40234992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anomaly Detection Using Keras - Low Prediction Rate I built an Anomaly detection system using Autoencoder, implemented in keras. My input is a normalized vector with length 13. My dataset contains about 25,000 non anomaly inputs which dedicated for learning. I get about 10^-5 MSE after learning with 1-3 epochs. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65275763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving of Numeric with decimal to txt File from datagridview in vb.net This is my code for saving the values from data grid view to text file: Private Sub TextFileToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles TextFileToolStripMenuItem.Click Dim filename As String = String.Empty ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18839379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Link to current page does nothing in AngularJS if I am on the /contact page on my website, if my nav bar has a link to the /contact and I click it, nothing happens. But if I click any other link that isn't the current url, Angular responds correctly. How do I make it reload the current page when clicking a link to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34477983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: onchange event not alerting Could someone help me figure out why this isn't triggering? $("input:radio[name=cm-fo-ozlkr]").change( function(){ alert('Handler for .change() called.'); }); HTML <input type="radio" checked="checked" class="styled" value="1397935" id="cm1397935" name="cm-fo-ozlkr"><i...
{ "language": "en", "url": "https://stackoverflow.com/questions/5966339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Working with API's in Node, security of var I'm a php developer learning how to work with Node. When you work with php and a private API which requires an API key, you're kind of safe since you can't view PHP code in the developers console. But now I'm working with an API in Node which has this structure. var Adword...
{ "language": "en", "url": "https://stackoverflow.com/questions/44804038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ZF2 dont validate element inside a collection i have problems validating a Form with a element of type Collection, First, I create a "Collection" type element and then I add several text type elements. the form is rendered correctly, The problem is that the Form is always valid. How i can validate a collection type...
{ "language": "en", "url": "https://stackoverflow.com/questions/48795575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: where i can get blacklist spam email domain dataset? I wanna create an email classifier the classifier will be divide by email, subject, content classifier for email classifier, I need a list of blacklist domain such as @blablabla.com @cacacaca.com etc. like this set here but I need an up to date domain, so where I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49606612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error 0x800706F7 "The stub received bad data" on Windows XP SP3 In my VB6 application I make several calls to a COM server my team created from a Ada project (using GNATCOM). There are basically 2 methods available on the COM server. Their prototypes in VB are: Sub PutParam(Param As Parameter_Type, Value) Function G...
{ "language": "en", "url": "https://stackoverflow.com/questions/15821387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I introduce my VS 2019 to Unreal Engine? I have installed VS 2019 and UE4 v.4.11.0 but when I want to open a C++ project in UE4 I see that it can not recognize my VS2019 compiler. How can I fix it? A: Support for Visual Studio 2019 has been added to Unreal Engine 4.22: Release Notes. After updating to Unre...
{ "language": "en", "url": "https://stackoverflow.com/questions/63260738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set an array in json response goLang-gin I have an array of stucts stored a variable my array. Struct is type myStruct struct { id int64 `db:"id" json:"id"` Name string `form:"name" db:"name" json:"name" binding:"required"` Status string `form:"status" db:"status" js...
{ "language": "en", "url": "https://stackoverflow.com/questions/39095502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rebuild existing EC2 instance from snapshot? I have an existing linux EC2 instance with a corrupted root volume. I have a snapshot of the root that is not corrupted. Is it possible with terraform to rebuild the instance based on the snapshot ID of the snapshot ? A: Of course it is possible, this simple configura...
{ "language": "en", "url": "https://stackoverflow.com/questions/69857931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NetworkX: structuring a simple flow study on a graph If you consider the following graph: from __future__ import division import networkx as nx import matplotlib.pyplot as plt import numpy as np from numpy.linalg import inv G = nx.Graph() pos={1:(2,3),2:(0,0),3:(6,0)} G.add_nodes_from(pos.keys()) nx.set_node_attri...
{ "language": "en", "url": "https://stackoverflow.com/questions/42348315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Starting apache derby programmatically I am a newbie to java. In, my project, I have used JDBC. It worked fine till netbeans was on. But, when I turned off netbeans and executed the jar file, I got the following error :- java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to se...
{ "language": "en", "url": "https://stackoverflow.com/questions/20031034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cakephp 3 Appending args variable in all pagination links I am using CakePHP V3.5.10 Once I cake bake my code any paginator works because is appending this args a variable that looks like this: domain.com/admin/categories?args=&page=3 So when I var_dump it I get this : var_dump($this->request->params); array(9) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48915349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a prefix to every row of a particular column in a CSV file via command line on Linux I am trying to achieve the following. File before editing. column-1, column-2, column-3, column-4, column-5 Row-1-c1, Row-1-c2, Row-1-c3, Row-1-c4, Row-1-c5 Row-2-c1, Row-2-c2, Row-2-c3, Row-2-c4, Row-2-c5 R...
{ "language": "en", "url": "https://stackoverflow.com/questions/24226003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSMutableArray addObject freezes my app Tons of similar questions, but none of their answers seem to answer mine... I'm creating my array as such: imgArray = [NSMutableArray arrayWithCapacity:10]; Later (in another function) I am trying to add an object to it: Attachment newAttachment = [[[Attachment alloc] init] a...
{ "language": "en", "url": "https://stackoverflow.com/questions/6224773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to assign weight for a word? I have a list of words for four categories. There are 10 words for each category. Now I want to assign a weight for each word in the list. For example if one category has words: disease fall have ventilator tumour country sewing demo precaution analysis Now for each of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/32626718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Saving Panel as image at Multithread I don't have any problem saving panel as image with UI thread but i have only a black rectangle when i save this panel at another thread except UI thread : using (Bitmap bmp = new Bitmap(panel1.Width, panel1.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb)) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/49433837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to import csv files with sorted file names? I am trying to import multiple csv files and when I run the below code it does work. allfiles = glob.glob('*.csv') allfiles However, this results in: ['file_0.csv', 'file_1.csv', 'file_10.csv', 'file_100.csv', 'file_101.csv, ... ] As you can see, the imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/57234211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ionic Build iOS - Fail I've been workign on this project for months now with no major issues. Today I can't even get it to build out. I ran "$ionic resources" and now I can't get my build to work at all. I'm getting this error: ** BUILD FAILED ** The following build commands failed: CompileAssetCatalog bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/37055792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Total the hours worked, then filter out 30mins where the segment per datekey contains lunch I have a table called Shifts, below is a sample of the data ID Key DateKey Start End Hours Segment 1 1001 20210101 2021-01-01 09:00:00 2021-01-01 09:00:00 4.000000 On-Call 2 1001 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/72810475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting incorrect creation dates using 'aws s3' I have two buckets. In the AWS Console they have the following "Date created" 2017-11-22 14:07:03 i-repo 2018-01-12 17:16:31 l-repo Using the AWS CLI (aws-cli/1.16.90 Python/3.7.2 Darwin/17.7.0 botocore/1.12.80) command aws s3 ls, I get the following: 2018-02-08 12:49...
{ "language": "en", "url": "https://stackoverflow.com/questions/54353373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Compile Server Error." while building OpenCL kernels I am trying to compile OpenCL kernels on OS X. Everything is ok when there are just a few lines. However, after the code grows over 1.5k lines, clGetProgramBuildInfo with CL_PROGRAM_BUILD_LOG flag returned "Compile Server Error." every time. I googled but found n...
{ "language": "en", "url": "https://stackoverflow.com/questions/30000473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Azure App Service - Site Not Found Only From Specific Locations We have a website hosted via Azure App Service that we can access from many of our locations throughout the world. Yet there are some locations that return "This site can't be reached" (ERR_NAME_RESOLUTION_FAILED). Any ideas? Cannot ping the IP addre...
{ "language": "en", "url": "https://stackoverflow.com/questions/52122340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Export Cronbach Alpha Results - R I'm following THIS R Blogger tutorial to calculate Cronbach alpha, which works perfectly. I'd like to learn how to export the results, either into a data.frame or text file. Any ideas how I might be able to export the results from the following code: psych::alpha(d)? Note, I look...
{ "language": "en", "url": "https://stackoverflow.com/questions/43431385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2008 CLR vs T-SQL: Is there an efficiency/speed difference? I'm a C# developer who has done some basic database work in T-SQL. However, I need to write a very complicated stored procedure, well above my T-SQL knowledge. Will writing a stored procedure in C# using the .net CLR as part of SQL Server 2008 ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/2097958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Xcode with .cxx_construct I have a little problem with Xcode. I import a header which contains this : - (id).cxx_construct; - (void).cxx_destruct; so I try to set GCC_OBJC_CALL_CXX_CDTORS to yes in my build Settings on User-Defined ! But I still have this error : Expected selector for Objective-C method What can i...
{ "language": "en", "url": "https://stackoverflow.com/questions/10485920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Color reproduced on screen is different between platforms I have an both on the Android and iOS. Both are using the exact same render code with OpenGL ES. I noticed that even when using the same RGBA values, the colour reproduced on screen by the devices are not the same. I want suggestions on what might be the caus...
{ "language": "en", "url": "https://stackoverflow.com/questions/36323103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Calculator - Editview cannot input decimal places I am new to Android code development...I am developing a Android calculator apps and does not understand why the two EditTexts (first input and second input) cannot accept decimal places but can only input integers...Here attached as follows are the codes: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/12021068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TWCS is not generating the SStables according to the window_size and window_unit I need to generate the SSTables after a certain time like 10 minutes, but using TWCS and setting up the "compaction_window_size" and "compaction_window_unit", I am not able to understand when the SSTables would be getting generated. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58212745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: An alternative to CodeTabs B+ Im looking for an alternative to the jquery library CodeTabs B+. It should be possible to drag-and-drop the tab-navigation (important for mobile users). Do you know any? A: I found http://owlgraphic.com/. It fits some of the features CodeTabs B+ has.
{ "language": "en", "url": "https://stackoverflow.com/questions/26544132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Images in a swift framework I need a picture to appeare in a framework. The only way i found needed that i know the name of the app it is in. Is there another way to get assets into your framework? (For getting this posted: * *my background search didnt help) A: Almost 5 years ago I posted this answer. It co...
{ "language": "en", "url": "https://stackoverflow.com/questions/67236950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Limit subject line of git commit message to 50 characters I often use vim to format my git commit messages. A trend that I am seeing with increasing popularity is that the first line of the commit message should be limited to 50 characters and then subsequent lines should be limited to 72 characters. I already know...
{ "language": "en", "url": "https://stackoverflow.com/questions/43929991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: free form wordpress I have a voucher to distribute electronically and I would like people to complete a form on my WordPress site and when they click submit, they receive a e-mail with the voucher. Is there any plugin out there for that? If there is not, how could I accomplish this? A: Use the contact form 7 plugin...
{ "language": "en", "url": "https://stackoverflow.com/questions/5032733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display tabset again after .close()? I am working on a small application on ipywidgets that has multiple frames. This means users can click a button, and then the original set of widgets will be closed and a new set of widgets will appear. The function which I am using has a simplified structure as below: def...
{ "language": "en", "url": "https://stackoverflow.com/questions/74086941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which of these options is good practice for assigning a string value to a variable in C? I have this snippet of C code: #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct Date { int date; char* month; int year; } Date_t; typedef Date_t* pDate_t; void assignMonth(pDate_t birth) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3821112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SSRS expression, iif statement with date conditions So my default values for startDate and endDate in SSRS were set up with the following ssrs expressions. first day of previous month ssrs expression =DateAdd(DateInterval.Month, -1, DateSerial(Year(Date.Now), Month(Date.Now), 1)) last day of previous month ssrs ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/26552747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I deliver an iOS app IPA to a customer to be signed with their own Enterprise provisioning profile We have developed an iOS app that has been delivered to the customer as an IPA with an ad-hoc distribution profile that allowed a set of their employees to install it on their devices. The customer now wishes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11035601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can I install an NPM module from GitHub from a certain branch or tag? When I have now: "dependencies": { "mymodule": "owner/repo" } or "dependencies": { "mymodule": "git+ssh://[email protected]/owner/repo.git" } NPM installs the module from GitHub from the master branch. Is there a way to tell NPM to install a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30648882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CKEditor Getting image width and height before inserting element (preloading) Is there a way of getting the width and height of an image before actually inserting it into the editor? I have the following code, but width and height always return 0 var imageElement = editor.document.createElement('img'); imageElement....
{ "language": "en", "url": "https://stackoverflow.com/questions/7427434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use coupon once or twice based on the coupons table- Laravel 8 - Livewire. Apply Discounts Laravel I have a project where I have implemented coupon system. Problem is, one user can use a coupon multiple times until the coupon expires. I would lke: Limiting coupon usage based on max usage defined in coupon table; I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/71492196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual studio 2010, project linking with cuda files I hope I have a simple problem, but I could not solve it during this day, so I ask for your help. So, I`m building CUDA project in Visual studio 2010, using CUDA toolkit. My project contains several files, and the three most important are: //tvector_traits_kernel.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/25251100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Console.Clear() in a Windows Docker Image? I'm trying to containerize a .net framework console application for testing and learning. The application works just fine outside the container. However, I'm getting this error for every Console.Clear() call: Unhandled Exception: System.IO.IOException: The handle is i...
{ "language": "en", "url": "https://stackoverflow.com/questions/63925467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find out rotation angle using dot product I'm trying to rotate a DIV element using the mousemove event on an HTML page. I want to find a rotation angle using the dot product. I know that it's possible using Math.atan2 too, but I'd like to use dot product in my example. So far, I tried to implement the follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/67989514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blank Canvas => 'Refused to display document because display forbidden by X-Frame-Options.' when the canvas app is loaded within the iframe nothing is display and on Chrome Firebug Console I see the error: Refused to display document because display forbidden by X-Frame-Options. I tried this solution: Overcoming ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9100916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Defining view function for displaying postgres data in django I created the wines database in postgresql (containing ID, names etc), and inserted around 300 observations. I would like to display names of every wine in drop menu with django. The urls.py are properly setted up. What have I done so far: models.py from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70397161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add in a CMake project a global file extension (*.pde) to GCC which is treated like C++ code I have a very simple CMake script. Unfortunately, the project uses a *.pde file which is plain C++ or C code. CMake is working with any file ending, but I get a compiler error, because GCC does not know how to handle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30556429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Python How to show on screen which game player's turn it is I am building a Pictionary game which lets two players(in the same room) draw and it should keep score of which player's turn it is and what the score is. I have no idea how to do this. Any help would be great #add controls to custom widget self.vb...
{ "language": "en", "url": "https://stackoverflow.com/questions/74414166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to mapped java embbeded object with JSON I build an google Calendar API, and i miss understand a point with my json files. I succeed to create my java object with my json files but here the issue: i have two classes : public class User { private String email; private String firstname; private String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56276875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mapping a single child The mapping below works, but I was wondering if it can be done with less configuration. I've tried playing around with ForAllMembers and ForSourceMember but I haven't found anything that works so far. Classes public class User { [Key] public int ID { get; set; } public string Logi...
{ "language": "en", "url": "https://stackoverflow.com/questions/14876575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSIS - Calling second table based on first table I have 2 tables T1 and T2 like this : Create table #T1(ID int) Insert into #T1 values(10),(20),(30) Create table #T2(Val varchar(10)) Insert into #T2 values ('A'),('B'),('C'),('D') output: ----------- Table1 - ID ----------- 10 20 30 ---------- Table2 - Val --------...
{ "language": "en", "url": "https://stackoverflow.com/questions/33343296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: ImageView does not respect Pivot when using setRotation() I have been struggling too much with this problem. I tried every possible solution I found on the web. NOTHING works!!! Anyway, I am trying to make an analog clock view using svg Vectors for my app. I had successfully implemented the clock face and was able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39357498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using .htaccess to add www prefix I have a site hosted on godaddy. uses apache. I used this code in .htaccess to add www prefix to the domain automatically RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/../$1 [R=301,L] but instead of 'www.example.com' it goes to 'www.ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/42989587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding query in FutureBuilder to retrieve data just for logged user and his information Flutter I have this list into a Futurebuilder Widget that retrieve documents from Firestore database-. I have created query to retrieve data from a specific collection in Firestore. I need to add into the query a instance to retr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63522996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help understanding mod_rewrite Let's say I have the following filesystem setup on my webserver: /www/web/foo/widget.php ... /www/app/mvc/controllers/WidgetController.php I need to figure out how to use mod_rewrite to map page requests (and their respective GET/POST data) for widget.php to its controller WidgetContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/6446080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Net core 2.1 elasticsearch working in development, it doesn’t work in release net core 2.1 elasticsearch working in development, it doesn't work in release, this is my elasticsearch class {public static class ElasticsearchExtensions { public static void AddElasticsearch( this IServiceCollecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/57131415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XHR not suited for chat applications? When we send an XMLHttpRequest, we always hundreds of extra bytes with it. In a normal usage it is good. But when building applications that needs speed, this is not good for reliablility. function update(){ var xhr = getXMLHttp(); // Normal catch handler for XHR xhr.ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/12326177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot move capture in lambda without 'auto' keyword Letting the compiler determine the lambda type with auto works just fine: #include <memory> #include <functional> int main(void) { std::unique_ptr<int> ptr(new int(1)); auto fn = [ capture = std::move(ptr) ] () {}; } If the lambda type is explicitly defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/59460667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implement UserStore.GetClaimsAsync method I have a custom user store that implements IUserClaimStore. That way, I need to implement GetClaimsAsync method, but I am stuck here. This is my current implementation: public Task<IList<Claim>> GetClaimsAsync(T user) { return Task.FromResult(new List<...
{ "language": "en", "url": "https://stackoverflow.com/questions/57629690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Array of 600+ Strings in excel VBA I am doing a loop for each string in an array such that filename = Array(file1,file2.....file600) However VBA gets a compile error that is due to the array taking up 8 lines. As far as I am aware it only allows 1 line (error says expected list or separator) I am new to VBA sorry ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41415892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How test Select2(Multi-select) in protractor? I have a Select2(Multi-select),I want to type admin and select it. this my HTML code : <select class="js-select2" multiple="multiple"> <option> admin </option> <option> John Doe </option> </select> this is my test code : describe('when select admin and press sav...
{ "language": "en", "url": "https://stackoverflow.com/questions/52351877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SELECT statements have different number of columns I am making a small php website in which you can follow others and then see their post. I have three tables- 1.Posts, which has post_id and author_id 2.follow, which has following and follower 3.users, which has id, username, and all other stuff. I try the followi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48083351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cake PHP 2.x model validation returns error on field despite data set I'm working with a Cake PHP 2 project and am utilising the model validation and have implemented validation into my controller I've set up my model to contain a $validate array with my fields and some basic rules, but when validating the request d...
{ "language": "en", "url": "https://stackoverflow.com/questions/68411228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CMSMS meta tags not retrieved I built a site with CMSMS. I'm having trouble retrieving the meta tags. I assume this needs to be done in the header.inc.php file. As of now, meta-tag for content is empty. <meta name="description" content=""> According to some documentations I found online I need to put <meta name="...
{ "language": "en", "url": "https://stackoverflow.com/questions/61502044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I generate multi-line build commands? In SCons, my command generators create ridiculously long command lines. I'd like to be able to split these commands across multiple lines for readability in the build log. e.g. I have a SConscipt like: import os # create dependency def my_cmd_generator(source, target,...
{ "language": "en", "url": "https://stackoverflow.com/questions/466293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Preventing commandbar from going into landscape mode I'm making an app, my first UWP app, I already spent hours looking for this. I need the commandbar to keep in portrait mode while all the rest of the application goes to landscape mode. I need something like this: in portrait mode And in landscape mode, see the ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/41850955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter list within list to get all second numbers Im trying to filter the following list: filtered = [[1.0, 3.0], [2.0, 70.0], [40.0, 3.0], [5.0, 50.0], [6.0, 5.0], [7.0, 21.0]] To get every second number in the list within list, resulting in the following: filtered = [[3.0], [70.0], [3.0], [50.0], [5.0], [21.0]] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50320657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How i can use script session outside script folder like home folder? I use script on my website like this localhost/panel/index.php in index.php the script set session like this $cookie_lifetime = ini_get('session.cookie_lifetime') ? ini_get('session.cookie_lifetime') : 0; session_set_cookie_params($cookie_lifetime...
{ "language": "en", "url": "https://stackoverflow.com/questions/44287991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decimal error on using linq function datacolumn I have a simple code that runs through all the text columns of a DataGrid. I use a for the create a LINQ statement that searches values on that column. The problem I have is when the column has decimal values. I intent to make an if function asking if this column is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/25207675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing data between fragments when swiped I am newbie to android.I am trying to develop an application which contains a Viewpager with Tabs.My Aim is to pass the data entered in first fragment(i.e tab1) to second fragment.I am confused how to get the data in FragmentA and show it in FragmentB besides my viewpager i...
{ "language": "en", "url": "https://stackoverflow.com/questions/32479685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set Json string array to Java object using Java I have following JSON string that I need to set to the Java objects of POJO class. What method should I follow? {"status":"FOUND","messages":null,"sharedLists": [{"listId":"391647d","listName":"/???","numberOfItems":0,"colla borative":false,"displaySetti...
{ "language": "en", "url": "https://stackoverflow.com/questions/44006902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: _WebTryThreadLock error I am facing an error while manipulation the UIWebView in ipad application. in that I have to fill the UIWebview with the HTML string and though the content is coming from the APi so I have to implement the process under Thread. Below is the error message : bool _WebTryThreadLock(bool), 0xb2aa...
{ "language": "en", "url": "https://stackoverflow.com/questions/5662816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rounded Border Corner I'm wondering about how to make the top-border like the red line on the picture below? I've tried border-radius, but I can't figure out how to round the bottom part of the top-border. A: I would use :before to create a pseudo-element that you can style, as it is only used for presentation, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/36838062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I install PWA offline caching at the start of the development? As the question suggests, should I install/add Progressive Web Application (PWA) offline caching at the start of the development, or should I only add it after development is complete? Because I've heard/read that installing it at the start may im...
{ "language": "en", "url": "https://stackoverflow.com/questions/67919278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery element value = $(this).value I would like to select the element with class of Level1 whose value is equal to $(this).val(). I read that you can't do $(.Level1[someAttribute=value]) which makes sense as val() isn't an available DOM attribute in that sense. This may be an easy one, but I am stumped at the mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/31747740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Tuples in map, flatmap,... partial functions If I do: val l = Seq(("un", ""), ("deux", "hehe"), ("trois", "lol")) l map { t => t._1 + t._2 } It's ok. If I do: val l = Seq(("un", ""), ("deux", "hehe"), ("trois", "lol")) l map { case (b, n) => b + n } It's ok too. But if I do: val l = Seq(("un", ""),...
{ "language": "en", "url": "https://stackoverflow.com/questions/22944468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Issue IN VS CODE I am a new vs code user. When I installed vs code and runned a C program "Hello World" and other programs but I face one issue undefined reference to winMain@16 I also have MinGW compiler. I searched for this issue in the whole internet but I didn't find anything regarding this visual studio code is...
{ "language": "en", "url": "https://stackoverflow.com/questions/62317326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing two datasets, to ensure an administrator can only edit users in their area I have created an app where users have many areas (through subscriptions). Some users have the :admin role, and these users also have many administrative_areas (through administrations. I'm struggling getting my head round the bes...
{ "language": "en", "url": "https://stackoverflow.com/questions/15055819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my java app spending 30% of its time in young generation gc? I was looking at the gc log file for our Solr installation, and I noticed its taking 30% of its time doing young generation gc. The log snippet below spans about a second, and the gc times add up to .34 seconds. My question is: is this a problem, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/10259032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The type or namespace name 'Input' does not exist in the namespace 'UnityEngine.Experimental' I am using unity's new input system and getting this error, I tried a lot to fix it but can't find the problem. Please help me. Error: Assets\Player01.cs(4,32): error CS0234: The type or namespace name 'Input' does not exis...
{ "language": "en", "url": "https://stackoverflow.com/questions/67446941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ToggleButton with custom image and custom text color I have this toggle: <ToggleButton android:id="@+id/toggle_1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/custom_toggle_bg" android:gravity="bottom|center_horizontal...
{ "language": "en", "url": "https://stackoverflow.com/questions/32358100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RequestContext.RouteData and Request.UrlReferrer info is lost on FormMethod.Post I am trying to post a form with one of the variables being the Action of the previous URL, however whenever I POST it, the variable becomes null. How can I persist that info at least until it reaches the POST Action? I've tried using bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/39236965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent Jackson from accepting numbers into Date fields in the request body How can I stop Jackson from accepting numeric values into Date fields in the request body? Jackson seems to be treating them as timestamps and doing the conversion but I would rather have it return a Bad Request response instead. The field i...
{ "language": "en", "url": "https://stackoverflow.com/questions/57095666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to create database tables with Generate Database from Model I am using Entity Framework 4.1 and SQL Express. I have been trying to create models inside the emdx file and from that create the tables inside the a .mdf file. However, I am unable to get that work. However, I am able to get the "Update Model from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8490503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ignoring non-existent URLs with htmlParse() in R G'day Everyone, I have a very long list of place names (~15,000) that I want to use to look up wiki pages and extract data from them. Unfortunately not all of the places have wiki pages and when htmlParse() hits them it stops the function and returns an error. Err...
{ "language": "en", "url": "https://stackoverflow.com/questions/22085773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot loop through array comparing text values, undefined result with Protractor I am new to protractor and JavaScript and struggling trying to compare a delimited string to an array. What I am trying to do is to find a list of all elements and then from each element, loop through the arrays to compare the text v...
{ "language": "en", "url": "https://stackoverflow.com/questions/35809291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to make fields in schema.xml to use DataImportHandler I have many different column names and types that I want to import. Do I need to change my schema.xml to have entries for each of these specific field types, or is there a way for the importhandler to generate the schema.xml from the underlying SQL data...
{ "language": "en", "url": "https://stackoverflow.com/questions/18950750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JPA Criteria Query for Left joins I am new to JPA and I have a Left Join scenario. I have my native sql query as below and I am using left join to fetch the complete records from V_MONITORING table for st.id = 10001. I have some null values for id_legislature which also needs to be selected and hence using a left jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/54328260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Karate mock API: /__admin/stop endpoint not stopping mock service (standalone jar v1.3.0) I am running a mock service using the karate standalone jar version 1.3.0. Mocking is working fine. However, when I make a GET request to the /__admin/stop endpoint, the process registers that the endpoint has been called, clos...
{ "language": "en", "url": "https://stackoverflow.com/questions/74603710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular2: How to use on the frontend "crypto.pbkdf2Sync" function from node.js There is a function crypto.pbkdf2Sync() in node.js API and I whant to use it in my Angular2 project. I tried to import it and use it. Project compiles with no error, but in browser I get an error: TypeError: webpack_require.i(...) is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/42538280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Variable Never Assigned to C# I'm missing something simple here, I know it. My private variables are "not assigned," but from my (limited) knowledge they are. What am I missing? I've looked at the other similar questions, but I don't quite understand the answers (or even the questions!). Please help. public class We...
{ "language": "en", "url": "https://stackoverflow.com/questions/35925146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to avoid ugly composer hell of folders? ... the problem is about use clause position and path, at my projetc/src folder where I run composer require jenssegers/imagehash now I have as ls: composer.json composer.lock sync.php /vendor autoload.php /composer /jenssegers /imagehash com...
{ "language": "en", "url": "https://stackoverflow.com/questions/41043902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use a razor variable mixed with html ID text? I am getting an error because the razor and html is getting confused by the compiler I imagine. <div id="@Model.MyLabelCars" ...> My model variable is: Model.MyLabel The "Cars" is just raw text that should be in the HTML. So say Model.MyLabel's value is "123" th...
{ "language": "en", "url": "https://stackoverflow.com/questions/45888411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In Vue router, why would this happen? this$1.pending !== route In most cases, when I use this.$router.push() everything works fine. However, there is one case where I'm doing that that throws an exception. The page changes just fine - it is just that the message vue-router.esm.js?8c4f:2007 Uncaught (in promise) appe...
{ "language": "en", "url": "https://stackoverflow.com/questions/57897511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UITableViewCell Contents Are Lost When Scrolling I have a Parser object that contains 15 items from the internet (articles). I am trying to load this items in my TableView. My problem is that I have 8 items visible at start (4 inch retina simulator) but when it starts scrolling, almost all my contents are lost and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19075847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure Pomelo.EntityFrameworkCore.MySql in XML configuration? I am trying to set up Entity Framework Core, with a Pomelo provider, in a .NET Framework (4.6.2) project. At runtime I get an error message The Entity Framework provider type 'Pomelo.EntityFrameworkCore.MySql, Pomelo.EntityFrameworkCore.MySql'...
{ "language": "en", "url": "https://stackoverflow.com/questions/57614123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create directories using foreach in chef (with attributes) How do I create multiple directories if my array has attributes in it? From the chef directory resource documentation I have tested with sample code below and this works. However, I am having trouble if the array contains attributes, and I am not quit...
{ "language": "en", "url": "https://stackoverflow.com/questions/69356059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gradle overwrite plugin repository from init script How can I overwrite all plugin repositories in gradle via the init script? allprojects { repositories { maven { url "foo" } } } only works for regular repositories - not for plugin repositories. Plugins are registerd via the old buildscript{ reposi...
{ "language": "en", "url": "https://stackoverflow.com/questions/50683821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }