text
stringlengths
15
59.8k
meta
dict
Q: Binding Array of Structs with Strings in an Array of Structs I'm new to Swift so I hope this isn't something really silly. I'm trying to build an array of Structs, and one of the parameters is another Array with another Struct in it. I'm not sure if there is a better way, but I thought I was making really good progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/65864121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: javascript function scope accessing "this" I have the following sample code. I'm trying to get the this.key inside the namespace function but it's always returning undefined despite me changing the function call, or using arrow approach etc. class Sample { key = ''; constructor(key) { this.key = key; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72133796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: OS X compile error : Undefined symbols for architecture x86_64: I download the dense trajectory project of Inria and I try to compile it on my mac. https://lear.inrialpes.fr/people/wang/download/dense_trajectory_release_v1.2.tar.gz I got a problem when using make the error I have is : === linking: release/DenseTrack...
{ "language": "en", "url": "https://stackoverflow.com/questions/50873217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type 'string' is not assignable to type '""' when using BehaviorSubject I want to use BehaviorSubject and send Data from a service to a component but get the error in the component : Type 'string' is not assignable to type '""'. Service assembleDataSubject = new BehaviorSubject<string>(''); assembleData$ = this.asse...
{ "language": "en", "url": "https://stackoverflow.com/questions/63519485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change text of delete button on UItable cell I want to change the text of the delete button in red that comes up when we swipe on a table cell. Is that possible?? if possible can you please tell how to do that. Thank you :) \m/ \m/ A: Yes, You can try like this, - (NSString *)tableView:(UITableView *)tableView tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/25175825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Evaluate arrays and assign values in Python I have two multi-dimensional arrays and I would like to evaluate and assign values for those matching and non-matching values. array_1 = array([[1,2,2], [1,2,3],[1,2,1]]) array_2 = array([[1,1,2], [2,2,3],[3,1,1]]) The idea is that for each member of array 1, if the valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/49969215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Recursion to make sequences of a word I was given a homework assignment to find all possible sequences of a given word. eg. if word = 'abc', the below code would return ['a', 'ab', 'abc', 'ac', 'acb', 'b', 'ba', 'bac', 'bc', 'bca', 'c', 'ca', 'cab', 'cb', 'cba']. However, this feels inefficient. I'm just start...
{ "language": "en", "url": "https://stackoverflow.com/questions/52859965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mass inserting into model in rails, how to auto increment id field? I have a model for stocks and a model for stock_price_history. I want to mass insert with this sqlstatement = "INSERT INTO stock_histories SELECT datapoint1 AS id, datapoint2 AS `date` ...UNION SELECT datapoint9,10,11,12,13,14,15,16, UNION SELECT...
{ "language": "en", "url": "https://stackoverflow.com/questions/15420599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vertically centering two divs within body This is a simplified version of a more complex problem. Suppose there are two divs within the body, which have to be vertically centered. Because of some other requirements DOM can't change. So only by changing css I need to vertically align them center. I have tried many ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/31976781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add default option to plucked array in laravel I want to add default option at the start of a plucked array in Laravel 8. How can I achieve this? $departments = Department::pluck('name', 'id')->all(); A: prepend() $departments = Department::pluck('name', 'id')->prepend('Select Department', '');
{ "language": "en", "url": "https://stackoverflow.com/questions/68195448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tell me a fix for ER_BAD_NULL_ERROR in Node.js, mysql crud operation I am an absolute novice at Node.js. So, as I'm learning, I ran into this problem. I am adding codes from backend for CRUD (This index.js may seem incomplete, because I faced the problem halfway and then started seeking the solution.) package.json {...
{ "language": "en", "url": "https://stackoverflow.com/questions/75028021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSURLConnection's connectionDidFinishLoading before redirects In my iOS 5 app, I am trying to resolve redirects of a URL to its the final URL, and only then actually try to open the link in Safari. I'm using code along these lines: http://developer.apple.com/library/ios/#qa/qa1629/_index.html If I use a bitly link t...
{ "language": "en", "url": "https://stackoverflow.com/questions/8529987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: list being printed out weirdly python I have a list like this [796, 829, 1159, 1162] I also have a list like this: ['144 154', '145 151', '145 152', '145 153', '145 154', '146 152', '146 153', '146 154', '147 153', '147 154'] These are not to scale What I want to do is use the first lists elements as index for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16199100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lua get Instance in an instance where the name matches a string I am a javascript developer and am starting to use lua. When i write code such as: var obj = { prop: "Hello World" } , propName = "prop"; //and to fetch the value: console.log(obj[propName]); /as apposed to: console.log(obj.propName) //undefined in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58702596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What characters can be used for up/down triangle (arrow without stem) for display in HTML? I'm looking for a HTML or ASCII character which is a triangle pointing up or down so that I can use it as a toggle switch. I found ↑ (&uarr;), and ↓ (&darr;) - but those have a narrow stem. I'm looking just for the HTML arrow ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2701192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1370" }
Q: return first instance of unmatched regex scala Is there a way to return the first instance of an unmatched string between 2 strings with Scala's Regex library? For example: val a = "some text abc123 some more text" val b = "some text xyz some more text" a.firstUnmatched(b) = "abc123" A: Regex is good for matching...
{ "language": "en", "url": "https://stackoverflow.com/questions/38022320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SAS IOM Data Provider - Access Denied - SSIS connection I'm looking for guidance into how to integrate with the SAS IOM Data Provider through SSIS. It works fine when using SAS software but when trying to connect using the SAS IOM Data Provider in SSIS I receive the error message "Access is denied". The server name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58888755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print one line from ArrayList based on a textfile? Right now we can print out one line from out from a textfile by pressing the line number. Problem is when we are able to print out a line number again (products), until we reach the limit of products in our textfile. How can we stop the loop so it only...
{ "language": "en", "url": "https://stackoverflow.com/questions/43740502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Custom-shaped tags with background images I'm trying to implement a popover design. Each popover has a header with a dynamically generated background image on it. The design calls for a pointer at the top of the header, but I cannot think of a way to implement this and maintain the background image. Here's the cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/31735240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In Python, convert list to dict so that n-th element is a key Question: how to efficiently and pythonically convert a list of lists my_list to a dict my_dict so that zeroth element of every nested list is the key and remaining elements are a value (also list). Example: Input: my_list = [['a', 'b'], ['b', '...
{ "language": "en", "url": "https://stackoverflow.com/questions/44698288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to send or stream live audio from system input over the internet with C# in windows form I want to develop an online streaming or radio app like https://mixlr.com I wish to use C#, any framework is fine, ASP.NET MVC, Windows Forms, anything... I would like to stream the audio from a web app. The app will stre...
{ "language": "en", "url": "https://stackoverflow.com/questions/67554802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript index of class I want to loop on each object(building) of a class in javascript, like doing my own .each() jQuery function (because sometimes, I just need the first buildings, not the whole class). Is there a way to get the index of an element in a Javascript class ? Are the classes structured like an arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/18000797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HIVE - Remove database name from heading when exporting to excel I have a table = Table_name,has 3 columns, Select * from Table_name Results appear exactly as below (column headings) Table_name.Col1 | Table_name.Col2 | Table_name.Col3 However, When I export to Excel. Column names are Table_name.Col1 | Table_n...
{ "language": "en", "url": "https://stackoverflow.com/questions/60106738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does firebase verifyIdToken fail on one device after same user logs in on another device? I can successfully log a user into firebase with the signInWithEmailAndPassword and then store the generated id token in local storage. That's all working fine and well. When I log that same user in on another device I get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67578724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gammu-smsd RunOnReceive script results exit status 2 I want to forward an SMS using gammu-smsd RunOnReceive. That is the script I want to run (/var/spool/gammu/forward.sh) and it goes perfectly if I run it from a sudoer or using sudo -u gammu -g gammu /var/spool/gammu/forward.sh #!/bin/bash SMS_MESSAGES=1 for i in...
{ "language": "en", "url": "https://stackoverflow.com/questions/28225682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What version of .NET does OTP.NET use? 1.1 or 2.0 runtime? Also has anyone got any exprience using OTP.NET? A: It's last version uses .NET Framework 2.0. Years ago I gave it a try. But that was not interesting to me those days. :(
{ "language": "en", "url": "https://stackoverflow.com/questions/7094761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to create correct JSON against csv file in Groovy within JSR Preprocessor Complete noob in JMeter.Been trying create a json using CSV file with Groovy and pass the same in the request body in jmeter but unable to create the JSON in required format: Sample2.csv Work Registration - External,3423,115 Jmeter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70675822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to locally test a letsencrypt client? Is there a way to develop a letsencrypt ACME client locally without having a real domain that can be verified? Eg. would is there some test domain that can be used together with the LE sandbox server to fake successful domain verifications? Or is the only way to test and deb...
{ "language": "en", "url": "https://stackoverflow.com/questions/38977858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Not showing 10 random boxes $(function() { max = 25; min = 1; var i = 0; do { var match = Math.ceil(Math.random() * (max - min )- min); $('td').each(function() { i++; console.log( match ); if (i == match) { $(this).addClass('act...
{ "language": "en", "url": "https://stackoverflow.com/questions/14361151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binary XML file, Error inflating class I have searched for the issue, but haven't found a solution. This is my AndroidManifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.solinpromex.vivegrancanaria" android:versionCode="1" and...
{ "language": "en", "url": "https://stackoverflow.com/questions/23174166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby/Rails CalDAV API So I've searched high and low for this, and I can't really seem to find anything conclusive. This seems to be the general case for most things concerning calendars, scheduling, events and the like. So I'm well along in my project, and I've been working on implementing calendaring, events and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/15191623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error Create Datasource JBOSS 7.1.1 FINAL Error when deploying the server I get this error in jboss 7.1.1 final log Error: 09:44:28,645 INFORMACIÓN [org.jboss.modules] JBoss Modules version 1.1.1.GA 09:44:28,865 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA 09:44:28,935 INFO [org.jboss.as] JBAS015899: JBoss AS 7...
{ "language": "en", "url": "https://stackoverflow.com/questions/26803956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unable to use R's future package for lasso regression with glmnet I recently discovered R's future package and have already successfully used it. However I am unable to use this package together with predictions for lasso regressions. In the following toy example I first create some toy data, then fit a lasso regre...
{ "language": "en", "url": "https://stackoverflow.com/questions/51533058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP ftp_connect does nothing I've configured a couple of php codes that connects to my server with the use of ftp connect. It works perfectly when I'm testing it locally, it connects, it goes in, i can access stuff. BUT when I upload it online and try it there. The php code does nothing. It executes all lines befor...
{ "language": "en", "url": "https://stackoverflow.com/questions/1954890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Did the city search data from the Facebook Ads API suddenly change? The City Search call used to return a response where each city had the form: { "name": "Dublin, CA", "key": 220522764, "subtext": "CA, United States" } Now the API returns: { "name": "Dublin", "key": 220522764, "subtext": "Californi...
{ "language": "en", "url": "https://stackoverflow.com/questions/16847107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Task timed out after..." when connecting to a MongoDB database in an AWS Lambda function I am have Node.js script where in the beginning of it I connect to my MongoDB database and get a specific collection and use that within the script. I set this script up in an AWS Lambda function with a timeout of 10 seconds. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/65856399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't the 'Add' type satisfy the constraint 'number'? I tried practicing type gymnastics with typescript.And my goal is Implementing mathematical operations on numeric literals. First of all,I implemented type BuildArray: type BuildArray< Length extends number, Ele = unknown, Arr extends unknown[...
{ "language": "en", "url": "https://stackoverflow.com/questions/73863654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Doctrine2 Custom Type Not Returning Data iam regreting for last two days since came to my mind that i could create encrypted custom type, so that encryption and decryption of data would be done in that type so that i dont need to call those functions evrytime, generally to make my life easier but it turn it into liv...
{ "language": "en", "url": "https://stackoverflow.com/questions/20253166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Ansible to create AWS Application Load Balancer rules I'm trying to use Ansible to create rules for an unconfigured HTTP listener on my existing ALB. I kick things off by retrieving facts for the alb and then use those facts to define an Ansible ALB resource adding the rules I want, but I'm hitting an issue. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/48566902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any reason to make a template template parameter non variadic? If I expect a template template parameter to have one arguement then I could declare it as follows: template<template<typename> class T> struct S { T<int> t_; //other code here } however if I later want to provide a template template pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/21042024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to deliver multiple application versions without confusion? We currently work on multiple branches of our web application. The VCS of choice is SVN. We have: * *v1: /trunk, live application, bugfixing *v2: /branches/1, additional features, without trunk bugfixes There are more steps planned. The current plan...
{ "language": "en", "url": "https://stackoverflow.com/questions/3996176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross join two dataframes by key column using condition in R I have two dataframes. mydata1=structure(list(ID_WORKES = c(58005854L, 58005854L, 58002666L, 58002666L), ID_SP_NAR = c(463L, 1951L, 21L, 465L), KOD_DEPO = c(3786L, 3786L, 1439L, 1439L), KOD_DOR = c(58L, 58L, 92L, 92L), COLUMN_MASH = c(6L, 6L, 5L, 5L), p...
{ "language": "en", "url": "https://stackoverflow.com/questions/57695829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MyBatis select query with IN but without forEach how can I use a select query where I have only two values for one column without using for each loop ? A: Without using IN, you can use OR: SELECT * FROM `table` WHERE co1 = `value1` OR col1 = `value2`
{ "language": "en", "url": "https://stackoverflow.com/questions/44209427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android app timeout how to apply? when it minimized I want to make a exam app I want to apply a feature in my app in this feature when student minimize app then exam will automatically cancelled. so they can't cheat so please tell me what will and how will I do this in Android app in adt. A: In your exam activity,...
{ "language": "en", "url": "https://stackoverflow.com/questions/41626567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Login error connecting to salesforce.com from Flex Has anyone suddenly encountered login errors from their users trying to connect to salesforce.com from a Flex app using as3salesforce.swc? I get the following error... password removed to protect the innocent... App Domain = null Api Server name = na3.salesforce.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/339487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Call Python from Julia I am new to Julia and I have a Python function that I want to use in Julia. Basically what the function does is to accept a dataframe (passed as a numpy ndarray), a filter value and a list of column indices (from the array) and run a logistic regression using the statsmodels package in Python....
{ "language": "en", "url": "https://stackoverflow.com/questions/63686791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Loading Large Datasets in Parallel With Python Multiprocessing TLDR; * *I want to read many files from disk in parallel *My code loads these files very quickly, but merging them into the main process' memory is slow *Am I doing this correctly? Is there a better way to share memory across processes? Background: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68422076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why delegate protocol method is not recognized in UINavigationController I looked at lots of threads about delegation but couldn't find why this isn't working I have UINavigationController in storyboard in Xcode 5 and here is how the delegate is assigned: in MasterViewController I have: // // MasterViewController.h...
{ "language": "en", "url": "https://stackoverflow.com/questions/20728495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting size to be the same as window? I'm trying to use jQuery to set the height of a div so that it takes up the entire window + the height of a header (so that you can scroll the header off the page) but no more than that. I would think the height of the div would be the height of the window + the height of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30877507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Redirection to base url with GET array in codeigniter I'm trying to make the pagination work with the get parameter. Only that, the rest of the site will use uri. The problem is this, as soon as I append ?something=zyx it redirects to the base url. Config: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-&='; $config...
{ "language": "en", "url": "https://stackoverflow.com/questions/8310382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add an Internet Gateway to a VPC using AWS CDK? I am trying to produce the correct CDK scripts (TypeScript) to create an environment with a Lambda (accessed via API Gateway) that can call an RDS (Sql Server instance). I believe I have it mostly working, but I wanted to connect to the RDS instance from my deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/58812479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: how do i select value from dropdownlist to mode or to controller mvc Model public class Company { public int ID { get; set; } .... public int WorkZoneID { get; set; } public IEnumerable<SelectListItem> WorkZones { get; set; } Controller: ViewBag.Workzones = cmpRep.GetWorkzoneDrop(); Repository: pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/35279612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to decouple user Identity from the application data I am part of a new startup with some friends from school, and I am developing a REST API as back-end for a web application/website. I have recently gratuated and does not have much experience with large projects. Without going in detail about the specific busin...
{ "language": "en", "url": "https://stackoverflow.com/questions/42189415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking if a directory exists in Linux using perl I am programming in linux using perl. I am creating a program where a user can input a directory and a filename. The program will then check if the given directory exists or not and also searches the given filename in that directory. But my problem is verifying if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38692927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Python - filtering in Django I'm new in python/django and i have a problem, i'm trying to use checkbox filtering in my html table and i don't really know how to do it. This is what i have now I want to add these models.py class Tags(models.Model): tag_frequency = models.CharField(max_length=250) views.py @logi...
{ "language": "en", "url": "https://stackoverflow.com/questions/43780923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to have MySQL return multiple column of values based on a different benchmark? I have a MySQL database table (sales) consisting of sales data with their dates. | Sales ID | Date | Values | |---------------------------------| | 1 | 01/01/2020 | 1,500 | | 2 | 02/01/2020 | 2,000 | | 3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66444063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: do a task for each server from a specific group I have a host file with: [synology] 192.168.1.111 ansible_sudo_pass='dfg78G67' [web] 139.59.xx:8682 server_name=do1 sql_server_id=1 sql_auto_increment_increment=1 139.59.xx:8682 server_name=do2 sql_server_id=2 sql_auto_increment_increment=2 For each server I have his...
{ "language": "en", "url": "https://stackoverflow.com/questions/36885855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to support large dropdowns Say I have a report that can be restricted by specifying some value in a dropdown. This dropdown list references a table with > 30,000 records. I don't think this would be feasible to populate a dropdown with! So, what is the best way to provide the user the ability to select a va...
{ "language": "en", "url": "https://stackoverflow.com/questions/2444951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: adding/embedding youtube videos in asp.net page I want to add youtube videos thumbnails to my asp.net website like the videos section in http://jtsplatmaster.com/. On this website, If you click the right thumbnails, video will start playing in the main section without page refresh. Which control so I need to use. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12389662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Matrix Cyberpunk Solver I have input data like this: 4 #length of way BD 1C BD 55 #way 5 #matrix size (5x5 now) 1C BD 1C 55 55 #matrix 55 55 55 1C 1C E9 1C 55 55 E9 BD 1C 1C 1C BD 55 BD E9 55 1C I need to print the right way to solving matrix. The rules of solving are this: * *...
{ "language": "en", "url": "https://stackoverflow.com/questions/65979095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replace/fill columns base on agg of multiple columns I have a DF as follows: | feat1 | feat2 | feat3 | feat4 | label | |--------:|---------|----------|---------|-------| | 0.1856 | -0.186 | 1.681 | 0.56781 | 0 | | 0.78671 | 0.1761 | -0.671 | 0.176 | 0 | | -1.681 | 0.15689 | -0.18689 | 0.6...
{ "language": "en", "url": "https://stackoverflow.com/questions/65489859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: U-Boot SPL Debug Messages I've been trying to get U-Boot SPL to print debug messages. I've noticed plenty of debug() functions that aren't printing to the serial console, however when I define the DEBUG preprocessor macro, I still don't see those messages. Is this something the SPL can even do? Especially since th...
{ "language": "en", "url": "https://stackoverflow.com/questions/45721081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scroll to div with some px in less I find here in Stack Overflow a simple script written in jQuery which allows to have a smooth scroll to a specific div id, clicking a button: $("#button").click(function() { $('html, body').animate({ scrollTop: $("#myDiv").offset().top }, 2000); }); Everything works perfectly,...
{ "language": "en", "url": "https://stackoverflow.com/questions/36308535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Attempting to access the member of a struct through a property on an enclosing class I get an error when trying to run this code. I can't seem to find the root cause. public class MyClass { public MyClass() { ListView listView; listView = new ListView(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23080398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Log vscode command execution for shortcuts mapped to multiple commands Is there a way to find what vscode command was executed. For example, 'tab' is a keyboard shortcut for a lot of commands (depending on the context). Now I wish to find a way to display which specific command was pressed (insertSnippet or insertNe...
{ "language": "en", "url": "https://stackoverflow.com/questions/54777933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Insert "element" among other "elements" of the array (loop) php my code causes the images to appear randomly within the page. But how to insert an "element" (in my case would be a div) between these images? <?php $myImagesList = array ( 'image1.png', 'image2.png', 'image3.png', 'image4.png' ); shuff...
{ "language": "en", "url": "https://stackoverflow.com/questions/38285086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: OpenCV Surf and Outliers detection I know there are already several questions with the same subject asked here, but I couldn't find any help. So I want to compare 2 images in order to see how similar they are and I'm using the well known find_obj.cpp demo to extract surf descriptors and then for the matching I use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/8855020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Terminate a process and close all its opened listening ports On my Qt application, I run an external executable on a separate process like this: QProcess *server = new QProcess(); server->start("./server.exe"); External executable starts a server on 127.0.0.1 listening on port 18383. Then at some point, I terminat...
{ "language": "en", "url": "https://stackoverflow.com/questions/54017612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails: Convert future meeting time in one time zone to another time zone Using flatpickr, I allow the user to specify the time and date of a future meeting that includes their time zone. The result is the following value: Mon May 25 2020 12:00:00 GMT-0600 (Mountain Daylight Time) They can choose a team member to mee...
{ "language": "en", "url": "https://stackoverflow.com/questions/61823816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java.util.MissingResourceException I am getting below exception while running an application. This application read abc.properties file, Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name abc, locale en_US at java.util.ResourceBundle.throwMissingResourceException(Reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/2636521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Signal handlers reset every time I'm writing a C program that does the following: Monitors which signals are sent to it. Counts how many times SIGUSR1 and SIGUSR2 have been sent. Terminates when SIGTERM has been sent but first prints out how many times SIGUSR1 and SIGUSR2 have been sent. Please note that this is a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/54064015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql throwing query error yet finishing query just fine-why? I am getting Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in *filename* on line 81 While running a query to build a chart. The query gets data from the mysql db and uses it to build the chart. Usually, I get thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/288603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect a URL without a query string to a URL with a query string? I've looked around for the answer to my question but only to be confused even more. I'm hoping somebody can help me... I need to redirect this URL: http://www.testsite.co.uk/ecommerce/cabinets/aluminium_cabinets To: http://www.testsite.co.uk...
{ "language": "en", "url": "https://stackoverflow.com/questions/34515164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android alert dialog blank space when setting a view I have a question. I made an alert dialog that is showing an message and view with a "do not show again" check-box. When i'm running this app on android KK it is displaying fine, however when I run it on android JB it is showing me a blank space like on this image...
{ "language": "en", "url": "https://stackoverflow.com/questions/25326665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: QueryDSL DateTime field formatted projection I trying to do a query that returns the date and time part of a Datetime field using QueryDSL. The query in plain SQL looks like this: select convert(varchar, FELectura, 103) as sDate, convert(varchar, FELectura, 108) as sTime from dbo.T2_LecturaEstacionClima; Whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/28548640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: No content after smarty gzip filter I tried smarty gzip plugin smarty gzip plugin. $stpl->loadFilter('output','gzip'); $stpl->display('file:'.$cnf->site_root.$cnf->client_tpl_path.$slang.'/main.tpl'); After this, my site look like that: I don't know why my browser not decoded gzip.
{ "language": "en", "url": "https://stackoverflow.com/questions/35030780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encountering lag when updating a CardView item in a RecycleView i'm having an issue working with CardViews . I`ve created a CardView containing 1 TextView and 2 ImageViews , which gets displayed in an RecycleView . When i try to update the contents of one of the CardViews (created 5 cards for testing) the interface ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32554358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Next.JS build with websocket connection I'm trying to build a next.js application which uses signalr for to talk to webservices. However, during the build it tries to connect to the websocket which is not available at build-time and therefore the build fails with the following error: FailedToNegotiateWithServerError...
{ "language": "en", "url": "https://stackoverflow.com/questions/71766443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you find the index of an accordion tab containing a specific element within a jQuery UI Accordion? I have an accordion (an archive) of links/dates. When a user clicks one I am trying to have the accordion expand to the current selected link. To do this, I search the accordion for the link which matches the cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/40513347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Tensorflow frozen .pb model to keras model I have tensorflow .pb frozen model and i would like to retrain this model with new data and in order to do that i would like to convert the tf .pb frozen model to a keras model. i was able to visualise layers and weight values and i wana know if it is possible to co...
{ "language": "en", "url": "https://stackoverflow.com/questions/69828783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp( ) Performing hot reload... Syncing files to device Android SDK built for x86... Reloaded 0 libraries in 505ms. ======== Exception caught by widgets library ======================================================= The following FirebaseExcepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/66937824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Display module in all pages of site except admin pages DNN7 I am using DNN7. I have added a HTML module on my DNN7 site which needs to displayed on all the pages except admin pages.So i configured in settings of the module which said display module on all pages.But the problem i am facing is when i check this option...
{ "language": "en", "url": "https://stackoverflow.com/questions/17696282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: R: Duplicating a subset of row values, based on condition, across a whole dataframe I have a dataframe df containing count data at different sites, across two days: day site count 1 A 2 1 B 3 2 A 10 2 B 12 I would like to add a new column day1count that represents the count v...
{ "language": "en", "url": "https://stackoverflow.com/questions/60871343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Take screenshot of element (jpg,png) and then download it. Javascript I want to make a JS function which can take the screenshot from element and then download it. <body> <h1>Sample text</h1> <h2>Sample text</h2> <table width="1080px" height="1920px" border="1" style="border-collapse:collapse"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67850366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authentication failed when trying to download azure API Management locally I am trying to download the Azure API Management Repository locally using Git Bash following he steps on this page: https://learn.microsoft.com/en-us/azure/api-management/api-management-configuration-repository-git. The problem is that I keep...
{ "language": "en", "url": "https://stackoverflow.com/questions/73501306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separating code into DLL's away from exe We update our WPF app multiple times a week, this is a pain point as Customers are repeatedly asked to let the exe through their firewall. To get around this, I will try taking most of the code (including xaml) out of the exe, so the exe never changes. The below method seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14464123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ECDSA sign using OpenSSL without ASN1 encoding the hash Im doing ECDSA signatures using dgst command with OpenSSL as follows: openssl dgst -sha256 -sign key.pem -out my_signature data_file which works just fine. However I read in this SO answer that it first SHA256 hashes the data_file, and ASN.1 encodes the hash b...
{ "language": "en", "url": "https://stackoverflow.com/questions/25421399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to update label.text in asp.net from code behind-values I want to popup a message everytime I click on a button. This popup shows some information and updates its labels according to my code behind-values. I tried different things like declare variable either protected or public: Protected test As string = "tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/32439847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fucnction giving NaN response when calling it through another function If I use a click event to call this function it works fine: canvas = document.getElementById("svg"); function relMouseCoords(event){ var totalOffsetX = 0; //coordinates of corner of canvas var totalOffsetY = 0; var canvasX = 0; var canva...
{ "language": "en", "url": "https://stackoverflow.com/questions/28625943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sphinx unable to import some modules I am using to generate documentation for codebase. While building the docs, I could see that they were built for some modules only and many were left undocumented with warning in console - failed to import <module-name>.Even after going through official documentation and multiple...
{ "language": "en", "url": "https://stackoverflow.com/questions/68613682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++: Undefined behavior caused by...? int size = 0; int sorted[] = {}; int symbols[] = {8, 9, 13, 16, 16, 16, 17, 17, 17, 18, 18, 18, 20, 20, 27, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 48, 48, 48, 49, 49, 49, 49, 50, 50, 50, 50, 51, 51, 51, 51, 52, 52, 52, 53, 53, 53, 54, 54, 54, 55, 55, 55, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17004164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net MVC2: ModelState is invalid, but I don't know why I'm using MVC2 with data annotations for validation on my page. I require a name and a valid birth date to be present. I'm providing both, and I break into the date validator to ensure that the birth date is valid (and it is), but for some reason Model.IsVali...
{ "language": "en", "url": "https://stackoverflow.com/questions/2001408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: LazyVStack ScrollView Performance The performance of a LazyVStack in a ScrollView is bad even with simple views. Whereas scrolling with a VStack is buttery smooth, scrolling with a LazyVStack is really choppy. struct ContentView: View { var body: some View { ScrollView { // VStack { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65636204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot embed image url in Play 2.6 reusable block In Play 2.5.9 , I could embed images in a reusable block. Since moving to Play 2.6.3 , the images cannot be displayed. See https://github.com/raychenon/play-table-of-contents/blob/master/app/views/thankyou.scala.html#L5 Any full image urls on https or http cannot be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46547126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF: how do I use a include with a where statement? I have an Employee with an Employment and I want to get a list of all employees with a valid employment. The valid code in SQL would be SELECT * FROM dbo.Employees AS employee INNER JOIN dbo.Employment AS employment ON employee.ID = employment.Employee_ID AND e...
{ "language": "en", "url": "https://stackoverflow.com/questions/71693378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Error: formGroup expects a FormGroup instance. Please pass one in I am new to Angular 2 and unable to resolve this issue even after going through other stack overflow answers. I have just now started learning angular reactive forms and want to try the first example but am stuck. Please help. Here is the HTML...
{ "language": "en", "url": "https://stackoverflow.com/questions/48054863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Use item name stored in old for loop, inside a new for loop This program I'm working on is going to search through multiple paths (located in a JSON list) of a URL and find one that's not being used (404 page). The problem = I want to print what the path is when I come across a 404 (when I can find an error div). Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/63421515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding Coefficients of LFSR I am studying cryptography from Cristof Paar's book. There is a question about LFSR's I have trouble with. I just can't understand one point here. Question is this: We want to perform an attack on another LFSR-based stream cipher. In order to process letters, each of the 26 uppercase let...
{ "language": "en", "url": "https://stackoverflow.com/questions/27207940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I implement HTML inline styling using variables in VBA? I am using VBA to generate a new Outlook Email. My code works as expected when assigning a hard coded table width, however I would like to assign width: 500px; to a variable and use the variable throughout the body of my email. How can I achieve this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61114606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send HTTP error from http-proxy? Is it possible in http-proxy to do not forward requests to the server, but at once return a response with some error code, for example with 401 Unauthorized? I need analyze request body and in some cases do not forward requests to the server. is it possible to do at all? Or ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/44410963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }