back soft

مطالب مرتبط با «accessing data from json» در back soft | نویسنده: استخدام کار

Selenium C# - driver "pause" , open new form and get data from it, continue driver and paste data

Vote count: 0 I'm having problem with Selenium driver, because it freezes my form which contains crucial data for the rest of the task. Here is part of the code where problem occurs : element.SendKeys(OpenQA.Selenium.Keys.Enter); SendKeys.Send("{TAB}"); driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(15)); MainForm FormN = new MainForm(); FormN.Show(); It freezes here and it skips PerformClick(); action and proceeds to "FindElement(By.Id..." FormN.btnCopy.PerformClick(); FormN.C...

ادامه مطلب

i want to retrieve entire list from mysql database,

Vote count: 0 i write a program for retrieve a entire list from mysql database but while i executing the program it gets all value in list view but i want the whole coloumn in one item in list view, pls help me this is my parser class,, Parser.java public class Parser extends AsyncTask { Context context; String data; ListView listView; ArrayList allData=new ArrayList(); ProgressDialog pd; public Parser(Context context, String data, ListView listView) { this.context = context; this.data = data; t...

ادامه مطلب

Create name-value pair data frame from input with delimiters

Vote count: 0 I have a data frame which can be created with this code: input...

ادامه مطلب

Docker compose - access data from container A in container B

Vote count: 0 Here is my problem: I have a container A (Node.js) and a container B (nginx). In the Dockerfile of container A, I build several files from the sources, as they are needed to run the server into a folder named build. I want to access this folder from container B to serve the static files. The purpose is to have a simple workflow were you could just git clone the repo with the sources and run docker-compose up --build and everything is ruing. In this scenario, the host does not have ...

ادامه مطلب

Error:connecting the database from glassfish server using netbeans

Vote count: 0 my web application is ruing but when I submit the html form data, the galsfish server4.1.1 throws an exception -java.lang.NullPointerException . My servlet code: package com.amir; import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.*; publi...

ادامه مطلب

How to get JSON's data from API with GAS

Vote count: 0 First, I'm not a non-native, so there're some mistakes.And I'm a newbie. This's finish but wrong code. function myFunction() { var response = UrlFetchApp.fetch("https://api.ookami.me/v1/news/public?sport_id=1"); var json = JSON.parse(response.getContentText()); var news = JSON.parse(json.getContentText()); Logger.log("id"); Logger.log("url"); Logger.log("image"); } I wrote "news" in line6's code, and that time, displayed the log. but wrote again, didn't display. And the log display...

ادامه مطلب

Loading JSON stream from Logstash to Elasticsearch

Vote count: 0 I'm trying to load JSON stream (lines of json objects file) through logstash to elasticsearch. Some of my json object field contains unicode as you can see below. {"status_link": "https://www.facebook.com/asia/videos/1118055131588324/", "num_loves": "4", "num_sads": "0", "num_wows": "0", "num_angrys": "0", "num_comments": "6", "num_reactions": "46", "num_hahas": "0", "link_name": "", "num_likes": "42", "timestamp": "2016-07-25 02:07:38", "num_shares": "8", "_id": "156915824368931_1...

ادامه مطلب

How to retrieve and update the data from Google sheets to SQL in android studio?

Vote count: 0 I'm new to Android development. My project has an existing website hosts by Squarespace platform, users can register by filling a form in the website and it will send these information to Google sheets(which is a default function for Squarespace). I am developing an android app that both existing users and new users can register via app. To get the existing user information I need to pull the data from Google sheets, and for new users I need to update their information in the Googl...

ادامه مطلب

Split table data from txt file in powerShell

Vote count: 0 I select data from sql table into txt file. It looks like : Apple 10 Orange 19 Pear 8 Now I want to loops throught this data and pass parameters like (name:"Apple", amount:"10") into my function. (Get-Content D:powerShellTest.txt) -split 's+' I've tried to split data by whitespaces, which works, but I have every "word" with different index in array. I want that every row will have different index and then I can get name like arr[i][0] and amount like arr[i][1] asked 45 secs agodemo...

ادامه مطلب

how to create data volume from image for use in nginx container

Vote count: 0 I have an image (not container) which has the data baked in at /store. The image does not do anything else, it is only a vessel for holding the data in. I want to create a docker-compose file so that my nginx container has access to everything in /store at /usr/share/nginx/html Do I need to make an intermediary container first? I am not sure how the docker-compose file would look. thanks asked 7 secs agouser3231690 Let's block ads!...

ادامه مطلب

How can I pass json data returned from a webservice into D3.json(...)?

Vote count: 0 Thank you for your help so far! I was able to successfully build my webservice and NVD3.js stacked area chart. However, I have been struggling without any success in passing json data from my webservice into my NVD3.js graph. On my webform, I select two dates for an interval and click a "go" button. I feel that it is something obvious that I am missing. If not possible, is there a way of saving the json data retued from my webservice into a regular file (e.g. myFile.json), so that ...

ادامه مطلب

Best Way to Learn About Electromagnetic Signals / RF Signals from a Data Communication perspective?

Vote count: 0 I am leaing about Data and Computer Communications from W. Stallings Book. But in terms of actual signals (Frequency, Wave Forms, Signal Strength, Signal Distortion, signal waveform, Attenuation, Distortions) topics, terminologies I am missing out some very fundamental concepts. And I can't even find out what are some books or resources to be look about this. Should I look in to some introductory Physics Books or Electronic Books, or any Links that will strengthen my understanding ...

ادامه مطلب

How to read data from Siemens s7 1200 plc using vc++

Vote count: 0 I am trying to communicating Siemens S7 1200 PLC with visual c++ . I am able to write data to the plc and make an output from plc using 'UpdateData(true)' function. But i want to read a data from the plc on pressing a push button. Any help would be gratrful Thanks asked 2 mins agoVijin Let's block ads!...

ادامه مطلب

AngularJS getting JSON data from array2 in array1

Vote count: 0 I have JSON like this { "cars":[ { "id":"012", "model":"honda", "parts":[ { "id":"p1", "name":"tyre", }, { "id":"p2", "name":"muffler", } ] }, { "id":"022", "model":"vw", "parts":[ ] } ] } I am new to AngularJS and I have 2 dropdowns, dropdown1 showing car models like: DROPDOWN1 honda vw and dropdown 2 that is supposed to be loaded with parts for selected car model in dropdown1. For example, if I select "honda" in dropdown1, dropdown2 should be loaded with: DROPDOWN2 tyre muffler I...

ادامه مطلب

Storing and Reporting on data retrieved from an API

Vote count: 0 I have a very high-level, generic question related to the retrieval of data with an API, the storage of that data, and the ability to report off of the data. My background is primarily on the database side with a specific focus on reporting out of Crystal. That being said, I'm fairly green when it comes to APIs, SDKs, .NET, and Visual Studio, so feel free to respond as if I'm 5. I've attached a quick mock-up of the application architecture for context. The vendor we're working with...

ادامه مطلب

how can i draw dynamic highchart. the y-axis and the number of charts are dynamic from json

Vote count: 0 im new in angular js and i need to use highchart in my angular page . the problem is that i must draw chart with dynamic data from json and the number of charts will be dynamic too , maybe it should draw 3 or 4 different chart from one json . I searched alot but couldnt solve my problem. this code works but show the data in one chart in different series. I need to show each series in different charts, and in this case the json send 4 data but it will be changed . 1. List item $scop...

ادامه مطلب

Dynamic treeview from database

Vote count: 0 i know this is duplicate question.i had been gone through many links regarding this.but i m pretty new to wpf and MVVM so i found it difficult to understand.can anyone help me to find simplest way to crete treevview from database using mvvm in wpf.this is my static treeview now. I want to feel it from database.i have created table like this please suggest me any good article or sample code to do it in very easy and understandable maer..please.. edited just nowH.B. asked 1 min agoNe...

ادامه مطلب

Extract the content from Wikipedia JSON file

Vote count: 0 I am getting the content of "Sullivan County, Pesylvania" in json format from wikipedia by following api url https://en.wikipedia.org/w/api.php?action=query&titles=Sullivan_County,_Pesylvania&prop=revisions&rvprop=content&format=json Now i want to display the content in well HTML format or similar like wikipedia https://en.wikipedia.org/wiki/Sullivan_County,_Pesylvania I am begier in JSON, how can extract the content in well HTML format? asked 18 secs agoshubham jain Let's block ad...

ادامه مطلب

Angular, get data from web service

Vote count: 0 I got service in angular with defined function: angular.module('services-data-service', []).factory('DataService', function ($resource) { retu $resource('rest/data/:method/', {}, { dictionary:{method:'GET', params:{method:'data1'}, isArray:false} ... }); }); I fetch data in controller by simply calling: ReportsService.data1(), but after adding new line: city:{method:'GET', params:{method:'city'}, isArray:false} when I call it from controller, I get nothing, there is no response in ...

ادامه مطلب

Best Way to Periodically Update a Website's Database Records based on JSON requests

Vote count: 0 What I want to do is to update the records of a database based on the replies of some JSON requests, let's say once an hour or once a day. A way I can think of is to make a C++ or Python program that runs on the server, gets the data and updates the database. Is there an another or smarter way to run a server side service like that and easier to deploy? (in a web hosting service for example) A more suitable language or framework? Thanks in advance. asked 1 min agoKostas Lifeboy Let...

ادامه مطلب