FPDF error: Cannot open - fpdf

I am using the code on this page
and calling this WaterMark::applyAndSpit($fileWithFullPath);. The full error is
Warning: Missing argument 2 for WaterMark::applyAndSpit(), called in C:\wamp\www\pdf\pdfgen.php on line 89 and defined in C:\wamp\www\pdf\pdfgen.php on line 20
FPDF error: Cannot open
line 20 is seen on the code on that original page linked above.
thanks

In the linked-to code, the function applyAndSpit takes two arguments, and apparently you are only supplying one.

Related

How do I read mongodb shell errors?

This error doesn't seem to correspond to the data in my editor:
SyntaxError: expected property name, got '{' :
#(shell):25:24
When I read this I read it as # row 25 and maybe character 24.
But that doesn't match what's in my editor.
What am I missing?
With previous errors like this, I've found the problem could be anywhere within 5 to 10 rows of what I'm thinking is the row number.
It's clearly not, at least not as it's written in my editor.
How do I interpret the above so I can find the problem?

Import error in MATLAB

I'm brand new to MATLAB and am having trouble importing a module called sigTOOL. My code:
>> path('/space/jazz/1/users/gwarner/sigTOOL/program')
>> sigTOOL
returns:
Undefined function 'fileparts' for input arguments of type 'char'.
Error in sigTOOL (line 72)
parentdirectory=fileparts(which('sigTOOL'));
The weirdest part is that I've actually been able to open this successfully before. I used the same code and haven't edited the sigTOOL directory or changed it's path since. Any ideas?
Your usage of path is wiping out MATLAB's default search path.
If you change the first line to
path(path,'/space/jazz/1/users/gwarner/sigTOOL/program')
the path will be added to the bottom of the search stack. You can add the directory to the top of the stack by using addpath:
addpath('/space/jazz/1/users/gwarner/sigTOOL/program')

EEG Emotiv - Matlab

Im trying to run the eeglogger or the emotiv Toolbox to record some samples of the EEG Emotiv, but it always show some errors:
Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok
and If I follow some instructions of forums I can get this:
Warning:
'EE_COGNITIV}EE_EmotivSuite_t;typedefenumEE_ExpressivAlgo_enum{EXP_NEUTRAL=0x0001'
exceeds MATLAB's maximum name length of 63 characters and has been
truncated to
'EE_COGNITIV}EE_EmotivSuite_t;typedefenumEE_ExpressivAlgo_enum{E'.
In edk_proto at 11 In loadlibrary at 379 In eeglogger at 84 Error loading library intermediate output follows. The actual error is
at the end of this output.
No match found for enum value expression EE_ExpressivAlgo_t in
0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored. Found on line 840 of input from line 656 of file
c:\users\marcelo\documents\matlab\EmoStateDLL.h
No match found for enum value expression EE_AffectivAlgo_t in
0x0010}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001
expression ignored. Found on line 840 of input from line 656 of file
c:\users\marcelo\documents\matlab\EmoStateDLL.h
No match found for enum value expression EE_CognitivAction_t in
0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0
expression ignored. Found on line 840 of input from line 656 of file
c:\users\marcelo\documents\matlab\EmoStateDLL.h
No match found for enum value expression EE_Event_t in
16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0
expression ignored. Found on line 1993 of input from line 1166 of file
C:\Users\Marcelo\Documents\MATLAB\edk.h
********* Error using loadlibrary (line 423)
There was an error running the loader file. Use the mfilename option
to produce a file that you can debug and fix if needed. Please report
this error to the MathWorks so we can improve this function.
Error in eeglogger (line 84)
[nf, w] = loadlibrary('edk','edk', 'addheader', 'EmoStateDLL', 'addheader', 'edkErrorCode');
Caused by:
Error using struct
Invalid field name "EE_COGNITIV}EE_EmotivSuite_t;typedefenumEE_ExpressivAlgo_enum{E"
I put all files needed in the same folder
Anyone know how can I be able to use emotiv with matlab? and why everyone has the same problems but no confirmed solution?
thanks
Ok as i wrote before and got punished for it, i had the same problem, but i solve it, first of all are you using matlab 32 bits?? otherwise it wont work anything, im using matlab 32 bit 2013, you also need visual studio 32 bit compiler 2010 or older,you need to have all the .dll files on the same folder as well as the edk.h file and set the proper c compiler suing mex -setup, i use the files share by akshaybabloo to acces the emotiv and its working so far.
Note: You must have a research edition Emotiv Epoc otherwise you wont be able to access EEG raw data .

Getting PottsWheel application for Matlab to create a new model creates an error

I have just installed PottersWheel (latest version) for Matlab (version R2014a) on 64-bit machine. When attempting to use the 'New Model' button I get an error which I have pasted below:
-------------------------------------------
Problem detected at 2014-10-17 14:06:01:
Attempt to reference field of non-structure array.
Line 128 of pwGetFieldWidths.p
Line 170 of pwModel2CellArray.p
Line 126 of pwSaveModel.p
Line 607 of pwCreateModelGUI.p
Line 175 of pwCreateModelGUI.p
Line 95 of gui_mainfcn.m
Line 60 of pwCreateModelGUI.p
Matlab 2014a (mexw64) PottersWheel 3.1.0
-------------------------------------------
Since apparently there is no way to access .p files as they are protected. Does anybody know how to fix this problem?
The .p files are obfuscated MATLAB functions (or kind of object files). So, you cannot edit them. The possibilities are:
You read the documentation carefully, and verify that your arguments obey the requirements;
If #1 fails, you contact the author that holds the source and ask him/her for advice and bug fixing.
If #2 fails, you look for an de-obfucscator/de-compiler.

Matlab Will Not Add Path

I am trying to call a function from the command window, but I constantly am obstacle by the message
Undefined function 'gDiscrPdfRnd' for
input arguments of type 'double'.
So, I searched this messaged in google. According to this post here, a possible cause for this is that matlab can not find the file. I found this page which tells of how to add the path. So, I typed in the command
addpath('C:\Users\Eli\Documents\MATLAB\final project\help')
and then I typed in
which gDiscrPdfRnd
which gave me the error 'gDiscrPdfRnd' not found. How can I fix this?
EDIT: The output of cd('C:\Users\Eli\Documents\MATLAB\final project\help');dir is
. IdealGasSimulation.zip randpdf
.. gDiscrPdfRnd funct randpdf.zip
IdealGasSimulation gDiscrPdfRnd funct.zip
There is no file gDiscrPdfRnd.m in the folder, put it into the help directory or add the folder where the gDiscrPdfRnd.m is placed.