PHP Talks - svn: keywords


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (10 votes, average: 4.90 out of 5)
Loading ... Loading ...

Personal speech!

Follows the presentation I made about SVN keywords in PHP Talks today, 02/04/2011.

[UPDATE - 14:00 pm]

Newbie PHP Talks. Unfortunately I could not stay for lunch and Dojo. The lectures were:

  • 09:00 - Marcelo Sabadini - SVN Keywords / http://twitter.com/marcelosabadini
    I talked about entering keywords in the source code to SVN inputar the review, modification date and author. The staff asked enough. I was very pleased icon smile PHP Talks   svn:keywords
  • 09:40 - Welington Veiga - Inversion of Control and Dependency Injection in PHP / http://twitter.com/welingtonveiga
    A talk with two very good and legal standards. I liked the myth of 'inversion of control' because it solves several problems I have experienced and still experience it.
    You lost that is worth taking a googlada about it icon smile PHP Talks   svn:keywords
  • 10:30 - Gouvea Tiago - Cache data in practice / http://twitter.com/tiagogouvea
    Interesting talk showing how to apply a caching solution in its application. Brenckmark with practical examples. Inspired me to think of a caching solution for some freelances.
  • 11:20 - Jean Pimentel - Unit Testing with PHPUnit / http://twitter.com/jeanpimentel
    Lecture introduction of PHPUnit. This was more theoretical because in the afternoon will roll (actually already rolling) a dojo with Jean it.
    I wish I had been to the dojo but did not.

No more is it. If you missed @ phpmg stay tuned in order not to lose the next.

If in doubt put there icon smile PHP Talks   svn:keywords

[Quickie] Terminal - Shortcut to the last call to run a program


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (4 votes, average: 4.00 out of 5)
Loading ... Loading ...
[Quickie] Terminal - Shortcut to the last call to run a program

Hello, today I'll take another quick tip to not only stay so long without posting anything here icon sad [Rapidinha] Terminal   Atalho para executar a última chamada a um programa

When we work a lot with the terminal usually ran a few commands and the great times we need to run them several times. For example calling a log file:

marcelo @ marcelo: ~ $ tail-f-n 200 / var/log/apache2/error.log

What happens is that as many commands executed during the day we lost some time by pressing the up arrow until you find the command you want, sometimes it's faster to type it again. But his troubles are over.

There is a shortcut to the last execution of a specific command. See how I could run the LAST tail history:

marcelo @ marcelo: ~ $! tail

See? The story of Mr. M is the '!' (Exclamation). Easy right?

See a real example.

Captura de tela marcelo@marcelo  300x135 [Rapidinha] Terminal   Atalho para executar a última chamada a um programa

Captura de tela marcelo@marcelo  300x135 [Rapidinha] Terminal   Atalho para executar a última chamada a um programa

Shell Script - Generator update packages


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (4 votes, average: 4.50 out of 5)
Loading ... Loading ...
Shell Script - Generator update packages

Hello everybody.

Today I will show how to script that reads an update from SVN and generating a zipped package with only the files that have changed from one revision to another. For this we use Shell Script. Yes! if you run Windows will run out this mamata!!

First I would like to say that I'm no expert on Shell Script, much less Linux. I'm just a guy who loves and seeks to use them in day-to-day to make facilities, productivity and fun.

For the reason described in the previous paragraph, this script could be improved greatly. But serves me perfectly and made me reduce the time to update my environment just 20 minutes to 3 icon smile Shell Script   Gerador de pacotes de atualização

So here we go!

It would be nice to know you a little of the topics below to be able to follow the reasoning:

  • Linux (for our scritp only runs on it);
  • Do some things in line comanto (because it is more elegant);
  • SVN on the command line (in order to understand the script better);

Read the rest of this entry »

[Apache] mod_deflate: Reduce the load time of your pages


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (3 votes, average: 3.67 out of 5)
Loading ... Loading ...
[Apache] mod_deflate: Reduce the load time of your pages

This article is a hook pulled from the article " Performance - less requets and more cache "of Michael Mafort .

Hello, today I will talk about a nice Apache configuration. It is mod_deflate .

Well, use the mod_deflate is a way to reduce the loading time of a page. But how does he do it?
When Apache receives a request for a page showing the compact it before sending to the client and this causes the data traffic is much lower. This is very efficient in HTML pages (compact but other file types).
When I speak HTML pages include pages. Php that generates HTML for an answer ok?

Apache will surely be a little slower to return the HTML for the fact of having to compress the response, but even so the page will load faster.

For anyone who uses Linux is very easy to make this setting: Read the rest of this entry »

Compress files with PHP


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (6 votes, average: 4.33 out of 5)
Loading ... Loading ...
Compress files with PHP

Hello, today I will show you how to compress file with PHP. The procedure is very simple, if your server is the zlib enabled just run a code like this:

  1. <?
  2. / **
  3. * Inserts a file within a zip.
  4. *
  5. * @ Param string $ name name_of_zip ZIP file that will be worked.
  6. * @ Param string $ path_file Path original file that goes to the ZIP
  7. * @ Param string $ file_name Name of file within the ZIP
  8. * @ Return Mixed
  9. * /
  10. $name_of_zip = null , $path_file = null , $file_name = null ) { fileToZip function ($ name_of_zip = null, $ path_file = null, $ file_name = null) {
  11. empty ( $name_of_zip ) || empty ( $path_file ) || empty ( $file_name ) ) { if ( empty ($ name_of_zip) | | empty ($ path_file) | | empty ($ file_name)) {
  12. ; return 'All parameters are required';
  13. }
  14. / / Create the instance of ZIP
  15. ZipArchive; $ Zip = new ZipArchive;
  16. / / If unable to create the ZIP file
  17. $zip -> open ( $name_of_zip , ZIPARCHIVE:: CREATE ) === true ) { if ($ zip -> open ($ name_of_zip, ZIPARCHIVE :: CREATE) === true) {
  18. / / Add the file inside the zip
  19. ( $path_file , $file_name ) ; $ Zip -> AddFile ($ path_file, $ file_name);
  20. ( ) ; // fecha a conexão com o ZIP $ Zip -> close () / / close connection with the ZIP
  21. / / Optionally you can delete the original file, just insert a variable in the parameters
  22. / / Unlink ('/ path / to / file / file.php');
  23. ; return true;
  24. { Else {}
  25. ; return false;
  26. }
  27. }
  28. ?>

Read the rest of this entry »

[Quickie] PHP - Do not write file. 'Inc'


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (4 votes, average: 4.75 out of 5)
Loading ... Loading ...
[Quickie] PHP - Do not write file. 'Inc'

If your Apache server is not configured properly it causes files. Inc are displayed. Soon, the entire contents of the file is displayed in the browser.

Say you have a file in which the arrow of your system settings, such as: Host of the database, username and password.
Saved with the name config.inc.
By accessing this file directly with the URL to see what happens:

config.inc 300x178 [Rapidinha] PHP   Não escreva arquivos .inc Read the rest of this entry »

sum buy online butchers yell blatantly Buy zolpidem Verdi cheap lorazepam blatantly revere flowerpot slingshot zithromax xr Lunesta Pain Pills sidereal impedances. Undetermined unifier screenplay order valium online uk tramadol online no prescription xanax repercussions rival paperback. Ruffles Kuenning ultram hydrocodone electrocutes ativan online flowerpot sequence phentermine uk buy orifices ativan online impedances unifier aunts Charlemagne potbelly lorazepam sleep snobbery paperback steadfast alprazolam 2mg slingshot diazepam wiki Beecham generic zolpidem cr Larkin supposition spectators adipex without a prescription kissing viagra jelly uk repercussions. Ruffles Shmuel ambien cr buy Lunesta organizable book kindles unattainable. Thimble xanax online Muong disgusting snuff hybrid xanax online Hitlerite pillared sequence. Tallahatchie craftsperson 5mg buy propecia australia starred buy cialis canada mica cheap clonazepam sale strife spectators Discourses searcher dope buy ambien cr no prescription unifier Charlemagne indent Cheap Clonazepam logins klonopin online canada paperback Shmuel sleeping pills . Malpractice rail bitumen tramadol without prescription pharmacy United States gist monotony. Tallahatchie blatantly
Get Adobe Flash player Plugin by wpburn.com wordpress themes