Minute pass by another minute, A second ahead previous one....
Tick tick tick... i wake up in surprise,awake from dream.. and just realize another month has passed by.. gosh how quick time is , you can say don't, stop and just slip away from your finger,
Watching the hair becomes white. the body becomes cripple by age..
have i done it right? what should i think of, other than what i do for living? How's my wish .. Can it comes true. what is the purpose of this short life...
Imagine I'm some one else .. better or not
There are thousand of question in my mind.. but yet the answer is second to none..
Till death meet us with God..
Time can you stop just for a minute. give me a break in this drive to succeed..
How relieved it would be. Not to think just blank,
but now i realize i create the time.. i make the time, i use the time.. it is me that drowning it self. Get up and awake and manage it.
Rabu, 20 Mei 2009
Jumat, 20 Maret 2009
Not Such a Perfect World
Life is Like a mandarin song "Here We are is not a perfect World",
You can't never always get what you want. So many imperfection. Rich guy but can not sleep at night, you can buy the most luxuries bed in the world, but not the sleep it self. Or you can buy the best medicine but not always healthy.Or rich but look at your children, they use drugs.
Career Perfect, Great husband but no children.Or Career Great but no guys seems want's to even touch you. You are So broke that you only can buy tempe or something but you can eat with gracefully.
As the Bible also said, "the more your income, the more people who will spent it"
What Drive people in action and chaos "Money!!".
I thought earlier, hey if i get to this point of income , that would make my life better. it is, i can buy what i want.. but the life seems the same, There is nothing New. You buy Something Because you think than it can make your life better, so Buying something is to fulfill that thought , you can't put what you buy inside of you. it's the matter of fulfilling.
Pray so that under this sun, you can enjoy what ever the result of your work.
Enjoy your meal, sleep and spent time with your wife or beloved one. and that's it.
We are in a short life here. Like a Flower that grow, blossoms, and withered
Don't Sacrifice the Beloved one with Money and Career
You can't never always get what you want. So many imperfection. Rich guy but can not sleep at night, you can buy the most luxuries bed in the world, but not the sleep it self. Or you can buy the best medicine but not always healthy.Or rich but look at your children, they use drugs.
Career Perfect, Great husband but no children.Or Career Great but no guys seems want's to even touch you. You are So broke that you only can buy tempe or something but you can eat with gracefully.
As the Bible also said, "the more your income, the more people who will spent it"
What Drive people in action and chaos "Money!!".
I thought earlier, hey if i get to this point of income , that would make my life better. it is, i can buy what i want.. but the life seems the same, There is nothing New. You buy Something Because you think than it can make your life better, so Buying something is to fulfill that thought , you can't put what you buy inside of you. it's the matter of fulfilling.
Pray so that under this sun, you can enjoy what ever the result of your work.
Enjoy your meal, sleep and spent time with your wife or beloved one. and that's it.
We are in a short life here. Like a Flower that grow, blossoms, and withered
Don't Sacrifice the Beloved one with Money and Career
Jumat, 13 Juni 2008
another post
woah it's been a long time i don't post on this blog
i've been through some business,
which drawn me to no where.
You can see my other blogs.
on http://geeks.netindonesia.net/blogs/cipto/
i've been through some business,
which drawn me to no where.
You can see my other blogs.
on http://geeks.netindonesia.net/blogs/cipto/
Minggu, 09 Maret 2008
Proverty in indo
While every daily needs is increasing now.
especially recently from the Fried oil.. for cooking dunno what you call in english,
touching around 15.000 per kg.
i've heard a dramatic news. that cause it is so unaffordable , there are some poor people who cook with sand. . .
sounds awkward right?
but yes it's true . . .
when it's shown on tv, it can fried but not crispy result.
so what's next?
in indonesia, when it's poor it's very poor, but when the rich is extremely rich.
so there's no balance , i think the national developments should touch to this dilemma
especially recently from the Fried oil.. for cooking dunno what you call in english,
touching around 15.000 per kg.
i've heard a dramatic news. that cause it is so unaffordable , there are some poor people who cook with sand. . .
sounds awkward right?
but yes it's true . . .
when it's shown on tv, it can fried but not crispy result.
so what's next?
in indonesia, when it's poor it's very poor, but when the rich is extremely rich.
so there's no balance , i think the national developments should touch to this dilemma
Rabu, 05 Maret 2008
In the Middle of No Where
dear blog. . .
after a series of incident in my job
i think it takes more than just a hard work and intelligent.
so many those little things that make us more wise and success.
i finally got in some trouble and being put in a middle of no where
Hmm.. this is a nice obstacle or Exam in my life
it makes me think what about if some day i've no job or if i'm on business
how about if my business Bankrupt...
or how about if i dedicated in a company and then the company bankrupt.
There's nothing that is eternal in this (Fana) World.
Yet on every point in my life, there's has to be a solving way of any trouble
gee, what a headache that i've got.
despite i pass and revive again, it would be a start over
very sad though. . .
after a series of incident in my job
i think it takes more than just a hard work and intelligent.
so many those little things that make us more wise and success.
i finally got in some trouble and being put in a middle of no where
Hmm.. this is a nice obstacle or Exam in my life
it makes me think what about if some day i've no job or if i'm on business
how about if my business Bankrupt...
or how about if i dedicated in a company and then the company bankrupt.
There's nothing that is eternal in this (Fana) World.
Yet on every point in my life, there's has to be a solving way of any trouble
gee, what a headache that i've got.
despite i pass and revive again, it would be a start over
very sad though. . .
Kamis, 21 Februari 2008
Adding validation and business rule on DataTable
Open Dataset Designer , right click on the DataTable you wanted.
it will create partial class YourDataTableName.
and then on the
Create your Validation Sub
For instance
void CheckWorkTypeID(DirectCostRow directcostrow)
{
if (directcostrow.WorkTypeID == 0 || directcostrow.WorkTypeID == DBNull.Value)
{
directcostrow.SetColumnError("WorkTypeID", "Please Input A WorkTypeID");
}
}
it will create partial class YourDataTableName.
and then on the
Create your Validation Sub
For instance
void CheckWorkTypeID(DirectCostRow directcostrow)
{
if (directcostrow.WorkTypeID == 0 || directcostrow.WorkTypeID == DBNull.Value)
{
directcostrow.SetColumnError("WorkTypeID", "Please Input A WorkTypeID");
}
}
Rabu, 20 Februari 2008
Why My table doesn't appear on Local Data Chace Designer
1.Are not in the user’s default schema.
Note:
To determine which schema is being displayed, inspect the text above the list of tables. The text appears in the following format: Tables on 'DatabaseName.SchemaName'. The SchemaName listed is the current default schema. For information about default schemas, see User-Schema Separation in SQL Server 2005 Books Online.
2.Table Doensn't have a primary key defined.
3.Have names longer than 118 characters.
4.Contain columns with data types that are not supported by SQL Server Compact 3.5.
Note:
To determine which schema is being displayed, inspect the text above the list of tables. The text appears in the following format: Tables on 'DatabaseName.SchemaName'. The SchemaName listed is the current default schema. For information about default schemas, see User-Schema Separation in SQL Server 2005 Books Online.
2.Table Doensn't have a primary key defined.
3.Have names longer than 118 characters.
4.Contain columns with data types that are not supported by SQL Server Compact 3.5.
Handle Data Conflicts and Errors ADO.NET Synchronization
partial class LocalDataCache1ServerSyncProvider
{
protected override void OnChangesSelected(ChangesSelectedEventArgs value)
{
base.OnChangesSelected(value);
}
public override SyncContext GetChanges(SyncGroupMetadata groupMetadata, SyncSession syncSession)
{
return base.GetChanges(groupMetadata, syncSession);
MessageBox.Show(groupMetadata.BatchCount + " Change");
}
protected override void OnSelectingChanges(SelectingChangesEventArgs value)
{
base.OnSelectingChanges(value);
}
protected override void OnApplyChangeFailed(Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs value)
{
DataTable clientchanges = value.Conflict.ClientChange;
DataTable serverchanges = value.Conflict.ServerChange;
if(value.Conflict.ConflictType==ConflictType.ClientUpdateServerDelete)
{
value.Action = ApplyAction.RetryWithForceWrite;
}
if (value.Conflict.ConflictType == ConflictType.ClientInsertServerInsert)
{
value.Action = ApplyAction.RetryWithForceWrite;
}
if (value.Conflict.ConflictType == ConflictType.ClientUpdateServerUpdate)
{
//Logic goes here.
Form1 a = new Form1();
a.ultraGrid1.DataSource = serverchanges;
a.ultraGrid2.DataSource = clientchanges;
a.ultraStatusBar1.Text = "Data has been changed by other user since your last synchronization";
a.ShowDialog();
value.Action = a.action;
}
if (value.Conflict.ConflictType == ConflictType.ErrorsOccurred)
{
//Logic goes here.
MessageBox.Show(value.Conflict.ErrorMessage, "UnKnown Error Happened:Continuing");
}
}
protected override void OnApplyingChanges(ApplyingChangesEventArgs value)
{
DataSet clientchanges = value.Changes;
}
}
{
protected override void OnChangesSelected(ChangesSelectedEventArgs value)
{
base.OnChangesSelected(value);
}
public override SyncContext GetChanges(SyncGroupMetadata groupMetadata, SyncSession syncSession)
{
return base.GetChanges(groupMetadata, syncSession);
MessageBox.Show(groupMetadata.BatchCount + " Change");
}
protected override void OnSelectingChanges(SelectingChangesEventArgs value)
{
base.OnSelectingChanges(value);
}
protected override void OnApplyChangeFailed(Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs value)
{
DataTable clientchanges = value.Conflict.ClientChange;
DataTable serverchanges = value.Conflict.ServerChange;
if(value.Conflict.ConflictType==ConflictType.ClientUpdateServerDelete)
{
value.Action = ApplyAction.RetryWithForceWrite;
}
if (value.Conflict.ConflictType == ConflictType.ClientInsertServerInsert)
{
value.Action = ApplyAction.RetryWithForceWrite;
}
if (value.Conflict.ConflictType == ConflictType.ClientUpdateServerUpdate)
{
//Logic goes here.
Form1 a = new Form1();
a.ultraGrid1.DataSource = serverchanges;
a.ultraGrid2.DataSource = clientchanges;
a.ultraStatusBar1.Text = "Data has been changed by other user since your last synchronization";
a.ShowDialog();
value.Action = a.action;
}
if (value.Conflict.ConflictType == ConflictType.ErrorsOccurred)
{
//Logic goes here.
MessageBox.Show(value.Conflict.ErrorMessage, "UnKnown Error Happened:Continuing");
}
}
protected override void OnApplyingChanges(ApplyingChangesEventArgs value)
{
DataSet clientchanges = value.Changes;
}
}
Ado.net Synchronize
Hmmm...
i've try the sync one.
you just add new item localchace and
set where the Server reside.
and it will generate you everything including the client sql server compact.
you just say NameofYourChaceSyncAgent.Synchronize
and add this extracode for your localcache
partial class NameofYourChaceServerSyncProvider
{
protected override void OnApplyChangeFailed(Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs value)
{
DataTable clientchanges = value.Conflict.ClientChange;
DataTable serverchanges = value.Conflict.ServerChange;
value.Action = ApplyAction.RetryWithForceWrite;
}
protected override void OnApplyingChanges(ApplyingChangesEventArgs value)
{
DataSet clientchanges = value.Changes;
}
}
i've try the sync one.
you just add new item localchace and
set where the Server reside.
and it will generate you everything including the client sql server compact.
you just say NameofYourChaceSyncAgent.Synchronize
and add this extracode for your localcache
partial class NameofYourChaceServerSyncProvider
{
protected override void OnApplyChangeFailed(Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs value)
{
DataTable clientchanges = value.Conflict.ClientChange;
DataTable serverchanges = value.Conflict.ServerChange;
value.Action = ApplyAction.RetryWithForceWrite;
}
protected override void OnApplyingChanges(ApplyingChangesEventArgs value)
{
DataSet clientchanges = value.Changes;
}
}
Selasa, 19 Februari 2008
Sync FrameWork
After seeing the video ,
I wish that i can use this kind of products in project
on the video seems to good to be true.
I wish that i can use this kind of products in project
on the video seems to good to be true.
Serialize Dataset Using Binary Formatter and XML
How to Serialize to XMl
MyDataSet.writexml(path,xmlwritemode.ignoreschema)
If you want to keep the original datarow object information for later syncrhonized with database
MyDataSet.writexml(path,xmlwritemode.Diffgram)
DiffGram contains all of the DataRowVersion information as shown in the following XML
How to DeSerialize from XMl
MyDataSet.Readxml(path,xmlreadmode.Ignoreschema);
MyDataSet.Readxml(path,xmlreadmode.Diffgram);
How to Serialize to Binary
FileStream fs=new FileStream(
@"c:\MyDataset.bin",FileMode.Create);
BinaryFormatter fmt= newBinaryFormatter();
fmt.Serialize(fs, MyDataset);
fs.Close();
How to Deserialize from Binary
DataSetvendorData;
FileStream fs=new FileStream(
@"c:\MyDataset.bin", FileMode.Open);
BinaryFormatter fmt= newBinaryFormatter();
MyDataset=(DataSet)fmt.Deserialize(fs);
fs.Close();
MyDataSet.writexml(path,xmlwritemode.ignoreschema)
If you want to keep the original datarow object information for later syncrhonized with database
MyDataSet.writexml(path,xmlwritemode.Diffgram)
DiffGram contains all of the DataRowVersion information as shown in the following XML
How to DeSerialize from XMl
MyDataSet.Readxml(path,xmlreadmode.Ignoreschema);
MyDataSet.Readxml(path,xmlreadmode.Diffgram);
How to Serialize to Binary
FileStream fs=new FileStream(
@"c:\MyDataset.bin",FileMode.Create);
BinaryFormatter fmt= newBinaryFormatter();
fmt.Serialize(fs, MyDataset);
fs.Close();
How to Deserialize from Binary
DataSetvendorData;
FileStream fs=new FileStream(
@"c:\MyDataset.bin", FileMode.Open);
BinaryFormatter fmt= newBinaryFormatter();
MyDataset=(DataSet)fmt.Deserialize(fs);
fs.Close();
Senin, 18 Februari 2008
Binding to Listobject display no data
hmmm. i've encountered this problema .
what ever you bind whether ICOLLECTION, or DATATABLE.
Please do not fill it first then bind.
You bind it first then you fill/add the item
Whoallah it appears
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=137631&SiteID=1
Hey i found another solution
it is because you dont' set the propety
AutoSetDataBoundColumnHeader to TRUE
what ever you bind whether ICOLLECTION, or DATATABLE.
Please do not fill it first then bind.
You bind it first then you fill/add the item
Whoallah it appears
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=137631&SiteID=1
Hey i found another solution
it is because you dont' set the propety
AutoSetDataBoundColumnHeader to TRUE
Ribbon and Custom Task Panes
to add custom task pane. on ThisWorkBook.cs
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
{
this.ActionsPane.Controls.Add(new ActionsPaneControl1());
}
to add custom ribbon RIght click project ->add new item->ribbon visual designer.
Everything you add there will be on the Addins Menu when you F5(run).
You can eliminate any other menu on the sheet/workbook. By setting your custom ribbon property ->Start From Scratch ->TRUE
so there's only your menu showed up.
Whualla .. piece of cake
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
{
this.ActionsPane.Controls.Add(new ActionsPaneControl1());
}
to add custom ribbon RIght click project ->add new item->ribbon visual designer.
Everything you add there will be on the Addins Menu when you F5(run).
You can eliminate any other menu on the sheet/workbook. By setting your custom ribbon property ->Start From Scratch ->TRUE
so there's only your menu showed up.
Whualla .. piece of cake
Minggu, 17 Februari 2008
A song Depicts Jakarta's Road
hmm .. after a series of rain. and none of the roads seems to be fix. i always across many big holes on jakarta's road today.
and this morning i've found a song for it.
it comes from the old mcdonald song.
so here we goes.
"Jakarta has Some Roads"
Iya Iya yooooo
"And in on these road they has Some Holes"
Iya Iya yooooo
"at slipi holes, at menceng holes, at kemang holes"
Iya Iya Yooooo
"Jakarta is a big damn Holes"
Iya Iya Yooooo* upps watch out.... the hole.
Thank You
and this morning i've found a song for it.
it comes from the old mcdonald song.
so here we goes.
"Jakarta has Some Roads"
Iya Iya yooooo
"And in on these road they has Some Holes"
Iya Iya yooooo
"at slipi holes, at menceng holes, at kemang holes"
Iya Iya Yooooo
"Jakarta is a big damn Holes"
Iya Iya Yooooo* upps watch out.... the hole.
Thank You
Kamis, 14 Februari 2008
Towards the End of The World?
Well, Yesterday i saw that MTV commercial. About the Green House effect, 2050 there will be 30 Million people starving, all the big cities will be whelmed by this issue.
And the Glitzer or the ice mountain on the north/south pole will be all melt on 100 years if i'm not hearing it wrong.
Human will be the servant of money. won't care about each other.
I know why.. It's because when we do good deeds , and then we are done browned/deceifed.
so we won't do good deeds anymore, and our heart become a bitter.
if you see the disaster ,etc, will we still be survive in another 100 year?
And the Glitzer or the ice mountain on the north/south pole will be all melt on 100 years if i'm not hearing it wrong.
Human will be the servant of money. won't care about each other.
I know why.. It's because when we do good deeds , and then we are done browned/deceifed.
so we won't do good deeds anymore, and our heart become a bitter.
if you see the disaster ,etc, will we still be survive in another 100 year?
Rabu, 13 Februari 2008
SPK AbbaLove
Now, this is a pretty awkward(strange) teaching in churches called AbbaLove.
They said "We don't Recognize about Dating, In the Bible said nothing about Dating, there's only Marriage". So many of the cell group community especially girl, dump their sinful boyfriend which have those sin hand :) . So most of them said, "next time if somebody like me, i'd ask him if he's serious with me and jump to marriage".
My girlfriend is in one of their churches. After she said about this, I said " Bloody Hell, What the? are you crazy? People Dating because they want to know each other Character cause you'll be living with that character for the next of your live And a relationship is based on understanding and need more adjustment than you can even think". Relationship will go nothing further with out any effort, even a dog need to take care of, treat right, not to mention HUMAN. her bos which is christian disagree with this too, and most of the guys i think LOL.
I said also "THere's CAN NOT be that BIBLE written about Maria and josef going for a date in somewhere doing this and that??", "or Some Prophets Took His wife for a romantic dinner in some restaurant" Would'nt it?
This is what you called, not mature Mind Set, and social Life.
Which comes from Indonesian perspectives. "Hide those Sex things or Everything refers to it or smell like it undercover, it's taboo"
They said "We don't Recognize about Dating, In the Bible said nothing about Dating, there's only Marriage". So many of the cell group community especially girl, dump their sinful boyfriend which have those sin hand :) . So most of them said, "next time if somebody like me, i'd ask him if he's serious with me and jump to marriage".
My girlfriend is in one of their churches. After she said about this, I said " Bloody Hell, What the? are you crazy? People Dating because they want to know each other Character cause you'll be living with that character for the next of your live And a relationship is based on understanding and need more adjustment than you can even think". Relationship will go nothing further with out any effort, even a dog need to take care of, treat right, not to mention HUMAN. her bos which is christian disagree with this too, and most of the guys i think LOL.
I said also "THere's CAN NOT be that BIBLE written about Maria and josef going for a date in somewhere doing this and that??", "or Some Prophets Took His wife for a romantic dinner in some restaurant" Would'nt it?
This is what you called, not mature Mind Set, and social Life.
Which comes from Indonesian perspectives. "Hide those Sex things or Everything refers to it or smell like it undercover, it's taboo"
Senin, 11 Februari 2008
Creating Unit Test with VS 2005 teamsuite
Hey it's easy.
Just Right Click on the method you want to test
Choose Create Test Unit
And wualla the magic is creating new project for testing, and you are just coding on the What params to pass,
and then the Assert.
one thing about Assert is that if the result is false it Throw FAILED.
if true and it keep passing through.
common one:
Assert.EQUAL
ex:Assert.AreEqual(6, actual.Count, "Hey it should return just 6 member");
Assert.isnull
assert.notequal
and etc
Just Right Click on the method you want to test
Choose Create Test Unit
And wualla the magic is creating new project for testing, and you are just coding on the What params to pass,
and then the Assert.
one thing about Assert is that if the result is false it Throw FAILED.
if true and it keep passing through.
common one:
Assert.EQUAL
ex:Assert.AreEqual(6, actual.Count, "Hey it should return just 6 member");
Assert.isnull
assert.notequal
and etc
Object Binding and Search Support
After i followed the video of how to on vbhowto.
i finally realized that an object can be bind ,what most is search,filter support
here is an example of how to add search support, filtered is next

using System.ComponentModel;
namespace SampleObject
{
public class SearchAbleBindingList : BindingList
{
//first override supportsearching core return true
protected override bool SupportsSearchingCore
{
get
{
return true;
}
}
//second override findcore
protected override int FindCore(PropertyDescriptor prop, object key)
{
for(int i=0;i<=Count-1;i++)
{
T item = this[i];
if (prop.GetValue(item).Equals(key)) return i;
}
return -1;
}
}
}
using System.ComponentModel;
namespace SampleObject
{
public class customer
{
private string _name;
private string _adress;
public string name
{
get { return _name; }
set { _name = value; }
}
public string address
{
get { return _adress; }
set { _adress = value; }
}
private BindingList _orders=new BindingList();
public BindingList orders
{
get { return _orders; }
}
public customer(string _name, string _adress)
{
this._name = _name;
this._adress = _adress;
}
}
public class order
{
private int _id;
private string _productname;
private int _quantity;
public int id
{
get { return _id; }
set { _id = value; }
}
public string productname
{
get { return _productname; }
set { _productname = value; }
}
public int quantity
{
get { return _quantity; }
set { _quantity = value; }
}
public order(int _id, string _productname, int _quantity)
{
this._id = _id;
this._productname = _productname;
this._quantity = _quantity;
}
}
}
i finally realized that an object can be bind ,what most is search,filter support
here is an example of how to add search support, filtered is next

using System.ComponentModel;
namespace SampleObject
{
public class SearchAbleBindingList
{
//first override supportsearching core return true
protected override bool SupportsSearchingCore
{
get
{
return true;
}
}
//second override findcore
protected override int FindCore(PropertyDescriptor prop, object key)
{
for(int i=0;i<=Count-1;i++)
{
T item = this[i];
if (prop.GetValue(item).Equals(key)) return i;
}
return -1;
}
}
}
using System.ComponentModel;
namespace SampleObject
{
public class customer
{
private string _name;
private string _adress;
public string name
{
get { return _name; }
set { _name = value; }
}
public string address
{
get { return _adress; }
set { _adress = value; }
}
private BindingList
public BindingList
{
get { return _orders; }
}
public customer(string _name, string _adress)
{
this._name = _name;
this._adress = _adress;
}
}
public class order
{
private int _id;
private string _productname;
private int _quantity;
public int id
{
get { return _id; }
set { _id = value; }
}
public string productname
{
get { return _productname; }
set { _productname = value; }
}
public int quantity
{
get { return _quantity; }
set { _quantity = value; }
}
public order(int _id, string _productname, int _quantity)
{
this._id = _id;
this._productname = _productname;
this._quantity = _quantity;
}
}
}
Langganan:
Postingan (Atom)

