Setting up Form Based Authentication in Sharepoint 2010

i’ve searched high and low for a good explanation on how to set this up and this one is by far the best and most thorough:

http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/

Permanent link to this article: http://devnumbertwo.com/setting-up-form-based-authentication-in-sharepoint-2010/

Sharepoint — soap:ServerServer was unable to process request. —> Value does not fall within the expected range.

the problem: you get this error when attempting to edit a page in sharepoint designer

soap:ServerServer was unable to process request. ---> 
Value does not fall within the expected range.

try this: go to the Central Administration –> Alternate Access Mappings

http://server:port/_admin/AlternateUrlCollections.aspx

configure an alternate access mapping (ex. http://site.domain.org) as internet zone and reconnected in sharepoint designer 2010.

Permanent link to this article: http://devnumbertwo.com/soapserverserver-was-unable-to-process-request-value-does-not-fall-within-the-expected-range/

Windows Powershell – The file is not digitally signed. The script will not be executed on the system.

the problem: you tried to run a PowerShell script and get error “File … cannot be loaded. The file is not digitally signed. The script will not be executed on the system. “ This means that the script is not trusted to be run on your system.

the solution(s): 3 options for you to try…

  1. use the Set-ExecutionPolicy Cmdlet

    open PowerShell, type

    Set-ExecutionPolicy RemoteSigned

    Note: you don’t have to set the ExecutionPolicy to RemoteSigned – there are other values you can set it at: http://technet.microsoft.com/en-us/library/ee176961.aspx

    You might have to run Powershell has administrator to set this – right click on Powershell and go to “Run As Administrator” to do so.

  2. sign the script
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/17/hey-scripting-guy-how-can-i-sign-windows-powershell-scripts-with-an-enterprise-windows-pki-part-2-of-2.aspx
  3. run powershell bypassing the execution policy
    powershell.exe -executionpolicy ByPass 

Permanent link to this article: http://devnumbertwo.com/windows-powershell-the-file-is-not-digitally-signed-the-script-will-not-be-executed-on-the-system/

sharepoint development — spmetal.exe gets error: The Web application cound not be found.

the issue: when running spmetal.exe to generate sharepoint linq client class, the following error occurs

Error: The Web application at [WebSite] could not be found. 
Verify that you have typed the URL correctly. 
If the URL should be serving existing content, the system administrator 
may need to add a new request URL mapping to the intended application.

what did you miss?
add the /user and /password parameters to authorize the action

spmetal /web:http://MyServer /code:TestSite.cs 
/user:domain\yourusername /password:testpassword123

Permanent link to this article: http://devnumbertwo.com/sharepoint-development-spmetal-exe-gets-error-the-web-application-cound-not-be-found/

how to run tomcat on linux as root

trying to run tomcat on linux as root? although running tomcat as root is not recommended in environments where it is accessible to the public i feel your pain. sometimes you just wanna run this bad boy as root.

here’s how you do it:

edit the startup file:

/etc/init.d/tomcat6

and change the line:

TOMCAT6_USER=tomcat6

to

TOMCAT6_USER=root

Permanent link to this article: http://devnumbertwo.com/how-to-run-tomcat-on-linux-as-root/

geek eyewear – you must get a pair!

i just bought a pair of these and i’m friggen loving them! you gotta get a pair.

http://www.geekeyewear.com/index.html

Permanent link to this article: http://devnumbertwo.com/geek-eyewear-you-must-get-a-pair/

blekko remove chrome

the annoyance: i don’t know how i got it but blekko search somehow got installed on my google chrome and would not go away. i removed it from my add/remove programs but even after that when i opened chrome i kept seeing an extra tab going to blekko search. aaahhhh!!! after some reading some people mentioned that this gets installed from CNET. aiya!

how to get rid of this suckah: go into chrome settings, then under section “Search” click “Manage Search Engines” and remove blekko (click the x box). after that, go back to the settings and under section “On Startup” click “Set pages” (right next to “Open a specific page or set of pages.”) and remove blekko from there too. that should do it!

Permanent link to this article: http://devnumbertwo.com/how-to-remove-blekko-from-chrome/

amazon web services – how to transfer files from s3 to ec2 (windows)

there are some tools out there for transferring files from amazon s3 to ec2 – some free, some not. if you are running an ec2 windows instance, i suggest installing firefox on your server and using the “s3 organizer” – it’s free and easy to use.

hint: for some reason one of my windows instances gave me problems while i attempted to download firefox using the IE installed on the server. basically the security settings on IE gave me a headache and kept returning me to the firefox download page over and over again asking me each time to add the mirror site i was downloading from to the site exceptions. what i eventually did was download google chrome (since it doesn’t come from a mirror but just a single google download location) and then used chrome to download firefox. a pretty lame workaround but hey, it worked…

Permanent link to this article: http://devnumbertwo.com/amazon-web-services-how-to-transfer-files-from-s3-to-ec2-windows/

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"

if this occurs on a linux environment, just install php-mysql

yum install php-mysql

Permanent link to this article: http://devnumbertwo.com/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress/

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/amazon-web-services-ec2-instance-not-working-with-elastic-ip/

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/install-tomcat-7-on-mac-os-x/

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/imovie-doesnt-work-with-my-images/

PubSubHubbub… wait, what did you just call me?

Embedly Powered

Permanent link to this article: http://devnumbertwo.com/pubsubhubbub-wait-what-did-you-just-call-me/

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/linux-removing-swap-space/

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/amazon-ec2-mount-wrong-fs-type-bad-option-bad-superblock-on-devxvdf/

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/escape-character-in-vi-search-and-replace/

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/mount-on-startup-for-linux/

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/oracle-peoplesoft-installation-running-the-data-mover-from-unix/

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/creating-a-swap-file-on-linux/

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 or /usr/local/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/mounting-an-amazon-s3-bucket-into-a-linux-ec2-instance/

Older posts «

» Newer posts