Our blog

Write a program to print following pattern in C/C++. 1 12 123 1234 12345 1234 123 12 1 #include<stdio.h> #include<conio.h> #include<iostream.h> int main() { for(int i=1;i<=5;i++) { for(int j=1; j<=i;j++) { cout<<j; } cout<<”n”; } //now print lower part of pattern for(int i=4;i>0;i–) { for(int j=1; j<=i;j++) { cout<<i; cout<<”n”; } getch(); return 0; } ...

Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba-3.0.33-3.29.el5_6.2.i386 (updates) You could try using –skip-broken to work around the problem You could try running: package-cleanup –problems package-cleanup –dupes rpm -Va –nofiles –nodigest The program package-cleanup is found in the yum-utils package. I have been working on a Centos server and getting...

<rule name=”HTTP to HTTPS redirect” stopProcessing=”true”> <match url=”(.*)” /> <conditions> <add input=”{HTTPS}” pattern=”off” ignoreCase=”true” /> </conditions> <action type=”Redirect” redirectType=”Found” url=”https://{HTTP_HOST}/{R:1}” /> </rule> [/codesyntax]   I was adding a new SSL certificate to one of the client’s website and now we wanted only https accessible and redirect user if he/she tries to access http://website.com So, i...

Open wp-config.php file and remove following code define( ‘SUBDOMAIN_INSTALL’, true ); $base = ‘/’; define( ‘DOMAIN_CURRENT_SITE’, ‘netgen.in’ ); define( ‘PATH_CURRENT_SITE’, ‘/’ ); define( ‘SITE_ID_CURRENT_SITE’, 1 ); define( ‘BLOG_ID_CURRENT_SITE’, 1 ); define(‘WP_DEBUG’, false); define(‘WP_ALLOW_MULTISITE’, true); Change define( ‘MULTISITE’, true); to define( ‘MULTISITE’, false ); That’s all. Now you have successfully deactivated WPMU/ Network...

Question:- How can we redirect a page after few seconds to a new page using javascript? Answer :- You can easily redirect a page to another url after few seconds delay by using following javascript code. <script type=”text/javascript”> setTimeout(function(){window.location=”https://netgen.in”;}, 3000) //wait three seconds before continuing. Hope this helps...