Category Archives: Windows 8

How to clear ARP Cache in Windows OS ?

The Address Resolution Protocol named ARP it is a component of IP networking on any operating system.
Without this system, a machine could not communicate to the outside world.
The ARP Cache is a collection of ARP entries / mostly dynamic that are created when a hostname is resolved to an IP address and then an IP address is resolved to a MAC address .
The PC will store that newly mapped address in the ARP cache and then will stay there until the ARP cache entry timeout expires.
So open a command prompt run as admin this command:

To delete a single entry you can use this:

… where the  xxx.xxx.xxx.xxx it’s the ip address.
To delete or flush entire arp cache use this command:

Posted in All, Commands, Windows 7, Windows 8, Windows XP. Tagged with , , , , , .

Increase the cpu cycles to your applications .

Press Ctr+R or Win+R to use command shell and type regedit.
Go to : HKey Local Machine => System => CurrentControlSet => Control => PriorityControl
Set the default value to 26 Hexadecimal with new value 38 Decimal (increase the cpu cycles).
Then restart your Windows OS.

app_002

Posted in All, Windows 7, Windows 8. Tagged with , .

Fix error: These are not actually errors !

Many users can got one of this system messages:

  • There was a problem sending the command to the program.

not_error

  • Windows cannot find the file, Make sure you typed the name correctly, and then try again.
  • Cannot find the file (or one of its components). Make sure the path and filename are correct and that all required libraries are available.

These are not actually errors …
This problem occurs due to Dynamic Data Exchange (DDE) feature. DDE is a type of communication protocols which is used by Windows to open certain filetypes which require this protocol for communication between source and target programs.
DDE mechanism is used to prevent unnecessary opening of multiple instances of a program if one instance of that program is already running in background. So basically DDE helps Windows in saving computer resources so that you get better performance from your computer.
In my case the error message is shown only once and you’ll be able to open the file in second attempt or each time you try to open the file.

Posted in All, Errors, Windows 8. Tagged with , , .

LINQ and LinkPad – part 001.

LINQ stands for Language Integrated Query and enadbles us to query any type of data store, like SQL Server , XML documents, Objects in memory etc.
You don’t need to know the syntax specific to data source because LINQ enables us to work with different data source.
The great goal is that it provides intellisense and compile time error checking.
If we development one application and this working with databases , xml documents and / or in memory objects then we can use LINQ.
LINQ query can be using any .NET supported programmiing language, because LINQ component between the LINQ query and the data source.
LinqPad tool can be downloaded for free from here.Now I help you to learn , write and test LINQ.
Today I will try to use C# with LinqPad.
LinqPad help you to under C# to make it converted to Intermediate Language (IL) which is also known as Microsoft Intermediate Language or Common Intermediate Language.
LinqPad
If you try to use LinqPad without source code then the oonly error under C# will come into C#Statement : ; expected
Press F4 button then press Add button (Query Properties ) and type WindowsBase.dll (Add Custom Assembly References – window) then press Ok button.
LinqPad
Let’s test all. Wrote this example and under Results tab click under IL.

Example 1
C# Expression

Result IL

Example 2
C# Statement

Result IL:

this can a little dizzy for you but will come with future details.

Example 3
C# Program

Results IL :

This examples will show us the results over IL.
Using LinqPad with assemblies .NET .
Under C# the most simple DLL example can be:

If we wrote into LinqPad under C# Statement and then run it.

Console.WriteLine(“tutorial LinqPad -001”);
… the result will be :

The next step is to create one new file into our C# project named Test.dll with this source code:

If you parse this code you will see under call I need to add this :

This is just one simple example about LinqPad.This software it’s very good when working with SQL , ASP , data , arrays.
To make the DLL file you need this : ilasm.exe
Run the command under cmd.exe:

The result will be: Test.dll .
Let test it:
Make another file with notepad , named DllTest.cs and put this source code:

Use cmd.exe to complile this into exe file format :

If you run this using cmd.exe the the output will be:

Posted in All, C#, Programming, Windows 7, Windows 8. Tagged with , , , , , , .

Programming with C# and Unity 3D game engine – part 002

Today I will show you how to install Unity 5 for free.
First will need to download it from official website – free download.
You need to follow this steps: Select Unity 5 Personal Edition.
unity5-firststeps
Fill with your email adress and password from Unity website account.
unity5-firststeps-001
Select your answers …
unity5-firststeps-002
Press the blue button Start Unity and will be ready to start your project.
unity5-firststeps-003

Posted in 3D, All, Game engine, Unity 3D, Windows 8. Tagged with , , , , , , , .