id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_34400 | The error I came across is:
java.lang.NoClassDefFoundError: org/apache/solr/analysis/BufferedTokenStream
A: org.apache.solr.analysis.BufferedTokenStream is deprecated in solr 3.6.2.
http://lucene.apache.org/solr/api-3_6_2/deprecated-list.html#class
Deprecated usually means:
*
*it is not recommended to use this cl... | |
doc_34401 | When the operation takes quite a long time, sometimes there is a process percentage displayed.
I wonder if we want to do this using C#/Java, what library to use?
Regards,
A: You can print a "carriage return", also known as a '\r' to reset the "cursor" to the start of the line.
System.out.printf("Progress: %3d %% \r", ... | |
doc_34402 | This is the code I use actually :
<div class="TxtBox">
<asp:Panel ID="lepanel" runat="server" DefaultButton="Connect">
<asp:TextBox ID="TxtUserLogin" runat="server" TabIndex="1" Text="login" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
... | |
doc_34403 | Its goal is to shorten some urls of my website such as www.mywebsite.com/users/sign_up?&invitcode="test" would become www.mywebsite.com/shorturl.
I meet a problem in my Devise registration_controller.rb where I'm trying to use this gem. When I called it with Shortener::ShortenedUrl.generate("www.example.com") I get a ... | |
doc_34404 | here's my code
public IHttpActionResult GetError(int errCode) {
int ErrCode = errCode * -1;
ResourceManager ResourceManager = new ResourceManager("PIJ.API.OWIN.Properties.Resources", Assembly.GetExecutingAssembly());
string ErrorMessage = ResourceManager.GetString("_" + ErrCode.ToString());
... | |
doc_34405 | position: absolute;
top: 0;
right: 31%;
animation-name: fadeOutOpacity;
animation-iteration-count: 1;
animation-delay: 2.5s;
animation-timing-function: ease-out;
animation-duration: 1s;
}
@keyframes fadeOutOpacity {
0% {
opacity: 1;
}
90% {
opacity: 0;
}
100% {
di... | |
doc_34406 | How can I check if my pages have finished caching so I can tell the user "Your files are cached. It is safe to go offline now"?
A: The applicationCache global fires several events you can check for to handle this. There are a few cases that need to be considered.
The very first time the manifest is downloaded by a use... | |
doc_34407 | Unnamed: 0 Unnamed: 1 Temp Hi Low Out Dew Wind Wind.1 Wind.2 Hi.1 ... In In In .1 In .2 In .3 In Air Unnamed: 30 Wind.4 Wind.5 ISS Arc.
0 Date Time Out Temp Temp Hum Pt. Speed Dir Run Speed ... Temp Hum Dew Heat EMC Density ET Samp Tx R... | |
doc_34408 | Is there a way to change the primitive type mapping for a sub-type?
I'm using .NET FRAMEWORK.
E.g. having a controller method:
[Route("photos/upload")]
[HttpPost]
public async Task<ResponseDTO<Guid>> UploadPhoto([FromBody] UploadPhotoRequestDTO content) {}
My DTO:
public class UploadPhotoRequestDTO
{
... | |
doc_34409 | The code is below. Basically, it's a user-defined page where I've pasted this script and the div #element4 sits within jQuery a jQuery tab. Can you spot an error in my code or help me get it working?
$("#element4").load("<dbid>?act=API_GenResultsTable&qid=8", function(response, status, xhr) {
if (status == "succes... | |
doc_34410 | I've downloaded the source code, and for the life of me I can't get the code to execute properly! I'm using Visual Studio 2013 and the windows kit 8.1 DirectX SDK. I have the .hlsl and .fx files in the proper directory, but the vertex shader will not compile at run time. I've tried fiddling with a lot of the settings o... | |
doc_34411 | If I put my component in the initial route it works just fine but if I try to reach it from another component it gives me this error:
Element type is invalid: expected a string(for built-in components) or a class/function (for composite components) but got: object. check the render method of 'NavigatorIOS'.
here is the... | |
doc_34412 |
*
*start_query_execution : work fine
*get_query_execution : have an error !
When I try to get the query execution I have the following error :
{'QueryExecution': {'QueryExecutionId': 'XXXX', 'Query': "SELECT * FROM my_table LIMIT 10 ", 'StatementType': 'DML', 'ResultConfiguration': {'OutputLocation': 's3://my_bu... | |
doc_34413 | but i want to add an exception, to keep the last 14 files, so lets say if i dont have any new files yesterday, then today it will delete the file older then 14 days, and i will be left with 13 files
i want to keep the last 14 files, no matter of its age, but if there is more then 14 files, then delete the oldest
can an... | |
doc_34414 | data <- read.table("e:/data_logistic.txt", header = TRUE)
dd <- datadist(data)
options(datadist = "dd")
model <- lrm(formula = P_A ~ ns(HEIGHT, 4), data = data, x = TRUE, y = TRUE)
p1 <- ggplot(Predict(model, HEIGHT))
Error in quantile.default(x[!outside], knots) : missing values and NaN's not allowed if 'na.rm' i... | |
doc_34415 | But devices with android version more than 5.x (lolipop) notification icon is not visible.
Here is my ctrl code,
var pushNotification = window.plugins.pushNotification;
pushNotification.register(successHandler, errorHandler,
{
'senderID': 'xxxx', 'icon': 'icon', 'ecb': 'onNotificationGCM'
... | |
doc_34416 | As the logic is dependent on the data returned.I think mocking/Spying the dataservice might not help in this regard.
Kindly provide the probable solution.
var app = angular.module('app', []);
app.controller('Controller', ['$scope', '$location', 'dataService', '$window', 'OtherService', 'Config', function ($scope, $loca... | |
doc_34417 |
*
*Stripe sees payment intents being the primary way of facilitating payments through their API going forward and Charges will be deprecated at some point.
*Processing an Invoice creates a PaymentIntent under the hood and and initiates payment right away. What I don't understand is why is there no destination accou... | |
doc_34418 | I want to show you a screenshot from Xcode, there I get variables values. Variable 'price' is integer and should be equal to 0, can you help me?
I create this Dictionary in such way:
NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSString stringWithFormat:... | |
doc_34419 | cit <- read.csv("citations.CSV", row.names = NULL,
comment.char = "", header = TRUE,
stringsAsFactors = FALSE,
colClasses= "character", encoding= "utf-8")
Warning message:
In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
EOF within quoted str... | |
doc_34420 | I need objects conforming to HasObservers to be capable of being a struct or a class, and I want the IsObserver to be intentionally limited to be a class (want, but do not need).
I'm not good with generics... after several hours I got this far, with the compiler error in a comment inline below. I'm stuck and not sure ... | |
doc_34421 |
A: Well it's a bit hard to answer without knowing what your program does, and specially what library it uses.
I think this could help you:
http://msdn.microsoft.com/en-us/library/8kche8ah.aspx
A: There is a tool called depends.exe which will help you to determine that:
http://www.dependencywalker.com/
Dependency Wal... | |
doc_34422 | I'm now trying to recompile it but have these erros:
Error 1 'System.Data.SqlTypes.SqlBoolean.operator true(System.Data.SqlTypes.SqlBoolean)': cannot explicitly call operator or accessor C:\NCESTableGenerator\NCESTableGenerator\db\OutputTableDAO.cs 89 32 NCESTableGenerator
on the following piece of code:
if... | |
doc_34423 | If I click on the Outlook 2013 default 'reply' button, these info would have been auto-generated ahead of the last email, while above it would then be my reply content.
So which function should I use to call these info out? The info must appear in all my replies, so I need to figure it out one way or the other. My code... | |
doc_34424 | - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
method is called N times, where N is the number of rows the table has.
It this normal?
Wasn't the header for a section being supposed just to be drawn once for that secion?
thanks
A: viewForHeaderInSection will be called depen... | |
doc_34425 |
A: In Hibernate, HQL or criteria queries should be able to let you to execute almost any SQL query you want. However, many developers are complaint about the Hibernate’s generated SQL statement is slow and more prefer to generated their own SQL (native SQL) statement.
A: It could be:
-Performance. Sometimes is hard t... | |
doc_34426 | I call the data I get from textbox with a method and check the records with select query in the
database.
I call to relevant method , when I press the button.
private void btnGiris_Click(object sender, EventArgs e)
{
LoginBilgiler lb = new LoginBilgiler();
bool sonuc = lb.GirisKontrol(t... | |
doc_34427 | 72 -61 -92 116 116 101 ...*
GetBytes() returns negative number (-61, () ) at the char 'ä'.
How to get the normal ascii value?
A: *
*Some bytes are negative because bytes are signed in Java, just like ints, shorts and longs. The easiest way to undo it is to use & 255 - example code: int fixed_byte = original_... | |
doc_34428 | engine = create_engine('mysql+oursql://ag:529382Ag@localhost/gp?charset=utf8&use_unicode=0',pool_recycle=3600)
query = "select a.gid as entrez, a.source_id as "+id_dict[ids[0]]+", b.source_id as "+id_dict[ids[1]]+" from (select * from gid2source_id where gid2source_id.id_type_id = "+str(ids[0])+") a, (select * ... | |
doc_34429 | I've tried using multiprocessing, pebble and timeout_decorator to add a timeout to the regex matching, but I hit issues with the way threads are handled in Python.
Maybe I'm missing something obvious, but from what I understand, DEAP wants to define the toolbox in the main script, which includes the fitness evaluation ... | |
doc_34430 | Can someone tell me of some advantages of Dynamo Db against Elastic Search.
Please give your suggestions.
A: I have used elasticsearch and MongoDB but not much Dynamodb. MongoDB works very well regarding indexing and strong consistency.
Few things I know about elasticsearch and DynamoDB;
elasticsearch
is a search-en... | |
doc_34431 | object Compresser {
val buffer = ZManaged.fromAutoCloseable(ZIO.succeed(new ByteArrayOutputStream()))
val stream = for {
b <- buffer
s <- ZManaged.fromAutoCloseable(ZIO.succeed(new DeflaterOutputStream(b, false)))
} yield (b, s)
def compress(input: Array[Byte]): RIO[blocking.Blocking, Array[Byte]] = s... | |
doc_34432 | When I build my Model, I have a Data.dbml file and then I'm putting my Repositories in the same folder with it.... IE:
Data.dbml
IUserRepository.cs
UserRepository.cs
My question is simple. Is it better to build the folder structure like that above, or is it ok to simply put my Interface in with the UserReposit... | |
doc_34433 | object Main extends {
def main(args: Array[String]): Unit = {
print("Hello World")
}
}
Hello World
Can someone explain me, what happens here?
Does Main class extend here an anonymous class/trait?
A: If we decompile the code using scala -Xprint:typer, we see that Main extends AnyRef:
scalac -Xprint:typer Ma... | |
doc_34434 | <View >
<FlatList
data={categoryState}
renderItem={item => <ItemCombination data={item} click={loading} detail={detail} />}
listKey={(item, index) => index.toString()}
numColumns={3}
ListFooterComponent={
<View style={{ width: 794, backgroundColor: '#fff', alignItems: 'center', maxHeight: 30... | |
doc_34435 | My current table is look like below:
Customer ID Product ID Product Name
---------------------------------------------
111 6577 ProductA
111 6123 ProductB
111 2133 ProductC
111 1123 ProductD
222 6577 ProductA... | |
doc_34436 | void main(void){
int *p = (int * ) malloc(sizeof(int) * 1000 ) ;
//...The rest of the code comes here
p = ( int * ) realloc ( sizeof(int) * 2000 ) ;
// what function should i call with p in order to get
// the size of the reserved space that p is pointing to ????
}
| |
doc_34437 | I have the following structure ( of relevant files )
- src
-- modules
--- authentication
---- login
------ login.component.ts
------ login.component.html
---- authentication.module.ts
-- app.module.ts
app.module.ts
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
impor... | |
doc_34438 |
InvalidOperationException
Here is my code:
public void LoadFile() {
XDocument outputDocument = new XDocument();
outputDocument.Add(new XElement("Inventory"));
using (var fstream = File.OpenRead(FilePathProducts))
using (var fileReader = new StreamReader(fstream)) {
whi... | |
doc_34439 |
A: You can set the ticks display to false like so:
options: {
scales: {
y: {
ticks: {
display: false
}
},
x: {
ticks: {
display: false
}
}
}
}
Example:
var options = {
type: 'line',
data: {
labels: ["Red", "Blue", "Yello... | |
doc_34440 | AttributeError: 'NoneType' object has no attribute 'get'
I don't know what's wrong.
import tkinter as tk
window = tk.Tk()
window.title('File Writer')
def getfile():
text1 = entry1.get()
text2 = entry2.get()
text3 = entry3.get()
text4 = entry4.get()
fl = fl.get
save = open('C:\\Users\\Anas\\De... | |
doc_34441 | However, as soon as I wrap the combination in a custom container view controller and present that instead, the topmost part of the table view content is hidden behind the navigation bar. Is there anything I can do in order to preserve the automatic content inset behaviour in this configuration? Do I have to "pass throu... | |
doc_34442 | public void Update(ObjectId id,Product p)
{
p.Id = id;
var res = Query<Product>.EQ(pd => pd.Id,id);
var operation = Update<Product>.Replace(p);
_db.GetCollection<Product>("Products").Update(res,operation);
}
I have updated it in my code to look like this.
public void Update(O... | |
doc_34443 | mouse event functions writing like this
<li class="gnb1" onmouseover="fn1('param_01');" onmouseout="fn2('param_02','param_01');" > ...
I want change function and parameters programmatical as jquery or javascript.
$("li.gnb1").attr("onmouseover", "new_function_name()");
this code is not working. help me. show your ... | |
doc_34444 | preprocess include statement
// @include Falcon.helper.js
// @include Falcon.config.js
After running the grunt build in jenkins server. i get this
app/core/Falcon.helper.js not found
app/core/Falcon.config.js not found
Below is the preprocess task configuration
module.exports = function (grunt, options) {
return ... | |
doc_34445 |
A: Does the code run? If not, you will want to install pyspark and add it to your python environment. Otherwise, if the code does run and you simply want to remove the red inspection warning, try adding pyspark to the list of Unresolved references you want it to ignore in File | Settings | Inspections - Python - Unre... | |
doc_34446 | import time
test_input = input("\rHow are you", end = "")
time.sleep(2)
print("\rGreat to hear, what would you like today?", end = "")
It says that the input function can't take keyword args. I understand this but I want to know how I can do it. I know that same thing works if I use print functions.
import time
pr... | |
doc_34447 | My code composed of two modules, the first module check if there a number stored in a text file, if yes this Module will automates the other module to load the two matrix and compare them, I really need this code for my project graduation any help or suggestion.
#include "systemC.h"
#include "string.h"
#include "stdio... | |
doc_34448 | E.g.
function App({ data}) {
return(
<div>
<Item item={data.item} />
</div>
)
}
const appPropTypes = PropTypes.shape({
foo: PropTYpes.string.isRequired,
item: PropTypes.string.isRequired,
});
App.propTypes = {
data: appPropTypes;
};
function Item({ item }) {
retur... | |
doc_34449 | \d trajectories
Table "postgres.trajectories"
Column | Type | Collation | Nullable | Default
------------+--------------------------+-----------+----------+---------
user_id | integer | | |
session_id | bigint ... | |
doc_34450 | uploadMarks:
const Validator = require('validator');
const isEmpty = require('./is-empty');
const validateFacultyUploadMarks = (data) => {
let errors = {}
data.subjectCode = !isEmpty(data.subjectCode) ? data.subjectCode : '';
data.exam = !isEmpty(data.exam) ? data.exam : '';
data.totalMarks = !isE... | |
doc_34451 | The DSL's interpreter already exists so there is no need for another one. The DSL is suitable for xtext & xtend except that it allows one to escape to javascript, which I have heard is quite a messy language.
Is XText suitable for this scenario? I have heard that it is extremely difficult to adapt xtext to javasc... | |
doc_34452 | My code involves working out the numbers of multiple food items ordered (requestFoodItemArray[i]) and append them to an array (requestFoodNumberArray). I am able to get it successfully to run but then the values stored inside requestFoodNumberArray will disappear when I try to access it anywhere else except within the ... | |
doc_34453 | 12341.0
4578231.0
25.0
4785555.0
347895666.0
Now how can I remove trialing zeroes? what I want is list of strings as:
12341
4578231
25
4785555
347895666
how can i do it?
A: class Test
{
public static void main(String[] args) throws ParseException {
Number parse = NumberFormat.getNumberInstance().pars... | |
doc_34454 | String newFileName = oldFileName + "_" + new Date().getTime();
if the event happens more and more time i will have a string like:
myfile_1372933712717_1372933715279_1372933716234
while i would like to have only the last timestamp...
Of course i could do a substring to remove the string after "_" and replace it with... | |
doc_34455 | More Detailed Notes:
The project is an Azure Cloud Service deployment project
We need to pass the /p:TargetProfile="Local" parameter
Resharper Build 2017.2.2
Screen shot from Resharper options
A: I opened a support case with JetBrains and apparently this is a known bug. Here is a link to the bug tracker. It is cur... | |
doc_34456 | The program 'javah' can be found in the following packages:
*
*gcj-4.6-jdk
*openjdk-6-jdk
*gcj-4.5-jdk
*openjdk-7-jdk**
Try:apt-get install
Please suggest me some measure to handle this.
Thanks in advance
A: Have you ever set up the Java's enviroment?
This is my JDK settings in /etc/profile:
export JAVA_HOME=... | |
doc_34457 | Name | Year | Gear
C30 2012 A
C30 2011 M
C30 2014 M
C30 2015 A
C30 2013 A
V40 2012 A
V40 2013 M
V40 2015 A
S60 2012 M
S60 2011 A
When i search 'C30 A' i want show data like this.
Name | Years
C30 2012,2015,2013
How can i do this ? is it possible in ES?
... | |
doc_34458 | class ClassAttendance(models.Model):
Faculty_Name = models.CharField(max_length=200, null=True, blank=True)
Student_ID = models.CharField(max_length=200, null=True, blank=True)
firstname = models.CharField(max_length=200, null=True, blank=True)
lastname = models.CharField(max_length=200, null=True, blan... | |
doc_34459 | <action-state id="saveanyformula">
<evaluate expression="--code---"></evaluate>
<transition to="end"></transition>
</action-state>
<end-state id="end" view="externalRedirect:new/lists">
I have try below code but it is not working:
<end-state id="end" view="externalRedirect:new/lists?foo1=${flowScope.foo1}">
... | |
doc_34460 | Thanks!
A: There's a deletePendingChangelist method in the IServer class: http://www.perforce.com/perforce/doc.current/manuals/p4java-javadoc/com/perforce/p4java/server/IServer.html
| |
doc_34461 |
i want to make screen like this
adding two image button left and right side of table layout ho to add this button?? help me please
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/lightgray"
andro... | |
doc_34462 |
A: There isn't a delegate method just for "visible cells". There isn't anything called when a cell leaves the screen. There really isn't anything when a cell becomes visible.
There is the cellForRowAtIndexPath data source method. This is called when a cell is needed.
There is the willDisplayRowAtIndexPath delegate met... | |
doc_34463 | cd /usr/kerberos/sbin
echo l | ktutil
echo quit | ktutil
Its running fine in Unix and giving the output of ktutil. However when I run from Windows using the PLINK.EXE of PuTTY, its not running the ktutil command properly. The output it gives is the usage of ktutil.
Usage: ktutil [-hv] [--version] [--help] [--keytab=k... | |
doc_34464 | class SIN
{
public:
static SIN& getSIN()
{
static SIN *sin = new SIN;
return *sin;
}
void insertMap(const int& id,const string& str)
{
locker::getLocker().lock();
subMap[id] = str;
locker::getLocker().unlock();
return;
}
string getStr(const i... | |
doc_34465 | I don't really know how to explan but it's exactly the style on tesla.com. Every scroll on the mousewheel scrolls down one whole image.
How can you make something like this in Css & Javascript?
Best regards,
andy
A: Surely you can find bunch of working code around, but if you want to create your own you can follow th... | |
doc_34466 | In my case, I'm constrained to keep everything confined to one section. I'm trying to work out a maintainable, sane method of storing "pairs" of data. A contrived example will explain things better:
[pings]
host1 = foo.com
port1 = 80
interval1 = 60
host2 = bar.com
port2 = 8080
interval2 = 300
host3 = baz.com
port3 = 44... | |
doc_34467 | I installed wow.js using yarn add wow.js
I created a new wow.js in my javascript asset pipeline with the following
import {WOW} from 'wowjs'
const wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
live: true
});
wow.init()
I import wow.js in my application.js file (import '../components/... | |
doc_34468 | lol.java:
public class lol
{
public static void main(String Args[])
{
test();
}
public static Input test()
{
Input asdf = new Input();
return asdf;
}
}
Input.java:
public class Input
{
public int x;
}
I compiled with the command:
javac lol.java HOME/input.java
Fol... | |
doc_34469 | Here Is my code. (FIDDLE)
$('body').keypress(function(event){
if (event.keyCode == 17 && event.keyCode == 110)
{
alert("New");
}
else
{
event.preventDefault();
}
});
A: It seems that you cannot int... | |
doc_34470 | public Class PromotionAttribute {
String attributeName;
String attributeValue;
}
The query looks like:
select p.* from promotions p
join promotion_attributes pa on p.id=pa.id
where
<foreach item="PromotionAttribute" index="index" collection="list" open="(" separator=" or " close=")">
pa.attribute_name=#{attri... | |
doc_34471 | @font-face {
font-family: 'Trade Winds';
font-style: normal;
font-weight: 400;
src: local('Trade Winds'), local('TradeWinds'),
url('src/fonts/trade-winds-v8-latin-regular.ttf') format('ttf'), /* Safari, Android, IOS*/
}
.action-label {
font-family: 'Trade Winds', 'trade-winds';
font-size: 28px;
font-we... | |
doc_34472 | Below is just the main method.
public static void main (String[] args) throws Exception {
Scanner in = new Scanner(System.in);
System.out.println("Enter file name: ");
String fname = in.nextLine();
System.out.println("Enter the starting x coordinate: ");
int x = in.nextInt();
System... | |
doc_34473 | I want to use these classes as a base for my models by inheriting from them.
From P1 I have already referenced P2 but, when creating a new class (be it a model or not) the P2 namespace won't appear in intellisense! Not even in the "using" statement. What I would like to do, for instance:
public class Consultant : P3.C... | |
doc_34474 | const string context = LocationService;
LocationManager locationManager = (LocationManager)GetSystemService(context);
Criteria criteria = new Criteria() { Accuracy = Accuracy.Fine | Accuracy.Coarse };
string provider = locationManager.GetBestProvider(criteria, true);
A: Taken from the documentation for the GetBestPro... | |
doc_34475 | Customer.CustomerId,
Customer.CustomerName,
Customer.CustomerAddress,
[User].UserId,
[User].UserName,
[User].FirstName,
[User].LastName,
UserRole.RoleId,
UserRole.RoleName,
Employee.EmployeeId,
Employee.EmployeeName,
Employee.JoinDate,
MAX(AuditTrail.LastLoginDate)
etc
Questions:
*
*What design pattern should I use... | |
doc_34476 | bundle exec unicorn
And I can visit the web url and see the site running, however as soon as I logout from my remote ssh session, the Unicorn processes die (I'm assuming this) and the site is no longer available.
What's the way to keep unicorn running after I logged out from the console?
Thanks
A: Running the unicorn... | |
doc_34477 | The function is using Node.js 8.10, I'm deploying/testing from the Web Console and the code is below.
const AWS = require('aws-sdk');
let cloudWatch = tempCredentials ? new AWS.CloudWatch({credentials:tempCredentials, region: 'us-east-1', apiVersion: 'latest'}) : new AWS.CloudWatch({region: 'us-east-1', apiVersion: 'la... | |
doc_34478 | require 'simplecov'
SimpleCov.start 'rails'
I am trying to generate the specs coverage report using SimpleCov. Installed simplecov gem too.
Rails version is 5. Still not able to generate coverage folder.
| |
doc_34479 | I tried the following ADSI Edit settings:
Name: RootDSE
Path: LDAP://fabrikam.onmicrosoft.com/RootDSE
Connection point
( ) Select or type a Distinguished Name or Name Context
(o) Select a Well Known Naming Context: RootDSE
Select or type a domain or server ( Server | Domain [:Port])
fabrikam.onmicrosoft.com
This th... | |
doc_34480 | Right now i have two windows: Window A is behind, and Window B is in front. When Window B appears, it disables Window A. Now what i want is that whenever the user clicks outside of Window B, it should give focus back to Window B.
Here is the code for Window B:
class window_b(QtGui.QDialog):
def __init__(self,parent... | |
doc_34481 | My initial thought was to use PIVOT but it is not enabled by default and enabling it would likely be a difficult process with pushing that change to the Production database. I would prefer to use what is enabled by default.
I am considering using COALESCE to translate the boolean value to the string that value that I n... | |
doc_34482 | Kindly advice me, whatever I'm trying to do is feasible or not ? What can be the different ways to accomplish this ?
Thanks in advance
A: I got it :).
div is not a valid child element for p. I removed the wrapper div around the image and it was fixed.
| |
doc_34483 | System.IO.Stream inputStream = assembly.GetManifestResourceStream(assembly.GetType().Namespace + "Manager.NLog.config");
using (StreamReader reader = new StreamReader(inputStream))
{
string result = reader.ReadToEnd();
}
getting null error as input strea... | |
doc_34484 | import numpy as np
import pandas as pd
import PyPDF2
import glob, os
pwd = os.getcwd()
pdfFileObj = open('pdf_filename', 'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
fields_dict = pdfReader.getFormTextFields()
series = pd.Series(fields_dict).to_frame()
df = pd.DataFrame(pd.Series(fields_dict)).T
I want to bu... | |
doc_34485 | Ubuntu 12.04, Python 2.7.3, matplotlib 1.1.1rc
#!/usr/bin/env python
# coding: utf-8
from matplotlib import pyplot as p
from numpy import sin, cos, arange
x = arange(0, 10, .01)
for plotnum in range(1,5):
p.subplot(2, 2, plotnum)
ax1 = p.gca()
p.plot(sin(x),x)
ax2 = p.twiny()
p.plot(cos(x)+plotnu... | |
doc_34486 | There's a class called EFRepository with samples of returning complete tables or record by ID as follows:
public class EFRepository<T> : IRepository<T> where T : class
{
public EFRepository(DbContext dbContext)
{
if (dbContext == null)
throw new ArgumentNullException("dbContext");
Db... | |
doc_34487 | The webservice was created using CakePHP, note that if I use native language to Android or iOS I can connect, for example on Android I'm using Volley API to connect but using AngularJS I can't.
How could I use Basic Auth to connect on a webservice with AngularJS ?
I'm trying this.
Service
var app = angular.module("star... | |
doc_34488 | Here below is an apercu of my code
<select id="region" >
<option value="">Select Region</option>
<?php
$Region = $category->getAllRegion();
if($Region){
while($result = $Region->fetch_assoc()){
?>
<option value="<?php echo $result['regionId']; ?>"><?php echo $result['regionName']; ?></op... | |
doc_34489 |
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<select>
<option value="apple">Apple</option>
<option value="mangoes">Mangoes</option>
... | |
doc_34490 | I have a property with data annotation:
[Required(ErrorMessage = "Login field should be filled in")]
[RegularExpression(@"\w+(@)[a-zA-z]+(\.)[a-zA-z]+", ErrorMessage = ("Use the right email format"))]
public string Email
{
get => authRequstModel.Email;
set => Set(ref authRequstModel.Email, value);
}
In XAML I... | |
doc_34491 | I have the following code:
elementOf :: Eq a => a ->[a] -> Bool
elementOf _ [] = False
elememtOf x (y:ys) = (x==y) || elementOf x ys
but I am getting the following error:
Pattern match(es) are non-exhaustive
In an equation for ‘elememtOf’: Patterns not matched: _ []
I do not understand why I am getting such error be... | |
doc_34492 | We got ourselves an ajax controller, every user input is received through ajax, no direct $_POST is done in my web application.
Let's imagine a few actions of the Ajax controller where we want to put a spam prevention mechanism on:
class AjaxController{
private function setPrevention($interval){
$latestActi... | |
doc_34493 | key_name = ['distractor_shape','stimulus_param','prompt_format','test_format','d0_type','d1_type','d2_type','encoding_rt','verification_rt', 'target', 'choice','correct','debrief','response','CompletionCode']
def headers(list):
brah_list = []
for dup in list:
z = dup.count(',')
nw = dup.split... | |
doc_34494 | WebElement anchoricon = driver.findElement(By.xpath("/html[1]/body[1]/div[16]/ul[1]/div[1]/div[2]/div[1]/i[3]"));
builder.moveToElement(anchoricon).moveByOffset(15,0).clickAndHold().moveByOffset(0,5).release().perform();
I have coded the above in Selenium to automate a task whereby i have an an... | |
doc_34495 | "
[path/to/Adobe Flash Builder Beta 2/FlashPlayer.exe]
Flash Builder cannot locate the required version of Adobe Flash Player.
Do you want to try to run your application with the current version?
Adobe Flash Player downloads"
I have a run config on a localhost server instead of generating the html wrapper. This only h... | |
doc_34496 | My current GitLab pipeline looks something like this:
image: python:latest
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- env/
before_script:
- pip install virtualenv
- virtualenv env
- source venv/bin/activate
- pip install -r requirements.txt
test:
script... | |
doc_34497 | webWrapperView = [[UIView alloc] initWithFrame:CGRectMake(50.0f, frameHeight + 50.0f, frameWidth - 100.0f, frameHeight - 100.0f)];
webWrapperView.backgroundColor = [UIColor whiteColor];
webWrapperView.layer.shadowOffset = CGSizeMake(-5.0f, 5.0f);
webWrapperView.layer.shadowOpacity = 0.3f;
[self.view addSubview:webWrapp... | |
doc_34498 | Is there an easy way to differentiate between those two actions? Specifically, I have a date range selector that, when changed, should call setExtremes on the chart. I also want the range selector to update when the chart is zoomed by dragging. But if both actions fire the same events I have a loop. I could put some... | |
doc_34499 | This has obviously been quite problematic because it means we might have different versions of our sketch deployed in different places without realizing it. Our software developers are very good at using source control but the other teams are not quite so disciplined.
One idea that was proposed was hard-coding a versio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.