id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23533300 | The new application still uses the Webforms Viewengine. It uses StructureMap for Dependency Injection.
If possible I would like to upgrade manually.
For upgrading from ASP.NET 1 to ASP.NET 2 I found the white paper
http://www.asp.net/whitepapers/aspnet-mvc2-upgrade-notes
The steps described in the document seem to be... | |
doc_23533301 | <Application x:Class="Class.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DispatcherUnhandledException="Application_DispatcherUnhandledException"
StartupUri="StartClassWindow.xaml">
<Application.Resources... | |
doc_23533302 | The old syntax is
[globalString = IENV:TYPO3_SSL=1]
But in the documentation, there is no mention of TYPO3_SSL.
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Conditions/
A: Starting with TYPO3 ver.: 9.4 and next, this can be used as a replacement:
[request.getNormalizedParams().isHttps() == true]
He... | |
doc_23533303 | This is how I currently do it.
@pytest.fixture(scope="module")
def result_holder:
return []
def test_creation(result_holder):
object = create_object()
assert object.status == 'created' # test that creation works as expected
result_holder.append(object.id) # I need this value for the next test
# ideall... | |
doc_23533304 | z10k4m42 it would become
array('z' => 10, 'k' => 4, 'm' => 42)
Is this possible?
A: Try the below:
preg_match_all('/([a-z]+)(\d+)/', 'z10k4m42', $matches);
$ret = array_combine($matches[1], $matches[2]);
| |
doc_23533305 |
*
*File is too big to even try open it in txt editor.
*File is too big to upload it in phpmyadmin
I aslo could't find how to do it in mysql console (only how to add 1 database from database.sql file, but in current case i am using mysqldump, so that won't work).
I am using wamp on localhost.
Any ideas?
A: You can ... | |
doc_23533306 | This following line of code is mentioned at the beginning of the code:
points = 0
This represents that the player has no points at the moment, but later, these points will keep adding up and the value won't be 0. The first time the player encounters an increase in his points is in this function:
def if_castle_right():... | |
doc_23533307 | For that I have created a "Tweet" entity in my model & has generated a managed object class from XCode.
I have declared Tweet ivar in my controller class & have synthesized it but when I try to put some value in it like
tweet.text = @"Some parsed json tweet text";
And then NSLog the value of tweet.text it prints
(nul... | |
doc_23533308 | i wanted to change the position relating the marginTop with the page scroll,
$(document).ready(function(){
$(window).scroll(function(){
var v= $(document).scrollTop();
console.log(v);
if(v>50){
$('.menu').css({'marinTop':v+'px'});
console.log(true);
}else{
... | |
doc_23533309 | For example, a MatchAllDocsQuery or a BooleanQuery that contains a MatchAllDocs clause are such queries that always return all the documents. Another example is a BooleanQuery that has a SHOULD-match clause that has a nested SHOULD-match clause that has a MatchAllDocs inside it.
Note that a query that happens to return... | |
doc_23533310 | So from what I understand, the way to do it is : 1. Call openlog to set the facility 2. Call syslog() to log. 3. Call closelog().
But what if I do not call openlog() before calling syslog()? What is the facility then? What is meant by "establishes a default to be used if none is specified". Where can one be specified, ... | |
doc_23533311 | If I open a detail child view from a NavigationView, and then click on "Back", the TabBar would become transparent, showing the items in the Feed underneath the TabBar icons.
*
*FROM THE HOME FEED, OPEN A CHILD NAVIGATION DETAIL VIEW. ---------------
*THEN ONCE INSIDE THE DETAIL VIEW, CLICK BACK. ---------------
... | |
doc_23533312 | From the example below, I want to create the column group_id that attributes an id for every 3 observations.
foo group_id
0 1 1
1 2 1
2 3 1
3 4 2
4 5 2
5 6 2
6 7 3
7 8 3
8 9 3
9 10 4
A: Another variant which may offer some flexibility :)
1. First for what you initially reque... | |
doc_23533313 | Here's my entire spec file:
import { provide, PLATFORM_PIPES } from '@angular/core';
import { DatePipe } from '@angular/common';
import { addProviders, async, inject } from '@angular/core/testing';
import { Post, PostComponent, PostHtmlComponent } from './';
import { usingComponentFixture } from '../../test-helpers';
... | |
doc_23533314 | Many many thank in advance.
A: You can use Django as a backend for Apis and I would highly recommend using Frontend framework/Library like React/Vue.
I know you want an easy solution for frontend like WordPress (drag & drop ) but I don't think there is such a thing which you can customize with liberty and according to... | |
doc_23533315 |
*
*If it is checked then update the database with 1.
*Else if it is unchecked then update it with 0.
It works fine but it doesn't work if unchecked.
<?php
include('lib/db.php');
$facebook_id ="10001088";
$query1 = "SELECT `video`,`quran`,`medical`,`groups` FROM `man_facebook`.`users` WHERE `facebook_id`='$face... | |
doc_23533316 | But there are some cells which contains 'empty' - how can I set the expected value in the test condition, that I can check this 'empty' cells?
I tryed to leave the expected value empty as well, but that results in following error-message: "ScalarValueCondition Condition (scalarValueCondition6) Failed: ResultSet 1 Row 6... | |
doc_23533317 | Anybody out there having the same problem?
A: XCode keymap exists only in AppCode and CLion products. There is a feature request to make it available for IntelliJ IDEA as well (and WebStorm).
You can try extracting the keymap from CLion distribution, it can be found here CLION_HOME\lib\resources.jar\keymaps\Xcode.xml.... | |
doc_23533318 |
"There is a simple model of how to map entities to tables. It probably only works for rather simple cases. If you do not like that, you should code your own strategy. Spring Data JDBC offers only very limited support for customizing the strategy with annotations." https://docs.spring.io/spring-data/jdbc/docs/3.0.0/re... | |
doc_23533319 | dir1/file1
dir1/file2
dir1/file3
dir2/file2 (dup)
dir2/file4
I want the file output to be :
dir1/file1
dir1/file2
dir1/file3
dir2/file4
embedded system so cant use tools metioned in : https://unix.stackexchange.com/questions/71176/find-duplicate-files
A: Looking at the commands available to busybox, if ... | |
doc_23533320 | Let me take an example of what I'm trying to achieve. I have an ECS cluster which can run around 10+ different task definitions. Each task definition contains almost the same configurations so to avoid code duplication I am building a reusable module.
From what I have gathered there are 3 primary ways to structure your... | |
doc_23533321 | temp7:
1.68219771725e-06
temp6:
[[array([-60800056.33037408], dtype=object)]]
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/timer.py", line 223, in run
... | |
doc_23533322 | sxe ld ntdll.dll ;g
However, the trick doesn't work at all,
ModLoad: 7c900000 7c9b0000 ntdll.dll
eax=010043af ebx=7ffde000 ecx=020f18f5 edx=00000034 esi=00c2f720 edi=00c2f6f2
eip=7c810867 esp=0006fffc ebp=00000720 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 ... | |
doc_23533323 | I did a test with 3 images that have 13KB altogether. After I combine them the final result has 42.5KB.
Is there any solution to this without losing quality ?
Thanks
A: well 13KB * 3 = 42 KB thats right =)
maybe:
http://sheldon.lendrum.co.nz/php-gd-library-css-sprites_416/08/
or
something else?
there are many css spr... | |
doc_23533324 | multiSort : true,
sortname: 'orderNo asc, cd',
sortorder: 'desc',
How to do that? Is any other way to do that?
I also tried below one
$('#OrderGrid').jqGrid('sortGrid', 'orderNo', true, 'asc')
.jqGrid('sortGrid', 'cd', true, 'desc');
But no luck still now...
A: To set "desc" order one have to call sortGrid twice:
... | |
doc_23533325 | class Project < ApplicationRecord
has_many :comments
has_many :contractor_projects
has_many :contractors, through: :contractor_projects
validates_presence_of :title, :contract_number, :category, :project_start_date, :project_end_date, :substantial_completion_date, :category, :solicitation_number, :project_offic... | |
doc_23533326 | "Workorders" is a shared book that other departments put in Task request. The guys in the department, fill them out when they have completed the task. Each Sheet is renamed with the task number ID, so the sheet is never the same name.
The "Workorders" book needs to be the main book. So is there a way for them to have a... | |
doc_23533327 | <?php
$ignore = array ('.', '..', '.DS_Store', 'index.php');
$num_ordnernamen = array ();
if ($handle = opendir('./')) {
while (false !== ($entry = readdir($handle))) {
if (!in_array($entry, $ignore) && is_dir($entry)) {
array_push($num_ordnernamen, $entry);
}
}
}
pri... | |
doc_23533328 |
to this following
I am unable to make this red border with CSS. Help is appreciated. Ignore the div width. Only thing I need help is the red background section. My code till now:
.location-dtls {
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
display: flex;
flex: ... | |
doc_23533329 | var myApp = angular.module('myApp', []);
myApp.controller('myController', function ($scope,$http) {
$scope.getDataFromServer = function() {
$http
({
method:'GET',
url:'jasoncontroller'
}).success(function(data, status, headers, config){
$scope.sqldata = data; ... | |
doc_23533330 | This is all well and good until the record submitter enters a carriage return into a freetext field, which Excel treats as a new line, and totally wrecks the formatting for re-entry into the database.
A recent change seems to have made performing a find/replace of CR+LF on the data stored in the clipboard impossible.
I... | |
doc_23533331 | var FeedsMain = global.FeedsMain = {}
, colors = require('./colors')
, conf = FeedsMain.conf = require('./conf').config
, SITE_SECRET = conf.app.secret
, zerorpc = require('zerorpc')
, rpcClient = new zerorpc.Client()
, feeds = require('socket.io').listen(conf.app.port)
, services = require('./lib/services')
, feedsSer... | |
doc_23533332 | I want to blink the specific color, and then come back to black background. It all works fine... once. After this first blink nothing will happen. I've tried searching but couldn't find relevant answer.
My guess it that I should somehow reset the state of the animation, but couldn't find any way to do that.
This is th... | |
doc_23533333 | The first one is a double sided shader for Hololens from the Microsoft Holotoolkit:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
Shader "MixedRealityToolkit/Obsolete/Fast Configurable 2 Sided"
{
Properties
... | |
doc_23533334 | <script src="vendors/bower_components/jquery/dist/jquery.min.js"></script>
<script src="vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="vendors/bower_components/flot/jquery.flot.js"></script>
<script src="vendors/bower_components/flot/jquery.flot.resize.js"></script>
<script src="ve... | |
doc_23533335 | The xml is:
<payments>
<pay3>5.1</pay3>
<pay1>1</pay1>
<pay2>50</pay2>
<pay3>2</pay3>
</payments>
Tags <pay2>, <pay3> and <pay2> are optional and <pay1> is mandatory. All the <payX> tags may occur in any order and more than once or not to occur (except for <pay1>).
So far I made the following xsd types but it ... | |
doc_23533336 | it basically
1.gets a file id with "GET" method
2.gets the name and location of that file from database
3.sends it to the client with the headers and readfile
but strangely that file always comes out as corrupted or damaged
like if it's a zip or rar file
file size is right and it opens ok
but i cant open compressed ... | |
doc_23533337 | Here, how I makes calls via XHR:
$.ajax = {
pool: [],
call: function(settings, onSuccess, onFailure) {
var xhr = new XMLHttpRequest();
xhr.open(settings.type, settings.location, settings.async);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
... | |
doc_23533338 | That is
<div class="form-group">
<label class="control-label col-sm-4"><b>Your role</b></label>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-4">
<label class="radio-inline">
<input type="radio" id="teacher" value="Teacher" name="role" required><b>Teacher</b>
... | |
doc_23533339 | I'm using man object class. Here's my class.
class Man
{
private string _name;
public string name
{
set { _name = value; }
get { return _name; }
}
private string _address;
public string address
{
set { _address = value; }
get { return _address; }
}
}... | |
doc_23533340 | I tried preg_match, but got tired after i saw all characters when doing Windos + . ...there is too much characters...and i just want to simplify my code..so how?
A: RegEx will do the trick.
Edit: I see now that you'd like to allow only specified characters, iterating the string will be sufficient for this.
<?php
func... | |
doc_23533341 | /Max
A: In PHP 5.3: gc_collect_cycles().
A: Here's an article on memory management in PHP.
You can also increase available memory in PHP if you aren't already maxed out.
Keep in mind:
Sometimes you can't just "dump memory". Depending on your algorithm, you may need the results from previous calculations for future c... | |
doc_23533342 | Having the following SQL query
SELECT
MONTHNAME(r.date_of_application) month_name,
MONTH(r.date_of_application) month,
SUM(CASE
WHEN status = 'pending' THEN 1
ELSE 0
END) pending,
SUM(CASE
WHEN status = 'attended' THEN 1
ELSE 0
END) attended,
SUM(CASE
... | |
doc_23533343 | type T = {
id: number;
title: string;
};
This type is used to create a list of Ts like so:
const IT: StringMap<T> = {
a: {
id: 0,
title: 'foo',
},
b: {
id: 1,
title: 'bar',
},
c: {
id: 2,
title: 'foobar',
},
}
I need a way to be able to retrieve one of these T type objects base... | |
doc_23533344 | #!/usr/bin/env python
from urllib2 import urlopen
import gc
import xml.etree.ElementTree as ET
import sqlite3
rosetta_url = ("https://boinc.bakerlab.org/rosetta/team_email_list.php?teamid=12575&account_key=Y&xml=1")
root = ET.parse(urlopen(rosetta_url)).getroot()
cpids = [el.text for el in root.findall('.//user/cpid... | |
doc_23533345 | Paypal express works fine however paypal standard payments gets the problem as above.
Lucas
A: You have to examine the ajax request. You can use Firefox with the "HTTPfox" extension to track the single requests. Just look for the step, where the redirect is executed - and start the http tracker. Then you see the respo... | |
doc_23533346 |
var day=new Date().getDay();
switch (day)
{
case 0:
window.document.location.href = 'su.html';
break;
case 1:
window.document.location.href = 'mo.html';
break;
case 2:
window.document.location.href = 'tu.html';
break;
case 3:
window.document.location.href = 'we.html';
break;
case 4:
window.document.... | |
doc_23533347 | This is a derivative of, though not duplication of an existing question; Why use HttpClient for Synchronous Connection.
Yet over and over, including in the article I see above, I see a consistent recommendation to use HttpClient, even in a synchronous scenario. The best reason I've seen is the accepted answer in the SO... | |
doc_23533348 | Let's say I have:
a = np.array([[1, 2, 3], [3, 4, 5], [1, 4, 6]])
b = np.array([[1, 2], [3, 4]])
and the result should look like this:
[[1, 2, 3], [3, 4, 5]]
Any advice on that?
EDIT:
So in the end this works. Not very handy but it works.
for ii in range(a.shape[0]):
u, v, w = a[ii,:]
for jj in range(b.sha... | |
doc_23533349 | foo.py:
"""
This is foo a nice module
"""
import numpy as np
def function(parameter):
return(np.zeros(parameter))
Then in another script I want to call my module:
import foo
So my problem is that numpy module is loaded inside foo so I can call it from foo (for example I can foo.np.zeros())
Is there any way that ... | |
doc_23533350 | In particular, I see two different reordering scenarios:
8.2.3.4 Loads May Be Reordered with Earlier Stores to Different Locations
and
8.2.3.5 Intra-Processor Forwarding Is Allowed
However, I do not understand the difference between these scenarios from the observable effects POW. The examples provided in those section... | |
doc_23533351 | At the moment I am raising errors in the F# build script and this sets the exit code, but it also displays nasty exceptions and stackstraces in the build log.
Thanks in advance and best regards,
Steffen
A: Thanks to Alexander I now know the answer. I have to call exit myExitCode.
| |
doc_23533352 | data Tree = Branches (List Tree) | Node Int
sumTree : Tree -> Int
sumTree (Branches xs) = sum (map sumTree xs)
sumTree (Node x) = x
If I want it pass the totality check, I have to expand map manually:
data Tree = Branches (List Tree) | Node Int
sumTree : Tree -> Int
sumTree (Branches xs) = sum' xs where
sum' [] = ... | |
doc_23533353 | I'm using NavLink from react-router-dom and I want to toggle the className active to mark the link clicked here is the code:
import React from 'react'
import styles from './NavBar.module.css'
import logo from '../assets/logos/icon-left-font-monochrome-white.svg'
import { NavLink } from 'react-router-dom'
export defaul... | |
doc_23533354 | https://github.com/jacob-meacham/angular-notification-icons
First step is Running:
npm install angular-notification-icons --save
I am not sure what path I need to run this? I try to run it in my project path but I am getting this error:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "angular-not... | |
doc_23533355 | I'm not sure if this question makes much sense, if not, then any examples you can provide would very much appreciated.
Kinds Regards
Sid
A: You should name them for processes as this is how it is conceptualized in WCF. The service interface has the ServiceContract attribute and the methods have the OperationContract a... | |
doc_23533356 | I wrote -
Dim stringList As Variant
Set stringList = Split(myMessage.Body, vbLf)
Debug.Print stringList(0)
But it says type mismatch. How do I fix it?
A: *
*Don't use Set to assign the array returned by the Split() function to your stringList variable. The Set keyword is used to assign an object reference.
*It's ... | |
doc_23533357 | If I have a code that looks like this:
<div style="font-family: arial; font-size: 11px; background: green;">Hello</div>
And then open it with CKEditor, it looks like this:
<div style="font-family: arial font-size: 11px background: green">Hello</div>
The ; has disappeared. It does not matter which style settings I use... | |
doc_23533358 |
A: I believe this feature is not available if you're using Expo, however if you're using Bare-bone RN then you'll be able to use the native modules provided from Firebase to initialize the dynamic links, this page shows detailed documentation on how to implement the feature you need for your app.
| |
doc_23533359 |
A: I have encountered this problem before. The trouble is that in order to open a file in Excel, you usually have to load the entire file into memory. This is fine when the file is 50 or 500k, but when it's 5GB, the system cannot load it into memory.
In order to work with that much data, you really need to load it in... | |
doc_23533360 | I have a script.ps1
My script can be illustrated like this :
function Begin{
#Step 1 :
StartTodoSometing
#Step2 :
KeepDooingSomething
}
function StartTodoSometing{}
function KeepDoingSomething{}
This script have can be run on a local server or multiple remote server.
The nested function StartTodoSometing and Kee... | |
doc_23533361 |
I use QT creator as IDE and enable C++14 by using flag
in .pro
QMAKE_CXXFLAGS += -std=c++14
here is the part of error that happens in BOOST library: c_time.hpp
//! requires a pointer to a user created std::tm struct
inline
static std::tm* localtime(const std::time_t* t, std::tm* result)
{
result = std::l... | |
doc_23533362 | Example: Enter: 1 2 3 4 5 6
Search: 5
Result: 1+2+3+4=10 because they are <5
#include <iostream>
using namespace std;
struct Nodo{
int dato;
Nodo *next;
};
Nodo *lista = NULL;
//list of functions
void menu();
void ingresarLista(Nodo *&, int);
void printList(Nodo *);
void searchList(Nodo *, int);
//funcion ... | |
doc_23533363 | I run on the x86 platform and have 12 threads to read and write.
Now I want to figure out what caused the situation, and I want to know if this is a thread-safe design or where it needs to continue to be optimized for higher performance.
12 threads to dequeue and 12 threads to enqueue.
Development tools : Visual studio... | |
doc_23533364 | Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished
with non-zero exit value 1
A: If you have support-v4 and support-v7 (with different ve... | |
doc_23533365 | in Controller:
$this->authorize('modifyTournamentRegistration', $player);
in Policy:
public function modifyTournamentRegistration(User $user, User $player)
{
return $user->id === $player->id || $user->inRole('admin');
}
A: I found out that it is because of Input variable type in Policy. I added User ... | |
doc_23533366 |
brew install git
I do this:
which git
which returns:
/usr/local/bin/git
I then do this:
file /usr/local/bin/git
which returns:
/usr/local/bin/git: Mach-O executable i386
I need brew to install as x86_64.
How can I force brew to build and install my apps as x86_64?
brew --config
Returns this:
HOMEBREW_VERSIO... | |
doc_23533367 | That's my code:
private static void test(String src, String pwd, String dest) throws Exception {
byte[] pwdByte = pwd != null ? pwd.getBytes() : null;
PdfReader r = null;
PdfStamper stp = null;
FileOutputStream fos = null;
try {
r = new PdfReader(src, pwdByte);
fos = new FileOutputSt... | |
doc_23533368 | Firstly, although the icon I am using is a .png with a transparent background the icon has an ugly white background.
Second, the Icon has a right click menu with the options "Show" and "Close" however for unknown reasons both say "Ctrl - Q" next to them. Not only did I not specify this, but the hotkey combo does nothin... | |
doc_23533369 | And I want to export report to PDF, but my report will not support languages different then English (other languages fields appear as blank),
This is my code for generating the report
JsonDataSource ds = new JsonDataSource(JRLoader.getInputStream(jsonFile));
JasperReport jasperReport = (JasperReport) JRLoader.loadObje... | |
doc_23533370 | private void backButtonMouseClicked(java.awt.event.MouseEvent evt) { do stuff }
is there some way to virtually use this method from another method without clicking the mouse on the button?
A: Or you can just use button.doClick();
A: Yes, MouseEvent has public constructors, so you simply create one, and call the fun... | |
doc_23533371 |
composer remove barryvdh/laravel-debugbar
It gives me this error:
After that, I can't use the artisan command anymore.
PHP just can't find the artisan command! I've tried with installing packages again
composer install
Here is the Macroable.php file
public function __call($method, $parameters)
{
if... | |
doc_23533372 | string[] capturetime = record.Time.Split(':');
string captime = capturetime[0] + ":" +
capturetime[1] + ":" +
capturetime[2] + "." +
capturetime[3];
DateTime rightTime = Convert.ToDateTime(captime);
After the second line run the value of captime is "11/01/2012 11:3... | |
doc_23533373 |
A: I have found the solution... I probably set that 300px width screen should be media query min-width, then I rendered it into the iframe and viewed in a 320px width screen and the iframe in the 320px screen was resized to 90% which made it less than 300px screen and the style did not apply.
| |
doc_23533374 | def nameProjectWindow():
tkWindow = Tk(className = 'Export Project')
tkWindow.geometry("500x500")
fileNameLabel = Label(tkWindow, text="File Name").grid(row=0, column=0)
fileNameVar = StringVar()
fileNameEntry = Entry(tkWindow, textvariable=fileNameVar).grid(row=0, column=1)
save_btn = ttk.Bu... | |
doc_23533375 | Text covers the after space correctly but when it goes to second column some space from the top till where the image ends on the first column is blank and starts after that.
if ($this->myResetColumn) {
$this->resetColumns();
$this->setEqualColumns($this->myCols, $this->myWidth);
$this->setXY($this->GetX(), ... | |
doc_23533376 | I was working with 3.0.0, upgraded to 3.0.3 and receive this message when launching a new local database.
"Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@bfdf32a' was successfully initialized, but failed to start. Please see attached cause exception.
"
I uninstalled both, deleted ... | |
doc_23533377 | The overlay work for iOS but not available on android.
Is there a way to extend the package and to have android working?
I also found a site helping me to create a camera :
https://thatcsharpguy.com/post/full-camera-page.1/
This works fine on iOS, possibly on android (haven't not tried).
This document uses the old Cam... | |
doc_23533378 | Example:
Column1----Column2
value_1----5678976
value_2----7263535
value_1----1938773
value_2----3333445
value_3----2848465
So at the report header, i need to specify all distinctive values from Column1, comma separated. From mentioned example correct string will be:
value_1,value_2,value_3
I tried to use formula
Whil... | |
doc_23533379 | Basically having two matrices Am1, k and Bm2, k I need to get a matrix Cm1, m2.
I can easily do this in scipy by using distance.sdist and select one of many distance metrics, and I also can do this in TF in a loop, but I can't figure out how to do this with matrix manipulations even for Eucledian distance.
A: After a ... | |
doc_23533380 | I was thinking do it with a FOR, but my code didn´t work.
For example: if we have this array "123456789" the value will be 2 and index = 1 and this numbers save it in a integer.
I'm programming in ANSI C.
#include <stdio.h>
#include <stdlib.h>
void main()
{
int a = 0, i = 0, indice, numero[20], vuelta, quedan, x;... | |
doc_23533381 | The client only works again when I kill the process and restart it again.
A: Your problem might be related to this issue: https://github.com/restlet/restlet-framework-java/issues/669#issuecomment-9455618
A: Solved the problem it was because I was not starting and stopping the client after each web service request.
| |
doc_23533382 |
A: No, it is about a lot more, especially with more sophisticated obfuscators. They can produce IL that cannot be expressed in most languages, and where the logic flow is horribly tangled to befuddle the best of tools. With lots of time you can do it (probably lots by hand), and there is certainly an arms race between... | |
doc_23533383 | After payment, the user is redirected to a payment success page on my server. Will the session variable still be valid?
A: The above answers are true if you are storing sessions using cookies. If cookies are disabled then a PHP_SESSION parameter will be passed in the URL. For the returning user to be able to continu... | |
doc_23533384 | public class Box<Item> {
...
}
public class Toolbox extends Box<Tool>{
...
}
Given that Toolbox extends Box providing a Tool as the actual type for the generic placeholder, I would have thought it should be possible to do something like this:
Box<Tool> box = new Box();
Toolbox toolbox = box;
However, it s... | |
doc_23533385 | I am using 95% of titlewidth with logo in center using below code. But, this pushes navigation bar with toggle button on right 5% screen. **How can I switch navigation bar to be on left (as shown in picuture) and title bar with logo in center? **
dashboardHeader(title = tags$a(tags$img(src='Logo.png', height=80)),
t... | |
doc_23533386 |
I am using MATLAB's .NET functionality to create a Word document. I'd like to create a table and merge the top two cells in the lefthand column. So far I can create the table:
NET.addAssembly('microsoft.office.interop.word'); %# Register Word assembly
wordApp = Microsoft.Office.Interop.Word.ApplicationClass; %... | |
doc_23533387 |
.pointy {
background-image: url('img/Header.png');
background-size: cover;
background-repeat: no-repeat;
color: white;
font-size: 40px;
background-color: orange;
}
<div style="margin-top: 100px">
<table style="float: left;">
<tr class="pointy">
<td>TITLE</td>
</tr>
</table>
... | |
doc_23533388 | Not only do I want to reduce it to two decimals, but if it's less I need to add a zero. I'm using .1 in my examples below.
var base = .1; //desired result is 0.10
var total;
// the x100/100 method
total = (base * 100) / 100;
console.log(total); //outputs 0.1
// the .toFixed method
total = (base).toFixed(... | |
doc_23533389 | Possible Duplicate:
Upload max size in PHP?
upload_max_filesize = 500M
post_max_size = 500M
i make these 2 settings in php.ini and upload video less than 400MB
but can't upload
A: It's hard to understand your question, but those variables aren't the only ones needed for a successful file uploading.
*
*Check i... | |
doc_23533390 | I ask it because of nos's comment here:
Why kernel code/thread executing in interrupt context cannot sleep?
Also, interrupts usually require very fast servicing, or you can easily get into all sorts of trouble.
Which kind of troubles could be made?
A: Have you ever had that your computer was busy working, for instan... | |
doc_23533391 | I have tried, restitution, density and even velocity, but of them worked. Could someone please guide me in the right direction. Nothing I find on here or Google seems to work.
Image of Spaceship without Shield:
Image of Spaceship with Shield:
Image of Spaceship with Shield and showPhysics = true:
func activateShield... | |
doc_23533392 | like on click: the development
i want to get its id: 1,
<ul>
<li><a href="#first_slide" id="1">the development</a></li>
<li><a href="#second_slide" id="2">the design</a></li>
<li><a href="#third_slide" id="3">the locate</a></li>
<li><a href="#f... | |
doc_23533393 | This is my app
navbarPageWithText <- function(..., text) {
navbar <- navbarPage(...)
textEl <- tags$p(class = "navbar-text", text)
navbar[[3]][[1]]$children[[1]] <- htmltools::tagAppendChild(
navbar[[3]][[1]]$children[[1]], textEl)
navbar
}
# Call this function with an input (such as `textInput("te... | |
doc_23533394 |
A: It depends how many resources you want to the actor to use. If there is a dedicated machine for a given actor, and it's ok for the actor to use all of the resources on that machine, then use TensorFlow's default settings. If you are creating more like one actor per core, then setting inter_op_parallelism_threads an... | |
doc_23533395 | <?xml version="1.0" encoding="utf-8"?>
<BedrijfsInformatie xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Bedrijfsnaam>TotaalTechniek Europort bv</Bedrijfsnaam>
<Naam>E.W. Messemaker</Naam>
<Adres>Deltageul 71</Adres>
<Postcode>3251 NG</Postcode>
<Plaats>S... | |
doc_23533396 |
Object {sd_src: Object, hd_src: Object}
and the sd_src & hd_src objects contains (console.log) :
Object
file: "videofile.mp4"
label: "HD"
sd_src: Object{the same first obj}
i create empty object dataSources = []; to push video sources to it in the for in loop
then i create a for in loop to get object properti... | |
doc_23533397 | jQuery UI API Documentation
jQuery site
TutorialsPoint
the source code itself
and I cannot find the default time. I assume it is 400 ms because the animate() method is called to produce the clip effect, and the default time for animate() is 400 ms. Does anyone know if this is correct? Thanks!
A: The answer is already ... | |
doc_23533398 |
I want to use my font such like this
<span class="icon-Electronic"></span>
instead of this
<span class="icon-Electronic"><span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span cl... | |
doc_23533399 | On clicking the tabs/navigation items, the corresponding page should get open. Can this be done using ngRoute?
If yes, then how?
Moreover, I will use that app in MEAN Stack app.
I tried doing this using ui-router; it worked when deployed the app on tomcat.
But whenever code is deployed on MEAN Stack, it doesn't work.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.