text
stringlengths
70
452k
dataset
stringclasses
2 values
How to creat album using facebook graph api? I've this generated URL https://graph.facebook.com/me/albums?access_token=123005381082600|2.AtN22PtKsPB6tN_naD7ZWA__.3600.1298494800-602414132|4I62wGohikRAtIPYTU4jy7__I9A&type=post&name=refacingme is this URL correct for creating an album using FB graph API , and what is t...
common-pile/stackexchange_filtered
c++ weird string size I encountered a weird string size problem. Here is my sample code sampleA std::string getexepath() { char result[ PATH_MAX ]; int found; ssize_t count = readlink( "/proc/self/exe", result, PATH_MAX ); found = std::string(result).find_last_of("/"); std::string pp = std::string(r...
common-pile/stackexchange_filtered
How to pass series of variables in function as array or regardless of their order? I am sorry, that sounds like a noob question. I am trying to do this, maybe my question is not clear. I want to be able to pass something like this: make_thumbnail( array( 'width' => 60, 'height' => 40', 'title' => 'my image' ) ); Now t...
common-pile/stackexchange_filtered
How to know when an AVSpeechUtterance has finished, so as to continue app activity? When an AVSpeechUtterance is speaking, I want to wait until it's finished before doing something else. There is a property of AVSpeechSynthesizer that's seemingly indicative of when speech is occuring: isSpeaking As stupid and simple as...
common-pile/stackexchange_filtered
Android 13 + workprofile + TileService = IllegalArgumentException Currently I found out that our app crashes when tries to requestListeningState of TileService on Android 13 (both compile and targetSdk 33) while running in workProfile. Caused by: java.lang.IllegalArgumentException: User 10 is not the current user. Doe...
common-pile/stackexchange_filtered
LINQ to SQL seems to be slowing application Hi all i seem to be having an issue with LINQ, i am currently maintaining an in house Intranet application at work,When Saving logs it seems to slow down now,upon debugging i have came to realise that every time it saves a log the application pauses at these two section lines...
common-pile/stackexchange_filtered
can somebody explain me what does "passing by value" and "Passing by reference" mean in C#? I am not quiet sure about the concept of "passing by value" and "passing by reference" in c#. I think Passing by value mean : int i = 9; we pass int i into a method like: method(i) Passing by reference means exactly passing...
common-pile/stackexchange_filtered
Switching databases in a MySQL pool: changeUser vs use database I was wondering which approach is better for switching databases... The idea is to get the database name from a subdomain, and make the specific route SQL query use that databases, until a request comes from another subdomain. This switch will happen const...
common-pile/stackexchange_filtered
Sql query to find the percentage difference of views between two given dates I am trying to write a sql query but i find some difficulties.What i want is: Lets suppose we have a table where we store the times that a video have been watched, per day. So for example: day: 14/11/2011, video_id: 3539, timeswatched: 125 a...
common-pile/stackexchange_filtered
Resolving Google Play Store Crashes I have developed my android application using Phonegap platform and deployed into Google Play store. It works fine but there were few crash reposts Is there any way to resolve this issues? Thanks. This is summary of runtime crashes so please update your code and retest it on specif...
common-pile/stackexchange_filtered
Select rows in SQL that do not exist, given the existence of their references Suppose that I have a table rating which is unique to the pair user and client. The schema of rating would hold user_id and client_id along with some other information (like score and comment). At some point I might have the following situati...
common-pile/stackexchange_filtered
Remote access Jupyter notebook from Windows I usually access Jupyter notebook running on Linux from Mac OS X via port forwarding like following: https://coderwall.com/p/ohk6cg/remote-access-to-ipython-notebooks-via-ssh Is it possible to do similar thing from Windows 10 instead of Mac OS? I guess putty or WSL offer one....
common-pile/stackexchange_filtered
VBA IE 11 Outlook How to supress "The webpage you are viewing is trying to close the tab." I have an Outlook VBA script that gets a url from a hyperlink in an email, then opens the url which takes me to a password protected intranet site and downloads a file. The project has been very finicky. It seems to run ok when I...
common-pile/stackexchange_filtered
how to keystore to jks to sign apk I make an app on kodular. now I want to shift my app in the flutter. I have kodular app sha key & Keystore file. now, how can I use them in the flutter. In flutter, I need key hash for Facebook login & jks file. How can I get this? Please help. how can I migrate https://stackoverflow...
common-pile/stackexchange_filtered
Having emacs search for special ligatures I just noticed a whole bunch of typos in a compiled LaTeX document typed in emacs, stemming from me not noticing that when I pasted in some text from elsewhere, I accrued a lot of ligatures like fi instead of fi. I've done a search and replace to fix this particular instance, b...
common-pile/stackexchange_filtered
passing vector to function c++ I have a main.cpp test.h and test.cpp> I am trying to pass my vector through so i can use it in test.cpp but i keep getting errors. //file: main.cpp int main(){ vector <Item *> s; //loading my file and assign s[i]->name and s[i]-address tester(s); } ...
common-pile/stackexchange_filtered
Generating synthetic labeled data (sampling from p(x,y)) I'm working on a toy problem. Consider a dataset that consists of 1-D vectors (waveforms) that contain noise, except for one prominent spike. Denote the waveform by $\vec{x}$, and let the coordinate of the spike be the scalar $y$. So for each waveform $\vec{x}...
common-pile/stackexchange_filtered
Numpy array minmax normalization python I am new to python and here is my code x = np.array(x) mins = np.min(x, axis=0) maxs = np.max(x, axis=0) How can I normalize all values in each column? Now I have min and max values. i is for rows and j is for columns output[i, j] = (x[i,j] − mins[j]) / (maxs[j] - mins[j]) Thi...
common-pile/stackexchange_filtered
How to add a listener to a vue-multiselect after the page has loaded? I need to add a listener to a vue-multiselect, like this (but this does not work): $('.multiselect').change(console.log("multiselect changed")); It must be added in the updated hook. I've tried a lot of things, but because of the nature of vue-multi...
common-pile/stackexchange_filtered
how to get the micro date from the system in php? Is it possible to get the milliseconds from the system with PHP? For example: "2015-10-28 13:02:45" to get this data from the system till I know is possible to use getdate() or time(), but this functions don't give me the milliseconds. How then, I could get from the s...
common-pile/stackexchange_filtered
AttributeError: module 'dataclasses' has no attribute 'is_dataclass' I am trying to create a dynamic model using pydantic but it seems it can't get even the basic example: from pydantic import BaseModel, create_model MyModel = create_model('MyModel', foo="foo") The error is: MyModel = create_model('MyModel', foo="foo"...
common-pile/stackexchange_filtered
Unitary irreducible representation of $\mathfrak{sl}\left( 3, \mathbb{C} \right)$ and the inner product of some weight vectors I came across this question in the book "Lie Groups, Lie Algebra and Representations" by Brian C Hall. Let $\sigma: \mathfrak{sl} \left( 3, \mathbb{C} \right) \rightarrow \mathfrak{gl} \left( ...
common-pile/stackexchange_filtered
AjaxMin not working on Azure site I am using Microsoft's AjaxMin to minify javascript on my website, which is hosted by Azure. I am using a BuildTask to automatically minify javascript at run time. This build task is specified in the .csproj file. The process is working on my local environment, however, it does not wo...
common-pile/stackexchange_filtered
Pandas apply method: get an index label from a pivot_table I am using a well-known dataset as an example. These are the most popular baby names given to a newborn baby in New York City, based on ethnicity. This well-known dataset is available at this address:"https://data.cityofnewyork.us/api/views/25th-nujf/rows.csv" ...
common-pile/stackexchange_filtered
How do I deal with Seebeck Effect while measuring resistance with 4-lead ohmmeter? I'm trying to measure the DC resistance of an inductor I made out of AWG 11 wire. From my calculations its impedance should be around 0.0012 ohm, and the ohmmeter measured precisely 0.0012 ohm. But that at ambient temperature (which was ...
common-pile/stackexchange_filtered
PrintDlg Function (64-bit) - Works in Debugger, Crashes when Not I am porting some Win32 code to Win64. The old code uses PrintDlg(), and runs fine on all versions of Windows (32 and 64 bit). The new code does not! If I set up an all-zeroes PRINTDLG structure in my Win64 application, placing "120" in the lStructSize fi...
common-pile/stackexchange_filtered
Numbered Notation: Song in G for a Dizi in D When you close the three holes next to the blowing hole, you get the key of the Dizi, which is D in my case as well as in this video, and if I close all the holes, apparently I get an A. In this case, D is "1" in numbered notation and A is 5 with a dot under it, the lowest n...
common-pile/stackexchange_filtered
Dnt allow user to access document from url I want the log in user can access the PDF file and anonymous user can not access the file from browser like www.domain.com/pdf/name.pdf My pdf file is getting corrupted.It is gets failed when clicked for download. I have created pdf folder in that kept my all pdf. I have html ...
common-pile/stackexchange_filtered
Win32 font rendering utility and previewer I'm looking for a free tool I used several years ago (late 2000's). It was a windows application aimed at Win32 developers. It helped in previewing the results of font rendering based on the super complicated win32 font calls (LOGFONT, CreateFont(), etc). I recall it could ou...
common-pile/stackexchange_filtered
Show that the sequence $(x_n)=c^{\frac{1}{n}}$ is increasing for $0 < c < 1$. Show that the sequence $(x_n)=c^{\frac{1}{n}}$ is increasing for $0 < c < 1$. I am trying to do this using induction. We see for the base case that $x_1 = c$ and $x_2 = c^{0.5}$, so clearly $x_1 < x_2$. For the induction step, we assume $x_n ...
common-pile/stackexchange_filtered
TFS Moving branch to newly created folder We are currently restructuring our source control. I moved a branch and now all history seems to have been removed. I would like to rollback the branch to a previous changeset. Is there a way to still be able to rollback a branch that has been moved? I'm a newbie to TFS adminis...
common-pile/stackexchange_filtered
Weird summation in statistics book I was reading "Applied Probability and Statistical Methods" by Canavos and I came across this demonstration: ∑k=1N (xk-x̄)xk divided by ∑k=1N (xk-x̄)^2 is equal to ∑k=1N (xk-x̄)(xk-x̄) divided by ∑k=1N (xk-x̄)^2, which all equals to one. It is the numerator which stumps me, as an x̄ i...
common-pile/stackexchange_filtered
Neyman-Pearson Lemma, critical region So, a bit of context first, I was studying how to construct the most powerful test using the Nyman-Pearson Lemma. The example went like this: given the normal distribution with known variance $\sigma^2$ and unknown mean $\mu$ a simple null hypothesis $H_0:\mu=\mu_0$ is tested again...
common-pile/stackexchange_filtered
Angular 4 dynamic plugin component from lazy loaded module I have an angular 4 system that allows plugin modules (loaded with systemjs). They are loaded and compiled "manually", creating a NgModuleFactory for each module. This is done when the application starts, because I need to build up a main menu, and a settings c...
common-pile/stackexchange_filtered
Magento 1.9.3 Customer Login Internal Server Error After some reports of customers, I found a strange behavior. These customers receive an internal server error page while accessing their account. I found that these errors in the server's errror_log: End of script output before headers: index.php, referer: https://[my-...
common-pile/stackexchange_filtered
Method or application for updating files and/or applications on many remote computers? I have several Windows 10 and Windows 7 machines that are operating remotely. Sometimes, certain files or executables need to be updated. This would involve the following. Close running program. Delete its current executable Copy th...
common-pile/stackexchange_filtered
Call function with variable number of arguments I've a function int send_email(const char * to, const char * subject, const char * body, size_t nbr_attachments, ...); it all works fine. I can use it for sending an email with no attachments: <EMAIL_ADDRESS>"TEST", "TESTBODY", 0, NULL); Or with one attachment: <EMAIL_AD...
common-pile/stackexchange_filtered
OpenGL Program with multiple windows I'm looking for an efficient way to use two separate windows for one OpenGL program in C++. It is a drawing program and like Photoshop or Illustrator I would like to have a tool bar that is a separate window that can be moved around but does not get sent behind the composition windo...
common-pile/stackexchange_filtered
Two ways to http request give another results one by JAVA code and second by copy element from website Two ways to http request give another results one by JAVA code and second by copy element from website. I am try to match them to same result! When I use Java Code private static boolean isValid(URL url, HttpURLCo...
common-pile/stackexchange_filtered
Appending Data to List or any other collection Dynamically in scala I am new to scala. Can we Add/Append data into List or any other Collection Dynamically in scala. I mean can we add data in List or any collection using foreach (or any other loop). I am trying to do something like below: var propertyData = sc.textFile...
common-pile/stackexchange_filtered
Prove a path between ordered pairs with rational and irrational numbers Let S be the collection of ordered pairs (x, y) in [0, 1] × [0, 1] such that either x or y is irrational. Prove or disprove that for any two distinct ordered pairs in S, we can find a path in S connecting the two points. enter image description her...
common-pile/stackexchange_filtered
Regex pattern to match all images with replacement holding self PHP function I have a preg_replace function to find all images and wrap them inside <figure> tag with different class, which depends on image source: $pattern = '"/<img[^>]*src="([^"]+)"[^>]*alt="([^"]+)"[^>]*>\i"e'; $replacement = '"<figure class=\"" . ch...
common-pile/stackexchange_filtered
matched cohort with 1:n pairs - correct stratified logistic model In this hypothetical example we have access to a database. In it cases are people with children and controls are those without kids. We want to measure the association between having children and Lung cancer. We match each case to 'n' controls based on ...
common-pile/stackexchange_filtered
Are the second halves of the first two seasons of A Certain Scientific Railgun canonical? The second halves of the first two seasons of A Certain Scientific Railgun seem to contain content not seen in the manga. Are they considered filler and thus not canonical to the overall plot of the Raildex Universe? In particular...
common-pile/stackexchange_filtered
How would you end the chain in jquery, then execute your function, but all while inside a chain function I know this is a weird question in words, so basically I am saying the following. I have this: $("#dialog-areyousuremodal").dialog({ resizable: false, height: 120, modal: true, buttons: { "Ye...
common-pile/stackexchange_filtered
May a bipartite graph have self-loops? By definition I think no, but I'm not so sure. Thanks in advance Say that the graph with vertices $V$ is bipartite, hence $V=A \cup B$ and $A \cap B = \emptyset$ where all edges connect one vertex in $A$ with one in $B$. Assume there is an element with a "self-loop": Pick one of ...
common-pile/stackexchange_filtered
update textview from BroadcastReceiver running in the background initiated in manifest which starts when internet network is available I am using BroadcastReceiver to sync data and it should update textview if that activity is opened.I have created a class which determines if the activity is opened or closed.But,it sti...
common-pile/stackexchange_filtered
Header & Footer template with positive SEO implications & no PHP We would like to create HTML pages on our ecommerce website that is hosted by Network Solutions. Each of these pages will need to have our header/menu and footer that will change from time to time. Unfortunately our platform doesn't have PHP installed on ...
common-pile/stackexchange_filtered
magento 2 UI Component form Character Limit Validation How to create custom Validation for UI Component Form? I want to create Validation for maximum character, not for max-word which is already available in Magento 2. if any body knows please share the procedure.Thanks Can you please share your code where you want t...
common-pile/stackexchange_filtered
Help required in architecting an application The proposed architecture of our new application is as given below Presentation Layer This will be an ASP.NET MVC application running on mobile Services Layer This will be a WCF Services . The Presentation layer communicates with the services using custom DTO. Business L...
common-pile/stackexchange_filtered
Mocking TimelineMax and TweenMax modules in Jest I'm trying to mock my import with animations, but I keep getting ● Test suite failed to run C:\work\portfolio\node_modules\gsap\TweenMax.js:13 import TweenLite, { TweenPlugin, Ease, Power0, Power1, Power2, Power3, Power4, Linear } from "./TweenLite.js"; ...
common-pile/stackexchange_filtered
How do we deal with the remaining open game-rec questions? We currently lack the "shopping recommendation" close reason proposed by badp in what is now the accepted site policy for dealing with game-recs. In light of this, should we leave the game-rec questions that are still open as such until we get this close reason...
common-pile/stackexchange_filtered
Dynamic images slider for PhoneGap? Is there any PhoneGap slider to slide dynamically loaded images? A few slider like SlideJS, iDangerous Slider, Jquery mobile slider function properly until the images are static but stop functioning when linked to dynamic source. Codesnippets would be great! Working Imageslider i us...
common-pile/stackexchange_filtered
Onto homomorphism from G to Z21 Let $G$ be a group such that a surjective homomorphism from $G$ to $\mathbb{Z}/21\mathbb{Z}$ exists. Prove that $G$ contains normal subgroups of index 3 and 7 I have seen a proof using the Correspondence theorem. However, we have no learned this theorem and cannot use it. I understand th...
common-pile/stackexchange_filtered
Linker error in Codelite with MinGW-w64 I'm trying to use MinGW-W64 instead of MinGW in Codelite. When I compile simple "hello, world" project it's all right. But when I try to link some libraries, I get a strange linker error. Project with exactly same settings compiles by MinGW with any problems. There are build outp...
common-pile/stackexchange_filtered
Iron Python script in spotfire web player I have a html page which i display a spotfire report in using the web player. I would like to have the option of refreshing the data by pressing a button i create, and i couldnt find a way to do that using the web player. I know there is a way to do this using script in iron py...
common-pile/stackexchange_filtered
Advice on linking DUNS to GVKEY I'm working with US Government procurement contracts and I'm like to merge the contract data with stock data from CRSP and firm fundamentals from Compustat. The contract data uses the Dun & Bradstreet D-U-N-S number, I'd like to know if anyone has any experience linking the the D-U-N-S ...
common-pile/stackexchange_filtered
Powerapps: button selection on a previous screen prefill a field in a form I am attempting to build an app with Microsoft powerapps that will be writing/reading data to/from an excel sheet. I have created a form in powerapps from a table in the excel sheet. I am curious to know if anyone knows how to fill the data in a...
common-pile/stackexchange_filtered
Delphi BDE with connection to Oracle access violation I'm searching for a bug in a big legacy product. The end user only reports a program crash (no error messages). When I start the program with attached debugger I get this: Im Projekt XXXXX.exe ist eine Exception der Klasse $C0000005 mit der Meldung 'access violation...
common-pile/stackexchange_filtered
position_dodge2 with facet_wrap I'm trying create a function to generalized plotting interaction ratios. I just have a couple aesthetic questions. If you look between the facets in the plot below, you'll notice that the columns for Pclass aren't aligned properly. How do you align them? I know that position_dodge2(pres...
common-pile/stackexchange_filtered
Bootstrap website banner distortion on window resize Using a bootstrap website creator, jetstrap, I created a simple website with a banner image stretching the size of the window. The problem is the image stretched has a logo on it, and on resizing the window the image gets distorted and streched. I found this thread w...
common-pile/stackexchange_filtered
entity to linq where clause I am using entity to linq Please find my linq query - Using lcntxRT60Entities As New RT60Entities(EntityConnection) Dim lstrDocumentWhereClause As String lstrDocumentWhereClause = astrDocumentWhereClause & " AND it.TransactionType = " + aintTransactionType.ToStri...
common-pile/stackexchange_filtered
How can I connect my flutter project to postgresql database? (ubuntu 20.04) I tried using flutter dependency "postgres" but my connection is refused. I also don't know how to start my postgresql server on ubuntu or call it using a restapi. What have you tried so far? You should also know that Postgres is a database an...
common-pile/stackexchange_filtered
Logic programming with multiple fact databases I have to find a logically consistent subset of multiple fact sets (databases). Is there a logic programming language with built-in facilities to do this? If not, are there logic programming languages allowing to operate on multiple fact databases at the same time? For exa...
common-pile/stackexchange_filtered
Remove list elements at given indices I have a list which contains some items of type string. List<string> lstOriginal; I have another list which contains idices which should be removed from first list. List<int> lstIndices; I'd tried to do the job with RemoveAt() method , foreach(int indice in lstIndices) { l...
common-pile/stackexchange_filtered
How to reload and restart quickly in SLIME in development I started using emacs and slime to develop some little service. I have found a way to reload the code after changes but I want this a lot more convenient and faster. This is how I doo it now: 1) start emacs, start slime, then in slime: 2) (load "init.lisp") ; l...
common-pile/stackexchange_filtered
Problem: "npm ERR! cb() never called! npm ERR! not ok code 0" when installing etherpad on an Ubuntu 12.04.3: adduser --system --home=/var/www/etherpad --group etherpad apt-get install gzip git-core curl python libssl-dev build-essential abiword python-software-properties add-apt-repository ppa:chris-lea/node.js apt-...
common-pile/stackexchange_filtered
Preserving session in Java with sendredirect I am creating a Login Application in JAVA.I am making the presentation in JSP and all the logic (Database connectivity) in Servlet [this is not a right approach I know that]. I check the username Password in Servlet and then create a session variable. and add the session lik...
common-pile/stackexchange_filtered
Bessel functions The definition of the normalized Bessel functions is commonly understood to be: $$j_{\nu}(x)=\Gamma(\nu+1)\sum_{n=0}^{\infty}\frac{(-1)^{n}}{n!\Gamma(n+\nu+1)}(\frac{x}{2})^{2n}.$$ The question is why we have to choose $\nu>-\frac{1}{2}$. I don't know about the definition... The Bessel function has a...
common-pile/stackexchange_filtered
$\sqrt{x + \sqrt {x + \sqrt{ x + \cdots } } } = 5$ then find the value of $x$. I am trying to solve this problem but nothing is thought on my mind. Please any one help me to solve this problem $\sqrt{x + \sqrt {x + \sqrt{ x + \cdots } } } = 5$ then find the value of $x$. look here: http://math.stackexchange.com/q/6380...
common-pile/stackexchange_filtered
Canvas.TextOut Seems to allow transparent trailing white space I am in the process of relearning Delphi as have not programmed much of anything in years and have forgotten more than I ever learned! I have started with a simple file search routine and placing the found files in a multi-column listbox. The component I fo...
common-pile/stackexchange_filtered
How to use regex replace in Postgres function? I have postgres function in which i am appending values in query such that i have, DECLARE clause text = ''; after appending i have some thing like, clause = "and name='john' and age='24' and location ='New York';" I append above in where clause of the query i alread...
common-pile/stackexchange_filtered
Convert XACRO to URDF on macOS? Hello, I'm trying to use ur10_robot.urdf.xacro from this repository in ikpy which requires a URDF file to simulate the Inverse Kinematics. To my understanding XACRO is an XML based markup language containing macros which are expanded into a URDF file. Since I am using macOS and don't ha...
common-pile/stackexchange_filtered
Image upload as multi part to server folder is not working in android Uploading image to server folder from android gallery is not working. It does not any exception and the image is not uploaded to the folder. Googled all the sample examples and tried many solutions but nothing works for me. package net.simplifiedcod...
common-pile/stackexchange_filtered
How to Customize ListView Seletion in Android I want to customize the selection effect of the items in the listView, but I don't know the way. Will be useful if I should change the selection item background with a different png when the user select the item. Any suggestion? Do you want icons in listview? Your question...
common-pile/stackexchange_filtered
Reference the line number in which a (new) word occurred for the first time I would like to cross-reference the line number in which a word occurred for the first time in some texts. For example, a text is given: LESSON I In the traffic court of a large mid-western city, a young lady was brought before the judge to ans...
common-pile/stackexchange_filtered
ngRepeat doesn't refresh rendered value I'm having an issue with ngRepeat : I want to display a list of students in two different ways. In the first one they are filtered by group, and in the second they are not filtered. The whole display being quite complex, I use a ngInclude with a template to display each student. ...
common-pile/stackexchange_filtered
Some objects set by @Autowired always null, others are OK I have been working on my first Spring project, and I've come across an annoying problem. I have a class called 'UsernameService' which is configured as a bean in the dispatcher-servlet.xml: <bean id="usernameService" class="service.UsernameService" scope="sessi...
common-pile/stackexchange_filtered
Drop multiple tables at once in ClickHouse I'm trying to drop a few tables at once on a ClickHouse cluster. As example: DROP TABLE IF EXISTS default.log_null, default.null_view I get the error: Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 39 (','): , default.null_view. Expected one of: N...
common-pile/stackexchange_filtered
Can I re-create node_modules from package-lock.json? I cloned a repository from github which has a package-lock.json (but no package.json). Then in a git bash terminal I go to the directory and run npm install but I just get a message saying there is no package.json and then everything in package-lock.json gets deleted...
common-pile/stackexchange_filtered
How to prevent re-rendering of react state with firebase storage I'm using firebase storage to get image files. Even if I try to get one image file, I still get at least 2 re-renders. How can I only have it render once? Any help is greatly appreciated. import React, {useState, useEffect} from 'react' import {ref, getSt...
common-pile/stackexchange_filtered
How to subtract using datetime in py I have a dataset and would like to create a new column that looks 90 days back from the start_Date column. I have tried two ways and both cause a typeError. df['prior_date'] = df['start_Date'] - 90 And I tried df['prior'] = (df['start_Date')] - dt(days = 90)).strftime('%Y-%m-%D') An...
common-pile/stackexchange_filtered
Promo Code Value Question about the variable "promo_code_value". When rendered in the template, it gives 4 decimal points instead of none. So for example, I want to indicate that there's a 25% discount, so in the template I write: {promo_code_value}% But instead of "25%", it renders "25.0000%". Is there some way to c...
common-pile/stackexchange_filtered
using SQL to directly delete CoreData data from my DB There are times when i will need to delete say 10,000 rows from my CoreData data store and looping through those records individually each time takes way too long. Is there a way to use SQL to directly delete from my data store quickly? can you post the code you ...
common-pile/stackexchange_filtered
Using ing form after "to" I don't understand why second being is progressive. He went from being a poor student to being an outstanding one. Can you explain the grammar rule that you think makes the second "being" wrong? I think you may be confusing the preposition "to" used here with the difference between gerunds...
common-pile/stackexchange_filtered
Delete key does not work in Date Item (Smart GWT) We had an issue with Date Item (using masking) in Smart GWT, where i am not able to delete the date item selected. When I tried to delete the selected value (using delete button) in Date Item component only the first digit gets deleted and the cursor does not move to th...
common-pile/stackexchange_filtered
Disable link generation to translation of pages which have no translation - TYPO3 9 I have a website where only a part should be translated (into english - german is default). But on this page also links to pages with only a default language version are displayed in menus. These links to non translated pages should not...
common-pile/stackexchange_filtered
How to cause macro expansion before concatenation? #define JNI_DECLARE( classname, methodname ) \ classname ## methodname( JNI* env ) #define JAVA_CLASS Java_com_example void JNI_DECLARE( JAVA_CLASS, open ) {} This expands to: void JAVA_CLASS_open( JNI* env ) {} How do I get: void Java_com_example_open( JNI* ...
common-pile/stackexchange_filtered
find an IP address by MAC address on LAN I would like to look up a MAC address on my ethernet and find the IP of that machine. What command should I issue using which app? edit: i've tried: fping -g <IP_ADDRESS>/24 | arp -a | grep 4C:12:10:11:35:B4 but that does not work (i checked with my own MAC whether it can find o...
common-pile/stackexchange_filtered
A: This circuit isn't working right - I'm getting huge reflections when I connect the 75-ohm antenna to our 50-ohm amplifier. The standing wave pattern is creating dead zones. B: Wait, are you trying for maximum power transfer or minimum reflections? Because those need different matching approaches. For max power, you...
sci-datasets/scilogues
PyTorch not working when using Pytorch with cuda 11.1: Dataloader So, I'm running this deep neural network. And normally, when i train it with the cpu using the pytorch library WITHOUT cuda, it runs fine. However, I noticed when I installed pytorch+cuda 11.1, whenever I try to enumerate over the Dataloader, the followi...
common-pile/stackexchange_filtered
Windows 7 guest in hyper-v cant start after setup I have a windows 10 Laptop and I'm trying to install Windows 7 guest OS in hyper-V. The setup goes fine (I even got past date/password/updates configuration page). After the setup , it's not booting up, it's stuck with a blank screen and a blinking cursor. if I attach ...
common-pile/stackexchange_filtered
PHP get the user agent request URL Background I have a little site that has been setup for our marketing team, it is configured on the same server as our core site. The site has been setup as marketing.lan in Apache. We have configured things so that any request made to our core site via the /marketing url load the mar...
common-pile/stackexchange_filtered
How to push date in the same date I want to loop and push date in 1 date example 04-10-2016 1 04-10-2016 1 04-10-2016 1 04-10-2016 1 04-10-2016 1 CAn you explain little more Please take a few minutes to review [ask]. There is no way for anyone to understand your issue or help ...
common-pile/stackexchange_filtered
Add a pipe separator after items in an unordered list unless that item is the last on a line Is it possible to style this html ... <ul> <li>Dogs</li> <li>Cats</li> <li>Lions</li> <li>Tigers</li> <li>Zebras</li> <li>Giraffes</li> <li>Bears</li> <li>Hippopotamuses</li> <li>Antelopes</l...
common-pile/stackexchange_filtered
Modifying a reactive value should trigger an observe chunk I'm modifying a reactive value inside an observeEvent. I have another observe chunk which calls this reactive value. I expect the observe chunk to be triggered at the end of the observeEvent chunk given this reactive value dependency but that seems to not be ha...
common-pile/stackexchange_filtered
Classical Mechanics - Equation of motion, Lagrangian, Newtons 2nd Law I really don't even know where to start with this question. A particle with charge $q$ moving in an electromagnetic field is described by the Lagrangian $$L=\frac{m\mathrm v^2}2+\frac qc\mathrm v\cdot\mathrm A(\mathrm r,t)-q\phi(\mathrm r,t)$$ The e...
common-pile/stackexchange_filtered
how can I change marker options without using marker = new google.maps.Marker I have found the function below which creates only one marker - which is what I want. But how do I change the marker options e.g. html - without creating a new one? i.e. the code below will move an existing marker using setPosition but what i...
common-pile/stackexchange_filtered
How do I change property of class listing in scripting dictionary? I saw the property I want to modify in an application scripting dictionary. It is located in a class, but I can’t find a way to modify it. Is there a way to modify it? I tried the following methods, but I got an error: tell application "Capture One 21"...
common-pile/stackexchange_filtered
'Reply' & 'Reply to All' button missing from email message feed when using custom emailpublisher Hi i have a very simple email publisher to replace the original one :-> <apex:page standardController="Case" > <apex:emailPublisher entityId="{!case.id}" fromVisibility="selectable" subjectVisibility="re...
common-pile/stackexchange_filtered