Questions tagged [construct]

Construct is a powerful declarative parser for binary data.

It is based on the concept of defining data structures in a declarative manner, rather than procedural code: Simple constructs can be combined hierarchically to form increasingly complex data structures. It's the first library that makes parsing fun, instead of the usual headache it is today. Official documentation: https://construct.readthedocs.io

239 questions
1
vote
0 answers

PHP require_once is not working

I am trying to make an interactive php website using MVC framework and on a MAMP server, I am at the first steps of this. I am using the following code to access a different page which has a __construct() function to echo some text... but the…
1
vote
3 answers

Is it cheap to construct a const std::string from a const char* + length?

How expensive is it to execute const std::string s(my_const_char_ptr, my_length); ? Is there copying involved? If not, how many instructions can I expect from typical standard library implementations? Few enough to have this in performance-critical…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
1 answer

Sparql query to construct a new graph

I have two graphs with similar data but a slight difference. my goal is to merge them using SPARQL and perform the integration. I want a final output of two RDF graphs that has a slight difference in a single RDF graph using SPARQL. example one…
Omar Rana
  • 75
  • 10
1
vote
1 answer

Does Haskell has the concept "construct" like C and ML language?

This wiki page: https://wiki.haskell.org/Referential_transparency talks about "C and ML are languages with constructs that are not referentially transparent." My question is, what is "Constructs"? Is it an abstract concept? Thanks.
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
1
vote
1 answer

how can i use __construct in conjuction with controller in laravel

I have built laravel applications in Laravel 4 and Laravel 5, but I decided this time to write all my tests first, having never previously written tests at all for trivial apps. Here is my Account class - for illustration class Account extends…
dstewart101
  • 1,084
  • 1
  • 16
  • 38
1
vote
2 answers

C#: How to construct a derived class from an existing base class object?

Consider this, please: class MyTreeNode: TreeNode{ int x; public MyTreeNode(TreeNode tn) { x=1; // Now what to do here with 'tn'??? } I know how to use x. But how should I use tn here to assign it to my MyTreeNode object?
dghadagh
  • 103
  • 1
  • 15
1
vote
1 answer

Notice: Trying to get property of non-object

I am getting this error: ( ! ) Notice: Trying to get property of non-object in C:\wamp\www\admin\paginator\Paginator.class.php on line 18. index page:
1
vote
1 answer

How to remove Phonegap Build Permission alert in iOS?

I'm using Phonegap Build to compile a game I made using Construct 2. Now when I install the game on my iphone a geolocation permission alerts pops up, although my game doesn't use geolocation. I think phonegap somehow inserts geolocation code into…
gleegum
  • 15
  • 1
  • 4
1
vote
1 answer
1
vote
1 answer

WordPress add_filter( 'body_class' ) in __construct not working

It maybe that the filter is firing too late for this to work, but this is what I have, and it isn't working. class someClass() { public function __construct() { add_filter( 'body_class', array( 'someClass', 'body_class_filter') ); …
atomicadam
  • 143
  • 12
1
vote
1 answer

Why does Intel XDK not start?

After installing Intel XDK as a means to export my created Construct 2 game (CAPX) to Crosswalk for Android (APK), it seemed that it won't even open. This is the error message I get: The Intel XDK cannot run with your system configuration. Your…
1
vote
1 answer

Audio is not being played when I convert the html5 game to Android using PhoneGap Cloud Build service

I had purchased an HTML5 game named BattleBattle from envato market. It is working fine in my pc when I publish it using IIS. I tried to convert this game to android apk file using PhoneGap Cloud Build service. The apk file is being generated and I…
user2905894
1
vote
1 answer

How to use CONSTRUCT / WHERE in a SPARQL SPIN rule declaration

Summary Thank you in advance for helping me write a CONSTRUCT/WHERE statement that can be declared as a SPIN Rule in TopBraid Composer Free Edition and used. I am trying to embed a SPARQL CONSTRUCT/WHERE statement in a spin:rule declaration and then…
1
vote
3 answers

php constructor not working

I'm very new to php constructors I know of from java. But for some reason, this one is not running. I am following a tutorial and I can't seem to get a 1 only a 0. Here are the two scripts involved:
Parsalin
  • 13
  • 4
1
vote
0 answers

html5 game engine, cocos2d vs construct2

Just a beginners question, I am looking into html5 game engine for mobile devices, possible integration with Phonegap. mainly targeting iphone5 and iOS 7, I see that cocos2d is 2d only, but the question is construct2 vs cocos2d-html. if only…
user2412555
  • 1,055
  • 1
  • 16
  • 32