Komang Juli Sap...'s profileJuli Sapta Putra's spaceBlogGuestbookNetwork Tools Help

Juli Sapta Putra's space

November 19

Which Baby Are You ??

---------------JANUARY BABY--------------------
Pretty/handsome. Loves to dress up. Easily bored.
Fussy. Seldom shows emotions. Takes time to
recover when hurt. Sensitive. Down-to-Earth.
Stubborn. Repost this in 5 mins and you will meet
someone new in 8 days that will perfectly balance
your personality.

----------FEBRUARY BABY --------------------
Abstract thoughts. Loves reality and abstract.
Intelligent and clever. Changing personality.
Attractive. sexiest out of everyone.
Temperamental. Quiet, shy and humble. Honest
and loyal. Determined to reach goals. Loves
freedom. Rebellious when restricted. Loves
aggressiveness. Too sensitive and easily hurt.
Gets angry really easily but does not show it.
Dislikes unnecessary things. Loves making friends
but rarely shows it. Horny. Daring and stubborn.
Ambitious. Realizing dreams and hopes. Sharp.
Loves entertainment and leisure. Romantic on the
inside not outside. Superstitious and ludicrous.
Spendthrift. Tries to learn to show emotions.
Repost this in 5 mins and you will talk to someone
new and realize that you are a perfect match

-----------------MARCH BABY --------------------
Attractive personality. sexy. Affectionate Shy and
reserved. Secretive. Naturally honest, generous
and sympathetic. Loves peace and serenity.
Sensitive to others. Great kisser. Easily angered.
Trustworthy. Appreciative and returns kindness.
Hardly shows emotions. Tends to bottle up
feelings. Observant and assesses others.If you
repost this in the next 5 mins, you will meet your
new love in 8 days.

------------------APRIL BABY -------------------
Suave and compromising. Funny and humorous.
Stubborn. Very talkative. Calm and cool. Kind and
sympathetic. Concerned and detailed. Loyal. Does
work well with others. Very confident. Sensitive.
Positive Attitude. Thinking generous. Good
memory. Clever and knowledgeable. Loves to look
for information. Able to cheer everyone up and/or
make them laugh. Able to motivate oneself and
others. Understanding. Fun to be around.
Outgoing. Hyper. Bubbly personality. Secretive.
Boy/girl crazy. Loves sports, music, leisure and
travelling. Systematic. hot but has brains. If you
repost this in 5 mins, a cutie that's caught your eye
will introduce themselves and you will realize that
you are very much alike in the next 2 days.

-----------------MAY BABY -----------------
Stubborn and hard-hearted. Strong-willed and
highly motivated. Sharp thoughts. Easily angered.
Attracts others and loves attention. Deep feelings.
Beautiful physically and mentally. Firm Standpoint.
Needs no motivation. Shy towards opposite sex.
Easily consoled. Systematic (left brain). Loves to
dream. Strong clairvoyance. Understanding.
Sickness usually in the ear and neck. Good
imagination. Good physical. Weak breathing. Loves
literature and the arts. Loves travelling. Dislike
being at home. Restless. Not having many children.
Hardworking. High spirited. If you repost this in the
next 5 minutes, you will become close to someone
you do not speak to much in the next 4 days.

------------JUNE BABY -------------
You've got the best personality and are an
absolute pleasure to be around. You love to make
new friends and be outgoing. You are a great flirt
and more than likely have an a very attractive
partner. a wicked hottie. It is also more than likely
that you have a massive record collection. You
have a great choice in films, and may one day
become a famous actor/actress yourself - heck,
you've got the looks for it!!! IN the next 6 days you
will meet someone that may possibly become
one of your closest friends, if you repost this in 5 minutes.

----------------JULY BABY --------------
Fun to be with. Secretive. Difficult to fathom and to
be understood. Quiet unless excited or tensed.
Takes pride in oneself. Has reputation. Easily
consoled. Honest. Concerned about people's
feelings. Tactful. Friendly. Approachable.
Emotional temperamental and unpredictable.
Easily hurt. Witty and sparkly.
spazzy at times.
Not revengeful. Forgiving but never forgets.
dislikes nonsensical and unnecessary things.
Guides others physically and mentally. Sensitive
and forms impressions carefully. Caring and
loving. Treats others equally. Strong sense of
sympathy. Wary and sharp. Judges people
through observations. Hardworking. No difficulties
in studying. Loves to be with friends . Always broods
about the past and the old friends. Waits for
friends. Never looks for friends. Not aggressive
unless provoked. Loves to be loved. Easily hurt
but takes long to recover. Repost this in the next 5
mins and your reputation will boost someway in the next 12 days

------------AUGUST BABY ---------------
outgoing personality. takes risks. feeds on
attention. no self control. kind hearted. self
confident. loud and boisterous. VERY revengeful.
easy to get along with and talk to. has an "every
thing's peachy" attitude. likes talking and singing.
loves music. daydreamer. easily distracted. Hates
not being trusted. BIG imagination. loves to be
loved. hates studying. in need of "that someone".
longs for freedom. rebellious when withheld or
restricted. lives by "no pain no gain" caring.
always a suspect. playful. mysterious. "charming"
or "beautiful" to everyone. stubborn. curious.
independent. strong willed. a fighter. repost in 5
mins and you will meet the love of your life
sometime next month.

------------SEPTEMBER BABY ---------------
Active and dynamic. Decisive and haste but tends
to regret. Attractive and affectionate to oneself.
Strong mentality. Loves attention. Diplomatic.
Consoling, friendly and solves people's problems.
Brave and fearless. Adventurous. Loving and
caring. Suave and generous. Usually you have
many friends. Enjoys to make love. Emotional.
Stubborn. Hasty. Good memory. Moving, motivates
oneself and others. Loves to travel and explore.
Sometimes sexy in a way that only their lover can
understand. if you do not repost this in the next 5
mins, someone very close to you will become mad
at you in the next 8 days.

---------------OCTOBER BABY -------------------
Loves to chat. Loves those who love them. Loves
to takes things at the centre. Inner and physical
beauty. Lies but doesn't pretend. Gets angry
often. Treats friends importantly. Brave and
fearless. Always making friends. Daydreamer. Opinionated. Does
not care to control emotions. Unpredictable.
Extremely smart, but definitely the hottest AND
sexiest of them all. repost this in 5 mins or you will
not meet the love of your life for 10 years.

---------------NOVEMBER BABY --------------------
Trustworthy and loyal. Very passionate and
dangerous. Wild at times. Knows how to have fun.
Sexy and mysterious. Everyone is drawn towards
your inner and outer beauty and independent
personality. Playful, but secretive. Very emotional
and temperamental sometimes. Meets new people
easily and very social in a group. Fearless and
independent. Can hold their own. Stands out in a
crowd. Essentially very smart. Usually, the
greatest men are born in this month. If you ever
begin a relationship with someone from this month,
hold on to them because their one of a kind.

---------------DECEMBER BABY ---------------
This straight-up means ur the most good-looking
person possible... better than all of these other
months! Loyal and generous. Patriotic. Competitive
in everything. Active in games and interactions.
Impatient and hasty. Ambitious. Influential in
organizations. Fun to be with. Easy to talk to,
though hard to understand. Thinks far with vision,
yet complicated to know. Easily influenced by
kindness. Polite and soft-spoke n. Having lots of
ideas. Sensitive. Active mind. Hesitating, tends to
delay. Choosy and always wants the best.
Temperamental. Funny and humorous. Loves to
joke. Good debating skills. Has that someone
always on his/her mind. Talkative. Daydreamer.
Friendly. Knows how to make friends. Abiding.
Able to show character. one guy/girl kind of
person. Loveable. Easily hurt. Prone to getting
colds. loves music.

November 16

Inline XAML di silverlight

Standardnya kalau kita membuat silverlight with javascript project (kebetulan saya menggunakan Expression Blend September Preview) kita akan dibuatkan yang namanya file scene.xaml (suatu file yang berisi code untuk silverlight content). Nah nantinya file scene.xaml ini yang akan diload untuk merender UI dari silverlight app kita pada saat pemanggilan fungsi Silverlight.CreateObjectEX(...).
Tetapi beberapa waktu lalu saya mengalami masalah dengan file xaml tersebut. Setelah saya upload, web site yang saya "tanamkan" silverlight didalamnya hanya memunculkan sebuah kotak warna hitam (kebetulan saya menggunakan background warna hitam untuk silverlight plugin-nyaOpen-mouthed) yang kalau diklik kanan muncul menu "Silverlight Configuration" tanpa ada isinya. Saya sempat bingung juga, karena kalau saya coba di komputer saya sendiri semuanya berjalan dengan baik. Setelah dicek ternyata hal ini disebabkan si silverlight engine tidak bisa merender UInya yang ada di file scene.xaml. Dan setelah melakukan investigasi menyeluruh Tongue out saya menemukan penyebabnya, ternyata IIS pada server yang akan dijadikan hosting tidak mengijinkan si web site untuk meload file yang berekstensi .xaml.
Sebenarnya ada cara mudah untuk menyelesaikan hal tersebut yaitu dengan mendaftarkan MIME Types dan File Extensions di IIS di server sebagai berikut
 
Extension                      MIME Type
 
.xaml                           application/xaml+xml
.dll                        application/x-msdownload
 
Nah kalau kita tidak bisa mengutak-atik IIS pada server, kita bisa menggunakan cara kedua, yaitu dengan menggunakan INLINE XAML (xaml yang diletakkan di dalam page yang akan menjadi host dari silverlight plug in kita), dengan demikian kita tidak perlu menggunakan suatu file terpisah yang berekstensi .xaml.
Dibawah ini adalah contoh dari penggunaan Inline XAML
 
default.html
 
<html>
<head>
  <title>Display Date</title>
  <script type="text/javascript" src="Default.html.js"></script>
  <script type="text/javascript" src="Silverlight.js"></script>
</head>

<body bgcolor="Orange">

<!-- Deklarasi Inline XAML -->
<script type="text/xaml" id="xamlContent"><?xml version="1.0"?>
  <Canvas
    xmlns="http://schemas.microsoft.com/client/2007"
    Background="White">
    <TextBlock
      Canvas.Left="20"
      FontSize="24"
      Text="Test Inline XAML" />
  </Canvas>
</script>

<div id="SilverlightControlHost" >
  <script type="text/javascript">
        createSilverlight();
  </script>
</div>

</body>
</html>
default.html.js
 
function createSilverlight()
{
  Silverlight.createObjectEx({
  source: "#xamlContent",             //ID dari tag yang berisi Inline XAML
  parentElement: document.getElementById("SilverlightControlHost"),
  id: "SilverlightControl",
  properties: {
   width: "360",
   height: "60",
   version: "1.0"
  },
  events: {
   onLoad: null
  }
 });
}
 
 

Porting dari silverlight 1.0 Beta ke 1.0

Beberapa waktu yang lalu saya sempat mengerjakan sebuah web site yang menggunakan silverlight 1.0 versi beta. Nah tepat pada saat akan dilaunch (klo ga salah sekitar bulan agustusan) silverlight 1.0 beta berubah versi menjadi silverlight 1.0 RC1, saya tidak begitu memperhatikan akibat dari perubahan ini karena saya pikir versi baru (RC1 dan berikutnya) akan memiliki backward compatibility yang baik dengan versi sebelumnya. Tapi kenyataannya site yang saya kerjakan dengan silverlight versi beta itu tidak bisa diakses alias tidak muncul alias tidak jalan lagi Confused. Ternyata usut punya usut engine silverlight 1.0 beta (klo di java scriptnya versi 0.9) sudah tidak disupport lagi, and mau ga mau saya harus "sedikit" merubah site saya (daripada harus bikin dari awal lagi Wink) agar dapat berjalan menggunakan silverlight 1.0 (RC1 dan diatasnya).
 
Ada beberapa bagian yang harus diubah saat melakukan porting dari silverlight 1.0 beta ke versi diatasnya, antara lain
 
  • Gantikan file silverlight.js versi beta (klo anda buka file javascriptnya, di bagian atas terdapat versi silverlightnya yaitu 0.9 untuk versi beta) dengan file javascript.js versi 1.0 RC1 atau diatasnya (klo anda buka file javascriptnya versinya adalah 1.0).
  • Dibawah ini adalah script yang digunakan untuk memanggil fungsi yang akan menginstantiate silverlight plug in pada silverlight 1.0 beta

function createSilverlight()
{
 var scene = new VideoLibrary();
 Sys.Silverlight.createObjectEx({
  source: "xaml/Scene.xaml",
  parentElement: document.getElementById("SilverlightControlHost"),
  id: "SilverlightControl",
  properties: {
   width: "100%",
   height: "100%",
   version: "0.9",
   background: "black"
  },
  events: {
   onLoad: Sys.Silverlight.createDelegate(scene, scene.handleLoad)
  }
 });
}

if (!window.Sys)
 window.Sys = {};

 
if (!window.Silverlight)
 window.Silverlight = {};

Sys.Silverlight.createDelegate = function(instance, method) {
 return function() {
        return method.apply(instance, arguments);
    }
}

Pada script diatas terdapat kata "Sys.", nah ini akan menjadi masalah kalau kita menggunakan versi 1.0 RC1 dan diatasnya. Hal ini disebabkan Sys tidak lagi digunakan untuk merujuk Silverlight instance pada versi RC1 dan diatasnya. Untuk itu kita tinggal menghapus kata "Sys.". dari script diatas (dan di beberapa fungsi di file javascript yang lain).

Selain itu kita juga harus mengubah version di propertiesnya dari "0.9" menjadi "1.0"

Sehingga sekarang scriptnya akan menjadi

function createSilverlight()
{
    //create an instance of the Scene class, contained in Scene.xaml.js

    var scene;
    scene = new LumosVideoClient.VideoArea();
   
    //Create the Silverlight player object
    Silverlight.createObjectEx({
        source: 'xaml/VideoArea.xaml',
        parentElement: document.getElementById('SilverlightPlugInHost'),
        id: 'SilverlightPlugIn',
        properties: {
            width: '100%',
            height: '100%',
            background:'#ffffffff',
            isWindowless: 'false',
            version: '1.0'
        },
        events: {   
            onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
        },  
        context: null
    });
}

if (!window.Silverlight)
 window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
 return function() {
        return method.apply(instance, arguments);
    }
}

  • Di xaml filenya, kita juga harus merubah properties value untuk menyembunyikan suatu control (Visibility), dari yang sebelumnya Visibility="Hidden" menjadi Visibility="Collapsed", saya tidak begitu mengerti kenapa namanya berubah dari Hidden menjadi Collapsed (mungkin saya harus bertanya kepada tim pengembang silverlightnya Open-mouthed)

Mungkin ada hal-hal lain yang masih harus dilakukan, tetapi minimal langkah-langkah diatas sudah dapat membantu saya untuk melakukan porting dari silverlight 1.0 Beta ke silverlight 1.0 RC 1 atau diatasnya.

Nah setelah melakukan langkah-langkah diatas kita bisa melakukan testing dengan menjalankan site yang sudah kita porting tadi menggunakan engine silverlight 1.0 RC 1 atau diatasnya. Kalau tidak ada masalah berarti kita sudah sukses melakukan porting, kalau masih terdapat masalah (misalnya muncul error "function not supported" berarti ada beberapa fungsi lain yang harus dihapus atau diganti dengan fungsi lebih baru, untuk itu kita bisa search di silverlight documentation Wink).

 

September 13

Hello World......

Klo baca judulnya mungkin ada yang teringat dengan program pertama yang dibuat setiap kita mempelajari suatu bahasa pemrograman Open-mouthed.
Yup, halo dunia....... ini adalah posting pertama yang saya tulis untuk blog yang pertama juga, semoga selanjutnya saya bisa tetap menulis hal2 yang berguna buat orang lain, temen2, komunitas, bangsa dan negara (buset dah......Tongue out ). Pokoknya tetap semangat........!!!!! Wink
 

Komang Juli Sapta Putra Hantana

Occupation
Location
"Lonely macho warriors, battling against a sea of bits and bytes."
Thanks for visiting!
Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.