Learn SharePoint 2010 without installations or top hardware

So you have decided you want to get into SharePoint, but you find out that you need to have a pretty strong machine to run it. Actually the latest SharePoint 2010 needs 6 GB of RAM as a starting point to run well and a 64 bit Windows 2008 operating system.

You could actually learn without installing a thing! Yes. Microsoft offers a great service called MSDN Virtual Labs.MSDN vlab Using these Virtual Labs you can test and try almost every Microsoft technology and product. And of course SharePoint Virtual Labs is one of them. In the Lab courses you get to learn and have hands-on experience. They even include software which you would need like SharePoint Designer. Really helpful.

So go on and have fun Smile

Share

Make Connectify work with Avast

Recently I updated Connectify to version 3.1 and it just stopped working.

After sometime of trial and error I found out that Avast Antivirus(I have Avast Internet Security) was blocking some essential ports which Avast uses.

Basically what needs to be done are two things:

  1. Enable the Internet Sharing mode in the Firewall settings

    Enable Sharing Mode

  2. Enable some Firewall packet rules for the application ConnectifyNetServices.exe

    Enable some Packet Rules

That’s set, your ready Smile go ahead and try it.

Share

Microsoft and Hadoop

Looks like Microsoft is going to start integrating Hadoop based services in its server and database products. The services will be implemented in Windows Server, Azure and SQL Server 2012.

Hadoop open source project which is if I may say for cloud and distributed computing came to the picture as I  remember when Yahoo announced that they will be using it to store their data. That was long time ago. Later I also learned that other companies which need to manage their big volume of data like Google actually uses it too.

The good thing is that according to Microsoft’s statement is that existing Microsoft Business Intelligence tools will be compatible with Hadoop implementation.

Microsoft’s Hadoop’s efforts already showing results like a Hadoop to SQL Server connector for importing and exporting and an ODBC driver for Hive for real time querying from business intelligence tools into Hadoop.

Microsoft promised that they will contribute back whatever changes or additions they make and will commit to make it compatible with the open source project.

I love SQL Server and I’m glad to see this move from Microsoft. Hopefully this will help better manage big data requirements.

Share

How to save on Mobile bills in Syria

Just wanted to share a few tips about reducing your mobile bill.

So far we got two Mobile providers in Syria which are almost identical. SyriaTel and MTN.

SMS

It is not just in Syria, but in a lot of countries Mobile companies still charges a lot for SMS despite how simple it is.

Lately I noticed that MTN and SyriaTel are offering good bundles to reduce the SMS cost.

So I advice all the people who uses SMS to pick one of the offers below. It will even reduce your mobile bill while using SMS instead of calling :) I think the 100 SMS is sweet.

SyriaTel

Send SMS with the code to number 1220:

Messages Price Saving Code
25 SMS 50 SYP %67 ر 25
100 SMS 100 SYP %83 ر 100
3000 SMS 1500 SYP %92 ر 3000

MTN

To subscribe call *111# and choose package number:

Messages Price
25 SMS 50 SYP
100 SMS 100 SYP
Unlimited 1500 SYP

 

GPRS

While I still think that the GPRS cost is very high, the bundles are still a way to save some money if you need to use GPRS.

SyriaTel

Send SMS with the code to number 1221:

Messages Price Saving Code
3MB 50 SYP %33 ج 3
5MB 75 SYP %40 ج 5
12MB 150 SYP %50 ج 12
25MB 250 SYP %60 ج 25

MTN

To subscribe call *111# and choose package number:

Messages Price
3MB 50 SYP
5MB 75 SYP
12MB 150 SYP
25MB 250 SYP

 

Well that’s set for now, hope you like it :)

Share

Twitter Plugin for Windows Live Photo Gallery

Windows Live Essentials comes with lot of awesome applications.

My favorite is Windows Live Photo Gallery. Nice way of organizing and sharing your photos. Most favorite feature is facial recognition, which let you find photos by faces.

After adding photos it starts recognizing faces and ask you to tag the persons in the photos. After tagging people the application starts guessing the persons in the photos and asks if the guess was correct or not. And it gets better at it very fast.

So in the future, whenever you add new photos it will automatically tag people. I started adding really old photos, and I was surprised by its ability to guess that it’s me in a very old photo when I was about 3 years old! So smart!

Other great feature is how easy it is to share photos and videos. Out of the box you can submit your files to SkyDrive (Awesome free 25GB space from Microsoft), Flickr, Youtube and others. But I couldn’t find an option for Twitter!

That’s why I started making a Twitter plugin for Windows Live Photo Gallery. And I made it open source since I couldn’t find any open source plugin for the Windows Live Photo Gallery.

I used CodePlex to host the project and TortoiseHg for distributed revision control system.

Please note that this project is not complete yet. What is left for now is the integration with Windows Live Gallery.

What I’ve finished and is working now is uploading a photo to TwitPic and then post it to Twitter along with a message. What’s left is only using the Windows Live Gallery SDK to communicate with this little application.

The project is hosted here: http://twitter4wlpg.codeplex.com/

You are welcome if you would like to give a hand :)

Share

Grilled Chicken breast with Lemon and Thyme

Growing Thyme at home inspired me to cook something.

I opened the fridge and decided to use whatever I find.

Ingredients:
20110608-075016.jpg

  • 1/2 Kilo of skinless boneless Chicken breast
  • 2 Lemons
  • 3 spoons Olive oil
  • Pepper and Salt
  • 1 tea spoon of smashed garlic
  • Fresh Thyme
  • Flour (Decided not to use it)

Instructions:

I though it would taste good if I soak the Chicken with Lemon, so I squeezed a Lemon and a half into a plastic bag to soak the Chicken in it. Before that I splashed the Chicken breast with some salt and pepper. After that I placed the Chicken in the bag with some fresh Thyme leafs.

20110608-075035.jpg

And I left it in the fridge for about an hour.

When it was cooking time I spilled the olive oil on the pan and was heating it up on low fire, because I know olive oil gets hot quickly. Now it is garlic time. I love garlic, actually I love eating it but not getting it ready to be eaten. Thankfully my dear wife has already smashed some garlic and was stored in the fridge. Phew!

I tossed the garlic in the pan and moved them around till they started getting brown. Then I took the Chicken out of the plastic bag and started cooking it. I also spilled the Lemon which was left in the bag into the pan. Kept on flipping the Chicken until the Lemon and olive oil almost completely dried and the Chicken was brown. Yum! The smell was awesome! Oh writing this now made drool :)

20110608-075100.jpg

After the grilling was done I sprayed around some more fresh not cooked Thyme and squeezed the left half of Lemon over the Chicken. That’s set! It is now ready. To add more to the dish I just fried some french fries and I’m done.

20110608-075136.jpg

20110608-075153.jpg

I never did a big meal before, no bigger than a Burger with french fries, but I was happy about the results and my wife approve too :D

Share

Thyme

20110523-074208.jpg
Well I wanted to test WordPress for iPhone. Seems nice for mobile blogging.

Above is what I’m drinking. Home grown Thyme! Yup. It’s awesome for when having a flu and to refresh the respiratory system.

So this new WordPress iPhone app might actually get me blogging more.

Share

Thoughts about smart phones operating systems

We are becoming very dependent on our mobile devices. They are being used on a daily basis for communications, getting tasks done and even for entertainment.

Google has a nice video here to give you an insight of how important the mobile devices are becoming.

Mobile devices comes in many different shapes and styles, but I think what is more important than the hardware is its operating system.

Symbian

Dead! I have used Symbian ever since I got my first mobile. They were the best back then and until just recently. But Nokia had to make a change and now they are tied with Windows Phone 7.

Android

Pretty much a copy cat! Maybe this is a bit harsh, but this what I really think. Of course I mean copying iOS. Same grid of icons style and many other things. The only cool thing I see about Android is how easy it is to customize everything. Heck, I can even replace the SMS app! Which personally never thought of it before. At the end I feel it is clunky and more geek oriented. Not very much for the normal user. Many analysis companies predicting its dominance in the future. In my opinion that is because it is free. Free for the hardware companies to install it on their devices. Which make them able of shipping many kinds of hardware with Android system. Still, I don’t like the user experience with it.

As for developing for Android you use sort of Java. Probably will use Eclipse or what ever IDE you like.

Coming from .NET development, I didn’t like it! The IDE compared to Visual Studio is just lame.

Windows Phone 7

I was so excited when I heard Microsoft are working on a new version of their mobile system which will be done from scratch. And I think they delivered. They came out with a unique design and user experience. They didn’t just imitate other operating systems! You really feel that they had researchers who worked to study each aspect of it. For example, you can see here how they had a team to research the best way to make a virtual on screen keyboard.

Windows Phone 7 now is still a version 1 which means it still lacks some stuff and behind more mature operating systems such as Android and iOS. Also seems to have restrictions on developers more than what iOS had when it was out.

As Microsoft promised in Mix 11 event, all of these issues will be address with Mango update which is probably coming out on September 2011.

As for developing for Windows Phone 7, Microsoft got the best tools for it, and they are free!

Microsoft is mainly a software company, so I think they got the best developing tools.

Windows Phone 7 has a bright future in my opinion.

iOS

Smooth, currently best user experience, mature. That’s it!

I think Apple are truly innovators. They ask for premium prices, but in exchange they give you delicious hardware and great user experience.

Share

Qualified companies competing for the third mobile operator in Syria announced

According to a document released by the Syrian Ministry of Communication and Technology, the finalists companies competing to nab the license for the third mobile operator in Syria are:

  • Emirates Telecommunications Corporation (UAE)
  • France Telecom (France)
  • Qatar Telecom QSC (Qatar)
  • Saudi Telecom company (KSA)
  • Turkcell (Turkey)

After being qualified,  the companies will start submitting their proposals on the 12th of December.

Third mobile operator, we are waiting for you :)

UPDATE: UAE Etisalat quit the bidding, they’re uncool with the regulations. Source.

Share

Closing unnecessary Windows Services for more RAM

After upgrading my old machine, I started installing my Development tools. One of the tools I use is Microsoft SQL Server 2008 for creating Databases and Business Intelligence. From my experience that tool is not very CPU or RAM friendly :) . It runs a lot of services like the Reporting service, Integration Services…etc.

I didn’t want these services to hog the computer for normal usage, so I created a simple batch file to close these unnecessary service.

To create a batch file just create a new empty text file and rename it to have the extension .bat.

In my batch file I’m shutting down MS SQL Server services and VMWare services:

net stop VMAuthdService
net stop VMnetDHCP
net stop “VMware NAT Service”
net stop “VMUSBArbService”
net stop SQLWriter
net stop SQLBrowser
net stop SQLAgent$MSSQLSERVER2008
net stop MSSQLFDLauncher$MSSQLSERVER2008
net stop MSSQL$SQLEXPRESS
net stop MSSQL$MSSQLSERVER2008
net stop MSOLAP$MSSQLSERVER2008
net stop MsDtsServer100
net stop ReportServer$MSSQLSERVER2008

Note that the SQL Services’ names are probably different on your machine. It depends on what did you call your Database’s instance name.

Here is a list of SQL Server services names.

To start the services again, just create another batch file and use “net start” instead of “net stop”.

Share

Upgrading an old PC

I remember the day I received my AMD Athlon 64 PC, I was ecstatic! Taking photos of it from the inside and outside. Man I was so proud of it.

It had an MSI K8T Neo-FIS2R motherboard, 512MB DDR RAM, GeForce Fx 5200 128MB and an AMD Athlon 64 3200+ processor.

I got it in the 2004 and it was top of the line. Now we are in the 2010 and it’s been almost 7 years.

My hope was to make it able to run Windows 7 and let me do my Development job smoothly and let my dear wife enjoy some games on it (The Sims 3 :) ).

Windows 7 min RAM requirements is around 1 GB. RAM Upgrade is a must. I wasn’t sure what type of RAM I should get, so I was glad to get help from Crucial System Scanner Tool to detect my motherboard model and suggest the correct memory upgrade. So I went ahead and got extra 2 GB RAM to have a total of 2.5 GB of RAM (Yummy!). Costed around $75.

I know my graphics card is probably old for Windows 7, but I wanted to try and see if it could work.

I inserted Windows 7 installation DVD and restarted the computer to boot from the DVD and do the installation. It gave me an error message saying “CDBOOT: Cannot boot from CD – Code: 5“. WHAT! WHY? I’ve just installed a fresh 2GB RAM for you man, don’t fail me! :( After researching online about this issue it was clear that Windows 7 installation DVD had an issue to boot with my old MSI motherboard. Lucky me I found a workaround this issue by patching the installation DVD using the instructions found here which worked like a charm :)

The installation was a breeze. The system rebooted and everything was working. Sound, Graphics..etc. Yuppie! Wait a minute, the graphics doesn’t look clear and my external Wifi USB is not working too. Ugh. Windows 7 Aero effect isn’t working. Went to nVidia web site and downloaded the driver, also visited Linksys site to download the driver for the external WiFi USB WUSBF54g. I found a good advice on the net that I could just use WiFi driver files instead of installing Linksys application which wasn’t compatible with Windows 7.

After installing the drivers my WLAN was working and also Windows 7 Aero effect worked! Everything is working.

I installed the new Visual Studio 2010 and then the Windows Phone 7 development tools to see how things are working. The application was launched quickly, actually any application launches quickly, but moving the windows around is so annoying, slow and jumpy. So my RAM wasn’t enough? I checked the RAM and %20 only was used. It is now obvious that this is because of my graphic card.

My graphic card should be put to rest. Its fan was noisy anyway.

The hunt for a new graphic card started, and with it I remembered the exciting feeling I used to have looking for a good kind of RAM, graphic cards and other computer components.

The max my motherboard can handle is AGP 8x, so after researching I chose my new graphic card MSI NX6200AX 256MB DDR2 which can also run The Sims 3 :P . Costed me around $37.

So now for around $100 I have revived my old machine and made it work pretty well :D

Share

Cleaner streets campaign

While visiting a computer store, I noticed a pile of paper bags with some brochures at the desk, on a closer look I found a pleasant surprise!

It was a campaign for having a cleaner street focusing on the habit of throwing trash out of the car’s window! Which is something I totally despise!

The campaign package consists of two things, the brochure which talks about how it is very hard to collect all the trash thrown out of the car’s window and how it needs an army of cleaners to collect that trash, because of course there are a lot of cars and a lot of people who are not aware of this issue. The second thing is a paper bag which you can stick on the car’s interior and put your trash in. Nice idea!

It is really nice to see people getting more aware and more civilized about this issue!

Thanks for the organizers and sponsors of this campaign:

Execution and planning:

- Scouts Syria
- UNHCR Damascus
- Twenty-fourth Division

Sponsors:

- DigitalNet
- Zad ISP
- Al Waten

Share

Synaptic or apt-get through a proxy

If you are like me behind a Microsoft ISA server proxy on a domain network or any other type of proxy, you will find problems getting the Linux applications Synaptic package manager or apt-get to work.

The best way I came across to solve this issue is to use a software called ntlmaps.

This application is a proxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol. This is useful when you start getting error “Error 407 Proxy Authentication Required” which drove me crazy the whole day!

I’m using Ubuntu as my Linux OS. If you were able to make Firefox work so you can go to http://packages.ubuntu.com/ , select your Ubuntu edition , browse all packages and look for ntlmaps, download it and install it.

After that open the file /etc/ntlmaps/server.cfg and make sure you fill the parameters correctly such as the Listening port (The port to use in the proxy) NT_HOSTNAME (Which is the Domain Controller’s computer name on the network) and NT_Domain.

After that configure the Network proxy to use your new proxy for example: 127.0.0.1:5865

Good luck ;)

Share

Handle Date formats problems in .NET

Recently I faced a problem when I was deploying a project on a remote server.

Locally my ASP.Net web application was working like breeze, but when I deployed it on a remote server the problem appeared. When the user try to generate a report selecting a date range and hit go, the user gets an error message “String was not recognized as a valid DateTime”.

The report is consisted of two Calendars with “dd/MM/yyyy” date format, a Grid View and a Text box to filter the grid. I used the Visual Studio to create the GridView which takes the Select parameters from both Calendars when binding. The date column in the MS SQL Server 2005 is of DateTime format and it shows like “31/05/ 2009 11:10:00 AM”.

So obviously there is a misunderstanding of the date entered, which means a difference in the Culture environment. I tried changing the regional settings of the server to match local machines settings, but that didn’t work; still the same error. I also tried to force the Culture info in the web.config, but that also didn’t work for me!

Then I was only left with formatting the date manually to the server’s taste :)

To do that, I used the Selecting event of the SQL Data Source to modify the parameter data before going to the Database. Note that if your case is with updating or deleting, .Net also has those events for you to use.

So I used the following function to convert the date format of my Calendar which is “dd/MM/yyyy” to whatever the machine likes :) (Is compatible with).

Public Shared Function ConvertToDate(ByVal dateString As String, ByRef result As DateTime) As Boolean
Try

‘Here is the date format you desire to use

Dim supportedFormats() As String = New String() {“dd/MM/yyyy”}

‘Now it will be converted to what the machine supports

result = DateTime.ParseExact(dateString, supportedFormats,System.Globalization.CultureInfo.CurrentCulture, System.Globalization.DateTimeStyles.None)

Return True
Catch ex As Exception
Return False
End Try
End Function

And from the Selecting event of the SQL Data Source:

Protected Sub SqlDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource1.Selecting

Dim d1, d2 As Date

If txtFrom.Text <> “” And txtTo.Text <> “” Then

ConvertToDate(txtFrom.Text, d1)
ConvertToDate(txtTo.Text, d2)

e.Command.Parameters.Item(0).Value = d1

e.Command.Parameters.Item(1).Value = d2
End If
End Sub

I just wanted to share this, I hope this would help ;)

Share