niedziela, sierpnia 21, 2016
VW Golf 1.6 TDI BlueMotion (Technology)
Golf VIII 1.6 TDI 110KM BlueMotion (Technology) to całkiem rodzinne auto. Środek ciężkości w odpowiednim miejscu, z tyłu nie ma belki skrętnej tylko wahacze, zawieszenie komfortowe - nie buja ani nie jest za twarde. Bagażnik 380l. O 30l więcej ma Skoda Rapid Spaceback, a o 170l więcej ma Skoda Rapid sedan. Wejdą dwie duże walizki 20kg. Po zdjęciu półki bagażnika, z ograniczeniem widoczności przez tylną szybę wejdzie też wózek spacerówka. A teraz o spalaniu: autostrada 100-120km/h w zakresie 3.9-4.2l/100km, 140-160km/h w zakresie 4.8-5.2l/100km, miasto 5.2-6.5l/100km (w zależności ile samochód jest na postoju z włączoną klimą w upalny dzień 35C). Przy prędkości 70km/h i płynnym ruchu auto potrafi spalić 3.3l/100km. Silnik w mieście jest elastyczny. Przy aktywowanym Start&Stop i Hill Assist, jeśli go niechcący zadusimy to sam się odpali. Start&Stop działa szybko, poniżej 1s od wciśnięcia sprzęgła. Auto żwawo przyśpiesza na dwójcie, trójce i przy odpowiednich obrotach na czwórce i piątce. Wyprzedzanie na autostradzie w zakresie 100-140 przebiega bezpiecznie. Powyżej 160km/h auto jest głośne i dalej rozpędza się bardzo wolno, ale nie jest to silnik zaprojektowany do takiej jazdy. Maksymalny moment obrotowy 250Nm jest dostępny od 1500 do 3000 rpm. Golf ten w Niemczech dostępny jest też jako po prostu BlueMotion, co oznacza, że nie tylko silnik ale cały samochód jest zoptymalizowany do ekonomicznej jazdy. Wtedy spalanie w mieście, poza miastem i średnie wynosi według producenta: 3.9, 3.2, 3.4l/100km. Średnia emisja CO2 to deklarowane 89g/km. Auris Hybrid deklaruje: 3.5, 3.5, 3.6l/100km, 82g. Chyba wolimy diesla, prawda?
wtorek, lipca 12, 2016
Ceph S3 API SignatureDoesNotMatch
Use Amazon SDK Client (https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip) and following Java code:
String accessKey = "1";
String secretKey = "2";
String endpoint = "http://localhost:8080";
String bucket = "UPPERCASE";
SignerFactory.registerSigner("S3SignerType", S3Signer.class);
BasicAWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
ClientConfiguration clientConfig = new ClientConfiguration();
clientConfig.setSignerOverride("S3SignerType");
clientConfig.setProtocol(Protocol.HTTP);
AmazonS3Client conn = new AmazonS3Client(credentials, clientConfig);
conn.setEndpoint(endpoint);
InMemoryRegionImpl region = new InMemoryRegionImpl("ceph", "localhost");
region.addEndpoint("s3", endpoint);
conn.setRegion(new com.amazonaws.regions.Region(region));
System.out.println(conn.listBuckets().get(0));
byte[] bytes = "Hello World!".getBytes();
ByteArrayInputStream input = new ByteArrayInputStream(bytes);
try {
ObjectMetadata md = new ObjectMetadata();
md.setContentLength(bytes.length);
md.setHeader("x-amz-acl", "public-read");
PutObjectRequest por = new PutObjectRequest(bucket, "plik.txt", input, md);
PutObjectResult res = conn.putObject(por);
System.out.println(res);
}
catch (AmazonS3Exception s3e) {
s3e.printStackTrace();
}
String accessKey = "1";
String secretKey = "2";
String endpoint = "http://localhost:8080";
String bucket = "UPPERCASE";
SignerFactory.registerSigner("S3SignerType", S3Signer.class);
BasicAWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
ClientConfiguration clientConfig = new ClientConfiguration();
clientConfig.setSignerOverride("S3SignerType");
clientConfig.setProtocol(Protocol.HTTP);
AmazonS3Client conn = new AmazonS3Client(credentials, clientConfig);
conn.setEndpoint(endpoint);
InMemoryRegionImpl region = new InMemoryRegionImpl("ceph", "localhost");
region.addEndpoint("s3", endpoint);
conn.setRegion(new com.amazonaws.regions.Region(region));
System.out.println(conn.listBuckets().get(0));
byte[] bytes = "Hello World!".getBytes();
ByteArrayInputStream input = new ByteArrayInputStream(bytes);
try {
ObjectMetadata md = new ObjectMetadata();
md.setContentLength(bytes.length);
md.setHeader("x-amz-acl", "public-read");
PutObjectRequest por = new PutObjectRequest(bucket, "plik.txt", input, md);
PutObjectResult res = conn.putObject(por);
System.out.println(res);
}
catch (AmazonS3Exception s3e) {
s3e.printStackTrace();
}
sobota, lipca 09, 2016
piątek, lipca 08, 2016
Tibco BW and SalesForce
You can access SalesForce integration API without dedicated adapter, just modify SF WSDL file:
<complexType name="sObject">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="fieldsToNull" nillable="true" type="xsd:string"/>
<element name="Id" nillable="true" type="tns:ID"/>
</sequence>
<attribute name="xsi:type" type="xsd:string"/>
</complexType>
<element name="upsert">
<complexType>
<sequence>
<element name="externalIDFieldName" type="xsd:string"/>
<element maxOccurs="unbounded" minOccurs="0" name="sObjects" type="xsd:anyType"/>
</sequence>
</complexType>
</element>
add manually namespace and prefix to BW process and fill @type attribute.
piątek, maja 27, 2016
Ratujemy meble zniszczone przez wilgoć
Płyta MDF to sprasowany wraz ze spoiwem w wysokiej temperaturze komponent drzewny. Gdy w płytę wniknie woda to puchnie i wypacza się. W dotyku robi się z niej tektura. Stolarz naprawia to rozbierając meble i wymieniając zepsuty element. Ewentualnie wycina, szpachluje i maluje natryskowo. W warunkach domowych możemy usunąć zepsutą warstwę nożem (resekcja do głębokości, na której płyta znowu jest twarda w dotyku), wyszlifować drobnoziarnistym papierem ściernym, wyrównać szpachlą drzewno-akrylową, ponownie wyszlifować, zagruntować Vidaronem i zamalować testerem koloru farby lateksowej, której warstwę spolerujemy pianką melaminową po upływie 2 tygodni od malowania. Dlaczego farba lateksowa? Jest bardzo duża szansa na dobranie koloru dostępnego w małym testerze. Nie dysponując warsztatem, raczej nie bylibyśmy w stanie zrobić gładkiej warstwy standardowego lakieru. Dużą naprawę zrobimy za parę lat.
wtorek, maja 24, 2016
Claim Check Pattern for multi hop BW integration with large payload
Problem:
With client adapter, enterpise orchestration service and provider adapter, exchanging large XML messages, JMS is a bottleneck - big message is usually stored to disk with expensive allocation (expansion) of data store. Piping it from disk to JMS session is also slow. With modern hardware 20MB of XML may be transported 20 seconds in one way. With every hop there is increased JMS overhead.
Solution:
From the last BW component return autogenerated HTTP URL pointing to this component HTTP listener - instead of large XML payload. Render original payload as XML and put it to Java static HashMap. HTTP Get should return from HashMap value for given key. HTTP listener should use Tomcat as underlying implementation with forced compression. HTTP Get should be performed using Accept-Encoding: gzip. The first BW component should analyze response message, detect that payload should be extracted via HTTP and unpack it transparently.
Pros:
KISS solution. Simple design, easy to implement.
Cons:
The last BW component needs HTTP port.
With client adapter, enterpise orchestration service and provider adapter, exchanging large XML messages, JMS is a bottleneck - big message is usually stored to disk with expensive allocation (expansion) of data store. Piping it from disk to JMS session is also slow. With modern hardware 20MB of XML may be transported 20 seconds in one way. With every hop there is increased JMS overhead.
Solution:
From the last BW component return autogenerated HTTP URL pointing to this component HTTP listener - instead of large XML payload. Render original payload as XML and put it to Java static HashMap. HTTP Get should return from HashMap value for given key. HTTP listener should use Tomcat as underlying implementation with forced compression. HTTP Get should be performed using Accept-Encoding: gzip. The first BW component should analyze response message, detect that payload should be extracted via HTTP and unpack it transparently.
Pros:
KISS solution. Simple design, easy to implement.
Cons:
The last BW component needs HTTP port.
poniedziałek, maja 23, 2016
AmeriGas Nano
Subskrybuj:
Posty (Atom)









































































































