Java 7
Great enhancement: binary literals and underscores:
int netaddr = 0b11000000_10101000_00000000_00000000; //192.168.0.0
int netmask = 0xFF_FF_FF_00; //255.255.255.0
Great enhancement: binary literals and underscores:
int netaddr = 0b11000000_10101000_00000000_00000000; //192.168.0.0
int netmask = 0xFF_FF_FF_00; //255.255.255.0
Автор
Xantorohara
на
1:28 PM
0
комментария(ев)
Ярлыки: Java
Now I have a big vacation between my past and future jobs.
I traveled to Turkey and had a big fun: climbing to the mountains, trip to antic cities, free-diving and driving buggy.
Автор
Xantorohara
на
12:54 PM
0
комментария(ев)
MySQL Workbench crashes on startup.
This problem appears because of normal users install 64-bit libraries (.Net Framework and Visual C++ Redistributable) for 64-bit Windows 7.
But MySQL Workbench compiled with 32-bit binaries and required 32-bit libraries. So you have to install Microsoft Visual C++ Redistributable x86 (!not x64).
Автор
Xantorohara
на
1:41 PM
0
комментария(ев)
Properties file (file.properties):
...
manager.cron=0 */1 * * * ?
...
...
<context:property-placeholder location="file.properties"/>
<task:annotation-driven/>
...
@Component
public class Manager {
...
@Scheduled(cron = "${manager.cron}")
public void doSomething() {
log.info("doSomething");
}
...
}
Автор
Xantorohara
на
2:21 PM
0
комментария(ев)
Surprise :-)
Max AMF3 value for integer = 268435456.
In AMF3 integers are serialized using a variable length unsigned 29-bit integer. The ActionScript integer types - a signed 'int' type and an unsigned 'uint' type - are also represented using 29-bits. If the value of an unsigned integer (uint) is greater or equal to 22^9 or if the value of a signed integer (int) is greater than or equal to 22^8 then it will be represented as a double and thus serialized in using the AMF3 double type.
Автор
Xantorohara
на
3:46 PM
0
комментария(ев)
Ярлыки: Action Script
mxmlc -static-rsls=true -output=out/style.swf src/style.css)styleManager.loadStyleDeclarations('style.swf');)
Автор
Xantorohara
на
12:00 PM
0
комментария(ев)
Ярлыки: Flex
In order to switch flex compiler messages to US locale put this string "-Duser.language=en -Duser.region=US" into the $FLEX_HOME/bin/jvm.config file.
...
java.args=-Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US
...
Автор
Xantorohara
на
1:27 AM
0
комментария(ев)