• .
  • .
  • .
  • .
  • .

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

the problem: “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.” is shown when attempting to install wordpress on windows

try this: check your php.ini file and make sure the following line is uncommented (i.e. does not have a semi colon in front of it):

extension=php_mysql.dll

if that is ok, then check for the line in the file that designates the location of the extension_dir. by default mines said:

extension_dir = "./"

but i had to change it to the following and then it worked (note: my php installation directory is c:\php):

extension_dir = "C:\php\ext"

Permanent link to this article: http://devnumbertwo.com/515

amazon web services – ec2 instance not working with elastic ip

the problem: assigning an elastic ip to an ec2 instance doesn’t work – can’t see your website.

try: checking the windows firewall – the standard rule that allows the tcp standard ports through doesn’t seem to be enough. if you create a custom one allowing ports 80/443 that should work.

Permanent link to this article: http://devnumbertwo.com/511

install tomcat 7 on mac os x

i was going to write this up myself but honestly it’s explained best here, so i’m not going to even try:
http://wolfpaulus.com/journal/mac/tomcat7

Permanent link to this article: http://devnumbertwo.com/509

iMovie doesn’t work with my images

the problem: you have all your images loaded and iMovie doesn’t seem to work (but your images display just fine in things like iPhoto)

try: check your image names. any images that start with an underscore can cause this to happen. rename them and restart iMovie.

Permanent link to this article: http://devnumbertwo.com/506

PubSubHubbub… wait, what did you just call me?

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/504

linux : removing swap space

reducing swap on an LVM2 logical volume
to reduce an LVM2 swap logical volume (ex. /dev/swap is the volume you want to extend):

  1. disable swapping for the associated logical volume:
    swapoff -v /dev/swap
  2. reduce the LVM2 logical volume by 512 MB:
    lvm lvreduce /dev/swap -L -512M
  3. format the new swap space:
    mkswap /dev/swap
  4. enable the extended logical volume:
    swapon -va
  5. test that the logical volume has been reduced properly:
    cat /proc/swaps
    free

removing an LVM2 logical volume for swap
to remove a swap volume group (assuming /dev/swap is the swap volume you want to remove):

  1. disable swapping for the associated logical volume:
    swapoff -v /dev/swap
  2. remove the LVM2 logical volume of size 512 MB:
    lvm lvremove /dev/swap
  3. remove the following entry from the /etc/fstab file:
    /dev/swap   swap     swap    defaults     0 0
  4. test that the logical volume has been extended properly:
    cat /proc/swaps
    free

removing a swap file

  1. at a shell prompt as root, execute the following command to disable the swap file (where /swapfile is the swap file):
    swapoff -v /swapfile
  2. remove its entry from the /etc/fstab file.
  3. Remove the actual file:
    rm /swapfile

Permanent link to this article: http://devnumbertwo.com/490

amazon ec2 : mount: wrong fs type, bad option, bad superblock on /dev/xvdf

the problem: attempting to mount an amazon EBS volume to an EC2 linux machine results in the following:

mount: wrong fs type, bad option, bad superblock on /dev/xvdf,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

this can happen if you did not format your volume… try these instructions
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

for your convenience, it is also described here:

Caution: This procedure assumes you want to mount an empty volume. If you’re mounting a volume that already has data on it (e.g., a public dataset), don’t use mkfs before mounting the volume. Otherwise you’ll format the volume and delete the existing data.

Enter the following commands

yes | mkfs -t ext3 /dev/sdh

mkdir /mnt/data-store

mount /dev/sdh /mnt/data-store

Permanent link to this article: http://devnumbertwo.com/488

escape character in vi – search and replace

as i attempted to edit some installation files to update scripts to point to a different directory than the defaults i realized that i needed to replace a string with one that would have slashes in it – eg. replacing ‘u01′ with ‘somewhere/else’

i then found out that “/” in the search/replace command is just a default and you can replace it with a different character:

%s#u01#somewhere/else#ABC#g
or
%s+u01+somewhere/else+g
or
%s_u01_somewhere/else_g

Permanent link to this article: http://devnumbertwo.com/483

mount on startup for linux

in a nutshell in order to have something mounted on startup under linux you will need to edit your /etc/fstab file. if you don’t know how to do that, take a look at the link below. it’s a pretty thorough yet easy to understand read on how to edit the fstab file:

http://www.tuxfiles.org/linuxhelp/fstab.html

Permanent link to this article: http://devnumbertwo.com/478

oracle peoplesoft installation – running the data mover from unix

i looked high and low for this and finally found it – works for PeopleTools 8.4x+:

note: you must have Tuxedo installed as it is required in order to run the Data Mover in a Unix shell.

execute the psconfig.sh to set the environment variables but first make sure the following variables in psconfig.sh have been modified to point the proper locations in your PS_HOME.

export PS_DM_DATA=default is $PS_HOME/data.
export PS_DM_SCRIPT=default is $PS_HOME/scripts.
export PS_DM_LOG=default is $PS_HOME/log.

. ./psconfig.sh

PS_DM_DATA = directory where the PS Data Mover executable searches for input data (.DAT) files.
PS_DM_SCRIPT=location of the ps Data Mover scripts files.
PS_DM_LOG=location of the PeopleSoft Data Mover log files.

run the PeopleSoft Data Mover executable:

psdmtx -CT dbtype -CS server -CD database name -CO user -CP password -CI connectid -CW connectpassword -FI filename.dms

Permanent link to this article: http://devnumbertwo.com/473

creating a swap file on linux

it’s common to use a whole partition of a hard disk for swapping. however, with the 2.6 Linux kernel, swap files are just as fast as swap partitions…

login as the root user.

  1. the following command will create 512MB swap file (1024 * 512MB = 524288 block size) — modify the math to create a file of a different block size):
    dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
  2. set up a Linux swap area:
    mkswap /swapfile1
  3. activate /swapfile1 swap space immediately:
    swapon /swapfile1
  4. to activate /swapfile1 after system reboot, add entry to /etc/fstab file
    vi /etc/fstab

    append the following line:

    /swapfile1 swap swap defaults 0 0
  5. verify swap is activated
    free -m

Permanent link to this article: http://devnumbertwo.com/468

mounting an Amazon S3 bucket into a linux EC2 instance

  1. Download the latest version of s3fs (which is a FUSE backend for S3 — note that fuse 2.8.4 is required for the latest version of s3fs) from http://code.google.com/p/s3fs/downloads/list
    wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz 
  2. Unpack it:
    tar zxf s3fs-1.61.tar.gz 
  3. run ./configure and see if you need to install dependencies for building.
  4. Build and install the code (this copies the binary s3fs to /usr/bin):
    make install
  5. Edit a config file for storing your keys (you can check them out under Your AWS Account -> Security Credentials)
    touch /etc/passwd-s3fs && chmod 640 /etc/passwd-s3fs && echo 'AccessKey:SecretKey' > /etc/passwd-s3fs

    If you dont want to leave any trace of your secret key in your shell history, use a text editor to edit the file rather than echoing it.

  6. Create a directory for mounting the S3 filesystem and mount it. Note that you can mount the s3fs anywhere you like:
    s3fs bucketname /mnt/mountpoint
  7. Check it is woking correctly:
    grep s3fs /etc/mtab

Permanent link to this article: http://devnumbertwo.com/465

how to replace a string in vi

need to replace a string in vi?

first occurrence on current line:

:s/SEARCHTERM/REPLACEWITHTERM

globally/all occurrences on current line – note the /g at the end, this makes it “global”

:s/SEARCHTERM/REPLACEWITHTERM/g

every occurrence in file:

:%s/SEARCHTERM/REPLACEWITHTERM/g

Permanent link to this article: http://devnumbertwo.com/402

System Idle Process – why is it using up my CPU?

the question: in windows, why is “System Idle Process” using up my CPU?

the answer: basically shows that your CPU isn’t doing much at the moment – so relax… if you’re interested in the long version of this answer check it out here.

Permanent link to this article: http://devnumbertwo.com/393

post-it note watch! somebody buy me this!

http://www.pa-design.com/pa_montre-post-it_pense-bete_371_1143.html

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/399

dropbox relaunces api for mobile and web apps

http://blog.dropbox.com/?p=915

The Dropbox Blog » Blog Archive » The Dropbox API!Posted by Brian Smith on October 20, 2011 We’re really excited to announce the launch of the Dropbox API for mobile and web apps! Even if you have no clue what the Dropbox API does, chances are you’ve already used it – it’s the engine that powers our iPhone and Android apps and thousands of third-party Dropbox-enabled apps.

Embedly Powered

 

 

Permanent link to this article: http://devnumbertwo.com/363

there’s no place like 127.0.0.1

yes! now i just need to find a geeky dorothy wizard of oz outfit for halloween…

There's no place like 127.0.0.1 Door/Floor mat

 

Permanent link to this article: http://devnumbertwo.com/385

refuctoring – when was the last time you refuctored code?

a really good video on refuctoring code… that’s right, refuctoring

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/368

stiggitty stackable iphone case… i guess this is pretty cool…

http://www.case-mate.com/iPhone-4-4S-Cases/Case-Mate-iPhone-4-Stacks-Case.asp

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/351

earonic iphone case – rad sideburns for EVERYONE!

“the EARonic iPhone cases are EARefutably EAResistible”

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/359

Older posts «