id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23515900 | I want they should be able to collaborate and be able to manage revisions with
[1]: http://tortoisesvn.tigris.org/ "Tortoise SVN"].
How can I accomplish that?
A: That's not quite how SVN works. You should look at setting up an SVN repository with someone such as Assembla or Unfuddle and then each person would work... | |
doc_23515901 | When the width is more than 600px (the page limit), the drawer is rendering inside the appBar (picture incorrect). When the page is smaller than 600px it renders correct (picture correct).
I am using material-ui components, the app bar is position as absolute, because I am implementing on scroll events. To centralize t... | |
doc_23515902 |
A: The first place I would start is checking if whatever brokerage you use exposes some kind of API or data feed for you to be able to programatically access your trade data. Without that, beginning the project will already be rather difficult unless you plan to manually fill in the trade information somewhere.
| |
doc_23515903 | They work perfectly separatly and there is no problems.
But when I try them together,it looks like facebook api try to connect with google authentication.
Exactly when i click on the facebook sign in, i have this error:
*Fatal error:
Uncaught exception 'Google_AuthException' with message 'Error fetching OAuth2 access ... | |
doc_23515904 | ||
doc_23515905 | Here is my Java code:
private class MYView extends View {
public MYView(Context context) { super(context); five = 555; }
public int five;
....
}
C++ part:
jobject view = (jobject) Env->CallObjectMethod(Obj, jfindViewById, 3);
ClassMYView = Env->GetObjectClass(view);
jfieldID f = Env->GetFieldID(ClassMYView, "... | |
doc_23515906 | I am working in MVC 2.0. Now I got a requirement regarding the Slider in the MVC. I have attached a image file below. How to implement this in MVC? How to get started with this? Is there any jQuery for this?
A: There's a nice jquery slider plugin you may take a look at. And here's another one.
| |
doc_23515907 | Everything works well, just a little problem: when the apps run for the first time and ask the location permission (using a dialog) and the user accepts, the code on flutter doesn't continues the execution.
Here is the code:
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFram... | |
doc_23515908 | i already tried it in at the bottom of the footer and i don't know what let it happens, just do not work...
$('body').hasClass('translatepress-ru_RU') {
$("#menu-item-17728").css("display","none");
}
A: You can do this with css.
body.translatepress-ru_RU #menu-item-17728{
display:none;
}
| |
doc_23515909 | const studentElem = component.find("students").getElement();
if (studentElem != undefined) {
let studentNoice = studentElem.innerText;
studentNoice = studentNoice.replace('classNo', 'Reg No.');
studentElem.innerHTML = studentNoice;
}
const staffElem = component.find("staff").getElement();
if (staffElem != unde... | |
doc_23515910 | create table t (i integer, j integer)
insert into t values(100,210)
insert into t values(200,290)
insert into t values(300,100)
insert into t values(400,500)
I'd like to adjust the j column so that
* j=j+10 if i=j+10 exist
* j=j-10 if i=j-10 exist
After the adjust the table would look like
select i,j from t
i j
--... | |
doc_23515911 | Our servers use the version 1.6 while clients use version 1.8, in the process of authenticate, we generate a key by "SHA1PRNG" with SecureRandom, while the following code:
i.e.:
KeyGenerator keygen = KeyGenerator.getInstance("Blowfish");
SecureRandom foo = SecureRandom.getInstance("SHA1PRNG");
foo.setSeed("baa".getB... | |
doc_23515912 | I have gone through MSDN article on Enabling Storage Logging. But according to it Application Logging on Blob Storage cannot keep per Tenant.
My question is,
*
*Is there a way to configure multiple Blob storages and write log
entries to them?
*If not, Is there any way to handle this using code?
*Is there any log... | |
doc_23515913 |
getPatientsResource() : Observable<any[]> {
return this.httpClient.get(environment.queryURI + '/Patient',
{ headers: this.getHeaders() }).pipe(
map(res => res['entry'].filter(res => {
let currentYear = new Date(res.resource.birthDate).getFullYear(); console.log(new Date(res.re... | |
doc_23515914 | I only want this for a specific robot, not all robots under management console.
I know there is an option under management console, but that emails for every robot and every log.I don't want that. Thanks
A: Add a try step as the very first action of your robot. At the lower branch, add any action to log your error (wr... | |
doc_23515915 | CREATE TABLE "test_ids" (
var1 TEXT,
var2 TEXT,
var3 TEXT,
time INT
);
INSERT INTO "test_ids" VALUES
('d1', 'i1', 'f1', 1),
('d2', 'i1', 'f1', 2),
('d2', 'i2', 'f1', 3),
('d1', 'i1', 'f2', 4),
('d3', 'i3', 'f3', 1),
('d3', 'i4', 'f3', 2),
('d3', 'i5', 'f3', 3),
('d3', 'i3', 'f4', 4),
('d4', 'i1', 'f5', 5);... | |
doc_23515916 | I can test the application on 1001 port and 8086 port.
Subsequently, when I try to deploy Application 2 on 1002 port. I can see that the application gets partially deployed to Server 1 and can be tested successfully on port 1002.
Can anyone explain this behavior of the Mule Standalone instances.
I am a newbie and tryin... | |
doc_23515917 | My code looks like that:
router.get('/objects', async (req: Request, res: Response) => {
const objects = await getConnection()
.getRepository(Object)
.createQueryBuilder("object")
.getMany();
return res.status(OK).json({objects});
});
It returns:
{
objects: [
{
id: "11",
name: "Eleven"
},
{
... | |
doc_23515918 | See the below code and get this an error :
Failed assertion: line 259 pos 12: 'remoteModelName != null ||
localModelName != null': is not true.
This is the void of on pressed:
Future runmodel() async {
manager.registerLocalModelSource(FirebaseLocalModelSource(
modelName: 'mobilenet_v10',
assetFilePath... | |
doc_23515919 | moviemodel.js
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const Movie = new Schema(
{
name: { type: String, required: true },
time: { type: [String], required: true },
rating: { type: Number, required: true },
},
{ timestamps: true },
)
module.exports = mongoose.model('users',... | |
doc_23515920 | I need to loop through an array of parent/children and add them to my xml. If the parent does not exist, I want to create it and then add a child. If it does exist, I want to add the child to that element.
Essentially, this:
$arr = array(
'fruit' => 'apple',
'car' => 'toyota',
'fruit' => 'kiwi',
'car' => ... | |
doc_23515921 |
public class jdbc_test {
public static void main(String[] args)
{
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
System.out.println("Driver loaded sql server");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("Driver l... | |
doc_23515922 | I can't post images here yet so here's a link to a screenshot: http://i.imgur.com/lQjeG6q.png
Note: This is a part of a debugging lesson in Udacity's Android Course, the tutorial shows Android Device Monitor displaying the app package below the device with the process ID. The tutorial screenshot: http://i.imgur.com/l0P... | |
doc_23515923 | $errors = array('Price'=>array('not a positive decimal number'=> 1), 'TaxYear'=>array('not a positive integer'=>1, 'not 4 digits'=>1), 'Address'=>array(''=>1), 'State'=>array('not 2 letters'=>1, ''=>1), 'ListDate'=>array(''=>1, 'some test'=>1, ''=>1));
echo '$errors:<pre>' . print_r($errors,1) . '</pre>';
Array
(
[Pr... | |
doc_23515924 | So this is the on the main page:
<div id="contentDiv">
<div style="margin-top: -31px;">
<form>
<table class="tableFormLayout" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="button" id="openOrderItemAddPopup" value="Add" />
... | |
doc_23515925 | export class additem extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
price: "",
category: "",
};
}
submitItem = (name, price, category) => {
this.props.navigation.navigate("ItemList", {
item: {
name: name,
price: price,
c... | |
doc_23515926 | $ openssl x509 -inform PEM -in <CER file here> -out <CRT output file>
I then import the root, intermediate, and service certs to the keystore, which already has the private key:
keytool -importcert -file $CERT -alias $ALIAS -keystore test.jdk
I then convert the jsk file to a p12 file, followed by converting that to a... | |
doc_23515927 | I have enabled the developer console to get logs , but when javascript error occurs it does not include corresponding line number.
Since the web application handles touch and gesture events, I cannot test them on desktop version of the browser!
Any help will be appreciated.
A: You can add a window level error handler ... | |
doc_23515928 | #include <iostream>
#include <map>
#include <algorithm>
#include <string>
#include <typeinfo>
#include "druga_verzija.h"
using namespace std;
//constructor
Posiljka::Posiljka(){
m.clear();
}
//how to print my map
ostream&operator<<(ostream&f, Posiljka&p){
map<string , int>::iterator it;
it=p.m.begin();... | |
doc_23515929 | Thanks
A: You can setup the dispatcher instance in front of author or can be publish, But ideal use of dispatcher apply when we set up in front of publish to perform Load Balancing / Caching. To set up dispatcher in front of author or publish is based upon the configuration in dispatcher.any via renders as below
/ren... | |
doc_23515930 | When using plain events I often end up with code that looks like
x.SomeEvent += SomeEventHandler;
SomeEventHandler(x, EventArgs.Empty);
Using IObservable I was hoping to wrap the event with something that pushes the initial value. If I have multiple subscribers they should receive the newest value upon subscription
I ... | |
doc_23515931 | I have something like this:
<a id="test"></a>
<script>
$("#test").click(function()
{
var link = "test.org/test.php?variable_1=something&variable_2=something";
window.open(link);
});
</script>
My problem is that I also need to append to that link the _ga variable from Google Analytics Lin... | |
doc_23515932 | $('.some-element').click(function(e){
e.preventDefault()
// some other code
});
I'm using the same approach here with my extension but what i'm finding is that sometimes this will work and other times not. For example if I go to a site where an <a> tag in an area of the page has already had a preventDefault bound t... | |
doc_23515933 | https://bugs.python.org/issue24416
In short, it was decided that the result of datetime.date.isocalendar would be changed to a namedtuple instead of tuple.
Now, I can see the benefit in doing that, but they also decided "to pickle" the new object (datetime.IsoCalendarDate) as a tuple:
https://github.com/python/cpython/... | |
doc_23515934 | function getExp()
{
var exp = "]]><!\\[CDATA\\[";
return exp;
}
but its returning
]><!\[CDATA\[
what is the issue why string is not returned by function as it is ?
A: It's because you're using '\' (escape key) in your string so it's ignoring the text to the right of that. try this instead.
var exp = "]]><!\\... | |
doc_23515935 | let interval = new Interval(1000);
interval.ontick = function(progress){
console.log('Progress:', progress);
};
interval.start(10);
Inside start() call onTickEventHandler() after timeout a second, but ontick is undefined.
function start(count) {
_count = count;
_intervalId = setInterval(onTickEventHandler,... | |
doc_23515936 | Name: Rate
A : +1.05
B : +1.95
C : +0.50
D : -1.25
E : -0.35
F : -1.50
But When order by rate DESC
I am getting like this.
Name: Rate
B : +1.95
A : +1.05
C : +0.50
D : -1.25
E : -0.35
F : -1.50
But It should be or I want to like this
Name: Rate
B : ... | |
doc_23515937 | When I compiled this code in visual studio 2015, It works perfectly.
However When I compile this code in Dev C++, I think it doesn't print "Yes" as an answer.
For example, when I type words like,
*
*lol
*Was it a car or a cat i saw?
*abcdefghiihgfedcba
these inputs must return yes, but in dev c++ returns n... | |
doc_23515938 | Under mapAuto, it says we can pass splat parameter in the url #/customers/1. and the activate function in the viewmodel will be able to retrieve the parameter array.
I built a route here
router.mapRoute('view/:id', moduleId, 'Customer Details', false);
But how can I obtain the id in the activate function? There is no ... | |
doc_23515939 |
A: You can use the subset function to remove columns from an R data frame. See the documentation.
Examples:
# Remove column Col1 from dataframe df. Store the result in a data frame called new_df
new_df <- subset(df, select=-Col1)
# Remove columns Col1 and Col2 from dataframe df. Store the result in a data frame calle... | |
doc_23515940 | Tab Bar Controller >UINavigationController>UITableViewController of type myCustomTable(load From NIB)
MyCustomTableViewController NIB and class file implements the delegate methods
@interface MyCustomTableViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> {
NSMutableArray *PDFList;
I... | |
doc_23515941 | Code (AJAX) script:
$.ajax({
url: "../views/ajax/search_tweets.py",
type: "post",
data: {"query" : "@user_name"},
success: function(response) {
console.log(response)
},
error: function(xhr, ajaxOptions, thrownError) {
console.log(xhr.responseText);
}
})
Python script:
#!/us... | |
doc_23515942 | "highChart":{
"xAxis":{
"categories":[
"SYN 13 ",
"Settlement",
"Service Interaction",
"FNOL",
"Repair Process",
"Rental Experience",
"Appraisal",
... | |
doc_23515943 | Currently I have it working with this code here:
public static class CodeElementHelper
{
public static CodeElement[] GetCodeElementAtCursor(DTE2 dte)
{
try
{
var cursorTextPoint = GetCursorTextPoint(dte);
if (cursorTextPoint != null)
{
var act... | |
doc_23515944 | <?php
$profileFields=$profile->getFields();
if ($profileFields) {
foreach($profileFields as $field) {
?>
<div class="row">
<?php
if ($widgetEdit = $field->widgetEdit($profile)) {
echo $widgetEdit;
} elseif ($field->range) {
ec... | |
doc_23515945 | h2:last-child,
p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
hr:last-child {
margin-bottom: 0;
}
/* IE class */
h2.last-child,
p.last-child,
ul.last-child,
ol.last-child,
dl.last-child,
hr.last-child {
margin-bottom: 0;
}
Can someone explain why the author did it differently for IE? Is that still... | |
doc_23515946 | The problem is the script doesn't work, whereas if the commands are typed manually into the python interpreter, the commands work as intended, the remote PC shuts down.
here is my code
#!/usr/bin/python3
import paramiko, subprocess
remote_ip=''
remote_user=''
remote_password=''
ssh = paramiko.SSHClient()
ssh.set_missi... | |
doc_23515947 | Am trying to write an ImageMagick object back into a database (a PostgreSQL bytea field).
This is PHP code - using the Imagick functions.
$query = "UPDATE table SET destcol = ".$im." WHERE key = " .$args[0];
A: If that $im is from doing
$im = new Imagick();
your query will fail. You cannot insert a PHP object into a... | |
doc_23515948 | arr = ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]
liste = []
for idx,i in enumerate(arr):
if (i == 'NORTH' and arr[idx+1] == 'SOUTH') or (i == 'SOUTH' and arr[idx+1] == 'NORTH') or (i == 'EAST' and arr[idx+1] == 'WEST') or (i == 'WEST' and arr[idx+1] == 'EAST'):
liste.append(idx)
li... | |
doc_23515949 | cd "C:\program files\WinRar"
rar a C:\xml\UPLOADED\in10xml_uploaded_%date%_%time%.rar C:\xml\UPLOADING\*.xml
The command is not working the way I need, because I need to move the files from the C:\xml\UPLOADING and do a copy (the above command is making a copy) of files in this directory leading to the C:\xml\UPLOADED... | |
doc_23515950 | Here`s my code
<script>
var scoreNumber = 0;
document.getElementById('scoreLabel').value = scoreNumber;
document.getElementById("scoreLabel").innerHTML = scoreNumber;
</script>
<html>
<style>
body{
background-image: url('snow.gif');
background-size: cover;
}
</style>
<head>
<center>
<h1 id="bottom">Cilu... | |
doc_23515951 | ||
doc_23515952 | I'm trying to make the cols in "div.row.windows" align center when resolution is under 767.
I have tried to give them "margin:auto", but unfortunately it doesn't work.
A: You do that using the offset class: .col-xs-6 .col-xs-offset-3 would maken the column 6/12th wide and give it a offset (from the left) of 3/12
Check... | |
doc_23515953 | my_hash = {} #large hash
with copy and paste. I'm doing this so I can set some data in the db. However, there seems to be some sort of buffer limit. Anything over a certain size fails, the hash does not get created. Is there a setting I can change to get around this? Thanks
A: A better way to populate your databas... | |
doc_23515954 | here's my mailer_setup.rb under initializers folder
ActionMailer::Base.delivery_method = :smtp # be sure to choose SMTP delivery
ActionMailer::Base.smtp_settings = {
:address => "mail.humouno.com",
:port => 25,
:domain => "humouno.com",
:user_name => "info@h... | |
doc_23515955 | SELECT u.name, max(s.sdate) FROM users u
LEFT JOIN sessions s ON s.uid=u.id
ORDER BY s.sdate
LIMIT 25,25
Clearly this won't work but I'd like something simple. Something similar? Note that I also need to specify which set of rows to return because of pagination. This would be page 2. I did see similar posts but they w... | |
doc_23515956 | Thanks!
A: No, you'll have to create one application ID per domain. However, a good way to start would be to use subdomains.
For example, you can set example.com as domain on the Deezer developers website, and then use staging.example.com and www.example.com.
| |
doc_23515957 |
Output :
sealseals ealse
FCJJMUMPJB
.+225=582*
Expected Output:
sealsealse
encryptedcode (not sure if this is correct above)
HELLOWORLD
The code:
public static void main(String[] args) {
String key = "apple";
String ori = "hello world";
String resizedKey = key;
... | |
doc_23515958 | I have tried this :
public List<UserFilterModel> getUserBasedOnCertificationAndSkills(Filter filter)
{
StringBuilder queryString = new StringBuilder(
"select distinct user from UserEntity user left join fetch user.userCertifications uc where user.validity=true"
);
if(!filter.getCertIds().isEmpty())... | |
doc_23515959 | <cfmail
to="someone@x.com"
from="someone@y.com"
subject="howdy"
type="html">
<cfinclude template="path/to/emailtemplates/sometemplate.htm"/>
</cfmail>
I've tried all manner of solutions using cfscript and am at a roadblock. I thought this might do it, but alas no.
savecontent variable="mailBody" {
... | |
doc_23515960 | index.php
<?php
require 's3.php';
$s3 = new S3('ACCESS_KEY_ID', 'SECRET_ACCESS_KEY');
$new_name = time(). '.txt';
S3::putObject(
$s3->inputFile('upload-me.txt',false),
'bucket name',
$new_name,
S3::ACL_PUBLIC_READ,
array(),
array(),
S3::STORAGE_CLASS_RRS
);
?>
and s3.php which is i do... | |
doc_23515961 | The trouble is logically the timestamp and milliseconds should be same but they are not. I am using jodatime.
if(rs.next())
{
Long milliseconds = rs.getLong("milliseconds");
Timestamp ts = rs.getTimestamp("timestamp");
System.out.println("milliseconds = " + new DateTime(mi... | |
doc_23515962 | Example:
sealed class Data<T>(
open val name: String,
open var value: T
)
sealed class NumberData<T: Number>(
override val name: String,
override var value: T
): Data<Number>(name, value)
class TextData(name: String, override var value: String) : Data<String>(name, value)
class LongData(name: String, ... | |
doc_23515963 | First issue is scaling, whenever i try to set a button's with and height an issue appear
when i set it with :
table.add(btn).with(100).height(30);
or
btnStyle.up.setMinWidth(80);
btnStyle.up.setMinHeight(40);
btnStyle.down.setMinWidth(80);
btnStyle.down.setMinHeight(40);
the button is correctly scaled but the backgro... | |
doc_23515964 | I can not figure out how to implement the dependency service correctly. The app runs but when I open the camera, it doesn't display the overlay. If someone could help me with my code, or direct me to an example of using the overlay option, I would really appreciate it.
My interface code:
public interface IPhotoOverlay ... | |
doc_23515965 | arr = []
sum = 0
puts "How much pair of numbers do you want to sum?"
iter = gets.to_i
iter.times do |n|
puts "Enter pair of numbers: "
a = gets.to_i
b = gets.to_i
arr << a
arr << b
end
iter.times do |n|
puts "Here are the sums: "
arr.each { |x| sum += x }
puts sum
end
The input must be like ... | |
doc_23515966 | <input type="text" name="data" value="data" hidden="">
<input type="file" name="url">
<input type="submit" name="upload" value="Upload" class="rounded-0 btn btn-primary">
</form>
function.php
if ($_POST['upload']) {
echo $_POST['data'];
echo $_POST['url'];
}
output; data
I'm getting dat... | |
doc_23515967 | working on a 1d array I get some faults for my next generation. My field is just completely reseted so that every cell is dead. I suggest that I still miss the cases of my border fields.
My Question is if there's a easier way to implement the next Generation and give me a helping hand.
void GameOfLife::advance(){
int a... | |
doc_23515968 | How can I match all numbers less than or equal to 24?
I tried
var pat = /^[1-9]$|^[1-2]\d$|^3[0-6]$/;
But that only matches 1-24. Is there a simple way to match all possible numbers less than or equal to 24?
A: I won't recommend you to use regex just to check if a number is between the range. To compare the numbers c... | |
doc_23515969 | I have two types of models for it: BaseSetting, that I use with @register_setting and models.Model, which then are displayed with ModelAdmin and modeladmin_register
Currently I have separate apps for both and individually they are working just fine.
However, I have noticed a problem. When usign ModelAdminGroup, apparen... | |
doc_23515970 |
A: You can use the built-in Report Manager. Report Manager is a web site that can run on a separate web server or on the SQL Server hosting the SSRS databases.
SQL Server Reporting Services Basics: Deploying Reports
Publishing Reports to a Report Server
| |
doc_23515971 | from pymongo import MongoClient
import csv
host = "localhost"
port = 27017
databaseName = "finance000"
collection_name = "income"
client = MongoClient(host, port)
database = client[databaseName]
collection = database[collection_name]
def finance_data(symbol):
Earnings_BeforeInteres... | |
doc_23515972 |
I changed it into 1) grayscale and apply 2) threshold.
As seen in the original image, there are some shadow that still exist after apply two method above.
But most of the image are perfect after 2 method.
I need to extract the text, so I need to get rid of the noise. I almost finish the work but the problem is some ... | |
doc_23515973 | # Error: COMP96_0019: file_io.vhd : (30, 6): Keyword 'begin' expected.
# Error: COMP96_0016: file_io.vhd : (30, 11): Design unit declaration expected.
The error is for the segment shown below.
data : in std_logic_vector(63 downto 0);
initial_addr:in std_logic_vector(3 downto 0);
rst_iar_bar:in std_logic;
clk:in std_l... | |
doc_23515974 | so the list is consumed and the reverse number is created (not a list anymore)
I'm having trouble with the recursive logic.
(define (reverse-list lofd)
(cond [(empty? lofd) empty]
[else (+ (* (exp 10 (something that starts at 0 and adds one extra everytime))
(first lofd))
(co... | |
doc_23515975 | TapTool Interaction with CustomJS
In addition to appearing when I hover over point, if I click on a point, I want those line segments to remain until I click somewhere else.
I know that bokeh has the TapTool, and I'm reasonably certain that, natively, the HoverTool and the TapTool can coexist quite happily. However, si... | |
doc_23515976 | EnvironmentConfig config = new EnvironmentConfig();
config.setErrorStream(System.err);
config.setAllowCreate(true);
config.setRunRecovery(true);
config.setTransactional(true);
config.setInitializeLocking(true);
config.setInitializeLogging(true);
config.setInitializeCache(true);
confi... | |
doc_23515977 | "[
{DAT_INCL: \"2/3/2012 16:45:9\", NUM_ORDE: 1, NUM_ATND: 734, NUM_ACAO: 2, NUM_RESU: 3},
{DAT_INCL: \"2/3/2012 16:45:10\", NUM_ORDE: 2, NUM_ATND: 734, NUM_ACAO: 4, NUM_RESU: 5},
{DAT_INCL: \"2/3/2012 16:45:10\", NUM_ORDE: 3, NUM_ATND: 734, NUM_ACAO: 8, NUM_RESU: NULL}
]"
Goddamn quotation marks.
No matter how hard I... | |
doc_23515978 | <entry xml:base="url" xmlns="http://www.w3.org/2005/Atom"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<id>URL</id>
<category term="SomeCategory" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"></category... | |
doc_23515979 | <requiredProperties>
<requiredProperty key="classPrefix" />
</requiredProperties>
I can use that property to name a file, like so:
__classPrefix__Config.java
My question is can I use that property inside the file. I've tried the following two variations but neither work:
public class ${classPrefix}Config
public c... | |
doc_23515980 | For example the following code:
strings.Split("email@email.com", "@")
returned: ["email", "email.com"]
strings.SplitAfter("email@email.com", "@")
returned: ["email@", "email.com"]
What's the best way to get ["email", "@email.com"]?
A: Use strings.Index to find the @ and slice to get the two parts:
var part1, part2 s... | |
doc_23515981 | Private Sub tmrKeys_Tick(sender As Object, e As EventArgs) Handles tmrKeys.Tick
Dim key As String = Nothing
If My.Computer.Keyboard.AltKeyDown AndAlso My.Computer.Keyboard.CtrlKeyDown AndAlso My.Computer.Keyboard.ShiftKeyDown AndAlso key = "H" Then
Dim x = New form2()
x.Show()
End If
End Su... | |
doc_23515982 | Is there any setting that I can turn on to achieve this?
A: You can create trigger function.
Trigger is a function which is called every time data is insert, update or delete from table (you can specify when you want your function to be called when creating trigger). So you can add two triggers, one for insert and one... | |
doc_23515983 | Design Query
A: Can you try the below query:
select tb.notransaksi, tb.kode, tb.nama, tb.satuan, tb.konversi, tb.jumlahPesan po.jumlahTerima
from terima_barang tb join po_detail po
on rb.notransaksi = po.notrnsaksi
and tb .kode = po.kode
and tb.nama = po.nama
and tb.satuan = po.satuan
and tb.konversi = po.konversi
| |
doc_23515984 | Please assist.
Let's use the destination table as Table A and View 1, View 2 and View 3.
Table 1:
Project_Num(PK)|Region |Area
10001 |Gauteng|Johannesburg
View 1:
ID|Project_Num|Region |Project_Start_Date|Project_End_Date
1 |1001 |Gauteng|2013-07-19 |2014-09-21
2 |1001 |Gauteng|2013-07-27 ... | |
doc_23515985 | I've added a padding-top to the container of my main content, but when I put:
@media (max-width: 768px) {
body{
padding: 0;
}
}
it overrides the padding (even on computer browser) and hides the first 70px of the page.
Here is my current HTML:
<div id="navWrap">
<nav class="navbar navbar-default navbar-fixed-top"... | |
doc_23515986 | Issue:
when I tap a notification, the app will opened and the remaining notifications will be cleared in the phone.
Expected behavior:
When I tap a notification, only that particular notification should be cleared, the remaining should stay in the notification tray.
Issue exists in iOS only
Any Solution please guide.
| |
doc_23515987 | I have a <input type="file" multiple/> and with jquery i´m capturing his contain and it´s send to my controller where i´m doing a var_dump to show it. All contain it´s correct:
array(2) {
[0]=>
object(Illuminate\Http\UploadedFile)#262 (7) {
["test":"Symfony\Component\HttpFoundation\File\UploadedFile":private]=>... | |
doc_23515988 | I have tried to use jinga formatting {{ values }} to change values. But it doesn't work
| |
doc_23515989 | so my program gives the user a list with seven random letters:
display_hand({'a':1, 'q':1, 'l':2, 'm':1, 'u':1, 'i':1})
the value of the keys in the dictionary means how much times you have that letter, so in this example you have 2 times the letter l.
But now i create a new dictionary by asking the user to make a wo... | |
doc_23515990 | public class TreeNode {
public virtual Guid Id { get; private set; }
public virtual string Name { get; private set; }
public virtual IEnumerable<TreeNode> Contents { get; private set; }
}
and the table:
TREE_NODES
PK_NODE Guid
FK_NODE_PARENT Guid
NODE_NAME Varchar
I want the following implementation where ... | |
doc_23515991 | The problem is that I have 1000 columns that I need to transpose in this way to rows (in each case row starts at various points on sheet(2)) and replace the old data. Can someone please advise? It would require some kind of loop (I know that).
Sub test()
Dim ws1, ws2 As Worksheet, lr As Long
Set ws1 = ThisWorkbook.Sh... | |
doc_23515992 | However, I still can't get it to work.
My simple function is:
args <- commandArgs(trailingOnly=T)
test_callgrind <- function(args) {
x <- args[1]
a <- 0
for (i in 1:x) {
a <- i
}
return(a)
}
a <- test_callgrind(args)
save(a, file="a.rdata")
I then type:
valgrind --tool=callgrind Rscript filename.R 1000
... | |
doc_23515993 | Guide
But I have some troubles..
What I did:
*
*Created project. (from spring.io tutorial)
*Downloaded heroku CLI
*Opened terminal in IntellijIdea
3.1 git init
3.2 git add .
3.3 git commit -m "fd"
3.4 git remote add heroke 'url'
3.5 git push heroku master
*After the last command I have this error:
remo... | |
doc_23515994 | I have come closest to the below String and formats.
[A-Za-z0-9]{4}-[A-Za-z0-9]{5} - RegEx Input String
[A-Za-z0-9]{2}#[A-Za-z0-9]{6} - RegEx Input String
[0-9]{3}#[0-9]{5} - RegEx Input String
[a-z]{5}#[a-z]{5} - RegEx Input String
[A-Z]{4}#[a-z]{4} ... | |
doc_23515995 | but I always got this error : "invalid cross-thread access" with the code under:
How to make it work?!
public partial class f1 : Form
{
private Form f2;
public f1()
{
InitializeComponent();
BackgroundWorker bgw = new BackgroundWorker();
bgw.RunWorkerAsync();
bgw.DoWork += new... | |
doc_23515996 | Machine A - Windows Server 2008 - SQL 2008 R2 Dev SQL Server is running as mydomain\user1
Machine B -Windows 7 -SQL 2008 R2 Dev SQL Server is running as mydomain\user1
I have granted the service account at either end connect permissions to the endpoints on either SQL server. If I add the mydomain\user1 into the machin... | |
doc_23515997 | Lib.hs
module Lib (Hi) where
data Hi = Hi Int Int
Check.hs
module Check (applyCheck) where
import Lib
applyCheck :: Hi -> (Hi, Hi)
applyCheck hi@(Hi a b) = (Hi a + b a - b, hi)
And the compiler gives the following error,
error:
Not in scope: data constructor ‘Hi’
Perhaps you meant variable ‘hi’
on line applyCheck h... | |
doc_23515998 | This is the schema:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[expiration]
(
[batch_number] [int] NOT NULL,
[fruit_number] [int] NOT NULL,
[store_number] [int] NOT NULL,
[expiration_date] [date] NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[fruits]
(
[fruit_number] [int] NOT NU... | |
doc_23515999 | from sklearn.cross_validation import train_test_split
X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.4,random_state=1)
clf = MLPClassifier(solver='lbfgs', alpha=1e-5,hidden_layer_sizes=(15,), random_state=1)
clf.fit(X_train, y_train)
y_pred=clf.predict(X_test)
print(metrics.accuracy_scor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.