<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Developer Chicago &#124; Chicago, IL Ruby on rails Developer  &#124; Marcell Purham</title>
	<atom:link href="http://cell-designs.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cell-designs.com</link>
	<description></description>
	<lastBuildDate>Sun, 05 May 2013 02:04:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Setting up a production server with ruby on rails (Deployment included) Part 3</title>
		<link>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-3/</link>
		<comments>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-3/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 23:23:39 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[capristrano]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[cloud server]]></category>
		<category><![CDATA[deploying rails application]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=867</guid>
		<description><![CDATA[In part 2 of this series we installed mysql/postgresql, apache, and passenger. In part 3 of this tutorial we will install capistrano so we can deploy our application to our server.]]></description>
				<content:encoded><![CDATA[<p>Welcome to part 3 of setting up a production server with rails 3. In <a href="/blog/setting-up-a-production-server-with-ruby-on-rails-1/" title="Setting up a procution server with rails part 1">part 1 </a>of this series we installed rvm, ruby, rails and setup a firewall. In <a href="/blog/setting-up-a-production-server-with-ruby-on-rails-2/" title="Setting up a procution server with rails part 2">part 2</a> of this series we installed mysql/postgresql, apache, and passenger. In part 3 of this tutorial we will install capistrano so we can deploy our application to our server.</p>
<h2>What you&#8217;ll need</h2>
<p>Make sure you have a git repository setup for your rails application so that you can deploy your app</p>
<h2>Installing Capistrano</h2>
<p>Now that our server is setup we can install capistrano. Logout of your server in go inside your local application folder. Once inside run</p><pre class="crayon-plain-tag">gem install capistrano</pre><p></p>
<p>After you have installed the capistrano gem lets capify our rails project. This will create a couple of files for us but the one that we&#8217;re most interested in is the deploy.rb file.</p><pre class="crayon-plain-tag">capify .</pre><p></p>
<p>Open the deploy.rb file and add in your server and git information.</p><pre class="crayon-plain-tag">set :application, &quot;appname&quot;
set :repository, &quot;git@github.com:username/appname.git&quot;

set :scm, 'git'

set :user, 'usernameyousetupforserver'
set :branch, &quot;master&quot;

set :git_shallow_clone, 1
set :use_sudo, false
set :deploy_to, &quot;/path/public/#{application}&quot;
set :deloy_via, :remote_cache
set :keep_releases, 1
set :rails_env, &quot;production&quot;
set :migrate_target, :latest

default_run_options[:pty] = true
ssh_options[:forward_agent] = true


role :web, &quot;xx.xxx.xx.xxx&quot; # Your HTTP server, Apache/etc
role :app, &quot;xx.xxx.xx.xxx&quot; # This may be the same as your `Web` server
role :db, &quot;xx.xxx.xx.xxx&quot;, :primary =&gt; true # This is where Rails migrations will run


 namespace :deploy do
   task :start do ; end
   task :stop do ; end
   task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do
     run &quot;#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}&quot;
   end
 end

 namespace :deploy do
   desc &quot;Recreate symlink&quot;
   task :resymlink, :roles =&gt; :app do
     run &quot;rm -f #{current_path} &amp;&amp; ln -s #{release_path} #{current_path}&quot;
   end
 end</pre><p></p>
<p>After you have setup your information above run the following</p><pre class="crayon-plain-tag">cap deploy:setup
cap deploy
cap deploy:check</pre><p></p>
<p>The above will setup the necessary files then deploy your application and finally check to see if you&#8217;ve encountered any errors while deploying. </p>
<p>Now visit your server ip address and you should see a working version of your rails application. This tutorial just covered the basics but there will be more to keeping your server secure and managing it. If you&#8217;re looking for more resources beyond this tutorial check out <a href="http://railscasts.com/" title="Ruby on rails " target="_blank">railscasts</a> or <a href="http://www.peepcode.com" title="Ruby on rails" target="_blank">peepcode</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a production server with ruby on rails (Deployment included) Part 2</title>
		<link>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-2/</link>
		<comments>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-2/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 23:22:13 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[capristrano]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[cloud server]]></category>
		<category><![CDATA[deploying rails application]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=863</guid>
		<description><![CDATA[Welcome to part 2 of setting up a production server for your ruby on rails application. In part 1 we setup rvm, ruby, and rails. In Part 2 of this tutorial we will setup a mysql, postgresql, and finally install apache &#038; passenger.]]></description>
				<content:encoded><![CDATA[<p><span id="more-863"></span><br />
Welcome to part 2 of setting up a production server for your ruby on rails application. In <a href="/blog/setting-up-a-production-server-with-ruby-on-rails-1" title="Setting up a procution server with rails part 1">part 1</a> we setup rvm, ruby, and rails. In Part 2 of this tutorial we will setup a mysql, postgresql, and finally install apache &#038; passenger.</p>
<h2>Installing Mysql</h2>
<p>Since we have rails and ruby setup lets install mysql. If you would like to use postgresql skip this part in go down below.</p><pre class="crayon-plain-tag">sudo apt-get install mysql-server mysql-client libmysqlclient-dev</pre><p></p>
<p>Now install the mysql2 gem for rails</p><pre class="crayon-plain-tag">gem install mysql2</pre><p></p>
<h2>Installing Postgresql</h2>
<p>Now that we have ruby and rails installed we can install postgresql. First lets install the python software properties.</p><pre class="crayon-plain-tag">sudo apt-get install python-software-properties</pre><p></p>
<p>Next well add the backports and repo and update apt</p><pre class="crayon-plain-tag">sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update</pre><p></p>
<p>Next we&#8217;ll install postgresql</p><pre class="crayon-plain-tag">sudo apt-get install postgresql-9.1 libpq-dev</pre><p></p>
<h2>Apache &#038; Passenger</h2>
<p>Now that you have your database setup we can finally install Apache and passenger which is what we&#8217;ll be using to power our server.</p><pre class="crayon-plain-tag">sudo apt-get install apache2 libcurl4-openssl-dev apache2-prefork-dev \
                     libapr1-dev libaprutil1-dev</pre><p></p>
<p>Next we will install the passenger gem</p><pre class="crayon-plain-tag">gem install passenger</pre><p></p>
<p>Now we&#8217;re ready to install the Passenger Apache2 module which will setup our server files etc.</p><pre class="crayon-plain-tag">passenger-install-apache2-module</pre><p></p>
<p>After the installation is complete you will need to add in the three lines of code from the installation into your passenger.load file. After you have pasted the code into the file press cmd + x and Y to save the file.</p><pre class="crayon-plain-tag">sudo nano /etc/apache2/mods-available/passenger.load</pre><p></p>
<p>Here is the 3 lines of code. Do not copy below, just for example</p><pre class="crayon-plain-tag">LoadModule passenger_module /home/yourusername/.rvm/gems/ruby-1.9.2-p180/gems/
    passenger-3.0.5/ext/apache2/mod_passenger.so
PassengerRoot /home/yourusername/.rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.5
PassengerRuby /home/yourusername/.rvm/wrappers/ruby-1.9.2-p180/ruby</pre><p></p>
<p>Now lets enable the passenger module</p><pre class="crayon-plain-tag">sudo a2enmod passenger</pre><p></p>
<p>Next we will setup a virtual host for our website.</p><pre class="crayon-plain-tag">sudo vim /etc/apache2/sites-available/appname</pre><p></p>
<p>Then well add our server and site information into the file.</p><pre class="crayon-plain-tag">&lt;VirtualHost *:80&gt;
  ServerName xx.xx.xx.xx
  DocumentRoot /home/yourusername/appname/public
  &lt;Directory /home/yourusername/appname/public&gt;
    AllowOverride all
    Options -MultiViews
  &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre><p></p>
<p>Now lets disable the default Apache page and enable our website</p><pre class="crayon-plain-tag">sudo a2dissite default
sudo a2ensite appname</pre><p></p>
<p>Now reload your web server and go to your ip and you should see a blank white screen.</p><pre class="crayon-plain-tag">&lt;sudo /etc/init.d/apache2 reload</pre><p></p>
<p>In <a href="/blog/setting-up-a-production-server-with-ruby-on-rails-3" title="Setting up a production server with rails part 3">part 3</a> of this tutorial we will deploy our rails  application with capistrano. </p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a production server with ruby on rails (Deployment included) Part 1</title>
		<link>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-1/</link>
		<comments>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-1/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 23:21:18 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[capristrano]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[cloud server]]></category>
		<category><![CDATA[deploying rails application]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=770</guid>
		<description><![CDATA[When first creating a ruby on rails application I thought about going with a service like heroku. Yes heroku is great since they manage your server but the prices and addons can get very expensive.]]></description>
				<content:encoded><![CDATA[<p><span id="more-770"></span><br />
When first creating a ruby on rails application I thought about going with a service like heroku. Yes heroku is great since they manage your server but the prices and addons can get very expensive. If you&#8217;re a developer who is not scared to dive deep into the command line then look no further. In this tutorial I am going to share with you all how to setup your very own production server with rails 3.</p>
<h2>What well be using</h2>
<ul>
<li>Ubuntu 10.04</li>
<li>RVM</li>
<li>git</li>
<li>Ruby 1.9.3</li>
<li>Rails 3.2.4</li>
<li>Mysql / Postgresql</li>
</ul>
<h2>What you&#8217;ll need</h2>
<p><a title="Linode VPS" href="http://www.linode.com/?r=e7c3bff7bd350a826821220861abcc4e81c3e436" target="_blank">Linode Vps</a><br />
<a title="Rackspace Cloud Server" href="http://www.rackspace.com/cloud/" target="_blank">Rackspace Cloud</a></p>
<h2>Setup server</h2>
<p>Now since you are aware of the tools that we&#8217;ll be using, lets begin setting up our server from scratch. When you are all signed into your hosting account setup a new <strong>ubuntu 10.04 lts(Lucid Lynx)</strong> server. If you are using rackspace then I would start with the 256mb of ram(you can scale if needed). After you have picked your server and have setup a root password we will begin logging into the server via ssh and the terminal.</p>
<p>Open your terminal and type root@ your ip address for your server. A prompt should ask if you would like to save key. Yes is the answer.</p><pre class="crayon-plain-tag">ssh root@xx.xx.xxx.xxx</pre><p></p>
<p>Now that your logged into the server lets create a new user so that you are not logged in as root for everything. It will ask for you to enter a password for that user. Enter the password then press enter to skip full name etc.</p>
<p></p><pre class="crayon-plain-tag">adduser yourusername</pre><p></p>
<p>Now that our user account is setup we need to allow our user to install programs but not as root. Open the sudoers file.</p><pre class="crayon-plain-tag">sudo nano /etc/sudoers</pre><p></p>
<p>Scroll down to bottom and add your username. Press CMD + X &#038; y to save.</p><pre class="crayon-plain-tag"># User privilege specification
yourusername ALL=(ALL) ALL</pre><p></p>
<p>Now that we have our user created(though we&#8217;re still logged in as root) we can stop people from trying to brute-force our root password and take over out account.</p><pre class="crayon-plain-tag">nano /etc/ssh/sshd_config</pre><p></p>
<p>Look for the line that has &#8220;PermitRootLogin&#8221; and change it from yes to no. Now lets restart the server.</p><pre class="crayon-plain-tag">/etc/init.d/ssh restart</pre><p></p>
<p>Then logout of your server as root</p><pre class="crayon-plain-tag">logout</pre><p></p>
<p>Now that we are all logged out, lets login using our new user credentials. Connect to the server using ssh</p><pre class="crayon-plain-tag">yourusername@xx.xx.xxx.xxx</pre><p></p>
<h2>Installing rvm</h2>
<p>After successfully logging in as the new user let;s update the software on the server.</p><pre class="crayon-plain-tag">sudo apt-get update
sudo apt-get upgrade</pre><p></p>
<p>Now we&#8217;ll install git so that we can install rvm, ruby, and other dependencies that we may need.</p><pre class="crayon-plain-tag">sudo apt-get install git-core</pre><p></p>
<p>Next we&#8217;ll install rvm</p><pre class="crayon-plain-tag">curl -L get.rvm.io | bash -s stable</pre><p></p>
<p>Then run source so we will not have to exit terminal.</p><pre class="crayon-plain-tag">source ~/.rvm/scripts/rvm</pre><p></p>
<p>Type code below, if working correctly it will return &#8220;RVM is a function&#8221;</p><pre class="crayon-plain-tag">type rvm | head -n1</pre><p></p>
<p>Now that rvm is setup let&#8217;s install ruby dependencies </p>
<p></p><pre class="crayon-plain-tag">sudo apt-get install build-essential bison openssl libreadline6 \
                     libreadline6-dev curl git-core zlib1g zlib1g-dev \
                     libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev \
                     sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev \
                     ncurses-dev</pre><p></p>
<h2>Installing ruby &#038; rails</h2>
<p>Now we&#8217;re ready to install ruby. This will take a while</p><pre class="crayon-plain-tag">rvm install 1.9.3</pre><p></p>
<p>Now set ruby 1.9.3 as default</p><pre class="crayon-plain-tag">rvm --default use 1.9.3</pre><p></p>
<p>Ruby is now setup now we will need to install rails. Install the current version of rails at the time of this tutorial rails 3.2.4 is in style <img src='http://cell-designs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p><pre class="crayon-plain-tag">gem install rails -v3.2.4</pre><p></p>
<p>Before moving on make sure ruby and rails are installed in that you&#8217;re using the correct version and that they are both installed.</p><pre class="crayon-plain-tag">ruby --version
rails --version</pre><p></p>
<h2>Adding a firewall</h2>
<p>Now lets install a firewall so we&#8217;re not easily venerable to outsiders. For this tutorial I will use Uncomplicated Firewall – UFW, which is a firewall for our ubuntu server.</p><pre class="crayon-plain-tag">sudo apt-get install ufw</pre><p></p>
<p>Now lets setup the rules for our firewall</p><pre class="crayon-plain-tag">sudo ufw default deny
sudo ufw allow ssh
sudo ufw allow http
sudo ufw enable</pre><p></p>
<p>Now lets check our rules to see if port 22, and 80 are open to the internet</p><pre class="crayon-plain-tag">sudo ufw status</pre><p></p>
<p>For more information on ufw check out <a href="http://1000umbrellas.com/2010/04/29/how-to-set-up-the-firewall-using-ufw-on-ubuntu-lucid-lynx-server" title="Ubuntu Firewall" target="_blank">this article</a>, which tells you how to setup a firewall. </p>
<p>In <a href="/blog/setting-up-a-production-server-with-ruby-on-rails-2/" title="Setting up a production server with rails part 2">Part 2</a> of the next tutorial we will setup mysql, apache, and get our web server up and running. </p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/setting-up-a-production-server-with-ruby-on-rails-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joy riding through chicago</title>
		<link>http://cell-designs.com/blog/joy-riding-through-chicago/</link>
		<comments>http://cell-designs.com/blog/joy-riding-through-chicago/#comments</comments>
		<pubDate>Sat, 09 Jun 2012 14:41:43 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=789</guid>
		<description><![CDATA[Whenever I am looking for inspiration before designing, or coding I always watch a video. I watch videos because it is calming and inspirational to me. This Week I've found a video called <em>Joy riding through chicago </em>. I love everything about this video. ]]></description>
				<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/36305675?title=0&amp;byline=0&amp;portrait=0&amp;color=ff2300" width="585" height="300" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/36305675">Joy Ride</a> from <a href="http://vimeo.com/sandroinc">Sandro</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><span id="more-789"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/joy-riding-through-chicago/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install image magick on mac os x for rails 3</title>
		<link>http://cell-designs.com/blog/how-to-install-image-magick-on-mac-os-x-for-rails-3/</link>
		<comments>http://cell-designs.com/blog/how-to-install-image-magick-on-mac-os-x-for-rails-3/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 15:35:02 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[How to Install image magick on mac os x for rails 3]]></category>
		<category><![CDATA[how to install images on rails 3]]></category>
		<category><![CDATA[paperclip tutorial]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[rmagick tutorial]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ror developer]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=686</guid>
		<description><![CDATA[I love coding but sometimes it just gets frustrating when you're stuck on something particular for hours. In my case I were trying to add file uploads to my web app using paperclip and as soon as I were ready to upload an image rails returned an error saying I must install imagemagick.]]></description>
				<content:encoded><![CDATA[<p><span id="more-686"></span>I love coding but sometimes it just gets frustrating when you&#8217;re stuck on something particular for hours. In my case I were trying to add file uploads to my web app using paperclip and as soon as I were ready to upload an image rails returned an error saying I must install imagemagick. In today&#8217;s post I am going to share with you all how I have gotten this to work and hopefully this saves you hours of trying to find the right solution.</p>
<h2>Install gem</h2>
<p>First things first, open your gemfile located in your rails root directory then add the following to your gemfile. Though this tutorial is fairly new I recommend checking the latest version to see where rmagick is currently at.</p><pre class="crayon-plain-tag">gem 'rmagick', '2.13.1'</pre><p></p>
<h2>Install Homebrew</h2>
<p>When getting your mac you notice mac&#8217;s come without tons of programs which means you have to install them manually. After you have added rgmagick to your gemfile go to homebrew homepage.</p>
<p>Open your terminal and add the following code:</p><pre class="crayon-plain-tag">/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.github.com/gist/323731)&quot;</pre><p>After running the above command run this command. Should start installing imagmagick this take a bit of time.</p><pre class="crayon-plain-tag">brew install imagemagick</pre><p></p>
<h2>Permission issues</h2>
<p>If you get an error in rails saying</p><pre class="crayon-plain-tag">Errno::EACCES: Permission denied - /Users/path
An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.</pre><p>Go to the path where rmagick is(gems folder) and pull the folder to your desktop then create a new folder with the same name and finally copy the content from the first folder to your newly created folder. After you have successfully done so you should now have full permission. Finally go into your terminal and run <strong>bundle install</strong> command and everything should work from there. Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/how-to-install-image-magick-on-mac-os-x-for-rails-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to tidy up your css(3) stylesheet without losing properties</title>
		<link>http://cell-designs.com/blog/how-to-tidy-up-your-css3-stylesheet-without-losing-properties/</link>
		<comments>http://cell-designs.com/blog/how-to-tidy-up-your-css3-stylesheet-without-losing-properties/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 01:01:14 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[clean ccs]]></category>
		<category><![CDATA[clean css code]]></category>
		<category><![CDATA[clean css tidy]]></category>
		<category><![CDATA[css tidy css3]]></category>
		<category><![CDATA[css tidy mac]]></category>
		<category><![CDATA[css tidy online]]></category>
		<category><![CDATA[css tidy tool]]></category>
		<category><![CDATA[css tidy up]]></category>
		<category><![CDATA[css3 tidy solution]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[tidy css]]></category>
		<category><![CDATA[tidy css3]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=521</guid>
		<description><![CDATA[As as front end developer I tend to write an abundant amount of HTML and even more css. When I used to write code as a young developer I tend to put all of my styling properties anywhere...]]></description>
				<content:encoded><![CDATA[<p><span id="more-521"></span></p>
<h2>My story</h2>
<p>As as front end developer I tend to write an abundant amount of HTML and even more css. When I used to write code as a young developer I tend to put all of my styling properties anywhere and did not have a style for my css stylesheet. If you&#8217;re wondering what I mean by that I am referring to my sloppy code writing in css. Since my css code was not well organized I used css tidy software&#8217;s to tidy my css code and boom there it was, nice clean code. As time evolved I started getting into css3. After working with css3 for 1.5 years I loved it and it was amazing. As usual I would have sloppy css code just because I am lazy sometimes when writing it and do not feel like having everything neat. So what do I do? I return to my good old pal css tidy. I insert my code into the css tider and what do you know. It does not recognize some of my css3 syntax. I&#8217;m sure you have had prior experience with something like this. So there I was stuck, thinking to myself what can I do? I did not want to go through over 2000 lines of css code and re-arrange it all.</p>
<h2>The Solution</h2>
<p>If you&#8217;re reading this line first you probably could care less about what I have to say and would like to just get to the solution. Nothing wrong with that <img src='http://cell-designs.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> !</p>
<p>So if you&#8217;re a web developer you often used a tool called <a title="Firebug" href="http://getfirebug.com/" target="_blank">firebug</a>. If you&#8217;re are not familiar with firebug it is a debugging tool that saves you a ton of time when developing websites since you can real time edit and it is just a cool plugin all around.</p>
<p>So once you have <a title="Firebug" href="http://getfirebug.com/" target="_blank">firebug</a> installed right click&gt;&gt;Inspect element then select the css tabs. Now you will see your css in a neat and nicely formatted way.<br />
<a href="/wp-content/uploads/2011/07/final.jpg" target="_blank"><img src="/wp-content/uploads/2011/07/small.jpg" alt="" /></a></p>
<p>So the next time you&#8217;re writing css and you have sloppy or messy code just open up firebug and re-copy your css. Also the benefit of doing it this way is if you&#8217;re using css3 it will not remove your web properties so that is awesome. The downfall is it adds things like scroll to your code but you could remove that with ease. If this method helps let me know by leaving a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/how-to-tidy-up-your-css3-stylesheet-without-losing-properties/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0: How to add description text to menu navigation</title>
		<link>http://cell-designs.com/blog/wordpress-3-0-how-to-add-description-text-to-menu-navigation/</link>
		<comments>http://cell-designs.com/blog/wordpress-3-0-how-to-add-description-text-to-menu-navigation/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 00:45:48 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu navigation tutorial]]></category>
		<category><![CDATA[two tier menu nav]]></category>
		<category><![CDATA[walker_nav_menu]]></category>
		<category><![CDATA[wordpress description text tutorial]]></category>
		<category><![CDATA[wordpress walker_nav_menu]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=512</guid>
		<description><![CDATA[The other day I were working on a website for a client and he wanted to have the ability to add a description to his menu items. In other words have a menu navigation with text under it...]]></description>
				<content:encoded><![CDATA[<p><span id="more-512"></span>The other day I were working on a website for a client and he wanted to have the ability to add a description to his menu items. In other words have a menu navigation with text under it. At first I was not sure how to approach this then I did a little research and found multiple solutions.</p>
<h2>First Solution</h2>
<p>If you&#8217;ve evered worked with wordpress you probably <del datetime="2011-07-22T16:20:08+00:00">have</del> not worked with the walker el function. The walker el function for WordPress allows you to use a description text or alt text for your WordPress menu items.</p>
<p>For the code below you can copy and paste it into your functions.php file. You can change the class nav-description to what ever you would like.</p><pre class="crayon-plain-tag">add_filter('walker_nav_menu_start_el', 'bg_description_in_nav_with_qtranslate', 10, 4);
function bg_description_in_nav_with_qtranslate($item_output, $item, $depth, $args){
$desc = __($item-&amp;gt;post_content); return preg_replace('/(&amp;lt;a.*?&amp;gt;[^&amp;lt;]*?)&amp;lt;/', '$1' . &quot;&amp;lt;span class=&quot;nav-description&quot;&amp;gt;{$desc}&amp;lt;/span&amp;gt;&amp;lt;&quot;, $item_output);
}</pre><p></p>
<h2>Second Solution</h2>
<p>The second solution is a bit more but you have more customization over your menu nav(That is if you&#8217;re looking for more options).</p>
<p>Copy and paste the code below into your functions.php file. If you do not know what you&#8217;re doing do not tamper with the code below or else it can cause errors.</p><pre class="crayon-plain-tag">class My_Walker extends Walker_Nav_Menu
{
	function start_el(&amp;amp;$output, $item, $depth, $args) {
		global $wp_query;
		$indent = ( $depth ) ? str_repeat( &quot;t&quot;, $depth ) : '';

		$class_names = $value = '';

		$classes = empty( $item-&amp;gt;classes ) ? array() : (array) $item-&amp;gt;classes;

		$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
		$class_names = ' class=&quot;' . esc_attr( $class_names ) . '&quot;';

		$output .= $indent . '&amp;lt;li id=&quot;menu-item-'. $item-&amp;gt;ID . '&quot;' . $value . $class_names .'&amp;gt;';

		$attributes  = ! empty( $item-&amp;gt;attr_title ) ? ' title=&quot;'  . esc_attr( $item-&amp;gt;attr_title ) .'&quot;' : '';
		$attributes .= ! empty( $item-&amp;gt;target )     ? ' target=&quot;' . esc_attr( $item-&amp;gt;target     ) .'&quot;' : '';
		$attributes .= ! empty( $item-&amp;gt;xfn )        ? ' rel=&quot;'    . esc_attr( $item-&amp;gt;xfn        ) .'&quot;' : '';
		$attributes .= ! empty( $item-&amp;gt;url )        ? ' href=&quot;'   . esc_attr( $item-&amp;gt;url        ) .'&quot;' : '';

		$item_output = $args-&amp;gt;before;
		$item_output .= '&amp;lt;a'. $attributes .'&amp;gt;';
		$item_output .= $args-&amp;gt;link_before . apply_filters( 'the_title', $item-&amp;gt;title, $item-&amp;gt;ID ) . $args-&amp;gt;link_after;
		$item_output .= '&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;sub&quot;&amp;gt;' . $item-&amp;gt;description . '&amp;lt;/span&amp;gt;';
		$item_output .= '&amp;lt;/a&amp;gt;';
		$item_output .= $args-&amp;gt;after;

		$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
	}
}</pre><p>Now that you have the function in your functions.php file you now have to call it via your header.php file. Copy and paste the code below into your header.php file.</p><pre class="crayon-plain-tag">$walker = new My_Walker;
	wp_nav_menu(array(
	        'echo' =&amp;gt; true,
		'container' =&amp;gt; '',
		'theme_location' =&amp;gt; 'primary',
		'menu_class' =&amp;gt; 'grid-10 omega',
		'walker' =&amp;gt; $walker
	));</pre><p></p>
<h2>Conclusion</h2>
<p>If you were looking into adding text under your menu navigation then the above code should work for you. As for styling you will have style it yourself but that shouldn&#8217;t be very hard. If you&#8217;re haveing trouble check out this <strong>tutorial:</strong> <a title="Create A Speaking Block Navigation Menu Using Pure Css" href="http://www.webdevtuts.net/coding/css/create-a-speaking-block-navigation-menu-using-pure-css/" target="_blank">Create A Speaking Block Navigation Menu Using Pure Css</a> , it will help you create a two tier menu navigation. I hope this has helped you and saved you a ton of time from looking into the wordpress codex.</p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/wordpress-3-0-how-to-add-description-text-to-menu-navigation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Social Media Club Chicago: Entrepreneurpalooza! with Carol Roth &amp; Barry Moltz</title>
		<link>http://cell-designs.com/blog/social-media-club-chicago-entrepreneurpalooza-with-carol-roth-barry-moltz/</link>
		<comments>http://cell-designs.com/blog/social-media-club-chicago-entrepreneurpalooza-with-carol-roth-barry-moltz/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 00:17:19 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Chicago events]]></category>
		<category><![CDATA[Chicago web designer]]></category>
		<category><![CDATA[Chicago web developer]]></category>
		<category><![CDATA[SMC Chicago]]></category>

		<guid isPermaLink="false">http://cell-designs.com/?p=504</guid>
		<description><![CDATA[First off I like to say the event location was phenomenal! It was located at the Willis Tower in Chicago IL. When arriving to the event I and a friend were looking around, checking out the views and greeting people. ]]></description>
				<content:encoded><![CDATA[<h2><span id="more-504"></span></h2>
<h2>The Event</h2>
<p>First off I like to say the event location was phenomenal! It was located at the Willis Tower in Chicago IL. When arriving to the event I and a friend were looking around, checking out the views and greeting people. The people there were very friendly and had great advice.</p>
<h2>Carol Roth</h2>
<p><img class="alignright" title="Carol Roth" src="http://theentrepreneurequation.com/images/carol_about2.jpg" alt="SMC Chicago" width="146" height="152" />Carol Roth was one of the event speakers that I was looking forward to hearing. She has a tremendous story and stated that she has raised over 1BILLION dollars and capital funds for companies ranging from small size businesses to corporate businesses.</p>
<h4>My Thoughts</h4>
<p>Listening to Carol speak was great and I love her story but I felt as if she was holding back on the good information, which I do not blame because she has probably told us about it in her new book. As an individual who is looking to become a business owner, I expected to learn how to run or build my business from ground zero and not halfway there. Carol benefits a lot of business owners who are already successful or already running a business partially successful IMO. She was still great and a great speaker.</p>
<h2>Barry Moltz</h2>
<p><img class="alignleft" title="Barry Moltz" src="http://assets.bizjournals.com/washington/blog/2010/08/barryMoltz*280.jpg?v=1" alt="SMC Chicago" width="188" height="124" />Barry Moltz was a guy I knew just a tad bit about. I knew he was an entrepreneur and a successful business owner who has failed and succeeded with his business. With over 15 years of experience with business’s Barry is ready to speak to people and tell them how he has made it through a recession and his experience going through it all.</p>
<h4>My Thoughts</h4>
<p>Barry was a great speaker. Unlike many successful entrepreneurs, he had a sense of humor. Throughout Barry’s speech he talked about how to run a business of your own and things you should consider when running a business. He was a great speaker and was a great person to listen to.</p>
<h2>Barbara Rozgonyi</h2>
<p>Barbara is the founder of Social Media Club (SMC) and it is always a blast when I go to an event of hers (I’ve been to 2). She is a great speaker herself and has a lot to speak on whether it’s getting a job via linkedin or tackling social media websites. Usually I would feel uncomfortable at events like such but not at hers considering the community is very friendly. To keep up with Barbara check out here news feed via twitter <a href="http://twitter.com/wiredprworks">@wiredprworks</a>.</p>
<p>It was a great day I and my friend and I am pretty positive everyone who attended had a great time. I look forward to many more SMC meet ups and future gatherings. To see photos from the event check out the <a href="http://www.flickr.com/groups/smcchicago/" target="_blank">SMC Chicago Flickr Photo’s</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cell-designs.com/blog/social-media-club-chicago-entrepreneurpalooza-with-carol-roth-barry-moltz/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
