text stringlengths 175 47.7k | meta dict |
|---|---|
Q:
How to deal with a coworker who wants to be the expert even though he has no expertise?
I am a junior developer and there is a more senior dev on our team (but certainly not the most senior) who, while being a valuable and productive member, occasionally goes on a power trip and decides that he's going to "optimiz... | {
"pile_set_name": "StackExchange"
} |
Q:
Reverse turning of Stepper motor
I have a stepper motor connected to my Arduino like this using the ULN2003A Darlington Array:
(Ignore the potentiometer)
And I have programmed it with the following code:
#include <Stepper.h>
int in1Pin = 22;
int in2Pin = 23;
int in3Pin = 24;
int in4Pin = 25;
Stepper motor(512, ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to clear all the textbox fields in a parent page using jquery
Is their any way to clear all the textbox values in a parent form using jquery or javascript.
Now i am clearing each fields using
var parentDoc1 = window.opener.document;
parentDoc1.getElementById(id).value="";
A:
To clear the all textboxes , you ... | {
"pile_set_name": "StackExchange"
} |
Q:
Maven artefact licensing
I was asking why Google doesn't upload android artefacts into the maven central repository. Apparently the answer is that user has to accept license before download.
I know that it is possible (and required) to include a license to the artefact. But is it possible to force user to accept i... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I make my store private in React reflux
How do I enforce my store functions and model private. If my store is
var employeeActions = Reflux.createActions(['addEmployee']);
var empStore = Reflux.createstore({
listenables: [employeeActions],
model: {
Total:0,
employees:[]
}
onAddEmployee: ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to using the loop and bulk load tasks to insert the name of the csv files being looped?
Description
I have created an SSIS package imports data from hundreds of csv files on a daily bases
I have used the bulk load and foreach loop container
Problem
I have created a column on a database table and wanted to k... | {
"pile_set_name": "StackExchange"
} |
Q:
Живой поиск имени клиента при добавлении заказа
Есть две базы.
Клиенты
Заказы
При добавлении заказа, есть поле Имя клиента (client_name), которое нужно брать из первой базы (также же client_name). При введении первых букв имени клиента, выводится список. Выбираю нужное имя и оно вставляется в мой input (referal)... | {
"pile_set_name": "StackExchange"
} |
Q:
NestJS - Use service inside Interceptor (not global interceptor)
I have a controller that uses custom interceptor:
Controller:
@UseInterceptors(SignInterceptor)
@Get('users')
async findOne(@Query() getUserDto: GetUser) {
return await this.userService.findByUsername(getUserDto.username)
}
I hav... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I write equations with sin in .NET Math class?
I know how to solve this using a calculator, but how do I solve it using the Math class in .NET?
(15/sin(v))=(10/sin(37))
A:
Math doesn't offer a solver; it simply provides a few tools for common math operations. You would have to solve it manually, or fine a... | {
"pile_set_name": "StackExchange"
} |
Q:
What is better: select duplicates check OR making a unique index?
I have a table like this:
`id` int(11) NOT NULL AUTO_INCREMENT,
`torderid` int(11) DEFAULT NULL,
`tuid` int(11) DEFAULT NULL,
`tcontid` int(11) DEFAULT NULL,
`tstatus` varchar(10) DEFAULT 'pending',
the rule here is that the same user UID... | {
"pile_set_name": "StackExchange"
} |
Q:
Can I have applications using Java 1.4.2_12 and Java 1.5 on the same windows server
I have a couple of applications running on Java 1.4.2_12 and now need to add an new application that uses Java 1.5. Can I have both java versions on a windows server?
A:
Yes. You just need to make sure that each has the correct ... | {
"pile_set_name": "StackExchange"
} |
Q:
Erro ao abrir nova Activity
Estou apanhando aqui para conseguir fazer com que ao clicar em um botão, seja aberta uma nova Activity.
Olhei a documentação do Android sobre Activity, Intent, os métodos para criar e ainda sim, não funciona.
Basicamente, fiz os seguintes passos:
Criei um novo Android XML Layout File c... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a way to return a value with async/await instead of a Promise ? As a synchronous function do
Firstly I am familiar with the concept of asynchronous/synchronous function.
There is also a lot of questions related to mine. But I can't find my answer anywhere.
So the question is:
Is there a way to return ... | {
"pile_set_name": "StackExchange"
} |
Q:
SkyDrive is now OneDrive
OneDrive for Everything in Your Life
Today we are pleased to announce that SkyDrive will soon become OneDrive.
We have more than a handful of questions about skydrive. Please re-tag them as onedrive and make "skydrive" a synonym.
A:
The simplest solution would be for someone to retag o... | {
"pile_set_name": "StackExchange"
} |
Q:
ruby: fix mostly-utf8 strings
I have input data (via File.popen) that is mostly utf8, but occasionally there are iso8859-1 characters in them. I want everything that is not a valid utf8 sequence interpreted as iso8859-1 and replaced with the corresponding (two-byte) utf-8 sequence (and the result as an UTF-8 encod... | {
"pile_set_name": "StackExchange"
} |
Q:
how to solve this error with lambda and sorted method when i try to make sentiment analysis (POS or NEG text)?
Input code:
best = sorted(word_scores.items(), key=lambda w, s: s, reverse=True)[:10000]
Result:
Traceback (most recent call last):
File "C:\Users\Sarah\Desktop\python\test.py", line 78, in <module>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Do I get the Class Feats at level 1 in D&D 4E?
I'm a bit confused about Class Feats. PHB says characters gain one Feat on first level. However, it seems reasonable for me that characters get these on first level. So, do I get them then, or do I have to "buy" them separately?
A:
Each Class Feat (Feats with a prer... | {
"pile_set_name": "StackExchange"
} |
Q:
If I compile Java app at another location it can not read from any folder
I have an app. Which is in RC state. I've started finalizing works by splitting the classes to separate files with appropriate import sets at another location but suddenly I've found that cleaner version cannot read from any folder. So I inv... | {
"pile_set_name": "StackExchange"
} |
Q:
Direct proof for angular velocity from direction cosine matrix
I am trying to work through the math of what should be a relatively simple proof of a direct definition of the angular velocity matrix starting from the direction cosine matrix. The reference for this problem is example 490 from: Jazar, Reza (2011) Ad... | {
"pile_set_name": "StackExchange"
} |
Q:
Фрагменты в Андроид
Android работа с Fragment.
Создаю и добавляю фрагменты в программно:
fragmenttransaction = fragmentmanager.beginTransaction();
fragmenttransaction.setCustomAnimations(R.anim.slide_up, R.anim.slide_down);
if (fragmentmanager.findFragmentByTag(LoginFragment.TAG) != null) {
... | {
"pile_set_name": "StackExchange"
} |
Q:
What should a student do, when a professor delays submitting his letter of recommendation?
I'm applying to Stanford, which requires 2 letters of recommendation from teachers, due in 2 days.
Both teachers have known about this since mid-September, but one of them hasn't submitted his letter. I've asked him, and he... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I pronounce Emacs?
I struggle to pronounce many computer terms, and to this day still mispronounce latex in my head - it just sounds better rhyming with flex.
How would I pronounce Emacs?
A:
Just think of E-max. The letter E is pronounced like the name of the letter is pronounced.
I has the same sound as... | {
"pile_set_name": "StackExchange"
} |
Q:
How to monitor what Ubuntu One is doing?
Is there a way to monitor what Ubuntu One is doing when it seems to be chewing up so much network bandwidth? I'd like to see what files it's syncing. I looked in ~/.cache/ubuntuone/log but can't find anything that shows this.
A:
Install Magicicada. It will allow you to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Avoiding Nagios commands.cfg
I want to call a command directly from a Nagios service file, instead of passing arguments clumsily to commands.cfg. For example I want do this:
define service {
service_description footest
check_command $USER1$/check_http example.com -u http://examp... | {
"pile_set_name": "StackExchange"
} |
Q:
Parse.com IOS, cannot fetch a pointer to PFUser
I am following the tutorials on Parse.com but I don't seem to get it working properly. Here is my issue.
I have a class called Questions and a class named _User of type PFUser (it has a picture icon next to the class name). User logins via FB and is registered as a _... | {
"pile_set_name": "StackExchange"
} |
Q:
How to Deploy "SQL Server Express + EF" Application
It's my first time to Deploy an Application which uses SQL Server Express Database.
I'm Using Entity Framework Model First to contact Database.
and i created a Setup wizard with Install Shield to Install the App.
These are Steps that I'v done to Install The App... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it possible to toggle different divs by clicking on different elements using the same function?
Say I have 50 div, like this:
<div class="btn1"></div> //Toggles the first container to appear
<div class="btn2"></div> //Toggles the second container to appear
<div class="btn3"></div> //Toggles the thir... | {
"pile_set_name": "StackExchange"
} |
Q:
Eslint: no-duplicates Resolve error: unable to load resolver "node"
I just updated my project(SPA with VueJS and Quasar Framework) today with npm update and I can't now run it.
I am getting error no-duplicates Resolve error: unable to load resolver "node" in many different modules. It is always pointing 1:1
I hav... | {
"pile_set_name": "StackExchange"
} |
Q:
RecycleView adapter data show wrong when scrolling too fast
I have a custom Recycle View adapter that list my items. in each Item I check database and draw some circles with colors.
when I scroll listview very fast every drawed data ( not title and texts) show wrongs!
how I can manage dynamic View creation withou... | {
"pile_set_name": "StackExchange"
} |
Q:
Create cartesian product expansion of two variadic, non-type template parameter packs
Lets say, I have
two lists of non-type template parameteres (which might have a different type)
a template foo that takes one value of each of those lists as a parameter
How can I create a variadic parameter pack of foos, par... | {
"pile_set_name": "StackExchange"
} |
Q:
Hibernate validator doesn't work
Im trying to use hibernate validator in my spring mvc project with a html form. It compiles correctly but when I put put the wrong text in the form input, hibernate doesn't detect that, the BindingResult has no erros.
Im using java 8 with Tomcat 9.0. Here is my code:
The class tha... | {
"pile_set_name": "StackExchange"
} |
Q:
Mechanical energy of a body is relative?
Since, the potential energy of a body is relative and depends on the point we choose as having zero potential. Does this mean that the mechanical energy (potential energy + kinetic energy) of the body is also relative?
A:
As Vladimir said, the answer is yes, although you ... | {
"pile_set_name": "StackExchange"
} |
Q:
android error: Could not read input channel file descriptors from parcel
I've made an application for Android that works more or less like this:
Application communicates with the Web service and transfers information (not files)
I can navigate to a different screen using Intent and startActivity
Unfortunately, s... | {
"pile_set_name": "StackExchange"
} |
Q:
CodeIgniter Production and Developpement server on the same domain. (no subdomain)
I googled this many times but now I have to ask it here.
I want to make a workflow for a website for Developpement/Production.
My constraint is that I use Facebook Connect (Facebook Graph now) so I need to have the dev and prod on t... | {
"pile_set_name": "StackExchange"
} |
Q:
Calling .NET Web Services Asynchronically from Java
I need to make asynchronous calls to .NET web services from java since synchronous calls are too slow. I know in .NET this is easily done since the stub (proxy) class created by wsdl.exe also generates methods for asynchronous calls(BeginMethod()/EndMethod()). ... | {
"pile_set_name": "StackExchange"
} |
Q:
Using mock objects without tying down unit tests
I'm currently writing a set of unit tests for a Python microblogging library, and following advice received here have begun to use mock objects to return data as if from the service (identi.ca in this case).
However, surely by mocking httplib2 - the module I am usin... | {
"pile_set_name": "StackExchange"
} |
Q:
NSString allocation and initializing
What is the difference between:
NSString *string1 = @"This is string 1.";
and
NSString *string2 = [[NSString alloc]initWithString:@"This is string 2.];
Why am I not allocating and initializing the first string, yet it still works? I thought I was supposed to allocate NSString... | {
"pile_set_name": "StackExchange"
} |
Q:
how can i insert no more than 5 sentences and no more than 50 letters per each sentence in C
before each sentence it needs to say the number of the sentence im writing. starting the count from one.
what i mean is:
How many sentences you want to enter [1-5]?
2
sentence 1: write what you want
sentence 2: here as lo... | {
"pile_set_name": "StackExchange"
} |
Q:
Python Bokeh dependencies not found
This question has been asked but not answered. The only difference is I am on a Arch Linux 64 bit. I am using python 2.7 and the package that got installed of bokeh is 0.10.0
I followed the
conda install bokeh
instructions from here and did the conda update conda and conda upd... | {
"pile_set_name": "StackExchange"
} |
Q:
Upload document : Default value not applied on choice column if baseFieldControl.ControlMode = SPControlMode.Display
I created a new site column, a choice column with 5 values to pick from in a drop down list :
1,
2,
3,
4 (default value),
5
I then created a document content type using this column. The problem I am... | {
"pile_set_name": "StackExchange"
} |
Q:
WordPress: Change main width based on active sidebar
I'm writing a WP theme, and I want the main content area to change width based on whether there's an active sidebar or not. To make this easier, I'm using bootstrap.
The problem is that the output is blank.
Here's the code I'm trying to use to do the calculation... | {
"pile_set_name": "StackExchange"
} |
Q:
whats the standard way to setup a casperjs for travis-ci testing
surprisingly enough, when thinking about js tremendous popularity in GitHub repos, there is no "offical" guide to testing frontend js with Travis-ci (only node.js, a very specific subset). from my research I found out a lot of big js projects don't h... | {
"pile_set_name": "StackExchange"
} |
Q:
GWT showing low disk space
I am new to GWT. Iam using eclipse Indigo along with GWT. The moment I open eclipse and start running a simple program I have created , my system shows low disk space. I can understand it is something related to cache. But dont know how to proceed. The system becomes very slow and not al... | {
"pile_set_name": "StackExchange"
} |
Q:
How to set an image in imageview swift 3?
So I have an image view titled cashOrCredit and have am trying to set it's image programatically but somehow not able to.
First I set the image like this
cell.cashOrCredit.image = UIImage(named: "cash1.png")
and I get an error saying a separator of "," is needed.
Then I t... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I use google.visualization typings with Angular CLI?
I'm trying to use Google Charts in an Angular CLI (7.2.3) project but am running into an issue getting the typings to work.
First, I installed the typings with this command (both with and without the -dev flag):
npm install --save-dev @types/google.visu... | {
"pile_set_name": "StackExchange"
} |
Q:
How to iterate over a char pointer array returned by a function in cpp
I create a function that creates a 28 array from random chars from a-z.
When I try to iterate over the pointer array from main I get the wrong values.
What do I'm missing?
I know array are passed by reference to function, does are returned by r... | {
"pile_set_name": "StackExchange"
} |
Q:
Using STL containers in GNU Assembler
Is it possible to "link" the STL to an assembly program, e.g. similar to linking the glibc to use functions like strlen, etc.? Specifically, I want to write an assembly function which takes as an argument a std::vector and will be part of a lib. If this is possible, is there a... | {
"pile_set_name": "StackExchange"
} |
Q:
How to let ogr/gdal CreateLayer() create a `geom` field instead of `wkb_geometry`?
When creating a new table (PostGIS) using OGR/GDAL (2.1+), is there a way to select a specific name for the geometry field (such as geom), rather than using the default name?
I created a new table via python3 ogr/grdal liek this:
d... | {
"pile_set_name": "StackExchange"
} |
Q:
Determining the difference between odd and even numbers
I have code that converts each character of a String to an int and returns the difference between odd and even numbers. Can this code be simplified?
int compareSumOfDigits(String N) {
int e=0,o=0;
for (int i =0;i<N.length();i++){
int t = Character.getNume... | {
"pile_set_name": "StackExchange"
} |
Q:
What airplane does this vintage instrument panel come from?
Can anyone please tell me what this is from?
It looks like it's military. I have a few panels that came with this and gauges (not if it's a b-16)
A:
The shape makes it clear that this is from a single seater or tandem aircraft. This makes a glider ve... | {
"pile_set_name": "StackExchange"
} |
Q:
Extend TTPhotoViewController with custom TTPhotoView
I have successfully integrated the three20 framework in my project,
and I have extended the TTPhotoViewController to add some further
functionality.
Now I need to add some subviews to the TTPhotoView loaded by the
TTPhotoViewController. In particular I would lik... | {
"pile_set_name": "StackExchange"
} |
Q:
Pasting text into a webview
in the default android browser, when you long-press on a textbox inside of a webpage you get a context menu showing several options, such as the ability to paste text into the textbox. How do I replicate this functionality with my own webview?
I looked in the android source code, specif... | {
"pile_set_name": "StackExchange"
} |
Q:
Should I mention teaching experience in my cover letter?
I am applying for tenure-track positions in R1 (say, top 50) universities in Computer Science in the US.
When writing the cover letter, should I mention teaching experience and competence?
Or should I leave it for the teaching statement?
A:
I've been on th... | {
"pile_set_name": "StackExchange"
} |
Q:
Resources describing Somerset English
Can anyone suggest any good resources describing the grammar of traditional Somerset English (not accented standard English)? The Wikipedia article for the West Country dialects provides a good introduction, but I am looking for sources that go into greater depth regarding the... | {
"pile_set_name": "StackExchange"
} |
Q:
How to read .runsettings test parameter in xUnit fixture
I'm writing xUnit unit test cases for a dotnet core application which uses DocumentDB (CosmosDB) as storage. The unit test are written to execute against the local cosmos db emulator. On the Azure DevOps build environment, I've setup the Azure Cosmos DB CI/C... | {
"pile_set_name": "StackExchange"
} |
Q:
When is the adjoint to a monoidal functor monoidal?
Let $\mathcal C,\mathcal D$ be monoidal categories. Recall that a functor $F : \mathcal C \to \mathcal D$ is lax monoidal if it is equipped with maps $1_{\mathcal D} \to F(1_{\mathcal C})$ and $F(X) \otimes_{\mathcal D} F(Y) \to F(X \otimes_{\mathcal C} Y)$, the... | {
"pile_set_name": "StackExchange"
} |
Q:
How to prevent ServiceStackVS to add ApiResponse attribute on generated DTOs?
How to prevent ServiceStackVS to add ApiResponse attribute on generated DTOs?
A:
You can choose which attributes are exported by either adding or removing them from the NativeTypesFeature plugin, e.g The Swagger API attributes can be r... | {
"pile_set_name": "StackExchange"
} |
Q:
Symfony 3 unit tests pass locally but not at Travis
I have a Symfony 3 project with tests that pass in php 5.5 & 5.6 but fail in 7.0 and 7.1. All the same tests pass when using Symfony 2.8. All tests pass locally but some fail on travis.
shows failing tests: https://travis-ci.org/zikula/core/builds/257745627
travi... | {
"pile_set_name": "StackExchange"
} |
Q:
How to treat a return value from method as a class type - Itcl
Suppose I have the following code implemented in Itcl.
package require Itcl
itcl::class A {
constructor {} { puts $this }
destructor {}
public method Print {} { puts "ok" }
}
itcl::class B {
constructor {} { }
destructor {}
pu... | {
"pile_set_name": "StackExchange"
} |
Q:
Count ngram word frequency using text collocations
I would like to count the frequency of three words preceding and following a specific word from a text file which has been converted into tokens.
from nltk.tokenize import sent_tokenize
from nltk.tokenize import word_tokenize
from nltk.util import ngrams
with open... | {
"pile_set_name": "StackExchange"
} |
Q:
How to calculate secondary RMS current of each winding in multiplre output flyback converter?
As I am designing multiple output flyback converter and I have confusion in selection of wire gauge of the secondary winding. There are 4 secondary windings and one bias winding. Mode of operation is CCM.
V_out1 48 V
I... | {
"pile_set_name": "StackExchange"
} |
Q:
AirPlay button on custom view
4.3 finally :) I am searching right now how to add air play button to custom view. I have MPMoviePlayer that load movie. I disabled standard controls and added overlay view with my custom play, pause, stop, volume buttons.
If anybody know how to add button that will be air play please... | {
"pile_set_name": "StackExchange"
} |
Q:
LeetCode: Prison Cells After N Days
Stack, I can't quite wrap my head around this oddity. I'm evaluating the positions within the array, each time. How is it that by initializing the array each time I receive different results... I would appreciate if someone can explain this.
In While Loop: Correct
0,1,0,1,1,0,0,... | {
"pile_set_name": "StackExchange"
} |
Q:
Minkowski functional of a open set
Given $X$ is a topological vector space and $V$ is a convex, balanced neighbourhood of $0$ in X. Then for $x \in V$, the Minkowski functional $\mu_{V}(x)$ = inf $\{t>0: t^{-1}x\in V\}$ $<$ $1$.
The reason given for strict inequality is "$V$ is open". But I dont get it. I can ob... | {
"pile_set_name": "StackExchange"
} |
Q:
Auto update docker image if exist new version of images on DockerHub
I want to update and restart my application ( docker container ) when I push new version of this app to Docker Hub.
Can You tell any solution for auto update an image and restart them on server?
P.S I hear about kubernetes, but its very hard to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Primary source for WoW lua API?
I've been looking for first-hand information on the World of Warcraft addon API. There are a couple wikis that are pretty good, but their reference links only point internally. Surely there is some information published by Blizzard on the topic.
Can all of their information really b... | {
"pile_set_name": "StackExchange"
} |
Q:
Can an estate be forced to sell real estate to cover debt if the home was bequeathed to an adult child?
My mother died in West Virginia. I am her son and the executor of her will, in which the home was bequeathed to me. The estate has insufficient funds to pay medical and other debts. Can WV probate court force m... | {
"pile_set_name": "StackExchange"
} |
Q:
Fody, propertychanged and setting same value?
Is there any way to configure fody to not check the value which is set to property - I have situations when value is the same and I want property to be set because I have additional logic in property setter that is not invoked.
A:
This is clearly literally years afte... | {
"pile_set_name": "StackExchange"
} |
Q:
add all user ids for one product
For adding to cart customer has to logg in,in cart table I have a column for user_id but in user_id column all of user_id in database add!for example for product1 all user1,user2,user3 ides add not just the one logged in
cart table:
Schema::create('cart', function (Blueprint $table... | {
"pile_set_name": "StackExchange"
} |
Q:
Datetime colum to float type conversion is getting issue in sql server
I'd like alter a column type from Datetime to float. Hence, I executed the below query but it was getting a issue
alter table dbo.purchasedate
alter column supp_dt float null
Error :: Implicit conversion from data type datetime to float is not... | {
"pile_set_name": "StackExchange"
} |
Q:
SQL Stored Proc Executing Select before gettting values from other procs
Got a strange problem created a little stored proc which need to execute a couple of other stored procs to get some values before executing the main select statement see below,
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [d... | {
"pile_set_name": "StackExchange"
} |
Q:
find a universe for variables x, y, and z for which this statement is true and another universe in which it is false
Im solving a practice quesitons on quantifiers and I'm stuck with this questions
im trying to solve this question for few hours now and I really don't have a clue what to do...
The question is
Fin... | {
"pile_set_name": "StackExchange"
} |
Q:
Why does Moshe tell Hashem that he is 'heavy of mouth and heavy of tongue' - twice?
Shemot 4:10-15 is a dialogue between Hashem and Moshe where Moshe tells Hashem that he is 'heavy of mouth and heavy of tongue'.
In pssukim 14-15 Hashem tells Moshe that he will tell Aharon what to say, and that he will be Moshe's... | {
"pile_set_name": "StackExchange"
} |
Q:
How to query by embedded example containing null values using hibernate?
I have a problem with a query using hibernate. The entity class EntityClass has an embedded property embedded of type EmbeddedClass and this property has a nullable property optional. When all properties are set, i can do a very simpel HQL qu... | {
"pile_set_name": "StackExchange"
} |
Q:
sending div id through button click java-script method parameter
can anyone please tell me how to send div id through button click java-script parameter.
Here in the below code the main div id 'ricId_1' and the class name "ric_class1 rico_class0 ric1_class1 ric2_class3" is created dynamically has to be send throug... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the difference between browser.pause() and browser.enterRepl()?
In protractor, there is the browser.pause() function:
Beta (unstable) pause function for debugging webdriver tests. Use
browser.pause() in your test to enter the protractor debugger from
that point in the control flow.
element(by.id('foo... | {
"pile_set_name": "StackExchange"
} |
Q:
Angular 2 routing in ES5?
The Angular 2 ES5 cheat sheet says to do this:
var MyComponent = ng.router.RouteConfig([
{ path: '/:myParam', component: MyComponent, as: 'MyCmp' },
{ path: '/staticPath', component: ..., as: ...},
{ path: '/*wildCardParam', component: ..., as: ...}
]).Class({
constructor: functio... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery conditional statement to check if a select option has either of 4 values selected
I am working on this project that has a reservation form which allow users specify which sort of service they require. I have a select menu with eight (8) options and I have two divs which would either show/hide depending on t... | {
"pile_set_name": "StackExchange"
} |
Q:
python access a column after groupby
I would like to replace null value of stadium attendance (affluence in french) with their means. Therefore I do this to have the mean by seasons / teams :
test = data.groupby(['season','domicile']).agg({'affluence':'mean'})
This code works and give me what I want (data is data... | {
"pile_set_name": "StackExchange"
} |
Q:
NHibernate QueryOver with SelectList
I have multiple queries against one table. As not all columns/properties are needed I specify the columns with the help of select list. Take the following method as example. This method is working
public IEnumerable<ResultDto> GetEntityAsDto(eStatusBinderProduktion fromState, e... | {
"pile_set_name": "StackExchange"
} |
Q:
Do we have to explicitly recycle the bitmap if we don't need it?
Bitmap has a recycle method, but do we have to invoke it explicitly if we don't need it any more?
For example, an ImageView has a bitmap now. When user click a button, it will set a new bitmap to the ImageView.
Do we have to recycle the original bitm... | {
"pile_set_name": "StackExchange"
} |
Q:
Create a map of spatial clusters LISA in R
I would like to create a map showing local spatial cluster of a phenomenon, preferably using Local Moran (LISA).
In the reproducible example below, I calculate the local moran's index using spdep but I would like to know if there is as simple way to map the clustes, prefe... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I create a React Native project using Yarn?
I am running the following commands in the DOS console on a Windows 7 (64-bit) machine.
npm install -g yarn
yarn add global react-native
yarn add global react-native-cli
react-native init sample
After running react-native init sample, the console was closed.
The... | {
"pile_set_name": "StackExchange"
} |
Q:
Fragment transitions in Android with MVVMCross
In MVVMCross is easy to develop Activity transitions, but i'm finding so many troubles trying to develop this with fragments.
I got an application with a Hamburger Menu, and I wanna be capable to edit my own transitions between fragments. I've been searching in the in... | {
"pile_set_name": "StackExchange"
} |
Q:
When did Firefox change its Function.prototype.toString() behaviour?
Nowadays, when you call a function's .toString(), browsers return the function's original declaration.
But I remember that Firefox used to return an optimized version, eg.
function fn() {
return 2+3;
}
fn.toString() // Used to give: function ... | {
"pile_set_name": "StackExchange"
} |
Q:
Scope between methods
Another newbie question. I am trying to understand how to use scope effectively to organise my projects using classes to hold the data instead of having everything on the view controller. So, I am working on a couple of versions of a simple project to understand how scope works.
I have a vie... | {
"pile_set_name": "StackExchange"
} |
Q:
RxJS handling closure variables
My scenario is following:
- Reach to database for some object
- After obtaining base object grab it's additional data
- Merge additional data to base object
I wish to write it in pure functional manner (i.e. with no side effects) but so far I'm unable to achieve it:
getMeterPointWit... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the meaning of this cartoon by Dr. Seuss?
I don't quite understand what the author was trying to say in this picture. Could anyone explain?
http://libraries.ucsd.edu/speccoll/dswenttowar/#ark:bb4813149f
A:
It's possible the OP is asking this question because of the somewhat confusing verbiage on the flag... | {
"pile_set_name": "StackExchange"
} |
Q:
Print all characters after every 3rd occurrence of comma in oracle
I have a string as "12as3,45we6,7we89,101112,131415,3234,1234" and want to write a oracle regex function or a SQL to print all the characters after every 3rd occurrence of comma (,) .
So the Output for this should be
12as3,45we6,7we89
101112,13141... | {
"pile_set_name": "StackExchange"
} |
Q:
Need a site that will let you create your own html/css template that you can copy and paste to your site?
I want to create a site but now I don't have time to create the template so I was wondering if there is a site that will allow me to do what the above question states.
I want to have sounds on there, drop menu... | {
"pile_set_name": "StackExchange"
} |
Q:
Best way to have a javascript load only on desktop version of site?
I have a javascript (jQuery) that I am running on my WordPress site. I only want the script to load if the screen width is under 1024 pixels.
The reason for this is because it has to do with how the top navigation menu functions. I only want this ... | {
"pile_set_name": "StackExchange"
} |
Q:
Can I use React.Fragment for list rendering while have the "key" assigned?
Can I use React.Fragment inside the list rendering and assign a key to this 'Fragment' parent?
I'm trying to build a projects list layout using css grid, which requires all the elements is direct child of the container. Let's say the desire... | {
"pile_set_name": "StackExchange"
} |
Q:
Onbeforeunload event support on iPad
Is onbeforeunload event supported on iPad Safari ? If no, is there any alternate way to detect window closing on iPad ? Please help.
A:
This has been discussed previously here, and there are is some anecdotal evidence to say that it does work in some circumstances.
| {
"pile_set_name": "StackExchange"
} |
Q:
Java secondary not public Class usage produces error "Type is not Visible" even if accessed methods are public in Main class
I have a Main.java file:
public class Main{
private EntityDrawer entityDrawer;
public void setEntityDrawer(EntityDrawer entityDrawer) {
this.entityDrawer = entityDrawer;
}
pub... | {
"pile_set_name": "StackExchange"
} |
Q:
Does there exist a curve with non zero area?
Does there exist a curve with a bounded infinitely diffrentiable derivative (i.e. has a minimum |curvature|) of hausdorf demension 2? Or even a diffrentiable curve of hausdorf demension 2?
A:
If $f: X \to Y$ is Lipschitz with Lipschitz constant $k$, i.e. $d(f(x),f(y)... | {
"pile_set_name": "StackExchange"
} |
Q:
Bash Script - Copy latest version of a file in a directory recursively
Below, I am trying to find the latest version of a file that could be in multiple directories.
Example Directory:
~inventory/emails/2012/06/InventoryFeed-Activev2.csv 2012/06/05
~inventory/emails/2012/06/InventoryFeed-Activev1.csv 2012/... | {
"pile_set_name": "StackExchange"
} |
Q:
AR9285 Wireless (Yet another) on Acer Aspire One 532h-2676
There are literally hundreds of questions with people asking about this wireless device on askubuntu.org. I've spent about 12 hours trying to get it working, to no avail. It's time to solicit some expert help.
Information:
Acer Aspire One 532h-2676
AR9... | {
"pile_set_name": "StackExchange"
} |
Q:
How to plot in python for count of repeated text
I am trying to plot my data-frame using seaborn and matplotlib, but getting error like cannot convert string to float.
My data is like:
ID | Status | Date | Columns|
-------+-------------+------+--------+
28 | ACTIVE | | |
29 | A... | {
"pile_set_name": "StackExchange"
} |
Q:
How to remove ellipsized property of TextView from code?
I set my textView to be ellipsezed in xml. Now on click I want it to expend and become not ellipsized.
A:
Use setEllipsize() to change the ellipsize behavior of a TextView. For example, to turn off ellipsize use this:
myTextView.setEllipsize(null);
| {
"pile_set_name": "StackExchange"
} |
Q:
Python subprocess Messy output
With the following code:
output = subprocess.check_output(['wmic', 'PATH', 'Win32_videocontroller', 'GET', 'description'])
print(output , "\n")
I get the next output:
b'Description \r\r\nNVIDIA GeForce 710M \r\r\nIntel(R) HD Graphics 4000 \r\r\n\r\r\n'
Wh... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.