id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23499700 | So when I try to compile this new DatePipe().transform(date, 'dd.MM.yyyy') it fails.
Edit
I import DatePipe like this: import {DatePipe} from '@angular/common';
| |
doc_23499701 | The Adaptive Banner takeover screen with wrong height
As shown above, the Adaptive Banner takeover most of the screen with abnormal height for a banner.
Here's my Admob:
// ADMOB
implementation "com.google.android.gms:play-services-ads:20.2.0"
My MainActivity XML
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:a... | |
doc_23499702 |
A: In order to see audit logs for Cloud Storage you have to first enable them.
To enable them in the console go to the IAM & Admin -> Audit Logs and than by selecting Google Cloud Storage you will see on the right side of the screen under LOG TYPE different services which you can enable or disable audit logging for. ... | |
doc_23499703 | Now I would like to give it to a friend of mine. But I don't know how to give it to him.
I developed the plugin with the sdk, on Xcode. So my plug-in appears in VST_SDK/build/VST3/Debug with the name MyPlugin.vst3. When the plug-in is located here, Reaper and PremierePro are able to recognize it. (I told Reaper and pr... | |
doc_23499704 | Django Version: 1.5.1
Exception Type: DatabaseError at /admin/auth/user/add/
Exception Value: no such column: django_content_type.name
I tried to upgrade django, but it says that it is already on the last version, and when I try to delete it manualy, it says that I'm deleting 1.8.2 when the error page says it is 1... | |
doc_23499705 | for each warning for the selected state. The title should be hyperlinked to the URL that can be found in the link element of the item. Each individual warning should contain a hyperlink and a summary. I am currently unsure how to display this data with the code I currently have. I am using cases ... | |
doc_23499706 | Is there a built-in way to format an entire Java project directly using the CLI (without looping using a shell script or something else)?
A: After a quick read of the google-java-format documentation,
it is intended to function one file at a time
or on a group of files,
each listed on the command line.
There appears t... | |
doc_23499707 | it says
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
I made try and catch inside of 'for loop'.
How can I make the correct try catch in this case... | |
doc_23499708 | MATCH (n{RN:1}) match p=n-[r:father*..22]->m return m.RN as RN,m.fullname as FullName,m.sex as Sex,m.bd as BD,m.dd as DD,length(p) as generation,case when left(m.bd,4)>'1930' and rtrim(m.dd)='' then 'Y' else 'N' end as mtDNA_Candidate, reduce(srt2 ='|', q IN nodes(p)| srt2 + q.RN + '|') AS PathOrder order by generation... | |
doc_23499709 |
A: Look here:https://svn.apache.org/repos/asf/mahout/trunk/bin/mahout
# default log directory & file
if [ "$MAHOUT_LOG_DIR" = "" ]; then
MAHOUT_LOG_DIR="$MAHOUT_HOME/logs"
fi
Now depends where you have set your MAHOUT_HOME
| |
doc_23499710 | -putting my function, along with requiring the needed modules
-setting node integration as true
-tried using import, which obviously didn't work
-creating a preload file
Unfortunately, none of these worked. If I'm doing anything wrong, please let me know.
My code:
main.js:
const { app, BrowserWindow, ipcMain } = requir... | |
doc_23499711 | At the moment I'm doing some research on the Mi Band 2 using bluetooth connection with my PC, unfortunately BLE is a new field for me.
By looking at projects like Gadgetbridge or miband2-python-test I try to understand the protocol. I get how the authentication works and how to extract data like battery or time informa... | |
doc_23499712 | I have an app engine running on www.xyz.com and its support wildcard domain.
I have a plan to share my app, so my client will have their own sub domain example client1.xyz.com
How do I, setting CNAME on my client private domain (for example. client1.com ) to be able to forward/aliase on client1.xyz.com
I have googling ... | |
doc_23499713 | col_1 is words, col_2 is a phrase. I want to know, if two words (in col_1) appear in col_2, then change two single words to be a phrase.
here is the dataframe
list1 = [['good', 'hello', 'morning',],['sit', 'good', 'down'],['get', 'who', 'down']]
list2 = [['good morning', 'good afternoon'],['sit down', 'rise up', 'good... | |
doc_23499714 | executing this test
public void test() {
ClientBootstrap client = new ClientBootstrap(new NioClientSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool()));
client.setPipelineFactory(new ClientPipelineFactory());
// Connect to server, wait till connection is established, g... | |
doc_23499715 |
This is my service:
upploadFile(taskId, formData) {
return this.http.post<any>(`${environment.getTask()}/upload/${taskId}`, formData);
}
And I am calling my service
const formData = new FormData();
this.uploadFile.forEach((file: File) => {
formData.append('file', file);
})
this.taskService.upploadFile(taskId, f... | |
doc_23499716 | Test:
test("questionLength property", function() {
expect(2);
var controller = App.__container__.lookup('controller:campaignDeployment');
var store = controller.get('store');
var campaign = store.createRecord('campaign', {id: 500});
Ember.run(function() {
controller.set('model', campaign);
equal(c... | |
doc_23499717 | This is my class:
class JSONAsyncTask extends AsyncTask<String, Void, Boolean> {
ProgressDialog dialog;
@Override
protected void onPreExecute() {
super.onPreExecute();
dialog = new ProgressDialog(RecipeActivity.this);
dialog.setMessage("Loading, please wait");
dialog.setTi... | |
doc_23499718 | I followed from the sample here:
and I have the below code:
var retrieveRequest = new RetrieveRequest();
retrieveRequest.ObjectType = "Email";
retrieveRequest.Properties = new []
{
"ID","Name"
... | |
doc_23499719 | public class BankAccount : AccountBase
{ .. }
I also have a service method that is responsible for saving all these entities. Due to some legacy code, the actual adding/updating of the entity might be delegated to a different service depending on the entity type.
Here is the prototype of the method of the second servi... | |
doc_23499720 | I tried to force the size of the image and the table cells, but the resulting table still has extra spaces. What am I missing?
http://jsfiddle.net/casaschi/M74nN/
HTML
<table id="myTable" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<img src="http://pgn4web.casaschi.net/images/alpha/20/b... | |
doc_23499721 | Something like telegram Animated images: https://telegram.org/blog/animated-stickers. The size of telegram animated images are six times smaller than the average photo.
Code:
AnimatedImage
{
width: 37
height: 28
scale: 0.7
source: "Icons/gifIcon.gif"
anchors.left: parent.left
anchors.top: parent... | |
doc_23499722 | I used NoSuchElementException for this part of my codes.
Here is what I've tried before:
try {
WebElement site_width_full_width = wait.until(
ExpectedConditions.visibilityOfElementLocated(
By.cssSelector("label[for=site_width-full_width]")));
site_width_full_width.click();
Thread.s... | |
doc_23499723 | I have configured a hierarchy as Area-Building and the Time Series ID is the 'MeterId' of the Meter.
The query API (https://learn.microsoft.com/en-us/rest/api/time-series-insights/preview-query#aggregate-series-api) enabled me to aggregate to consumption per day for a single meter. Then I expected to find an API to ag... | |
doc_23499724 | The scenario can be reproduced with the following jsfiddle example.
http://jsfiddle.net/3gqP9/6/
Is there a solution that keeps the input partially hidden?
A: Sure. I don't know why you'd want focus on a partially hidden field, but still - adding to the code from your fiddle:
$('#btn').on('click', function(){
$('#i... | |
doc_23499725 | self.add(TexMobject(r"cos(\frac{2\pi}{6}) + i sin(\frac{2\pi}{6})"))
here I want to change 2 in the numerator to 4,6,8..12.
Is there any solution for this?
A: well, maybe.
(10 is changable)
for x in (10)
a = x * 2
self.add(TexMobject(r"cos(\frac{" + a + "\pi}{6}) + i sin(\frac{" + a + "\pi}{6})"))
| |
doc_23499726 | For example: 1,3,5,12,90
Also ids should not be repeated.
I need to check if a string (coming from outside) matches this rule.
For example i need to check $_POST['id_list']
Data consistency is not important for now (for example insert this value without checking if this ids really exist in table2)
Any advice will be he... | |
doc_23499727 |
import (
"context"
docker "docker.io/go-docker"
"docker.io/go-docker/api/types"
"encoding/base64"
"encoding/json"
"fmt"
)
var client docker.Client
func main() {
ctx := context.Background()
var token = <digital_ocean_access_token>
var creds = types.AuthConfig{
Username: ... | |
doc_23499728 | Codes i tried.
Excel.Range chartRange1;
Excel.ChartObjects xlCharts1 = (Excel.ChartObjects)worksheet.ChartObjects(Type.Missing);
Excel.ChartObject myChart1 = (Excel.ChartObject)xlCharts1.Add(350, 500, 500, 350);
Excel.Chart chartPage1 = myChart1.Chart;
chartRa... | |
doc_23499729 | .data
pantalla:
.word 0
.word 0
.space 1024
campo:
.word 0
.word 0
.space 1024
pieza_actual:
.word 0
.word 0
.space 1024
pieza_actual_x:
.word 0
pieza_actual_y:
.word 0
imagen_auxiliar:
.word 0
.word 0
.space 1024
pieza_jota:
... | |
doc_23499730 | How to handle it?
First idea was is that this is an invalid instruction being in a filter block, so such a code can't be executed. But then I looked at the standard and found strange things.
The standard ECMA-335 says that leave can be used (!) to exit a filter block:
The leave instruction is similar to the br instruc... | |
doc_23499731 | There is an option to define custom phrases which should be used for transcription as stated in the docs: https://cloud.google.com/speech-to-text/docs/speech-adaptation
For testing purposes I am using a small audio file with the contained text:
[..] in this lecture we'll talk about the Burrows wheeler transform and th... | |
doc_23499732 | But what about extra braces in a method.
The compiler does not throw any exception for the following code:
public static void main (String [] args) {
String hello = "Hello";
{
System.out.print(hello);
{{{{{
System.out.println(" world!");
}}}}}
}
}
So why does this work? Shou... | |
doc_23499733 | By "pipeline" program, I mean one that has multiple threads. The mutiple threads work on shared data. Between each thread, there is a queue. So thread A gets data, pushes into Qab, thread B pulls from Qab, does some processing, then pushes into Qbc, thread C pulls from Qbc, etc. The initial data is from the network... | |
doc_23499734 | > sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C ... | |
doc_23499735 | onto the machine I have a library installed using configure --prefix=$HOME/.usr .
after that, I got these files in ~/.usr/lib :
libXX.so.16.0.0
libXX.so.16
libXX.so
libXX.la
libXX.a
when I compile a program that invokes one of function provided by the library with this command :
gcc XXX.c -o xxx.out -L$HOME/.usr/lib -... | |
doc_23499736 | <Style x:Key="MPTextBox" TargetType="{x:Type TextBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="border" BorderBrush="#FFEF7B54" BorderThickness="2" Background="White" CornerRadius=... | |
doc_23499737 | On login application(WPF) creates a list and push data which gets fetched by another module(C++) over server where redis db is been created. Server modules pushes the response to a user specific list from where WPF module read data through polling every 10ms.
Following methods I have created to perform these tasks.
*
... | |
doc_23499738 | I want my tag to be displayed on table view.
here is my code (ignore my syntax ... as i am unable to paste it correctly here)....
XML TO BE PARSED
<Table><category><Name>Books</Name><cid>2</cid><Logo>http://litofinter.es.milfoil.arvixe.com/Thumbnail/5.png</Logo><Product><pid>55</pid><Title>Un producto para cada nece... | |
doc_23499739 | $.support.cors = true;
$.ajax({
beforeSend: function ()
{
},
type: "POST",
url: "test.cgx",
data: hex_str,
dataType: "xml",
... | |
doc_23499740 | I tried with Flume spool directory. It works fine with Text files. For other docs, the mime type is getting corrupted.
Please let me know different approaches to load a file(s) to HDFS.
A: hadoop fs -copyFromLocal <localsrc> URI
Check Hadoop documentation: copyFromLocal
Keep in mind, Apache Flume wasn't created to c... | |
doc_23499741 | The web page is hosted on our private domain so you can only access it through a computer on the domain. I have about 1000 of these to do currently and they are listed in a excel document(the excel/xlsx doc in the google drive link only has 24).
Preview of website - https://drive.google.com/file/d/1ql14srIkjGvmCYU2bAP8... | |
doc_23499742 | Fatal error: Uncaught Error: Call to undefined function sodium_randombytes_buf()
On top of that, the key pairs seems to be generating weird strings like:
kÿòjƒFDú{î—4]F◊߈u…®_•A∞+.
Is that normal?
Here's my code
<?php
// send
$message = 'Hi, this is Alice';
$alice_to_bob_kp = sodium_crypto_box_keypair_from_secret... | |
doc_23499743 | NOTE : The designs consist of lot of images, css, js and charts.
I know the basics of Angular and aware about Form Templates and Reactive forms but styling them from scratch will take a much longer time.
So is it okay to use the existing markup of cshtml and perform the coding part in Angular TS components.
A: yes you... | |
doc_23499744 | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv("titanic.csv")
plt.figure(figsize=(10, 5))
plt.subplot(1, 2, 1)
plt.plot (df(x="Age", y="Sex", color='purple'))
plt.ylabel('Male')
plt.xlabel('Age Group')
plt.title('Male that went Aboard')
plt.subplot(1, 2, 2)
plt.plot(df(x='Age... | |
doc_23499745 | Any ideas on where to look for the error or how to debug this error? I'm also pasting my package.json dependencies below in addition if that helps.
[Error] ERROR
Error: Uncaught (in promise): TypeError: undefined is not a constructor (evaluating 'new Lt.Subject') t@https://xxx.info/beta/app/main.a7aa466b736f5543d287.js... | |
doc_23499746 | Furthermore, looking at the example here (from the tensorflow master branch), and I want to find the source for tf.contrib.layers.sparse_column_with_hash_bucket.
It seems like some cool routines, but I wanted to make sure they were properly using queues, etc, for pre-fetching/pre-processing examples to actually use th... | |
doc_23499747 | -- Update
Kind of like a proxy, but without the file downloading to memory and then sending it to the client.
A: You can do this by simply passing the target url to you script, open the url with file_get_contents(), curl or other file functions and echo the data. ensure to set the Content-Type header to "application/o... | |
doc_23499748 | android:background="@drawable/WhiteButtonSelector"
I need to replace capital letters with underscores and lowercase characters.
For example, the sample string above must be:
android:background="@drawable/white_button_selector"
Only text in double quotes must be replaced. Lines without drawable must be left unchanged.
... | |
doc_23499749 |
*
*31. 12. 2019
*7/2020
The two forms may alternatively occur in the same column; so, the part of the solution have to be detection of the form.
As the second form 7/2020 does not contain the day information, I am using 1 for the day.
So far, I have worked only with the subset of records that used predictable form o... | |
doc_23499750 | per the config file is windows. This is perfectly working.
Now I have to authenticate the users against active directory. (ie. if any AD users
requesting my application, it should authenticate the user (on login page load) and redirect
to the application home page instead of showing login page)
The login page is an a... | |
doc_23499751 | Run npm run dev
> dev
> vite
VITE v3.0.2 ready in 397 ms
➜ Local: http://127.0.0.1:5173/
➜ Network: use --host to expose
LARAVEL v9.42.2 plugin v0.5.0
/home/runner/work/github-actions-attendancedashboard/github-actions-attendancedashboard/node_modules/laravel-vite-plugin/dist/index.js:108
... | |
doc_23499752 | StringReader in = new StringReader("<html><body><p>test</p></body></html>");
However, when I try to use the html string generated by the JavaFX HTMLEditor control, I receive following message:
Caused by: java.lang.NoSuchMethodError: com.itextpdf.tool.xml.html.pdfelement.NoNewLineParagraph.setMultipliedLeading(F)V
at c... | |
doc_23499753 | CREATE view pivmehis WITH ENCRYPTION
as
SELECT APPROVED, [Not Approved] as REJECT, NULL
FROM
(SELECT MgtApproval
from LeaveRequest) l
PIVOT
(
Sum (SchedId) --I DON'T WANT TO SUM THIS COLUMN
FOR MgtApproval IN
([APPROVED], [REJECT], [NULL])) as pvt
Original table results:
MgtApproval SchedId
Approved ... | |
doc_23499754 | Is there a way to pass all variables inside session?
async authorize(credentials, req){
const res = await fetch('http://localhost:3000/api/login', {
method: 'POST',
body: JSON.stringify(credentials),
headers: {"Content-Type": 'application/json'... | |
doc_23499755 | PrintWriter out = new PrintWriter(System.out);
Scanner n = new Scanner(System.in);
while (n.hasNext()) {
String str = n.next();
if (str.equals("m")) {
break;
} else {
out.printf("%s", str);
out.print(" ");
}
}
n.close();
// out.close();
System.out.println("input is successful... | |
doc_23499756 | Here's a sample JComponent I created:
public static class BarRenderer extends JComponent
{
final private double xmin;
final private double xmax;
private double xval;
public BarRenderer(double xmin, double xmax)
{
this.xmin=xmin;
this.xmax=xmax;
}
@Override protected void pai... | |
doc_23499757 | void main()
{
int i[10], sum, n1, n2, size;
cout<<"Enter size array :";
cin>>size;
for(i=0; i<size; i++)
{
cout<<"Enter number 1 :";
cin>>n1[i];
cout<<"Enter number 2 :";
cin>>n2[i];
sum[i]=n1[i]+n2[i];
}
cout<<"sum : "<<sum;
}
i have no idea. please help me... | |
doc_23499758 | -------------------------------------------------
[Browsersync] Proxying: http://localhost:3001
[Browsersync] Access URLs:
---------------------------------------
Local: http://localhost:3000
External: http://147.182.158.57:3000
---------------------------------------
UI: http://localhost:3002
... | |
doc_23499759 | Referring to Intel/AMD up-to-date processors,
does the CPU lookup the caches and DRAM simultaneously?
It might be a good way to save cycles (but is probably more power consuming).
Any answer (preferably with references) will be helpful.
Thanks!
A: The simple answer is NO. The processor usually looks up L1 first. In ca... | |
doc_23499760 | I found a solution :
(python -c 'import struct;print "\x41"*(96)+struct.pack("<I",0x0804a018)+"134514147"' 2>/dev/null) | ./passcode
A: This < I part is a format string, that says pack to use little-endian byte order unsigned int representation for a value given as a second parameter.
You can find all this stuff in... | |
doc_23499761 | For eg:, Login screen appears below home screen.
I have already checked my app-route.module.ts and home-route.module.ts as shown below.
app-route.module.ts
export const appRoutes: Routes = [
{
path: '',
loadChildren: './home/home.module#HomeModule'
},
{
path: 'login',
loadChild... | |
doc_23499762 | Thanks in advance.
.
A: I don't know whether it is the right way or not but still i got it, Just load the project in visual studio go to properties of the project in the solution explorer in that go to build and there you can see the XML documentation file check box check that, As i have shown in the above image in th... | |
doc_23499763 | ||
doc_23499764 | Here's a snippet of package.json
{
"name": "svelte-app",
"version": "1.0.0",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --single",
"start:dev": "sirv public --dev --single"
},
"devDependencies": {
"rollup": "^2.3.4",
"rollup-plugin-livereload": "^2.... | |
doc_23499765 | To demonstrate the problem, in the code below I've commented the interesting lines with numbers. While most variants result in same output, only the line with comment 5 doesn't work. It throws groovy.lang.MissingMethodException: No signature of method: Client2.instanceVar() is applicable for argument types: () values: ... | |
doc_23499766 | Everything has worked fine until I discovered that I needed the Path Hierarchy Analyzer to show what I want to. I now have a custom template (JSON) and changed the out section of my Logstash configuration. But when I index data, my template is not being applied.
(Version 5.2 of Elasticseach and Logstash, can't update ... | |
doc_23499767 | class SettingsAccountDeleteMyAccount extends StatefulWidget {
@override
_SettingsAccountDeleteMyAccountState createState() => _SettingsAccountDeleteMyAccountState();
}
class _SettingsAccountDeleteMyAccountState extends State<SettingsAccountDeleteMyAccount> {
final testData = ["Flutter", "Dart", "Mobile Appl... | |
doc_23499768 | I tried the following code:
[[UIView appearance] setBackgroundColor:
[UIColor colorWithPatternImage:[UIImage imageNamed:@"BackgroundImage"]]];
but it change the background color of every UIView including (UIButton, UIView subclasses and UILabels etc.)
Is there any way to handle this situation, so that i can only c... | |
doc_23499769 | Edit
This is where I get to - the host.Child = (ax); statement gets an error (Cannot implicitly convert type 'DemoFrameControl.DemoFrameCtrl' to 'System.Windows.Forms.Control'), hope this helps clarify my problem
private void WindowLoaded(object sender, RoutedEventArgs e)
{
// Create the interop host co... | |
doc_23499770 | Should I simply create a container class where I put all of the information about a person into it? Or is there a better way to do this?
A: I think it depends on what you want to do with the information. If you need to manipulate the data somehow, then creating a Person class would be wise - you're acting on a person ... | |
doc_23499771 | # WebServiceClient.rb
require 'soap/wsdlDriver'
wsdl_url = 'http://urlmadness?wsdl'
service = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
result = service.simpleMethod(:sayHello => 'Hello')
p result.return
Now I need to write something that will call a web method that is expecting an attached file as a ... | |
doc_23499772 | On initialize its prototype like this:
var comment = $.comment({
Enable: true,
Area: 'body',
maxComment: 5
})
After that later on, if I want to update the option maxComment to 10, I want it to have a function of that to be like:
comment.setMaxComment(10)
The... | |
doc_23499773 | #include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
using namespace Rcpp;
// [[Rcpp::export]]
List mylm(NumericVector yr, NumericMatrix Xr) {
int n = Xr.nrow(), k = Xr.ncol();
arma::mat X(Xr.begin(), n, k, false); // reuses memory and avoids extra copy
arma::colvec y(yr.begin(), yr.size... | |
doc_23499774 | Time,DataSent
00:00:02,1635807
00:00:11,7153658
00:00:19,31766
00:00:27,31319
00:00:35,30179
How can I use python to chart one against the other?
A: Usually use pandas for creating charts in python.
One way to do that with your data structure:
import pandas as pd
string = 'Time,DataSent 00:00:02,1635807 00:00:11,7153... | |
doc_23499775 | clang::TagDecl::isStruct()
How to get members of the structure (declaration, type) in an array like the FunctionDecl class:
clang::FunctionDecl::getParamDecl(unsigned i)
Or in any other ways?
A: The TagDecl must be cast to a RecordDecl that have the methods to get the members / fields information.
clang::TagDecl*t;
... | |
doc_23499776 |
A: You could load the contents of the modal using ajax
In bootstrap docs, it shows you how to remotely load content into a modal using ajax
<a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
and the href attribute is your individual product content
There is also a bootstrap extension as well,... | |
doc_23499777 | I have checked post Json method is not recognized in Web Api controller. I can see the same from the class definitions of Controller & ApiController.
BUT, in ApiController.Json Method MSDN documentation (no version mentioned), it says Json() is part of Api Controller/Web API.
What am I missing here? Why the Json() me... | |
doc_23499778 | A memory leak right? Well no, because we aren't even using it. Azure in-role caching was only left on as on oversight from a previous feature that got removed. We've now turned it off, and did this without having to make any changes to our application, which should prove that we weren't actually using it and therefore ... | |
doc_23499779 | E.g. a Curves.elasticOut for showing and a shorter Curve.linear transition for hiding?
A: The showGeneralDialog method has the following signature:
Future<T?> showGeneralDialog<T extends Object?>(
{required BuildContext context,
required RoutePageBuilder pageBuilder,
bool barrierDismissible = false,
String? barrierLab... | |
doc_23499780 | ABC ACB BAC BCA CAB CBA
AB BC AC CB CA BA
A B C
The regex should (obviously) not match the empty string.
p.s. An alternative way to express the same objective is "match any non-empty string containing each character in the set at most once".
update: The set [ABC] is just an example, for the real set may also be bigger... | |
doc_23499781 |
When using condition variables there is always a Boolean predicate involving shared variables associated with each condition wait that is true if the thread should proceed. Spurious wakeups from the pthread_cond_timedwait() or pthread_cond_wait() functions may occur. Since the return from pthread_cond_timedwait() or p... | |
doc_23499782 |
Line 1 - Date/User Information
Line 2 - Type of LogEvent
Line 3-X, variable number of lines with additional information,
could be 1, could be hundreds
Then the sequence repeats.
There are around 20K lines of log, 50+ types of log events, approx. 15K separate user/date events. I would like to parse this in P... | |
doc_23499783 | #write your function here:
def population_density(population, area):
calc = (population/area)
return(calc)
# test cases for your function
test2 = population_density(864816, 121.4)
expected_result2 = 7123.6902801
print("expected re`strong text`sult: {}, actual result: {}".format(expected_result2,
test2))
A:... | |
doc_23499784 | I have this function in parent.js file:
function update_lineitems_subtotal() {
var qid = $j('[name=SelectedID]').val();
if (!isNaN(qid)) {
$j.ajax({
url: 'hooks/ajax_quote_subtotal.php',
data: {qid: qid},
success: function(data) {
$j('#LineItemsSubtotal').val(data);
$j('#Shippi... | |
doc_23499785 |
A: A pretty big question and i'm sure people prefer different things. Generally speaking, there is an index page where pages are included on request (most times using a switch for file inclusion attack prevention).
The included pages also have a defined constant that is checked, in order to make sure that they cannot ... | |
doc_23499786 | txtusername.Value = objBO_MstrUsers.UserName;
txtPassword.Value = objBO_MstrUsers.UserPassword;
TxtUserlevel.Value = objBO_MstrUsers.UserLevel.ToString();
txtUserPhno.Value = objBO_MstrUsers.UserPhone;
txtUserEmail.Value = objBO_MstrUsers.UserEmail;
A:
I want to get and set data to these text boxes from a database.
... | |
doc_23499787 | This is what i have at this moment using PictureBox:
pictureBox1.BringToFront();
pictureBox1.Dock = DockStyle.None;
pictureBox1.Visible = true;
A: You can try hosting SilverLight inside Winforms.
While SilverLight is intended to be used in a web browser, WPF is more native to desktop, and WPF does have a simimar Busy... | |
doc_23499788 | I can find all forms using :
using System;
using Microsoft.Office.Interop.Excel
using Microsoft.Vbe.Interop;
using Microsoft.Vbe.Interop.Forms;
.....
foreach (Microsoft.Vbe.Interop.VBComponent mycom in wb.VBProject.VBComponents)
{
if (mycom.Type == Editor.vbext_ComponentType.vbext_ct_MSFor... | |
doc_23499789 | Report.java
@XmlRootElement(name="report")
@XmlAccessorOrder(XmlAccessOrder.UNDEFINED)
public class Report implements Serializable{
private static final long serialVersionUID = 1L;
private int id;
private Date date;
private long impression;
private int clicks;
private BigDecimal earning;
p... | |
doc_23499790 | .thing { height: auto }
and HTML:
<div class="thing">The quick brown fox jumps over a lazy dog.</div>
is it possible to detect that the height of .thing is set to 'auto'?
The following methods return values:
jQuery('.thing').height() // n
jQuery('.thing').css('height') // 'npx'
getComputedStyle(node).height ... | |
doc_23499791 | My database has a table with values 'name' (the event under step 2 on the left), 'price', 'date' etc and I'd like to display them dynamically in the dark box on the right depending on which event is chosen.
I'm currently displaying the event itself with the code below, but I'm unsure as to how to develop it to grab dat... | |
doc_23499792 | [Icons]
Name: "{group}..."
Name: "{group}..."
Name: "{commondesktop}..."
Name: "{userappdata}...."
This works, but now I got the request to not have the taskbar icon in Windows 7 to show a standard .exe icon:
What am I missing here; searching for taskbar icon doesn't help me?
A: The icon inside the exe file is set b... | |
doc_23499793 | <?php
//display new featured image thumb
if (has_post_thumbnail()) {
the_post_thumbnail(homethumb);
}
//use the old thumb if there is no new one
$customField = get_post_custom_values("post-thumb");
elseif (isset($customField[0])) { ?>
<img src="<?php get_custom_field('post-thumb',true); ?>... | |
doc_23499794 | Here's my steps to reproduce the problem:
in terminal
django-admin startproject research
django-admin startapp landing
Then I made the following file changes:
landing\__init__.py
default_app_config = 'landing.apps.LandingConfig'
landing\apps.py
from django.apps import AppConfig
class LandingConfig(AppConfig):
d... | |
doc_23499795 | Here is my current code:
class Database {
public $host = '127.0.0.1';
public $username = 'root';
public $password = '';
public $dbname = 'example';
function __construct(){
$this->connect = new PDO("mysql:host=$this->host;dbname=$this->dbname", $this->username, $this->password);
}
}
class Retrie... | |
doc_23499796 | I have the following project structure:
settings.py
STATIC_URL = '/static/'
STATIC_FILES = (
os.path.join(BASE_DIR, "static"),
)
STATIC_ROOT = os.path.join (os.path.dirname(BASE_DIR), "staticfiles", "static")
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS... | |
doc_23499797 | Non-static method 'getPosts()' cannot be referenced from a static context
I'm just starting so I'm going through a tutorial (I have some experience in programming android apps but not much)
the code is:
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setConte... | |
doc_23499798 | CREATE TABLE enghindi (eng TEXT,hindi TEXT)
i have an table named enghindi in that there is two column named hindi, eng, i want to merge eng column's record and also combine hindi word by comma separated
look at the below table is looking like
i want to do look like this below
i want to do this with sqlit... | |
doc_23499799 | but for a tag, I just can use css mostly so I can not add div. Does anybody know how to do it with a link.
This only work for div
div{
height:45px;
width:90px;
border-radius: 90px 90px 0 0;
-moz-border-radius: 90px 90px 0 0;
-webkit-border-radius: 90px 90px 0 0;
background:green;
}
A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.