#INCLUDE

Welcome to Home.

Thursday, October 10, 2019

C | Constants

Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are enumeration constants as well. Constants are treated just like regular variables except that their values cannot be modified after their definition. 

Defining Constants 


There are two simple ways in C to define constants −

-> Using #define preprocessor. 
-> Using const keyword.

For Example:

 


#include<stdio.h>

#define HEIGHT 20
#define WIDTH 30
#define FILE_NAME "config.txt"

void main()
{
    const int height = 20;
    const int width  = 30;
    const char name[] = "SAROJ";
    const char file_name[] = "config.txt";
 
    printf("Height : %d",HEIGHT);
    printf("WIDTH  : %d",WIDTH);
    printf("FILE_NAME   : %s",FILE_NAME);
}


Here in this program, constant is declared in two ways, one is by using preprocessor directive called #define and another is like normal variable declaration but const keyword is used in front of it. Also note that, In C programming language, the constant name is always written in capital letter.

Tuesday, October 23, 2018

Nepali Date Converter



This tool helps you to convert Nepali date to english and english date to nepali with ease.
Convert Nepali date to English date online, Convert B.S to A.D online, Convert English date toNepali Date online, Convert A.D to B.S online.
Ad.


Sunday, October 21, 2018

Install PhpMyAdmin, Apache2 And MySQL On Ubuntu 18.04 LTS Server


phpMyAdmin is a web-based tool that allows users to easily manage MySQL or MariaDB databases. If you’re not comfortable managing databases via Linux command line , you may want to use phpMyAdmin web interface to manage your databases instead.


Install MySQL Database Server

Run the commands below to install MySQL database server
sudo apt update
sudo apt install mysql-server mysql-client
During the installation, you’ll be prompted to create and confirm MySQL root password.. please do.



Install Apache2 HTTP Server

Next, run the commands below to install Apache2 HTTP Web Server
sudo apt install apache2

Install PHP And Related Modules

Run the commands below to install PHP and related PHP modules.
sudo apt-get install php php-cgi libapache2-mod-php php-common php-pear php-mbstring

Reload Apache2

sudo systemctl reload apache2.service

 Install PhpMyAdmin

Now that Apache2 and PHP are installed the final step is to install phpMyAdmin and configure. To do that, run the commands below
sudo apt-get install phpmyadmin php-gettext
When prompted to choose the webserver, select cat apache2 and continue.
+------------------------+ Configuring phpmyadmin +-------------------------+
 | Please choose the web server that should be automatically configured to   |
 | run phpMyAdmin.                                                           |
 |                                                                           |
 | Web server to reconfigure automatically:                                  |
 |                                                                           |
 |    [*] apache2                                                            |
 |    [ ] lighttpd                                                           |
 |                                                                           |
 |                                                                           |
 |                                 <ok>                                      |
 |                                                                           |
 +---------------------------------------------------------------------------+
When prompted again to allow debconfig-common to install a database and configure select No.
 +------------------------+ Configuring phpmyadmin +-------------------------+
 |                                                                           |
 | The phpmyadmin package must have a database installed and configured      |
 | before it can be used.  This can be optionally handled with               |
 | dbconfig-common.                                                          |
 |                                                                           |
 | If you are an advanced database administrator and know that you want to   |
 | perform this configuration manually, or if your database has already      |
 | been installed and configured, you should refuse this option.  Details    |
 | on what needs to be done should most likely be provided in                |
 | /usr/share/doc/phpmyadmin.                                                |
 |                                                                           |
 | Otherwise, you should probably choose this option.                        |
 |                                                                           |
 | Configure database for phpmyadmin with dbconfig-common?                   |
 |                                                                           |
 |                  <Yes>                   <No>                             |
 |                                                                           |
 +---------------------------------------------------------------------------+



After installing, run the commands below to logon to the database server to enable phpMyAdmin root logon.
Now, open your web browser and login to the server hostname or IP address followed by phpmyadmin
ex. http://example.com/phpmyadmin

1.665em; margin-bottom: 1.718em; padding: 0.07em;">phpmyadmin logon page on ubuntu
Login with MySQL root account you created earlier…
That's it. You are done.


Watch Video.




Realtime noise-removal with PulseAudio? [linux]


I started reading a lot about PulseAudio and "hidden" options it had so I could find one that was similar to this question. The one I found was the noise-cancellation module, which is one that dramatically lowers any static noise on the microphone and even A LOT of the background noise, basically giving you the benefit of only recording your own voice with excellent quality (For audio recording for example). To do this follow this steps:
  1. sudo nano /etc/pulse/default.pa
  2. Add the following line anywhere on the file, but I recommend almost at the end where you will find a comment about Echo Cancellation stuff (~line 140):
    load-module module-echo-cancel
    
  3. Reload PulseAudio (pulseaudio -k) or simply restart the computer. You should be able to select the new Noise Cancellation option from the Input Device Section:
    screenshot




Saturday, October 20, 2018

WINDOWS 8 PRO PRODUCT KEY – UPDATED LIST OF 100% FREE WORKING KEYS


Below is a list of 100% working Windows 8 Pro product keys that you can use to activate your OS. Copy any of these Windows 8 Pro product keys and use it to activate your operating system.

 84NRV-6CJR6-DBDXH-FYTBF-4X49V
QGR4N-78PMD-KCRQ7-83BXT-YG667
ND8P2-BD2PB-DD8HM-2926R-CRYQH
T3NJK-3P683-2T7BJ-2X27F-8B2KV
YMMV-FVDXB-QP6XF-9FTRT-P7F9V




BTNJ7-FFMBR-FF9BH-7QMJ9-H49T7
HB39N-V9K6F-P436V-KWBTC-Q3R9V
XWCHQ-CDMYC-9WN2C-BWWTV-YY2KV
RRYGR-8JNBY-V2RJ9-TJP4P-749T7
4Y8N3-H7MMW-C76VJ-YD3XV-MBDKV



28VNV-HF42G-K2WM9-JXRJQ-2WBQW
BDDNV-BQ27P-9P9JJ-BQJ96-KTJXV
CR8NG-63KCR-X2MPD-G7M7P-GQ4DH
6PN82-R4BBH-XX8K2-DCK84-VMFDH
9XNM-YYY38-8R9HM-YFPTX-T8XT7



NTTX3-RV7VB-T7X7F-WQYYY-9Y92F
MBFBV-W3DP2-2MVKN-PJCQD-KKTF7
DNJXJ-7XBW8-2378T-X22TX-BKG7J
6RH4V-HNTWC-JQKG8-RFR3R-36498
Y8N3-H7MMW-C76VJ-YD3XV-MBDKV
Ad.

6RH4V-HNTWC-JQKG8-RFR3R-36498
XKY4K-2NRWR-8F6P2-448RF-CRYQH
TK8TP-9JN6P-7X7WW-RFFTV-B7QPF
>NF32V-Q9P3W-7DR7Y-JGWRW-JFCK8
DNJXJ-7XBW8-2378T-X22TX-BKG7J

These keys will work for the majority of users. However, if none of these work for you, someone else might have already used that key. Remember, a retail Windows key can only be used on one PC. If none of them work for you, you should bookmark this page and visit again later. We regularly post updated keys. We guarantee that you will eventually find a 100% working Windows 8 Pro product key.

Tuesday, October 16, 2018

Best Facebook Plugins for WP


Looking for Facebook WordPress Plugins? Facebook is one the biggest social networking sites and most of the users update their account regularly and it is a good medium to share stuff with friends. So installing a Facebook plug-in to your WordPress blog enables your users to easily share the posts. Herein are 6 cool WordPress plugins for Facebook.

Once you install this plugin on your WordPress blog, you can see a footer link at the bottom of each blog post. By clicking on this link, user can add the current post to their Facebook mini-Feed. You can choose either a text link “Share on Facebook” or a Facebook button or both can be displayed at the bottom of the post. By clicking on the link, the user can sign in to the Facebook account it he is not already logged in and the post will be automatically added to his Mini-Feed.

This plug-in will import all the comments that are written on Facebook to your blog to the exact post such that you can see all the comments that are been made for a particular post directly in your WordPress blog. By this way you will not miss a single comment made on your post and it automatically updates the comments. (Edit: Plugin is not working for some people and pending update by author)

This WordPress plug-in for Facebook allows you to see all the updates from your friends and allows you to know what your friends are doing. This is a dashboard widget that allows you to go side by side with your friends on Facebook and your WordPress blog. Using this widget you can know the updates from your Facebook friends even if the Facebook site is blocked.

This plug-in will add Facebook functionality to your WordPress blog using the Facebook Connect APIs. You have to link WordPress and your Facebook account, and once they are linked you need not have to sign in again. You can publish the comments on your blog through the newsfeed and Facebook avatars will be displayed in the comments field.
5. Gigya

All the features in this plugins are fully configurable by the WordPress administration panel. By installing this plug-in to your WordPress blog, you can have a secure signup and login for users in your site. You can update your states on various social networking sites at once and also invite all your friends on various networks to visit and join in your blog site.

This plug-in allows you to add photos to the posts directly from the Facebook. All that you have to do is install and activate the plug-in and link your Facebook account with the WordPress blog. After that when you edit a new post in WordPress, a new Facebook icon in the add media section will be present – by clicking on the icon you can see the photos that you have uploaded to your Facebook account. You can then insert the photos to the post as small, medium and large size and can also align the image position.

EASYWAY TO FIND THE SERIAL NUMBER OF YOUR COMPUTER


serial number of your computer
If  you got some problem in your computer and asked for help to the service provider, you need to provide the serial number for you computer which is also called service tag, by this they can track the logs of issue and the hardware of your computer.
For the loatop its very easy to find the service tag, which is in the base of laptop. For the desktop computer its somewhere in the back side of CPU. Its just the sticker with service tag stick on it. Some time its not visible properly or its not available there. Also the sticker that holds the service tag is often placed at a more harder-to-reach location.
So here is the simple way how you can know the serial number for your computer or service tag.
Just open the command prompt (Start –> CMD)

Type the following command:
wmic bios get serialnumber
There is also another command which show the serial number or tag with the model or make of your computers.
wmic csproduct get name, identifyingnumber
The system model number can also be found using the System Information program available under All Programs –> Accessories –> System Tools.
This commands should work on Windows 7, XP and Windows XP Pro machine as wmic.exe didn’t ship with the previous editions of Windows. Refer to this page to learn about all other system details that you can retrieve with the help of wmic.exe command.

Ad.

HOW LONG IT TAKES HACKERS TO CRACK YOUR PASSWORD






The first column describes passwords.
The other columns tell you how long it takes a hacker to figure them out.
Don’t make it easy for someone to figure yours out.[via Neatorama]




YOUTUBE SEARCH WITH SIMPLE COMMANDS

Do you know youtube is now second most popular search engine in the internet after Google search, More then 35 hours of video stuff are uploaded every single minute. Here are some more stat about youtube…
  • More than 13 million hours of video were uploaded during 2010 and 35 hours of video are uploaded every minute.
  • The equivalent of 150,000+ full-length movies in theaters each week
  • More video is uploaded to YouTube in 60 days than the 3 major US networks created in 60 years
  • 70% of YouTube traffic comes from outside the US
  • YouTube is localized in 25 countries across 43 languages
  • YouTube’s demographic is broad: 18-54 years old
  • YouTube reached over 700 billion playbacks in 2010
Searching video in youtube is very easy, as you type anything on youtube there is almost something. Here are some more tricks or syntax for searching you tube…
#1. Finding a specific YouTube channel
royal wedding, channel
YouTube will have numerous videos related to the royal wedding but if you are only looking for their official YouTube channel, add the word channel to your query separated by a comma.
#2. Limit your search to recently uploaded videos
oprah winfrey, this week
This will only show recent videos related to Oprah that have been uploaded to YouTube in the past week. You may also use “today” or “this month” to limit your search to videos that were uploaded in the past month.
#3. Find only official videos, no fan material please
never say never, partner
If you are looking for the ‘official’ Justin Bieber track and don’t want to see any parodies or fan material in the search results, add the word ‘partner’ to your search query.



#4. Find movies on YouTube
jackie chan, movie
Yes, you can find full-length movies on YouTube (including Bollywood titles). The search operator for finding movies is, you got it right, movie.
#5. Find high-quality videos on YouTube
the king's speech trailer, hd
Add the keyword hd to your search query and YouTube will only show High-definition video clips that are either 720p (1280×720) or 1080p (1920×1080 pixels).
#6. Find 3D video clips on YouTube
avatar, 3d
Got a pair of 3D glasses? Add the keyword 3D to your search query and discover 3D videos. You may also enjoy some 3D content on YouTube without the glasses – see details.
#7. Find video playlists on YouTube
bryan adams, playlist
Playlists are a great option if you want to find and watch (or listen) multiple related videos in one go – like all the Old Spice commercials or your favorite Savage Garden tracks. You may also copy YouTube playlists to your own account.
#8. Find lengthy videos on YouTube
tom and jerry cartoons, long
Add the keyword long to your search query and YouTube will only return videos that are at least 20 minutes in length.



#9. Perform exact-match searches on YouTube
allintitle:"google goes gaga"
You can borrow the popular allintitle search operator from Google on YouTube to perform exact title matches. Might be useful when the original video is not available in your country due to geographic restrictions.



#10. Mix and Match
ted talks, hd, this month, long
The best part about YouTube search is that you combine multiple search operators with commas and apply them all to your query (much like the Boolean AND operator). The above example will help use find all TED talks that have recently been uploaded to YouTube.