Oct 26 2011

User defined dictionary in Eclipse CDT

Classified in: Programmingpaomic at 1:06 pm

It may happen that you want to add words to a user dictionary while using Eclipse CDT. At first it seems that it does not work, since it keeps saying “A user dictionary is needed to add words. Do you want to configure it now?”, even though you specified a custom dictionary file! The problem is that you need to specify the dictionary both for the C/C++ spelling engine and for the default spelling engine (you can also use the same dictionary!). You can select the spelling engine from the dropdown that you find under General -> Editors -> Text editors -> Spelling menu.

HTH!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Tags:

Sep 30 2011

Boost log linking problem with parse_formatter

Classified in: C/C++paomic at 10:27 am

While compiling boost log you may get a linker error like this:

 

undefined reference to `boost::log2_mt_nt5::formatter_types<char>::formatter_type boost::log2_mt_nt5::parse_formatter<char>(char const*, char const*)’

 

This is due to a missing library, specifically boost_log_setup, which you should add to the library list.

 

Happy coding!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Tags: ,

May 26 2011

Add navigation arrows to jQuery tabs

Classified in: Javascriptpaomic at 9:56 am

I needed to add navigation arrows to a couple of jQuery tabs, it’s easy to implement by using a few functions:

suppose we have the following HTML:

<div id=”tabs”>
<ul>
<li><img id=”left” src=”left.png” alt=”" /></li>
<li>…</li>
<li><img id=”right” src=”right.png” alt=”" /></li>
</ul>

We can simply add this js code:

$(function() {
$tabs = $("#tabs").tabs();
$("#left").click(function(){ var ind = $tabs.tabs("option", "selected"); if(ind > 0) $tabs.tabs("select", ind-1);});
$("#right").click(function(){var ind = $tabs.tabs("option", "selected"); if(ind < $tabs.tabs("length")) $tabs.tabs("select", ind+1);});
});

The script also check that the selected tab is not outside the tabs limits, but I think this is done internally by the jQeury script itself.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Tags:

Jan 15 2011

Eclipse, Tomcat, Vaadin

Classified in: Javapaomic at 5:44 pm

Just in case you run in the same problem, I want to share this with you.

Let’s start from the beginning.

I started playing with Vaadin and decided to use Eclipse. Actually, is there a real alternative?

So I setup a data access Java project and started playing with hibernate. Then I created the Vaadin project. It seemed quite easy, I had to add the data access project to the build path and I could use the classes in my web project. The problem came out at the first run: java.lang.ClassNotFoundException.

I searched all the web for a solution to this, but could not find a real one. I don’t know if it’s a problem related to my config or if you always have to do this. The solution I found was to go into the Vaadin project properties, click on Deployment assembly, and then click add, the project, select the data access project, and that’s it!

It seems this options creates a .jar file from the project and puts it into the /WEB-INF/lib folder, where Tomcat can find it.

Hope this helps someone out there!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Tags:

Jun 21 2010

Setting Cakephp scaffold layout

Classified in: CakePHP,PHPpaomic at 10:27 am

I don’t know why but it seems that cakephp does not uses the same layout logic for the scaffold view as for the rest of the pages. If you have the same problem, you can set the layout from the controller like this:

<?php
class MyController extends AppController {

    var $scaffold;
    var $layout = 'mylayout';
}
?>
Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Tags:

Next Page »