text
stringlengths
175
47.7k
meta
dict
Q: Regular expression to match linux path I have tried many regular expressions found in stackoverflow like: This import re mystring = """ some string /bin/path and also /opt/something/bin/. Some other string /home/user/file.extension. Some more string \.out and \.cpp and \.extension. All these are paths and need...
{ "pile_set_name": "StackExchange" }
Q: background image not repeating on absolute element The background image (the topography) is not repeating. It stops above the "Terra management technique" (look at pic). I want to cover the entire element (accordion), which is the element right above the footer. HTML <div class="accordion"> <span class"topogr...
{ "pile_set_name": "StackExchange" }
Q: The limit of $2\frac{\sin\left(\frac{M\theta_{k}}{2}\right)\cos\left(\frac{1}{2}(1+M)\theta_{k}\right)}{\sin\left(\frac{\theta_{k}}{2}\right)} $ I have $$\lambda_{k,N}=2\dfrac{\sin\Big(\dfrac{M\theta_{k}}{2}\Big) \cos\Big(\dfrac{1}{2}(1+M)\theta_{k}\Big)}{\sin\Big(\dfrac{\theta_{k}}{2}\Big)} $$ where $\theta_{k} \...
{ "pile_set_name": "StackExchange" }
Q: How to use packages in Julia Studio I can't get the package system to work in Julia Studio. For example if I want to plot a simple graph I've tried double clicking the Winston package which seems to install from the Git repo, then: using Winston plot([1 2 3],[3 2 6]) But I get the error: could not open file /Appl...
{ "pile_set_name": "StackExchange" }
Q: Is the program 32 or 64 bits? Assignment is simple to explain: write the shortest code you need to determine whether an executable binary program supplied as parameter is 32 or 64 bits. If there is a different kind of bitness, you can also do for it, but is not mandatory. What I really don't want is telling me you...
{ "pile_set_name": "StackExchange" }
Q: Comparing strings to a dictionary in groups of multiples of 3 I am writing a program which reads in a number of DNA characters (which is always divisible by 3) and checks if they correspond to the same amino acid. For example AAT and AAC both correspond to N so my program should print "It's the same". It does this...
{ "pile_set_name": "StackExchange" }
Q: Curl -u Request in javascript I need to perform a curl request like this: curl -u "apikey:{apikey}" "{url}" How can i do this in javascript? In particular i have some trouble to handle the -u curl field into javascript request. A: You will have to specify a basic auth header (Authorization: Basic <base64 of ap...
{ "pile_set_name": "StackExchange" }
Q: Notification when a checkbox in a JTable is checked I've searched for this for quite a while and haven't found a clear example anywhere. I'm a Java newbee using NetBeans. I have a boolean value in the first column of a JTable (called "Enabled") and I have some plugin code that I need to call to see if it has the...
{ "pile_set_name": "StackExchange" }
Q: Programatically insert variables into string.format ( C# ) so imagine this, I have the following variable set to a string.format: string foo = string.Format("{0} {1} {2} {3} {4} {5} {6} {7} {8}"); the Format method will have a lot more placeholders than this (64 to be precise) and depending on some conditions the...
{ "pile_set_name": "StackExchange" }
Q: Where is this function continuous/differentiable? Let $f: \mathbb R \to \mathbb R$ defined by $$f(x):= \begin{cases} x\sin x & x \in \mathbb Q \\ 0 & x\in \mathbb R \setminus \mathbb Q \end{cases}$$ In which $x\in \mathbb R$ is $f$ continuous (differentiable)? Looking at the graph the obvious assumption is that $f...
{ "pile_set_name": "StackExchange" }
Q: Calculating the terminal width and height As part of the bigger problem I am trying to solve smaller problems first and hence below is the code to find the terminal width and height. Code 'use strict'; class Terminal { width() { return process.stdout.columns || 80 } height() { return process.stdout...
{ "pile_set_name": "StackExchange" }
Q: Is there a polite way to ask for the person calling to identify themselves first? I've been getting a lot of spam phone calls. Today I had one from a strange number (started with 1188). When I said hello the person asked to speak to me by name. I confirmed it was me speaking, but the rest of call was so strange I'...
{ "pile_set_name": "StackExchange" }
Q: Xamarin/Mono for Android - AlertDialog crashing when customising the Title view I want to customise the alert dialog title background and the app crashes without showing the alert dialog. (The custom view only fill the message area excluding the title panel and buttons panel. I want to customise the default title ...
{ "pile_set_name": "StackExchange" }
Q: No persistent command history in Python 3.5 (virtualenv) I recently set up a new virtualenv for Python 3.5 on Ubuntu 16.04 and whenever I enter a python shell in the terminal (by typing "python3") I have no persistent history of commands I entered in the terminal previously. On the regular system python3, persiste...
{ "pile_set_name": "StackExchange" }
Q: Best practice for language sub domains in an Express server? So I have a Node/Express server set up, and we are making the transition from subdirectories to sub domains for localisation, eg: es.example.com // old way www.example.com/es // new way Doing this for a variety of reasons, but mostly to facilita...
{ "pile_set_name": "StackExchange" }
Q: IntelliJ code for specific project I am writing a cross platform game in IntelliJ IDEA using Java and I have run into a situation where I can't seem to find this feature which Visual Studio had: This feature allowed me to have a condition, (2 lines of code), for example #if keyword1/#endif, and the code between t...
{ "pile_set_name": "StackExchange" }
Q: Why is IE 11 not rendering :after element, showing css as crossed out in dev tools? I have an angular app with two font icons in a given screen. These are rendered just fine in chrome, firefox and edge, but on IE 11 they do not display. The icons are to be rendered as the content of the :after pseudo class, which ...
{ "pile_set_name": "StackExchange" }
Q: What are the major risks of Ethereum moving to Proof of Stake? There has been discussion about the motivations and benefits of moving to Proof of Stake. For a risk-benefit analysis of moving to Proof of Stake, what are the major risks? A: The biggest risk is, as in Proof-Of-Work, centralisation. Centralisation ...
{ "pile_set_name": "StackExchange" }
Q: How to find effective partition of $n$ into $k$? Here is a type of question that I find quite often on MO sites, that I couldn't quite solve: How many ways can I put $n$ identical balls into $k$ identical boxes, with $n>>k$, such that each box has at least one ball? For me, this question had $n=600$, and $k = 3$. ...
{ "pile_set_name": "StackExchange" }
Q: Delete operator and arrays? I have an abstract Base class and Derived class. int main () { Base *arrayPtr[3]; for (int i = 0; i < 3; i++) { arrayPtr[i] = new Derived(); } //some functions here delete[] arrayPtr; return 0; } I'm not sure how to use the delete operator. If I delete array of ba...
{ "pile_set_name": "StackExchange" }
Q: Text File Input ignore line of tabs I have a job in Pentaho with a Text File Input step reading from a tab delimited text file. Sometimes when this file is given they have lines that are empty of data but the row is filled with tabs because they copied empty lines in excel. Below is a screen shot of the 'empty' ...
{ "pile_set_name": "StackExchange" }
Q: Reference to Policy "`not-` tags inappropriate on this site"? A user has claimed that: not- tags are inappropriate on [StackOverflow]. Can anyone provide a reference to the policy/decision to which he refers? Or is he just stating an opinion? For example there is a tag I created, and he edited my question to re...
{ "pile_set_name": "StackExchange" }
Q: Rails controller view bug Alright total noob, tried to find out what was happening but I haven't seen this come up with anyone else as far as I could find. I'm going through a very basic blog tutorial with rails for the second time. made the home controller and the index view for it. all good. Next i made the 'po...
{ "pile_set_name": "StackExchange" }
Q: Matplotlib: incorrect histograms So I just learned about histograms on Khan Academy: When I go plot something similar in Matplotlib, it is plotted differently. Why? Shouldn't bins be completely filled? And since bin 5-6 has 3 counts (5, 6, 6), shouldn't it consists of a single bar of value 3? I'm confused A: B...
{ "pile_set_name": "StackExchange" }
Q: Proving that:$\lim\limits_{n \to \infty }\int |f_n(x)|\log(1+ |f_n(x)|)dm=0$ Let $f_n(x)$ be a sequence in $L_2(X; m) $ such that $$ \lim_{n \to \infty }\| f_n\|_2=0 $$ To prove $$\lim_{n \to \infty }\int |f_n(x)|\log(1+ |f_n(x)|)dm=0$$ I want to use dominated convergence theorem, but it's hard to find a g such t...
{ "pile_set_name": "StackExchange" }
Q: Complex MongoDB query using MongoEngine guys! I'm trying MongoDB(version 3.2) and MongoEngine and want to make complex query, but totally lost on how could i make it. If it's even possible. There is 4 documents: class File(EmbeddedDocument): path = StringField() class Episode(EmbeddedDocument): num = IntF...
{ "pile_set_name": "StackExchange" }
Q: PHP: multiple spaces in PHP implode I am imploding an array. Instead of using a "," or other delimiter I would like two spaces. How can this be accomplished? I've tried: <div>{implode(" ", $my_array)}</div> // Condenses to one space. <div>{implode("&nbsp; &nbsp;", $my_array)}</div> // Just prints out the &nbsp. ...
{ "pile_set_name": "StackExchange" }
Q: Hibernate saves/retrieves date minus day if application uses another timezone than MySQL I have an application started on tomcat on MACHINE_A with timezone GMT+3. I use remote MySQL server started on MACHINE_B with timezone UTC. We use spring-data-jpa for persistence. As an example of the problem, I will show the ...
{ "pile_set_name": "StackExchange" }
Q: Partition Image into 9 equal or nearly equal partitions: Matlab I need to partition an image to 9 equal or nearly equal partitions and store each of the partition into an array. So, the end result would be like array of arrays where each element of an array is a 2x2 array representing a partition of image. So far,...
{ "pile_set_name": "StackExchange" }
Q: SQLAlchemy - Querying with DateTime columns to filter by month/day/year I'm building a Flask website that involves keeping track of payments, and I've run into an issue where I can't really seem to filter one of my db models by date. For instance, if this is what my table looks like: payment_to, amount, due_date (...
{ "pile_set_name": "StackExchange" }
Q: Bounding the Riesz Isomorphism I'm working through the details of verifying various facts about the Riesz Isomorphism between a normed vector space $(E, || \cdot ||_E)$ (with an inner product) and its dual $E'$. One of the things that I want to show is that the map $f_y(x) = (x | y)$ is bounded and, in fact, $||f...
{ "pile_set_name": "StackExchange" }
Q: How to set the orientation of menu items to the right? How do I make a certain menuitem's horizontal alignment set to right like the following? Setting HorizontalAlignment="Right" in XAML wasn't the answer. Anyone know how? A: Does this layout help you? <Menu Height="20" > <Menu.ItemsPanel> ...
{ "pile_set_name": "StackExchange" }
Q: Real Time Search in UITableView I have implemented a UISearchBar for finding an element in UITableView. Everything seems to work fine, and now I am at the part where I need to actually perform real-time search for every key pressed in the textField, and narrow down the search with every button press. So before I s...
{ "pile_set_name": "StackExchange" }
Q: Using fields in inherited bound data I am attempting to get my head around using bound data with d3.js. I'm following the documentation and am now a little confused. I want to produce donut charts with radii that vary depending on the data. I am comfortable producing the arcs to make up a donut using an array, bu...
{ "pile_set_name": "StackExchange" }
Q: SqlCeResultSet.Close - Do I need to call it? I have seen some examples that after data is read using SqlCeResultSet that a Close is called. Do I really need to call close? What are the drawbacks if I don't close it? (does something else bad happen? Do I get memory leaks?....) A: Yes, you do need to Close your...
{ "pile_set_name": "StackExchange" }
Q: How do you use core.logic in a practical way in a larger Clojure program? I'm having trouble wrapping my head around how to mix clojure and core.logic. For example say I have the following problem: I have a list of key value pairs with attached scores: (:foo "10" 2) (:bar "20" 3) (:baz "30" 7) And I also have a m...
{ "pile_set_name": "StackExchange" }
Q: Linux Shell Script: How to compare a specific field in a text document with specific text in an if statement I have a file named transfer.log that has a few Apache logs. I need to count how many GET requests each IP address has logged. I know how to access the file and loop through the lines in the file but I am...
{ "pile_set_name": "StackExchange" }
Q: UIView animation delays I'm noticing that UIView animations using the UIView class methods seem to more or less put the program on "pause" until they finish. Is there a way to have an animation start that, for examples, lasts 3 seconds, and while it is animating, other aspects of the program are still running, ac...
{ "pile_set_name": "StackExchange" }
Q: What is the reason for WCF not supporting request streaming over HTTP with HTTP authentication? WCF does not support request streaming (aka streaming upload of large data) over HTTP with HTTP authentication. My first guess was it is because of authentication handshake causing the streaming request to be send twice...
{ "pile_set_name": "StackExchange" }
Q: Is crystal report for visual studio 2013 free? I just need to generate basic reports with random parameters passed from asp.net c# code to the report. I have searched a lot of pages even lots of people on stackoverflow have different opinions. But I need to clear this for my enterprise level project. Is SAP Crysta...
{ "pile_set_name": "StackExchange" }
Q: $28$ th largest known prime missing in the prime page database? If I here https://primes.utm.edu/primes/search.php enter $30$ at the last field, I should get the $30$ largest known primes. Apparently, the $28$ th largest known prime is missing. Is this an error in the database , or do I miss something ? A: It is...
{ "pile_set_name": "StackExchange" }
Q: SAP HANA - Monitor ressource access I would need to monitor several key performance indicator (KPI) in SAP Hana. For example : the number of times a view is executed (global) which users have executed a view Is it possible with SAP Hana ? Where is this information ? Many thanks for your help. A: You can enab...
{ "pile_set_name": "StackExchange" }
Q: Emmiting Data from one component to another Vuejs this is my Table component. <b-table class="table table-striped" id="my-table" :items="items" :per-page="perPage" :current-page="currentPage" :fields="fields" @row-clicked="test" lg ></b-table> method on the sa...
{ "pile_set_name": "StackExchange" }
Q: Mockito when is not mocking instead of calling actual method I am trying to mock for Java class. My test class, @RunWith(MockitoJunitRunner.class) public class ATest { @Test public void readContent() throws Exception { Map<String, String> params = new HashMap<>(); params.put("key", "value"); C c = Mockito.moc...
{ "pile_set_name": "StackExchange" }
Q: Four models of combinatorial proof Today I heard someone mention there are four combinatorial models to prove identities: tiling, flagpole, block walking and committee selection. I am familiar with the last one and up till this point I thought it was THE combinatorial method. For example it's not hard to show $\s...
{ "pile_set_name": "StackExchange" }
Q: Does the "Cancel Server Request" option in Outlook actually do anything? Over the years, I've had various Outlook lock-ups, largely when network connectivity is patchy, and it results in me having to kill the OUTLOOK.EXE process, re-launch it, and wait while it repairs my PST. There's an option on the system tray ...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to resend image url received from server back to it as an image after processing I have a remote server which has profile data and an image and when I retrieve it, I get the image url, which I can display using the <img> tag, by using the url. When I have to modify the details, I send a new image, f...
{ "pile_set_name": "StackExchange" }
Q: What constitues an appropriate check-my-proof question? I've read this, and also run into the unpleasant situation of having my proof that I wanted to get checked closed as "not constructive." I realize that a lot of people consider P vs. NP a "crank subject." In my own mind, at least, I am not a crank, in the se...
{ "pile_set_name": "StackExchange" }
Q: How to receive ip multicast, using only one NIC I have server with multiple NICs, running windows server 2003. My application receive multicast packets, but now i need to receive multicast packets just from one single network interface. I think this can help, but i have some questions. ip_mreq mreq; mreq.imr_mu...
{ "pile_set_name": "StackExchange" }
Q: Windows Forms -> WPF image control conversion question I've always worked with Windows Forms, but now I'm trying to learn WPF due to it's advantages. Some time ago I created a picturebox control (with help of Damien here). And for me it's very hard to convert this control into WPF's Image control. I haven't found ...
{ "pile_set_name": "StackExchange" }
Q: Adding New Role I have add new role in functions.php file by this code: // Add a custom user role $result = add_role( 'supplier_for_planvent', __( 'Supplier_For_Planavent' ), array( 'read' => true, // true allows this capability 'edit_posts' => true, // Allows user to edit their own posts 'edit_pages'...
{ "pile_set_name": "StackExchange" }
Q: Autocomplete Angularjs from $resource I have a problem with an autocomplete and angularjs. I have several ajax request every time i type and this is unusable. I tried to use a timeout without success.. this is code: $scope.autoCompleteResults = function(){ $scope.aborter = $q.defer(); $scope.resou...
{ "pile_set_name": "StackExchange" }
Q: I am trying to save a string to a MYSQL table from a radiobutton in java/Android studio I am trying to save a radiobutton string if it clicked. I am making a survey where I need to save a "yes" or "no" into a MYSQL table using volley. I am having a little trouble doing this and have tried to use the method below. ...
{ "pile_set_name": "StackExchange" }
Q: loadComponentFromURL falls over and dies, howto do CPR? Well I testing my jython program, that does some neat [".xls", ".doc", ".rtf", ".tif", ".tiff", ".pdf" files] -> pdf (intermediary file) -> tif (final output) conversion using Open Office. We moved away from MS Office due to the problems we had with automati...
{ "pile_set_name": "StackExchange" }
Q: MVC Html Helpers - How much control over inbuilt ones? I have some questions about html helpers in ASP.NET MVC Framework. So... Can I override a inbuilt helper like @Html.HiddenFor? Should I override, or create a CustomHiddenFor one? While creating a Custom one, how can I change the value from ModelMetaData and t...
{ "pile_set_name": "StackExchange" }
Q: Cropping multiple parts from the single image in Matlab I want to crop multiple parts from the image to make groudtruth using mouse pointer. There are different number of objects in each so I can't run for loop for specific number of times. However, I can use while loop. But how can I stop that? for i=1:10 ...
{ "pile_set_name": "StackExchange" }
Q: preg_match_all on remote content I try to parse an iCal: //open file $calendar = file_get_contents('http://app.kigo.net/public/ics.php?c-7ca2eb67c1a7fa8b87b2434ed1096076-422-9871b35967bb29f999cd11ac72943011'); //debug purpose echo $calendar; //parse string preg_match_all('#^BEGIN\:VEVENT.*...
{ "pile_set_name": "StackExchange" }
Q: Nagios: NRPE: Unable to read output, Can't find the reason, can you? I have a Nagios server and a monitored server. On the monitored server: [root@Monitored ~]# netstat -an |grep :5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN [root@Monitored ~]# locate check_kvm /usr...
{ "pile_set_name": "StackExchange" }
Q: Como fazer busca MYSQL procurar palavra no titulo e depois no texto e ordenar pelo titulo primeiro Tenho uma tabela com titulo e conteúdo e queria fazer uma busca para ver se o termo está em algum desses campos. Se tiver, trazer primeiro os resultados do titulo e depois do conteúdo tabela id|titulo|conteudo 1 |abc...
{ "pile_set_name": "StackExchange" }
Q: In cellForItemAt collection view is not updating indexPath by collectionView.reloadData() in swift 3 I actually want to create table with rows and columns and doing this using UICollectionView. Problem is with reloading or updating collectionView to add or delete rows in my table. Columns and hardcoded i-e 4. This...
{ "pile_set_name": "StackExchange" }
Q: Generate object array with values from Database Suppose I have this table: id | product_item | head_count 1 | 400 | 2 2 | 401 | 5 desired output: [ {"product_item": 400,"head_count": 2}, {"product_item": 401,"head_count": 5} ] How do I make th...
{ "pile_set_name": "StackExchange" }
Q: Multiple databases in Pyramid Firstly, I'm new to Python. Now that that's out of the way. I'm trying to access data on 2 different databases and display information on one view. http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/pylons/models.html#multiple-databases This^ seems incomplete after the ...
{ "pile_set_name": "StackExchange" }
Q: ANT Build: Can the token itself be parsed from other values from within the property file? Can the token itself be parsed from other values from within the property file? Is it possible to evaluate the token key, without hardcoding the token? Can the token itself be parsed from other values from within the propert...
{ "pile_set_name": "StackExchange" }
Q: Begin a glob with an exclude pattern I am trying to tweak some completion. Suppose I have: $ ls bar.baz foo_bar.baz foo.bar If I want completion to match all files that don't end in baz: $ shopt|grep extglob extglob on $ compgen -G "*.!(baz)" foo.bar The exclude glob works as expected. But if I want al...
{ "pile_set_name": "StackExchange" }
Q: Detect Hardware Acceleration at Runtime: Android Is it possible to consistently detect if an Activity has hardware acceleration enabled when it is created? I'm worried that users of my library will enable it through the manifest when they shouldn't, by not specifically disabling it for my Activity (as I instruct t...
{ "pile_set_name": "StackExchange" }
Q: Am I using NSTimer correctly in iPhone View-based app? I'm working on a simple proof-of-concept for an iPhone app (and important bit of info, I'm pretty new to Mac OSX development all around). I created a view based app with a timer. I declared my NSTimer in the interface of my app's controller, used @property a...
{ "pile_set_name": "StackExchange" }
Q: how to dynamically filter with react-native realm I am switching to realm for react native and would like to make use of their built in queries/filtering. I have checkbox filters with 3 possible options, the selected are passed as a array: var filters = ['complete', 'inProgress', 'notStarted'] How can i filter wi...
{ "pile_set_name": "StackExchange" }
Q: What knot can I use to connect to an eye bolt without losing tension? So I have a rope that goes through an eyebolt, like in the image. I pull from B so it's as tight as it can be. B is under the eyebolt. What knot can I use with this rope so I don't lose any of the tightness after pulling it? Thanks. A: 100% Tr...
{ "pile_set_name": "StackExchange" }
Q: Could not load the assembly 'App_Web_xmyvjx04' I compiled my ASP.Net files and uploaded them to my server (godaddy host) but I got this Run time Error: Parser Error Message: Could not load the assembly 'App_Web_xmyvjx04'. Make sure that it is compiled before accessing the page. Line 1: <%@ page language="C#" a...
{ "pile_set_name": "StackExchange" }
Q: Finding the rows that are not common in two tables in oracle I have two tables with following values. tab1 tab2 ---- ---- A A B E C F D G Output should be as follows: O/P --- B C D E F G A: select field from tab1 u...
{ "pile_set_name": "StackExchange" }
Q: Find a recursive formula for the number of combinations I have some question integrating between combinatorics and recursive formulas. Generally, I have some difficulty with the concept of recursion, as well as with the recursion in programming unfortunately. I have some question to solve, and maybe you can guide ...
{ "pile_set_name": "StackExchange" }
Q: Unable to use Microsoft.Web.Helpers in Razor view vbhtml file I want to use the Linkshare helper in the Microsoft.Web.Helpers dll. I added the reference to my project but if attempt to use it in the vbhtml file Visual studio underlines it with a blue squiggly and tells me it is inaccessible blah blah. I even added...
{ "pile_set_name": "StackExchange" }
Q: Where to specify custom directive dependency. is it the same at controller and directive level? I have a custom directive defined like this: app.directive('tagProfile', ['userService', function(userService) { return { restrict: 'E', scope: { mode: '@' ,entity: '=' ...
{ "pile_set_name": "StackExchange" }
Q: Calculate time spent on website not single page I want to calculate total time spent on my website not single page in jQuery. How can i do that? Please share your views. I can get time spent on single page via handling jQuery unload event but it reset on new page load. A: When user enter on any page, you have to...
{ "pile_set_name": "StackExchange" }
Q: The Wonderful Wanderfull Puzz In the land of Puzz, all the days are strange The sounds repeat, but with one wee change A troll trail hither and a dwarf wharf yon A wee hairy fairy or a fat fun faun Won't you come walking through the land with me And fill in all the blanks with the things we'll see Then take the ci...
{ "pile_set_name": "StackExchange" }
Q: Who is this Devi? Who is this Devi holding parrot in one hand? Kindly provide the authentic dhyana sloka. A: She is Sri Saradamba of Sringeri. Dhyana Sloka of Saradamba: (which resembles Dhyana Sloka of Dakshinamurthy as Saradamba is feminine form of Dakshinamurthy) मुद्रामक्षगुणं सुधाढ्यकलशं विद्यां च हस्तां...
{ "pile_set_name": "StackExchange" }
Q: joining three queries from same table I have to join 3 queries from same table. I have tried this code: SELECT t1.`board` ,t1.`price` ,t2.`price` ,t3.`price` from boardtype t1 RIGHT JOIN(SELECT `price` from boardtype WHERE `acnonac`='ac' AND `roomtype`='single') t2 on t1.`board`...
{ "pile_set_name": "StackExchange" }
Q: XSLT - How to tell if an element with specific attribute value is the last in the matching series I have the following XSLT template <xsl:template match="xsd:element[@name != '' and not(starts-with(@type, 'common:'))]"> <xsl:if test="position() != last()"> "<xsl:value-of select="@name"/>", </xsl:...
{ "pile_set_name": "StackExchange" }
Q: Why did Jo consider Ned and Jack to be failures? In Jo's Boys in chapter 5, it is stated, Jack and Ned sent regrets and best wishes, and no one mourned their absence; for they were among what Mrs. Jo called her failures. Why were these two in particular considered to be failures? From the second chapter of Litt...
{ "pile_set_name": "StackExchange" }
Q: Mongoose findById Route Issue I'm writing a web application primarily to serve as a shopping cart. The landing/homepage of the app reflects products that are currently available for sale. What I'd like to do is route to each product using the product ID. I've defined a product model (adminProductModel) as follows:...
{ "pile_set_name": "StackExchange" }
Q: With MovableType, how do I make my banner image clickable? I have been having trouble getting my banner image on my blog to be clickable. If my site has an image named "banner.jpg", is it possible to make a generic javascript function that makes all images with that particular name on the page be clickable with ...
{ "pile_set_name": "StackExchange" }
Q: Append some JSON objects to a single projection for mongoDB I have a JSON object with parameters.projection = {"apples" : true} parameters.projection = {"oranges" : true} parameters.projection = {"lemons" : true} I pass parameters to another function that makes the call to mongoDB I need to combine those three e...
{ "pile_set_name": "StackExchange" }
Q: Symfony2 - Attempting to view my site in prod environment results in a blank screen; no errors/warnings in dev Cross-posted from the official Symfony Google Group because time is an issue: I'm in the final push to upload my site to my host. Everything runs fine in the dev environment - no errors, no warnings. Wh...
{ "pile_set_name": "StackExchange" }
Q: symfony2 forms - check if user wants to change his uploaded file in my form I got a file upload field, where the user can upload his avatar. So obviously he should be able to change it when he likes to. But somehow, if I want to upload a different image, symfony2 does not recognize that. I used LifecycleCallbacks ...
{ "pile_set_name": "StackExchange" }
Q: Access data in a file by column in R? If I have this file: symbol,length,pval a,5.196415406,0.02376069902 b,4.269985245,0.01861663475 c,3.591334103,0.01391749469 I wanna read the file and access it by column, like data$symbol or data$length: here is my code: res <- read.csv(file="myfile.csv", header=TRUE, sep=...
{ "pile_set_name": "StackExchange" }
Q: How To add JS file in frontend for all pages I've read 3 pages of Google Results on how to load a JS file for all pages and still am not able to do it. I've got a few doubts, hope somebody can clear them out. Do I need to create a module inside app/code with the requirejs-config.js ? Or I can put a requirejs-con...
{ "pile_set_name": "StackExchange" }
Q: InputHandler not working In my game, I have an InputHandler class that handles my action listeners. I have it working for other parts of my game code, but for some reason the key listener does not respond to my inventory class. In my InputHandler class (it extends JPanel): public InputHandler(InventoryGUI i) { ...
{ "pile_set_name": "StackExchange" }
Q: How to get memory information (RAM type, e.g. DDR,DDR2,DDR3?) with WMI/C++ I have DDR2 RAM on my windows XP SP 2 Machine, but on WMI explorer (win32_physicalMemory) I am getting Memory Type = 0(Unknown) instead of 21(the code for DDR2). NameSpace is CIMV2. Can you please tell me how to get DDR2 Memory Type From WM...
{ "pile_set_name": "StackExchange" }
Q: custom user table columns I'm doing this, which according to all of the documentation I've read, should override every column value in my manage users table. For some reason it's not working in WP 4.1. Any insight appreciated. function retro_custom_users_table_content($value, $column_name, $user_id){ $value = ...
{ "pile_set_name": "StackExchange" }
Q: Using substring to eliminate the directory path is not working I need to trim the directory path so that the file only shows up in a TextBox. I keep getting an out of range error. This is the code I have: string startPath = ""; string results = ""; string[] filePaths = Directory.GetFiles(@"C:\TwinTable\LeftTableO...
{ "pile_set_name": "StackExchange" }
Q: It is possible to use T::operator< as default parameter for template function? I wonder if it is possible to use operator< or some other as default parameter of some function. Some stupid trivial example: template <typename T> void compare(std::function<bool(T, T)> lessThan = T::operator<); I try to do this thing...
{ "pile_set_name": "StackExchange" }
Q: GitLab CI/CD - setup for LAMP project We have a regular LAMP project and we recently to moved to Gitlab (instead of Github). Previously we have been using Jenkins for deployment, now I am planning to migrate it to Gitlab CI/CD. We have servers A and B (with Loadbalancer) for development version and servers C and D...
{ "pile_set_name": "StackExchange" }
Q: Using Linearity of Matrix Transposition. Is the Following Proof Correct? Theorem. Given that $\beta = \{A_1,A_2,A_3,...,A_n\}$ is a linearly independent subset of $\mathcal{M}_{n\times n}(\mathbf{F})$, prove that $\alpha = \{A_1^t,A_2^t,A_3^t,...,A_n^t\}$ is also a linearly independent set. Proof. Assume that for...
{ "pile_set_name": "StackExchange" }
Q: Django with Postgresql on Heroku - settings.DATABASES is improperly configured. Please supply the NAME value I deployed on Heroku my project in Docker with Angular 4 frontend, Django backend and Postgresql database. At this moment my files look as shown below. When I open app I get error: 2017-07-11T19:51:14.48557...
{ "pile_set_name": "StackExchange" }
Q: upgrade magento 2.1.13 to 2.3.0 I want to upgrade my magento 2.1.13 to magento 2.3.0. But i don't know how to do it. I try to run "composer require magento/product-community-edition 2.3 --no-update" in command but it show a bug. http://prntscr.com/ls86ud A: composer require magento/product-community-edition 2.3....
{ "pile_set_name": "StackExchange" }
Q: C Function Returning a Pointer to a Pointer I'm a bit new to C here, and just wanted to understand a few things about pointers, pointers to pointers, and strings. Here's what I have written down so far: #include <stdio.h> #include <stdlib.h> #include <string.h> /* Return a pointer to an array of two strings. The ...
{ "pile_set_name": "StackExchange" }
Q: "adb devices" successfully shows device, but "adb connect usb" inevitably fails, any suggestions? I have an ASUS ThinkPad, Android 4.4.2, Kernel 3.10.20. I've checked Settings->Developer Options->USB debugging. I've disabled Wi-Fi and BT (because I've seen some devices have some conflict there). Now here's the ...
{ "pile_set_name": "StackExchange" }
Q: Is there a lib for manipulating CSS on the client side in Clojurescript? I want to make new CSS rules on the client, for doing CSS transitions for example. Apparently jQuery has this kind of thing, but what about in the world of Clojurescript ? I found Gaka and Garden for generating CSS on the server side like Hic...
{ "pile_set_name": "StackExchange" }
Q: Writing to Execl in C# Causing System.__ComObject I am trying to write data from a List<string> to a cell in an Excel file. The code can been seen below as I attempt to write the strings in the List "rawDTCs" to an excel sheet. for (int x = 0; x < rawDTCs.Count; x++) { excelWorkSheet.Cells[myRow, 25] += raw...
{ "pile_set_name": "StackExchange" }
Q: Get table to fill remaining width I'm having a bit of trouble getting my table to fill the remaining space within a floated element. This is what I'm trying to achieve: And this is what I have so far: HTML: <div class="parent"> <div class="left"> </div> <div class="right"> <table> ...
{ "pile_set_name": "StackExchange" }