text stringlengths 175 47.7k | meta dict |
|---|---|
Q:
regex for decimal value restrict 16 digit
I want a regex expression to restrict input decimal value at max. 16 digits or 15 digits and one character (including decimal point)
I found below Regex it is working find in C# code but when i am using it in TextEdit xaml as mask. (DevExpress) throwing exception syntax e... | {
"pile_set_name": "StackExchange"
} |
Q:
R function to inspect number of arguments in another function?
Is there a built-in R function, or a way to write an R function, that can check how many inputs another function takes, and also lists names of optional arguments.
Let's call this desired function, f, then the following command:
f(dnorm)
should output... | {
"pile_set_name": "StackExchange"
} |
Q:
Python - How to pass a variable from one method to another in Python?
I've looked around for a question like this. I've seen similar questions, but nothing that really helped me out. I'm trying to pass the choice variable from the method rollDice() to the method main(). This is what I've got so far:
import random
... | {
"pile_set_name": "StackExchange"
} |
Q:
A general method for a document to extend as much as needed in order to fit the content of the document
I have a python script that automatically creates a LaTex document for a given input. In this document, I have a lot of proof trees (created using the bussproofs package), though it doesn't really matter what ar... | {
"pile_set_name": "StackExchange"
} |
Q:
'sh run global' and 'sh run nat' yield no output but a ton of NAT in 'sh run'
As the topic says, I'm investigating NAT on a clients ASA - it's running old 7.2 train code - I execute 'sh run global' and 'sh run nat' - the latter command only returns a single nat 0 line.
When I do a 'sh run | b static' (which I th... | {
"pile_set_name": "StackExchange"
} |
Q:
display details of record in new VF page when save button is clicked
this is my page1
<apex:page standardController="Case" extensions="newClass" showHeader="false" >
<apex:form >
<apex:pageBlock title="Case Status">
<apex:pageBlockSection columns="1">
<ape... | {
"pile_set_name": "StackExchange"
} |
Q:
Array works fine on localhost but not working on live server (gives error message Undefined offset: 0) - Laravel-5.8
Everything works perfectly okay on localhost but when migrated to godaddy live server(cpanel) I keep getting this error (Undefined offset: 0) on my blade view
I have tested the application on my loc... | {
"pile_set_name": "StackExchange"
} |
Q:
Terraform version error when deploying to AWS through jenkins?
I was deploying using terraform through Jenkins Terraform v0.10.7.
After a success deployment from my local machine using Terraform v0.11.1, I can not do it again from Jenkins, I have this error :
Terraform doesn't allow running any operations against ... | {
"pile_set_name": "StackExchange"
} |
Q:
Review system with login / signup required
I'm writing a review system for items in Ruby on Rails. I want the process to be as follow:
users to start entering their review/ratings
when they hit submit, if they're not logged in, users are redirected to the signup or login page,
they create and account or signup
... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the best way to decorate methods of a Python class?
I am following below conventions to decorate certain methods in a Python class. I am wondering if there are some better ways to do the same. My approach certainly doesn't look good; the call to original member function doesn't look intuitive at all.
from ... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I remove the delay between HTTP Requests when using Asynchronous actions in ASP.NET?
I am using HttpClient to send a GET request to a server inside of a while loop
while (cycle < maxcycle)
{
var searchParameters = new ASearchParameters
{
Page = cycle++,
id = getid
};
var se... | {
"pile_set_name": "StackExchange"
} |
Q:
Sort array of structs by a member of each
I am compiling data using the following structs:
struct Nursing {
var leftTime: Double
var rightTime: Double
var submissionTime: Date
}
struct Bottle {
var bottleQuantity: Double
var bottleUnits: String
var submissionTime: Date
}
struct Puree {
var pureeQuantity: Do... | {
"pile_set_name": "StackExchange"
} |
Q:
Problem with PHP Syntax
I am trying to get a link together using 2 variables but the output is the link and title but no html / clickable link appearing.
I'm getting something link this:
http://www.mydomain.com/post1/post_title_here
Here is the code:
echo '<a href="'.the_permalink().'">'.the_title().'</a>';
Can a... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I change SharedSection in registry using C#?
Regarding this stackoverflow entry in my registry System\\CurrentControlSet\\Control\\Session Manager\\SubSystems I have to change in value windows > string parameter SharedSection=SharedSection=1024,20480,768 the third value from 768 into 2048.
What is the best... | {
"pile_set_name": "StackExchange"
} |
Q:
Promisifying Sheet API v4 causes undefined this
If I use callbacks, the code below using Google's Sheets API v4 works fine.
However, I am trying to apply util.promisify to the API call. This causes:
Cannot read property 'getRoot' of undefined
which is thrown from :
node_modules\googleapis\build\src\apis\sheets\v... | {
"pile_set_name": "StackExchange"
} |
Q:
How to translate jsoup to Objective-C?
How to translate jsoup to Objective-C?
I'm a newbie and much unfamiliar with Java.
Recently I'd like to use jsoup in my iOS project by j2objc, but it seems hard for me.
When I execute
cd /path/to/jsoup-master
j2objc -sourcepath ./src/main/java -classpath /Users/wildcat/Downl... | {
"pile_set_name": "StackExchange"
} |
Q:
jsp need to write a text with different colors
I need to write in jsf 2 texts on a line with different colors. Here is my code:
<h:panelGrid id="accessinfo_grid" columns="3">
<h:outputText id="loginid" value="#{msgs.loginId}" styleClass="label"/>
<h:outputText id="loginid_asterix" value="#{msgs.asterix}" styleClas... | {
"pile_set_name": "StackExchange"
} |
Q:
Visual Studio 2012 and SQL Server Express
Is it possible that the Visual Studio Ultimate that was installed in my machine didn't include SQL Server Express, they didn't turn any option off when installing, they simply installed it following the default options.
A:
It comes with SQL Server, but the instance name ... | {
"pile_set_name": "StackExchange"
} |
Q:
Margin of html element defaulting to fill width of containing div, cannot override
I'm a fairly novice web developer and I'm having a very fundamental problem that I would really appreciate some help with:
No matter what width I set any elements within a certain containing div, safari and Chrome both add extra mar... | {
"pile_set_name": "StackExchange"
} |
Q:
Reducing homogeneous second order differential equation to first order (Operator factorisation)
I need to reduce the homogeneous second-order differential equation
$\ y'' + by' + cy = 0$
to a first-order one using operator factorisation, where$\ b, c$ and$\ y$ are functions of t.
I began by rewriting it in ope... | {
"pile_set_name": "StackExchange"
} |
Q:
How to delete an archieved artifact in jenkins?
1 ) I am using Jenkins with tomcat. I use jenkins cli from java class to create job and to build. I want to delete a archieved artifact. How to accomplish this ?
2 ) another question is, can we give a specific name to the build in jenkins (e.g) i want the build name... | {
"pile_set_name": "StackExchange"
} |
Q:
How to cache NodeJS global modules AWS CodeBuild
Is there a way to cache NodeJS global modules on AWS CodeBuild?
I'm using LernaJS to handle my repository and every time build starts I install it with the command npm install -g lerna (it takes 30 seconds).
To handle this, first I figured out where npm install Ler... | {
"pile_set_name": "StackExchange"
} |
Q:
QTableWidget style per QTableWidgetItem
I'm using a simple QTableWidget to display some QTableWidgetItems, which look like this:
+-------------+-------------+
| | some text 1 |
| some number +-------------+
| | some text 2 |
+-------------+-------------+
| | some text 1 |
| some... | {
"pile_set_name": "StackExchange"
} |
Q:
Appropriate Scala Collection similar to Python Dictionary
I have an algorithm that iteratively returns (key, value). What I want to do is store these results in a structure such that if the key does not exist, it will add it and the corresponding value. Now, if the key exists, it will append the value to an existi... | {
"pile_set_name": "StackExchange"
} |
Q:
Docker Machine error: Hyper-V PowerShell Module is not available
I've checked my Hyper-V settings and PowerShell Module is enabled. I've also found this documented issue: https://github.com/docker/machine/issues/4342 but it is not the same issue since I do not have VMware PowerCLI installed. The issue was closed w... | {
"pile_set_name": "StackExchange"
} |
Q:
AngularJS: ngRepeat doesn't have time to update before new change happens
$scope.add = function(){
$scope.playerCards.push(Deck.drawCard());
if (playerScore > 21){
console.log("You Busted!");
newHand();
}
};
In this blackjack game, the DOM automatically updates to reflect the... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it practically useful to decline GUI for a newbie in Ubuntu?
My Ubuntu is 12.04.
I have just started learning Linux (Ubuntu in particular).
To remember terminal commands quicker, I'd like to not use a GUI.
However, I can't launch installed programs because I don't know where they are.
For example, I have a PDF ... | {
"pile_set_name": "StackExchange"
} |
Q:
wicket authentication / login
I am following this tutorial http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/ in order to learn how to make login and authentication using wicket.
My question/problem is that my login area is on the header and therefor one can login on every p... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I turn a string into the name of an array?
I've think I've created multiple arrays from strings but if I try to inspect the array I receive an error.
File.open("livestock.txt", "r") do |file|
file.readlines.each do |x|
if x.match(/:*:/)
# puts x.inspect
# strip string
... | {
"pile_set_name": "StackExchange"
} |
Q:
Updating user role using asp.net identity
I have the following problem. While using the following code below to change the user's current role i am getting an exception with the message like below:
[HttpPost]
[ValidateAntiForgeryToken]
public virtual ActionResult Edit(User user, string role)
{
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to generate an array of quarter numbers of a year along with year number based on current date using moment.js in node js?
I want to create an array of quarter numbers along with year number using current timestamp in node js.
For example, current quarter is, Q1 and year is, 2020. Now, I want to create an arra... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I make other people's account to do ether transactions with smart contract?
I was making a smart contract which involves people to buy tokens in exchange of ether they send. It works fine in testrpc as all accounts are unlocked, but how do I do it for actual accounts in main network using web3 in nodejs. W... | {
"pile_set_name": "StackExchange"
} |
Q:
Memory leaks and dispose
May I do not understand the conecept or I do something wrong.
I have some questions about the memory management in .NET.
Imagine the situation:
Form1 is the big man Form, as MDI-parent and a little FormChild, is bound as child:
public partial class Form1 : Form
{
public Form1()... | {
"pile_set_name": "StackExchange"
} |
Q:
Why "undefined: StackGuardMultiplierDefault" error?
describe
When I clone GoAdminGroup/go-admin projectin github and run the project by the steps of README.MD file , I get this error
TEST-MBP:example TEST$ GO111MODULE=on go run main.go
go: downloading github.com/mattn/go-sqlite3 v1.11.0
go: extracting github.com/... | {
"pile_set_name": "StackExchange"
} |
Q:
OS X 10.9 Redistributable?
I work in an Apple-only office environment with ~40 Macs. Is it possible for me to download an OS X 10.9 redistributable so that we're not downloading 5+ GB continually over our ADSL link ?
Thanks!
A:
Yes it is.
You can download it once and then distribute it over an external Harddriv... | {
"pile_set_name": "StackExchange"
} |
Q:
Construction of Peltier tiles
I'm learning about the construction of Peltier tiles from Wikpedia. However, some of the statements in the article are not at all clear.
Here's the extract:
Two unique semiconductors, one n-type and one p-type, are used because
they need to have different electron densities. The ... | {
"pile_set_name": "StackExchange"
} |
Q:
Use Tempfile twice?
I'm having an issue with a simple program over what I believe has to do with Tempfiles. I am using 'open-uri' and 'nokogiri' and am trying to do a regex search on a document as well as an xpath search with nokogiri. However, it seems I cannot do this without making two seperate requests for the... | {
"pile_set_name": "StackExchange"
} |
Q:
Appcelerator Studio Crashes on Safari Launch?
I'm working on an iMac 27-inch, Late 2012 (macOS High Sierra)
When I open Safari, Appcelerator Studio crashes immediately! I couldn't figure that out why this is happening.
Does anyone know anything about this?
A:
Can you check what is the error reported in the crash... | {
"pile_set_name": "StackExchange"
} |
Q:
ICY metadata support with ffmpeg
Is there any way to get ICY metadata from shoutcast stream using FFMpeg ?
One way would be to deal with the connection/stream by myself and send Custom IOStream to ffmpeg.
Is there any other simple way? or demuxer available ?
Thanks
A:
There was discussion of a patch for supporti... | {
"pile_set_name": "StackExchange"
} |
Q:
Question about von Neumann algebra generated by a complete algebra of projections
Hi all, sorry if this is a dumb question, I don't know much about von Neumann algebras except the definition and a few relevant facts I've managed to prove by myself so I expect the answer will turn out to be well known. Anyway, let ... | {
"pile_set_name": "StackExchange"
} |
Q:
What abbreviations, letters, or symbols do we use to denote highly degenerate stars?
We have OBAFGKM to denote the strength of hydrogen lines.
Apparently we added S, N, C, and the W classes when we learned of new kinds of stars.
We use T, L, and Y to denote brown dwarfs.
The D classes refer to electron-degenerate ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it necessary to set scrollview.delegate as self?
I am taking an online iOS course provided by Stanford. In the sample code,
@IBOutlet weak var scrollView: UIScrollView! {
didSet {
scrollView.contentSize = imageView.frame.size
// all three of the next lines of code
// are necessary t... | {
"pile_set_name": "StackExchange"
} |
Q:
Does Dapper work on Mono?
We're thinking about moving over to Mono and I see that Dapper works with MySql. However this is with a ADO.NET provider. Does Mono/Linux have a MySql ADO.NET provider and does that work with Dapper?
Eventually we are planning on moving our current site from MySql to PostgreSql and I'm al... | {
"pile_set_name": "StackExchange"
} |
Q:
Display more than one image in DataGridView Image Column? Is it possible?
Is it possible to display more than one image in a column in DataGridViewImageColumn? I have only 1 column and need to dynamically display images. This column could display 1 to 3 images, depending on other conditions.
A:
You could draw th... | {
"pile_set_name": "StackExchange"
} |
Q:
Mysql subquery much faster than join
I have the following queries which both return the same result and row count:
select * from (
select UNIX_TIMESTAMP(network_time) * 1000 as epoch_network_datetime,
hbrl.business_rule_id,
display_advertiser_id,
... | {
"pile_set_name": "StackExchange"
} |
Q:
Fire checkbox event with jQuery Mobile
I am using jQuery 1.8.3 and jQuery Mobile 1.2.0.
I am trying to implement the vertically grouped checkboxes.
I need to detect changes on the checkboxes. An example is available here.
However, it doesn't work on my page (which I don't give because it contains too many dependen... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery / JSON sort results
I have a ColdFusion method getData() which returns a query object as follows:
CustomerCode ServiceCode SubscriberCode Status UserName
-------------------------------------------------------------
811101 8 gertjan OPEN gertjan@blah.net
811101 8 ... | {
"pile_set_name": "StackExchange"
} |
Q:
how can I self sign a tar ball so that later I can verify it was not altered intentionally
I know of md5 or sha256 hashing it won't work for my case -- see "My needs" section
I am having a tar file which resides on a server and the file is consumed by several clients over the internet. I want to ensure that the ta... | {
"pile_set_name": "StackExchange"
} |
Q:
What does "no device" mean when running iostat -En
We presume to have a faulty cable that connects the SAN to a direct I/O LDOM. This is a snippet of the error when running iostat -En
c5t60060E8007C50E000030C50E00001067d0 Soft Errors: 0 Hard Errors: 696633 Transport Errors: 704386
Vendor: HITACHI Product: OPEN... | {
"pile_set_name": "StackExchange"
} |
Q:
Motion verbs and ところ
As I understand it, something like 帰るところだ usually means you are in the process of going home, say on the train. But ところ often has the meaning of "just about to do something."
Does something like 帰るところだ also have this meaning? e.g. Can you say it if you are still in the office and about to leav... | {
"pile_set_name": "StackExchange"
} |
Q:
bash shell array output range to csv
Is there an easier way to do the below? I am reading in a large cvs file and want to only display ranges on the index per line and output back into a csv format.
while IFS=$',' read -r -a myArray
do
echo ${myArray[44]},${myArray[45]},${myArray[46]},${myArray[47]},${myArra... | {
"pile_set_name": "StackExchange"
} |
Q:
Explaination about a statement in LISP about format function
I have to convert a decimal number to binary in lisp. I came across this code while searching on web .
(defun :bits (value &optional (size 64))
(format t "~v,'~B" size value))
So please explain me what will each attribute of the code will do.
A:
So (... | {
"pile_set_name": "StackExchange"
} |
Q:
show the sum of specific columns based on rhandsontable values
I am trying to create a shiny app, that would show a sum of a column (say mtcars$mpg) when rows are selected by the users. e.g if the first two boxes are clicked in rhandsontable, then below i should see a sum of 21 and 21. I am unable to wrap my head... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does Ramanuja refer to the PAshupata sect as the sect of "Black faces"?
Ramanuja attributed this philosophy to the tradition of the Kalamukha(s), the sect of "Black Faces" to which Lakulisha belonged.
What was the reason for referring to it as KAlamukha?
What were RAmanuja's views on the KApAlika and Pasupata... | {
"pile_set_name": "StackExchange"
} |
Q:
HTML canvas change text according to input text
I want to change the text that is on a canvas. The problem that it is just adding and not removing letters as I delete them from the input.
http://jsfiddle.net/pgo8yzrc/
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
window.change = funct... | {
"pile_set_name": "StackExchange"
} |
Q:
Retrieve a specific word from the entire string in android?
I have some data in the html format. I am using Html.fromHtml(String) when setting the data to the textview in android. Also the html data contains 2 to 3 images. I want to get the name of the images from the html data and store them in an array. Based o... | {
"pile_set_name": "StackExchange"
} |
Q:
ArrayFormula retrieve list by multiple criterias
Input
Data sheet
TaskId ClientId Canceled
1 1 0
2 1 0
3 1 0
4 2 0
5 2 1
6 2 0
7 3 0
Report sheet
ClientId
1
1
2
3
Desired O... | {
"pile_set_name": "StackExchange"
} |
Q:
Batch processing in array using PHP
I got thousands of data inside the array that was parsed from xml.. My concern is the processing time of my script, Does it affect the processing time of my script since I have a hundred thousand records to be inserted in the database? I there a way that I process the insertion ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to compare .net FW version number with number stored in variable
Super new here and to #Powershell. I'm making a script to check whether the .Net Framework version that is installed is greater than or equal to a version number stored in a variable.
The issue I have is when setting up the variable that filters ... | {
"pile_set_name": "StackExchange"
} |
Q:
Can a person legally search for work, or other resources to facilitate future immigration, while visiting under the Visa Waiver Program?
I have a friend who wishes to immigrate to the US in the future. However, they do not currently meet any eligibility requirements for a green card nor do they have a sponsor for ... | {
"pile_set_name": "StackExchange"
} |
Q:
Collision of Galaxies
According to the big bang theory, the universe started from a small intial point and is essentially expanding. However, my question is that if the universe is expanding how is it possible for galactic collisons to occur? Are the galacies moving away from a relative position but not moving awa... | {
"pile_set_name": "StackExchange"
} |
Q:
StackExchange clone: where should I add my indexes?
I'm creating an open source stack exchange clone and the following is my schema. What should I add indexes on for it to be optimal?
Here is the schema in Rails format (SQL format below as well):
create_table "comments", force: true do |t|
t.integer "id"
... | {
"pile_set_name": "StackExchange"
} |
Q:
Grids and pointers in c
I made this program in C where an object R is placed on a grid and it's supposed to move taking inputs from they keyboard. For example, thi is what happens if you press N.
0 1 2
0 - - - R - - - - -
1... | {
"pile_set_name": "StackExchange"
} |
Q:
Arrow in tikzpicture between two nodes with midway label
I'm trying to draw a series of labelled nodes in Tikzpicture, so far I have:
\begin{tikzpicture}[box/.style = {draw, semithick, minimum size=1cm}]
\node at (0, 3*3) [box] (0) {Node};
\node at (0, 3*2) [box] (1) {Node};
\node at (0, 3*1) [box] (2) {... | {
"pile_set_name": "StackExchange"
} |
Q:
How to do I print an arraylist to a JTextArea?
I can't seem to figure out how to print an arrayList<String> to a JTextArea and have tried using both append() and setText(). I have also tried to create a method which prints out the ArrayList through a loop, but it can't be added to the JTextArea because it is not o... | {
"pile_set_name": "StackExchange"
} |
Q:
Adding frame to picture in Javafx
i would like to add a frame to a picture using Java and Javafx and then save the framed picture. What would be the best way to do that?
For example say I have a photo of a landscape and want to add a frame to it. The framed photo should look like this:
A:
You could add two imag... | {
"pile_set_name": "StackExchange"
} |
Q:
How to secure a web API from being accessed from unauthorized SPAs
I am building a B2B service whose API can be accessed by third-parties on a subscription basis. Basically, we provide a customizable widget that our customers can embed on their website to make it available to their customers (e.g. a button that op... | {
"pile_set_name": "StackExchange"
} |
Q:
AJAX xmlhttp.send parameters
I have created an AJAX function that when called it changes the color of a specific button. However, I have only managed to do it in a static way, meaning that I put the values sent to the corresponding php script manually.
What I want is to call the function through my html body with... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a function in Emacs to search the filesystem for a file by its name?
I want to open a file that is somewhere deep in my project tree. I know the name of the file, however I don't want to go searching the tree for it. I would like a way to enter just the file name, and have emacs search for me. I should... | {
"pile_set_name": "StackExchange"
} |
Q:
How to print a large canvas across multiple page widths in browser?
My application needs to print out an arbitrarily large canvas that can span multiple page width and height widths.
There was a similar question some time back where it was claimed the browser won't print to multiple page widths.
Since this was a ... | {
"pile_set_name": "StackExchange"
} |
Q:
Complex Numbers....
Suppose a is a complex number such that:
$$a^2+a+\frac{1}{a}+\frac{1}{a^2}+1=0$$
If m is a positive integer, find the value of:
$$(a^2)^m+a^m+\frac{1}{a^m}+\frac{1}{(a^2)^m}$$
My Approach:
After I could not solve it using the usual methods I tried a bit crazier approach. I thought that as the... | {
"pile_set_name": "StackExchange"
} |
Q:
DocuSign Composite Template -- uploaded document is not displaying
I am using DocuSign RestAPI, trying to create an envelope using Composite Template.
My intent is to append a PDF document to the end of an existing template.
Using the below JSON to POST /v2/accounts/{accountId}/envelopes, I am able to get the temp... | {
"pile_set_name": "StackExchange"
} |
Q:
How to store the data within java application?
I am using H2 database which is embedded in my java application. I'm creating the connection to the server as:
jdbc:h2:file:/mydata
Where mydata is the database name. This seemed to tell the database connection caller to find the database within the same directory as... | {
"pile_set_name": "StackExchange"
} |
Q:
Why are changes to my WebJob not being picked up when publishing the Web App?
I have an ASP.NET MVC Web App which is deployed to Azure. The solution within VS 2013 Pro has 3 projects:
the Web App project
a Webjob project
a Common project which stores code which is common to both the App and the Webjob.
The Webjo... | {
"pile_set_name": "StackExchange"
} |
Q:
Range-based intersection of n-number of arrays
Lets say I have the following three arrays:
[
[100, 110, 200, 300, 400],
[40, 90, 99, 150, 200],
[101, 202, 404, 505]
]
how would I go about writing a function getIntersectingRanges(arrays, range) which would return all ranges of max 'width' of range containing... | {
"pile_set_name": "StackExchange"
} |
Q:
Using codeigniter routes to leave out a part of the uri
I have this uri http://localhost/ur/index.php/reports/annual/gm/8312/44724286729 but the annual part serves the purpose of showing the user what report he/she is viewing.
The function that is therefore being mapped is gm with the parameters
public function gm... | {
"pile_set_name": "StackExchange"
} |
Q:
org.hibernate.exception.JDBCConnectionException: could not execute query using hibernate
I've developed an application and it worked just fine locally , and when I uploaded it to a remote server it gave me com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException. I've tried the solution mentioned in th... | {
"pile_set_name": "StackExchange"
} |
Q:
Using PHP with LDAP returns all results into one connected line
I'm trying to get user information from my Active Directory through LDAP. Im using for loops to retrieve each username for a specific AD OU. All results are showing in one line without any separation. If i put
$LDAP_CN into array it just creates a lo... | {
"pile_set_name": "StackExchange"
} |
Q:
In Stargate is there an in-universe explanation of the cumulative effect of Zat'nik'tel (Zat guns)?
Several times we see characters who had previously been shot by a zat gun shot again. The guns were supposed to be painful on the first shot, fatal on the second, and matter-destroying on the third. It seems that mu... | {
"pile_set_name": "StackExchange"
} |
Q:
Delta de Dirac Function linear?
Show that $\delta_0$, Dirac function, defined than $\left<{\delta_0,\phi}\right> = \phi(0)$ is linear.
I trying: Let be $\phi_1,\phi_2$ $\in W^{m,p}(\Omega)$ then $\delta_0(\phi_1+\phi_2)=(\phi_1+\phi_2)(0)$, but I need more steps.
A:
Hint: What is the definition of a linear funct... | {
"pile_set_name": "StackExchange"
} |
Q:
how to set header font color in Latex
Is it possible to change the header font color in Latex?
A:
You could have a look at the sectsty package.
The secsty package provides a set of commands for changing the fount 1 used for the various sectional headings in the standard LATEX 2ε document classes
From the manu... | {
"pile_set_name": "StackExchange"
} |
Q:
Bearing features (2RS versus 2RSH)
I have done sufficient googling to discover that a -2RS bearing is one with two rubber seals. I haven't ascertained much beyond that. For an application currently using a 2RSH bearing, can I replace it with a 2RS bearing? When is the answer yes, and when is the answer no? Thanks!... | {
"pile_set_name": "StackExchange"
} |
Q:
How to explain Real Big Numbers?
Mathematicians, and esp. number theorists, are used to working with big numbers. I have noted on several occasions that lots of people don't have a clear understanding of big numbers as far as the real world is concerned. I recall a request for a list of all primes of less than 500... | {
"pile_set_name": "StackExchange"
} |
Q:
Receiving error of "The type or namespace name 'LayoutsPageBase' could not be found"
To give you entire perspective, I am trying to create a custom ribbon in SharePoint. For that I am following this tutorial. I created the required feature and was able to deploy and test it with simple JavaScript alert. Now I am t... | {
"pile_set_name": "StackExchange"
} |
Q:
C++11 - emplace_back between 2 vectors doesn't work
I was trying to adapt some code and moving the content from a vector to another one using emplace_back()
#include <iostream>
#include <vector>
struct obj
{
std::string name;
obj():name("NO_NAME"){}
obj(const std::string& _name):name(_name){}
obj(obj&& ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to solve problems involving roots. $\sqrt{(x+3)-4\sqrt{x-1}} + \sqrt{(x+8)-6\sqrt{x-1}} =1$
How to solve problems involving roots. If we square them they may go to fourth degree.There must be some technique to solve this.
$$\sqrt{(x+3)-4\sqrt{x-1}} + \sqrt{(x+8)-6\sqrt{x-1}} =1$$
A:
Straight, you can get the... | {
"pile_set_name": "StackExchange"
} |
Q:
ggplot without facet
The following code, from @ROLO in answer to my earlier question generates 3 plots:
require(mice)
require(reshape2)
require(ggplot2)
dt <- nhanes
impute <- mice(dt, seed = 23109)
# Obtain the imputed data, together with the original data
imp <- complete(impute,"long", include=TRUE)
# Melt into... | {
"pile_set_name": "StackExchange"
} |
Q:
ElasticSearch Make Field non-searchable from java
I am currently working on elastic search through my java Application . I know how to index the Java pojo using RestHighLevelClient. How i can make search only on new fields not the complete pojo.?
public class Employee{
private long id;
privat... | {
"pile_set_name": "StackExchange"
} |
Q:
Retrofit 2 API Can I use local file path or json string instead of url?
Hello I am working on an Android App which uses retrofit API getting response from server. Retrofit Automatically parse the json response and creates objects of POJO class. I am storing that json into sqlite and if internet is not connected ca... | {
"pile_set_name": "StackExchange"
} |
Q:
Authors on "the Trouble with the Revolutions of the Mind"
Accepting that planet Earth was not at the centre of the universe and the stars were like just like the Sun but only much further was a "revolution of the mind" that took centuries to accept. Accepting that species evolve and change through time has not bee... | {
"pile_set_name": "StackExchange"
} |
Q:
HTML5 canvas object random path generation
I have a canvas object, a circle, that currently animates along a particular path, rather like a bounce. The simple animation code is as follows:
if (x + dx > canvasW || x + dx < 0) dx = -dx;
if (y + dy > canvasH || y + dy < 0) dy = -dy;
x += dx;
y += dy;
Where dx and... | {
"pile_set_name": "StackExchange"
} |
Q:
Match when column does and does not equal value across multiple rows
I have a table with a many-to-many relationship to two other tables:
CREATE TABLE assoc (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
ref1 INT NOT NULL,
ref2 INT NOT NULL,
INDEX composite_key (ref1, ref2)
);
I want to determine if there ... | {
"pile_set_name": "StackExchange"
} |
Q:
MySQL settings useful to speed up a mysqldump import
Recently I had to import a 7 Gb MySQL dump file to a MySQL 5.6 server. The import took around 7 hours on a mono-core CPU with 1 Gb of RAM.
Someone else tested the import on a MySQL server which has, amongst others, the following settings:
innodb_buffer_pool_siz... | {
"pile_set_name": "StackExchange"
} |
Q:
How to pass text from gets.chomp to a file
I want to push resources :#{get} to the bottom of resources :posts.
get = gets.chomp
@file = File.open('config/routes.rb','r+')
myString = "
resources :#{get}s
"
Rails.application.routes.draw do
resources :users do
resources :posts
end
# For details on the DS... | {
"pile_set_name": "StackExchange"
} |
Q:
Right to Left Languages in Java
When I entered
new String("<some arabic text>".getBytes(), "UTF-8");
despite displayed exactly the way it was pasted (into the eclipse editor), index 0 contained the rightmost character of the string.
(Also, each arabic letter was two bytes, the first byte being -40 for each. Doe... | {
"pile_set_name": "StackExchange"
} |
Q:
Rx.js wait for callback to complete
I am using Rx.js to process the contents of a file, make an http request for each line and then aggregate the results. However the source file contains thousands of lines and I am overloading the remote http api that I am performing the http request to. I need to make sure that ... | {
"pile_set_name": "StackExchange"
} |
Q:
Azure and File.CreateText: FileNotFoundException: Could not find file
I have a simple .Net Core MVC web application that I deploy to Azure. In the application, I am creating a little text file called "test.txt" using File.CreateText(). This works fine on my local PC, but when I deploy it to Azure, I get a strange ... | {
"pile_set_name": "StackExchange"
} |
Q:
What is wrong with my regular expression in R?
I am trying to extract the label, name, address, city, zip, and distance from the following text:
A
Carl's Jr.
308 WESTWOOD PLAZA
LOS ANGELES, CA 90095-8355
0.0 mi.
B
Carl's Jr.
2727 SANTA MONICA
SANTA MONICA, CA 90404-2407
4.8 mi.
...
...
Here is my regula... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I list all sub dir in my internal storage?
I want to have a list of all my sub dir in internal storage I already created in other activity.
I want to do something like this getFilesDir().listFiles(); but this one is for files in root and I want to list dirs to do this subDir = getDir("nameOfDir", MODE_PRIV... | {
"pile_set_name": "StackExchange"
} |
Q:
input datetime set string.format to model item
I've an input of type datetime
<input type="datetime" id="DATA_END_@id" value="@String.Format("dd/MM/yyyy",item.DATA_END_PREZZATURA.ToString())" />
I need to set the model item value in the datetime format dd/MM//yyyy
What is the right sintax?
Thank you!
In the en... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.