id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23511900 | Code:
@gif.frame
def lookForward(X1,y1,test1,Pred1,std1):
# Input:
# X1 - input data timestamps
# y1 - input measurements
# test1 - timestamps of outputs
# tidePred1 - estimates of sensor measurements generated from GP posterior mean
# std1 - standard deviation of poster... | |
doc_23511901 | and i want it to accept 100 as max.
I can't use type="number" with min and max because Internet Explorer dose not accept comma in this type which i want to use, so here is my code:
<input type="text" class="form-control" name="fiscal" id="fiscal"
ng-model="vm.peticion.aportacion.benif_fiscal" ng-max... | |
doc_23511902 | db.COURSE.insertMany([
{"Course_name" : "Intro to Computer Science",
"Course_number": "CS1310",
"Credit_hours" : 4,
"Department" : "CS"
},
{"Course_name" : "Data Structures",
"Course_number": "CS3320",
... | |
doc_23511903 | import UIKit
import AVFoundation
import StoreKit
class ViewController: UIViewController,UIScrollViewDelegate,SKProductsRequestDelegate, SKPaymentTransactionObserver {
@IBOutlet var outAddCoins: UIButton!
@IBAction func btnAddCoins(_ sender: Any) {
for product in list {
let prodID = product.produc... | |
doc_23511904 | int autoProp {get; private set;}
Where the associated member variable is automatically generated.
In the property list returned by GetType().GetProperties(), is there a way to distinguish between the two properties in the following class:
class MyClass
{
int regularPropertyValue;
int regularProperty
{
... | |
doc_23511905 | I would like to show three different text based on ngSwitch change. However I cannot get this work when I try to set a value range in ng-switch-when. Is this possible or should I use ngIf instead of ngSwitch?
http://jsbin.com/eWIQoJE/1/edit
A: It is possible, but you need to declare a helper function in your scope
In ... | |
doc_23511906 | and I wanted the first form to be where public users can upload a file.
However when I pull the data to another form I also want their uploaded file to be pulled by the next form. how do I do that?
| |
doc_23511907 | jquery
//save
...
$("input.required").each(function(){
if ($.trim($(this).val()).length == 0){
$(this).addClass("form_error");
formValid = false;
}
else{
$(this).removeClass("form_error");
}
});
HTML
<div class="control-group">
<label class="cont... | |
doc_23511908 | SELECT 'Rupesh' Name ,'2014-02-27 00:00:00.000' OfficeDate,'9.30' InTime,'' OutTime
UNION
SELECT 'Rupesh' Name,'2014-02-27 00:00:00.000' OfficeDate,'' InTime,'6.30' OutTime
UNION
SELECT 'Rupesh' Name ,'2014-02-26 00:00:00.000' OfficeDate,'11.30' InTime,'' OutTime
UNION
SELECT 'Rupesh' Name ,'2014-02-26 00:00:00.000' Of... | |
doc_23511909 | I am logging out the company and redirects it to dashboard login page, this is the URL I am using :
window.location.href = "@Url.Action("Dashboard", "LoginPage", new { area = "" })";
This is URL after redirect :
https://localhost:44345/Company/Dashboard/LoginPage
This is what I want:
https://localhost:44345/Dashboard/... | |
doc_23511910 | Why is it that when I delete the StatsView (from the main todos.js and from todos.handlebars) the remaining method (property) of the todoListController stops updating itself?
Todos.todoListController = SC.ArrayController.create({
...
remaining: function() {
console.log('remaining');//doesn't apear in the consol... | |
doc_23511911 | IP1 : date-time : bitcoin_address1
IP2 : date-time : bitcoin_address2
IP3 : date-time : bitcoin_address3
I was wondering if there is a way to make a script that reads this file (every hour, let's say, using crontab) and when finds something odd, to run a command.
What i specifically need it for the script to find line... | |
doc_23511912 | The issue is that I have an editText that gives me the values for the timer and then should pass them on to the Task to count Down. I must be missing something somewhere because, I cannot seem to get the new value.
This is the code that I am using as the Fragment:
package com.example.app;
import android.app.A... | |
doc_23511913 |
/python3.6/site-packages/pymysql/cursors.py:170: Warning: (1062, "Duplicate entry '2175891' for key 'PRIMARY'")
And second, is there a way to suppress these warnings? What I currently have is:
warnings.filterwarnings("ignore", category=pymysql.Warning)
Yet, I don't want to suppress all the pymysql warnings, only thi... | |
doc_23511914 | But I want to make it automatically process only the specific folder (current working folder directory) when I run grunt by default, because Grunt Email Builder is processing all files in the folder and subfolder that makes it heavier by the time.
grunt email builder process all the folder and takes time to process whe... | |
doc_23511915 | This is my logic for toggling bookmarked true or false.
How do I replace the data.meals[0].bookmarked = true; logic with setState logic so that the page rerenders everytime data.meals[0].bookmarked is set to true or false
I'm trying to set a new property called booknamed to an object gotten from the API
// data.meals[... | |
doc_23511916 | class SimpleView(View):
def get(self, *args, **kwargs):
c = C()
c.m()
class C:
def m(self):
x = # get from an external server if not set
I would like to share x across different requests to SimpleView
For example, let's consider the following scenario:
*
*Someone#1 requests ge... | |
doc_23511917 | Now I want one of this span run that command when page loaded automatically!
Is it possible to do?
I saw the other same questions , but they didn't help me.
thanks
A: Yes, you can use the .trigger() method.
$('span.selector').trigger('click');
A: You can call your function after the page loads like this:
$(document)... | |
doc_23511918 | my_string = "part1"
or:
my_string = "part1/part2"
I need to handle each of the above scenarios conditionally ie (pseudo code):
if my_string = "part1/" + *:
# do this
where * could be any value.
Once I can catch this condition, I will split my_string and assign the second part of the path to a new variable ie:
... | |
doc_23511919 | I have a font with a given style in a css class:
.font_arial_36 {
font-family:Arial;
font-size:36px;
}
And now I have a css that gives me the size of a div in a given situation:
.a_div_test {
width:300px;
max-width:350px;
}
I want the a_div_test to have the properties of the font_arial_36, like an inh... | |
doc_23511920 | Possible Duplicate:
Retrieve id of record just inserted into a Java DB (Derby) database
I have a table in a Derby database with a column created:
id INTEGER GENERATED ALWAYS AS IDENTITY
How do I get the id of the last record inserted?
How can I know what is the id of the record I have just inserted?
A: Java's State... | |
doc_23511921 | Example: I have this dataframe:
test = pd.DataFrame({'id': ['a','a','a','a','b'],
'col_1': [1,2,3,4,5],
'col_2': [6,7,8,9,10]
})
id col_1 col_2
0 a 1 6
1 a 2 7
2 a 3 8
3 a 4 9
4 b 5 10
And what I wa... | |
doc_23511922 | <ruleset version="1.0+">
<rule>
<id location="http://localhost/" />
<action permission="run" />
</rule>
</ruleset>
below are the steps followed to create a jar with a self-sign certificate.
1:jar -cvf DeploymentRuleSet.jar ruleset.xml
2:keytool.exe -genkey -alias SelfSigned -keystore "SelfSigne... | |
doc_23511923 | Any help in this?
| |
doc_23511924 | I'm not sure how to create a vector string.
I've tried the below but it didn't work, the columns are not in the correct order.
I would like the column order to be :
--> primary school, some high school, completed high school, some uni, completed uni
Below is the code I have, and my attempt at creating a vector string... | |
doc_23511925 | func get(name:String) -> Data? {
var retData: Data = Data()
guard let db: Connection = try? getReadableDatabase()! else {return nil}
let query = TABLE_STORAGE.filter(COL_NAME == name).limit(1)
guard let rData = try? db.prepare(query) else {return nil}
for data in rData {
retData.id = data[CO... | |
doc_23511926 | But when a user clicks the Edit tab on a page, after the page goes a little opaque and the animated progress bar appears, nothing else happens. The WYSIWYG editor never shows up.
This is a Windows installation. Using MediaWiki 1.23.
Any hints on what to look at to troubleshoot this issue?
Thanks.
A: It turns out that ... | |
doc_23511927 | In the same controller I call a function, from there I return an array containing the variables (also array's). From within the function I originally started I send the variables to the view.
But, in the view I get an error saying the variable is undefined.
The information I need is in array $items and array $trans. Th... | |
doc_23511928 | Below is my front-end code to make the request. The request is successfully received by Rails, as the response function in this request occurs and my paragraph called "last_chance" is filled by what the server responds with.
$('.other_question a').click(function(e) {
var this_profile_id = window.locat... | |
doc_23511929 | I was able to setup bluetooth, find the bonded device and to connect but am having an issue on transfer data between them
Here is the bluetooth server socket code that listen to bluetooth connection request.
class BluetoothActivity : AppCompatActivity() {
private lateinit var listen: Button
private lateinit var msgBox:... | |
doc_23511930 | My architecture now is:
def build_model(max_len, num_words, num_classes):
I = layers.Input(shape=(max_len, ), name='Input')
E = layers.Embedding(input_dim=num_words,
output_dim=num_classes,
embeddings_initializer='he_uniform',
name='Em... | |
doc_23511931 | I tried to select the name and the maximum grade (with maximum function) but it doesn't work:
select max(stgrade)as highscore,StName,DepName --department
from TBL_DEPARTMANTS d
inner join TBL_LESSONS l on d.DepID=l.LessonID
inner join TBL_GRADES g on g.lessonid=l.LessonID
inner join TBL_STUDENT s on s.STID=g.stid
grou... | |
doc_23511932 | data = np.array([1,2,3,4,5,6],[2,3,4,5,6,7],[2,3,4,5,6,7],[2,3,4,5,6,7])
The code works, it is just that the colors are changing for each frame of the gif. Each column should get and keep one color for each frame. Is there a smarter way to label the lines so I get random colors?
import gif
from matplotlib import pyplo... | |
doc_23511933 | app.config:
<connectionStrings>
<add name="Program.Properties.Settings.InventoryDBConnectionString"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\School\Stage\Program testen\Program\bin\Debug\InventoryDB.accdb"
providerName="System.Data.OleDb" />
</connectionStrings>
in standar... | |
doc_23511934 | How can I get two "density" legends with two different color gradients?
I have tried group but it does not work.
The following code generated the above graph:
library(ggplot2)
df <- data.frame(x=c(rnorm(1000,1,.1),rnorm(1000,3,.1)),
y=c(rnorm(1000,1,1),rnorm(1000,3,1)),
type=c(rep('a... | |
doc_23511935 | batch_test 1:
@echo off
set var=D:
set var_2=%var%\DOMAIN
set var_3=%var_2%\sub_domain
call batch_test2.bat
@echo %var%
@echo %var_2%
@echo %var_3%
batch_test 2:
@echo off
if 1==1 (
set var=E:
set var_2=%var%\Component
set var_3=%var_2%\comp1
)
output:
E:
D:\Component
D:\DOMAIN\comp1
e... | |
doc_23511936 | As an example, I have the following DataFrame (here sorted by Title):
AlbumArtist Album Track Title Year
0 BABYMETAL METAL GALAXY 2 DA DA DANCE 2019
1 Bandai..Sora Ltd. Super Smash Bros. 3 Death Mountain 2018
2 ... | |
doc_23511937 | I am trying to train binary data. It is working fine with some binary datasets but for my binary file its showing error.
Here is the binary file reading function:
def read_f32_bin(filename, start_idx, channel_first):
with open(filename, 'rb') as bin_f:
iq_seq = np.fromfile(bin_f, dtype='f')
n_samp... | |
doc_23511938 | There is nothing placed on top of the groupBox or anything like that. Some groupboxes are correct, some are not. I have no clue what's wrong :-/
I intended to disable hardware graphics support to see if there was a change, but the registry path given in the msdn-guide wasn't found on this computer.
I'm running WinXP ... | |
doc_23511939 |
table {
border: solid 1px #eee;
text-align: right;
}
tr,
td,
th {
padding: 0;
margin: 0;
border: none;
}
th,
td {
width: 90px;
height: 24px;
line-height: 24px;
padding: 0;
}
th {
background-color: #f4f4f4;
}
.first-col {
text-align: left;
}
<table class="satisfaction">
<... | |
doc_23511940 | On AWS Lambda, it's already timeout because Promise.all() are not completed and I don't receive the new messages in my SQS queue.
However, the console.log(promises) returned : 2017-01-29T22:55:46.191Z 0e82eeaf-e676-11e6-b69d-73a6bbd86272 [ Promise { <pending> } ]
var url = require('url');
var AWS = require('aws-sd... | |
doc_23511941 | The thing is I want each to each child in the grid to have an additional +0.5s in the animation-delay. But I've tried in several ways, and I can't make it work.
I tried using :nth-child() in the .grid class to add +0.5s in the animation-delay to each child , but it didn't work. Can someone help me to make this work?
li... | |
doc_23511942 | this is my sight.
class TotalSale(ListAPIView):
serializer_class = TotalSaleSerealizer
def get_queryset(self):
queryset = Sale.objects.raw("SELECT 1 id, SUM(totalprice),
to_char(datesale,'yyyy-MM') FROM sales_sale group by
to_char(datesale,'yyyy-MM')")
return querys... | |
doc_23511943 | Now I am changing the rgb values but the problem is that the existing program only reads the value if both the r, g and b values have 3 numbers.
For example, if I write down the rgb value it says: 255,0,0 or 0,0,225. The only way the existing program is able to read the rgb values is if they are wrote down like this: ... | |
doc_23511944 | I just got a Raspberry Pi and I am trying to write to a file using Python. I wrote this small program that gets input from the user and it will be put in a text file.
# Grabs a line from user input and saves it to a file
import sys
for line in sys.stdin:
file = open('notes.txt', 'a')
file.write(line)
file.clo... | |
doc_23511945 | The problem is an access violation that occur in a part of the code.
Basically we have something like this:
void aclass::somefunc() {
try {
erroneous_member_function(*someptr);
}
catch (AnException) {
}
}
void aclass::erroneous_member_function(const SomeObject& ref) {
// { //<--scope here error goes awa... | |
doc_23511946 |
object is like this
public class Propertey
{
public string Key { get; set; }
public string Value { get; set; }
}
public class MonitoringEvent : DocumentEntity
{
public string AppName { get; set; }
public string Service { get; set; }
public string Fuction { get; set; }
public string CorrelationI... | |
doc_23511947 | EyeLib
L-Include
| L-PublicInterface.h
L-Lib
| L-debug
| | L-MyLib.lib
| | L-MyLib.pdb
| L-release
| L-MyLib.lib
L-MyLibConfig.cmake
Where the MyLibConfig.cmake file is extremely simple, and contains:
# the header file is relative to this cmake file, so get the path.
GET_FILENAME_COMPONENT( MyLi... | |
doc_23511948 | to change the navbar collapse but I am having a problem with the toggle on the nav.
I put in this for min-width: 992px to make my menu hover open rather than toggle for desktop sizes.
ul.nav li.dropdown:hover ul.dropdown-menu {
display: block;
} /* adding hover effect to bs navbar only for md size and up... | |
doc_23511949 | data test ;
INPUT id st end ;
datalines ;
1 17 .
1 17 .
1 17 17.5
1 17 .
1 17 .
2 15 .
2 15 .
2 15 .
2 15 .
2 15 15.75
run ;
data test2 ;
set test ;
dur = end - st ;
run ;
I would like to fill in the missing values of "dur" by "id" to give:
id st end dur
1 17 . 17.5
1 17 . 17.5
1 17 17.5 ... | |
doc_23511950 | ||
doc_23511951 | let dimensions = ["category" : "politics"]
PFAnalytics.trackEventInBackground("Read", dimensions: dimensions, block: { (succeeded: Bool, error: NSError?) -> Void in
})
and I've also tried
let dimensions = ["category" : "politics"]
PFAnalytics.trackEventInBackground("Read", dimensions: dimensi... | |
doc_23511952 | Now.......I thought it was going to be easier to set the whole menu to 47 px uniformly.
Here is the actual menu: http://jsbin.com/xiwayugu/2/
I am wondering what exactly I should adjust to 47 px (apart from the #cssmenu and #cssmenu > ul that I have already adjusted) to keep this menu nice and tidy?
Then again...one of... | |
doc_23511953 | tokio::run(my_future);
My future goes on to start a bunch of tasks in response to various conditions.
One of those tasks is responsible for determining when the program should shut down. However, I don't know how to have that task gracefully terminate the program. Ideally, I'd like to find a way for this task to cause... | |
doc_23511954 | I have a tags field on database and i am searching like
SELECT * FROM table WHERE tags LIKE '%$keyword%' and tags LIKE '%$keyword%'
i seperate tags by space like ;
america england france
i want to show you my table structure
id | title | tags
1 title1 america france
2 title2 american english
3 ti... | |
doc_23511955 | My div is like this :
<div id="mainPlayer" class="imgcontainer scrcontentsection">
<img id="1" src="http://sukhiimg.net/potrait/p1.png" class="cls" width="653" height="600" alt="1" /><br />
<img id="2" src="http://sukhiimg.net/potrait/p2.png" class="cls" width="653" height="600" alt="2" />
<img id="3" src... | |
doc_23511956 | models.py
JobCategory(models.Model):
title = models.CharField(max_value=100)
Job(models.Model):
title = models.CharField(max_value=200)
job_category = models.ForeignKeyField(JobCategory, on_delete=models.CASCADE)
So on my angular component i have a select field which loops over the job categories like thi... | |
doc_23511957 | using Czm.Perimetry.Analysis.Core;
using Czm.Perimetry.Analysis.IO;
And when I look at my project in Visual Studio no errors come up. However when I run the project I get:
Error CS0246 The type or namespace name 'Czm' could not be found
(are you missing a using directive or an assembly reference?)
I don't u... | |
doc_23511958 | <a class="button campaign-button" id="ctl00_main_fastcheckout_FastCart_FastDiscount_lbDiscountCode" href="javascript:__doPostBack('ctl00$main$fastcheckout$FastCart$FastDiscount$lbDiscountCode','')"><span>OK</span></a>
Is there a default way of disabling postbacks perhaps on document load?
Thanks :)
A: You can always ... | |
doc_23511959 | I have:
' Cast(Name AS varchar(max)) NOT IN (''Jimmy' + CHAR(39) + 's'')'
But I am getting an error with the CHAR(39). How can I effectively make it look like Jimmy's inside the string? I know it's probably a stupid fix, but please help.
A: You need to double it up again since the apostrophe has to survive two rounds... | |
doc_23511960 |
A: You dont need to store, just dont release them
Another way to ensure that you dont release them
In your app delegate
.h file
Add a property
@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
NSMutableArray *viewControllers;
}
@property (retain, nonatomic) NSMutableArray *viewControllers;
In the .m ... | |
doc_23511961 | Below is my sample code which I used. It not working..
string filename = "Sample server url";
response.redirect(filename);
A: If you want to render the file(s) so that you could save them at your end instead of opening in the browser, you may try the following code snippet:
//create new MemoryStream object and add PD... | |
doc_23511962 | When I attempt to call exportGrid on the Data Grid, it generally works well. However, it seems that past a certain point of data, I'm unable to export the grid.
When I run the export, I get the error:
xspClientDojo.js:5 Uncaught Error: TableStore: invalid parameter
This appears to be occurring during the "getValue" fun... | |
doc_23511963 | public void onClick(View view) {
Context context = getApplicationContext();
Intent notificationIntent = new Intent(context, MainActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(context, 0,notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);
Resources res = context.getResourc... | |
doc_23511964 | I want to see the SQL generated by my Entity Framework code, but all of the examples I find use the
var x = from u in table
select u;
type of syntax; But most of my queries are more like ..
var x = context.Users.Single(n => n.Name == "Steven");
type of syntax. What can I do to see the SQL generated, from thi... | |
doc_23511965 | Here is the code on the server side : http://pastie.org/1537175
I get how you can send a message to a client with client.broadcast(msg), but I don't get how you can do it outside of the
io.on('connection', function(client){
... }
loop
I would like to invoke a client.broadcast(msg) when someone hits a particular u... | |
doc_23511966 | fileID = fopen(file_name, 'wt');
A = {'HRC-ID', '45700037'};
B = {'HRC-ID', '45700038'};
C = {'HRC-ID', '45700017'};
D = {'HRC-ID', '45700018'};
fprintf(fileID, '%s,', A{1,1:end});
fprintf(fileID, '\n%s,', txt{1,7}{14:end,1});
csvwrite(file_name, deltas_37, 1, 2);
fclose(fileID)
*txt is the vertical text array
*de... | |
doc_23511967 | import scala.concurrent._
import scala.concurrent.ExecutionContext.Implicits.global
val x = Future(Future(10))
val y = x.flatten
However, scala 2.11 does not provide a flatten method. Any idea how can I achieve the same result in scala 2.11
edit: Can the cats library help?
A: Use flatMap:
val y = x.flatMap(identity)
... | |
doc_23511968 | public static <T, S extends T> void testMethod(T t, S s)
{
System.out.println("We are inside testMethod.");
}
and then I called this method in two ways as follows:
java.lang.Integer num1 = new java.lang.Integer(0);
java.lang.Integer num2 = new java.lang.Integer(1);
testMethod(num1, num2);
testMethod(num1, new Obj... | |
doc_23511969 | <video autoplay>
<source src="" type="video/mp4" width="100%" height="100%">
</video>
The video display like below:
I now which to change the background color of the control bar indicated above. I have searched but have not found something so far. Appreciate assistance
A: Here you can find an answer to your ques... | |
doc_23511970 | I would like to log in to cshayward.com, but when I load cshayward.com/wp-admin, it has the right title but the form action is cjshayward.com/wp-login.php. Whenever I try to log in to the present stub's administrative console, it bounces me to the other site.
I've tried deleting browsing history and using other browser... | |
doc_23511971 | If I used an image from assets it works but I'm loading my images from firebase via a url and when I try to apply the code below backgroundProfileImage.image equals nil or an Image is not detected. Im also using SDWebImage load my images if that helps. How can I make this work? I Appreciate the help in advance. Thanks
... | |
doc_23511972 | I made something with class based views and it works. But Staff are redirected to an empty page where they can click on a dashboard button which redirects them there. This dashboard button shows only if they are in a specific group restricted by a for loop in the template.
And when employers try to go manually to that ... | |
doc_23511973 | add_triangle_check = 1
while add_triangle_check > 0:
print "test"
add_triangle()
add_triangle_check= add_triangle()
def add_triangle():
add_triangle_check = 0
user_input = raw_input("Do you want to add more triangles? Y/N")
if user_input == ("y") or user_input == ("Y"):
... | |
doc_23511974 | "Access to localhost was denied"
"You don't have authorization to view this page."
"HTTP ERROR 403"
The login page is not opened, do not request for user authentication
This only happen when is executed in the host that the tomcat is installed; I can access the page within the local net.
Thank you and best regards
spc... | |
doc_23511975 | To display photos that user 5 did like I write:
Select
wp_photos.Photo_Id
From
wp_photos inner Join
wp_photos_likes On wp_photos.Photo_Id = wp_photos_likes.Image_Id
Where
wp_photos_likes.From_Id = 5
Group By
wp_photos.Photo_Id
I would like a query that displays all photos that user 5 (From_Id) did not like.
Tryi... | |
doc_23511976 | I have made use of docker.build command for my docker build process in my JenkinsFile and run it in server1, but it throws 'docker command not found', because there is no Docker installed in server1. And the code I have used is as below:
stage 'Build Docker image'
node {
def image = docker.build('/sampleApp:2.1')
}
... | |
doc_23511977 | //while user doesn't press quit, hasn't crashed into a bomb or hasn't saved all bears the game continues
while (((!wantsToQuit(key)) && (hasLost == false)) && (bearsSaved !=3))
{
if (isArrowKey(key))
{
updateGameData(grid, bears, bombs, detonator, exit, key, message, bearsSaved, bombsActive, moves, ... | |
doc_23511978 | Is there a way to tell the compiler that a is actually non-null from some point on? If not, what is the clearest way to deal with such optional parameters?
Example code:
using System;
namespace test
{
public struct A { public int x; };
class Program
{
static void f(A? a = null)
{
... | |
doc_23511979 | When I debug the code, it says 'setState() callback argument returned a Future.'
await getOrderDetailsApi(orderid).then((value) {
orderDetails = value!;
ScaffoldMessenger.of(state!.context).showSnackBar(SnackBar(
content: Text(
S.of(state!.context).notificationWasRemoved,
),
... | |
doc_23511980 | <FlowDocument>
<Paragraph Margin="0,0,0,0"/>
</FlowDocument>
</RichTextBox>
This is a basic layout of my current XAML. When I first launch my application, it works fine. However, after pressing CTRL+A, the margins seem to reset & one press to Enter seems to add two new lines to the Paragraph.
Is there ... | |
doc_23511981 | Since I am running the test suites on this HTML runner, I can only use the capabilities offered by Selenium IDE, meaning JS functions.
I tried to execute this document.getElementsByTagName('iframe')[2].contentWindow.document.getElementsByClassName('input').value in the devtools console and it worked, but not when using... | |
doc_23511982 | I added to my linker command line options this argument:
/ENTRY:mainCRTStartup
I suspect that might be related to the fact that I have no output in VS that shows the messages printed with g_print
I also tried calling printf and see no output in VS2013's output window, nor the "immediate window"
Does anyone have experie... | |
doc_23511983 | Ps.
To be more specific, how different is Nginx+php-fpm or Nginx+wsgi+python/ruby from node alone regarding performance or utilizing computing resource that node claims? Couldn't node just use existing FastCGI models, be a sync style JavaScript interpreter and let webserver do its async job?
A: Cross-posted from NodeJ... | |
doc_23511984 | Lighting is disabled so no ambient or other light should be included in the color calculation.
glBegin(GL_POLYGON);
glColor4f(1.0, 0.0, 0.0, 1.0);
glVertex2f(0.0, 0.0);
glVertex2f(1.0, 0.0);
glVertex2f(1.0, 1.0);
glVertex2f(0.0, 1.0);
glEnd();
I take a screen-shot of the resulting window and then load the image into a... | |
doc_23511985 | The below layout is for portrait mode. When the orientation changes I want the TextView with id elapsedTime to be moved next to TextView with id baseTime for landscape mode and back to the same location on portrait mode.. Is this programatically possible?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andr... | |
doc_23511986 | the origin (0, 0) is top left and coordinates grow right and down. The unit of measure is always point (1/72 inch).
http://www.pdfsharp.net/wiki/Graphics.ashx
PdfSharp
PdfSharp.Drawing.XGraphics gfx = PdfSharp.Drawing.XGraphics.FromPdfPage(page);
dfSharp.Drawing.Layout.XTextFormatter tf = new XTextFormatter(gfx);
pn... | |
doc_23511987 |
A: Your question is based on a false premise -- as Co_42 noted, & is not the "ASCII value" of '&'. It's a HTML character reference representing the character '&'. The ASCII value of '&' is 38 (or 0x26).
Your source code almost certainly consists of ASCII or Unicode text files. Those don't use HTML entities. If you... | |
doc_23511988 | from pandas.tseries.offsets import CustomBusinessDay
usb =CustomBusinessDay(calender=USFederalHolidayCalender())
usb
Error- ImportError: cannot import name 'USFederalHolidayCalender' from 'pandas.tseries.holiday' (c:\users\shivh\appdata\local\programs\python\python38-32\lib\site-packages\pandas\tseries\holiday.py)
A:... | |
doc_23511989 | Also interested in any existing attempts to create a Spring Data module for Big Query.
Finally I was curious what attempting to build such a module and donate it to the Spring Community would entail.
A: *
*There is no Spring Data Google BigQuery module. If you can use JPA as @manish suggests, you can use Spring Data ... | |
doc_23511990 | Then, I'd like to send it to my server. I see that sending the base64 encoded string is a bad practice and I figured the best solution is using the file transfer plugin.
So, I added the plugin and I wrote this:
function onPhotoURISuccess(imageURI) {
try{
var url = "myserver/addPhoto";
alert(url);
... | |
doc_23511991 | @Script1;
@Script2;
@Script3;
My problem is some of the nested script could be empty,they exist but are blank (0kb size), which cause an error when I execute the main script.
I can not add comments to the scripts since they are generated programatically.
Is there any way to skip this error?
| |
doc_23511992 | If i click on the function in the main.cpp it takes me to the header file. But for some reason when i compile the program I get "undefined reference to " the function in main.cpp.
Ive tried to add the path of the include folder where the header file in the .pro file but it didnt work.
It seems to me that Qt sees the fu... | |
doc_23511993 | Any ways to make sure that the program won't get terminated before the pc shutdowns or anything?
A: If your goal is to block internet access, I recommend enforcing this rule on your router rather than on your PCs. It would be a much simpler, much more reliable solution. Your router probably already supports the feat... | |
doc_23511994 |
A: You can use the manual method outlined here:
https://stackoverflow.com/a/13086894/1419970
Or you can use this library: http://www.nuget.org/packages/51Degrees.mobi/3.2.10.3-beta
Both will do for you.
A: I found great library. It's very easy to use. I am not sure is it 100% reliable, but it's covering all my cases.... | |
doc_23511995 | // Code goes here
class DemoA { // A class declaration.
// Implicitly null parametrized void type functions are declared.
show1() {
document.write("showA() function in class A");
}
show2() {
document.write("after implicit/explicit casting this function cannot be called!");
}
}
class DemoB { // Anoth... | |
doc_23511996 |
<html>
<title>Dojo Example</title>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js"
djConfig="parseOnLoad: true">
</script>
<script type="text/javascript">
dojo.require("dojo.parser");
dojo.require("dijit.form.ValidationTextBox")
</script>
<label for="... | |
doc_23511997 | When the notebook is run locally, import my_module just works.
A: At the bottom of the welcome notebook at colab.research.google.com there's a link to an example notebook titled "Loading and saving data: local files, Drive, Sheets, Google Cloud Storage" (https://colab.research.google.com/notebook#fileId=/v2/external/n... | |
doc_23511998 | Example structure:
PUT /test_index/
{
"mappings": {
"item": {
"properties": {
"test_suggest": {
"type": "completion",
"index_analyzer": "whitespace",
"search_analyzer": "whitespace",
"payloads": false
}
}
... | |
doc_23511999 | PROBLEM:
The problem is on the initial click, the expansion/transition won't play and the element would simply snap in to place. Of course this also has a reverse transition but since it's the second click of that child cell/element, the transition would play.
~Parent grid~
<template>
<div class="jobGrid myr" id="j... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.