CONNECTING RAILS 3 TO SQL SERVER 2008 ON A MAC

I am writing this to document the steps I had to take to get a Rails 3 app to connect to an existing Sql 2008 Server using ActiveRecord. I have an existing database that the rails app needs to pull data from and I am developing locally on a mac. It is pieced together from several other HOWTO's and a bunch of trial and error.

The dependancies to make all of this work are unixodbc, FreeTDS, ruby-odbc and activerecord-sqlserver-adapter.

Read More

HOW TO SETUP VSFTPD WITH VIRTUAL USERS


Having virtual users is advantageous to environments where you need to provide FTP services but don't/can't control how users create passwords or access your servers from insecure networks. If any of the virtual user accounts get compromised, those users would only have access to the FTP system and not the server itself.

Read More

HOW TO SETUP HAPROXY INSIDE AMAZON EC2

I’m writing this post because I found multiple sources for setting up HAProxy and none of them were completely what I needed to get the job done inside EC2.

Goal – To have a single HAProxy load balancer running inside Amazon’s EC2. It doesn’t matter whatsoever you’re using the loadbalancer for; HTTP, HTTPS, FTP, etc…

Read More

OPTIMIZING DYNAMIC 8-BIT PNG’S IN C# AND ASP.NET MVC

Programmatically generating images to be served real-time over the web can be useful for many scenarios, such as CAPTCHA’s, watermarks, thumbnail generation, or complicated layouts and effects that may not be possible in a web browser or client application otherwise. In such cases, especially when dealing with a large amount of traffic it is critical to do this as efficiently as possible while reducing the amount of data sent to the client, especially when sending the output to mobile devices. Generating images in .Net is pretty easy using the System.Drawing namespace. Using the System.Drawing.Bitmap class, one can load up a background image, get a Graphics object and use it’s DrawString method to render some text and it’s DrawImage method to layer additional images. I have put together a demo application that goes through a few of the possible approaches which I will walk through.

Read More

BEST METHOD/PRACTICES FOR USENET CONTENT


I've made some changes for the content services that I pay for every month. My current ISP is Optimum Online (Boost 30mb down / 5mb up), which including tax is monthly, around $65. Where I live there are no other viable options for Internet service providers. FIOS (Verizon’s TV/Phone/Internet service) is not available in my area and there just aren't metro class ISP’s available on the east end of Long Island. Read More

HOW TO GET AWAY FROM CABLEVISION TV


How do you get rid of Cablevision and still get the content you want?

First let me just say that Optimum Cable is not a bad company, they’re just old media and their time is over. Charging 100’s of dollars a month for content that is available online for free is a losing proposition. Wake up Cable, you fell asleep a giant and woke up as AOL.

I cancelled my Cable TV and phone over a year and a half ago and I am getting everything I want from just an Internet connection - Here’s how I do it. Read More