on-internet

cannot compile openssh due to OpenSSL library not found

I am based on 16.04, trying to install openssh from source sudo apt install -y build-essential libssl-dev zlib1g-dev wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz" tar xfz openssh-7.4p1.tar.gz cd openssh-7.4p1 ./configure When trying to configure, I've gotten the following error message: checking OpenSSL header version... 10101000 (OpenSSL 1.1.1-dev xx XXX xxxx) checking OpenSSL library version... not found configure: error: OpenSSL library not found. checking the path /usr/local/ssl# ls shows the following files certs ct_log_list.cnf.dist openssl.cnf priva

Join the discussion →

Displaying FlatList using array of objects (React Native)

I have a prop where console.log(this.props.userList); returns Array [ Object { "userData": Object { "userName": "David", "userAge": 20, }, "id": "ax3", }, Object { "userData": Object { "userName": "Phillip", "userAge": 27, }, "id": "xq4", }, Object { "userData": Object { "userName": "Kelly", "userAge": 28, }, "id": "pj7" } ] I am trying to generate a Flatlist from that data by writing: <FlatList data={this.props.userList} keyExtractor={item => item.id} renderItem={({ item }) => <Text>{item.userData.userName}</Text> } /> When testing through Expo on my iPhone, the app just freezes. It does not

Join the discussion →

Convert JSON Data into Excel File Download in Javascript

I have a AJAX POST Request fetching data back in form of a JSON Array. I want to convert this received JSON Data into an Excel File (Not CSV) for download (on a button-click), pls help. The JSON Data might have blank values and missing fields for each JSON row. I tried this in Client side using Javascript but not in Java server side in which case I will have to use @Produces(MediaType.MULTIPART_FORM_DATA) in the AJAX End-Point method, which is something I can try but think its complex. a) AJAX Request code: function fileUploadFunction() { var file = $('input[name="file"').get(0).files[0]; var

Join the discussion →

Keep placeholder of Input CSS only

I have an input field with a placeholder. On focus of it, I need a transition of placeholder and it should stay at a different position. I cannot modify the HTML as it's getting generated from a plugin. I have achieved the transition, but the placeholder disappears after it. Need it by CSS-only. Demo .container { margin-top: 80px; } input { width: 500px; font-size: 16px; } input::-webkit-input-placeholder { -webkit-transition: all 0.3s ease, font-size 0.3s ease; transition: all 0.3s ease, font-size 0.3s ease; } input:hover::-webkit-input-placeholder { -webkit-transition: all 0.3s ease, font-si

Join the discussion →

iOS caches the proxy credentials

I will keep it short and simple. I have a proxy server which requires authentication. Now my problem is when i make a HTTP request, i get authentication challenge, i provide my credentials now iOS never asks for that again. Does the OS stores this cache somewhere, looks like it. If Yes where ?? How can i delete this cache so that so that i can continue my testing and finish my app development. I hovered around everywhere but couldn't find no proper documentation regarding this. Things i have tried - 1. Reset the Network Settings. No Luck :( 2. Deleted installed my app back, again no luck :(. N

Join the discussion →

Locksmith error: Locksmith.LocksmithError.interactionNotAllowed

we're using Locksmith to save user data for Keychain. In our end everything works as it should but for some reason we receive crashes with the error Locksmith.LocksmithError.interactionNotAllowed. Follows the code where the crash happen: func updateUserAccessToken(forAccount account: String, token: String) { var userAccessToken = Locksmith.loadDataForUserAccount(userAccount: account) ?? [String: Any]() userAccessToken[“token”] = token try! Locksmith.updateData(data: userAccessToken, forUserAccount: account) } Why is the code above crashes for other users? 'til . now we can't replicate the said

Join the discussion →

SSIS Package stopped working with Error code: 0x80004005

I got this SSIS package working this past December. It only runs on Friday mornings. Last Friday it failed with this error message: Package:Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "The Microsoft Access database engine cannot open or write to the file '\\ServerShare\IT\Reports\Export Templates\YoderReport.xlsx'. It is already opened exclusively by another user, or you need permission to view and write its data.". I've checked out a cou

Join the discussion →

i want to convert sound to numbers

in audacity you can use sample data import which imports a .txt file with numbers in it and converts the numbers to a sound file. but I want to do the opposite I want to convert sound into numbers. is there a way to do that?

Join the discussion →

JSF Datatable - how to select row on button push in row

I would like a button in a Primefaces DataTable row to show a dialog showing more information about the object in the row. When I click anywhere in the row not in the button, the row is selected. However, when I press the button, the row is not selected. How may I make the row that the button is in the selected row? This example from the Primefaces showcase sets selectedCar in the backing bean and displays a dialog containing data from the row on clicking a button in the row but leaves the row unselected: <p:dataTable id="basicDT" var="car" value="#{dtSelectionView.cars1}"> <f:facet name="head

Join the discussion →

OpenCV why does setting a Mat equal to a decimal less than 1 not cause all of the values in the Mat to become 0?

I need help figuring out how OpenCV handles setting a matrix equal to something. I have an 8-Bit Mat called Radiance that I want to tone map. Here is working code that accomplishes this for me, with K being the constant 450. cv::cvtColor(radiance, radiance, CV_BGR2XYZ); radiance = (K * radiance)/(1 + (K * radiance)); cv::cvtColor(radiance, radiance, CV_XYZ2BGR);` This does not seem like it should work, but it does. It will create a fully tone mapped image that looks great. However, if you try to do this method on the individual pixels, they become a decimal that is between 0 and 1, which trunc

Join the discussion →

Job stuck on the last 2 tasks of 100

I am new to Spark and I must support an application that has been written by our consultant. I read and watched a ton of information about Spark, but still I'm struggling with the little details to tune the job correctly. The scenario: Java class that contains 5 cleansing rules that we apply on a RDD of 400 millions records. Number of partition is set to 1000. The final "action" is a write on S3, but prior to that we reduce the number of partitions to 100. Spark UI shows the progression but unfortunately on the last stage of the save, the tasks are stuck at 98/100 I'm not using .collect() but

Join the discussion →

Angular JS password match validation not working

I am trying to implement an password match validation in Angular JS on my webpage and for some reason it doesn't work. I have follow religiously a step by step and implemented the method from the controller as well as i downloaded the angular file, which is in a folder called includes. Even tough it doesn't seem to work. Can someone give me a help? My field on the register page <html lang="en-US" ng-app="myApp"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="includes/angular.min.js"></script> <script type="text/javascript" src="includes/XXXXXXXX"></script> <style> .msg-block

Join the discussion →

How to calculate the fps of a video (with processing) using opencv

I can't seem to figure out what is wrong with the code fragment I have...it keeps on outputting over 200 fps for some reason. I tested with OpenCV and the unprocessed video is about 30 fps. int n_frame = 0; Mat previous; auto start = chrono::high_resolution_clock::now(); while (m_cap.isOpened()) { if (n_frame % 100 == 1) { auto end = chrono::high_resolution_clock::now(); auto time = chrono::duration_cast<chrono::seconds>(end - start); cout << "the fps is: " << 1.0 / (static_cast<double>(time.count()) / n_frame) << endl; //cin.ignore(1000, '\n'); } n_frame++; cout << "frame number: " << n_frame

Join the discussion →

npm install gifsicle behind corporate proxy failed or stuck at windows system

windows 7, [email protected], [email protected] npm and git are set up for using the corporate proxy. It took me a while to figure out how git and npm can use the corporate proxy, luckily it was successful done. npm config file (.npmrc) looks like: strict-ssl=false proxy=http://domain%5Cmyname:mypassword@corporateproxy:8088/ http-proxy=http://domain%5Cmyname:mypassword@corporateproxy:8088/ https-proxy=http://domain%5Cmyname:mypassword@corporateproxy:8088/ cache-lock-wait=30000 cache-lock-retries=10 cache-lock-stale=300000 start installation npm install gifsicle --verbose and here is the logging: C:\temp\20

Join the discussion →

Parsing a word document into an Oracle Apex form page

Currently have a custom Applicant Tracking System/Client Relationship Management system built in Apex 5.1, part of the ATS portion allows the recruiter to type in candidate data into system and attach a resume. The request that I currently have right now is that they don't like typing since it takes too long, so they want a way that you can just upload and parse the contents of the resume to fill in the form fields for them. Is there a way in Apex 5.1 that allows for parsing a word document and placing the contact and skills information into the form or even directly into a table bypassing the

Join the discussion →

Strange memory consumption behaviour when running PCA in Python

At the moment I am trying to find the reason for a specific behavior in Python. First, I want to describe my use case. The idea is a performance analysis on Python. Therefore I want to analyze the memory usage and runtime regarding the principal component analysis algorithm. For that, I use scikit-learn. To see how the algorithm behaves for different datasets, I generated several randomly uniform distributed datasets. The strange thing is, there is an increase in memory usage and a faster runtime regarding two datasets. Now I want to explain, how I measure the memory-usage and runtime shortly.

Join the discussion →

how can I select data similar to SQL WHERE LIKE from a parameter value

I have the following CDS: @AbapCatalog.sqlViewName: 'ZAMPAYERINFO' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'Read payer information' define view zam_payer_info with parameters p_payer: abap.char(10) as select distinct from knvp join kna1 on knvp.kunnr = kna1.kunnr { key knvp.kunnr as Payer, kna1.name1 as Name } where knvp.kunnr like $parameters.p_payer that the compiler complains: Comparison value of LIKE condition must be a character-type literal ZAM_PAYER_INFO (Data Definition) As you can see on the CDS code, I am using character

Join the discussion →

The difference between PUSH and PUSHQ in at&t assembly

I've recently started my quest of obtaining a greater understanding as to how my computer works. My question is regarding the differences between push and pushq. I'm aware that push writes a value to the stack and my assumption is that pushq does something similar. The fact that 'q' is there, makes me think that there should be a subtle difference but I can't seem to make sense of the difference. I started to ponder this question while debugging the file /lib/udev/iphone-set-info using gdb with the command 'layout asm'. The code in question is : pushq $0x0 push %r9 I understand that $0x0 is he

Join the discussion →

What's the difference between 'push' and 'pushq' in at&t assembly

I've recently started my quest of obtaining a greater understanding as to how my computer works. My question is in regards to the differences between push and pushq. I'm aware that push writes a value to the stack and my assumption is that pushq does the something similar. The fact the q is there makes me think that there should be a subtle difference but I can't seem to make sense of the difference. I stated to ponder this question while debugging the file /lib/udev/iphone-set-info using gdb with the command 'layout asm'. the code in question is : pushq $0x0 push %r9 I understand that $0x0 is

Join the discussion →

How is it possible to run my website on a linux vps?

I recently have bought a centos 7 VPS server, and I want to upload my php website to it. It's completely different than a hosting. How should I do it? It would be appreciated if you explain for me these things: How to connect a domain to my to my VPS How to install a webserver on my VPS Where do I upload my files? I also need to upload my SSL certificate where do I upload it? And by the way, I don't want to use a control panel like cpanel or other control panels.

Join the discussion →

SSIS - the RPC server is unavailable

I've installed a instance of SQL Server and i select Integration Services in the setup wizard. However, when I run SQL Server Management Studio as 'Administrator', I can see my instance under. Database Engine Analysis Services Reporting Services However, I can't see my instance under 'Integration Services'. The service is running in Configuration Manager. UPDATE 1 When trying to enter the server name manually it gives the following error: the RPC server is unavailable

Join the discussion →

SQL Server connection timeout error in nodejs mssql

Always getting following error after couple of SQL statement execution. I am using var sql = require("mssql"); (node:12240) [DEP0064] DeprecationWarning: tls.createSecurePair() is deprecated. Please use tls.Socket instead. warning.js:18 (node:12240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ConnectionError: Failed to connect to Server-100:undefined in 15000ms warning.js:18 (node:12240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a

Join the discussion →

How to get the list of docker images from Azure private registry [closed]

I have a linux system where I have installed dockers. I also have a registry on azure for which I have the user name and password. To get a list of docker images from a private registry we can simply use curl command like below: curl localhost:5000/v2/_catalog This command I tested when I installed private registry on my machine and it was giving me the list of images which I have in the registry. Now I have azure registry. I can login to it successfully but don't know what command I can run to get the list of docker images. Is this possible.? For example, if I run: curl myregistry.azurecr.io/

Join the discussion →

How to compare elements of a vector against each other? C++

I am supposed to read some data (specifically string datatype) and store each element in a vector. Now I have to check if any of the different strings that were inputted match in size, and if they do I have to see if there are any matching letters. Now my question is how do I compare what's inside the vector (first the size and then the different letters). Is it possible? Say I have HELLO and HELLA They have the same size, and 4 letters that match. This is what I am trying to accomplish. The code that I have does not work given my ignorance about the matter. vector <string> myVector; //insert

Join the discussion →

Save files to OneDrive using Access VBA

Our systems are changing over to cloud storage so our personal drives will be vanishing soon, therefore I need to save applications to users OneDrives. This is new territory for me and what I am reading online is not making much sense. This is what I have so far: Set FileSystemObject = CreateObject("Scripting.FileSystemObject") Dim FileExistsbol As Boolean Dim stFileName As String Dim CopyFrom As String Dim CopyTo As String stFileName = "C:\Users\" & Environ("UserName") & "\OneDrive - Company" stFileName = Trim(stFileName) FileExistsbol = dir(stFileName) <> vbNullString If FileExistsbol Then K

Join the discussion →

How to convert Gradle to maven in eclipse

I want to migrate from gradle to maven I tried and build successfully but I am facing issue while running my application I took this gradle project https://github.com/spring-projects/spring-security-kerberos from git, its working fine as gradle project. But my requirement is maven project please tell me how I can do it.

Join the discussion →

Angular 2 Unit Test for a promise

I normally use fakeAsync to test a subscribe returning an observable. But on this rare occasion, I need to do the same but for a promise. This is my attempt: //Service Stub: const testService = { testMethod: jasmine.createSpy('testMethod').and.callFake(() => new Promise(() => 'test')) }; it('test example',() => { // Arrange const response = 'test'; component.selected = undefined; // Act component['myMethod'](); //Assert expect(component.selected).toEqual(response); }); This is my actual code: private myMethod(): void { return this.testService.testMethod() .then((response: string) => { this.sel

Join the discussion →
Older stories