How can I create function that return double array with at least 2 double values? in c program
Vote count: -1 I am trying to construct function which can retu array with at least 2 double values. Now, I have no idea to make it. asked 2 mins agoสุเมธ คุ้มภัยรัญ 1 Answer Vote count: 0 f is an automatic local variable, it will no longer exist once function retu . answered 9 secs agohaccks Let's ...
How do you generate a web page in ASP.net MCV?
Vote count: 0 For example, I want to generate a plan table web page (like https://trello.com/) with a button. So in trello, you get to make your own plan, then add list, and in each list, you can add cards. I am developing a website which will be able to do something like trello, which you will be a...
scrapy use mongodb to store info
Vote count: 0 I'm writing a web spider to get user info on stack overflow. And I'm trying to store the info using mongodb. here is the code for my web spider, which works fine: class webSpider(Spider): name = "user_spider1" allowed_domains = ["stackoverflow.com"] start_urls = [] def start_requests(s...
Angular js Playing Audio
Vote count: 0 I have tried to implement audio notification when button click and am using AngularJS for my back end coding. i have tried to search proper reference still i couldn't find proper reference. Any pointers will be appreciated. Thanks. asked 1 min agoJanaka Sampath Let's block ads! (Why?)
making function of a fixed point algorithm
Vote count: 0 I have the following fixed point algorithm (in R) delta_<-matrix(1,100,1) f_<-matrix(0,1000,100) for (iterate in 1:1000){ g0<-1 for (i in 1:1000){ f0<-t(exp(delta_+ g*v_xj[i,1:100])/(1+sum(exp(delta_+g*v_xj[i,1:100])))) f_[i,1:100]<-f0 } s_<-t(matrix(1,1,1000)%*%f_/1000) s_0<-1-sum(s_)...
Why doen't my code work? c++ operator
Vote count: -1 //main() #include <iostream> #include "Circle.h" #define PI 3.1415965 //defining the pi number using namespace std; //I want to create a class that has the characteristics of a circle int main() { Circle c1(1); //making a class object cout<<c1; //using the operator<< after overloading...
Neo4j, Capistrano deployment, Authentication error
Vote count: 0 I want to deploy a Rails application, using Neo4jrb, to production with Capistrano. During deployment the following error shows up: DEBUG [5a528d81] Finished in 0.057 seconds with exit status 0 (successful). INFO [acd66fd5] Ru ing /usr/local/bin/chruby-exec 2.3.0 -- bundle exec rake as...
nsupdate in basic CSH script for BIND in unix
Vote count: 0 I have never used C and I'm not writing this for security reasons, i am just writing this script to test an update via nsupdate to my BIND for a specific zone being "zoneA.unix". But i am receiving "option: undefined variable"And I'm not to sure if this is the correct way to do nsupdat...
Android window manager screenshot foreground activity
Vote count: 0 I'm apologies for my english. I need take screenshot from current activity in foreground from service. But my service added view on top screen (TYPE_PHONE) that hide part of activity, and i need take screenshot without my view. I don't want hide my view for take a screenshot. I have a ...
Android OpenSL ES : Error when changing audio route to speaker
Vote count: 0 I have the following error when I change the audio route from headset to speaker: E/ACDB-LOADER( 183): Error: ACDB AudProc vol retu ed = -19 D/audio_hw_primary( 183): enable_snd_device: snd_device(32: speaker-mic) D/audio_hw_primary( 183): enable_audio_route: apply and update mixer pat...
How to upload image using CkEditor and Rails
Vote count: 0 I'v installed this https://github.com/tsechingho/ckeditor-rails lib into my Rails application. I would like to use CkEditor image upload functionality, but i'dont know how to write the backend logic, how to handle request, save file and send a response back to CkEditor to display uploa...
MySql Simple Query Performance - 1m rows
Vote count: 0 I'm currently the developer behind the site Twitch Links (NSFW). I'm the sole creator and I'm starting to feel conce ed about a simple query that is the back bone of the web site (I'm by no means a DBA). To quickly summarize, it's collecting URL's from Twitch.TV chat. It's grabbed arou...
Specializing a non-default constructor in a template class
Vote count: 0 Here's a rough structure of my code: #include <iostream> using namespace std; template<typename T> class Stack{ public: Stack(); ~Stack(); Stack(const Stack<T>& b); Stack<T>& operator=(const Stack<T>& b); Stack<T>(string str); //this is the original constructor ... }; In addition to th...
same item is being selected every time in ListView
Vote count: 0 I am new to Android and I am developing an application in which I have a ListView which displays reminders. I want to highlight a reminder when notification of that reminder is clicked. Now the problem is that; when there are two notifications then the notification which is clicked fir...