PHP w/ GD on OS X 10.5

Posted on 8:07 PM, under ,

Entropy by Marc Liyanage has been updated since the last time I tried to get a real PHP for my Mac and I am happy to report that it now is designed for 10.5!  All hail the non-chopped down version Apple should have put out in the first place.  Now I again have the option of running things like Drupal on a Mac platform natively.

| edit post
Adobe does not offer a 64-bit version of Flash yet so to get Pandor's gadget to work Sidebar must run in 32-bit mode. To do this, go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and edit SideBar, changing it to C:\Program Files (x86)\Windows Sidebar\sidebar.exe /autoRun. After that Windows will run the Sidebar.exe in Program Files (x86) instead of the 64-bit one.

| edit post
UPDATE: There seems to now be a shortcut on the desktop for installing to disk.  Just open Konsole and enter ./install.sh.



Download your copy from Remote-Exploit.org.

| edit post
So, you want to run OpenVPN or VMware on Windows 7 or Vista?  Get ready to use Regedit.  To make these work as they should you need to go to hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318} and look in the entries (there are about 17 of them) below it.  Look for a driverdesc that has vmware or TAP-Win in it.  In those that do, right click and create a new DWord.  Make its name *NdisDeviceType with a value of 1.  Beyond that, the normal setup instructions work great.  I used the OpenVPN Quickstart on Windows 7 x64 Enterprise with no problem.  One note though, if it is your server like mine is then be sure to change %ProgramFiles% in the server config file to the actual path since OpenVPN runs under Program Files (x86).

The reason you have to make these edits is in the way Windows 7 and Vista handle networking and is all explained at http://msdn.microsoft.com/en-us/library/bb201634.aspx  OpenVPN's special interface and VMnet1 & VMnet8 are not actually connecting to a traditional network and therein lies the problem.

| edit post

PC in a Power Plug... LITERALLY!

Posted on 12:39 PM, under




This is a computer called a SheevaPlug that plugs into wall outlet!  It is as powerful as many desktop PC's and is designed to run network services like websites, email, and VPN. Best of all, it is only $99 at Globalscale Technologies, Inc.  Thanks to Linux Journal for showing this to me in their magazine.


 

| edit post


| edit post
Development of our questions seemed straight forward.  We analysed the video of our focus group and then decieded what the two main topics were that we needed to address.  From there it was just a matter of formulating questions that that would get us the information needed to solve the problems.  Getting to those questions was not the easiest thing in the world but it was not too bad either. 

| edit post
I finally decided to finish leveling my original WoW toon named Namdrof.  He is up to level 71 now and has acquired the biggest dagger I have ever seen... Keleseth's Blade of Evocation (click on my name and check out it's 3D model).  This thing is larger than a lot of one-handed swords!

| edit post
This week I have been tasked with the following:

Which sampling procedure will you actually use for the project?  Why?

If money were no object and you were conducting the semester project as a "real" marketing research firm, which sampling procedure would you use?  Why?
Our group is doing research about the sales of Ramen Noodles. I am fairly certain that we will be doing convenience sampling due to no budget and being located on and around a college campus.

If money were not an issue I think I would want to initially use probability sampling that would then lead to snowball sampling.  It seems to me that this would cover the most people while also aiding in targeting the people who actually are important to the survey's successful collection of relevant data.



| edit post

Week 8 Assignment

Posted on 10:46 AM, under

Hello again.  Today I will be taking on another assignment:
1. Complete the questionnaire found at the following link: http://www.westga.edu/~cbrown/Rsh/Bad_Quest

2. In your blog, discuss at least three things that are wrong with the questionnaire. Note: I'm looking for structural errors such as problems with question wording, directions, scales, etc. rather than question relevance.
The first thing I noticed wrong was that the first question uses "you" while two and three use "I" and "my" respectively.  Also, the format of question three is a little confusing to me... how exactly should I go about giving my answer?  Question five assumes you do not like your car since there is no "not applicable" option.  Lastly, question eight does not provide an other option for majors that do not fit in the listed options (like mine).  Oh, and there is also the problem of an online survey that cannot be answered online (a flat web page).

Now time to go look at some classmates' posts and give a litte feedback.

| edit post

Week 5 Assignment, Part 2.

Posted on 6:03 PM, under

I signed up for NPD and immediately got my first survey.  As requested, it was on video games.  Towards the end it morphed into asking about my shopping habits.  I will edit this post once I am able to take a couple of more surveys... but that timeframe is dependant on them sending me more.

| edit post

Week 5 Assignment

Posted on 11:52 AM, under

To start things off, here is the assignment that this post will be in reference to:
In your blog, discuss what services these firms provide to companies, and the benefits to consumers who sign up to participate.
Now that we have that out of the way let's dive into the first company, Greenfield Online.  There isn't really a lot of info unless you join the site.  They claim to be the "number one online survey community" and say that "Because of our global focus on quality practices, companies trust the results of our surveys and pay more attention to your opinions."  Lastly, if you click on thier About Us link they also say that they "serve the needs of more than 300 marketing research firms" which sounds kinda impressive.

On to the next company, SurveySpot.  SurveySpot has a slighly catchier site (IMO) and boldly promotes that they offer their members rewards for taking surveys.  There was also a familiar link in the lower left that set me at ease about this company... it is the BBB logo.  When I clicked it a new window opended with the following informaiton:
Survey Sampling International meets all BBBOnLine participation and Better Business Bureau accreditation standards and is authorized to display the BBB Accredited Business seal.

•This business has been operating since 09/15/1977
•This business was accredited by BBB on 06/23/2003
•This business was approved as meeting BBBOnLine standards on 07/07/2003
Enough about SurveySpot... let's move on and look at NPD Online Research.  Let's just start with a quote from thier site:
The NPD Group provides consumer and retail information and insights for a wide range of industries. We’ve been at it since 1967, and we’re considered the gold standard for market research in each industry we track. More than 1,400 manufacturers and retailers rely on NPD information to help them make successful business decisions.
Their site has a plethera of information available, much more than any other site so far.  Like the others, they offer rewards for taking some of thier surveys.  Unlike the others, they actually tell you the industries they cover on their About NPD page.  Another unique thing I noticed was a link for info for parents under which was this statement: "NPD Online Research welcomes teen members, too!  If there’s a teen in your household, read on for details." 

e-Rewards Opinion Panel has an entirely different approach.  Membership is by invitation only from a sponsor... no signing up for this one.  They have their Member Agreement listed prominently and it contains a WALL of text.  On that page they have logos from several well-known companies like Blockbuster and Pizza Hut and Borders.  Also, they too are part of the BBB.

Now for the last company.  ZoomPanel has a very simple but effective website.  They seem to be geared quite differently than the others, though I can't put my finger on why I think this.  One thing that stood out was that they mention "in home tests" on their About Us page.

Now comes the hard part... I have to decide which one to try out for the next part of this assignment... look for the results here.  Until then...

| edit post

The 8th of November

Posted on 4:20 PM, under

This may well be one of the most touching and simultaneously sad videos I have seen.  The song gives me chills every time I hear it.



I found this at http://www.bigandrich.com/node/419.


| edit post

Swift Warstrider

Posted on 9:22 AM, under

I have decided that I am after a Swift Warstrider.  This one may take a bit longer since I need a total of 90 Marks of Honor to get it.

| edit post
YAY! I have now accomplished the achievement Frostwolf Howler.  Now on to getting some of the other PVP mounts for Aldork plus getting another set of BoA Shoulders from Wintergrasp.

| edit post

What is this?

Posted on 1:30 PM, under

So, I was in the Basin the other day and came across something that looks like a hatch.  When I moused over it I saw some odd looking numbers in the tool tip and do not have a clue what it is I actually ran across.  I am hoping maybe one of you know what this is.


| edit post

New Template

Posted on 11:46 AM, under

Yes, the look has changed... but it is still me :) I am working to get everything converted to the new layout and to get all the links working... please bear with me.

| edit post
Right now I have a lot of free time on my hands so I am working on getting some things in WoW that I have wanted for a while and working on leveling some new toons. One such item is the Horn of Frostwolf Howler for my main. I am about half way there now and hope to (maybe) have it this week... we shall see.

| edit post

WoW on a Tablet

Posted on 10:31 AM, under

I saw this video and felt the need to share it in as many places as I could since I liked it so much...



| edit post

Many Moodle Sites Part 3

Posted on 2:44 PM, under

So, lets dive into some of the deep details of having your own multisite moodle.   First, lets layout some ground work for how I have my site setup so that you will understand why things are done the way they are.  
  • My Moodle sites are laid out as subdirectories inside of my normal web site in the form of http://mysite.org/elearning/moodle_1 and http://mysite.org/elearning/moodle_2.  
  • All of this is running on a TurnKey Linux virtual machine.
  • Moodle data directories are in /var/lib/moodle_data/site_name
  • Moodle actually runs in /usr/share/moodle
  • All the Moodle databases are named moodle-sitename
Now, to be able to access the Moodle site at http://mysite.org/elearning/moodle_1 I created a folder in the web root of http://mysite.org called elearning.  Inside of there I created a symlink called moodle_1 that points to /usr/share/moodle.  Utilizing symlinks allows me to accomplish two things:
  1. Have Moodle installed outside of my web root.
  2. Reference one Moodle install that is not directly web-accessible by many "sites" such as moodle_1 and moodle_2
Once I got the moodle_1 symlink in place, the moodle_1 data directory in place, and the database moodle-moodle_1 setup I navigated to http://mysite.org/elearning/moodle_1 and the install script started automatically.  I proceeded through it as normal.  Once it finished I ensured the site was functioning as it should.

The next part is where it got tricky.  Since there is only one config.php in the Moodle root I had to modify it to use variables instead of static paths.  The result is a config.php that uses the database and data directory that correspond to the web address being accessed.  Here is the file that I created:


unset($orig_page);
unset($pieces);
unset($CFG);

$orig_page  = $_SERVER["REQUEST_URI"];
$pieces = explode('/', $orig_page, 4);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle-'.$pieces[2];
$CFG->dbuser    = 'mUser';
$CFG->dbpass    = 'password';
$CFG->dbpersist =  false;
$CFG->prefix    = 'mdl_';

$CFG->wwwroot   = 'http://'.$_SERVER["HTTP_HOST"].$pieces[0].'/'.$pieces[1].'/'.$pieces[2];
$CFG->dirroot   = '/usr/share/moodle';
$CFG->dataroot  = '/var/lib/moodle_data/'.$pieces[2];
$CFG->admin     = 'admin';

$CFG->directorypermissions = 00777;  // try 02777 on a server in Safe Mode

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>
As you can see, there are some odd looking lines in here now so lets break it down.  We start out by clearing the variables:
unset($orig_page);
unset($pieces);
unset($CFG);
We then make two new variables:
$orig_page  = $_SERVER["REQUEST_URI"];
$pieces = explode('/', $orig_page, 4);
The first one stores what ever is in your address bar after the mysite.org.  The second takes and uses the explode command to break the address at the /'s and stores the results in an array.  The last part of the second line says that everything after moodle_1 is stored as a single string since we do not care about that part.  Putting this all together, the web address www.mysite.org/elearning/moodle_1/admin/replace.php is stored in an array as
 0:  
1: elearning
2: moodle_1
3: admin/replace.php

As you can see, there is nothing stored in the first part of the array... this is because we did not pass in the www.mysite.org part.

Next comes
$CFG->dbname    = 'moodle-'.$pieces[2];
$CFG->dataroot  = '/var/lib/moodle_data/'.$pieces[2];
which looks at what is in position 2 of the array, in this case moodle_1, and inserts it in the database name and the dataroot path.

Lastly, we have the most complicated looking line:
$CFG->wwwroot = 'http://'.$_SERVER["HTTP_HOST"].$pieces[0].'/'.$pieces[1].'/'.$pieces[2];
This strange combination of things pieces together the base web address of the Moodle site by doing the following:
  • http:// --enough said.
  • . --concatenate symbol in PHP.
  • $_SERVER["HTTP_HOST"]   --this pulls the www.mysite.org part of your web address
  • $pieces[0] --gets what is in position 0 of the array (not really needed in this setup, but easier to under stand that way)
  • '/' --adds a / to the address
  • $pieces[1] --gets the elearning part
  • $pieces[2] --gets the moodle_1 part
To save space, I am guessing you can figure out the parts that are repetitive.  

There is one more thing you need to do.  Once the site is up, go to Administration --> Server --> Session Handling and check the top box to use the database for session information plus enter the site name (moodle_1 in this case) in the box for cookie prefix.  These ensure your browser does not get confused about what site you are visiting.

That is it.  All set.  I am running two sites this way now and about to roll out the template site so that I can start creating the other needed sites.  Once I get the script written that is referred to in my last post I will post it also.  Hope this helps!





| edit post

Many Moodle Sites Part 2

Posted on 2:11 PM, under

Yay for another breakthrough!  I have now figured out how to automate the creation of additional Moodle sites in a multi-site setup.  To do this, I will have a "site" that is used as a template for all future sites.  Once this template site is setup and configured to my liking I will then use the methods outlined on the official Moodle documentation site for Migrating a Complete Moodle site - Method 2... with one exception: I will perform these steps via a script.  The script will:
  1. Create a database for the new site
  2. Create the new data directory
  3. Create the symlink for the new Moodle root
  4. Put the template site in Maintenance Mode
  5. rsycn the data directory
  6. Perform the MySQL dump
  7. Take the site out of Maintenance Mode
After that, I will log into the new Moodle site and go to admin/replace.php to fix the web links in the database... and that is it... the new site is built and ready to go.

Shortly I will post details on how to initially configure your Moodle installation so that it can support multiple sites.  Until then...




| edit post
I have had a breakthrough in managing multiple Moodle sites on the same server. I have figured out how to have a single install of Moodle with a single config.php file in it run multiple sites... this will make patching much easier! I will post more details after further testing... but I already have two sites running with this setup!

| edit post

Easy, Nearly Instant Website

Posted on 6:03 PM, under ,

This evening I wanted to tell you all about a super easy way to start your own website. If you have access to a decent computer that you want to dedicate to running a website then TurnKey Linux is for you. To quote their site,

TurnKey Linux is a new open source project that aims to develop high quality software appliances that are easy to use, easy to deploy, and free.

In a nutshell, we believe everything that can be easy, should be easy!

Packaging a solution as a software appliance can be incredibly useful because it allows you to leverage guru integration skills to build ready to use systems (I.e., turn key solutions) that just work out of the box with little to no setup.

Drupal is an awesome web application that does most of the work of managing a website for you. In their words
Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website.

Now for the really good part... TurnKey Linux offers a downloadable CD that has Drupal already setup for you. Literally, all you have to do is
  1. Download and burn the CD
  2. Put it in the computer you want to make a web server
  3. Boot it up
  4. Choose the install option
  5. Answer a couple of questions
  6. Power off the computer
  7. Remove the CD and power up your new server
Has this perked your intrest? If so, or if you just want to see an example of a site running on this setup, check out http://www.wgretc.org




| edit post
Here is one that is for college age students. If you are not on a slow connection, click the HQ link on the video once it starts.


| edit post

A Vision of K12 Students Today

Posted on 3:35 PM, under

Watching this video may make you think differently about technology and education at the K-12 level... I hope you enjoy it.


| edit post

My take on Moodle

Posted on 3:18 PM, under ,


As I mentioned in my last post, I believe that Moodle can be very beneficial to educators. Some of the key ways in which it can make a teacher’s life easier are by providing accountability on the part of the students, allowing for less paper to be used, allowing for instant grading, and allowing for self-paced work. The accountability part comes from the fact that Moodle logs all access to pages. This is helpful because the teacher can verify that a student was on the site when they claim to have been. Less paper is needed because reports and the like can be written directly on the site or in a word processing application then uploaded… no paper copy needed. Quizzes and tests can be given and graded as soon as Submit is pressed. Lastly, during an assignment, a topic can be talked about with a brief skills assessment given afterwards. If the assessment shows that further instruction is needed then it can take the student to that, if not then the student can move on to the next topic. There is much more that Moodle can do, this is just enough to wet your appetite for it… I hope.

| edit post

Technology & Education

Posted on 6:05 PM, under

As the title suggests, I am passionate about technology and education... particularly in the way that it relates to K-12 education. Too many schools are uninformed about all the options that are available to them today. No longer do you have to follow the party line and only use products that cost huge ammounts of money. There is an entire world out there called FOSS. FOSS stands for Free and Open Source Software. In the realm of education, the first two tools that can benifite educators are Moodle and TeacherTube. I am not going to go into detail about these now as they will be topics of future posts... just sufice it to say that there are a multitude of ways in which these tools can support, facilitate, and enhance an educational environment.

| edit post