Python and NetBeans

January 23rd, 2009 Albertux 1 comment

Python and NetBeans

Menu => Tools => Plugins


New Python Project:




Jython ( http://www.jython.org )
Python ( http://www.python.org )

Categories: unix/linux, windows Tags: ,

99% de ser Ingeniero Titulado y con Cedula

January 21st, 2009 Albertux 4 comments

99% de ser Ingeniero Titulado y con Cedula

Categories: personal Tags:

Setup Apache Tomcat

January 17th, 2009 Albertux 2 comments

Apache Tomcat

Set JAVA_HOME and JRE_HOME:

Start Apache Tomcat
C:\tomcat-6.0.18\bin\catalina run

Users:
C:\tomcat-6.0.18\conf\tomcat-users.xml

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <user username="tomcat" password="s3cret" roles="manager"/>
</tomcat-users>

Manager

Install on Ubuntu Intrepid Ibex:

sudo apt-get install tomcat6 tomcat6-*

Users:
/etc/tomcat6/tomcat-users.xml

Start Apache Tomcat

sudo /etc/init.d/tomcat6 start

http://tomcat.apache.org/
Java Servlets and JavaServer Pages

Categories: unix/linux, web, windows Tags: ,

C/C++ and NetBeans

January 15th, 2009 Albertux No comments

C/C++ and NetBeans

NetBeans needs C/C++ compiler, the better option is GCC (GNU Compiler Collection).

On Win32 you can use Cygwin to get it.

On Project Properties you can change the Build options (Debug or Release), add libraries, Plataform, Package type (tar/zip/rpm,deb), Strip Symbols (reduce size of the executable)

Your executable will be on:
\NetBeansProjects\(your project)\build\(Debug or Release)\Cygwin-Windows\

Remember you application depends of cygwin1.dll ( c:\cygwin\bin\cygwin1.dll )

If you compile C files you can disable this depency using “-mno-cygwin” on CFLAGS options on your Makefile

See dependencies of you executable (using cygwin):

objdump application.exe | grep "DLL"

or use Depency Walker

Cygwin
http://www.cygwin.com/
http://www.redhat.com/services/custom/cygwin/

MinGw
http://www.mingw.org/

Interix
http://www.interopsystems.com/InteropToolworks.htm

Categories: unix/linux, windows Tags: ,

PHP and NetBeans

January 13th, 2009 Albertux No comments

PHP and NetBeans

Add new PHP Project

Execute SQL

control + 5 (Services)

Databases => New Connection

Chouse your database type and put your database, username and password

Execute SQL Command

Class/Library/Module

Goto menu tools = > Libraries => JavaScript Libraries

Chouse your Class/Library/Module

Now you can add Class/Library/Module in others Projects

Goto project propieties and see JavaScript Libraries

Add your Class/Library/Module

Now check resources folder

You can add PHP Class/Library/Module using “JavaScript Libraries” easy but nasty.

Categories: unix/linux, web, windows Tags: ,