Articles

Protecting your Paperclip downloads

Way back last November when I first blogged about Paperclip I included a brief mention of hiding files behind a controller rather than simply putting them in the public directory for all to see.

Strip tags in Rails, Javascript and PHP

Strip tag function is used to remove html tags from the string.
Here I will show you that how to use strip tag in ruby on rails, javascript and php.
#PHP:
Example 1: Remove all html tags.

<?php
$str '

Test1.

text2

';
echo strip_tags($str);
?>

Example 2: Allow p and h1 html tag.

<?php
$str '

Test1.

text2

';
echo strip_tags($str,"

");
?>

#Ruby On Rails
Example 1: Remove all html tags
#model

class User < [...]

Sinatra: 5th Batch of the Popular Course Announced

Conference Sold Out, Sign Up for Waiting List

Aloha!

Wow, we are stoked to announce that Aloha on Rails is now SOLD OUT. Mahalo for the support, and we are working hard to put on a great show.

If you missed the registration period, we recommend that you sign up for the waiting list. We’ll email you if a seat opens.

Stay tuned for more news as the conference dates approach.

See you in Waikiki!

MySQL

The MySQL® database has become the world's most popular open source database because of its consistent fast performance, high reliability and ease of use.

MySQL seems to be the most popular database for many Rails deployments.

Using MySQL with Rails

Creating a new application

To create a new Rails application using the MySQL adapter:

GitHub Contest almost over!

The 2009 GitHub Contest is winding to a close – less than 48 hours until the deadline to get your submissions in. If you haven’t pushed the source code for your entry yet (which is a lot of you), please remember to do so soon. You know what’s on the line:

Rails Rumble Voting Is Go – 22 New Ruby Webapps To Check Out!

rrumble.png Rails Rumble is an annual Ruby (and Rails) development contest where developers attempt to build a working web app in 48 hours.

DB2 on Mac OS X Snow Leopard

Earlier today I headed over to the local Apple Store to purchase a copy of Snow Leopard, the newest version of Apple’s operating system. There was a decent line up, as I expected. Not the kind of line up you’d encounter with the launch of a new iPhone, but it was fairly busy for a Friday morning. When I arrived, I took my place at the end of the queue where rumors were swirling around about the store having sold out of single copies of Snow Leopard in its first hour.

Sparkle! GreaseMonkey!

Sparkle Has Moved to GitHub and Greasemonkey Lives at GitHub.

I love when software I use daily moves to GitHub. Welcome!

Tools we need...

When we look for a successful project management tool, what are the important aspects that we need to look for:

Linux | Rails Fire

Linux

RubyDrop: A Dropbox Clone in Ruby

Ever used Dropbox? It's awesome. A cross-platform (Windows, Mac, Linux, and even mobile) file syncing and backup service with 2GB for free (or 2.25GB if you sign up with this link).

Ruby 1.9.2 Released

Yuki (Yugui) Sonoda has just announced the release of the stable version of Ruby 1.9.2!
Ruby 1.9.2 has been released. This is the newest release of Ruby 1.9 series. Ruby 1.9.2 is mostly compatible with 1.9.1, except the following changes:

The Why, What, and How of Rubinius 1.0’s Release

Rubinius or GitHub repo, an alternative Ruby implementation that's built in Ruby itself - as much as possible, has this last weekend hit the coding equivalent of a Bar Mitzvah..

RDropbox: A Ruby Client Library for Dropbox

Dropbox is a popular file hosting service (4m+ users) that provides synced backup and file hosting to OS X, Windows, and Linux users. You get up to 2GB of space for free.

Visually Inspect Ruby Object Models with DrX

When you want to inspect your objects in Ruby, Object#inspect, p, or awesome_print are all valuable. You're stuck with plain-text, though, and primarily designed to look at object data rather than object models.

360 Flex - Day 2 (Tuesday) - Live Blogging

As you saw yesterday afternoon I didn’t blog too much, so let’s how today goes. The party last night was really fun, lot’s of networking, rock band playing and just a nice general geek atmosphere.

Evolution of RIA Design Principals

Right now the “Evolution of RIA Design Principals” panel is about to start.

Panel is:

In-depth JRuby Q&A: What Makes JRuby Tick in 2010?

JRuby is undoubtedly the most mature of the alternative Ruby implementations. Supporting Ruby 1.8.7 and 1.9.1 (mostly!) and JIT compilation, JRuby is already in use in mission critical Ruby apps and runs scarily fast on the JVM. In this interview with JRuby core member, Charles Nutter, we dig deep into what makes JRuby tick.

Join the Machine!

Rails Machine is growing and we’re looking for some great additions to our talented team. All positions require an in depth knowledge of Ruby, Rails, and Linux.

Rails 3.0 Beta: 36 Links and Resources To Get You Going

rails3logo.gif Whenever something's a really "big deal" in the Ruby world, we cover it - even if it makes more sense on Rails Inside (which is now switching to a user contributions model).

How to generate an SSH key in Linux?

You can generate a key in Linux using the ssh-keygen command.
You can run it in command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key:
This command will generate id_rsa public and private keys.

If you need to generate id_dsa keys then you need to run ssh-keygen -t dsa

Syndicate content