Well, after long time trying to use Apple Safari exclusively (WebKit too), trying to love it as much as possible etc, I've concluded finally: this is a disaster browser, if we talk about memory management. It will eat all your memory available and will constantly read your hard drive (I guess, for swap space). The more you use it, the less memory you have. In my case, if I open 20 or more tabs and try see output of fs_usage, almost only Safari process is seen and it is doing something by accessing my disk for some strange reasons. Sometimes hard drive is going so mad that everything is "frozen" and Safari desperatively reading and writing something.
I've took Firefox 3 and it is much much better in this aspect. Additionally, I can not normally make a posting to this blog, using Safari anyway.
P.S. iChat is also disaster chat, so I use Adium instead. And IRC, recently...
Thursday, January 01, 2009
Tuesday, December 23, 2008
Tokyo Winter
That's how Winter in Tokyo looks like. No snow, no ice, no trembling dogs near metro stations.
Saturday, October 04, 2008
OpenOffice.org 3 Release Candidate 2 on Mac OSX
Just installed OpenOffice.org Release Candidade 2 on my Mac, where I am running Leopard 10.5.5. I was really surprised when it starts just within 4.03 seconds! In compare to Microsoft Office 2008, it takes really a long time to make it start and open some document.
Check it out: http://porting.openoffice.org/mac/download/aqua-Intel.html
Check it out: http://porting.openoffice.org/mac/download/aqua-Intel.html
Friday, October 03, 2008
Proxy And Java Web Start
When running on client environent, Java Web Start is using JavaScript PAC file (proxy auto-config), completely ignoring system environment settings, for example, like "(protocol).
The problem occurs, when you need something, like a different port for a web service that is running with SSL. In that case Proxy server will return an error, encouraging client to connect only through defined ports.
Here is a cure how to turn off proxy settings within Java Web Start, having no deal with the system configuration (including
The object ProxySelector is a global object that is used by all the handlers. Now in this case it will return a default Proxy object that is
nonProxyHosts" etc. In my case, users are not authorized to change their own default proxy settings and everybody are enforced to use some specific address.The problem occurs, when you need something, like a different port for a web service that is running with SSL. In that case Proxy server will return an error, encouraging client to connect only through defined ports.
Here is a cure how to turn off proxy settings within Java Web Start, having no deal with the system configuration (including
javaws.cfg):
ProxySelector.setDefault(new ProxySelector() {
@Override
public List<Proxy> select(URI uri) {
List<Proxy> proxyList = new ArrayList<Proxy>();
proxyList.add(Proxy.NO_PROXY);
return proxyList;
}
@Override
public void connectFailed(URI uri,
SocketAddress socketAddress,
IOException ioException) {
}
});
The object ProxySelector is a global object that is used by all the handlers. Now in this case it will return a default Proxy object that is
DIRECT connection. It is equivalent to setting javaws.cfg.proxy.setting=NONE in javaws.cfg file.
Friday, September 26, 2008
Writing a Standalone Client For Secure Web Service
Today I was puzzled writing a standalone Java client (going to be Swing app) that "talks" to the remote server, which serves a secure Web Service. Looking around various blogs and other stuff, I made it. It even works as expected. :-)
But I want now put it all together to make it very clear and up to date. The process is all undocumented properly and successfully allows everybody hit the wall with the forehead. Therefore, to avoid others had the same sad experience googling around for a half a day, soon I am going to make a end-to-end document with a screenshots and detail explanations.
Uugghhh... Now is Friday and 8:30PM. Maybe tomorrow...
Thursday, September 25, 2008
Writing a Secure Swing Client For a Web Service
Using NetBenans IDE, I've tried to write a Swing GUI client for a secure web service that I've made. While web-based servlet works great, Swing standalone application spits weird errors and won't even run. One of the interesting exceptions is:
jar libraries that NetBeans added automatically, when created Web Service Client reference and replace them with the libraries from GlassFish application server.
To those, who need step-by-step instructions:
javax.xml.ws.soap.SOAPFaultException: ERROR: No security header found in the messageThe problem is that NetBeans is using "old" JAX-WS libraries instead using WSIT. Solution is to remove all the JAX-WS
...
To those, who need step-by-step instructions:
- In NetBeans IDE, right-click on the client project and select "Properties". "Project Properties" dialog appears.
- From the "Categories" tree at the left side of the dialog, select "Libraries" item.
- Remove all the JAX-WS libraries—do not worry, your project is completely broken anyways. :-)
- On the right side of the dialog, click on "Add JAR/Folder" button. "Add JAR/Folder" dialog appears.
- Browse to
$GLASSFISH_HOME/libfolder (and subfolders) in order to select all the libraries, listed below. - Click OK.
- Have fun. :-)
lib/endorsed subfolder):- activation.jar
- appserv-deployment-client.jar
- appserv-launch.jar
- appserv-admin.jar
- appserv-ext.jar
- appserv-rt.jar
- javaee.jar (oh my...)
- webservices-rt.jar
- webservices-tools.jar
- webservices-api.jar
Sunday, September 21, 2008
16 Million Of Terabytes On a Laptop
Subscribe to:
Posts (Atom)

