text
stringlengths
15
59.8k
meta
dict
Q: How to modify non-configurable, non-writable properties in Javascript? I'm writing a simple EventEmitter is ES5. The objective is to ensure that all properties on EventEmitter instances are non-writable and non-configurable." After 6 hours of racking my brain I still can't figure out how to, increase the listenerCou...
{ "language": "en", "url": "https://stackoverflow.com/questions/41069927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image hiding under button android Image view is hiding under the button what changes I can do so that the image view can be above the button view pager also have bottom padding so that button can properly accommodate. The image is showing on the other parts but not above the button. <?xml version="1.0" encoding="u...
{ "language": "en", "url": "https://stackoverflow.com/questions/70017985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling multiple exceptions I have written a class which loads configuration objects of my application and keeps track of them so that I can easily write out changes or reload the whole configuration at once with a single method call. However, each configuration object might potentially throw an exception when doin...
{ "language": "en", "url": "https://stackoverflow.com/questions/2444580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the meaning of Duration in Amazon RDS Backup window What does Duration specify? Does it mean that the backup will start between 01:00 to 01:30 and keep running until it has completed? Or does it have a different meaning? A: The duration window indicates the time in which the backup will start. I can start ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58445170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Uncontrolled input of type text to be controlled warning I'm trying to create a multi step registration form using React and Redux. The main component is as follows : import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actionCreators ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38014397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Interleaving the rows of two different SQL tables, group by one row My Sql query is like this $view = mysql_query ("SELECT domain,count(distinct session_id) as views FROM `statistik` left join statistik_strippeddomains on statistik_strippeddomains.id = statistik.strippeddomain WHERE `an...
{ "language": "en", "url": "https://stackoverflow.com/questions/39852573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query conditions to insert data from a form What I'm trying to do is: If the age input in my form = 28, 30, 25 or 21 then I want to auto insert value 8 in the column (VE), else keep it empty. Is this the right way to do that? if($form_data->action == 'Insert') { $age=array(28, 30, 25, 21); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58903757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing array value is null Hello I have decoded a json string that I sent to my server and Im trying to get the values from him. My problem is that I cant get the values from the inner arrays. This is my code: <?php $post = file_get_contents('php://input'); $arrayBig = json_decode($post, true); for...
{ "language": "en", "url": "https://stackoverflow.com/questions/21893968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Composer update show this error: VirtualAlloc() failed: [0x00000008] Composer worked find yesterday, but today after I trying install: composer require --prefer-dist "himiklab/yii2-recaptcha-widget" "*" While run composer update command it show me error: VirtualAlloc() failed: [0x00000008] VirtualAlloc() failed: [0...
{ "language": "en", "url": "https://stackoverflow.com/questions/49994946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get the original values of in an Update SQL Trigger I'm not very familiar with triggers so thank you for your patience. I have a database table with four columns for user text input and just four date columns showing when the user text input was last changed. What I want the trigger to do is to compare the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10453001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create Executable progeam of addition in C on linux I am new to Linux. Sorry I am asking very basic question. On windows I have Main.cpp file having code for addition of two number. In Visual studio gives me .exe. But how to do it on Linux. On my Linux machine have gcc compiler no IDE. What I write in Make file and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39793206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: QProgressBar updates as function progress How to initializa the operation of QProgressBar, I already declare her maximum, minimum, range and values. I want to assimilate the progress of QProgressBar with the "sleep_for" function. Current code: void MainPrograma::on_pushCorre_clicked() { QPlainTextEdit *printNaTe...
{ "language": "en", "url": "https://stackoverflow.com/questions/64987457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preallocation and Vectorization Speedup I am trying to improve the speed of script I am trying to run. Here is the code: (my machine = 4 core win 7) clear y; n=100; x=linspace(0,1,n); % no y pre-allocation using zeros start_time=tic; for k=1:n, y(k) = (1-(3/5)*x(k)+(3/20)*x(k)^2 -(x(k)^3/60)) / (1+(2/5)*x(k)-(...
{ "language": "en", "url": "https://stackoverflow.com/questions/21564052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scala and Akka HTTP: Request inside a request & issue with threads I am new to learning Scala, Akka Streams and Akka HTTP, so apologies beforehand if the question is too basic. I want to do an HTTP request inside an HTTP request, just like in the following piece of code: implicit val system = ActorSystem("ActorSys...
{ "language": "en", "url": "https://stackoverflow.com/questions/61038711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dealing with four digits: memcache sorts 1000 before 150 from least to greatest In app engine I retrieve a list of items stored in memcache: items = memcache.get("ITEMS") and sort them by amount and price: items.sort(key = lambda x:(x.price, x.amount)) Which works most of the time, when the amount is three digits....
{ "language": "en", "url": "https://stackoverflow.com/questions/21960862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do codigniter 3.1.7 support hmvc? I tried but no luck From the very first answer of this How to implement HMVC in codeigniter 3.0? I tried all steps with codigniter 3.7.1 but no luck. I am still getting 404. $config['modules_locations'] = array( APPPATH.'modules/' => '../modules/', ); Then I tried putting the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48606954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving time - Compiling c++ and plotting at the same time gnuplot Hi in order to save time whene I execute the code I command this line : g++ name.cpp && ./a.out where nome,cpp is the name of the file that contains the code. If I succesively I need to plot some data generated by the exucatable with Gnuplot there i...
{ "language": "en", "url": "https://stackoverflow.com/questions/50157509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to put a Hyphen in column Total Cost Value in power bi I have a table with blank value, but i want a hyphen "-" to appear when the value is null. Using an expression similar to this: var VLGROUP = (Expression…… RETURN IF( ISBLANK(VLGROUP), BLANK(), VLGROUP) Someone know if is possible? Thanks!! enter image descr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63953889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Constraints on an embedded subclass - Grails, GORM, Mongo I've been pulling my hair out with this issue for a couple of days. I have an embedded subclass with several specified constraints. My issue is that these constraints are never enforced, I'm using grails 2.3.11 and the mongodb plugin 3.0.2. Here is my setup (...
{ "language": "en", "url": "https://stackoverflow.com/questions/26994126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL -> PHP Array -> Json need output in array plus object format i am trying to fetch data from MySQL and show it in JSON format This is the partial PHP code $sql = "SELECT item, cost, veg, spicy_level FROM food1"; $result = $conn->query($sql); while($row = $result->fetch_assoc()) { echo json_encode($ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/28872111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firebase hosting randomly shows "Site Not Found" at custom domain We recently launched our firebase application at https://tnb-widgets.firebaseapp.com/ and https://thenextbid.com/ (the last one being our custom domain). It all works smoothly except for some seemingly random moments in which it shows a page stating "...
{ "language": "en", "url": "https://stackoverflow.com/questions/52877497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reduce Time for Checking Out Code in Visual Studio Online I'm trying out VSO and it's taking over 2 minutes to sync with a GitHub repository. It appears that it's checking out the whole thing on every build. I made sure that the "clean" box is unchecked but it had no effect. Any ideas on how to get it to cache th...
{ "language": "en", "url": "https://stackoverflow.com/questions/31390786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to skip a line when reading from a file I am reading stuff from a file and this is the format : c stands for circle and the double is the radius, r for rectangle and the double is width and height respectively and t for triangle and the double represents side length: c 12 c 2 r 3 4 c 2.4 t 2.9 3 c // wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/49227626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to filter post by join condition? I have a table called wpps_posts which have this structure: ID | post_title | post_type 1 foo zoacres-property 2 foo2 zoacres-property 3 foo3 post I would like to return all the posts with type zoacres-property and also I want filter them...
{ "language": "en", "url": "https://stackoverflow.com/questions/63576155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert the existing nested dictionary output in string to a list to iterate over it I have a rest api which provides a list of key value pair's and we need to fetch all the id's from this json output file. Contents of the json file { "count": 6, "results": [ { "key": "roles", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72434671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to store Image profile(jpg file) and PDF documents in AWS DynamoDB? I am migrating my Spring MVC services to the AWS API Gateway using Python Lambda with Dynamo Db , I have endpoint where i can store or retrieve the people image and also the reports which is PDF file , can you please suggest me which is the best...
{ "language": "en", "url": "https://stackoverflow.com/questions/47903547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Split a column after specific characters I have a field data in mysql db. For example quot_number ==================== UMAC/ARC/161299/801 UMAC/LAK/151542/1051 UMAC/LAK/150958/00050 Iam expecting an output as below: 801 1051 00050 Actually the last numbers or characters after the last '/' has to be shown in my sql...
{ "language": "en", "url": "https://stackoverflow.com/questions/41219251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTTPS connection using PEM Certificate I'm trying to POST HTTPS requests using a PEM certificate like following: import httplib CERT_FILE = '/path/certif.pem' conn = httplib.HTTPSConnection('10.10.10.10','443', cert_file =CERT_FILE) conn.request("POST", "/") response = conn.getresponse() print response...
{ "language": "en", "url": "https://stackoverflow.com/questions/5896380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: TFS configure variables on Release definition instantiation I have a release definition setup with several tasks. When a developer wants to create a release from this definition, i'd like to give them the option of selecting which features they'd like to release (turn on/off tasks). Ideally this would be via the Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/43777906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS S3 Internal Server Error: Tyring to upload pdf file on after another I'm trying to generate PDF file using FPDF and PHP and later upload to AWS-s3 and generate the url. When I executed the below code in my local-machine Using XAMPP it's generating files and uploading it to S3. But When I deployed in AWS server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48921630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto-generate @version value in javadoc For the @version tag in javadoc, I use the same value as in BuildConfig.VERSION_NAME. I would like to inject that value, instead of changing every file for each release. I tried: * @version {@value BuildConfig#VERSION_NAME} and * @version @versionName (and add -tag versionNam...
{ "language": "en", "url": "https://stackoverflow.com/questions/58002547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to retrieve data from MongoDb Atlas and display in an ejs file using mongoose and Nodejs Thanks for the help in advance. I am trying to retrieve data from my database- myFirstDatabase and collection named as 'shipment' in mongondb. This is a nested schema but I am only interested in the parent data for now. I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/69067410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: node.js app running using forever inaccessible after a while I have a node.js server and a java client communicating using socket.io. I use this api https://github.com/Gottox/socket.io-java-client for the java client. I am using forever module to run my server. Everything works well but after some time , my server b...
{ "language": "en", "url": "https://stackoverflow.com/questions/17628274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No 'Access-Control-Allow-Origin' header is present on the requested resource. Laravel 5.4 with cors package Hi I was following this tutorial regarding Laravel and VueJs communication. https://www.youtube.com/watch?v=5hOMkFMxY90&list=PL3ZhWMazGi9IommUd5zQmjyNeF7s1sP7Y&index=8 I have done exactly like it was said in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43503718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Swift: How to not load AppDelegate during Tests I have an OS X application which on startup loads some data from a server and pushes notifications to the NSUserNotificationCenter. Now I have the problem that this also happens during my unit tests. I found no way yet to prevent this. Of course I could stub the HTTP l...
{ "language": "en", "url": "https://stackoverflow.com/questions/39116318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to use std::transform with a lambda function that takes additional parameters In C++ 11 (or higher) can I use std::transform and a lambda function to transform a vector that also takes other parameters? For example, how do I pass param to the lambda function below? std::vector<double> a{ 10.0, 11.0, 12.0 }; std...
{ "language": "en", "url": "https://stackoverflow.com/questions/53011875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I add an intranet-only endpoint to my IIS hosted WCF service? I have a WCF service hosted in IIS that uses basicHttpBindings. I'm adding a new method to the ServiceContract that will be called from a console app to perform an administrative task. I got to thinking, well wouldn't it be nice if I gave this met...
{ "language": "en", "url": "https://stackoverflow.com/questions/29483797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A Quickselect C Algorithm faster than C Qsort I have tried to implement a C QuickSelect algorithm as described in this post (3 way quicksort (C implementation)). However, all I get are performances 5 to 10 times less than the default qsort (even with an initial shuffling). I tried to dig into the original qsort sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/52016431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Get values with no repeated data I have a query like this: SELECT P.LegacyKey ,D.DesignNumber FROM tbl1 AS [SO] GROUP BY D.DesignNumber,P.LegacyKey ORDER BY LegacyKey it returning values like: +-----------+--------------+ | LegacyKey | DesignNumber | +-----------+--------------+ | 17134 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54993000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @IBDesignable doesn't work in "old" project I have UIView subclass, for example, this: @IBDesignable class GradientView: UIView { @IBInspectable var firstColor: UIColor = UIColor.red @IBInspectable var secondColor: UIColor = UIColor.green @IBInspectable var vertical: Bool = true override func awak...
{ "language": "en", "url": "https://stackoverflow.com/questions/45217918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing object messages in Azure Queue Storage I'm trying to find a way to pass objects to the Azure Queue. I couldn't find a way to do this. As I've seen I can pass string or byte array, which is not very comfortable for passing objects. Is there anyway to pass custom objects to the Queue? Thanks! A: You can use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/8550702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to add FTP site in IIS 7 in Windows Vista Home premium edition How to add the FTP server in IIS 7 using Windows vista Home Premium Edition? A: Please check if FTP 7.5 can be used on your Windows Vista machine, http://www.iis.net/expand/FTP If not, FileZilla is a free alternative, http://filezilla-project.org/do...
{ "language": "en", "url": "https://stackoverflow.com/questions/2524250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NLog not creating a log file inside AWS ec2 Linux I have a .net core application in AWS ec2 linux and it does NOT create a log file. The application on AWS ec2 linux is published with Deployment Mode: Self-contained and Target Runtime: linux-x64. I tried it on windows and it does create a log file but somehow it's n...
{ "language": "en", "url": "https://stackoverflow.com/questions/57800735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EditText length with "exceptions" I have an EditText and I'd like to set maxLength to four numbers (in range -9999 to 9999). Problem is that if I setandroid:maxLength="4" in xml I can write there e.q "9999" but it doesn't accept "-9999" because of length (5 char). Is there any opportunity how to solve it (programati...
{ "language": "en", "url": "https://stackoverflow.com/questions/36794789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding hashCode(), equals() and toString() in Java I am beginner in Java and although I have a look at several questions and answers in SO, I am not sure if I completely understand the usage of hashCode(), equals() and toString() in Java. I encountered the following code in a project and want to understand th...
{ "language": "en", "url": "https://stackoverflow.com/questions/69024813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to reference a variable from one activity to another I'm trying to get a variable string and integer from Main2Activity.java to MainActivity.java But the problem is that I don't want to use the: startActivity(intent); For it to work. I just want the information to be passed so I can use it in my current activ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48392826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Only grep img tags that contain a keyword, but not img tags that don't? Using grep/regex, I am trying to pull img tags out of a file. I only want img tags that contain 'photobucket' in the source, and I do not want img tags that do not contain photobucket. Want: <img src="/photobucket/img21.png"> Do Not Want: <img ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34882511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Icon color of html5 input date picker How can I change the icon color of the native HTML5 date input (<input type="date" />)? Is it possible to change the calendar icon color to HEX: #018bee or RGB: (1, 139, 238)? I saw a post saying that it was possible using filters, but I was unsuccessful. Codepen Example: https...
{ "language": "en", "url": "https://stackoverflow.com/questions/66974856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i display data in detail component from list component? i have problem to display data from one component to another component. i put the data which i fetch from the serve in prova and i display the list of all work. but I can't transfer the data that is on "prova" to another component to make the details vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/65146369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shifting elements of an array to the right I am aware that there are solutions for shifting arrays out there. However no solution works for me. The code should achieve the following: The method shift(int[] array, int places) takes in an array, shifts the elements places - times to the right and replaces the "leftove...
{ "language": "en", "url": "https://stackoverflow.com/questions/70135652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Write Json Webhook to Cloud Firestore with Cloud Functions. Cloud Function Failed to Deploy. Function failed on loading user code I have a Webhook that delivers a complex JSON payload to my Cloud Function URL, and writes that JSON to collections & documents within my Cloud Firestore. I believe the Node.JS Runtime on...
{ "language": "en", "url": "https://stackoverflow.com/questions/69398084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Server-side redirect that transfers to another server From this question, I concluded that Response.Redirect simply sends a message (HTTP 302) down to the browser. Server.Transfer happens without the browser knowing anything, the browser request a page, but the server returns the content of another. So doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/34425625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get name of windows service from inside the service itself I have a bunch of win services written in .NET that use same exact executable with different configs. All services write to the same log file. However since I use the same .exe the service doesn't know its own service name to put in the log file. Is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/773678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Problems with quad in sympy Can someone explain, why: from sympy.mpmath import quad x, y = symbols('x y') f, g = symbols('f g', cls=Function) f = x g = x+1 u_1 = lambda x: f + g quad(u_1,[-1,1]) gives a mistake and from sympy.mpmath import quad x, y = symbols('x y') f, g = symbols('f g', cls=Function) f = x g = x+1...
{ "language": "en", "url": "https://stackoverflow.com/questions/22326181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to wrap ConcurrentDictionary in BlockingCollection? I try to implement a ConcurrentDictionary by wrapping it in a BlockingCollection but did not seem to be successful. I understand that one variable declarations work with BlockingCollection such as ConcurrentBag<T>, ConcurrentQueue<T>, etc. So, to create a Concu...
{ "language": "en", "url": "https://stackoverflow.com/questions/10736209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Shaping json object rows[ {0: c:[{0: {v:'2013'}, 1: {v: 'apple'},2: {v: '200'}}]}, {1: c:[{0: {v:'2014'}, 1: {v: 'apple'},2: {v: '1000'}}]}, {2: c:[{0: {v:'2013'}, 1: {v: 'orange'},2: {v: '200'}}]}, {3: c:[{0: {v:'2014'}, 1: {v: 'orange'},2: {v: '1000'}}]} ] I am trying to reshape it into something like thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/29170350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In python, how do I print a table using double for loops? Here is my python code, from fractions import gcd print "| 2 3 4 5 6 7 8 9 10 11 12 13 14 15" print "-----------------------------------" xlist = range(2,16) ylist = range(2,51) for b in ylist: print b, " | " for a in xlist: print gcd(a,b)...
{ "language": "en", "url": "https://stackoverflow.com/questions/35260965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongo/Monk count of objects in collection I'm 2 hours into Mongo/Monk with node.js and I want to count how many objects I have inserted into a collection but I can't see any docs on how to do this with Monk. Using the below doesn't seem to return what I expect var mongo = require('mongodb'); var monk = require('monk...
{ "language": "en", "url": "https://stackoverflow.com/questions/22972121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: matching div heights with jQuery trying to match div heights using jQuery, and it seems I can only get it to match the smallest height, but I want it to match the tallest column. from what I can tell the code should find tallest column? so I am very confused, here is what I am using function matchColHeights(col1, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/8595657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zebra printer ignores the command I have got Zebra GC420d. Using zebra 0.0.3a, this is an example of my issue: label = """ ^XA ^FO10,10 ^A0,40,40 ^FD Hello World ^FS ^XZ """ from zebra import zebra z = zebra('Zebra_GC420d') z.output(label) The printer ignores the command and prints the contents of the variable "la...
{ "language": "en", "url": "https://stackoverflow.com/questions/19790053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Node.js WebSocket server is only accepting one client from my local machine I have a really simple Node.js server that uses 'ws' for WebSockets, but it's only accepting one client in what I believe is a multi-client server. Here's literally the program I'm using to test it right now. Short and simple, but isn't work...
{ "language": "en", "url": "https://stackoverflow.com/questions/62316993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should a C++ temporary be constant? I have a C++ class that has the following interface: class F { public: F(int n, int d); // no other constructors/assignment constructors defined F& operator *= (const F&); F& operator *= (int); int n() const; int d() const; }; And I have the following code...
{ "language": "en", "url": "https://stackoverflow.com/questions/34478737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Fontawesome is installed - icons do not appear After installing fontawesome, I copied the icon I wanted to appear in my word document from http://fontawesome.io/icons/ When I paste the icon in my word document, it does not appear. I tried various icons. Various signs appear, from vertical stripes to greek letters, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43324804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: satellizer req.headers.authorization not defined in nodejs demo I'am using satellizer to authenticate my app with backend using nodejs, but every http request doesn't attact req.headers.authorization, and i don't know why, please help me fix this, tks in advance app.js angular.module('userApp', ['angular-ladda','mgc...
{ "language": "en", "url": "https://stackoverflow.com/questions/31322571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: kendo ui transport data is null Can anyone explain to me why the obj parameter in the httpGet values are null/undefined! I'm using vb so there equal to Nothing! I don't understand why I can get the correct values from the data. var newGridDataSource = new kendo.data.DataSource({ transport: { read: { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36611073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About Specifying EIGEN3_DIR variable not use My computer has multiple versions of the eigen library. I have an eigen3 in the /usr/include/ and another eigen3 in the /usr/local/. I use the set() command in cmakelists, but the compiler only uses the eigen library in the/usr/include directory. Here are my cmakelists.tx...
{ "language": "en", "url": "https://stackoverflow.com/questions/74689717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TYPO3 typoscript condition without log error I am trying to make a condition which does not produces errors in the log. Tried: [request.getQueryParams() && request.getQueryParams()['tx_news_pi1'] && request.getQueryParams()['tx_news_pi1']['news'] > 0 && request.getQueryParams()['tx_news_pi1']['news'] in [857,858,913...
{ "language": "en", "url": "https://stackoverflow.com/questions/70507949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: webpack2 | postcss build warning I have a postcss.config.js file: const webpack = require('webpack'); const path = require('path'); module.exports = { parser: 'postcss-scss', plugins: [ require('postcss-smart-import')({ addDependencyTo: webpack, path: [ path.resolve(__dirname, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44242031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to auto update line transition using d3.js How to automatically update line graph transition for the given json data,I had developed for the line graph,but i don't know how to transition or animation automatically update graph. Th below is the json object var data=[ {a: 43097, b: 1}, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28007120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: about return syntax in c# I wonder why I need to put return syntax twice time in below code, public string test(){ bool a = true; if(a){ string result = "A is true"; }else{ string result = "A is not true"; } return result; } it makes an error that say The name 'result' does not exist in the current con...
{ "language": "en", "url": "https://stackoverflow.com/questions/10744539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drawing in Objective-c This is my first time drawing, so it must be something very stupid, but my drawRect: method doesn't work... Here is my code: - (void)drawRect:(CGRect)rect { CGPoint center = CGPointMake(self.bounds.origin.x + self.bounds.size.width / 2, self.bounds.origin.y + self.bounds.size.height / 2);s...
{ "language": "en", "url": "https://stackoverflow.com/questions/10245907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing a WPF or WinForm Element From a Different Appdomain I want to create an application that will run in the background and track the click actions of the mouse, and when the user clicks on an external WPF or Winforms app, the background app should be able to detect the clicked control and display its ID/name/...
{ "language": "en", "url": "https://stackoverflow.com/questions/71757808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Authorization Server 0.3.1 problem registering several RegisteredClientRepository Hi, I need register several clients but when I try to do this it this exception is thrown, I have made sure that each client has a different identifier: *Caused by: java.lang.IllegalArgumentException: Registered client must be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74551673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it safe to store the activity references in savedinstancestate in my application, i have kept a controller class & this is a singleton class. I use this class to fetch the data from first activity, or store some of the information which is required for remaining activities in my app. Even sometime i require to ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/24051963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UART DMA Tx/Rx Architecture Possible Duplicate: UART ISR Tx Rx Architecture I'm working with a TI micro right now that includes a DMA UART Driver and an operating system that supports parallel tasks. The UART driver's functions include: * *static void HalUARTInitDMA(void); *static void HalUARTOpenDMA(halUARTC...
{ "language": "en", "url": "https://stackoverflow.com/questions/13003971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: video will not autoplay on chrome when it is inserted into the DOM I have a video (meant for background purposes), that is muted and I intend to auto-play. If I were to put the following code into an html file: <video playsinline autoplay muted loop> <source src="https://res.cloudinary.com/dthskrjhy/video/upload/v...
{ "language": "en", "url": "https://stackoverflow.com/questions/54246807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery deleting cookies using cookies plugin I am using this plugin to store some cookies: https://code.google.com/p/cookies/wiki/Documentation I was wondering how i would go about deleting all cookies with a certain prefix and/or delete all cookies that have a certain value. I need this to be done once some user h...
{ "language": "en", "url": "https://stackoverflow.com/questions/2407866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a stack of strings in C I want to have a stack that takes strings. I want to be able to push and pop strings off, as well as clear the whole stack. I think C++ has some methods for this. What about C? A: Try GNU Obstacks. From Wikipedia: In the C programming language, Obstack is a memory-management GNU...
{ "language": "en", "url": "https://stackoverflow.com/questions/1919975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I resize a box without resizing the box next to it using jQuery or Javascript? I'm trying to resize a box (orange box), but my issue is that I can ONLY resize it to the right and bottom , but I cannot resize it to the top (I only want to be able to resize it to the top). Also after re-sizing it to the top I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33228091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to align output correctly I have the following value: val x = List((("Burger and chips",4.99),4.99,1), (("Pasta & Chicken with Salad",8.99), 8.99,2), (("Rice & Chicken with Chips",8.99), 8.99,2)) after printing I get this: x.foreach(x => println(x._3 + " x " + x._1 +"\t\t\t\t"+"$"+x._2 * x._3 )) 1 x (Burger an...
{ "language": "en", "url": "https://stackoverflow.com/questions/51408565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 2 Spring TransactionManager on the same datasource: Pre-bound JDBC Connection found i have a problem with a Spring TransactionManager. I have two JpaTransactionManager that insist on the same datasource. when I use the second transactionManager I take the error: Pre-bound JDBC Connection found! JpaTransactionManager...
{ "language": "en", "url": "https://stackoverflow.com/questions/33497005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: which is the better way of coding Might seem like a silly question. I just wanted to know which is better way of coding. Option 1: if(a==null) { a=getA(); return a; } else { return a; } Option 2: if(a==null) { a=getA(); } return a; variable a is a static variable used to cache the getA() and avoid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34988589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Improving Winforms performance with large number of controls Are there any ways to improve performance when constructing several forms with large numbers of controls (500+)? Our controls are laid out in a label + 6 text box per row configuration, as shown below: We have used the following containers to structure ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/14565773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Custom Datagridview Sort Like this I have a windows Datagridview with Column values id --- 0 0 0 5 2 7 I want ascending sort of this but zero containg cells will be under. Like this- 2 5 7 0 0 0 A: Since you haven't mentioned the datasource of your DataGridView i show an approach with a collection. For exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/35200095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript JQuery hide/show function so lately i have been working on a little bit of js. so, basically, my problem is that i need to hide whatever is passed in the parameters or show it if it already hidden. Here is my code: <script type='text/javascript'> <!-- function toggleReport(table){ //the table argument is...
{ "language": "en", "url": "https://stackoverflow.com/questions/10748783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Internal div doesn't fit external div. Both have padding: 10px. Both have width:100% My internal div though set at width: 100% does not fill the external div. I think it's because of the padding, but I'm not sure. How can I get the internal div to fit the width of the external div? Thanks. myjsfiddle HTML: <html> <h...
{ "language": "en", "url": "https://stackoverflow.com/questions/30401594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: R-call multiple variables with same beginning If 9 variables exist that all begin with, say, "hand", I want to be able to pass all of them in a script by shorthand. Using SAS, I do it as follows: hand: Using this, I can run analyses on all variables beginning with "hand" by passing it this way. My question: what...
{ "language": "en", "url": "https://stackoverflow.com/questions/35544288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: htaccess : redirection all subdomain to main https www domain i'm stuck using htaccess redirection, mixing some answers [1] [2] about htaccess redirection. My goal is to redirect every subdomain (not www) to my main one ( starting with https://www. ), keeping the Request_URI (like specified folder) as it is. Here is...
{ "language": "en", "url": "https://stackoverflow.com/questions/41019319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ShowShareSheet creates black/blank screen Using DELPHI XE4/XE5. Using an ActionList and Tbutton that is linked to the aciton: ActionShowShareSheet, the picture above is my result. I can not find a lot of troubleshooting around or many examples regarding the topic. I am trying to share an image with informational t...
{ "language": "en", "url": "https://stackoverflow.com/questions/18773780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using scipy.fmin. TypeError: 'numpy.float64' object is not iterable I'm trying to use scipy.fmin (docs here) and I can't figure out why it isn't working. My code: def moveMolecule(array): x0 = [0, 0, 0] minV = fmin(calculateV,x0) Where calculateV is: def calculateV(array): # Calculation of LJ potential usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/40695917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Excel Function: Get data from a cell of a particular column and the current row I just want to say up front that I have very little skill in Excel. Actually, I never use it. What I have been trying to do is create a function that gets the value of a cell of a particular column and the current row. For example, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/20109567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to defuse this binary bomb phase 4 I am having trouble this piece of code in assembly language. Essentially I have to input 2 numbers that matches 2 numbers the code is comparing with. On line 0x08048c47 in phase_4, it compares the first input with 2, so I know the first input has to be 2. It then moves 4 space...
{ "language": "en", "url": "https://stackoverflow.com/questions/55028487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can you make a function that returns a function in ocaml for an example, if a function receives a function as a factor and iterates it twice func x = f(f(x)) I have totally no idea of how the code should be written A: You just pass the function as a value. E.g.: let apply_twice f x = f (f x) should do what you...
{ "language": "en", "url": "https://stackoverflow.com/questions/71513663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No element found for selector: #react-select-17-option-0 (dropdown menu) I am trying to select a dropdown menu from a page but unable to select one of the options using puppetteer. I have checked the element selector. the page is only 1 frame this is the html source code enter image description here When I click on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72861850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Listview repeating items with infinite scroll on Android I built a listview and implemented an infinite scroll, the listview is limited to show 5 items per load until it reaches the end, but it is duplicating the initial 5 items, I'll add some image so you can understand better: How can I fix it? public View onCre...
{ "language": "en", "url": "https://stackoverflow.com/questions/25880815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker Build Error: executor failed running [/bin/sh -c npm run build]: exit code: 1 with NextJS and npm I have a NextJS app with the following Dockerfile.production: FROM node:16-alpine AS deps ENV NODE_ENV=production RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json yarn.lock* package-lock.json...
{ "language": "en", "url": "https://stackoverflow.com/questions/75042423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using only part of a pattern in SSH Config Hostname I have an SSH config like the one below, which works great for: ssh b21 ssh 23 ssh s267 Example .ssh/config (hostname passed is slotted in at %h): host s* HostName atrcu%h.example.com User example Port 22 host b* HostName atrcx%h.example.com Us...
{ "language": "en", "url": "https://stackoverflow.com/questions/17169292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to assert json path value is greater than value? Given the following JSON that is returned from a REST call: {"Statistik Eintraege": [{"Wert":"1","Anzahl":41}, {"Wert":"","Anzahl":482}, {"Wert":"-3","Anzahl":1}, {"Wert":"-1","Anzahl":3}, {"Wert":"-2","Anzahl":3}], "Statistik Typ":"BlahStatistik"} ... I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68410880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Parse 't'/'f' as booleans during CSV mapping Consider I have a CSV as such: name,city,active abc,bcde,t xyz,ghj,f If I wanted to map this to a model how would I convert the 't' or 'f' to proper booleans. I am using jackson-dataformat-csv mapping to do this CsvSchema csvSchema = CsvSchema.emptySchema().withHeader()...
{ "language": "en", "url": "https://stackoverflow.com/questions/48023491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why do we need gulp over karma? I am new to gulp and karma tool.I have searched google and worked on small testcases and executed successfully. In karma we are configuring the unit testcases js files that are to be tested and run using the command 'start karma karma.conf.js' In gulp we are configuring the karma con...
{ "language": "en", "url": "https://stackoverflow.com/questions/34033971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }