text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Flux Transfer of Current also involved in Autotransformer?
In Isolated Transformer, the primary and secondary are separated yet when there is a demand for current in the secondary, the primary can produce current and transfer it via fluxes. I understood this a bit although I'd appreciate it if someone can share a ... | {
"pile_set_name": "StackExchange"
} |
Q:
How I could host the html documentation of my API to be browseable online in GitHub?
I wonder if exists a free online service for developers where to host the contents of a library's API documentation, I mean the index.html and all the files that composes a html documentation.
This is the documentation that I will... | {
"pile_set_name": "StackExchange"
} |
Q:
Automating file transfer using Bash scripts in SSH on my new server from old server
How can I connect to a remote host using SSH and create one Bash script to copy all files and folder from my old server to my new server for backup every day?
A:
Set up key-based ssh authentication
First, you need to generate a s... | {
"pile_set_name": "StackExchange"
} |
Q:
I anticipate slowness in this algorithm to check for vowels
The speed of the following alorithm would be determined by the number of words in the sentance and the number of characters in each word. I believe this is O(N^2)? or worse.
private bool CheckForNoVowels(string sentence)
{
foreach (string word in sent... | {
"pile_set_name": "StackExchange"
} |
Q:
NSView subclass for NSMenuItem
I want to create a subview of NSView and link it to a MenuView.xib.
I'll have:
- MenuView.m
- MenuView.h
- MenuView.xib
in xcode I created my xib and set as customclass my 'MenuView'. Now I would like to add my new view programmatically via a command like this:
NSView *vv = [[MenuVi... | {
"pile_set_name": "StackExchange"
} |
Q:
How to "flatten" the structure with the TABLE expression
I have a VARRAYS TYPE wanted to "flatten" the structure with the TABLE expression.
The example data
CREATE OR REPLACE TYPE ARIS.NUMBER_VARRAY_5 AS VARRAY (5) OF NUMBER NOT NULL;
CREATE TABLE ARIS.TEST_2
(
DATE_START DATE,
DATE_END DATE,
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to bind selector to method inside NSObject
In the macOS swiftui project I have the following code
import Cocoa
import SwiftUI
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
var window: NSWindow!
var statusItem: StatusItem = StatusItem()
func applicationDidFinishLaunching... | {
"pile_set_name": "StackExchange"
} |
Q:
Download whole directories in Python SimpleHTTPServer
I really like how I can easily share files on a network using the SimpleHTTPServer, but I wish there was an option like "download entire directory". Is there an easy (one liner) way to implement this?
Thanks
A:
I did that modification for you, I don't know if... | {
"pile_set_name": "StackExchange"
} |
Q:
Meno's paradox - Did Socrates contradict himself?
[Source:] Meno then proffers a paradox: "And how will you inquire into a thing when you are wholly ignorant of what it is? Even if you happen to bump right into it, how will you know it is the thing you didn't know?" Socrates rephrases the question, which has come ... | {
"pile_set_name": "StackExchange"
} |
Q:
Updating dataframe with rows of variable size in Pandas/Python
I have imported an excel sheet into a dataframe in Pandas. The blank values were replaced by 'NA's. What I want to do is, for each of the row values, replace them based on indices of a dictionary or dataframe.
df1 = pd.DataFrame(
{'c1':['a','a','b'... | {
"pile_set_name": "StackExchange"
} |
Q:
Deleting duplicate reference to remote Git repo (without deleting the repo)
I currently have 2 references to the same remote Github repo. Both references have the same remote URL, so when I do
git remote -v I get:
myrepo https://github.com/<user ID>/myrepo (fetch)
myrepo https://github.com/<user ID>/myrepo (pus... | {
"pile_set_name": "StackExchange"
} |
Q:
Number formatting axis labels in ggplot2?
I'm plotting a fairly simple chart using ggplot2 0.9.1.
x <- rnorm(100, mean=100, sd = 1) * 1000000
y <- rnorm(100, mean=100, sd = 1) * 1000000
df <- data.frame(x,y)
p.new <- ggplot(df,aes(x,y)) +
geom_point()
print(p.new)
Which works, but ggplot2 defaults to scientifi... | {
"pile_set_name": "StackExchange"
} |
Q:
F# compiler keep dead objects alive
I'm implementing some algorithms which works on large data (~250 MB - 1 GB). For this I needed a loop to do some benchmarking. However, in the process I learn that F# is doing some nasty things, which I hope some of you can clarify.
Here is my code (description of the problem is... | {
"pile_set_name": "StackExchange"
} |
Q:
How to split on ( not a value ) followed by ( a value )?
I have this code here:
var fields = row.split(/regex goes here/);
I want to split row on each occurrence of
|
but not
*|
How do I write this simple regular expression. I thought there was a not character of sorts but I can't seem to find a good reference... | {
"pile_set_name": "StackExchange"
} |
Q:
Why isn't my database being created in ASP.NET MVC4 with EF CodeFirst
I've been following along with a tutorial by Julie Lerman about using EF CodeFirst to generate the database from code. I'm using MVC4 and working with the default controllers. All I want to do is generate the database. However, in her tutoria... | {
"pile_set_name": "StackExchange"
} |
Q:
Using VLOOKUP in an array formula on Google Spreadsheets
Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the LOOKUP function into an array formula works:
{=SUM(LOOKUP(grades, scoringarray))}
With the VLOOKUP function this does not work (only gets the score for the fi... | {
"pile_set_name": "StackExchange"
} |
Q:
Looking for a HIERARCHY of math subjects
If you were to "map" mathematics onto a tree structure where the top is "Mathematics", and then below it the different branches, then sub-branches, etc.
What do you suggest is a good structure, for educational purposes? The idea is this - if I have a student learning a top... | {
"pile_set_name": "StackExchange"
} |
Q:
Removing rows from dataframe whose first letter is in lowercase
I have a dataframe like -
FileName PageNo LineNo EntityName
1 17743633 - 1 TM000002 69 Ambuja Cement Limited
2 17743633 - 1 TM000003 14 Vessel Name
3 17743633 - 1 TM000003 12 tyre Chips (Shred... | {
"pile_set_name": "StackExchange"
} |
Q:
Does this question deserve to be in the Review Audit List?
Is this question a Good Question and qualified to be in Review Audit list?
This question does not:
Specify which RDBMS or Database is in use, so Proper database tags are missing
Show any search effort
Include already tried code
I failed on this review in... | {
"pile_set_name": "StackExchange"
} |
Q:
Dynamic url not generated currently for lat and Long android
I have generated Current location value and i am passing it to the URL dynamically. I am getting value of Latitude and 'Longitude' in my Logcat. but dynamic URl for LatLongUrl is not generated currently.
Log.d(String.valueOf(mLastLocation.getLatitude()),... | {
"pile_set_name": "StackExchange"
} |
Q:
Not set cookie overwriting method parameter
So, I have a method that converts the timezone into another:
public function timeZoneConverter($from, $to = "America/New_York", $outputformat){
$time = new DateTime($from, new DateTimeZone('America/New_York'));
$time->setTimezone(new DateTimeZone($to));
... | {
"pile_set_name": "StackExchange"
} |
Q:
Pester not mocking function that is dot-sourced
I'm using Pester to test a PowerShell script that dot-sources another script. When I try to mock the function that is dot-sourced, Pester refuses to use the mocked version. I'm having the same problem when I try to source the function by using adding it to a .psm1 fi... | {
"pile_set_name": "StackExchange"
} |
Q:
Wait for Ajax call in function to end, THEN return object to an outside variable
I want to use JavaScript asynchronous, as it was intended. I want to assign the recieved data/objects to as many variables as I'll need (DataModel01, DataModel02, DataModel03 and so on). The idea is that my need for API data change al... | {
"pile_set_name": "StackExchange"
} |
Q:
Error while creating a table from the values of two tables
I am new to sql. I was just trying to create and store data into a table from the values of two tables
1 st table has UserName.
2nd table has password.
So, I have written a sql query with gets both values from two tables and display it in a single table.
... | {
"pile_set_name": "StackExchange"
} |
Q:
QML TableView rowDelegate styleData.row not defined
I am trying to create a custom row delegate for a TableView. according to the Documentation, the rowDelegate should have access to a property called styleData.row. However, when I'm try to access this property, it is undefined. I used the debugger to check whats ... | {
"pile_set_name": "StackExchange"
} |
Q:
how to choose a random secret key for ECDH
I am a beginner, I can understand the basics of ECC and elliptic curve, i can't find where I missed to understand. But I have a great doubt in ECDH regarding below. Could any of you please clarify for me? I will ask with the help of an example.
Example:
Let $G=(1,3)$ be ... | {
"pile_set_name": "StackExchange"
} |
Q:
Question on AJAX Library (like DWR)
I have a web app which uses AJAX library (DWR) to get data dynamically
i.e. as user clicks on some table items, it dynamically gets details for that item by making a DWR call...It actually gets the complete HTML code as string for the table (Actually in the background, a Java me... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the difference between symbols?
I checked that :xyz == 'xyz' is false. But we can call functions inside rails with :index or 'index'. Please clear my wonder.
A:
:xyz and 'xyz' are indeed different. That does not contradict with the fact that a method can take either type of argument. For example, Array#*... | {
"pile_set_name": "StackExchange"
} |
Q:
What is purpose of reset.css & text.css in 960 Grid CSS?
I'm newbie to 960 Grid CSS & I found in some tutorial's that I need to use reset.css & text.css
Can anyone explain actual purpose of these two files?
A:
Eric Meyer's CSS Reset (http://meyerweb.com/eric/tools/css/reset/)is a very popular example, and one I ... | {
"pile_set_name": "StackExchange"
} |
Q:
WIX-Installer MSI Publisher Unknown
How to provide publisher Name for MSI installer which is developed using WIX Installer?
While installing my .msi installer it's showing unknown publisher, how to provide a name for publisher?Is it possible to do this within WIX? If so kindly help me how to implement this using W... | {
"pile_set_name": "StackExchange"
} |
Q:
Can I get the access mode of a `FILE*`?
I have to duplicate a FILE* in C on Mac OS X (using POSIX int file descriptors all the way is unfortunately out of question), so I came up with the following function:
static FILE* fdup(FILE* fp, const char* mode)
{
int fd = fileno(fp);
int duplicated = dup(fd);
... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS not linked to HTML page
Good morning guys,
I am playing around building a small website. In the html I have my link to my CSS file but for some reason the CSS is not being shown on the page.
The link tag looks as follows:
<link rel="stylesheet" href="./styles/style.css" type="text/css">
The site does not cont... | {
"pile_set_name": "StackExchange"
} |
Q:
SWIFT URLResponse no output // Google Maps PI
I build an little task in SWIFT-XCode where I am trying to fetch and print some JSON Data, but the console doesn´t show me any error´s or result. Maybe someone can help me with the problem?. Here´s my code:
let url = URL(string: "https://maps.googleapis.com/maps/api/di... | {
"pile_set_name": "StackExchange"
} |
Q:
saxon: using fn:doc() in a query parameter
Why can't I use fn:doc in a "query parameter using xpath"?
The document parameter is working fine:
saxon -q:test.xq +foo=foo.xml
But this gives me the error "Unrecognized option: foo.xml"
saxon -q:test.xq ?foo=doc("foo.xml")
A:
It's probably your shell. Different shel... | {
"pile_set_name": "StackExchange"
} |
Q:
Populate a dropdown inside an include PHP
I have an index.php which calls the DB connection and populates the page.
If a condition is met an include will be called upon with a dropdown list.
I am unable to populate this dropdown, it gives me no error just a blank screen.
index.php:
<?php
require_once('db_connectio... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I check programmatically if a drive is subject to system restore feature in windows?
As the title tells, I need a programmatic way to find out if a particular disk drive is subject to System Restore in Windows.
You may see this information in Control Panel/System/System protection tab.
I'm developing a se... | {
"pile_set_name": "StackExchange"
} |
Q:
How to debug droplets using AppleScript
Just 3 lines of script to be able to test a droplet application without leaving applescript editor
set fich to POSIX file "/Appli/conv2spct.app" as string
tell application "Finder" to open POSIX file "/Users/yourusername/Desktop/somefile" using application file fich
If th... | {
"pile_set_name": "StackExchange"
} |
Q:
Alert on with Javascript
I have a table on my JSP file that show my products and on every row I have a button that delete this data:
<body>
<table>
<tr>
<td>ID</td>
<td>Name</td>
<td>Value</td>
<td>Quantity</td>
<td>Total</td>
</tr>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Show that two points from four are at a distance $\leq \sqrt{3}$ in an equilateral triangle.
In a given equilateral triangle of sides length $3$, we locate 4 points. Prove that there are two of them are located at a distance less or equal to $\sqrt{3}$.
I arranged the four points in this configuration:
As the p... | {
"pile_set_name": "StackExchange"
} |
Q:
Angular ui-select multiple clean ng-model value
I am trying to use the ui-select and the component is cleaning my array.
Example:
{{ vm.staff_hotels }}
<ui-select multiple ng-model="x" theme="bootstrap">
<ui-select-match placeholder="Not selected">{{$item.name}}</ui-select-match>
<ui-select-choices repeat=... | {
"pile_set_name": "StackExchange"
} |
Q:
how to apply gvim regular expressions to multiple files
How to apply regular expressions to multiple files in gvim ?
A:
I am going to assume "apply regular expressions", means use a substitution via :s over many files.
Vim does not come with an "all-in-one" native project-wide find & replace command. Instead it ... | {
"pile_set_name": "StackExchange"
} |
Q:
Magnitude of instantaneous velocity vs speed
Magnitude of instantaneous velocity = $|dr/dt|$ but this is not always equal to $ds/dt$ where ds is the infinitesimally small change in distance in the interval $dt$
Which one is speed?
A:
For both you are only travelling an infinitesimal amount.
The difference betw... | {
"pile_set_name": "StackExchange"
} |
Q:
Android app crashes unexpectedly
I am new to Android developement and had recently started on a project to get WiFi SSID, BSSID and MAC address. However, the app crashed unexpectedly immediately after opening it.
The error log in Android Studio says that:
FATAL EXCEPTION: main
Process: com.example.android.wifi, PI... | {
"pile_set_name": "StackExchange"
} |
Q:
PHP get continue date next month and get price loan every month with interest pay on first month
I'm continuing with my previous question.
Now I need to set loan every month with price value.
The price value is get from totalLoan * 5%
Example:
Total loan = 4,000,000 IDR format
Total month loan = 4
Interest = 5%
So... | {
"pile_set_name": "StackExchange"
} |
Q:
appharbor not deploying static content
I just started hosting a web application on AppHarbor, and i configured it to listen to my github repository commits.
After each commit, I see on AppHarbor the build running the tests, and deploying, but when i go to my app page, hosted on AppHarbor I don't see any images, an... | {
"pile_set_name": "StackExchange"
} |
Q:
Changing background-image of div via click on another div
First of all my code can be found here in total.
http://jsfiddle.net/yfukm8kh/1/
The part I'm having problems with is the following.
var changePic = function (direction, id, array) {
var intID = parseInt(id);
var intDir = parseInt(direction);
i... | {
"pile_set_name": "StackExchange"
} |
Q:
Excluding elements contained within another element with CSS or XPath
Here's a chunk of XML:
<xml>
<section>
<element>good</element>
<section class="ignored">
<element>bad</element>
</section>
</section>
</xml>
It's easy enough to select all elements, or all elements inside a section.ignored... | {
"pile_set_name": "StackExchange"
} |
Q:
The truth of Nyonyon Theorem
Let $s= ab$ be a semiprime number. Then the Nyonyon Theorem states that $s+a$, $s+b$, $s+a+b$ are not all coprime to three.
(In other words: there exist no $s= ab$ semiprimes such that $s+a$, $s+b$ and $s+a+b$ are coprime to three.)
I've checked plenty of numbers, and I think Nyonyon T... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I count the occurences of the values in each row of a joined table?
I am creating a database for a hotel system using sql developer and oracle 11g and I need to print the first_name, last_name, email and how many times each person (email) visited the hotel. I therefore need to count how many times email occ... | {
"pile_set_name": "StackExchange"
} |
Q:
ZSH setopt PROMPT_SUBST not working
I'm trying to get customize my zsh prompt and want to evaluation a function with git commands every time my prompt is generated. I'm using setopt PROMPT_SUBST, but it doesn't seem to be working. This is my zshrc:
setopt PROMPT_SUBST
autoload -U colors && colors # Enable colors
... | {
"pile_set_name": "StackExchange"
} |
Q:
How find this $\int_{1}^{2}f^2(x^2)dx+5\int_{2}^{3}f(x^2)dx+7\int_{3}^{4}f(x)dx=\dfrac{1871}{30}$
Determine all function $f:R\to R$ for which
$$\int_{1}^{2}(f(x^2))^2dx+5\int_{2}^{3}f(x^2)dx+7\int_{3}^{4}f(x)dx=\dfrac{1871}{30}$$
show that
$$f(x)=x?$$
because we easy to find this follow value
$$\int_{1}^{2}x^4dx+5... | {
"pile_set_name": "StackExchange"
} |
Q:
Can ESB/BPM allow to totally get rid of coding apart from wrapping webservices?
In a big company I work for, a very (costfull) ESB has been bought, the purpose is to be able to align with business goal quickly by resusing legacy infrastructure wrapping them with webservices, that is to say no more coding needed. A... | {
"pile_set_name": "StackExchange"
} |
Q:
Doctrine Entity Listener in Symfony 2.6
According to How to use Doctrine Entity Listener with Symfony 2.4? it should be pretty simple to setup the entity listener feature in Symfony.
Unfortunately, my listener nevers gets called and I don't know why. I've checked the compiler pass of the doctrine bundle and also t... | {
"pile_set_name": "StackExchange"
} |
Q:
Django reverse and url default instead of NoReverseMatch
Is it possible to set up a default URL which will be used whenever a reverse match cannot be found? The idea is that if in production there is a typo, I would like to display something akin to a 404 or a descriptive error page, instead of getting a NoReverse... | {
"pile_set_name": "StackExchange"
} |
Q:
Choosing an application server for web application development
My manager has asked me to suggest an application server for web application development work.
What are the factors that needs to be considered before we select any application server for web application development in Java J2EE development?
If I selec... | {
"pile_set_name": "StackExchange"
} |
Q:
In a class room setting, why do people look at you when you are asking a question?
Picture this scenario:
You are a student enrolled in a large class
You arrived slightly late to the class, so you are sitting at the back of the class
You raise your hands to ask the teacher a question.
As you speak, you observe t... | {
"pile_set_name": "StackExchange"
} |
Q:
Insert rows within a DataFrame, based on certain conditions
I have a dataframe, 'df' and I want to insert rows based on conditions within df itself. Each 'ID' value must have a corresponding entry for both drinktypes (Beer & Wine). I'd like to say if any ID entry does not have a Beer Type for instance, add row Wit... | {
"pile_set_name": "StackExchange"
} |
Q:
APNS: Failed to validate certificate chain for courier.sandbox.push.apple.com - didRegisterForRemoteNotificationWithDeviceToken is not being called
I've implemented apns in my applicaton and it was working till yesterday without any problem. Today suddenly it stopped working and the following method is not being c... | {
"pile_set_name": "StackExchange"
} |
Q:
Upgrading from 5.2.2 to 6.4.2 (yum install VS yum update)
Need to perform upgrade on 3-nodes ES clusters and writing test script before putting it to playbook. Anyone updated ES with yum update instead of install (OS AWS RHEL 7.2) ???
Here's the install script, I will be grateful for your comments:
#Installing fr... | {
"pile_set_name": "StackExchange"
} |
Q:
Dialog doesnt display properly without aero
i have a application i have been making a for a while now using C++/Win32 and when i create my first dialog it shows up weird when i dont have aero enabled or i am not using windows 7/8.
here is a screenshot of what it looks like:
This is my last resort, as i have no ... | {
"pile_set_name": "StackExchange"
} |
Q:
Answer awarded bounty but not accepted as an answer. Bounty not added to reputation
I've answered a question with a bounty.
Ultimately the question author found out the solution by himself, posted it and accepted that answer. But they decided to award my answer a bounty for my effort and help. Unfortunately, the b... | {
"pile_set_name": "StackExchange"
} |
Q:
Radiation by a transparent body
We know that the rate of radiation is proportional to the surface area offthe emitting body. However, this is true for an opaque body.
When considering a transparent body, will the radiation still be proportional to the surface area? Or, will it be proportional to the volume of the ... | {
"pile_set_name": "StackExchange"
} |
Q:
Add more data to state whilst keeping original (React)
I have an app that get data from an API as a page. I've added functionality to get the next page of the data and set it to state.
I want to be able to get the next pages data but rather than replace the state I want to add the next page value.
Here is the cod... | {
"pile_set_name": "StackExchange"
} |
Q:
Add menu itens in Commerce Kickstart administrative toolbar
I have worked with default Commerce Kickstart 2 toolbar menu, and I really liked. But now I installed a new module, Commerce Feeds, and I can not access it because there aren't menu entries in toolbar. Is there a way to add menu entries like the one I nee... | {
"pile_set_name": "StackExchange"
} |
Q:
.htaccess file mod_rewrite redirecting to parent directory instead of sub-directory when file names are same in both directories
I am accessing the root directory via domain-A.com and a sub-directory via domain-B.com
All redirects are working properly for domain-B.com except those that are having same names for in... | {
"pile_set_name": "StackExchange"
} |
Q:
000webhost service website database error
On my 000webhost website I had created this SQL file, named test.sql
Here is it's coding:
CREATE TABLE `members` (
`id` int(4) NOT NULL auto_increment,
`username` varchar(65) NOT NULL default '',
`password` varchar(65) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to print the entire python idle commands history to a text file
How to print the entire python idle commands history to a text file. For example the list of commands I already typed
A:
One prints the contents of a Shell window the same as an editor or output window. Select File and then Print Window and the... | {
"pile_set_name": "StackExchange"
} |
Q:
Как с помощью js сделать выпадающий список?
Есть код php на opencart:
opencart.com/catalog/view/theme/default/template/extension/module/category.tpl
<div class="leftSideBar">
<?php foreach ($categories as $category) { ?>
<?php if ($category['category_id'] == $category_id) { ?>
<?php if ($category['children']) { ?... | {
"pile_set_name": "StackExchange"
} |
Q:
Jenkins without icons
My instance is working fine but it's been a while since the icons were working. You can see it here. I tried restarting the instance various times without any luck.
A:
You had green-balls plugin "1.12-h-1" plugin installed. This plugin is designed for eclipse hudson 3.0 and incompatible wit... | {
"pile_set_name": "StackExchange"
} |
Q:
Timely commit to DB using Golang
I successfully "batched" many statements in lots of 500-1000 rows to be Inserted at once. However this was using simple for loop and manually setting it to 500-1000 loops. Something like:
for i:=0;i<500;i++ {
// Create a string of 500 values to be inserted at once
}
// Insert th... | {
"pile_set_name": "StackExchange"
} |
Q:
Checking that an additional field is not null in Leads is causing System.NullPointerException error
I'm new to Apex as a Salesforce admin and I'm trying to figure out a simple Apex trigger exercise. The goal of this trigger is to ensure that when a Lead's first name or last name = 'test', the lead's status should ... | {
"pile_set_name": "StackExchange"
} |
Q:
Python for loop efficiency
I have this block of code, which works, but takes about 8 seconds to execute. I know that it is the second for loop, since there is a loop inside of a loop. However, I believe that I need both loops, because I need to cross-reference the tracks list.
Does anybody know of a way to make th... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get position from markers for tracking? (Android Mapbox)
Here is the problem:
I want to show the user the best route to reach a marker after the user presses a button inside the infoWindow. The problem is, I can't get the marker's Location data due to some problem with Latlng and Position classes. (I am usi... | {
"pile_set_name": "StackExchange"
} |
Q:
Definite integration $\int_{0}^{\pi}\frac{x\sin(x)}{a + \cos^2(x)}\,\mathrm dx$
I am having trouble computing the following definite integral:
$$\int_{0}^{\pi}\frac{x\sin(x)}{a +\cos^2(x)}\,\mathrm dx$$
My approach was to try and pick a very easy value for $a$, and use an identity on the denominator to try and sim... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the datacontext of the user control?
I have a user control like so:
<Grid>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding NameC}" Width="100" />
<TextBlock Text="{Binding Filename}" />
</StackPanel>
</Grid>
with DP in code behind:
public TestUc()
{
... | {
"pile_set_name": "StackExchange"
} |
Q:
How to "read" a user account with Powershell
I am trying to create a backup powershell script for user documents. I have created a script where I am putting on a form box the username I want to backup and then the script proceeds. The last thing is that I want to have a rule that if I put a wrong name, the script ... | {
"pile_set_name": "StackExchange"
} |
Q:
coordinate change in a list of points
I have a list(?) of rules (geometrically points) like;
pts={{a->3,b->6},...}
and I want to apply the logarithm to each and change the name, e.g.,
ptsNew = {{u -> log(3), v->log(6)},...}
I tried Log@@, and also Log//@ but neither even converted the number, much less the name ... | {
"pile_set_name": "StackExchange"
} |
Q:
Swift - Error passing data between protocols / delegates (found nil)
I am developing an application with swift 3.0. Where what I want to do is, from the "MainMapVC" class, which is the view where you have a map with a date slider (see the attached image). I want to move the slider and send that slider position (1,... | {
"pile_set_name": "StackExchange"
} |
Q:
How to know ".automaticDestinations-ms" files to which app relates?
Does anyone know (because on Microsoft forums nobody answered me), how I can find what application has which automaticDestinations-ms file in %appdata%\microsoft\windows\recent\automaticdestinations?
That's the folder where Windows 7 stores its j... | {
"pile_set_name": "StackExchange"
} |
Q:
Kivy multi-threading and update screen
I am wrote a piece of python code that handles multiple processes and it works great, but I am trying to add a Kivy based display to this code. I have updated the code to be able to use threads instead of processes, which works. The issue that I have is that I can't seem ... | {
"pile_set_name": "StackExchange"
} |
Q:
Same function with same inputs returns different values
Lets say I have a function like follows:
testFunction <- function(testInputs){
print( sum(testInputs)+1 == 2 )
return( sum(testInputs) == 1 )
}
When I test this on command line with following input: c(0.65, 0.3, 0.05), it prints and returns TRUE as e... | {
"pile_set_name": "StackExchange"
} |
Q:
Cloud9 IDE Not Loading Jquery
I have tried many ways of importing Jquery into my project but I can never get it to work in Cloud9. My code works on other IDEs and text editors, but not on Cloud9. If any body knows more than me about this please help. Here is my project: CLOUD9 PROJECT
A:
It is always useful to o... | {
"pile_set_name": "StackExchange"
} |
Q:
UIDynamicAnimator Shake with spring effect
I'm trying to replace my core animation shake effect in this code
let shake = CAKeyframeAnimation(keyPath: "position.x")
shake.values = [0, 20, -20, 20, -15, 15, -5, 5, 0]
shake.keyTimes = [0, 1/10.0, 3/10.0, 5/10.0, 6/10.0, 7/10.0, 8/10.0, 9/10.0, 1]
shak... | {
"pile_set_name": "StackExchange"
} |
Q:
Using an uninitialised variable in a constructor
So I have a rather simple piece of code:
Soldier Horseman = new Soldier("Horseman",Archer, 20);
Soldier Spearman = new Soldier("Spearman",Horseman, 10);
Soldier Archer = new Soldier("Archer",Spearman, 10);
Where the constructor for soldier takes the ar... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is my simple pthreads program crashing with a segmentation fault?
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <stdio.h>
#include <stdlib.h>
#include<signal.h>
#include<unistd.h>//getch();
#include <termios.h>//getch();
#include <pthread.h>
volatile sig_atomic_t flag = 0;
char get... | {
"pile_set_name": "StackExchange"
} |
Q:
The way "you" can modify a sentence
Shut up you idiot!
Shut up idiot!
How does "you" affect the meaning of the first clause? Are they both formal ways of addressing?
A:
This is direct address in both cases, although it is hardly formal, so there should be a comma after "up" if this is in writing:
Shut up, you... | {
"pile_set_name": "StackExchange"
} |
Q:
How the preposition "of" is used after the article?
I read a sentence in a passage
"We have been taught to believe that our lives are better than the of those who came before use ideology of modern economics suggests that material progress has yielded enhanced satisfaction and well-being."
In the above sentence ... | {
"pile_set_name": "StackExchange"
} |
Q:
Finder go to Clipboard
I’d like to create an Apple script that will use a text path in clipboard and open a new Finder window and go to that path
A:
If you can use the Terminal, do
open "`pbpaste`"
A:
Assuming that the clipboard contains a string of the form /Users/username/path/to/file, this should work:
tell... | {
"pile_set_name": "StackExchange"
} |
Q:
How to test email headers using RSpec
I'm using SendGrid's SMTP API in my Rails application to send out emails. However, I'm running into troubles testing the email header ("X-SMTPAPI") using RSpec.
Here's what the email looks like (retrieving from ActionMailer::Base.deliveries):
#<Mail::Message:2189335760, Multip... | {
"pile_set_name": "StackExchange"
} |
Q:
What's the difference between state.path and route.path in angular2
In reading angular2 documnet, I get confused in CanLoad param,
https://angular.io/docs/ts/latest/guide/router.html
In CanLoad section, it uses /${route.path}, when CanActivate uses state.url.
canActivate(route: ActivatedRouteSnapshot, state: Rout... | {
"pile_set_name": "StackExchange"
} |
Q:
Nginx performance when running multiple instances on the same machine
I'm trying to understand the performance impact of having multiple nginx instances (masters) running on the same machine, rather than having them all load into a single instance using different server blocks. How does the use of multiple instanc... | {
"pile_set_name": "StackExchange"
} |
Q:
Generating a new variable by selection from multiple variables
I have some data on diseases and age of diagnosis. Each participant was asked what diseases they have had and at what age that disease was diagnosed.
There are a set of variables disease1-28 with a numeric code for each disease and another set age1... | {
"pile_set_name": "StackExchange"
} |
Q:
Differentiation using product rule?
I'm stuck on differentiating this:
$$f(x) = \frac{4\sin(2x)}{e^\sqrt{2x-1}}$$
I thought about using the product rule here, but when I do that I get an expression that is hard to simplify, and I need to solve for when $f(x) = 0$.
Is there a simpler way of doing this?
Help here wo... | {
"pile_set_name": "StackExchange"
} |
Q:
¿Dónde está console en la carpeta /app en un nuevo php proyecto creado con Symfony?
Quería utilizar por primera vez el terminal para ejecutar un comando php con el framework Symfony. Sin embargo, he hecho un simple proyecto de creación con$ symfony new myproject
A:
Desde la versión 3.0 de Symfony, la utilidad d... | {
"pile_set_name": "StackExchange"
} |
Q:
Issues about Ajax response
I have used three select boxes with the same class along with a radio button. How can I get the selected values of dropdown in ajax response?
My problem is, I am getting the first select box in ajax, but when I try to select the second or third, I am getting an empty value.
Can you tell ... | {
"pile_set_name": "StackExchange"
} |
Q:
I can't read strings written by the user
I am not able to read characters, strings or numbers. I'm starting to learn js and maybe it's an easy question but I cant answer it by myself. The code I'm using is:
var main = function()
{
"use strict";
var stdout = require("system").stdout;
var stdin = require... | {
"pile_set_name": "StackExchange"
} |
Q:
.htaccess RedirectMatch 301 pattern
I have three patterns that I want to redirect in .htaccess.
https://example.com/questions/name-of-question
https://example.com/category/name-of-category
https://example.com/a-4-digit-number/name-of-post
(The No. 3 like: https://example.com/5485/name-of-post)
all of them need a... | {
"pile_set_name": "StackExchange"
} |
Q:
Specific solution of the Burgers equation $u_t + u u_x =0$ with boundary condition $u(x,0)=e^{-x^2}$
I have difficulty with finding a specific solution to the below PDE
$$\left\{\begin{matrix}
u_{t}+uu_{x}=0\\
u(x,0)=e^{-x^2}
\end{matrix}\right.$$
My attempt:
It is stright forward to get the general solution usi... | {
"pile_set_name": "StackExchange"
} |
Q:
Statically link firebird driver for dbexpress
Is it possible to deploy zero-dll executable that connects to Firebird using dbExprss? If so, how?
Cause I've tried to include
DBXFirebird but the executable always
needs dbxfb.dll.
Thank you all.
A:
Up to Delphi 2006, you can link the dbExpress driver DLLs int... | {
"pile_set_name": "StackExchange"
} |
Q:
Redis pub/sub for single receivers
I am a RabbitMQ user exploring Redis and have two questions regarding the pub/sub mechanism
Can I publish messages to the system where each client (consumer) removes the entry for other clients? I want to publish 100 tasks but each tasks should be processed only by 1-single subs... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.