Posts

Android Poor performance of FlutterView in RecycleView

Image
Clash Royale CLAN TAG #URR8PPP Android Poor performance of FlutterView in RecycleView Poor performance because of FlutterVeiw extends SufaceView 。 so how to solve this problem , i have to use FlutterVeiw in RecycleView。 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Converting ECEF (XYZ) covariance matrix to ENU covariance matrix

Image
Clash Royale CLAN TAG #URR8PPP Converting ECEF (XYZ) covariance matrix to ENU covariance matrix How to convert the covariance matrix for the coordinates in ECEF and get the covariance matrix in ENU (local East North Up). Any help is welcome, Thank you 1 Answer 1 If you want to compute the covariance matrix (Σenu) for East, Nort, Up. It is based on a given covariance matrix (Σxyz) for the geocentric coordinate increments in X, Y, Z. The law of propagation of variances gives: law of propagation of variances Where: F By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Task could not find “AxImp.exe” using the SdkToolsPath under Ubuntu Linux with Mono project and Rider

Image
Clash Royale CLAN TAG #URR8PPP Task could not find “AxImp.exe” using the SdkToolsPath under Ubuntu Linux with Mono project and Rider I have a .NET Framework (not .NET Core) C# Selenium project. It works under Windows 8.1/10. I recently installed Rider in my new Ubuntu 18.04 instance. I installed Mono project using this guide but Rider shows 2 problems, after opening it up: 15:01 Project 'selenium_IALB' load finished with warnings: Object reference not set to an instance of an object 15:01 Project 'MICE' load finished with warnings: Task could not find "AxImp.exe" using the SdkToolsPath "/usr/lib/mono/4.5/" or the registry key "HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SDKsNETFXSDK4.7.1WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed at (2686:5) I found few questions answered here of how to re...

Expected 1 arguments when using storage in ionic

Image
Clash Royale CLAN TAG #URR8PPP Expected 1 arguments when using storage in ionic I tried using local storage in my ionic service provider app but I got this error. [ts] Expected 1 arguments, but got 0. (alias) new Storage(config: StorageConfig): Storage import Storage Create a new Storage instance using the order of drivers and any additional config options to pass to LocalForage. Possible driver options are: ['sqlite', 'indexeddb', 'websql', 'localstorage'] and the default is that exact ordering. Here is my source code: import Storage from '@ionic/storage'; @Injectable() export class MyServiceProvider public local : Storage; mydata: any; constructor(public http: Http) this.local = new Storage() postLogin(data) let link = "http://myapi.com/api/login.php"; return this.http.post(link, data) .map(data => this.mydata = data; console.log("data") , error => console.log(error) ) 1 Answer 1 I didn...

Android Emulator Intellij “smeared” display issue

Image
Clash Royale CLAN TAG #URR8PPP Android Emulator Intellij “smeared” display issue I'm attempting to build my first Android app using Kotlin and Intellij (Community Edition 2018.2). I've created my first Virtual Device, a Nexus 5 using all recommended system images and virtual device defaults. However, when I try to use the emulator (either through running a sample app, or through using Cold Boot), the display looks strange, as though the images are distorted, as in this screenshot. It runs through the boot of the virtual device happily enough, displaying the correctly sized Google logo, etc. I'm on a Mac running El Capitan 10.11.1. Anyone seen this issue before? Thanks in advance for helping on this beginner question. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Jquery validation not working with ckeditor

Image
Clash Royale CLAN TAG #URR8PPP Jquery validation not working with ckeditor I am using jQuery to validate forms.. but when I use CKeditor and try to validate it using jQuery, it's not working. Here is the snippet of HTML code <form class="form-horizontal" role="form" name="f3" id="f3" > <div class="col-xs-8"> <textarea class="ckeditor" name="cktext" id="cktext"></textarea> </div> <button type="submit" class="btn btn-default btn-success">Submit</button> </form> Here is the form validation code <script> $(document).ready(function() $("#f3").validate( debug: false, rules: cktext: required:true, minlenght:10 ); ); </script> FYI : jquery validation working for other form fields expect the ckeditor textarea filed Any suggestions.. to get rid of this problem.. 8 Answers 8 Finally i found the...

Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered

Image
Clash Royale CLAN TAG #URR8PPP Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered Here is my error on visual studio. I can't figure out if there is a config to fix this. Additionally I am restricted from installing git command line tools. Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: HttpRequestException encountered. An error occurred while sending the request. error: cannot spawn askpass: No such file or directory fatal: could not read Username for 'https://github.com': terminal prompts disabled Possible duplicate of Git failed with a > fatal error. could not read Username for – phd Feb 23 at 22:16 This is not a duplicate of that issue. Daedalon is correct; GitHub's removal of pre-TLS 1.2 have caused this issue. – Edward Thomson Feb 25 at 1:09 I'd recommend changing the accepted answer to Lachezar's answer, for reasons mentioned in Sua...

Pass child data to parent?

Image
Clash Royale CLAN TAG #URR8PPP Pass child data to parent? I would like to pass data from a child component to the parent. Here is my code: https://codesandbox.io/s/018488478p In my child component I have this const = priceShown that I would like to display in the parent component. As so: const = priceShown <h2>Price:priceShown</h2> <h2>Price:priceShown</h2> I have tried placing functions in the parent then passing them as a props to the child so I can have access to const = priceShown as it will live in the parent but i comes up as undefined. Here is that code: https://codesandbox.io/s/14vyy31nlj const = priceShown i Why? Data and props are supposed to flow downwards. If you want a data relationship between a child and parent, handle it in the parent then pass it down to the child. – Li357 Aug 10 at 15:53 You most likely want to lift the state up to the first common ancestor instead of trying to send data from the child to th...

Torchtext TabularDataset: data.Field doesn't contain actual imported data?

Image
Clash Royale CLAN TAG #URR8PPP Torchtext TabularDataset: data.Field doesn't contain actual imported data? I learned from the Torchtext documentation that the way to import csv files is through TabularDataset. I did it like this: train = data.TabularDataset(path='./data.csv', format='csv', fields=[("label",data.Field(use_vocab=True,include_lengths=False)), ("statement",data.Field(use_vocab=True,include_lengths=True))], skip_header=True) "label" and "statement" are the header names of the 2 columns in my csv file. I defined them as data.Field, but "label" and "statement" don't seem to actually contain the data from my csv file, despite being recognized as data field objects by the console with no problem. I found out this issue when I tried to build a vocab list with statement.build_vocab(train, max_size=25000). I printed len(statement.vocab), the return is "2", which obviously doesn'...

add 1 value to new column and perform operation on it with other columns

Image
Clash Royale CLAN TAG #URR8PPP add 1 value to new column and perform operation on it with other columns I have a dataframe, x y z new_col Nan NaN Nan 1 1 2 3 4 2 3 4 20 2 1 3 60 So basically formula is, 1 of new_col that we set first 1 * (1 + 3), then 4 * (1 + 4), then 20 * (1+3), so on.. How should I first create a new column (new_col) and then add 1 at first row, then perform calculation. Sorry, I can't understand the formula. Please include the expected output and clarify what you're trying to do. How does the formula relate to x , y , z given in the DF? – roganjosh Aug 10 at 16:12 x y z Expected output is the new column (new_col), create another column new_col and make it first value to 1, then consider that 1 for second value of new_col, then consider previous value for third value of new_col, so on. – Barsmansvaps Friends Aug 10 at 16:14 I think I see it: the expected output is included. The formula for column "new-col", row n , is ne...

Ifelse statement to add NA to list

Image
Clash Royale CLAN TAG #URR8PPP Ifelse statement to add NA to list I am running into an issue turning my list into an array for further analysis due to the different number of values within the strings as such: [[1]] [1] 35 61 [[2]] [1] 2 11 13 [[3]] [1] 10 15 35 [[4]] [1] 35 44 78 [[5]] [1] 22 86 101 Due to the fact that I have 2 integers in some strings and 3 in other strings, I am unable to turn it into an array. Ultimately, I would like to create an ifelse statement to insert an NA into the into the list when there are only two integers. ifelse NA This is the statement I made: length = length(list_i1) list_i1 = ifelse(list_i1[[1:length]][3] != 0:Inf, list_i1[[1:length]][3] == "NA", list_i1[[1:length]][3] == list_i1[[1:length]][3]) It is returning: Error in list_i1[[1:length]] : recursive indexing failed at level 2 Error in list_i1[[1:length]] : recursive indexing failed at level 2 How is this different from your previous question: stackoverflow.com/questions/5...

Server side gallery inside an ad (php, js?, ajax)

Image
Clash Royale CLAN TAG #URR8PPP Server side gallery inside an ad (php, js?, ajax) I have some pictures in a folder and their paths in a database. I want to make a photo gallery with those images (with previous and next buttons) without reloading the page. Here is the AJAX function (if you have any idea of doing this without AJAX I would be grateful): function next_img(id_add, curr_img_id) //alert(id_add + curr_img_id); xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() if (this.readyState == 4 && this.status == 200) document.getElementById("recent_img").src = "<?php echo "user_images/" . $row['Username'] . "/"?>" +this.responseText; ; xmlhttp.open("GET","gallerynext.php?add="+id_add + "&img="+curr_img_id,true); xmlhttp.send(); Here is the php for next image: <?php include("inc/conectare_la_baza_de_date.php"); $add_id = $_GET['add']; $i...

Amazon SageMaker: Invoke endpoint with file as multipart/form-data

Image
Clash Royale CLAN TAG #URR8PPP Amazon SageMaker: Invoke endpoint with file as multipart/form-data After setting up an endpoint for my model on Amazon SageMaker, I am trying to invoke it with a POST request which contains a file with a key image & content type as multipart/form-data . image multipart/form-data My AWS CLI command is like this: aws sagemaker-runtime invoke-endpoint --endpoint-name <endpoint-name> --body image=@/local/file/path/dummy.jpg --content-type multipart/form-data output.json --region us-east-1 which should be an equivalent of: curl -X POST -F "image=@/local/file/path/dummy.jpg" http://<endpoint> After running the aws command, the file is not transferred via the request, and my model is receiving the request without any file in it. aws Can someone please tell me what should be the correct format of the aws command in order to achieve this? aws I think content-type might be tripping it off. Can you try changing content type as ...

How to add value to if (!this.value)

Image
Clash Royale CLAN TAG #URR8PPP How to add value to if (!this.value) I am trying to enable my code in javascript to only allow numbers to be entered into a field. Therefore, I need the (!this.value) to equal [a-zA-Z]. How can I accomplish this? function validatemycode() $('datagroup').on('blur', 'input[id^="datagroup_1"]', function () if (!this.value) alert('Alert message here.'); ) Using RegEx, for example – Luca Kiebel Aug 10 at 16:08 4 Answers 4 A Regex-free edition: function validatemycode() $('datagroup').on('blur', 'input[id^="datagroup_1"]', function () if (!isValidInput(this.value)) alert('Alert message here.'); ); function isValidInput(value) var allowedCharacters = '0123456789'.split(''); return string.split('').every(function (char) return allowedCharacters.includes(char); ); What happens in isValidInput is: 1. We make an array out of 01234...

How to retrieve events created on fullcalendar on a datepicker to manage an appointment in symfony?

Image
Clash Royale CLAN TAG #URR8PPP How to retrieve events created on fullcalendar on a datepicker to manage an appointment in symfony? Here I realize a medical appointment site, and the two actors, who intervene are the doctor and the patient. So I set up the full calendar on the doctor's side, to be able to manage his schedules (add, modify, and delete his events) and save them in a database.And on the side of the patient, when he chooses the doctor , a date picker, with hours will appear on the appointment page and its general info. What I would like is that the patient sees on the date picker the available days of the doctor he has chosen. The problem is that I have no idea how to match these two things (fullcalendar and datepicker), so if someone could give me a hint, or a starting point or a tutorial, I will be really grateful . Thank you Here is the image of the datepicker where will be made the making of an appointment: This my jquery script: <script src=" asset(...

hyperledger explorer only shows blank page after start

Image
Clash Royale CLAN TAG #URR8PPP hyperledger explorer only shows blank page after start I installed all necessary components, i can install and build the application and at the end i used the serve -s build to deplo it. All the things seem working - but when i am starting the (firefox-browser) i can see the logo for a moment and the writing "Accessing the network" and a moment later there is only a blank page. Nothing to see nor to click. 2 Screen-Shots: Start Konsole But there are many errors and i have no idea why ! Well, i havent found anything with "payload"..i had the idea that the tables in the database where wrong...but i was not able to find something out. So - what is relevant - first off all: - there is nothing in any of the log-files - config.json "network-config": "org1": "name": "peerOrg1", "mspid": "Org1MSP", "peer1": "requests": "grpc://127.0.0.1:9050...