text
stringlengths
175
47.7k
meta
dict
Q: Algolia - How to customize the tags display name in the menuSelect dropdown list I found this menuSelect widget in Algolia instantSearch and I implemented successfully. But currently the filter names it displayed are the tags directly from the indices config. Is there a way to replace those name with my own filter...
{ "pile_set_name": "StackExchange" }
Q: Can Apache 2.4, PHP be installed and used with elementary OS? Will Apache2.4, PHP and OpenJDK 8 JRE run well with elementary OS Loki? A: They should run fine! These applications all work on Ubuntu. In general, software that works on Ubuntu also work on elementary. I'm running Apache and PHP in a virtual server u...
{ "pile_set_name": "StackExchange" }
Q: Retrieving jQuery data from dynamic HTML element returns undefined I am trying to retrieve data from a variable HTML element. On click, the id of the <span> element is retrieved, which I want to enable me to dynamically $([dynamic id]) select that element and request the data stored in the data attribute. My jQue...
{ "pile_set_name": "StackExchange" }
Q: goog.net.xhrio.send not calling the server I am calling goog.net.XhrIo from within this onclick event goog.events.listen(invBtn, goog.ui.Component.EventType.ACTION, function(e) { goog.net.XhrIo.sent('http://remotehost.com:8080/customer/add'); (update :typo here send instead of sent ) This is the ver...
{ "pile_set_name": "StackExchange" }
Q: Set workbook is failing in VBA I have this simple bit of code which I can not work out why it fails. The workbook TestData.xlsm is open. The code is failing on the line Set WBook. It is driving me batty. I need to move on to why I am writing the code. I have tried different code from the internet and everything ...
{ "pile_set_name": "StackExchange" }
Q: ionic pro gives an error ERROR: Job failed: exit status 1 I have pushed my project to the ionic pro repository and i have got the error in building the project in ionic pro online Error: Failed to transpile program at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28) at /usr/s...
{ "pile_set_name": "StackExchange" }
Q: Local Galois representation associated to twist of modular form Let $f$ be a modular newform of weight $k \geq 2$, level $N$ (square free) and trivial nebentypus. Let $V_{f}$ be the $p$-adic (p odd) Galois representation associated $f$. We denote by $V_{f,l}:= V_{f}|_{G_{l}}$. Let $\chi$ be a quadratic character o...
{ "pile_set_name": "StackExchange" }
Q: Cannot GET angular5 app on refresh with webpack I'm building an angular5 app and I've introduced the HtmlWebpackPlugin which is causing the cannot get issue on reload. Here are my webpack configs webpack.base.config.js const webpack = require("webpack"); module.exports = { entry: { app: "./scripts/app/inde...
{ "pile_set_name": "StackExchange" }
Q: PHP & Composer, how do I combine composer.json files Can someone explain how I'm supposed to use composer with a php. I have a composer.json file in my doc root that downloads the core packages for my project, but then when I want to add another project like google+ php sdk found here https://github.com/googleplus...
{ "pile_set_name": "StackExchange" }
Q: How to create a h2 database from some fields of a CSV file i would like to create a new embedded h2 database from a CSV file. Here is the snippet of the csv file Country,City,AccentCity,Region,Population,Latitude,Longitude ad,aixovall,Aixovall,06,,42.4666667,1.4833333 ad,andorra,Andorra,07,,42.5,1.5166667 ad,ando...
{ "pile_set_name": "StackExchange" }
Q: Where is ptrdiff_t defined in C? Where is ptrdiff_t defined in C? A: It's defined in stddef.h. That header defines the integral types size_t, ptrdiff_t, and wchar_t, the functional macro offsetof, and the constant macro NULL.
{ "pile_set_name": "StackExchange" }
Q: High Level language with Low level Graphics I am looking for a high level language which will still allow me to work directly with graphics. I want to be able to modify screen pixels, for instance. But I do not want to write huge amounts of code for each operation. I want simple one line commands for graphics some...
{ "pile_set_name": "StackExchange" }
Q: How will React 0.14's Stateless Components offer performance improvements without shouldComponentUpdate? This question has been going round and round in my head since I read the release notes (and other related hype) around React 0.14 - I'm a big fan of React and I think that stateless components (https://facebook...
{ "pile_set_name": "StackExchange" }
Q: Changing cassette from 8 to 10 or 11 to meet the Shimano 105 5800 groupset I upgraded following parts to Shimano 5800 (front and rear derailleurs, crankset, chain, STI shifters). The last thing left to replace is 8 speed Shimano CS-HG51 cassette. Unfortunately I cannot index the new 105 5800 shifter with this cass...
{ "pile_set_name": "StackExchange" }
Q: Django locale setting on Linux and Windows for number formatting I have a Django custom template tag @register.filter("numformat") @stringfilter def numformat(value, uLocale=''): if uLocale.count('%') > 0 : return str((float(value)) *100) + "%" uLocale = uLocale.encode('utf8').strip("%") try...
{ "pile_set_name": "StackExchange" }
Q: Software RAID 10 not any faster than s/w RAID 5 on Ubuntu 14.04 box, why? We are doing some tests on a new database server with 4 x 240 GB SSD disks. From what I have read RAID 10 should be faster than RAID 5 with the same "one-disk loss ok" redundancy. However when testing with bonnie++ it seems the RAID 10 isn't...
{ "pile_set_name": "StackExchange" }
Q: Callback function is not executing I'm learning about callback functions, and I have this code where I pass the initial function in as a parameter, into the final function. I can't seem to work out why this isn't woking? It's supposed to turn the body element red, and also log the variable 'body' to the console. ...
{ "pile_set_name": "StackExchange" }
Q: R.java not updating I am unable to build my app because R.java will not update the ids. I updated the id in main.xml but the old values remain. This obviously prevents it from building. Is there any way to fix this? Could I manually update R.java by renaming the variables and leaving the references untouched, or i...
{ "pile_set_name": "StackExchange" }
Q: Does orbiting within the outer Van Allen radiation belt increase or reduce environmental radiation levels? GPS satellites are right in the outer Van Allen radiation belt (a little above 20,000 km). Communications satellites in GEO are higher, but still in it. If I recall correctly, both the inner and outer Van All...
{ "pile_set_name": "StackExchange" }
Q: unexpected T_DOUBLE_ARROW Hi I'm getting an unexpected T_DOUBLE_ARROW on line 13. I know it seems like quite a complicated set of arrays but it needs yo be like this. There are probably more errors later on also. Please could someone explain my mistake. Thanks <?php $LibraryStatus = true; $ControlStatus = true; $...
{ "pile_set_name": "StackExchange" }
Q: C#, .Net - Implementing Forms Authentication using a custom user validation Basically I have a web app that I'm building on top of an existing API and when the user logs in the userName and Password are passed via a SOAP call for authentication and I get a response telling me if the user is valid or not along with...
{ "pile_set_name": "StackExchange" }
Q: How to get data from bundle of onSaveInstanceState in Android Hello I am trying to get the data from bundle of onSaveInstanceState of Activity in Android. I am looking to get value of this attribute curTab which are in bundle data. Bundle data is here : Bundle[{android:viewHierarchyState=Bundle[{android:views={169...
{ "pile_set_name": "StackExchange" }
Q: Better representaion of natural numbers as sets? Natural numbers can be represented as $0=\emptyset$ $1=\{\emptyset\}$ $2=\{\{\emptyset\}\}$ $...$ or as $0=\emptyset$ $1=\{0\}=0\cup\{0\}$ $2=\{0,1\}=1\cup\{1\}$ $...$ What are the names of these representations? Aren't they identical? What are advantages of second ...
{ "pile_set_name": "StackExchange" }
Q: Why ColumnTransformer does not call fit on its transformers? I have defined data for fitting with one categorical feature "sex": data = pd.DataFrame({ 'age': [25,19, 17], 'sex': ['female', 'male', 'female'], 'won_lottery': [False, True, False] }) X = data[['age', 'sex']] y = data['won_lottery'] and pi...
{ "pile_set_name": "StackExchange" }
Q: Chart.js - generateLegend() call results in "undefined is not a function" When I attempt to call generateLegened() on my chart: var ctx = $("#chart").get(0).getContext("2d"); var ctxOptions = { responsive: false, legendTemplate: "<ul>LEGEND</ul>" }; var chart = new Chart(ctx); chart.Line(data, ctxOptions)...
{ "pile_set_name": "StackExchange" }
Q: How to align (up, down, right, left) stuff within a grid of Bootstrap 3 I have a row with two equal columns (.col-md-6). The first column has a image. The second has a bit of text. I want to align the second like this: bottom:0; right:0. In order to do that, I have to do position: absolute; on the second column a...
{ "pile_set_name": "StackExchange" }
Q: How to write a query for one to many mapped records I have got these three tables. channels (id, id_account, kind, datetime, state, id_target) channel_contacts (id, id_channel, id_contact, archived) channel_events (id, id_channel_contacts, code, details, datetime) channel_contacts relationship to channels PRIMA...
{ "pile_set_name": "StackExchange" }
Q: css skewed arrow box with transparent background Basically thats the shape I want to create in CSS, the height is 192 and I want the background to be transparent. Can I do this in CSS and if so is it smarter to do with SVG maybe? Thanks A: linear-gradient maybe ? div { margin-top:50px;/*snippet button ! */ ...
{ "pile_set_name": "StackExchange" }
Q: How to solve this integration: $\int_0^1 \frac{x^{2012}}{1+e^x}dx$ I'm having troubles to solve this integration: $\int_0^1 \frac{x^{2012}}{1+e^x}dx$ I've tried a lot using so many techniques without success. I found $\int_{-1}^1 \frac{x^{2012}}{1+e^x}dx=1/2013$, but I couldn't solve from 0 to 1. Thanks a lot. A:...
{ "pile_set_name": "StackExchange" }
Q: Why does curl allow use of the file URL scheme, but not wget This question refers to curl 7.21.4 and GNU Wget 1.13.4, I don't know if the answer is version specific. Using the file URI scheme I can get local file using curl as such $ curl file://localhost/Users/dave/.vimrc contents of .vimrc However if I try the ...
{ "pile_set_name": "StackExchange" }
Q: Is there a way, using regular expressions, to match a pattern for text outside of quotes? As stated in the title, is there a way, using regular expressions, to match a text pattern for text that appears outside of quotes. Ideally, given the following examples, I would want to be able to match the comma that is out...
{ "pile_set_name": "StackExchange" }
Q: What does the prefix "\c@" mean in build log? I just follow the LaTeX tutorial to create the first "Hello World!" .tex file, and translate it to PDF file. Then I go through the .log file and see the following, ("C:\Program Files\MikTeX\tex\latex\base\size10.clo" File: size10.clo 2014/09/29 v1.4h Standard LaTeX fil...
{ "pile_set_name": "StackExchange" }
Q: Random numbers causing problems Say I have a member variable vector<bool> rightWall;. rightWall has width*height indices. I want to access a random index of rightWall. So I do: index1=rand()%(width*height-1); rightWall[index1]=true; But I get Valgrind errors: Invalid read of size 8. rightWall was never initialize...
{ "pile_set_name": "StackExchange" }
Q: How can I get certain parameters of tweets to save them into a file using json.stringify? (Method I use works for Stream but not for GET) I am trying to save into a file only user @screen_name and text of the tweet I get using the Twitter API and I cant find any documentation for this on Twitter API website or jso...
{ "pile_set_name": "StackExchange" }
Q: SEO Question about URL Slashes in Slugs I do a lot of development in Codeigniter and Wordpress, but I'm wondering something in terms of SEO when it comes to URL segmentation. Wordpress automatically adds children page slugs onto a parent page. For example: http://example.com/parent/child/child/ Would it be better ...
{ "pile_set_name": "StackExchange" }
Q: Fatal error: Allowed memory size of 67108864 bytes exhausted I've got a script that's giving me headaches on a particular server. I keep getting this error: Fatal error: Allowed memory size of 67108864 bytes exhausted Even though I've edited php.ini to this: max_execution_time = 300 ; Maximum execution time o...
{ "pile_set_name": "StackExchange" }
Q: C type casting with "const" keyword I usually use C type casting in C/C++ code. My question is, does adding the "const" keyword in the casting type mean anything to the result? For example, I can think up several scenarios: const my_struct *func1() { my_struct *my_ptr = new my_struct; // modify member varia...
{ "pile_set_name": "StackExchange" }
Q: Linear group action on a projective variety I already posed this question, but my formulation was quite erroneous and unclear so I decided to repost it (which is hopefully not against the rules). On page 116 in Harris' book "Algebraic Geometry - A First Course" an action of a group $G$ on a projective variety $X \...
{ "pile_set_name": "StackExchange" }
Q: Disable Client-side caching in .NET Core console app? I'm trying to run some Azure batch jobs, and I'll get to the end when I get a 403 Forbidden from the Azure service. Upon googling, I discovered this article which implies the issue is related to client-side caching of credentials, and offers a solution by modi...
{ "pile_set_name": "StackExchange" }
Q: jaxb xs:element ignore empty list i have a schema file like <xs:complexType name="Autorisation"> <xs:sequence> <xs:element name="roles" type="Roles"/> </xs:sequence> </xs:complexType> <xs:complexType name="Roles"> <xs:sequence> <xs:element name="role" type="Role" maxOccurs="unbounded...
{ "pile_set_name": "StackExchange" }
Q: AJAX переход по страницам В общем решил я сделать, чтобы менялась только центральная часть сайта, т.е. при нажатии на ссылку например "http://site.ru/fb.php" с помощью js блокируется переход по странице, далее делается запрос через аякс на пхп файл, который открывает ту страницу и запоминает её хтмл код, но открыв...
{ "pile_set_name": "StackExchange" }
Q: Fundamental group S^2/~ Let $X = \mathbb{S}^2/\sim$ where $(cos(\theta), sin(\theta), 0 ) \sim (cos(\theta + \pi), sin(\theta + \pi), 0 )$ for all $\theta \in [0, 2\pi]$ Calculate fundamental group of $X$ I try use Seifert - Van Kampen theorem but and i find that the group is $\mathbb{Z} *_{\mathbb{Z}} \mathbb{Z}...
{ "pile_set_name": "StackExchange" }
Q: Mongoose.js - population and additional fields? I want to add some additional data to UserModel like watchedMovies and I have following schema: let userSchema = new Schema({ watchedMovies: [{ type: Schema.Types.ObjectId, ref: 'Movie' }] }) and: let movieSchema = new Schema({ title: String }) I was ...
{ "pile_set_name": "StackExchange" }
Q: Event Hub Pointer w/ Azure Functions I have asked this q on the microsoft docs, was then asked instead to post on msdn social forums, who then said i should post here... So, consider that i have an EventHub, & something happens / errors during working with that message, does the pointer moved on regardless, or is ...
{ "pile_set_name": "StackExchange" }
Q: Runtime error, sorting function without using .sort I am supposed to write the sorting function. Define a function sort list that takes in a list and returns a list sorted in ascending order. (4 marks) Note: your code should make use of the insert list function defined earlier. With my previous defined variables: ...
{ "pile_set_name": "StackExchange" }
Q: No resource identifier found for attribute 'paddingEnd' in Package 'android' I have a problem with the XMl file in v17/mr-media_route_list_item.xml. I keep getting this error and have not found a solution yet! Here is a printshot of the XML and the Problems* XML CODE BELOW : <?xml version="1.0" encoding="utf-8...
{ "pile_set_name": "StackExchange" }
Q: Web2py SQLFORM.grid Selecting a field but not displaying in grid My grid displays products with a LEFT OUTER JOIN to show extra information if the product has already been selected. All works great. Now I want to add the product description to title attribute of the product name. So when the user mouse over (mouse...
{ "pile_set_name": "StackExchange" }
Q: Changing width on a Report's subform field I have tried the following VBA code in the [A Report] event handlers as well as in the SubForm eventhandlers and the Width does not change when I view the report. REPORTS![A Report]![SubForm]![TextField].Width = 7920 A: Changing the size in Design Mode did not work. I h...
{ "pile_set_name": "StackExchange" }
Q: find duplicated csv columns from list [python pandas] I want to find duplicate columns from a list, so not just any columns. example of correct csv looks like this: col1, col2, col3, col4, custom, custom 1,2,3,4,test,test 4,3,2,1,test,test list looks like this: columnNames = ['col1', 'col2', 'col3', 'col4'] So w...
{ "pile_set_name": "StackExchange" }
Q: How to validate set of checkboxes/ array of checkboxes? after looking for ages on the internet i thought id ask here for help. I have a simple checkbox table here in which i click the checkbox and the result is posted back in PHP, but when i dont click any checkbox and submit it i get the following error. Notice: ...
{ "pile_set_name": "StackExchange" }
Q: How much of a codebase can be considered intellectual property? If you write some code, generally you or your employer 'own' that code (I won't go into who 'owns' open source code because it's not what I'm talking about). It's yours/theirs to do with what you please. But at what point can you reasonably say "this ...
{ "pile_set_name": "StackExchange" }
Q: How to access key in a nested object { "5def224170a3ec0d90dbb89a": { "_id": "5def224170a3ec0d90dbb89a", "username": "dhruv1999", "fullname": "dhruv parmar", "email": "dhruv@gmail.com", "phone": "7045691556", "password": "$2a$10$UOk8E4fbkkZvSRSzQqWK4eyJ2Z.qtL4D38thfhzkxJ1pSxSFn5fna", "...
{ "pile_set_name": "StackExchange" }
Q: how to view changed files on git branch and difference I was trying to do this which didn't show anything different How to get the changes on a branch in git I did a branch from master and since then changes have been made on master and my branch (called performance). All I want is The list of files changed/touc...
{ "pile_set_name": "StackExchange" }
Q: How to save table values into array? I have table in wordpress admin panel: <tr> <td><input style="width:80%" type="text" name="ism" value="" /></td> <td><input style="width:80%" type="text" name="par" value="" /></td> <td><input style="width:80%" type="text" name="mar" value="" /></td> <td><input ...
{ "pile_set_name": "StackExchange" }
Q: How to edit the headers of multiple fasta files from multiple folders? My directories are organized as follows: one main directory, in which I have multiple directories that end with a number ranging from 314 to 727, followed by .3 . For example, 'mgm4761314.3'. Within these directories, I have fasta files named...
{ "pile_set_name": "StackExchange" }
Q: Is there a jackson annotation to ignore a setter? I have an attribute that has two setters. private boolean boolValue; public void setBoolValue(boolean value) { this.boolvalue = value; } public void setBoolValue(String value) { this.boolValue = somemethod(value); // convert String to boolean } jackson...
{ "pile_set_name": "StackExchange" }
Q: Python subprocess to execute external Command prompt scripts, trying to run one .exe file by passing file location I have to run one .exe file(RPA bot) using python code, later in that same code I might have to write other functionality as well for API creation. right now I am writing this code from Jupyter Notebo...
{ "pile_set_name": "StackExchange" }
Q: Is there a non-constant function for which the set of zeroes of the derivative has a limit point? I was working on an unrelated problem and wanted to show that I could find a neighborhood of a point $c$ where $f'(c) = 0$ that does not contain any other zeroes of the derivative. Is this true in general? Let $I$ is...
{ "pile_set_name": "StackExchange" }
Q: How to get class from "li" like for How do you get the class from a li when its inside multiple elements like this? var ChooseAltType = $("<div>").appendTo(field_firstchild); $('<div id="chooseCustomFields' + field_id + '" class="wrapper-customfields" tabindex="1"><span>Choose Type</span>' + '<ul id="choos...
{ "pile_set_name": "StackExchange" }
Q: problem finding the Variance of dependent variables using covariance and correlation Hello I have been trying to figure out this question for a few hours and I am very stuck and don't know how to progress but I am pretty sure I am wrong and would greatly appreciate some help. $X$~$N(\mu, \sigma^2)$ $\sigma = 2$, a...
{ "pile_set_name": "StackExchange" }
Q: How to support multi-person(more then 2) calls in webrtc(android) by only one Peerconnection? I'm use webrtc in android, now I want to support multi-person calls, when I check the webrtc's org.webrtc.PeerConnection class , I found that the PeerConnection support multi receivers in getReceivers() function as follow...
{ "pile_set_name": "StackExchange" }
Q: Monitoring Spring boot applications : gather service/node availability data for offline reporting I would like to gather and store data on the availability of the service or node. The day after I could summarize the figures, like { day-1: service = 98.5%; day-2 = 99%}. I could get the data by calling a simple res...
{ "pile_set_name": "StackExchange" }
Q: How can I get hash browns to bind without using egg? I don't want to add egg to bind hash browns. What is the best way to bind hash brown without the eggs? My first thoughts are should I still grate the potato, or boil first to soften to enable them to bind? A: I follow Alton Brown's recipe from Good Eats for gr...
{ "pile_set_name": "StackExchange" }
Q: Bisection method nth root Given three roots $$ \text{Single }\alpha_1 = -1,\quad \text{Double }\alpha_2 = 0,\quad \text{Triple }\alpha_3=1 $$ A root α of a continuous function f can be approximated using the bisection algorithm if there is an interval $[a, b]$, with $α ∈ [a, b]$ the only root in the interval an...
{ "pile_set_name": "StackExchange" }
Q: How to remove a rogue extension labelled “Installed by enterprise policy”? I found a rogue extension (likely malware?) that I cannot removed, as the delete icon is greyed out and the extension says "installed by enterprise policy". It also changed my default search and default home page from google.com to www.arab...
{ "pile_set_name": "StackExchange" }
Q: WolframAlpha's problems with equations involving the floor operation The whole story began when I was developing an easy way to solve complex equations involving mix-up of absolute value, floor, ceiling, rounding, and other functions, as well as polynomials embedded in them. When I was pretty much done, I started ...
{ "pile_set_name": "StackExchange" }
Q: Shouldn't I get a compiler warning for this? how do I enable it? let's say i have this public class MyClass { public string myMessage { get; set; } void MyMethod() { string myMessage; } } shouldn't i get an alert about myMessage in MyMethod hiding(?) the myMessage property on the class? ...
{ "pile_set_name": "StackExchange" }
Q: Showing key error I am trying to use a recomendation engine to predict thr top selling product,it is showing key error,i am doing it with python2 anaconda jupyter notebook.hw i can over come from this error import pandas as pd import numpy as np import operator SMOOTHING_WINDOW_FUNCTION = np.hamming SMOOTHING_...
{ "pile_set_name": "StackExchange" }
Q: Prevent users from marking files as executable? I want to ensure that users of my system are incapable of chmodding files +x, and I do not want anything in /home/ or /var/ to be executable. I can't put them on separate partitions. Running Ubuntu 9.04 Server. A: I was going to suggest a wrapper to chmod or somet...
{ "pile_set_name": "StackExchange" }
Q: svn cleanup: sqlite: database disk image is malformed I was trying to do a svn cleanup because I can't commit the changes in my working copy, and I got the following error: sqllite: database disk image is malformed What can I do right now? A: I had the same problem. The following blog post helped me resolve i...
{ "pile_set_name": "StackExchange" }
Q: Best way to remove collision of names in c++ I just upgraded from WinXP to Seven and I had to add the Windows SDK to my project to make it compile. So far so good but my second project hit a snag, 'PlayerState' is used in my project as a class and in the Windows SDK (effects.h) as an enum and this obviously genera...
{ "pile_set_name": "StackExchange" }
Q: How to apply image texture and material color together? Is it possible to apply both material color and image texture together? how? A: In this example the color of the cilinder is set to green, the applied devil texture has an influence below 1.0 (i.e. 0.793). The geometry normal slider controls the 3D bump eff...
{ "pile_set_name": "StackExchange" }
Q: How do I calculate a value based on items in a filtered angularjs repeater I'm building a scoring system and am trying to calculate a score based on values in a separate collection. I've been using this example: Calculating sum of repeated elements in AngularJS ng-repeat , but haven't been able to get it to work a...
{ "pile_set_name": "StackExchange" }
Q: Count occurrences of character in a string and Group By with SQL I try to count occurrences and to add group by after, but I have an error SELECT list is not in GROUP BY clause and contains nonaggregated column ‘bdd.my_table.text' which is not functionally dependent on columns in GROUP BY clause; this is inco...
{ "pile_set_name": "StackExchange" }
Q: Java library for Date scanning (like Scanner for number)? Scanner.class give many useful tools to analyse numbers, like .hasNext_() and .next_() methods which can be triggered to specific traitments. Is somewhere something like this, for Date : in a first time it would be to detect dates in a String, and adapts re...
{ "pile_set_name": "StackExchange" }
Q: Wordpress wp_nav_menu help I am currently using wp_nav_menu to generate my nav menu. Although everything is working and menu highlighting is working, how do you get child pages to be highlighted as well? For example, I have a menu item named "Page" and it has 3 child pages under that. So when I am in any of the ...
{ "pile_set_name": "StackExchange" }
Q: OS X launchd script fails to run at startup? I made a launchd script to run general scripts for me at startup but I can't get it to work. I'm running OS X Yosemite 10.10.5. This is my /Library/LaunchDaemons/com.craig.startup.items file (I just noticed it doesn't have a ".plist" extension. I'll add the extension an...
{ "pile_set_name": "StackExchange" }
Q: Property Injection with AutoFac in Base controller mvc app I am working with ASP.net MVC app. where I want to inject service in base controller class (I can not use Constructor injection for DI). I want to use property injection in base controller. following are service code: public interface IUserService {} p...
{ "pile_set_name": "StackExchange" }
Q: OCI8 php extension installation on windows server I have specific problem with making OCI8 work on my server installation. First setup: Win 2008 Server 32bit ZendServer for PHP with Apache2.2 PHP version 5.3.14 which was without php_oci8 files No oracle things installed I need to be able to connect to remote or...
{ "pile_set_name": "StackExchange" }
Q: Looking for a better data structure in Netlogo? I'm scheduling tasks for agents (factories) to do over the next X times periods. For each task I am recording an Amount_To_Produce and an OrderID. I'm using a series of lists, two per day. For three time periods, it looks something like this. TimePeriod 1 Amount_To_P...
{ "pile_set_name": "StackExchange" }
Q: How do I partition a drive using GParted ready for Ubuntu Server? I am using an 8 core PC with 4x 500GB drives to make a small storage server. It just for e-mails and files that should be deleted by the pack rats in the office won't let them go. Originally, I was using Intel's BIOS fake raid and had it up and runn...
{ "pile_set_name": "StackExchange" }
Q: SQL Date Search without time I have a query that searches by date. the dates in the database include the time. How do I search on just the date only. select * from weblogs.dbo.vwlogs where Log_time between @BeginDate and @EndDAte and (client_user=@UserName or @UserName Is null) order by Log_time desc c...
{ "pile_set_name": "StackExchange" }
Q: How to make IDE's breakpoints work with specific DCU folder? For more organization, I want Delphi to generate DCUs in a different folder of my app's root (c:\app). So i edited Project > Options > Unit output directory to 'dcu'. It worked, now all DCUs goes to c:\app\dcu. But now all my breakpoints show as red X an...
{ "pile_set_name": "StackExchange" }
Q: Android On Delete Cascade not working properly I am making android app in which i make 5 tables in one open helper class. i am facing the problem while i am having ON DELETE CASCADE in my schema. i know the concept of ON DELETE CASCADE. here i am copy my one of two tables. private static final String MEDICINE_TABL...
{ "pile_set_name": "StackExchange" }
Q: Communication Complexity ...Classes? Discussion: I've been spending some personal time lately learning various things in communication complexity. For instance, I've re-familiarized myself with the relevant chapter in Arora/Barak, started reading some papers, and ordered the book by Kushilevitz/Nisan. Intuitively,...
{ "pile_set_name": "StackExchange" }
Q: Using method -canvas.drawBitmap(bitmap, src, dst, paint) Everytime I use this code nothing is drawn. I need to draw a bitmap inside of a specified rectangle. canvas.drawBitmap(MyBitmap, null, rectangle, null) I've looked online but can't find much help. A: EDIT The original answer is incorrect. You can use th...
{ "pile_set_name": "StackExchange" }
Q: How to change keys lable of yii2 advanced API response I have created API module in my yii2 advanced application and also added HttpBearerAuth in controller file and it is working. On Unauthorized I'm getting below response : {"name":"Unauthorized","message":"Your request was made with invalid credentials.","code...
{ "pile_set_name": "StackExchange" }
Q: Want help on inheritance of forms in c# I have created a form which prints the average and grades of a student. I want to inherit the properties of that form to another form. How can it be achieved? I am a beginner in c#.Please help. this is the form from which i want to inherit using System; using System.Collecti...
{ "pile_set_name": "StackExchange" }
Q: PHP search engine redirects to another page I have a personal movie database website. I created a search engine where users can use one or more search criteria (i.e. movie length, title, genre, actors and so on...) The search engine is working great but I would like to add a "Pick a random movie" feature so the sc...
{ "pile_set_name": "StackExchange" }
Q: Is accepting a pension cashout (either on retirement or termination of employment) better than an annuity? After the vesting period, all funds my employer contributes to the pension fund on my behalf are listed as being "mine", and upon end of employment (retirement, voluntary termination, etc), I have the choice ...
{ "pile_set_name": "StackExchange" }
Q: swap-windows tmux in list I have a bunch of tmux panes open and I would like to sort some of them from the list that I can bring up with Ctrl-b ". In gnu-screen, I can move specific items up and down with the comma and semi-colon keys (IIRC). Is there something similar I can do in tmux other than lots of swap-win...
{ "pile_set_name": "StackExchange" }
Q: Select options in sencha touch is not working for android I have an application where i am using sencha touch JS API for UI rendering. The UI works fine in chrome browser but not working in Android or iPhone device. i have used the following code. Ext.regModel('Contact', { fields: ['firstName', 'lastName...
{ "pile_set_name": "StackExchange" }
Q: Properties of Sobolev space $W^{1,p}(\Omega)$ similar with $L^1$ space I want to show the following statement: if $u\in W^{1,p}(\Omega)$, then $u_-$,$u_+$ and $|u|\in W^{1,p}(\Omega)$ with $$D(u_+) = Du\cdot I_{u>0}\qquad\text{and}\qquad D(|u|)=Du\cdot \text{sign}(u)\qquad \text{a.e.}$$ Furthermore, if $u,\, ...
{ "pile_set_name": "StackExchange" }
Q: how to sum numbers from two different text files in python So, i have this problem: i have three txt-files: number1.txt, number2.txt and number3.txt. number1.txt have this number: 10 and number2.txt have this number too. So, what i want to do, is to sum up these numbers and add result to number3.txt. I have alread...
{ "pile_set_name": "StackExchange" }
Q: Query in Ado.net Entity Object Generator template I used Ado.net Entity Object Generator template to generate the business objects from the Edmx file. By default it is adding two files namely Model.tt Model.Context.tt The Model.tt template is generating the business objects, can any one explain the use of Model....
{ "pile_set_name": "StackExchange" }
Q: Unique faithful $7$-dimensional representation of semisimple Lie Algebra with $G_2$ root system I am asked to show that if $\mathfrak{g}$ is a semisimple Lie Algebra with root system of type $G_2$, then it has a unique, $7$-dimensional faithful representation. To start, let $\omega_1, \omega_2$ be the fundamental...
{ "pile_set_name": "StackExchange" }
Q: iOS - Enlarge view (Screenshot provided) Possible Duplicate: UIImageView Transform Scale I am trying to achieve something similar to the screenshot down below. I have tried to do this by simply changing the view's frame property and increasing its width and height but it 1) does not really enlarge the view an...
{ "pile_set_name": "StackExchange" }
Q: Open UIPickerView by clicking on an entry in the app's preferences - How to? I am wondering how and whether the UIPickerView can be opened due to the user's pushing of an entry in the app's preference pane. Thank you ! I am speaking about iPhone Development. A: If you mean your app's section in the iPhone's bui...
{ "pile_set_name": "StackExchange" }
Q: Why gradle doesn't search for dependency in other maven repos? Why does gradle not searching for dependency in ALL defined maven repos? Repos block is defined: repositories { maven { name = 'JBoss.org Maven repository' url 'https://repository.jboss.org/nexus/content/groups/public' } mav...
{ "pile_set_name": "StackExchange" }
Q: Is generate Guaranteed to be Executed Sequentially? I was told here that: The order of generate is not guaranteed => depending on the implementation I have looked up gcc's implementation of generate: for (; __first != __last; ++__first) *__first = __gen(); And Visual Studio implements it identically to that. ...
{ "pile_set_name": "StackExchange" }