Saturday, February 28, 2009

427 Ss For Sale Truck

Unlock Building on Mac OSX

When you work a lot of it is local web access it through a domain "false." What I do is set the same domain of truth, but finished. Lan

This edit / etc / hosts (after sudo su, because it requires root permissions) by adding the line 172.0.0.1

Then add a virtualhost to apache, to respond to that domain and point to the directory where the code:


NameVirtualHost *: 80
 

\u0026lt;VirtualHost *:80>

ServerName localhost
 
DocumentRoot "/ Users / user / Sites /"

\u0026lt;/ VirtualHost>



\u0026lt;VirtualHost *:80>

www.ejemplo.lan

ServerName DocumentRoot "/ Users / user / Sites / www.ejemplo.lan / httpdocs "


ejemplo.lan


ServerAlias \u200b\u200bErrorLog" logs / example-error_log "

CustomLog "logs / example-access_log" common

\u0026lt;/ VirtualHost>



can do this for each domain, but remember that in / etc / hosts should not add a line for each one, but put them back the latter domain, separated by a space. Nor can you use willcards (wildcard or *)


172.0.0.1 other-web.lan www.ejemplo.lan ejemplo.lan www.otra-web.lan



Saturday, February 21, 2009

Apartment Letters Of Interest

local development domains (with Mac OSX)

to start: the problem.

Sometimes you open a word document and goes on a strange sight, that does not correspond exactly to the impression given that you already use. Format icons disappear, among other things.
 



Cause: Outlook is to blame! If you notice, this happens only when you open an attachment from Outook.

Permanent Solution: In Word, go to Tools> Options> General and off the mark in "allow starting in Reading Layout"

Monday, February 9, 2009

Does Masterbation Trigger Herpes Outbreaks?

Disabling the "reading layout" or "preview" in Word

Vale: you have your web subversion and deploys a system for production . What do you need
now? A DEBUG! You have to see how long it takes to load the page. Less than half a second is good and less than one second is reasonable ... if it takes more, see where it fails. Put
counters using microtime () on various items on $ timer ['point of interest 1'] = (( float) $ usec + (float) $ sec);



Rewrite or parts of the code caches take longer
and records the time it takes for each query MySQL. If you see that slow query using EXPLAIN to see why they are slow. If you can not optimize and repeat often, make sure your MySQL server is activated query_cache (
SHOW VARIABLES LIKE 'query_cache_size';
must be> 0).

If you are not active, use SET GLOBAL
query_cache_size = 524288;
to activate. I've put 512 MB of RAM allocated to the query cache: if you have a dedicated server you do not know if this is INCREDIBLE :-)
the effect this has on performance.
EYE! to do any ALTER, INSERT or UPDATE of the table cache is lost. So if you used a field "hits" to record hits on web pages or similar, you're normalizing it and putting it into another table separately.

Thursday, February 5, 2009

Wallet Size Denise Milani

MySQL query cache

If you work with Subversion (deberías!
http://subversion.tigris.org
and teamwork,
http://xp-dev.com
) and do "deployments" in the public server your code, be careful not to raise the folders. svn subversion which stores information of the files. The point is that in every operating system will hide these folders and upload your files depends on how a production can play you a trick. I recommend that public servant do not make a checkout or an update, but an export: problem solved.
svn export - force http://servidor-de-subversion/repositorio carpeta_pública


But if you can run subversion on the public server (that happens in many cases unless you have a dedicated server) will need to run this command in the shell (if you have access, of course)

find. /-name. "svn" There check "enable stealth" and "hide files ending in". Fill (separated by spaces) the following field with extensions that do not want to upload, for example. "Fla. Psd. Svn" (note that I added. Svn, which is not the extension, but the end of the folder name) .