Vasiliy Selivanov

  • RSS

Reinhold Weber – 40 Tips for optimizing your php code

Posted on Friday, April 4th, 2008

If a method can be static, declare it static. Speed improvement is by a factor of 4. echo is faster than print. Use echo’s multiple parameters instead of string concatenation. Set the maxvalue for your for-loops before and not in the loop. Unset your variables to free memory, especially large arrays. Avoid magic like __get, [...]

continue reading

How Much Data Is That?

Posted on Friday, June 20th, 2008

Bytes (8 bits) 0.1 bytes: A single yes/no decision  (actually 0.125 bytes, but I rounded) 1 byte: One character 2 bytes: 5 bytes 10 bytes: One word (a word of language, not a computer word) 20 bytes: 50 bytes: 100 bytes: Telegram; two punched computer (Hollerith) cards 200 bytes: 500 bytes: Kilobyte      1,024 bytes; [...]

continue reading

PHP 5.3 alpha1 released!

Posted on Friday, August 1st, 2008

The PHP development team is proud to announce the first alpha release (Windows binaries will appear in the next few days) of the upcoming minor version update of PHP. The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several new features have already [...]

continue reading

Google console

Posted on Tuesday, June 3rd, 2008

If you like console instead of windows/mouse interface, please go to http://goosh.org

This google-interface behaves similar to a unix-shell. You type commands and the results are shown on this page.

goosh is written by Stefan Grothkopp <grothkopp@gmail.com>  it is NOT an official google product!

so lets start with  "help" command

 

command 

aliases

 parameters

 function

web

 (search,s,w)

 [keywords]

 google web search

lucky

 (l)

 [keywords]

 go directly to first result

images

 (image,i)

 [keywords]

 google image search

wiki

 (wikipedia)

 [keywords]

 wikipedia search

clear

 (c)

 

  clear the screen

help

 (man,h,?)

 [command]

 displays help text

news

 (n)

 [keywords]

 google news search

blogs

 (blog,b)

 [keywords]

 google blog search

feeds

 (feed,f)

 [keywords]

 google feed search

open

 (o)

 <url>

 open url in new window

go

 (g)

 <url>

 open url

more

 (m)

 

  get more results

in

 (site)

 <url> <keywords>

 search in a specific website

load

 

  <extension_url>

 load an extension

video

 (videos,v)

 [keywords]

 google video search

read

 (rss,r)

 <url>

 read feed of url

place

 (places,map,p)

 [address]

 google maps search

lang

 

  <language>

 change language

addengine

 

 

add goosh to firefox search box

translate

 (trans,t)

 [lang1] [lang2] <words>

 google translation

 now you could easy

translate

 

guest@goosh.org:/web> translate en es hello

translating "hello" from "en" to "es":

"Hola"

 

search wiki

 

guest@goosh.org:/web> wiki Einstein

  1) Albert Einstein – Wikipedia, the free encyclopedia
Einstein received the 1921 Nobel Prize in Physics "for his services to Theoretical Physics, and especially for his discovery of the law of the photoelectric
http://en.wikipedia.org/wiki/Albert_Einstein
   2) Einstein ring – Wikipedia, the free encyclopedia
In observational astronomy an Einstein ring is the deformation of the light from a source (such as a galaxy or star) into a ring through gravitational
http://en.wikipedia.org/wiki/Einstein_ring
   3) Einstein refrigerator – Wikipedia, the free encyclopedia
The Einstein refrigerator is an absorption-type refrigerator which has no moving parts and requires only a heat source to operate. It was jointly invented
http://en.wikipedia.org/wiki/Einstein_refrigerator
   4) Bose–Einstein condensate – Wikipedia, the free encyclopedia
A Bose–Einstein condensate (BEC) is a state of matter of bosons confined in an external potential and cooled to temperatures very near to absolute zero (0 K
http://en.wikipedia.org/wiki/Bose%E2%80%93Einstein_condensate

 

Yeah pretty cool :)

 

Posted in: Google, Website.