Friday, October 7, 2011

Wake On LAN

 


Wake on LAN is something very useful, when thinking about not wasting energy, use Wake on LAN if you don’t like throwing money away to an always-on System.


1-Enable Wake on LAN in your BIOS:

 

-restart your computer and press and hold the

delete key (or whatever key to access your BIOS

settings)

-Once you are in the BIOS, go to the Power

Management section and search for the Wake on LAN settings.

Enable the Wake on LAN, Save and Exit.

-On some boards you may have to enable a "Power On

By PCI Devices" setting, others you won't find the

Wake on LAN option.

 

 

2-Enable Wake on LAN in Windows

 

-To Enable Wake on LAN in Windows, Right-Click on My Computer, select properties, then click on Device manager.
-Find your Network Card in the Hardware List, right click it and click properties.
-Go to Power Management tab in the Properties and tick the checkbox next to "Allow this device to wake the computer".

-Now Go to the Advanced tab and Change the "Wake From Shutdown" option to "On"
and the "Wake On Magic Packet" setting to "On".

Hit OK.

 

3-WAKE YOUR COMPUTER

//you can use the Magic Packet Sender Freeware to wake your computer from any device http://magicpacket.free.fr/

 

1-on the computer that you want to wake up, type the command in the CMD ipconfig/all.
take your internet connection ipv4 address and Physical address (MAC Address)

 


a-For Inner Network Remote Connections:

 

-Send a Magic packet with a host name = to the ipv4 of your computer "Internal IP Address", your computer's MAC address and your Subnet Mask should be 255.255.255.255

note: you have to use the UDP as your network protocol and port 9 as the sending port.

 


b-For Internet Connections:

 

-Send a Magic packet with a host name = to the external ipv4 of your computer (you can get it from www.whatismyip.com ), your computer's MAC address and your Subnet Mask should be 0.0.0.0

note: you have to use the UDP as your network protocol and port 9 as the sending port.

 

NOTE: you can also use www.dyndns.com  and create a free account to access your router and settings from the internet.


Good Luck ;)

 
  For More Info Please Visit: http://en.wikipedia.org/wiki/Wake-on-LAN  

Wednesday, September 28, 2011

Math Problem

One of the mathematical problems that I’ve seen today and decided to solve it :)
Problem:
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.

Solution (This is my own solution – you can solve it using another way)
-The nearest multiple of 3 below to 1000 is 999 then we have 999/3 = 333 multipliers –>1 –> “m”
-The nearest multiple of 5 below to 1000 is 995 then we have 995/5 = 199 multipliers –>2
--> from step “1” we have:
The sum of all multiples of a Number n = (the number in the set “n”) x (The mean of the Set “o”)
n = 3 ,  o = m(m + 1) / 2 = 333(333 + 1)/2 = 333 (334)/2 = 55611

then the sum = 3 * 55611 = 166833 –> 3
--> from step “2” we have:
n = 5, o = 199 (200) / 2 = 19900
then the sum = 5 * 19900 = 99500 –> 4
From step “3” and step “4” we have:
the total sum of all multiplies of 3 and not or 5 below 1000 = 166833 + 99500 = 266333
We want now to remove the common multipliers between the 3 and 5 –> 3 * 5 = 15 –> n = 15
-The nearest multiple of 15 below to 1000 is 990 then we have 990/15 = 66 multipliers
then the sum = 15 * 66(67)/2 = 33165

Finally we got, the total sum of all multiples of 3 or 5 below 1000 = 266333 – 33165 = 233168

hope you enjoyed it too;
Thanks;
Mohamed Adel
For More Info Please Visit: http://projecteuler.net

Wednesday, September 21, 2011

How to Block “Facebook” on all your browsers

 


Sometimes, Facebook is wasting a lot of our working, studying or life time;

I will talk today about how to block “Facebook” on all your browsers;

Sometimes, The Normal block method used from the “Internet Options” isn’t working on some sites like Facebook.

Today, I’ll teach you how to block the Facebook Site from the Host File;

1-Open the C:\Windows\System32\drivers\etc folder

2-Right Click on the hosts file and Open it with Notepad or any text editor

3-Search for this line in the file:  #    127.0.0.1       localhost

4-Add these 2 lines after it:

127.0.0.1 facebook.com
127.0.0.1
www.facebook.com

(See the Figure)


5-Save the file.

  • Sometimes you can’t overwrite the host file when saving, follow these steps:
  1. Save the host file after editing it on any location you know on you PC
  2. From Windows Explorer Open Tools –> Folder Options –> View then Uncheck the “Hide extensions for known file types”.
  3. remove any additional extensions added to the file that you have created e.g. hosts.txt –> hosts remove the .txt by renaming the file.
  4. copy your host file from the location you know and replace the file in the C:\Windows\System32\drivers\etc folder.
  5. Say ByeBye Facebook

Share it if you believe that it’s important.

 
  For More Info Please Visit: 10 Reasons to leave Facebook  

Sunday, September 18, 2011

WPF VS Silverlight

 


What is the difference between WPF and Silverlight?

I’ve heard many developers talking about this topic;

Here’s a Good research about WPF VS Silverlight that answers this famous question

done by Eng. Ibraheem Osama Mohamed (MSP Egypt – Helwan Microsoft Tech-Club)

 

 http://j.mp/WPF_vs_SL (PDF Version – 232 KB)

 
  For More Info Please Visit: Helwan Microsoft Tech-Club Page on Facebook  

Wednesday, September 7, 2011

How to install the Windows Phone Developer Tools on Windows Server 2008

 


The Windows Phone Developer Tools are not officially supported on operating systems other than Windows Vista or Windows 7. 

There is a way you can work around the Windows Server 2008 setup block if needed.  Please note that this is not officially supported, so if you try these steps, you are doing so at your own risk.

  1. Download the Windows Phone Developer Tools web installer and save it to your hard drive
  2. Extract the contents of the setup package by running vm_web.exe /x and choosing a path to extract to
  3. Go to the folder you extracted to in step 2 and open the file baseline.dat in notepad
  4. Look for the section named [gencomp7788]
    Note - you have to change this exact section - this is the one that controls the OS version blocking behavior in Windows Phone Developer Tools setup.
  5. Change the value InstallOnLHS from 1 to 0
  6. Change the value InstallOnWin7Server from 1 to 0
  7. Save and close baseline.dat
  8. Run setup.exe /web from the folder you extracted to in step 2
    Note - please make sure that you include the /web command line parameter in step 8.  If you don't, setup will not attempt to download the packages it needs to install, and it will fail to install correctly as a result.
 
  For More Info Please Visit: Aaron Stebner's WebLog  

Monday, September 5, 2011

Installing SQL Server 2008 R2 (SQL Administration Part 2 - 1)

 

Hardware Requirements:

1-For SQL Server 2008 R2 Standard Edition “32 Bit”

a-Processor
-Pentium 1.0 GHZ minimum processing power

-2.0 GHZ or higher “recommended”

b-Operating System:

-XP SP3 or higher

b-Memory

-MIN 1GB.

-4 GB or more“recommended”

-MAX 64 GB

-Express Editions requires 192 MB and recommends 512 MB RAMS


2-For SQL Server 2008 R2 Standard Edition “64 Bit”

a-Processor
-Pentium 1.4 GHZ minimum processing power

-2.0 GHZ or higher “recommended”

b-Operating System:

-XP Professional SP2 64x – Windows Server 2003 SP2 64x or higher

b-Memory

-MIN 1GB.

-4 GB or more“recommended”

-MAX 64 GB

-Express Editions requires 192 MB and recommends 512 MB RAMS



Disk Space Required (32 bit and 64 bit)

verify that you have at least 3.6 GB of available disk space on the system drive for these files before starting the SQL Server installation.

-Database Components (Engine – data files – Replication – Full Text Search): 711 MB

-Analysis Services: +90 MB (Average 345 MB)

-Reporting Services: +120 MB (Average 304 MB)

-Integration Services: +120 MB (Average 591 MB)

-Client Components: +850 MB (Average 1823 MB)

 
  For More Info and to view the other SQL Server 2008 R2 Editions HW and SW Requirements Please Visit: Hardware and software requirements for installing SQL Server 2008 R2  

Wednesday, April 27, 2011

Introduction to SQL Server 2008

 

Hi again,

I’m Mohamed Adel Microsoft Middle East and Africa Data Platform Developer and I'll write a series of blog posts about SQL Server 2008 R2, hope you enjoy this series.

  • Introduction to SQL Server 2008 R2

 

SQL Server Storage:

-524272 TB per DB

-32767 concurrent user connections

-32757 Databases on a server

-up to 2147483647 tables per database

-1024 columns per table

 

SQL Server Versions and history:

-Microsoft and IBM are the first to start The data base development concept @1989

-1998 MS OLAP TOOLS

-2000 SQL Server 2000 (8.0)

-9.0 SQL Server 2005

-10.0 SQL Server 2008

-Virtual Box (SUN Virtual Machine)

 

SQL Server Editions:

 

1-Core Editions (Standard & Enterprise)

 

a- Standard

-Small to large business

-Up to 4 CPU

-Max OS Ram

b-Enterprise

-Enterprise Workloads and BI

-CPU and raM limited by OS

 


2-Specialized Editions

 

a-Workgroup:

-Remote offices
-2 CPU Max
-4 GB Ram MAX

b-Web

-Web application hosting

-4 CPU's MAX

-OS MAX RAM

c-Developer

-licensed for development and testing only
-OS MAX CPUs
-OS MAX RAMs

 


3-Free Editions

 

a-Express Edition:

-Entry level for learning

-1 CPU MAX

-1 GB MAX RAM

-4 GB MAX Database SIZE

b-Compact 3.5

-embedded database for developing desktop and mobile apps
-OS MAX CPUs
-OS Max RAMs

 
 
  For More Info Please Visit: SQL Server 2008 R2 Introduction  

Sunday, December 26, 2010

Introduction to Silverlight 4

Hi,
I've Created a good presentation to introduce the new Microsoft Silverlight 4 Technology.


Hope it's really useful for all of you;
You can share it with your friends if you need :)


For More Info Please Visit: Silverlight Official Web Site

Saturday, October 16, 2010

Transactions in WCF: (WCF Part 11)

 

The most important part to understand from my opinion when working with WCF is the transaction part.
A transaction treats a group of operations as an atomic unit, so either all succeed or all fail.

WCF supports two types of transactions: shared transactions and transacted messaging.

WCF supports two transaction protocols:

  1. OleTransaction protocol: Used for transaction control between WCF applications.
  2. WS-AtomicTransaction protocol: Enables WCF applications to flow transactions to interoperable applications, such as Web services that have been built by using third-party technology.

Transaction Process (Client & Server Side)

1-Client Side
Clients use a TransactionScope object to group operations into transactions:

 

[C#]

using (TransactionScope sc = new TransactionScope())

    {

        service1.submitRequest(rq1);

        service2.submitRequest(rq2);

        sc.Complete();

    }

 

As well as specifying transaction requirements, the client can control the isolation level and timeout for the transaction by using a TransactionOptions object:

 

[C#]

TransactionOptions top = new TransactionOptions();

    top.IsolationLevel = IsolationLevel.ReadCommitted;

    using (TransactionScope sc = new TransactionScope(TransactionScopeOption.RequiresNew, top)) //...

 

2-Server Side

The ServiceBehavior attribute enables you to configure the service as a whole for transaction time-outs, isolation level, and whether transactions complete when a session closes.
The OperationBehavior attribute helps you to control whether a transaction is required for an operation, and whether transactions complete if no exception is thrown.


WCF can use Microsoft Message Queuing, or MSMQ, to pass messages between clients and services. Queuing can improve application resilience and scalability.




Reliable Sessions in WCF:

A reliable session provides session-based delivery for WCF messages, regardless of the number or type of transport intermediaries between two endpoints.

Reliable sessions handle lost or duplicated messages. Messages are delivered exactly once, and can optionally be delivered in order. If a message cannot be delivered, the sender is informed.

They are enabled by default for theWsDualHttp, NetNamedPipeandMsmqIntegrationbindings, and can be enabled for theNetTcp, WsHttpandWsHttpFederationbindings.

 



Finally, I’d like to thank all of you for your Attention and hope that you’ve learned something new from these WCF 11 parts that I’ve written :)

Mohamed Adel Mahmoud.
Microsoft Intern – Senior Microsoft Student Partner – Microsoft Egypt.
 
  For More Info Please Visit: WCF Resources Page  

Security Features of WCF: (WCF Part 10)

 


This Time I’ll be focusing more on the Security Part in WCF.

WCF provides comprehensive security features in three main areas: transfer security, authentication and authorization of clients, and auditing.

 

Security Modes of WCF:

WCF can provide authentication, privacy, and integrity for messages by using two mechanisms:

  1. Transport mode: which uses the security features of a transport layer such as HTTPS. This mode has performance benefits due to the optimized nature of the underlying protocols, but it has a restricted set of credential or claim types. This mode also only works between two transport endpoints.
  2. Message mode: which protects the message itself by using a protocol such as WS-Security.

You can specify the security for a binding by setting its SecurityMode property. By default, the BasicHttpBinding has no security configured. Other HTTP bindings use WS-Security, and TCP and Named Pipe bindings use Windows security.

You can use the .NET PrincipalPermission attribute to restrict access to an operation based on name, role, or authentication status.

 

 
  For More Info Please Visit: WCF Resources Page  

Guidelines for Configuring the Transport Layer: (WCF Part 9)

 


NATs and Firewalls:
Firewalls and Network Address Translators (NATs) may make it impossible to use duplex contracts, since NATs hide IP addresses. Firewalls commonly restrict the protocols and ports that can be used, and this may restrict services to using HTTP or HTTPS as a transport.

Streaming Message Transfer:
By default, entire messages are buffered in memory by WCF transports. However, you can eliminate the need for large memory buffers by exposing the message body as a stream.

Unidirectional or bidirectional streaming is enabled through the TransferMode property of the transport binding element.

Note that there are some restrictions on the use of streaming, especially when using certain WCF features, such as reliable messaging, transactions, and SOAP security, which may require buffering.

Transport Quotas:
Transport quotas should be used to ensure that connections do not consume excessive resources.

WCF supports two main types of quota: timeouts to guard against denial of service attacks and allocation limits to guard against excessive memory use.

 
  For More Info Please Visit: WCF Resources Page  

Managing Hallucinations & Trust in Generative AI

  When AI Speaks Too Confidently Generative AI dazzles with its fluency, but sometimes it invents facts with absolute conviction. These “hal...