Patterns in C language

Problem 1_________________________


*******
*******
*******
*******
*******
*******
*******

Source Code:-
#include<stdio.h>
void main()
{
       int r,c;
       for (r=1;r<=7;r++)
       {
              for (c=1;c<=7;c++)
                     printf("*");
              printf("\n");
       }
}



Problem 2_________________________

*
**
***
****
*****
******
*******

Source Code:-
#include<stdio.h>
void main()
{
       int r,c;
       for (r=1;r<=7;r++)
       {
              for (c=1;c<=r;c++)
                     printf("*");
              printf("\n");
       }
}



Problem 3_________________________

*******
******
*****
****
***
**
*

Source Code:-
#include<stdio.h>
void main()
{
       int r,c;
       for (r=1;r<=8;r++)
       {
              for (c=9;c>r;c--)
                     {
                           printf("*");
                     }
              printf("\n");
       }
}



Problem 4_________________________

********
*           *
*           *
*           *
*           *
*           *
*           *
********

Source Code:-
#include<stdio.h>
void main()
{
       int r,c;
       for (r=1;r<=8;r++)
       {
              for (c=1;c<=8;c++)
              {
                     if (r==8 || r==1)
                     printf("*");
                     else if (c==1 || c==8)
                     (printf("*"));
                     else
                     (printf(" "));
              }
              printf("\n");
       }
}


Problem 5_________________________


********
 ********
********
 ********
********
 ********
********
 ********

Source Code:-
#include<stdio.h>
void main()
{
       int r,c,n,d;
       for (r=1;r<=8;r++)
       {
              for(c=1;c<=9;c++)
              {
                     n=r%2;
                     d=c%2;
                     if (c==9 && n!=0)
                           printf(" ");
                     else if (c==1 && n==0)
                           printf(" ");
                     else
                           printf("*");
              }
              printf("\n");
       }
}



Problem 6_________________________
        

        *
       **
      ***
     ****
    *****
   ******
  *******
*********

Source Code:-
#include<stdio.h>
void main()
{
       int r,c;
       for (r=1;r<=5;r++)
       {
              for (c=1;c<=(r+4);c++)
                     {

                           if(c<=(5-r))
                                  printf(" ");
                           else
                     printf("*");
                     }
              printf("\n");
       }
}

Windows 8.1 (ANY VERSION) ACTIVATION FREE!!

I found it on the web. It is someone else's creation. I am simply posting it.

Download Link:

Instructions:

Provided By www.PirateCity.NET (Formely) www.Latestuploads.com

Instructions :

Disable any virus guards/Firewalls/Windows Smart Screen first
install Activator
When the setup finishes it will stuck at the end ( i dont know why :/)
Minimize (Setup If Stucked) and go to ‘C:\Program Files\KMSpico’ folder
Now wait till Setup closes itself (this will take some time , if it doesn’t close Within 5 Min's. kill it using task manager)
Now open ‘KMSELDI.exe’ from Activator Installation Directory folder
Click (tokens backup) button which is with a arrow facing down icon (Click yes in next message box)
After that click (Red button)
Wait till it says program completed , activator will close itself ( if it freezes at some point , use the alternate KMS Activator we have Provided)

Now you are Done !

Check your Windows 8.1 computer properties :D

Windows Is Activated !!!

Restart To Remove If Watermarks Are Still There...

Keep Visiting www.PirateCity.NET

Laptop LCD showing strange colors FIXED

It often happens when you throw your laptop around like a nokia 1100 that your laptop stars showing strange colors on the lcd like this...



The proper method of fixing it is to repair or replace the lcd which ofcourse costs alot of the piggy bank.......

But to make a temporary fix to your lcd which costs only the movement of your sholuders will fix it.

Like the idea?/ I thought so

Put one hand on the lcd screen and the other on the back of the screen and PRESS it.


It fixes the issue........and believe me it happened to me.............i tried it and its been a long time since i saw those strange and somewhat irritating colours on my screen............

If it doesnot fix the issue...........take it to a repair centre.

Forward Port in Wi-Tribe

Wi-tribe router firewalled me and it was very difficult to use a P2P software. utorrent port forward toutorial at portforward.com also didnt help.

To use a P2P software you need to punch a hole in the firewall by Wi-Tribe.


1)First of all open your browser and enter in url 192.168.15.1


2)On the login screen enter

username: guest

password: witribe

3)Open Network settings > NAT

4)Enter this in the PORT FORWARD section








Name:                B.Connect
Protocol:            TCP/UCP
Start Port:          <any port you enter>
End Port:           <same port as above>
IP:          <enter your ip address which you can find in Command Prompt by typing ipconfig/all>


Done!!!
Good Luck



Disable Ads in uTorrent

uTorrent is a great app, but it can be annoying to have ads on your desktop apps. Fortunately, these can be disabled in the Advanced settings.P
To turn off ads and offers, open Options > Preferences > Advanced. Here you'll find a large list of flags for the app and a filter box. Search for and disable the following flags:
  • offers.left_rail_offer_enabled/left_rail_offer P
  • gui.show_plus_upsellP
  • offers.sponsored_torrent_offer_enabled/sponsored_torrent_offer_enabledP
  • bt.enable_pulseP
  • gui.show_notorrents_nodeP
  • offers.content_offer_autoexecP
These flags may be named slightly differently depending on which version of the app you're using. Be careful when editing things if you're not entirely sure what they do.

Multitask on Nokia S40 phones


Warning : Do at your own risk

How to multitask on Nokia S40


Step 1

1)  Download Phoneix Service Software
2)  Install it on your pc .
3)  Download & Install Nokia ovi Suite .
Step 2

1)  Connect your phone with your pc via Data Cable.
2)  Select "Nokia OVI Suite" on your phone when prompted .
3)  Nokia OVI suite should appear on your desktop ; Close it .
4)  Now run Phoneix .

Step 3 

1)  You'll see no connection at the connection box.
2)  Click on it you'll see something like USB 1
                                                          USB 2
                                                          etc.
3)  Now click on the connection which looks like USB X -RM-XXX
4)  USB 1,2,3... can vary depending upon which usb port you are connecting .
5)  And RM-XXX is your phone's RM version. You can also get it by dialing *#0000# on the home screen.
6)  In my case it looks like USB-2-RM-704. 
7)  Click on your connection (USB X-RM-XXX).
8)  Now you will see Ready at the bottom left corner.
9)  your phone is now connected.

Step 4 

1)  Now goto FILE => Scan Product . Or just press Ctrl+R on the main window.
2)  You'll get your phone's details on the screen , right beside the READY dialogue . 


Note 2 : In the next step you need the Product Profile of your phone. which looks like rm_xxx.ppu .
You can download it from google or just post your phones RM version as comment along with your mail id to get it right inside your mailbox. Download it and save it anywhere you can access easily. 


OK lets back to the topic. 


Step 5

 1)  Now goto Product => Product Profile .
 2)  A new window will come up named Product Profile.
 3)  Now click on Browse and choose your product profile ( What we talked about at note 2 ).
 4)  You will see a table.
 5)  Now click on Activate button.
 6)  Scroll down to the line number 48 in table below ( line no. 28 in case of s40v3 phones ).
 7)  You'll see a field named Java TCK support.
 8)  And the default value is  Java TCK - off .
 9)  Double click on the value and select Java TCK - on .
10)  Click on Write .

Step 6

1)  Switch off and on your device.
2)   Warning TCK flag set.

  Thats it you have successfully hacked your phone .

  Ok now come to the next point. To be able to minimize apps we have to do one more step .

  Editing the app which you wanna minimize. 





Step 1 


1) Download the java app on your pc. ( with .jar extension )
2) Now Right click on the app & Open with any zip reader. ( Like Winrar , 7-Zip etc.).
3) Inside that you'll get a folder named Meta-Inf . Open it.
4) You'll get a file named MANIFEST.MF.
5)  Edit that file with notepad . ( simply double clicking the file will do that. ).
6)  Now at the very end add this line exactly in the following case order.
7)  Nokia-MIDlet-no-exit: true .
8)  Now save the file by pressing Ctrl+S and exit the editor.
9)  The zip archive will ask you for updating the archive . Press yes to update .


Step 2


1)  Now send the app to your device via Bluetooth or Data Cable .
2)  Run the app .
3)  Press the Home key on your mobile . ( I mean the red key used for exiting the apps . )
4)  Thats all your app is minimized.
5)  Run it again by going to the app . And quit it by the apps quit option.


Download links :

I'll update the links very soon.

Successfully tested on --- Nokia 5130 Xpress-Music
                                        Nokia 2730c
                                        Nokia C2-00 ( with limitation of one app at a time ).

Warning : Do at your own risk..... Though its the most safe method.
This tutorial is for educational purpose only . I'm not insisting anyone to hack nokia phones .


Hope you enjoyed and Best of luck............ Follow or join via email for the updates in your mailbox..

I'll post screen shots and a tutorial video on the basis of your response or popularity of this post.

HTML5

What Is HTML5?

HTML5 is the newest hyper text markup language for websites from the World Wide Web Consortium (W3C). The first draft was made public in 2008, but not much happened until 2011. In 2011, HTML5 was released and people started writing about it and using it, but the support in different browsers was still poor. Today all major browsers (Chrome, Safari, Firefox, Opera, IE) offer HTML5 support, therefore the newest HTML technology can be used at its best today.
html5 logo
The official logo of HTML5
HTML5 works with CSS3 and is still in development. W3C plans to release a stable version next year, but it still looks like this is a long shot. Since its release, HTML5 has been in continuous development, with the W3C adding more and more impressive features, therefore it seems quite unlikely that HTML5′s development will end soon, which is not necessarily a bad thing.
HTML5 is the successor of HTML 4.01, released for the first time in 1999. The internet has changed significantly since 1999 and it seemed like the creation of HTML5 was necessary. The new markup language was developed based on pre-set standards:
  • New features should be based on HTML, CSS, DOM, and JavaScript.
  • The need for external plugins (like Flash) needs to be reduced.
  • Error handling should be easier than in previous versions.
  • Scripting has to be replaced by more markup.
  • HTML5 should be device-independent.
  • The development process should be visible to the public.

What’s new?

HTML5 was created to make the coding process easier and more logical. You will see a bit later that many syntaxes are now deprecated and soon to be kicked out through the back door. The unique and impressive features HTML5 comes with are in the multimedia department. Many of the features it comes with have been created with the consideration that users should be able to run heavy content on low-powered devices. The syntactic features include the new <video>, <audio> and <canvas> elements, but also integration of vector graphics content (what we knew before as being the <object> tags). This means that multimedia and graphic content on the web will be handled and executed easier and faster, without the need of plugins or APIs.
  • <article> – this tag defines an article, a user comment or a post, so an independent item of content
  • <aside> – the aside tag marks content aside from the page content, which for example could be a lateral sidebar
  • <header><footer> – you won’t need to manually name IDs for headers and footers, as now you have a pre-defined tag for them
  • <nav> – the navigation can now be placed in the markup in between the nav tags, which will automatically make your lists act like navigation
  • <section> – this is another important new syntax, as it can define any kind of sections in your document. It works pretty much like adiv which separates different sections.
  • <audio><video> – these two obviously mark sound or video content, which will now be easier to run by devices.
  • <embed> – this new tag defines a container for interactive content (plugin) or external application
  • <canvas> – the canvas tag is quite exciting, as it allows drawing graphics via scripting (mostly JavaScript, but some others can be employed as well)
What is important to remember is that the new HTML5 tags do not always work as the ones before. For example, the header and footer tags will not only mark the start and the end of a page, but also the start and the end of each section you have. This means that these two tags are likely to be used more than once in the whole page. In the illustration below can you see what I mean.
html5 code example
Example of how HTML5 code looks like
Oh yes, and the DOCTYPE declaration finally makes some sense. Or, at least, this time it is much simpler than before and it is very easy for us to remember and we won’t have to search for it on the web or copy it from site to site. <!DOCTYPE html> closed by </html> at the end of the page is something we waited for for a long time to come and now it finally is here.
Moreover, complex XHTML declarations many of us used before can now be replaced with <html lang=”en”> and long encoding declarations can simply be written in this way: <meta charset=”utf-8″>. Can it get simpler than that? It most definitely can’t.
The following tags from HTML 4.01 are now removed from HTML5, therefore browsers do not offer support for them anymore. This means that it is a good idea to go back to your HTML pages and check for them, as they might disrupt the design in the latest browsers.
  • <acronym>
  • <applet>
  • <basefont>
  • <big>
  • <center>
  • <dir>
  • <font>
  • <frame>
  • <frameset>
  • <noframes>
  • <strike>
  • <tt>

Things to know about HTML5

It is crucial to remember that HTML5 is built on the success of its previous version, HTML 4.01, which is undoubtedly the best version ever. In order to be better at using HTML5 you do not need to forget everything about the previous version. You are not learning a totally new language here. Keep your beloved syntaxes and keep the way you used to format your code, only remember that now you need to build upon the coding skills you already have.
In case you have absolutely no knowledge of HTML and you want to start now, I advise you to start with HTML 4.01 and only when you master it move onto HTML5. Starting with the latest version is like learning to run before learning to walk – which is impossible as far as I know. HTML 4.01 still contains the basics of HTML5, therefore in my opinion you should have strong knowledge of former HTML versions in order to be able to master HTML5.
The upside of learning HTML5 now is that the new markup language works right away. You can basically do whatever you want with it today – and it is supported in all major browsers. From video to geolocation, local storage and microdata annotations, HTML5 is something we need to start using. If you are in the design business, sticking with HTML 4.01 is a mistake, because everybody will move on while you will remain behind.
HTML5 is definitely here to stay. It is created to sustain today’s necessities and especially because it is in continuous development, it will be able to sustain the changes that will happen in the industry for quite some time. One of the reasons behind HTML5 taking so much time to develop is because the W3C had to analyze lots of factors and think of the future. They took their time and finally delivered something that can easily be labelled as a high-quality product.

Examples

In order to show you how far HTML5 actually got, I will showcase some websites and applications made with the new markup language, so you can see how much you can actually do with it.
1. Read is a HTML5 responsive theme made for WordPress. It is minimalistic, very simple to understand and use, loads faster than ever and it is not expensive at all.
2. SmartStart is another incredibly simple to use HTML5 template.
html5 theme

3. BIZfolio is also made with HTML5, but it is not a simple template or a WordPress theme. BIZfolio is developed so that it works with Drupal.
drupal html5 theme

4. We start looking at applications by showcasing this simple Poker Blind Timer made with HTML5
blind timer

5. Coolendar is a great calendar application developed with HTML5, which can be both found for computer and portable devices (Android and iOS).
coolendar

6. Scribd is built with HTML5 and allows users to have easy and quick access to different files and documents other users upload.
scribd

Besides websites and applications, developers created games based only on HTML5, instead of Flash as it was before. Here are some addictive HTML5 games out there. Check it out, some of the games are really entertaining.


20-addictive-html5-games-for-you-to-enjoy