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
0
votes
2 answers

CodeIgniter Parent Declare

How can I say this code below in my parent::_construct, then call it into individual child function? /*bootstrap classes*/ $pag_config ['full_tag_open'] = "
    " ; $pag_config ['full_tag_close'] ="
" ; …
Mauliardiwinoto
  • 107
  • 2
  • 10
0
votes
1 answer

Loading construct library causes error - no viable alternative

When I try to load the construct library v 2.5.4, in python 2.5.4 it is causing this error. Any idea how to resolve? Is there something I can adapt/edit in the library to fix this SyntaxError: ('no viable alternative at input \'""\'',…
Ke.
  • 2,484
  • 8
  • 40
  • 78
0
votes
1 answer

extended __construct not working

I have for example CategoriesController.php like this below class CategoriesController { /** * Translator object. * * @var Translator $translator */ private $translator; /** * Template engine. * * @var EngineInterface $templating */ private…
0
votes
2 answers

Constructing MObject from existing object name in Maya scene

How can I construct an MObject with Maya API having access to only the existing object name in the scene?
Yasin
  • 609
  • 1
  • 10
  • 22
0
votes
3 answers

use function __construct() for static functions?

I wanna to use this way but i have a problem , function __construct() dosn't work ? Why ? class user{ function __construct(){ define('HI', 'hello'); } static function say_hi(){ echo HI ; } } user::say_hi();// Out put should be :…
A.kapoor
  • 33
  • 4
0
votes
1 answer

BIND in CONSTRUCT query with sub-SELECT (SPARQL)

Related to another question (see: SPARQL functions in CONSTRUCT/WHERE) where the answer leads to having a SPARQL CONSTRUCT query with a aggregate SELECT inside, I now would like to know how to use BIND in this construct. My current query looks like…
beta
  • 5,324
  • 15
  • 57
  • 99
0
votes
2 answers

java construct method overload with multi match

Refer to the code below: public class ExpandableTextView extends TextView { public ExpandableTextView(Context context) { this(context, null, null); } public ExpandableTextView(Context context, AttributeSet attrs) { …
Derek Zhu
  • 173
  • 2
  • 11
0
votes
1 answer

How to construct arguement for GetWindowText in Masm32 assembly language?

Please bare with my knowledge I am new to assembly language. I have a code here that add the value of the two textbox and display the result on the third one when I hit the button. I tried to construct argument using the GetWindowText command but it…
0
votes
1 answer

C++ construct issue

I have some problems with following code: class Osoba { std::string imie; std::string nazwisko; std::string pesel; public: Osoba(const std::string & im, const std::string & na, const std::string & pe); …
Marianx
  • 31
  • 5
0
votes
2 answers

How to set 401 status when user is not logged in?

When i make a request from ajax in response i need to send 401 (Not Authorized) status when user is not logged in. I am using OOP Concepts with MVC Framework. So my construct function is following function __construct() { …
ajaykumartak
  • 776
  • 9
  • 29
0
votes
1 answer

when does the parallel region stop and which construct can share the same parallel region?

Much troubled by these two questions when implementing my openMP programs Q1: when does the parallel region and different construct stop? OpenMP seems to promote using {} as the separator between construct or parallel regions, it can sometimes get…
sthbuilder
  • 561
  • 1
  • 7
  • 22
0
votes
1 answer

Why does my Intel XDK Crosswalk for Android-exported app not open?

After using Intel XDK 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: enter link description here
0
votes
0 answers

How to construct objects from files in a directory PHP

I am writing a script to take care of my database migrations. I don't like using phinx, it doesn't allow for easy migrations for multiple databases. My migrations are in directory migrations/ I have read this question, and used it. PHP script to…
Yoker
  • 500
  • 4
  • 20
0
votes
1 answer

PHP OOP UNSET object from class in __construct

I have some classes from which I create objects. In the __construct function I check the properties. If they do not match I would like to delete the created object. $example = new example('Value 1', 2, false); foreach (get_object_vars($this) as…
Webice
  • 592
  • 4
  • 15
0
votes
2 answers

How do I get multiple returns from a for...in loop inside of a method?

I'm learning javascript and I decided to try out working with methods, constructors and the this keyword. I made a method for finding cars based on certain words that match words inside of property values. If it turns out that a word matches a…