text
stringlengths
70
452k
dataset
stringclasses
2 values
Objective-C: Float addition error when returning to view I've got an NSDictionary made up of titles and floats (although they're stored as strings, for what it's worth), along the lines of "Paid for Dinner":"15.00". Right now, those entries are (15, 25.25, 25.75, 15), which should add up to 81. (And I've checked in t...
common-pile/stackexchange_filtered
Opening Youtube e-mail attachments How do I open You Tube video from link in Thunderbird e-mail attachment? Try Ctrl+click, or double click You can find the settings here: Open TB Click 'Edit' Click 'Preferences' Click 'Attachments' tab You will see 'Content Type' listed (mine shows 'http' and 'https') Under 'Acti...
common-pile/stackexchange_filtered
Sitemap of SharePoint Online portal and all related content needed I've got a legal request for a list of ALL the SharePoint sites AND all the links/content listing from the SharePoint sites. The site export from the Admin portal is not adequate. Is it possible within the Admin realm of SharePoint Online? If not, is t...
common-pile/stackexchange_filtered
Drawing path without overlaying existing shapes? Help needed.. I have a organization layout which have rectangular shapes not in an ordered grid. If it was a grid, I would have used A- star code. So, How to connect two nodes (i.e. two rectangles) without interfering in between nodes(rectangles). I just want the algor...
common-pile/stackexchange_filtered
Firebase Storage in android eclipse project I have an android project on Eclipse and I want to use Firebase 'Cloud Storage' within it. using Android Studio, I add Firebase to my app by using the Firebase Assistant and Connect to Firebase, then I add the dependencies for Cloud Storage to my build.gradle file [compile 'c...
common-pile/stackexchange_filtered
JS multidimentional array inside for loop so, I have following js: var INFO = []; var newMap = {}; function user_info(id,name,url,img){ newMap[id] = [name, url, img]; return newMap ; } ... for (var j = 0; j < 2; j++) { INFO.push(user_info(a,b,c,d)); } ...
common-pile/stackexchange_filtered
Is it possible to create a start up disk for 14.04 LTS via Windows 7? My Ubuntu o/s has crashed I have "messed up" my system and when I boot up I get a blank screen which asks for my keyring login password. When I enter the password the screen goes completely blank and nothing further happens. I can only get out by swi...
common-pile/stackexchange_filtered
remote desktop access I have my work system on the ip range 172.16.xx.yy, and I have my personal system on the ip range 172.16.aa.bb. Both of them, however, are on the same network of my University, but on different LANs/VLANs (i hope i used the right word here). How can I remotely connect to my work system from my PC...
common-pile/stackexchange_filtered
Json Deserialize Issue with EF and RIA Services I have an odd problem. I use WCF RIA with Entity Framework. I've implemented a generic search functionality, which relies on sending back the resulting entities as byte[] (enter Json.Net) and I'm able to get around all sorts of limitations of strong typedness of RIA. But ...
common-pile/stackexchange_filtered
QListWidgetItem objects are unhashable, it is a bug or there's a reason? I stumbled upon this (it is, obviously, an extract from a bigger application): import sys from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * if __name__ == '__main__': app = QApplication(sys.argv) d...
common-pile/stackexchange_filtered
Android making a call with a predefined call duration I am building an Android application that will automatically make calls and send SMSes to some telephone numbers. The problem is I need to specify the duration (how long the call will last for) of all the calls. Is there any way to specify the call duration from Jav...
common-pile/stackexchange_filtered
Jar file and resource file returning null I have a simple program that reads a text file (test.txt) line by line and prints each line to the console. In intellij it works just fine. import java.io.FileNotFoundException; import java.util.Scanner; import java.io.File; public class testing { public static void main...
common-pile/stackexchange_filtered
Can't disable jqueryui button with knockoutjs in chrome I have the following very simple code: html <a data-bind="enable: selected()" href="http://www.google.com">Click Me</a> javascript function pageViewModel() { var self = this; self.selected = ko.observable(); } $(document).ready(function() { $("a").but...
common-pile/stackexchange_filtered
Rails Form: Link to a named route rather than a url with query parameters I have the following form: <form action="<%= jobs_path %>" method="get" > <%= label_tag 'l', "I'm looking for a job in"%> <%= select_tag 'l', options_for_select(Job.areas.keys.map {|area| area.humanize.titlecase}, :selected => params[:l])...
common-pile/stackexchange_filtered
The diophantine equation $z^2=a^2+bx^2+cy^2$ Is there a way to obtain (enumerate) the integer solutions $(x,y,z)$ of the following quadratic Diophantine equation $z^2=a^2+bx^2+cy^2$ where $a$ is an integer and $b, c$ are positive integers? I have checked the literature on Diophantine equations but could not find anythi...
common-pile/stackexchange_filtered
Laravel Dompdf two column Layout I am not getting pdf content in column wise. What i want is to show the content in two column layout using dompdf laravel.The HTML which i am using is working fine in first page only not on all pages. Please add your html and any css files to your question, it's not possible to help wi...
common-pile/stackexchange_filtered
UnauthorizedAccessException: Access to the path when saving unity data to a file I have a inventory system which is saved in a file and loaded from the same file when its needed. The problem is that the loading system works perfectly on start but when i press the save and exit button, which is supposed to save the inve...
common-pile/stackexchange_filtered
IBM Bluemix push notification through PHP code I am new with IBM Bluemix and I want to add PHP code for sending push notifications on both iOS and Android devices. My app is built with the Xamarin platform for both type of mobile devices. The backend is created in PHP with the Codeigneter framework. I see in the Dashbo...
common-pile/stackexchange_filtered
Why do I continuously get errors when trying to use quiver using data from a NetCDF file? I have been trying different methods found online, and even made a ton of alters but I cannot get quiver to work correctly. This is leading to lots of different errors that I am having a hard time solving. I used the following dat...
common-pile/stackexchange_filtered
Why Is My Github Pages Custom Domain Constantly Reset? I go into the page in Github (https://github.com/user/repo/settings/pages) and set a custom domain. It works great! However, every time I deploy (using the gh-pages npm package) it resets the domain back to https://user.github.io/repo This is incredibly frustrati...
common-pile/stackexchange_filtered
Storage on a dual Mac and Windows system If I have Windows 10 on my MacBook Air. I have 60 GB left on my Windows volume, and I have 100 GB on my Mac volume. Could I use an external hard drive to extend my Windows-accessible storage? You can certainly mount an external hard drive when running Windows, but "extending" y...
common-pile/stackexchange_filtered
CyberArk with Azure DevOps to Use Secrets in YAML Pipelines: High-level steps for beginners I'm new to CyberArk and have a requirement to integrate it with Azure DevOps for securely managing and accessing secrets in my CI/CD pipelines. I am familiar with Azure DevOps, but not with CyberArk, so I'm looking for high-leve...
common-pile/stackexchange_filtered
How do I add a custom dll to an azure dev ops pipeline from a private repository? I'm new to Azure Dev Ops and I'm trying to create a pipeline for my project. The project is originally in subversion and relies on a few custom downloadable libraries that my company maintains. I'm trying to add these custom dlls to the b...
common-pile/stackexchange_filtered
Redis 10x more memory usage than data I am trying to store a wordlist in redis. The performance is great. My approach is of making a set called "words" and adding each new word via 'sadd'. When adding a file thats 15.9 MB and contains about a million words, the redis-server process consumes 160 MB of ram. How come I am...
common-pile/stackexchange_filtered
What case follows "fond of"? What case is "I am fond of her"? Dative or possessive? My thought is that this form comes from the Anglo-Saxon, which is still heard in German, for example "ich bin derren bewusst" (I am hers aware) or "ihret wegen" (hers because). Wouldn't grammatical case be associated with the 'noun' (n...
common-pile/stackexchange_filtered
How to specify a fixed job name for jobs submitted by qsub I use -N option to specify the name for the job when submitting through qsub. The qsub, however, adds some numeric string after thejob name as described in the man page: By default the file name for standard output has the form job_name....
common-pile/stackexchange_filtered
C: Fifo between threads, writing and reading strings Hello once more dear internet, I am writing a small program that, among other things, writes to a log file all of the commands it received. To do that, I want to use a thread that will only attempt to read from a pipe, while the main thread will write into that pipe ...
common-pile/stackexchange_filtered
Show that the polynomial $x^{8}-x^{7}+x^{2}-x+15$ has no real root. Show that the polynomial $$x^{8}-x^{7}+x^{2}-x+15$$ has no real root. Source As I have learnt from my previous post, using Descarte's Sign rule I am getting $4$ positive and $0$ negative roots. So no of nonreal roots are $N-(p+q) = 8-(4+0)= 4$.So res...
common-pile/stackexchange_filtered
Is the site for cubical sets with connections equivalent to a full subcategory of posets? Cubical sets with connection form a presheaf category on some category $C$. Is $C$ just the full subcategory of the category of posets whose objects are products of the interval $\Delta[1]$? No. Cubical sets with or without conne...
common-pile/stackexchange_filtered
How to use Criteria all in querying mongoDb in java? I am using MongoDB for my spring-boot application. I need to find the list of documents corresponding to list of IDs. I have a Role collection and a list called roleIdList. This list (roleIdList) contains all the role ids whose documents needs to be fetched. Below is...
common-pile/stackexchange_filtered
EF mapping question Lets say I have the following classes: public class User { public int UserId { get;set;} public string Firstname { get;set;} public Interests Interests { get;set;} } public class Interests { public IList<Team> FavoriteTeams { get;set;} public IList<Food> FavoriteFoods { get;set;}...
common-pile/stackexchange_filtered
PDF files come up blank in Document Viewer When I try to open PDF files mostly they just come up blank. This is in the thumbnails and in the document viewer. Some will show the documents first page, but not the rest of the pages. Running 14.04 LTS Thanks. Please edit your question to include a download link for one ...
common-pile/stackexchange_filtered
How to write the date of an event that lasts a few days What is the correct way to write, in American English, that something will happen over a date range? The event will take place through July 1-10, 2011? The event will take place from July 1 to July 10, 2011? The event will take place starting on July 1 through J...
common-pile/stackexchange_filtered
Ratio test implies Raabe's test I want to prove the ratio test $$\lim \sup \left| \frac{a_{n+1}}{a_n} \right|<1$$ implies the Raabe's test $$\lim \sup \left| \frac{a_{n}}{a_{n+1}} \right|>1 + \frac{C}{n}$$ for $C>1$ I am doing the following: $$\lim \sup \left( \left| \frac{a_{n}}{a_{n+1}} \right|-1\right)n>C$$ $$ \left...
common-pile/stackexchange_filtered
Don't rebuild webpack bundle if entry files didn't change Consider we have a webpack config like this: entry: { app: './main.js', lib: './vendor.js', } The vendor.js file only consists of a bunch of requires to libraries from node_modules. 99% of the time I build the bundle(s) the output lib.js bundle is ex...
common-pile/stackexchange_filtered
Multiplexed 1 Gbps Ethernet? Is it possible to multiplex two (or more) 1Gbps Ethernet into a single logical connection? Is it common place? Advisable? Stupid? Other considerations? I ask because my hosting partner's network infrastructure is 1Gbps, but I have the need for more. 10Gbps networking kit is still on th...
common-pile/stackexchange_filtered
Computing the density for each layer with lidR I am trying to perform a 3D profile index as a function. For this, I need to slice the layers and calculate the point density for each sliced layer. I write a for loop; The problem is density=grid_density(subset,res=0.1) and pt<-as.raster(pt) parts gives always an error...
common-pile/stackexchange_filtered
How to speed up connection with a server in China I have a EC2 server in China using Amazon AWS China. It's a server with : Apache 2 and PHP The database is a RDS instance running MySQL (also in china) The problem: Access from out of China is very slow. (tested from australia, france and Canada). Yes, the server has to...
common-pile/stackexchange_filtered
Concern of plagiarism if I publish the details of my invention I have a concern about plagiarizing if I publish the details of my invention (an algorithm) in patent description. If the patent application is approved, the details of my invention will be disclosed to everybody in the world. If somebody plagiarize, it wil...
common-pile/stackexchange_filtered
About a sequence of (improper) integrals. One considers the following sequence $$ I_n=\int_0^1 \log^2(t).(1-t)^n dt\ , $$ using elementary methods (integration by parts, twice), one can show that $$ I_n=2\sum_{k=0}^n \binom{n}{k}\frac{(-1)^k}{(k+1)^3} $$ Question : Is there a simple way to prove or disprove that this (...
common-pile/stackexchange_filtered
How to retrieve data from Django fields? I have a model models.py class EmployeeModel(models.Model): Employee_id = models.CharField(max_length=200) name = models.CharField(max_length=200) basic_salary = models.IntegerField(blank=True,default=0) HRA = models.IntegerField(blank=True,default=0) DA = mo...
common-pile/stackexchange_filtered
Would a SARS-CoV-2 infection disrupt the blood-brain barrier, leaving the brain more vulnerable to drugs taken simultaneously with the infection? According to some studies[1], there is some evidence that the virus could cross the BBB. Is that is the case, does that mean that it would weaken the barrier allowing potenti...
common-pile/stackexchange_filtered
Java: suspend frame while other frame getting information from user I need to get some information from user by showing a JFrame I need the first frame pause process until user enter data from the second frame I thought about using wait() and notify() but I don't know how How can I do this? Thanks It seems to that...
common-pile/stackexchange_filtered
How to change the value in char *array[]? I have an array(Array) and the value define as char array (LIST) in another .h file. char *Array[]= { "something1", "something2", "something3" }; LIST is defined in .h file. #define LIST {“a”, “b”, “c”} If I would like to change all values in Array to be LIST. What should I d...
common-pile/stackexchange_filtered
Relation between rational Tate module and universal cover of a p-divisible group We can associate two $\mathbb Q_p$ vector spaces to a $p$-divisible group, and I'm a little confused about the relation between these two groups. First of all, I think part of my problem is that when papers discuss these things, they claim...
common-pile/stackexchange_filtered
Javascript library to generate workflow configuration diagrams I have a set of predefined flow diagrams, and I need a way to display the diagram and allow the user to interactively set inputs and/or properties at various nodes in the diagram. The nodes/connections of the diagram are fixed and cannot be edited by the u...
common-pile/stackexchange_filtered
Issue with GPS on RPi4 at boot So I have RPi4 which I configured with multiple UARTs and a Ublox ZED-F9P on a custom designed board. My setup would use the UART1 on the F9P for ubx messages and the UART1 for NMEA messages that used by GPSD and Chrony for time purposes (together with the PPS). I wrote a python script th...
common-pile/stackexchange_filtered
It's hard to click on Bar button Item I've created custom back bar button. And I added an UIview because I have to change position of it within bar. UIImage *backButtonImage = [UIImage imageNamed:@"backBtnWhite"]; _backButton = [UIButton buttonWithType:UIButtonTypeCustom]; _backButton.exclusiveTouch = YES; [_backButto...
common-pile/stackexchange_filtered
Setting the first value as default in dropdown list Jquery to create new row : var selectVal = $(parent).children().first().find('select').find('option[selectedGivenTo="true"]').val(); var newSelect = $(parent).children().last().find('select'); newSelect.each(function() { var cloned = null; ...
common-pile/stackexchange_filtered
Keeping changes same in merging branches in I have been using Git for a while and I know basics of merging, tho I have one confusion on how others maintain the code changes after merging? I have master branch, and feature_a branch which is created from master. There are some changes in master branch and as well as feat...
common-pile/stackexchange_filtered
Why is this BeanPostProcessor needed in addition to a UserDetailsService in this Spring 3.0 authentication example? I'm trying to understand a Spring 3.0 application which contains the following BeanPostProcessor implementation. What is this code needed for? I thought the UserDetailsService was sufficient for getting a...
common-pile/stackexchange_filtered
How to update Kivy GridLayout "rows" property in dynamic class Suppose I have this in my .kv file: <VerticalLayout@GridLayout>: cols: 1 <Root>: VerticalLayout: rows: len(self.children) Button: text: 'Sample 1' Button: text: 'Sample 2' Button: ...
common-pile/stackexchange_filtered
SQL, count both open and closed sessions Given this table: Session | User | Start | Stop 1 | 1 | 2014-10-10 | null 2 | 1 | 2014-10-10 | 2014-10-10 3 | 1 | 2014-09-10 | 2014-09-10 4 | 2 | 2014-10-10 | null 5 | 2 | 2014-10-10 | 2014-10-10 I want to ...
common-pile/stackexchange_filtered
Let $F:\Bbb{R} \to \Bbb{R}$ be a positive, smooth and periodic function with period $P>0$. Proof that... Let $F:\Bbb{R} \to \Bbb{R}$ be a positive, smooth and periodic function with period $p>0$. Prove that if $\Phi(t)$ is a solution to the differential equation $x'=F(x)$ and $$ T=\int_0^p {1\over F(y)}dy$$ then: $$\Ph...
common-pile/stackexchange_filtered
How to get all the rows given a part of the row key in Hbase I have the following table structure in Hbase: Row column+cell Mary_Ann_05/10/2013 column=cf:verified, timestamp=234454454,value=2,2013-02-12 Mary_Ann_06/10/2013 column=cf:verified, timestamp=2345454454,value=3,2013-02-12 Mary_Ann_07/10/2013...
common-pile/stackexchange_filtered
References for listings of point group operations I am looking for a listing of the operations of point groups (preferrably as matrices). Nearly every textbook lists the irreducible representations and characters of the groups, but I have not found any that lists the specific operations. As an example, I am looking for...
common-pile/stackexchange_filtered
Causality violation of naive RQM So I am starting to read QFT from P&S, and in the very beginning they set out to clarify why a naive approach of writing a single particle relativistic hamiltonian would lead to propagation outside the light cone. I have several questions about their line of argument, some technical and...
common-pile/stackexchange_filtered
Converting a key press to text box in vb.NET I am currently using Visual Basic 2010 and am making a basic calculator. It should recognize keystrokes from the numpad and treat them like the buttons on my calculator used for numbers and operations. However, I cannot get it to work. For example, I'd like my program to dis...
common-pile/stackexchange_filtered
Is there a way in android to execute an action when the user double clicks the power button? In general there are three ways to interact with buttons in android. Normal click, long click and double click. Android by default assigns actions to normal click and double click of the power button. In there a way to assign ...
common-pile/stackexchange_filtered
Sharepoint backup methods? I currently do indiidual site collection (6) backups on my sharepoint site. What are some of the best autmoized methods to backup a sharepoint site (site collections and sites with content)? For some reason everytime I try to do a web app backup it fails. Thanks here are a few methods that ...
common-pile/stackexchange_filtered
Building Swift Package Manager project with xcodebuild, how to ignore xcodeproj and xcworkspace? I have an SPM project that I need to test with xcodebuild (because it has iOS resources such as XIBs). This project also supports Cocoapods so it also has .xcodeproj and .xcworkspace files. Normally xcodebuild will automati...
common-pile/stackexchange_filtered
Regex to suppress line breaks to aggregate groups of 3 lines into 1 I'm trying to fix a txt file format using python and regex. For that I used this post as a point of start, but I can't make it work with my file format. Regex: ([^1|-])[\n](.)|(.)[\n]([^|-]) My file format is something like this: |A |B |C | D |E ...
common-pile/stackexchange_filtered
Gmail Label API returns unspecified 500 error for certain threads I'm updating the labels through the Gmail API using the Python client library, using the following line of code: thread = service.users().threads().modify(userId='me', id=thread_id, body=msg_labels).execute(http=http) This works for most threads, but fo...
common-pile/stackexchange_filtered
NoSQL Database Design - Documents with Tagging Which NoSQL database do you recommend and how would the schema look for the following web application requirements. There can be lot of users (500k+) Every user can enter his/her documents Every user will probably create 10-200 documents per month Every document will be s...
common-pile/stackexchange_filtered
In Endgame, why is the female leading the dance, and not the male? So, in the last scene of Avengers: Endgame, where Captain America flashes back to his trip to the past to return the Infinity Stones to their rightful places in space-time, he dances with Peggy, his past [romance-partner thingy]. The two characte...
common-pile/stackexchange_filtered
iPhone SDK strange console message launchd_core_logic.c I am running release version of the app on the iPhone, it works fine. There is no error messages in the XCode debugger: Running… Switching to thread 11779 Switching to thread 11779 sharedlibrary apply-load-rules all (gdb) continue Switching to thread 12291 Switch...
common-pile/stackexchange_filtered
Date Filtering Malfunction in Powerview I am building a reporting solution using Powerview on Sharepoint Server 2013 with ssas multidimensional data source. On the powerview reports I have encountered a strange problem. When I filter using a date attribute with multiple values only the non calculated facts (simple mea...
common-pile/stackexchange_filtered
How to make saved files end up nowhere? I want to disallow a program from keeping local files, and I thought I would accomplish that by pointing a shortcut with its local folder's name to /dev/null, but I cannot seem to get it working. If I try ln .app /dev/null, I get a message saying ln: ‘.app’: hard link not allo...
common-pile/stackexchange_filtered
When is Queue.join() necessary? The Python 3 docs give an example of a worker thread that uses a queue (https://docs.python.org/3/library/queue.html): def worker(): while True: item = q.get() if item is None: break do_work(item) q.task_done() q = queue.Queue() threads = ...
common-pile/stackexchange_filtered
How to create a build.xml file for this folder strucure I have, build/classes - compiled java codes libs - some jar files src - java codes WebContent - all the .jsp files, WEB-INF/lib and META-INF i create some build files but they did not work. How to create a build.xml file for this folder structure....
common-pile/stackexchange_filtered
placing an element to the right in a linear layout in android I want to place an image to the right of the view. For that I am tyring to use something like <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > ...some o...
common-pile/stackexchange_filtered
How can I declare a new operator "!??" (test object is not null) Is there a way to declare a unary operator such as '!??' I imagine something like this (non working code) public bool operator !??<T> (this <T> item) { return item != null; } so I would use it like such // day is a value and might possibly be null st...
common-pile/stackexchange_filtered
Syntax to put a variable in a string in swift3 A question I think pretty simple but I never had to do it in swift. it's pretty simple PHP but here I do not find my solution on the internet. ask: I would like to add a variable in this chain of character. Instead of 123, I would need a variable. final let urlString = "ht...
common-pile/stackexchange_filtered
Not able to access redis port inside a docker container, bind <IP_ADDRESS> I have installed Redis on an Ubuntu 18 server and it is bind to <IP_ADDRESS>. Inside that host I have installed Docker as well. If I'll try to connect to the port from the host itself it will work (curl hostIP:6379) The problem appears when I'm ...
common-pile/stackexchange_filtered
Force the JVM to collect garbage early and reduce system memory used early We operate a Java application that we did not develop. This application uses quite a lot of memory for certain tasks, depending on the data, that is manipulated, up to 4GB. At other times, very little memory is needed, around 300MB. Once the JVM...
common-pile/stackexchange_filtered
CSS Two Boxes with same height All I want is to make right column's height (and images in it) depend on the left. Left one's height keeps changing based on width and right column's height changes too but they are never equal. CSS div.home-bottomleft, div.home-bottomright { float:left; display:table-row; pad...
common-pile/stackexchange_filtered
Entity Framework and adding POCOs without adding child objects So perhaps I'm addressing this problem the wrong way, but I wanted to get the opinion from you fine people on StackOverflow about how to more correctly do this. I've got a program that has to retrieve information from a repository around an Entity Framework...
common-pile/stackexchange_filtered
Unit testing method with input parameters from multiple data tables I would like to create unit test method using Microsoft Unit testing and this method take its input parameters from different tables inside the same DB . [TestMethod()] [DataSource("System.Data.SqlClient", "Data Source=ServerName;Initial Catalog=DBNam...
common-pile/stackexchange_filtered
1: This network topology problem is driving me crazy. We need a graph that's sparse but still maintains good connectivity between any two nodes. 2: What do you mean by "good connectivity"? If we want every pair connected with short paths, wouldn't we just make it dense? 1: That's the issue - we can't afford dense con...
sci-datasets/scilogues
C++ wstring how to assign from NULL-terminated wchar_t array Most texts on the C++ standard library mention wstring as being the equivalent of string, except parameterized on wchar_t instead of char, and then proceed to demonstrate string only. Well, sometimes, there are some specific quirks, and here is one: I can't s...
common-pile/stackexchange_filtered
When to use references in for loops? An example from the documentation about vectors: let v = vec![1, 2, 3, 4, 5]; let third: &i32 = &v[2]; println!("The third element is {}", third); match v.get(2) { Some(third) => println!("The third element is {}", third), None => println!("There is no third element."), } ...
common-pile/stackexchange_filtered
Model of ordered plane with the negation of Pasch's axiom I am interested in finding the model of particular set of geometry axioms in which Pasch's axiom fails. First I'll give the definitions. By ordered line I mean the set $L$ (line) with one three-argument relation $B$ whenever the following axioms are satisfied: ...
common-pile/stackexchange_filtered
Read already allocated memory / vector in Thrust I am loading a simple variable to the GPU memory using Mathematica: mem = CUDAMemoryLoad[{1, 2, 3}] And get the following result: CUDAMemory["<135826556>", "Integer32"] Now, with this data in the GPU memory I want to access it from a separate .cu program (outside of Ma...
common-pile/stackexchange_filtered
Angular route does not navigate to route until data is resolved I have a simple web app that has a detail page. When end users click on the link the route does navigate to the page until the data on the page is ready. Ideally I would like to display the page right away and update the UI accordingly. Is there anything I...
common-pile/stackexchange_filtered
Cohomology of a smoothly embedded space curve Let $\mathbb{P}^3 = P(\mathbb{C}^4)$ and $\gamma:C\rightarrow \mathbb{P}^3$ be a smoothly embedded algebraic space curve. Then its total Chern class is $c(C) = c(TC) = 1+a\in H^*(C)$, where $a^2=0$. Since $C$ is compact and orientable we have Poincare duality and hence a we...
common-pile/stackexchange_filtered
Function to activate WordPress theme inside a plugin I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without having to do it manually. Is there any function that can do that? Of c...
common-pile/stackexchange_filtered
Should I implement lazy loading based on a client cursor or a publication? I need to confirm something. Considering that a publication returns a cursor, and the cursor is a handle on the related collection on client side: As long as I don't fetch() the cursor documents, I don't have actually downloaded their data? Doe...
common-pile/stackexchange_filtered
Trying to focus on an element in a $mdSideNav I am making an angular app that has a chat function. I have a sidenav that loads messages and a chat box. The chat box is fixed to the bottom of the screen and the messages are separately scrollable above it. I would like to focus on the last message when the sidenav is ope...
common-pile/stackexchange_filtered
php recursive include function in 2 file with different path Hi all I've a problem with include function in php: I have 4 file: dir1/file1.php dir4/dir2/file2.php dir3/file3.php dir3/file4.php In file1.php I have: include_once('../dir3/file3.php'); In file3.php I have: required('../dir3/file4.php'); In file2.php I w...
common-pile/stackexchange_filtered
Add quick view button on magento products I am trying to add a quick view button on all magento products. I am able to add the button next to the add to cart on product info page but not getting the reference for the product image. This is my layout xml file.As the reference here is head it adds the button to the head...
common-pile/stackexchange_filtered
Elastic APM does not track http-transactions APM client for PHP does not track HTTP transactions. In the view, I see only cli transaction type. Also, other services which call this service does recognize this service as external. APM version: 1.7.1 PHP version: 8.1 The issue was due to APM version 1.7.1. Probably 1.7....
common-pile/stackexchange_filtered
Multiple Image upload in django rest framework How to upload multiple images in DRF. I'm getting all the list of images while looping through it, but it only saves the last one. I want to save all the image and show it in response. Do I have to create separate serializer for Multiple Image serialization? #models class ...
common-pile/stackexchange_filtered
Inserting paired input fields into mysql I need to insert pairs of input values from a form into mysql database. For example here are my input boxes: <input type="text" name="roomType1" size="30" /> <input type="text" name="roomRate1" size="30" /> <input type="text" name="roomType2" size="30" /> <input t...
common-pile/stackexchange_filtered
get byte array from database I would like to get a byte array (java) from the database (mongo) and manipulate it, send it to the DOM as the original image, etc. BasicDBObject condition = new BasicDBObject("_id", new ObjectId(_id)); DBObject dataset = DataAccess.GetInstanceClass().Getdatasets().findOne(condition); ...
common-pile/stackexchange_filtered
Introspecting Child Components in Ember If I have two components involved in a list: my-list my-item But let's say actually there are two types of "items" that a list might contain so there is another component: my-other-item At run time I instantiate my list with something like: {{my-list items=items type='my-othe...
common-pile/stackexchange_filtered
selecting (highlighting) the text of jdatechooser when focus gained im looking for the line of code, which will select (highlight) the Date-text-string in the jDateChooser when it gets focused. I read that I might have to do something like .selectAll();. but i cant get access to the textfield of the jDateChooser. also ...
common-pile/stackexchange_filtered
If $m > 3$, then $m^2 - 4$ is not prime I am trying to create a proof that for all integers $m$, if $m > 3$, then $m^2-4$ is not prime. I am having issue however actually figuring out how to finish it off. Here's what I have so far... Proof: Let integer m be given. $m^2 - 4 = (m-2)(m+2)$. Suppose that $m > 3$. Since $m...
common-pile/stackexchange_filtered
Trouble installing caldecott osx mountain lion I'm having trouble installing caldecott on osx mountain lion. I keep getting this error: $ sudo gem install caldecott --no-rdoc --no-ri ERROR: Error installing caldecott: ERROR: Failed to build gem native extension. /Users/Jay/.rvm/rubies/ruby-1.9.3-p327/bin/rub...
common-pile/stackexchange_filtered
Discriminator in a Joined Table with Doctrine2 I have an abstract parent class called Divers which is extended by few other classes. So, I use inheritance mapping with D2 using Single Table Inheritance strategy. namespace MyBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * ParentClass * * @ORM\Table(name="PAR...
common-pile/stackexchange_filtered
UITextField where to set clearsOnBeginEditing I'm really used to VS where all properties are nicely listed in a big dialog. In Interface Builder I can find no such dialog. If I want to set the clearsOnBeginEditing field of a UITextField to FALSE, where is the best place to do it? Is there an interface to a control's p...
common-pile/stackexchange_filtered