Saturday, March 24, 2012
Adding external libs to an Eclipse Galileo project
In eclipse Galileo :
Open the project's properties
Select Java Build Path
Select Libraries tab
From there you can Add External Jars
http://stackoverflow.com/questions/179024/adding-a-jar-to-an-eclipse-java-library
Also, when importing java source files into the project, the root import folder chosen must match the package structure.
Thursday, March 22, 2012
Get object dependencies in SQL Server
Get object dependencies of a sproc via script instead of Management Studio:
DECLARE @my_object nvarchar(1024) = N'dbo.my_sproc'
CREATE TABLE #tempTable (name nvarchar(1024), [type] nvarchar(1024), updated nvarchar(1024), selected nvarchar(1024), [column] nvarchar(1024))
INSERT INTO #tempTable EXEC sp_depends @objname = @my_object
SELECT name FROM #tempTable group by name
DROP TABLE #tempTable
GO
Also useful:
SELECT * FROM sys.Tables
http://blog.sqlauthority.com/2009/09/23/sql-server-insert-values-of-stored-procedure-in-table-use-table-valued-function/
Tuesday, March 6, 2012
Increasing heap for Weka
Any OS
From command/terminal:
java -Xmx1024m -jar weka.jar
OSX gui
From terminal:
cd /Applications/weka-3-5-7.app/Contents
open Info.plist
Under "Java" you will find an entry called "VMOptions" with the value "-Xmx256M".
Windows gui
Edit the line maxheap=1536m from C:\Program Files\Weka-3-X\RunWeka.ini
From command/terminal:
java -Xmx1024m -jar weka.jar
OSX gui
From terminal:
cd /Applications/weka-3-5-7.app/Contents
open Info.plist
Under "Java" you will find an entry called "VMOptions" with the value "-Xmx256M".
Windows gui
Edit the line maxheap=1536m from C:\Program Files\Weka-3-X\RunWeka.ini
Subscribe to:
Comments (Atom)