Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Wednesday, February 6, 2013

Domains with www. and without www


The search engines like Google , Yahoo , Bing , and others, do not like that there is content duplicated on the web, for example, is very common that a given domain has two inputs, with www and without www at the beginning ( www . dominio.com and dominio.com ). This can present problems for our site because if you Google our Pagerank , rather thanincrease , may be affected . To avoid duplication of pages registered, we will have to make a decision.
There are several ways to force the system to using a 301 redirect , our domination takes one of two forms . For those working on a server Apache and therefore have the ability to create and edit a file . htaccess in the root of your server, you can choose to add one of the following codes:
If we want all accesses are redirected to a domain with www, we add:

RewriteEngine On
HTTPHOST RewriteCond% {}! ^ Www.
RewriteRule ^ (. *) $ Http://www.% {HTTPHOST} / $ 1 [R = 301, L]

If our intention is to remove the prefix www to our access, this is the code:


RewriteEngine On
RewriteCond% {HTTP_HOST} ^ www. (.) $
RewriteRule ^ (.) $ Http://% 1 / $ 1 [R = 301, L]
The choice is yours. You must choose one of the two.

Friday, February 1, 2013

The creed of a programmer


Before bed every good programmer must do your prayers, this is the creed of the programmer .
I believe in one programming language, "C" Almighty Creator of UNIX and Linux.
believe in one "C + +" only child "C" Born "C" before "Visual C + +".
"C" to "C" , compiler compiler, "C" (c) copyrighted, compiled, not interpreted,
the same developers that the Father by whom all things are programmed, for us men and our server was developed by the power of binary language is embodied in assembler language and became our cause is widely accepted in times of Bill Gates.
declined and was forgotten and was renewed on the third day according to users.
went up sales, and is located within all UNIX for whom everything is programmed.
He will come again to judge improved virus and its domain and will have no end.
believe in the binary language, and code base of the system preceding the father and son. With the Father and the Son
receives the same application and memory and processors who spoke ...
I believe in the IBM architecture, which is a solid, compact and compatible.
confess that there is not one "undo" to correct errors
look for the resurrection of the Macs and life in a world without Microsoft ...
Enter.
Now if you can sleep in peace.

Saturday, January 26, 2013

How to copy a MS SQL database on another computer


DATABASE project for the development of our stores to develop a system for the input. The database is also used to get the value of a specific element previously entered.


Create a database on the same system, we developed a system, but we can not be copied from another system database and send the pen drive can not be used when the system problem occurs.



Now, I will tell you how to how other systems (computers) that use the same database.
(Microsoft SQL) for
There are two ways how to copy the database to the other system (computer).
The database only the table structure (data entry)
Structure, as well as data entry, copy the entire database.
Method 1. The database only the table structure (data input): We come to us for the entire software development to develop software to provide the user when it is used.


We generate a script for the same database.
This way, follow the steps given below:


Step 1: Open SQL Express.

Step 2. Now, you click the name of the database you want to copy to other.



Step 3: Go to the "Tasks " Option .



Step 4: Now Click on the " Generate Scripts...".


Step 5: Now an window appears as:



And then click Next.



Step 6: The selected database appears click "OK", and then all the objects in the script to the selected database.

Note: to be copied, select the database must


See image below for example:



Step 7: Re-select the next "script mode" option: the option script "clipboard".






Click Next>



Step 8: Now, When the processing is complete, Click Finish to close the window



Step 9: You should now see a blank Notepad to open the file by pressing "Ctrl + V" and paste the database script and save the file.



Step 10: At first you copy the database SQL to create a database of the same name on a different computer to another computer, open it.




Step 11: Now click on "new query" and "previous generation" to copy the entire file and paste all the contents a new query and run.



Step 12: it's complete, now from another computer to the same database table can be seen.



Share it! Sharing gentle .........