Nick Georgides

Greenhorn
+ Follow
since Feb 22, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nick Georgides

Hello,

I am running a jetspeed portal which contains various portlet applications and have come across an issue after a recent reinstall where some of the portlets will return

Cannot pass a null PortletDefinition to a PortletEntity

Any idea what is causing this issue? I investigated a bit and it seems that jetspeed runs a process when new portlets are added where it creates mappings in its DB (derby in my case). If this does not complete it seems to cause this problem. Is my assumption correct? If yes, how can I restart this process?

Many thanks
14 years ago
Hi Henry, thanks for your reply.

I don't seem to grasp the concept of recursion Any help is much appreciated.

So, I moved the for-loop in another method and created the following:



which I guess is really stupid judging from its output.

~Nick
16 years ago
Hi,

I'm trying to program an algorithm that returns all the combinations & permutations that can be made out of a given string.

e.g. for a "abc" it must return:


So far I've come up with:


But that only works in the case of "abc". Any advice on how I could make this more dynamic?

~Nick
16 years ago
Hello ranchers,

I am developing an application/web service for RSS feed generation from HTML pages listing news stories. At this stage, I am looking into HTML scraping for extracting the necessary information.

With the help of an online example I can get the links in an HTML document using javax.swing.text.html.



For the purposes of this post I used http://www.slashdot.org as a reference news page. Now, looking at the console output of document.dump(System.out) I am getting quite confused when it comes to extracting the news title, content, author, etc. I understand that I am looking for a way to get the [beginning, end] values for each news title, story, author. I tried iterating through to DIV tags and their CLASS attributes but I didn't get anywhere. It rather felt like walking in the dark.

Any examples/documentation on how to use the parser to step into the content in such a way would be much appreciated.

NOTE: As I am only just beginning this I'm open to suggestions on using other HTML parsers if they are easier to manipulate.

Thanks in advance.
18 years ago