text
stringlengths
70
452k
dataset
stringclasses
2 values
How would I dynamically generate a page title based on the active navigation tab? I'm using php includes to call in different sections to pages but some of these need to have some different content. I am trying to set the text that is within an h tag to be the same as the currently clicked navigation item. Im currently...
common-pile/stackexchange_filtered
Does any known substance ignite on cooling? As the title says, I'm interested in knowing if there is any substance — or combination of substances — that ignites (or even increases its chance of spontaneous ignition) when cooled. I've never heard of such a thing, nor can I find it in Atkins' Physical Chemistry, but I m...
common-pile/stackexchange_filtered
Hovertemplate does not recognize the text vector I pass to it I create the bar chart below using plotly but while I give values to text it is not recognized in my hovertemplate. library(plotly) "Country(s)"<-c("United Kingdom", "Brazil", "United States Of America", "India", "Russian Federation") "Number ...
common-pile/stackexchange_filtered
Evaporation rate Right now, when brewing, I have one step that is never the same : the boil. Actually, the boil phase is going alright, my problem is with the evaporation rate of my wort. I have a few questions... What is the "standard" boil rate? Beersmith gives me 12% per hour by default. This is based on a 23 liter...
common-pile/stackexchange_filtered
I want to get a sum of the list except for the iterative value columnData.tolist() outputs the following [19.51 15.45 16.67 0. 12.06 5.97 15.56 0. 12.8 17.58] I want it so, that each position in the list will be converted a sum of all other values. Below is the code I am trying. templ = [ sum( columnData.tolis...
common-pile/stackexchange_filtered
Transferring a string from one .cpp file to another Good evening, I working on a project that requires me to use a string variable in one .cpp file and same string variable in the next .cpp file. This is my patientdatabase.cpp: void patientDatabase::on_tableView_view_activated(const QModelIndex &index) { QString value...
common-pile/stackexchange_filtered
Kotlin Iterate over list of lists Let's say we have a List<User> and each user has a List<Movies> of all movies that the users watched. What if we want to get a combination of user id and all watched movides under "drama" genre types, how we could do it without creating a temp mutable List? Is there an operator to iter...
common-pile/stackexchange_filtered
Can XOR be expressed using SKI combinators? I have question about SKI-Combinators. Can XOR (exclusive or) be expressed using S and K combinators only? I have True = Cancel False = (Swap Cancel) where Cancel x y = K x y = x Swap: ff x y = S ff x y = ff y x I can be represented as S K K. So, if you can express N...
common-pile/stackexchange_filtered
Weyl's Branching Rule for $SU(N)$-Setting On the Wikipedia page for restricted representations https://en.wikipedia.org/wiki/Restricted_representation there is presented a number of explicit "branching rules". In particular, there is the Weyl's branching rule from U(N) to U(N-1) given in terms of signatures $f_1 \geq ...
common-pile/stackexchange_filtered
Back button referrer doesn't work - Javascript nor asp.net I have a site that has the following framework: Page A = highest level. Page B = next Level.Page C = Lowest Level. Page A contains 10 links the user can select that take it to a certain area of Page B (done by anchor hashes) When you're taken to the correct anc...
common-pile/stackexchange_filtered
Error creating simple minikube: `Error updating cluster: generating kubeadm cfg: parsing kubernetes version` I have a Homebrew installed kubernetes-cli 1.12.0 and minikube 0.30.0: ~ ls -l $(which kubectl) /usr/local/bin/kubectl -> ../Cellar/kubernetes-cli/1.12.0/bin/kubectl ~ ls -l $(which minikube) /usr/local/bin/min...
common-pile/stackexchange_filtered
How to implement AsyncTask from the following example? I try to fix it but the list data doesn't show up..also, there is some red line in my code. onPostExecute it inform thatThe constructor SimpleAdapter(EventsActivity.syncEvent, ArrayList<HashMap<String,String>>, int, String[], int[]) is undefined. Another thing, I w...
common-pile/stackexchange_filtered
Akka / Futures - pipe different messages depending on success or failure? I've got the following piece of code on an Actor where I ask someone else for an action (persist something in an external DB) If that is successful: Then I send a message to myself to reflect the result of the action in my local state and then re...
common-pile/stackexchange_filtered
search for occurences of an integer in a list in R this is a really basic question, and I am probably not seeing something obvious but I am currently stuck with this problem: In R, I generated a List of integers, made through the sample() function. Then want to find an exact pattern. Should be obvious, but grep does ...
common-pile/stackexchange_filtered
How to find/get class object from a class method, static method or instance method For example. class Klass: def f(sel): pass f = Klass().f() klass = # i want to get Klass object. I searched a methond in inspect module but I can not find, Actually I find a private function named _findclass but this method...
common-pile/stackexchange_filtered
NA/NaN/Inf error when fitting HMM using depmixS4 in R I'm trying to fit simple hidden markov models in R using depmix. But I sometimes get obscure errors (Na/NaN/Inf in foreign function call). For instance require(depmixS4) t = data.frame(v=c(0.0622031327669583,-0.12564002739468,-0.117354660120178,0.011506221336133...
common-pile/stackexchange_filtered
In CLI, what multiple high-level languages means I read a lot on .Net Framework on the Internet and I am not fully clear. One question I have is regarding the CLI (Common Language Infrastructure). According to Wikipedia: The Common Language Infrastructure (CLI) is an open specification developed by Microsoft and stan...
common-pile/stackexchange_filtered
Screw positions in newer 3.5" hard drives do not match older case cage screw positions. Solution? I want to replace the old 3.5" hdd drive with a new drive but the mounting screw holes on all (?) of the newer drives are in different positions that don't mount correctly. Is there any sort of adapter that will let me m...
common-pile/stackexchange_filtered
Remove duplicates and get the count based on 2 sub criteria in VBA I appreciate if you can take a look at the below code and help me further as I'm stuck badly. below code helps me get the unique list of names from the Selection and their respective count. This code uses the "Scripting.Dictionary". However there is 1 m...
common-pile/stackexchange_filtered
Is there a way to find out why a python program closed? Is there a way to programmatically find out why a Python program closed? I'm making a game in python, and I've been using the built in open() function to create a log in a .txt file. A major problem I've come across is that when it occasionally crashes, the log do...
common-pile/stackexchange_filtered
Correct way to transform python request parameters I'm using Pyramid web framework to build a web app. There are many times that I find myself doing this: result = request.params.get('abc', None) if result: result = simplejson.loads(result) else: result = {} The thing is, sometimes, 'abc' request parameter is not...
common-pile/stackexchange_filtered
foreach loop syntax in javascript Consider myArray as an array of objects. Are these two pieces of code equivalent ? myArray.forEach((item) => { return doAnAction(item); }); myArray.forEach((item) => { doAnAction(item); }); Is there any of them that is better in terms of syntax? If yes, why ? Yes, the...
common-pile/stackexchange_filtered
How do I print multiple DOCX files alphabetically? I have a ZIP file that my PHP web application outputs. It contains merged DOCX files with user names for printing. The file structure is just like this: Adam Gray.docx Amanda Black.docx Benjamin Franklin.docx Zane.docx When we select all the files in Windows explore...
common-pile/stackexchange_filtered
Django - QuerySet filter - combing 2 conditions I have a model(Delivery) with 2 fields called name and to_date. I just need to a object with the specific name and it's maximum to_date. Delivery.objects.filter(name__exact = 'name1').aggregate(Max('valid_to')) The above query will return the maximum date. Is it possib...
common-pile/stackexchange_filtered
How to recognize DateTime fields as such when assigning a Json.net JArray to a Grid? My winform client requests a DataTable from server to assign to Grid on forms. The server will return DataTable as JSON using JSON.net. We use JArray.Parse to read the returned string and assign this JArray to Grid. The data is display...
common-pile/stackexchange_filtered
Powershell SQL Server SMO - Failed to Enumerate Collection error I have a weird problem with PowerShell and the Invoke-Sqlcmd when used in a ForEach block. In an nutshell, I've done this before many times and not really seen this. I have a list of SQL Server instances in a database table, let's call it inst_list, and l...
common-pile/stackexchange_filtered
TypeORM create connection through proxy address So I wanted to make a small project with a DB, Backend and mobile frontend. I have a mariadb database on a raspberry pi and have everything setup for connections from anywhere. I created my backend server with TypeORM and hosted it on heroku. The problem is that my heroku...
common-pile/stackexchange_filtered
Movie about hostile robots disguised as footballs I saw this on TV in mid 90s I think. One or more people travel to another celestial body (might or might not be the/a moon or mars), they find an American football. The football transforms into a robot that is hostile. They later find LOTS of these footballs/disguised r...
common-pile/stackexchange_filtered
Is there any document to work on Core animations and core graphics in iphone sdk? I am new to core graphics in iphone can anyone suggest how to work on that and the process to go through it.Also can any one provide me a document with sample codes. Thanks in advance. Monish. See Core Graphics section in iOS Reference L...
common-pile/stackexchange_filtered
Intuition of the Bhattacharya Coefficient and the Bhattacharya distance? The Bhattacharyya distance is defined as $D_B(p,q) = -\ln \left( BC(p,q) \right)$, where $BC(p,q) = \sum_{x\in X} \sqrt{p(x) q(x)}$ for discrete variables and similarly for continuous random variables. I'm trying to gain some intuition as to what...
common-pile/stackexchange_filtered
Looping through array in Angular 2 Component: export class PersonalRecordsComponent implements OnInit { currentUser = []; userRecords = []; movements = [ "Back Squat", "Bench Press", "Clean", "Clean & Jerk", "Custom Movement", "Deadlift", "Front Squat", "Jerk", "Power Clean", ...
common-pile/stackexchange_filtered
Unable to describe Kafka Streams Consumer Group What I want to achieve is to be sure that my Kafka streams consumer does not have lag. I have simple Kafka streams application that materialized one topic as store in form of GlobalKTable. When I try to describe consumer on Kafka by command: kafka-consumer-groups --bootst...
common-pile/stackexchange_filtered
How can I show newest posts and comments on the top in my blogging website? I have successfully made the models for both comments and posts and they are showing up properly on the webpage but I want the newest post to be showed up first and the same for comments as well. views.py: from django.shortcuts import render, H...
common-pile/stackexchange_filtered
Identifying individual values in a text box using Flash I want to identify specific strings in a text box from user input to add to a score variable, like so - if (userWords.text == firstWord) { score = score + 1; } The example given adds 1 to the score, but if a user adds a space then a second word the te...
common-pile/stackexchange_filtered
Import-Module for custom dll fails I followed the demo here for creating a custom powershell cmdlet. When I attempt to import the module, I get the following error: C:\PS> Import-Module DemoPS.dll Import-Module : The specified module 'DemoPS.dll' was not loaded because no valid module file was found in any module direc...
common-pile/stackexchange_filtered
Sending a Checkbox Form to Specific URL <form action="" method="get" name="combination" target="_self"> <input type="checkbox" name="tag[]" value="pop" />pop<br /><br /> <input type="checkbox" name="tag[]" value="rock" />rock<br /><br /> <input type="checkbox" name="tag[]" value=...
common-pile/stackexchange_filtered
Custom subscribe err angular I've been learning Angular 6 and I had a question about the subscribe method and error handling. So a basic use of the subscribe function on an observable would look something like this: this.myService.myFunction(this.myArg).subscribe( // Getting the data from the service data => { ...
common-pile/stackexchange_filtered
If the quadratic equation $x^2+px+q=0$ and $x^2+qx+p=0$ have a common root If quadratic equations $x^2+px+q=0$ and $x^2+qx+p=0$ have a common root, prove that: either $p=q$ or $p+q+1=0$. My attempt: Let $\alpha $ be the common root of these equations. Since one root is common, we know: $$(q-p)(p^2-q^2)=(q-p)^2.$$ Ho...
common-pile/stackexchange_filtered
Determinant is the same for $A$ and $B$? Let us have $A=(a_{ij})$ arbitrary matrix and for $B=(b_{ij})$ matrix we have $b_{ij}=(-1)^{i+j}a_{ij}$. Prove, that $det A = det B$. I tried with some examples, and the determinant is same, but how should I prove it in general? I tried to use the general formula(Leibniz formula...
common-pile/stackexchange_filtered
Cakephp 3.0 form element radio button selected issue I am facing problem in edit mode. The radio button is not showing as selected. This is my code <div class="control-group required"><label class="control-label"><?php echo __('status') ?></label><div class="controls"> <?php $attributes = a...
common-pile/stackexchange_filtered
How to stop my WCF server readline thread? recently I implemented a pipe server which can be connected by multi clients. there is a readline function in the server thread to keep reading the messages sent from the connected client. When the application closing, the pipe server thread should safely exited. However, thin...
common-pile/stackexchange_filtered
context.savechanges loses value and errors out I am trying to add and save a user's settings for my application by the following code: SettingsPreference order = _context.SettingsPreference.SingleOrDefault(x => x.employeeNumber == settingsOrder.employeeNumber); if (order != null) { _context.Entry(order).Curren...
common-pile/stackexchange_filtered
How to show an ideal isn't radical The ideal in question is $(wy-x^2,w^2z-x^3)$ in the ring $k[w,x,y,z]$ for algebraically closed $k$. In fact, the radical of the given ideal is $(x^2-yw, xy-zw)$. First, you need to find a simple polynomial that is zero in the zero-set $V(I)$ of the ideal $I$. If $(a,b,c,d)$ is in $V...
common-pile/stackexchange_filtered
Split a paragraph containing words in different languages Given input let sentence = `browser's emoji rød continuïteit a-b c+d D-er går en المسجد الحرام ٠١٢٣٤٥٦٧٨٩ তার মধ্যে আশ্চর্য`; Needed output I want every word and spacing wrapped in <span>s indicating it's a word or space Each <span> has type attribute with va...
common-pile/stackexchange_filtered
Native Target Data In the doxygen reference manual for llvm you can create a target data instance from a Module object or execution engine. How do I get the target data for the current/native platform? Well... usually the information to be added to TargetData can be extracted from the platform ABI document. This is w...
common-pile/stackexchange_filtered
An algorithm for efficiently replacing an array elements with groups There are N elements, each element has its own cost. And there are M groups. Each group includes several indices of elements from the array and has its own cost. input for example 6 100 5 200 5 300 5 400 5 500 5 600 3 2 4 6 100 200 300 700 3 5 300 400...
common-pile/stackexchange_filtered
BeautifulSoup or urllib.request in python, returns different on different machines So I have written this simple piece of script, but it only works on my linux machine and not Windows 8.1 The code is:: BASE_URL = "http://www.betfair.com/exchange/football/event?id="+ str(matchId) html = urlopen(BASE_URL).read() soup = B...
common-pile/stackexchange_filtered
Cancelling coroutine job after a certain amount of time What I am trying to do is I am loading a webpage. If the pages takes too long to load I want to write a log message, if it loads in a predefined amount of time I want to cancel a job so that the log message does not get written Here is what I have override fun onS...
common-pile/stackexchange_filtered
Understanding OutPuts of Neural Network I have a problem in outputs of neural network. I have 3 layers and in last layer my activation method is softsign and accuracy of it is 97% but i don't understand output of it. how can i interpret of it? array([ 2.7876117e-04, -1.1861416e-04, -1.4989915e-04, 1.0406967e-04, ...
common-pile/stackexchange_filtered
converting tif to jpg using imagemagick Iam trying to convert Tiff to jpg file, its converting fine using imagemagick but content is missing when converting to jpg Note: i have added annotation in tiff image as Stamping. But Couldn't convert it properly. Dim sourcefile, loadfile, sCmdArgs1 As String sourcefile...
common-pile/stackexchange_filtered
Host specific volumes in Kubernetes manifests I am fairly sure this isn't possible, but I wanted to check. I am using Kubernetes stateful sets, so my hosts get obvious hostnames. I'd like them to provision a hostPath mount that is mapped to their hostname. An example helm chart that I'm using might look like this: apiV...
common-pile/stackexchange_filtered
Is there a built-in IsLowerCase() in .NET? Is there a built-in IsLowerCase() in .NET? The implementation's only trivial until you need to consider other locales... Is this for a string or just a char? Do you mean Char.IsLower(ch); ? public static bool IsLowerCase( this string text ) { if ( string.IsNullOrEmpty...
common-pile/stackexchange_filtered
How do you query a list of message id's on MS Graph? Current response says invalid nodes My query: https://graph.microsoft.com/beta/me/messages?$filter=id+in+('AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAUEQPKcAAA=','AAMkA...
common-pile/stackexchange_filtered
Some examples of iterative functions to find join occurence in columns' dataset I have a very complex dataset where I am struggling to find with R, the joint occurrence through four main columns in their values' rows. To explain this better, I am providing the following example with the airquality dataset, where just f...
common-pile/stackexchange_filtered
How to have an image instead of a string inserted into GridView that uses a data source This is homework, a Website to rate doctors, using Visual Studio in C#. I have a GridView that gets data from a repository. The DoctorPicture column should display a picture that is in my Images folder, not a string. When I run t...
common-pile/stackexchange_filtered
Page redirected and displays "URL No Longer Exists" in a webservice callout from Salesforce There is no issue when the callout to a SAP webservice returns records less than 3k. But if it exceeds i got "URL No Longer Exists" error. Actually this error is not displaying in the current page where i am initiating the webse...
common-pile/stackexchange_filtered
How to get result for cities via google places api? I am developing an application in which I am trying to get only cities names via google places api but the api is returning all the related results to related keyword.Below is the url I am using https://maps.googleapis.com/maps/api/place/autocomplete/json?input=jai&ty...
common-pile/stackexchange_filtered
undefined function ldap_connect() I have a problem with my extension ldap: Fatal error: Call to undefined function: ldap_connect() Apache and PHP are installed on a Windows 2012 R2 virtual machine. The version of PHP is 7.0 I have already edited the php.ini folder and enabled php_ldap.dll I have already added the fil...
common-pile/stackexchange_filtered
Custom Data ACLs I'm a little confused on how custom data ACLs work - specifically, when I give a role access to edit a set of custom data fields that are associated with a contact, like so: Does this allow that role to edit the custom data belonging to any contact or just their own contact? If it would allow that rol...
common-pile/stackexchange_filtered
Are "Christ" and "Son of God" two things or one in John 20:31? John 20:30-31 says the following: Therefore many other signs Jesus also performed in the presence of the disciples, which are not written in this book; but these have been written so that you may believe that Jesus is the Christ, the Son of God; and that b...
common-pile/stackexchange_filtered
How to get IPv4 Connection Status to JAVA (JT400) Application I want to know how to get IPv4 Connection Status to java application Work with IPv4 Connection Status System: V172172 Type options, press Enter. ...
common-pile/stackexchange_filtered
Android Studio showing errors on restart I was working fine. My p.c powered off due to light. When I start again my android studio, there came a lot of errors in my all java files. How can I solve them? public class MainActivity extends Activity { private boolean detectEnabled; private TextView textViewDe...
common-pile/stackexchange_filtered
Disabled then enabled kext signing; some keys no longer work properly MacOS Sierra MacBook Pro mid2012 I disabled kext signing (to use change some icons in liteicon, which I never got to), and pretty soon some of my keys didn't work like they should. I then enabled it, and rebooted it. As soon as I logged in, some keys...
common-pile/stackexchange_filtered
Entity Framework - get SQL Server field data type I am new to SQL Server and trying to figure out if there is a way to get the data type of a column in a table that I have created and entity for. For example, if I have a SQL Server table 'Employees' with the following column employeeID int, empName varchar(255), emp...
common-pile/stackexchange_filtered
python incorrect rounding with floating point numbers >>> a = 0.3135 >>> print("%.3f" % a) 0.314 >>> a = 0.3125 >>> print("%.3f" % a) 0.312 >>> I am expecting 0.313 instead of 0.312 Any thought on why is this, and is there alternative way I can use to get 0.313? Thanks Search for IEEE 754 and round to even. The round...
common-pile/stackexchange_filtered
How to use count with limit function in codeigniter i have some model like this, public function get_payment_method($date_from, $date_to){ $op_status = array('settlement','capture'); $this->db->select('op_payment_code,COUNT(order_id) as total,pc_caption'); $this->db->from("(dashboard_sales...
common-pile/stackexchange_filtered
fl <- as.factor(sml) & gset$description Code Pairing is Not Working - Dataset Has Too Many Rows I am having a slight problem with trying to fix an error. My dataset has 30 samples with 38.830 features. I copied and pasted the program code that is producing the error that I am trying to fix below: > colnames(pData(pehno...
common-pile/stackexchange_filtered
Convert JSON to YAML using PowerShell I have a json data like this. sample.json [ { "id": 0, "name": "Cofine", "title": "laboris minim qui nisi esse amet non", "description": "Consequat laborum quis exercitation culpa. Culpa esse sint consectetur deserunt non.", "website": "cofine.com", "image...
common-pile/stackexchange_filtered
RectBivariateSpline producing only nan values with smoothing>0 Using RectBivariateSpline to interpolate over a 2D image (raw data illustrated below), if smoothing is 0, I get an interpolation, but if I set smoothing to a non-zero value, even 0.001, the result contains only nan values. My "image" is a 1000x800 grid of n...
common-pile/stackexchange_filtered
How to display json data in list view? I want to retrive data froma php page using json calling and display it in listview using jquery mobile. I am able to retrive the data and also able to display in list but problem i am facing is that : my data lokks like this in php file: ([{"id":"1","name":"Big Ben","latitude":"...
common-pile/stackexchange_filtered
Can I create custom directives in ASP.NET? I have created a menu control in asp.net and have put it into master page. This menu control have property ActiveItem which when modified makes one or another item from menu appear as active. To control active item from child page I have created a control which modifies master...
common-pile/stackexchange_filtered
What topological properties need a space have to be topologically euclidean? To clarify, if I have some some topological space, what are the sufficient and necessary topological properties it must have to be topologically identical to a euclidean space of given dimension? I have only a very loose, piecemeal understandi...
common-pile/stackexchange_filtered
Line integral of a vector field over a intersection of a cylinder and a plane I need help calculating the line integral of this vector conservative field $F(x,y,z)=(2xyz^2, x^2z^2+zcos(yz), 2x^2yz+ycos(yz))$ Compute $\oint_{c}^{} Fds$ Where C is the intersection of the cylinder $\frac{x^2+y^2}{25}=1$ and the plane x+z=...
common-pile/stackexchange_filtered
How to return value from function? (translate actionscript to c#) So... I want to return value when C# function is called. I need a code example (simple summ of a,b values will be ok) Please help I need something like this ( I know ActionScript so I will write in it): public function sum(valueA:int, valueB:int):int { ...
common-pile/stackexchange_filtered
C# Tutorial - Output PowerShell Command in C# Winform App As the title says I want to do a C# app and running powershell scripts and print the output in TextBox. I followed the tutorial from here https://www.youtube.com/watch?v=cIrCce5l7NU and everthing works as in the video but I have one problem my script never ends ...
common-pile/stackexchange_filtered
Model property is empty I am trying to move from webForms to Asp.net-MVC and have some problems. I am trying to figure why this is not working, I am getting this error: "Object reference not set to an instance of an object" I have the class 'Pages': namespace _2send.Model { public class Pages { ...
common-pile/stackexchange_filtered
jms serializer @Exclude condition on class My question is rather equal to Symfony2 - JMS Serializer - Exclude entity if getDeleted() is not null but the accepted answer offered a workaround and not an actual response and does not fit my requirements. I have a class OriginalText and it has a getPublic() method that ret...
common-pile/stackexchange_filtered
Prove Convolution is Equivariant with respect to translation I was reading the following statement about how convolution is equivariant with respect to translation from the Deep Learning Book. Let g be a function mapping one image function to another image function, such that I'=g(I) is the image function with I'(x...
common-pile/stackexchange_filtered
How to wait for complete render of React component in Mocha using Enzyme? I have a Parent component that renders a Child component. The Child component first renders unique props like 'name' and then the Parent component renders common props such as 'type' and injects those props into the Child component using React.Ch...
common-pile/stackexchange_filtered
Does Vue Need The Function Keyword in Computed Properties and Methods? I see computed properties and methods in the Vue docs like this: export default { computed: { foo: function() { return 'foo'; } }, methods: { bar: function(x) { return 'bar ' + x; } } } However, I've also seen the function keyword o...
common-pile/stackexchange_filtered
How To add a horizintal listview inside a column in Flutter? i am building a layout where i need to add a horizintal listview inside a column , i,ve tried making it expanded or flexible , and nothind seems to work , this is the column that i am putting the list in : class HomePage extends StatelessWidget { HomePage(...
common-pile/stackexchange_filtered
unexpected binary tree result struct BSTreeNode { struct BSTreeNode *leftchild; AnsiString data; struct BSTreeNode *rightchild; }; struct BSTreeNode * root; String tree = ""; struct BSTreeNode * newNode(AnsiString x) { struct BSTreeNode * node = new struct BSTreeNode; node->data = x...
common-pile/stackexchange_filtered
There is no smooth submersion from $S^2$ to $S^1$. Show that there is no smooth submersion from $S^2$ to $S^1$. I know of one algebraic topology proof which I think is not the shortest one. That submersion is an open map should be a useful fact in obtaining a nicer proof. Any ideas? The immediate proof that comes to m...
common-pile/stackexchange_filtered
Drag and Drop to Move Original File and Create Copy in Current Folder Summary: I need a solution so that when I use Windows Explorer (or something similar) to drag and drop files, it actually moves the original file to the new location and creates a copy in the original location that is marked as read-only and hidden. ...
common-pile/stackexchange_filtered
How to vectorize whole text using fasttext? To get vector of a word, I can use: model["word"] but if I want to get the vector of a sentence, I need to either sum vectors of all words or get average of all vectors. Does FastText provide a method to do this? if you have any idea about implementation in java ! If you ...
common-pile/stackexchange_filtered
Split text effect I am trying to mimic this look of the text split, I found the codepen.io for it but it uses SCSS and I am looking for it to be CSS only if possible. If someone could help me translate the code or make it so that is CSS, that would be great. Thanks for the help in advance. Codepen here: https://codep...
common-pile/stackexchange_filtered
How to concat string to a variable in Terraform Template DSL I am passing a map from terraform code to jinja2 for creating an ansible's hosts file. In the hosts file, I am printing the map using the following code and it is working fine. 1. %{ for key, value in cat ~} 2. [${ key }] 3. %{ for v in value ~} 4. ${ v } 5....
common-pile/stackexchange_filtered
How can I integrate WPML or other multilingual options for freelance marketplace wordpress theme? tried searching first but haven't found the exact answer I need. I am trying to run a freelance marketplace site on Wordpress that will be in both Chinese and English depending on the user's display language. Each freelanc...
common-pile/stackexchange_filtered
Top 5 time-consuming SQL queries in Oracle How can I find poor performing SQL queries in Oracle? Oracle maintains statistics on shared SQL area and contains one row per SQL string(v$sqlarea). But how can we identify which one of them are badly performing? I found this SQL statement to be a useful place to start (sorry...
common-pile/stackexchange_filtered
R: How to include lm residual back into the data.frame? I am trying to put the residuals from lm back into the original data.frame: fit <- lm(y ~ x, data = mydata, weight = ind) mydata$resid <- fit$resid The second line would normally work if the residual has the same length as the number of rows of mydata. However, i...
common-pile/stackexchange_filtered
How to add a class to a form tag that only present on click event? How to add a class to a form tag that only present on click event? For example: I do have this... <p>Below is a form: <span>show form</span></p> <div class="container"></div> when user clicks the "show form", jQuery will add a new form inside the class...
common-pile/stackexchange_filtered
Can't load hawtio plugin I have hawtio standalone application (hawtio-app-1.4.52.jar). I wanted to deploy the simple plugin, but I wasn't successful at building it alone, so I downloaded the hawtio application from github and built the "simple plugin" without changing it. (I opened the whole project and used build arti...
common-pile/stackexchange_filtered
Add custom sphinx extension like scipy.minimize scipy.optimize.minimize has a nice interface with only one public function to perform minimization, and a lot of private functions for each method. Looking at the source code, taking the Nelder-Mead method for instance, the documentation of the method comes from this priv...
common-pile/stackexchange_filtered
ControlFX PropertySheet not showing anything I am using ControlFX library in my project to generate forms dynamicly using PropertySheet. Controllor class: public class Controllor implements Initializable { @FXML private PropertySheet sheet; @Override public void initialize(URL location, ResourceB...
common-pile/stackexchange_filtered
How is it in my best interest not to submit a paper to two journals simultaneously? The two journals I am considering for my paper each demand that the paper be submitted exclusively to their journal for consideration. What do I win if I don’t keep this rule? If I get rejected by both, I will have found out earlier th...
common-pile/stackexchange_filtered
mysql: get last success and last fail in one select Goal: Get the last success and the last fail in one select query: Expected output: bj, feature, name, env, lastSuccess, lastFail (varchar(100), varchar(100), varchar(100), varchar(1), timestamp, timestamp) bj1, ft1, example, a, 10-04-2017 16:19, 10-04-2017 15:20 bj1, ...
common-pile/stackexchange_filtered
Why isn't the identity/unit matrix upright? I realize this is more of a typesetting problem then a mathematical one. I've already tried the TeX stack exchange and the question got canned. In ISO 80000-2:2009, variables and running numbers are italicised while mathematically defined constants and contextual independents...
common-pile/stackexchange_filtered
Where do I put front-end code in my backend project and how/when to run it? The question is, say I have written a backend REST service using Python, and then some other guy wrote some frontend code in Angular JS. Is the typical workflow putting them into two separate folders and run them separately? So the process will...
common-pile/stackexchange_filtered
Ajax call from CakePHP I am new to cakephp. I want to update dropdown corrosponding to a diffent dropdown. Most of the tutorials on the internet are outdated. This is my script file <script type="text/javascript"> $(document).ready(function($){ $('#city_change').change({ ...
common-pile/stackexchange_filtered
Passing C# data to MySQL I am trying to pass data from some textboxes in C# to a MySQL database, but everytime I click submit from my C# application, the row creates empty spaces, as if my textboxes were empty. public void Insert() { string query = "insert into albertolpz94.miembros(usuario,contraseña,permisos,nomb...
common-pile/stackexchange_filtered