What happened to daily build of nbrubyide? I have been checking the last few days and there is no new build. I am so used to getting my morning nbrubyide fix. This is not a complain. I am just wondering.
Here is where I go to download the latest build.
http://deadlock.netbeans.org/hudson/job/ruby/changes
Showing posts with label ide. Show all posts
Showing posts with label ide. Show all posts
Wednesday, January 30, 2008
Monday, December 10, 2007
NetBeans 6 - Out of Memory Exception
Lately, I have been getting Out of Memory Exception every time NetBeans load up. This is the exception message, "java.lang.OutOfMemoryError: Java heap space". I am using the daily build of the custom ide for Ruby development.
I fixed the problem by setting the max heap size to a 512 MB. This is how I start the ide.
nbrubyide.exe -J-Xmx512m
UPDATE: I just found out that I can set the max heap size in the nbrubyide.conf file. It is in the etc directory under c:\nbrubyide
I modified it to
default_options="-J-Xms24m -J-Xmx256m"
I fixed the problem by setting the max heap size to a 512 MB. This is how I start the ide.
nbrubyide.exe -J-Xmx512m
UPDATE: I just found out that I can set the max heap size in the nbrubyide.conf file. It is in the etc directory under c:\nbrubyide
I modified it to
default_options="-J-Xms24m -J-Xmx256m"
Tuesday, July 17, 2007
NetBeans IDE 6.0 M10 is out
Netbeans 6.0 M10 is out. There are many editing and debugging improvement for RHTML files. Here is the new feature sections for Ruby development.
- Find Usages
- Rename Refactoring
- RHTML support
- Debugging (breakpoints, stepping etc. in RHTML files)
- Code completion
- Go to declaration
- Find Usages
- Rename
- Improved code completion - attributes, Rails migrations, models and views now include all the expected methods, etc.
- Enhanced RDoc rendering; embedded Ruby and RHTML code fragments are now syntax highlighted
- Debugger enhancements (global vars, watch view, locals view)
- Encoding support (projects now have an encoding property)
- Basic RSpec and ZenTest support (More Info), basic RJS support
- JRuby 1.0 is bundled
Developing ROR using Emacs
I saw a few screencast on using Emacs to do ROR development but I was not able to setup emacs to try it out until I saw this five part series on setting up Emacs for Ruby on Rails development from Software bits and pieces.
http://sodonnell.wordpress.com/the-emacs-newbie-guide-for-rails/
After following guide step by steps I was able to get emacs up and running for developing ROR. Initially emacs started up with an error and it wasn't able to go into ROR mode. I found out I was missing inf-ruby which you can get it here. If you following the tutorial then put this file in your c:/emacs-22.1/includes/ directory. After putting the file there, everything works.
I found another site, credmp, also with instructions on how to setup emacs for ROR development. Ruby On Rails and Emacs It also list out the snippets that the emacs-rails supports.
http://sodonnell.wordpress.com/the-emacs-newbie-guide-for-rails/
After following guide step by steps I was able to get emacs up and running for developing ROR. Initially emacs started up with an error and it wasn't able to go into ROR mode. I found out I was missing inf-ruby which you can get it here. If you following the tutorial then put this file in your c:/emacs-22.1/includes/ directory. After putting the file there, everything works.
I found another site, credmp, also with instructions on how to setup emacs for ROR development. Ruby On Rails and Emacs It also list out the snippets that the emacs-rails supports.
Saturday, May 05, 2007
NetBeans IDE 6.0 M9 is out
I just saw that NetBeans 6 Milestone 9 was released. Go here to see all the changes for M9. There are many new features added for Javascript. You can edit embedded Javascript and CSS inside HTML/JSP. Of course, there are new features for Ruby editing.
Here is the list of changes for Ruby from the site.
Here is the list of changes for Ruby from the site.
Download and try it out for yourself.
- Advanced code editing: Code completion, Documentation Popup, Semantic highlighting (such as unused local variable coloring), Parameter Hints, Instant Rename, Goto Declaration, Live Code Templates, Mark Occurrences, Reformatting, Pair Matching, Smart Selection, Surround With
- Project support: Create and run files, run unit tests, run RSpec specifications, jump between files and their testcases, Ruby Gems support, ability to use any version of either JRuby or native Ruby
- Ruby Debugger, including Rails debugging - run/step, breakpoints, local variables, call stack, thread switching, balloon evaluation, etc. Support for native fast debugging.
- Ruby On Rails support: Code Generator wizard, Database Migrations, Rake Targets, Support for generator plugins, Jump between Action and View, RHTML highlighting
Sunday, April 01, 2007
NetBeans IDE 6.0 M8 is out
I just installed NetBeans IDE 6.0 M8 and noticed that you can start and stop WEBrick within NetBeans now. Before this release, you would have to kill the java task from the task manager which was a pain. I actually didn't use WEBrick within the ide because of this problem. Instead, I just run it from the command line using the native ruby interpreter instead of jruby.
Before I was able to use the WEBrick instance started by NetBeans, I need to setup the project to use the jdbc adapter for MySQL. Since I didn't really bother reading much instruction, I encountered quite a few problems.
Here are the steps I used to get everything working.
1. Modify environment.rb and add these lines in right before Rails::Initializer:
2. Modify database.yml to use the jdbc adapter. Of course, instead of test_development, you put your own database name there.
3. Download the JDBC driver for MySQL.
Download Connector/J 5.0
Unzip or untar the archive and copy mysql-connector-java-5.0.5-bin.jar to your jruby-0.9.8\lib.
You can find your jruby-0.9.8 directory under
C:\Documents and Settings\<your username>\.netbeans\
I found this step to be quite important because adding the driver to CLASSPATH did not work for me.
NetBeans also exposed more rake tasks than before.
Before I was able to use the WEBrick instance started by NetBeans, I need to setup the project to use the jdbc adapter for MySQL. Since I didn't really bother reading much instruction, I encountered quite a few problems.
Here are the steps I used to get everything working.
1. Modify environment.rb and add these lines in right before Rails::Initializer:
if RUBY_PLATFORM =~ /java/
require 'rubygems'
RAILS_CONNECTION_ADAPTERS = %w(jdbc)
end
Rails::Initializer.run do |config|
2. Modify database.yml to use the jdbc adapter. Of course, instead of test_development, you put your own database name there.
development:
adapter: jdbc
driver: com.mysql.jdbc.Driver
username: root
password: password
url: jdbc:mysql://localhost:3306/test_development
3. Download the JDBC driver for MySQL.
Download Connector/J 5.0
Unzip or untar the archive and copy mysql-connector-java-5.0.5-bin.jar to your jruby-0.9.8\lib.
You can find your jruby-0.9.8 directory under
C:\Documents and Settings\<your username>\.netbeans\
I found this step to be quite important because adding the driver to CLASSPATH did not work for me.
NetBeans also exposed more rake tasks than before.
Monday, March 05, 2007
Screencast of Ruby editing features in Netbeans 6
Roman Strobl, famous for creating screencasts of Matisse GUI Builder in Netbeans 5.0, is at it again. This time he created two screencasts to demonstrate Ruby and Ruby on Rails features in Netbeans 6.
Two Demos: JRuby on Rails and Advanced Ruby Editing in NetBeans
Two Demos: JRuby on Rails and Advanced Ruby Editing in NetBeans
Friday, March 02, 2007
Netbeans 6 and auto completion
I started to use Netbeans for all my ruby programming tasks and the auto completion is wonderful. Before, I had to search around Ruby Doc for various libraries and methods but now I can just type the class name and press ctrl-space to get all the methods info. I do find one problem with the auto completion though. When I am editing a single file and not a ruby project, I don't get any auto completion help beside the basic variables within the file. I do get the syntax highlighting though. Unfortunately, a lot of my ruby scripts are quick and dirty and do not warrant creating a whole project just to write it. Maybe there is a way to activate the auto completion in single file editing mode. Anyway, beside that little problem, everything is working great so far.
Thursday, March 01, 2007
NetBeans IDE 6.0 M7
My eternal search for a Ruby editor led me to NetBeans IDE 6.0 M7. It is still in the earlier stage of development but I find its Ruby supports to be pretty good. It has code completion and syntax highlighting. The code completion part is what I like about it. I can't live without code completion.
You can get milestone 7 by going to http://www.netbeans.info/downloads/dev.php and select Q-Build for Build Type. Then download NetBeans IDE 6.0 m7 build 200702191730.
Here is a series of screenshot from Tor Norbye's Weblog
Ruby Screenshot of the Week
Ruby Screenshot of the Week #2
Ruby Screenshot of the Week #3
Ruby Screenshot of the Week #4
Ruby Screenshot of the Week #5
You can get milestone 7 by going to http://www.netbeans.info/downloads/dev.php and select Q-Build for Build Type. Then download NetBeans IDE 6.0 m7 build 200702191730.
Here is a series of screenshot from Tor Norbye's Weblog
Ruby Screenshot of the Week
Ruby Screenshot of the Week #2
Ruby Screenshot of the Week #3
Ruby Screenshot of the Week #4
Ruby Screenshot of the Week #5
Friday, February 02, 2007
Friday, November 25, 2005
Saturday, November 12, 2005
Finally managed to get RadRails working on Ubuntu 5.04
I finally managed to get RadRails working on my Linux machine. The reason I was having problem connecting to MySQL database was because I didn't turn on networking for MySQL. Yes, I am an idiot but it wasn't obvious that MySQL is skipping networking. It was only using socket and not TCP/IP.
I forgot the reason why I was doing netstat -a on the machine. But while looking through the list I didn't see any process listening on port 3306. That was odd since I was expecting MySQL to be listening to that port. I took a look at /etc/mysql/my.cnf and sure enough port=3306 is there. So, the next obvious step was googling to see why that is the case. I found this post which talk about skip_networking option in my.cnf. I look at my own my.cnf and skip_networking was enabled. I commented it out and restarted MySQL. I could see a process listening on port 3306 after doing a netstat -a. I tried to telnet to the port but got this error, "localhost.localdomain' is not allowed to connect to this MySQL server Connection closed by foreign host".
So, I added localhost.localdomain to the list of allowed hosts in MySQL and I was able to telnet to port 3306. I fired up RadRails and attempted to start the server. I still get the database connection error but now there is an error message about todo@localhost.localdomain is not allow. I went ahead and added the user to the database and now everything is working. I can finally use RadRails to start developing the Todo tutorial. I probably has the least secure MySQL server in the world but it is behind the firewall so it shouldn't be a problem.
Also, RadRails 0.4.1 is out. I can't wait until I have some free time to spend playing around with Ruby on Rails.
I forgot the reason why I was doing netstat -a on the machine. But while looking through the list I didn't see any process listening on port 3306. That was odd since I was expecting MySQL to be listening to that port. I took a look at /etc/mysql/my.cnf and sure enough port=3306 is there. So, the next obvious step was googling to see why that is the case. I found this post which talk about skip_networking option in my.cnf. I look at my own my.cnf and skip_networking was enabled. I commented it out and restarted MySQL. I could see a process listening on port 3306 after doing a netstat -a. I tried to telnet to the port but got this error, "localhost.localdomain' is not allowed to connect to this MySQL server Connection closed by foreign host".
So, I added localhost.localdomain to the list of allowed hosts in MySQL and I was able to telnet to port 3306. I fired up RadRails and attempted to start the server. I still get the database connection error but now there is an error message about todo@localhost.localdomain is not allow. I went ahead and added the user to the database and now everything is working. I can finally use RadRails to start developing the Todo tutorial. I probably has the least secure MySQL server in the world but it is behind the firewall so it shouldn't be a problem.
Also, RadRails 0.4.1 is out. I can't wait until I have some free time to spend playing around with Ruby on Rails.
Monday, October 31, 2005
RadRails 0.4
RadRails 0.4 is out.
I am still having the same database connection problem though. I found this post on Sam Ruby's blog that describes my problem but there is still no solution.
I also ordered Agile Web Development with Rails and Programming Ruby (2nd. Ed.) to further my knowledge on Ruby on Rails.
I am still having the same database connection problem though. I found this post on Sam Ruby's blog that describes my problem but there is still no solution.
I also ordered Agile Web Development with Rails and Programming Ruby (2nd. Ed.) to further my knowledge on Ruby on Rails.
Friday, October 21, 2005
Setting up Rails in Eclipse
It has been a while since my last post. I tried to use http://www.radrails.org/ with Eclipse but there seems to be a problem with connecting to the database. I think it has something to do with the new password encryption scheme that MySQL uses. Every time I try to start the web server, it complains about not being able to connect to the database. But the web site actually work and I can get data back from the database. I also not able to create scaffolding since it can't connect to the database. I haven't look deeply to see what is the real reason for the failure yet.
I also found this website that has instructions on how to setup Rails for Eclipse on Windows. I don't see a reason why these instruction wouldn't work in a Linux environment with some minor changes.
http://www.napcs.com/howto/railsonwindows.html
Hopefully, I will find sometime to give these instructions a try.
I also found this website that has instructions on how to setup Rails for Eclipse on Windows. I don't see a reason why these instruction wouldn't work in a Linux environment with some minor changes.
http://www.napcs.com/howto/railsonwindows.html
Hopefully, I will find sometime to give these instructions a try.
Subscribe to:
Posts (Atom)