back soft

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

Issues with retrieving data from firebase database

Vote count: 0 I have some code for retrieving data from Firebase Data that looks like the following. However this doesnt seem to work for me. I have more code to do other stuff. With this code added, I seem to be hitting an issue. Any ideas ? (function(){ var app = angular.module('test', [ 'firebase' ]); app.controller('TestController', ['$http', '$scope','$firebaseArray', '$firebaseObject', '$firebaseAuth', function($http, $scope, $firebaseArray, $firebaseObject, $firebaseAuth) { //trying to ge...

ادامه مطلب

wordpress template page error when select from database

Vote count: 0 I have take the page.php page and i have created a new template page named mytemplatepage.php The page mytemplatepage.php works normally untill i try to add an sql query. when i add the bellow code the page gives http 500 error. if i remove the code and just leave the page load normally. if i put an echo on the php code the page again crashes with http 500 error asked 51 secs agouser2340890 Let's block ads!...

ادامه مطلب

how to load Area Description File to Android Studio and retrieve the data from ADF to use in indoor navigation app?

Vote count: 0 I'm a newbie in Augmented Reality trying to create an indoor navigation application with Tango Project and Rajawali Engine. I'm struggling in this point as follows: - Adding a ADF file to Android Studio - Loading the ADF file within Android Studio, extracting the data from ADF file and draw to the Camera surface like this: This is an example Thank you for your help. I hope to receive an answer in details. asked 43 secs agoNam Doan Let's block ads!...

ادامه مطلب

Need an excel macro that which can select data from drop down list and copy the contents of the entire sheet into a new work book

Vote count: 0 I have a dashboard which contains many formulas that change depending on the value on the drop down list. Is there any macro which can run a loop for all the values in the drop down list, copy the contents of the entire sheet and paste it into a new workbook? asked 31 secs agoadithya viswanathan Let's block ads!...

ادامه مطلب

How to implement json datatype to store price history

Vote count: 0 I have a "Products" table in MySQL (5.7.10) that contains many products. I want to include into "Products" table a field called HistoricalPrices using JSON datatype. For the example "Products" table includes the following: ProductID ProductName ProductDesc CreateDate Price HistoricalPrices (json) NEW HistoricalPrice should include "CreateDate" and "Price" keys in json and so i can add multiple changes of price. I prefer this method (instead of adding new row per price history) beca...

ادامه مطلب

how to read data from json instead of array using ng2-dnd package?

Vote count: 0 Im using ng2-dnd package, simple html5 package to do drag-and-drop on a list to sort it, but I could only figure out how to populate the list from an array and I need it from json, this is my code: import { Component } from '@angular/core'; import { DND_DIRECTIVES } from 'ng2-dnd/ng2-dnd'; import { Report } from "./Report"; @Component({ selector: 'my-app', styleUrls: ['style.css'], directives: [DND_DIRECTIVES], template: ` {{title}} list of reports: ID:{{rep.id}} Name:{{rep.name}} ...

ادامه مطلب

How to convert from Json to Protobuf?

Vote count: 0 I'm new to using protobuf, and was wondering if there is a simple way to convert a json stream/string to a protobuf stream/string in Java? For example, protoString = convertToProto(jsonString) Basically, I have a json string that I want to parse into a protobuf message. So, I want to first convert the json string to protobuf, and then simply call Message.parseFrom() on it. Thanks in advance for the help! asked 2 mins agoKaran Tibrewal This entry passed through the Full-Text RSS ser...

ادامه مطلب

Trying to make HTML table from MySQL database; PHP doing nothing

Vote count: 0 So before someone tells me my server's PHP is not ruing, it is. When I make a .php that is just Hello World "; ?> it works fine. However, when I use my code to construct this table... I literally get no HTML on my page source. What's going on?? bd = mysqli_coect($mysql_hostname, $mysql_user, $mysql_password, $mysql_database); if (!$db) { echo "Error: Unable to coect to MySQL." . PHP_EOL; echo "Debugging ero: " . mysqli_coect_ero() . PHP_EOL; echo "Debugging error: " . mysqli_coect_...

ادامه مطلب

How to pass value Hidden field from database using Entity framework MVC5

Vote count: 0 I am using MVC Entity framework i have generated code i have fields Isactive this fields have values true or false . code looks like controller: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit([Bind(Include="ClientId,ClientName,PrimaryContactName,EmailId,PrimaryContact,IsActive,ModifiedBy,ParentCompany")] TP_IntealClients tP_IntealClients) { if (ModelState.IsValid) { db.Entry(tP_IntealClients).State = EntityState.Modified; db.SaveChanges(); retu RedirectToAction("Ind...

ادامه مطلب

How to create and where to run a daily job to copy production database from Linode to Heroku?

Vote count: 0 For historical reasons Heroku is where are reporting database is located, which is a direct copy of production from Linode. I currently run commands locally every day to copy the Linode database from Linode server to local drive and then push it to Heroku. I need to automate this somehow so it runs 'somewhere' every day - but where? I know about cron jobs etc and also that you can run workers on Heroku, but I really don't know what is the best/recommended way to go about this and w...

ادامه مطلب

Is it possible to export data from MS Azure SQL directly Into the Azure Table Storage?

Vote count: 0 Is there any direct way within the Azure MSSQL ecosystem to export SQL retued data set into the Azure table storage ? Something like BCP but with the Table Storage coection string on the -Output end? asked 27 secs agoMilan Let's block ads!...

ادامه مطلب

c# Clear DataTable from memory

Vote count: 0 I have a general question regarding how to securely clear sensitive data from memory when not used any more... I make an SQL query resulting in a DataTable dt.. When I leave the form I call dt.Dispose(); and even gc.Collect(); to be sure... But if I make a memory dump of the process after this, I can easily get to all the data of that Table. Even if I have left the context in which they should be accessible... This can be a security issue, and I'm wondering how this is generally ha...

ادامه مطلب

Java 8 LocalDate conversion to/from JSON with Jackson in CXF REST Application

Vote count: 0 Recently I was struggling with Java 8 LocalDate issue with Jackson. After searching through docs and forums, finally I got it working. SO here I am posting so it might some one else in future. Issue: If your JAXRS application is consuming or producing LocalDate from Java 8, Jackson version 1 will not convert it automatically with its aotations in place. You need to write custom logic for that. Error will be like No suitable constructor found for type [simple type, class java.time.L...

ادامه مطلب

Reading data from an excel file every 500 milliseconds in c#

Vote count: 0 I have an excel file that contains some records and that records refresh with in a second.I want to store all records in SQL Server Database.So My intention is to read data from this file into my database after every 500 milliseconds. I have successfully been able to read the data and store in my database.But after few minute excel become hung and not responding state.Please help me. Thanks. Excel._Application excel = (Excel._Application)System.Runtime.InteropServices.Marshal.GetAc...

ادامه مطلب

Json data truncated on cell network ok on wifi

Vote count: 0 Using the following code to retrieve data via a php file from MySQL works great on wifi but not on mobile it seems to truncate the response. Any help to approach debugging this would be much appreciated. See print outputs pasted into code below for cell v wifi func get(){ let urlcustom = "http://myserver.com/swiftly/phpget.php?team_id=(theteam)" let url = URL(string: urlcustom) let data = try? Data(contentsOf: url!) values = try! JSONSerialization.jsonObject(with: data!, options: J...

ادامه مطلب

Sending json data to android from WordPress plugin

Vote count: 0 I am completely new to wordpress development. I have a website in WordPress. I want to send the data from my database table to an android app. I am confused about how to make the api from wordpress so that I can call the api link from my android app to get the data in json format. I need someone's help badly! asked 25 secs agosa'ad bashar Let's block ads!...

ادامه مطلب

Adding data dynamically from SQLite to top of recyclerview

Vote count: 0 I Am trying to implement swipe to refresh in my app. When swipe to refresh is triggered first all the data is fetched from JSON and than store in database. after storing the data all the new data will be added to top of the recyclerview. I read few articles and only get the detail about adding only one item at the top of the list. But in the case of my app more than one items may be available to show then what should I do ? I am adding my codding part. Here is my code for database ...

ادامه مطلب

bind data from different requests in ng-repeat

Vote count: 0 On my page I'm rendering panel with 6 categories. The categories come from api call: var getCategories = function (customUrl) { $http.get(customUrl) .then(function success(response) { $scope.categories = response.data; // console.log($scope.categories); // **** }, function error(response) { console.log("It has happened error in categories response", response) }); }; inside of this request I have angular.forEach loop, where I'm sending api request for each category separately // ***...

ادامه مطلب

mssql from databases

Vote count: 0 All software I'll need. All hardware I'll need. All coding languages I'll need to know. Other skills that I'll need. Please add anything in addition to these points of information for mssql asked 29 secs agoburak yılmaz Let's block ads!...

ادامه مطلب

retreive image from MySQL database and display in excel

Vote count: 0 have the following situation that I can't figure out. In MySQL I have a database with 2 columns :"code"(integer) and "imag"(longblob) with images. Is there a way to see the images from the mysql db in excel? I tried with ODBC coection but it only brings the "code" column. Thank you! asked 1 min agomike Let's block ads!...

ادامه مطلب