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:
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
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…
- use the Set-ExecutionPolicy Cmdlet
open PowerShell, type
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.
- sign the script
- 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/
Permanent link to this article: http://devnumbertwo.com/sharepoint-development-spmetal-exe-gets-error-the-web-application-cound-not-be-found/
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:
and change the line:
Permanent link to this article: http://devnumbertwo.com/how-to-run-tomcat-on-linux-as-root/
Permanent link to this article: http://devnumbertwo.com/geek-eyewear-you-must-get-a-pair/
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/
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/
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):
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/
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/
Permanent link to this article: http://devnumbertwo.com/install-tomcat-7-on-mac-os-x/
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/
Permanent link to this article: http://devnumbertwo.com/pubsubhubbub-wait-what-did-you-just-call-me/
reducing swap on an LVM2 logical volume
to reduce an LVM2 swap logical volume (ex. /dev/swap is the volume you want to extend):
- disable swapping for the associated logical volume:
swapoff -v /dev/swap
- reduce the LVM2 logical volume by 512 MB:
lvm lvreduce /dev/swap -L -512M
- format the new swap space:
- enable the extended logical volume:
- 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):
- disable swapping for the associated logical volume:
swapoff -v /dev/swap
- remove the LVM2 logical volume of size 512 MB:
lvm lvremove /dev/swap
- remove the following entry from the /etc/fstab file:
/dev/swap swap swap defaults 0 0
- test that the logical volume has been extended properly:
cat /proc/swaps free
removing a swap file
- at a shell prompt as root, execute the following command to disable the swap file (where /swapfile is the swap file):
swapoff -v /swapfile
- remove its entry from the /etc/fstab file.
- Remove the actual file:
Permanent link to this article: http://devnumbertwo.com/linux-removing-swap-space/
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
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/
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/
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:
Permanent link to this article: http://devnumbertwo.com/mount-on-startup-for-linux/
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/
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.
- 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
- set up a Linux swap area:
- activate /swapfile1 swap space immediately:
- to activate /swapfile1 after system reboot, add entry to /etc/fstab file
append the following line:
/swapfile1 swap swap defaults 0 0
- verify swap is activated
Permanent link to this article: http://devnumbertwo.com/creating-a-swap-file-on-linux/
- 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
- Unpack it:
tar zxf s3fs-1.61.tar.gz
- run ./configure and see if you need to install dependencies for building.
- Build and install the code (this copies the binary s3fs to /usr/bin or /usr/local/bin):
- 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.
- 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
- 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/