Welcome to Onlinetunes24 .....

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 1 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 2 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 3 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 4 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

Bubble sort algorithm is a basic algorithm for sorting sets of numbers. It is the one you will probably be confronted with at college. There are probably better sorting algorithms but since this is the one you will most likely encounter, I have decided to write a simple implementation of it in PHP.

The idea is simple. You iterate over an array (from the first to the last but one number) using a while loop until it’s sorted. In every iteration you compare the current and the next number. If the current number is greater than the next number, switch them. That’s in a case you want to sort the array in ascending order. For descending order it is very similar. Just change < to >.

Source Code:
<?php
    // Ascending order function
    function bubbleSortAsc(array $arr)
    {
        $sorted = FALSE;
        while ($sorted === FALSE)
        {
            $sorted = TRUE;
            for ($i = 0; $i < count($arr)-1; ++$i)
            {
                $current = $arr[$i];
                $next = $arr[$i+1];
                if ($next < $current)
                {
                    $arr[$i] = $next;
                    $arr[$i+1] = $current;
                    $sorted = FALSE;
                }
            }
        }
        return $arr;
    }
   
    // Descending order function
    function bubbleSortDesc(array $arr)
    {
        $sorted = FALSE;
        while ($sorted === FALSE)
        {
            $sorted = TRUE;
            for ($i = 0; $i < count($arr)-1; ++$i)
            {
                $current = $arr[$i];
                $next = $arr[$i+1];
                if ($next > $current)
                {
                    $arr[$i] = $next;
                    $arr[$i+1] = $current;
                    $sorted = FALSE;
                }
            }
        }
        return $arr;
    }
   
   
    // Call any function
    $arr_val = array(50, 1, 45, 10, 40, 20, 35, 30, 3, 2);
    $sortedArr = bubbleSortAsc($arr_val);
    print_r($sortedArr);
?>

Matrix multiplication in c language

Matrix multiplication in c language: c program to multiply matrices (two dimensional array), this program multiplies two matrices which will be entered by the user. Firstly user will enter the order of a matrix. If the entered orders of two matrix is such that they can't be multiplied then an error message is displayed on the screen. You have already studied the logic to multiply them in Mathematics. 

Program:
#include <stdio.h>
int main()
{

  int m, n, p, q, i, j, k, sum = 0;
  int first[10][10], second[10][10], multiply[10][10]; // There are three array

  printf("Enter the number of rows and columns of first matrix\n");
  scanf("%d%d", &m, &n);
  printf("Enter the elements of first matrix\n");

  // take input for first matrix
  for (i = 0; i < m; i++)
  {
    for (j = 0; j < n; j++)
    {
        scanf("%d", &first[i][j]);
    }
  }

  printf("Enter the number of rows and columns of second matrix\n");
  scanf("%d%d", &p, &q);

  if (n != p)
    printf("Matrices with entered orders can't be multiplied with each other.\n");
  else
  {
    printf("Enter the elements of second matrix\n");

    // take input for second matrix
    for (i = 0; i < p; i++)
    {
        for (j = 0; j < q; j++)
        {
            scanf("%d", &second[i][j]);
        }
    }

    // calculation
    for (i = 0; i < m; i++)
    {
      for (j = 0; j < q; j++)
      {
        for (k = 0; k < p; k++)
        {
          sum = sum + first[i][k] * second[k][j];
        }

        multiply[i][j] = sum;
        sum = 0;
      }
    }

    printf("Product of entered matrices:-\n");

    for (i = 0; i < m; i++)
    {
      for (j = 0; j < q; j++)
      {
         printf("%d\t", multiply[i][j]);
      }
      printf("\n");
    }
  }

  return 0;
}

ই–মেইলটা পড়া হয়েছে?


জরুরি ই-মেইল পাঠিয়েছেন কিন্তু উত্তর পাচ্ছেন না! কখনো কি জানতে চেয়েছেন আপনার পাঠানো ই-মেইল প্রাপক পড়েছেন কি না? মেইল ট্র্যাকার নামের ছোট একটি প্রোগ্রাম (এক্সটেনশন) আপনার জিমেইলের সঙ্গে যোগ (অ্যাড) করে নিলে প্রাপক মেইল পড়ার সঙ্গে সঙ্গে সেন্ড মেইলের পাশে দুটি সবুজ টিক চিহ্ন দেখা যাবে। আপনি বুঝতে পারবেন কখন এবং কয়বার আপনার ই-মেইল পড়া হয়েছে।

জিমেইল অ্যাকাউন্টে ঢুকে https://mailtrack.io ওয়েবসাইটে যান। Sign In–এ ক্লিক করুন। পরের পাতায় আপনার জিমেইলের অ্যাকাউন্টের সঙ্গে মেইল ট্র্যাকার যোগ করবেন কি না, সেটির অনুমতি (পারমিশন) চাইবে। Accept-এ ক্লিক করুন। আপনার মেইল খোঁজার জন্য মেইল ট্র্যাকারের সঙ্গে যোগ হয়ে যাবে। এবার এটাকে সক্রিয় করার জন্য লগ-ইন করা জিমেইলে ঢুকুন। মেইল ট্র্যাকারের আইকন দেখা গেলে সেটিতে ক্লিক করুন।

এবার Activate mail track-এ ক্লিক করলে পরের পাতায় We’re almost done....start using MailTrack এর নিচে SIGN IN WITH GOOGLE বোতামে আবার ক্লিক করুন। সবকিছু ঠিকঠাক মতো করলে আপনার জিমেইল অনুসন্ধানের জন্য ট্র্যাকারে যোগ হবে। এখন Compose মেইল থেকে কাউকে ই-মেইল পাঠান। সে ব্যক্তি মেইল পড়লে পাঠানো মেইলের পাশে দুটি সবুজ টিকের মাধ্যমে জানিয়ে দেবে আপনার মেইল কখন পড়া হয়েছে। অথবা https://mailtrack.io সাইটে গেলে Tracked e-mails-এর নিচে All e-mail, read e-mails, unread E-mails দেখাবে। এ ছাড়া এখানে Settings-এ গিয়ে অপশনগুলো পছন্দমতো সাজিয়ে নিতে পারবেন।

MySQL UPDATE a column value with add or subtract

If you have a numerical value in a MySQL database table, that you want to UPDATE by adding a value to it, or subtracting a value from it. This can be done with a single MySQL query.

So for an example, I have a database with a product which has a quantity of 100 in stock, somebody has just bought 10 so I need to subtract that value from the database quantity.
1. UPDATE products_table SET quantity = quantity - 10 WHERE product_id = 1001 

Later in the shop admin you receive new stock and so need to UPDATE the product quantity by adding 10 new items to its current quantity of 5.
2. UPDATE products_table SET quantity = quantity + 10 WHERE product_id = 1001

ফেসবুকে দিন একটাই নাম

সামাজিক যোগাযোগের জনপ্রিয় ওয়েব সাইট ফেসবুকে সাধারণত প্রথম এবং দ্বিতীয় নাম দিয়ে একাউন্ট খুলতে হয়। কিন্তু এখন আপনি চাইলে ফেসবুকে শুধু মাত্র একটি নাম দিতে পারবেন। নাম যদি হয় "আমার বাংলাদেশ" তাহলে ফেসবুকে শুধু আমার বা বাংলাদেশ যেকোন একটি নাম ব্যবহার করতে পারবেন। সাধারণত ফেসবুকের নাম পরিবর্তনের সীমা নির্ধারণ করা থাকে। যদি আপনার একাউন্ট এর নাম পরিবর্তনের সুযোগ থাকে তাহলে একাউন্টের জন্য একটি নাম ব্যবহার করতে পারবেন। 

মজিলা ফায়ারফক্স ব্রাউজার থেকে যে ফেসবুক একাউন্টের নাম পরিবর্তন করতে চান সেটিতে লগিন করে নিন। এবার উপরের ডান পাশের মেনু থেকে Settings-এ যান। আলাদা একটি ট্যাবে http://goo.gl/P3Agq7 অথবা http://goo.gl/cWfMyk ওয়েব ঠিকানায় গিয়ে ইন্দোনিশিয়ান আইপি এবং পোর্ট অ্যাড্রেস জেনে নিন। এবার মজিলা ফায়ারফক্স ব্রাউজারের ক্লিক করে Tools -> Options -> Advance -> Network -> Settings -> Manual Proxy Configuration এ টিক চিহ্ন দিয়ে HTTP Proxy ঘরে আগের ওয়েব ঠিকানা থেকে পাওয়া ২০২.৫৯.১৬৩.১২৯ আইপি লিখুন এবং Port-এর ঘরে ৮০৮০লিখে Use this proxy for all protocols-এ টিক চিহ্ন দিয়ে OK বোতাম চাপুন।

এবার ফেসবুকের Settings-এর Languages-এ ক্লিক করে Bahasa Indonesia নির্বাচন করে Save Change-এ ক্লিক করুন। ভাষা পরিবর্তন হয়ে গেলে Name-এর ডানে Sunting বোতামে ক্লিক করুন। নাম পরিবর্তনের জন্য তিনটি আলাদা ঘর দেখাবে। এখানে প্রথম ঘরে আপনি যে একক নাম (যেমন, আমার বাংলাদেশ) দিতে চান সেটি লিখে বাকি ঘরের নাম গুলো কেটে দিন। এবার Kata Sandi ঘরে ফেসবক একাউন্টের পাসওয়ার্ড দিয়ে Simpan Perubahan বোতামে ক্লিক করুন। কাজটি সম্পন্ন হলে আপনার ফেসবুকের নাম পরিবর্তন হয়ে নতুন একক নামে পরিনত হবে। এবার কাজ হবে ফেসবুকের ভাষা পরিবর্তন করে English(US) নির্বাচন করে দিন। প্রক্সি সার্ভার ব্যবহার করার জন্য কাজটি করতে সময় একটু বেশি লাগতে পারে। কাজ শেষে ফায়ারফক্স ব্রাউজারের ক্লিক করে Tools -> Options -> Advance -> Network -> Settings-e গিয়ে No Proxy নির্বাচন করে OK বোতাম চাপুন।

১৷ বিশ্বে ইন্টারনের চালু হয় কখন?
=১৯৬৯ সালে।
.
২৷ বাংলাদেশে ইন্টারনের চালু হয়
কখন?
=১৯৯৬ সালে।
.
৩৷ ইন্টারনেটের জনক কে?
=ভিনটন জি কার্ফ।
.
৪৷ WWW এর অর্থ কি?
=World Wide Web.
.
৫৷WWW এর জনক কে?
=টিম বার্নাস লি ।
.
৬৷ ই-মেইল এর জনক কে?
=রে টমলি সন।
.
৭৷ ইন্টারনেট সার্চইঞ্জিনের জনক কে?
=এলান এমটাজ।
.
৮৷ Internet Corporation For Assiged
Names And Number– ICANN এর প্রতিষ্টা কবে?
=১৮ সেপ্টেম্বর ১৯৮৮ সালে(সদর দপ্তর
ক্যালিফোর্নিয়)
.
৯৷ ইন্টারনেট জগতের প্রথম ডোমেইনের
নাম কি?
=ডট কম।
.
১০৷ কম্পিউটার নির্মাতা প্রতিষ্টান
সিম্বোলিকস ইন্টারনেট জগতের প্রথম
ডোমেইন ডট কম রেজিস্ট্রেশন করে কবে?
=১৫ মার্চ ১৯৮৫ সালে।
.
১১৷ ইন্টারনেট ব্যাবহারকারী শীর্ষদেশ
কোনটি ?
=প্রথম-চীন,দ্বিতীয় যুক্তরাষ্ট্র
.
১২৷ বহু জনপ্রিয় ওয়েব ব্রাউজার
(Web Browser) কি কি?
=Opera, Mozilla,Internet Explorer,
Rock Melt, Google
Chrome.
.
১৩৷ বিখ্যাত সার্চ ইঞ্জিন Google এর
প্রতিষ্টাতা কে?
=সার্জে এম বেরিন ও লেরি পেজ।
.
১৪৷ জনপ্রিয় সামাজিক নেটওর্য়াকিং
সাইট কি কি?
=Twitter, Facebook, Diaspora,
MySpace, Orkut.
.
১৫৷ জনপ্রিয় সামাজিক নেটওর্য়াকিং সাইট
টুইটারের কবে প্রতিষ্টিত হয় ?
=২০০৬ সালে।
.
১৬৷ টুইটারের প্রতিষ্টাতা কে?
=জ্যাক উর্সে ,ইভান উইলিয়াম, বিজ স্টোর্ন ।
.
১৭৷ ফেসবুকের প্রতিষ্টাতা কে?
=মার্ক জুকারবার্গ, ক্রিস হেগস,
ডাসটিন মোক্রোভিজ, এডুয়ার্জে সাভেরিনা
.
১৮৷ জনপ্রিয় সামাজিক নেটওর্য়াকিং
সাইট ফেসবুকের কবে প্রতিষ্টিত হয়?
=২০০৪ সালে।
.
১৯৷ ইন্টারনেটের মাধ্যমে প্রদত্ত
চিকিৎসা পদ্ধিতিকে কি বলে?
=টেলি মেডিসিন।
.
২০৷ উইকিপিডিয়া কি?
=অনলাইনভিত্তিক ফ্রি বিশ্বকোষ।
.
২১৷ উইকিপিডিয়া কে প্রতিষ্টা কে?
= জিমি ওয়েলস(যুক্তরাষ্ট)
.
২২৷ উইকিপিডিয়া কবে প্রতিষ্ঠিত হয়?
= ২০০১ সালে ।
.
২৩৷ উইকিপিডিয়া ফাউন্ডেশন কি?
=অনলাইনভিত্তিক বিশ্বকোশ
উইকিপিডিয়ার মালিক প্রতিষ্টান
.
২৪৷ উইকিলিকস(wikileaks) কি?
=সুইডেন ভিত্তিক আন্তর্জাতিক
সংস্থা ।
.
২৫৷ উইকিলিকস(Wikileaks) এর কাজ কি?
= বিশ্বের বিভিন্ন ক্ষেত্রের গুরুত্বপূর্ন
এমন একটি গোপন সংবাদ সংগ্রহ
করে প্রকাশ
করা ।
.
২৬৷ উইকিলিকস(Wikileaks)
কে প্রতিষ্টা করেন?
=জুলিয়ান আসেঞ্জ(অস্ট্রেলিয়া)
.
২৭৷ বিশ্বে প্রথম ইন্টারনেট
নেটওয়ার্কিংয়ের
নাম কি?
= ARPANET (Advanced Research
Projects Agency Network)
.
২৮৷ ফ্লিকার কি?
=ছবি শেয়ারিং সাইট Flickr.
.
২৯৷ ইউটউব কি?
= ভিডিও শেয়ারিং সাইট YouTube.
.
৩০৷ YouTube এর প্রতিষ্টাতা কে?
=স্টিভ চ্যান জাভেদ করিম ।
.
৩১৷ স্প্যাম কি?
=অনাকাঙ্কিত ই-মেইল।

How to configure server settings (Dreamweaver CS5)



1. Open your current site by clicking Site and then Manage Sites
2. Choose your site from the list, and then click "Edit"
3. If you don't already have a server configured, click "Servers" and then click the plus sign to add a new server. If you already configured a server, choose the server from the list and click the pencil icon to modify it.

Basic Server Settings
Fill out the Basic server settings as described below, and then click "Test"
Server Name: Enter a name for this server
Connect using: Choose FTP
FTP Address: Enter your domain name here
Username and Password: Enter your cPanel username and password
Root Directory: If you are setting this up for your main domain, enter public_html
Web URL: This will auto fill in for you when you enter a root directory. Please be sure to remove "public_html" from the Web URL so that it only reads http://yourdomain.com
More Options - Use Passive FTP: Select "Use Passive FTP"

4. When your server settings test was a success, click "OK" and then click "Save"
5. After you have properly configured your server, click "Save"


Remove windows is not genuine notification

অনেক সময় আমাদের Windows 7-এর Screen এ Windows is not genuine Notification দেখতে পাই। আর এটা সাধারনত হয় যখন আমাদের Windows-এ Update Option চালু থাকে এবং ইন্টারনেট চালু থাকে। 


যখন এমন হয় তখন অনেকেই হয়তো নতুন করে Windows Setup করেছেন। তো ভবিষ্যতে যদি কেউ এমন সমস্যায় পরেন তাহলে নিচের প্রক্রিয়া অনুসরন কইরেন আসা করি সমস্যার সমাধান পাবেন। 

Start=>All Programs=>Accessories=>Command Prompt-এ ডান বাটন এ ক্লিক করে Run as Administrator করুন। 

এর পর Command Prompt-টি চালু হলে সেখানে শুধু "SLMGR –REARM" টাইপ করে Enter চাপুন। 

কাজ শেষ এখন একটা Restart- দিন।

Moving two circle above a line by Programming in C.

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>

void main ()
{
int gd=DETECT, gm=DETECT, i,j,x,x2,y;
initgraph(&gd, &gm, "c:\\TurboC3\\bgi");
setcolor(RED);
delay (100);
line(100,161,600,161);

x=100;
y=150;
x2=600;
 

for(i=0, j=0; i<245,j<245; i+=5,j+=5)
{
circle(x+i, y, 10);
circle(x2-j, y, 10);
delay(100);
setcolor(BLACK);
circle(x+i, y, 10);
circle(x2-j, y, 10);
setcolor(RED);
}
 

rectangle(300,125,350,150);
rectangle(360,125,410,150);

getch();
}

National Flag of Bangladesh by programmign in C

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int driver = DETECT, mode=0;
initgraph (&driver, &mode, "..\\bgi");
delay(1000);
printf ("\n\n\n\t\t\t National Flag of Bangladesh");
printf("\n\t\t\t Programmed by Mohammad Lukman Hussain");
delay(1000);

setcolor(2); /* Flag's Rectangle */
//rectangle(200, 150, 450, 300);
rectangle(200,150,400,250);
setfillstyle(1,2);
floodfill(325,225,2);
delay(1000);

setcolor(4); /* Flag's Circle */
//circle(325,225,50);
circle(300,200,30);
setfillstyle(1,4);
floodfill(300,200,4);
delay(1000);

setcolor(3); /* Flag's Stand */
rectangle(190,150,200,400);
setfillstyle(1,5);
floodfill(190,350,3);
delay(1000);

setcolor(3); /* Ground Stand */
rectangle(180,400,210,410);
rectangle(170,410,220,420);
rectangle(160,420,230,430);
delay(1000);

getch();
}

How to create a HTTP Server using Cisco Packet Tracer.


Moving Wheel using Mid-Point Circle algorithm and DDA Line algorithm

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
#include<dos.h>

int l = 1;

void ddaline(int x1, int y1, int x2, int y2)
{

    int s, dx, dy, m;
    float xi, yi, x, y;

    dx = x2 - x1;
    dy = y2 - y1;

    if (abs(dx) > abs(dy))
    s = abs(dx);
    else
    s = abs(dy);

    xi = dx / (float) s;
    yi = dy / (float) s;

    x = x1;
    y = y1;

    putpixel(x1 + 0.5, y1 + 0.5, 15);

    for (m = 0; m < s; m++) {
    x += xi;
    y += yi;
    putpixel(x + 0.5, y + 0.5, 15);
    }
}


void plotpoints1(int x, int y, int cx, int cy)
{
    putpixel(cx + x, cy + y, 15);
    putpixel(cx - x, cy - y, 15);
    putpixel(cx - y, cy + x, 15);
    putpixel(cx + y, cy - x, 15);
    if (l % 20 == 0) {
    ddaline(cx - x, cy - y, cx + x, cy + y);
    ddaline(cx - y, cy + x, cx + y, cy - x);
    }
    l++;
}

void plotpoints2(int x, int y, int cx, int cy)
{

    putpixel(cx - x, cy + y, 15);
    putpixel(cx + x, cy - y, 15);
    putpixel(cx + y, cy + x, 15);
    putpixel(cx - y, cy - x, 15);
    if (l % 20 == 0) {
    ddaline(cx + x, cy - y, cx - x, cy + y);
    ddaline(cx - y, cy - x, cx + y, cy + x);
    }
    l++;
}


void mcircle(int cx, int cy, int r)
{
    int x = 0, y, p;

    y = r;
    p = 1 - r;


    while (x < y) {
    plotpoints1(x, y, cx, cy);
    x++;
    if (p < 0)
        p += 2 * x + 1;
    else {
        y--;
        p += 2 * (x - y) + 1;
    }
    }



    x = y + 1;
    while (abs(x) > 0) {
    plotpoints2(x, y, cx, cy);
    x--;
    if (p >= 0)
        p = p - 2 * x - 1;
    else {
        y++;
        p = p - 2 * (x - y) - 1;
    }
    }
}

void main()
{
    int gd = DETECT, gm = DETECT;
    int i = 0;
    initgraph(&gd, &gm, "..\\bgi");

    while (!kbhit()) {
    if (i > 640)
        i = -200;
    cleardevice();
    mcircle(100 + (i++), 200, 100);
    delay(90);
    i++;
    }
    getch();
}

Animation circel Using Programmign C

Program 1:
 
#include<stdio.h>
#include<conio.h>
#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
void main()
{int p,q,r;
int x,y;
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, "..\\bgi");

x=getmaxx()/2;
y=getmaxy()/2;
for(q=1;q<15;q++)
{
setcolor(q);
for(p=400;p>1;p--)
{
circle(x,y,p);
}
setcolor(q+2);
for(r=1;r<400;r++)
{
circle(x,y,r);
}
}
getch();
}



Program 2:

#include<graphics.h>
#include<stdio.h>
#include<dos.h>
#include<conio.h>

main()
{
int gd=DETECT,gm,col=0;
initgraph(&gd,&gm,"..\\bgi");
while(!kbhit())
{
setcolor(15);
circle(col,100,50);
delay(50);

col++;
if(col>=600)
col=0;
cleardevice();
}
}


Program 3:

#include<conio.h>
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
#include<math.h>

void main()
{
    int gd=DETECT,gm;
    initgraph(&gd,&gm,"..\\bgi");
    int x=100,y=100,r=20;
    float c=.1;
    for(float i=0;i<100;i=i+.1)
    {
        delay(50);
        cleardevice();
        line(x+i,y,x+i+r*cos(i),y+r*sin(i));
        line(x+i,y,x+i+r*cos(90+i),y+r*sin(90+i));
        line(x+i,y,x+i+r*cos(135+i),y+r*sin(135+i));
        line(x+i,y,x+i+r*cos(180+i),y+r*sin(180+i));
        line(x+i,y,x+i+r*cos(225+i),y+r*sin(225+i));
        line(x+i,y,x+i+r*cos(315+i),y+r*sin(315+i));
        circle(x+i,y,r);
        if(kbhit())
        {
            if(getch())
            {
                printf("break");
                if(getch()){}
             }

        }

    }
       //    getch();
}

Circle using Programmign C

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>

void main ()
{
 int gd=DETECT, gm=DETECT, i, x=100, y=150;
 initgraph(&gd, &gm, "..\\bgi");
 setcolor(RED);

 while(1)
 {
x=100;
y=150;

 for(i=0; i<250; i+=5)
 {
 circle(x+i, y+i, 10);
 delay(100);
 setcolor(BLACK);
 circle(x+i, y+i, 10);
 setcolor(RED);
 }
 x=350;
 y=400;
 for(i=0; i<250; i+=5)
 {
 circle(x+i, y-i, 10);
 delay(100);
 setcolor(BLACK);
 circle(x+i, y-i, 10);
 setcolor(RED);
 }

 x=600;
 y=150;
 for(i=0; i<500; i+=5)
 {
 circle(x-i, y, 10);
 delay(100);
 setcolor(BLACK);
 circle(x-i, y, 10);
 setcolor(RED);
 }

  }

getch();
}

Smile face in Programming C

#include<graphics.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>

void main()
{
   int gd = DETECT, gm, area, temp1, temp2, left = 25, top = 75;
   void *p;

   initgraph(&gd,&gm,"..\\bgi");

   setcolor(YELLOW);
   circle(50,100,25);
   setfillstyle(SOLID_FILL,YELLOW);
   floodfill(50,100,YELLOW);

   setcolor(RED);
   setfillstyle(SOLID_FILL,RED);
   fillellipse(44,85,2,6);
   fillellipse(56,85,2,6);

   ellipse(50,100,205,335,20,9);
   ellipse(50,100,205,335,20,10);
   ellipse(50,100,205,335,20,11);

   area = imagesize(left, top, left + 50, top + 50);
   p = malloc(area);

   setcolor(WHITE);
   settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);
   outtextxy(155,451,"Smiling Face Animation");

   setcolor(BLUE);
   rectangle(0,0,639,449);

   while(!kbhit())
   {
      temp1 = 1 + random ( 588 );
      temp2 = 1 + random ( 380 );

      getimage(left, top, left + 50, top + 50, p);
      putimage(left, top, p, XOR_PUT);
      putimage(temp1 , temp2, p, XOR_PUT);
      delay(200);
      left = temp1;
      top = temp2;
      delay(200);
   }

   getch();
   closegraph();
}

Printer Shared

1. Click start button, then click devices and printers
2. Click Add a printer 
3. Click Add a local printer
4. Choose a printer port and click Next button
5. Choose Manufacture and Printers
6. Type Printer Name and click Next button
7. Choose Share this printer so that others on your network can find and use it
8. Click Next button

Shared Folder

1. Create a folder
2. Right clicking folder and go to properties
3. Click sharing -> Share -> choose people to share with
4. Click share
5. Click Done
6. Then Click advance sharing
7. Click check box this folder
8. Click Ok

Run Share folder
Go to Run and write “\\192.168.100.1” (IP number ).

Connect to another computer using Remote Desktop Connection.

Step-1: To allow remote connections on the computer you want to connect .

  1. Open System by clicking the Start button, right-clicking Computer, and then clicking Properties.
  2. Click Remote settings. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
The Remote tab in the System Properties dialog box 

  1. Under Remote Desktop, select one of the three options.
  2. Click Select Users.
If you're an administrator on the computer, your current user account will automatically be added to the list of remote users and you can skip the next two steps.
  1. In the Remote Desktop Users dialog box, click Add.
  2. In the Select Users or Groups dialog box, do the following:
    • To specify the search location, click Locations, and then select the location you want to search.
    • In Enter the object names to select, type the name of the user that you want to add, and then click OK.
The name will be displayed in the list of users in the Remote Desktop Users dialog box. Click OK, and then click OK again.

 

 

Step-2: To allow all remote access service.

 

  1. Open System by clicking the Start button, right-clicking Computer, and then clicking Manage.
  2. Click Service and Application
  3. Click Service
  4. Start all remote service

 

Step-3: To start Remote Desktop on the computer you want to work from

 

1.    Open Remote Desktop Connection by clicking the Start button. In the search box, type Remote Desktop Connection, and then, in the list of results, click Remote Desktop Connection.
2.    In the Computer box, type the name of the computer that you want to connect to, and then click Connect. (You can also type the IP address instead of the computer name.)

Compare Date Month Year etc.

// Find Today
    function today()
    {
        return date('Y-m-d');
    }


// Find Yesterday   
    function yesterday()
    {
        return date("Y-m-d", strtotime("yesterday"));
    }
 

// Find Current Week   
    function currentweek()
    {
        return date('Y-m-d'). ' To ' .date('Y-m-d', strtotime('-7 days'));
    }
 

// Find Last Week   
    function lastweek()
    {
        return date('Y-m-d', strtotime('-7 days')). ' To ' . date('Y-m-d', strtotime('-13 days'));
    }
 

// Find Current Month   
    function currentmonth()
    {
        return date('Y-m');
    }
 

// Find Last Month   
    function lastmonth()
    {
        return date("Y-m", strtotime("previous month"));
    }
 

// Find Current Year   
    function currentyear()
    {
        return date("Y");
    }
 

// Find Last Year   
    function lastyear()
    {
        return date("Y", strtotime("last year"));
    }

Program to display circles within circle

#include<graphics.h>
#include<conio.h>
#include<stdio.h>

void main()
{
   int gd = DETECT, gm, x, y, color, angle = 0;
   struct arccoordstype a, b;

   initgraph(&gd, &gm, "..\\bgi");
   //delay(2000);

   while(angle<=360)

   {
   setcolor(BLACK);
      arc(getmaxx()/2,getmaxy()/2,angle,angle+2,50);
      setcolor(BLUE);
      getarccoords(&a);
      circle(a.xstart,a.ystart,25);
      setcolor(BLACK);
      arc(getmaxx()/2,getmaxy()/2,angle,angle+2,100);
      setcolor(RED);
      getarccoords(&a);
      circle(a.xstart,a.ystart,25);
      setcolor(BLACK);
      arc(getmaxx()/2,getmaxy()/2,angle,angle+2,150);
      getarccoords(&a);
      setcolor(GREEN);
      circle(a.xstart,a.ystart,25);
      angle = angle+5;
     // delay(50);
   }

   getch();
   closegraph();
   }

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle