Search This Blog

Wednesday, December 14, 2011

Seting up Oracle XE HTTP port

How to change http port of your oracle xe?

begin 
   dbms_xdb.sethttpport('8383'); 
end; 

 you may want to change ftp port using


begin 
    dbms_xdb.setftpport('2100'); 
end; 


and don't forget to verify that everything went ok:

select dbms_xdb.gethttpport as "HTTP-Port" , 
                dbms_xdb.getftpport as "FTP-Port" from dual;


Good luck ;)

Sunday, January 9, 2011

JavaOne Bejing December 2010

It was December 12, sunny morning in Prague when I packed couple of my thinks and went to the airport. Destination JavaOne in Beijing, China. Wishing no snow storm in Moscow I got on the plane and was looking forward to Beijing. It was only couple of minutes when I thought there is no way we could land on. It was a new "feature" from Aeroflot that shows image from camera situated in front of the plane on the screen on the seat in front of you. House, house, house, forbidden city, airport - a bit left, a bit right and then very quickly down towards concrete runway - there are some things I better watch when I am not on board :). 



Getting ready to start
My first time at such a big conference and my first time facing people asking "What is NetBeans?", "Where can I download it?", "Why is it better than Eclipse?", "Can I import Eclipse project into NetBeans?", "Can you debug in NetBeans?", "Can you debug Javascript in JSP pages?", "Does NetBeans support WebLogic?", "Does it have support for Struts, Hibernate ... ?", "Can I develop J2ME applications in NetBeans?" and many other questions which I was trying to answer ... and it was really hard job sometimes :). Well, now I can just hope that answers were good enough to many asking developers (often thanks to Geertjan) and they consider to switch from Eclipse or give NetBeans, obviously so much unknown IDE in China, a try at least. And if you wonder about answers then don't hesitate to follow links.


To be honest with you, I didn't spend all our time at the conference only, of course :). You can imagine how good tastes Tsingtao beer after such a day at the conference, even if it is a bit "waterish" :). A good time in the evenings was guaranteed since I had chance to have a dinner with Java evangelists and once when we weren't too tired we dropped in a cosy jazz bar in the city center. Well, 4 days is not enough :).

Terrence and Roger on Great Wall
Since China is kind of exotic for me, a guy from Europe, I considered as my obligation to see as much as possible it is to see in Beijing. And what you cannot miss once you are in China? Correct, Great Wall! :). So I went up there and after couple of minutes I was just starring for a while. Terrence and Roger recording podcast right on Great Wall of China!






And if you think about traveling to Bejing, here are some advices I picked up on the airport:
1. Bring some Euros or Dollars. You will need them in case ATM will decide not to give you money ;).
2. It is not as warm as you may think. And if you think +5 is still OK then forget about it in windy and humid Beijing.
3. Write down name and address of hotel in Chinese letters ;) 

It's really pity I had only 4 days at conference and then only 3 days off. But the country is marvelous and I'll be back :). So China, start using NetBeans and hope to see you guys at JavaOne once ;). 

Links

Download NetBeans
Real stories from NetBeans developer
Why to switch to NetBeans

Thursday, January 6, 2011

How to get rid of __MACOSX metadata folder?

I was developing a NetBeans Zend Framework sample on Mac OSx and run into strange problem. Zipped directory contains metadata and unzipped folder has different structure as requested. I always got one more directory called __MACOSX after unpacking archive. You will not face this problem if you unpack using MAC archiving utility. But if you use this utility to pack and then you unpack under another OS or using another utility you most likely will get into troubles. Most problems are with automated unpacking because desired data are elsewhere then where you are looking for it.

As far as I understood what I googled up, metadata in archive are only stored when compressing a folder using Archiver utility. So, basically, when you create archive using "compress" from pop-up menu. They are created before, when you create a folder or a file. Metadata are stored in .DS_Store (Desktop Services Store) files.

So what to do about it?  Solution is actually simple, use command-line zip utility to zip your folder and you should be good. Don't forget to delete metadata files .DS_Store before.

rm -rf `find . -name .DS_Store`
zip -r archiveName.zip *


test how unzip behaves

mkdir unzip-test
unzip archiveName.zip -d unzip-test/


if there are no .DS_Stores file and/or __MACOSX directory then you should have archive without metadata and you should be good to go without worries :).

Links


Wikipedia on metadata
Mac OS X Resource Fork and Command Line Tips