qid int64 1 74.7M | question stringlengths 0 70k | date stringlengths 10 10 | metadata list | response stringlengths 0 115k |
|---|---|---|---|---|
2,030,886 | I am new to WPF and trying to wrap my head around WPF's framework, what it does and does not do for you.
To clarify this, I would like to know what is the difference between this:
```
public List<MyCustomObject> MyCustomObjects
{
get { return (List<MyCustomObject>)GetValue(MyCustomObjectsProperty); }
set { Se... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2030886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16241/"
] | In the first case, you're setting up a Dependency Property containing a `List<T>` instance.
In the second, you're making a normal CLR property, but having it setup as an `ObservableCollection<T>`.
For WPF Data Binding, there are some differences here.
Typically, you want all of your properties in the DataContext (wh... |
45,464,860 | In the index.html page I put a .gif before all the tags that laod the files. Then, with JQuery, I removed that loader. But it didn't work. A blank page was shown, because it was waiting for load some .js files.
So, I created a script that load the files dynamically.
This is the html code:
```
<!doctype html>
<htm... | 2017/08/02 | [
"https://Stackoverflow.com/questions/45464860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5210601/"
] | The error `There are multiple modules with names that only differ in casing.` is indicating the wrong import is being targeted with how you are trying to use `Observable`.
The import should be with a capital "O" like:
`import { Observable } from 'rxjs/Observable';`
This will import the individual `Observable` operat... |
19,929,215 | What does this the following pattern `?:` mean in regexp?
It should have something to do with searching for the n-ht occurrence of a pattern, isn't it. | 2013/11/12 | [
"https://Stackoverflow.com/questions/19929215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1829473/"
] | `?:` denotes non-capturing group:
`"Non-capturing groupings, denoted by (?:regexp), still allow the regexp to be treated as a single unit, but don't establish a capturing group at the same time`."
<http://perldoc.perl.org/perlretut.html#Non-capturing-groupings> |
26,426,574 | i am struggle days to find a way for working password strength checker, but still not found solution. I have AjaxBeginForm in partial view for some simple input.
Here is my view:
@model EntryViewModel
```
<style>
input.input-validation-error,
textarea.input-validation-error,
select.input-validation-error {
backg... | 2014/10/17 | [
"https://Stackoverflow.com/questions/26426574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4110768/"
] | What about the [Google Password Strength API?](http://www.codeproject.com/Articles/19245/Google-Password-Strength-API). |
41,973,109 | I m using following code. I am reading a json file name is "hassan.json". If i read this file in controller through $http everything works fine. but i want to use the data that i read from file, again and again in different controller so i made a service for this. but **in service when i read data from that json file t... | 2017/02/01 | [
"https://Stackoverflow.com/questions/41973109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7498727/"
] | `$http` by itself is a promise, so there is no need in `$q`, try to rewrite your code using `$http`'s `cache`:
```
app.controller('showdata', function($scope, service){
service.getData().then(function(user) {
// no need to call user.data, service handles this
$scope.mydata = user;
console.log($scope.myda... |
10,423,703 | I'm currently working on an application that uses a Windows Form GUI. The main work of the application will be performed on an additional thread - but it is possible that it will be dependent on the state of the form.
Because of this, before I create the thread I must make sure that the form is **completely** loaded... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10423703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/940723/"
] | I suggest you read through the WinForms event ordering as posted on MSDN:
<http://msdn.microsoft.com/en-us/library/86faxx0d.aspx> |
7,512,343 | I'm new in 3D games developing so I have kinda dummy question - how to move a mesh in 3D engine (under moving I mean a walking animation). And how to dress some skin on it?
What I have:
1. open source 3D OpenGL engine - NinevehGL <http://nineveh.gl/>. It's super easy to load a mesh
to. I' pretty sure it will be awes... | 2011/09/22 | [
"https://Stackoverflow.com/questions/7512343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145792/"
] | The problem is difficult to answer, because it would require knowledge of the engine's API. Also you can't just stick a skeletal animation onto some mesh. You need some connection between both, a process called rigging, in which you add "bones" (also called armatures) to the mesh. This is an artistic process, done in a... |
250,903 | I have SQL server 2017. I have one 3 TB size database there. Somehow due to long running transaction the database got stuck 'IN Recovery' mode after SQL server Restarted. When I checked the sql error logs it says 2 189 255 seconds remaining (Phase 2 of 3) completed which is almost 25 days. My goal is to bring the datab... | 2019/10/12 | [
"https://dba.stackexchange.com/questions/250903",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/192946/"
] | The error you're seeing in the SQL Server Error Log is this one:
>
> Recovery of database 'CrashTestDummy' (9) is 0% complete (approximately 42 seconds remain). Phase 2 of 3. This is an informational message only. No user action is required
>
>
>
More generically, it will say:
>
> Recovery of database '`{Databa... |
1,899,529 | i have just started using adobe livecycle . i dont need to understand the livecycle with a developers perspective but as of now i have to get into testing livecycle applications. where should i get started so that i understand basics of livecycle. for instance i would like to know what a watched folder is . please refe... | 2009/12/14 | [
"https://Stackoverflow.com/questions/1899529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213574/"
] | I'd suggest checking out the Adobe Evangelism Team's Tour de LifeCycle reference:
<http://www.adobe.com/devnet/livecycle/tourdelivecycle/>
I've found it to be a good centralized point for blogs, turorials and documentation on all things LiveCycle. |
2,683 | Time to get it straight once and for all. When do you / do you not make a Brocho on dessert in a meal (where you washed)? | 2010/08/27 | [
"https://judaism.stackexchange.com/questions/2683",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/128/"
] | There are a lot of different practices (and I believe a stira in the Mishna Brurah), and it may depend on your practice.
BUT:
Here's what I was told in yeshiva:
Fresh fruit (including "ha'adama fruit" like watermelon and bananas), candy, ice cream -- all get a bracha.
Anything mezonos, anything liquid, cooked fruit... |
4,312,391 | I'm looking for possibly efficient algorithm to detect "win" situation in a gomoku (five-in-a-row) game, played on a 19x19 board. Win situation happens when one of the players manages to get five and NO MORE than five "stones" in a row (horizontal, diagonal or vertical).
I have the following data easily accessible:
*... | 2010/11/30 | [
"https://Stackoverflow.com/questions/4312391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/183918/"
] | A simple to understand solution without excessive loops (only pseudocode provided, let me know if you need more explanation):
I assume your 2-d array runs like this:
```
board = [
[...],
[...],
[...],
...
];
```
I.e. the inner arrays represent the horizontal rows of the board.
I also assume that the ar... |
4,400,908 | I have a package com.supercorp.killerapp and within it is a package(com.supercorp.killerapp.views) if I'm not creating the app with the guiformbuilder:
* How do I set the icon of a button on a JInternalFrame that is in the views directory?
* In general, how do I access images in a different folder?
* Should all my ima... | 2010/12/09 | [
"https://Stackoverflow.com/questions/4400908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383986/"
] | I put in the jar that contains my application, in a package called `com.example.GreatApp.resources` and then load it using:
```
getClassLoader().getResourceAsStream(
"com/example/GreatApp/resource/icon.png");`
```
**Update. Full example**
```
/**
* Creates and returns an ImageIcon from the resource ... |
66,453,074 | I'm trying to use `mark_text` to create a stacked text in a stacked bar chart. I would like to label each bar with the value of 'Time'. Is it possible to have text marks in the corresponding stack of a stacked area chart?
Here's how I create bar & text chart:
```
bar = alt.Chart(df_pivot, title = {'text' :'How do peop... | 2021/03/03 | [
"https://Stackoverflow.com/questions/66453074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15308498/"
] | Your bar chart specifies a stack order:
```
order=alt.Order('color_Category_sort_index:Q'),
```
You should add a matching `order` encoding to your text layer to ensure the text appears in the same order. |
37,134,911 | What is the best way to compare two string without case sensitive using c#?
Am using the below codes.
```
string b = "b";
int c = string.Compare(a, b);
``` | 2016/05/10 | [
"https://Stackoverflow.com/questions/37134911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3916803/"
] | By explicitly specifying it:
```
int c = string.Compare(a, b, StringComparison.InvariantCultureIgnoreCase)
``` |
62,870,072 | I have a router sample below , now how will I get the details of that when it is done navigating on that page or when it reach the user page ?.
I wanted to check on my user.component.ts that the navigation comes from this [routerLink]="['user', user.id, 'details']"
```
[routerLink]="['user', user.id, 'details']"
``` | 2020/07/13 | [
"https://Stackoverflow.com/questions/62870072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Using `itertools.groupby`
```
from itertools import groupby
result = []
for m,n in groupby(a, lambda x: x[1]):
n = list(n)
result.extend(n + [[sum(int(i) for i, _ in n), ""]])
print(result)
```
**Output:**
```
[['45', '00128'],
['88', '00128'],
['87', '00128'],
[220, ''],
['50', '88292'],
['69', '8829... |
47,695 | AFAIK people like scripting because it's easier, and it makes development cycle faster. But what about when games are shipped. No one expects shipped binaries to be changed, unless there is an update or a DLC. So why developers don't compile their script files before shipping?
**Potential benefits:**
1. Faster run ti... | 2013/01/19 | [
"https://gamedev.stackexchange.com/questions/47695",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/7328/"
] | I suspect it's because that one of the advantages of using scripts over C++ code is that there is no compile process so it makes for quick and easy editing during development.
Lua also gains no run-time performance from compiling it off-line. [It's just load time it speeds up.](http://www.lua.org/manual/4.0/luac.html)... |
64,216,176 | 1. I have a Table In SQL.
2. Then I have created one Table-Valued Function named GetTaxDataSet. So when I execute that function with the Where condition, I'm getting the dataset values that I need.
3. Now, I'm trying to get the dataset using the SQL Table-Valued function using C# code.
```
DataSet ds = new DataSe... | 2020/10/05 | [
"https://Stackoverflow.com/questions/64216176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14376508/"
] | Hope this answer helps you. Just keep in mind that when you create a method with its return type of DataSet, it should also be set to receive the DataSet.
```
public DataSet GetData()
{
DataSet output = new DataSet();
try
{
SqlConnection sqlConn = new SqlConnection(connectionString);
if (sq... |
12,259,544 | When I enter to my site without using a Google result, I can access without any problems, with and without www.
But, when I access throught the Google results, redirects to Google again.
This is one of my affected sites:
**Before Google Search:**
<http://somesite.com/> - All OK
<http://www.somesite.com/> - All OK
... | 2012/09/04 | [
"https://Stackoverflow.com/questions/12259544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/989868/"
] | use Firebug(FireFox Add on) to see what is happening ! It will give you more clarity on what is happening. |
12,118 | How can i set my laptop with ubuntu 10.04 to autoconnect to Wi-Fi (with pass, WPA2-Personal), when i on my laptop without asking password on wi-fi?
I wont on my laptop and start surfing without enter pass of my wi-fi. | 2010/11/08 | [
"https://askubuntu.com/questions/12118",
"https://askubuntu.com",
"https://askubuntu.com/users/2964/"
] | You must be logged-in to get a network connection with NetworkManager.
One ugly workaround is to configure the gdm to auto-login, this poses a security threat if someone can physically access your laptop.
**System > Administration > Login Screen**

Unlock and select "... |
15,935,752 | I am using ec2 instance @ ubuntu . I am trying to automatically do "git pull" after i launched a new instance from my AMI. The repo dir is already in my AMI, all i need is update the repo.
what i am doing now is I put "git pull origin master" in rc.local.... but it doesn't work.... | 2013/04/10 | [
"https://Stackoverflow.com/questions/15935752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1410231/"
] | `git --git-dir=some/dir/.git pull origin master` should work |
41,978,225 | I have fetched an HTML page,How i can replace relative img src with these URLs absolute?
In my content html:
```
<img width="23" height="23" class="img" src="/static/img/facebook.png" alt="Facebook">
<img width="23" height="23" class="img" src="/static/img/tw.png" alt="tw">
```
(Paths not stable)
```
<img width=... | 2017/02/01 | [
"https://Stackoverflow.com/questions/41978225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3950500/"
] | Try using this code,
it should work in your case.
```
$html = str_replace('src="/static', 'src="http://example.com/static', $html);
``` |
67,952,611 | I want to run an npm script that needs the server to be up for the duration the script is being run.
My script is like this
```
"scripts" :{ "start": "tsc && node dist/app.js"}
```
That is my basic script to start my server which works fine. However,
I have a script within my node project called `get_data.js` that ... | 2021/06/12 | [
"https://Stackoverflow.com/questions/67952611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4652113/"
] | I may be misinterpreting your question but i think what you want is `process.exit(0);`
At the end of "get\_data.js" or whenever youve determined that you want the process to end in your script.
(Although i should note that get\_data.js should run its course and end itself unless there is something in your code that is... |
36,228,977 | I want to pass a dictionary as an additional argument to a function. The function is to be applied over each row of a data frame. So I use 'apply'. Below I have a small example of my attempt:
```
import pandas as pd
import numpy as np
def fun(df_row, dict1):
return df_row['A']*2*max(dict1['x'])
df = pd.DataFrame(np... | 2016/03/25 | [
"https://Stackoverflow.com/questions/36228977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/491410/"
] | The problem is that you are not passing a tuple, `(dict_test)` is not a tuple, it's just the same as `dict_test`. You want a tuple with `dict_test` as the only element, that is `(dict_test,)`.
```
df['D'] = df.apply(fun, args=(dict_test,), axis=1)
``` |
79,947 | I'm trying to read 4 ints in C in a golfing challenge and I'm bothered by the length of the code that I need to solve it:
```
scanf("%d%d%d%d",&w,&x,&y,&z)
```
that's 29 chars, which is huge considering that my total code size is 101 chars. I can rid of the first int since I don't really need it, so I get this code:... | 2016/05/15 | [
"https://codegolf.stackexchange.com/questions/79947",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/53734/"
] | Thanks to @DialFrost for drawing my attention to this question.
I believe for reading 4 numbers your solution is optimal. However, I found a solution that saves bytes when reading 5 or more numbers at a time.
It will also consume the entire input (i.e. it can't be used in a loop).
Depending on the context it might h... |
715,485 | >
> Evaluate $\lim\_{x \to 0+} \frac{x-\sin x}{(x \sin x)^{3/2}}$
>
>
>
This is an exercise after introducing L'Hopital's rule. I directly apply L'Hopital's rule three times and it becomes more and more complex. So I try to substitute $t=\sqrt x$ but there's a square root remained in the denominator $t^3 (sin(t^2)... | 2014/03/17 | [
"https://math.stackexchange.com/questions/715485",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/94283/"
] | $$\begin{align\*}
\lim\_{x\to0^+}\frac{x-\sin x}{(x\sin x)^{3/2}}&=\lim\_{x\to0^+}\left(\frac{x}{\sin x}\right)^{3/2}\frac{x-\sin x}{x^3}\\
&=\lim\_{x\to0^+}\frac{x-\sin x}{x^3}
\end{align\*}$$
And apply L'Hopital's rule three times. |
3,702,859 | I am new to javascript/jquery .
I have a small question.
I have some thing like the following in the java script file.
```
<button id="button1" onclick=click() />
<button id="button2" onclick=click() />
<button id="button3" onclick=click() />
```
so the click function looks like the follwoing
```
click(id){
/do so... | 2010/09/13 | [
"https://Stackoverflow.com/questions/3702859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/436175/"
] | I advise the use of unobtrusive script as always, but if you *have* to have it inline use `this`, for example:
```
<button id="button1" onclick="click(this.id)" />
```
The unobtrusive way would look like this:
```
$("button").click(function() {
click(this.id);
});
``` |
14,292,555 | I am using spring's BasicDataSource in my applicationContext.xml as following:
```
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springfr... | 2013/01/12 | [
"https://Stackoverflow.com/questions/14292555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/970255/"
] | They are all [unprintable control characters](http://en.wikipedia.org/wiki/C0_and_C1_control_codes), the box is just a way to print them. Another option is to not show them at all but then you wouldn't know about them as easily.
There's
* `0x1F` Unit separator
* `0x7F` Delete
* `0x01` Start of Heading
* `0x1C` File S... |
34,491,004 | I have a database with a large set of email addresses.
Because of a bug in a script, the database is full of wrong email addresses. These addresses has a known pattern.
They are made of a true email address, concatenated with a string in the beginning.
This string is itself a part of the email address.
Example:
The... | 2015/12/28 | [
"https://Stackoverflow.com/questions/34491004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2837813/"
] | You can use below query to take care of `LASTNAMEfirstname.lastname@something.com` pattern, This will first find the last\_name and then replace that with null in the first part before first `.`.
```
concat(replace(substr(email,1,locate('.',email)),substr(email,LOCATE('.',email)+1,locate('@',email)-LOCATE('.',email)-... |
54,878,621 | I have source code like the code below. I'm trying to scrape out the '11 tigers' string. I'm new to xpath, can anyone suggest how to get it using selenium or beatiful soup? I'm thinking `driver.find_element_by_xpath` or `soup.find_all`.
source:
```
<div class="count-box fixed_when_handheld s-vgLeft0_5 s-vgPullBottom1... | 2019/02/26 | [
"https://Stackoverflow.com/questions/54878621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5978130/"
] | You can use same `.count-box .label-container` css selector for both BS and Selenium.
BS:
```
page = BeautifulSoup(yourhtml, "html.parser")
# if you need first one
label = page.select_one(".count-box .label-container").text
# if you need all
labels = page.select(".count-box .label-container")
for label in labels:
... |
15,922,823 | I am implementing a file-based queue of serialized objects, using C#.
* `Push()` will serialize an object as binary and append it to the end of the file.
* `Pop()` should deserialize an object from the beginning of the file (this part I got working). Then, the deserialized part should be removed from the file, making ... | 2013/04/10 | [
"https://Stackoverflow.com/questions/15922823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/236660/"
] | Yes see the log eip
<http://camel.apache.org/logeip.html>
This allows you to log human readable messages to the log. You could have spotted it, by the green tip box on the log component page: <http://camel.apache.org/log> |
3,802,669 | >
> $m^3-3m^2+2m$ is divisible by $79$ and $83$ where $m>2$. Find the
> lowest value of $m$
>
>
>
$m^3-3m^2+2m$ is the product of three consecutive integers. Both $79$ and $83$ are prime numbers. The product of three consecutive positive integers is divisible by $6$. So, $m^3-3m^2+2m$ is a multiple of $lcm(6,79,83... | 2020/08/25 | [
"https://math.stackexchange.com/questions/3802669",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/632797/"
] | The brute force method: as $m^3−3m^2+2m=m(m−1)(m−2)$, and $79,83$ are prime, you can just solve the following nine congruences: $m\equiv\alpha\pmod{79}$, $m\equiv\beta\pmod{83}$, where $\alpha,\beta\in\{0,1,2\}$. This is possible as per Chinese Remainder Theorem, and the smallest of the nine $m$'s you will get (greater... |
66,196,249 | How do I increase the textarea height automatically so that the columns on the left and right are of the same height?
[](https://i.stack.imgur.com/zgJt2.png) | 2021/02/14 | [
"https://Stackoverflow.com/questions/66196249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14372041/"
] | The task is to split a string separated by '+'. In the below example, the delimiter ',' is used.
Splitting a string into tokens is a very old task. There are many many solutions available. All have different properties. Some are difficult to understand, some are hard to develop, some are more complex, slower or faster... |
65,140,738 | We have a case like this.
```java
class A{
class foo{
//Map with a lot of entries
private HashMap<String,String> dataMap;
public updater(){
// updates dataMap
// takes several milliseconds
}
public someAction(){
// needs to perform read on dataMap
// several time... | 2020/12/04 | [
"https://Stackoverflow.com/questions/65140738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14008598/"
] | You can use [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) API. In Angular you can write a directive for handle that:
```
@Directive({
selector: '[lazySrc]'
})
export class ImgDataDirective implements OnInit, OnChanges {
@Input('lazySrc') src: string;
construc... |
66,147,347 | I'm trying to create a new column, "condition\_any", in `df` with {data.table} that is TRUE if any of the of the 3 conditions are TRUE, per row.
I tried using `any(.SD)` with no luck:
```
library(data.table)
df <- data.table(id = 1:3,
date = Sys.Date() + 1:3,
condition1 = c(T, F, F)... | 2021/02/11 | [
"https://Stackoverflow.com/questions/66147347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8675075/"
] | This also doesn't use `any` but is a nice way to do it,
```
df[, condition_any := Reduce('|', .SD), .SDcols = patterns("^condition")]
``` |
160,370 | I have been tasked with ensuring the CIS Bechmark on Amazon Linux 2016.09.
Does anyone know of an examination tool that will output the difference between the current and the benchmark?
Unfortunately I cannot use one of the existing marketplace AMI's. | 2017/05/25 | [
"https://security.stackexchange.com/questions/160370",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/149282/"
] | [Lynis](https://cisofy.com/lynis/) is the open source alternative which not only does CIS but few other compliance tests as well.
The ability to modify the code to generate custom reports is handy for large number of systems. |
9,626,995 | Ive been using the 'event' parameter for my KeyboardEvents and MouseEvents in a recent project ive been working on for my course (VERY BASIC).
Im not entirely sure on what the 'e' part of e:KeyboardEvent actually does, and ive been asked to find out what information the parameter 'e' can actually access when using it.... | 2012/03/09 | [
"https://Stackoverflow.com/questions/9626995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256106/"
] | I'm assuming you have some function like this
```
function someFunction(e:KeyboardEvent):void
{
// code
}
```
You can access any information from the [KeyboardEvent](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/KeyboardEvent.html) class, just the same as if the parameter were c... |
6,728,212 | This is the point, I have a WCF service, it is working now. So I begin to work on the client side. And when the application was running, then an exception showed up: timeout. So I began to read, there are many examples about how to keep the connection alive, but, also I found that the best way, is create channel, use i... | 2011/07/18 | [
"https://Stackoverflow.com/questions/6728212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/818519/"
] | the UseService method accepts a delegate, which uses the channel to send request. The delegate has a parameter and a return value. You can put the call to WCF service in the delegate.
And in the UseService, it creates the channel and pass the channel to the delegate, which should be provided by you. After finishing th... |
37,945,115 | I am using Rfacebook to extract some content from Facebook's API through R. I somehow get sometimes posts two or three times back even though they only appear 1 time in facebook. Probably some problem with my crawler. I extracted already a lot of data and don't want to rerun the crawling. So I was thinking about cleani... | 2016/06/21 | [
"https://Stackoverflow.com/questions/37945115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5223902/"
] | You just need a brief wait to wait until the `DIV` that contains the error message appears. The code below is working for me.
```
WebDriver driver = new FirefoxDriver();
driver.get("https://app.ghostinspector.com/account/create");
driver.findElement(By.id("input-firstName")).sendKeys("Johnny");
driver.findElement(By.i... |
17,887,757 | I am using JQuery for autocompleting the search textbox with my database. The problem rises when I want to access the text of the search textbox in query string since I am using html textbox. To make it in context, either I have to use `runat="server"` or I can use `asp:Textbox` but in both the cases my autocompleting ... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17887757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/550927/"
] | In short, yes - this will standardize the dummy variables, but there's a reason for doing so. The `glmnet` function takes a matrix as an input for its `X` parameter, not a data frame, so it doesn't make the distinction for `factor` columns which you may have if the parameter was a `data.frame`. If you take a look at th... |
13,376,682 | I have a BizTalk 2010 project containing an orchestration that needs to make an HTTP Post and then examine the Status Code and Body of the Response to determine the next course of action.
I can configure the orchestration and port to make the HTTP Post, but I am unable to receive a response.
Should I be using a send... | 2012/11/14 | [
"https://Stackoverflow.com/questions/13376682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1823305/"
] | If you are looking for a kind of notification ( not in content of the message) that the message has been successfully transmitted, you can set the logical send port property in the orchestration as follows:
```
"Delivery Notification" = Transmitted
```
And delivery failures can be handled using the Microsoft.XLANGs.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.