Phat Site Blog

Archive for June, 2010

php!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?

by on Jun.22, 2010, under LAMP

ok i have MS front page 2003 and i found really easy and good than dreamweaver 8 . but i can work with PHP by ms front page 2003
?????? can i ??

php!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?

Leave a Comment :, more...

Ubuntu LTS 10.04, a Linux OS at Its Best

by on Jun.21, 2010, under LAMP

Ubuntu does have eBox,which provides a web interface for monitoring and configuring server systems.Unfortunately, this works only via Firefox (not via w3m or links), which means you’ll have to either install X on your server or allow it to run anhttps server specifically for eBox and access that via a desktop machine.

Personally, I’m not enthusiastic about web-based tools; I’d rather seesomething more along YaST lines that can be run on a console on the machinebeing configured. Ubuntu also has Puppet available, but that’s aboutconfiguration file maintenance rather than about providing any kind of configurationmanagement interface.

Another management tool offered is phpMyAdmin,which allows you to administer your MySQL server via a web interface. As witheverything else, it’s a straightforward install, which will reconfigure Apacheas part of the install and even set up your database automatically. Youcan also do this manually if you prefer. Once Apache is installed, if you’re stickingto a console, use links rather than w3m, as phpmyadmin worksbetter with frames. However, in this case you may want to just stay with theMySQL command line, as phpMyAdmin is definitely more usable in a graphicalbrowser. It is useful if you don’t want to have to remember (or lookup) sets of SQL statements.

Conclusions

It’s convenient to have a server install that’s entirely separate from thedesktop install, and while itmay not be as visually slick as the desktop version, that’s not really whatyou want on a server. The install was straightforward; I really liked thepackage collections; and everything was functional on first bootup. Fiveyears of support is good, and all the software installed was fairly up-to-date(within a couple of release points, which is reasonable given the testingcycle needed for a long-term release). Ubuntu provides security updatesregularly, so any security improvements in more recent releases should berolled out to your servers quickly.

One problem I found was that the documentation available online is a bitshaky. In some cases, it still refers to earlier releases, which isn’tvery reassuring. However, Ubuntu is obviously making an effort with itsdocumentation, and it’s easier to find information than it is with some otherdistros.

Overall, Lucid Lynx is an impressive offering and definitely something I’d be happy touse for my own servers. more console-driven system management tools andbetter documentation, would make it an even better option.

Juliet Kemp has been messing around with Linux systems, for financial reward and otherwise, for about a decade. she is also the author of “Linux System Administration Recipes: A Problem-Solution Approach” (Apress, 2009).

Follow ServerWatch on Twitter

Ubuntu LTS 10.04, a Linux OS at Its Best

1 Comment :, , , more...

31 Fascinating Ruby on Rails Tutorials & Guides

by on Jun.21, 2010, under Ruby and Rails

Ruby on Rails is an excellent framework to learn not only because it’s a great web application framework, but also because it has a large and helpful community. In fact, chances are you can learn how to use Rails in a multitude of ways, just by searching the web.

We’ve taken it upon ourselves to compile some excellent tutorials that Rails beginner’s and zealots alike can use while working in the popular web app framework and continue exploring the endless possibilities of Rails.

GETTING STARTED1. how to Install Rails

A getting started guide on how to set up Rails in multiple environments, from the official Ruby on Rails site.

2. Ruby on Rails for Web Development in Mac OS X

Apple has an official guide on how to get started with Rails on a Mac.

3. Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4

Extensive documentation on how to get this great cocktail of software working for Rails.

4. Four Days on Rails

Four Days on Rails is an impressive 40-page eBook that provides a handy toolbox for Rails development.

5. why Rails?

Rails Envy gives an argument in favor of the Rails framework.

6. Rolling with Ruby on Rails Revisited, part 2

A “storytelling” example on the effectiveness of Rails in web applications.

7. Fast-track your Web apps with Ruby on Rails

Fast-track your Web apps with Ruby on Rails is a somewhat dated but excellent overview of how the web framework works.

8. Ruby Study Notes

If you’re not familiar with the Ruby language, check out Ruby Study Notes, a web-based tutorial on the basics of Ruby.

9. Ruby in 20 Minutes

The official Ruby site has a quickstart that will get you well underway into Ruby programming.

10. Ruby on Rails Cheat Sheet

A quick reference for Rail’s directory structure, pre-defined variables, syntax and more.

RAILS TUTORIALS11. Ruby Loops

Dev Articles has a quick look at Ruby Loops, Methods and Blocks.

12. Rails To-Do List

A tutorial on how to create a simple to-do list with Rails. (Note: it’s slightly dated so be aware of when the advice goes against current best practices – still a useful exercise though.)

13. Send Emails with Rails

This quick guide shows how to use Rails’ mailer functionality to send emails within a web application.

14. Rails for Designers

A great starting point for learning how things like Rails and the MVC framework can be a great thing for a designer.

15. Easy Image Attachments in Rails

How to use Paperclip to swiftly attach images to an Event in Rails.

16. how to Use Gmail as your Mail Server For Rails

An innovative strategy for using ActionMailer to farm out email sending with (almost) everybody’s favorite email host, Gmail.

17. Building a Social Network Site in Rails

A collection of plugins, tips and advice to help build your own social networking site in Rails. the article doesn’t go over all the code needed to make a social networking site, but rather touches on the most important aspects and functionality.

18. Ruby on Rails Security Guide

An excellent primer on the types of security attacks your Rails app might encounter, and how to combat them.

19. Rails and Ajax Table Pagination, Sorting and Searching

Sorting table data is incredibly useful for most data-heavy applications. Nozav.org has put together a comprehensive guide on how to make a sortible AJAX table in Rails, complete with a demo application.

20. Restful Authentication with Rails 2

The Restful Authentication plugin is a hugely popular plugin for doing all things user-releated. Avnet labs has a great tutorial on how to implement Restful Authentication with your Rails app, with many helpful screenshots and example code.

21. Converting Videos with Rails

A 2-part series on converting video in a Rails app with the FFMPEG.

DISTRIBUTING RAILS22. Distributing Ruby Applications

Everything you’ll need to know about packing and distributing Rails applications with Tar2RubyScript and RubyScript2EXE.

23. Rails Ajax

A dated but fundamentally useful overview on how to use Ajax technologies with the Rails framework.

24. Rails and jQuery

An episode from the excellent Railscasts site going over how to use jQuery in a Rails application.

25. Dropping and Sorting with Ajax and Scriptaculous

A quick tutorial on creating a drag-n-drop interface in Rails and the popular Javascript framework Scriptaculous.

26. Auto-complete Association

A screencast on how to create a text field auto-complete experience, much like Google’s newly-revamped search functionality.

27. Getting started with Instant Rails on Windows (screencast)

O’Reilly media has a nice 17 minute video primer on RoR for Windows users.

28. Complex forms

A slightly more advanced tutorial that focuses on making complex forms without unwieldy controllers. the tutorial has two other parts that build on the first. (Part 2, part 3)

29. creating Plugins in Rails

The basics on creating a plugin with the Rails API. the tutorial is very extensive and thorough.

30. Paypal Basics

Railscasts has another excellent episode on how to integrate Paypal into your application for handling money transactions.

31. Active Merchant Basics

If you’re wanting to roll your own money processing system and use something other than Paypal, then you might want to try Active Merchant, a payment processing library for Rails Screencasts has an Active Merchant Basics, complete with source code.

Post preview photo by lepiaf.geo.

31 Fascinating Ruby on Rails Tutorials & Guides

Leave a Comment :, , more...

Upgrade the software Images of a Cisco ASA firewall | Linux os for me

by on Jun.20, 2010, under LAMP

This is a very quick post to explain how to update your ASA firewall. nothing big as it’s very easy but since I had to put together the info to get that documented for my colleagues, I thought I could post it here too.

1. Copy the file on a FTP (CI33024)
2. Logon to the firewall
3. Issue the following commands:
en
copy ftp://[ipaddress]/[filename] disk0:[filename]

You‘ll have to confirm the parameters and then you should see something like that:
Accessing tftp://172.16.31.1/asa722-k8.bin…!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Writing file disk0:/asa722-k8.bin…
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8312832 bytes copied in 163.350 secs (50998 bytes/sec)

4. Chech that the file has been copied correctly

You should see something similar:
-#- –length– —–date/time—— path
6 5124096 Jan 01 2003 00:06:22 asa702-k8.bin
7 5623108 Feb 12 2010 00:23:48 asdm-631.bin
10 5539756 Feb 12 2007 00:14:18 asdm-521.bin
11 8294400 Dec 07 2006 05:47:20 asa721-24-k8.bin
12 6002680 Dec 21 2006 03:58:30 asdm-52034.bin
13 8312832 Feb 12 2010 22:46:30 asa831-k8.bin

23949312 bytes available (38932480 bytes used)

5. Go to the configuration mode (conf t) and type the following command:
boot system disk0:/asa831-k8.bin

This will replace the path of the image the firewall boot on.
If you update de asdm, the command is slightly different.

asdm image disk0:/asdm-631.bin

6. Save the config:
write memory

7. Reload the config:
reload

Upgrade the software Images of a Cisco ASA firewall | Linux os for me

1 Comment :, , more...

camera-obscura: an apache moon night and the black mare's song

by on Jun.20, 2010, under LAMP

When the moon gets to the point that it looks like the moon on our painted pony’s left flank, we say it’s an Apache Moon… and we have one of those this evening. the moon is a bit over half full, and lying on its back, as Isak Dinesen wrote in her book Out of Africa:

If I know a song of Africa, of the giraffe and the African new moon lying on her back, of the plows in the fields and the sweaty faces of the coffee pickers, does Africa know a song of me? Will the air over the plain quiver with a color that I have had on, or the children invent a game in which my name is, or the full moon throw a shadow over the gravel of the drive that was like me, or will the eagles of the Ngong Hills look out for me? November Hill’s evening song today included pulling out spent squash plants to make room for new ones, being joined by two donkeys and a black mare who love to help weed, finding the toad prince in the barn aisle, and listening to back Porch Music on NPR while the horses ate their dinner tubs.

The best part of tonight’s song happened as my husband and I, along with Dickens E. Wickens, cowboy cat, walked the path from barn to back gate. my husband called out good night to the equines, and Salina whinnied in response: wait – something’s not right.

So we turned and went back to the barn, realizing that Rafer Johnson had not been turned out with the herd. he was standing by the gate to the front field, and Salina was letting us know we needed to come let him out.

The black mare knows the song of being a mother, and we have learned to listen when she sings.

camera-obscura: an apache moon night and the black mare's song

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

VMware Said to Be in Talks to Acquire EngineYard

by on Jun.19, 2010, under Ruby and Rails

From Stacey Higginbotham at GigaOm:

VMware is back on the hunt for new start-ups as it looks to further raise its profile in the platform-as-a-service market. Sources tell me its latest target is EngineYard, the Ruby on Rails cloud provider that’s raised $37 million from the likes of Amazon, Benchmark, DAG Ventures and Bay Partners.

A VMware spokesperson responded to my query in e-mail by saying, “We don’t comment on speculation or rumors.” EngineYard’s Jim Shissler, director of marketing, denied the talks and said EngineYard works closely with VMware because VMware provides the underlying software and is a strategic investor in Terremark, which hosts EngineYard’s enterprise-class platform as a service.

VMware has been buying start-ups such as Zimbra, SpringSource and others as it works to transition from providing a hypervisor to offering higher-value services. Earlier this year, it released its VMforce platform as a service built on Salesforce.com’s infrastructure using SpringSource’s Java-based framework. Adding a Ruby-focused platform or capability makes a lot of sense, and EngineYard has been working on a transition of its own — moving away from start-ups and more toward the enterprise, where VMware’s focus is.

Go to Article from GigaOm via the New York Times »

VMware Said to Be in Talks to Acquire EngineYard

Leave a Comment :, more...

Oracle releases NetBeans IDE 6.9

by on Jun.19, 2010, under Ruby and Rails

(Source: Datamonitor)Oracle has released NetBeans Integrated Development Environment, or IDE, 6.9. NetBeans IDE 6.9 comprises of JavaFX Composer, a visual editor and layout tool for building JavaFX applications.

With JavaFX Composer, organizations can build, visually edit, and debug rich internet applications and bind components to various data sources, including databases and web services.

NetBeans IDE 6.9 also offers OSGi interoperability, enabling developers to create OSGi bundles for applications based on the NetBeans platform. NetBeans IDE 6.9 enables developers to create web, enterprise, desktop, and mobile applications on Java platform, JavaFX and scripting languages. NetBeans IDE 6.9 is available for Windows, Mac, Linux and Oracle Solaris.

NetBeans IDE 6.9 provides improved editing and development capabilities, including: improved Java language editing; additional support for Java Enterprise Edition 6, including contexts and dependency injection and Java specification requests-299; JavaFX Composer; improved JavaFX script editing and refactoring; support for cascading style sheets (CSS) code completion, find usages, and renaming capabilities for HTML and CSS.

It also provides the ability to code, test, and deploy OSGi bundles with Maven and Felix and bundled Felix container with the ability to deploy other containers, such as Equinox. It supports Spring 3.0 framework; PHP Zend framework, PHP formatting and code completion; Ruby on Rails 3.0 and specification of which gems the IDE should reference.

Ted Farrell, chief architect and senior vice president of tools and middleware for Oracle, said: “NetBeans 6.9 continues the tradition of providing the best open source IDE for Java application developers. this is the first NetBeans release under Oracle’s stewardship, and we have continued to focus on the visual tooling capabilities within the IDE. we believe that the ease-of-use and developer productivity provided by NetBeans is key in helping developers of any skill level take advantage of all of the great Java technologies.”

A service of YellowBrix, inc.

Oracle releases NetBeans IDE 6.9

Leave a Comment :, , , more...

CentOS – 5.5 & gspca

by on Jun.18, 2010, under Server Maintenance

On 14/06/10 20:24, m.roth@5-cent.us wrote:It may be latest and greatest, but it is also hopefully the most stableversion as a lot of the development work done involves fixing bugs, andthat’s generally how software becomes more stable. if you’re gettingerrors, try reporting them upstream – in my experience they are veryswiftly fixed.All this started because JohnS and yourself were talking about the oldgspca driver that is deprecated, and over 4 years old now. All I’mtrying to say is if you need a driver for gspca, don’t use that (oldunsupported) one, use this (newer supported) one.There is no last stable version, releases or version numbers in much thesame way that the kernel has no version numbers for the vast majority ofindividual drivers it contains. People fix bugs and add features asnecessary on a continual basis. Rhetorical: What would you propose -every Monday at noon everything stops for an hour while they take asnapshot and call it “STABLE”. that is what I mean by rolling development.But as you run Enterprise Linux, and are rightly concerned withstability, rather than update your whole kernel to the latest andgreatest, ELRepo gives you the opportunity to retain your stableEnterprise Linux kernel and run *only* the updated hardware drivers thatyou need to support hardware that isn’t directly supported by yourstable Enterprise Linux kernel.

Yes, gspca is the driver for the webcam. the apps live in a separatebranch here:http://linuxtv.org/hg/dvb-apps/which you can build/package separately if you need them. ELRepo don’tbuild/offer them as they are not kernel drivers.

CentOS – 5.5 & gspca

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

Engine Yard expands Ruby cloud hosting

by on Jun.18, 2010, under Ruby and Rails

The Ruby on Rails train has arrived at the VMware station. Engine Yard announced last week a new Platform-as-a-Service offering for Ruby on Rails applications. the service will be called xCloud, and it consists of Ruby stacks hosted in Terremark’s VMware-based cloud.

Terremark has historically been aligned with VMware in cloud infrastructure. VMware’s struggle to get a commercial-grade virtualization management solution up and running has been closely tied to Terremark, where both companies have acknowledged that many of VMware’s future enterprise cloud-management tools have been developed.

Engine Yard, on the other hand, had previously dipped its toe into the cloud hosting pool, but after a short period, the company’s original cloud hosting plans were scrapped in favor of simply using Amazon Web Services to host its customers’ Ruby on Rails applications.

AppCloud, the name for Engine Yard’s Ruby stack on Amazon’s cloud offering, is essentially a managed, hosted Ruby stack running inside of AWS, but administered and paid for through Engine Yard. xCloud, though, uses Terremark instead of Amazon.

Abheek Anand, product manager at Engine Yard, said that the move to Terremark is focused on enterprises and high-end Ruby applications. “It’s the same deployment model and the same Ruby on Rails stack we used in AppCloud,” he said. “But there are a number of changes we’ve made in order to cater to enterprise application developers.”

Specifically, xCloud offers higher throughput in disk I/O and certified regulatory compliance for companies that need to adhere to standards like PCI.

For the future, the move to Terremark is a clear indication of ties between VMware and Engine Yard. “We are working with VMware. in a lot of ways, we’re some of the first big customers of vCloud,” said Anand. vCloud is VMware’s planned management suite for running data centers on VMware virtualization software. vCloud has been in development for some time now and is currently only in use by VMware partners, like Terremark.

“The biggest synergy there is around VMware validating the platform as a service model. That’s very big for us as we move into the enterprise. the fact that VMware and people like Google are waving the platform as a service banner takes that off the table for us.

“VMware is also moving ahead with the Spring model, and what we find is a lot of developers who prefer Ruby want to deploy to JRuby, and I think that’s a big net win for us.”

Engine Yard expands Ruby cloud hosting

Leave a Comment :, , more...

Nginx Maillist: quick start on writing a module?

by on Jun.17, 2010, under Server Maintenance

I’d like to convert an apache module I’ve written to work
under nginx. can somebody loan me a clue for getting started?

Background
———-

The logic is pretty simple:

1. based on the input URI, determine what file will be
sent. this will possibly involved a (cached) db lookup.

2a. set these headers:

Content-disposition:
ETag:
X-mod_asset-version: (my custom header)

2b. set mime type.

3. allow nginx to send the bytes of the file. Hopefully
it will handle these headers:

Last-Modified:
Content-Length:
Accept-Ranges:
Content-Range:
Content-Length:

Questions
———

For 2b, this is the proper way?

r->headers_out.content_type.len = sizeof(“image/gif”) – 1;
r->headers_out.content_type.data = (u_char *) “image/gif”;

is there a special way to malloc the .data so that it
will be freed automatically when the request is complete?

For 3, should I be using X-Accel-Redirect?

add_header(“X-Accel-Redirect: /protected/iso.img”);

If so, then I can simply set my headers and pass along to the next
phase?

Any simple example modules I can use as a starting point?

Many TIA!!
Mark


Mark Harrison
Pixar Animation Studios

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Nginx Maillist: quick start on writing a module?

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!