text
stringlengths
70
452k
dataset
stringclasses
2 values
python crypto.sign not found, though it's in the module I'm trying to use some google api sample code, and it's not working. Admittedly, I'm green at python, but I've boiled it down to this simple test program: #!/usr/bin/python from OpenSSL import crypto print crypto.sign('key', 'xyzzy', 'sha256') which results in...
common-pile/stackexchange_filtered
Generate a dictionnary in a list So here's my problem, I have a list of characters generated randomly by a program. I would like for each of those characters to have feelings towards each others. Here is my code so far: import random # create characters class CHARACTER: def __init__(self, name, surname, age, sexe...
common-pile/stackexchange_filtered
Multiplication of cardinal numbers Let $a_i$ be a cardinal number for every $i \in\ I$. Let $\{A_i\}$ and $\{A'_i\}$ be families of sets and let $A_i$, $A'_i$ and $a_i$ be equipotent for every $i \in I$. Then show that $\prod_i\ A_i $ is equipotent with $\prod_i\ A'_i $. This seems obviously true but I don't know how ...
common-pile/stackexchange_filtered
React Native - Positioned absolute view is behind other components of the screen guys. So, I'm trying to make a simple Select Dropdown Menu with React Native. I've another code that works as well, but the problem is within the Position absolute. I've tried a lot of times but no success. The problem: The absolute View i...
common-pile/stackexchange_filtered
mongodb: when using $all, the query execution time depends on the order of the input parameters I have a toy mongodb collection with the following structure { "operation" : { "type" : "STACK" }, "constraints" : [{ "partNumbers" : ["part", "part_1"] }] } I want to query the documents wit...
common-pile/stackexchange_filtered
JavaFX How to have the program continue doing something until a button is clicked In my code I want to begin doing something when the user hits "start" and pause if the user hits "pause" and start up again once the user hits "play" The pause button changes text to read play. I'm having issues with stopping the program ...
common-pile/stackexchange_filtered
How to create Botton that run clickevent on Another Botton in java? I have this code public class NewClass { private void btn_NumberONEMouseClicked(java.awt.event.MouseEvent evt) { } private void btn_NumberTOWMouseClicked(java.awt.event.MouseEvent evt) { } I have 2 Bottons ( Btn number One & Btn Number Tow ) I ...
common-pile/stackexchange_filtered
Automatic Oracle partitioning by month in the tablespace corresponding to the month I need to partition my table by month automatically and that each partition is in the tablespace corresponding to the month. I don't need the round robin way. I want each partition to be in its tablespace. Thanks I think because you ha...
common-pile/stackexchange_filtered
Set subdomain as environemt variable in htaccess I want to get the subdomain-string and set an environment variable in the htaccess file to that value: SetEnvIf Host TEST\.mywebsite\.lvh\.me MAGE_RUN_CODE=TEST This is working, but I would need to add such a line for every subdomain. I want this working for every subdo...
common-pile/stackexchange_filtered
Should I use both HtmlEncode and JavaScriptStringEncode if inside HTML <script> tag to create HtmlString from string? My question is very similar to this one, but without the <% %> details. Let's say I have the following code: public static IHtmlString AddSomethingToWindow(string value) { var output = new S...
common-pile/stackexchange_filtered
How to get tooltip text from database from spring jdbc? How can I use JSP, JavaScript/jQuery and spring-jdbc to display tooltip text from database-mysql on mouseover. What did you try? You are going to want to preload the tooltip texts on page load so you don't have to send a request right when the user hovers over t...
common-pile/stackexchange_filtered
Error: unexpected '}' in " in my code.Tried suggestions but I am still stuck I am new to R and trying to run some reports but keep getting the following error for this command. Command as follows: for (id in (df$ID)){ subgroup <- df[df$ID == id,] render("Feedback.rmd", output_dir = filepath, output_file...
common-pile/stackexchange_filtered
What is a time complexity for sets and maps created with a factory methods Set.of() and Map.of()? In Java, when I create a set with Set.of() or a map with Map.of() what is the time complexity of the contains and get operations? Is it O(1)? They are unmodifiable, you cannot add to a Set.of() returned Set. Source ok, ...
common-pile/stackexchange_filtered
Browser history in react-router Why I use browserHistory in my React app, it still serves up a page at localhost:3000, but when it gets deployed, I get an empty page with nothing in the console. When I switch to hashHistory, however, it runs fine on both localhost:3000 and on my site. Why is this happening? The below c...
common-pile/stackexchange_filtered
Copy directory structure only at year end Happy New Year. I have a solution to this, but I can't make it work unless I am in the directory I want to copy. At the end of 2018, I want to copy the directory structure only of various folders named 2018/ into 2019/. cd 2018/ find . -type d -exec mkdir -p ../2019/{} \; And ...
common-pile/stackexchange_filtered
basic algebra inequalities it's been a while since I worked with inequalities. Im trying to figure out the steps taken to go from $p > n^{1/3}$ to $p/n < n^{2/3}$ I am assuming the first step they did, is take the inverse of $p$, so $p > n^{1/3} \Rightarrow p^{-1} < n^{1/3}$ then multiplied both sides by $n$. So $n/p <...
common-pile/stackexchange_filtered
Oracle APEX 5 Dynamic Action upon page load event does not work. What am i doing wrong? The program basically aims at retrieving some fields of a record and processing and displaying that on a textbox of static content region in apex 5 My database: LCD_MONItOR table Interface : PLSQL code that is supposed to execute...
common-pile/stackexchange_filtered
Exportation of Access file table to Excel spreadsheet with VBA I am trying the following code to import data in an active worksheet using VBA, with an Access file as a source. The Access table to import is called "Table01", I have a error message when defining the query (Set daoQueryDef = daoDB.QueryDefs(Text)): "item ...
common-pile/stackexchange_filtered
How to track customer login? I want to track how many times customer logged in. So as output it will be like report. From this to this day X day logged in X times. You can create a separate module with separate database where you need to define a observer, in which you need to write how many times a customer logged in...
common-pile/stackexchange_filtered
Opencsv : Not able to use the CsvToBeanFilter with CsvToBeanBuilder and annoted bean object I am not able to use the CsvToBeanFilter with CsvToBeanBuilder and annoted bean object. It gives "Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: The header row hasn't been read yet." error. Here is my fi...
common-pile/stackexchange_filtered
JAVA desktop application - online reservation technique I am a novice programmer and would like to develop a desktop application on JAVA "Bus Ticket Reservation". Multiple device may access from different places in this system. I have no idea in networking communication programming. Please help me with some topics: wh...
common-pile/stackexchange_filtered
How do you set the specific url path you want to work with in cxf? I am using the annotated methods in CXF to create different functionality through web service calls. For some reason, all of my URL paths come off of {hostname}/services/status/{my_path}. I am using annoted methods like so: @Path("/{type:(?i)index}"...
common-pile/stackexchange_filtered
Proper types for generic onChange handler in react HTML form implemented with react stateful component. I am trying to write some generic on change handler for form elements but don't succeed to get it typed properly. Here is the code: interface SignupState { username: string email: string password: string ...
common-pile/stackexchange_filtered
How does Australia split its legal profession? I just got an interesting edit suggestion to my recent question by someone who just registered (perhaps for the purpose of this edit suggestion). It proposes that "lawyer" is replaced with "junior barrister" because: australia splits its legal profession, so "lawyer" is w...
common-pile/stackexchange_filtered
perfect lens: expression for interface Suppose I want to find a function $(x,z) \mapsto y((x^2+z^2)^{1/2})$ which must represent the interface between two translucent media with different refractive index and which must yield a perfect lens, i.e. a lens without spherical abberation: light rays coming in from $y=-\infty...
common-pile/stackexchange_filtered
sequelize findOne doesn't find a userId when that usedIf is in the db I am using node.js/express/sequelize lo log in a user. I'm testing making the requests in postman to see if it gets anything. I am testing a user and pw that I know are in the db but my findOne query in sequelize returns null even though the tested n...
common-pile/stackexchange_filtered
How to solve PLS-00103 Oracle PLSQL error? I got an error PLS-00103: Encountered the symbol "END" when expecting one of the following: ( begin case declare exit for goto if loop mod null raise return select update while with << continue close current delete fetch lock insert open rollback savepoint set sql execute ...
common-pile/stackexchange_filtered
IndexError: index 10 is out of bounds for axis 0 with size 10 I am numerically setting up a mesh grid for the x-grid and x-vector and also time grid but again I have set up an array for x (position) which should only be between 0 and 20 and t (time) would be from 0 until 1000 thus in order to solve a Heat equation. But...
common-pile/stackexchange_filtered
Can I throw an exception in apex and still log the caught exception? I'm really wrestling with the best error handling strategy. My goal is to handle all exceptions that I can identify, log them to a table in the database, and surface a helpful message about what happened to the user. The problem I am using an auth pro...
common-pile/stackexchange_filtered
Why does adding a product to a formula with update.formula introduce a vector? I'm trying to modify model formulas using update.formula from the base stats package, but adding a new product term does not do what I expected. For example, f <- y~x update.formula(f, .~.*z) I expected this to return: y~x*z But it returne...
common-pile/stackexchange_filtered
ASP WebService high latency I am writing a WebService in .NET Framework 4.7.2. I am experiencing high latency on my requests. When I call a WebMethod using PostMan, it takes almost 2 seconds to even hit the constructor in my web service class. What would cause such high latency? I'm using Debug using IIS Express from V...
common-pile/stackexchange_filtered
How to crawl / index pages behind a login? Is it possible (are there any tools out there) to crawl pages (not content, just url) that's behind a login? We are looking to creating a new site, and need to index each page on the old site in order to capture all the content, content types, map all urls to the new site, etc...
common-pile/stackexchange_filtered
ScrollView not responding with LinearLayout I am using a ScrollView but it does not work. It is not responding. I was wondering if anyone can find something suspicious in my xml file. I do have other xml files using the same Android tool and they are working just fine. Here's my code : <?xml version="1.0" encoding...
common-pile/stackexchange_filtered
Python unable to install sklearn and datasets From this particular website http://scikit-learn.org/stable/tutorial/basic/tutorial.html I was trying to install a PIP called sklearn and datasets, by using ` pip install sklearn` pip install datasets . They have been succesfuuly downloaded but when I try to import...
common-pile/stackexchange_filtered
How to check if gun may shoot again (because animation has stopped playing)? When the user presses the fire button, I set a trigger: _animator.SetTrigger("HG_Shoot"); This trigger causes a "pistol shoot" animation to be played. The gun should only be able to shoot again as soon as the shoot animation has finished. I c...
common-pile/stackexchange_filtered
Faster way to apply a function over a column in pandas data frame I have to apply some multiple functions to a column to get the list of bigrams but it is painfully slow using the apply function the way I'm currently using. Do you have a way to boost the speed? def remove_stop_words(text): cleantext = text.lower() ...
common-pile/stackexchange_filtered
White corner showing on black box with Border-radius I am getting a odd effect (currently in chrome). I have created my own overlay dialog box. which has a semi transparent background sitting on top of my website with a box on top of that. the top of the bar as you can see has a black background. The main part of the b...
common-pile/stackexchange_filtered
Trying to reject Negative values in an ArrayList Class I'm a really green amateur at java. I'm trying to build an ArrayList Class I can call from my main program to add user int values into the arrayList, reject negatives and then return the value. Here's what I have so far: import java.util.ArrayList; import java.util...
common-pile/stackexchange_filtered
What do you call someone who desperately needs (or better said craves) everyone to like them? I have this friend who is in constant search for approval - and not only from his peers, but every single person he meets. He also needs to be the center of attention. Psychologically speaking: insecure. I think the most obv...
common-pile/stackexchange_filtered
How to assign contact Role by code? I have to assign a Role for a Customer? I am creating a Customer, after that, for creating a role, I have already the contact in GlobalAddressBook , I want to add a ROLE for this contact, I don't wanto to create a new record in DirPartyTable. I use this code: DirPartyRelationship::cr...
common-pile/stackexchange_filtered
How do I launch android app from appium though it has permission denied exception I have a scenario to do a mobile automation with the androd app. The issue here is, I am getting Permission denied error when launching through appium. Appium forum suggested that, need to add the android: export= false parameter in their...
common-pile/stackexchange_filtered
Inverse Operator Methods for Differential Equations We have learned in class how to use inverse operator methods to solve ODE's (i.e. with the symbolic $D$). E.g, If I were asked to find a particular solution, $y_p$ to $(D-1)(D-2)[y] = x^{2}e^{x}$, then I would use the formula $\frac{g(x)}{D-a} = e^{ax} \int e^{-ax} g...
common-pile/stackexchange_filtered
List installed sdk package via command line I want to list the installed sdk packages by command lines.(For some reasons I cannot use the GUI) I have done some research and found out several commands to list the available packages on the remote server, but I fail to find any command to list the installed sdk packages y...
common-pile/stackexchange_filtered
Would you put heavy tile floor-to-ceiling over this "blueboard"? We have an upstairs 9x5 bathroom in wooden construction. Ceiling height is 8 feet. Our contractor used a combination of "GoBoard" (concrete-type board) for the shower area, and "blueboard" for the remaining part of the bathroom. We purchased porcelain ti...
common-pile/stackexchange_filtered
How to deploy a Python Azure Function app from a mono-repo? Following on from this question, I've got a mono-repo containing a Flask API and the first of what will be several Azure Function apps. I'm trying to deploy the app to Azure from an Azure DevOps pipeline. How do I deploy the app and tell azure where the entry ...
common-pile/stackexchange_filtered
Lagrange Multipliers with $f\left(x,y\right)=x^2-y^2$ and "constraint" $g\left(x,y\right):=2y-x^2=0$ I am working on a problem from my textbook on Lagrange Multipliers. I feel I have these down now, but I am curious about this specific problem. Let \begin{align} f\left(x,y\right)=x^2-y^2\tag{1},\\ \text{and}\;g\left(x,...
common-pile/stackexchange_filtered
Testing whether mean sample difference between two groups is different in two different samples Suppose in a medical study there are the following students recruited to the study: 300 Japanese males, 500 Japanese females 600 Australian males, 700 Australian females The particular study is about if height difference bet...
common-pile/stackexchange_filtered
Explanation of tac --before -b, --before The separator is attached to the beginning of the record that it precedes in the file. And I can't understand the following output: $ echo -e "Hello\nNew\nWorld\n!" > file $ tac file ! World New Hello $ tac -b file ! World NewHello Why there is no newline between New and ...
common-pile/stackexchange_filtered
Word Riddler - What am I? When we start, I'm an animal inside an animal. I got a name, just gotta build it. Change a letter and double one that I have, roll me around, oh wait, don't take that! Alright let's come back to the big state because I'm not a fan of that! Now that we're here, let's look ahead. I guess you nee...
common-pile/stackexchange_filtered
Clock battery broken on Solaris - how to workaround until I can fix the battery My main Solaris server has an issue with its battery and thus I lose around 20 seconds per day. Currently I am using rdate once in the morning to synchronise the time. Which approach should I use until I can change the battery on a weekend?...
common-pile/stackexchange_filtered
Restsharp return null when Response have location header only, no body i am using RestSharp to consume the CapsuleCRM API. When you POST to create an entity, the API does not return anything in the body of the response, only a location header to the newly created row. Like so: http://developer.capsulecrm.com/v1/writing...
common-pile/stackexchange_filtered
How to find total number of friends groups I have a friendship graph as follows I want to find all the possible group of friends. What is the best algorithm to find these grouping. For example in this graph , possible friendship groups are as follows: 1,2,3,4,12,13,23,123,14,143,124,1234 If I use brute-force algorithm ...
common-pile/stackexchange_filtered
How to change the API Name of the Utility bar of custom application I have a custom application that i created, but I prefixed my custom application as XYZ_MYAPP, which was carried over to my utility bar setting and utility bar was named as XYZ_UTILITYBAR. now i want to change the prefxi to ABC. Changing the api name o...
common-pile/stackexchange_filtered
Constrained optimization where the choice is a function over an interval I would like to solve a constrained optimization problem where the choice is a function over an interval rather than a finite number of variables or a sequence. The problem is given by: $\max_{[x(i)]_{i=0}^1} \int_{i=0}^1 f(x(i))di$ subject to $\i...
common-pile/stackexchange_filtered
Are there some projects that rate RPG source? like software metrics? I just wanted to know if you know of some projects that can help to decide whether the analyzed Source it is good code or bad RPG code. I'm thinking on the terms of Software metric, McCabe Cyclomatic Number and all those things. I know that those...
common-pile/stackexchange_filtered
Not able to remove .xcworkspace even after running pod clean commands I am trying to remove pod dependency for committing in to gitlab I am referring Remove or uninstall library previously added : cocoapods when I do pod clean it is showing Unknown command: clean pod clean I am expecting to remove pod files while ...
common-pile/stackexchange_filtered
Swift - Sample - How to play beep sound before and after recording using AVAudioRecorder? I want to implement similar record button like Whatsapp in iOS using Swift, where when user holds the button down, a beep sound indicates start, after which recording starts and when user releases the button, recording stops and a...
common-pile/stackexchange_filtered
The repetition pattern of a random integer sequence Here is a problem that bothers me, could some one grand me some help? There is a sequence of N random integers, {$X_1,X_2,...,X_N$}. Each $X_i$ is uniformly chosen from a integer set {1,...,M}. For each specific values of the sequence, {$x_1,x_2,...,x_N$}, if there ex...
common-pile/stackexchange_filtered
There is something about bell To his great astonishment, the heavy bell went on from six to seven, and from seven to eight, and regularly up to twelve; then stopped. (A Christmas Carol) What does it mean? I think the clock is going like 6 to 12. Or isn't it? Yes, the bell is going from 6 to 12. The author phrased it...
common-pile/stackexchange_filtered
How would a keylogger bypass Wireshark sniffing? I often see malicious keyloggers being advertised as having anit-wireshark feature. Meaning their data can't be sniffed. Is it possible to do so? How would they do it? My guess is that they just check if Wireshark is running and don't send logs if Wireshark is running. S...
common-pile/stackexchange_filtered
Android Studio: Error "No target device" and the files and packages under project all are marked red In the project view on the left, all the files are marked red. But when I run the project in AVD, it runs normally. Does the red sign have any impact? When I connect my phone to Android Studio, it can't found my device...
common-pile/stackexchange_filtered
What are the drawbacks to duplicating a class in different namespaces? I have a class called SimpleCommand. It is a single file class that implements ICommand in a very simple way (hence the name). I am finding that I am putting it several of my projects. (I just copy the code and add it into the project.) These proj...
common-pile/stackexchange_filtered
How make redirection with web service? I have a web-service which send JSON object as response to log my user. But if I take the URL of the service and I put it on my navigator I see the json object, how I can send the json througth a redirection ? Example : Facebook login -> if we take the action in the form that cal...
common-pile/stackexchange_filtered
Which functions trigger which authorizations for an apps script? When apps scripts run as the user, the user must authorize them to do certain things, depending on the functions used in the script. In the simplest case, there is no authorization, but if you use a function in the script like Session.getActiveUser().getE...
common-pile/stackexchange_filtered
Understanding Operator Norm of Matrices Let $X$ denote the vector space of $n\times n$ complex matrices. To every matrix $A\in X$ one can associate two operator norms: Thinking of $A$ as a map $A\colon \mathbb{C}^n\to \mathbb{C}^n$ or $A\in L(\mathbb{C}^n)$ in short, we define $\|A\|_{L(\mathbb{C}^n)}=\sup_{v\in \math...
common-pile/stackexchange_filtered
Oracle Convert TIMESTAMP with Timezone to DATE I have DB with timezone +04:00 (Europe/Moscow) and need to convert a string in format YYYY-MM-DD"T"HH24:MI:SSTZH:TZM to DATE data type in Oracle 11g. In other words, I have a string 2013-11-08T10:11:31+02:00 and I want to convert it to DATE data type (in local DB timezone ...
common-pile/stackexchange_filtered
How to promote/open app from Google search website results? Background When you search on Google's search engine website on an Android device (via Chrome web browser) something like "how to get to X" (where X is a geographic location, like a city name) , the first item that is shown is a card that allows to navigate to...
common-pile/stackexchange_filtered
Using 9patch background makes text invisible in EditText I use a transparent 9patch image as a background in EditText and after that, no text inside EditText is visible. When I remove background, everything goes OK. Any idea? This is 9patch image: And this is EditText: <EditText android:id="@+id/areaEditText" ...
common-pile/stackexchange_filtered
Is there any way to hide/flatten base types in WCF service data contracts? Consider the following simple example: [DataContract("{0}Base")] public class Base<T> where T : Entity<T> { // Common methods & properties. No WCF exposed properties } [DataContract] public class Employee : Base<Employee> { // WCF expo...
common-pile/stackexchange_filtered
Disabling prepared statements in TypeORM I'd like to disable prepared statements, is there a way to do this in TypeORM configuration?
common-pile/stackexchange_filtered
How can I copy text from a tmux window to the system clipboard? I am using Ubuntu 16.04 with tmux 2.1. Mostly I split the screen in two tmux windows split vertically. Frequently, I need to copy long pieces of text from the tmux window and paste it in the sublime text/browser. I have a feeling that xsel/xclip could be u...
common-pile/stackexchange_filtered
Next JS project deployment on local machine giving this error I have cloned an empty NextJS project from GitHub [only have initial project setup] and then I simply did: npm i npm run dev At localhost:3000, I am continually facing this: It seems something related to next or some other dependency. Does anyone has any i...
common-pile/stackexchange_filtered
Task.Run() blocks startup of .net core application public void Configure(...) { ... Task.Run(() => { var eventBus = app.ApplicationServices.GetRequiredService<IEventBus>(); eventBus.Subscribe<Event1, Event1Handler>("key"); }); } My scenerio covers rabbitMq ...
common-pile/stackexchange_filtered
Azure AD B2C: error for on-premise ad fs as SAML identity provider I was trying to add our on-prem AD FS as SMAL identity provider in azure ad b2c. I followed this document and finished all steps. Then I tried the Run now endpoint (from aad b2c custom policy), and clicked the new IDP button (MY AD FS), I got the error:...
common-pile/stackexchange_filtered
WPF Control: where is "OnLoaded" virtual function? In WinForm's control, there is an OnLoaded virtual function, but this seems to be missing in WPF control. I found this function very useful in some situations. For example, I could do something here after the control is "completely" initialized. In WPF control, there i...
common-pile/stackexchange_filtered
RecyclerView not render cells with 0dp height I made an app with onboarding flow. I have a recyclerview in my MainActivity class and I want to update it when onResume hits(Right after the onboarding flow). So this how the recycler xml looks: <android.support.v7.widget.RecyclerView android:id="@+id/notifyRecycle...
common-pile/stackexchange_filtered
How to create a new(original) struts path? I have tried overriding existing StrutsPortletAction before with their existing struts path with success. However, I can't seem to do the same if I were to try creating my own struts action path. <hook> <custom-jsp-dir>/custom_jsps</custom-jsp-dir> <struts-action> ...
common-pile/stackexchange_filtered
Analytics hasn't updated keywords the last week, what could be the problem? The Keywords section under "Sources" in my GA account hardly updated at all. I KNOW I had more than 2 searches for a keyword, but GA doesn't show these? I have a GA account and I have a tracking code like this on my website: <script type="text/...
common-pile/stackexchange_filtered
Print all the elements on a single given level of a binary tree I am required to print out(visit) the nodes on a single level of a binary tree. I don't see how this can be done but then again I not very skilled with algorithms in general. I know that in Breadth-First traversal you use a queue and that you start by putt...
common-pile/stackexchange_filtered
How do I hypenate correctly without creating gaps in paragraphs? I'm trying to get hyphenation working correctly. <!doctype html> <!-- lset language--> <html lang="nl"> <head> <link href="https://fonts.googleapis.com/css?family=Chivo:400,700,900" rel="stylesheet"> <title>HYPHENATE</title> <style> html { background:...
common-pile/stackexchange_filtered
How to pass list to angular array I am a new to angular... I have an object list that I would like to pass to angular and use the ng-repeat function. Using NameList that was passed from my controller, I would like to display a list of id-names-states. Before, I did the following... <ul> @foreach (var item in Model.Nam...
common-pile/stackexchange_filtered
How to resolve the upper promise in a chained promise in TypeScript I have this method in a provider: get() { var debugOptionUseLocalDB = 0, prodata = [], serverAttempts = 0; return new Promise((resolve, reject) => { if (this.connectionStatus.f() === 'online') { return this....
common-pile/stackexchange_filtered
A generic list of generics I'm trying to store a list of generic objects in a generic list, but I'm having difficulty declaring it. My object looks like: public class Field<T> { public string Name { get; set; } public string Description { get; set; } public T Value { get; set; } /* ... */ } I'...
common-pile/stackexchange_filtered
Scipy Interpolation not good for fitting spot rates? Trying to calculate a simple spot rate of a bond that has 2 cashflows left. Maturity: 2025-05-15 Cashflows: $0.725$ coupon on 15-11-2024, then final on maturity Dirty price is $99.703$ If I calculate YTM the usual way, it ties up: $99.70 = \dfrac{0.725}{1.028061^{0....
common-pile/stackexchange_filtered
PHP Fatal error: Call to a member function getBackend() on a non-object in I am getting an error on my websites home page including a custom attribute from my theme. PHP Fatal error: Call to a member function getBackend() on a non-object in /chroot/home/afgclass/WEBSITEDOMAIN/html/app/code/core/Mage/Eav/Model/En...
common-pile/stackexchange_filtered
drawing commutative diagram I solved the problem I mentioned below, thank you very much for your suggestions. I want to use the diagram to appear in the article. I want to set the size according to the article in this example. I do not know whether I could express myself correctly. Thank you for all suggestions. Could...
common-pile/stackexchange_filtered
How to remove an part of values in R I have got a data frame like this: ID A B 1 x5.11 2,34 2 x5.57 5,36 3 x6,13 0,45 I would like to remove the 'x' of all values of the column A. How might I best accomplish this in R. Thanks! I have found a very easy way: data.frama$A <- gsub("x", "", data.frame$A)
common-pile/stackexchange_filtered
Join multiple table and bind into a single Listview using C# .net I got three tables to join named Books, Borrowers and Transactions. The database scheme is as below: Books(BookID,BookName,ISBN); Borrowers(BorrowerID,BorrowerName,BorrowerLevel); Transactions(TransactionID,BorrowerID,BookID,BorrowDate,ReturnDate); The...
common-pile/stackexchange_filtered
How would one know a charms dependencies? If really really novice user is using Juju and wants to deploy wordpress how would he come to understand that mysql is required to deploy it. If you take another product xyz which isn't as popular as wordpress and has no deployment related articles available through google, the...
common-pile/stackexchange_filtered
Java - too many BigDecimals? For more info, see my other question, here. So anyway, I'm using BigDecimals to represent currency in my application (it deducts a markdown percentage and adds sales tax), but it seems that If I use a BigDecimal for the price, everything needs to be BigDecimals. Is it OK to use a BigDecimal...
common-pile/stackexchange_filtered
db2 rowset cursor parametrization Would there be a way to program a parameter that is not hard coded to this? In place of :SomeValue host variable in this question/snippet: EXEC SQL FETCH NEXT ROWSET FROM C_NJSRD2_cursor_declared_and_opened ...
common-pile/stackexchange_filtered
.NET Double storage in DataTable? .NET looks like it's formatting a double inside a DataRow in the wrong format, so i can't load it in a second moment. If I store "0.000000001", .NET stores it as "1E-09.0", when it should be "1E-09". So Convert.ToDouble("1E-09.0") returns a FormatException. Here it is the code i use: /...
common-pile/stackexchange_filtered
Set z-index to dynamically generated image label to prevent overlapped label hidden from image I am implementing drag and drop, user can drag few images and drop them in a div, and I dynamically append a p tag as label to each image once user click on a button. Currently I meet problem when I have 2 images which is ve...
common-pile/stackexchange_filtered
Ad words conversion without GDPR consent Is it possible to track Google Ad conversions on a marketing site, cookieless and without the GDPR consent? There are articles like such that explain that you can create a hash combining the IP address, user agent, and other data, to use that for tracking instead of cookies: htt...
common-pile/stackexchange_filtered
jar file does not open I created a jar file for my project , but the following warning appeared , and when double click on it , it does not open warning: [options] bootstrap class path not set in conjunction with -source 1.6 1 warning I'm using NetBeans 7.0.1 / Windows 7 The warning is not necessarily the problem...
common-pile/stackexchange_filtered
Cutting one's nails at night I recently asked a friend if I could borrow his nail cutter, but he told me that he would prefer I do it in the morning because it isn't good to cut one's nails at night. When I asked him why, he told me it's some kabbalah stuff but he wasn't sure. Another friend also told me this, but he d...
common-pile/stackexchange_filtered
Spring PropertyPlaceholderConfigurer and passing multiple queries at startup I am working on some existing application and it loads single DB query at server startup . Now I want to pass more (may 3-4 queries) in same code instead one query. i.e.How I can pass multiple queries in spring Here is code- myspring.xml <...
common-pile/stackexchange_filtered
javascript concat() method adds newline randomly I'm writing a JS code that reads the checkboxes in a particular , checks if they're selected, and if yes, appends their value to a string. This is the code that I have: var checkboxArr = document.querySelectorAll('#div_name input[type="checkbox"]'); var str=""; ...
common-pile/stackexchange_filtered
Rollover Roth 401(k) when not eligible for Roth IRA I recently changed jobs and am in the process of rolling over my 401(k) to my standard brokerage account where I have a number of rollover IRAs. This time, however, I have both a 401(k) to Traditional IRA rollover but also $400 in a Roth 401(k), which is new to me. I...
common-pile/stackexchange_filtered
is there some option in curl to set the tcp reset timeout? I have a client and server using http to transmit files, I used tcpdump found that, every time after recieving the http header, the server sends a ack, but then the server receive 2 reset packet, some times recieve reset after successfully receiving a packet c...
common-pile/stackexchange_filtered