Questions tagged [inclusion]

89 questions
3
votes
5 answers

Impossible expected class-name before ‘{’ token error to solve

It's a well known issue this damn error expected class-name before ‘{’ token Well, despite my hard working and googling, I could not solve this error. Sorry. This is my last shore. In ui.cpp of a project of mine I do: #include…
Andry
  • 16,172
  • 27
  • 138
  • 246
2
votes
4 answers

Check if list element is a sub-element of those in another list with Python

Given the following data: a = ["onee", "two", "three"] b = ["one", "four"] I would like for some test such as the following: [True if x in a else False for x in b] To return [True, False] Instead of [False, False] So for each element in list…
baxx
  • 3,956
  • 6
  • 37
  • 75
2
votes
0 answers

Avoid remote website inclusion

I recently saw a few malicious domains including my website pages. I initially suspected of iframe inclusion, but I already had Header always set X-Frame-Options SAMEORIGIN configured in my httpd.conf. Other ideas were about malware Javascript…
Fabio B.
  • 9,138
  • 25
  • 105
  • 177
2
votes
1 answer

expose a private type for module extension in OCaml

I'd like to extend a module but I need access to its private components. Here's an example: nat.mli: type t val zero : t val succ : t -> t nat.ml: type t = int let zero = 0 let succ x = x + 1 I'd like to define a new module Ext_nat that defines a…
Nemo
  • 461
  • 4
  • 15
2
votes
1 answer

Pass context through multiple nested inclusion tags in Django

I'd like to pass the 'context' variable through multiple inclusion tags in Django like so: base.html: {% load extras %} {% table_of_contents course %} table-of-contents.html: {% load extras %}

Table of contents

{% for section in…
Sam
  • 1,952
  • 1
  • 18
  • 31
2
votes
2 answers

Ruby module inclusions and class variables

I am trying to understand module inclusions with class variables. I thought that including a module with class variables would also include the class variables into the class definition. This works as intended: module A @@my_name = "rick" def…
d0bz
  • 165
  • 9
2
votes
2 answers

local file inclusion exploit when including the language file

i have a php code for my website and a friend told me that my code has a local file inclusion vulnerability because im using the " include " method. can someone help me in fixing it or lead me to where i can find help? i tried a couple of possible…
Seven-up
  • 21
  • 3
2
votes
4 answers

C++: Inclusion inside inclusion

The title might not be very clear, it's a bit more complex than that. I searched the web for something like my problem but I did not find anything that could help me. This is not about infinite looping inclusions, I already put preprocessor…
deqyra
  • 734
  • 1
  • 7
  • 23
2
votes
2 answers

Check 2 sets for inclusion in Scala

abstract class FinSet[T] protected () { // given a set other, it returns true iff every element of this is an element of other def <=(other:FinSet[T]): Boolean = // ???? That is what I am given so far. I am somewhat confused on how to…
user2516663
  • 99
  • 1
  • 10
2
votes
0 answers

Error fatal error: CCApplication.h: No such file or directory

I am trying to create a new cocos2dx project in windows 7 64 bit cocos2dx version : cocos2d-2.1rc0-x-2.1.3 ADT Bundle : adt-bundle-windows-x86_64-20130514 NDK : android-ndk-r8e-windows-x86_64 Path variables: NDK_ROOT=c:\android\NDK; Path:…
meril
  • 462
  • 3
  • 13
1
vote
1 answer

including external jsp file inside velocity template

velocity templates works fine in developing web pages. But i would also like to include certain jsp pages inside my velocity template to include certain functionalities. But when i try, #include("xyz.jsp") it simply pastes the file in my template…
user1201605
  • 13
  • 1
  • 5
1
vote
1 answer

Trouble on `validates_inclusion_of` using radio buttons

I am using Ruby on Rails 3.0.7 and I have a problem on using the validates_inclusion_of method. I my model file I have: class User < ActiveRecord::Base INCLUSION_VALUES = ['beautiful', 'ugly', 'good', 'bad'] validates :test, :inclusion =>…
user502052
  • 14,803
  • 30
  • 109
  • 188
1
vote
2 answers

R Count Sequentially Columns

set.seed(0) data = data.frame(ID = 1:1000, X1=runif(1000), X2=runif(1000), DROP1=sample(0:1,r=T),DROP2=sample(0:1,r=T),DROP3=sample(0:1,r=T)) Say this is my data. I wish to do this: count the number of values of DROP1 that equals to 1; then…
bvowe
  • 3,004
  • 3
  • 16
  • 33
1
vote
0 answers

In mongo(ose) what projection field values are treated as inclusion?

For an inclusive projection {type: 1}, I could replace 1 with NaN, "", "string", -1, which all work as an inclusive projection. For an exclusive projection {type: 0}, I could replace 0 with false, null, undefined, which all work as an exclusive…
htc_m8
  • 2,985
  • 2
  • 12
  • 7
1
vote
0 answers

What is the best R implementation to compute lexical inheritance in pairwise comparisons of Wikipedia articles from their titles?

Suppose that I have a list of titles of Wikipedia articles and I would like to measure lexical inheritance between the articles. title <- c("virus", "coronavirus", "Coronaviridae", "pandemic", "2019–20_coronavirus_pandemic", …