How to create Multi Type Charts with pptxgenjs - pptxgenjs

I am using PptGenJs (https://gitbrent.github.io/PptxGenJS/docs/api-charts/) to create a Multi Type Chart (a bar and a line in the same chart) in my Angular application. I am testing the demo code from the PptGenJs-Github-Repo, which you can find it here: https://github.com/gitbrent/PptxGenJS/blob/master/demos/modules/demo_chart.mjs#L1715
I am surprised to find that it doesn't work in my case. I have PptGenJs Version of 3.10.0 and Angular Version of 13.2.0.
The problems are:
charts are not found in "type: pptx.charts.BAR". Instead, I have to change it to "type: pptx.ChartType.bar"
the method of "slide.addChart(chartTypes, opts)" shows error. It seems that the parameter of "data" is missing according to its documentation:
addChart(type: CHART_NAME | IChartMulti[], data: any[], options?: IChartOpts): Slide
I must have done something wrong, but have no idea. Could anyone help me? Many thanks.
regards,
CC

Related

Unknown variable floor_tex on Gamemaker 8.1. How to fix it?

I have a very trouble with Gamemaker 8.1.
So recently, I've followed this video tutorial which shows creating a game 3D on its game engine.
https://www.youtube.com/watch?v=0Jo0JEEukhc
I tried to test my game, but an error message shows
this.
What caused that error? Here is the code so I hope you can fix it as well.
direction -= (display_mouse_get_x() -(display_get_width()/2))/5
zto -= (display_mouse_get_y() -(display_get_height()/2))/2
display_mouse_set(display_get_width()/2,display_get_height()/2)
xto = lengthdir_x(100,direction)+x
yto = lengthdir_y(100,direction)+y
d3d_set_projection(x,y,z,xto,yto,zto,0,0,1)
draw_set_color(c_white)
d3d_draw_floor(0,0,0,room_width,room_height,0,background_get_texture(floor_tex),room_width/128,room_height/128)
d3d_draw_floor(0,0,100,room_width,room_height,100,background_get_texture(root_tex),room_width/128,room_height/128)
Also, the version of Gamemaker is 8.1.141 (r11549)
Thanks
Cheers
-Sajad Sadiq Abd Amhamad
In the video, the author creates two Background resources around 0:25, called floor_tex and roof_tex (mistyped as root_tex in your code). You'd want to either name your resources accordingly or adjust your code to match the names in your project.

Adobe AEM Querybuilder Debugger - Multiple Paths and Multiple Nodenames

I am using querybuilder debugger and want to do a search where "nodename=.pdf OR nodename=.doc*" and "path=/content/dam/1 OR path=/content/dam/2".
I have been trying to find an example but no luck on the web. What I have below is not quite right - just wondering what I am missing.
The query does work but there is a huge difference in the amount of time that it runs when compared with when I just query using one nodename instead of 2.
Thanks in advance,
Jerry
type=dam:asset
mainasset=true
1_group.p.or=true
1_group.1.nodename=*.pdf
1_group.2.nodename=*.doc*
2_group.p.or=true
2_group.1_path=/content/dam/1
2_group.2_path=/content/dam/2
p.limit=-1
orderby=path
I thought maybe something as simple as this might work but no luck....
type=dam:asset
mainasset=true
group.p.or=true
group.1_nodename=*.doc*
group.1_path=/content/dam/1
group.2_nodename=*.doc*
group.2_path=/content/dam/2
group.3_nodename=*.pdf
group.3_path=/content/dam/1
group.4_nodename=*.pdf
group.4_path=/content/dam/2
p.limit=-1
orderby=path
Try splitting your query if this won't affect the behaviour you're trying to achieve.
path=/content/dam/1
type=dam:asset
mainasset=true
group.1.nodename=*.pdf
group.2.nodename=*.doc*
p.limit=-1
orderby=path
path=/content/dam/2
type=dam:asset
mainasset=true
group.1.nodename=*.pdf
group.2.nodename=*.doc*
p.limit=-1
orderby=path

getting the PDG graph

I'm developing a plugin in Frama-C and I want to get the Pdg graph from the C program.
I tried the Db.Pdg.get which takes "kernel_function" type while I have a "funcdec" type. I didn't know how I fix that.
Any help?
You can use Globals.Functions.get fdec.Cil_types.svar to convert a fundec fdec into a kernel_function. Calling Db.Pdg.get is then the right way to go.

How to setCenter using Just co-ordinates

Hi I've tried this a couple of ways and I'm not sure what I'm missing. The documentation here https://developers.google.com/maps/documentation/javascript/reference states that I should be able to set the center of my Map using the coordinates like this:
setCenter(latlng:LatLng)
which I am guessing means I can use the syntax:
myMap.setCenter(-37.8025182,144.9987055);
but I get the error "Uncaught Error: Invalid value for property : -37.8025182 "
Is there something I'm missing - the documentation doesn't really give me any clues.
Regards,
Lea.
The documentation says the single argument for setCenter is a LatLng. setCenter doesn't take two Numbers.
var centerpoint = new google.maps.LatLng(-37.8025182,144.9987055);
myMap.setCenter(centerpoint);
or combine everything together:
myMap.setCenter(new google.maps.LatLng(-37.8025182,144.9987055));

IDA assembly patching fails with "cannot reach destination from current location"

I'm a newbie in IDA (and reverse engineering).
I'm trying to use the "patch->assembly" option in the edit->patch menu, but it fails with an error I cannot understand.
My current line is "jnz short func" (where func is a label I renamed from loc_xxxx), and I am trying to change it to "jmp short func", but when I click OK I get a message box with the message: "cannot reach destination from current location".
Can anyone explain What does that mean and why doesn't it work? I tried to search all over and I can't find any answer!
I must also add that I'm doing this as part of an IDA tutorial I found (in tut4you.com).
Thanks again for your help, I'm really stuck with that!
"jnz short func" and "jmp short func" instructions doesn't have the same number of bytes..Try to keep code alignment with the original code..
Also jnz, jz, ja,..(conditional jumps) don't work with far pointers (i.e. intersegment).. but only jmp..

Resources