Virginia Beach Web Development Developer | Databases | Video Games | Computer Tech Support | SEO | Doodersrage

Virginia Beach Web Development Developer | Databases | Video Games | Computer Tech Support | SEO

Codelobster PHP Edition – free PHP IDE

Posted on | January 20, 2012 | No Comments

Free PHP, HTML, CSS, JavaScript editor (IDE) – Codelobster PHP Edition

clphped Codelobster PHP Edition – free PHP IDE

For valuable work on creation of sites you need a good comfortable editor necessarily. There are many requiring paid products for this purpose, but we would like to select free of charge very functional and at the same time of simple in the use editor – Codelobster PHP Edition .

    Let us consider some important possibilities and advantages of this program:

 

  • All code highlights depending on a type, the also mixed code is thus supported, so the area of HTML will be highlighted as HTML, PHP as PHP, and Javascript as Javascript in a the same file. Thre is possibility of choice from color schemes, including popular IDEs.
  • Powerful autocompletion for HTML, PHP, CSS and Javascript, including HTML5 and CSS3. For PHP the structure of project is fully recognized, and the complete list of methods falls out in the proper places.
  • HTML/CSS inspector on the type of Firebug, which allows easily to correlate the selected elements of page with a code and proper style.
  • Context help on all supported languages. By pressing F1 key the page with detailed description for current tag, attribute or function will be opened.
  • PHP debugger. PHP debugger allows to execute PHP scripts incrementally, watching the values of all variables in every line.
  • SQL manager allows to produce all necessary actions with a database – to add, delete, edit a structure and records in tables, to export data, execute SQL queries. Highlighting and autocompletion works for SQL files also.
  • Support of FTP allows to work straight with a remote server and to do all necessary changes with files;
  • The portable option allows to use editor without the preliminary installation.
  • Other useful utilities: pair highlighting, possibility of blocks selection, collapsing, tooltips, navigation on descriptions of functions and included files at withholding of the key of CTRL, viewing of structure of files and project, preview in a browser, book-marks, and all other standard possibilities for work with a code.

Also there are special plugins for work with

 

  • CMS: Drupal, Joomla
  • PHP frameworks: CakePHP, CodeIgniter, Symfony, Yii
  • JavaScript libraly: JQuery
  • WordPress blogging engine
  • Smarty template engine

http://www.codelobster.com

 

Convert video to iPhone friendly H264 with FFMPEG

Posted on | January 18, 2012 | 1 Comment

ffmpeg logo 300x75 Convert video to iPhone friendly H264 with FFMPEG

FFMPEG is a cross-platform solution for recording, converting, and steaming audio and video. There is even a PHP module for gathering media information. It typically cannot be installed by using a yum or apt-get repository though.

Many guides exist for installing FFMPEG on multiple platforms. This quick tutorial will be limited to its use on the CentOS platform. One installation guide for CentOS can be found here: http://www.nazly.net/installing-ffmpeg-and-ffmpeg-php-on-centos/

Once you have installed FFMPEG along with its codecs and PHP module you can now access media information from directly inside of your PHP script. A quick example of how to do so is below:

$movie = new ffmpeg_movie('/var/html/www/video/myvideo.mp4');
$width = $movie->getFrameWidth();
$height = $movie->getFrameHeight();

The above example will gather information about the selected movie, assuming the video actually exists. This is just two of the many object methods supported by the ffmpeg-php module, a complete list can be viewed here: http://ffmpeg-php.sourceforge.net/doc/api/ffmpeg_movie.php

Okay! That’s nice! But I want to compress an existing video to an iPhone compatible format! This can be done easily through BASH or whatever shell you prefer within the CentOS console or through an SSH session.

/usr/bin/ffmpeg -y -i "/var/html/www/videos/input.flv" -s 320x180 -r 30000/1001 -b 400k -bt 500k -vcodec libx264 -vpre default -acodec libfaac -ac 2 -ar 44100 -ab 128k "/var/html/www/videos/output.mp4";

The above line reads in the input.flv file then outputs the output.mp4 file.

Directives read:
-y overwrite if existing output file is found
-i input file
-s (frame size) 320×180 or 16:9 iPhone format
-r frame rate Hz 29.97 or 30000/1001
-b bitrate or 400kbps
-bt max bitrate of 500kbps
-vcodec video codec of libc264 for h264 format
-vpre video preset file of default
-acodec audio codec of libfaac for aac audio
-ac number of audio channels set to two
-ar for audio sampling frequency of 44100 (For iPhones you could also do 48000)
-ab audio bitrate of 128kbps

A complete list of ffmpeg options can be found here: http://ffmpeg.org/ffmpeg.html

Will add more ffmpeg tricks later!

Yoda search or the way I have been using Google for the last 12+ years

Posted on | January 6, 2012 | No Comments

4 300x180 Yoda search or the way I have been using Google for the last 12+ years

“search subject, qualifier qualifier qualifier”

If your search subject contains multiple words, wrap it in double quotes for an exact search on that combination.

“search subject”, qualifier qualifier qualifier”

When looking for multiple qualifiers use the addition modifier. +

“search subject, qualifier + qualifier + qualifier”

By setting the subject of your search first you will filter out possible unwanted keywords and get a more relevant result.

WAMP – Modifying Apache Config File – Extended

Posted on | January 3, 2012 | 2 Comments

logo1 300x72 WAMP   Modifying Apache Config File   Extended

This post is a continuation of my previous post: WAMP – Modifying Apache config file

Extended Apache configuration options. The Apache config is large and can easily be overwhelming. Hopefully the information in this post will help you learn how easy it can be!

Before you begin configuring your Apache install you need to make sure that you have WAMP installed. You can get this install package here: WAMP installation package

Lets start with the DocumentRoot value. This value allows you to assign the default location Apache will look for your web documents. You should set this value to the desired location you would like to serve your web documents. The default location is “C:/wamp/www/”. This can be changed to whatever valid directory location you would like. For example, if you have a second drive assigned to the letter D you could move your files to that drive then change the DocumentRoot value to “D:/wamp/www/”. Apache will then look in this newly assigned directory and drive on service restart.

Onto the next configuration settings options! Next you should find the services and features default directory settings values.

It should look something like this:

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

A huge listing of the core features can be found on the Apache website.

Default settings are as follows:

  1. Options FollowSymLinks allows the following of symbolic links
  2. AllowOverride sets HTACCESS file settings with the default of ignoring all. Set to All if you’re feeling lucky.
  3. Order controls three pass access control system with the first pass denying access then the second pass allowing.
  4. The Deny directive is identical to the Allow directive. Deny from all technically tells the server to deny from all interfaces but is evaluated before the Order directive.

Within the next set of configuration values you will specifically set per directory directives.

It should look something like the below:

<Directory “c:/wamp/www/”>
#
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that “MultiViews” must be named *explicitly* — “Options All”
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag – don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

</Directory>

The above reads basically like this:

  1. Options Indexes FollowSymLinks allows the controlling of directory indexing using symbolic links.
  2. AllowOverride all allows HTACCESS access to all available contexts.
  3. Order Deny,Allow sets the first pass to deny then allow for the second pass.
  4. Deny from All denies access from any interface.
  5. Allow from 127.0.0.1 allows access only from 127.0.0.1 or localhost.

On to the DirectoryIndex index value! This value allows you to set the index file to whatever file name you would like, if you would like to use something other than the default index.php file.

It should look initially like the below:

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

You can then change it to use whichever file you would like in any order. The index files are read from left to right, meaning whatever file you have placed into the furthest left position will be looked for first.

This is my quick modification: (You can change this to whatever you would like!)

<IfModule dir_module>
DirectoryIndex default.php library.php3 alpha.html cats.htm
</IfModule>

My feline friends would be proud!

That’s it for now! Plenty of other configuration values to cover in the next post! If you missed the previous WAMP Apache configuration post, click here!

« go backkeep looking »
  • Social

  • Facebook

  • Portfolio

    ASP.NET, C#, .NET 3.5, MS SQL 2K5. Various tweaks and additions.
    Transferred client from cgi based cart to oscommerce based cart. Design was modified and moved over from old site.
  • Twitter

  • My Tumblr

    • photo from Tumblr

      Filet mignon cooked on iron skillet with butter and garlic after being coated with a fresh grating of sea salt and pepper corn. Then covered in a white wine reduction.


    • photo from Tumblr

      Pork chops, broccoli, mashed potatoes, and hollandaise.


  • Alexa Rank