Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Monday, March 2, 2015

Webnode Create Your Own Website Easily For Free!

  • Link to Webnode
  • Webnode Overview & Demo
  • Via Malaysian E-Learning Community (Via Jane Hart)

"Webnode is completely FREE. There is no catch."
(Havent we heard that one before? If you tell us the catch we would trust you more!)


The webnode system is a free hosted tool (until when? Soon you will probably see different pricing packages for extra services and additional storage.) that completely manages your entire web project. Anyone, without any technical know-how, can create and manage their own little website (Something like Google Page, but perhaps a bit better. I need to explore both properly to have any serious opinion). There is no need to install anything on your computer or server. Everything is made available through your web browser. Webnode includes tools for website publishing (Webnode Builder), advanced website statistics (Webnode Statistics) and webmail (Webnode E-mail). By using Drag-and-Drop from the toolbar you can add new content such as polls, forums, articles, catalogues, widgets such as PayPal and much more. Webnode contains many cool templates, and you can even make your own.

The interface is pleasant and it seems easy-to-use, and you will probably be positively surprised with all the features and tools provided. Explore the demo site and judge for yourself.

As for me, I am looking forward to meet Stephen Downes for the first time tomorrow (and hopefully not the last!). He is conducting a 2-day e-Learning 2.0 workshop here in Malaysia. Dont worry (and be happy!), I will be posting all the juice I learn from this projected amazing learning adventure (Coming soon!) :)

Sunday, February 15, 2015

How to Create a Web Browser in Visual Basic

In visual basic the simplest application ever could be created is a web browser. Visual basic already contain a web browser control within the toolbox, after adding it we could easily play around with the many web browser functions like navigate (to navigate to a particular website), refresh, etc. In this tutorial we will see how we can create a simple web browser in visual basic.

Also Read: How to Create a Keylogger in VB.Net?


How to Create a Web Browser in Visual Basic

How to Create a Web Browser in Visual Basic

1. First of all create a new windows form application in visual basic.

2. Now add 4 buttons and change their text as given below.

Button1 - << (To move backword)
Button2 - >> (To move forward)
Button3 - Refresh
Button4 - Go

3. Add a textbox and align them in the manner shown below.


How to Create a Web Browser in Visual Basic

4. Now double click the form to switch to code view and paste the code given below.

Public Class Form1

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebBrowser1.GoBack()

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebBrowser1.GoForward()

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
WebBrowser1.Refresh()
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub

Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
If e.KeyData = Keys.Enter Then
Button4.PerformClick()
End If
End Sub

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged

End Sub
End Class

5. You have done!! Hit Debug and browse some of your favorite sites with your own fully functional web browser.

If you liked this tutorial then please take your few seconds to share it!

Tuesday, February 10, 2015

C Program to create an Analog Clock


C++ Program to create an Analog Clock

C++ Program to create an Analog Clock

#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<process.h>
#include<iostream.h>

int calculatehrs(int h)
{
int x;
switch(h)
{
case 0: x=90;
break;
case 1:
case 13: x=60;
break;
case 2:
case 14: x=30;
break;
case 3:
case 15: x=0;
break;
case 4:
case 16: x=330;
break;
case 5:
case 17: x=300;
break;
case 6:
case 18: x=270;
break;
case 7:
case 19: x=240;
break;
case 8:
case 20: x=210;
break;
case 9:
case 21: x=180;
break;
case 10:
case 22: x=150;
break;
case 11:
case 23: x=120;
break;
case 12:
case 24: x=90;
break;
}
return(x);
}

int calculatemin(int m)
{
int x;
if(m%5==0)
{
switch(m)
{
case 0: x=90;
break;
case 5: x=60;
break;
case 10: x=30;
break;
case 15: x=360;
break;
case 20: x=330;
break;
case 25: x=300;
break;
case 30: x=270;
break;
case 35: x=240;
break;
case 40: x=210;
break;
case 45: x=180;
break;
case 50: x=150;
break;
case 55: x=120;
break;
case 60: x=90;
break;
}
}
else
{
if(m>0&&m<15)
{
switch(m)
{
case 1: x=84;
break;
case 2: x=78;
break;
case 3: x=72;
break;
case 4: x=66;
break;
case 6: x=54;
break;
case 7: x=48;
break;
case 8: x=42;
break;
case 9: x=36;
break;
case 11: x=24;
break;
case 12: x=18;
break;
case 13: x=12;
break;
case 14: x=6;
break;
}
}

if(m>15&&m<30)
{
switch(m)
{
case 16: x=354;
break;
case 17: x=348;
break;
case 18: x=342;
break;
case 19: x=336;
break;
case 21: x=324;
break;
case 22: x=318;
break;
case 23: x=312;
break;
case 24: x=306;
break;
case 26: x=294;
break;
case 27: x=288;
break;
case 28: x=282;
break;
case 29: x=276;
break;
}
}

if(m>30&&m<45)
{
switch(m)
{
case 31: x=264;
break;
case 32: x=258;
break;
case 33: x=252;
break;
case 34: x=246;
break;
case 36: x=234;
break;
case 37: x=228;
break;
case 38: x=222;
break;
case 39: x=216;
break;
case 41: x=204;
break;
case 42: x=198;
break;
case 43: x=192;
break;
case 44: x=186;
break;
}
}

if(m>45&&m<60)
{
switch(m)
{
case 46: x=174;
break;
case 47: x=168;
break;
case 48: x=162;
break;
case 49: x=156;
break;
case 51: x=144;
break;
case 52: x=138;
break;
case 53: x=132;
break;
case 54: x=126;
break;
case 56: x=114;
break;
case 57: x=108;
break;
case 58: x=102;
break;
case 59: x=96;
break;

}
}

}
return(x);
}

int changehrs(int m,int a)
{
if(m>15&&m<=30)
a-=12;
if(m>30&&m<=45)
a-=18;
if(m>45&&m<60)
a-=24;
return (a);
}

void main()
{
int gdriver=DETECT,gmode,h,m,s,a,b,c;
initgraph(&gdriver,&gmode,"c:\tc\bgi");

struct  time t;
gettime(&t);
h=t.ti_hour;
m=t.ti_min;
s=t.ti_sec;

a=calculatehrs(h);
b=calculatemin(m);
c=calculatemin(s);
a=changehrs(m,a);

for(int i=a;i>0;i-=6)
for(int j=b;j>0;j-=6)
for(int k=c;k>0;k-=6)
{
setbkcolor(7);
settextstyle(1,HORIZ_DIR,5);
setcolor(BLUE);
outtextxy(190,20,"Analog Clock");
settextstyle(8,HORIZ_DIR,2);

setcolor(BLUE);
circle(300,200,102);
setcolor(YELLOW);
circle(300,200,100);
outtextxy(385,185,"3");
outtextxy(288,98,"12");
outtextxy(207,185,"9");
outtextxy(295,270,"6");

circle(345,123,2);
circle(378,155,2);
circle(378,245,2);
circle(345,280,2);
circle(253,278,2);
circle(223,245,2);
circle(223,155,2);
circle(253,123,2);

setcolor(RED);
pieslice(300,200,i-1,i,75);
setcolor(WHITE);
pieslice(300,200,j-1,j,85);

setcolor(BLUE);
pieslice(300,200,k-1,k,95);

setcolor(RED);
settextstyle(3,HORIZ_DIR,1);
outtextxy(360,400,"Press any key to exit...!!");
sleep(1);
clearviewport();

if(i==6)
a=360;
if(j==6)
b=360;
if(k==6)
c=360;

if(kbhit())
{
setcolor(YELLOW);
setbkcolor(BLUE);
settextstyle(1,HORIZ_DIR,8);
outtextxy(130,150,"Thank You");
sleep(3);
exit(0);
}

}
}

Tuesday, February 3, 2015

How to Create a Password Protected Folder

Create a Password Protected Folder without any Extra Software

There are a number of techniques for Folder Lock, which you can use to make a password protected folder, most of Folder Lock techniques demands the use of some third party applications. Using this clean method you can hide your folders with a quick batch script.

It’s necessary to note that this will not actually protect your data from someone who knows what you are doing.

Note: if you are a starter you should be careful with this script.

Create Your Password Protected Folder

Before, proceeding this method you need to create a folder that will main folder for your password protected folder, this is just common folder and can be located anywhere and named anything.

How to Create a Password Protected Folder

Enter into your newly created folder and create a new Text Document file. This can easily be done from the help of  following image.


How to Create a Password Protected Folder 2

Open the document, now paste the following code into the contents of the document:


cls 
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

Change the PASSWORD_GOES_HERE text to the password you want to set. Now go ahead and save the file as locker.bat.


How to Create a Password Protected Folder 3

Once the file is saved as a batch file you can delete the original text file.


How to Create a Password Protected Folder 4

Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. It is the place where you can store all your important things. When you have complete adding all your data into the Private folder, run locker.bat again.

How to Create a Password Protected Folder 5

This time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.

How to Create a Password Protected Folder 6

You will see that your Private folder quickly disappears.

How to Create a Password Protected Folder 7
If you run the script yet again, you will prompted for a password.


How to Create a Password Protected Folder 8

If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.

How to See the Files Again

Most people don’t know how to show system files, but anyone who has some experience will easily be able to quickly figure it out in the Folder Options. To see the files again, all you have to do is un-check the boxes for “Show hidden files, folders, and drives” and un-check the box for “Hide protected operating system files”.


How to Create a Password Protected Folder 9
But any ordinary user who unchecks the box will most probably be scared off by the warning message that appears.



How to Create a Password Protected Folder 10

The 2nd way somebody could encapsulate the folder is to open the batch file and read your password. It’s certainly not a really secure method to hide your files, but it is fun.


Attribution note: We found this script on dozens of different web sites going back many years. We have no idea who first created the script, so we’ve omitted any sort of attribution link. If you do have proof that you first created the script, contact us and we’ll adjust the article accordingly.


If You Forget Your Password

Right-click on the locker.bat file and choose Edit, then you can see the password you set in the file.


How to Create a Password Protected Folder

You can download PDF copy of this article using below link.

 Download PDF Copy

Friday, January 9, 2015

How to Create XML Sitemap for Blogger Blog

How to Create XML Sitemap for Blogger Blog
Last week, I discussed about Sitemap. And I said, my next post will be about creating sitemap. However the next post was about Windows 8.1 Activator. So, I dont like to delay anymore. Today Im gonna tell you the easiest way to create sitemap for your blogger blog. Hopefully this will help you boost your search position.
There could be several ways to create sitemap. But mostly used sitemaps are XML and HTML. And I will talk about XML sitemap. Actually this is not worth of creating a sitemap page for your blog. But quite useful for submitting in different search engines. It will just list your pages as XML code. You will not be able to show or view the links as Anchors Text Links.
Look at the code below:
# Blogger Sitemap generated on 2013.11.04
User-agent: *
Disallow: /search
Allow: /
Sitemap:
http://munnamark.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=500

This is the XML sitemap of Marks PC Solution. The blue part is the actual sitemap link. When you need to submit the sitemap link, you should use the link only. But if you wanna use it as custom robot.txt then use the full code.


If you wanna view your actual sitemap, then copy and paste the URL in your browser. You will get the URL for your posts in XML format. It contains all the URL of your site with many other information which are useful for search engine crawlers. 

And you can use the this sitemap for any blogger blog. Just replace my URL with yours. You can also change the date manually. This is a Year . Month . Day format date. You can use the current date. For example, your sitemap could be as below:
# Blogger Sitemap generated on 2013.11.06
User-agent: *
Disallow: /search
Allow: /
Sitemap: http://example.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=500
Compare the two codes. I made a change in date and in URL. Thus you can also change it as your wish. But dont need to change any other part.
By the way, this sitemap has been generated by http://ctrlq.org/blogger. You can directly visit this page and create your sitemap from there.
  • Follow this link.
  • Copy your homepage URL (http://munnamark.blogspot.com) and then paste it in the sitemap generator box.
  • Hit on the Generate Sitemap button.
  • Now you will get the sitemap as below:

XML Sitemap Example


Done! Now copy and save the code in a notepad file or elsewhere. You can submit this sitemap in bing or any other search engines that support XML sitemap. Remember, use the link only when you need to submit the sitemap URL.

Stay with Marks PC Solution to get more interesting IT topics!