text
stringlengths
70
452k
dataset
stringclasses
2 values
Generate two objects from one xml document with jaxb I'm creating a rest api that will consume an xml document and create two objects from that document. The objects will then be persisted on a database using hibernate. This is what I have right now: @PUT @Path("saveVehicle") @Consumes("application/xml;charset=utf-8") ...
common-pile/stackexchange_filtered
spring enforce transactional logic for annotated method I have some method that is annotated with @Transactional annotation. This method is not called through spring generated proxy but I need somehow enforce transaction creation without using that proxy. Is it possible to implement? What about using TransactionTempla...
common-pile/stackexchange_filtered
Preloading ng-repeat with html I have a dilemma. - http://jsfiddle.net/o7b3r5pa/4/ (ignore the error text, the fact that it just destroys the page is the issue. Notice how the div and textarea disappear, swallowed up by the library) This is what the library should do: https://jsfiddle.net/3o4y15qz/ (See it sits nicely ...
common-pile/stackexchange_filtered
Should I replant same year onion sets? In the early Spring, I planted a bunch of these seeds. I just threw them out there and they grew very close together. I picked them last night after most of the bulbs were exposed I was just going to go ahead and replant them, but in the answer to this question, it is stated that...
common-pile/stackexchange_filtered
ASP DropDownList UpdatePanel IE JS Errors I'm getting a peculiar javascript error with IE. I have an updatepanel, and inside it a drop down list. When I change the dropdownlist's value, it gives me error "Line: 5 '__EVENTTARGET' is null or not an object'. I took a look, and this Line 5 and __EVENTTARGET are in the ASP....
common-pile/stackexchange_filtered
Applescript can't get process "..." I am getting an error in applescript In the first script i created a search engine and the script is as follows on dialogBox(theMessage) display dialog theMessage default answer "" buttons {"Cancel", "Search"} default button 2 with title "Pick a search engine" end dialogBox set sea...
common-pile/stackexchange_filtered
Java: What happens in the memory? Example 1: System.out.print("Enter an integer: "); int x = input.nextInt(); if(x < value) { } Example 2: System.out.print("Enter an integer: "); if(input.nextInt() < value) { } I have two questions: Which one is better to use if you Only need the value in that particular condition...
common-pile/stackexchange_filtered
MySQL injection attack: Proof of concept I have the following code in a client supplied block: $user = $_POST['user']; $sql = "SELECT * FROM users WHERE user = '" . $user . "'"; $dbh->query($sql); Also, this code doesn't echo anything out to the screen currently, so it doesn't help me if I select multiple users. Tha...
common-pile/stackexchange_filtered
Rotating Gradient In Figma By 90 Degrees So It Runs Exactly From 0 % to 100 % How can I rotate a gradient in Figma exactly around 90 degs, running from 0 % to 100 %? This is how the gradient initially looks like, running exactly from the top of the group to the bottom: Now when I rotate it around 90 degrees by hand, ...
common-pile/stackexchange_filtered
What is new .Net Native Today I have read an article about the new .Net Native on MSDN. "Windows Store apps start up to 60% faster with .NET Native and have a much smaller memory footprint. Our first release is a Developer Preview that allows you to develop and test apps with this new compiler. This preview rel...
common-pile/stackexchange_filtered
B+ tree - what is the rule regarding non leaf pages? Is it OK for a non leaf page in a B+ tree to hold a number which is not equal to none of the leaf pages? B tree or B+ tree? B+ tree (just edited the question) B+ trees have all the indexed data on the leaves. I guess you can not do that but then you will confuse p...
common-pile/stackexchange_filtered
Trigger update another table I have been trying to write a trigger function that updates the rows in the child table when the parent is changed for a while now. I have read Trigger procedure documentation but i have not really grasped how to build the functions. This is what I have tried that does not work... CREATE F...
common-pile/stackexchange_filtered
AzureML schema "list index out of range" error I developed a machine learning model using Azure ML's clustering. Few of the requests made from the cluster are triggering 404 HTTP error. I followed the document to do modifications in my swagger.json file. Finally ended up with "list index out of range" error. It seems t...
common-pile/stackexchange_filtered
Does the freshness of the ingredient impact the longevity of the cooked dish? Using ingredients that aren't fresh will generally negatively impact the flavor of the dish, but does it impact how long the cooked dish will last before it goes bad? For example, if I make two pots of tomato sauce, one with freshly-picked to...
common-pile/stackexchange_filtered
Pick file with specific file extension xamarin.android @vividos @jfversluis Expected Behavior I want to open files with specific file extension filter. Actual Behavior Lets suppose I have file named "abc.ext", So I want to filter all files with that specific extension i.e .ext. Currently I seen android is supporting o...
common-pile/stackexchange_filtered
Select LIKE string in MongoDB with Array I have the following document with this array: "r" : [{ "id" : "890", "ca" : "Other CPF Schemes and Priorities", "su" : "National Day Rally 2015" }, { "id" : "1031-52347", "ca" : "Current Events", "su" : "Lee Kuan Yew" }] and I would like to list all...
common-pile/stackexchange_filtered
Bootstrap tooltip doesn't work I am playing around with Bootstrap and trying out the tooltips but they don't seem to work. I got the following simple code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Tooltip</title> ...
common-pile/stackexchange_filtered
Check conditions from two lists I have 2 lists, excludeName and excludeZipCode, and a list of dictionaries search_results. I need to exclude some of the dictionaries from the list they are being copied in to (search_copy) based on several conditions. The index of the excluded name is the same as the index of the exclud...
common-pile/stackexchange_filtered
How to install KDiff3 version 1.9.4 on Ubuntu 20.04? How can i install / update KDiff3 version 1.9.4 on Ubuntu 20.04. I have installet Version 1.8.1 (64bit) and want update to the actuell version https://github.com/KDE/kdiff3 First of all, official kdiff3 page is at https://apps.kde.org/kdiff3/ . Then about newer vers...
common-pile/stackexchange_filtered
Create more advanced lists in Android I need to create a more advanced list in my android application, that will contain more then just one string per item. Actually, I'm looking for something similar to the appointments view in the calendar app: I want to categories my items by day, and show something similar to the h...
common-pile/stackexchange_filtered
Is a police chief charging me again for same cause of action previously dismissed selective prosecution? I live in a smal TX town (<850 people), with one policeman and a chief overseen by mayor and town council, where there is a 250ft rule for no livestock within city limits & an exemption noted for children as part of...
common-pile/stackexchange_filtered
How do I make a navigation app for android auto? I understand that the question is too general but I really have no idea how to even start. So far only I've managed to build a Hello World app and that's it. Apparently, in order to develop an app in android auto you need to use one of their available templates, one of w...
common-pile/stackexchange_filtered
sort multi value column in oracle table I'm trying to sort on a column in oracle table. The column value is 'M013,M007,M019,YYY,M018,XXX,999'. I'm trying to sort the values with in the column before comparing it to another column which already has the data sorted. I've tried multiple hash/MD5 and few other options, but...
common-pile/stackexchange_filtered
UIActivityViewController Not Sharing Both URL & Text in Messages I have a UIActivityViewController which takes in an array of URLs that resolve to images within the app's Documents folder and Strings: var contentArray = [Any](); contentArray.append("Test Text"); contentArray.append(URL(<<valid url to image in app's doc...
common-pile/stackexchange_filtered
How can I let Mathematica tell me the rule number for Cellular Automata? I have this Cellular automata and I now how it behaves but I do not know the rule number. Can I let Mathematica give me the number somehow? seed =Table[RandomInteger[], {200}, {200}] ArrayPlot[ CellularAutomaton[<|"Dimension" -> 2, "GrowthSurvival...
common-pile/stackexchange_filtered
python gstreamer script error message no element "h264parse" I am running a Python script in Ubuntu. The script uses gstreamer. I get the following error message. error: no element "h264parse" Let me know if any other information would be helpful. Could you show us some code? h264parse is part of the "gst-plugins-ba...
common-pile/stackexchange_filtered
Multiple execSQL() in one function I wrote a scheduler app which adds schedule data to a database when the user updates the schedule from the internet using this: sqLiteDatabase.execSQL("INSERT OR IGNORE INTO `subject` (`id`, `date`, `start`, `end`, `name`, `room`, `teacher`, `class_id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)...
common-pile/stackexchange_filtered
Project Server Get project field value using Javascript I've been using javascript to access to libraries in a site, but now I want to get the value of a custom field in a project. I've been looking to do this but I've found nothing, clientcontext does not seem to have any way to access a project's data and I've found...
common-pile/stackexchange_filtered
Using Power Automate, how do you read a "Flow variable" into a Python Script Using Microsoft Power Automate Desktop (PAD), I have captured a moderately long string called ExtractPDFText. I can display the text in a message window, now I need it to run through Python Script. In the Power Automate Desktop application's ...
common-pile/stackexchange_filtered
Understanding some points of "Lemma 10" in Royden "Real Analysis" fourth edition.(2) The lemma and its proof are given below: My question is: 1-In the second line from below: Why we are guaranteeing that we can choose an index $N$ for which $m(E_{N}) > m(E) - \epsilon.$? could anyone help me in answering this questi...
common-pile/stackexchange_filtered
latitude and longitude get shorten when I try to open them from an Intent and open wrong location in kotlin I have an app that makes the user insert the location that he wishes and open that location through intent by his lat and lang, I have got a funny bug where all the saved locations open the same place, so I debug...
common-pile/stackexchange_filtered
Android Java : Error while running countdown timer I need your help to find an error in my "test" android application. Until I create the second function "setProgessBar" the app runs without error, but now the error occur everytime. To comment the function call out has no effect. Here is the code: package my.timer; i...
common-pile/stackexchange_filtered
JSON to display image based on 100% completion I have a list where we track an employees performance by awarding badges. When 4 badges are earned, the employee achieves a Pennant. I have a calculated column for Progress that adjusts by 25% with each badge earned, and is also formatted to displays color coded bars. Calc...
common-pile/stackexchange_filtered
C++ Program glitch? I need help debugging my code. So I made a program that adds and subtracts numbers but when I implemented a do-while loop to replay the program, the actual program closes and does not perform the do-while loop and does not replay the program. Is their something wrong with my code? P.S. I am also us...
common-pile/stackexchange_filtered
Can i ask a question about a problem i no longer face or have access to test? Is it okay to ask a question about a problem, for which I can't test the answers for, out of general curiosity ? Say I want to ask a question about a problem I would potentially face / I used to face when I was using a Server account, but I n...
common-pile/stackexchange_filtered
In what $precise$ sense is Minkowski space asymptotically flat? I've brought this question over from the physics stack exchange, where it didn't generate interest. We say a manifold $(M,g)$ is conformally compact if it is the interior of some $(\overline M, \overline g)$, such that $$g = r^{-2}\overline g|_M,\quad \ma...
common-pile/stackexchange_filtered
What's the difference between `useCallback` with an empty array as inputs and `useCallback` without a second parameter? On my journey to try and understand React Hooks better I came across some behaviour I did not expect. I was attempting to create an array of refs and pushing to said array via an onRef function I woul...
common-pile/stackexchange_filtered
How to use audio impulse response filters / digital signal processing in macOS? I've used Room EQ Wizard to generate impulse response filters. These filters can be loaded into a Digital Signal Processor which will then correct the audio signal according to the speaker and room acoustics. I'm using these filters with Sh...
common-pile/stackexchange_filtered
Got 500 Request timed out for Kafka Connect REST API POST/PUT/DELETE I am trying to use Kafka Connect REST API. Sometimes, I keep getting timeout issue for POST/PUT/DELETE APIs such deploying new connectors or deleting connectors (no timeout issue for GET). The error looks like this: { "error_code": 500, "messa...
common-pile/stackexchange_filtered
13-card bridge hand is drawn from a deck of 52 cards I am CS student and I have a Qualifying exam this September and I hope someone help me in this question: Suppose a 13-card bridge hand is drawn from a deck of 52 cards. How many ways are there to obtain : a. 13 cards of the same suit? b. 5 spades, 4 clubs, 3 hearts, ...
common-pile/stackexchange_filtered
How can I remove class dynamically before adding same kind of class in JavaScript I am working on this simple app that shows the current battery status of your device. The problem that I am facing is that I want to change the colour of the progress bar dynamically. So I made this function: function changeBatteryColor(...
common-pile/stackexchange_filtered
R program cannot install new packages I newly installed R-program 3.6.0. after removing my older version which cannot run some new packages. Since this new installment, however, my R program does not proceed installing new packages stopping at this command line: utils:::menuInstallPkgs() Thereafter, I was expecting s...
common-pile/stackexchange_filtered
passing javascript value to another page I am trying to passing javascript variable value to another page and retrieve here into a php variable Using function i made a pop up to appear and store it to a java script variable so now how do i pass it another page and i do have some text box values but i get this ,i use a...
common-pile/stackexchange_filtered
how to get count of videos in a web page using code(by parsing it) Does any one know how to check if the webpage has any videos or video links. Like for example: I am doing web automation for LG. Then i need all the video links(or Counts of video in a particular page). This LG product link for product:GR-D907SL contain...
common-pile/stackexchange_filtered
Error when using LSH index in opencv::flann I'm trying to use LSH implementation of flann in opencv: const int mySizes[1]={100}; cv::Mat descriptors1 = cv::Mat::zeros(1,mySizes,CV_32F); cv::Mat descriptors2 = cv::Mat::zeros(1,mySizes,CV_32F); cv::Ptr<cv::DescriptorMatcher> matcher_; matcher_ = new cv::FlannBasedMatch...
common-pile/stackexchange_filtered
What does akamaihd.net do? I see twitter using scripts from akamaihd.net(using noscript). when i go to their website, it represents itself as a cloud company. does that mean twitter is using their cloud service to store tweets? http://en.wikipedia.org/wiki/Content_delivery_network https://en.wikipedia.org/wiki/Akamai...
common-pile/stackexchange_filtered
Set z transform position of an instantiated GameObject sprite in unity Is there an easy (shorter) way to set the z transform position of an instantiated game object (sprite) in unity? I want to set each instance to 2 for now. Here's the one line of code I am using, I just wanted to set the z position and it seems cumbe...
common-pile/stackexchange_filtered
How to get PUBLIC role's granted privilege list in postgres? As the documentation said: PUBLIC can be thought of as an implicitly defined group that always includes all roles. Any particular role will have the sum of privileges granted directly to it, privileges granted to any role it is presently a member of, and pri...
common-pile/stackexchange_filtered
Angular 2: JQuery change not changing the binded variables value I have a lot of input fields in a form. One of which is <input type="text" name="client_openingbalance" [(ngModel)]="client.openingbalance" class="form-control"> Using jQuery I am modifying the value of this input field $('.validateForm').on('keypress ...
common-pile/stackexchange_filtered
Youtube video stops after 1 second when using YouTubePlayerSupportFragment I am using YouTubePlayerSupportFragment and after a second it stops playing. If I move the slider it again starts to show a movie image and sound but stops again after less then a second. It almost looks as if the movie is not streaming and buff...
common-pile/stackexchange_filtered
How to loop through all columns in all tables in SQL server database and return column names juxtaposed with column values? I need to loop through all tables in my sql server database and for each table, I need to return values for all rows, but the tricky thing is I need the column name metadata returned side by side ...
common-pile/stackexchange_filtered
How to specify more than one areaServed (eg multiple municipalities) for a LocalBusiness? A lot of businesses serve multiple municipalities. How should this be expressed in https://schema.org/areaServed (JSON LD)? Eg as per https://schema.org/Service: <script type="application/ld+json"> { "@context": "https://schema....
common-pile/stackexchange_filtered
Encryption in .NET and decryption in Android throws BadPaddingException: pad block corrupted I did lot of research but i couldn't find answer to my issue. I'm doing AES encryption (Rijndael block size 128 bits) in .NET and decryption in Android (AES) with same password, salt & IV between them. C# Encryption...
common-pile/stackexchange_filtered
sql query details for a certain date I have the following database: create table Hotel ( HNo char(4), Name varchar(20) not null, Address varchar(50), Constraint PK_Hotel Primary Key (HNo)) ) create table Room ( RNo char(4), HNo char(4), Type char(6) not null, Price decimal (7,2), Constr...
common-pile/stackexchange_filtered
How to use a ListView selection to determine the list in another ListView in Android? I am trying to use the selection in one ListView to determine the list displayed in another ListView to four dimensions. For example the first list would be: A, B, C Then by selecting list A you'd get 1, 2, 3 and B would return....
common-pile/stackexchange_filtered
eRROR ON "Go" keyword in hibernate while running native query I am having an issue with generated query by reading .sql file and executing via hibernate. Steps of error generation: Read the .sql file. --> and create SQLQuery object of hibernate. -->execute the query. follow this snippet assuming hibernate session is ...
common-pile/stackexchange_filtered
How can I tell sed to stop after the matching word? I'm currently trying to update some strings and expand them by an ID. The problem is, that my sed finds more matches than I want it to, yet I understand why it is doing that. I got different lines, e.g.: LogInventory LogInventory Error LogInventory Version The probl...
common-pile/stackexchange_filtered
Exposing a bunch of functions through Pyro I have a module called foobar and it contains a bunch of functions I would like to call remotely. My current solution is to wrap all those functions as static methods in a class and share that. Here's my code: pyro_server.py: import Pyro4 import foobar import inspect Pyro4.co...
common-pile/stackexchange_filtered
Finding first index of first ocurrence of digits I have a vector of digits: [0 0 0 1 1 1 1 3 2 2 2 3 3 3 3 5 5 5 5] I want to find the index of the first occurrence of either a 2, 3 or 5. So in this case, the index will be 8. I have thought of converting the 1s to 0s and then finding the first occurrence of a non-zer...
common-pile/stackexchange_filtered
Why is chi-squared divided by degrees of freedom a measure of model goodness of fit? I was recently at a seminar where a statistician used chi-squared divided by the degrees of freedom (DF) as an assessment of model performance in a logistic regression. They suggested that having a $\frac{\chi^2}{DF}$ close to 1 sugges...
common-pile/stackexchange_filtered
A not null constraints failed org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_NOTNULL] A NOT NULL constraint failed (NOT NULL constraint failed: stock.id) I have three columns in my SQLite DB which are id, pname, mrp but I just want to insert data into two columns, then I did this private void jButton1ActionPerfor...
common-pile/stackexchange_filtered
Why there is an error in the code dynamic constant assignment Ruby # Global constants X = "X" # cross O = "O" # toe EMPTY = "" # empty board TIE = "DRAW" # draw state NUMBER_SQUARES = 9 # number of fields on the board Creates a new game board - a list of nine elements equal t...
common-pile/stackexchange_filtered
Selenium WebDriver Java - Cannot fill out input field in a form I'm trying to use .sendKeys(…) to fill out an input field in a form. HTML I'm working with: <tr> <td class="multi-line required" style="min-width:120px;">Name:</td> <td> <div style="position:relative"> <span style="display:inline-block...
common-pile/stackexchange_filtered
Apache POI does not apply the formula I want to apply some formulas to some cells, here the code: c2.setCellValue ("Total:"); c3.setCellFormula("SUM(D4:D6)"); c4.setCellFormula("SUM(E4:E6)"); c5.setCellFormula("SUM(#REF!)"); But as you see in the picture the formulas does not apply to the last cell: Possible duplic...
common-pile/stackexchange_filtered
Could not find class 'android.widget.ThemedSpinnerAdapter' in target sdk 23 I am getting Could not find class 'android.widget.ThemedSpinnerAdapter' while creating Array adapter for spinner. Other stackoverflow result were of no help. How to solve this? What are the alternatives to use the spinner? Code: <Spinner androi...
common-pile/stackexchange_filtered
Vim: Columnvise Increment inside and outside? By outside, I want solutions that does not use Vim's scripting hacks but try to reuse certain basic *ix tools. Inside Vim stuff asks for solutions to get the column-increment with inside stuff such as scripting. 1 1 1 2 1 3 1 ---> 4 1 ...
common-pile/stackexchange_filtered
For a crystal oscillator circuit, what effect would a series resistor have on the inverter input? In some application notes, there is a recommendation to use an external resistor in series with the OSC_OUT pin to reduce the power dissipated by the crystal, if necessary to do so. A good example is from AN2867 STM32 osc...
common-pile/stackexchange_filtered
JESS Exception: expected method name I use Jess and Java and I want to call a Java function inside a Jess rule but when I launch my code I have this message : Here is the code : // Create a Jess rule engine ENGINE.reset(); // Load the rules and the templates //TEMPLATES ENGINE.eval("(deftemplate Ligh...
common-pile/stackexchange_filtered
stuck on deriving Cauchy product Could someone give me some heads up help or hint as to how I go from the LHS of the inequality to the other?$$\sum\limits_{k = n + 1}^{2n} {\sum\limits_{j = k - n}^n {{c^2}{r^{ - k}}{{\left| {z - {z_0}} \right|}^k} \le } } \sum\limits_{k = n + 1}^{2n} {(2n - k + 1){c^2}{q^k} \le {n^2}{c...
common-pile/stackexchange_filtered
Ordering of shared Phase 1/ISAKMP VPN policies The various Phase 1 settings of a VPN tunnel policy are fairly well-established (encryption, hashing, DH group, lifetime), but in what order are they considered applicable to a more-secure tunnel? I am fairly certain I know which values of each tuple are more secure (pleas...
common-pile/stackexchange_filtered
In the inline comment help, please mention that only one @reply is allowed There's a new inline comment help. That's great. It also explains who will be notified of comments. That's great too. But the wording doesn't clearly exclude a common newbie mistake: it's not apparent that only one person can be @notified. Here'...
common-pile/stackexchange_filtered
Solve: $x$, $y$ are real, and $(x-3)^2+(y-3)^2=6$, find the maximum value of $\frac{y+1}{x+2}$ Solve: $x$, $y$ are real, and $(x-3)^2+(y-3)^2=6$, find the maximum value of $\frac{y+1}{x+2}$ This question is from a class I'm taking, and the current topic is discriminants. I found the discriminant of the equation in x an...
common-pile/stackexchange_filtered
Limit a value between min and max using only arithmetic Is it possible to limit a value in a given range, between min and max, using only arithmetic? That is, + - x / and %? I am not able to use functions such as min, max nor IF-statements. Let's assume I have a range of [1850, 1880], for any values < 1850, it should d...
common-pile/stackexchange_filtered
Simultaneously updating two variables in an Excel VBA for loop I built an excel spreadsheet containing a matrix of formulas. They are all keyed off of a variable I've labeled 'var.' What I'm trying to do is use a counter for 'var,' get the results from the last column of my matrix, and save those results to a new col...
common-pile/stackexchange_filtered
Sitecore: Using integrated security when configuring LightLDAP.SitecoreADRoleProvider I'm configuring the Active Directory Module 1.2 for CMS 7.2-8.0 and despite the fact that everything works great, I prefer to use integrated security (following the customer's policy). However, the manual does not say anything about u...
common-pile/stackexchange_filtered
Dual monitors, but different brands/models I used to have two dual 23" monitors, but I went on an extended vacation to my parents one summer and needed a monitor, so I brought one with me. They live across the country so it was a hassle to transport a monitor, so I just ended up leaving it there. So I've just been goin...
common-pile/stackexchange_filtered
Account unavailable when non-www I have my hosting account "mydomain.com" with ServersFree.com. When I try to access from http://mydomain.com, it says "Account unavailable: Maybe account have been moved, deleted, suspended or not activated yet. The requested resource could not be found but may be available again in the...
common-pile/stackexchange_filtered
Android listview with check boxes? I am developing an application which uses list view with check-boxes,consider there are 10 items on list-view items,And by default in that check boxes are checked,Until now every thing is working fine for me here is my problem,When I uncheck any check-box in list-view whole list-view ...
common-pile/stackexchange_filtered
Can apache or nginx act as load balancer for two different applications one with session stickiness and one without Can apache or nginx act as load balancer for two different applications one with session stickiness and one without. i.e. App1 is deployed on Node1, Node2 and Node3 App2 is deployed on Node4, Node5 and ...
common-pile/stackexchange_filtered
NestJs/Passport authentication doesn't work for routes passed asynchronously When I pass selected routes from the database in the promise then the authourization doesn't work. That means the requests for passed routes are always authorized. protected applyRoutes(consumer: MiddlewaresConsumer) { let paths = this.aut...
common-pile/stackexchange_filtered
Extracting double coordinates form string java I'm having a string containing coordinates like this: String coord="-7.21548 1.25434,2.1648 0.154654,..." Where the first double represents x-coordinates, while the second is the y-coordinates. The coordinates are separated by a white space and points with a comma. How ca...
common-pile/stackexchange_filtered
Prove that if n items can be divided into a $\textit{stable}$ collection of piles then n = 1 + 2 + · · · + k, for some positive integer k. A game is played with a collection of $n \geq 1$ beans. The beans are first divided into piles. A move consists of taking a bean from each pile, and forming a new pile with these be...
common-pile/stackexchange_filtered
Custom Built PC gets momentary power and immediately shuts down I built a custom pc with these parts: http://pcpartpicker.com/p/G66QMp It turns on for a moment, giving enough time for energy to get to the cpu fan, but not enough to make it go a full rotation. I tried taking out a ram stick, but that didn't seem to effe...
common-pile/stackexchange_filtered
Opencart, remove category string from the canonical URL of a product In Magento there's a tick box - if you want or not to have the category in the product's link. In Opencart there's no such think. What there is in Opencart - is a file which manages the SEO interpretation of links. If you'll add "/" in front of the li...
common-pile/stackexchange_filtered
macro inside of macro creates a list of None I have defined two macros: (defmacro property [name type] `(setv ^(of Optional ~type) ~name None)) (defmacro data-type [vname &rest propertys] `(with-decorator dataclass (defclass ~vname [] ~propertys))) When called as: (data-type my-test-type (property n...
common-pile/stackexchange_filtered
Editing a multi-file addon? How would I approach editing/reloading/printing to console a multi-file addon? There's a (someone else's) multi-file addon with a complex structure of libraries and classes with a bug in a particular class and I'd like to try to fix it. However I never made an addon with several separated f...
common-pile/stackexchange_filtered
IIS default document not found After I manually set up a virtual directory in IIS on an Umbraco website (that uses MVC), I get a 404 not found error when attempting to browse the URL: mydomain/myvirtualdirectory/ I have the file index.html in the physical directory that the virtual directory points to and I configured ...
common-pile/stackexchange_filtered
How do i set a field as constant in the constructor So I have a Person class with a name, address, age, and email address. A subclass Student of Person that has a "class status (freshmen, sophomore, junior, senior)". I have to define the status as a constant. class Student extends Person{ private String classStatu...
common-pile/stackexchange_filtered
Dynamic way of returning list with Anonymous types in Entity Framework I have used the code as below which returns all fields. How can I make it return a list with anonymous types. Here is the code I used: public List<T> GetList<T>(Expression<Func<T, bool>> where, Func<T, T> select, params Expression<Func<T, obj...
common-pile/stackexchange_filtered
OpenEdge 10.1C returns datetimetz as a non standard String in JDBC I'm trying to access a DB field which represents a datetimetz ABL type. I tried ResultSet.getTimestamp(int) which should be correct , though the driver complains with [DataDirect][OpenEdge JDBC Driver]Value can not be converted to requested type.. I've ...
common-pile/stackexchange_filtered
How can I store an object File that only exists in memory as a file inside of my storage system? My programm has just recieved an Object that is instance of File. How can I save said Object as a file? I want the file to be stored in a human readable format which is why just writing the Object into a new file like here ...
common-pile/stackexchange_filtered
How to the group by with 2 columns in Angular filter using AngularJS I have an array of an object having 3 properties name 1.name 2.team 3.age http://jsfiddle.net/HpTDj/46/ I want group with both age and team.i done group with team but i have confusion how i need to group with both team and age in my current code. I ne...
common-pile/stackexchange_filtered
Need a mail.php script for Form I have a form but I need a mail.php for it but I am not a php expert is there anyone who can help me. Here is my form code <form id="form1" id="form1" action="mail.php" method="POST"> <label>Name <span class="small">Add your name</span> </label> <input type="text" name="...
common-pile/stackexchange_filtered
How to sort bibliographic entries such that first goes such that their field's value equal to certain one? I have the following bib.text: % Encoding: UTF-8 @article{article1, author = {Автор, И. О.}, date = {2020}, journaltitle = {Супер-пупер крутой журнал}, language = {russian}, number ...
common-pile/stackexchange_filtered
include_vars: load multiple files under one variable name I have situation with dependency between var files. File A depends on var definitions in file B. I'd like to load them under one variable name 'some variable', so I can use file A without 'undefined variable' errors. files are not in the same directory, and I ca...
common-pile/stackexchange_filtered
How do you make an eternal night world using mystcraft? I've searched the FTB wiki and many other sites and have yet to find out how to make a world that has eternal night. Any help? There a portal to the twilight forest but im unsure if thats a mod and which one. Time night or no sun night? Use the "Dark Sun" symbo...
common-pile/stackexchange_filtered
Which galaxies can sustain life as we know it - earth like life..? When i view stellar telescope photos of our surrounding nearby and distant galaxies and stars - its a lot of them which emits an extremely strong light in various frequencies - from high energy cosmic radiation to high level infrared light. Is there a s...
common-pile/stackexchange_filtered
How to write multitime NetCDF raster with rasterio and netCDF4? My code is: import numpy as np import rasterio from rasterio.warp import calculate_default_transform, reproject, Resampling from netCDF4 import Dataset mask=rasterio.open(path1) dst_crs='EPSG:4326' with rasterio.open(path2) as src: transform, width, h...
common-pile/stackexchange_filtered
AE : Using a drawn brush as a mask Is there a way to mask brush strokes like you can with a pen? At present, Im using a pen to create a mask then generate a stroke (Effects>Generate>Stroke). I then use reveal putting a keyframe on the end of the effect to reveal the comp following the pen's stroke if that makes sense....
common-pile/stackexchange_filtered
How to change a wordpress post url dynamically without url re-write rule I have a $postURL, which basically contains a wordpress post url. I retrieve it as follows: $postURL = get_permalink($postID); Now suppose this $postURL is: http://www.blogname.come/post-permalink/ I want to change this to http://www.blogname....
common-pile/stackexchange_filtered