text
stringlengths
70
452k
dataset
stringclasses
2 values
Unable to submit form using JQuery So the scenario is on my page I have a form along with a countdown timer. If the countdown timer reaches 0:00 I have a statement which activates and is supposed to submit the form as it stands. here is that statement: if (Todays_Date >= Target_Date) { clearTimeout(timeoutID); ...
common-pile/stackexchange_filtered
How to get Linux kernel modules list from user space C code? I want to get the list of kernel modules by C code, and later on print their version. From a script this is simple: cat /proc/modules lsmod and later on, run for all drivers found: modinfo driver_name From C code, I can open /proc/modules, and analyze the d...
common-pile/stackexchange_filtered
TypeError parsing JSON obj from urllib ipython I am using an API to request data from a website. The data can be found here and pasted into a JSON Viewer. My code along with the error that it is returning are below. I am guessing that this is a quick fix, partially reflecting the fact that this is my first time using u...
common-pile/stackexchange_filtered
Create a new object extending a trait and using early definition syntax How to create an objectthat extends a trait and uses early definition syntax? Let's say we have two traits: trait Trait { val value : String } trait Simple Let's say we have also a simple class: class Class We can create a new object of type C...
common-pile/stackexchange_filtered
What under \subsubsection? In a \subsubsection, I'm describing a software component, and I have to describe the classes it is composed of. I'm thinking to add some "titles" like "Class 1", "Class 2", but what's the best way to do this? The simple way I know is to put a \noindent \textbf{myTitle}, is there a smarter way...
common-pile/stackexchange_filtered
How to tell if an enum property has been set? C# I have a class with an enum property like so: public class Foo { public Color ColorType {get;set;} } public enum Color { Red, Green, } Now this class can be initialized like so: var foo = new Foo(); without the ColorType property ever being set. Now, I'm ...
common-pile/stackexchange_filtered
reverse geocode a set of co-ordinates I have sets of co-ordinates in the following format (-33.9,18.6) How do I go about getting the name of the nearest town or Country for those co-ords? I'm guessing it will involve Javascript, but am happy to also use PHP if appropriate? EDIT: Am trying the Google Reverse Geocoder...
common-pile/stackexchange_filtered
Why can a convert say mikra bikkurim but not viduy maaser? Maaser Sheini 5:14 says that a convert can't say viduy maaser because he doesn't inherit a portion of the Land and can't say ื•ืืช ื”ืื“ืžื” ืืฉืจ ื ืชืช ืœื ื•. We follow this mishnah. Bikkurim 1:4 says that a convert can't say mikra bikkurim because he can't say ืืฉืจ ื ืฉื‘ืข ...
common-pile/stackexchange_filtered
Terminating the readLine() function when encountered with a whitespace So, I have started using Kotlin to solve some basic problems at websites like CodeChef and Codeforces where I got caught up on a problem. The question requires us to input 2 integer variables, say x and y, followed by y-spaced integers, say m1, m2, ...
common-pile/stackexchange_filtered
How to connect asp-validation-for to my new error I have made new error message in my controller like that if (!viewModel.Appointment.isConfirmed) ; { ModelState.AddModelError("", "You haven't confirmed in checkbox!"); } How can I connect span with asp-validation-for only to this er...
common-pile/stackexchange_filtered
input_dim for Dense Layer after LSTM layers Keras Do I need to specify the input_dim (which means the number of features in one row/sample) after adding the first LSTM layer for the later Dense layers? I was trying to create an architecture with 2 LSTM layers and 1 Feed-forwarding layer with 200 cells and 1 Feed-forwa...
common-pile/stackexchange_filtered
Cannot compare enums in jasmine after angular migration from 6 to 7 I am in the process of migrating an Angular application from v6 to v7. All is well except any test that compares enums. When I run my tests, I get many errors regarding my enums like so ERROR in src/.../some-thing.component.spec.ts: error TS2345: Argum...
common-pile/stackexchange_filtered
A problem on counting Consider a number system which does not have the number 7 but has all other numbers. So the numbers are $1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,18,...$. I want to find what is the $10^k$ number, where $k$ is an integer. For example $10^{th}$ number is $11$. My try: I found that $10^k$ number is $11^...
common-pile/stackexchange_filtered
Is it possible to rename multiple columns of a CSV to empty columns name when using miller? I have CSV files with headers like this MyFirstCol,MySecondCol,MyThirdCol,.....MyLastRealCol,ppp,qqq,rrr The columns ppp, qqq, etc I want to set to columns with empty headers. (I do not want to delete them!) So I want a resulti...
common-pile/stackexchange_filtered
Bash: How to control iteration flow/loops? For going over some recovered data, I am working on a script that recursively goes through folders & files and finally runs file on them, to check if they are likely fully recovered from a certain backup or not. (recovered files play, and are identified as mp3 or other audio, ...
common-pile/stackexchange_filtered
How to decorate class that relies on a runtime value for creation I'm brand new to using Simple Injector although I have been using Ninject for a long time, so I am comfortable with DI in general. One thing that attracted me to want to use Simple Injector was the ease of use of Decorators. I have been able to successf...
common-pile/stackexchange_filtered
Find the number of inequivalent two-dimensional complex representations of the group $Z_4$ Find the number of inequivalent two-dimensional complex representations of the group $Z_4$ Any hints will be greatly appreciated. Thank you all Do you know what the irreducible representations of $\mathbb{Z}_4$ are? Hint: Using...
common-pile/stackexchange_filtered
Amazon MWS SubmitFeed Updating stock quantity I'm having problems with a stock quantity update feed using Amazon MWS. My Feed is submitted and processed, but I get errors, however if I submit the same XML via the scratchpad, the inventory updates are accepted and processed. (merchant id starred out deliberately) Submis...
common-pile/stackexchange_filtered
How to absolute position after dynamical size block? I have this blocks, located in the order A, B, C: Blocks "A" and "C" position: absolute. I need display block "C" after block "A", but the height of the block "A" may very, and I can not use the property top. Here is an example of code: .wrapper { position: relati...
common-pile/stackexchange_filtered
Formulas involving traces of products of singular hermitian positive semidefinite $2$ by $2$ matrices While working on the Atiyah problem on configurations of points, I came across formulas involving products of traces of products of singular hermitian positive semidefinite $2$ by $2$ matrices. To illustrate the type o...
common-pile/stackexchange_filtered
Why is Ubuntu reporting a slightly different size for my Virtualbox disk? I'm installing Ubuntu in a VM using VirtualBox; I selected the dynamic expansion option (as opposed to fixed) in VirtualBox and set the limit to 85GB. Then, when I was installing Ubuntu, the virtual disk I created for it states it is 91.3GB. Did ...
common-pile/stackexchange_filtered
replace " using String.replace() with regex I have following string "content \" content <tag attr1=\"val1\" attr2=\"val2\">content \" content</tag> content \" content" I want to replace all " characters inside tags definitions to ' character with use String.replace() function. " characters inside tag content must rema...
common-pile/stackexchange_filtered
Checking a value before assigning it to variable Throughout my code, I find myself testing if the output of a function is undefined or blank before i use the output. In this case, getQuery checks if the property of an object is either blank or if the object key is not set at all. In both cases, the output can be ignore...
common-pile/stackexchange_filtered
Displaying existing content in Rails 5.2 with ActionText I have upgraded my app to rails 5.2 and inclined to use ActionText since old trix-editor/gem is no longer working. Now new posts display their "descriptions" but how can I display my old posts' DESCRIPTIONS with the new installed ActionText? post.rb has_rich_text...
common-pile/stackexchange_filtered
Console component tries to open in subtab when primaryTabId is null I am working on a visualforce console footer component that displays solutions. If a tab is open, the solution opens as a subtab. If no primary tab is open, the new page still tries to open in a subtab. Iแธฟ using a simple if else statement to evaluat...
common-pile/stackexchange_filtered
Rcpp zeros of a quadratic equation in two variables I am new to Rcpp so I apologize in advance if this question is simple to answer. I searched on the web but couldn't find much help and I am hoping the savviness in this forum can help me! I have an existing code in R using Rcpp, and I need to add to this code the foll...
common-pile/stackexchange_filtered
Android GUI crawler Anyone knows a good tool for crawling the GUI of an android app? I found this but couldn't figure out how to run it... Tried Robotium? You can get an ArrayList of Views in an activity and iterate through them. Hi, @DevOfZot I'm new to android can you help me out to start from somewhere for using ...
common-pile/stackexchange_filtered
How to include <glib.h> in android cmake project I have created an android project on windows with ndk template. I want to include ndk-build project into android studio. This ndk-build project is working fine separately when I run ndk-build command. My requirement is to convert and use it in android studio so that I c...
common-pile/stackexchange_filtered
#1052 - Column 'lat' in field list is ambiguous in a mile radius query, can't figure out why I've got a rather lengthy query i have been working with that is throwing the error '#1052 - Column 'lat' in field list is ambiguous'. I have broken it into parts and each part seems to work fine but when I run it at once I ge...
common-pile/stackexchange_filtered
Blazor display enum value in UI. value not showing I am using blazor webclient to display an enum value in the UI. however when I run the client and a value is assigned nothing displays. I have taken this code from the GetName method. however this displays nothing on the page. my razor component <div> <p>Nationalit...
common-pile/stackexchange_filtered
UserNotFound mongodb error I know there are lot of articles with the same issue and I explored every other article trying everything and still this error persists. Here are the steps I followed: use admin. created an admin user with role: dbAdminAnyDatabase use mydb. created an admin user with different name for my...
common-pile/stackexchange_filtered
Ubuntu 22.04 struggles to mount exfat flash drive with a .Spotlight-V100 folder from macOS I have a flash drive which I am using to transfer files between several computers, including computers running Ubuntu 20.04, Ubuntu 22.04, macOS 12.6, and Windows 10. The flash drive was formatted as exFat with a GPT partition t...
common-pile/stackexchange_filtered
Once choice in multiple choice I am trying to use the filter function to get a count of all candidates that have a bachelors degree or higher, problem is i can get the count but if say a candidate has both a bachelors and a masters, i only want one of the degrees. Question is there a way to modify this code to make sur...
common-pile/stackexchange_filtered
Clean way to convert CURL to Jquery/Javascript [Instagram] I'm trying to convert the curl command from the instagram api to jquery(ajax/get). curl -F 'client_id=CLIENT_ID' \ -F 'client_secret=CLIENT_SECRET' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=AUTHORIZATION_REDIRECT_URI' \ -F '...
common-pile/stackexchange_filtered
Binding XPages check box group to managed bean How does one go about binding the value of an XPages "Check Box Group" to a Managed Bean so that multiple values can be loaded and saved without binding each check box individually? I'm able to bind text values on the page just fine, but nothing seems to work with the chec...
common-pile/stackexchange_filtered
segmentation fault while heapifying I was simply heapifying an array in C. But while running it's giving me segmentation fault(core dumped)... i have no idea where i am trying to access unallocated memory!! #include<stdio.h> int n; int left(i) { return (2*i); } int right(i) { return (2*i + 1); } void min_h...
common-pile/stackexchange_filtered
transform an array of objects into an array containing arrays of objects I have an array of objects like this: [{...}, {...}, {...}, {...}, {...}] An object looks like this: { id: ... name: ... association: { id: ... } } I'd like to collect objects with the same association id and get a array like this...
common-pile/stackexchange_filtered
Hell yeah! - How to express great joy? I'm looking for some exclamations to be used in comics to express great joy and pride, such as: "I'm a good boy!", "Hell yeah!", "I'm so great!" or similar. Any suggestion? ๅฅฝๆžไบ†๏ผ Great! ้‚ฃ็œŸๅฅฝๆžไบ†๏ผ That's really cool! ๅฅฝๆฃ’ๅ•Š๏ผ/ๅคชๆฃ’ไบ†๏ผ Terrific! @ Drunken Master: Nice! Any suggestion for so...
common-pile/stackexchange_filtered
how to inject sql in login process I've received an old application which completely lacks user input sanitization and is vulnerable to sql injection. To prove gravity of the situation i need to give client an example and what can be better to scare him than the login process. I've tried standard techniques but the pro...
common-pile/stackexchange_filtered
Cannot Quit the C# application using Sentinel Value I have created application that will allow the user to enter numbers which provide the average of the numbers entered. The user will be allowed to enter as many numbers as they choose. After each entry I have display the current average. I am not able to quit the appl...
common-pile/stackexchange_filtered
How to get Scrollbars as needed with a TabPane as Content? I have a BorderPane inside a Tabpane inside a ScrollPane. The ScrollPane.ScrollBarPolicy.AS_NEEDED does work if i remove the TabPane and put the BorderPane as Content of the ScrollPane. How do i get this to work with the TabPane? Somehow the BorderPane is able ...
common-pile/stackexchange_filtered
How can I $_POST information to this page without going to it by submitting a form? I'm using the following code: $.ajax({ type:'GET', url: 'save_desc.php?scrapbook_name=<?php print(addslashes($scrapbook_name)); ?>, success: function(data){ $("#" + id + "below").html(data); } }); How can I change t...
common-pile/stackexchange_filtered
AngularJS data-ng-repeat does not show any changes when Array was modified Okay, so I have this custom directive that is responsible for showing Notes for a product that users have left. <mx-note-manager-two isModalPopup="true" is-show-date-range="{{IsShowNoteDateRangeControl}}" recordType="BOM_Header" recordId="{{Uniq...
common-pile/stackexchange_filtered
Make read-only column in spreadsheet using spreadsheet gem I have used spreadsheet gem to generate xlsx, I wants to make read-only for some particular columns and rows. How to do with spreadsheet gem? I don't know if this is a suitable answer to your question (let me know if it is, and I'll post below), but this can b...
common-pile/stackexchange_filtered
Show date and time in time picker component in JSP Hi I'm working on Struts 2 web project. I am using a jQuery time picker in a web page. But now my client requires to pick the Date and Time to be selected from System clock and calender (Independent of os Windows,Mac,Linux,IOS,etc.). Is there a way to call system clock...
common-pile/stackexchange_filtered
Parsing Gmail Email content in HTML Format (Table) into Google SpreadSheet Columns I am having two issues Parsing Data from Gmail Email HTML Table into Googlesheet Columns Issue 1: Getting Data from the Body If the Email Body comes formatted as a HTML Table the method getPlainBody() only takes the Paragrapgh before th...
common-pile/stackexchange_filtered
(51) SSL: no alternative certificate subject name matches target host name I am trying to generate the LetsEncrypt certificate files, and I am using the following commands: ./certbot-auto --config /etc/letsencrypt/configs/milhas.brau.io.conf certonly The files are generated correctly, but in "curl" command results the...
common-pile/stackexchange_filtered
what does "*&" mean together? For example: private: Node* curr; public: Node*& Iterator::getCurr() { return curr; } bool Iterator::operator==(const Iterator& other) { return curr == other.getCurr(); } I'm getting error in this code: passing โ€˜const Iteratorโ€™ as โ€˜thisโ€™ argument of โ€˜...
common-pile/stackexchange_filtered
IDE for XSLT stylesheets What is the best IDE for creating and debugging complex XSLT stylesheets? For debugging, the ability to set breakpoints and step through the source would be great. I am interested in all options both commercial and free. Editors worth checking out: Visual Studio Altova's StyleVision/XMLSpy ...
common-pile/stackexchange_filtered
Gradle build fails on news mac I try to compile my Gradle/Kotline Project on my new Mac and getting the same error 'Resource not found'-like errors for all my gradle projects. Any ideas whats wrong? The same project for example works on the latest Docker 'primetoninc/jdk'. mac:nextlevel2017-kotline robert.rajakone$ ./...
common-pile/stackexchange_filtered
Distance between 2 points in a circle I am given 2 points inside a circle. I have to find a point on the circle (not inside, not outside) so that the sum of the distances between the given 2 points and the point i found is minimum. I only have to find the minimum distance, not the position of the point. Could you plea...
common-pile/stackexchange_filtered
CiviCase Timelines based on specific values of fields Iโ€™m new here, so sorry if Iโ€™m asking something too obvious, but I couldnโ€™t find an answer in Civi manual to it. The manual stats that โ€œโ€ฆif one of the activities in your standard timeline is a medical evaluation, you could have 2 or more timelines that outline differ...
common-pile/stackexchange_filtered
display divs without blanks - CSS I'm struggling with some CSS issue. I have a few divs to display, one after another. I'm using the inline block display to display them I'd like to display divs. The thing is, it appears like that : I guess it is because of the display style. Because of the shirt-div height, i got som...
common-pile/stackexchange_filtered
Matlab precion when specifying fractions I wanted to create a vector with three values 1/6, 2/3 and 1/6. Obviously I Matlab has to convert these rational numbers into real numbers but I expected that it would maximize the precision available. It's storing the values as doubles but it's storing them as - b = 0.1667...
common-pile/stackexchange_filtered
SwiftUI view is in the middle instead of in the top - NavigationView I am trying to create a navigation view in SwiftUI - I want to navigate from the login form to the Home Screen. In the preview, the Home Screen is looking how it should, but on the live preview - it is centered in the middle of the screen. I tried wit...
common-pile/stackexchange_filtered
Proving an inequality. I have stuck in the middle of a problem and I don't know whether or not the following inequality is true. $$\sum_{i=0}^{[n\,t]} \Bigl(1-\frac{i}{n\,t}\Bigr)^{n-1}>t$$ Assuming that $n$ is a natural number and $t$ is a positive real number and $[x]$ is the floor function. Please show (1) your wor...
common-pile/stackexchange_filtered
Convert datetime 64ns to mm/dd/yyyy in pandas I have a date column of format datetime64[ns] date 01/04/2020 01/06/2020 01/08/2020 the first row represents apr-2020, then second row is june-2020 and third is aug-2020 From my actual data ,the date is stored as "dd/mm/yyyy" in the date column and in the pandas column is...
common-pile/stackexchange_filtered
SQL CE 3.5 - Select field from another table I'm working with databases for the first time (SQL CE 3.5) and I'm not certain how I define a relationship between tables where later ( I think) I'll have to use a join to select some value for one field from another table. _________ __________ __________ MY TABLE|...
common-pile/stackexchange_filtered
Do tapjoy commercial campain and get Pro version app? I have seen some apps like "Get paid to play" and "Appdog" were tapjoy is used. You do commercial campains and get paid for it.I was wondering if there was any way to use tapjoy in your app with your own point system. And if you reach a certain number of points, you...
common-pile/stackexchange_filtered
php mysql update date type from YYYY-mm-dd to mm-dd-YYYY I have a mysql DATE Field named dDate that is formatted like this: YYY-MM-DD I would like to update all of the records in this field to a different DATE format of MM-DD-YYYY can someone show me how to to this via mySQL query ? I tried this example but it doesn't ...
common-pile/stackexchange_filtered
WCF goes offline automatically I have hosted a WCF service application on IIS8 (Windows Server 2012 R2). These services automatically goes offline sometimes an the other applications which uses these services throw this error, The requested service, 'http://<IP_ADDRESS>:8086/Apis/ILQ/Services/ILQInfoService.svc' could...
common-pile/stackexchange_filtered
Access to exposed header from Angular 8 Im trying to get the exposed header from the backend with angular 8. here you can see the Response headers when I Posted the API **Response headers(6)** Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: http://localhost:4200 Access-Control-Expose-Headers: Xtoken...
common-pile/stackexchange_filtered
Automatically fixing un-closed HTML tags in Ruby I'm trying to convert HTML pages to Markdown using the reverse-markdown Ruby gem. Unfortunately it fails with: /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse': #<REXML::ParseException: Missing end tag for 'img' (got "td") (REXML::ParseException) ...
common-pile/stackexchange_filtered
How to shade smooth using BPY New to bpy and I'd like to write some code that sets the shading of an object to smooth by just clicking a button. I did some research and I have written the following lines for now: import bpy def draw(self, context): layout = self.layout row = layout.row() row.operator(" bpy...
common-pile/stackexchange_filtered
Simple.Data join without where clause including any primary table columns I am using Simple.Data and have been trying to find an example that will let me do a join with the only condition in the WHERE clause be from the joined table. All of the examples I have seen always have at least one column in the primary table ...
common-pile/stackexchange_filtered
Why does frexp/ldexp significand range from [0.5, 1.0)? Why do the frexp/ldexp functions have a significand that ranges from [0.5, 1.0) when IEEE 745 floating point values actually have a significand that ranges from [1.0, 2)? The rationale documents accompanying the C89 and C99 standards are silent on this matter. A ...
common-pile/stackexchange_filtered
What would happen if a (democratic) government does not honour a court ruling? What would happen if a government does not honor a ruling made by a judge? An example would be US President Trump's Travel Ban, which was recently suspended entirely by a federal judge. Note: This question is for worldwide politics. (The inf...
common-pile/stackexchange_filtered
Why can i tokenize string passed as function parameter but not string retrieved using getline? The problem I have is that I am able to successfully tokenize the string parameterswhich is input into my function menucall, but using the same method I cannot properly tokenize a string obtained from a file using getline an...
common-pile/stackexchange_filtered
Chance of late deliveries (combining two Poisson processes) If sent mail is a Poisson distributed process with $\lambda = 100$ and delivery men deliver a number of envelopes per day which also turns out to be Poisson distributed with say $\lambda = 10$, how many delivery men should the post office hire such that at mos...
common-pile/stackexchange_filtered
Solution of the parabolic equation $u_t=(axu)_{xx}-((bx+c)u)_x$ I am reading a book and it says that the Kolmogorov equation is similar to the parabolic equation $$u_t=(axu)_{xx}-((bx+c)u)_x$$ This may seem like a silly question but how is this a parabolic equation? Also If $$c\leq0$$ and/or $$0<c<a$$ why does this ...
common-pile/stackexchange_filtered
Make edits outside suggested edit I couldn't find a duplicate of this bug/feature-request. I wanted to make an edit to a question to improve the formatting, however I couldn't because there was an edit pending. When I click the edit (1) link, it pops up the review screen but I'm notified: Thank you for reviewing 20 Su...
common-pile/stackexchange_filtered
What is this default gray circle I apologize in advance for such a basic question. I haven't been able to find anything online referring to this. I'm probably just not using the right search terms, but I don't know what this is called. This is zoomed out showing my model which is a large building, and what appears to b...
common-pile/stackexchange_filtered
Flash CS4: Actionscript 3.0 How to load images from a file I currently can load images from a url but what is the script for loading and image from a file in my harddrive? ti.border = true ti.addEventListener(TextEvent.TEXT_INPUT, onInput); function onInput(event:TextEvent):void { if(ti.text.search('a')!=-1) load_...
common-pile/stackexchange_filtered
MySQL aliased subquery cannot be used in where clause I have a query given below that returns all the data asked. Then in the next query I need to write I need to restrict the output to where the subquery is greater than 5. I will show examples but I cannot understand why I cannot do what I am attempting. Query withou...
common-pile/stackexchange_filtered
CSS Alignment of <li> Possible Duplicate: Formatting an <li> element within a <div> The facebook and twitter elements are not aligned. I want them to be positioned perfectly, one above the other. Please can you help? Here's my code: #floating-box { width: 65px; height:auto; background-color: #484848; margin: 54px 10...
common-pile/stackexchange_filtered
Magento2 : How to get value of checkbox in observer? I will refer to previous post: Magento : How to get value of checkbox in observer? Anyone have example of how to do the exact same for Magento 2? possible duplicate of https://magento.stackexchange.com/questions/166917/get-post-data-in-checkout-success-observer Tha...
common-pile/stackexchange_filtered
receiving ID of Pending Intent from Broadcast Receiver I need to access the ID of the Pending Intent from the Broadcast Receiver class. Here is the code of my Main Activity from which I set the Alarm using PendingIntent. private void setAlarm(Calendar targetCal) { Intent alarmintent = new Intent(AddAlarm.this, ...
common-pile/stackexchange_filtered
Is there any environment that would allow for electroreception to work on land? This is not a duplicate. This is not asking about land electroreception on an Earth-like planet. This is asking what the planet would have to be like for electroreception on land to work. Denser humid atmosphere maybe? The word electrosens...
common-pile/stackexchange_filtered
What are some of the main high level approaches to applying ML on kinematic sensor data? I've just started a project which will involve having to detect certain events in a stream of kinematic sensor data. By searching through the literature, I've found a lot of highly specific papers, but no general reviews. If I sear...
common-pile/stackexchange_filtered
Azure Logic Apps - Get Blob Content - Setting Content type The Azure Logic Apps action "Get Blob Content" doesn't allow us to set the return content-type. By default, it returns the blob as binary (octet-stream), which is useless in most cases. In general it would be useful to have text (e.g. json, xml, csv, etc.). I ...
common-pile/stackexchange_filtered
How to create login field properties depending on which radio button is checked I have a login page with 2 radio buttons "new account" and "existing user". when "new account" is selected the "User" field auto populates with the text "New Account" and the "Password" field remains blank. I need to grey out the fields s...
common-pile/stackexchange_filtered
Remove spaces before newlines I need to remove all spaces before the newline character throughout a string. string = """ this is a line \n this is another \n """ output: string = """ this is a line\n this is another\n """ You can split the string into lines, strip off all whitespaces on the right usi...
common-pile/stackexchange_filtered
issue while using union clause with order by While placing the union in between two statements it is giving out some error. Code is given below: I tried placing the brackets starting at select statement and ending at order by name. But, nothing works for me. Can someone please suggest what is wrong with this code? sel...
common-pile/stackexchange_filtered
Conditionally select multiple, separated ranges I have an Excel spreadsheet tool to generate license images (.png files), which are printed using a wax-resin to PVC printer. I'd like to simultaneously, conditionally select up to eight specific non-contiguous range clusters. If a defined cell has something, select the r...
common-pile/stackexchange_filtered
How do I add a dash after the fifth term in a string of numbers? I am trying to do some data tidying in R with zip codes and some are 5 digits and others are 9 that I want to change from XXXXXXXXX to XXXXX-XXXX. df is the dataframe containing these zip codes with multiple repetitions of the same zip code. a <- df$Zip_C...
common-pile/stackexchange_filtered
Javascript is not getting executed when DOM/HTML is loaded browser cache I am caching the dynamic content using the ETAG. There is javascript in tag which in turn located at the end of body tag. This script tag make changes in DOM elements. But when DOM/HTML is loaded from browser cache, javascript is not getting exec...
common-pile/stackexchange_filtered
e^x derivative using first principles Using the Taylor series expansion for e^x , show that the derivative of e^x (using first principles) is ex (include at least three terms of the series to confirm the derivative of e^x) ...but Taylor series use derivatives, so isn't that going to be pretty circular? Besides, and as...
common-pile/stackexchange_filtered
Rails 4.2 - Creating an action for a belongs_to model (Thinkster.io Angular + Rails Tutorial) I'm following the AngularJS + Rails tutorial from here https://thinkster.io/angular-rails/ and have ran into a wall at the "Finishing Off Comments" section towards the end (right after it says "To enable adding comments, we ca...
common-pile/stackexchange_filtered
What can we accept in thought experiments in relativity? Although title is more broad, and you are welcome to give examples, I will ask about why we accept certain things as acceptable in Einstein's thought experiments using a specific experiment: Consider the famous mirror in a train example: There is a train moving ...
common-pile/stackexchange_filtered
Configure ProFTPD correctly on Ubuntu 16.04 -- My System Info Ubuntu 16.04 Using SSL through LetsEncrypt module ProFTPD module Main domain is a WordPress I know there're a lot subjects for this issue and I read dozens of documentations but unfortunately nothing of those solutions working with me, I installed virtu...
common-pile/stackexchange_filtered
Arm TrustZone on Xilinx zynq zc706, smc #0 Arm TrustZone, zynq-zc706 Hi, I tried enabling TrustZone on Xilinx Zynq zc706 board. After many attempts, still no success. Does anyone know if I have to enable somehow that option? I downloaded opensource solution for TrustZone implementation (sierraTEE from openvirtualizatio...
common-pile/stackexchange_filtered
Angular 16: Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using provideFirebaseApp) **Versions info: @angular/fire 7.6.1 @angular/common": 16.0.0 The error I am recieving: enter image description here I was trying to implement unit testing in my angular project...
common-pile/stackexchange_filtered
Store output of command in sftp to variable and list My aim is to create a shell script such that it logins and filter the list of files available and select a file to get. Here I need to run commands like in bash. My sample code is: sshpass -p password sftp<EMAIL_ADDRESS><<EOF cd /home/ var=$(ls -rt) echo $var echo "s...
common-pile/stackexchange_filtered
How to enable a click event in GWT Java? How do I implement a click event in Java(GWT) for this image with an overlaid set of map area tags? <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun"> <ar...
common-pile/stackexchange_filtered
iPhone storage in tmp directory I have a question from this stackoverflow question about iPhone storage. Like I already tried to answer, we can cache data in tmp directory. But a comment says that the data can be deleted when OS whimp. I don't understand exactly the problem that the comment says. I want to ask if the ...
common-pile/stackexchange_filtered
IF statement not working in RHEL 6 (workd in RHEL 5) I have a simple if statement that works fine in RHEL 5, but for some inexplicable reason, fails in RHEL 6: if [[ ! $1 =~ "(one|two|three)" ]] ; then echo -e "\n***Invalid number" usage exit 1 else action=$1 fi I can use a case statement which works...
common-pile/stackexchange_filtered
python simplekml change shape of newpoint I am trying to change the default Yellow Push-PIN place marker to rectangle or pixel. after running code below I still getting default Yellow Push-PIN place marker. import simplekml #from simplekml import Shape,Color kml = simplekml.Kml() pt2=kml.newpoint(name="test", coords=[...
common-pile/stackexchange_filtered
Importing sql script and running it using node oracledb I have got query.sql file that I am importing using node's fs module and trying to run it using node oracledb module. But it is giving me the error of invalid or missing options set echo off set abc on select * from table set echo on You're trying to use SQL*...
common-pile/stackexchange_filtered
Evaluating $\int_0^\pi \frac{\cos(nx)}{2+\cos(x)} dx$ What is a good place to start in order to evaluate $$\int_0^\pi \frac{\cos(nx)}{2+\cos(x)} dx?$$ I just want something to set me on the right tracks. Thanks. It is enought to notice that the integral is an even function $$\sf I=\frac12 \int_{-\pi}^\pi \frac{\cos...
common-pile/stackexchange_filtered
I need to calculate sum on multiple fields in Google Datastore (NoSQL database) we are building a recommender, comparing user interests with the characteristics of places. For example. Does the user like 'outdoor' and does the place store a high value for 'outdoor' then the place is recommended. My Google Datastore doc...
common-pile/stackexchange_filtered