How To Make Login Form in PHP

PHP (PHP: Hypertext Processor) is a very widely-used scripting language, and the reasons why are obvious:   PHP integrates perfectly with plain HTML documents, is supported by the vast majority of Web hosting providers and has an easy-to-learn syntax, which you can also find in JavaScript, in some cases.

In this tutorial, we'll be experimenting with one of the much appreciated features of PHP: form processing.

Facebook : Embedded Posts Now Available For Everyone

Today facebook introduced embedded posts for everyone. To make your posts appear in any web page it should be a public post, you could easily get the code to embed the post in any web page you just need to select Embed Post from the dropdown menu of the post :
You would get a simple dialog when you click it, in that dialog just copy the code and paste it on your web page.

Here is the code that I got for my post : 

Here is a preview of the code :


You can learn more about this from here

How To Get Assembly Information In C#

I am sorry guys that I was not able to write articles regularly because I have some issues with my ISP so no internet. I just wanted to write something so I chose something interesting! it's about getting information about the assembly. Just create a console application in C#, import this namespace using System.Reflection; after that go to the main event and add these codes.
 Assembly assembly = Assembly.GetExecutingAssembly();
            AssemblyName assemblyName = assembly.GetName();
            string assembly_information = string.Format("{0}, {1}, {2}, {3}, {4}", assemblyName.Name, assemblyName.VersionCompatibility, assemblyName.ProcessorArchitecture, assemblyName.HashAlgorithm, assemblyName.Version.ToString());
            Console.WriteLine(assembly_information);
            Console.Read();
What that does is, first it defines the assembly events and then there’s a string with 5 slots to get the assembly information one by one. You can get more information such as KeyPair, FullName, EscapedCodeBase, ContentType, CultureInfo etc.

Just run the program to get the information and by the way don’t forget to add more slots to the string if you want to get more information about the assembly(I don’t know how it’s called I just call it slot).

How To Force/Prompt Your C# & VB.NET Program To Run As Administrator

If your code will target or access secured files or libraries, then your program needs Administrator Privilege. It's easy to run your program as Administrator, simply you can right click your program and select run as administrator, and in C# & VB.NET theres a XML Manifest that tells the .NET Framework to prompt the user to run the program as Administrator, we can easily configure your program to prompt the user to run the program as administrator.

How to configure your program to prompt the user to run your program as Administrator?

1 : Go to Project(in your visual studio menustrip) and select Add New Item(or simply CTRL+SHIFT+A shortcut to open Add New Item)

outling





















2 : Choose Application Manifest File and click add(actually your debug folder has a manifest file but we are adding a new one)
man

























3 : You will find a new file in your Solution Explorer called app.manifest and you will fall into that file automatically lol, inside that file you would have some text(of course XML)

  
  
    
      
        
        
      
    
  

  
    
      

      
      

      
      

      
      

    
  

  
  


4 : Inside that file find  <requestedExecutionLevel level="asInvoker" uiAccess="false" />

5 : Replace asInvoker with requireAdministrator

6 : That's all

Now whenever you run your program, your program will prompt to run the program as Administrator.

How To Unlink Google Plus Account From Youtube

google plus.com
I saw someone had asked a question about unlinking google+ account from YouTube in yahoo answers, so I thought I should write a tutorial on that, actually I didn't know that it would be possible but after discovering so much finally I found how to do it.

It's really simple, just follow the steps :

1 : Sign in to your google account & go to youtube
(below is a image that proves, I have my google+ plus account linked to youtube)
youtube logo

3 : Click "Create custom URL"
advanced youtube













4 : You will be redirected to http://www.youtube.com/account_username?action_custom_url=true, add some random text mixed with numbers in the textbox & click Create Channel URL
create










5 : Come back to http://www.youtube.com/account(You will be redirected)

6 : Click on "Return name to 'yourcustomURL', and disconnect Google+ profile" & you will be redirected http://www.youtube.com/account_revert

7 : Click OK button from the redirected page
goooooooooooooooooooooooooooooooogle
8 : As what that redirected page sayed your Google+ profile will be disconnected from your Youtube channel
save
9 : Click save & that's all! you have successfully disconnected your Google+ profile from Youtube

I think unlinking your Google+ from Youtube makes no sense.

How To Add LinkedIn Share Button To Blogger

in logo
LinkedIn is one of the largest social network(mostly it's used for business purposes), It was founded in 2002, launched in 2003 may now it has millions of users. LinkedIn has introduced share button for websites(including blogs) to make it easy to share Articles on LinkedIn. There are 3 types of LinkedIn share buttons available(with counters).
You can read the full history and it's rankings from wikipedia


The types are : Horizontal Count, Vertical count & No count.
LinkedIn Buttons Buddy








To add the button you like to your blogger blog, follow these steps

1 : Go to Dashboard -> Template -> Edit HTML

2 : Press CTRL+F and search for <div class='post-header-line-1'/>

3 : Add the codes of the button you like(see the below image)

<!--code-->
Horizontal Count
Codes :
<b:if cond='data:blog.pageType == "item"'>
<div style='float:left;margin-left:2px;'>
<script src='http://platform.linkedin.com/in.js' type='text/javascript'/><script data-counter='right' expr:data-url='data:post.url' type='in/share'/>
</div>
</b:if>

Preview :
Horizontal count





Vertical Count

Codes :
<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <div style='float:right;margin-left:2px;margin-bottom:2px;'>
<script src='http://platform.linkedin.com/in.js' type='text/javascript'/><script data-counter='top' expr:data-url='data:post.url' type='in/share'/>
</div>
</b:if>
Preview :
Vertical Count









No Count
Codes :
<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <div style='float:left;'>
<script src='http://platform.linkedin.com/in.js' type='text/javascript'/><script expr:data-url='data:post.url' type='in/share'/>
</div>
</b:if>
Preview :
No count







NOTE : You can also add this button at <data:post.body/>

4 : Finally save your template & that's it.


NOTE : You can also change Margin sizes & Alignment(float)


I recommend you to use the Horizontal Count because i am using it & I think that's the one that suits for any blog.

How To Make A EICAR-Test-File In VB.NET

The EICAR Standard Anti-Virus Test File or EICAR test file is a computer file that was developed by the European Institute for Computer Antivirus Research (EICAR) and Computer Antivirus Research Organization (CARO), to test the response of computer antivirus (AV) programs. - Wikipedia
It's really easy to build a EICAR-Test-File in VB.NET because it has 68 ASCII characters which makes the file get detected as virus so what we are going to make is very simple, we are going to write those characters into a EXECUTABLE file.

The ASCII Characters X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

Just add a button to your form or write down on any events
'Don't forget to add Imports System.IO namespace
'By Mohamed Shimran
   Dim File As Integer
        Dim Text As String
        File = FreeFile()
        Text = "X5O!P" & Chr(37) & Chr(64) & "AP[4\PZX54(P^)7CC)7}" & Chr(36) & Chr(69) & Chr(73) & "CAR-STANDARD-ANTIVIRUS-TEST-FILE!" & Chr(36) & "H+H*"
        Dim save As New SaveFileDialog
        save.Filter = "Executable Files'(*.exe)|*.exe"
        save.ShowDialog()
            Dim strwrt As New StreamWriter(save.FileName)
            strwrt.Write(Text)
            strwrt.Close()
As you can see we have a string,integer & a savefiledialog declared so it writes the ASCII chracters to the exe file using stream write.

I have saved the exe file and here my avast pops up
EICAR
I hope you enjoyed this tutorial.

How To Add 125x125 Ad Banners To Blogger

One of the main ad banner is 125x125, we can see 125x125 ad banners on many websites. Without wasting time let's get into it.....
  • Go to Blogger > Design > Page elements
  • Click on add a widget
  • Select HTML/JavaScript Widget
  • Add the codes below in it
  • Replace Ad URL with the website link of the advertiser 
  • Replace Ad Image URL with the ad image link Replace 
  • Ad Description with some information about the Advertisement, the description appears as ALT(mouse hover) 
  • Finally save the HTML/JavaScript Widget
I hope this tutorial is useful, keep visiting for more tutorials.

How To Embed Facebook Posts Into Your Blog Posts

facebook emedded
Sharing your Facebook posts on your website or blog page might help with the engagement on your website. however before you'll be able to embed a post, that individual post has to be public. Posts with restricted privacy settings will not be embeddable. therefore if you are attempting to embed your own post, confirm it's set to Public.

You need get the URL of the Facebook post that you wish to embed, you can get your Facebook post URL from your date of of your post.
facebook