text
stringlengths
175
47.7k
meta
dict
Q: How to show post based on id in url with PHP I'm building a simple page where I list all posts on. I'm a bit stuck because it's some time ago I made something like this. I want to show the specific post when clicking the link. Here's an image of what I mean: The blue 'title' is a url. I don't know how to link thi...
{ "pile_set_name": "StackExchange" }
Q: How to align flexwrap to the left? The component that was left alone should be on the left. I tried to use align-items: 'flex-start', but it didn't work. I'm trying to make a responsive layout where it fits several components in line, depending on the dimensions of the user's device. <View style={{flex: 1}}> ...
{ "pile_set_name": "StackExchange" }
Q: What is the 'true' argument in session->getBeforeAuthUrl(true)? What is the 'true' argument in session->getBeforeAuthUrl(true)? I see some cases where it is $session->getBeforeAuthUrl(true) and some $session->getBeforeAuthUrl() What's the difference? Almost impossible to google for this question and I don't see ...
{ "pile_set_name": "StackExchange" }
Q: Binding a route to '/' is responding to all 404s in Express? Hi I'm new to node and I'm having a routing issue with Express. I'm trying to create a mini MVC framework to create test projects with and learn node/noSQL. Most of the code is based off the MVC example (https://github.com/visionmedia/express/tree/master...
{ "pile_set_name": "StackExchange" }
Q: FBSDK 4.7.0 and iOS 9 Invite friends not getting notification My application is already live and I am updating it for iOS 9. So I am updating FBSDK. Everything is working fine while inviting friends.It opens the dialog box,choose the friends for invitation but I am not getting any notification. Here is my code: FB...
{ "pile_set_name": "StackExchange" }
Q: User agent style sheet forced I am working on a site developed in ASP.net already. I was changing the .master file for the website and decided that an upgrade to HTML 5 was required. So I removed the default xmls tag from the HTML tag in the .master file and this had no visible effect on the site. But as soon as I...
{ "pile_set_name": "StackExchange" }
Q: How does this TensorFlow sample actually update the weights to find the solution New to tensorflow, python and numpy (I guess that's everything in this sample) In the code below I (almost) understand that the update_weights.run() call in the loop is calculating the loss and developing new weights. What I don't see...
{ "pile_set_name": "StackExchange" }
Q: ngTagsInput "ngrepeat: dupes" and "Cannot read property 'replace' of undefined" I am attempting to use autocomplete inside ngTagsInput and I am getting the following errors: Error: [ngRepeat:dupes] http://errors.angularjs.org/1.2.9/ngRepeat/dupes?p0=item%20in%20suggestionList.items%20track%20by%20track(item)&p1=un...
{ "pile_set_name": "StackExchange" }
Q: Images or functioning websites for portfolio? I am new web designer, should I include images or functioning websites in my portfolio? All of my designs are personal projects that I have designed and built using html, css and javascript. By personal projects, I mean designs of generic website ideas: an e-commerce s...
{ "pile_set_name": "StackExchange" }
Q: Assets in Symfony2 I would like add CSS to one Action/View in my Project. In Symfony i can use for this config/view.yml in specific folder. This add CSS to section HEAD. In Symfony i use: {% stylesheets 'bundles/acme_foo/css/*' filter='cssrewrite' %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstyle...
{ "pile_set_name": "StackExchange" }
Q: DSL upload link breaks down. Where to look and not to look? In a small office where I set up the network, we recently started to experience WAN problems on the (V)DSL line. Specifically, up to three times per day the upload link breaks down to almost zero resulting in problems with any activities needing upload ba...
{ "pile_set_name": "StackExchange" }
Q: Merge images php I have many images with equal sizes (width and height). There can be more than 50 different images. I want to merge them on X and Y axes. On X axe 5 items and the rest on Y. For example, if we have 30 images, there will be 6 lines of images, 5 per line, like: 00000 00000 00000 00000 00000 00000 I...
{ "pile_set_name": "StackExchange" }
Q: Induced map in K-theory by a "trivial" bimodule Let $R$ be a ring (not necessary commutative) and let $P_{\bullet}$ be a perfect $R$-bimodule (chain complex). I will denote the category of perfect right $R$-chain complexes by $\textbf{Perf}(R)$. The endofunctor $-\otimes_{R}P_{\bullet} :\textbf{Perf}(R)\rightarrow...
{ "pile_set_name": "StackExchange" }
Q: Is there any option for dynamical extension of class in PHP? What I meant is to change the base class for a derived class dynamically. For example there are two classes B1 and B2. When I run a php script with parameter class=b1, a class (say class D) defined in that script should extend class B1 else if parameter ...
{ "pile_set_name": "StackExchange" }
Q: QXmlStreamReader: Put readNext() at the start or at the end of the loop? When reading Xml data with Qt's QXmlStreamReader: Should readNext() be put at the beginning or at the end of the while(!reader.atEnd()) loop? I've run across many examples that put it at the beginning, but also quite a few that put it at the ...
{ "pile_set_name": "StackExchange" }
Q: How to make onclick to fire when javascript returns false The onclick doesn't work when the javascript returns false. I need javascript to return false in order to animate the button. If I return true then the onClick works but the animation doesn't work. I have tried doing __doPostBack and UseSubmitBehaviour but ...
{ "pile_set_name": "StackExchange" }
Q: Find and Replace in a C File The Problem was to find and replace a string in a C File. I am new to C Files. I have tried the following code but I didnt get any output: #include<stdio.h> #include<string.h> int main() { FILE *f1,*f2; char *src,*dest,*s1,ch,ch1,ch2,ch3; int i;...
{ "pile_set_name": "StackExchange" }
Q: How do you suppress the console window on Windows? Take the basic example Gtk+ app and calll it main.vala: using Gtk; int main (string[] args) { Gtk.init (ref args); var window = new Window (); window.title = "First GTK+ Program"; window.border_width = 10; window.window_position = WindowPosit...
{ "pile_set_name": "StackExchange" }
Q: Mod rewrite subdomains based on query string I gave localhost an alias: 'myhost'. Entering 'myhost' in my address bar shows me /var/www/index.php. So far so good. Set up an apache virtual host on /var/www and called it 'myhost', then added three aliases: '*.myhost' '*.myhost.* 'myhost.*' the idea being that it wou...
{ "pile_set_name": "StackExchange" }
Q: Could one argue that h (Planck constant) and $\hbar$/2 (Dirac constant) are in fact independant constants? My question is very naive and could sound strange but it seems to me natural in so far as the Planck constant is related to the first quantization (of newtonian particle mechanics/galilean relativity) while t...
{ "pile_set_name": "StackExchange" }
Q: How to call MySQL function for every column that is present in table? I need to call a mySQL function for all columns in a table. I know how to do it for a particular column Like this: UPDATE `table_name` set `column_name` = function_name(`column_name`) But i have no clue how to do it for all columns at once. Than...
{ "pile_set_name": "StackExchange" }
Q: Why doesnt Hadoop work with Windows 7 under cygwin? I am trying to install and start hadoop 1.1.2 in cygwin on windows 7. I am getting the following issue when attempting to run a simple job: bin/hadoop jar hadoop-*-examples.jar pi 10 100 13/04/26 17:56:10 WARN hdfs.DFSClient: DataStreamer Exception: org.apache.h...
{ "pile_set_name": "StackExchange" }
Q: Stability of a matrix product Let $H$ be a real, invertible and positive semi-definite matrix, in the sense that its symmetric part $S$ is positive semi-definite. Consider the matrix $$ G = (I+\alpha H_d)H $$ for some $\alpha > 0$, where $H_d$ is the diagonal part of $H$ (obtained by setting all off-diagonal entri...
{ "pile_set_name": "StackExchange" }
Q: Will referencing weakSelf from within a method called by weakSelf cause a retain cycle? I think I understand how simple retain cycles are create but I don't fully understand more complicated situations. Here is code that would cause a retain cycle. (right?) [self.dataController loadInitialWithCompletion:^(BOOL dat...
{ "pile_set_name": "StackExchange" }
Q: Integrated Markdown WYSIWYG text editor In looking for a straightforward WYSIWYG editor for Markdown code, I am not finding a comparible UI to that of CkEditor, TinyMCE, ect. Specifically, the Markdown "WYSIWYG" editors that are often recommended (such as posts like this ) are not pure WYSIWYG editors in the se...
{ "pile_set_name": "StackExchange" }
Q: PHP/cURL post, just returns the page as if no post was made My goal is to get the prices from this site: http://nl.myprotein.com/sports-nutrition/impact-whey-protein/10530943.html. There is a price field on the site that is edited once a user selects a certain option Option code: <form action="10530943.html" metho...
{ "pile_set_name": "StackExchange" }
Q: Inserting interpolated "in-between" frames to a frame animation in Flash I've just started learning multiplication animations and I'm trying to draw some torch. I've drawn the fire animation and I'm sorta fine with it, it is made of fills I've drawn with brush tool and then bucket`ed. But for an unrelated reason I...
{ "pile_set_name": "StackExchange" }
Q: how to define keyCode or which or key or code properties for keyboard event As per my requirement, we need to write test specs for hot keys (say shift+1+L -- upload file).In my method i have written something like below public static SHIFTKEY : number = 16; this.keys = {}; document.addEventListe...
{ "pile_set_name": "StackExchange" }
Q: Rethinkdb removing data from documents I'm trying to remove some portions of data from documents with given fairly simple structure, which will get much deeper and heavier than this as the project goes: { id: "...", name: "...", phone: "...", data: { key1: "val1", ... } ... ...
{ "pile_set_name": "StackExchange" }
Q: Should I use external storage for data exclusive to my app? My app needs to download and save a big number of images and mp3s. These will make sense only for the app, only my app will be able to use them in an meaningful way. The user or other apps won't know what to do with them. Where should I keep them, in exte...
{ "pile_set_name": "StackExchange" }
Q: How to deploy angular2 cli app on github? I am front and engineer and have no experience with deploying. I am developing my pet project using angular-cli. How can I deploy it on github pages? There is another simple way to do this? A: You should follow the angular-cli Wiki stories which can be found here. The o...
{ "pile_set_name": "StackExchange" }
Q: Alternative to System.Web.UI.WebControls.TableCell I have a website which is code generating practically everything on the page. The home page consists of a right menu which is being built via code. It uses System.Web.UI.WebControls.TableCell class and creates a td for every new item. Here is a snippet of the code...
{ "pile_set_name": "StackExchange" }
Q: My Proof for the Cardinality of a Particular Binary Distribution my question reads as follows: I have constructed a proof and am concerned about 2 things: 1) The validity of my proof. 2) The construction of my proof. I am asking for someone to read through it and tell me where I can improve my proof for presenta...
{ "pile_set_name": "StackExchange" }
Q: Creating virtualenv with python3 I generally use python2.7 for projects. For one project, I need to use python 3.5+. I installed python3 on Mac. Also installed virtualenv using pip3. Now when I run the command virtualenv -p python3 test I get the following error: Running virtualenv with interpreter /usr/bin/pyt...
{ "pile_set_name": "StackExchange" }
Q: Creating a custom TableModel with multiple column headers and row headers I'm attempting to create a JTable that looks like the mockup below: The green corner is basically buffer-space for the red column and row headers. The cells don't need to be rendered in the colours pictured; however they need to be distingu...
{ "pile_set_name": "StackExchange" }
Q: ActionView::Template::Error (application.css isn't precompiled): Ive developed several apps on heroku before and never ran into this error: ActionView::Template::Error (application.css isn't precompiled): My latest push didn't even have a change to the application.css file.. Whats going on here? Ive seen articles ...
{ "pile_set_name": "StackExchange" }
Q: Keyboard shortcut for restoring applications from the Mac OS X Dock? Is there a keyboard shortcut to restore a minimised application window from the Dock? Almost all Apple Mac OS X applications respond to the Apple + M command which minimises the current application window to the Dock, which is fine. I can then us...
{ "pile_set_name": "StackExchange" }
Q: This question has a reason to be asked: Why isn't this question a duplicate? Addendum / Preface I did not get any response to this question, so I will explain why I'm asking: at some point yesterday evening I hit the 3K rep mark in SO: that means that now I have the power to vote to close questions. Voting is not ...
{ "pile_set_name": "StackExchange" }
Q: C header and source file confusion I wrote myself a littly module I want to reuse. I got my header file bitstream.h with a struct and function declarations and bitstream.c with the implementations. Now I'd like to use this in my other programs, but without manually compiling bitstream.c every time, like you don't ...
{ "pile_set_name": "StackExchange" }
Q: Open all links using system browser inside an ionic app I need that all links inside a certain section of my app open in the system browser. The trick is that those links come from an external source (an API) so I can't add the ng-click function that helps me to open the links externally. I'm using in-app-browser ...
{ "pile_set_name": "StackExchange" }
Q: Vue.js Axios: unable to update page after HTTP GET request I'm quite new to Vue.js and Axios. I'd like to learn it to create A REST CRUD Interface. Starting from the HTTP GET request, the examples I've found so far all execute an HTTP GET when the page load and print the returned data. That works pretty well. On ...
{ "pile_set_name": "StackExchange" }
Q: How to prove that if $(x \in Y) \implies (X \subset Y)$ and $(x \in Y) \lor (Y \subset X)$ , then $(X\subset Y) \lor (Y \subset X)$ I am trying to prove that if $(x \in Y) \implies (X \subset Y)$ and $(x \in Y) \lor (Y \subset X)$ , then $(X\subset Y) \lor (Y \subset X)$. It seems fairly obvious to me that you ca...
{ "pile_set_name": "StackExchange" }
Q: Add "for in" support to iterate over Swift custom classes As we know, we can use the for..in loop to iterate across Arrays or Dictionaries. However, I would like to iterate over my own CustomClass like this: for i in CustomClass { someFunction(i) } What operations/protocols does CustomClass have to support fo...
{ "pile_set_name": "StackExchange" }
Q: React, componentWillReceive lifeCycle Hook not being invoked (on passing props) I was trying to pass props both in App component (The root Component) and then to Header component from App itself. I have used Life Cycle Hooks upto componentWillReceiveProps() in both App and Header Component. componentWillMount(), r...
{ "pile_set_name": "StackExchange" }
Q: IronPython indexer parameter compilation error I am pretty new to IronPython. And I have a question about accessing element by indexer. For example in C# we can write something like this: But when I try to do in IronPython something equivalent: It tells me that there is "unexpected token '+='". I used '+=' incr...
{ "pile_set_name": "StackExchange" }
Q: Spark Streaming avoid check-point serialization issue when re-deploying the code we have a spark streaming application and enabled check-pointing. when we do code re-deployment, we need to delete check-point directory or give some other check-pointing directory, so there is going to be data loss, since we are usin...
{ "pile_set_name": "StackExchange" }
Q: Restricting a Bazel target to specific platforms I have a target which can only be built for Linux (in this case, because it depends on syscalls only available on Linux and there is no desire to try and make this cross-platform). How can I express this in my BUILD files? I can see from the Platforms documentation...
{ "pile_set_name": "StackExchange" }
Q: ValidationMessage always displays / Summary doesn't - ASP.NET MVC 3 The problem is: I have the an Ajax.BeginForm, that essentially consists of two dropdownlists and the submit button. I want MVC 3 validation to kick in if the user doesn't select an option from both of the dropdownlists. This is isn't happening. ...
{ "pile_set_name": "StackExchange" }
Q: Easiest way to initialize array/vector of objects in Java What is the simplest way in Java to create an array/list/vector of specified size filled with instances of classes created with the default constructor (I hope this term is used outside C++ also?). I want to make the code more readable and reduce the risk o...
{ "pile_set_name": "StackExchange" }
Q: Netbeans 6.9.1 Database Empty Nodes I'm a java developer who used Netbeans 6.8 previously and running all of the projects without any problems. Only today, I tried to use Netbeans 6.9.1 and getting my Database Node empty. How to solve it anyway? Preview1. Preview2. I tried to google but found no solutions. CMIIW. ...
{ "pile_set_name": "StackExchange" }
Q: How to redirect URLs that contain uppercase letters to another site Is there any .htaccess rule to redirect a URL that has uppercase letters to another URL / site? for example : /Abcgdr or, /aaaAbcgfr redirect to example.com A: This is as much a regular expression (regex) question than Apache config, the regex...
{ "pile_set_name": "StackExchange" }
Q: Comparing Sets of Number I have been trying to use NSSet and NSMutable set to compare a set of numbers using the IntersectSet function. However, I believe I m going against type by using integers. Is there a way to create an NSSet and use the IntersectsSet function for integers. Is there another way of accompli...
{ "pile_set_name": "StackExchange" }
Q: Ruby On Rails errors with javascript_include_tag So my issue, from what I can tell, seems to be that ruby is not loading all of its javascript files as I am not getting confirm messages and link_to with method: :delete does nothing for me. With the default set up provided to me rails new views/layouts/application...
{ "pile_set_name": "StackExchange" }
Q: Building plugin for ExtJS Grid I'd like to build a plugin, that will operate on Ext.Grid and allow some operations on it (adding new rows, updating them on some events etc) What type of component should my plugin extend to achieve best results ? A: ExtJS Grid provides two ways of adding functionality: Plugins F...
{ "pile_set_name": "StackExchange" }
Q: Using a property as an attribute argument I have written a custom credit card validation attribute that checks CardNumber property is valid for a particular card type (another property in the same class) [CardValidationBinCheck(this.CardType, ErrorMessage = "CreditCardNumberDoesNotMatchCar...
{ "pile_set_name": "StackExchange" }
Q: iOS: Is there an Apple Store acceptable way to check if screen is on/off? I'm a beginner to iOS, and want to see if I can have an app note the time that the phone's screen turns on or off. This would basically always be running in the background. I've read a lot of solutions that will work for jailbroken iPhones, ...
{ "pile_set_name": "StackExchange" }
Q: Does free functor preserve monomorphism? The free functor is left adjoint to the forgetful functor so it preserves epimorphism. In the category of modules and algebras, it also preserves monomorphisms (the free functors being free modules and polynomial rings, respectively). Is it generally true that free functors...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to change a input from a user in python? I'm very new to python but i will try to explain. I have a input like this 1234567890 and i want it to be more readable when it is a larger number and i want it to be formatted like this 1,234,567,890. from datetime import datetime def price_calc(): ...
{ "pile_set_name": "StackExchange" }
Q: Prove that $4\cos^4x-2\cos2x-1/2\cos4x$ is independent of x $4\cos^4x-2\cos2x-1/2\cos4x$ I don't know how to proceed. $\cos4x=2\cos^2(2x)-1$ Is this useful at all? A: Yes, $\cos4x=2\cos^2(2x)-1$ is useful, also $\cos^2x=\dfrac{1+\cos2x}{2}$. Now $$4\cos^4x-2\cos2x-1/2\cos4x=4(\dfrac{1+\cos2x}{2})^2-2\cos2x-1/2(...
{ "pile_set_name": "StackExchange" }
Q: How to fix Outlook script rule Error I'm trying to run my code using rule script to only processes newly arrived message but it keeps throwing Error What am I doing wrong on my code? Option Explicit Public Sub Test(Item As Outlook.MailItem) Dim xlApp As Excel.Application Dim xlWB As Excel.Workbook Dim...
{ "pile_set_name": "StackExchange" }
Q: Removing Space in my table field using Active Record My Table named SubSituationType has a name field. It has space at the end of the name. For Eg: SubSituationType.all.collect(&:name) gives ["Pos/Neg Space - Design ", "Pantone Match ", .....] I need to remove the space for all such values. How to do it? A: ...
{ "pile_set_name": "StackExchange" }
Q: Operation research - postoptimality analysis - find all solutions to problem I'm currently learning Operations Research from "Introduction to Operations Research - Hillier". I know that somethimes a problem has many optimal solutions. For example in a two dimensional problem the set of solutions could be all point...
{ "pile_set_name": "StackExchange" }
Q: What do we call a person who cannot read people? A person who has a low emotional IQ and is bad at reading people and decoding their expressions and body language. I don't think I need to give any statement for it. Edit: They do not have any physical or mental disorders but more like lacking empathy but are not ps...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to force to kill windows service using Octopus? My octopus installs Windows Service in a machine, but sometimes it can't stop the service so it doesn't deploy. If I manually go to the machine and try to stop the service, I can't. But if I first go to Task Manager and kill the process of the service,...
{ "pile_set_name": "StackExchange" }
Q: Не работает отбор значений по min Выделяю минимальные значения каждого периода из столбца Input. Это 'min'. Должно получатся минимальное число, но выходит 0. Как сделать правильно? from itertools import product import xlrd df = pd.read_csv('1111.csv') def first(s): return s.loc[(s!=0).idxmax()] # с изменение...
{ "pile_set_name": "StackExchange" }
Q: In the python serial port program, What should I do with 'b'? The serial port program attempted to print the data from the Python Let me show you the code I used. import serial import time ser =serial.Serial(port="COM1", baudrate=926100, bytesize=serial.EIGHTBITS, ...
{ "pile_set_name": "StackExchange" }
Q: Which operation in the FFT that is disturbed with the NAN values I know that FFT function cannot work with NAN values. We used either inerpolation to get ride of those NAN or we replace the NAN with zeros. Yet, I am wondering why FFT cannot work with NAN?. FFT basically makes a summation of the time series after m...
{ "pile_set_name": "StackExchange" }
Q: Why Java Collections API does not have Tree implementation Just out of curiosity, I recently had to use a tree for one of my programs, i had to build a binary tree myself, but why does the Collections API does not have a default implementation of tree(or even a binary tree)? I think there should be some strong rea...
{ "pile_set_name": "StackExchange" }
Q: Undefined variable report-content Soy nuevo por aquí y tengo una pregunta, ojalá puedan ayudarme. Recibido este error del plugin de WordPress report-content Notice: Undefined variable: message in /storage/emulated/legacy/htdocs/wp-content/plugins/report-content/inc/reports-list.php on line 26 Este es el archivo ...
{ "pile_set_name": "StackExchange" }
Q: How to restrict access to the site during development? I am creating a new Drupal 7 based site. The development will be on a server that is publicly accessible. I am working in a multi-site environment. I would like to totally block access to the site to anyone & anything but authorized users. Including access t...
{ "pile_set_name": "StackExchange" }
Q: What should my opportunity represent? There are so many ways we can use opportunity, I'm trying to find out what is the best for our situation. We keep track of multiple contacts using multiple products. And they have to renew their use of each product every year. We have a focus more on the contact than on the ac...
{ "pile_set_name": "StackExchange" }
Q: RedHawkSDR - USRP N210 - Cannot run USRP_UHD Component I imported this github c++ project: https://github.com/RedhawkSDR/USRP_UHD into redhawk, hoping to run it with a USRP N210. Redhawk only allows me to run the project as a component or C++ Application, so I tried running it as a component. Here is the exact er...
{ "pile_set_name": "StackExchange" }
Q: Array PDO mySQL com Json erro na exibição estou com uma grande dificuldade em json_encode echo json_encode($autocomplete -> fetchAll(PDO :: FETCH_ASSOC)); eu estou fazendo um select do banco de dados até ai tudo bem, mas quando ele transfere os dados para este echo ai de cima, aparecem muitos caracteres que o jav...
{ "pile_set_name": "StackExchange" }
Q: 'Calculating area and circumference of a circuit' program in c ... strange output I'm working on this program that ask user to enter radius of a circuit then ask them to choose what he want to calculate: area, circumference, or volume of cylinder.. #include <stdio.h> int main(void) { float radius=0.0,height=0.0;...
{ "pile_set_name": "StackExchange" }
Q: singular or plural verbs for compound nouns and modifiers I am confused why the compound noun has the singular verb "HAS" in the modifier clause "which has won awards..." and the plural verb "HAVE" as the main verb. Should I use plural or singular verb as the verb in the main and modifier clause? A national superm...
{ "pile_set_name": "StackExchange" }
Q: Error: The Web Server 'http://dnndev/Website/DesktopModules/DNNSample/' could not be found i followed the video tutorial there at http://www.youtube.com/watch?v=yKW97CqVb1Y. but when i create the project am getting an error "The Web application project DNNSample is configured to IIS.The Web Server "http//dnndev/W...
{ "pile_set_name": "StackExchange" }
Q: Mathematica transformation rules with trig functions I'm an occasional Mathematica user and I am trying to transform an expression from spherical to Cartesian coordinates. My function is defined as: g[theta_, phi_] := Cos[phi](Sin[theta])^2 Sin[phi] I'm hoping to transform that function using the following rules:...
{ "pile_set_name": "StackExchange" }
Q: What is the difference between "aggregation" and a "representative agent?" What is the difference between "aggregation" and a "representative agent?" I'm sorry if I'm not entirely clear on this question, but that's why I ask. It seems to me as if a representative agent is defined as a situation in which a competit...
{ "pile_set_name": "StackExchange" }
Q: Jenkins - add JDK 11 to JDK list I need to build my application using Java 11. However the dropdown menu stops at Java 9. What do I do? OpenJDK is acceptable too. I'm on the latest version of Jenkins. Edit: as of now I've downloaded the binaries using wget, extracted them on the machine, and added a JDK JDK_HOME e...
{ "pile_set_name": "StackExchange" }
Q: AutoMapper 9 mapping nested tables I'm using AutoMapper 9 and I want to mapping my nested table. In older version of AutoMapper I've used "CreateMap" like this: CreateMap<Table, ViewModel>().AfterMap((s, d) => Mapper.Map(s.Table2, d)).ReverseMap(); I've found this example below but this working for only one elemen...
{ "pile_set_name": "StackExchange" }
Q: How to handle invalid routes from two files I am trying to resolve a scenario where I want to catch invalid routes and throw a message in Node. I have two files, one User file and one Task file. If I hit an endpoint/route that does not exist, I want to throw a message to the screen that says it is an invalid route...
{ "pile_set_name": "StackExchange" }
Q: error "no module named bs4" "ImportError: No module named bs4" this error comes every time i run the code. even trying "pip install beautifulSoup4" does not solve the problem.by the way pip does work by itself. This is the code I am trying to run: from bs4 import BeautifulSoup import requests url = raw_input("En...
{ "pile_set_name": "StackExchange" }
Q: Magento 2: Login user programmatically showing wrong default header message "Default welcome msg!" instead of showing "Welcome, user!" When you login to Magento 2.2.6 programmatically with code below, header show default message "Default welcome msg!" instead of "Welcome, user!" // Load customer session $customerS...
{ "pile_set_name": "StackExchange" }
Q: How to access static assets in CodeIgniter? I am using CodeIgniter for a Project . Folder Structure - htdocs/NewProject/application I created a controller called Home - applications/controllers/home.php I created a view - applications/view/index.php I can access the index.php without issue . My route is $route...
{ "pile_set_name": "StackExchange" }
Q: Are questions about names of in game music on topic? I recently saw that this question about a song that plays on GTA Online was closed as Off-topic, with Wrigglenite saying in the comments: I'm voting to close this question as off-topic because it's about Christmas songs, not video games If you ask me, this que...
{ "pile_set_name": "StackExchange" }
Q: Moving multiple file types (*.jpg, *.pdf and *.tiff) to another directory with Python I'd like to move files with selected formats/types (eg: pdf, jpg and tiff) to another directory. Currently, I have this code below that moves ALL files from dir1 and its sub-directories to dir2: for root, dirs, files in os.walk(...
{ "pile_set_name": "StackExchange" }
Q: Send Parameter to Multiple Subroutines in Perl Module I'm creating a user module to extract user information and currently I have: sub new { my $class = shift; my ( $id ) = @_; my $self = getUserInfo ($id); bless $self, $class; return $self; } sub getUserInfo { ... } However, I would like...
{ "pile_set_name": "StackExchange" }
Q: How to hide nav bar component in reactjs using protected route Hi there i have created a protected route in and passing navbar as parent component. then i passing child components in protected rout i want to hide navbar in some component on some action Here is my protected.router.js code import React from "react...
{ "pile_set_name": "StackExchange" }
Q: Apache/PHP does not show images I have a strange problem with Apache and/or PHP that is driving me nuts. Before I explain the problem here is everything I know about the environment. The Environment OS: Ubuntu SMP x84_64 Apache Version: 2.x PHP Version: 4.4.9-nmm4 It is a shared hosting plan so I don't have acces...
{ "pile_set_name": "StackExchange" }
Q: rotating coordinate system with time I am not sure if this is the correct place for my question, but I'll give it a shot. I guess it is somewhere between CS and physics, but since I am programming this in C++, I'll post it here. I am looking at a particle in 3D, which is being bent in the (x, y)-plane due to a fo...
{ "pile_set_name": "StackExchange" }
Q: JTable - Toggle Columns with PopupMenu (like Windows Explorer) How would I go about creating a JTable in Swing that allows the user to toggle columns with a simple dropdown meun, like in Windows Explorer folders? My table has 12 columns, and the screen cannot fit all the information on the screen at once. Since th...
{ "pile_set_name": "StackExchange" }
Q: How can I pass the index of a for loop as the argument for pthread_create I am using a for loop to create a number of threads and passing the index i as an argument as follows: pthread_t p[count]; for (int i = 0; i < count; i++){ pthread_create(&p[i], NULL, &somefunc, (void*)&i); } Then I attempt to retrieve ...
{ "pile_set_name": "StackExchange" }
Q: NETLOGO : Give command to ONLY turtles which variable fulfill the condition - after "foreach" users, I am trying to give command for turtles who have various variable. My agent called consumers. Each "consumers" has different need which represent by its color ( I use 14 color-base). When the number of consumers wi...
{ "pile_set_name": "StackExchange" }
Q: Minifabric custom network I am setting up a hyperledger fabric environment using the Minifabric tool. I am specifying the structure of my custom network in the spec.yaml file in the working directory: fabric: cas: - "ca1.university.com" - "ca2.university1.com" - "ca3.university2.com" - "ca4.org.com" - "ca5.org.com...
{ "pile_set_name": "StackExchange" }
Q: Can anyone explain this paragraph of the current C++0x standard draft? Can anyone explain this statement from ISO N3242 §3.2, 2nd point An expression is potentially evaluated unless it is an unevaluated operand (Clause 5) or a subexpression thereof. A variable or non-overloaded function whose name...
{ "pile_set_name": "StackExchange" }
Q: How to mock an interface default method Java8/Mockito2 I cannot mock a method defined as default in an interface. Can anyone help me here? The interface has default method providing a logger. import org.slf4j.Logger; import org.slf4j.LoggerFactory; public interface Loggable { default Logger logger() { retu...
{ "pile_set_name": "StackExchange" }
Q: Possible to install 64-bit Windows on 32-bit UEFI? I recently purchased an HP Stream 7, which I was led to believe would have Windows 8.1 64-bit installed. However, it has 32-bit Windows, even though it has a 64-bit processor. Installing 64-bit has been problematic, and I found the reason is the 32-bit UEFI. Is th...
{ "pile_set_name": "StackExchange" }
Q: Can't get data from Dark Sky API I try to get information about the weather hourly from the Dark Sky API, but the code stops working at the if let data = hourly["data"] as? [String : AnyObject] line (checked with printing stuff after every line). I want to know what is wrong with my code. I think it could be somet...
{ "pile_set_name": "StackExchange" }
Q: Contrapositive help understanding these specific examples from Graph Theory Can somebody explain the contrapositive logic used in this Graph Theory textbook (Introduction to Graph Theory 2nd Edition by D.B. West) when proving Hall's Theorem, and also when proving Berge's Theorem (both proofs along with the contrap...
{ "pile_set_name": "StackExchange" }
Q: Javascript function changeImage: Issues using variables for getElementById or getElementsByName I'm having some trouble getting my code to do what I want. I have multiple sections that I have set to toggle show/hide, and it functions correctly. However, I'm now trying to switch the images to where instead of alway...
{ "pile_set_name": "StackExchange" }