Previously, we submitted a tutorial series on how to setup Symfony2 on windows. However, I understand a very important step might of been missing, how to setup the development server you will be working with. Keep in mind, I personally am not a windows user, and if there are better ways to accomplish this let me know. I choose EasyPHP instead of WAMP, because you have to get WAMP Pro I believe to easily administer your local virtual hosts, but EasyPHP handles this naturally and free. If you missed the first tutorial written by gurgen, you can reference it here and follow along in some parts of the video. First Video Describes the initial setup of everything from A-z and uses composer to create a… Continue reading
Category Archives: Programming
Tips in making your vendors smaller for upload
I started thinking about something today. Composer really makes the vendors big! Is it really just that much code? Well, yes and no, it has to do with just about everything its fetching has the entire repository from every project. Now, if your not actually contributing to every single one of these projects this can be a pain if you have to deploy these projects to a remote server, that tar ball sure will be large! There is actually two methods to do this. One, to simply search all subdirectories and remove, and secondly to combine this in your actually archiving method. I’ll show both for the sake of education. First, here’s how to do it with rm. Macapak:vendor nveid$ du -cms ../vendor 211 ../vendor… Continue reading
How to install Git and Symfony2 on Windows
While the Symfony2 community supports windows, one would probably agree also, the community is very unix centric. There is many tutorials on how to get going with various unix related operating systems such as Ubuntu, Fedora or OS X. However, there really isn’t many tutorials or instructional aids for the developers that use windows. For these reasons, this tutorial was thought to be a necessity, how to get going with git and Symfony2 on Windows. If anyone would like any further clarifications for particular instances please comment below and I’ll try to help you with your difficulty as best as possible. 1. Installing Git Download git from here, and install. After installation, if you intend to access private repos, you may need to generate your… Continue reading
Video Training Websites
There are numerous video training websites, probably the best known is lynda.com. But what are the other, possibly lower cost alternatives? This post, I’m just going to simply explore all the various options out there. Keep in mind also, I have not used all of these video training websites but I am going to do my best to explore the collective opinion of others on the net the pros and cons of each. Paid Alternatives TeamTreeHouse Treehouse isn’t necessarily competitive in price in comparison to Lynda, being their plans are either $25 and $50 a month. However, they boast their selves on a better learning experience. When it comes to code, they have a “code challenge engine”, which you can actually proven our skills once… Continue reading
Get Relative Paths with PHP
Seems I haven’t made a post in awhile, and don’t expect too much of me today! However, I figured I’d give a simple PHP lesson. A very common task, sometimes you need to get the relative path from point a to point b, and many times it may be desirable from point a to point be to be a relative path. Initially I figured I’d just google and get my answer and use a function. At first glance a solution on stack overflow would of probably had me taken care of. However, in actual practice it did not, which I’ve since updated the stack overflow question with the solution I’m going to discuss here. 123456789101112131415161718 function getRelativePath($from, $to) { $patha… Continue reading
Stay DRY using Symfony2 Forms
I work with a lot of junior programmers, and in this experience many of these programmers like to get Wet. I prefer my programmers to stay Dry. No, I’m not afraid of these programmers about walking out in the rain and touching computers accidentally getting electrocuted. I’m talking about a very popular and sensible programming principle known as DRY, Don’t repeat yourself, along with its opposite side which should always be avoided, Write Everything Twice, or WET. Many of these junior programmers it seems have not been taught the very sensible programming principle of WET, so here’s a brief introductory to DRY for those that are unfamiliar with it. Why is WET bad and DRY good? Simple, maintainability! When data is used in many different… Continue reading
Call for New Server Configuration Platform
Everyday I take a look at the tools I have for server configuration, and everyday I realize I have less & less of what I really want. I’ve used many server configuration programs over the day, from Plesk, to Cpanel, to ispconfig, webmin, virtualmin, and many many more. Well, when it comes down to it, probably the best option out there that I’ve encountered so far is a cross somewhere between cpanel & virtualmin. I use cpanel for my production servers where I sell shared hosting, and then I use ISPConfig these days for my own personal servers. Now, before you read this and go pish posh, who needs graphical GUI’s for server administration. Well, I understand where your coming from, which if I didn’t… Continue reading
Deploying Symfony2 with PHPStorm (without ssh access)
My last tutorial I showed you how to prevent indexing of directories with PHPStorm by using directory excludes. However,this method dies not take care of Deployment settings, not to mention some areas we excluded in the last tutorial we actually want to deploy. Also, when we deploy I will want to create two mapping. I’m going to deploy the base symfony application in one directory and then I’m going to deploy our web directory in another directory. Assuming you have your symfony application all setup, first thing we’re going to do is setup our ftp configuration. I won’t go over all this in detail, but if you don’t know already goto the configuration section as shown in this screenshot. Once you here, you will need… Continue reading
PHPStorm git submodules with Symfony2
Lately I’ve been using PHPStorm for more and more projects. It has to definitely be one of the better editors I’ve worked with, it has advanced code navigation tools and best of all unlike DreamWeaver it integrates seamlessly with git and Syfmony2 my favorite framework. In this video I cover the basics of how to setup a git super repo with submodules, which I believe is the best way to work with the Symfony2 framework bundle system. Using the basic submodule setup allows me to create one base Core Symfony2 Application, grant access that to all my development teams, and then create submodules for other specific project bundles allowing for tight security and better rapid application development working with many teams. In this video, I… Continue reading
Introduction to Scraping
So you have the world wide web of information, and you’d like to make use of it? Perhaps you’d like to harvest specific pieces in order to better server users? Well, thats precisely what many big names do, including google! However, this isn’t always looked kindly upon, even by google themselves when thats how they make their big money. Perhaps with somewhat good reason on google’s part, being that they actually lead people to the original content. On the other hand, many individual websites scrape and sometimes do not credit the original source of the information once the data is harvested. How do scrapers do their job? There is many ways to do this, one may choose, perl, php, ruby or whatever their favorite… Continue reading