text
stringlengths
70
452k
dataset
stringclasses
2 values
Route attributes range constraint vs range attribute validation With the new Attribute Routing and its constraints it seems the border why I should use attributes to validate my DTO`s gets blurry more and more. I can do a Range validation on 2 ways now - consider that the first approach has an action with a complex cla...
common-pile/stackexchange_filtered
Which one is having better complexity f1 = (n+m) +(n+m)log(n+m) or f2 = n*m Which function f1 or f2 have better time complexity if f1 = (n + m) + (n + m) * log(n + m) and f2 = n * m It is easy to see that for larger values of n, m (n+m) + (n+m)log(n+m) ~ (n+m) because (n+m)(log(n+m) + 1 ) ~ (n+m). Where as n*m w...
common-pile/stackexchange_filtered
Good sources for learning Markov chain Monte Carlo (MCMC) Any suggestions for a good source to learn MCMC methods? Related question: good summaries (reviews, books) on various applications of Markov chain Monte Carlo (MCMC) Nice coverage of sampling methods is in Bishop https://www.microsoft.com/en-us/research/upload...
common-pile/stackexchange_filtered
Is there a way to create a function that does not need parentheses? Well, probably a strange question, I know. But searching google for python and braces gives only one type of answers. What I want to as is something low-level and, probably, not very pythonic. Is there a clear way to write a function working with: >>>m...
common-pile/stackexchange_filtered
How was SEELE able to find the last angel (Kaworu)? At the end of the original series, Gendo Ikari seems to be diverging from their original idea, and to prevent this SEELE (committee?) sends Kaworu to NERV directly, aiming to make contact with the angel in terminal dogma. Ritsuko seemed to know the real identity, so w...
common-pile/stackexchange_filtered
drive mountpoint automatic renaming What is causing this to happen every few months? BackinTime: "Can't find Snapshots location!" Never use backintime. Please show getfacl /media/$USER normally udisks2 is mounting harddrives unter /media/your-user-name. when the mountpoint is loosing its acl marks udisks can not ...
common-pile/stackexchange_filtered
iOS - sqlite database replacement made replaced db readonly While working in an iOS app, i have created a database when app launches. I also had a preloaded database in app/resource which actually same database with some preloaded data. When i replaced app database with preloaded app/resource database with NSFileManage...
common-pile/stackexchange_filtered
How to serialize an object and string variable? objectApiName = 'Account' newFieldConfigJson={"Type":"Text","Value":"Name","Order":"8"} I have these two values that I need to serialize in the below given format: {"objectApiName":"Account", "fields": [ {"Type": "LABEL", "Value": "Please enter additional details be...
common-pile/stackexchange_filtered
UWP Hosted App (Javascript) - authentication according to my research, UWP-hosted apps should be able to use the current user to authenticate at webservices / webpages, if the following is true: Capabilities: Enterprise Authentication Private Network (Client&Server) Internet Client However - I experience the followin...
common-pile/stackexchange_filtered
What is the difference between destroySteps() and removeAllSteps() in SAP UI5? I wanted to do something with a Wizard in SAP UI5 and came across those two methods. When looking a the method description of the documentation, the description has the same meaning (to me): Where is the difference? Thanks in advance! See...
common-pile/stackexchange_filtered
Select box not showing properly on a survey form ​div{ padding: 10px; } <div> Occupation: <select name="occupation"> <option value="student1">Student (high school or less)</option> <option value = "student2">University student</option> <option value = "unemployed">Unemployed</op...
common-pile/stackexchange_filtered
How to get Saved WIFI SSID information (not saved wifi Password) by using adb shell command - on Non-rooted devices? I am trying to find a way by which I can get a list of the remembered networks' SSID on an Android device. I have seen a few threads asking similar questions. However, the few questions that I have found...
common-pile/stackexchange_filtered
How to post file and data to api using httpclient I am at learning phase and i want to post file and data to api using httpclient. i have tried this. Here is my controller code string baseUrl = ServerConfig.server_path + "/api/Payment/AddMedicineOrder"; Dictionary parameters = new Dictionary(); pa...
common-pile/stackexchange_filtered
I still have to use my old e-mail address to sign-in, despite my new e-mail address showing up in "Your logins" page Whenever I try to log-in using my new e-mail address (that is listed in "Your logins" page), I get "No user found with matching email" message. Update: I have solved the issue on my own and posted the an...
common-pile/stackexchange_filtered
Having issues with charset in my blazor project I'm starting to work with blazor, with one demo project, and Im having a problem with the charset, its not working, maybe it's not implemented where it is needed, I don't really know. So I have the charset implemented in the index.html, a html file inside the wwwroot, and...
common-pile/stackexchange_filtered
Rails Devise Omniauth omniauth_openid_connect issue, how to work with endpoints with different hosts I need some help in configuring omniauth_openid_connect gem (https://github.com/omniauth/omniauth_openid_connect). I have two endpoints one for Authorization and another for token: Authorization endpoint: https://oauth....
common-pile/stackexchange_filtered
How to fake user on staging environment with omniauth and devise I use the developer provider for omniauth (with devise and rails 3) on local development environment and several provider on production. For the staging environment (manual integration test system) I would like to have something similar, where I can login...
common-pile/stackexchange_filtered
Search File Paths Based on File Name Array I have two string arrays in my PowerShell script: $search = @('File1', 'File2'); $paths = @('C:\Foo\File1.pdf', 'C:\Foo\Bar.doc', 'C:\Foo\File2.txt'); How can I get all file paths which contain the file names from the search array? Can this be done in a pipeline? You could u...
common-pile/stackexchange_filtered
Push all objects after a selected object into an array I have a web page that returns a list of objects like: date.pdf names.csv address.pdf age.csv cost.csv budget.csv data.pdf race.pdf contractors.csv When a user checks budget.csv, I want every object with the .csv extension from that point to be pushed into csv_fil...
common-pile/stackexchange_filtered
Database Model description using constants I want to create a class with static constants which are used whenever a part of an application want to access the database in any way. This way I want to remove all magic numbers and string inside my application code except at one place. So any time later any changes to the d...
common-pile/stackexchange_filtered
SF Workbench - API Version - v55 Not Appearing I require to use Workbench with SF API v55 (Summer '22) so that I may deploy Service Cloud Voice (SCV) Contact Center with features that are in v55 My SF Org is running Summer '22 (v55) Currently when I select the dropdown for APIs I only see v54, a week or so ago there wa...
common-pile/stackexchange_filtered
JavaScript - cannot set property of undefined - Apigee I am keep getting the below error { "fault": { "faultstring": "Execution of Testing1 failed with error: Javascript runtime error: \"TypeError: Cannot set property \"case\" of undefined to \"120\". (Testing1.js:3)\"", "detail": { "err...
common-pile/stackexchange_filtered
Is “Oxygen-Starvation” during exercise a real phenomen? Cross-Posted from Physical Exercise, as I suspect this Q is a bit more bio-science focussed than is appropriate for that StackExchange I play hockey (field hockey) at a slightly-below-elite level. I train (but don't play) with players who play in the UK National ...
common-pile/stackexchange_filtered
Displaying/scrolling through heaps of pictures in the browser I want to be able to browse through heaps of images in the browser, fast. THe easy way (just load 2000 images and scroll) slows down the scrolling a lot, assumedly because there's too much images to be kept in memory. I'd love to hear thoughts on strategies...
common-pile/stackexchange_filtered
What does @:keep mean in Haxe? I am new to Haxe and playing with the OpenFL Starling Sample code - I noticed a @:keep metadata before the class declaration. What does it mean? @:keep class TouchScene extends Scene { // ... } Haxe allows metadata tags on classes and functions. @:keep is a metadata tag that instru...
common-pile/stackexchange_filtered
$S$ and $G$ are roots of $x^2 −3x +1=0$. Find equation whose roots are $\frac{1}{S -2}$ and$\frac{1}{G-2}$ If S,G are roots of $x^2 −3x +1=0$, then find equation whose roots are $\frac{1}{S -2}$ , $\frac{1}{G-2}$. So , the way my sir solved it is that He took x = $\frac{1}{S -2}$ , then he got S = $\frac{2x+1}{x}$. I a...
common-pile/stackexchange_filtered
Optical Audio out stuck on on a MacBook Apple have made an interesting headphone port for the MacBook (and some other Intel Mac models). It works like a standard jack: nothing plugged in -> audio comes out of built-in speakers headphones/external speakers plugged in -> plays through headphones/external speakers but ...
common-pile/stackexchange_filtered
How do I start a script for a button in HTML to change font size? I'm not sure how to start a script that sets a font size when the button is clicked. I'm supposed to have a button labeled normal, medium and large. There are several ways to change the properties of HTML entities: Via the onclick attribute in HTML: <b...
common-pile/stackexchange_filtered
Swift Charts with Custom Symbol Shapes The following code tries to show two points with different symbols. The first one has a custom shape. The code causes the error No exact matches in reference to static method 'buildExpression'. Replacing .symbol(point.symb) with .symbol(CustomTriangle()) shows both points with the...
common-pile/stackexchange_filtered
Bootstrap span classes not working as expected I wrote my first bootstrap program. <!DOCTYPE html> <html> <head> <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="row"> <div class="span9">Level 1 of Column</d...
common-pile/stackexchange_filtered
Hitachi CR210 console command I am looking for command for console for Hitachi CR210. this is the equivalent of HP ILO, where you can connect to ILO IP with ssh, have access to console (if OS is in text mode), issue power off/on hosts, simulate a blade withdrawal and all. login to host give me the following host:~ # ss...
common-pile/stackexchange_filtered
Modify instance variable used by multiple Tasks I need some help with handling Tasks. I have an XML String which is deserialized into a class. The class itself contains a property, e.g. rssProvider which is set to an unique value like MSN or YAHOO. However there can be multiple values delimited with an , in this field....
common-pile/stackexchange_filtered
Can you create a pattern for HTML input fields with a minimum number of letters of a certain type? I want to create a pattern for an HTML input field that needs to have at least 10 numbers in it and may also have spaces and a plus sign on top of that, but it's not required. It's important that numbers and spaces can be...
common-pile/stackexchange_filtered
Simple imperative linked list I've decided to learn a bit of C++, and so I've started with a simple linked list. There's no input to the program and should always output hlo. This is as in main I build a list consisting of hello, and use Get and last to get the data. I don't know C++, or C, and so this is mostly a stab...
common-pile/stackexchange_filtered
two laravel installations session destroy I have two laravel 4 installations in my htdocs folder. htdocs/laravel1 and htdocs/laravel2. Both have different databases and also a different key in app/config/app.php Both installations have the driver database for sessions in the config. I want to start both installations w...
common-pile/stackexchange_filtered
Number of subgroups of order 2017 in S2017 I want to prove that the number of subgroups of order 2017 in the Symmetric group $S_{2017}$ equals $2015!$ First of all, 2017 is a prime number. I used that to prove that the number of elements of order 2017 in $S_{2017}$ equals $2016!$ earlier. I tried using the Sylow Theore...
common-pile/stackexchange_filtered
lldb is not starting an application this is my first experience in commandline mode of lldb. unsuccessful. installed minimal kit with clang, lld, lldb v5 (ubuntu 16.04) sample application built with clang. trying to start: lldb applcation >run error: process launch failed: unable to locate lldb-server-5.0.0 so now ...
common-pile/stackexchange_filtered
Chef git cookbook: how to fix permission denied while cloning private repo? I have a cookbook, that uses deploy_key cookbook to generate deploy key & git cookbook to clone private gitlab project. Chef always says that he has deployed keys successfully and gave them proper rights. But sometimes it works fine, sometimes ...
common-pile/stackexchange_filtered
Frequency in pandas timeseries index and statsmodel I have a pandas timeseries y that does not work well with statsmodel functions. import statsmodels.api as sm y.tail(10) 2019-09-20 7.854 2019-10-01 44.559 2019-10-10 46.910 2019-10-20 49.053 2019-11-01 24.881 2019-11-10 52.882 2019-11-20 84.77...
common-pile/stackexchange_filtered
How do I check if a link exists in a page? There is a form having a link clicking on which field set will be collapsed to show fields under it. HTML is shown as below. <span class="fieldset-legend"> <a href="#" class="fieldset-title"> <span class="fieldset-legend-prefix element-invisible">Hide</span> Attach ...
common-pile/stackexchange_filtered
Cloud Functions: Can't see function logs in function explorer When I deployed my Cloud Functions previously I could see the logs and everything in the logs explorer. However, there were some errors and upon some research, I found that in order to get my queue in the functions I have to create it Cloud Functions SDK. So...
common-pile/stackexchange_filtered
trying to run kextutil on kext file returns permissions error Hi Stackoverflow Community. Trying to run through the following tutorial - so I can learn how to code a driver util. http://www.robertopasini.com/index.php/2-uncategorised/625-osx-creating-a-device-driver I'm at the point where I'm trying to run kextutil on ...
common-pile/stackexchange_filtered
SensorSimulator Openintents simulating for 2 emulators Hey is it possible to have two instances of Sensor Simulator connecting to a app running on 2 Emulators so that i can uniquely give motion events to each of the Emulator ? you want to run your app on two simulators simultaneously or what? ya ..i want to run my ap...
common-pile/stackexchange_filtered
Changing Global: Text Area based on an exposed filter in views? A client wants to display different text in a page depending on the value of the View's Exposed Filter. I could throw this logic into the template.php or use javascript (showing and hiding a span depending on the value), but this feels like a very poor wa...
common-pile/stackexchange_filtered
string vs numeric fields in a query I'm getting an error 3061, too few parameters on this: Dim PrbApps1 As Recordset Set PrbApps1 = CurrentDb.OpenRecordset("Select * FROM [Application] WHERE [PYR_TenderRef] =" & TenderID.Value) where TenderID is a textbox I'm new to this, but I've check everything I can think of. Pro...
common-pile/stackexchange_filtered
Callbacks from C native to Xamarin native My requirement is to implement the async call from native c library to xamarin native application to get all the data coming from server. /** * @brief OOB Data receive callback (__NULLABLE) * * When receiving data from the sender this function is called. * You get a pointer...
common-pile/stackexchange_filtered
URL-NFC tag unique and identifyable request I have the following problem: I'm developing a web-app which controls a lighting console and only on person at a time can control it. When somebody new visits the web-app this person gets control and this is the expected behavior. But I don't want anybody from anywhere else w...
common-pile/stackexchange_filtered
How can I use both .Hyperlink.Add Address with .Formula on VBA? Greetings for everyone! Introduction. At the work, we use an electronic document management web application (we can name it for example as "webdocs") that allows us to search the documents by their specific number. The "webdocs" have an option to download ...
common-pile/stackexchange_filtered
How can I pass multiple values in a function parameter? I am trying to make a program that calculates compound interest with 3 different lists. The first item in each list are the variables needed in the formula A=P(1+r)^n. These are the instructions. Albert Einstein once said “compound interest” is man’s greatest inve...
common-pile/stackexchange_filtered
PanacheEntityBase setting by default id as not nullable, even if specifying the reverse I have an java class set as entity, which is defined as follow: package com.redhat.bvbackend.player; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import java.util.List; import javax.persistence.CascadeType; import j...
common-pile/stackexchange_filtered
Angular Material mat-cell datepicker pass custom ID to the event handler function I added an Angular Material mat-datepicker inside a mat-cell. When the datepicker is selected and the date is changed it will call a function in the typescript side. I am trying to figure out during the mat-table binding, how to bind the...
common-pile/stackexchange_filtered
Starting an inequality family: How far can we go? Consider the inequality $$(ab+bc+ca)\cdot\left(\frac{1}{(ka+b)^2}+\frac{1}{(kb+c)^2}+\frac{1}{(kc+a)^2}\right)\,\ge\,\frac{9}{(k+1)^2}\tag{"Case $k$"}$$ with variables $\,a,b,c\in\mathbb{R}^{>0}\,$ and parameter $\,k\in\mathbb{R}$. (At least) the two instances with $\,k...
common-pile/stackexchange_filtered
implicit function theorem with domain of definition not an open set or half open set The following is a question about the nature of the domain of definition when we wish to apply the Implicit Function Theorem. My question has to do with the nature of the domain of definition, say $ S \subset \mathbb R^{n+m}.$ In most...
common-pile/stackexchange_filtered
Select all rows that fully intersect with the input array? Consider the following table id int lang_codes text[] 1 {eng,fre} 2 {eng} I need to select all the rows from the table that intersect with the input array, but only when all the items in the lang_codes are present in the input array, e.g.: if th...
common-pile/stackexchange_filtered
Symfony command on controller generates "Maximum execution time" I used this snippet in my controller $app = new Application($this->container->get('kernel')); $input = new StringInput('generate:doctrine:entity --no-interaction --entity=ModelBundle:MyTest --fields="title:string(100)"'); $output = new StreamOutput(fopen...
common-pile/stackexchange_filtered
Back up the download folder on win10 in OneDrive Seems that one drive could only backup "desktop" "documents" "photos", but not the "download" folder? Do you see the Download folder in the regular window? The Downloads folder is sort-off designed for ephemeral data. However, you can try to do the same thing OneDri...
common-pile/stackexchange_filtered
How to parse dates in SQL? I have dates stored in a table in a varchar format, like this: 2014-05-29 Year Month Day So I thought that for using BETWEEN selections, I could get rid of the dashes (20140529) and select between two dates easily like that. For example, between the dates 2014-01-01 and 2014-02-01 would be se...
common-pile/stackexchange_filtered
Compare a key in an Object in an Array with another key in an Object in Another array and merge them together if the values are equal I have two arrays: var array1 = [ { id: 1, name: 'Name 1' }, { id: 2, name: 'Name 2' }, ... ]; var array2 = [ { someId: '1', someField: 'Some Value 1' }, { someId: '2', someFi...
common-pile/stackexchange_filtered
Vert.x: Is there a difference between deploying a verticle n times vs setInstances(n)? Is there a major between doing DeploymentOptions options = new DeploymentOptions().setInstances(2); vertx.deployVerticle("com.mycompany.MyVerticle", options); and vertx.deployVerticle("com.mycompany.MyVerticle"); vertx.deployVerticl...
common-pile/stackexchange_filtered
Using advanced for loop instead of for loop I am a bit confused and I would need some clarification. Not too sure if I'm on the right track, hence this thread. Here is my code that I want to decipher into advanced foreach loop. int[] arrayA = {3, 35, 2, 1, 45, 92, 83, 114}; int[] arrayB = {4, 83, 5, 9, 114, 3, ...
common-pile/stackexchange_filtered
How many passwords can we create that contain at least one capital letter, a small letter and one digit? I have a problem in combinatorics. How many passwords can we create such as: Each password has length $n$ when $n\ge3$. Each password must contain at least one capital letter (there are 26 letters in English), and ...
common-pile/stackexchange_filtered
Java regexp that only matches URLs without protocol and www I need a rather greedy regex that agressively matches strings that does not begin with any protocol such as "http://" or "ftp://" and at the same time doesn't match strings that begin with a "www" (or both combined, of course). I'm fairly new to Java and regex...
common-pile/stackexchange_filtered
User PC types the number 56 occasionally Welcome to the weirdest question of 2014 so far. Yesterday, a user's computer (Windows 7 Pro, on domain) started typing 56 at random intervals. I saw it sit there and type "5656565656" into notepad over the span of a minute or two, but sometimes it would go half an hour of not ...
common-pile/stackexchange_filtered
Using COUNT(*) inside CASE statement in SQL Server Is it possible to use count(*) inside case statement in T-SQL? I am trying to update records in table, but I would like to have 2 cases. First case should do update when EndDate is less than StartDate, second case should make update only when I have exactly one record ...
common-pile/stackexchange_filtered
How to activate Application.OnKey method even under protection I have used an Excel viewer in my C# Winform application. This viewer opens different .xls files with various number of sheets dynamically. I have to protect all sheets at the beginning of the application and also end of the sheetchange event handler. Now I...
common-pile/stackexchange_filtered
Robotium crash during simple Android JUnit test I cannot get a trivial Robotium test running: public class TapsTest extends ActivityUnitTestCase<Ad> { public TapsTest() { super(Ad.class); } Solo mSolo; @Override protected void setUp() throws Exception { super.setUp(); mSolo = new Solo(getInstrumentation(), g...
common-pile/stackexchange_filtered
Designing NoSQL Data Model and Storage System I have got a problem scenario like below: The XYZ website need to show a page with list of all the recipes and when user clicks on each of the recipe they want to show the Recipe page with their ingredients. They also want user to further click into each of the ingredient a...
common-pile/stackexchange_filtered
Log4J loggers for different classes I want to use Log4J for logging my java projects. I created a log4j.properties file in the src directory with the following content: # Root logger option log4j.rootLogger=INFO, file, stdout log4j.logger.DEFAULT_LOGGER=INFO,file2 # Direct log messages to a log file log4j.appender.fi...
common-pile/stackexchange_filtered
I want to check whether a string contains specific characters repeated more than thrice For example, if I have a string containing 'A' or 'B' or 'C' more than three times in a row, that string is invalid: PPAAAFAL - Valid , AAABBBCC- valid , NABCCCC - invalid , AAAAAAAA- invalid ... etc. I know that I can check fo...
common-pile/stackexchange_filtered
How to calculate a 95% Confidence Interval I have this data: structure(list(age = c(62.84998, 60.33899, 52.74698, 42.38498 ), death = c(0, 1, 1, 1), sex = c("male", "female", "female", "female"), hospdead = c(0, 1, 0, 0), slos = c(5, 4, 17, 3), d.time = c(2029, 4, 47, 133), dzgroup = c("Lung Cancer", "Cirrhosis",...
common-pile/stackexchange_filtered
Polygon Clipping The question I have here is quite hard for me to describe in words... So I'll use Pictures! In general, The issue I have is as follows: Say I have Polygon A: Which is intersected at two points by an open polygon B: What algorithm can I form two closed polygons out of this intersection? (Note that the...
common-pile/stackexchange_filtered
How do "% chance on critical strike to apply condition" effects stack in Guild Wars 2? I am currently playing an Engineer and one of its traits in firearm is called Sharpshooter. It's description is "30% chance to cause bleeding for 3 seconds on critical hit." Suppose I also got a Superior Sigil of Earth. It's descript...
common-pile/stackexchange_filtered
How to obtain latest slipstreamed installation media for OS X? I'm looking for a way to obtain an updated installation media for OS X 10.6.x, currently 10.6.6 I am looking for a similar solution to the Windows slipstreamed installation media and preferably a solution to put the kit on a USB drive in order to improve th...
common-pile/stackexchange_filtered
Two 12 V heater elements in series in a dual hotend I have ordered a dual hotend Chimera and it came with 2x 12 V heater elements (in my rush I forgot to order the one with 2x 24V). Is it possible to run these 12 V heater elements in series? I am planning on running this with an SRK 1.3 board. What printer do you ha...
common-pile/stackexchange_filtered
Difference in latency between public and internal IP addresses Should there be a difference in latency when accessing resources by their public IP address versus their private, internal IP address? And if there is, would (mis)configuration be to blame? My understanding (probably over-simplified) is the router will be s...
common-pile/stackexchange_filtered
Parsing numeric data with thousands seperator in `polars` I have a tsv file that contains integers with thousand separators. I'm trying to read it using polars==1.6.0, the encoding is utf-16 from io import BytesIO import polars as pl data = BytesIO( """ Id\tA\tB 1\t537\t2,288 2\t325\t1,047 3\t98\t194 """.encode("utf-1...
common-pile/stackexchange_filtered
VBA for Excel code to find and change formatting of substrings of text within a cell I'm using VBA for Excel. I have code that does the following: Take an array of words (called Search_Terms) I then have a function (see below) that receives the Search_Terms and a reference to a Cell in Excel. The function then search...
common-pile/stackexchange_filtered
Weekly Featured Image for Mar 21, '11 This is the place to submit and vote on photos for the week of Mar 21 to be featured on the main site. Rules: Limit one photo per person per week. A specific photo may be submitted at most two weeks in a row, and not more than four times a year. Keep all images appropriate, we wan...
common-pile/stackexchange_filtered
15 puzzle problem using Branch and Bound As per my knowledge, the node which having the least cost is branched in branch and bound approach to solve n puzzle problem. What happens if there are multiple nodes with minimal cost ?? Any of the node is taken or every node must be branched ?
common-pile/stackexchange_filtered
Make the code run faster without nested loop I am trying to solve assignment problem, the code I wrote takes extremely long to run. I think it's due to nested loop I used. Is there another way to rewrite the code to make it more efficient. The question I am trying to solve. Basically, starting at first element to comp...
common-pile/stackexchange_filtered
how do i return attribute after inserting in laravel? I want the insert option in laravel to return an attribute called 'orderid' after it inserts the data in to database.I have come across the insertGetId feature which returns the id of the inserted row, but i donot have an in the table ,instead i have a attribute cal...
common-pile/stackexchange_filtered
How to use less space for ~ In a paper, I need to use the abbreviated form of Figure as in "see Fig. 2". To avoid line breaks between Fig. and the number itself, I place a ~ in between. However in that case, the inserted space is way too much and a \, looks a lot better. So the question is, how can I protect the Figure...
common-pile/stackexchange_filtered
Linearization of $ m \dfrac{dy^2}{dt^2} = u(t) - C_d \left( \dfrac{dy}{dt} \right)^2-mg $ $$ m \frac{dy^2}{dt^2} = u(t) - C_d \left( \frac{dy}{dt} \right)^2-mg $$ where $$\begin{align*} y(t)&=\text{missile altitude}\\ u(t)&= \text{force}\\ m&= \text{mass}\\ C_d&= \text{aerodynamic drag coefficient} \end{align*}$$ How ...
common-pile/stackexchange_filtered
contextDestroyed never called when Tomcat is shutdown in Eclipse I'm facing this issue where whenever I shutdown my Tomcat 8.0 on Eclipse, contextDestroyed on my ServletContextListener class is never called, but contextInitialized runs normally when I startup Tomcat. I'm using Servlet 3.1 version. Code: @WebListener pu...
common-pile/stackexchange_filtered
What if only parent version in POM? Inspecting various POMs I saw that sometimes they have <version> tags only in <parent> section. Sometimes they have the following code <version>${parent.version}</version> in the main section along with version in parent. Which version value will be used in these various cases? The ...
common-pile/stackexchange_filtered
Flutter theme is not changed on Windows I am new to Flutter and decided to follow a tutorial on making a spotify clone using Flutter. He specifies a custom dark theme, and when he runst the code it is indeed a dark theme, but when I run it it is still white. I initially thought I made a type somewhere so I copied his c...
common-pile/stackexchange_filtered
Getting wrong validation message using Angular.js I have an issue.i am getting wrong validation message while using Angular.js. I am explaining my code below. <div class="input-group bmargindiv1 col-md-12"> <span class="input-group-addon ndrftextwidth text-right" style="width:180px">Member Type :</span> <select class...
common-pile/stackexchange_filtered
Difference between memset and initialization (array)? I've been working with some C code and I would like to know what the difference is between next codes: double myArray[5] = {0,0,0,0,0}; and double myArray[5]; memset(myArray,0,5*sizeof(double)); Could there be a problem for replacing the second one with the first ...
common-pile/stackexchange_filtered
Magento 2. Do I need custom code(e.g. Plugins) to trigger reindex logic for an Update on Save(realtime) configured Index? My question is simple and straight forward. Do I need to add custom logic to call my indexer(e.g. plugin on afterSave) when the indexer is configured as Update On Save or is Magento supposed to cal...
common-pile/stackexchange_filtered
WKB to WKT JavaScript function Turns out json isn't so good at transporting binary data. But with HTML5, XHR2 is now capable of transferring blobs cleanly. I'm looking to transfer binary geometry (to save bandwidth) and decode it on the client. To no avail, I've scoured the web for a javascript-based WKB (Well-known Bi...
common-pile/stackexchange_filtered
Sharing keystore between multiple apps I am developing an SDK/API that will be used by apps not written by me. I want my code to generate a private key once and store it on the device. This key should be unique per device, I don't mind it being erased on factory reset, and I don't need to extract it from the device. S...
common-pile/stackexchange_filtered
Could not open or put a Hibernate Session in ValueStack: Cannot open connection I have created application using struts and hibernate. While running application am getting following error in Eclipse IDE: org.hibernate.SessionException: Error! Please, check your JDBC/JDNI Configurations and Database Server avaliability....
common-pile/stackexchange_filtered
Deploying a Java Project to a JBoss Server Just so that this doesn't end up marked as a duplicate right off the bat, I did look through the site and find answers to similar questions, but not mine. Although if it turns out there's no answer/this is still a duplicate, I understand. At my new job, I just got an assignmen...
common-pile/stackexchange_filtered
Why does ALTER TABLE ... ALTER COLUMN ... fill the version store in TempDB I had to change a BIGINT column in a large table from nullable to non-nullable. ALTER TABLE my.Table ALTER COLUMN myColumn BIGINT NOT NULL Running this in our UAT and RC environments took around 3 hours with low levels of concurrent activity. ...
common-pile/stackexchange_filtered
Do gums have any nutritional value? Do gums (e.g., xanthan, guar, cellulose, glucomannan) have any nutritional value, or do they pass undigested like chewing gum does? Are there known allergies to any gums? Gums are considered fibre because they are ignored by our microbiome. Besides, industry (at the contents of any ...
common-pile/stackexchange_filtered
Extract forename if the character is more then 2 letter I have to get the forename from the c.forename if c.known_as column is null or blank. This i achieved with case when statement using CASE WHEN IND.KNOWN_AS IS NULL OR ind.KNOWN_AS='' THEN ind.FORENAMES ELSE ind.KNOWN_AS END AS 'Known As' My issue i...
common-pile/stackexchange_filtered
Change id of clone children in jQuery I have a table on which I have a hidden line that I clone in order to add new lines dynamically. var $clone = $('#table-invoicing').find('tr.hide').clone(true).removeClass('hide'); $('#table-invoicing').find('table').append($clone); Each line have a id and a data-type. The hidden ...
common-pile/stackexchange_filtered
how to extract part of a filename before '.' or before extension I have files in format below: abc_asdfjhdsf_dfksfj_12345678.csv hjjhk_hkjh_asd_asd_sd_98765498.csv hgh_nn_25342134.exe I want to get the value before the . and after the last _. The result would look like: abc_asdfjhdsf_dfksfj_12345678.csv ----> 12345...
common-pile/stackexchange_filtered
JDBC Code Change From SQL Server to Oracle In the JDBC code, I have the following that is working with SQL Server: CallableStatement stmt = connection.prepareCall("{ call getName() }"); ResultSet rs = stmt.executeQuery(); if(rs != null) { while(rs.next()) { //do something with rs.getString("name") } } ...
common-pile/stackexchange_filtered
CFQUERYPARAM not working in ColdFusion 10 I am passing three integers into a function in a CFC, like this: <cfscript> Q = TOPBIKES.GetTopBikes(127, 10, 11); writeDump(Q); </cfscript> The CFC uses these integers to run a query like this: <!--- GET TOP BIKES ---> <cffunction name="GetTopBikes"> <cfargument name="Fea...
common-pile/stackexchange_filtered