Can IRIS do the negation reasoning such as
◷
تاریخ انتشار: 1395/1/31 | ساعت: 8:38
Vote count: 0 IRIS is a reasoning tool (http://iris-reasoner.org/demo) I can run a simple demo, for example: q('a'). p(?X) :- q(?X). ?-p(?X). I can get the p('a') as a result. but if I know p(?X) :- q(?X). Then I want to get the ¬q(?X) :- ¬p(?X). How can I realize this? asked 2 mins agoliteng Let's ...
Typescript, NodeJS, ES6 - findIndex on array
◷
تاریخ انتشار: 1395/1/31 | ساعت: 8:38
Vote count: 0 So i have an issue with using findIndex ES6 function on an array in typescript and NodeJS. The error message i'm getting is: requestType.findIndex is not a function this is my code: let weatherStates:Array<string> = ['current', 'forecast']; let requestType:string = 'current'; requestTy...
return borrowed or ownership in rust
◷
تاریخ انتشار: 1395/1/31 | ساعت: 7:34
Vote count: 1 I am going to demonstrate a small piece of code:in Cargo.toml: [dependencies] num = "0.1.32" in main.rs: exte crate num; use num::bigint::{BigInt, ToBigInt}; fn cal(a: BigInt, b: BigInt, floor: &BigInt) -> BigInt { let c : BigInt = a- b ; if c .ge( floor ) { c } else { floor.clone() } ...
Javascript + Twitter-boostrap - Why is autoclose not working on this javascript?
◷
تاریخ انتشار: 1395/1/31 | ساعت: 7:34
Vote count: 0 $().ready(function () { $('#datepicker0').datepicker({ autoclose: true, language: "pt-BR", format: 'dd-mm-yyyy' }); }); On a page I got this datepicker javascript function. But when selecting a date, the autoclose isn't working. What's wrong here? asked 1 min agogtludwig Let's block ad...
iOS text field not moving back down
◷
تاریخ انتشار: 1395/1/31 | ساعت: 7:34
Vote count: 0 So I have a screen with 2 text fields. When they are being edited, I want the keyboard to sit unde eath the textfield and scroll up when the next field is selected. I also wanted to hide the keyboard if the view was tapped. I had this working a couple of weeks ago using the following c...
Nodejs variable prints on console but not on the view
◷
تاریخ انتشار: 1395/1/31 | ساعت: 5:33
Vote count: 0 the code is this module.exports = { index: function (req, res, next) { //get an array of all users in user collection Notification.find(function foundNotification(err, notifications) { if (err) retu next(err); var elusuario=[]; User.findOne(2, function foundUser (err, user) { if (err) ...
Default template parameter syntax
◷
تاریخ انتشار: 1395/1/31 | ساعت: 5:33
Vote count: 0 my question may look strange for many of you and I am really sorry for that. As I can remember, I managed few years ago to define a class with a default template parameter such that the syntax Foo<> f; can be replaced by Foo f; However, I ca ot remember how I did that. I thought Foo cl...
Where can I find the Codec Y16
◷
تاریخ انتشار: 1395/1/31 | ساعت: 5:33
Vote count: 0 I am ru ing a code and I am receiving an error, which is in regard to viewing a 16 bit .avi file. I have been searching the inte et for this codec, can someone help me find the codec Error using VideoReader/init (line 619) The file requires the following codec(s) to be installed on you...
Copy Products From 1 Category to another
◷
تاریخ انتشار: 1395/1/31 | ساعت: 4:23
Vote count: 0 I'm trying to all products from 1 category into another in Magento? Has anyone been able to do this using a script? We have over 6000 products and doing it 1 by 1 or through the import seems to be causing me an issue... haha I've tried this script but it doesn't want to work, we're ru ...
illegal start of expression error of /b
◷
تاریخ انتشار: 1395/1/31 | ساعت: 4:23
Vote count: -1 I'm getting errors that this has an illegal start of expression.Any help with what I'm missing here? import java.util.*; class Point { int x; int y; public Point(int xref, int yref) { x = xref; y = yref; } public int quardrant() { if ((x>0)&&(y>0)) retu 1; else if ((x>0)&&(y<< /b >0))...
Phaser - Prevent function spam?
◷
تاریخ انتشار: 1395/1/31 | ساعت: 4:23
Vote count: 0 In Phaser I have a key event, which runs a function when a key is pressed, in the update function. However this update function is ran multiple times a second, making the function I have set up be run too. I need a way to prevent the function from being spammed, so that it can only be ...
two phrases in the same line but different position - Itextsharp
◷
تاریخ انتشار: 1395/1/31 | ساعت: 2:41
Vote count: 0 I am new in the generating invoice using ItextSharp in C# . How can I generate the following layout attached herewith , using Itextsharp. In the format Customer name 'Test Customer 1' and Customer Code 'Test1' are in the same line. Please help me how to add the text in Paragraph in the...
SQL reduce work done in SELECT when only one row is needed for each foreign key
◷
تاریخ انتشار: 1395/1/31 | ساعت: 2:41
Vote count: 0 Below is an example of the data I have where ID is a foreign key in another table (this table is called test). +------+------+ | id | data | +------+------+ | 1 | 100 | | 1 | 110 | | 1 | 105 | | 2 | 105 | | 2 | 150 | | 2 | 120 | | 2 | 320 | | 3 | 300 | | 3 | 400 | | 3 | 500 | +------+-...
Android BLE characteristic.getProperties returns an 'unknown' property'
◷
تاریخ انتشار: 1395/1/31 | ساعت: 2:41
Vote count: 0 I am trying to work with Android BLE. The Bluetooth thermometer I'm working work uses a Custom Characteristic to 'Notify' of temp measurements. I am receiving the notifications via onCharacteristicChanged. I can't, however, decifer what is coming through. That's when I looked at the pr...
Scala: passing a array/list to a function with * in the signature
◷
تاریخ انتشار: 1395/1/31 | ساعت: 1:38
Vote count: 0 Here is an example. I know you can pass any number of arguments to the following function, e.g. fun(a: Int) or fun(a: Int, b: Int, c: Int), etc. def fun(a: Int*) { ... } How would you pass val a: List[Int] to the this function? (or can you do it? ) asked 1 min agoDaniel Let's block ads...
Loop through properties vb.net
◷
تاریخ انتشار: 1395/1/31 | ساعت: 1:38
Vote count: 0 Evening All, I am extracting data from a API which exposes records as properties of the class so an example would be For Each entry As Webservice.Names In objResponse.results string = string & "'firstname'=" & entry.firstname string = string & "'su ame'=" & entry.su ame next now we hav...
How to store data from html form in variable?
◷
تاریخ انتشار: 1395/1/31 | ساعت: 1:38
Vote count: 0 Basically there is a google like search bar, once they submit, I need to store it in a variable. There is more to the jQuery than below, but all it is is document.ready. The reason I need the data in a variable is because after that, I will use $.post and send it to my api. the jQuery:...
Convert GCC's __builtin_ia32_pshufd and __v4si mode to portable intrinsic?
◷
تاریخ انتشار: 1395/1/31 | ساعت: 0:34
Vote count: 0 I have a program filled with custom macros and GCC intrinsics like __builtin_ia32_pshufd. I'd like to convert it to Intel intrinsics for portabiltiy and eventual Windows support. I preprocessed the source file, including the -fno-builtin option, but I seem to be getting some builtins. ...
Stripping HTML tags from podcast feed using XSLT
◷
تاریخ انتشار: 1395/1/31 | ساعت: 0:34
Vote count: 0 I'm having a little issue with some XLST stripping out HTML tags in a podcast feed. Can anyone suggest a way of doing this so that the field retu s plain text data? Here is my XSLT <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XS...
Vaadin numeric field?
◷
تاریخ انتشار: 1395/1/31 | ساعت: 0:34
Vote count: 0 Is there a DoubleField or LongField Vaadin 7? I see a TextField and PasswordField, so it sort of shocked me when I did not see fields for numeric types. This seems so standard, especially since GWT has such fields under the hood, that I feel like I am missing something. Also, there are...