Hot momma and cool poppa production Presents: “Constantine Barindra Nugroho” born on July 25th, 2008, 10:35 a.m, 2,9 kg, 51 cm, at Family Medical Center (FMC) Hospital, Bogor, Indonesia, with C-section. Constantine at Flickr!
Posts by "diditho"
Kill a lock process
The last method (workaround) to solve a lock status is by killing the process. Write this line to Kill a process in sql server:
1 2 3 4 |
--This example shows how to terminate SPID 55. KILL 55 --This example generates a status of the rollback process for the specific spid. KILL 55 WITH STATUSONLY |
–This is the progress report.spid 55: Transaction rollback in progress. Estimated rollback completion: 70% Estimated time left: 15 seconds.
3 e-Newspaper
Dalam sehari , inbox dan feedreader saya menampilkan informasi mengenai e-newspaper (koran digital) dari tiga pernebit koran cetak. Koran Kontan, Koran Tempo dan Koran KOMPAS. Ketiganya dapat diakses dengan bebas (tanpa biaya), paling tidak sampai hari ini (3 Juli 2008). Koran Tempo membutuhkan registrasi untuk beberapa fiturnya, sedangkan dua lainnya tidak membutuhkan registrasi. Koran Kontan… Continue reading
Tips Aman membawa Laptop / Notebook di Bandara dan Mal
Berita basi banget (basbang) sebenarnya, tapi masih sering muncul di beberapa milis dan masih menimbulkan banyak keraguan dan ketakutan. Untuk memberi ‘sedikit’ ketenangan, posting email dari salah satu milis yang saya ikuti mungkin bisa membantu. Konfirmasi ke pihak BSA Indonesia sebaiknya dilakukan, just to make sure. Pesan forward yang saya baca di milis netzaga beberapa… Continue reading
Multiple IIf Logic Block
IIf function often used in MultiDimensionalExpression (MDX), It’s quiet simple to implement single block of IIf block. This an example of Multiple IIf logic block. Example1:
1 2 3 4 |
IIf(Measures.[Store Sales] > 50000, "Good", IIf(Measures.[Store Sales] > 30000, "Average", IIf(Measures.[Store Sales] > 10000, "Poor", "No"))) |
If…Then..Else… in MultiDimensionalExpression
A logical script in MDX to perform an “If..Then.. Else..” block.
1 |
IIf(«Logical Expression», «Numeric/String Expression1», «Numeric/String Expression2») |
Example1:The following example returns 0 if Measures.CurrentMember is an empty cell, 1 otherwise:
1 |
IIf(IsEmpty(Measures.CurrentMember), 0, 1) |
Example2:The following string returns the string “Yes” if Measures.CurrentMember is an empty cell, the string, “No” otherwise:
1 |
IIf(IsEmpty(Measures.CurrentMember), "Yes", "No") |
Example3:
1 2 3 4 5 |
IIf( [Scenario].CurrentMember IS [Scenario].[Budget], [Measures].[Budget Unit Sold], [Measures].[ActualUnit Sold] ) |
Example4:Average Sales (Measure) By Time Day (Dimension)
1 2 3 4 5 6 7 |
IIf ( ([Time].currentmember.level.name = "(All)" OR [Time].currentmember.level.name = "Year" OR [Time].currentmember.level.name = "Quarter" OR [Time].currentmember.level.name = "Month" OR [Time].currentmember.level.name = "Day" ),AVG(Descendants(Time.CurrentMember,[Time].[Day]),Measures.[Sales]),0) |
Source:… Continue reading
Relative Contribution to Total Value (Percentage)
There’s a few scenario to calculate a percentage of a measure in OLAP CUBE (Analysis Service 2000). A Percentage is common calculation in MDX , and it can be solved by divide a measure to total value (Grand Total). Sample 1:Measures.[Value Contribution to Total]:
1 |
(Measures.[Value] / (Measures.[Value], Time.[All Time], Products.[All Products],…) |
Sample 2:Measures.[Value Contribution to Total]:
1 |
(Measures.[Value] / (Measures.[Value], Products.[All Products],Warehouses.[All Warehouses]) |
Sample 3:Measures.[Product Contribution to… Continue reading
Pondok Pemburu – Gunung Pancar, Nyasar!
Seperti biasanya, pada hari sabtu 17 Mei 2008 saya dan teman-teman (fami doang) KGC bersepeda di jalur offroad.Kali ini sasarannya adalah jalur Pondok Pemburu sampai Gunung Pancar. Kami benar-benar “buta”dengan jalur ini, bisa dibilang agak nekat juga, karena kami berdua belum pernah sama sekali mencicipi jalur ini.
MTB Heroes
Sama seperti cabang olahraga lainnya, Mountain Bike (MTB) juga memiliki icon atau “pahlawan” tersendiri. Tennis punya Maria Sharapova dan Roger Federer. Balap motor punya Valentino Rossi. dll… Jadi, siapa saja para icon atau pahlawan di dunia sepeda gunung ? Dimana mulai mencari ? Tiap tahun Union Cycliste Internationale (UCI) mengadakan perlombaan sepeda gunung bersklala besar… Continue reading
Encrypt and Decrypt Web.Config (Connection Strings, etc) from ASP Page
Example: How to encrypt/decrypt connectionStrings and SessionState section on Web.Config file? This is a codebehid sample script written on C# to perform Encrypt and Decrypt procedure against few items on Web.Config file. Single ASP.NET page can perform this task easily, so you don’t have to write any code in command prompt. Declare this namespace:
1 2 3 |
using System.Web; using System.Web.Configuration; using System.Web.Security; |