-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·842 lines (453 loc) · 33.7 KB
/
Copy pathindex.html
File metadata and controls
executable file
·842 lines (453 loc) · 33.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Chili Pepper Design</title>
<meta name="author" content="Evan Johnson">
<meta name="description" content="Tutorials, how-tos, musings, and code snippets about web development and technology. Using PHP, jQuery, mySql, MongoDB and more.">
<meta name="keywords" content="web development, web design, programming, code, hacking">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://chilipepperdesign.com/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="Chili Pepper Design" type="application/atom+xml">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<meta property="og:type" content="website" />
<meta property="og:url" content="http://chilipepperdesign.com">
<meta property="og:title" content="Chili Pepper Design">
<meta property="og:image" content="http://chilipepperdesign.com/square-logo.jpg">
<meta property="og:description" content="Tutorials, how-tos, musings, and code snippets about web development and technology. Using PHP, jQuery, mySql, MongoDB and more.">
<meta property="fb:app_id" content="171392359587743" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6058373-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">Chili Pepper Design</a></h1>
<h2>Web development relleno</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:chilipepperdesign.com" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/projects">Projects</a></li>
<li><a href="/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/2013/11/11/versioned-data-model-definitions-with-mongodb/">A Use Case for MongoDb: Versioned Static Data Model Definitions</a></h1>
<p class="meta">
<time class="published updated" datetime="2013-11-11T13:53:00-07:00" pubdate data-updated="true">Nov 11<span>th</span>, 2013</time>
| <a href="http://www.chilipepperdesign.com/2013/11/11/versioned-data-model-definitions-with-mongodb/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>At SplashLab, our CMS application supports custom web forms. Each form has a different set of fields which hold different types of data. Email addresses, multi-select radio buttons, text areas, etc. Some forms only get submitted a couple of times. Some are submitted many thousands of times. The best way to store this data is something we are still working on, but I thought I would share how we are using <a href="http://www.mongodb.org/">MongoDb</a> to solve this problem currently.</p>
</div>
<footer>
<a rel="full-article" href="/2013/11/11/versioned-data-model-definitions-with-mongodb/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2013/06/27/javascript-unit-testing-with-jamine-phantomjs-karma/">JavaScript Unit Testing With Jasmine, PhantomJs and Karma</a></h1>
<p class="meta">
<time class="published updated" datetime="2013-06-27T08:53:00-06:00" pubdate data-updated="true">Jun 27<span>th</span>, 2013</time>
| <a href="http://www.chilipepperdesign.com/2013/06/27/javascript-unit-testing-with-jamine-phantomjs-karma/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><!-- Notes: alternative to Karma? https://github.com/airportyh/testem -->
<p>NOTE: This article was accidentally published before it was completed. It’s still not complete,
but it’s close, so rather than take it down I’ll leave it up.</p>
<p>I do not practice Test Drive Design (TDD). I do try to fill in unit tests to code if I have time, for regression testing, but that is far from the ideals of TDD. I keep hearing great things about it though, and enjoyed a little crash course put on by the UtahJS user group. Part of a project I am working on at SplashLab is a standalone JS app for collecting web analytics. This seemed like a good time to try out some TDD.</p>
</div>
<footer>
<a rel="full-article" href="/2013/06/27/javascript-unit-testing-with-jamine-phantomjs-karma/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2013/01/18/facebook-graph-search-facebook-page-optimization/">Facebook Page Optimization for Graph Search</a></h1>
<p class="meta">
<time class="published updated" datetime="2013-01-18T15:48:00-07:00" pubdate data-updated="true">Jan 18<span>th</span>, 2013</time>
| <a href="http://www.chilipepperdesign.com/2013/01/18/facebook-graph-search-facebook-page-optimization/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>Facebook is currently working on their new <a href="https://www.facebook.com/about/graphsearch">Graph Search</a> product. It’s in invite-only Beta right now, but it will be rolled out to all users eventually. Facebook has a crack team of <a href="http://techcrunch.com/2013/01/15/here-is-the-ex-googler-dream-team-that-led-facebooks-new-graph-search-tool/">ex-Google employees</a> working on it, and the demos are impressive.</p>
<p>Currently, Graph Search does not complete directly with Google and is not intended for general “informational”, keyword-based web searches. Rather, the idea is to tease interesting data out of social graph connections and relations, such as “who as likes to mountain bike where I work”, “what games do my friends play” and “best pizza place near me”. The Google+ “Search Plus Your World” product has a similar goal, enhancing search results with information from Google+, but it doesn’t support relational queries. The number of brands and restaurants on Facebook actually positions Graph Search more as a competitor to Yelp and Foursquare than Google.</p>
<p>Facebook has not announced a monetization strategy for Graph Search yet (to the <a href="http://beta.fool.com/mariecabural/2013/01/18/facebook-graph-search-fails-impress-threatens-yelp/21787/">disappointment of shareholders</a>), but one obvious route looks to be selling search ads that are targeted by combining “search intent” - which is what Google has built it’s business on - with Facebook’s valuable social data.</p>
<p>Privacy is an immediate concern with Graph Search, so much so that Facebook tried to allay in their <a href="http://newsroom.fb.com/News/562/Introducing-Graph-Search-Beta">initial announcement</a>. The effectiveness of social search relies of the amount of public data users share, putting it at odds with user’s privacy needs. It will be interesting to see how this plays out.</p>
<p>It is early days still and speculation about Graph Search is rampant. But it will be a valuable discovery tool for businesses with Facebook Pages and Applications, and because of that Facebook has already released a <a href="https://developers.facebook.com/blog/post/2013/01/16/platform-updates--operation-developer-love/">few</a> <a href="http://www.facebook-studio.com/news/item/introducing-graph-search-help-people-discover-your-business">resources</a> that provide a basic outline of how the search will work, and how businesses can optimize for it.</p>
<p> The goal of this post if for me to synthesize the changes for my own understanding, but I thought I would share it with the world as well. I will hopefully update this page as more information becomes available and my understanding improves.</p>
<p> </div>
<footer>
<a rel="full-article" href="/2013/01/18/facebook-graph-search-facebook-page-optimization/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2013/01/15/backbone-js-bind-callback-to-successful-model-fetch/">Backbone.js: Bind Callback to Successful Model Fetch</a></h1>
<p class="meta">
<time class="published" datetime="2013-01-15T07:48:00-07:00" pubdate data-updated="true">Jan 15<span>th</span>, 2013</time>
| <a href="http://www.chilipepperdesign.com/2013/01/15/backbone-js-bind-callback-to-successful-model-fetch/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>I am learning the <a href="http://backbonejs.org/">Backbone.js JavaScript framework</a> right now, and ran into a problem. Backbone <a href="http://backbonejs.org/#Collection">Collections</a> and <a href="http://backbonejs.org/#Model">Models</a> can be set up to asynchronously load data from the server with the <a href="http://backbonejs.org/#Model-fetch"><code>fetch()</code></a> method, which fires off an Ajax <code>sync</code> call. You can bind a callback method to a Collection’s <a href="http://backbonejs.org/#Collection-reset"><code>reset</code></a> event, which Backbone provides. It was my impression that the <a href="http://backbonejs.org/#Model-change"><code>change</code></a> event on a Model would do the same thing. But when I bound to the Model’s <code>change</code> event in a View, it did not work as expected. Here is the code that was not working:</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
<span class='line-number'>13</span>
<span class='line-number'>14</span>
</pre></td><td class='code'><pre><code class=''><span class='line'> var Model = Backbone.Model.extend({ url: '/my/url' });
</span><span class='line'>
</span><span class='line'> var View = Backbone.View.extend({
</span><span class='line'> initialize: function () {
</span><span class='line'> this.model.on('change', this.render); // attempt to bind to model change event
</span><span class='line'> this.model.fetch(); // fetching the model data from /my/url
</span><span class='line'> },
</span><span class='line'> render: function () {
</span><span class='line'> console.log(this.model); // this.model has not been populated!
</span><span class='line'> }
</span><span class='line'> });
</span><span class='line'>
</span><span class='line'> var myModel = new Model();
</span><span class='line'> var myView = new View({ model: myModel });</span></code></pre></td></tr></table></div></figure>
<p>NOTE: the <code>.on()</code> method was formerly called <code>.bind()</code> apparently, so some older online examples use <code>this.model.bind()</code>, and this still works, presumably calling the underscore.js <code>bind()</code> method?</p>
<p>Well, it turns out I was making a simple mistake about one of JavaScript’s trickier points: <code>this</code> context in the callback function. A substantial amount of reading later (<a href="http://yehudakatz.com/2011/08/11/understanding-javascript-function-invocation-and-this/">this article</a> in particular was helpful) I realized I needed to pass in the <code>this</code> context as a third parameter to the <code>on()</code> method. There is actually a whole section on <code>this</code> in the <a href="http://backbonejs.org/#FAQ-this">Backbone documentation</a>.</p>
<p>More research showed me that since Backbone version 0.9.9 a new method was added to make it more foolproof to bind callbacks with the right context: <code>listenTo()</code>. This method is on the <em>object that has the callback</em>, instead of on the object you are binding to. This way it assumes the correct context and you don’t need to worry about binding it correctly. Below is the working method of binding to a successful Model load, with the new <code>listenTo()</code> syntax.</p>
</div>
<footer>
<a rel="full-article" href="/2013/01/15/backbone-js-bind-callback-to-successful-model-fetch/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2013/01/07/deploying-code-with-git/">Deploying Code With Git</a></h1>
<p class="meta">
<time class="published" datetime="2013-01-07T11:35:00-07:00" pubdate data-updated="true">Jan 7<span>th</span>, 2013</time>
| <a href="http://www.chilipepperdesign.com/2013/01/07/deploying-code-with-git/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>This past year I finally committed (heh) to using Git. One of the reasons was using it’s distributed architecture for easy-peasy remote code deployment to multiple remote environments. It has been a wonderful change which has made my life much easier, so I thought I would write up a blog post about it.</p>
<p>First let me just say that deploying with any kind of version control system (VCS) is a nice step up from deploying with an old school file transfer (e.g. FTP). Here are couple of reasons why deploying with Git is nice:</p>
<ol>
<li>Fast, differential file transfer (only updates modified files)</li>
<li>Easy to rollback to previous code</li>
<li>Git “hook” scripts can run additional deployment tasks (see last Pro-Tip below)</li>
</ol>
<p>There are a couple drawbacks to using pure Git to deploy however:</p>
<ol>
<li>Git does <em>not</em> track file permissions, which could cause problems if some files or directories need special permissions</li>
<li>Git does <em>not</em> track empty directories. If you want it to, you have to use the hacky trick of placing an empty <code>.gitignore</code> in any empty directories you want to deploy</li>
<li>No built in database deployment and migration tools</li>
</ol>
<p>For many purposes however it is a nice, simple solution that falls between basic file transfers and more advanced deployment options (mentioned at the end).</p>
</div>
<footer>
<a rel="full-article" href="/2013/01/07/deploying-code-with-git/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/12/27/new-hipster-hacker-octopress-blog/">New Hipster Hacker Blog</a></h1>
<p class="meta">
<time class="published updated" datetime="2012-12-27T17:16:00-07:00" pubdate data-updated="true">Dec 27<span>th</span>, 2012</time>
| <a href="http://www.chilipepperdesign.com/2012/12/27/new-hipster-hacker-octopress-blog/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>I have not blogged very much the last couple of years, but I am feeling the itch again. I love how blogging makes you more closely research and examine your thoughts and your code. I have missed it. I also miss the positive feedback and ego-reinforcement of blog comments and Google Analytics stats. So for 2013 I am trying to get back on the horse.</p>
<p>It was 4 years ago that I first decided to blog about web design and development on my freelance web design site, Chili Pepper Design. I read some high praise for the <a href="http://textpattern.com/">Textpattern</a> PHP content management system, and installed it. It worked well, but had started to feel dated of late. And besides, none of the cool kids on Hacker News ever talk about Textpattern any more. ;)</p>
<p>So what are the cool kids talking about now? What is the new hotness? Ruby-powered static Jekyll blogs of course! Thus you see before you the new Chili Pepper Design blog, powered by <a href="http://octopress.org">Octopress</a> (a fork of <a href="http://jekyllrb.com/">Jekyll</a>).</p>
<p>Actually it’s not that new or hot anymore, but here are a few reasons why I chose to go the Jekyll/Octopress route regardless:</p>
<ul>
<li><strong><a href="http://octopress.org/docs/setup/">Short learning curve</a></strong> - I was also comtemplating setting up a custom Rails blog, but have not found the time</li>
<li><strong><a href="http://jekyllbootstrap.com/lessons/jekyll-introduction.html#how_jekyll_generates_the_final_static_files">Static</a></strong> - fast loading! and no database to set up, migrate or maintain</li>
<li><strong><a href="http://www.ruby-lang.org/en/">Ruby</a></strong> - I am learning Ruby, so this is a good excuse to squint at some code.</li>
<li><strong>Easy hosting</strong> - can even be used on <a href="http://pages.github.com/">GitHub Pages</a> for free</li>
<li><strong>Easy to theme</strong> - not only is the default Octopress rad, but you have total freedom when styling Jekyll blogs</li>
<li><strong><a href="https://github.com/imathis/octopress/wiki/3rd-party-plugins">Hipster plugins</a></strong> - easily show off your Coderwall and StackOverflow bling, etc</li>
</ul>
<p>Next up I’m going to stretch out my old blogging muscles with a post about how I migrated my blog from Textpattern to Octopress - on <em>windows</em> (dun dun dun).</p>
<p> Cheers!</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2011/05/15/magento-15-ee-110-windows-command-line-batch-update-script-magebat/">Magento 1.5 / EE 1.10 Windows Command Line Batch Update Script mage.bat</a></h1>
<p class="meta">
<time class="published updated" datetime="2011-05-15T23:00:00-06:00" pubdate data-updated="true">May 15<span>th</span>, 2011</time>
| <a href="http://www.chilipepperdesign.com/2011/05/15/magento-15-ee-110-windows-command-line-batch-update-script-magebat#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>So, this might be for kind of a narrow audience, but I’m pretty stoked on it so I wanted to share.</p>
<p>In the newest version of the Magento ecommerce platform, Magento 1.5, they have redone their update script. In <a href="http://www.yireo.com/blog/1294-magento-15-mage-command-line">Magento Connect 2.0</a>, what was called “pear” is now “mage”.</p>
<p>Old and busted:<br />
<pre><code>./pear mage-setup .</code></pre></p>
<p>New Hotness:<br />
<pre><code>./mage mage-setup .</code></pre></p>
<p>They basically work the same, but the name has changed and – more importantly if you are reading this – there is no windows batch file to run. There is a Bash shell script, so you can download and update Magento and it’s many Extensions via the command line in <em>Linux</em>, but not Windows.</p>
<p>So, looking at the mage.sh script and working from the pear.bat script, I made mage.bat. It lets you do command line downloads and updates of Magento in Windows, just like you can on Linux.</p>
<p>Not that anyone is actually hosting Magento on a <span class="caps">WAMP</span> setup, but I find it useful to be able to download and install Extensions and modules on my Windows development box.</p>
<p></div>
<footer>
<a rel="full-article" href="/2011/05/15/magento-15-ee-110-windows-command-line-batch-update-script-magebat/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2011/02/15/reveal-fan-gate-like-gate-facebook-iframe-tab-tutorial-with-php/">Reveal / Fan-Gate / Like-Gate Facebook Iframe Tab Tutorial (With PHP)</a></h1>
<p class="meta">
<time class="published updated" datetime="2011-02-15T00:37:00-07:00" pubdate data-updated="true">Feb 15<span>th</span>, 2011</time>
| <a href="http://www.chilipepperdesign.com/2011/02/15/reveal-fan-gate-like-gate-facebook-iframe-tab-tutorial-with-php#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p><em><strong>Update: <a href="http://www.splashlabsocial.com">SplashLab Social</a> has been released!</strong> <a href="http://www.splashlabsocial.com">If you are looking for an easier way to set up Fans-only/Reveal tabs, look no further!</a> My new service makes it easy to create custom fan-gate tabs, check it out!</em></p>
<p><a href="http://developers.facebook.com/blog/post/462#fbml_roadmap"><span class="caps">FBML</span> is going away</a>. Is the popular (and effective) strategy of “fan-gating” content to encourage visitors to Like you page going away with the <a href="http://developers.facebook.com/docs/reference/fbml/visible-to-connection/">fb:visible-to-connection</a> <span class="caps">FBML</span> tag?</p>
<p>No! Facebook has been kind enough to provide a new method for implementing “reveal tabs” on the new iframe tabs. Follow along in the tutorial below to learn how to do this.</p>
<p>(This tutorial assumes you are creating a <span class="caps">PHP</span> Facebook application, but you can follow the spirit of it in any language.)</p>
<p></div>
<footer>
<a rel="full-article" href="/2011/02/15/reveal-fan-gate-like-gate-facebook-iframe-tab-tutorial-with-php/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2011/02/14/facebook-iframe-tabs-on-pages-no-more-fbml/">Facebook Iframe Tabs on Pages - No More FBML!</a></h1>
<p class="meta">
<time class="published updated" datetime="2011-02-14T23:43:00-07:00" pubdate data-updated="true">Feb 14<span>th</span>, 2011</time>
| <a href="http://www.chilipepperdesign.com/2011/02/14/facebook-iframe-tabs-on-pages-no-more-fbml#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>The long awaited transition from <span class="caps">FBML</span> tabs to iframe tabs has finally happened. As of this writing on Feb 14th 2011 (Valentines Day!) you can choose the “iframe” option for Facebook application tabs. The official word from the <a href="http://developers.facebook.com/roadmap/">Facebook developer roadmap</a> is that <a href="http://developers.facebook.com/blog/post/462#fbml_roadmap">as of March 11th developers will no longer be able to create <span class="caps">FBML</span> tabs</a> (although existing <span class="caps">FBML</span> apps will be supported indefinitely – or at least until the end of 2011 I heard in the comments).</p>
<p><img src="http://www.chilipepperdesign.com/images/52.jpg" style="width: 415px" /></p>
<p></div>
<footer>
<a rel="full-article" href="/2011/02/14/facebook-iframe-tabs-on-pages-no-more-fbml/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2010/03/24/a-facebook-content-management-system-cms-for-facebook-page-templates/">A Facebook Content Management System (CMS) for Facebook Page Templates</a></h1>
<p class="meta">
<time class="published updated" datetime="2010-03-24T00:58:00-06:00" pubdate data-updated="true">Mar 24<span>th</span>, 2010</time>
| <a href="http://www.chilipepperdesign.com/2010/03/24/a-facebook-content-management-system-cms-for-facebook-page-templates#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p style="font-size:1.2em;">
<p><a href="http://www.splashlabsocial.com"><img src="http://www.chilipepperdesign.com/images/53t.jpg" style="float: left; margin-right: 10px;" /></a><br />
<strong>Update: The project is now live and ready for signups! Head over to <a href="http://splashlabsocial.com">SplashLab Social</a> to learn more and get started. It’s the easiest way to create and manage content on your Facebook Page’s iframe tabs!</strong></p></p>
<p>There’s something big in the works here at Chili Pepper Design I wanted to share on my blog quickly:</p>
<p></div>
<footer>
<a rel="full-article" href="/2010/03/24/a-facebook-content-management-system-cms-for-facebook-page-templates/">Read on →</a>
</footer>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>About Me</h1>
<p><img id="profile-image" src="http://www.gravatar.com/avatar/02bee2f91e0a8c3aefbfa6bfb5304c51" alt="Gravatar of thaddeusmt" />My name is Evan Johnson. I’m a software developer from Montana, who spent some time in Nebraska. I’m the chief software architect at <a href="http://splashlabsocial.com">SplashLab Social</a>, but I am blogging here on my old freelance web design URL for fun. I hope you find something useful here, thanks for visiting! Cheers</p>
<p><a class="twitter-link" href="http://twitter.com/thaddeusmt" title="@thaddeusmt on Twitter"><img src="/images/twitter-bird-16x16.png" /></a> <a class="googleplus-link" href="//plus.google.com/115669497324630841356?prsrc=3" rel="author" title="Evan Johnson on Google+"><img src="//ssl.gstatic.com/images/icons/gplus-16.png" alt="Google+" /></a></p>
</section><section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/2013/11/11/versioned-data-model-definitions-with-mongodb/">A use case for MongoDb: Versioned static data model definitions</a>
</li>
<li class="post">
<a href="/2013/06/27/javascript-unit-testing-with-jamine-phantomjs-karma/">JavaScript unit testing with Jasmine, PhantomJs and Karma</a>
</li>
<li class="post">
<a href="/2013/01/18/facebook-graph-search-facebook-page-optimization/">Facebook Page Optimization for Graph Search</a>
</li>
<li class="post">
<a href="/2013/01/15/backbone-js-bind-callback-to-successful-model-fetch/">Backbone.js: Bind Callback to Successful Model Fetch</a>
</li>
<li class="post">
<a href="/2013/01/07/deploying-code-with-git/">Deploying code with Git</a>
</li>
</ul>
</section>
<section>
<h1>Categories</h1>
<ul id="categories">
<li class='category'><a href='/categories/apache/'>Apache (1)</a></li>
<li class='category'><a href='/categories/backbone-js/'>Backbone.js (1)</a></li>
<li class='category'><a href='/categories/css/'>CSS (2)</a></li>
<li class='category'><a href='/categories/databases/'>Databases (1)</a></li>
<li class='category'><a href='/categories/drupal/'>Drupal (2)</a></li>
<li class='category'><a href='/categories/facebook/'>Facebook (7)</a></li>
<li class='category'><a href='/categories/git/'>Git (1)</a></li>
<li class='category'><a href='/categories/javascript/'>JavaScript (5)</a></li>
<li class='category'><a href='/categories/linux/'>Linux (3)</a></li>
<li class='category'><a href='/categories/magento/'>Magento (11)</a></li>
<li class='category'><a href='/categories/meta/'>Meta (5)</a></li>
<li class='category'><a href='/categories/mongodb/'>MongoDB (1)</a></li>
<li class='category'><a href='/categories/nginx/'>Nginx (3)</a></li>
<li class='category'><a href='/categories/reviews/'>Reviews (1)</a></li>
<li class='category'><a href='/categories/ruby/'>Ruby (1)</a></li>
<li class='category'><a href='/categories/seo/'>SEO (3)</a></li>
<li class='category'><a href='/categories/sysadmin/'>Sysadmin (4)</a></li>
<li class='category'><a href='/categories/wordpress/'>WordPress (3)</a></li>
<li class='category'><a href='/categories/jquery/'>jQuery (2)</a></li>
</ul>
</section>
<section>
<h1>Latest Tweets</h1>
<p>
<a href="http://twitter.com/thaddeusmt" class="twitter-follow-button" data-show-count="false">Follow @thaddeusmt</a>
<a class="twitter-timeline" href="https://twitter.com/thaddeusmt" data-widget-id="400042347972395008"
data-link-color="#750000" height="300" data-chrome="noheader transparent" lang="EN">Tweets by @thaddeusmt</a>
</p>
</section>
<section>
<h1>StackOverflow</h1>
<a id="stackoverflow-badge" href="http://stackoverflow.com/users/164439/thaddeusmt"><img src="http://stackoverflow.com/users/flair/164439.png" width="208" height="58" alt="profile for thaddeusmt at Stack Overflow, Q&A for professional and enthusiast programmers" title="profile for thaddeusmt at Stack Overflow, Q&A for professional and enthusiast programmers"></a>
</section>
<section>
<h1>Coderwall</h1>
<ul id="cw_badges">
<li class="loading">Status updating…</li>
</ul>
<script type="text/javascript">
var coderwall = (function(){
function render(options, badges){
var fragment = '',
t = $(options.target)[0],
height = 65,
width = 65,
index;
for (index in badges) {
fragment += '<a class="cw_badge"title="' + badges[index].description + '" href="http://coderwall.com/' + options.user + '">';
fragment += '<img alt="' + badges[index].description + '" height="' + width + '" width="' + height + '" src="' + badges[index].badge + '"/>';
fragment += '</a>';
}
t.innerHTML = fragment;
}
return {
showBadges: function(options){
$.ajax({
url: 'http://coderwall.com/' + options.user + '.json?callback=?'
, type: 'jsonp'
, error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
, success: function(res) {
render(options, res.data.badges);
}
});
}
};
})();
$.domReady(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
if (!window.$){
var b = document.createElement('script');
b.type = 'text/javascript';
b.src = '/javascripts/ender.js';
var sc = document.getElementsByTagName('script')[0];
sc.parentNode.insertBefore(jxhr, s);
}
coderwall.showBadges({
user: 'thaddeusmt',
target: '#cw_badges'
});
});
</script>
<style type="text/css">
.cw_badge img {
padding: 5px;
border: 0 none !important;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
-o-box-shadow: none !important;
box-shadow: none !important;
}
</style>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2014 - Evan Johnson -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'chilipepperdesign';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>