Phat Site Blog

Archive for April, 2010

OpenFiler: A Better Free NAS Than FreeNAS?

by on Apr.30, 2010, under Server Maintenance

Openfiler takes the pain out of deploying and managing networked storage. you bring the hardware, any industry standard server will do, combine it with our Openfiler software and the result is a powerful networked storage solution that exports your data via a full suite of industry standard storage networking protocols. Openfiler lowers deployment and maintenance costs for networked storage without compromising functionality or performance.

Product

Openfiler is a networkstorage operating system, fronted by a web based management user interface. with the features we built into Openfiler, you can take advantage of file-based NetworkAttached Storage and block-based Storage Area Networking functionality in a single cohesive framework.

Any industry standard x86 or x86/64 server can be converted into a powerful multi-protocol network storage appliance, replete with an intuitive browser-based management interface, in as little as 15 minutes. File-based storage networking protocols such as CIFS and NFS ensure cross-platform compatibility in homogeneous networks – with client support for Windows, Linux, and Unix. Fibre channel and iSCSI target features provide excellent integration capabilities for virtualization environments such as Xen and VMware.

iSCSI target functionality is especially useful for enterprise applications such as Microsoft Exchange server integration, Oracle 10g RAC backend storage or video surveillance and disk-to-disk backup.

IdeaThe premise behind the idea of Openfiler is that enterprises, small and large, do not have to be beholden to the entrenched storage systems vendors in order to reap the many benefits of networked storage.

With Openfiler the desire is to change the game; give users the same functionality, the same performance and the same availability without the same associated costs of solutions from networked storage industry stalwarts. all of this delivered via the power of Open Source technologies such as the Linux kernel and GNU environment, Samba CIFS fileserver, and LVM2 block device virtualization utility.

Stemming from this bold idea we produced and continue to develop Openfiler – a compelling solution that can meet the storage management needs of enterprises.

Services and Solutions

OpenFiler: A Better Free NAS Than FreeNAS?

Leave a Comment :, , , , more...

Installing Programs in Linux – It's No Longer Difficult

by on Apr.29, 2010, under LAMP

We’ll help you find What you are Looking for:

Sorry, but the page you have requested is not currently available or hasbeen moved.

To help you find what you are looking for, you can search our site or you might beinterested in some of our suggested articles.

Search EzineArticlesTitle Search for ‘Installing Programs in Linux its no Longer Difficult’ in Any Category Recently Published Articles

Installing Programs in Linux – It's No Longer Difficult

Leave a Comment : more...

Ruby on Rails Developer – Washington, DC> at: United States,MD …

by on Apr.29, 2010, under Ruby and Rails

Rails Dog is now hiring experienced Ruby/Rails developers for full time positions. Developers will be working primarily on client work related to the Spree e-commerce project. This is a great opportunity to work for a company that is passionate about open source. MS Word is the only commercial software you are likely to encounter in our office! come join our team and help shape the future of e-commerce.

Candidates must be local to the Washington, D.C. Metro Area. Developers will work on site but can expect flexible scheduling and the ability to work from home. Our office is located at the Friendship Heights Metro. We offer full benefits including health insurance.

Send email to jobs@railsdog.com

Ruby on Rails Developer – Washington, DC> at: United States,MD …

Leave a Comment :, , , more...

Using Java Libraries in Rails Applications – NetBeans IDE 6.1 Tutorial

by on Apr.28, 2010, under Ruby and Rails

Contributed by Brian Leonard and Chris Kutler July 2008 [Revision number: 6.1-1]

This tutorial demonstrates how to use the Java API in Rails applications. In this tutorial, you use the FreeTTS speech synthesis Java libraries to enable users to listen to blog posts.

Contents

To complete this tutorial, you need the following software.

Software or Resource Version Required NetBeans IDE with Ruby and Rails support Version 6.1 MySQL database server Version 5.0 * FreeTTS binary distribution freetts-1.2.1-bin.zip Rails Framework 2**

* The NetBeans IDE 6.1 with GlassFish and MySQL Bundle download provides you with the complete software package required for this tutorial.

** The NetBeans IDE 6.1 downloads with Ruby and Rails support include the Rails 2.0.2 framework.

This tutorial builds on the Creating a Ruby Weblog in 10 Minutes tutorial. You must first complete that tutorial before proceeding with this tutorial. if you completed the Building Relationships between Rails Models tutorial, you can use that project as well. Ensure that the project uses the JRuby platform.

Alternatively, you can use your own JRuby Rails project, and modify the steps to use the appropriate controller, model, and column names.

Adding Java Libraries to the JRuby Class Path

You use the project’s Properties window to make Java JAR files available to the Rails server.

  1. Download the FreeTTS 1.2 speech synthesizing libraries and unzip in a directory of your choice.
  2. if the rubyweblog project is not already opened, open the project by choosing File > Open Project from the main menu. Browse to and select the rubyweblog project, then click Open Project.
  3. In the Projects window, right-click the rubyweblog project node and choose Properties from the pop-up menu.

  4. Select Java in the Categories pane, as shown in the following figure.

    Note: The Include Java checkbox has no effect on the behavior of the IDE. This checkbox will be removed in future releases.

  5. Click Add JAR/Folder.

  6. In the Add JAR/Folder dialog box, navigate to the lib directory under the folder into which you unzipped the FreeTTS 1.2 download.

  7. Use Ctrl-Click to select all seven JAR files in the lib folder, as shown in the following figure, and click Open.

    The JAR files appear in the Run-time Libraries list in the Project Properties window, as shown next.

  8. Click the X button that appears in the lower right corner of the IDE, which is shown in the following figure, to stop the WEBrick server. The JVM needs to be restarted to include the FreeTTS libraries.

    You can also stop the server by expanding Servers in the Services window, expanding the WEBrick node, right-clicking the server instance’s node, and choosing stop from the pop-up menu.

  9. look at the lower right corner of the IDE. if the WEBrick status still appears and it shows that the server is running, you might have encountered Issue 131628 – WEBrick fails to stop. To resolve this problem, restart the IDE or complete the following steps.

    1. Open a terminal window.

    2. Execute the command java-bin-path/jps -l.

      You should see three Java processes: one is JPS, one is the NetBeans process, and the third is WEBrick (org.jruby.Main), which was started by the IDE.

    3. Execute the command kill -9 process id. For the previous example, the command would be kill -9 16554.

Using Java Classes in a Controller Action

next, you add an action to the controller to speak the title and body of the blog entry that is passed in the :id.

  1. Press Alt+Shift+O (use Ctrl+Shift+O on the Mac) to open the Go to File dialog box.

  2. Type posts_controller.rb in the File name text box and click OK to open the file in the editor.

  3. Add to the top of the file the include statement and the two import statements that are shown in bold in the following code sample.

    include Javaimport com.sun.speech.freetts.Voiceimport com.sun.speech.freetts.VoiceManagerclass PostsController < ApplicationController # GET /posts # GET /posts.xml …

    When you reference classes and packages from top-level packages other than com, org, java, and javax, you must either put the name in quotes, such as “mypkg.util.Init”, or prepend Java::, such as Java::mypkg.util.Init.

  4. Copy the constant assignment and the speak action that are shown in bold in the following code sample and paste them into the class definition.

    include Javaimport com.sun.speech.freetts.Voiceimport com.sun.speech.freetts.VoiceManager class PostsController < ApplicationController SPOKEN_FIELDS = [:title, :body] def speak voice = VoiceManager.instance.get_voice(‘kevin16′) voice.allocate # get the text to speak # Note that #find_by_id returns nil # where #find throws an exception post = Post.find_by_id(params[:id]) speak_these_items = [] if post then speak_these_items = SPOKEN_FIELDS.map { |field| post.send(field)} sanitizer = HTML::FullSanitizer.new speak_these_items = speak_these_items.map { |s| sanitizer.sanitize(s) } else # no post was found so let the user know speak_these_items << ‘No post was found’ end # Speak the text speak_these_items.each { |s| voice.speak(s) } redirect_to :back end

Adding a Route for the Speak Action

next, you edit the routing file to add a route for the speak action.

  1. In the Projects window, expand Configuration and double-click the routes.rb node to open the file in the editor.
  2. look for the line that begins with map.resources :posts.

    if you completed the Building Relationships between Rails Models tutorial, the line will be map.resources :posts, :has_many=> :comments.

  3. Add the following code to the end of the line.

    , :member => {:speak => :get}

    This code adds a member hash to the post resource. The hash is composed of action-HTTP verb pairs. The :speak => :get pair creates a route named speak_post. The URL for this route is posts/:post_id/speak.

Testing the Action

You use the link_to method to create a link tag that maps to the controller’s speak action.

  1. To open the show.html.erb file, right-click any line in the show action (the method that starts with def show) and choose Navigate > Go to Rails Action or View from the pop-up menu.

  2. Place the cursor on the blank line above the first link_to statement.

  3. Type liai then press Tab to expand the LInk Action Index template. Set the arguments to “Speak”, speak_post_path(@post), then add the | separator character, as shown in bold in the following code sample.

    <%= link_to “Speak”, speak_post_path(@post) %> |<%= link_to ‘Edit’, edit_post_path(@post) %> |<%= link_to ‘Back’, posts_path %>

  4. Click the run Main Project button to save all changes, start the server, and display the main page in a browser window.

  5. Click the permalink link for any blog post to show the post’s detail page, then click the Speak link to hear the post’s title and text.

    if you get the error message cannot load Java class com.sun.speech.freetts.Voice, you might not have successfully stopped the WEBrick server. see Step 9 in the Adding Java Libraries to the JRuby Class Path section. This step explains how to manually stop the server. Alternatively, stop and restart the IDE. The server must be restarted for the Java classes to be included.

Next Steps

>> More NetBeans Ruby Documentation

Using Java Libraries in Rails Applications – NetBeans IDE 6.1 Tutorial

Leave a Comment :, more...

Sorting Through the New Toys – MVC – About

by on Apr.28, 2010, under Ruby and Rails

Say you have just installed your new Visual Studio 2010 and you’re looking through the “New Project” dialog. Hmmm … What’s this? “ASP.NET MVC 2″ Gee! I never knew there was an MVC 1.

If your day (and more) is fully consumed trying to hit the production deadlines of a job, you might be forgiven for failing to notice that Microsoft has been pumping a whole new, new way of programming ASP.NET, like, for-ever. the second “new” is because they switched to a completely new way once already with ASP.NET Version 2 using code-behind and partial classes. And “forever” is … ummmm … since last April, in practical terms. Microsoft’s Scott Guthrie first said the word “MVC” in public in October 2007. Things move fast in software.

You could use MVC 1.0 with VB.NET 2008 and Framework 3.5 for most of last year, but you had to download it. Visual Studio 2010 made MVC a first class technology at Microsoft for the first time. if you have already created MVC 1.0 applications, they’re automatically upgraded to MVC 2 in VS 2010 with an upgrade wizard. And you can start learning and using it absolutely free! look for MVC 2 in Visual Web Developer 2010 Express.

Never doubt that MVC – which stands for “Model View Controller” is a whole new way of creating ASP.NET web pages, at least for Microsoft. Gone is the concept of “event subroutine”. an MVC URL doesn’t even point to a “.aspx”file. in MVC, a “controller” refreshes “views” whenever the “model”, which has all the data, changes “state”. the classic example is the number of items in a shopping cart. the model is the shopping cart. it might be updated when a customer adds an item or when some process at the server determines that an item is not in inventory. the controller notifies all the views and they refresh themselves.

Microsoft didn’t invent MVC. it actually goes back to the 1970’s and Xerox Parc. (Doesn’t everything? the world hasn’t seen such a massive missed opportunity since Portugal sent Columbus packing to Spain.) a Norwegian named Trygve Reenskaug invented it. Wikipedia lists 18 different implementations, including .NET. Possibly the one that has received the most rave notices is “Ruby on Rails”. There’s nothing like the hot breath of competition to catch the undivided attention of Microsoft.

Possibly the best introduction to MVC can be found in Steven Sanderson’s Apress book, Pro ASP.NET MVC Framework. (ISBN-13: 978-1430210078). Chapter 1 has an excellent discussion of just why MVC is a better idea. It’s a much more convincing and readable than the marketing/techno/legalese found on Microsoft’s pages. since ASP.NET MVC 2 is now standard in Visual Studio 2010, look for new books to justpour off the presses. within a couple of months of April last year, about half a dozen were published. Sanderson’s new version is due out around the first of June.

And finally, for everybody groaning about another forced conversion to a whole new way of writing code, MVC and WebForms run side by side, even in the same application. So do MVC 1 and MVC 2 applications. So you can mix and match if you decide to. (Although that might not be the best development strategy.) Microsoft VP Scott Guthrie is the guiding light at Redmond for MVC and this is what he says about it:

“If you don’t like the MVC model or don’t find it natural to your style of development, you definitely don’t have to use it. it is a totally optional offering – and does not replace the existing WebForms model. both WebForms and MVC will be fully supported and enhanced going forward.”

One of Microsoft’s great strengths is that when they decide to go in a new direction, they can accelerate out of the turn better than anybody. if you want to learn more, there’s a ton of information and instruction at Microsoft’s MVC site:

http://www.asp.net/mvc/

Sorting Through the New Toys – MVC – About

Leave a Comment :, , , more...

what is the average pay per hour of a junior php programmer in india?

by on Apr.26, 2010, under LAMP

I need to outsource some php programming and I wonder how much is the standard pay per hour of a junior / medium php programmer. In USD
Thanks

what is the average pay per hour of a junior php programmer in india?

Leave a Comment :, more...

Brad's Blog: Apache Mahout – Overview

by on Apr.26, 2010, under LAMP

Apache Mahout – Overview: “Mahout’s goal is to build scalable machine learning libraries. with scalable we mean:

* Scalable to reasonably large data sets. our core algorithms for clustering, classfication and batch based collaborative filtering are implemented on top of Apache Hadoop using the map/reduce paradigm. however we do not restrict contributions to Hadoop based implementations: Contributions that run on a single node or on a non-Hadoop cluster are welcome as well. the core libraries are highly optimized to allow for good performance also for non-distributed algorithms.
* Scalable to support your business case. Mahout is distributed under a commercially friendly Apache Software license.
* Scalable community. the goal of Mahout is to build a vibrant, responsive, diverse community to facilitate discussions not only on the project itself but also on potential use cases. Come to the mailing lists to find out more.

Currently Mahout supports mainly four use cases: Recommendation mining takes users’ behavior and from that tries to find items users might like. Clustering takes e.g. text documents and groups them into groups of topically related documents. Classification learns from exisiting categorized documents what documents of a specific category look like and is able to assign unlabelled documents to the (hopefully) correct category. Frequent itemset mining takes a set of item groups (terms in a query session, shopping cart content) and identifies, which individual items usually appear together.”

Brad's Blog: Apache Mahout – Overview

Leave a Comment :, more...

what is the best way to create a comet application with ruby on rails?

by on Apr.26, 2010, under Ruby and Rails

Hi,

please tell me something regarding ruby on rails

i use python to build comet server for small applications.

is it possible to create ajax( comet ) server applciations with ruby on rails?

can i simply conver to rubyon rails ?

please show me an example applicatin built on rubyonrails

Thanks,
Satish.K

what is the best way to create a comet application with ruby on rails?

Leave a Comment :, , , more...

New regional office sign Apache recognizes Permian Basin's importance

by on Apr.25, 2010, under LAMP

Though Houston-base Apache Corp. has offices from Houston to Calgary, Argentina to Cairo and the North Sea, the Permian Basin is drawing the company’s attention.

The company, which has a production office in Midland, has announced plans to establish a regional office in the Tall City, expanding its employment from 19 to more than 70. John Christmann IV, newly named vice president, Permian Region, told his audience at the Executive Oil Conference that Apache employees from around the world are transferring to Midland, coming from Tulsa, Cairo, Calgary and Houston. he is also hiring local professionals, he said, including engineers, geoscientists and land as well as support staff. The office, located at 303 Veteran’s Airpark Lane, is expected to open around July 5.

“The Permian Basin is important to Apache, Apache recognizes the importance of being local,” he said. “There’s a lot we’ve missed by not being local.”

The Permian Basin, he said, is responsible for 10 percent of the company’s production and holds 20 percent of Apache’s reserves. this year, he said, 27 percent of its drilling activity will be in the Permian Basin. a capital budget of about $400 million will drill 205 gross, 173 net wells, about twice 2009 levels. a cluster of those wells will be in Southeast new Mexico, he said, but also spread from Lubbock to the Delaware Basin.

“We have a proven track record of historic growth,” Christmann told his audience. “We’ve doubled production and reserves between 2,000 and 20,009″ largely through acquisitions from Exxon Mobil, Amerada Hess, Anadarko and Marathon.

New regional office sign Apache recognizes Permian Basin's importance

Leave a Comment :, , , , , more...

www.centos.org – Forums – CentOS 3 – General Support – DNS Service …

by on Apr.24, 2010, under Server Maintenance

I have CentOS 3.9 installed on my server… after everything I’ve read it seems that all the files that should be there are, including named.conf, resolv.conf, and there are a few zone files under /var/named.

I was suggested from something I read to do the following…
chkconfig –add named
chkconfig –levels 2345 named on
chkconfig –levels 016 named off

I did this, and ran chkconfig –list | grep named

the result were:

named 0:off 1:off 2:on 3:on 4:on 5:on 6:off.

I started the named service sucessfully, but when I did a nslookup -sil I recieved an error on “localhost”

Server: 66.241.143.34
Address: 66.241.143.34#53

** server can’t find localhost: NXDOMAIN

I’m getting many errors in my logfile like this…
ERROR: (3060657072) dns::mx_list* dns::resolver::get_mx(const std::string&) dnsresolver.cc(223): No address associated with $

I’m new at this and my question is…

1) what else do I need other than what’s installed and what zone files do I need and how should they read?

2) Is there anything else I can do to make this as good as I can because I email a newsletter to fair amount of members?

3) out of curiosity is this incomplete so far being that the zone files aren’t complete. I do have the main zone file mentioning all the DNS sites.

4) One last thing can I make it any more effienent by using nameservers from somewhere else other than my hosting company?

I’d really appreciate some help, I’m getting quite a few errors in my logfile.

Thanks,
Max9

www.centos.org – Forums – CentOS 3 – General Support – DNS Service …

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!