Vote count: 0 As show in the following code, what is the difference between CVMX_FAU_REG_64_START and CVMX_FAU_REG_64_END in the cvmx_fau_reg_64_t? `#define CVMX_FAU_REG_64_ADDR(x) ((x...
ادامه مطلبVote count: 0 I've got the below controller with two scope variables and only one passes through to my directive? .controller('newsController', ['$scope', 'gasPrices', function($scope, gasPrices) { gasPrices.success(function(data) { $scope.gasFeed = data.series[0]; }); $scope.myData02 = [2.095,2.079,2.036,1.988,1.882,1.817,1.767,1.747]; }]) ; I've got a directive that accepts one scope but not the other? This works This doesn't Do you know why? asked 2 mins agoTed Let's block ads!...
ادامه مطلبVote count: 0 I am using Elasticsearch to store and query logs. I am creating a front end UI that will display the queried information from Elasticsearch to a webpage using AngularJs. The webpage is ruing on CentOS 6 Apache HTTPD on port 80. Elasticsearch is ruing on port 9200. When I query Elasticsearch using AngularJs I am getting the following error: XMLHttpRequest caot load http://my_ip/ali_viewer/log/_search. Request header field content-type is not allowed by Access-Control-Allow-Headers i...
ادامه مطلبVote count: -1 The C++17 (or the one after) is likely to come with ranges. How is the range concept defined? What functionalities should a range provide to follow the range concept? Is there a hierachy of ranges as there is a hierarchy of iterators? Why the standard algorithm versions with iterators will stay around even after the introduction of ranges? What iterators can do that ranges can't? asked 2 mins agoVincent Let's block ads!...
ادامه مطلبVote count: 0 I've been working on this code that's supposed to do this according to the book: Write a script that creates and calls a stored procedure named test. This stored procedure should create a cursor for a result set that consists of the product_name and list_price columns for each product with a list price that’s greater than $700. The rows in this result set should be sorted in descending sequence by list price. Then, the procedure should display a string variable that includes the pr...
ادامه مطلبVote count: 0 While experimenting with the meta viewport tag I noticed that any value less than 0.25 for initial-scale is treated as 0.25. E.g. all of the following render the page same. So, Is the minimum allowed vale of "initial-scale" in meta viewport tag 0.25? What is the default value of initial-scale? Why don't initial scale take it's default value, instead of taking 0.25, when blank space is given to initial scale as initial-scale=? asked 1 min agouser31782 Let's block ads!...
ادامه مطلبVote count: 0 Im trying to create a Ti.Healthkit.StatisticsCollection where I can fetch number of steps taken, grouped per day. The thing is that I also need all sources, so I can filter ("manually") all steps added through Apple Health (manually) and other sources than the device and apple watch. So; I've set up the Statistics query, everything looks fine. I can fetch all sources for each date. BUT, here's the thing, I can't no matter what, get the number of steps taken, per source. var query =...
ادامه مطلبVote count: 0 I am trying to configure out, what is a group leader and how it is related with I/O module, but could not find anything useful in inteet. Can please someone explain me? I have following scenario from elixir 1.2 book(Dave Thomas): On the second window, why does he pass :erlang_group_leader? For what it is good for? asked 4 mins agozero_coding Let's block ads!...
ادامه مطلبVote count: 211 What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? edited Aug 26 '14 at 22:59Robert Harvey♦ asked Oct 20 '08 at 13:18Ziggy 12 Answers Vote count: 858 accepted When you declare a reference variable (i.e. an object) you are really creating a pointer to an object. Consider the following code where you declare a v...
ادامه مطلبVote count: 0 I'm just leaing JavaScript and I've wondered why this has to be done this way. asked 1 min agoEyasu Felleke Let's block ads!...
ادامه مطلبVote count: 0 So I have been trying to add an icon to an app indicator menu with no success. And I've been using GtkMenu. But then I found some code that referenced GMenu and used g_menu_set_icon to display an icon next to the menu label. What is the difference between these two sets of menu's. Should one be used in favour of the other. GMenu appears to be more full featured. But if I'm supposed to use GtkMenu how would I display an icon? I have tried this which didn't work. It showed the label ...
ادامه مطلبVote count: 0 I know that UX design addresses how a user reacts to , remembers and re-uses a system. User experience is the goal , not just of an interface , but of a product or interaction within an organisation. This differs from UI design because it only focuses of the actual elements that interact with the user. What are the objectives of UX design and what other design related disciplines are there? asked 2 mins agouser8010 Let's block ads!...
ادامه مطلبVote count: 0 I have a function which I've written for passing context around in for node js written using lispyscript, it does what I want. The actual implementation of this function is not an issue, this is a vocabulary question. Does a function with this type signature have a name? (defun closeOverDir (dir) (defun closure (fn) (lambda () (fn dir ...arguments)))) asked 1 min agoriatzukiza Let's block ads!...
ادامه مطلبVote count: 0 Hi I got a code like this below and could you tell me in which file extensions i should write it and can I just copy & paste it or write it a little bit other POST /api/dashboards/db HTTP/1.1 Accept: application/json Content-Type: application/json Authorization: Bearer eyJrIjoiT0tTcG1pUlY2VKZTFVaDFsNFZXdE9ZWmNrMkZYbk { "dashboard": { "id": null, "title": "Production Overview", "tags": [ "templated" ], "timezone": "browser", "rows": [ { } ], "schemaVersion": 6, "version": 0 }, "over...
ادامه مطلبVote count: 0 If I get purchaseToken from INAPP_PURCHASE_DATA bundle, what exactly should I do for INAPP_DATA_SIGNATURE? I can use purchaseToken to verify the purchase status using Google API, right? asked 1 min agoabdfahim Let's block ads!...
ادامه مطلبVote count: 0 help please help, I do not understand the reason. Throws an error ReferenceError: Velocity is not defined. If I use $ (function () {}; then the error disappears, but then simply do not work. Use hammer 2.0.4 and velocity 1.2.3 const THRESH = 0.75; const TIMING = 250; document.addEventListener('DOMContentLoaded', f => { var lis = document.querySelectorAll('.swipe-list'); for (let i = 0; i < lis.length; i++) { let hammertime = new Hammer(lis[i]); hammertime.on('panright', e => handle...
ادامه مطلبVote count: 0 I've just started leaing Java, and am struggling to understand the (seemingly uecessary) point of getters and setters. I'm following a tutorial on Codecademy, and it has asked me to create the method getAge(). What is the point in creating a method to get the age, when I could just run the line I wrote and commented out below? class Dog { int age; public Dog(int dogsAge) { age = dogsAge; } public void bark() { System.out.println("Woof!"); } public void run(int feet){ System.out.pri...
ادامه مطلبVote count: 0 If I start a transaction with isolation level "read uncommitted" in SQL Server, then I read and update a particular row, is that row then locked by virtue of being part of a transaction? If another transaction (also with read uncommitted) tries to read and update that row, will it be blocked as long as the first transaction has not yet completed? asked 50 secs agoTriynko Let's block ads!...
ادامه مطلبVote count: 0 I am new to Servlets. I am going through the basics and i discovered that even i put the name of different servlest in these tags then also it works fine. I want to know that what's the importance of presence of web.xml in a servlet project and how does it controls the execution of servlets ? asked 1 min agoa874 1 Answer Vote count: 0 For a Java servlet to be accessible from a browser, you must tell the servlet container what servlets to deploy, and what URL's to map the servlets t...
ادامه مطلبVote count: 0 I am trying to setup a cluster to solve data analyze issue. I`m considering to use ElasticSearch. The data structure is like below gender school age name ... score male dlut 18 dav 100 male pkut 20 tom 80 The total number of rows are around 20 billion. I want to run some query like : SELECT school, avg(score) FROM table GROUP BY school ORDER BY avg(score) LIMIT 5 To get some top 5 records after some group by and aggregation from billions of records. ES said that some company is bui...
ادامه مطلب