Nov 21 2007

More Text Manipulation with Sed

Tag:tepezcuintle @ 3:48

Text Manipulation with sed
May 26th, 2005 by Larry Richardson inLinux Journal
Replace text on the fly, without even starting an editor, using this classic tool.
The filter sed can process text from standard input and write its results to standard output. The input can be redirected from a file, and the output also can be redirected to a file using your shell’s redirection capabilities. It has hundreds of uses, and once you learn sed, you really would miss it if you lost it.
Continua”More Text Manipulation with Sed”


Nov 19 2007

MySQL Administration

Tag:tepezcuintle @ 21:06

Using MySQL, Administration

Workshop Requirements

You should have access to the MySQL command line client software.

Various different PRIVILEGES on the MySQL Server

Introduction

In the other MySQL Virtual Workshops we have used commands that are pretty
much applicable to anyone. This part of the MySQL series is aimed at giving
a rudimentary understanding of managing a MySQL database server. As such the
task covered here are not really about manipulating data or database structures,
but the actual databases themselves.

Continua”MySQL Administration”


Nov 19 2007

MySQL Administration tips

Tag:tepezcuintle @ 19:58

Administrating a MySQL server

Setting the password:
1. From Unix:
shell> mysql -u username -h hostname -p password
mysql> SET PASSWORD FOR username@localhost=PASSWORD(’new_password’);
Continua”MySQL Administration tips”


Nov 09 2007

Scaling Applications with Memcached

Tag:tepezcuintle @ 23:20

Scaling Applications with Memcached

What is memcached?

memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Danga Interactive developed memcached to enhance the speed of LiveJournal.com, a site which was already doing 20 million+ dynamic page views per day for 1 million users with a bunch of webservers and a bunch of database servers. memcached dropped the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a memcache miss.

Continua”Scaling Applications with Memcached”


Nov 09 2007

Time for a Rails Grown up Server Your Mama would be proud

Tag:tepezcuintle @ 22:39

Time For A Grown-Up Server: Rails, Mongrel, Apache, Capistrano and You

More and more Rails developers are finding out that deploying a Rails application isn’t as simple as upload and rename; Rails apps work best when running all the time, and many Rails programmers are moving from traditional, shared hosts, like Dreamhost, to virtual private servers, like Rimuhosting, which allow them full control (and responsibility) of production servers.

Continua”Time for a Rails Grown up Server Your Mama would be proud”


Nov 09 2007

Redhat or Centos Ruby on Rails Setup from Scratch

Tag:tepezcuintle @ 22:09

from this guide.

http://www.redhat.com/magazine/025nov06/features/ruby/

Installing Ruby on Rails

create the directory where you will be downloading and building the software.

[mmaldonado@webstack ~]$ mkdir ruby-on-rails
[mmaldonado@webstack ~]$

How to get Ruby.
The stable release ruby-1.8.5.
The CVS branch for the development version is available. See CVS Repository Guide

URL ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz

change into the build directory and download ruby
Continua”Redhat or Centos Ruby on Rails Setup from Scratch”


Nov 08 2007

Regular Expressions with .NET

Tag:tepezcuintle @ 17:35
  • Expresso 2.1C - 328 Kb
  • Learning .NET Regular Expressions with Expresso

    Did you ever wonder what Regular Expressions are all about and want to gain a basic understanding quickly? My goal is to get you up and running with a basic understanding of regular expressions within 30 minutes. The reality is that regular expressions aren’t as complex as they look. The best way to learn is to start writing and experimenting. After your first half hour, you should know a few of the basic constructs and be able to design and use regular expressions in your programs or web pages. For those of you who get hooked, there are many excellent resources available to further your education.

    What the Heck is a Regular Expression Anyway?

    Continua”Regular Expressions with .NET”


    Nov 08 2007

    Regular Expression on Linux

    Tag:tepezcuintle @ 17:26

    Searching Files on UNIX

    On MPE you can display files
    using the :Print command, Fcopy, Magnet,
    or Qedit (with pattern
    match searches). On HP-UX
    you can display files using cat and even better using
    more (and string search using the slash “/” command), and
    Qedit (including searches of $Include files, and so on),
    but if you really want to search for patterns of text
    like a UNIX guru, grep is the tool for you.

    Continua”Regular Expression on Linux”


    Nov 07 2007

    PostgresSQL Reminder for Work

    Tag:tepezcuintle @ 22:34

    Ok so I had to compile PostgreSQL at work and installed the most recent one. 8.2.5 and compiled it with perl, ssl support
    I followed the instructions on the install file. I then created a postgres user and initialized the db and also
    installed tsearch2 and ltree

    everything worked fine except that when importing the data I got a few errors related to tsearch2 there is function that the new tsearch2 that is on 8.2.5 is missing so data from our backup can’t b e imported because that function does not exist.

    So basically this is something the developers have to figure out if they want to stay with the old version of postgres or upgrade to the new version and still get the errors of the new tsearch2

    Things I had to do copy a init.d/ script to start the db automatically the script was inside the /contrib/start-scripts folder then I copied the script and put it inside my /etc/init.d/ folder and changed permissions to execute and then I used chkconfig to make it start.

    I also had to add paths to my /etc/profile so that the shell can find the path to the psql binaries and other cool tools.

    I guess that is basically what I had to do to upgrade to the new postgres.

    There wasn’t anything else special that I had to go , Oh I remember I had to install readline-devel because the .configure script was complaining that I didn’t have readline installed. I had the readline RPM installed but the configure script was looking for files included only on the readline-devel

    so I did a yum install redline-devel

    Later fellow penguin readers.


    Nov 07 2007

    tsearch2 with Postgresql 8.2 errors

    Tag:tepezcuintle @ 22:23