How to run a XAP file from desktop

Drives-Windows-Phone-Metro-icon Here’s how to run a XAP file from Windows (desktop/laptop) without the access of Windows Phone.

1. Install Windows Phone SDK

Download and install Windows Phone SDK.

2. Run “Application Deployment”

After the SDK installation, we will get access to Application Deployment app from the program files menu.

WP7ApplicationDeployment

3. Select a XAP file to simulate.

Choose your XAP file and select Windows Phone Emulator to simulate. In case you have no access to a XAP file, you may download and try a simple app i developed here.

WP7XAPSimulator

4. Click the Deploy button.

After the deployment, you can normally find the app under and application list.

WP7Menu

Read More

Keep your facebook page updated using scheduling tools

facebook-thing-icon[Update 16.June.2012: Facebook has add post scheduling feature for page admin. Refer comment below by Victor Stanescu]

Running an engaging facebook page for a brand requires consistent postings and engagements (two way communications). While we can’t automate the interactivity part, but we can look into status/post scheduling tools to keep our page active. Below are two Facebook Post Scheduler that my company is using, we use it to plan and schedule our posts across the day and month. It helps us in planning and providing quality information to our followers and at the same time create a sound brand name for us. Here’s the tools.

 

1. Octopost

Octopost is the first tool we discovered and use to schedule our posts, it’s an facebook app where you can reach at https://apps.facebook.com/octopost/. Free version is available with 10 post limitation per month. While the unlimited version cost only USD 5 per month. On top of the familiar Facebook-like UI, we found its analytic part - “Engagement Insights” widget particularly useful to analyse and evaluate your post performance. This widget shows stats like "Total Responses – in like, comments etc” to your post.
Octopost went extra mile to help you with your finding content to post with the “Browse for Ideas”, such a great idea and convenient tool but hell, it’s a bad idea to use it! The content available in the directory are populated with international content and far not niche to engage our audience (unless you are running some sort of international news fan page). Kudos to Octopost for coming up with such a great tool and hope they can further improve in the “Browse for Ideas” widget and make it a unbeatable product.

 

2. Postcron

Postcron is another tool recommended by a friend of us. Like Octopost, it’s available Free with 10 post per month limitation. Their app can be found on http://postcron.com/. Their UI looks tidier and load faster as compare to Octopost. It also allows scheduling to twitter too . It has a good “Search Feature” which allow you to search through your post but it has an annoying “Time Zone Request” prompt. The app prompt for your time zone every time you login to the page which i feel quite annoying.
Feel free recommend your secret tools in the comment area. Happy facebook-ing!
Read More

Started a CSR project with a group of students – melaka3.com

Gullivers-Travels-icon Three months back, we started a project with a group of students. They were hired into the company to help setup and run a CSR (corporate social responsibility) project of my company – Melaka3.com

Melaka3.com is a brain child of these students and me, we were challenged to kick start a CSR project with limited funding (from my company) and technical support from the staffs. We came out with a few ideas and decided to go with Melaka3.com project because we think that it’s a sustainable and achievable project to run given our limited resources. So, what Melaka3.com is all about? and why it’s a CSR project?

Melaka3.com is a non-profit website to promote Melaka as a tourism spot, we share travel-related information and review interesting places around Melaka that we have personally visited. We thought that this is an interesting project to work-on given all of us been staying here for at least few years and each have some special places or recommendations to share (it’s a good excuse to explore Melaka too). :P We believe we could help promote Melaka as a must stop place for tourist travelling to Malaysia (a lil’ Melakanism here :D), and we believe we can do this efficiently given the IT expertise available in the company (which i soon found that we need more than IT expertise, for example, we need designer and marketing talents. :( Well, let’s deal with this later).

These are what we have done so far:

  1. Melaka3 home page – www.melaka3.com 
  2. Melaka3 social medias:
  3. Sponsored JCI IAB 2012 at Dataran Pahlawan Melaka.
  4. Discovered and review a cafe with lots of good feedback from our followers.
  5. Give away a 2GB DDR3 Ram to our Facebook follower (a second hand RAM we got after upgrading some of the laptop in the company) via a simple competition.
  6. Sponsored to students to participate in a beauty contest.
  7. Made 71 blog posts (yup, we know our blog posts are not in good quality but we are working on this. yes, please trust me, we notice.)
  8. Sending out weekly newsletter to our subscribers about the latest happening and promotions in Melaka.

I personally hope this baby will grow and help contribute to Melaka tourism. Kudos to the dedicated and talented who help setup and running this project; they are Edwin, Teck Chia, Shin (aka Monkey), YS Hon, Sang Heng, Jaclyn, Matthew, Yeishyan, and Tian Lee. And thanks to our followers.

Read More

JMC Excel Split – Split excel worksheets into separate workbooks.

Microsoft-Excel-icon This tool helps splitting multiple excel sheets and save each of them as an independent file. It was created following a feature request in another tool that I created - JMC Excel.

If you have many excel sheets created in multiple excel files and wanted to save each of them separately as workbook (or independent .xlsx file), JMC Excel Split will come in very handy.

Below is the download link to the trial version (which can split up to 5 files and 5 sheets each).

JMC Excel Split Download Link

 

 

Want to thank me? Buy me a coffee. Paypal Donation of any amount is welcome. 

Remove limitation by Buying JMC Excel Split at USD 7 only. Contact jeeshenlee@gmail.com.

paypal-logo

Read More

How to update value of LINQ results using FOREACH loop

LINQ queries are lazy loading – that means execution of reading is delayed until it’s iterated. Once set in the LINQ Select statement, the value stored in the result are set as READ ONLY hence setting the value in a FOREACH loop will not really update its data.

For example:

1 var schedules = from roomRate in _entities.RoomRates
2 select new ScheduleViewModel
3 {
4 RoomTypeId = roomRate.RoomTypeId,
5 Rates = roomRate.Rates,
6 Selling = 0,
7 Booked = 0,
8 };
9 foreach (var schedule in schedules)
10 {
11 schedule.Booked = 1;
12 schedule.Selling = 1;
13 }
Variable ‘Schedules’ field Booked and Selling  are not updated even after the FOREACH Loop.

To update the LINQ result using FOREACH loop, I first create local ‘list’ variable and then perform the update using FOREACH Loop. The value are updated this way. The example code below exemplify my idea and i further cast it back to IQueryable :)


Hotelebuddy



1 public IQueryable<ScheduleViewModel> GetScheduleForHotelBetween(int hotelId, DateTime startDate, DateTime endDate)
2 {
3 var schedules = from roomRate in _entities.RoomRates
4 join ratesTypeEnforceDate in _entities.RatesTypeEnforceDates on roomRate.RatesTypeId equals
5 ratesTypeEnforceDate.RatesTypeId
6 where roomRate.RoomType.HotelId == hotelId &&
7 ratesTypeEnforceDate.EnforceDate <= endDate &&
8 ratesTypeEnforceDate.EnforceDate >= startDate
9 select new ScheduleViewModel
10 {
11 RatesType = ratesTypeEnforceDate.RatesType.Name,
12 Date = ratesTypeEnforceDate.EnforceDate,
13 RoomTypeId = roomRate.RoomTypeId,
14 Rates = roomRate.Rates,
15 Selling = 0,
16 Booked = 0,
17 };
18 var schedulesList = new List<ScheduleViewModel>(schedules.AsEnumerable().ToList());
19 foreach (var schedule in schedulesList)
20 {
21 schedule.Booked = BookingDetails.GetBookingCountForRoomTypeOn(schedule.RoomTypeId,
22 schedule.Date);
23 schedule.Selling = RoomForSales.GetRoomForSalesCountForRoomTypeOn(schedule.RoomTypeId,
24 schedule.Date);
25 }
26
27 return (IQueryable<ScheduleViewModel>) schedulesList.AsQueryable();
28 }

Read More