3 Apr 2012

Change Virtual HD (VHD) UUID in Oracle VirtualBox without Clone

This tips really helped me out when I want to copy a VHD and add a new virtual machine to my Oracle VirtualBox. I really liked VirtualBox, working fine until now, liked the integration between host and guest OS, really manageable but still have Cons on file Copy and Paste between host and guest OS. But when you tried to copy VHD to another location, and just add it to a new virtual machine, this thing came out!

image

Last time, I must clone that VHD which will create a new VHD/VDI with a new UUID, which was took very long time if your VHD more than a Gigs. Now, not anymore! Just ran this command, and in seconds, the UUID changed without clone the HD! And you can start creating your brand new virtual machine.

vboxmanage internalcommands sethduuid <the VHD path>

image

So sorry if my language screwed up Smile….

19 Mar 2012

Automatic IIS Configuration Script for SharePoint 2010

Just found out this batch script from Microsoft. Maybe you ever found this solution, but better to share piece by piece than just share the link from Microsoft.

IC399585

15 Feb 2012

Forefront Identity Manager Service Failed to Start in SharePoint 2010

Did you ever got this when restarting your SharePoint 2010 machine?
image

Too bad that this thing is always happening every time you restart your SharePoint 2010 machine. Got the answer from a buddy in internet (thanks Michael Hanes, this is really helping me a lot!). I got to tell you, this thing happens after I’ve upgraded my SharePoint development box to Service Pack 1.

This is the simple fix, I hope you’ll find this thing helpful to you by looking at the series of images below. Please ask me anything if it not clear to you. Thanks! Winking smile

30 Jan 2012

Simple Scheduled SSIS Package for Import Data

Well, next week will be a brand new workplace for me. This week means rest for me, and I’m happy with it. Anyway, I’ll share to you how to make a simple SQL Server Integration Service package to be scheduled every time. You don’t have to do a code, if your import job is very simple. I’ll show you more on next paragraph.

26 Jan 2012

Windows Live Writer is the Best Blog Writer!

You guys actually have your favorite blog writer application, or even don’t use it (only use the web version of Blogspot or Wordpress or whatever blog you’ve used). I have one my favorite, Windows Live Writer. My client installed with Windows Live Writer 2011.
image
So, what’s the feature so far? Let’s take a look!

Problems in SharePoint 2010, “The service was unable to start because the version of the database does not match the version of the product.”

Lately, I’ve updated my SharePoint 2010 development engine to SharePoint 2010 Service Pack 1, and after updating SharePoint 2010 to Service Pack 1, and starting all services, there’s one service won’t run, Forefront Identity Manager Synchronization Service. When looked at the Event Viewer log, it says The service was unable to start because the version of the database does not match the version of the product.

19 Jan 2012

How to Query SharePoint Web Analytics Reports from SQL Server

This time, I want to show you on how you can query the SharePoint Web Analytics Reports from your SharePoint 2010. It seems that some people still confused because on my previous post, I didn’t give any examples or anything to proof this. I need to apologize, and in this post, I’ll write about how to Query it first, so you can get what I ‘m trying to explain.

2 Des 2011

Tips: Simplify your ‘OR’ Logic in C#.NET

I think I do have a little tips for you to share. Not very significant tips, but you can use it for your daily practice.

Sometimes when you want to use a logic like this, it’s too long to write code.

Old Code
  1. if (Fld.Type == SPFieldType.Choice || Fld.Type == SPFieldType.Note || Fld.Type == SPFieldType.Integer || Fld.Type == SPFieldType.Number)
  2.     FieldContent = (string)Li[Fld.Id];

But you can simplify your code using this code below.

Simpler Code
  1. if (",Text,Note,Choice,Integer,Number,".Contains(Fld.TypeAsString))
  2.     FieldContent = (string)Li[Fld.Id];

Happy coding…! Winking smile

24 Nov 2011

Take Screenshot of your Android Devices

How to take a screenshot on Android? A little stupid isn’t it? I’m currently working with Microsoft Products, but my device for daily and mobile email is based on Android. But I think I’m not the only one. Microsoft a little s**ks but I made a money, got a cool job because of their products, and became better understanding in IT Products and lifecycles. Well, as long as it’s an IT tips, I think it’s OK.

Here’s a little tips for you, if you don’t know it. Press and hold Home button and then right away press Power button (see screenshot of Samsung Galaxy Y, with red mark), then you’ll got your screenshot of your Android devices automatically in your SD Card. AFAIK, this will work in Android 2.3 Gingerbread. For Android 2.2 Froyo, AFAIK, may vary, some says that press and hold back button and then right away press Home button.

21 Okt 2011

Get All Items including inside SharePoint Folder Programmatically using SPQuery

Just sharing the knowledge, I want to share about how to get all items / documents programmatically without getting inside the folder and querying it again. So, without folders, all items whether inside a folder or not, will be shown upon your query result.

Awwww, I’m not in Windows 2008 mode to copy my code in here and show some screenshots, but that’s just fine.

Using RecursiveAll in SPQuery
  1. SPQuery Q = new SPQuery();
  2. Q.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>BOOK</Value></Eq></Where>";
  3. Q.ViewFields = "<FieldRef Name='Name' /><FieldRef Name='ID' />";
  4. Q.ViewAttributes = "Scope='RecursiveAll'";

After you code your query, then you can add ViewAttributes and add Scope=’RecursiveAll’ to the SPQuery object.

Done, and all items whether inside a folder or not, will be shown upon your query result.