Windows 10 Octave 3.2.4 not running .m files - windows

I'm trying to work my way through the Stanford open machine learning course and it requires me to run a .m file called submit1.m
I have this file and i have made sure i am in the correct directory.
When i try to run this file and submit my answer example - submit1.m(eye(5,5)
I receive this error message:
error: `submit1' undefined near line 9 column 1
Sorry in advance if I'm missing something really simple but I am a completely new to octave.
I have search for an answer on many forums but none of the given solutions are working for me.
If any more information is required please ask and i will do my best.
Thanks

Related

How to solve the following error in Laravel and How to know the File Path of SessionHandlerInterface?

I started working with Laravel. Faced a FatalErrorException:
Declaration of SessionHandlerInterface::1($save_path, $session_name) must be compatible with SessionHandlerInterface::1($maxlifetime)
in FileSessionHandler.php line 10
It was working yesterday, and as far as I remember, I have not updated anything.
I tried to look into file FileSessionHandler but I can't figure out the problem. I also tried to look for SessionHandlerInterface, but I am not able to find the Interface file.
How can I solve this problem?
Also please tell me the meaning of 1 after scope resolution operator.

Cordova file plugin can't access the application directory on windows 8

Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart

Installing Oracle database 11g on Window fails

I got in really stupid situation.
First I am a newbie at Oracle and my English is dumb, I'm trying to install Oracle based on some available tutorial on Google. Exactly this one :
http://allaboutobiee.blogspot.com/2013/09/step-by-step-installation-of-oracle-11g.html
But I was stuck at top 5 as the installing window suddenly disappear with no clues or errors occurred. I started searching on google for solution and I found this answer seems to work. But the problem is I dont know HOW TO APPLY this answer :
"I was having a similar problem (mentioned in another thread I'm still looking for to respond), but it would fail (without notice) when selecting "desktop class" (step 3). We found that there was a problem with the included javaw.exe file, so used the following start line in the command line (from wherever setup.exe is located):
setup -jreLoc c:\PROGRA~1\java\jdk1.6.0_25
(Modify to reflect the location of an alternate JRE, like the one I used above.)
Hopefully this helps. If not, good luck!"
First I tried to turn on my cmd and type this : "setup -jreLoc c:\PROGRA~1\java\jdk1.6.0_25"
it shown up this message : "Setup is not recognized as an internal or external command,,....."
Can you guys help me, as a newbie, solve my problem ??
Try below steps:
Download oracle 11g from oracle site
http://www.oracle.com/technetwork/indexes/downloads/index.html#database
Files details
win64_11gR2_database_1of2 approx size - 2.12 GB
win64_11gR2_database_2of2 approx size - 948 MG
Copy the database folder from win64_11gR2_database_2of2 and paste it in win64_11gR2_database_1of2.
Run the setup.exe from win64_11gR2_database_1of2 folder.
Good Luck!

SugarCRM /include/Smarty/Smarty.class.php on line 1095 troubleshoot

I have been searching for this problem since a while but without much help. Everyone seemed to leave it half way.
I want to dig a bit deeper as to why and how it is creating such a havoc for everyone.
Environment
Installed SugarCRM and installed addon module. The module seems to work however, around email line it shoots a warning on the page:
Warning: Smarty error: unable to read resource: "include/SugarFields/FieldsBase/detailViewFunction.tpl" in /public_html/xxx/include/Smarty/Smarty.class.php on line 1095
As per the suggestions earlier from other post, I have done following and I am still at square 1
Changed the filename to all possible combinations
Searched for code where it references detailViewFunction. It appears in base and enum folder only and is exactly same the way the filename is. There is no mention in the code OR file about small d as suggested by someone one of the users in StackOverflow. Simply put, it is not detailViewFunction; in both files it appears as DetailViewFunction and the filename is same as this.
Checked permissions and they are 755; tried changing to 777 but still the error is there.
Any one who was able to solve it?
El
Ref.: Warning: Smarty error: unable to read resource:

iOS Library not found for -lidn (Including xmppframework)

I'm trying to include the xmppframework in my xcode project however I've come to a problem. I get the following error when trying to compile:
Path 'Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/lixml2.dylib following -F not a directory
Library not found for -lidn
I have followed the instructions to setup xmppframework from here and followed these instructions to make sure all the paths are correct, however I'm still getting the error.
I've checked the file path and it's definitely there..
Is there any other reason for this error? Many thanks
Finally fixed it after 3 days..
My advice to anyone else coming across this problem is to load up one of the example projects and compare the build settings on each! Ended up that my Library Search Paths was wrong.

Resources