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!...
ادامه مطلبVote count: 0 I'm trying to retrieve data into labels dynamically. Meaning to say the label will change as i change the DropDownList selected item. Is it possible? aspx: aspx.cs: //page load box retrieve SqlCoection myCoect2 = new SqlCoection(_coStr); string strCommandText2 = "SELECT Card_Type, Card_Type2, Card_Number, Card_Number2, Name_On_Card, Name_On_Card2, Expired_Date, Expired_Date2 From Card_Details where Card_Id = @Card_Id"; myCoect2.Open(); SqlCommand cmd2 = new SqlCommand(strCommandTex...
ادامه مطلب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...
ادامه مطلبVote count: 0 I am doing school work and need some help, I want the image in a 'Relevant Information' ImageField column that is DataBound to be enlarged when hoverover. Here are my codes: asked 7 secs agoshck Let's block ads!...
ادامه مطلبVote count: 0 I have a simple program that waits for user input via scanf() and does something depending on the input. I set up a handler to handle the interrupt signal and perform a function for me asynchronously. The issue is when the user types ctrl+c to trigger the interrupt, the function works but the terminal is still hung up on the scanf command and awaits input. My idea to fix this is to send a signal (through stdin) equivalent to the user hitting the enter button via the interrupt funct...
ادامه مطلبVote count: 0 I have a data frame like below and it's structure is not fixed, it can have different number of column at different moment. A_Name B_Info Value_Yn Value_Yn-1 Value_Yn-2 ...... Value_Y1 0 AA X1 0.9 0.8 0.7 ...... 0.1 1 BB Y1 0.1 0.2 0.3 ...... 0.9 2 CC Z1 -0.9 -0.8 -0.7 ...... -0.1 3 DD L1 -0.1 -0.2 -0.3 ...... -0.9 I want to perform a linear regression for each row where values of X and Y are as X = [n, n-1, n-2, .....2, 1] Y = [Value_Yn, Value_Yn-1, Value_Yn-2.......Value_Y2, Valu...
ادامه مطلب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...
ادامه مطلبVote count: 0 I'm following Android developers tutorial to set up a database but i'm having an issue . https://developer.android.com/training/basics/data-storage/databases.html This is my schema file : public final class ContactsDBSchema { public ContactsDBSchema(){}; public static abstract class ContactsEntry implements BaseColumns { public static final String TABLE_NAME = "contacts"; public static final String COLUMN_CONTACT__ID = "contact_id"; public static final String COLUMN_CONTACT__NAME =...
ادامه مطلبVote count: 0 Lets say we have an xml like so: I have a method convertStringToDocument that converts this String xmlString into a Document (org.w3c.dom.Document). In order to digitally sign the xml. public static Document convertStringToDocument(String xmlString) { try { DocumentBuilder db = generateDocumentBuilder(); Document document = db.parse(new InputSource(new StringReader(xmlString))); retu document; } catch ... } retu null; } public static DocumentBuilder generateDocumentBuilder() { try ...
ادامه مطلبVote count: 0 I'm using phalcon-2.0.1. I just create a calendar for my blog archive. i want to retrieve data from database which is matched with the date. my code retrieve only one post. I'm not understanding how to query loop through to check the date related data. I need to retrieve that posts which is related with the date users clicked. [controller] public function archivesAction($date) { $description = "blog-Archive-List"; $this->view->setVar("dynadesc", $description); $keywords = "blog-key...
ادامه مطلب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!...
ادامه مطلب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!...
ادامه مطلبVote count: 0 Previously thought about a similar problem, not everyone is the largest and the smallest may limit the amount of money, the previous problem can be well resolved with a random number. So the issue was brought before the idea of a pit, completely on the breakthrough on how to deal with each person's random number. So in the interview would not solve this problem until the end of the interview myself quiet, think about it, the idea was found wrong. I think the idea is correct: Served...
ادامه مطلبVote count: 0 My Rcpp code is occasionally failing (SEGFAULT, etc.) for reasons I don't understand. The code creates a large data.frame, and then tries to obtain a subset of this data.frame by calling the R subset function, [.data.frame), from within the same method that is creating the frame. A very simplified version of it is shown below: // R function to subset data.frame - what will be called to subset Function subsetinR("[.data.frame"); // Make a dataframe in Rcpp to subset auto df = List::...
ادامه مطلبVote count: 0 Hi we had used ejabberd 16.04 version for chat application, and i can perform user creation and sending message now what i need is i want to archive messages but i couldn't so kindly look into below code and guide me where i went wrong? Some of the my ejabberd code: auth_method: sql default_db: sql Database coection: ## ## MySQL server: ## sql_type: mysql sql_server: "127.0.0.1" sql_database: "ejabberd" sql_useame: "root" sql_password: "1231231213" modules: mod_mam: db_type: sql Er...
ادامه مطلبVote count: 0 I am facing this issue with Oracle Database 11g (11.2.0.4.0): some of the date type rows (each have 00:00:00 time) are added with one hour. Why is it so? asked 36 secs agozygimantus Let's block ads!...
ادامه مطلبVote count: 0 In reading more about Excerpts: http://sphinxsearch.com/wiki/doku.php?id=php_api_docs#buildexcerpts_documents_index_words_options I am still unclear if the inserted tags are inteally used by sphinx to format the final display text or if they actually added to the mysql: before_match is a string to insert before each set of matching words. The default is ''. In other words if I changed the string to some non display htlm e.g. for before_match and for after_match I could then search ...
ادامه مطلب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...
ادامه مطلب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}} ...
ادامه مطلبVote count: 0 I've been researching the infamous quest to know when a page has completely loaded that contains ajax. What I'm not seeing in any posts is whether I need to check jquery.active for each iframe? Do I need to or is jquery.active checking everything? This is using Selenium Webdriver and C# against an Asp.net project. Reference article http://agilesoftwaretesting.com/selenium-wait-for-ajax-the-right-way/ asked 37 secs agouser1701153 This entry passed through the Full-Text RSS service -...
ادامه مطلب