Entries Tagged 'Dynamic languages' ↓

The Fantastic SUBST Function (part 1)

Ulrik Sandberg

When John McCarthy in 1960 wrote his famous paper on the programming language LISP, he used a particular function to illustrate what you could do with the language. The language consisted of only nine “special forms”, primitive building blocks by which any computable function could be created. The function was called SUBST, and it included [...]

Tags: , ,

How to use user metadata in post types via Advanced Custom Fields in WordPress

Henrik Bernström

To get the most out of this article a basic knowledge of PHP, WordPress, custom post types and Advanced Custom Fields is required. If you’ve ever needed custom data input for your WordPress posts or pages (or any other kind of custom post type) then Advanced Custom Fields (ACF) is the shit! It’s flexible, extensible [...]

Tags: , , , , , ,

Capistrano and Net:SSH with login shell

Johan Lundahl

New to Capistrano? Read my previous and more introductory blog post on Capistrano – Remote builds with Capistrano. Are you using Capistrano and are confused why the user environment, the PATH for example, is different from when you log on to your server via SSH? Perhaps you have failed to use RVM or other user [...]

Tags: , , , , ,

Remote builds with Capistrano

Johan Lundahl

Capistrano is a very nice open source tool for executing commands on one or multiple remote servers via SSH. Capistrano is written in Ruby and uses a rake-like DSL for its tasks. Its main use is to deploy web applications, Rails in particular, but it may be used for much more. Want to try? It’s [...]

Tags: , , ,

7 Reasons to go to Øredev 2011

Anders Janmyr

I’m am looking forward to Øredev 2011 more than I have looked forward to any of the previous ones. The reason for this is that Øredev has finally become a leading conference for dynamic programming. Øredev has always been good in the enterprise sphere led by Java, .Net and mobile tracks, but it has been [...]

Tags: , ,

Asset management with Sprockets

Andreas Hallberg

A quick tip in case you’re a Ruby person and haven’t used the Sprockets gem: Sprockets is a Rack application that serves assets (javascript, css, images etc) over HTTP. It’s built in to Rails 3.1 and DHH spent a significant portion of the RailsConf 2011 keynote promoting its benefits (although I’m not sure he ever mentioned its [...]

Tags: ,

Getting ShowOff source code high-lighting for Clojure

Ulrik Sandberg

ShowOff is a presentation software where you create your slides by writing simple text files containing markdown formatting. Styling is done using CSS. The slides are served by a web server and can be displayed in a web browser. With a simple command, a presentation can be deployed on Heroku for everyone to see. ShowOff [...]

Tags:

jQuery Changes From 1.4.2 to 1.6

Anders Janmyr

jQuery is a powerful library and it is possible to get by without using any of the new features. That’s why many of us just upgrade to a new version assuming that it is mostly bug and performance fixes. This is not the case. jQuery 1.4.2 was released in February 2010 and it’s been one [...]

Tags: , ,

Invoke any Method on any Thread

Fredrik Olsson

I previously wrote a blog post titled Performing any Selector on the Main Thread detailing a convenience category on NSInvoication for easily creating invocation objects that could be invoked on any thread. This category has served me well, and even got traction in the iOS developer community, so I never bothered to stop and think [...]

Tags: , , , , , , , ,

Clojure third language officially supported on Heroku

Ulrik Sandberg

According to this blog entry on Heroku, Clojure becomes the third language officially supported on the Cedar stack, after Ruby and Node.js. They write: – “Clojure combines the expressiveness of Lisp, the agility of a dynamic language, the performance of a compiled language, and the wide applicability of the JVM in a robust, production-ready package. [...]

Tags: , , ,

Notes and Thoughts from a Great Conference

The Nordic Ruby conference is a really great conference. I think the secret is: it’s small (they set a limit of 150 people which was reached), single track, 15 or 30 min sessions and 30 min breaks, great party and you have lots of time to talk to very passionate speakers and attendants. The quality [...]

Deploying a Clojure web app on Heroku

Ulrik Sandberg

Heroku is a cloud application platform for Ruby/Rails and Node.js. However, the Cedar stack on Heroku makes it possible to deploy other types of applications. In this blog entry, I will first describe how to write a simple Clojure web app using the Ring library and the build tool Leiningen. Then I will show how to deploy this Clojure web app on Heroku, using nothing but Git. I will make a change and see how to deploy that. I will also show how to easily roll back to a previous release.

Tags: , , , , ,

Tips from Rails Anti-Patterns

Anders Janmyr

Another good Ruby book is out, Rails Anti-Patterns. The book is loaded with good tips on everything from following the Law of Demeter to cleaning up your views with the use of helper methods. Here are some things I picked up from the book. delegate can take a :prefix argument The delegate method from active_support [...]

Tags: , ,

“HTML5 & MVC3″ Debriefing

Gustaf Nilsson Kotte Per Ökvist Karl Adriansson

Recently, Jayway hosted the seminar “HTML5 & MVC3″ in Malmö and Stockholm. We also visited the SweNUG Linköping group and held our presentation there. In this post, we will give you links to some of the topics we covered. The presentation was first delivered on Techdays 2011, and we recommend you to look at that [...]

Tags: , , ,

Ruby, an Exceptional Language

Anders Janmyr

Based on the book Exceptional Ruby by Avdi Grimm, I have developed a strategy for how I should deal with exceptions in Ruby. Being a very dynamic language, Ruby allows very flexible coding techniques. Exceptions are not an exception . When I am developing a library in Ruby I typically create one Error module and [...]

Tags: , ,