text
stringlengths
70
452k
dataset
stringclasses
2 values
how to group by multi-index(including initial number index and other columns) in python dataframe? I am working on groupby in Python's pd.DataFrame. The task in the code is that I want to group the data because I want to make sure that no matter how many times I query and output the data to MySQL, it won't mess with my...
common-pile/stackexchange_filtered
Grant Permissions In Claims Based Authentication using PowerShell We have a SharePoint which uses claims based authentication. I need to iterate through all files in library using PowerShell and share the each with a particular claim. Could you please help me to to figure our how can I add a claim as a user/group in Po...
common-pile/stackexchange_filtered
Solved: Unable to hook Apple binary on iOS 14.x with Frida I'm attempting to analyze a binary from iOS 14.8 (searchpartyd). I'm using Frida to try to hook it like I normally would with other binaries. However, I'm getting an error message that I'm unable to attach to it. Frida is running as root. I've attempted to hook...
common-pile/stackexchange_filtered
The faster way to get random numbers I have a problem I need to get random numbers, but except numbers that I already have. My Code: List<int> current_numbers = repository.GetCurrentNumbers(); Random rnd = new Random(42); var new_values = Enumerable.Range(10000000,99999999) .Except(current_numbers) ...
common-pile/stackexchange_filtered
Watermarking in PDF documents I am starting now my first year of master and my project is about digital watermarking in PDF documents. I start reading some papers, but I noticed that there are no really sufficient works done for hiding information in PDF documents. I am reading now an article entitled "Blind digital wa...
common-pile/stackexchange_filtered
Getting transparent UIButton after applying gradient I am learning Swift by trying to develop an app.I want to design a button by adding gradient layer, but the problem is it doesn't appear on the screen. It does its function when I clicked where it should appear tho. extension UIColor { convenience init(red: Int, ...
common-pile/stackexchange_filtered
bootstrap div breaking on mobile iphone I've got a bootstrap website working perfectly on desktop and (I thought) mobile because when I drag my desktop browser size down to be super skinny, the site displays perfectly...however on an actual mobile device, it does not. The top div (jumbotron) breaks and the background c...
common-pile/stackexchange_filtered
run multiple tornado processess I've read various articles and tutorials on how to run N number of Tornado processes, where N=number of cores. My code was working, running on all 16 cores but I somehow managed to screw it up and I need fresh eyes on this. import tornado.ioloop import tornado.web import tornado.httpserv...
common-pile/stackexchange_filtered
IIS Splash Page showing instead of SharePoint site I'm having issues connecting to our sharepoint site using our server name. When we enter in our server name it is showing an IIS splash page with a clickable image that redirects to the microsoft iis site. Our SharePoint site url I'm trying to access is (http://serv...
common-pile/stackexchange_filtered
How do I "require" an external module in puppet? To install a module on a node you run somethig like: puppet module install SomeModuleOnForge Is there a way to put that piece of code in the manifest instead of having to install it on every single node? I know I could write some custom code to do it but doesn't it exist...
common-pile/stackexchange_filtered
Stack multiple columns I would like to change a file so that column N+1 would be put at the end of column N for each N = odd number. For instance, if I had a file with 4 columns, the column 2 would be pasted at the end of column 1 and the column 4 at the end of column 3. Example file: 1 2 3 4 1 2 3 4 1 2 3 4 Output fi...
common-pile/stackexchange_filtered
Using Arduino Libraries for a standalone MCU (ATMega328p I'm wondering how to use Arudino libraries for projects using regular microprocessors, in my case, the ATMega328p. I just have a PDIP processor on a breadboard and I'm not using an Arudino Uno or anything. I also don't want to be use the setup() and loop() Arduin...
common-pile/stackexchange_filtered
Convergence of Hyper-Geometric Function at $x=1$ I know that the Hyper-Geometric function is given by $$_2F_1(a,b,c,x)=\sum_{i=0}^{\infty}h_nx^n=\sum_{i=0}^{\infty}\frac{(a)_n(b)_n}{n!(c)_n}x^n \tag{1}$$ I want to know that under what conditions the Hyper-Geometric function will converge at $x=1$. Here in wiki, it is s...
common-pile/stackexchange_filtered
Tool that generates a mindmap for a given text Hey I am looking at a tool or software(open source preferred) that does provide me a mindmap of any text provided I don't have any preferences for the language. For example, I would like to pass a small paragraph that tells a story and I would like to see that entire para...
common-pile/stackexchange_filtered
water leak in hot water line I have a leak close to the water shut off under the bathroom vanity. I am trying to replace the pipe leaking but there is still some water dripping out of the line and cannot stop it. Piece of bread didn't work, it will not hold enough time for me to make the repair. Would I have to actuall...
common-pile/stackexchange_filtered
How can a CountDownLatch object be passed to the constructor of a Thread? I was studying Threads in Java and I saw that Threads have the following types of constructors. Thread() Thread(Runnable target) Thread(Runnable target, String name) Thread(String name): Allocates a new Thread object Thread(ThreadGroup group,...
common-pile/stackexchange_filtered
How to order Django queryset by an attribute of the parent model? I have a Profile model that extends the Django User model, class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=False, blank=True) weight = models.DecimalField(max_digits=5, decimal_pla...
common-pile/stackexchange_filtered
Does ClipX work on Windows 7 / 2008 R2 x64 SP1? ClipX always crashes these days. It seems to still work on my laptop, which I have not yet updated to Windows 7 SP1, but it crashes on my desktop PC and servers. I have started using Ditto, but after using ClipX for years, I am not taking to it. I don't like the way it ...
common-pile/stackexchange_filtered
How to see which Handlebars version I'm using? Sorry for the stupid question but... Where to find out what is the version of Handlebars that I'm using? What I've tried: Searching for local files containing 'handlebars' string (handlebars.js, handlebars-intl.js) but there is no version in them. If there is already suc...
common-pile/stackexchange_filtered
How do you see the element of a csv table with many columns (>30) which the names of its columns is more than 10 character in pandas? How do you see in pandas the element of a csv table with many columns (>25) which the names of its columns is more than 10 character? I have 5000 rows and 32 columns and the label of som...
common-pile/stackexchange_filtered
Pre-compiled ASP.NET MVC views get slow after a while in Azure I have been using pre-compiled views in my product publish / deploy process. We have experienced a much faster start and overall application performance. BUT, after a while (hours), we start to get slow pages again. The immediate solution for this is to res...
common-pile/stackexchange_filtered
Cloudflare is able to fetch all my domain CNAME Today, I was in the process of setting up an account with Cloudflare (the free tier). During the setup, it asked for the domain I wanted to configure. When I introduced my domain, and without making any changes to my DNS provider's configuration (which is hosted on AWS Ro...
common-pile/stackexchange_filtered
Microsoft Exchange Online Plan one Licence fee for additional user I want to know how Microsoft will charge license fee for new license added to the same subscription, I contacted MS but didn't get much clarity from the guy or i was not able to understand what me is trying to say. I have directly purchase Exchange Onli...
common-pile/stackexchange_filtered
EM in CSS different size on wordpress then elsewhere I am creating a Blog, and custom Theme, using Wordpress for my existing site. I am trying to get it to match exactly the look and feel of the main site, so I logically just copied over all the CSS... Most of my size definitions are based on em. I am seeing a very lar...
common-pile/stackexchange_filtered
Giving access to the object tree to external files Suppose I have a following structure of .go files inside the module: tree_definition.go tree_creation.go The tree_creation parses some file and creates and object tree from it (otree for short) using data structures and methods (as well as functions) defined in tree_...
common-pile/stackexchange_filtered
Intent — transferring a button tag? I have a borderless button on in one of my layouts. When it is clicked, I want the intent to transfer both the button's tag and the text it contains. I am having trouble doing this. This is what I have for when the button is clicked: public void openGoalWeek (View view) { Intent...
common-pile/stackexchange_filtered
Is father-in-Law non-mahram according to Islam? If a young woman gets married outside family, does she has to observe full hijab in front of her father-in-law. Is he Mahram? That would mean she has to hide her face from her father-in-Law all times and avoid any conversation or contact with him. Is this true? المحرم با...
common-pile/stackexchange_filtered
Custom Route Not Working Thought I understood custom routes, but apparently not since it's not working. Currently have this set up in Forecast model: class Forecast < ApplicationRecord def get_weather_data_paris ForecastIO.forecast(48.8566, 2.3522) end end It works for ForecastsController show action ..., ...
common-pile/stackexchange_filtered
Why is Mongoose replacing key/value pair in an object with _id? I am creating my first backend project with Node.js, Express.js and Mongoose. I have a user, with a list of stocks objects [{symbol: amount}]. When the user wants to buy a stock, they send a POST request with stock, an amount, and a verb in this case 'buy'...
common-pile/stackexchange_filtered
SearchRecentSuggestions.clearHistory() not working I am implementing an Activity with a search bar with autocomplete suggestions which is working fine. In the settings screen I have an option to "Clear search history" and when the user clicks it, the toast appears indicating everything went well but the search suggesti...
common-pile/stackexchange_filtered
Insecure rules in firebase I understand it's not good to set your read and writes to all users on Firebase; But what if you leave your reads to all and your writes to only authenticated users? What is the worst thing that could happen? Is it easy for someone to gain access to the firebase project? I'm currently using c...
common-pile/stackexchange_filtered
Printing HTML with javascript Here is a problem I am having when using Node.js: This is my code in index.js: ..... app.get('/xyz', function(request, response) { fs = require('fs'); fs.readFile('views/pages/xyz.ejs', 'utf8', function (err,data) { if (err) { return console.log(err); } response.render('pag...
common-pile/stackexchange_filtered
how to change default terminal in ubuntu budgie Ubuntu Budgie comes with tilix by default which may not be suitable for many. When I tried to replace it with xfce4-terminal, I found that nearly most answers included one of the two steps I mentioned below, i.e., editing dconf or updating alternatives. For me neither of ...
common-pile/stackexchange_filtered
Are preprocessor directives safe for sensitive information? I am creating an archive which contains HTML/CSS/JS files for my C++ application, and I don't want users to have access to these files. So, i decided to encrypt archive with password. My first thought was to store a password inside a program via preprocessor m...
common-pile/stackexchange_filtered
How to set a mask to entire layout? I already worked with different mask libraries that set a mask to images (ex: https://github.com/siyamed/android-shape-imageview) but i want to mask different layouts not just imageView. So i tried MaskableLayout It is good until i start animating views in the MaskableLayout. it has...
common-pile/stackexchange_filtered
Getting an element in JSON-response using .check My code (Java) for my Gatling test is as follows: package computerdatabase; import io.gatling.javaapi.core.ScenarioBuilder; import io.gatling.javaapi.core.Simulation; import io.gatling.javaapi.http.HttpProtocolBuilder; import java.time.Duration; import static io.gatli...
common-pile/stackexchange_filtered
Gmail marking self-signed certs as unencrypted Just a quick question/answer pair to share what I've learned this morning. Gmail marks self-signed certs for TLS as unencrypted in their interface now. This is obviously wrong. How has anyone else got around this? It's not obviously wrong. Without pinning, self-signed cer...
common-pile/stackexchange_filtered
Convergence to equilibrium for time in-homogeneous diffusions Consider the long time behavior for a time in-homogeneous diffusion such as $$dX_t = dB_t - \nabla V(X_t)\,dt + b_t(X_t)dt,$$ where $V(x)$ is a smooth convex function and $b_t(x)$ is a time-dependent drift. I believe there're results which roughly say that ...
common-pile/stackexchange_filtered
Trouble in integration test finding resource I'm using Grails 1.3.6. I have this code in my service ... if (folder) { path = "json/${folder}/${page}.json" } else { path = "json/${page}.json" } // if def file = ApplicationHolder.app...
common-pile/stackexchange_filtered
Is React Context an antidote for prop drilling? If React Context API is meant to be used for passing global variables around, why should we use them to substitute passing props from parent to child components (prop drilling)? Since most props being passed are not meant to be available application-wide i.e globally. Th...
common-pile/stackexchange_filtered
Redshift create Query failed: ERROR: syntax error at or near "identity" I am new at redshift. I am trying to create table which having auto increment id. I used syntax from documentation, yet its throwing an error Query failed: ERROR: syntax error at or near "identity" My sql statement is as follows CREATE TABLE xyz...
common-pile/stackexchange_filtered
Adding the variable in jquery selector I wants to add the jquery variable in the selector with the following code. Please help how do I do this? Actually class is dynamic here and its changing again and again when page is loaded. $(document).on('click', '#jivochatclick', function(event) { event.preventDefault(); va...
common-pile/stackexchange_filtered
Wie geht es X - Dative or Accusative? Wie geht es Ihnen? - Ihnen is a Dative case of Ihr. Gut. Wie geht es dir? - dir is Dative of du. Same thing. Wie geht es Herrn Schwarzenberg? - den Herrn is Accusative of Herr. Wie geht es Ihren Kollegen? - Ihren and den Kollegen again are Accusative cases. So what case should I us...
common-pile/stackexchange_filtered
Conventions for metadata attributes in netCDF for compound data types NetCDF allows (at least in its version 4 format based on HDF5) to create compound data types (very similar to a C struct). Each component has a label and a type and a position in the compound type. For example, for a data set of statistics, we could ...
common-pile/stackexchange_filtered
delete oldest file in directory I have a downloader running (in perl) that tries to execute a mv system command. The output from the mv mv: cannot move `./PMC5318673/EXCLI-15-758.pdf' to `/directory/EXCLI-15-758.pdf': No space left on device There is space on the drive but I believe that this folder has used up all it...
common-pile/stackexchange_filtered
Vogel's approximation algorithm in javascript I have very little experience with Java and am trying to use my little knowledge to interpret some java source code i found online here for Vogel's approximation algorithm into javascript with no luck. PS: There is also source code for python in the link. worker.js var scop...
common-pile/stackexchange_filtered
simple facebook API on android 4.2.2 not show facebook webview login ![Facebook Loggin][1] I'm using the SimpleFacebook API with succes until i've figured out that when my app is executed on an Android 4.2.2 and i try to log in, instead showing the WebView for loggin, a prompt dialog is showed. What should i do? Than...
common-pile/stackexchange_filtered
Find all values in $\Bbb C$ of $sech^{-1}(i)$ Find all the values in $\Bbb C$ of $sech^{-1}(i)$ My solution is First recall that $sech^{-1}(z)=\log(\frac{1}{z}+\sqrt{(\frac{1}{z^2}-1)})$, Then evaluating at $z=i$ we get that $sech^{-1}(i)=\log(\frac{1}{i}+\sqrt{-2}) = \log(-i+2i)=\log(i)$ Now recall that $\log(i)=Log(...
common-pile/stackexchange_filtered
limiting tags to use with ActsAsTaggableOn I'm currently evaluating whether to use ActsAsTaggableOn or roll my own. I can't have users create tags at random but want to define a list of allowed tags for a project model. Users associated with that project can only select the tags that are allowed for that project (throu...
common-pile/stackexchange_filtered
central path for python modules I am starting to convert a lot of C stuff in python 3. In C I defined a directory called "Toolbox", where i put all my functions i needed in different programs, so called libraries. To use a specific library i had just to add the line #include "/home/User/Toolbox/VectorFunctions.h" into...
common-pile/stackexchange_filtered
how to embed the video in such way that the paragraph will continue on top of it after the video is moved down? Does anyone know how to embed a video (which is floated to the right of the screen) in a such way, that the paragraph will continue on top of it after it is moved down? 1 .video { border-image:url(box.png...
common-pile/stackexchange_filtered
Notifications once product quantity reaches 0 I'm trying to send a notification when the product becomes out of stock. This is the code I have on my Observer: public function detectProductChanges($observer) { $product = $observer->getEvent()->getProduct(); if ($product->hasDataChanges()) { try { ...
common-pile/stackexchange_filtered
Voltage Output Regulation for LTC3310 I am regulating the voltage using the LTC3310 switching regulator. I need to obtain 0.73 V on the output which I chose the right resistors for in theory. However simulation on LTspice is giving other values. Below is the circuit I created on LTspice and its simulation. Any idea why...
common-pile/stackexchange_filtered
socketio server not connecting to ESP8266 I am facing problems while connecting to my SocketIo server through my ESP8266. I have my ESP connected to my Wifi and my Node Server is running on localhost. I have the following code in ESP8266 #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #include <SocketIoClient.h...
common-pile/stackexchange_filtered
D3 topology rendering issue in Chrome The map below shows the town boundaries for a state in the US. In FF and Safari the town boundaries render properly, but in Google Chrome many of the boundary arcs are connected to the wrong nodes. My code follows the excellent tutorial here. The portion of my code that renders the...
common-pile/stackexchange_filtered
XSD and XML Validator i build a application for validating xml file against XSd. if error occours in one node it throws a exception, in that exception i can get only line number and line position only. how to get the maxlength value of that node. MemoryStream xml = new MemoryStream(); string xsd...
common-pile/stackexchange_filtered
Add prerequisites in installshield I am new in installshield I have installshield 2010 and want to build basic msi for vs2010 wpf project with sql server 2008 r2 express I found .prq file for sql server 2008 R2 and copied that file into "C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites" this folder but when...
common-pile/stackexchange_filtered
Resizing a div using CSS for mobile devices Is it possible to have a div resize for mobile devices using just CSS? If so could somebody please show me a working example so I can work out how to do it myself? Thank you And font resizing too, thanks Yes, it is. But how do you want to resize them? From what to what? Wit...
common-pile/stackexchange_filtered
Angular/Rails App Loading Blank CSS Stylesheet In the app I just started I'm having trouble getting my CSS stylesheet to load. I'm used to using the asset pipeline with rails, but I'm trying to use angular for the front end, which has taken everything out of the asset pipeline. I have the css file in public/app/styles...
common-pile/stackexchange_filtered
Jenkins/Groovy: How to pull specific part of a string I have a string that look like: data = ABSIFHIEHFINE -2938 NODFNJN {[somedate]} oiejfoen I need to pull {[somedate]} only with {[]} included. I tried to do data.substring(0, data.indexOf(']}')) to remove the end of the string but it is also removing the symbols tha...
common-pile/stackexchange_filtered
const char* to LPCWSTR in Qt I have faced a problem in Qt with error: cannot convert parameter 1 from 'const char *' to 'LPCWSTR' when calling: OutputDebugString( "wtf!" ); In simple C++ project I've always been setting "Character Set" to "Not Set", but this time it doesn't work, the error keeps displaying all the time...
common-pile/stackexchange_filtered
Semi-infinite heat/diffusion equation with time-dependent B.C. at x=0 I have a problem in which I need to solve the diffusion equation: $$ \frac{\partial u}{\partial t}=\frac{\partial^2 u}{\partial x^2} $$ on a semi-infinite domain from $x=0$ to $x=\infty$. The initial condition and boundary conditions are: $$ u(x,t=0)...
common-pile/stackexchange_filtered
Find the length of the chord joining the points in which the straight line $\frac{x}{a} + \frac{y}{b}= 1$ meets the circle $x^2+y^2=r^2$ Question: Find the length of the chord joining the points in which the straight line $\frac{x}{a} + \frac{y}{b}= 1$ meets the circle $x^2+y^2=r^2$ My initial thoughts were rearran...
common-pile/stackexchange_filtered
PHP fgets() strict !== operator I saw the code below in the PHP Documentation for fgets(): while (($buffer = fgets($handle, 4096)) !== false) { echo $buffer; } My question is: why is there a strict !== ? Why can't you just do: while ( $buffer = fgets($handle, 4096) ) { echo $buffer; } ...
common-pile/stackexchange_filtered
How to hide download file path from user using php? When user want to download file from my web site, user have to click link like below https://www.example.com/download.php?aaa=111&bbb=222 download.php <?PHP session_start(); include("connect.php"); $aaa = mysql_real_escape_string($_GET[aaa]); $bbb = mysql_real_escape_...
common-pile/stackexchange_filtered
Fake IP for geocoder in development environment I want to replace the <IP_ADDRESS> IP that I have in the development environment in order to test manually the geocoder gem. How can I do that ? I tried that, but it doesn't work. I meet the following error : .rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.0.rc1/lib/acti...
common-pile/stackexchange_filtered
Sbt install: You probably access the destination server through a proxy server that is not well configured Getting net.java.dev.jna jna 3.2.3 ... You probably access the destination server through a proxy server that is not well configured. You probably access the destination server through a proxy server that is not w...
common-pile/stackexchange_filtered
When appending to my file, it isnt spacing correctly The issue has been annoying me for a while now, I'm not sure how to explain. There is more info in the code itself, have a look. (info is on the hashtags on lines 22 onward.) myFile = open ("C38test.txt","wt") myFile.write(input("Enter numbers to put in a list, leave...
common-pile/stackexchange_filtered
How to give ubuntu its own bios entry that doesn't just open grub? I would appreciate some help here, lol. Im new to linux, and i need ubuntu to have its own entry for… reasons edit: i want it for use for win to linux. The ubuntu version is 22.0.4? Or 22.04 I'm not sure. What is the point of having an ubuntu BIOS/UEFI...
common-pile/stackexchange_filtered
Where could I find a complete Zen Cart reference for getting item and category info, etc.? I've been searching everywhere and there seems to be very little about Zen Cart... at least anything much deeper than "install and go". I'm skinning (templating) a Zen Cart store, but the design I want doesn't fit in with the cur...
common-pile/stackexchange_filtered
Integral elements with predescribed properties in quaternion orders In the course of doing some calculations I have found myself wanting to answer the following question: Let $D/\mathbb{Q}$ be a quaternion algebra ramified at a prime $p$ and at $\infty$ and let $\mathcal{O}$ be a maximal order. Is it possible to find $...
common-pile/stackexchange_filtered
MySQL stored procedures mature? A good way to go or not for my scenario I'm porting a reporting application from .net / MSSQL to php / MySQL and could use some advice from the MySQL experts out there. I haven't done anything with MySQL for a few years, and when I was last using it stored procedures were brand new and I...
common-pile/stackexchange_filtered
Container (JFrame) to Bitmap Iam trying to convert a JFrame to a Bitmap. I know it is possible to convert it to a png-File, but Iam unable to convert it to a bmp-File. My code: public class ToImage { public static void main(String[] args) throws IOException { JFrame jf = new JFrame(); jf.add(ne...
common-pile/stackexchange_filtered
Is there any concerted action that could be taken to ensure that Monica not be forgotten in the discussion about the new policies? I proposed one action (which I drastically edited in response to comments) that was not favorably received. I am now editing again, in response to further comments. I think I have adequat...
common-pile/stackexchange_filtered
Is it possible to restrict /tmp to 0770 permissions? I would like to prevent 2 non-root users on the same Linux system from sharing files with each other (via their use of /tmp). Is this possible somehow? If I restrict /tmp to 0770 (root:root as the owner:group) and define a user-specific TMPDIR via an export TMPDIR=~/...
common-pile/stackexchange_filtered
reflections look pixelated in render-result: I created a scene with a big reflective object in the front. unfortunately the refelctions seem to have much bigger pixels than the rest of the scene. As a work-around I thought about rendering the reflective area again in a higher resolution but I assume there is a better w...
common-pile/stackexchange_filtered
How can I have my code look through a website's code and pick out a certain item? I would like to have a code that can search through a website's html and find a certain item, then print that item. In my code, I use a file called getPageSource.js, to get the html, and if I wanted, I could print out the whole html. Let ...
common-pile/stackexchange_filtered
Multiply two columns in panda's dataframe and create a new column containing the solution I have a dataframe element in the following format: columns: Index, ISIN, Carbon Footprint, Market Value DataFrame I would like to calculate the product of Carbon footprint and market value for each row and add the result to a n...
common-pile/stackexchange_filtered
Parse CSV and append values to Excel sheet I'm looking for a way to parse a CSV and store values in a bidimensional array if possible. From this array I want to append the values to a sheet in an order I desire. For example I have columns A, B, C in the CSV and I want to place the values in the sheet like this: Sheet ...
common-pile/stackexchange_filtered
Are non-stick frying pans safe? Are non-stick frying pans safe? Are there any studies that explored the subject? Tiny particles of that non-stick coating flake off and are consumed with food, inevitably. I guess it may not be very safe (although you don't have any other frying options if you can't heat oil for health r...
common-pile/stackexchange_filtered
IIS is closing connection on dynamic content There is a strange problem I am facing, if any of you might have seen before. I have freshly install OS (Windows 2003 SP2) and just have configured IIS on it and on the default site,the static content say hello.htm is working fine.But any dynamic content like hello.asp (clas...
common-pile/stackexchange_filtered
Cannot access child value on JValue in Azure Mobile App I recently implemented custom authentication with Azure Mobile App - All the server side works fine and also my web application which is using that mobile app service is working fine. I tested the server-side in details with POSTMAN and with different scenarios, e...
common-pile/stackexchange_filtered
file name pattern matching and identifying I have a automation system which manages files sent by multiple client inside S3. It so happens client sends file on a regular basis. Let's not consider the content of the file for time being as it can be something of new data or append on old data. Typically my files are arr...
common-pile/stackexchange_filtered
How should I find the function $y(x)$ by using the method of Lagrange multipliers? Use the method of Lagrange multipliers to find the function $y(x)$ that makes the functional $S[y]=\int_{1}^{2}x^2y^2dx$ stationary subject to the two constraints $\int_{1}^{2}xydx=1$ and $\int_{1}^{2}x^2ydx=2$. Calculate the stationary ...
common-pile/stackexchange_filtered
How to get the using statements for a class using EnvDTE? I am working on a T4 template which produces partial classes based on existing partial classes. Sometimes the generated code will reference types being used from the existing (non-generated) codebase. The generated code must either fully qualify these types, or...
common-pile/stackexchange_filtered
Convert strings in a list to raw string for re.search I need to check file extension when search over a directory. if using re to do the matching work. those '.' is interpreted as regex '.' my code: extension = ['.c','.h'] path = 'foo\bar\foobar.c' def skipCheck(path): global extension skip = True for i i...
common-pile/stackexchange_filtered
Separating existing web project I have inherited an existing .Net/angularJS project. We have a need moving forward to allow customization per client, while still maintaining synchronization through version control (in this case, git). I'm not a .Net developer--my .Net experience is limited to writing a service a coupl...
common-pile/stackexchange_filtered
update_attributes validation fails though values are correct I have in my model class Account < ActiveRecord::Base validates_length_of :amount, :in 1..255, :on => update, :if => Proc.new { |a| false if a.id == nil;a.amount.blank? } validates_length_of :name, :in 1..255, :on => update, :if => Proc.new { |a| false if ...
common-pile/stackexchange_filtered
Windows 10 - hal.dll / ACPI.sys / ntoskrnl.exe with high cpu (WPR file included) I have a dell inspiron 3421 with windows 10 enterprise, fresh install. With no programs running, I get 40% cpu usage from "System" and "Interrupts" combined. Searching the problem I downloaded the Windows Performance Recorder and the Windo...
common-pile/stackexchange_filtered
Changing Android Implementation of Wifi Direct i recently got interested in the WifiDirect Technology and decided to create an Android app based on it. However, Android does not permit to have a multiple leaders in a P2pgroup, which makes joining groups not applicable. My Question is, can we change this behaviour by ch...
common-pile/stackexchange_filtered
Console Log objects when using console.info.bind(console) I have seen many Angular2+ developers use the console.info.bind(console) method to make a logger service out of the javascript console logger. However, in my implementation of this, all of my javascript objects are logged out as [object object]. How can I tweak ...
common-pile/stackexchange_filtered
Change the background color of the layout programmatically Android Studio 0.4.6 minSdkVersion 10 targetSdkVersion 19 I have an activity called ReadingLamp and a Relativelayout called activity_reading_lamp.xml. I am programmatically trying to set the layout to a different background color. In my onCreate and set the co...
common-pile/stackexchange_filtered
Move nodes to the end of Linked List function Problem I'm a student in C programming and I'm just learning the basics for now. I need to write a function that given a linked list in input, put the nodes containing a multiple of 5 and 3 to the end of the list. I'm trying with a sort of recursive approach, but the progra...
common-pile/stackexchange_filtered
Indentation for javascript based custom code editor I am making a custom code editor for own created language. So far I have achieved syntax highlighting using javascriprt span class. Now I want to add proper spacing or tab space in front of IF ELSE nested loop. I am not very good with javascript. Following is the code...
common-pile/stackexchange_filtered
Linear model coefficient negative in summary but positive in plot I am an R beginner, so sorry if I missing something basic. I did a linear fit with 2 input variables and 1 output. Plots of the output vs each input show a clear positive slope for each. However, the data output shows a negative coefficient for one varia...
common-pile/stackexchange_filtered
How can you evaluate a PropertyPath against an object *without* using a binding? (i.e. what does a binding itself use?) Note: To those who voted to close this. There's a specific reason I added the note. The solutions found here offer up using a binding against a dummy object/property, but as I specifically called ou...
common-pile/stackexchange_filtered
How to calculate the average number of words in turns in conversation I'd like to calculate in a clean fashion the average number of words in a speaking turn in conversation based on the following premises: The average number of syllables in a turn is 11. Obviously, not all words in English conversation are one syllabl...
common-pile/stackexchange_filtered
Initializing a const vector of pointers to array at compile time using templates The following class will not compile under C++11; the loop as it stands can only be executed at runtime and so one gets a "char(*)[i] is a variably-modified type" error from the template class static function call within the loop: #include...
common-pile/stackexchange_filtered
Grammar improvement in a sentence My teacher gave me a worksheet today. I found a sentence saying: The main character and the novelist, who serves as the narrator, share a vital experience. This I found confusing, because the way I would say what the sentence is intended to say is: The main character, also the nov...
common-pile/stackexchange_filtered
Proof: Characterization of Extreme Points I'm having difficulty following a proof in the book Nonlinear Programming Theory and Algorithms, Third Edition by Bazaraa, Sherali, and Shetty on page 68 section 2.6.4. The proof is reproduced below, up to the part of the proof I'm confused about. My question concerns the autho...
common-pile/stackexchange_filtered