text
stringlengths
70
452k
dataset
stringclasses
2 values
Why does my Octave subplot disappear? When I plot in octave I can left-click two points in the plot and it will zoom in on that section. However when I create two side-by-side plots in Octave and try to zoom in the left plot disappears. Is this not the correct way to navigate subplots in Octave? Following is an example...
common-pile/stackexchange_filtered
Lua: Remove a character from string How would i for an example remove the h from "helloh" so it will look like "ello" I have no idea what else to write but it looks like i need to write some more text and maybe add some code so this is just junk. print("junk 1") print("junk 2") print("junk 4") You can used string.gs...
common-pile/stackexchange_filtered
CanBeNull and ReSharper - using it with async Tasks? I recently figured out that you can use the [CanBeNull] annotation in C# to tell ReSharper (and other addons) that a method can return null. This is great, because it makes ReSharper remind me when I don't handle those situations. However, for async methods that retu...
common-pile/stackexchange_filtered
Can one start a paragraph with the word "also"? Just wanted to ask this for a school thing... Just a little confused, because no other website already has the answer and if you start it with also, wouldn't it sound wrong? If I could get a response as soon as possible, that'd be great! Thanks! also can be used to start...
common-pile/stackexchange_filtered
What is C-equivalent of reference to a pointer "*&" Could someone please let me know the C-equivalent of reference to a pointer "*&"? In other word, if my function is like this in C++: void func(int* p, int*& pr) { p++; pr++; } How would I changed the second argument while converting it in C? UPDATE: @MikeDeSi...
common-pile/stackexchange_filtered
I can't install one of the gems in ruby I'm trying to get my git repository work, but i can't. In my command line i'm at the reprository's directory. I gave the "bundle install" command to get all the gems i need to work, but i can't finish it. It keeps telling me this error: Using bcrypt 3.1.10 Installing debug_inspec...
common-pile/stackexchange_filtered
Adding more schedulers I have seen different IO schedulers in tutorials, e.g. cfq, noop, but when I test on my linux, I don't see them. $ cat /sys/block/sda/queue/scheduler [mq-deadline] none $ uname -r 5.13.0-27-generic $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04....
common-pile/stackexchange_filtered
Group by on a List And Return Top 1 Row I have a list acd with key value pair. var acd = zebra.Where(v => v.Key.StartsWith("alpha")); KEY, VALUE alphaABC, TOP323 alphaBCD, BIG456 alphaDEF, TOP323 What i would want is to get only One Key (Any) from multiple keys which have same values. In this case 1 and 3 have sam...
common-pile/stackexchange_filtered
Vim global command with two search ranges to yank multiple sections I wanted to create a global command to yank multiple sections of text: :g/BEGIN/.,/END/yank A The idea is that I would assemble, in register A, the (multiple) sections in a file which occur between the markers "BEGIN" and "END:" BEGIN Section 1 END B...
common-pile/stackexchange_filtered
How to dynamically create Tab Pages in a Tab Control with a pre-existing Windows Form in C# As the title suggests, I'm looking to dynamically create Tab Pages within a Tab Control. I've just begun learning C# and the app I'm making (shown below) is a generic stock price application that works great as is with a SINGLE ...
common-pile/stackexchange_filtered
Size of _SFR_IO_ADDR() result in AVR GCC I am in a situation where I need to save addresses of IO ports to variables. I've found that eg. _SFR_IO_ADDR(PORTB) gives address of PORTB. What data type do I need to reliably contain the result of this macro? Will uint8_t suffice? (I tried to google it, found nothing - sorry....
common-pile/stackexchange_filtered
NoMethodError: undefined method `equity=' I got an error like following, with $ bundle exec rake db:seed. I'm using rails 3.2.2, and mysql. Any other model is not defined. NoMethodError: undefined method `equity=' for #<Company:0x007fd1cdb5b2a0> /home/vagrant/codes/sample/vendor/bundle/ruby/2.2.0/gems/activemodel-3.2.2...
common-pile/stackexchange_filtered
How to distinguish 4D and 3D vectors in handwriting? Usually vectors are denoted with bold font in printbooks and with arrows above in handwriting. In Thorn's e al. Gravitation, 4D vectors are denoted with bold and 3D vectors with bold italic. How to implement similar distinguishing in handwriting? In component notati...
common-pile/stackexchange_filtered
How can I mock FileReader with jest? I've been struggling over the past couple of weeks with unit testing a file upload react component with jest. Specifically, I'm trying to test whether or not the method onReadAsDataUrl is being called from FileReader in one of my methods. This is an example method I am testing: load...
common-pile/stackexchange_filtered
GameObject isn't in the hieararchy, but its script's Update is called? Now I am facing a ghost object. There was a script attached to an object which I deleted. But for some reason, the script's update function is always being called. I added this line to the Update: Debug.Log(name), and its name is Flamestrike, but wh...
common-pile/stackexchange_filtered
Review queue Help Center draft: Suggested edits queue This post is part of a larger effort to create Help Center pages for each of the Review queues. You can learn more about this project in the overview post. These posts will be locked so that everyone has a chance to review each original draft and provide feedback in...
common-pile/stackexchange_filtered
Error using "sumif" together with "address" function Please see the data below: What I want to do is to write a formula in column D to sum up the order quantity (column C) starting from the row number specified in column F until current row, for the same item number. However, when I use the address function nested in ...
common-pile/stackexchange_filtered
Is it idiomatic to say, 'someone thinks about how XXX' instead of 'someone thinks XXX'? Suppose in a windy day, a billboard fell to the ground and John saw that. Instead of saying, John thought it could knock him out instantly if it hit him is it idiomatic to say this? John thought about how it could knock him out i...
common-pile/stackexchange_filtered
Verbose name in django ModelForm One field in my model looks like this: class Test(models.Model): charField = models.CharField('char field test',max_length = 1024) and ModelForm: class TestForm(ModelForm): class Meta: model=Test My question is how to get, in html page, field name ("charField") and fie...
common-pile/stackexchange_filtered
What are the top-down and bottom-up approaches to holography? I think I understand the main idea of top-down vs bottom-up: when trying to describe some phenomena using a particular theory, in t-d one starts from the complete theory and puts constraints so that the desired phenomena would come up, while in b-u one start...
common-pile/stackexchange_filtered
add block to adminhtml_sales_order_view i'm trying to add block to the admin order view page in magento my layout update is <?xml version="1.0"?> <layout> <adminhtml_sales_order_view> <reference name="order_tab_info"> <block before="order_tab_info" type='vendor/additonal' name="ama_additonal_da...
common-pile/stackexchange_filtered
New release crashes, when previous app version is overwritten I'm just releasing a new version of my Android app. The problem happens when the previous version is already installed in the device and you install the new apk (with a session started), the application doesn't clear the splashcreen and gets stucked. The onl...
common-pile/stackexchange_filtered
Profile photo upload in php and database I have problem that the photo uploaded to the site but the name of it don't be saved on database . The code upload the photo to the site but the name of the file didn't be uploaded to the database help me, I need to know what the problem in the code? please someone answer! the c...
common-pile/stackexchange_filtered
Table not found on postresql connection from spring boot 2 I am trying to perform a basic connection between to a local postgresql DB from a very basic SpringBootProject (for training purpose). # configure postgresql spring.datasource.platform=postgres spring.datasource.jdbc-url=jdbc:postgresql://localhost:5432/db spri...
common-pile/stackexchange_filtered
sigma algebra generated by a set which being a subset of another generating set I have a question regarding sigma algebra generated by a set. It is from 5.4b) from here: http://stat.math.uregina.ca/~kozdron/Teaching/Regina/451Fall13/Handouts/451lecture05.pdf Basically I know that given a sigma algebra (say $F= ${$F_1,...
common-pile/stackexchange_filtered
When I use flock it exits immediately instead of waiting I was confused for a very long time with the meaning of the -n flag for flock(1). Basically there are many guides for this tool, and often what we see is some command like flock -n 100. Here, fd number 100 is associated with some lockfile and used to perform lock...
common-pile/stackexchange_filtered
Report fails when is build in VS but doesn't fail with MSBuild I am trying to create deployment job that would checkout from git and builds all the reports in the solution. If it can't build then I want that job to fail. I've created the simple report with dataset as "select 1 as one" and then added 1 non existing colu...
common-pile/stackexchange_filtered
Can Windows find unmanaged DLLs not in the path, GAC or Registry? Can Windows find the unmanaged (non-COM) DLLs of a mixed-mode application if these DLLs are not in the application directory or Windows path? I noticed VS 2008 does not appear on the path, and I was wondering how this is done. No, it can't "find" them i...
common-pile/stackexchange_filtered
Warning of NameError for wireType in ABAQUS I tried to connect points through wires using script. A warning regarding the NameError occurred. the code i tried to run in abaqus: a = mdb.models['Model-1'].rootAssembly v11 = a.instances['r-mesh-2'].vertices v12 = a.instances['s-mesh-1'].vertices v13 = a.instances['r-mesh...
common-pile/stackexchange_filtered
systemd run fossil as non-root user I want to run fossil as systemd service under non-root user. useradd -r fossil touch /etc/systemd/system/fossil.service fossil.service file: [Unit] User=fossil Group=fossil Description=Fossil Service After=network.target StartLimitIntervalSec=0 [Service] Type=simple User=fossil ...
common-pile/stackexchange_filtered
What nouns describe the relationship between tiers? For example, in the majority of football (soccer) leagues, you'll have a number of tiers such as the first division, second division, third, etc. At the end of each season the few top teams in the second division are promoted to the first division, and the few bottom ...
common-pile/stackexchange_filtered
how to customize joomla db sql error messages and how to prevent duplicate entries my showtime table contains following fields, id, name, showtime where id is a int type auto-increment field(pK). showtime time type unique field . when I try to add a showtime(duplicate value) to showtime field($row->store()) it shows ...
common-pile/stackexchange_filtered
Difference between 'If ..was' and 'If ...were' Possible Duplicate: “If I was” or “If I were”. Which is more common, and which is correct? Hi, I have seen different usage of the phrase 'If..was' and 'If..were'. But I find it difficult to understand when to use which. e.g. If I were the President of the United State,...
common-pile/stackexchange_filtered
Regedit Directory definition? can someone tell me what the NSI directory is? for example SYSTEM\ControlSet001\Control\Nsi\{eb004a11-9b1a-11d4-9123-0050047759bc}\10 I am curious to know why there is an bunch of these vaules in my registry each time I connect to the internet; i think it is some sort of tracking as it k...
common-pile/stackexchange_filtered
Issue in creating Zip file using glob.glob I am creating a Zip file from a folder (and subfolders). it works fine and creates a new .zip file also but I am having an issue while using glob.glob. It is reading all files from the desired folder (source folder) and writing to the new zip file but the problem is that it is...
common-pile/stackexchange_filtered
Power BI Slicer Showing More Dates Than Available I have dates in a set of data. The data is in MM/dd/yyyy format. The earliest date is: 11/25/2014 The latest date is 10/21/2021 I am using a slicer in my visualization. When I click on a date value, circled in my image below, I am able to select dates earlier than my ...
common-pile/stackexchange_filtered
Do we have any css frameworks to make web applications for desktop first approach I came to hear about the css bootstrap framework which gives lots of components to start with initial development. Do we have any other similar open source framework which is made only desktops as I am never gonna use this application for...
common-pile/stackexchange_filtered
Change type of variable with a for loop I have a data set in R and I want to turn the first three columns into a factor with a for loop. What I did is: newvar=names(data)[1:3] for(v in newvar){ data[,v] = as.factor(data[,v]) } this works fine. Can anyone tell me why for( v in newvar){ data$v=as.factor(data$v) }...
common-pile/stackexchange_filtered
How to solve "Incorrectly defined MiniBatchable Datastore" error when training network I'm trying to use a convolutional neural net (designed with MATLAB's Deep Network Designer) to identify flowers from a dataset of images (pretty new to machine learning, haven't taken a course, just playing around with things). I've ...
common-pile/stackexchange_filtered
Nilpotent short games of odd order Is there a short game $G \ne 0$ such that $G + G + G = 0$? It seems to me like such a game shouldn't exist, but I am unable to prove it. Can anyone give an example of such a game, or a proof that one doesn't exist? Also, is there any short game $G$ such that an odd number of copies o...
common-pile/stackexchange_filtered
SDL.h No such file or directory in VSCode I'm trying to add the relevant "-I"path_to_your_SDL_include_directory"" as outlined in several similar posts such as this one. I have tried three approaches;, adding it to tasks.json, Makefile and c_cpp_properties.json. My file structure is as follows. My main.cpp is in MyProje...
common-pile/stackexchange_filtered
Learning Python, can't install scikit-learn On my Windows machine, I ran pip3 install scikit-learn and it installed without any problems, however, on my Mac, I've tried a lot of things: $ brew list ...
common-pile/stackexchange_filtered
What is an uncountable union of events? In DeGroot and Schervish's 'Probability and Statistics'(4th editon), they define the sample space as the union of all outcomes, and an event as a set of possible outcomes. Definition 1.3.1 on page 5. "Experiment and Event. An experiment is any process, real or hypothetical, in w...
common-pile/stackexchange_filtered
How do they do this, ajax, json I have been tasked with adding some functionality to a site similar to this screen on flickr. Does anyone have any idea how they do the photostream on the right. The images are not in the javascript, json or there is no ajax request. It would be really useful if anyone had an idea how th...
common-pile/stackexchange_filtered
Redirect back to my site from third party payment system I provide a redirect url for a payment site. After payment is completed the payment site creates form with a submit button to bring user back to my site: <form action="http://my.site.foo/payment/ok">....</form> When I use http protocol everything works fine, but...
common-pile/stackexchange_filtered
Canvas to ImageView problem in Android I want to display Canvas contents on ImageView in android, but ImageView displaying blank. Bitmap imgBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.image); Canvas canvas = new Canvas(); Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(imgBitmap,...
common-pile/stackexchange_filtered
Modular arithmetic congruence class simple proof I have the following question but I'm unsure of how it can be approached by a method of proof. I'm new to modular arithmetic and any information on how to solve this would be great for me. (b) Let $t,s\in\{0,1,2,3,4,5\}$. In $\mathbb Z_{25}$, prove that $[t]\,[s]\neq[24...
common-pile/stackexchange_filtered
Generating Canopy Height Model (CHM) with Quick Terrain Modeler? I currently looking forward to process LiDAR point clouds (forest data) using Quick Terrain Modeler (QTM), but is it possible to create Canopy Height Model directly using the software? Can CHM be performed from RGB generated Ortho and DSM in QGIS ? To o...
common-pile/stackexchange_filtered
Timeout while connecting to DocumentDB from Lambda I can successfully connect to the cluster (1 instance for now) from the Cloud9 console using mongo shell, however wasted hours trying to connect to it from within a lambda function. Setup: Both cluster and lambda are in the same VPC (default) TLS is ON Cluster is in a...
common-pile/stackexchange_filtered
How to determine the "number of pages" most effectively? I hope I'm not writing a duplicate, but I haven't found anything that answers my question. (Although it seems to me to be quite common problem.) The problem occurs in nearly every web project: You have a table with many many entries and want them to be displayed ...
common-pile/stackexchange_filtered
How to print text in a makefile outside a target? For example, I am trying to test whether this works in my makefile preamble: ifneq (,$(shell latexmk --version 2>/dev/null)) echo Works else echo Does not Works endif all: do things... Which does the error: *** recipe commences before first target. Stop. ...
common-pile/stackexchange_filtered
How does über recognize what friend invited a specific user? How does über recognize what friend invited a specific user without using email or phone number? I understand the link has a user id at the end of the URL and then that site redirects to the apple app store but what data is über collecting when a user opens ...
common-pile/stackexchange_filtered
Converting shortened URLs from different URL-shortening services back via Python I was wondering if there is a convenient way via an already available Python library to convert back shortened URLs into the 'native' URLs. For example, from a list of shortened URLs: ['some url from bitly', 'shortened url from twitter', ....
common-pile/stackexchange_filtered
I copied a wordpress site, but the database doesnt show! Here is what i did; I made a wordpress website and i wanted to copy this to another site. I made a backup of all the files and the database. I changed the links to the new site. Then i imported the database to the new site. I installed wordpress on the new sit...
common-pile/stackexchange_filtered
SMD diode value I need to change surface-mount diode but i need to know its value. possible your assistance to know the value of the diode in the picture. what is the value of diode in picture? or how to get the value? What exactly do you mean with "value"? Reverse voltage? Forward current? Power rating? Model numbe...
common-pile/stackexchange_filtered
Not getting Validation Erros while applying Validation Attribute on ViewModel i have a View Model [CustomValidation(typeof(MyValidation), "MyMethod")] [Serializable()] public class TransactionViewModel { public string InvoiceNumber; } public class MyValidation { public static ValidationRes...
common-pile/stackexchange_filtered
Colonizing Mars with Crops In The Martian, after Mark Watney reestablishes contact with Earth, he says this: I’ve gotten e-mail from rock stars, athletes, actors and actresses, and even the President. One of them was from my alma mater, the University of Chicago. They say once you grow crops somewhere, you have offici...
common-pile/stackexchange_filtered
rspec testing views with internationalization? I want to make sure I have the right meta desc/keyword and title text in my view so I want to create rspec views tests for that. Now the real challange here is how to make it work across multiple languages. The way I've done it is: it "should have the right page title" do ...
common-pile/stackexchange_filtered
MapView not shown anymore I have an app that i need to show a mapView inside a fragment like this <com.google.android.gms.maps.MapView android:id="@+id/mapView" android:layout_width="0dp" android:layout_height="0dp" android:background="#00838F" app:layout_constraintBottom_toT...
common-pile/stackexchange_filtered
php code to insert row of data populated from a mysql database into other mysql database after modification I am trying to make an attendance sheet. In my code I retrieve the names from a existing database and populate in a html table with the attendance select dropdown. After populating the dropdown all the data in th...
common-pile/stackexchange_filtered
Paths layers disappear on map after saving in QGIS 3 I am quite new to GIS. I am working on a historical map with three sets of points. When I create a path between those points with the "Points to Path" tool (via Ctrl+Alt+T), it shows up nicely. However, when I save the map and open it again later, the paths layers a...
common-pile/stackexchange_filtered
Codeigniter Change URL method name I am new in CI. I want to change function name in addressbar url with add_car to addcar. Actually my url is created as below http://localhost/projectName/controller/add_car But I want following in URL http://localhost/projectName/controller/addcar Is it possible? Please help me. [No...
common-pile/stackexchange_filtered
Mixing 2 different vectors in all their permutations I need to combine two vectors of different size in all their different permutations. for example: a <- c(A,B,C) b <- c(1,2,3,4,5,6) and I need to "mix" them into two vectors like that: m <- c(1,2,C) n <- c(A,B,3,4,5,6) and I need many of these combinations, with no...
common-pile/stackexchange_filtered
How to know ahead of time if food will be served during a flight? How to know ahead of time if food will be served during a flight? Ideally, at which time(s) and the menu options. It usually says on the itinerary details and/or on the booking confirmation. Some airlines will show the information in the “manage your b...
common-pile/stackexchange_filtered
Matlab: Mean with time interval? I have a vector x containing velocity information and the index represents time. Now I wish to create a new vector, preserving its size, but values are replaced with mean of a time interval eg: x = 101 102 103 104 105 106 107 108 109 110 111 ...
common-pile/stackexchange_filtered
Setting value of variable on button event listener I want the value of a variable named button_name to be set on a button event listener and send it in URL as REQUEST parameter. But what is happening the host variable is set on page load and does not take the value of updated variable. Any idea how to set the value of ...
common-pile/stackexchange_filtered
How to assign data from a file to a dictionary? I am just starting my coding adventure. My problem is that I have a file with structure: % program : RTKPOST % pos mode : ppp-static % solution : forward % elev mask : 10.0 deg % dynamics : off % tidecorr : off % tropo opt : saastamoinen % ephemeris : broadcast % =...
common-pile/stackexchange_filtered
Extracting value coded in an equation from text file in a text file I have a specific line like: ZONE, T="test", I =100, J= 175, F = POINT and I want to extract with python the values for "I" and "J". I = ** your code ** J = ** your code ** Do you have any suggestions? Thank you. clean white space, split on commas,...
common-pile/stackexchange_filtered
Is it bad practice to keep "this.setState" methods on one line? I am just curious as to whether it is bad (or better) practice to keep this.setState on one line of code, especially if only one state variable is being changed. this.setState({ fruits: { apples: newApples, bananas: newBananas } }); vs this.setS...
common-pile/stackexchange_filtered
Hovering Issue With Nav Menu My mega menu nav has a hovering issue. It activates when hovering over invisible child list items (mousing over from bottom to top, you'll notice the issue on this codepen). This is the block of CSS that's triggering the hover: .nav:hover > li > .subnav-block { opacity: 1; visibility: ...
common-pile/stackexchange_filtered
Can't find iOS crash reports The only crash logs I have on my iPhone are from last November, but I know my (debug, non-released) app has crashed a million times since then. What determines if a crash goes to the Diagnostics and Usage info? I've tried looking in the Devices window of Xcode. Same logs as on iPhone. I jus...
common-pile/stackexchange_filtered
what does '$::n' mean for perl? Do you know what "$::n;" means ? The section of codes is like below. use JSON::XS; # ... open (YI, "| $cmd"); my $msg = { test => test }; my $emsg = encode_json($msg); print YI "$msg_inject\n" unless $::n; close YI;` I remmeber that I also met $::v before. What is $::v ? Does it have a...
common-pile/stackexchange_filtered
Physics tutoring session at Paul's apartment, evening. Person A: The Dirac equation works perfectly when we rotate the phase globally, but what happens if we try different phase rotations at different points in space? Person B: That breaks the equation completely. The derivatives pick up extra terms that ruin everyth...
sci-datasets/scilogues
Spring WS client add SoapHeader I'm trying to send SOAP request with soap header looks like this: <SOAP-ENV:Header> <Security xmlns="http://www.xxx.org/xxx/2003/05"> <UsernameToken><Username>yyyy</Username><Password>xxx</Password> </UsernameToken></Security></SOAP-ENV:Header> In order to do it I'm adding header eleme...
common-pile/stackexchange_filtered
Failed to get FirebaseApp instance after migrating to SwiftUI lifecycle I have a SwiftUI app with UIKit AppDelegate and SceneDelegate. This app uses Firestore and Firebase Storage and everything worked completely fine. Then I decided to migrate to SwiftUI lifecycle instead of UIKit AppDelegate and SceneDelegate. But no...
common-pile/stackexchange_filtered
Why do we use -i in Linux commands? Why do we use -i in linux commands and what is it's use? e.g. ssh -i .\filename.pem<EMAIL_ADDRESS>(or) sudo -i What's the use of -i here? There's no single answer. It depends on the command itself. Read the manual pages to find out what that option does for each command. ssh manual ...
common-pile/stackexchange_filtered
Why doesn't java allow use of type parameter with super keyword? If public void foo(List<? super Integer> list){} is valid, what's wrong with public <T super Integer> void foo(List<T> list){} If second one can't be allowed, since it does not make sense as it will allow any type to be qualified to satisfy constraint o...
common-pile/stackexchange_filtered
$\sum_{k=2}^{n}{k \choose 2}= \binom {n+1} {3} $ Help with this excercises :) Proof that $$\sum_{k=2}^{n}{k \choose 2}= \binom {n+1} {3} $$ please :) Do you realize you haven't asked a question? As written, it isn't clear what you're asking. Hockey stick identity: http://www.artofproblemsolving.com/wiki/index.ph...
common-pile/stackexchange_filtered
Set KeepAlive in WCF Data Services I am using the "abandonware" product from Microsoft called "WCF Data Services". I am hoping I can get some help here on it. I am trying to setup my services to work in a load balancer (an F5). The problem I am having I also had with my normal WCF services. Basically, the F5 sees th...
common-pile/stackexchange_filtered
Keeping user logged into website using PHP POST without form How do I keep the user logged into my website when they switch pages using PHP POST without a form? Maybe like this (I am aware that this code might be a little crazy): <?php define (php_post_request, (name), (Werling)); header ('Location: ' . $_GET["loca...
common-pile/stackexchange_filtered
Why does "for (auto const& dir_entry : std::filesystem::directory_iterator{sandbox}) {}" trigger AddressSanitizer: heap-buffer-overflow? I have nailed down that the following code, when compiled with g++14 and adress sanitizers (See details below), triggers a runtime 'AddressSanitizer: heap-buffer-overflow' for the for...
common-pile/stackexchange_filtered
Too much data in Database I am writing application, where I store in Database Strings from Images Bitmaps. I decided to save String, not Uri cause I didn't want to expose that user delete image from gallery and there will be no access to this image from my app. And on emulator everything works fine, but now on real dev...
common-pile/stackexchange_filtered
How can I change numbering format in picker view? I am beginner in coding and would like to display only integers (1 , 2 , 3 , 4) in my UIPickerView rather than (0.0 , 0.1 , 0.3 , 0,4). -(NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component { ret...
common-pile/stackexchange_filtered
What to do with antique math books? My grandfather had a PhD in math. When he died, he left a lot of math textbooks, which I took. These include things like Van der Waerden's 2-volume algebra set from the 1970s, "Studies in Global Geometry and Analysis" by Shiing-Shen Chern, a series called "Mathematics: it's conten...
common-pile/stackexchange_filtered
Android search manager results not showing up in UIAutomator tree I am trying to figure out how to get to the elements shown in global search results in Android. All the other elements are showing up in the UIAutomator tree. If you look at the below image, there is no notion of Seafood, Outdoor Seating etc. Which mean...
common-pile/stackexchange_filtered
"A game Object can only be in one layer" error in OVR Script in Unity I am trying to make a game using Oculus Rift DK2 and Leap Motion. I use Scripts named OVRVisionGuide.cs and OVRMainMenu.cs. My errors are : A game object can only be in one layer. The layer needs to be in the range [0...31] UnityEngine.GameObject:...
common-pile/stackexchange_filtered
Firebase Functions Deploy: Error 3 - The Request has errors I'm trying to use 2 wildcards : functions.firestore .document('establishments/{establishmentId}/payment/payments/{paymentId}') and getting the "Error 3: The Request has errors". However when using only 1 the function works normally: functions.firestore ...
common-pile/stackexchange_filtered
AutoMapper and .NET Core: Profile is not effective In an ASP.NET Core application I have a profile class (for AutoMapper) like this: public class CandidateProfile : AutoMapper.Profile { public CandidateProfile() { CreateMap<Job.Candidate, Job.Candidate>() .ForMember(x => x.Id, y => y.UseDes...
common-pile/stackexchange_filtered
bash script: How to implement your own history mechanism? I'm implementing an interactive bash script similar to the MySQL client, /usr/bin/mysql. In this script I need to issue various types of 'commands'. I also need to provide a history mechanism whereby the user can use the up/down arrow keys to scroll through the ...
common-pile/stackexchange_filtered
Will `nodetool repair` also repair against machines holding data they don't own in ring? Let's say I have a cluster of three nodes with (for simplicity) a replication factor of 1. Let's call the nodes A, B and C. According to the ring, the partition key X should be stored on A. However, due to a database recovery, the ...
common-pile/stackexchange_filtered
Norm of $L^2$ functional Consider the functional $T: L^2((0,1)) \rightarrow \mathbb{R}$ $$ T(f) = \int_0^1 f(x) (1-x) dx. $$ Calculate $\lVert T \rVert$. I can show that $$ |T(f)| \leq \int_0^1 |f(x) (1-x)| dx \leq \left( \int_0^1 |f(x)|^2 dx \right)^{1/2} \left( \int_0^1 (1-x)^2 dx \right)^{1/2}= \lVert f \rVert_2 ...
common-pile/stackexchange_filtered
How to do partial page refresh using struts2-jquery plugin in struts2? I want to do partial page refresh with the help of this. Take a scenario, we have a dropdown list according to select option of it, I want to refresh a div section of a page with data populated according to dropdown selection . How to do this? Upda...
common-pile/stackexchange_filtered
VSCode - Call to undefined function in imported module If I write this code: import math math.abcdef() where clearly the method abcdef() does not exist in the imported math module, why doesn't visual studio code show an error? Is there a way to force vscode to check that the called method exists in the imported module...
common-pile/stackexchange_filtered
Game Object, components priority? So, my first attempt to create a component based game object is this: class GameObject; class GameObjectComponent { public: virtual ~GameObjectComponent(); virtual void Update(GameObject* obj, const sf::Time& deltaTime) = 0; }; class GameObject { public: GameObject(); ...
common-pile/stackexchange_filtered
Fixing video container keyframes for live streaming I have a capture card that is handled by a program which I intend to run in a Raspberry Pi 3 (I compiled for it) to stream video locally to a Chromecast. This program is run and spits out video data to stdout in a MPEG-TS container with H.264 and AAC codecs. I wrote a...
common-pile/stackexchange_filtered
Javascript two dimensional string array update value I have the following code: var data = ["z wwwww ","www w ","w b w ww","w w p w","w w w","wwbwp w"," wy www"," wwwww "]; console.log(data[0][0]); // outputs "z" data[0][0]="x"; console.log(data[0][0]); // still output "z". Shouldn't it show "x"? What am I mi...
common-pile/stackexchange_filtered
Selecting unique records based on date of effect, ending on date of discontinue I have an interesting conundrum and I am using SQL Server 2012 or SQL Server 2016 (T-SQL obviously). I have a list of products, each with their own UPC code. These products have a discontinue date and the UPC code gets recycled to a new p...
common-pile/stackexchange_filtered
how can I find, which are the systems connected to my router? I have Belkin wireless G router (For my home network) and I want to know, is there anyway to find out which are the systems currently accessing that router and is it possible to disconnect one of the system from that network? Give us more information such a...
common-pile/stackexchange_filtered
Validating multiple form fields with JavaScript I have already searched the site and while I found similar issues, I couldn't get the answer I needed, so I am asking now. I need to validate a contact form, the PHP validation is very simple but works on a base level, I want to supplement this with browser validation thr...
common-pile/stackexchange_filtered
Python Backdoor - Socket Error I thought I made a perfect backdoor but it keeps popping up with errors when I run the code from cmd. Here's the code: import socket import subprocess # Customizable variables HOST = '<IP_ADDRESS>' # IP for remote connection PORT = 12397 # Port for remote connection PASS = 'Test' # P...
common-pile/stackexchange_filtered