Telegram setWebhook with curl

  • Posted on: 4 January 2016
  • By: oon
Telegram API setWebhook

first, you can check current Webhook information:

curl -v

replace TOKEN with your bot token, keep the "bot" before the TOKEN.

then setWebhook with:

curl -v -F "url=https://your.webhook.url"

that's all.



Modelling Wikipedia Articles (enwiki) Using Gensim

  • Posted on: 2 January 2016
  • By: oon
Gensim topic modelling for humans

(Artikel mengenai topik ini akan ditulis dalam bahasa Indonesia.)

Awal mulai penulisan artikel ini karena ingin mencoba (ekplorasi) aplikasi gensim, lalu mencari informasi apa yang bisa dilakukan aplikasi gensim untuk data yang cukup besar, lalu dari beberapa referensi mengacu pada pengolahan data wikipedia yang lebih dari 10GB (dalam format kompresi bz2 yang terkenal sangat efisien).

Ya tentu pertama yang harus dilakukan adalah download file artikel dari wikimedia: download enwiki-latest-pages-articles.xml.bz2 dari situs

There's No Such Thing as Landscape Printing

  • Posted on: 11 October 2015
  • By: oon
no such thing as landscape printing

This article really gives me an enlightment while setting-up a cups (google cloud print) based print server.

Portrait or landscape specify the orientation for viewing.

The viewing orientation is irrelevant for printing.

For printing it only matters whether or not the content of the page fits in the printable area of the paper regardless what the orientation for viewing the printed paper is.

Django REST Framework with ForeignKey Example

  • Posted on: 10 September 2015
  • By: oon

If you are a noob in Django or Django REST Framework (DRF),
it's pretty hard to find (complete) example about providing REST API for system with (sql relationship) foreign key on its database.

this example on SO is quite straigth forward and complete, about DRF with foreignkey.

ya, you also get django.test.Client information as a bonus. nice!

mostly my problem is about reverse relationship [1][2][3].