August 25, 2010
java: float fun
This cycle never ends!
Read more: Java's new math, Part 2: Floating-point numbers
or russian translation: Новые математические возможности Java: Часть 2. Числа с плавающей точкой
for (float x = 16777213f; x < 16777218f; x += 1.0f)
{
System.out.println(x);
}
Read more: Java's new math, Part 2: Floating-point numbers
or russian translation: Новые математические возможности Java: Часть 2. Числа с плавающей точкой
August 18, 2010
samsung printer drivers in ubuntu
install package splix
then search for printer, select default
go printing!
then search for printer, select default
go printing!
Labels: samsung printer, ubuntu
August 15, 2010
Drawings in new version of google docs text docs: regression
In new version of text editor of GDocs it's very hard to maintain aspect ratio of drawings to keep text readable. Drawing is rendered at server side and the aspect ratio of drawing when rendered in document now does not correlate with its content size. Renderer tries to calculate the text scale from drawing aspect ratio. But size is not correlated to drawing content. So anytime you insert or change drawing you have to manually adjust its size just to make text readable (which is very hard, because text is not rendered in a stylish way for any scale incompatibility).
It's impossible to use previous version of drawer with new version document, but you can create documents in old version of editor. Also, It's impossible to copy drawing from new version to old one via web clipboard.
In comparison to GDocs tricks MS Office is just as solid as stone. Just checked: 2007 Word has almost same cool drawings editor.
I need solution to simplify sharing of DOCs (svn seems to me very heavy for such an easy task, cause it's impossible to use web interface to share or publish one document). Do you know one?
It's impossible to use previous version of drawer with new version document, but you can create documents in old version of editor. Also, It's impossible to copy drawing from new version to old one via web clipboard.
In comparison to GDocs tricks MS Office is just as solid as stone. Just checked: 2007 Word has almost same cool drawings editor.
I need solution to simplify sharing of DOCs (svn seems to me very heavy for such an easy task, cause it's impossible to use web interface to share or publish one document). Do you know one?
why ebay works bad in singapore
..because buyer just asks in email to seller to see item and when meet he just buys. Why pay via ebay, they have already met?! :-D
Singapore is small, that could be the problem for ebay model which is for large countries or intl selling.
By the why, that's also because there're very few shops (I talk about photo or computer shops) in s'pore have their catalogs online: seems it's much more simple for seller to call and come into shop. Or is it another reason?
Singapore is small, that could be the problem for ebay model which is for large countries or intl selling.
By the why, that's also because there're very few shops (I talk about photo or computer shops) in s'pore have their catalogs online: seems it's much more simple for seller to call and come into shop. Or is it another reason?
August 3, 2010
Default socket option values for Java connections, Ubuntu 10.04
Tested on local connection. Note the relatively large buffer sizes.
Socket=Socket[addr=/127.0.0.1,port=46179,localport=33333]
SEND_BUF=25350
RECV_BUF=43760
REUSE_ADDR=true
SO_TIMEOUT=0
SO_LINGER=-1
OOB_ININE=false
TCP_NODELAY=false
TRAFFIC_CLASS=0