text
stringlengths
70
452k
dataset
stringclasses
2 values
MatDialog is undefined in entry component I use the latest Angular version and I modify a template. I have a module called toolbar.module.ts which contains an entryComponent: @NgModule({ declarations: [ToolbarComponent, ToolbarDropdownComponent], imports: [ CommonModule, MatDialogModule, [...] ], ex...
common-pile/stackexchange_filtered
How to post and get asmx web serivce access using iPhone app? I am new to iPhone app development. How can I post data and get data by accessing the asmx web service using iPhone app? I think asmx webservices are SOAP webservices you should read my blog entry here - http://www.makebetterthings.com/iphone/call-soap-web...
common-pile/stackexchange_filtered
Where to start integration of trigonometric function? Possible Duplicate: Evaluating $\int P(\sin x, \cos x) \text{d}x$ I am stuck with this integral: \begin{equation} \int \frac{dx}{(3+\cos^2x) \cdot \tan x} \end{equation} I tried playing with trigonometrical function and the most promissing variant I managed to pr...
common-pile/stackexchange_filtered
Cylinder sets on $C[0,1]$ Suppose $\mathscr{B}$ is the cylindrical $\sigma$-algebra on $\mathbb{R}^{[0,1]}$. Let $C:=C[0,1]$ and $\mathscr{A}:=\{B\cap C: B\in\mathscr{B}$. I am trying to show that $$ A:=\{f\in C[0,1]: \int_{[0,1]} f<1\}$$ is inside $\mathscr{A}$. We know that $\mathscr{A}$ is a $\sigma$-algebra but apa...
common-pile/stackexchange_filtered
Application_Error does not handle exception I am working on MVC Application. I have FilterConfig class : public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } I am using it in Global.asax.cs protected void...
common-pile/stackexchange_filtered
Writing a Protocol in a swift Framework? Im trying to write a Swift framework with a protocol used for a delegate method. I've made the protocol public, but when I add my framework to my project, the project spits out the following error ViewController.swift:15:83: No type named 'MyControllerDelegate' in module 'MyMod...
common-pile/stackexchange_filtered
Full Tannakian subcategories and surjection of fundamental groups Let $(\mathcal{T},w)$ be a neutral Tannakian category over a field $k$, with fundamental group $G$, and $w$ a fibre functor. Let $(\mathcal{S},w|_{\mathcal{S}})$ be a full Tannakian sub-category (i.e. closed under tensor products, direct sums, duals and ...
common-pile/stackexchange_filtered
Cucumber test - could not find classs cucumber.api.cli.Main Since a couple of days, when I try to exectue my cucumber tests, I always receive an error "could not find classs cucumber.api.cli.Main". Nothing has been changed in my config (as far as know). [INFO] --- exec-maven-plugin:3.1.0:exec (default-cli) @acceptance...
common-pile/stackexchange_filtered
ggplot error bar not showing on graph because it falls outside y axis limits I am trying to create a plot with pre-defined Y-axis limits. I noticed that when error bars exceed these Y-axis bounds, the entire error bar is not plotted, rather than just clipping it to the Y-axis bound. An example, using the ToothGrowth da...
common-pile/stackexchange_filtered
jQuery append href I'm trying to append a link with jQuery, but it's not working. Here is my code. $(document).ready(function() { $( ".class" ).append( "<p><a href="http://www.google.com">Google</a></p>" ); }); your code is right but please fix your quotes. in double quotes you can use only one quote Fix your quot...
common-pile/stackexchange_filtered
Adding my SSH key to new user with only SSH access through key I'm quite new to this, and I've looked through questions but haven't found one that quite matches my problem, or rather I didn't sufficiently understand them to be able to solve this issue. I have a new server to which I can only access using a pre-generate...
common-pile/stackexchange_filtered
Smooth animated Collapsing Toolbar with Android Design Support Library Are there anyway to make Android Design Support Library's Collapsing animation smoother while scrolling? When I release scrolling, it stops suddenly. But what I want is: collapsing animation will continue smoothly even if you stop scrolling. Android...
common-pile/stackexchange_filtered
equivalent to 'cpusets' for gpu's I work with clusters of computers and manage the nodes with torque and Moab. A user is able to submit a job to a node, and request the amount of resources they need. #The following submits the job foo.sh to 1 node, requesting 8 cores, and 1 gpu qsub foo.sh -l nodes=1:ppn=8:gpus=1 Be...
common-pile/stackexchange_filtered
How to configure jsdom to preserve tag name case? Look at these lines: var doc = jsdom.jsdom("<moshe></moshe>"); console.log(doc.childNodes[0].tagName); The second line writes "MOSHE" to the console in uppercase that means jsdom recognized my string as HTML and not XML. How can I enforce jsdom to preserve tag name ori...
common-pile/stackexchange_filtered
How to package the cassandra source code into debian package? I have the latest source code of Cassandra. I have done some changes to the cassandra code to meet my needs. Now I want to package this Cassandra into the debian package so that I can easily install it. I do not have much knowledge about debian and all. Can ...
common-pile/stackexchange_filtered
How to find the inverse Laplace transform of this function? $F(s) = \dfrac{s}{s+3}$ I can't find this term in any Laplace lists around Hint: $F(s) = \dfrac{s}{s+3} = \dfrac{(s+3)-3}{s+3} = 1-\dfrac{3}{s+3}$. Can you find $1$ and $\dfrac{1}{s+3}$ in your Laplace table? What's F(s) = 1 converted to the original funtio...
common-pile/stackexchange_filtered
Perfect numbers adding up to 10 In aliquot sequences, am I right in saying that all perfect numbers when you add up the digits the result always add up to $10$ ( apart from the perfect no $6$?) if so, is this just a coincidence? Example: "$496\mapsto 4+9+6=19\mapsto 1+9=10$". Hi, Jonas, I did not explain myself very ...
common-pile/stackexchange_filtered
R data.table: names of .SD not available for assignment Often, I want to manipulate several variables in a DT and I need to select the column names based on their names or class. d <- data.table(x = 1:10, y= letters[1:10]) # My usual approach col <- str_subset(names(d), '^x') d[, (col) := 2:11] However, it would be v...
common-pile/stackexchange_filtered
Convert somebody's local time to the UTC time i'm a little lost in the timezone :) I have data stored with the time in UTC. The server is in the Netherlands, so we live in utc+1 (now, with daylightsavingtime, in utc + 2) Now a client says: give me the data from august 5th. So i have to calculate the utc time from 'his ...
common-pile/stackexchange_filtered
using vba to change field name in access 2007 I receive data monthly from an external company and need to change the field name to a sequential number. example contract 11 15 17 to 1 2 3. I am trying to use the following code but get an error that I cannot define the field more than once at "fld.Name = (n) + 1". How ca...
common-pile/stackexchange_filtered
Rubymine not find gem docker rvm I use in the rvm docker. I would like to set the remote ruby ​​interpreter but after choosing the server docke, image and setting ruby ​​interpreter path to .rvm/gems/ rubymine does not download any gems. Somehow this question doesn't feel very clear to me. Could you at least paste you...
common-pile/stackexchange_filtered
The trio examined crystallographic data on their tablets, scattered coffee cups evidence of their extended afternoon session at the materials consulting firm. "This density variation is remarkable - we're seeing a threefold change just by controlling which isomer forms during polycondensation. The dia topology gives u...
sci-datasets/scilogues
toggleClass and executed order in a jquery file The jquery trigger into entered status when mouse move in. $(".test").bind("mouseenter mouseout", function(event) { $(this).toggleClass("entered"); alert("mouse postion (" + event.pageX + "," + event.pageY + ")"); }); .entered { font-size: 36px; width: 200p...
common-pile/stackexchange_filtered
How to optionally process code in node_modules with babel-loader in webpack? This is a follow up from this answer. I have some 3rd party code (react components) that I bundle as ES modules (using the pkg.module entry point). This works great (you get module concatenation and tree shaking), but the included code isn't t...
common-pile/stackexchange_filtered
Auto-remove unused tags Drupal 7. We want to remove tags (of Tags vocabulary) automatically when all pages referring to this tag are removed. Is there a module for this? There are a couple of modules that might help: Taxonomy Orphanage (specifically the cron interface) This module provides interfaces (drush, cron, a...
common-pile/stackexchange_filtered
Google Geocoding API not returning correct latitudes,longitudes for address as returns in google maps I am facing a strange problem of google geocoding API. My requirement is whenever a user types any address all the corresponding locations should show in my map View(I am using MKMap View) like it happens in google map...
common-pile/stackexchange_filtered
Calculating hashes of raw image data and writing it to the image file I am trying to write hashes to the metadata part of my image files. In the Exiftool Forum I saw this exiftool FILE -rawimagedigest=`exiftool FILE -all= -o - | md5` However, I would rather not run it manually for each file, and I do prefer SHA. I tri...
common-pile/stackexchange_filtered
Using regex in python for a dynamic string I have a pandas columns with strings which dont have the same pattern, something like this: {'iso_2': 'FR', 'iso_3': 'FRA', 'name': 'France'} {'iso': 'FR', 'iso_2': 'USA', 'name': 'United States of America'} {'iso_3': 'FR', 'iso_4': 'FRA', 'name': 'France'} How do I only keep...
common-pile/stackexchange_filtered
How to pass a bitmap from C++ DLL to a VB6 app I have some C++ code that captures a raw image and builds a BMP which is saved to a file xyz.bmp. This works fine. However the objective is to get that image data directly across to a VB6 app so no intermediary file is written out. Searching around I can't really find much...
common-pile/stackexchange_filtered
AngularJs code organizing nuget package I am trying to start a new angularjs application with visual studio. I heard that there is specific folder structure to organize angular code. Is there any nuget package which does the folder structure and add crequired basic js files? Depending on the app you are making you can...
common-pile/stackexchange_filtered
index is out of bounds Here is my program, I don't understand why this error appears line 41 :"index 60 is out of bounds for axis 0 in size 60", it's the game of life and I tried to do it by myself because as I'm new in python it was hard to understand the ones on internet... import numpy as np rows=60 cols=60 size=ro...
common-pile/stackexchange_filtered
Try to find out if my (use of google maps API services) calculations are correct? I am a nontechnical member (and idea leader) of a team that develop certain web application, so I am not very familiar with this area. I am asking this question here, because one or two responders here :) probably cross with this "problem...
common-pile/stackexchange_filtered
LyX: Citation shows up as [#] rather than (Author, Year) I've been having the same problem as this person. My citations show up as [#], and not in the desired format (Author, Year). I have checked natbib as advised: , and also in the citation menu itself: However, the PDF prints still only give me [#]. Any ideas? Ed...
common-pile/stackexchange_filtered
Angular filter Observable array I have an Observable array and I want to filter/find the Project by name. When I try to use the filter option it is saying ProjectService.ts import { Injectable } from '@angular/core'; import { Project } from "../classes/project"; import { Observable } from 'rxjs/Observable'; import 'rx...
common-pile/stackexchange_filtered
How can I trigger global onError handler via native Promise when runtime error occurs? With Q.js I can trigger window.onerror using .done(): window.onerror = function() { console.log('error from handler'); } var q = Q('initValue').then(function (data) { throw new Error("Can't do something and use promise.catch ...
common-pile/stackexchange_filtered
Solving Trig Problem - A Level Maths Question: An equation of a curve is $y = \cos 2x + 2\sin x$. Find $dy/dx$ and the coordinates of the stationary points from $0 < x < \pi$. I got as far as $-2\cos x = -4\sin x\cos x$ Surely now I can divide by $\cos x$ to get: $-2 = -4\sin x$, hence $0.5 = \sin x$ and so on... But a...
common-pile/stackexchange_filtered
How can missionary arguments about free will be refuted? In light of the fact that the majority of Christians including Catholics and Orthodox believe in predestination, as does Islam (in fact, one of Antony Flew's ("the world's most famous atheist") biggest reasons for being an atheist was that he correctly realized t...
common-pile/stackexchange_filtered
add interfaces to a second OSPF process in cisco I am trying to create two OSPF processes on the same router, I configure both using the same commands but only the one with the lower process id takes the interfaces and works, the second one has no interfaces! the OSPF configuration takes place after assigning IP addres...
common-pile/stackexchange_filtered
Center page in IE7 & page moves after clicking menu items My page seems to be centered in all modern browsers except IE7. In CSS I have simply: html, body { width: 1000px; margin: auto auto; } and it doesn't work. Another issue for all browsers is that whole page slightly moves after clicking menu items. E.g. ...
common-pile/stackexchange_filtered
flutter's AutomaticKeepAliveClientMixin doesn't keep the page state after navigator.push was testing AutomaticKeepAliveClientMixin and run into an issue, page loses state after navigator.push anyone knows this issue? any workarounds? be glad for any info, cheers my goal is to keep the page state steps to reproduce: ope...
common-pile/stackexchange_filtered
Disable enter fullscreen mode automatically based on the device's width in vidstack react player I am using this player in one of my React projects. I am showing the video player in a modal. So when the screen width of the device is below 1024px then I want the fullscreen mode should not apply. I read the official docu...
common-pile/stackexchange_filtered
R pagedown/shinyapps error - Google Chrome cannot be found I've been trying to use the pagedown package to create a pdf from a html which is better formatted and more presentable from a shinyapp. It tested fine locally on my machine. After deployment, the document failed to download with the following error from the ...
common-pile/stackexchange_filtered
Prevent the creation of routes from components and public folders in the pages folder. And deny access to see files in public folders. NextJs I have NextJs application with a custom server where I have customized a route. Where I show the template depending on the hostname and pathname. My server.js const next = requir...
common-pile/stackexchange_filtered
C# ServiceStack JsonSerializer Deserialize How can I deserialize a string to Json object where the json Object can be a single or an array, right now I have this, which works but its a hack (pseudo): class MyObject{ public string prop1 public string prop2; } class MyList{ List<MyObject> objects {get; set; } }...
common-pile/stackexchange_filtered
Display error message to user (node.js) So I've been trying to research online for solutions, and none of them seem to work either because I'm doing it wrong, or they don't work in my situation. I have a webpage which gives the user a place to enter email/pass etc. When they press the submit, it calls a post function, ...
common-pile/stackexchange_filtered
Error message is returned only for 200 or 500 error codes I'm trying to return error response to the client, but it returns only when I set the status code to either 200 or 500. When I set to 304 it does not return the message. What am I missing. Please clarify res.send(304, { message: 'cannot update conf...
common-pile/stackexchange_filtered
NSNotification center may not respond to -object? I'm trying to make simple use of the NSNotification center inside my iPhone application, but I seem to be doing something wrong in this case. I was under the impression that it was possible to retrieve an object associated with a particular message, or at least a refer...
common-pile/stackexchange_filtered
receiving either value for the navigation menu in php I have two navigation one is in the header and the other is in the same page, now what I want is to do is be able to pull all the data from the table product a specific product from the sub category when I click the sub category. what I have now, is when I click on ...
common-pile/stackexchange_filtered
Entity Framework get a select command object from a stored procedure I got a simple stored procedure which returns a few columns from a much bigger table with a small term. Something like this : CREATE PROCEDURE spTemp @Type nvarchar(25) AS SELECT DISTINCT gType, gYear, gModel FROM MyTableOnDB WHERE gType...
common-pile/stackexchange_filtered
Can't figure out why simple method is infinitely looping in Java It's just a simple little method that gets user input to convert an integer from decimal to binary. It uses do-while loops to restart and verify valid input. When it catches an InputMismatchException, it starts to infinitely loop this: Must enter a positi...
common-pile/stackexchange_filtered
Select values between from and to columns SELECT Q.mem_id FROM tb_mem_share Q, tb_member Mb WHERE Mb.mem_id = Q.mem_id AND Q.share_num_from BETWEEN '42368' AND '42378' SELECT * FROM tb_mem_share WHERE share_num_from >= 42368 AND share_num_from <= 42378 Running this I get only the second rec...
common-pile/stackexchange_filtered
Looking for name of a priority queue data structure based on bit-boundary buckets I'm looking for the name of a data structure. I came up with this idea but suspect it should already be known, and don't know what to search to find it. This priority queue is based on putting items into buckets based on the position of t...
common-pile/stackexchange_filtered
How do I print the current NixOS' nix.package version? A NixOS configuration is built using the /etc/nixos/configuration.nix file. This configuration has a nix.package property. In an NixOS instance, I want to print the version/hash (i.e., unique identifier) of the nix.package object that has been used in building the ...
common-pile/stackexchange_filtered
How can I find out which tables and stored procedures a database user has accessed? Is there a way to find out which tables and stored procedures a user has accessed? Note that this is what the user has actually accessed and not what they can access. For tables, is it also possible to know whether the access was read o...
common-pile/stackexchange_filtered
SQL Injection Attack through form input Hi I want to show sql injection vulnerability through form input using PHP and MYSQL. Any suggestion how to go about. Thanks Not exactly sure what you're asking, but it sounds like this fits: http://stackoverflow.com/questions/9624292/is-this-a-secure-method-to-insert-form-data...
common-pile/stackexchange_filtered
JSON deserialize is coming null When I'm testing I just Tested this code, When I'm running this JSON not assigning to the variables it is coming NUll. String requestString='{"terms":{"customerCode":"sadasd","customerName":"sadasd","incoterm":"EXW","paymentTerms":"T30JFDM","paymentTermsDescriptionEn":"Transfer 30 days e...
common-pile/stackexchange_filtered
DragBox change color while drawing In order to help users to draw a boxarea with minimum of 100 px at width and height, I've thought to start drawing in red color (fill and border of box) and then change automatically to green when it reaches the 100 px mentioned while user is drawing the feature. Any idea how to do th...
common-pile/stackexchange_filtered
Count all existing combinations of groupings of records I have these db tables questions: id, text answers: id, text, question_id answer_tags: id, answer_id, tag_id tags: id, text question has has many answers answer has many tags through answer_tags, belongs to question tag has many answers through answer_tags An ...
common-pile/stackexchange_filtered
Trigger updatedAt=NOW() for hunded-thousand rows will not actual I am using SQL Trigger to update updatedAt column if there is a new data inserted/updated in PG 9.6. Here is the function that will be called by trigger CREATE FUNCTION sp_updatedatstamp() RETURNS trigger AS $updatedat_stamp$ BEGIN NEW."updatedAt" :...
common-pile/stackexchange_filtered
How to know the process of the terminal which is running in Linux command? In Linux, how can I list the process id in /proc folder which is running the current open terminal? Thanks. If you want the PID of the shell, then it is the $$ variable, assuming that your shell is bash or similar. Therefore you could use $ ls...
common-pile/stackexchange_filtered
Beamer changing part numbers to letter Hi I'd like to change Rome numbers of parts into letters, for instance: \documentclass{beamer} \usetheme{Madrid} \usecolortheme{whale} \usecolortheme{orchid} \setbeamertemplate{blocks}[rounded][shadow=true] \title{This is a title} \author{Author} \date{ } \begin{document} \part{...
common-pile/stackexchange_filtered
Sum of an array in row that says "Yes" =SUM(3, IF(B8:B129="Yes",1,0)) The formula should start on 3 and add 1 every time a column in the row says "Yes", Included in the row are "No" and "Maybe". The current formula above provides the correct result however it outputs "#!VALUE" in the column. Anybody know the issue with...
common-pile/stackexchange_filtered
How to connect three traces in Altium as shown in the image? I am making a PCB layout for a board and I want to make a trace similar to the one in the image. I have tried changing the angle options but it still doesn't work. How do I do this? Check out the teardrop generation function. This link will take you, even ...
common-pile/stackexchange_filtered
What is the meaning of the following? int sampleArray[] = {1,2,3,4,5}; I understand that the sampleArray now points to the first element of the array. However, what does it mean when I say &sampleArray? Does it mean I am getting the address of the sampleArray variable? Or does it mean a two-dimensional array variable?...
common-pile/stackexchange_filtered
Run NodeJS app in azure via container web app or normal web app in production What's the best way to run a nodeJS application in production on Azure? Using PM2 inside the docker image is no option here as it results in two layers of load balancing and monitoring thus more complexity. Options: Use normal web app Pro: C...
common-pile/stackexchange_filtered
I'm attempting to render responsive images and control art direction. Could somebody see whyI can't get breakpoints.yml to be respected? I'm creating a title/ hero-image section that consists of two 50/50 columns at desktop but then stacks at about tablet (e.g. 1024px) I’m using a custom twig template for this content ...
common-pile/stackexchange_filtered
Creating functions without parentheses in PHP like 'echo' I was wondering if there is any nice way of writing functions in PHP so that they don't require ( ) around the parameters. Example: function sayThis($str) { echo $str; } sayThis "hi!!"; Thanks, Matt Mueller see this answer possible duplicate of Can I cre...
common-pile/stackexchange_filtered
Entity Framework does not return object Hi I found problem with EF. Here is my Model I loaded asset: POCO.Asset asset = _context.Assets.Where(a => a.UID == assetUid).First(); then I go through all properties foreach (POCO.Property p in asset.Properties) /* request to db */ { /*...*/ } categories: foreach (POCO.Catego...
common-pile/stackexchange_filtered
Play sound through earpiece speaker iphone How can i make my iPhone 7 play all sound through the earpiece? I want to listen to music privately without headphones thought this would be an easy way to do it, pointing bottom of phone low-volume to head is awkward and doesn't work v well. This is currently not possible as...
common-pile/stackexchange_filtered
Why does my java guessing game not work after the first loop I'm working on this guessing game where the user needs to guess the word in under 6 tries. They have the ability to try and guess the whole word but if guessed incorrectly the game ends. When the game ends it gives them the option to play again. My problem is...
common-pile/stackexchange_filtered
TAPI call from web page I got a customer service team who'd like to click on a telephone number in a service request ticket and it would dial the call automatically for them rather than they manually dialling the number on the screen with from phone. I got a PHP 7.1 web application and all the users uses Windows deskto...
common-pile/stackexchange_filtered
How to reference SQL connection I'm just learning asp.net/C# and am building my first application. In my application, I am rendering data from sql on almost every view. My controllers are getting large, because every time I make a request, I'm using somthing like: try { sqlConnection = new SqlConnection(dbConnec...
common-pile/stackexchange_filtered
Schedule mysql event to run every chosen day of the week i want to read my table logs after rotating my logs using an event and i want my event to run in any day of the week i choose. After doing some research,i have come up with this CREATE EVENT read_rotated_logs ON SCHEDULE EVERY 1 WEEK STARTS CURRENT_DATE + INT...
common-pile/stackexchange_filtered
Run taskmgr.exe without administrator rights? I NEED to run Task Manager with the very specific code that I have, but it is appearing with an access denied error. I have attempted to run in administrator mode before. FileStream fs = new FileStream(System.IO.Path.Combine(Environment.SystemDirectory, "taskmgr.exe"), File...
common-pile/stackexchange_filtered
how to change firebase account in a flutter project? I created a flutter project with my personal firebase, but now the client has already created his firebase, how do I change the account in a project, I've searched the documentation but without success? Its very simple, just type this firebase login --reauth Unfor...
common-pile/stackexchange_filtered
How is this "connected dots" pattern done? I was wondering, if anyone could help me reproduce this "effect": I've noticed that this effect is often made with compound path, but I don't understand the process of it - do I have to make polygons at first and then make outline of them? FYI: this background is downloaded f...
common-pile/stackexchange_filtered
How to make spotless format your code as per custom config file which is followed by checkstyle in Gradle My checkstyle is following custom config file define in root folder of application(config.xml file). I am trying to identify how to configure spotless in gradle such that spotless shall aut format that code follwin...
common-pile/stackexchange_filtered
How to update git on RHEL without access to root? I am trying to get my IDE set up at work for a project I am working on. I am coding in python and working in PyCharm because of its awesome git support. However, whenever I try to configure git on PyCharm to clone my project, it tells me that my version of git , <IP_ADD...
common-pile/stackexchange_filtered
The intervals $(2,4)$ and $(-1,17)$ have the same cardinality I have to prove that $(2,4)$ and $(-1,17)$ have the same cardinality. I have the definition of cardinality but my prof words things in the most confusing way possible. Help! Try to find a linear function, i.e. a line from $(2,4)$ to $(-1,17)$. Strictly sp...
common-pile/stackexchange_filtered
Append "\n" to all elements except last in Ruby array I have an Array of Hashes that look like this: texts = [{:text => 'my text', :width => 123}, {:text => 'my other text', :width => 200}] I want to have a final text that would look like this: my_final_text = 'my text\nmy other text' I have tried doing this: def con...
common-pile/stackexchange_filtered
Yeoman Workflow and Integration with Backend Scripts So, I've been anticipating Yeoman and it's already out for a week or so now. But after successfully installing it, I've been confused at the workflow and the implementation with backend script (API). Scenario 1 So let's say I don't need all those shiny BBB/Ember/Angu...
common-pile/stackexchange_filtered
Row data var not found if view has no document I have a view panel where I want to style the color the of text in the row based on a value in the document. <xp:viewPanel id="dataView1" var="rowData" rows="5" rowClasses="#{javascript:rowData.getColumnValue('objectStatus') == 'Inactive' ? 'status-inactive' : ''}"> T...
common-pile/stackexchange_filtered
Can't get Backbone routes without hashes? I want to have bookmarkable URLs that the browser can capture and handle. If I just use Backbone.history.start(), then I can use hash URLs, like /#accounts. But I want URLs without the hashes, a la /accounts. But I can't get this to work using Backbone.history.start( { pushSta...
common-pile/stackexchange_filtered
Migrate Django app from ubuntu to red hat Is there a best practice of migrating django app from ubuntu server to red hat? What could be the challenges? In the same vein will postgreSQL migration pose any challenges? Personally I've had my very basic Django based app switching between Ubuntu/RedHat/Debian/Windows. I've...
common-pile/stackexchange_filtered
Using async/await and yield return with TPL Dataflow I am trying to implement a data processing pipeline using TPL Dataflow. However, I am relatively new to dataflow and not completely sure how to use it properly for the problem I am trying to solve. Problem: I am trying to iterate through the list of files and process...
common-pile/stackexchange_filtered
How to open a file whose name is stored in a pandas cell, manipulate the contents and store in a new column Dataframe Example index fileName startline endline 0 293104.java 30 40 1 288951.java 183 247 2 2378709.java 98 117 Goal I want to open and read the contents of the file in fileName, and extract the...
common-pile/stackexchange_filtered
KVM LVM-based guest... kernel: Buffer I/O error on device. Failing drive? Currently setting up a small KVM host to run a few VMs for a small business. The server has 2 drives in software md RAID 1, then I have it set as a PV in an LVM setup. Guests and hosts are all CentOS 6.4 64bit. The / partition of the KVM guests a...
common-pile/stackexchange_filtered
Detecting Each of Curve in Opencv I have an image and image has lots of curves I want to detect each of curve and I want to save these curves coordinates Firstly I used contour but I cant separet each of curve I want find detect each curves like this : This is the way I would proceed. Using a grid I would sample t...
common-pile/stackexchange_filtered
Initialization of inner private class within public constructor call of outer class -What's the standard's intention for this? Recently, I came across code like this: class NeedsFactoryForPublicCreation { private: struct Accessor { // Enable in order to make the compile failing (expected behavior) /...
common-pile/stackexchange_filtered
LibreOffice Calc / OpenOffice Calc / Excel: How to display a negative time duration? I use a LibreOffice/OpenOffice spreadsheet to track my sleep. Column A contains the time I fell asleep, and column B contains the time I woke up. Column C contains an "adjustment"; if I woke up early, and then went back to sleep, I'll ...
common-pile/stackexchange_filtered
WPF Radiobutton property binding I am writing a wizard based application where, I load different usercontrol for each step. The usercontrol that is loaded has a radio button bound to 2 properties. when I try to load already existing usercontrol, the radiobutton status is not restored. The value of the property to which...
common-pile/stackexchange_filtered
How can i get my table to populate using a trigger function? i have a function: CREATE OR REPLACE FUNCTION delete_student() RETURNS TRIGGER AS $BODY$ BEGIN IF (TG_OP = 'DELETE') THEN INSERT INTO cancel(eno, excode,sno,cdate,cuser) VALUES ((SELECT entry.eno FROM entry JOIN student ON (entry.sno = student.sno) ...
common-pile/stackexchange_filtered
Using a algorithm for searching a string in a vector Is it possible to count how many strings are equal to one given as a parameter using an algorithm method? #include <algorithm> #include <vector> #include <string> int main(){ vector<string> vectorPeople; //assume that myVector isn't empty string name; ...
common-pile/stackexchange_filtered
Rename column names in Excel I have columns with names as SSS-01\01\2015, SSS-01\02\2015 and so on. I want to rename these cols as 01\01\2015, 01\02\2015 and so on by removing "SSS-". Below is the code that I am using. I have all the required values in the List. Now how do I save those as column names from cell E to ...
common-pile/stackexchange_filtered
How to make an ellipse as from the car package in ggplot2? I need to build a plot showing the difference in variance between the ordinary least squares estimator and the ridge estimator. For this I want to plot contour ellipses for the variance. The data I'm working with is this: set.seed(10) sigma = 10 U = rnorm(50,0,...
common-pile/stackexchange_filtered
Upload APK Using Test fairy Plugin issues I am uploading an apk file using test fairy plugin But I am getting an error the apk does not contain testfairy sdk android- Testfairy sdk integration android. How to integrate testfairy sdk with application? I am following this article url but I am getting two exception J...
common-pile/stackexchange_filtered
How to undo the action of rails db:migrate in Rails <IP_ADDRESS> When migrating the database, I made a spelling mistake. I want to generate a scaffold by running: rails generate scaffold Micropost context:text user_id:integer rails db:migrate Although I made a mistake by leaving out the colon when I ran: rails gen...
common-pile/stackexchange_filtered
Java META-INF/services What is the purpose of META-INF/services in Java ? Related question: https://stackoverflow.com/q/70216/2987755 It's intended to store service provider configuration files. A Service provider is an implementation of a Service Provider Interface packaged as JAR. A Service loader discover and load...
common-pile/stackexchange_filtered
phonegap - is ios or android device? How can I tell if I'm running in ios7 (or any other env) ? In IOS7 the topbar overlap with the app and mess up the view, I want to add a css class that will push the top bar 20px down only in ios7. How should I do it? A nice solution would be to use a native plugin. If you're usin...
common-pile/stackexchange_filtered
Using State Hook - (state variable) is not defined no-undef function Header() { const [keys, setKeys] = useState([]); //added const first = (e) => { var result = new Map() axios.post('http://localhost:8000/' + query) .then(function(response){ var content=JSON.parse(JSON.stringify(...
common-pile/stackexchange_filtered