virtual base classes in c++
ive written short piece of code... but it didnt worked. i must write this code down somewhere. im almost sure that next time i will have to deal with virtual inheritance in c++ i will make this mistake once again. lets take a look at this few lines of code :
class A { ... } class B : public virtual A { B( void ) : A( void ){ ... } } class C : public B { C( void ) : B(void ){ ... } }what is wrong ? ive asked myself
well... C class constructor should also invoke direct call to class A constructor. bleh... thats easy, isnt that... not for me hehe
swf format - note 1 (swf tags)
SWF in open format used by Flash.
swf file format documentation can be freely downloaded from adobe homepage. below ive listed all tags that can be used in swf file.
tag value
0 end
1 ShowFrame
2 DefineShape
3 -
4 PlaceObject
5 RemoveObject
6 DefineBits
7 DefineButton
8 JPEGTables
9 SetBackgroundColor
10 DefineFont
11 DefineText
12 DoAction
13 DefineFontInfo
14 DefineSound
15 StartSound
16 -
17 DefineButtonSound
18 SoundStreamHead
19 SoundStreamBlock
20 DefineBitsLossless
21 DefineBitsJPEG2
22 DefineShape2
23 DefineButtonCxform
24 Protect
25 -
26 PlaceObject2
27 -
28 RemnoveObject2
29 -
30 -
31 -
32 DefineShape3
33 DefineText2
34 DefineButton2
35 DefineBitsJPEG3
36 DefineBitsLossless2
37 DefineEditText
38 -
39 DefineSprite
40 -
41 -
42 -
43 FrameLabel
44 -
45 SoundStreamHead2
46 DefineMorphShape
47 -
48 DefineFont2
49 -
50 -
51 -
52 -
53 -
54 -
55 -
56 ExportAssets
57 ImoprtAssets
58 EnableDebugger
59 DoInitAction
60 DefineVideoStream
61 VideoStream
62 DefineFontInfo2
63 -
64 EnableDebugger2
65 ScriptLimits
66 SetTabIndex
skull fractal & XaoS
recently ive been developing my port of XaoS fractal zoomer with skull fractal added to it. but... direct usage of skull fractal formula had given me quite poor effect, XaoS turned to be verrrry slow. and that was unacceptable ! to make it fast again i had to play with mathematics to get equivalent but faster to calculate skull fractal formula. ive started with skull fractal formula



Determinant
determinant is the function that associates a scalar value det(A) to the square nxn matrix A.in computer computations it can be easily computated using LU matrix decomposition. but, ive made "quick and dirty" implementation of matrix determinant definition, just to see how it works. just to refresh memory, determinant of square nxn matrix A can be expressed using determinant expansion by minors :


matrix size : 2x2 matrices count : 3
matrix size : 3x3 matrices count : 10
matrix size : 4x4 matrices count : 41
matrix size : 5x5 matrices count : 206
.
matrix size : 8x8 matrices count : 69281
.
matrix size : 10x10 matrices count : 6235301
matrix size : 11x11 matrices count : 68588312
code of my "quick and dirty" can be taken from here : det.c
previous (newer) , 1 , ... , 3 , 4 , 5 , 6 , 7 , ... , 9 , next (older)