We are going to:
Please consider...
After reading a few articles about VIM, and the fact that VI is installed in every* *nix distro, I decided to give it a chance.
I've installed VIM under windows, and set some basic configuration for more convenient work.
So here is my configuration file:
set nocompatible source $VIMRUNTIME/vimrc_example.vim "source $VIMRUNTIME/mswin.vim behave mswin set diffexpr=MyDiff() " show line numbers set number " define the color scheme colorscheme slate " define the default font and size set guifont=Courier_New:h10:cANSI " define the default window size set lines=60 columns=132 set ruler " dont automatically backup things set nobackup set nowb set noswapfile " indentation configuration set ai set si " define the tab size set ts=4 " read modifications from other editors set autoread " Remap the arrows for the 'insert mode' imap <c-h> <left> imap <c-j> <down> imap <c-k> <up> imap <c-l> <right> imap <c-d> <delete> " remap keys for tabs - Ctrl-Tab - move between tabs imap <c-tab> <esc>:tabnext<cr>a nmap <c-tab> :tabnext<cr> " quick save shortcut imap <c-s> <esc>:w<cr>a nmap <c-s> :w<cr> " ignore case in search! set ic set smartcase " define the default encoding set encoding=utf8 function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let eq = '' if $VIMRUNTIME =~ ' ' if &sh =~ '\<cmd' let cmd = '""' . $VIMRUNTIME . '\diff"' let eq = '"' else let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' endif else let cmd = $VIMRUNTIME . '\diff' endif silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq endfunction
I'll try to keep it updated with all the further additional configurations
Enjoy!
A very nice article (russian) about creating UNIX daemons:
http://habrahabr.ru/post/145136/
(project URL: https://bitbucket.org/shamanis/daemon-php)
Some code examples from the tutorial (usage example):
<?php require_once 'daemon.php'; class MyDaemon extends DaemonPHP { public function run() { while (true) { } } } $daemon = new MyDaemon('/tmp/test.pid'); $daemon->setChroot('/home/shaman/work/PHPTest/daemon') ->setLog('/my.log') ->setErr('/my.err') ->handle($argv); } ?>
Start/Stop/Status the daemon:
user@localhost:~$ php run.php start user@localhost:~$ php run.php status user@localhost:~$ php run.php stop
Enjoy!,
Greg.
The content of the post has been taken from:
but was very useful for me, and it just worked! The installation took less than 5 minutes, and there are many advantages in this method.
So here we go:
# yum update kernel*
(if there were some installations, reboot needed)
# reboot
# yum install gcc kernel-devel kernel-headers -y
# KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`
# export KERN_DIR
(now go to the mounted VBoxGuestAdditions CD)
# cd /media/VirtualBoxGuestAdditions
# ./VBoxLinuxAdditions.run
(That's it, now reboot needed)
# reboot
Enjoy!
Greg
Hello All,
Here is a little "trick" to beautify our lives.
In order to change the default theme of phpMyAdmin,
follow http://www.phpmyadmin.net/home_page/themes.php, choose a theme and copy it to `themes` directory in PMA root directory.
edit config.inc.php file, and add the next line:
// define the default theme. (I use pmahomme. Place here the desired theme name)
$cfg['ThemeDefault'] = 'pmahomme';
* I placed it right after the `blowfish_secret` configuration.
Restart PMA and Enjoy!,
Gregory.
Hi,
Recently I was wandering if I can change the default font of the Chrome Developer Tools, and luckily I found how to do this.
I don't remember where I found it, and whether it's an official information, but here it is:
In windows 7 - go to the file:
C:\Users\<USER>\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
and add the next style:
body.platform-windows .monospace, body.platform-windows .source-code {
font-size: 12px !important;
line-height: 18px !important;
font-family: monospace !important;
}
Now, it's much prettier for me, thus more joy..
Enjoy you too..
The homepage of the site was a little modified - Three explanation boxes were added. This was made to explain more the features of the site (in addition to the application) and to improve the SEO of the site.
After playing a little bit with ExtJS framework, I found it very very useful and simple.
Even built a little administration system (for other project, not online-php.com), which looks awsome and which is very useful and intuitive.
When I tried it at the first time, it looked very complicated with a huge learning curve. However, this time I wanted to get things done, and even had read a related book.
I think some day I will use it for this project, to improve the UI and the usability of the project. The framework does not support any code editor (like CodeMirror, which I use in this project), or at least I did not find a simple solution, but with a little programming skills this issue can be solved.
Hi,
I've made some CSS corrections (the gradients on the site) for Opera browser for those who use opera as their primary web browser.
Also discovered, that the application works very fast on opera.
Enjoy.
Gregory C.
Hi,
I've just upgraded the CodeMirror module from 2.0 to the latest 2.1 version. Downloaded it from here.
Once you notice some errors or some instability issues please report using the contact us form or sending me a mail.
Thank you,
Enjoy!
Hello,
Soon I am going to release a bug tracking system, where you will be able to see which changes were made and when.
I am not going to chage the latest version number, unless it's a major fix or change.
Through the system you will be able to submit bug reports and fix suggestions (if you have one), and to upload the modified / fixed code.
The development already has been started, so I guess it won't take much time.
Enjoy
Hello All,
The new version of the application (and of the site) is here, and it's ready.
Now it's an open source project, so you can freely download it from the site, or checkout (using SVN) from my google code project hosting.
As you will be able to see, the application does not store any private data, so you may freely use the application online using this site.
Please support this project by providing issues, bug reports or suggestions using my email (www.online.php@gmail.com) or contact us section.
Thank you very much,
Gregory Chris.
Hi All,
A new version of the online IDE is coming up. More features, more stability, more design.
The new version will be much more convenient, and targeted to improve the service for us, the WEB developers.
I start thinking of an option to make it Open Source, and let developers download the source and install it on any server, with the option to edit local files (of the server).
Hope to finish the new version as soon as possible.
Thank you,
Online-php Admin.
Hello Dear All,
In order to improve the user experience and the stability issue, I would like to receive more bug-reports and comments from you.
Please comment here or email me.
I have changed an email to Gmail service because sometimes I do not receive emails. Now you can send me your messages to www.online.php@gmail.com (there is a link at the top of the page).
I would be glad to receive comments from you, ans supply a great service.
Thank you
Hello All,
The first PHP tutorial was launched! - It describes PHP PDO object - basic common database access methods. Some examples and descriptions.
Enjoy
I am glad to introduce the Code Snippets tab. Now you can add and share your short code snippets. It is used primarily for code reuse.
There are too many times when you need to reuse your own code, but cannot find it in your old code. There are many \"general\" functions which can be used in many projects - here is the place to store and share them.
I did it for myself, but I hope you will enjoy it as much as I do. When the database will be more complete it will be much more productive and helpful. You can help me with that.
Thank you and ENJOY!
Online-php.com Administration
Recently I decided to open \"PHP Tutorials\" section for sharing knowledge and stand behind the name \"online-php\".
For now, there are no comments or question opened, but soon I\'m gonna open it for your comments, question and suggestions.
The more content on the site, the better for the visitor / developer and the search engines.
For now, if you have any questions, posts suggestions send it via email.
Enjoy!!
If you see this message, it means that the new server is running. The service moved to another, better server in order to improve the speed and the scalability.
Please comment here If you notice server instability issues or any other problems regarding the system.
Thanks,
online-php.com admin.
Two new features were enabled / modified in the editor module
At the top of the screen there is a small label with the domain name of the server being currently edited. This new small feature enables us to work simultaneously on several projects and not get messed.
Working on several projects can be done using browsers\' invisible mode or opening several projects on two (or more) different browsers..
Enjoy
online-php.com Admin
Except the blog you are watching now, online-php.com has some other tools for communicating and keep the users informed about any changes. Some social accounts were created
Twitter: Visit the twitter account and start following
Google Groups: Visit my google group, subscribe and submit. I will be glad to read suggestions, complains, bug reports, or any questions.
This way will keep the service as useful as possible.
Enjoy,
online-php.com admin
My blog is almost ready.. for now it has several basic features. I will extend it as much as I can so you will also be able to add posts.
You may have noticed some changes on the site, I'm working on it to give the best I can either regarding the editor (the IDE) or the blog features.
For now, I will try to keep you updated through this blog.
Enjoy,
online-php.com admin.
Recently, the editor module was changed to CodeMirror which is pretty common (even google uses it) and much faster. The previous one was a little buggy and unstable, but had one very good advantage - it has tabbed editing supported. In the new module I had to implement the tabs manually, so I'll be glad to receive bug reports and some other issues about it.
Enjoy,
Online-php.com Administrator