CASCON Galaxy: E: Access to measure image is not allowed in parallel programs.. 

Just to feed google with Göepel CASCON error messages:
If you face this error even if
Go to advanced options -> Generate untick -> Test Execution/parallel


[ hozzászólás ] [ 0 trackbackek ] permalink ( 3 / 8 )
Cakephp 3.x CounterCache on the same model 

I have a model in a CakePHP app where I refer to the parents.
The tree behaviour seems to be an overkill for this purpose, but I needed the children's count for each random node. (For feeding this to a jstree widget through AJAX.)

My model was called ItemTypes and until I have not added the className => __CLASS__ to the belongsTo association the generated SQL query tried to refer to the parent_item_types which does not exists.


public function initialize(array $config)
{
parent::initialize($config);

$this->table('item_types';);
$this->displayField('name';);
$this->primaryKey('id';);

$this->addBehavior('Timestamp';);

$this->belongsTo('ParentItemTypes', [
'foreignKey' => 'parent_item_type_id',
'class' => 'ItemTypes',
'className' => __CLASS__
]);

$this->addBehavior(
'CounterCache',
[
'ParentItemTypes' => [
'child_item_type_count' => function ($event, $entity, $table) {
return $this->find('all', ['conditions' => ['ItemTypes.parent_item_type_id' => $entity->parent_item_type_id]])->count();
}
],
]
);
}


Many kudos to jose_zap!
[ hozzászólás ] [ 0 trackbackek ] permalink ( 2.9 / 30 )
[cygwin] error while loading shared libraries: ?: cannot open shared object file: No such file or directory 

When you are facing at this error message open up the dependecy walker from here:

http://www.dependencywalker.com/

and you will realize that some of your linked libraries dependencies are missing from your system.
[ hozzászólás ] [ 0 trackbackek ] permalink ( 2.9 / 47 )
Napi facepalm: OpenOCD telnet port 

Ha az OpenOCD egy +-t dob vissza és nem promptot a 3333-as portra telnetelve akkor a hiba nem az Ön készülékében van, hanem a JTAG prompt a 4444-es porton érhető el....
[ hozzászólás ] [ 0 trackbackek ] permalink ( 3.1 / 48 )
Retro: ASUS mimic CX200 JTAG hacking 

Back in my university years I have had some issues with an Asus MIMIC CX200 camera. One of them got broken after a firmware upgrade so I have decided to fix it with JTAG. I have successfully got to UrJTAG to read the IDCODE of the S3C4510B, but I was unable to detect the flash. Now I know that I have had to tweak the bus driver and reveng the board a bit.

Here are some pics (shot with my Nokia 6230 in VGA res) about the trick:


Thin albanian wires were soldered directly to the pins.


Live together cry together series 100 Ohm level shifter JTAG adapter to LPT port.


I have designed an addon board to expose the CPU's intresting interfaces (2 serial, USB, JTAG)



It is fun to look back to those pictures from now. After 5 years we got to a state when it is easier and cheaper to buy a Rpi to solve the same problem rather than fixing that board...
[ hozzászólás ] [ 0 trackbackek ] permalink kapcsolódó link ( 3.1 / 53 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Következő> >>

 
számláló