Back to netbeans again after intelliJ misrepresenting compilation

So IntelliJ says it compiled successfully a project. However, when I execute maven jetty plugin to run a small web project, I end up with jars not being found. So what does it exactly mean when IntelliJ says compile successfully ? It seems that it just compiles them, and it really does not make any difference whether you compile or Make the project both cases will result in missing jars if you run the project using maven jetty plugin.

There’s lots of crap in netbeans however it seems to be the only edit that does what it says it’s going to do in terms of maven compilation. It sill suffers from some issue like for example you won’t be able to disable tests if you compile with dependencies.

For the time being I have to accept the flaring white colors of netbeans until one day I can figure out a more consistent way of configuring it.

Finally a driver that does not crash for 82845G/GL

Finally found a solution for a dinosaur machine Dell GX260 graphics driver issues. My lspci shows this:

VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01) (prog-if 00 [VGA controller])

As a plus, I found that compiz works. Hopefully wayland will work as well once released.

Where to get it from? install the drivers from this PPA: https://launchpad.net/~glasen/+archive/intel-driver . I’m running ubuntu 12.10 so that’s what my tests are based on.

Threw in the towel for using netbeans

I admitted defeat in using netbeans for doing anything useful. I tend to waste my time trying to fix the colors so that I can read the code, and that if I didn’t get totally frustrated from simple actions not happening as expected. Simple things like dependencies between maven modules should be happening automatically. If you used intelliJ’s idea and set auto-compilation to true, and change a class in one module, it will automatically build the dependent modules and fire errors if necessary.

There are several issues some of which are poorly written code. For example this bug report ( http://bit.ly/YoLKxY ) during typing javascript the editor will block to update the document structure. Since the primary function of an editor is to edit, then that should not be blocked by any other secondary function enhancing the editing. Things like auto-complete would block editing and for every few character I type I will have to click Esc just to continue editing. Formatting of HTML, JSP and JavaScript during editing is totally screwed up. Even though the setting will specify a certain location for braces and indents, things will end up in totally different locations and they won’t be fixed until you mark the whole code and reformat it.

For their credit they have a very good core integration with maven. However, features are not finished nicely all the way to the end. I really don’t know if the project is losing volunteers and that’s why it is adequately tested or it is being steered to the death path to be replaced by an even slower and worse project aka JDeveloper.

Using astyle from inside intelliJ idea

A simple way to maintain your code style, even possible across your team without a lot of configuration sharing. Add astyle as an external tool with the following command line:

astyle -A1 -Lpjt $FilePath$

That’s a reminder to myself as well when I forget. Then add a shortcut from the settings to the Tools -> astyle. A good short-cut that does not conflict with intelliJ shortcuts is Alt+F .

RIP compiz !!

When I installed ubuntu 12.10 as usual I installed compiz and started configuring my effects. I like the burning windows effect on close, however it was not there and others were asking about it as well. I went to compiz blog and read that essentially the compiz team is now down to a single maintainer. I also did not find emerald. I downloaded the code and compiled emerald and installed it. However, I couldn’t get burning windows to work. Continue reading ‘RIP compiz !!’ »

1TB Flash Drives

So Tom’s Hardware released this report: Kingston released a new 1TB flash drive for an undisclosed price. However, there’s a 512MB version available for around $1700. [ http://www.tomshardware.com/news/1TB-USB-Large-Capacity-Thumb-Drive-512GB-USB-DataTraveler-HyperX-Predator-USB-3,20278.html ]. The issue with that is very obvious, the size. So as long as you accept the fact of being bulky, it seems to me that a regular USB drive for $90 is at least for now a better deal: http://www.amazon.com/ShadowTM-External-Portable-Hard-Drive/dp/B004AGPQYU/ref=pd_sxp_grid_i_0_2 . Flash drives are slow, so if they make it bulky and slow then I rather go for something that’s bulky but not that slow.

Netbeans dark look and feel on ubuntu

IntelliJ provides the dracula look and feel out of the box. The colors and contrast are excellent when it comes to writing code. Unfortunately, the JEE part is only in the paid version. I’ve been trying to get netbeans as close as possible in terms of look and feel to a dark high contrast look and feel. Continue reading ‘Netbeans dark look and feel on ubuntu’ »

Netbeans running from an SSD – still starting up slow

I bought this ssd on black friday from Microcenter. Of course the first thing I did was switch my linux boot to it and test how fast will linux boot. Linux boots in 10 second, which is awesome. The hard drive is very fast, which is very good. Continue reading ‘Netbeans running from an SSD – still starting up slow’ »

More on web development using intelliJ and netbeans

I’ve been testing intelliJ for webdevelopment and I was mainly focused on servlets. When the time came to write some jsp/jsf pages I kept going around however, I found out at the end that it is not supported in the community version.

So, even though I liked intelliJ more than netbeans yet it seems that I have no choice except to edit my websites using netbeans. Continue reading ‘More on web development using intelliJ and netbeans’ »

Executing hbase shell remotely

That’s an interesting question that I faced. I have a cluster somewhere on a LAN behind a machine that I can ssh to, and I need to run hbase shell from my local machine on it, or I have an hbase client that I want to connect to that cluster.

In order for hbase to successfully communicate it needs to have access to two ports. The first is the master port, which defaults to 60000 and the second is the zookeeper port and that’s 2181. Using basic linux techniques, we can use ssh to map those ports to local ports like this:

ssh user@remotemachine.com -L 60000:hbasemaster:60000 -L 60020:hbasemaster:60020 -L 2181:hbasemaster:2181

The assumption here is that the hbasemaster machine is accessible from the remotemachine.com .  Now what will happen is that your local hbase shell will contact the local zookeeper on port 60000 and ask for the configuration. This port is mapped to the foreign zookeeper, which will tell it to go to hbasemaster to connect. So your machine will attempt to resolve the ip of hbasemaster. Now the next step is to edit your /etc/hosts and add a line for hbasemaster’s ip address as 127.0.0.1 .

Try to connect with hbase shell and run the list command, and it should work.