In C++ what is the difference between declaring an object using {}, () and nothing?
◷
تاریخ انتشار: 1395/4/18 | ساعت: 9:07
Vote count: 0 I have defined this class: class numbers { private: int i{ 0 }; int j{ 0 }; public: int get_i() const; int get_j() const; void set_numbers(int, int); numbers(int x, int y); numbers(); }; Now in the int main(void) what is the difference between the following statements: numbers numberA;...
How do I validate an implementation of python's IOBase?
◷
تاریخ انتشار: 1395/4/18 | ساعت: 6:27
Vote count: 0 Is there an existing test suite I can make use of to test an implementation of IOBase? If possible, I would like to exhaustively test a new implementation, but there are a lot of tests that would need to be manually written. For instance, say I have a non-seekable, non-writeable stream...
Enable JDBC in PostgreSQL for non programmer
◷
تاریخ انتشار: 1395/4/18 | ساعت: 6:27
Vote count: 0 I am looking for someone that can explain me in simple terms with written instructions how to create a JDBC in PostgreSQL (I am losing my mind with this). I found other answers in this page and others but I couldn't follow them. I am no programmer, so I didn't undertand any of the inst...
Passing Arguments to a Ruby Script Via Traveling Ruby
◷
تاریخ انتشار: 1395/4/18 | ساعت: 6:27
Vote count: 0 I'm trying to pass command line arguments into a Ruby script that's being called with Traveling Ruby and having trouble making it work. I'm just using their standard wrapper.sh file for scripts with gems: #!/bin/bash set -e # Figure out where this script is located. SELFDIR="`di ame "$...
Google Distance Matrix not getting distance
◷
تاریخ انتشار: 1395/4/18 | ساعت: 4:26
Vote count: 0 I have roughly tried to parse the JSON from Google's Distance matrix. But it is not showing the distance. My GPS location is not 0,0 That i'm sure of. String distance = getMatrix(latitude,longitude); My code for the function is: private String getMatrix(double lat , double lang){ JSONO...
Why is my program giving "Wrong Answer" for this program?
◷
تاریخ انتشار: 1395/4/18 | ساعت: 4:26
Vote count: 0 I was solving this question in Hackerrank and matched the result in my IDE. But then the answer is not being accepted by Hackerrank. My code is: for i in range(1,int(raw_input())): print (str(i)*i) Please help... Snapshot of the solution displayed by the Online judge asked 31 secs agoS...
Good and free alternatives to Plotly for 3D visualizations in Python/Pandas?
◷
تاریخ انتشار: 1395/4/18 | ساعت: 4:26
Vote count: 0 I'm looking for ways to make 3D scatter plots that are interactive, i.e., I'd like to be able to hover over points to view their coordinates. I also can't figure out how to have string axis labels in matplotlib. Thanks in advance for suggestions. asked 26 secs agoDJname Let's block ads...
Infinite While True Loop in the Background (Python)
◷
تاریخ انتشار: 1395/4/18 | ساعت: 3:07
Vote count: 0 basically, I have some code like this: while True: number = int(len(oilrigs)) * 49 number += money time.sleep(1) In front of this I have a start up screen. However because of this while true loop, it blocks it from ru ing the actual start up screen. Instead, it just displays this. aske...
Python: Making sure an answer is given?
◷
تاریخ انتشار: 1395/4/18 | ساعت: 3:07
Vote count: 0 I have been working on a project and one part of it is to have it personalised to the user. To achieve this I ask for the users name and phone. However, I want to make sure that the question has been answered and not skipped with pressing enter. name = input("nPlease enter your name: "...
.net inline tags not being interpreted for control in ascx
◷
تاریخ انتشار: 1395/4/18 | ساعت: 3:07
Vote count: 0 I have a created an ascx form that is loaded from a couple different pages. The end-goal is to change a couple urls (in the control's Text value) depending on which page has loaded the ascx form. form.ascx <asp:RadioButtonList ID="rdType" runat="server" RepeatColumns="1" RepeatLayout="...
python 3.5 : quit a if loop (or other loops)
◷
تاریخ انتشار: 1395/4/18 | ساعت: 1:55
Vote count: 0 When ru ing the program, the user is asked to input a number. If the number is 1, quit the program. If the number is not 1, print the number. I wonder how to realize this. I am using python 3.5. My code is like this. I always get an error: 'break' outside loop How can I fix this? x = i...
Elasticsearch indexing is very slow
◷
تاریخ انتشار: 1395/4/18 | ساعت: 1:55
Vote count: 0 I have a Titan database with Cassandra storage backend, and I am trying to create a mixed index based on two property keys. I am able to register the Index using following commands: graph=TitanFactory.open(config); graph.tx().rollback() m = graph.openManagement(); m.buildIndex("titleBo...
maven is changing package name to camel case
◷
تاریخ انتشار: 1395/4/18 | ساعت: 1:55
Vote count: 0 I am building my project using maven and I am facing this weird behavior where maven is renaming the package name to camel case when compiling/building the project. my source package is: c:my-datajavasrcmainjavacomsamplethisone my compiled class path is : c:my-datajavatargetclassescoms...
Phabricator Instalation Error
◷
تاریخ انتشار: 1395/4/18 | ساعت: 0:38
Vote count: 0 I am installing Phabricator on Ubuntu 16.04. I have PHP 7.0.8-3 installed. I am at the Setup section at https://secure.phabricator.com/book/phabricator/article/configuration_guide/ When I go to my site I am getting the error 1045: Access denied for user 'root'@'localhost' (using passwo...
Bizzare iOS Issue during restoration to iOS 9.3.2
◷
تاریخ انتشار: 1395/4/18 | ساعت: 0:38
Vote count: 0 I installed iOS 10 Beta 1 on my iPhone and then after Beta 2 rolled out I tried installing that but due to some error couldn't. Went back to iOS 9.3.2 end it corrupted half of data on my iPhone. It doesn't show lotta apps but still space is occupied. Attached is the screenshot. If anyo...
Effect of cache size on code
◷
تاریخ انتشار: 1395/4/18 | ساعت: 0:38
Vote count: 0 I want to study the effect of the cache size on code. For programs operating on large arrays, there can be a significant speed-up if the array fits in the cache. How can I meassure this? I tried to run this c program: #define ARRAYSIZE 200000 #define ITERATIONS 5000 int ray[ARRAYSIZE];...
Phoenix Channel sending messages from a client outside the project
◷
تاریخ انتشار: 1395/4/17 | ساعت: 23:16
Vote count: 0 I wanted to send a message to my user cha el of my Phoenix Application. I have joined a user_token with the cha el as users:user_token in the user_cha el.ex . I was successful doing it from another controller called the toy_controller by calling a broadcast method. The broadcast method...
How to use Comparator to sort an String array in Java?
◷
تاریخ انتشار: 1395/4/17 | ساعت: 23:16
Vote count: 0 I want sort an array of Strings using Comparator<T> ( I'm well aware of lambdas in Java 8 ) just wanted to test Comparator<T> for exercise and here is my code : package ehsan; import java.util.Arrays; import java.util.Comparator; public class Test { public static void main(String[] arg...
There are app requesting if any other app request internet?
◷
تاریخ انتشار: 1395/4/17 | ساعت: 23:16
Vote count: 0 I want to find app similar to function which was in old telephones. Everytime it make a popup like "XXX want to use inte et, allow?" and answers Yes and No. It's helpful for inte ational roaming, becouse i can allow only for specyfic processes and block inte et for auto updates. Or the...
Wanted To Make A Custom Domain Seach Script In My Domain
◷
تاریخ انتشار: 1395/4/17 | ساعت: 22:09
Vote count: 0 I am trying to make ip tracking system for my web and then inserting it into the sql. But my problem is that on a single click i am getting 2-4ip in my sql. Coding am using this currently. <?php include 'config.php'; $ip=$_SERVER['REMOTE_ADDR']; $referer=$_SERVER['HTTP_REFERER']; mysql...