id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_23510100
My intent is to have release numbers tied to artifact numbers (which in turned are tied to SCM numbers). When I deploy a new build, octopus would create a new release with that version, and deploy it. If I run the teamcity deploy step again (for an artifact that's already been created), octopus should redeploy the same...
doc_23510101
Lets assume we have a child composable representing a custom switch, and we want to keep it immutable, so we need to pass the initial state and also a lambda to change its source of truth when the switch is switched by the user: @Composable fun CustomSwitch( title: String? = null, checked: Boolean = false, ...
doc_23510102
It's probably trivial question, but I can't figure it out... Right now my javascript looks like this: <script id="source" language="javascript" type="text/javascript"> $(function () { var data = [[1251756000000, 122.68],[1251842400000, 122.68],[1251928800000, 125.13],[1252015200000, 112.62],[1252101600000, 122.76...
doc_23510103
public String getPath(Uri uri) { String[] projection = { MediaStore.Audio.Media.DATA }; Cursor cursor = getContentResolver().query(uri, projection, null, null, null); int column_index = cursor .getColumnIndexOrThrow(MediaStore.Audio.Media.DATA); cursor.moveToFirst(); return cursor.get...
doc_23510104
A: This one of the reasons I think having a proper seed file is a good idea. Your dev database should be expendable, you're only using it for development and testing anyways. I would suggest creating a seed file that will populate the database with everything you need with one command. Faker has a pretty fun gem, if ...
doc_23510105
I used ST to push all my branches and tags to the origin i.e. GL repo https://gitlab.com/myusername/myproject.git. To verify, I cloned the repo in a demo local repo and compared the sizes and number of files of original loacal repo & demo repo and found out that there is huge difference between the two. I doubt that fi...
doc_23510106
Code var days = { '1': {startTime: '4:00 PM', endTime: '8:00 PM'}, '2': {startTime: '11:00 AM', endTime: '9:00 PM'}, '3': {startTime: '11:00 AM', endTime: '9:00 PM'}, '4': {startTime: '11:00 AM', endTime: '4:00 PM'}, '5': {startTime: '11:00 AM', endTime: '10:00 PM'}, '6': {startTime: '12:00 PM',...
doc_23510107
I'm trying to figure out what the best way to structure this is. As I currently see it, I have a few options: * *Store the queue items as entries in a queue database with the IDs as _id, and store the dequeued items in a similar dequeued database with the IDs as the _id. Each record in each database wouldn't have a...
doc_23510108
Write a program RandomWalkers.java that takes two integer command-line arguments r and trials. In each of trials independent experiments, simulate a random walk until the random walker is at Manhattan distance r from the starting point. Print the average number of steps. An image preview here The running of the prog...
doc_23510109
Here is the validation method: @Override public Event validateUserCompany(NewUserCompanyForm userCompanyForm,MessageContext messageContext) { MessageBuilder error = new MessageBuilder().error(); boolean eMailIsUsed=userCompanyDao.ifEmailIsUsed(userCompanyForm.getUserName()); boolean companyN...
doc_23510110
Lets get straight to it, I have a website http://harrimanpcrepair.com/index.php and when you look at the footer with something like firebug you can see the div footer itself not the children doesn't show up specifically cause it has no height. Also the entire footer area including it's three children aren't part of my ...
doc_23510111
E.g. My databasereference is pointed at "parent_value". The statement .child("child_value") returns the node of the child value The statement .hasChild("child_value") returns False What could cause this odd behaviour where checking .haschild() returns False when the child node does exist? EDIT:code snippet //Entire cod...
doc_23510112
$botman->hears('GET_START', function ($bot) { $user = $bot->getUser(); $firstname = $user->getFirstname(); $bot->reply($firstname); }); but no i get this error : (#3) Application does not have the capability to make this API call. Can any one help me with this I would be grateful. A: Try use this code...
doc_23510113
Please review the image I attached and help me as soon as possible. A: I suggest to use pseudo element to create the 2nd border, simple demo follows. div { width: 200px; height: 20px; border-bottom: 1px solid black; position: relative; } div:after { position: absolute; bottom: 0; /* or -1px for ...
doc_23510114
#include <iostream> #include <functional> using namespace std; template <int X = 42> struct Test { int x = X; void printer() { cout << "this value: " << x << endl; } std::function<void()> lambda = [this] {printer();}; }; int main() { Test<> t; t.lambda(); return 0; } If I make ...
doc_23510115
The way I implemented it is one view controller per view. Now that I want to add transition animations this implementation causes problems. For example, I want to use the following code: [UIView transitionFromView:startView toView: mainView duration: 2.0 options: UIViewAnimationOptionTransitionCurlDown completion: NU...
doc_23510116
Related code: (The completed code can be found here) private void playIntro(SurfaceTexture surfaceTexture) { if (player != null) { player.release(); player = null; } try { player = new MediaPlayer(); AssetFileDescriptor afd = getResources().openRawResourceFd(R.raw.gpoview); ...
doc_23510117
I tried cookies and iframe for localStorage workaround as desribed here: http://www.nczonline.net/blog/2010/09/07/learning-from-xauth-cross-domain-localstorage/ But nothing really worked. Please help me. Edit: As written below in comments, it works now with chrome.storage. Thanks! Edit2: This doesn´t work for me: chrom...
doc_23510118
Whenever I try to install rails with the following command: gem install --http-proxy http://localhost:3128 rails --debug -V I start getting errors and hence I can't install it: Exception `NameError' at C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand Exce...
doc_23510119
jsfiddle html <div id="filter-bar"> </div> <table class="table table-striped table-bordered table-hover" cellspacing="0" data-toggle="table" id="mainTable" data-click-to-select="true" data-show-toggle="true" data-show-columns="true" data-search="true" data-pagination="true" data-toolbar="#filter-bar" data-show-filter...
doc_23510120
train_step.run(feed_dict={x: batch[0], y_: batch[1]}) I get the following error ValueError: Cannot feed value of shape (50, 784) for Tensor 'Placeholder:0', which has shape '(?, 748)' It seem unhappy with how I'm feeding x. I set x to be the following placeholder: x = tf.placeholder(tf.float32, shape=[None, 748]) I...
doc_23510121
A: I think on "eclipse-jee-helios-SR2-win32" you are able to develop all Android Application.
doc_23510122
/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py:670: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy iloc._setitem_with_in...
doc_23510123
=OFFSET(D1,1,0,42,1) Which display all 42 cells values in range("D2:D42") But how to show only each 10th row to get list of 4th values D2;D12;D22;D42? A: You are hoping for a magic way of doing this, but I don't know of one. Excel only allows a continuous range for a validation list. I suggest making life easy for yo...
doc_23510124
Detect 64-bit java: int f=0 char *path = (char*) malloc(32768); char out[1035]; FILE *fp; if(f) fprintf(f,"Checking if 64-bit Java is available via the java command\n"); java64ok = 1; strcpy(path,"java -d64 -version 2>&1"); fp = _popen(path, "r"); if (fp == NULL) { if(f) fprintf(f,"Failed to run command\n" ); } if...
doc_23510125
My code looks like this right now: myWorksheet= GetWorkSheet(myWorkbook); Excel.Range range = myWorksheet.get_Range(cell1, cell2); Instead of using cell1 and cell2, I would like to use the name that is in Excel already that describes the range. Thanks for your help. A: Simply do: Excel.Range range = myWorksheet.get...
doc_23510126
curl_setopt($ch, CURLOPT_POSTFIELDS , $postData); and assign my info like this $postData['email'] = 'smart@acme.com'; $postData['password'] = 'Secret'; $postData['Submit']='Login'; But the remote server complains about HTTP Error 411. The request must be chunked or have a content length. So how can i tell the conte...
doc_23510127
EDIT The app flow is explained below: The user selects a department of a school. This list is in a ListView then a semester. This other list is in a CharmListView: The initialize method of the SemesterPresenter class: public void initialize(URL url, ResourceBundle rb) { loadSemesters(); semesterListView.setIt...
doc_23510128
I wrote the following script. Do you know better approach? Could you recommend please the better one or link to the official documentation on setuptools where this moment has been explained? import subprocess import sys from setuptools import setup, find_packages, os if 'sdist' in sys.argv: cwd = os.getcwd() ...
doc_23510129
When starting many services it is fine but there is one service I am having a problem with. It's a MySQL database service. Here is my code. I haven't used service.WaitForStatus so that I can do some extra logging. The service just keeps showing status as stopped even though when I check in the Services GUI it says Stat...
doc_23510130
I don't know how to control this. I have pasted some source code for your reference. I wrote a sub class for UITextView. - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { NSLog(@"Action : %@", NSStringFromSelector(action)); NSLog(@"Sender : %@", sender); if (action == @selector(copy:)) { ...
doc_23510131
I manually create a volume against a host that is part of the Swarm cluster ( docker volume create --name=my_data ) and use this volume in my compose file. I say in the compose file that the volume is external. I find that when the container starts the data volume and the postgres application are not necessarily co-loc...
doc_23510132
I am populating it in a separate thread (I am using Quartz to create a scheduled job). I need to remove all of the values from the map and them put a bunch of new values in. I am concerned, though, that there will be CPU cycles where the map is empty where a separate thread might read the map. I do this population of t...
doc_23510133
Is there a way of appending the code to a location or div where the function was triggered? At the moment my best solution is to get the X coordinates of the triggered button and create the menu at those coordinates. HTML of table item & example of desired result. <td><button type="button" onclick="buttonClick(event)"...
doc_23510134
$cmd = shell_exec('/usr/local/hadoop/bin/hadoop fs -ls /Output'); echo '$output'; i got this on my php error log: Error: failed /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/server/libjvm.so, because /opt/lampp/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/i386-linux-gnu/libstdc++.so.6) why i...
doc_23510135
I am trying to publish the application using : C:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe /m /target:publish /property:Configuration=Release_REC2 When I am "just" compiling the application everything works fine, but when I attempt to publish it using the above command it omits some dlls in one of the so...
doc_23510136
I need to do some how to get this: 2.1 = 3 2.2 = 3 2.5 = 3 2.8 = 3 2.9999 = 3 I tried: Number: 2.1 round(2.1, 0, PHP_ROUND_HALF_DOWN) //2 round(2.1, 0, PHP_ROUND_HALF_UP) //2 round(2.1, 0, PHP_ROUND_HALF_EVEN) // 2 round(2.1, 0, PHP_ROUND_HALF_ODD) // 2 ceil(2.1) // 3 Number: 2.5 round(2.5, 0, PHP_ROUND_HALF_DOWN) //2...
doc_23510137
Invalid object name 'dbo.grupyTowarowe'. I could have sworn this worked couple min ago and I didn't change anything. This is the code: var papier = from GrupyTowarowe in dbContext.grupyTowarowes where GrupyTowarowe.typ == "moneta" select new { GrupyTowarowe.grup...
doc_23510138
cdef struct Node: int id Node *left_child Node *right_left But I get a error where a struct cannot contain itself. I can do that in python, so I supposed it's possible with cython / C. A: Cython allows forward definitions, so: cdef struct Node cdef struct Node: int id Node *left_child Node *r...
doc_23510139
Problem : If I have the class name as "s", it throws an error. Error from plugin execution: Execution goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.0:generate failed: String index out of range: 0 -> [Help 1] I have tried using the maven plugin as well as http://www.jsonschema2pojo.org/ <groupId>org.json...
doc_23510140
The application is deployed to the phone but then I get the following error "The application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed." The device screen is unlocked and the application is successfully installed but then it is not starte...
doc_23510141
ref.putFile(uri) .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() { @Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { URL url = taskSnapshot.getDownloadUrl() } ...
doc_23510142
I have made a general attempt with window.onerror (see below). The only reported error is on non_existing_function2, but nothing is reported for the other 2 cases. Any guidance? Thanks window.onerror = { msg, url, line, col, error -> window.alert(“Error: $msg \nurl: $url\nline: $line\ncol: $col\nerror: $error”) t...
doc_23510143
ERROR: type should be string, got " https://api.businesscentral.dynamics.com/v1.0/tenant/Company('company')/Chart_of_Accounts/?filter=No gt 83000\n\nThis appears to be correct by their documentation. However, when calling this URL I get the entire result set, which I am not expecting. This URL is constructed on the fly by some very awful SQL (I know the SQL is awful, my question is about why the filter in the API URL isn't working, not why I chose some awful approach), which is (see below).\nNow, I don't think the SQL has anything to do with why the filter isn't working, but nothing in the documentation is very helpful outside of me thinking the URL looks correct? This is the first time I've started interacting with the business Central API, so I'm sure there are fun quirks affecting me here.\n SET NOCOUNT ON\n if object_id('tempdb..#groups') is not null drop table #groups;\n if object_id('tempdb..#Nums') is not null drop table #Nums;\n\n CREATE TABLE #groups\n (\n [Object] VARCHAR(55)\n , [Group] VARCHAR(55)\n , skwill VARCHAR(MAX)\n )\n ;\n\n DECLARE @sql NVARCHAR(max)\n , @sql2 VARCHAR(MAX)\n , @count INT=1\n , @Max INT\n , @MaxRows INT\n , @BaseUrl VARCHAR(max)\n , @Group VARCHAR(55)\n , @Object VARCHAR(55)\n , @Company VARCHAR(255);\n\n SET @BaseUrl=(SELECT TOP 1 url FROM [adf].[ActivitySink]);\n\n SELECT \n [Object]\n , [URL]\n ,[Group]\n ,[Company] \n , Row_NUMBER() OVER (ORDER BY Company) AS RowNum\n INTO #Nums\n FROM [adf].[ActivitySink] \n WHERE[checkpoint] = 1\n ;\n\n SET @Max=(SELECT MAX(RowNum) FROM #Nums);\n\n WHILE @Max>=@Count\n BEGIN\n SET @Object=(SELECT [Object] FROM #Nums WHERE RowNum=@Count);\n SET @Group=(SELECT [Group] FROM #Nums WHERE RowNum=@Count);\n SET @Company=(SELECT Company FROM #Nums WHERE RowNum=@Count);\n\n SET @sql='SELECT @MaxRowss =ISNULL(CAST((SELECT MAX(\n CAST('+CASE \n WHEN @Object='Vendors' THEN +' RIGHT('\n ELSE +' '\n END+''+\n CASE\n WHEN @Object='Chart_of_Accounts' THEN 'No'\n WHEN @Object='Dimension_Set_Entries' THEN 'Dimension_Set_ID'\n WHEN @Object='G_L_Registers' THEN 'No'\n WHEN @Object='G_LEntries' THEN 'Entry_No'\n WHEN @Object='General_Journals' THEN 'Line_No'\n WHEN @Object='General_Ledger_Entries' THEN 'Entry_No'\n WHEN @Object='Posted_Approval_Entries' THEN 'Entry_No'\n WHEN @Object='VendorLedgerEntries' THEN 'Entry_No'\n WHEN @Object='Vendors' THEN 'No'\n END+' '+CASE \n WHEN @Object='Vendors' THEN+', LEN(No)-1)'\n ELSE +' '\n END+'AS INT)) FROM '+@Object+' WHERE Company='''+@Group+''') AS VARCHAR(255)), 0);'\n\n EXECUTE sp_executesql @sql, N'@MaxRowss INT out', @MaxRows OUT\n\n SET @sql2 = @BaseUrl+@Company+'/?filter='+\n CASE\n WHEN @Object='Chart_of_Accounts' THEN 'No'\n WHEN @Object='Dimension_Set_Entries' THEN 'Dimension_Set_ID'\n WHEN @Object='G_L_Registers' THEN 'No'\n WHEN @Object='G_LEntries' THEN 'Entry_No'\n WHEN @Object='General_Journals' THEN 'Line_No'\n WHEN @Object='General_Ledger_Entries' THEN 'Entry_No'\n WHEN @Object='Posted_Approval_Entries' THEN 'Entry_No'\n WHEN @Object='VendorLedgerEntries' THEN 'Entry_No'\n WHEN @Object='Vendors' THEN 'No'\n END+' gt '+CAST(@MaxRows AS VARCHAR(55))\n\n INSERT INTO #groups ([Object], [Group], Skwill) VALUES (@Object, @Group, @sql2);\n SET @Count=@Count+1\n END\n\n SELECT * FROM #groups\n\n"
doc_23510144
The libraries itself use pre-build 3rd party libraries. My app compiles and links, but fails to run the executable with error Failed to start program. Path or permissions wrong?. If I navigate to the executable and try to run it, it complains about missing libraries. Then I copy all required libraries into the folder o...
doc_23510145
I know this cannot be done using univariate, so I've been playing with the bin statement, but I am having trouble with it. Here is the data and some code I can't get to work: data limbs; input LowerLimb ; datalines; 0.5945611665 -0.5826515170 -1.2089586047 -0.7638814175 -1.3541648163 -0.8279052306 -0.90698...
doc_23510146
In Grafana, I can filter results based on timelines since Influxdb is a time-series database. But I would like to have the flexibility to filter results based on the release pipeline number as well. Is it possible to do it? Can we pass the release number as an environment variable? But what do I do with a release numbe...
doc_23510147
A: This is the sort of thing that might play nicely with an IoC or DI framework - having some interface that includes the database information, and have it pushed into all the callers for you. Even without IoC, hiding the implementation in an interface sounds like a solid plan. With your static concept; a [ThreadStati...
doc_23510148
Is it possible to automatically replace in this list any not number by +Infinity for instance ? So that if I want to take the min of this list whatever the type of this "not number" is, it will ignore it during the computation ? I would like the easiest way to do this. When I say "not number type" I don't mean it is a ...
doc_23510149
[{"ID":6,"Username":"heather","Guide":false},{"ID":7,"Username":"heather","Guide":false},{"ID":9,"Username":"heather","Guide":false},{"ID":11,"Username":"heather","Guide":false}] I can get the JSON Object. But then I am struggling to turn it into a JSONArray because there are no values for the JSONArray parameter. I h...
doc_23510150
SELECT p.CardName, REPLACE(p.groupcode1,'QryGroup','') groupcode1, ocqg.GroupName FROM ocrd UNPIVOT ( value FOR groupcode1 IN ([QryGroup1],[QryGroup2],[QryGroup3], [QryGroup4],[QryGroup5],[QryGroup6],[QryGroup7],[QryGroup8], [QryGroup9],[QryGroup10],[QryGroup11],[QryGroup12],[QryGroup13], [QryGroup14],[QryGroup15],[Q...
doc_23510151
1.Heres my code for 1st view controller protocol ViewControllerDelegate: class{ func Imagine(get: UIImage?) } class ViewController: UIViewController { let button = UIButton() weak var delegate:ViewControllerDelegate? var image = UIImage(named:"face1.png") override func viewDidLoad() { super.viewDidLoad() addBu...
doc_23510152
Eclipse supports team synchronizing view, so that i can see which file i have to pull or commit and also show differences from local to remote, before push or pull. How to see like eclipse in IntelliJ? I just want to see files ( which i will pull or push ). I've local change or show diff (CTRL+D) in IntelliJ but it ...
doc_23510153
T = 10000 tmin = 0 tmax = 10**20 t = np.linspace(tmin, tmax, T) so my stepsize is somewhere around 10**16. I want to evaluate a function from tmin to tmax according to that stepsize. Is the following simply evaluating from tmin to 10,000 or over the full grid? timedep_PD = np.zeros([t,Y]) for t in range(tmin,T): t...
doc_23510154
import matplotlib.pyplot as plt timestamps = dict((x, ts_array.count(x)) for x in ts_array) plt.hist(timestamps) plt.title("Timestamp Histogram") plt.xlabel("Value") plt.ylabel("Frequency") plt.show() Where e.g. timestamps = {'03-08-2012': 108, '15-08-2012': 16}. When I try to run it it throws TypeError: len() of u...
doc_23510155
The Todo Tool Window shows me a list, but I cannot copy that list without having a lot of additional information in my list (when I copy after expanding all entries of the list and marking them). A: I don't think there is such feature in IntelliJ, however you can easily make a script to generate such file for you: egr...
doc_23510156
CREATE OR REPLACE PROCEDURE sp5() RETURNS string LANGUAGE javascript AS $$ var my_sql_command = 'with ct2 (emp_name,emp_id) as (select emp_name,emp_id from TEST_1.PUBLIC.TEST11) insert into TEST_1.PUBLIC.EMP1 (emp_name,emp_id) select emp_name,emp_id from ct2'; var statement1 = snowflake.createStatement( {...
doc_23510157
1.Is it possible to detach a snowflake account from a snowflake organization? a. If yes, will the removed account become a standalone(separate contract) account? How does the billing work? b. Will the account url change after detachment? c. Procedure to achieve the above? *In an organization, are the background servi...
doc_23510158
The situation is that client doesn't provides any access to her network (except VPN connection). In that case I can't use WinRM to deploy our web site to client's servers. I wonder maybe i could use deployment agents for that? Maybe someone can provide good example how to configure TFS 2015 (update 3) release manageme...
doc_23510159
I should either be able to incorporate the Javascript function with the Cognos prompt button or get the functionality of a Cognos prompt button in a Javascript button. Any one of these would fulfill my requirement. Thanks in advance. A: There is an official IBM document regarding this here. A: You can use this in...
doc_23510160
$name = $_POST['name']; $id = $_POST['id']; if (isset($_FILES['upload']['name'])) { // total files // $count = count($_FILES['upload']['name']); // all uploads // $uploads = $_FILES['upload']; for ($i = 0; $i < $count; $i++) { ...
doc_23510161
I am trying to read lines from a text file"Plaintext.txt". e0370734313198a2885a308d3243f6a8 ccddeeff8899aabb4455667700112233 8e73b0f7da0e6452c810f32bc4567a22 It contains now tow lines, I put just two in order to make simple test, but I must put more then 1000 texts (means more than 1000 lines) I want to read each li...
doc_23510162
Valid: $ ./my.py $ ./my.py --arg MyArgValue Invalid: $ ./my.py --arg MyArgValue --arg ThisIsNotValid If I add an argument like: parser.add_argument('--arg', type=str) The invalid example results in a string ThisIsNotValid. I would expect a parser error. A: Create a custom action that raises an exception if the same...
doc_23510163
The following code I am using to connect the database and the code works fine in AVD : import 'package:flutter/material.dart'; import 'package:mongo_dart/mongo_dart.dart'; import 'package:mongo_dart/mongo_dart.dart' as dart_mongo; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { var Username; ...
doc_23510164
obj[start:stop:step] functionally equivalent to (I think) something like this: def iter_slice(obj, start, stop, step=None): length = len(obj) range_step = 1 if step is None else step range_start = ((0 if range_step > 0 else length - 1) if start is None else start if start ...
doc_23510165
A: Did you say thousands of files ? If they are working fine, I wouldn't modify the code of thousands scripts. While it is recommended to upgrade, I suggest you to do it only when writing new code. Every time you refactor some code, there is a risk of breaking, introducing bugs into your application. A: you can try ...
doc_23510166
Parent POM <project> <modelVersion>4.0.0</modelVersion> <groupId>com.build.pom</groupId> <artifactId>basepom</artifactId> <version>1.0</version> <packaging>pom</packaging> <modules> <module> <module>../Common</module> <module> <modules> <!-- . . . --> </proj...
doc_23510167
<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"> <data> <import type="com.google.android.material.bottomsheet.BottomSh...
doc_23510168
This question was asked while trying to solve the "Find the odd int" problem on Codewars. Initially I did not understand correctly the task, but could have solved it much easier, so read it carefully before solving :) Finally following code was used to solve it (it's not entire solution, but the part of it, which is us...
doc_23510169
However during testing I just can't solve the problem of while loop not waiting for resolve of promises, instead it just calls them over and over again causuing browser to crash. The combatStart() is called when component is mounted export const combatStart = () => { return function (dispatch, getState) { ...
doc_23510170
the matrix has a size of <112 * 92 uint8> Hence i ran the following code b = a'; c = b .*a; However, it is said that the dimension does not match which i am unable to resolve the reason why A: The example you show is performing elementwise multiplication, where the two matrices must be of identical shape. From the...
doc_23510171
My code is the following: let counter = 0; teams.once("value", teamSnap => { teamSnap.forEach(tSnap => { games.once("value", gameSnap => { gameSnap.forEach(gSnap => { if(teamInfo.Name == gameInfo.AwayTeam) { let currGame = games.child(`${gSnap.key}`); ...
doc_23510172
The usual method is to create a new image object, wait for onload and then draw it to the canvas with drawImage(). However for a specific case which I do not need to go into I would like to bypass the loading of the image data completely if at all possible. Since the filereader api supports readAsArrayBuffer() I was wo...
doc_23510173
2 eva.1 3 eva.2 4 eva.3 5 eva.4 ... 1970 normal.793 1971 normal.794 1972 normal.795 1973 normal.796 1974 normal.797 Name: Tipo Burla, Length: 1974, dtype: object and I want to replace the obsevations matching "eva.1, eva.2" for just "eva" for al...
doc_23510174
Html.ActionLink(linkText, action, controller, new { id = myid }) However, I need to get the url to open the page in a new window. I tried using BuildUrlFromExpressionForAreas, but it gives me a url in the following format: /Controller/Action?id=myid. Html.BuildUrlFromExpressionForAreas<MyController>(t => t.Action(...
doc_23510175
I have looked into actually editing the connector itself too see how its designed. I'm wondering If I could recreate the Endpoint on a single location for a shape stencil. Which would snap into place on to the designated shape, when a user drags it on to the worksheet. Would anyone have any ideas or pointers on how I ...
doc_23510176
I need to use C1 before it was declared, but I get incomplete type error. struct C1; struct Cap { C1 l1; }; struct C1 : Cap { }; A: You can't use C1 in the Cap struct by value as to calculate the size of a Cap object would require knowing the size of a C1. You could use it...
doc_23510177
Qt sources I've got from the official site. Options of configuration if needed configure -debug-and-release -no-exceptions -nomake demos -nomake examples PS: sorry for my english, it's not my native language A: Looks like Qt forgot to build windows styles. Run configure --help and look for available options, somewher...
doc_23510178
#include<iostream> #include<string.h> using namespace std; int main() { char word1[50], word2[50]; unsigned int code = 0, i, j, counter = 0, ok = 1; cout << "Type in the first word and then press ENTER:"; cin.getline(word1, 50); cout << "Type in the second word and then press ENTER:"; cin.getl...
doc_23510179
Here is the JQuery: $("div.more a").on("click", function (event) { event.preventDefault(); // get the contents $.get(this.href, function (response) { // jquerify the response HTML string and find our replaceable area var result = $(response).find('.l-home-grid'); // do the replace ...
doc_23510180
as you see i click on overflow menu and i see this. but i want to see search icon in action bar this is my code public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.test_menu, menu); MenuItem searchItem = menu.findItem(R.id.action_search); SearchView searchView = (SearchView) Me...
doc_23510181
It follows a toy-example: x = [-0.01611772, 1.51755901, -0.64869352, -1.80850313, -0.11505037] y = [ 0.04845168, -0.45576903, 0.62703651, -0.24415787, -0.41307092] colors = ['b', 'g', 'r', 'b', 'r'] labels = ['Gioele', 'Felix', 'Elpi', 'Roro', 'Cacara'] I'd like to use the function scatter. Following the "quick" do...
doc_23510182
Edit: This is in conjunction with titleize. Titleize doesn't handle words like "iPhone" and acronyms. I'm currently getting user input like "ceo" and titleize returns "Ceo", when I'd like "CEO". I'd prefer not to write a list of special capitalizations, especially if there is a good alternative. Another alternative wou...
doc_23510183
"XYZ_Col,to_timestamp(CREATE_DT,'yyyyMMdd HHmmss')CREATE_DT,ABC_Col,DEF_Col" to "XYZ_Col,CREATE_DT,ABC_Col,DEF_Col" Thanks in advance A: I got the solution. regexp_extract(regexp_replace(column_name, \"\'\", \"\\\\''\") , '[^)]*$',0)
doc_23510184
FYI - If the user has a card saved and chooses that card, that Stripe card number and customer number is used for the payment intent, otherwise I'm collecting the card details, and passing that to the "confirmpayment()". QUESTION - Once I call Stripe "confirmpayment()" client side, and get the result back, which shows ...
doc_23510185
Is there a way to fix this behaviour? (self signed ssl no worries please!) https://sandbox.idev.ge/roomshotel/html5_v2/ I'm using scrollSections.js https://github.com/guins/jQuery.scrollSections And it uses mousewheel jquery plugin: https://github.com/brandonaaron/jquery-mousewheel I'm seeing a lot of people having the...
doc_23510186
Please find below the sample table from pdf document. A: There are multiple ways to extract data from PDFs. You can extract raw data, formatted data, or create form fields if the layout is consistent. If the layout is more random, you might want to take a look at IQ Bot, where there are predefined classifications fo...
doc_23510187
images with this uploader finely. After Upload cycle completion I can't redirect to new url. When I enter window.location.href="url" after upload call, it redirects to the said url but images are not uploaded and server(I/O) error is displayed. Anyone please provide me a suggestion. A: You can redirect in upload_co...
doc_23510188
This version of the code works without errors. Outputs 2 lines + 1. const lineNumber = app.id !== 2 ? ++app.id : (app.id += 2); setTimeout(() => { const typed = new Typed(`#line${lineNumber}`, { strings: text, typeSpeed: speed, onComplete: callback, }); }, timeout); }; $.getJSON(ipgeo...
doc_23510189
_.replace('123456', /[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}/, '0000-0000-0000-0000');
doc_23510190
Adding this code removes both buttons: .single_add_to_cart_button, .add_to_cart_button { display: none !important; } .single-product .cart, .add_to_cart_button { display: none !important; } Same with this code (which is code on top button, found using inspect tool): .button.add_to_cart_button.product_type_v...
doc_23510191
UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure]; pinView.rightCalloutAccessoryView = rightButton; [rightButton addTarget:self action:@selector(rightButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; return pinView; } This works fine and calls the "rightButtonPress...
doc_23510192
Having issues with easy stuff like [TestFixture] class PhantomJSTest{ protected IWebDriver driver; [SetUp] public void Setup() { driver = new PhantomJSDriver(@"..\..\..\.."); } [Test] public void PhantomTest() { driver.Navigate().GoToUrl(adress); driver.FindElement(se...
doc_23510193
These are my code so far: source = 'https://ecshweb.pchome.com.tw/search/v3.3/?q=27%E5%90%8B%E8%9E%A2%E5%B9%95' response = requests.get(url=source, headers=headers, timeout=15) html = response.content soup = BeautifulSoup(html, 'html.parser') And I wanna get the title text in the picture: enter image description here ...
doc_23510194
print 'Data cache hit ratio: %4.2f%%' % ratio Also, what %4.2f%% means? Tried to rewrite the code with format(). A: Just put parens around the parameters. print('Data cache hit ratio: %4.2f%%' % ratio) There are fancier ways of doing formatting in Python 3, but that will work. %4.2f says "display this floating point...
doc_23510195
I'm very new to swift, and the following is complete bogus, but I was thinking of something along the lines of: class Expr { var operandA:Double = 0; var operandB:Double = 0; var arithmeticOperator:operator = +; // total bogus init( a operandA:Double, b operandB:Double, o arithmeticOperator:operator ) { se...
doc_23510196
doc_23510197
The script looks like this: while inotifywait -d -o /var/log/bootstrap.log --format '%T %:e %w' --timefmt '%Y.%m.%d %H:%M:%S' -e modify,create,delete,move,attrib $(find -L /etc/nginx -type f) do NGX_STATUS=$(nginx -t 2>&1) NGX_CFG_STATUS=$(echo $NGX_STATUS | grep successful) if [[ $(echo $?) == 0 ]]; then /...
doc_23510198
(or (if (eq ?SSD-enart_Cl:sName rueck1) then (or (eq ?SSD_Cl:sName sb405) (eq ?SSD_Cl:sName sb455) (eq ?SSD_Cl:sName sb52) ) ) (if (eq ?SSD-enart_Cl:sName rueck3) then ...
doc_23510199
Example - the first numeric data you see on the table 1245871 should be displayed as follows Month - 12 Closing Mileage - 45871 But as you can see on the image both the data are combined togeather how can i seperate these two values and display them accordingingly. The code for this is as below, mysqli_report(MYSQLI_R...