Saturday, April 29, 2017

My Vid



Downhill Progression, :) . FMaj7 Em11 D#Maj7 Dm7 C#Maj7 CMaj7 BbMaj7 Am7. #guitarist using #telecaster #guitar



http://ift.tt/2pvLg0d.

MyPic.




Adek, ikut jalan sehat di sekolahnya ibuk, 😁

http://ift.tt/2pHY4l2

MyPic.




My Girl, 😍.

http://ift.tt/2oV7mGe

Friday, April 28, 2017

My Vid



Monkey Song. #endahnrhesa cover using #telecaster #guitar



http://ift.tt/2paDoRc.

Wednesday, April 26, 2017

MyPic.




Ini bukan sedang makan, tapi bikin mobil balap. Dengan kemudi warna merah dan dilengkapi dngan sayap spoiler belakang, :)

http://ift.tt/2pygm88

Monday, April 24, 2017

Sunday, April 23, 2017

Saturday, April 22, 2017

My Vid



When You Love Someone. #endahnrhesa cover, using #casio #keyboard



http://ift.tt/2owZGdh.

Friday, April 21, 2017

My Vid



Locked Out of Heaven. #brunomars cover, using #acousticguitar with two #guitarist (actually just one #guitar, played twice, 😁)



http://ift.tt/2oxfDz7.

My Vid



Wish You Were Here. #endahnrhesa cover, using nylon #acousticguitar with drop-D tuning on both #guitar . :)



http://ift.tt/2p1cPyg.

Thursday, April 20, 2017

MyPic.




Dapet kiriman @PitoyoAmrih dari sahabat maya, sebut saja namanya Mawar, :P

http://ift.tt/2oYromb

Wednesday, April 19, 2017

My Vid



Wish You Were Here. #endahnrhesa cover Using #telecaster and #bass #bassguitar



http://ift.tt/2pCFveY.

MyPic.




Tokoh yang jarang keluar, :)

http://ift.tt/2pR0lGz

Sunday, April 16, 2017

MyPic.




Ritual baru Beta sebelum tidur. Yup, itu payung, di kasur, :) . #slumber #hakunamatata

http://ift.tt/2oDhYvP

Saturday, April 15, 2017

My Vid



Hakuna Matata. From Lion King Movie. When Simba meet Timon and Pumba for the first time. #hakunamatata



http://ift.tt/2ohJyuZ.

Lion Sleep Tonight.



Hush, my darling, don't fear, my darling, the lion sleep tonight. with #keyboard , nylon #classicguitar and 5-strings #bassguitar . I'm #guitarist btw, :)



http://ift.tt/2ogPvZn.

Thursday, April 13, 2017

MyPic.




Alfa nggambar kapal yang sedang terbakar, :)

http://ift.tt/2nIf9ur

Wednesday, April 12, 2017

My Vid



#sape n classic nylon #guitar. Nice instrumen, nice sound, bad camera angle, :)



http://ift.tt/2ot4yCo.

My Vid



Jamming. Weird combination of Ukulele, Classic Nylon #guitar and Sape, a traditional dayak string instrumen.



http://ift.tt/2p8oN6C.

Newton Polynomial in Python

I wrote code for this in Delphi. This time I want to rewrite it in Python based on this wiki.

I use this set of data point
(0,0)
(1,1)
(2,4)
(4,16)
(5,25)

and I use xc=3 for the test data.

It's obvious that these sets of data points have quadratic form and f(xc) must have value of 9.




The heart of code lay on this


Tuesday, April 11, 2017

Seluas Harapan.



 #endahnrhesa cover using #bassguitar and #telecaster


http://ift.tt/2pq3Pjj.

Disorientasi


Kadang bingung sedang membaca buku @PitoyoAmrih yang mana, saking konsistennya. Banyak cerita yang ada di buku satu, menyisip di buku lainnya. Seakan empat atau lebih buku itu sebenarnya cuma satu buku yang dijilid bukan berdasarkan urutan, namun berdasarkan tema.

Saat membaca "Antareja dan Antasena", tiba-tiba serasa baca "Wisanggeni Membakar Api" saat tiba di bagian Antasena menjadi jagung.

Juga saat membaca "Pertempuran Dua Pemanah: Arjuna-Karna" serasa membaca sisipan dari (atau malah babon) dari "Kebaikan Kurawa".

Apakah itu berarti jelek? Tidak sama sekali. Ini berarti penulis memiliki satu plot besar yang dicurahkan di berbagai buku.

Newton Polinomial.


Here's code for Newton's divided differences interpolation polynomial (quite mouthful huh, :) ).

The purpose of this method is to create a function (polynomial) that passes through given set of data points.


Monday, April 10, 2017

Short Function.


Here's my implementation of function according to The Power of 10;

"Restrict functions to a single printed page."

As bonus, I didn't use global variable if possible. So if a function or procedure need a variable from others, it have to be passed using parameter on that function.

If we look at the code below, we know that it can be rewritten using a long single procedure or function. But according The Power of Ten, a function should be as short as possible so it could be printed in a single page.

So, instead one long multiple page function, I write/break it as several short-single-printed-page functions. :)


Hakuna Matata

[TIMON]
Hakuna Matata!
What a wonderful phrase
[PUMBA]
Hakuna Matata!
Ain't no passing craze
[TIMON]
It means no worries
For the rest of your days
[TIMON AND PUMBA]
It's our problem-free philosophy
Hakuna Matata!

The Lion Sleep Tonight

I really like this talented couple, :)

(juga pilihan jalur indie)
"Kami hanya akan manggung selama kami berdua bisa bahagia. "
-Endah N Rhesa-


.

Another Turtle in Circle

There's always another way to solve something.

So, I have another code for "Turtle in Circle" code, :)

In the script below, I use turtle position to determine if it's still inside circle or not. If it outside circle, instead of send it to zero position, I send it to random position inside circle.

import turtle
from random import uniform
import numpy as np

turtle.shape("turtle")
#turtle.speed(1)
x = 0
y = 0
rmax=40

for i in range (1,1000):
    a = uniform (-90,90) #angle
    turtle.left(a)
    d = uniform (-75,75) #distance
    x = turtle.xcor()+d*np.cos(a*np.pi/180)
    y = turtle.ycor()+d*np.sin(a*np.pi/180)
    r = np.sqrt(x*x+y*y)
    if r>rmax:
        turtle.setx(uniform(-rmax,rmax))
        turtle.sety(uniform(-rmax,rmax))
        x = 0
        y = 0
    else:
        turtle.forward(d)

turtle.exitonclick()



 

.

Setahun Kemarin.



 #kahitna cover. Semi #ambidextrous #drumming #openhandeddrumming



http://ift.tt/2nYBwrT.

#ArgentinaGP


Unlucky Dovi.


Wonderful strategy from Rossi, :)

(350th race)


Amazing Vinales.

Sunday, April 9, 2017

Turtle in Circle


I use previous code and improve it so the turtle could only move at certain circle area.

import turtle
from random import uniform
import numpy as np

turtle.shape("turtle")
#turtle.speed(1)
x = 0
y = 0

for i in range (1,1000):
    a = uniform (-90,90) #angle
    turtle.left(a)
    d = uniform (-75,75) #distance
    x += d*np.cos(np.pi*a/180)
    y += d*np.sin(np.pi*a/180)
    r = np.sqrt(x*x+y*y)
    if r>40:
        turtle.setx(0)
        turtle.sety(0)
        x = 0
        y = 0
    turtle.forward(d)

turtle.exitonclick()



 

.



Logic.

ifttt is powerful tool, if used wisely, :)

Enlight.

 An iOS app for picture editing






MyPic.




Rutinitas Minggu Siang. (using #enlightapp )

http://ift.tt/2oOZwld

MyPic.




Cerita detilnya menarik, dan @pitoyoamrih tetap ikut pakem, bahkan yang carangan. Aman diceritakan ulang, :D

http://ift.tt/2nQymFF

MyPic.




Kalimat Nicky favoritku, :D . @deelestari

http://ift.tt/2oeqSji

MyPic.






http://ift.tt/2oegKad

Anti MainStream.

Saat booming sepatu roda, Alfa malah sibuk berlatih skateboard, :D .


MyPic.




Langit Minggu, :)

http://ift.tt/2ockdVf

MyPic.




Minggu pagi, :) (using #enlightapp )

http://ift.tt/2obVL6i

MyPic.




Adek. :) (Using #enlightapp)

http://ift.tt/2oUoix6

Saturday, April 8, 2017

Random Turtle Movement.


I use turtle module, the standard module, in Python.

The turtle movement has random direction (angle), and random distance (forward/backward).


import turtle
from random import uniform

turtle.shape("turtle")
turtle.speed(1)
for i in range (1,100):
    #random angle
    a = uniform (-90,90)
    turtle.left(a)
    #random move
    d = uniform (-100,100)
    turtle.forward(d)

turtle.exitonclick()



 


.



#parikan


Dina sabtu, udan deres.
I love you, no less.

The Power of 10



Rules for Developing Safety-Critical Code:


Avoid complex flow constructs, such as goto and recursion.


All loops must have fixed bounds. This prevents runaway code.


Avoid heap memory allocation.


Restrict functions to a single printed page.


Use a minimum of two runtime assertions per function.


Restrict the scope of data to the smallest possible.


Check the return value of all non-void functions, or cast to void to indicate the return value is useless.


Use the preprocessor sparingly.


Limit pointer use to a single dereference, and do not use function pointers.


Compile with all possible warnings active; all warnings should then be addressed before release of the software.



Lihat



Gendhis: Kin, lihat aku.

Kinanthi: Iya


G: Lihat-lihat, Kin lihat...

K: He-eh


G: Lihat, hei, lihat Kin

K: Iya iya


G: Kin, sini lihaten tah...

K: eh nDhis, dari tadi aku lihat kamu, kamu saja yang ndak lihat aku yang sedang lihat kamu.

Panic and Run!

 

We know horses bite and they kick. Zebras are different. When they kick, they look behind themselves, aim and strike with purpose. 


The big problem with domestication, quite simply, is that zebras are mean. 

Really mean. 


http://www.ofhorse.com/view-post/Why-dont-we-ride-zebras


Happy


 #moccaband cover. Using a keyboard, #bassguitar and #telecaster.



http://ift.tt/2norh3J.

Friday, April 7, 2017

Seluas Harapan,



 #endahnrhesa cover. Using #bassguitar for melody line.

http://ift.tt/2ogMps6.

Prime Number on Python

We've done it using Delphi, how about Python? Easy, :)


for i in range (2,200):
    prime = True
    for j in range (2,i):
        if i%j==0: 
            prime=False
    if prime==True:
        print i


.

Oase


Lama ndak baca ginian.

Suka Antasena dari dulu, karena Wisanggeni terlalu sakti.  Menarik, cara @PitoyoAmrih menggambarkan GatotKaca.


Couldn't Sign In Youtube using Safari?

Relax.

and

  • click Safari
  • click Preferences
  • click Privacy
  • click Manage Website Data
  • search for Youtube, click it
  • click remove
  • try to sign in again
hope it help, :)


Prime Number on Delphi

Using Delphi to generate prime number? Okay, there's some code out there with

if (i mod 2 <>0) and (i mod 3 <>0) and (i mod 5 <>0) and (i mod 7 <>0) then i is prime.

Don't use that.

That's just for prime number below 100.

Use this instead.

var i,j:integer;
   prime:boolean;
begin
  for i:=2 to 200 do begin
    prime:=true;
    for j:=2 to i-1 do begin
      if i mod j=0 then prime:=false;
    end;
    if prime=true then memo1.Lines.Append(intToStr(i));
  end;
end;
.

My Only One,



 #moccaband #drumming cover. Semi #ambidextrous #openhandeddrumming



http://ift.tt/2oLcGiK.

My only one.


 #moccaband cover, #openhandeddrumming semi #ambidextrous #drumming



http://ift.tt/2oGDUHv.

#parikan


It's wee hour, lingsir wengi.
Ndak bisa tidur, malah nggawe kopi.

Thursday, April 6, 2017

Seperti Yang Kau Minta.



#chrisye cover. Melody line on #bassguitar.



http://ift.tt/2nP0gm5.

#parikan


iwak bawal ditambahi teri
sandal ku ki neng ngendi?

#parikan


arep blakrakan, klambian biru
maca parikan, kok akeh sing saru

#parikan

 
Mangan jangan nganggo piring.
Mangsa udan usume gering.

Wednesday, April 5, 2017

MyPic.




Chord-nya, hadeuh... #moccaband

http://ift.tt/2nXXVXb

I like this couple, :)

Especially with her story like in,  26:13


or their gimmick in the video below, :)



Seluas Harapan
(Endah N Rhesa)

Berkali kali kulewati jalan ini
Namun sekarang terasa berbeda
Saat kulangkahkan kaki dipesisir pantai
Terbentang luas, seluas harapan

Harapanku padamu untuk selalu disini
Harapanku padamu tuk bersama hingga akhir…waktu

Mungkin perjalanan ini memakan waktu
Hingga kita lelah tak sabar menunggu
Tapi kita telah berjanji untuk saling menyayangi
Walau apapun yang terjadi

Harapanku padamu untuk selalu disini
Harapanku padamu tuk bersama hingga akhir…waktu

Harapanku padamu untuk selalu disini
Harapanku padamu tuk bersama hingga akhir
Hingga akhir…waktu

My Vid



I Remember. #moccaband cover. Triplet, 😁. Melody line on #bassguitar



http://ift.tt/2oYNy4i.