text
stringlengths
70
452k
dataset
stringclasses
2 values
How can I join the Google accounts for two email addresses? I've heard that Google has supported, for a while now, multiple email addresses linked to a single account. Now, I've had, for many years already, accounts for two addresses of mine - with different group memberships etc. Can I merge these two accounts somehow...
common-pile/stackexchange_filtered
Recursion from inside IIFE I have a piece of code which generates all the possible strings that can be made by placing spaces in-between the letters of a given string, the code uses recursion to achieve this. Here is the code I have (it's a C++ source I have adapted to JavaScript and it works as expected): var genS...
common-pile/stackexchange_filtered
R Filter to remove rows within map function I am simulating events from the following data table using the map function and filtering zero value events. However I would like to filter within the map function, thereby reducing the size of the event table that gets created. The following simulates events based on the Poi...
common-pile/stackexchange_filtered
When unit-testing should common methods put in static class or in base class? I have a few methods that are used from different class tests. Also, some other common methods are used for preparing the test data. What is the common practice to handle this in tests? Should I handle this like any other case by having eithe...
common-pile/stackexchange_filtered
Dual fuel generator - using natural gas on propane input Instead of using a conversion kit to make a generator be able to take natural gas through the gasoline side of it (e.g. Nash Fuel or Century Fuel Products), is there a way to feed natural gas in through the propane intake in a way that would work - much how gas g...
common-pile/stackexchange_filtered
Quasi-coherent sheaves on projective space. I would like to better understand the characterization of quasi-coherent sheaves on $X=\mathbb{P}_A^d = \operatorname{Proj}A[x_0,...x_d]$, where I call $B = A[x_0,...x_d]$ We define $\mathcal{F}[k] = \mathcal{F}\otimes_{\mathcal{O}}\mathcal{O}[k]$ for every quasi-coherent she...
common-pile/stackexchange_filtered
Balanced demodulator I came upon this expression "Balanced demodulator" while reading about signal modulation, but didn't find anything that explain what is a balanced demodulator, can anyone explain this or give me any reference that helps me understand what is a balanced demodulator? Vast number of hits with a Googl...
common-pile/stackexchange_filtered
AVAudiounit: I can't play a sound with an effect like delay I'm new to objective c and try to code a programm which can play a sound with an effect on it, like a reverb or delay. Unfortunately I'm only able to play the sound, but without the effect. I'm stuck for 3 days now and can't find a solution. Does anyone can te...
common-pile/stackexchange_filtered
Convert JSON-text (date) to a new dateformat c# I recieve it like this/the json looks like this: 2016-09-04 14:00:00 And I wish to recieve it monthly instead so if we take the above as an example I only want the month so in this case: 09 I loop out the dates via a loop: var getDates = await phpApi.getinfo(); string fo...
common-pile/stackexchange_filtered
hyperref package with backref option - reference in abstract I'm using the backref option of the hyperref package, and amsart document class. One of the reference is cited in the abstract. In the bibliography, this implies that the backref is written as "(document)". Would it be possible to either : replace the "docum...
common-pile/stackexchange_filtered
On studying web programming What are the best resource to study the following: JavaScript, AJAX, CodeIgniter Smarty? OReilly's Javascript: The Definitive Guide, 5th Edition (or later) http://www.amazon.com/JavaScript-Definitive-Guide-David-Flanagan/dp/0596101996/ref=dp_ob_title_bk Though perhaps not suited as a first...
common-pile/stackexchange_filtered
First time trying to use a foreign key other than model_id in Rails So I know usually, a belongs_to associates models together based on the id column, but in my case I want to associate it by the token column instead. For example: #app/models/user.rb class User < ApplicationRecord has_many :test_results end and #ap...
common-pile/stackexchange_filtered
Rxjs Subject not emitting data immediately I have a service with a RXJS subject and i am assigning data to subject inside constructor doing an api call. This subject I am subscribing in a component template. Though the data is provided to the subject, it is not emitting immediately the first time. interface Employee { ...
common-pile/stackexchange_filtered
How to do multiprocessing in class with self parameter Code: from multiprocessing import Process class A: def __init__(self): self.a = 10 def main_loop(self): while True: self.a -= 2 print(self.a) def player_status(self): while True: self.a -= 5...
common-pile/stackexchange_filtered
jQuery cookie saves but returns null on C# server side I'm saving a cookie in a C#.NET MVC View, like so $.cookie("test", testvalue); But when I try to retrieve that value from the C#.NET controller, I get a null value, and what's more, the cookie key is not in the Cookies collection even. var test = Request.Cookies[...
common-pile/stackexchange_filtered
Can you force a screen reader to read numbers as individual digits? Phone numbers are typically all digits, ignoring parens, dashes, pluses, etc., so input fields for phone numbers are typically numeric. When a screen reader encounters a numeric input field, it'll read the value as a whole number. For example, if I ha...
common-pile/stackexchange_filtered
Rename filename of customer download(s) to File Label Name + extension in Woocommerce (for checkout page & order email) Some customer downloads in Woocommerce don't have a fancy filename on the server, but I'd like customer order downloads to be renamed to the corresponding 'File Label Name' + file extension upon downl...
common-pile/stackexchange_filtered
replace multiple words - python There can be an input "some word". I want to replace this input with "<strong>some</strong> <strong>word</strong>" in some other text which contains this input I am trying with this code: input = "some word".split() pattern = re.compile('(%s)' % input, re.IGNORECASE) result = pattern.s...
common-pile/stackexchange_filtered
What is the safest and quietest practical lightweight electric saw to cut 2x4 to use inside an apartment? I have a miter saw but that thing is loud. Same with the circular saw. Moreover, while the miter saw can be used on the ground with not even a table, the circular saw is too dangerous without a full workbench. A ta...
common-pile/stackexchange_filtered
How to disable cache for some files in google chrome DevTools Whenever I run the project, many files(CSS, image and js) requested from a remote server and the project load slowly. For handling this issue, I unchecked disable cache for all files in the network tab of Chrome DevTools(for caching all files) as follows: B...
common-pile/stackexchange_filtered
p-value using pool.scalar in R How can I compute the p-value of the model coefficients of a multiple imputation model using the pool.scalar function? When using the pool function I can just do summary(pool(imputed_model)) and get the model coefficient and their p-values. However, I am fitting a quantile regression mode...
common-pile/stackexchange_filtered
Vote limit on your own questions I tend to up-vote users who answer my questions with reasonable answers as a norm for taking the time to actually post an answer. It is rare unless the answer is not relevant at all for me not to do this, however this sometimes means I reach my vote limit quite quickly. Would it be pos...
common-pile/stackexchange_filtered
Buck converter Mosfet gate driver How to turn on a buck transistor via a bootstrap circuit? In my circuit, I use a AVR microcontroller to turn on and off a buck switch. What circuit should I use here? Previously, I used optocoupler which does not have a fast response. I like to turn on and off the transistor for no mo...
common-pile/stackexchange_filtered
About quotes in Scheme > (procedure? +) #t > (procedure? (car '(+ 2 3))) #f > (list? '(+ 2 3)) #t > (symbol? (car '(+ 2 3))) #t > (define someList (list + 2 3)) > someList > '(#< procedure:+ > 2 3) > (procedure? (car someList)) #t > Is it possible + to be recognized as a procedure when using quotes? No. '+ is a...
common-pile/stackexchange_filtered
Opening a specific MS Office program causes every executable in the desktop and below to be run simultaneously I'm having a strange issue with MS Visio 2016 which when I open it, either directly (i.e. double-clicking Visio's executable from the Office's folder) or by a shortcut, it runs every executable (.exe) located ...
common-pile/stackexchange_filtered
Sigma additivity of spectral measure on the complex Borel-sigma algebra My exact question is asked and answered here: Proving that a spectral measure is $\sigma$-additive but I have spent all day trying to construct the $A^{'}_js$ and $B^{'}_k$s described in the answer and haven't succeeded. I know A und B must each be...
common-pile/stackexchange_filtered
Why should I use portTICK_PERIOD_MS instead of pdMS_TO_TICKS? I can retrieve the number of ticks needed to reach, say, 500 ms using either: const TickType_t xDelay = 500 / portTICK_PERIOD_MS or: const TickType_t xDelay = pdMS_TO_TICKS(500); where: #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / config...
common-pile/stackexchange_filtered
Get Post ID with POST METAs in single MySQL query From POSTS->ID, I want the first 12 IDs with post_type = 'product' And with that ID association, I want to fetch all POST META. I am using this MySQL query, but it is not working: SELECT posts.ID, postmeta.meta_key, postmeta.meta_value FROM `wp_u8gwgg_posts` as posts I...
common-pile/stackexchange_filtered
Python list integrateUpper/Lowercase check? I currently use following code to select rows from a dataframe: list = ['3d block','3D Block','3D block','3d Block','cafe','Cafe'] data[data['description'].str.contains('|'.join(list))] As you can see, I currently implement different queries for upper/lowercase, as I realize...
common-pile/stackexchange_filtered
How do I write a script to open Safari with multiple specified website tabs open? Searching so far, all I've found is open -a safari. I will keep searching trying to teach myself, but I would appreciate your guidance to direct my efforts. Just add the URLs as parameters to that command: open -a safari 'https://stackov...
common-pile/stackexchange_filtered
How to set RecyclerView GridLayoutManager's max row I have make a RecyclerView with using GridLayoutManager, now, I want to set the recycleView's max row, when rows exceed the max row, the recycler view will scroll. RecyclerView recyclerView = (RecyclerView)findViewById(R.id.recyclerView); recyclerView.setLayoutManage...
common-pile/stackexchange_filtered
Is it possible to use a playstation save on a pc version? I almost finished Final Fantasy VII on a PSX emulator running on Ubuntu, but now I would like to play the last hours on the pc version, maybe with graphical and audio mods (non-MIDI music and characters in the map as during the fights). Is that possible? do you...
common-pile/stackexchange_filtered
issue with my attempt at diffie-hellman key exchange I've been trying to write some code in python to create a diffie-hellman key exchange, but I found that any value for "n" that is large enough to be secure seems to cause the code to freeze up when calculating the partial key. From what I understand a 2k bit value fo...
common-pile/stackexchange_filtered
how to parse datetime according to host datetime format I having a major issue in my project regarding datetime. the user gives the input for date or sometimes i get the date from my database according to the project requiremnt. but the format given by user is different if they insert manually and the date format which...
common-pile/stackexchange_filtered
MapView does not load properly inside fragment. Strange behaviour on Google PLay services 9.4.0 I am using MapView inside a fragment. Now it does not load. (Or to be precise, it loads but it does not load. Yes, its weird, pics attached.) Some logs on console when map loads (or fails to load/tries to load) W/DynamiteMo...
common-pile/stackexchange_filtered
How to download two different files in powershell I have this simple script that is working and I'm able to download a csv file From my SharePoint site but I'm just wondering how can I modify it so that I can download another file that is located in another path and save it in the same local folder as soon as the first...
common-pile/stackexchange_filtered
Regex, how to recognise 2 or 3 words (of any non space) delimited by spaces I am using java and am trying to write a regex that excepts this: jkdsl;a asdfasdf asdfjkl; and this 789u 13789u but not this HJKs9 or this hiop hiopwer rewk3 fheio2 So far I have this, but it doesn't seem to work (I have used an online reg...
common-pile/stackexchange_filtered
How to delete particular field in a json file by using python 1.I was trying to use python to delete a particular key and its value in a JSON file. Here is the JSON file structure: [ { "_id": { "$oid": "6066af7bcb0716461578fa70" }, "FileName": "copy_of_ex_fts.csv", "BriefInfo": "", "Size": "...
common-pile/stackexchange_filtered
Do tensors $n_in_jn_kn_l$ where $n_i$ is a vector span all 4th-order symmetric tensors? A real tensor $T$ of order $r$ in dimension $n$ is a collection of real coefficients $T_{i_1i_2\dots i_r}$, $1\leq i_1, i_2, \dots, i_r\leq n$. A tensor $T$ is symmetric if the coefficients $T_{i_1i_2\dots i_r}$ are invariant under ...
common-pile/stackexchange_filtered
Torsion in the Betti cohomology of complex surfaces Q1. So what is the "simplest example" of a compact complex manifold of dimenension $2$, say $X$, for which $H_B^2(X,\mathbb{Z})$ has non-trivial torsion. Q2. How do we think about these torsion elements? What is the geometrical content behind it? An Enriques surfac...
common-pile/stackexchange_filtered
Complex edge conditions on geo-edges Spatial graph databases are capable to find a shortest path from the node A to the node B. Are there any DB which allows complex conditions on nodes and edges between them? For example: The node is closed between 01:00 - 06:00 UTC The edge is available only on weekends The edge is ...
common-pile/stackexchange_filtered
Certifying multiple PDF files simultaneously I have a digital certificate, with which I would like to certify more than a 1000 PDF files. I am using Adobe Acrobat XI Pro. Is there any way to do it all at once? Currently I am opening every file one by one, certifying it and then saving it. Need to find a faster way of ...
common-pile/stackexchange_filtered
Question about "wide" random matrices Let $A \in \mathbb{R}^{m \times n}$ be a random matrix with i.i.d. entries (the distribution is not important), where $m < n$ (i.e. $A$ is a "wide" matrix). I would like a lower bound on $$ \phi(A) \triangleq \min_x \frac{\lVert Ax \rVert}{\lVert x \rVert} $$ that holds with high ...
common-pile/stackexchange_filtered
Limit disk usage on Elasticsearch Sorry if this is a simple question - I'm new to ELK and have it all running with data coming through ok. My issue is that I'm concerned about storage growth given the number of records that will be coming through. Having a search on the google I've seen that on GrayLog there is a sett...
common-pile/stackexchange_filtered
Automating MailChimp Inbox Inspections with Grunt I want to take my email build process a step further by being able to send test emails to an Inbox Inspection in MailChimp as I put the templates together. A quick search brings up some MailChimp based Grunt tasks like this one: https://github.com/h0lyalg0rithm/grunt-ma...
common-pile/stackexchange_filtered
How to link static library .o files? I'm experimenting with my first foray into libraries. I am trying to compile the Unity testing framework to a static library using gcc -c -fPIC -std=c99 -Wall -Wextra -pedantic -Werror -Wmissing-declarations -DUNITY_SUPPORT_64 test-framework/unity.c -o bin/libunity.o This runs just...
common-pile/stackexchange_filtered
How to Map a ValueObject Collection with Foreign Keys in FluentNHibernate I've been looking all over for an example of this, but it seems pretty uncommon. Hopefully some NHibernate guru will know. I have the following class which, by my understanding of Value Objects, is a Value Object. Assume every user has the ab...
common-pile/stackexchange_filtered
beautiful soup extract cell but keep format everyone: I am new to beautiful soup, working on parse table, i was able to get to cell level. Let's say cell is something I am trying to extract... I know type(cell) is I know cell content is <td> Raptors v. Jazz <b>UNDER 196</b> </td> When I do cell.text, i get output: ...
common-pile/stackexchange_filtered
Unusable Source for Ubuntu image on Xen 3 I'm trying to create a new VM in Xen 3, running Ubuntu 10.4 (32 bit) as the guest OS. Xen 3 is installed on a machine running OpenSuse 11.2. I downloaded the Ubuntu image from the ubuntu.com website and I mounted it on /dev/loop0. When I try to create the new VM in Xen with the...
common-pile/stackexchange_filtered
Nginx redirect based on query string I'm migrating old website links to new website, it will use same domain Here is some old links. Old Links New links http://example.com/?p=contact /contact http://example.com/?p=static&id=career /career http://example.com/?p=static&id=about /about http://example.com/?p=...
common-pile/stackexchange_filtered
AFNetworking: download + resume big file? I'm using AFNetworking to download a big file. Here is my code. It work fine: - (AFDownloadRequestOperation*)downloadBigFile:(BigFileObject*)bigFile withCompleteBlock:(AFResultCompleteBlock)completeBlock errorBloc...
common-pile/stackexchange_filtered
Garbage Management System please help to draw the er diagram Steps to Draw the ER Diagram Draw Rectangles for Each Entity: Customer Collector Admin User Add Attributes Inside Each Entity: Customer: Customer_ID (Primary Key) Name Address Contact_Details Email Reward_Points Collector: Collector_ID (Primary Key) ...
common-pile/stackexchange_filtered
Gedit SyncTex Plug-In in 18.04 I've upgraded from 16.04 to 18.04 using the standard option of the ubuntu software installer, and the gedit synctex plugin stopped worked after that. It is hard to find out for me why -- it just does not work silently, without producing any messages. What I've tried is: running gedit from...
common-pile/stackexchange_filtered
How to get parent element of a deep child? I have an HTML like - <main> <section> <div class="parent"> <div class='level_1'> <div class='level_2'> <div class='level_3'> <span class='click_here'></span> </div><!--level 3--> </div><!--level 2--> </div> <!--level 1--> </...
common-pile/stackexchange_filtered
SSRS external image display in designer but not in application I try to display image on report. In code everything is fine, checked on two other PC's: works there. On my pc When I set img path like file:D:/koala.jpg I can see it in designer but when I run application it does not appear on report (red cross appear). Ho...
common-pile/stackexchange_filtered
How to claim Virgin Train tickets towards Virgin Flying Club air miles, if not booked through their official website? I frequently travel by Virgin East Coast trains (in the UK), and I know that you can use these train journeys towards Virgin Flying Club airmiles - if you book them through the Virgin website. I use a c...
common-pile/stackexchange_filtered
Replace is replacing 182 entries instead of just 1? I have one entry in my database with the ‘package_id’ 1 When I execute the following command I get the response: 182 rows affected update bookings set package_id = replace(package_id, '1', '109') I then find any “package_id” that contains a 1 has been replaced with...
common-pile/stackexchange_filtered
R: RMariaDB not available for 3.4.0 - How connect to MySQL from R v 3.4.0? The RMySQL package notes recommend using RMariaDB instead. RMariaDB package says that it is not available for R3.4.0, and does not install. What is the best way to connect to a MySQL database if I'm running R v3.4.0? It doesn't look like RMari...
common-pile/stackexchange_filtered
Unable to close my inferior old question here to save a great new question at Biology from closure or worse https://biology.stackexchange.com/questions/100629/how-many-spike-proteins-are-there-per-sars-cov-2-spike is a question I asked recently but long ago I asked a different but similar question here at Medical Scien...
common-pile/stackexchange_filtered
Could not resolve external type warnings in xcode in cocos2d-x I'm using latest cocos2d-x (3.10, precompiled version) with latest xcode (7.2). After some recent xcode update I'm getting a lot of warnings like this (just few different examples): warning: Could not resolve external type _ZTSNSt3__16vectorINS_12basic_s...
common-pile/stackexchange_filtered
How do i fix my PYTHONHOME and PYTHONPATH variables after ruining them? So my problem is i ruined my python versions whit doing something like : alias python=/Library/Python/2.7 export PYTHONHOME=[:] I set them in terminal not in code :( ... Can somebody help me fixing them ? Os : Mac Os x 10.8.4 (Macbook pro) Pytho...
common-pile/stackexchange_filtered
Renaming a remote (bare) repository with git I run a git server which contains only the bare remotes. Say, I have one bare remote called DIG.git which I usually clone with: git clone <IP_ADDRESS>:git/DIG.git and I want to rename the bare remote on the server from DIG.git to DIGit so that I can do git clone <IP_ADDRESS...
common-pile/stackexchange_filtered
DroidWall and Wireless Tethering I have a very simple problem: when I run Wifi Tether on my Galaxy S3 the computer won't get the IP address unless I disable DroidWall firewall. DW runs in whitelist mode, but I ran across its menu to enable all wireless related applications it found. Nothing. I have to stop it at all to...
common-pile/stackexchange_filtered
Using springcloud to manage pods in k8s I'm doing my school project, which requires me to build an AI management platform with requirements listed below: microservice architecture train and deploy AI in docker provide API to access deployed AI models AI models version management dataset management CI/CD I'm trying to...
common-pile/stackexchange_filtered
How to pass an arbitrary sized matrix to a function in Rust? I have a 3x3 matrix (a 2D array) passed to a function: let matrix: [[i32; 3]; 3] = [ [0, 0, 0], [0, 1, 0], [0, 0, 0] ]; filter::convolve(&mut image, matrix, 1).unwrap(); The function is currently hardwired to accept 3x3 matrix: pub fn convolve(s...
common-pile/stackexchange_filtered
Unable to print the output of API response with python Iam not able to print the output of the below snippet but code runs successfully.Could anyone please help on this were I am doing things wrong? import requests import json # import pdb def test_login_withvalidcredentials(): URL = 'https://***api.***.com:8443/a...
common-pile/stackexchange_filtered
SQL SELECT one virtual Colum with more values I want to creat a virtual Column to do some special operation in MySQL... So i need to creat a "virtual Column" with some static values. But i dont't know how... eg. SELECT 3 as number shows Column "number" with the value 3. SELECT 3, 4, 67, 9 shows four different Columns w...
common-pile/stackexchange_filtered
Seeing intermittent long ACK times in Kafka Producer (10 seconds) We have three Kafka brokers version 1.1.1 on c5.4xlarge AWS instances. There is currently about 750 topics and about 1800 partitions. For certain reasons we cannot upgrade soon. One team connected to these brokers has mentioned that occasionally, the tim...
common-pile/stackexchange_filtered
Why do older Anglo Ashkenaz texts transliterate ת as "th" and how was it pronounced? Many older (19th and 20th century) Anglo Ashkenaz seforim translate ת (without a dagesh) as "th" - resulting in transliterations like "Sukkoth", "haftaroth", "mishnayoth" - when the general Ashkenazi pronunciation today is more like an...
common-pile/stackexchange_filtered
How to store variable from new instance in Java I'm not sure if that is the correct title to use but... I have been given a program with test cases eg: private void Test(){ CompareString string1 = new CompareString("String here"); CompareString string2 = new CompareString("String there"); assertEquals(expected, ...
common-pile/stackexchange_filtered
Else statement in JavaScript based upon media query / viewport OR 'Retina'-fix I'm creating a website for a photographer. Sadly, to maintain quality, pictures serving should be equal at least the viewport of the user. Therefor, on Retina devices such as the new Macbook Pros, there should be images of about 1800x2880px....
common-pile/stackexchange_filtered
Gnuplot: plot only final dataset I would like a way to plot only the last (final) dataset in a file that contains multiple datasets. Can anyone suggest a way of doing that? e.g. if I know there are exactly 10 datasets in the file then: plot 'myfile.txt' index 9 would plot the final one. I don't know in advance how m...
common-pile/stackexchange_filtered
Connole So if my brain and an octopus brain are totally different, but we both feel pain when injured, how can pain be the same thing in both cases? Amy That's exactly the multiple realizability problem. Pain isn't identical to any specific brain state because different physical systems can realize the same mental sta...
sci-datasets/scilogues
Why does this code have a missing return statement error? If I change the else if portion of this code to an else statement it runs without any problems so I get how to make it run. What I'm a little confused about is why I get a missing return statement error when it is in its current form. My return is dependent on t...
common-pile/stackexchange_filtered
Testing promises with mocha chai and sinon I would like to test my promise resolve handler and promise rejection handler using mocha,chai and sinon.In addition,I have got the sinon-chai plugin and sinon-stub-promise plugin set up. This is my block of require statements: var chai = require('chai'); var expect = chai.exp...
common-pile/stackexchange_filtered
How do I count columns on a custom WPDB query? How would I count the columns of a custom WPDB query? This does work although I need a different kind of output: $sql_assoc = "SELECT * FROM test"; $num_cols = count((array) current($sql_assoc)); echo $num_cols; OUTPUT: 47 But what I would want is every column+the tot...
common-pile/stackexchange_filtered
Antonym for "derived"/"derivative" Suppose an idea or an artistic work A is derived from another idea or work B. We would call A the "derivative" or the "derived". What would we call B? I looked for antonyms of derived on thesaurus.com * and couldn't find any. * - although I'm really looking more for the converse of de...
common-pile/stackexchange_filtered
Why does get_called_class() report wrong result after static call from a different object? I've found some odd behaviour in some legacy code that I am trying to understand. I have boiled it down to a simple test-case. <?php class Foo { function DoFoo() { print("[" . get_called_class() . "]"); } } cl...
common-pile/stackexchange_filtered
Who cast the spells over the troll treasure? In The Hobbit, after Thorin and company raid the troll's cave they bury the treasure they looted. It's says "they" cast lots of spells over the treasure to help hide it. Then they brought up their ponies, and carried away the pots of gold, and buried them very secretly not...
common-pile/stackexchange_filtered
Matplotlib event_handling line picker This example makes it possible to click a legend and thereby change a plot. I want to do something similar, but then not by clicking the legend, just by clicking the line in the plot. I tried to do it like this: self.ax = self.fig.add_subplot(1,2,1) data = NP.array(2,10) #filled ...
common-pile/stackexchange_filtered
Problem when converting a date time to string with Php and SQL Server I have a problem getting a data type date from SQL Server to Php at the moment of executing it, below message appears. Catchable fatal error: Object of class DateTime could not be converted to string in $sql1="select id,name,date"; $output1= arra...
common-pile/stackexchange_filtered
How to check if Html.ValidationSummary has a value when using client-side validation I'm building something in MVC4. Want to make this work: @if (!Html.ViewData.ModelState.IsValid) { <div class="alert alert-danger"> @Html.ValidationSummary(false) </div> } I understand this will be fine if the for...
common-pile/stackexchange_filtered
Xamarin.iOS support XCode 11.6? Last Xamarin.iOS XCode support is 11.5 for iOS 13.5. XCode 11.6 stable was released July 15, 2020. When Xamarin.iOS will support XCode 11.6 for release app on iOS 13.6? Still being worked on (not merged yet) : https://github.com/xamarin/xamarin-macios/pull/9128 Now Xamarin.iOS support ...
common-pile/stackexchange_filtered
Unable to change line-height of element inside heading I have a heading (h1) containing a small. The small is styled to font-size: 60%. Everything looks fine until the small is too long to fit on one line and line breaks. What happens then is that the line-height of the small is way too high. Changing it to 1 or < 1 ma...
common-pile/stackexchange_filtered
Card flip animation in react native Is there a way to flip my card based on buttons press inside the card in react native? Like I have card that contains 2 buttons - Yes and No. On pressing, yes or no the card should flip and the flipped card with have button that may link to a new page on after being pressed. The prob...
common-pile/stackexchange_filtered
Bracha on Blowing Shofar the whole month Why is there no Bracha made on the Blowing of Shofar in Elul, like there is a bracha when one reads the Meggilah on Purim and lights candles on Chanukah (which are also Rabbinic)? The Nois Hadeshe says it is because the blowing the whole month of Elul is partially a preparation...
common-pile/stackexchange_filtered
Create custom hibernate query I am trying to create a custom query, but my select returns empty results. this.getSession() .createQuery("FROM com.dummy.tralala.MyClass AS test where test.name in (:labels)") .setParameter("labels",myLabels).list() ; what is wrong? when I do it like this .createQuery("FROM com.dummy.tra...
common-pile/stackexchange_filtered
sql sum - dealing with dirty duplicates in join table I am pulling reports out of a bookkeeping system. The system has a nasty habit of putting duplicates in the DB which it handles internally (instead of making it clean in the first place!) as an example - this is the totals table for invoice 125: +------------+------...
common-pile/stackexchange_filtered
Azure ftp uri not valid I have a web site on azure and I have to ftp some files using asp.net to that server. I am using following code which throws an exception "The requested URI is invalid for this FTP command." FtpWebRequest ftpWebRequest = (FtpWebRequest)WebRequest.Create("ftp://abcd-prod-xyz-001.ftp.azurewebsites...
common-pile/stackexchange_filtered
How can I import a file with two different custom extensions? I have case where two files with same name but different custom extensions, for example in react native i have : CompA.android.tsx CompA.ios.tsx and i want to import like this import CompA from './CompA' but i got error from typescript says: "Cannot fin...
common-pile/stackexchange_filtered
N-queens in Scala def queens(n: Int): List[List[(Int, Int)]] = { def placeQueens(k: Int): List[List[(Int, Int)]] = if (k == 0) List(List()) else for { queens <- placeQueens(k - 1) column <- 1 to n queen = (k, column) if isSafe(queen, queens) ...
common-pile/stackexchange_filtered
Using a system environmental variable in href for a pdf document Is there a way to use a windows environmental variable in \href that uses this environment variable in the output PDF document? When I use \href{run:\%foo\%\\bar.cpp}{bar.cpp} The PDF Reader I use (Adobe Acrobat Pro) appends SomeDriveLetter:\ to the fro...
common-pile/stackexchange_filtered
Boost.Test - Undefined symbol when overriding main I want to provide my own main function while using Boost.Test. So I have included the following macros: #define BOOST_TEST_ALTERNATIVE_INIT_API #define BOOST_TEST_NO_MAIN My main function looks like this: int main(int argc, char* argv[]) { int exitCode = ::boost::...
common-pile/stackexchange_filtered
How to call AJAX callback to upload a file? i am trying to upload a file through ajax callback (array buffer) and it's working fine when file size is around 6MB, but when file size around 10MB this error appear POST http://localhost:90/ords/wwv_flow.ajax 500 I am trying the by below code :- apex.server.process( ...
common-pile/stackexchange_filtered
jupyter notebook keyerror: 148 on running lambda I've been trying to learn an old github post, I have fixed most problems: def create_location_count(features): for feat in features: loc_count = data.pivot_table(values=feat, index='location',aggfunc=lambda x: sum(x>0)) data['loc_count_%s'%feat] = dat...
common-pile/stackexchange_filtered
Do all character sets have ASCII in common? The reason I ask is that there's a "standard" for affix files that says to read the first line of a file, and it will tell you how the file is encoded: The first line specifies the character set used for both the wordlist and the affix file (should be all uppercase). For e...
common-pile/stackexchange_filtered
Algorithm for evaluation of spin-weighted spherical harmonics Is there an algorithm to evaluate spin-weighted spherical harmonics (swSH) at arbitrary points on the sphere? In particular I am looking for, e.g. a recursion relation to evaluate the "spin weighted Legendre functions" ${}_sP^m_l$, which satisfy the follow S...
common-pile/stackexchange_filtered
Advice Desired: Predicting US Tornado Counts Via Multi-Level Model I wish you good health and the best in life (whatever that means for you in particular). Context I want to model aggregated (monthly) tornado counts in the United States for a question on Metaculus. Specifically, I want to predict the number of tornadoe...
common-pile/stackexchange_filtered
rotation matrix $ R $ to axis and angle Is it possible to convert a $ 3 \times 3 $ rotation matrix $ R $ to axis and angle representation such that the axis $ n = \left ( n_x, n_y, n_z \right ) $ is enforced to have all positive values and the angle is bound between $ \left [0, 2\pi \right ) $. Right now I am using: $$...
common-pile/stackexchange_filtered
Bhagvad gita 18 :66 , is surrender to krishna possible without leaving duties BG 18.66: Abandon all varieties of dharmas and simply surrender unto Me alone. I shall liberate you from all sinful reactions; do not fear. Now, everyone can't leave all duties but wants liberation from sinful reactions. Now if I can't leave...
common-pile/stackexchange_filtered