June 18 2017, 21:24

Published a comprehensive article about PDF generation on the server: libraries, approaches, methods, issues, and their solutions. A special case is when you need to generate a multi-page document like a contract. Created a prototype using document templates and merging.

This article has very little about hybris and the approach in general is quite universal, not dependent on the platform.

Also got a bit into the PDF format. My goodness, what it is… But they say that’s how it is at Adobe, and I haven’t even seen PSD yet.

https://hybrismart.com/2017/06/15/pdf-and-sap-hybris/

June 16 2017, 14:38

I did it! Creating a PDF on the server based on a template prepared in MS Word or MS Excel (probably in other software too – needs testing). Data from the database or a user form is inserted in place of tokens within the document. And yes, it turned out to be insanely difficult (but now I know a ton about PDFs).

There are several complications for which there is no neat solution yet. 1) only two monospaced fonts 2) of course, the text from the template does not flow onto the next page if the insertion is larger than the reserved space 3) the template needs to include invisible text with all the variety of characters [to enhance the PDF dictionary for that particular font] 4) Theoretically, in some new or old version, or due to some clever block placement or specific settings, Word may generate PDFs that my code does not understand. Theoretically.

June 14 2017, 15:01

Folks, why don’t we have an uber-like service for deliveries from brick-and-mortar stores? Just to throw some money into the service, specify what you need, and get the product delivered to your door as is within half an hour (or thereabouts). The “courier” pays for the goods at the store. You pay the courier through the service after delivery. If you’re not happy, you complain to the service for a refund. The service checks what was requested against what was delivered. The courier’s responsibility is not to go for poorly specified items (or to ask additional questions). Accordingly, such a service would contract with store websites. Delivery within an hour since it’s assumed that all couriers live near both the store and the delivery recipient (otherwise, they wouldn’t be suggested by the system).

P.S. Found it. UberRush, http://www.deliv.co/ – turns out such services already exist

June 13 2017, 12:42

Since my daughter will (relatively) soon be applying to universities, I am looking into grants because education is expensive ($40-70K per year).

Apart from normal grants, I found some amusing ones. They give you up to three if you are into parapsychology (you need to prove it somehow, write an essay). They give a thousand dollars for being tall (187 cm for men and 177 cm for women). $5000 is awarded for presenting the best dress made out of duct tape (conducted by the manufacturer). There’s a scholarship for individuals with the last name Zolp and active vegetarians. Also, left-handers get some money http://www.collegescholarships.org/scholarships/left-hand.htm

http://www.collegescholarships.org/scholarships/unusual.htm

June 12 2017, 15:13

What a cool thing! Amazon Rekognition. It figured out from my Florida photo that it was a coupe car in the parking lot! It even thought it was a sports modification. On another photo from the same place, it correctly identified a tropical waterfall. It considered mom’s embroidery as Art, recognizing a person in it. It assessed Masha from behind as a dancer, despite the rear view. In my photo of wet rice, it guessed the rice and the dish. Knows musical notes. Guessed a boat and people in it on my photo from the river. Horses. Bikes in New York. A pig in the mud. Totally awesome!

There’s an API, 1000 images for a dollar and less with larger volumes.

This thing also can recognize faces and describe them from the image. Knows celebrities. Can determine resemblances. Tried to compare myself at different ages – didn’t recognize me 🙂 when I cover my face with my hands, also not so great. But in other cases – it recognises quite well!

There are also rates for storing face profiles — $0.01/face.

Plus, it can moderate uploaded photos for adult content, apparently for the same $1/1000 images.