How can I create function that return double array with at least 2 double values? in c program
◷
تاریخ انتشار: 1395/3/2 | ساعت: 23:01
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 ...
SPARQL select literals with a given language tag When Applicable
◷
تاریخ انتشار: 1395/3/2 | ساعت: 23:01
Vote count: 0 I am looking for a query that selects literals written in English if applicable. By applicable I mean that if the requested literal is a string and not a number. function (String p){ ... query= "select distinct ?o where { <http://dbpedia.org/resource/Elizabeth:_The_Golden_Age> ?p ?t. F...
How do you generate a web page in ASP.net MCV?
◷
تاریخ انتشار: 1395/3/2 | ساعت: 23:01
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 21:49
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...
What is the best way to connect a UWP app to a remote database?
◷
تاریخ انتشار: 1395/3/2 | ساعت: 21:49
Vote count: 0 I am working in a new project in Windows IOT using a Raspberry pi 3 model B. I am going to use multiple devices to co ect to a database I will create and post data. My question is what is the best way to implement this? Can I co ect to a remote SQLite database with a UWP app or should ...
Angular js Playing Audio
◷
تاریخ انتشار: 1395/3/2 | ساعت: 21:49
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 20:33
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 20:33
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...
non-English characters display issue in gmail, yahoo via phpMailer class
◷
تاریخ انتشار: 1395/3/2 | ساعت: 20:33
Vote count: 0 I use phpMailer (as of today version in GitHub) to send automatic smtp activation mails from my noreply@host.com. I tried it in gmail and yahoo. Both interpreted the characters as shown below. nice unwanted (realized) Ç -> Ç ı -> Ä ş -> Åž mailing process order is: "sign page" (has th...
TypeError: 'float' object is not subscriptable (diferential equation)
◷
تاریخ انتشار: 1395/3/2 | ساعت: 18:23
Vote count: 0 def funk(m,t): retu [m[0], -m[0]+m[1]*np.sin(t)] zac_pogoji = [15, 10, 13] h = 0.1 solver = ode(funk).set_initial_value(zac_pogoji) zac = [zac_pogoji] sprem = [0] while solver.t < 5: solver.integrate(solver.t + h) zac.append(solver.y) sprem.append(solver.t) TypeError: 'float' object is...
Neo4j, Capistrano deployment, Authentication error
◷
تاریخ انتشار: 1395/3/2 | ساعت: 18:23
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 18:23
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 17:20
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 ...
Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'
◷
تاریخ انتشار: 1395/3/2 | ساعت: 17:20
Vote count: 0 I am unable to run the server in my virtual environment since i encounter the following error after ru ing an upgrade from Ubuntu 15 to Ubuntu 16. The following block of codes details how the error occurs. I had previously encountered an error that informed to consider setting PYTHONHO...
Shared element activity transition. View stays on the screen while activity is destroyed
◷
تاریخ انتشار: 1395/3/2 | ساعت: 17:20
Vote count: 0 I have two activities. The first one is a splash screen, it has a logo in the center. The second activity has the logo at the top (logo is smaller than on the main). After some time the first activity is closed, and the logo is animated using shared element activity transition. In the ...
Android OpenSL ES : Error when changing audio route to speaker
◷
تاریخ انتشار: 1395/3/2 | ساعت: 16:02
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 16:02
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 16:02
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 14:56
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
◷
تاریخ انتشار: 1395/3/2 | ساعت: 14:56
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...