For people who want to advance in life, I would recommend you thoroughly read this one:
"Skate where the puck is going to be, not where it was" - Wayne Gretzky
SFN
Saturday, October 6, 2012
Wednesday, September 26, 2012
An interesting Quote:
The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubt - Bertrand Russell
Monday, August 13, 2012
Quotes Worth Spreading
From time to time I run into nice quotes, and I thought to myself I should post them and share them with the world, so Here is the first one, which will go well with the Olympic spirit :
Tears will get you sympathy, Sweat will get you results
And more will come later
Tears will get you sympathy, Sweat will get you results
And more will come later
Thursday, August 2, 2012
Face Your Fear
I liked this saying which I heard and liked to share with you:
"There is only time enough to iron your cape, and back to the skies for you" - By Jason Harely
For those who don't understand "iron your cape", imagine yourself a superman, the cape would be: A sleeveless outer garment fastened at the throat and worn hanging over the shoulders, so Iron yours quickly and fly back to the skies.
"There is only time enough to iron your cape, and back to the skies for you" - By Jason Harely
For those who don't understand "iron your cape", imagine yourself a superman, the cape would be: A sleeveless outer garment fastened at the throat and worn hanging over the shoulders, so Iron yours quickly and fly back to the skies.
Friday, February 3, 2012
Matlab database drivers
1- I found out the following link which is very important to get the drivers:
http://www.mathworks.com/support/solutions/en/data/1-CL94AW/index.html?product=DB&solution=1-CL94AW
another good link is:
http://www.mathworks.com/help/toolbox/database/ug/database.html
2- open matlab as an administrator and on the command window type:
edit classpath.txt
3- add the path of the driver to the end of the text file
4- save
5- restart
and you are ready to rock the matlab database world.
good luck
I am placing a small example below to how to connect to a MS SQL database:
s.DataReturnFormat = 'cellarray';
s.ErrorHandling = 'store';
s.NullNumberRead = 'NaN';
s.NullNumberWrite = 'NaN';
s.NullStringRead = 'null';
s.NullStringWrite = 'null';
s.JDBCDataSourceFile = '';
s.UseRegistryForSources = 'yes';
s.TempDirForRegistryOutput = 'C:\Users\XOXO\AppData\Local\Temp';
s.DefaultRowPreFetch = '1000000';
setdbprefs(s)
url = 'jdbc:sqlserver://PORT_NAME.local;database=DATABASENAME';
conn = database(' DATABASENAME ', ' DATABASE USER NAME', 'DATABASE PASSWORD', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', url);
http://www.mathworks.com/support/solutions/en/data/1-CL94AW/index.html?product=DB&solution=1-CL94AW
another good link is:
http://www.mathworks.com/help/toolbox/database/ug/database.html
2- open matlab as an administrator and on the command window type:
edit classpath.txt
3- add the path of the driver to the end of the text file
4- save
5- restart
and you are ready to rock the matlab database world.
good luck
I am placing a small example below to how to connect to a MS SQL database:
s.DataReturnFormat = 'cellarray';
s.ErrorHandling = 'store';
s.NullNumberRead = 'NaN';
s.NullNumberWrite = 'NaN';
s.NullStringRead = 'null';
s.NullStringWrite = 'null';
s.JDBCDataSourceFile = '';
s.UseRegistryForSources = 'yes';
s.TempDirForRegistryOutput = 'C:\Users\XOXO\AppData\Local\Temp';
s.DefaultRowPreFetch = '1000000';
setdbprefs(s)
url = 'jdbc:sqlserver://PORT_NAME.local;database=DATABASENAME';
conn = database(' DATABASENAME ', ' DATABASE USER NAME', 'DATABASE PASSWORD', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', url);
Monday, November 14, 2011
Matlab Java space heap memory size problem solution
The solution is very simple
1- check what you have
2- To check the version of your Java, type the following in the Matlab prompt window:
version -java
3- to check the current size you have type:
java.lang.Runtime.getRuntime.maxMemory
java.lang.Runtime.getRuntime.totalMemory
java.lang.Runtime.getRuntime.freeMemory
To Solve it:
4-open a text file
5- write the following in it
For JVM of 1.2.2 and later, place the following in your java.opts file:
For JVM 1.1.8 'java.opts', place the following in your java.opts file:
6- Save the file with the following name:
7- you can simply put a number more than 256 if your machine allow it for example (Xms512m)
8- Save the file in the matlab path directory
Simply will work :)
some people increase it from the cmd for dos like this,
I am not sure if this works, but the method I just described works for sure :)
1- check what you have
2- To check the version of your Java, type the following in the Matlab prompt window:
version -java
3- to check the current size you have type:
java.lang.Runtime.getRuntime.maxMemory
java.lang.Runtime.getRuntime.totalMemory
java.lang.Runtime.getRuntime.freeMemory
To Solve it:
4-open a text file
5- write the following in it
For JVM of 1.2.2 and later, place the following in your java.opts file:
-Xmx256m
For JVM 1.1.8 'java.opts', place the following in your java.opts file:
-mx256m
6- Save the file with the following name:
java.opts
7- you can simply put a number more than 256 if your machine allow it for example (Xms512m)
8- Save the file in the matlab path directory
Simply will work :)
some people increase it from the cmd for dos like this,
- java -Xms64m -Xmx256m
I am not sure if this works, but the method I just described works for sure :)
Modifications to Run Matlab exe files for Windows 7
1- Open the system properties
2- go to "Advanced"
3- click on "Environment Variables"
4- go to "User variables for ...."
5- Click on "New"
6- for variable name:
PATH
7- for Variable value:
set PATH=C:\Program Files\MATLAB\MATLAB Compiler Runtime\v713\runtime\win32;
which is the location of the matlab runtime compiler, which you need to change according to your files location
2- go to "Advanced"
3- click on "Environment Variables"
4- go to "User variables for ...."
5- Click on "New"
6- for variable name:
PATH
7- for Variable value:
set PATH=C:\Program Files\MATLAB\MATLAB Compiler Runtime\v713\runtime\win32;
which is the location of the matlab runtime compiler, which you need to change according to your files location
Subscribe to:
Posts (Atom)