text
stringlengths
70
452k
dataset
stringclasses
2 values
Merge rows and join matching values I have two sets of data on the first set there is one column that has a list of IDs like below. I have another set which could have several rows matching that same ID like below I am trying to get all the 'Values' shown in the second worksheet for each ID so I end up with something...
common-pile/stackexchange_filtered
Get Selected Value of html dropdown in razor page dotnet With the below code how can I get the value of the dropdown list using page handlers or tag helpers? One way I've been reading is using OnChange on the dropdown, I can set the value of a hidden field with javascript then get value of hidden field from code behind...
common-pile/stackexchange_filtered
Convert SVG polygon to an open curve Let's consider the simple following image in its SVG representation (running the code snippet will display it): <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" height="200" width="200"> <g> <path d="m 90.200184,21.865233 13.886726,0 0,91.406257 q 0,8.4375 -4....
common-pile/stackexchange_filtered
how to run query inside a custom validator in phalconphp Im trying to make a custom validator to check if an email is already submited or not. for this I need to execute query in my custom validator, How can I do that? use Phalcon\Validation\Validator, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\Message...
common-pile/stackexchange_filtered
Debug .NET source code with VS2015 update1 in UWP / WPF / Console applications? Have tried these two,but they do not work : http://blogs.msdn.com/b/dotnet/archive/2014/02/24/a-new-look-for-net-reference-source.aspx http://referencesource.microsoft.com/ // EDIT some other information 1, code: class Program { ...
common-pile/stackexchange_filtered
Get all RSS feed entries with Rome Library i am using Rome library for Java to parse some RSS. By default it takes 25 entries. Tell me please, how to get next 25 entries? My test code is: public static SyndFeed getSyndFeedForUrl(String url) throws Exception { SyndFeed feed = null; InputStream is = null; t...
common-pile/stackexchange_filtered
Issue using CoreData in Swift So I have implemented CoreData into my Xcode project successfully and everything seems to be linked together correctly. The code I am currently using in my ViewController.swift is: func runTests(){ let appDel : AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate ...
common-pile/stackexchange_filtered
Updating a mySQL row containing IDs I have a mySQL table that have a column read_by which has the rows: -17-6 -11-8-6-62 -6 -6-22-45 -16-77 -31-3-6-24 These are IDs of users, Every ID starts with a dash - Now I have changed the user 6 to 136 How to update every row and just change 6 to 136 keeping in mind that there m...
common-pile/stackexchange_filtered
Wine yard robotics? My friend has acquired a (small) wine yard to discover how much work it is tending and harvesting the grapes. Now we are musing to enlist robotic help. The vine stocks are usually connected by a stiff wire, so some dangling machine might be feasible. We are looking for references/inspirations for an...
common-pile/stackexchange_filtered
Total beginner's JS, can't set headers after they are sent I am a beginner, and I am doing basic backend that runs on node.js and has express.js and mongodb. My db model has one model - Story: var storySchema = new mongoose.Schema({ name: String }); var model = mongoose.model('Story', storySchema); on get reques...
common-pile/stackexchange_filtered
turn focus of page to a specific part on the body In facebook fan page tab application I click tab button and like to go to the specific portion of the fan page content without pixel calculation. For example to point the comment box. for that purpose url http://www.facebook.com/pages/AAAA/4444444?sk=app_UUUU8&app_data...
common-pile/stackexchange_filtered
Save data from XSLT generated from to an XML file i have a trouble while trying to save some data to XML using XSLT. So the problem is that everything seems to be ok, no exceptions are thrown, log files are also clean, but I can't see any changes in XML file. And I can't Here is my code for saving output to file Tr...
common-pile/stackexchange_filtered
Does e.g. File.ReadAllText() utilize Windows File Caching? Windows File Caching, as described here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx By default, Windows caches file data that is read from disks and written to disks. This implies that read operations read file data from...
common-pile/stackexchange_filtered
Apache RewriteRule for a single static URL? My current .htaccess contains the following: Options +FollowSymLinks RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule...
common-pile/stackexchange_filtered
WebMvcConfigurer and Jackson postprocessing Consider a controller which returns urls with protocol and domain: GET /test {"url": "https://example.com/foo/bar"} I would like to implement a filter or modification to Jackson which would postprocess such responses and remove the protocol and domain based on a parameter: G...
common-pile/stackexchange_filtered
Retrieve json parameters in current URL with php (and same name parameters) I found lots of issues dealing with this kind of situation, but none like mine. Or maybe it was that I did not send the correct parameters via ajax? This question is the following of that issue Here is the ajax code $('.valide').unbind().click...
common-pile/stackexchange_filtered
Are innate intersubjectivity and theory of mind opposing theories or are they reconcilable? What I get from Trevarthen's theory of innate intersubjectivity (2010) and the theory of theory of mind (Perner, 1999) is that they don't agree. A considerable number of studies in theory of mind development suggest that infants...
common-pile/stackexchange_filtered
Is there significance to the way the White Walkers/Others arrange dismembered body parts in patterns? I just started watching Game of Thrones again and noticed something that I had never noticed previously. In the very first episode of the first series during the opening segment (just before the title sequence), there ...
common-pile/stackexchange_filtered
Can't pick day if inline I can't not pick a day at the weekend. The cursor is not changed. Only days in the width of the div, where the datepicker is in, can be picked. How I can fix this? I give an example using bootstrap to show the problem. import React from "react"; import DatePicker from "react-datepicker"; clas...
common-pile/stackexchange_filtered
Get the alpha of an ImageView How can I do this? There's a setAlpha but no getAlpha. There is no easy way to do this. This is because an ImageView might have been set with a Bitmap, a StateListDrawable, a ColorDrawable, or something else entirely. Only one of those classes has a single color; on any other drawable t...
common-pile/stackexchange_filtered
Mathematica -- why does TreeForm[Unevaluated[4^5]] evaluate the 4^5? If I give Mathematica the input TreeForm[Unevaluated[4^5]] I expect to see three boxes -- power, 4, and 5. Instead I see a single box with 1024. Can anyone explain? Compare TreeForm@Unevaluated[4^5] with TreeForm@Hold[4^5] From the hel...
common-pile/stackexchange_filtered
Google dataflow fails with JVM after 8 consecutive periods for Combine globally In my pipeline I have around 4 million records and the flow is as follows Read all records from bigquery Transform to proto Combine globally and create a sorted kv based SST file which is later used for Rocksdb This pipeline works for ...
common-pile/stackexchange_filtered
Sending a non-client message to a WebSock process The WebSock documentation states that the handle_info/2 callback is Called by WebSock when the socket process receives a GenServer.handle_info/2 call which was not otherwise processed by the server implementation. is there another, idiomatic way to send a message to a...
common-pile/stackexchange_filtered
Writing a C++ extension for PHP 5.4, example code is obsolete I am trying to write an extension for php5.4 which basically wraps a very simple class in CPP. This is for education purposes. I find the way to do it in php5.4 has changed from php5.3 Where do I find the documentation on how to do it? Or even better, co...
common-pile/stackexchange_filtered
Using where clause in SSRS expression I have a data set with multiple rows. The columns are name and plot; plot is a binary image file. If I want to display the plot whose name is secondPlot, for example, how would I do this? I can display just the first plot with =First(Fields!plot.Value, "DataSet1") but haven't had a...
common-pile/stackexchange_filtered
How do I configure vhost to read system path when enabled I'm trying to set up a vhost to allow a specific file system path beneath the public directory. Current Configuration: <VirtualHost *:80> ServerName mysite.com DocumentRoot "..etc/www/mysite.com/public_html" </VirtualHost> I want to include the path ...
common-pile/stackexchange_filtered
Prove PQ is parallel to BC with angle chase? I've been working on this geometry problem for a long time, but I haven't been able to make any progress. I have tried angle chase but that didn't get me anywhere. Acute triangle $ABC$ has $AB<AC.$ Let $D, E, F$ be the foots of perpendiculars from $A, B, C \text{ and } H $ ...
common-pile/stackexchange_filtered
Is there a way to let an object to call a function after calling certain function? I'm using PhpStorm to develop PHP and I'm curious about that calling a function limits itself before calling certain function with auto-complete. Here is the codes below I want to do. $this->Order = new Order(); $this->Order->setProductD...
common-pile/stackexchange_filtered
Understanding ExtJs Class properties I try to understand how properties works in ExtJs class. Refer to below code: Ext.define('My.sample.Person', { name: 'Unknown', food: undefined, foodList: [], constructor: function(name) { if (name) { this.name = name; } }, eat:...
common-pile/stackexchange_filtered
Check following C# code Errors in My code I am creating a wpf calculator app.In the picture working area is the name of my text block.I want to Add a keydown event on the textblock but the code is showing error.Please give me any solution if you have. Code: private void workingarea_previewkeydown(object sender, KeyEven...
common-pile/stackexchange_filtered
How to get the same time the update(currentTime:) function uses? (before it is called) Question: The update(currentTime:) function in SKScene is called every frame with a currentTime argument. I'm wondering how to get the time from the same source update(currentTime:) uses without using the update function. I only foun...
common-pile/stackexchange_filtered
Why draw operation in android canvas are using float instead of int for (x,y)? Why draw operation in android canvas are using float instead of int for (x,y)? For example: http://developer.android.com/reference/android/graphics/Canvas.html#drawCircle(float, float, float, android.graphics.Paint) http://developer.android....
common-pile/stackexchange_filtered
How can i generate pseudorandom numbers in MATLAB of a specific range How can i generate 1000 pseudorandom numbers in range [-0.7,0.7] and store them in a vector, i've tried different methods but none of them actually worked for me ? I figurred out the answer myself you can actually do the following array = rand(1,1...
common-pile/stackexchange_filtered
ASP.NET Core MVC : ModelState error message - localization not working en-US: zh-CN: Why are [Display(Name = "LoginUserName")] and other data annotations not working? This is my localization config What could be the fix for me? You can try the following two ways: 1. Use the old way of localizing data annotations: [...
common-pile/stackexchange_filtered
Python Pandas spit to series groupBy I have a dataframe which I can run split on a specific column and get a series - but how do I then add my other columns back into this dataframe? or do I somehow specify in the split that there's column a which is the groupBy then split on columnb ? input: ixd _id systemA ...
common-pile/stackexchange_filtered
Need help getting access to Clipboard to work from MTA application I just am changing a GUI application from STAThread to MTAThread as it does some parallel background work. Now I encountered the issue of accessing the Clipboard from within a MTAThread application. I tried to create a dedicated STA thread on my own, fa...
common-pile/stackexchange_filtered
GitHub for Windows - is it open source? Is GitHub for Windows open source? If so, I can't seem to find the repository. According to Tom Preston-Werner, one of the GitHub founders, in his post "Open Source (Almost) Everything", about the open-sourcing philosophy Don't open source anything that represents core business...
common-pile/stackexchange_filtered
Inherit ES6/TS class from non-class Given the class is extended from non-class (including, but not limited to, function), function Fn() {} class Class extends Fn { constructor() { super(); } } what are the the consequences? What do the specs say on that? It looks like the current implementations of B...
common-pile/stackexchange_filtered
Disabling specific userforms based on corresponding cells I have a group of cells, A1:A5, that each have a corresponding combobox user form, combobox1-5. If any of these cells are empty, I need to disable their combobox. I'm sure I could do it with something like: Dim count As Integer count = 0 Do Until count = 4 ...
common-pile/stackexchange_filtered
Cannot parse data from the phpmyadmin I'm trying to retrieve data from phpmyadmin on my android app ,but first I want to test through the logcat to see if it works .When I test it ,I don't get back the names of the users in the database sadly . This is my ShowUsers class : package ie.example.artur.adminapp; import and...
common-pile/stackexchange_filtered
What controls things like cursor appearance in a terminal? In the GUI version of Emacs, it is easy to see that something like (blink-cursor-mode t) makes the cursor blink. However, in a terminal emulator, such as on Mac OS X, it is possible to set things such as the cursor color or whether or not the cursor blinks, in ...
common-pile/stackexchange_filtered
Odd results from Bash-4 recursion I devised a simple test to see how Bash behaves with recursion, and I do not understand the results. Test: Assign a global variable X in the shell Create a function f() that assigns a variable local X of the same name Assign local X the value of the global X i.e. local X=$X Recurse th...
common-pile/stackexchange_filtered
iOS 7: Importing CSV data from email attachement I have a logging app that currently outputs a CSV as an email attachment. However, it's become somewhat critical to also allow users to import said CSV into other devices for sharing their logs. It was somewhat trivial to get XCode to register CSV as one of the formats m...
common-pile/stackexchange_filtered
How to multiple value in BindingContext in xamarin ContentPage I have xamarin application where I need to pass two objects to .cs file on button click event. I have two ListView and have button in inside the 2nd Listview items. Both ListViews will be loaded dynamically based on the JSON. Now the problem is I need to se...
common-pile/stackexchange_filtered
Error with Leaflet Map - Unable to display tiles on the map I am encountering an issue when drawing polygons, point, and line features on a map using the Leaflet.js library. The polygon is correctly displayed on the map, but the moment I try to draw a point ** or **line, they **disappear **immediately after releasing t...
common-pile/stackexchange_filtered
Passing Parameters in PHP I know how to process parameters using the GET URL method in PHP like this: example.com/?item=23413 However I'm curious on how a site like Producteev.com achieved a different structure parameter. Producteev is also built in PHP framework, it is a task management site and when you open a task a...
common-pile/stackexchange_filtered
Do I have to implement mapView:regionWillChangeAnimated:on my MKMapview delegate? Apple's docs tell you this method should be as lightweight as possible, what's a standard use here? Resetting the annotation pins? Tells the delegate that the region displayed by the map view is about to change. - (void)mapView:(MKMa...
common-pile/stackexchange_filtered
emacs projectile: override vcs mode GNU Emacs 24.3.1 + projectile 0.11.0 (installed using melpa) When I try to find a file (C-c p f) in an svn project (https) it takes ages before the completion comes up. Additionally I require a secure VPN connection which is not always active. From the debug stacktrace (see below) I ...
common-pile/stackexchange_filtered
set cookie in theme header.php based on page - wordpress I'm trying to set a cookie in my wordpress theme header.php file. I've found a bit of information about this but it all seems to use the functions.php file, this isn't really an option for me as I'm setting the cookie based on the page. I'm just wondering how I c...
common-pile/stackexchange_filtered
How to have two class names share the same style in ReactJS useStyles ReactJS useStyles newbie question. In regular CSS I can have two classes share the same style, such as... .firstDiv, .secondDiv { border: 1px solid red; } but I'm not clear on how I would do this using ReactJS useStyle. const useStyles = makeStyles(...
common-pile/stackexchange_filtered
Return Array from NPAPI plugin to java script I want to return array of string from NPAPI plugin to Javascript. Currently I am using only plain NPAPI. I have read the following links: NPVariant to string array http://www.m0interactive.com/archives/2010/10/21/how_to_communicate_back_to_javascript_from_npapi_plugin.html...
common-pile/stackexchange_filtered
iOS / Xcode - Picking files from Dropbox and transferring to a Public Server I need to develop an App in which the user can pick files from their Dropbox account and initiate a transfer a Public / Crowd sourced server. This is not a migration of cloud storage, but manually selecting files and transferring them to a se...
common-pile/stackexchange_filtered
Appium vs Espresso for automated testing framework For last few weeks, I was using Appium(python) for android testing but yesterday we have decided to shift to Expresso(Java) for automated testing. There are couple of reasons why we are making this shift: We want to scale out our automated testing, and there are lot o...
common-pile/stackexchange_filtered
Determination of file extension not working for large files I've coded the following script such that it shows error if any non-image file is uploaded or any image that is larger than 4 MB. Now, when I upload any image larger that 4 Mb or when I upload any small video file , it shows error and that's fine. But when I u...
common-pile/stackexchange_filtered
Cobordisms between spheres In the category $Cob_n$ of closed $n-1$ dimensional manifolds and cobordisms between them, I am wondering what happens when we restrict our attention only to spheres. In the case when $n=2$, the only closed $1$ manifolds are disjoint unions of circles and any cobordism between any two closed ...
common-pile/stackexchange_filtered
How can I create an animation showing how a circular sector deformed to a cone? I want to create the following animation with Mathematica. What is the simplest way to do so? My first effort: GenerateLines[a_, b_, r_, n_] := Table[r {Cos[\[Theta]], Sin[\[Theta]], 0}, {\[Theta], a, b, (b - a)/ n}]; basePts = Gener...
common-pile/stackexchange_filtered
Clustered Bar plot in r using ggplot2 Snip of my data frame is Basically i want to display barplot which is grouped by Country i.e i want to display no of people doing suicides for all of the country in clustered plot and similarly for accidents and Stabbing as well.I am using ggplot2 for this.I have no idea how to do...
common-pile/stackexchange_filtered
Convert 12 hour time g:i a to 24 hh:mm:ss PHP I've been working on a PHP powered site, and made use of this very nice jquery-based timepicker: http://sourceforge.net/projects/pttimeselect/ However I need to be able to convert the time that this outputs, which is styled as 1:00 PM, to hh:mm:ss that I can insert into a M...
common-pile/stackexchange_filtered
Apache configuration so images are cached for a long time I'm asking here since no matter what I try I keep noticing images keep being reloaded after a while. Basically I want images to be cached for 11 months, but if anything they seem to be cached for minutes or hours. This is a node.js application with static files ...
common-pile/stackexchange_filtered
How to measure EVM? I am trying to understand the concept of EVM and how it is measured at different points in transceiver. I have a basic understanding that the error difference is calculated between two vectors (i.e. ideal and measured symbols on IQ plot) and RMS EVM is computed. I believe this happens at receiver en...
common-pile/stackexchange_filtered
Repository does not exist or may require 'docker login': denied: requested access to the resource is denied I have a docker-compose.yml file that should spin up a test server for me to run my integration tests against: version: '3.8' services: testserver: image: registry.gitlab.com/group/image:latest ... On my ....
common-pile/stackexchange_filtered
JS Bin while infinite loop I noticed strange behaviour of JS Bin runner when I execute the following code: var ask = prompt("test"); while(ask!=="yes"){ ask = prompt("test"); } I get this kind of error: Exiting potential infinite loop at line 4. To disable loop protection: add "// noprotect" to your code I wa...
common-pile/stackexchange_filtered
Python with google cloud language api Problem? Using the google-cloud-language library for python how can I get the JSON returned from the following methods. client.classify_text() client.analyze_entity_sentiment() the method response.serializetostring() seems to encode the result in a manner that can't be decoded in ...
common-pile/stackexchange_filtered
PIC18F25k50 - 10-bit PWM resolution with 8-bit timer? Im messing around with PIC18F25k50 standard mode PWM. I found something weird. Datasheet says, that PWM is 10-bit, and timer is 8-bit. How that can be? Is that datasheet is wrong, or my english is too bad to understand that correctly? What is the point of 10-bit P...
common-pile/stackexchange_filtered
Modular arithmetic with polynomial Given $n=pq$ where $p\;\&\; q,p\ne q$ are primes, P(x) is polynomial and $z\in\mathbb Z_{n}$ I need to prove that: $p(z)\equiv 0\pmod{n}\iff p(z\pmod{p})\equiv 0\pmod{p}\;\land p(z\pmod{q})\equiv0\pmod{q}$ If i could prove the more general case: P(z) mod n ≡ P(z mod p) mod p (q is the...
common-pile/stackexchange_filtered
Validating an Azure AD generated JWT signature and algorithm in .NET Core 3.1 I am new to Azure AD. We are using v1.0 token. I have an Azure JWT token validation routine mostly based on ValidateSignature and AzureTokenValidation The below is my ClaimsTransformer: public Task<ClaimsPrincipal> TransformAsync(ClaimsPrinci...
common-pile/stackexchange_filtered
Example of a proper class of graphs for which no member is isomorphic to an induced subgraph of a different member? Sorry if this is trivial but can someone construct for me any proper class of (not necessarily finite) undirected graphs $C$ for which no graph in $C$ is isomorphic to an induced subgraph of a different g...
common-pile/stackexchange_filtered
Incorporate dropdown and dialog together in React Typescript I am new to react and need your help. I have a dropdown and on selecting a value I am checking if selected value is not meeting a condition I need to prompt a dialog box to user if he wants to continue to go with the selection,if he selects yes then selected ...
common-pile/stackexchange_filtered
Rvest Unable to Webscrape Certain Site Trying to create an application in R that returns search data from the following website: https://www.gsaadvantage.gov/advantage/main/start_page.do and then perform necessary analysis of data. I am using the "rvest" package, and the website's formatting is nearly impossible to wor...
common-pile/stackexchange_filtered
How do you validate password using mongoose for mongoDB in an express app for logging in a user? I am trying to have a user log in by their email and password. MongoDb docs shows hashing the password with bcrypt in the user model. It also provides a nice way to validate the password in the model as well. My problem is ...
common-pile/stackexchange_filtered
Angular: have side effects and return Observable from a method I have this function: /** * Attempt login with provided credentials * @returns {Observable<number>} the status code of HTTP response */ login(username: string, password: string): Observable<number> { let body = new URLSearchParams(); bo...
common-pile/stackexchange_filtered
else statement gets printed every time along with if statement Here through constructor I'm initialising my private data member based on a if-else logic. Here is my code below - public BookMyMovie(int movieId, int noOfTickets) { int arr[]= {101,102,103}; for(int i: arr) { if(movieId==i) ...
common-pile/stackexchange_filtered
How to display current music position using FMOD and C++? I want to display the time that has elapsed as music plays in real-time. FMOD's Core API provides Channel::getPosition() function to obtain the current position in milliseconds. I want to update the position every second. I am a beginner and have no knowledge of...
common-pile/stackexchange_filtered
What might ChannelReader<T>.ReadAny implementation look like? BlockingCollection<T> has the handy static TakeFromAny method allowing you to consume multiple collections "I want the next item from any of these collections". ChannelReader<T> doesn't have an equivalent so if you did want to consume multiple channels into ...
common-pile/stackexchange_filtered
Django redirect after GET - MEDIA_URL All work fine for the moment. For example, an url with an image name encoded base64, is redirected correctly : with GET operation "https://myurl/v1/images/c3VwZXJpbWFnZS5qcGc=/contenu" there is a 302 status code and the navigator send the image with 200 status code with the url "ht...
common-pile/stackexchange_filtered
Splitting string causing Value of type 'Any?' has no member 'components' I have a function using webview IOS with swift 4. I am trying to explode result, but I am getting Value of type 'Any?' has no member 'components' and I have no idea how to fix this. I am new to swift. func webView(_ webView: WKWebView, didFinish n...
common-pile/stackexchange_filtered
pandas create quantiles for a column based weighted by another column I have a df like df= pd.DataFrame({'v': [100, 300, 200, 900, 100, 400, 300, 300, 800, 1100], 's':[1.1, 2.7, 0.87, 1.6, 3.2, 0.2, 1.1, 0.3, 1.2, 1.3]}) s v 0 1.10 100 1 2.70 300 2 0.87 200 3 1.60 900 4 3.20 100 5 ...
common-pile/stackexchange_filtered
Remember me login - Asp script hello i have to create a "remeber me login" asp script, have read many scripts about this procedure and have see that many people use to store username and password inside a cookie. In my opinion it is not secure (safety), some advice Why wouldn't this be safe using proper encryption? ...
common-pile/stackexchange_filtered
How can I use OpenLayers3 to put an icon on a selected point of interest in my map? I am absolutly new in OpenLayers 3 and I have create the following page that use it and that show an Open Street map in which when the user click on a point it retrieve the GPS coordinates of this point: <!doctype html> <html lang="en">...
common-pile/stackexchange_filtered
when i scroll down the window it is not removing or adding the active class I am not able to use the classList.remove('active')when scroll down despite my code is same as shown in the tutorial i am following also when i click #search-btn it is not removing the active class from navbar let searchForm = document.queryS...
common-pile/stackexchange_filtered
Retrieving result from celery worker constantly I have an web app in which I am trying to use celery to load background tasks from a database. I am currently loading the database upon request, but would like to load the tasks on an hourly interval and have them work in the background. I am using flask and am coding in ...
common-pile/stackexchange_filtered
When is the right time to inquire about the status of my manuscript after second round of revisions? After resubmitting my manuscript following revisions for the second time, when should I contact the journal? Here is a timeline of the process thus far: First submission: March 2023 Request for major revisions: June 20...
common-pile/stackexchange_filtered
My own created function: RemoveNA runs half Here is my code : PATH <- "https://raw.githubusercontent.com/thomaspernet/data_csv_r/master/data/titanic_csv.csv" df_titanic <- read.csv(PATH, sep = ",") RemoveNA = function(x) { colmiss = colnames(x)[apply(x,2,anyNA)] colmiss i = 1 while ( i <= length(colmis...
common-pile/stackexchange_filtered
How can I maintain a permanent shade lawn? My Fescue Grass does fine here in my shady South Carolina yard. However, it needs to be re-seeded every year or it gets bare patches. Are there any alternatives that do not involve buying more seed every year (besides chopping down my trees and planting a sunny grass or natura...
common-pile/stackexchange_filtered
trouble installing MozRepl I've been trying to install WWW::Mechanize::Firefox through CPAN and I am having trouble installing the dependency MozRepl. The installation goes through but the tests all fail, and when I force install it and run my perl script, I run into an error Failed to connect to , at /Library/Perl/5....
common-pile/stackexchange_filtered
Keeps printing null This code is supposed to read one text file of multiple grocery lists and then split them up into an arraylist of separate grocery lists. Then it should split each element of the arraylist (each individual grocery list) into a new arraylist by line. So it's almost like an array list within an arrayl...
common-pile/stackexchange_filtered
PyQt cross-platform way of communicating between running applications Hey guys/ladies of python mastery, need some help. I'm using PyQt to create some integrated ui elements for an application written in python (appA) that runs on windows/linux/osx, I need those elements to be able to communicate with a PyQt app (appB)...
common-pile/stackexchange_filtered
Geographic Synonyms Let's say I have a table representing principal country divisions (ex States): create table principal_country_divisions ( id int primary key, name text not null, country_code char(2) ); insert into principal_country_divisions values (1, 'New York', 'US'); I want users to be easily able to fi...
common-pile/stackexchange_filtered
How to validate Contact Form 7 Submit I'm trying to send events to GA when a form is submitted, but while testing it, I've found that the wpcf7submit will send an event even if some required fields weren't fulfilled. "wpcf7submit — Fires when an Ajax form submission has completed successfully, regardless of other incid...
common-pile/stackexchange_filtered
How do I loop through a column and check if the value matches the next value then append? I am attempting to loop through a column. If the the item in the column matches the next item in the column. If they are the same, I will take values associated with the first row item and append it with stuff from the lines below...
common-pile/stackexchange_filtered
Is the construction "a/an X so Y" correct? I often see this construction: "Who had spread such a horrible rumor?" Or "He told her a rumor so horrible, she gasped." How about this construction: "Who had spread a rumor so horrible."? Note: I could have written "Who had spread such a horrible rumor?" But I wanted horrible...
common-pile/stackexchange_filtered
New to Android Dev - Problem installing SECOND App/APK I am writing some test Android apps using Eclipse. I created my 1st project, a simple hello app, built the apk (app1.apk), and was able to install and run that on an Android tablet. I then created a new project in eclipse, for a 2nd app. I exported the apk (app2....
common-pile/stackexchange_filtered
Create a file throught code in Kubernetes I need (or at least I think I need) to create a file (could be a temp file but for now it does not work while I was testing it) where I can copy a file stored in google cloud storage. This file is a geojson file and after load the file i will read it using geopandas. The code w...
common-pile/stackexchange_filtered
Microsoft Bot: Show options from database instead of enums In the example bot implementations from Microsoft, they use enums to define options for dialog, as shown in the example below: public enum LengthOptions { SixInch, FootLong }; public enum BreadOptions { NineGrainWheat, NineGrainHoneyOat, Italian, ItalianHerbsA...
common-pile/stackexchange_filtered
angulardart: how StreamController works in the following example? I am reading the tutorial. Example 1: lib/src/hero_search_component.dart class HeroSearchComponent implements OnInit { HeroSearchService _heroSearchService; Router _router; Stream<List<Hero>> heroes; StreamController<String> _searchTerms = ...
common-pile/stackexchange_filtered
Number of bits needed to represent the product of the first primes Input An integer \$n\$ greater than or equal to 1. Output The number of bits in the binary representation of the integer that is the product of the first \$n\$ primes. Example The product of the first two primes is 6. This needs 3 bits to represent it. ...
common-pile/stackexchange_filtered
Java Map Value Equality While writing a graph algorithm, I saw that this - Definition: Map<Integer, Integer> componentNames = new HashMap<Integer, Integer>(); CASE I: if (componentNames.get(A) == componentNames.get(B)) { System.out.printn("Hi"); } Does not print anything. CASE II: int componentNameA = componentNa...
common-pile/stackexchange_filtered
How does binary code execution vulnerability work on a modern OS? In a modern OS I think that: the .text section where binary assembled CPU instructions are stored cannot be modified the .data/.bss section is marked as no-execute so that the information there will only be treated as data, will never be executed by the...
common-pile/stackexchange_filtered
Is there a way to use B&W conversion to reduce noise My understanding of noise is that it's caused, effectively, because photos aren't evenly distributed accross time. So if you are shooting in low light, you get more noise because there aren't enought photons to 'average out'. My question is this: I feel like there s...
common-pile/stackexchange_filtered
How can one write about illegal deeds without getting into trouble? What is some good advice for writing about things done, in an autobiographical sense, that may have been or still are illegal? For example, smoking or buying marijuana is illegal in many countries, yet people write about doing this without a problem. ...
common-pile/stackexchange_filtered