id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_34700 | Don't say Master Page please.
Because if we will use Master Page , the reference giving problem to aspx is repeated.
A: Use master page. add jquery reference there
A: If you are using web page project you can use Master Page. Master Page allows you to create a common layout for you web application pages. So that it a... | |
doc_34701 | my code:
for filename in glob.glob(os.path.join(path, '*.lst'), recursive=True):
with open(os.path.join(os.getcwd(), filename), 'r') as f:
for lines in f:
if "'INTERNAL_DATA',103,1,'','T','','" in lines:
... | |
doc_34702 | select min(next) from participant;
as an esqueleto query?
UPDATE
I discovered the min_ function. However, the code
nextMessageTime =
from $ \p -> min_ (p ^. ParticipantNext)
apparently has some ambiguous types:
Could not deduce (Database.Esqueleto.Internal.Language.From
query expr backend (query... | |
doc_34703 | Also, can i create a text file in resources folder of struts directory which will act as properties file (so that the text file can be saved in UTF-8 format), and read that file in my application to show the static text of Greek, Russian or any language.
I have read the following and try to come up with the solution b... | |
doc_34704 | I am creating my own controls (deriving UserControl) in WPF. Now there are two ways:
*
*I am using one xaml and one cs file and have there all my stuff
*I am loyal to MVVM and create one xaml and cs file for user control plus one cs file for its View Model and I am using MVVM technique.
Then I have use my control l... | |
doc_34705 |
A: You can use calendar class for this:
Here is the example
String dt = "2015-04-13"; // Current monday date
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
c.setTime(sdf.parse(dt));
if(next){
c.add(Calendar.DATE, 7); // for next Monday
}else{
c.add(Calendar.DATE,... | |
doc_34706 |
*
*Components seems hardcoded in stat's page
*IFrame targeting stat's page seems to be blank
*API provide JSOn data but no sample to display charts
Any best practices ?
| |
doc_34707 | <?php
$connect = new PDO("mysql:host=localhost;dbname=store", "root", "");
function fill_unit_select_box($connect)
{
$output = '';
$query1 = "SELECT * FROM item ORDER BY productID ASC";
$statement = $connect->prepare($query1);
$statement->execute();
$result1 = $statement->fetchAll();
foreach($result1 as $row)
... | |
doc_34708 |
"AutoFixture was unable to create an instance from
Ploeh.AutoFixture.Kernel.RegularExpressionRequest, most likely because
it has no public constructor, is an abstract or non-public type."
I have tried a few suggestions like
var contact = _fixture.Build<ContactEntity>()
.With(c=>c.Customer.Website,
new Spe... | |
doc_34709 | Can somebody please point me to some official document/article mentioning how applications developed on top of GAE benefit from Google CDN servers?
Thanks in advance :)
A: Yes, GAE uses google's infrastructure for static content.
Have a look at this session at Google IO 2009 and read slides 24-28.
The static conten... | |
doc_34710 |
const withPlugins = require("next-compose-plugins");
const nextTranslate = require("next-translate");
const withPWA = require("next-pwa");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
// next.js configuration
const nextConfig = {
images: {
domains... | |
doc_34711 | INNER JOIN table_tags AS ntg ON (ns.tags = '' OR CONCAT(' ',COALESCE(ns.tags,' '),' ') LIKE CONCAT('% ',ntg.tid,' %'))
INNER JOIN table_topics AS nto ON (ns.associated = '' OR CONCAT(' ',COALESCE(ns.associated,'-'),' ') LIKE CONCAT('%',nto.topicid,'%' ))
problem is in Inner Join statemnet and if i remove
ns.tags... | |
doc_34712 | Do I have to have a reroute in my first view controller? Should I call the setRootView in my initial view's navigation controller? Is it done in the storyboard?
I am very confused and was wondering if there is a good way of doing so ?
I use IOS 5
Thanks so much,
Ross
A: When using a userdefaults key on the first la... | |
doc_34713 | parent module pom contains:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.framework.... | |
doc_34714 | Basicly I have a UI-Component, which is similar to a Combobox. However, the list of the possible values for this component has to be openend in a new Activity.
So when you clicked the component, a new Activity is opened, using startActivityForResult.
When you select the new value, it is put inside a Bundle and returned... | |
doc_34715 | I'm using this code:
<?php
$filePath = 'rgb.jpg';
// First save image as png
$image = new Imagick($filePath);
$image->setImageCompression(Imagick::COMPRESSION_UNDEFINED);
$image->setImageCompressionQuality(0);
$image->setImageFormat("png");
$filePath = 'rgb.png';
$image->writeImage($filePath);
$image->clear();
$image... | |
doc_34716 | SELECT DISTINCT ad.state "State",
COUNT(r.ratingid) OVER (PARTITION BY ad.state) "Number of Ratings",
COUNT(
SELECT DISTINCT r.ratingid
FROM netflix.ratings100 r JOIN netflix.movies_awards a
ON r.movieid = a.movieid
JOIN netflix.addresses ad
ON a... | |
doc_34717 | In my DB I have 3 tables as following
I have wrote a query that display the total refunded and total invoiced and the method has been used to refund or invoice (cash, credit card or checkout) for a specific order.
my query is as following:
SELECT Method, SUM(total_invoiced), SUM(total_refunded)
FROM
(SELECT refunds.... | |
doc_34718 | Example:
If user presses(ctrl+C) or Copy command through right context menu. I want my application will open and do the task in place of Windows Copy window.
Because I want my own design for that.
I heard about using Registry I can do that but how I don't know?
A: I think this LINK could have something useful to you.... | |
doc_34719 | I have this so far:
<style type="text/css">
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}
body { ... | |
doc_34720 | For example, I'm ok to have classification data for images with ranks more than 0.2.
A: Trying to help you, first, I recommend to you read and to know the Best practices from one IBM Professional for getting one better result or accuracy using Visual Recognition.
But, talking about your question, this error is one con... | |
doc_34721 | If any single application uses > 30% CPU, two times in a row, it should be logged.
I will execute "CheckCpu" every 2 seconds... but my problem is, how do I determine the CPU usage of each process? And, efficiently so that I don't bog down our server :)
Dim lStrProcessCurrent As List(Of String)
Dim lStrProcessPrevious ... | |
doc_34722 | import requests
from bs4 import BeautifulSoup
r = requests.get("xxxxxxxxx")
soup = BeautifulSoup(r.content)
for link in links:
if "http" in link.get('src'):
print link.get('src')
I get the printed URL but don't know how to work with it.
A: You need to download and write to disk:
import requests
from os.p... | |
doc_34723 | Basically it's kind of notification that related data had changed
and all micro service instances should reload their internals from data source.
We are using TerraForm to create our infrastructure, with Kong api gateway.
Micro Service instances could be created 'on the fly' as system load is increased,
so subscription... | |
doc_34724 | I made a relatively simple web site to make it easier to compare potential "expat" cities. There are links (target=iframe) for each city for cost of living data, wikipedia, expat blogs, climate info, and Google map.
The left column consists of several control links for each city.
The main window is a single iframe with... | |
doc_34725 | I have imported the data from a csv into a table in Pandas.
What I want to do is to create a new column and fill it with different numbers that will depend on the string inside of another column.
So if the first column is something like:
Column1
Horse1
Horse2
Chicken3
Chiken4
Chicken5
Cow6
Horse7
Cow8
Cow9
I want to m... | |
doc_34726 | import folium
import branca.colormap as cm
color_mapa=cm.linear.YlOrRd_09.scale(1,10)
color_mapa=color_mapa.to_step(index=[10,20,30,40,50,60,70,80,90,100])
m=folium.Map(location=[52,20],zoom_start=7)
color_mapa.add_to(m)
color_mapa.caption='Colors'
color_mapa.add_to(m)
m.save('D:\KMiT\Python\mapy\mapy_test.html')
A:... | |
doc_34727 | I have a list I want to perform logic on each item asynchronically.
when all the threads are done, i want to call a close connection.
like so:
bucketsList.parallelStream().forEach(t -> {
//some logic
});
try {
RestApi.getInstance().closeClientConnection();
} catch (IOException e) {
e.printStackTrace();
}
is t... | |
doc_34728 | this is how i am making it synchronized:
for (int i = 0; i < Globls.iterationCount; i++)
{
if (bw_Obj.CancellationPending)
{
eve.Cancel = true;
break;
}
byte[] rawData4 = DMM4.IO.Read(4 * numReadings);
... | |
doc_34729 | https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html
I see that NSDataWritingFileProtectionComplete is "Available in OS X v10.8 and later" but when I try to use it in my code I have a compilation error. Checking the NSData header I see that this... | |
doc_34730 | I will probably want to add more commands for which the arguments should be excluded later so the solution should be extendable in that regard.
There are some similar questions trying to detect when something is in parenthesis, etc.
*
*Regex to match only commas not in parentheses?
*Split string by comma if not wit... | |
doc_34731 |
using namespace std;
template<class T>
void f(initializer_list<T>)
{}
int main()
{
typeid(1); // OK
typeid(int); // OK
typeid(decltype(1)); // OK
f({1, 2}); // OK
typeid({1, 2}); // error
decltype({1, 2}) v; // error
typeid(decltype({1, 2})); // error
}... | |
doc_34732 | Help me please, I need set selected Item for table in RowDetailsTemplate.
Xaml code:
<Grid>
<DataGrid
Name="GvHeader"
AutoGenerateColumns="False"
HorizontalScrollBarVisibility="Auto"
CanUse... | |
doc_34733 | [[[455837.99,2896882.36],[455862.44,2896888.35],[455868.79,2896860.14],[455864.3,2896852.78],[455845.76,2896848],[455837.99,2896882.36]]]
The desired output is an array that looks like this:
455837.99,2896882.36
455862.44,2896888.35
455868.79,2896860.14
etc.
I have this:
if (preg_match_all('/\[.*?\]/', $data, $m... | |
doc_34734 | Example: A thread group : steps of thread group : Statistics
A: *
*You can use __threadGroupName() function as a prefix for your Samplers
it will result in the following dashboard report:
*If you don't want individual samplers but cumulative summary of all samplers in the Thread Group - put all the Samplers under... | |
doc_34735 | As you might see, I am using pip and mercurial to my aid here.
When trying to install PyGame with the commands above, the installation seems to begin but returns the following errors:
WARNING, No "Setup" File Exists, Running "config.py"
Using Darwin configuration...
/bin/sh: smpeg-config: command not found
/bin/sh: sm... | |
doc_34736 | Here is what I got:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Node {
char data;
struct Node *next;
}node;
char createlist(node *pointer, char data[100]) {
while (pointer->next != NULL) {
pointer = pointer->next;
}
pointer->next = (node*) ... | |
doc_34737 | chrome_path = os.path.join(dir, 'selenium','webdriver','chromedriver.exe')
chrome_options = webdriver.ChromeOptions()
preferences={"profile.managed_default_content_settings.images": 2, 'disk-cache-size': 4096 }
chrome_options.add_experimental_option('prefs', preferences)
chrome_options.add_argu... | |
doc_34738 | Here is my template:
<table border="1" class='bdx-table-plate'>
<tr>
<th *ngFor="let column of columns" class="plate-row-col-header">{{column}}</th>
</tr>
<tr *ngFor="let sample of plate | groupBy: 'row_id' | values ">
<td class="plate-row-col-header">{{sample[0].row_id}}</td>
<td class="well-parent" dragg... | |
doc_34739 | After some calculation (depending of the input of the user) The value a5 is example 2500.
I store it in a string and try to send it, but in the other activity it always give me a value of 100 and not the original 2500.
Code:
First Activity:
// After some calculation a5 is a 2500
double a5 = a1 / 30;
det... | |
doc_34740 | Hello, someone knows how to check if there exists children in a (functional) component (before render them)
React.Children.count
React.Children.toArray(children)
wont work
the children is $$typeof: Symbol(react.element)
the code example is
function ContextMenuItems(): JSX.Element | null {
if (no-items) return null;... | |
doc_34741 | I'm a little bored over the holidays and working through Mining the Social Web (from o'reilly media). This is all done in Python, and while i've used python to some extent, I still consider myself a newb.
So, I'm working through an example that requires facebook-sdk. Just for the heck of it, I tried to execute this:
v... | |
doc_34742 | The installation didn't return any errors, so i go ahead and try running my app using forever start server.js, but it won't do anything - no output what-so-ever, not even an error.
I also tried forever --help and just forever, but none of them giving me any response...
When running my app regularly using nodejs - nodej... | |
doc_34743 | Now we want to deploy to Azure DB, but we can not reference the CoreDB from an AzureDB Project.
Any Ideas?
Thank you!
A: Assuming that you are referring to creating CoreDB and AzureDB as Database projects in SSDT -
Unfortunately SSDT will not allow you to create a Database Reference to another database with a differe... | |
doc_34744 | So, when I create a whois server, should I do this:
Client sends "example.tld" to server
Server sends "Some info about example.tld" to the client
Server sends "Some more info about example.tld" to the client
Server sends "Remaining info about example.tld" to the client
CONNECTION CLOSED
OR:
Client sends "example.tld"... | |
doc_34745 | <clr-main-container>
<div class="content-container">
<div class="content-area">
<div class="row">
<div class="col-xs-9" style="height:100%; border-right: 1px solid rgb(204, 204, 204); padding-right:0; overflow-y: auto;">
<div class="container">
left column
<clr-tabs (clrTabsCurrentTabLin... | |
doc_34746 | We receive messages on splunk, now test ones, of this type:
{
"event": "Sourcetype test please",
"sourcetype": "testsystem-2",
"host": "some-host-123",
"fields":
{
"messageId": "ED280816-E404-444A-A2D9-FFD2D171F928",
"srcMsgId": "rwfsdfsfqwe121432gsgsfgd3",
"Correlation_srcMsgId": "",
"baseSy... | |
doc_34747 | I cloned this sample from GitHub: https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/MVC%20Authentication
Then added the following code to register the public OIDC server as external login provider:
private void ConfigureIdentityProviders(IAppBuilder app, string signInAsType)
{
app.UseOpen... | |
doc_34748 | I am trying to get detailed progress messages of a Deployment that deploys a Task sequence, using Powershell. The below command shows the status of the Deployment but I would like to display the status messages from every step of the task sequence.
The Management Console shows this data under
Monitoring->Deployments-... | |
doc_34749 | I created a custom block that display a title and a list of links. So the only fields in that blocks are of type links. It's a block for my footer region. So when the user clicks, it opens a new website in a new tab.
I want to alter the html output just for this block type, so I took out this theme suggestion:
field--b... | |
doc_34750 | I've been trying to run the code, but I keep getting a syntax error. I get the following message in visual studio:
An unhandled exception of type System.Data.OleDb.OleDbException occurred in System.Data.dll
Additional information: Syntax error (missing operator) in query expression 'User ID = 'jtenori1' AND [Passwo... | |
doc_34751 | I have been trying to ./configure and build a program that use a lot of libraries, and specifically libudns. I have been installing several libraries that were needed or by apt-get or by compile, and all of them works, but libudns (which is freaking me out).
This program make use of a configure script that include the ... | |
doc_34752 | html code of front end:
<!DOCTYPE html>
<html>
<head>
<title>page1</title>
<meta charset='UTF-8'/>
</head>
<body>
<form id='form'>
<fieldset>
<legend>people information</legend>
<label for="name">name</label>
<input type="text" id="name"/>
<label for="type">type</label>
... | |
doc_34753 | import UIKit
class tiViewController: UIViewController {
@IBOutlet weak var txtDatePicker: UITextField!
let datePicker = UIDatePicker()
override func viewDidLoad() {
super.viewDidLoad()
showDatePicker()
}
func showDatePicker(){
//Formate Date
datePicker.datePickerMode = .date /* ERROR 1
... | |
doc_34754 | return Blogpost::with(['author', 'category'])->get();
The response is, well, odd. Note that author becomes null from id: 3 and category from id: 4.
In reality both the ids 1, 3 have the same author (superuser) as do the ids 2, 4 (steve). Also id 1, 4 have the same category (web dev).
It seems as if a/an category/autho... | |
doc_34755 | What I have:
*
*Parent model, called Parent
*Parent observer, called ParentObserver
*Child model, called Child
*Child observer, called ChildObserver
*Grandchild model, called Grandchild
class Parent extends Model
{
public function children()
{
return $this->hasMany( Child::class );
}
}
class... | |
doc_34756 | ExpandoObject myObj = new ExpandoObject();
myObj.GivenName = "Testing";
System.Dynamic.ExpandoObject' does not contain a definition for
'GivenName' and no extension method 'GivenName' accepting a first
argument of type 'System.Dynamic.ExpandoObject' could be found
Looking at MSDN: ExpandoObject, they actually di... | |
doc_34757 | #!groovy
pipeline {
agent any
stages {
stage('Checkout') {
steps {
echo 'Checkout'
}
}
stage('Build') {
steps {
echo 'Clean Build'
}
}
stage('Deploy') {
when { branch 'develop' }
... | |
doc_34758 |
.hr {
width: 100%;
display: flex;
align-items: center;
}
.line {
height: 3px;
background: red;
display: inline-block;
width: 100%;
}
<div class='hr'>
<div class='title'>
Apes are cool animals
</div>
<div class='line'></div>
</div>
<div class='hr'>
<div class='title'>
... | |
doc_34759 | my code:
<?php
..............
..............
$subject = "Thank you";
$message = '<table border="0" cellpadding="0" cellspacing="0" width="600" style="font-family: Tahoma, Geneva, sans-serif;font-size: 13px;width:600px; margin:20px auto;"><tr bgcolor="#00ADEF"><td align="center" valign="t... | |
doc_34760 | The reason a program is the best idea would be so that I can make very strong passwords and change them often. I would be able to choose my own encryption for the local storage/database. I would also be able to manage a schedule to keep passwords young.
I am asking the question because I haven't had much luck looking f... | |
doc_34761 | Here is the code:
- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
// Misc stuff deleted
[self.nibBundle loadNibNamed:nibNameOrNil owner:self options:nibOptions];
if (self) {
self.title = NSLocalizedString(@"Play Game", @"Play Game");
self.tabBarItem.image = [UIImage imageNam... | |
doc_34762 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.caliburnproject.org">
<Style x:Key="ToolBarToggleButton" TargetType="{x:Type ToggleButton}"
BasedOn="... | |
doc_34763 | code:
<!DOCTYPE html>
<html>
<body>
<h1>Test App</h1>
<input id="clickMe" type="button" value="clickme" onclick="RunFile();" />
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("c:/windows/system32/notepad.exe", 1, false)... | |
doc_34764 | // callback module
<R> void some_method(
Class<R> resultType,
Callback<R> callback
) throws IOException;
I have this in my test
private <R> void invoke(R response) {
doAnswer(invocation -> {
Callback<R> rh = invocation.getArgument(1);
rh.onResponse(response);
... | |
doc_34765 | Can somebody please help.
This is my first page Personal.js
import React from "react";
import { Form, Row, Col, Button } from "react-bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";
// import bootstrap from "bootstrap";
import { Link } from "react-router-dom";
class Personal extends React.Component {
con... | |
doc_34766 | The problem I am encountering is of the "best programming practices" type: Because of the lack of documented examples, I'm unsure of the best way to create a submenu from the demo's initial menu system.
The best idea I can come up with is to use the example way to attach ncurses++'s NCursesUserItem to a menu item. Wou... | |
doc_34767 | What I want to do is switch app.config file and then build, repeat for each file. Ie:
<Replace file="app.config" with="app.config.one"> <!-- and then -->
<SolutionToBuild Include="project.sln"/>
<Replace file="app.config" with="app.config.two"> <!-- and then -->
<SolutionToBuild Include="project.sln"/>
<Replace file=... | |
doc_34768 | there are no global variables
public decimal ConvertToDecimal(string d)
{
lock (LockObj)
{
return Math.Round(decimal.Parse(d), 2);
}
}
EDIT
My assumption is that 2 threads gets inside the method, with 2 different values and one can get out before the other, I guess this is a bad assumption, can som... | |
doc_34769 | EDIT:
I tried calling the other mobile(that has Sip Droid) with my Samsung Galaxy Young(customized app) I could hear voice in my app but could not hear in Sipdroid. But when i tried calling Sipdroid to Sipdroid, it works fine in all the mobiles.
EDIT:
Btw, There is no difference between SipDroid call and the call in my... | |
doc_34770 | $('.some-selector').mousedown(function(evn1){
$('body').mousemove(function(evn2){
// how to access env1?
});
});
Can somebody please explain this to me?
I am also interested how is this working on JavaScript level. As far as I my knowledge goes: I am calling method mousedown on some-selector object by passing... | |
doc_34771 | ERROR: type should be string, got "https://learn.microsoft.com/en-us/azure/app-service-web/app-service-web-tutorial-nodejs-mongodb-app\nI didn't changed anything in the code just what tutorial says and after\ngit push azure master I get \ngulp failed(link to image)\nDoes anyone have any clues from what comes this error?\nEdit: deploy.sh Gulp part\nif [ -e \"$DEPLOYMENT_TARGET/gulpfile.js\" ]; then\n cd \"$DEPLOYMENT_TARGET\"\n eval ./node_modules/.bin/gulp imagemin\n eval ./node_modules/.bin/gulp prod <----I added this line and still fails\n exitWithMessageOnError \"gulp failed\"\n cd - > /dev/null\nfi\n\npackage.json only Gulp part\n{\n \"name\": \"meanjs\",\n \"description\": \"Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js.\",\n \"version\": \"0.5.0\",\n \"meanjs-version\": \"0.5.0\",\n \"private\": false,\n \"author\": \"https://github.com/meanjs/mean/graphs/contributors\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/meanjs/mean.git\"\n },\n \"engines\": {\n \"node\": \"6.9.1\",\n \"npm\": \"3.10.8\"\n },\n \"scripts\": {\n \"update\": \"npm update && npm prune && npm run bower\",\n \"clean\": \"rm -rf node_modules/ public/lib/\",\n \"reinstall\": \"npm cache clean && npm run clean && npm install\",\n \"start\": \"gulp\",\n \"start:prod\": \"gulp prod\",\n \"start:debug\": \"node-debug --web-host 0.0.0.0 server.js & gulp debug\",\n \"gulp\": \"gulp\",\n \"bower\": \"bower install --allow-root && bower prune --allow-root\",\n \"lint\": \"gulp lint\",\n \"test\": \"gulp test\",\n \"test:server\": \"gulp test:server\",\n \"test:server:watch\": \"gulp test:server:watch\",\n \"test:client\": \"gulp test:client\",\n \"test:e2e\": \"gulp test:e2e\",\n \"test:coverage\": \"gulp test:coverage\",\n \"postinstall\": \"npm run bower\",\n \"generate-ssl-certs\": \"scripts/generate-ssl-certs.sh\"\n },\n \"dependencies\": {\n\n \"passport-google-oauth\": \"~1.0.0\",\n \"passport-linkedin\": \"~1.0.0\",\n \"passport-local\": \"~1.0.0\",\n \"passport-paypal-openidconnect\": \"~0.1.1\",\n \"passport-twitter\": \"~1.0.4\",\n \"serve-favicon\": \"~2.4.2\",\n \"socket.io\": \"^2.0.2\",\n \"validator\": \"~7.0.0\",\n \"winston\": \"^2.3.1\",\n \"wiredep\": \"~4.0.0\"\n },\n \"devDependencies\": {\n \"gulp\": \"^3.9.1\",\n \"gulp-angular-templatecache\": \"~2.0.0\",\n \"gulp-autoprefixer\": \"~3.1.0\",\n \"gulp-concat\": \"~2.6.0\",\n \"gulp-csslint\": \"~1.0.0\",\n \"gulp-csso\": \"~3.0.0\",\n \"gulp-eslint\": \"~3.0.1\",\n \"gulp-imagemin\": \"~3.2.0\",\n \"gulp-istanbul\": \"~1.1.1\",\n \"gulp-less\": \"~3.3.0\",\n \"gulp-load-plugins\": \"~1.5.0\",\n \"gulp-mocha\": \"~3.0.1\",\n \"gulp-ng-annotate\": \"~2.0.0\",\n \"gulp-nodemon\": \"~2.2.1\",\n \"gulp-protractor\": \"^4.0.0\",\n \"gulp-refresh\": \"~1.1.0\",\n \"gulp-rename\": \"~1.2.2\",\n \"gulp-rev\": \"^7.1.2\",\n \"gulp-sass\": \"~3.1.0\",\n \"gulp-uglify\": \"~2.1.2\",\n \"gulp-util\": \"~3.0.7\",\n }\n}\n\nI also get this error on the begin of the push logs\nremote: glob error { Error: ENOTSUP: operation not supported on socket, scandir 'D:\\home\\site\\wwwroot\\node_modules\\phant\nomjs-prebuilt\\node_modules\\request\\node_modules\\http-signature\\node_modules\\sshpk\\bin\\sshpk-conv'\nremote: at Error (native)\n\nEdit2: The error changed a bit\nremote: An error has occurred during web site deployment.\nremote: throw err;\nremote: gulp failed\nremote: ^\nremote: Error: Cannot find module 'readable-stream/transform'\n\n\nA: You did install gulp. Make sure you have installed gulp-cli.\nAnd, as mentioned in \"no command 'gulp' found - after installation\"\n\nAlso, node_modules/.bin/ isn't in your %PATH%.\n But it is automatically added by npm when running npm scripts (see this blog post for reference). \n\n" | |
doc_34772 | For example in C I do this:
unsigned char* manual = getPluginManualAsPDF(mPlugin);
long nrOfBytes = getPluginManualNrOfBytes(mPlugin);
string tempFile(mtk::JoinPath(getTempFolder(getRRHandleFromPlugin(mPlugin)), "AddNoisePluginDoc.pdf"));
ofstream temp(tempFile.c_str(), std::ios::binary);
long byteNr = 0;
whil... | |
doc_34773 | Im trying to do this hover but it doesnt work when i go to a higher screen.
My code is this:
<picture>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
<line class="top" x1="0" y1="0" x2="1464" y2="0"></line>
<line class="left" x1="0" y1="269" x2="0" y2="-538"></line>
<line class="botto... | |
doc_34774 | The problem lies in the fact that when the user will see an older version of the page, they may not know to hit the refresh button, and will assume it is broken.
So basically, is there a way to check if the current page has been cached and tell firefox to clear it in php, or perhaps a more elegant approach?
A: Unfortu... | |
doc_34775 | I'm new to visual basic 2012
What I am trying to do:
One input is saved into an Integer variable. The other input is saved into a Byte variable.
The output is calculated as the Integer * Byte/100 to the power 2.
If the user enters a non-numeric value, and clicks the button, show an error of "Illegal Value entered" usin... | |
doc_34776 | Error: Attempt to take the value of the unbound variable `A'.
[condition type: UNBOUND-VARIABLE]
However, this is supposed to be caught in my code. Here is my code:
(defun FactorialRec (num)
(cond
((not(numberp num))
(princ "Argument must be a number... | |
doc_34777 | There are two factors with 2 or more levels, plus one target value, SalePrice.
Street Alley SalePrice
Grvl: 6 Grvl: 50 Min. : 34900
Pave:1454 Pave: 41 1st Qu.:129975
NA's:1369 Median :163000
Mean :180921
3rd Qu... | |
doc_34778 | A contains the ID and the Name of this structure.
internal class AMap : ClassMap<A>
{
internal AMap()
{
Id(x => x.ID).GeneratedBy.Assigned().Not.Nullable();
Map(x => x.Name).Length(255);
Table("A");
}
}
B should be an extension object which contains a list of City objects
internal c... | |
doc_34779 | I included the report in another project which does not use log4j, and the report is being generated fine.
Any help would be appreciated.
The error that I get is
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your
SQLsyntax; check the manual that corresponds to your MySQL server version for ... | |
doc_34780 | The problem is that it gets to the if statement and just sits there and does nothing. The elementId does work as both pieces of code work if I remove the if test. One way I have tried:
if(!driver.findElement(By.id(elementId )).isDisplayed()){
driver.findElement(By.id(downloadId)).click();
TimeUnit.SECONDS.sleep(7... | |
doc_34781 | http://localhost:3002/callback#access_token=nQevH_hZSjs3qdOoLNnAIITwqd3lCdkq&expires_in=7200&token_type=Bearer
how do we access the params after #
A: var url = 'http://localhost:3002/callback#access_token=nQevH_hZSjs3qdOoLNnAIITwqd3lCdkq&expires_in=7200&token_type=Bearer';
function getUrlParameter(name) {
name... | |
doc_34782 | -T 1C clean install -pl admin-module -am -DskipTests -f pom.xml
And I have admin.gwt.xml file with this property:
<set-property name="user.agent" value="safari"/>
Can I pass this property to maven instead override it in admin.gwt.xml?
Something like this:
-T 1C clean install -pl admin-module -am -DskipTests -f pom.... | |
doc_34783 | Dim oDoc As OLEObject
Set oDoc = WS.OLEObjects("WordDoc")
oDoc.Activate
...
How can I made oDoc.Deactivate? (So have EndTask the WINWORD.EXE)
A: Sub WorkWithOLEWordDoc( )
'Declaration
Dim WS As Worksheet
Dim oDoc As OLEObject
'Initializing
Set Ws = WorkSheets("Sheet1")
Set oDoc = WS.OLEObje... | |
doc_34784 | The Problem
I have rating widget which I want to build like every time I click on "p" element, eventListener adds class "good" on all p elements before and on the clicked one, and remove class good on all that are coming after the clicked one.
My Thoughts
I tried to select all the "p" elements and iterate over them by ... | |
doc_34785 | DATA
df <- data.frame(ID=c("foo","bar","cake") , col1 = c("1a/1b","1a","1b"), col2 = c("2b","2a","2b"), col3=c("3b","3b/3a",NA))
col1 col2 col3
1 1a/1b 2b 3b
2 1a 2a 3a/3b
3 1b 2b <NA>
I would like to turn this into 6 columns with names 1a 1b 2a 2b 3a 3c
Here's what I currently have (I noticed t... | |
doc_34786 | This is my main Activity
public class MainActivity extends AppCompatActivity {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private List<ListItem> listItems;
DatabaseReference database;
@Override
protected void onCreate(Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInfl... | |
doc_34787 | While I try to write the words in an xmls file it gives the following error:
UnicodeEncodeError: 'ascii' codec
can't encode characters in position
0-4: ordinal not in range(128)
For now, I'm not using any xml writer library; instead, I'm opening a file "test.xml" and writing the data into it. This error is encou... | |
doc_34788 | jakefile.js failed
4: task("default", ["lint"]);
'task' is not defined.
7: task("lint", [],function(){
'task' is not defined.
6: desc("Lint everything");
'desc' is not defined.
9: var files = new jake.FileList();
'jake' is not defined.
and the 'fix' is to put the following at the top of jakefile.js
/*globa... | |
doc_34789 | In my controller, I put this as a route :
**
* @Route("/{name}", name="category_name", methods={"GET"})
*/
public function categorie(CategoryRepository $categoryRepository): Response
{
return $this->render('category/index.html.twig', [
'categories' => $categoryRepository->find... | |
doc_34790 | From the stacktrace you can see that it is during the class initialisation of FrameworkUtil class.
FrameworkUtil line 119 looks like this:
JAXBContext j = JAXBContext.newInstance(Validate.class, Response.class ....<more classes>);
Validate.java has this in it:
@XmlRootElement(name="validate")
public class Validate {... | |
doc_34791 | {"success":1,"message":"Member registered successfully."}
And in case of error I'm getting the following string-
{"success":0,"message":"Oops! An error occurred."}
Now I wants to parse that string to check whether record is inserted successfully or not for that I have tried following code
JSONArray jsonarray = new JSON... | |
doc_34792 | // Append bitmap
svg.append("image")
.attr("xlink:href", "./myimage.png")
.attr("width", width)
.attr("height", height)
.attr("class", "bg");
But this actually just add a link toward the image. Also, when I select the dataviz DOM, and save it as SVG, I don't have the bitmap binary, but just... | |
doc_34793 | #include <iostream>
using namespace std;
class Base{
public:
Base (){
cout << "Constructing base" <<endl;
}
void doSomething (){
cout << "inside void " << endl;
}
~Base (){
cout << "Destructing base" << endl;
}
};
class Derived : public Base{
public:
Derived(... | |
doc_34794 | For example:
Sheet2 contains names (column A), addresses (column B), and cities (column c), while Sheet1 holds a list of the same names (along with various other info). For simplicity's sake, all I need is to be able to click a name on Sheet1 and have it return the row number of the same name on Sheet2. Displaying the ... | |
doc_34795 | Can anyone suggest how I can get access to my account from the Heroku web site under these circumstances?
Thanks in advance.
A: If your Heroku CLI is still working against the old email I would suggest setting up a new Heroku account with a new email address. Add your new account as a collaborator via heroku sharing:a... | |
doc_34796 | ECHO A41,35,0,a,1,1,N,"Mr ZACHARY KAPLAN">> test.txt
There are about 30k similar lines. It takes the batch file about 5 hours to run.
Is there a way to speed this up?
/Jeanre
A: Try this:
Put an ECHO OFF at the top of the batch file.
Then change each line to:
ECHO A41,35,0,a,1,1,N,"Mr ZACHARY KAPLAN"
and call your ... | |
doc_34797 | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
#from bs4 import BeautifulSoup
delay=10
from selenium import webdriver
driver = webdriver.Chrome("C:\\P... | |
doc_34798 | I'm used to stuff like $.post(), $.get(), fetch(), getJSON() etc... to send/receive data from my php scripts that upload or read data from a mysql database.
And here comes my problem. When I use NODE scripts and try to communicate with them I just get the code back and not the data. The scripts work fine in a console w... | |
doc_34799 | public IGenericRepository<TEntity> Repository<TEntity>() where TEntity : class
{
if (repositories.Keys.Contains(typeof(TEntity)) == true)
{
return repositories[typeof(TEntity)] as IGenericRepository<TEntity>;
}
IGenericRepository<TEntity> repo = new GenericRepository<TEnt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.