Can I integrate Siri into my iPhone app?
Vote count: 0 I want to create app which uses feature like speech to text conversion. Is there any inbuilt library from apple which converts speech to text. I really don't know how to achieve this. Please help me if anyone knows about this. asked 1 min agoVyas Kishan Let's block ads! (Why?)
Java reading txt file into tree data structure
Vote count: 0 I need help in implementing tree structure, I created the add child function that adds data to tree but there seems to be a problem while adding the child. example txt file: Date,Time,Location 20160101,12:00,Here 20160101,12:00,There 20160102,13:00,Here 20160102,13:00,There 20160103,12...
How to get tab click event in activity in TabLayout android
Vote count: 0 This is implementation of onCreate function in my activity. I need to create the tabs dynamically. Here for simplicity i made 2 tabs. public class ActivityProductList extends AppCompatActivity { private android.support.v7.widget.SearchView searchView = null; private RecyclerView recycl...
rotate an image in java changes its color? [JAVA]
Vote count: 0 I am doing the following transformation of an image (initially as a String in base64): StringBuffer --> decode --> BufferedImage --> rotate --> encode --> StringBuffer Even though the resulting image is rotated, the color has been transformed and I don't know which could be the reason....
Fseek does'nt do what should he do in c
Vote count: 0 I made a code to read .csv files. Every new line is after 'n' and every next element is after ','.the whole code is working fine to me, I get place(col and line) and I trying to change the value in this place by reading the whole file to array and than search the place with 'i' and try...
How to POST with XML payload in node-red
Vote count: 0 Just starting to work with node-red and having trouble getting XML loaded into a javascript object msg.payload that node-red needs for sending a post request to my server. My API is looking for the following: <?xml version="1.0" encoding="UTF-8"?> <userRequest> <authentication> <use am...
Simple TypeScript Testing with Chutzpah not Working
Vote count: 0 I'm trying to run the most basic of TypeScript tests using Jasmine and Chutzpah and I just can't get it to work. Here is the source file: class Simple { public easyTest() { retu 5; } } Here is the spec: /// <reference path="../../../scripts/typings/jasmine/jasmine.d.ts" /> /// <referen...
How to store all siblings in a dynamic local storage array?
Vote count: 0 I have 2 files - first.html & second.html first.html - here the user will input a few fields: Name, Organization, JobTitle,... second.html - this will output only the fields that were typed by the user using a textarea field Purposer: My purpose is to (1) dynamically store all siblings...
Ansible password setup in user module. It didn't set properly
Vote count: 0 I'm new in ansible, I'm setting up my new instance in digitalocean for configuring new user. Basically, I have the playbook for setting up it and everythings okay when I run the playbook but when I tried to check if my password is working it didn't work. I did the sudo apt-get update t...
Replacing a Range of Column Values in R
Vote count: 0 I have a column in a dataset filled with dates, and I'd like to replace them with week values. Is there a way to set a specific span of dates (January 1, 2016 to January 7th, 2016, for example) and each time any date within that range appears to replace it with another value (Week 1, f...
net::ERR_EMPTY_RESPONSE with an async function
Vote count: 0 I've been scratching my head for two days on this and it makes no sense to me! I'm trying to do a very simple operation using two servers ru ing on my local machine. API is on port 5000 and front-end (react) is requesting from 8080. ROUTER router.post('/api/entry', function(req, res) {...
how to delete nested json element by variable
Vote count: 0 how to delete a particular json element by variable:i.e. I want to delete obj.a.b, but it is passed by a variable.Is there a simple way to implement this? var t = 'obj.a.b'; var obj = {a: {b: 'b', b2: 'b2'}}; delete t; console.log(JSON.stringify(obj)); ; console.log(JSON.stringify(obj)...
Switch onclick Event onclick
Vote count: 0 I have a function written to open / close a div using a placeholder for a hyperlink. <a class="button" onclick="show('click-drop')">Open</a> The onclick event then opens the div. I have this onclick to close it: <a class="button" onclick="hide('click-drop')">Close</a> What I would like...
mysql alter table rename (to a new database)
Vote count: 0 I want to move a table ('bar') from my active database 'foo' to an archive database 'foo_archive'. I'm doing this: $co = new mysqli($serve ame, $use ame, $password, foo); then: $co ->query("alter table `foo`.`$bar` RENAME `foo_archive`.`$bar`") Strangely, it works, but I get this error...
Accessing drop down menu using jquery
Vote count: 0 My HTML code is <div class="nav-collapse collapse"> <ul class="nav nav-pills ddmenu"> <li class="dropdown "><a href="index.html">Home</a></li> <li class="dropdown"><a href="about.html">About</a></li> <li class="dropdown active"><a href="features.html">Features</a> <ul class="dropdown-m...
How to create square data frame (or matrix) in R
Vote count: 0 Let's say I have some IDs 1,3 and 5, how would I create data frame (or matrix) which has those ID's as column/row names, so looking like this: IDs IDS 1 3 5 1 NA NA NA 3 NA NA NA 5 NA NA NA Just a note, those IDs could be any large number, I just took that as example. Here below is ano...