środa, czerwca 28, 2017

How to manually mount CIFS on Tomato router

mount -t cifs \\\\192.168.100.100\\netshare /opt -o user=guest,pas
s=guest,dom=WORKGROUP


wtorek, czerwca 27, 2017

Gdzie łączy się Amazon Echo

https://176.32.100.25 pindorama.amazon.com - /C=US/ST=Washington/L=Seattle/O=Amazon.com, Inc./CN=pindorama.amazon.com
http://93.184.216.34 www.example.org
https://54.239.27.11 dp-gw-na.amazon.com
https://34.204.159.84 onebox.amcs-tachyon.com - /C=US/ST=Washington/L=Seattle/O=Amazon.com, Inc./CN=onebox.amcs-tachyon.com (satellite network routing to AWS cloud)
https://72.21.195.18 dp-rsm-prod.amazon.com - Server:Jetty(7.6.0.v20120127)

poniedziałek, czerwca 26, 2017

Skrypt do szukania użycia encji z KMD w projektach BW

#!/bin/bash
[[ -z $1 ]] && echo "Usage: $0 entity-name" && exit 0
echo "Looking for $1"
find . -name "*.process" -print0 | while read -d $'\0' file; do CNT=$(grep $1 "$file" -c); [[ $CNT -gt 0 ]] && echo "Found in $file"; done

Mazanie stosem po pamięci

https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt?_ga=2.173030435.1854853461.1498475468-1500124305.1498475468

czwartek, czerwca 22, 2017

Dane z NBP

"Mamy wspaniały rząd, wybitnych fachowców, gospodarka idzie do przodu, a ludziom żyje się coraz lepiej" - Neonówka.

http://www.money.pl/gospodarka/wiadomosci/artykul/nbp-raport-sytuacja-finansowa-gospodarstw,155,0,2335643.html

piątek, czerwca 09, 2017

How to create instance of Java interface returning dummy data


wtorek, czerwca 06, 2017

Inosine i Groprinosin to placebo

Badania kliniczne pokazują, że substancja czynna jest o 17,5% lepsza od placebo jeśli chodzi o czas trwania infekcji, z prawdopodobieństwem ok. 30%. Na poziomie ufności 95% stwierdzono, że skuteczność porównawcza mieści się w przedziale -20%,  +70% (czyli "lek" jest gorszy lub lepszy). Z punktu widzenia statystyki takie badania niczego mocno nie dowodzą. Wykres dla 7 dni choroby jest gorszy niż dla placebo. Inosine i Groprinosin to ściema, a w dodatku droga!


poniedziałek, maja 29, 2017

Doskonała analiza Google Maps

https://www.justinobeirne.com/a-year-of-google-maps-and-apple-maps

sobota, maja 27, 2017

Antywirusy chmurowe są do kitu

http://blog.emsisoft.com/2017/05/12/wcry-ransomware-outbreak/

czwartek, maja 25, 2017

Microsoft Translator

https://translator.microsoft.com/neural


EMS stats in picture



piątek, maja 19, 2017

Empatia jest agile

Jeśli będąc w IT podchodzisz do biznesu z empatią, to masz większe szanse na sukces. Wchodzisz w dialog, chcesz pomóc, chcesz zrozumieć problemy, wyzwania i oczekiwania. Takie podejście sprzyja budowaniu zaufania i właściwych relacji. Pomagając biznesowi dbasz o swoją premię wynikającą z realizacji celu całej firmy. Aspekty społeczne w Business IT alignment są bardzo ważne.

czwartek, maja 18, 2017

Bug in Java(c)?

String lastReturnCode = "WAITING";
Long isSuccessful = ("OK".equals(lastReturnCode) || "DEAD".equals(lastReturnCode)) ? 1L :
 "WAITING".equals(lastReturnCode) ? null : 0L;
System.out.println(isSuccessful);

NullPointerException in the third line. Let's decompile class file.
Long isSuccessful = Long.valueOf((("OK".equals(lastReturnCode)) || ("DEAD".equals(lastReturnCode))) ? 1L : 
(("WAITING".equals(lastReturnCode)) ? null : Long.valueOf(0L))
.longValue());

No proper autoboxing here. Use Long.valueOf(1L) to fix it.

poniedziałek, maja 15, 2017

How to monitor Tibco BW with free tools

Connect to BW via JMX. Export metrics to Prometheus PushGateway via BW Timer or cron. Use metrics in preferred monitoring GUI.


środa, maja 10, 2017

Microsoft Face API dostępne publicznie

https://azure.microsoft.com/en-us/services/cognitive-services/face/


Clustered filesystem is built-in standard of Windows 201x

Use Cluster Shared Volumes in a Failover Cluster, https://technet.microsoft.com/en-us/library/jj612868(v=ws.11).aspx



piątek, kwietnia 28, 2017

Q&A session with Amazon Alexa

piątek, kwietnia 21, 2017

How I saved big money for Allegro with Tibco BusinessWorks using Java

Time is money. Tibco BusinessWorks is a business enabler allowing for rapid development and very short time to market. Company which deployed Tibco EAI stack has a real market advantage. Power of now. Usage of Canonical Data Model promotes reusability. Visual programming with predefined common activities makes it easy and fast to design processes. What about complex problems which would slow down development to the left from Tibco (system calling BW services) while accessing external operations from the right, for at least 6 months. No business integration means no money. Here is the case: API of the business partner had various usage limits on different levels (including global limit). Limits were interconnected and blocking or interrupting complex business processes. Implementation of usage counters, time slots and batching among all BW clients would took one year. In fact limits were preventing business cooperation. Hey, but Tibco is a business enabler, not a blocker! BW allows to include any static Java Custom Function as internal BW function visible among built-in functions. I created "throttling" custom function holding state across component restarts in 10 minutes. Addtional 2-3 hours of development saved months of hard and complex work of BW callers! We started business cooperation much earlier and started earning money earlier. Tibco. Power of now!

Messaging of AliExpress

The biggest world global eCommerce - AliExpress has its own messaging and its source code looks interesting especially with claims "Throughout the period, 99.996% of the delay fell within 10ms, very few due to GC caused by the pause in 50ms or less, for the read and write ratio is almost balanced distributed message engine, the results are all exciting." which are about Java software.
With first look following can be spotted: heavy usage of java.util.concurrent, volatile keyword, ByteBuffers and very limited usage of synchronized blocks. File storage uses plain RandomAccessFile with OS-mapped ByteBuffers where everything read and written is with computed offsets. Flushing data to disk is performed in file groups which is very wise due to mechanical sympathy with underlying disks (think about hardware I/O queues and servicing according to given offsets). Memory storage uses direct ByteBuffers not affected by GC and also locked into physical memory with POSIX mlock call. Very smart! I was exploiting the last feature while writing near RealTime software for T-Mobile emergency number. It really helps to achieve low latency without outliers.





wtorek, kwietnia 18, 2017

6h

https://www.bloomberg.com/news/articles/2017-04-17/how-the-six-hour-workday-actually-saves-money