Friday, December 26, 2008

Beginning to hate IX Web Hosting

Today, I discovered that a couple of my sites were no longer responding correctly--they're hosted with IX Web hosting.
something is wrong with some of the sites that are hosted under my domain... parkapps.com, jin-park.com, mtcarmelchurch.org

you: they are all requiring a password... nothing has changed on the server for a few days now

you: 401 Error - Unauthorized HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource. You are recieving this message because the resource you have requested is unauthorized to your connection. You must first be authenticated in order to access the requested resource. No further information on authenticating for use of that resource is available.

Oleg Kovalenko : Please hold on, let me check

you: also, when i go to use the file manager, i get the following error...

you: ERROR: Unable to change dir "/" Check directory permissions


The site boasts "unlimited" disk storage, and yet, I found an arm-twisting "support" message saying that I've violated the "fair-use" resource assignment. Very odd indeed...

We are notifying you that your account has been found to violate our “Fair-Use” Resource Assignment portion of our Terms of Service, due to the amount of disk usage that is being taken.

We ask that you either reduce disk usage (now you use 51GB) or look for dedicated hosting for this site.

We have a shared hosting environment that we must maintain at a certain level of performance. This performance is monitored and balanced by us, however there are times when accounts can cause the server’s load to increase degrading the performance for all other customers on this server.

To protect your account from further action you must agree to our request for compliance. Please respond to this message stating your intent to do so. You may either log into your control panel with us, and access this ticket via the 24/7 help desk, or provide this ticket number to our Live Chat or phone representatives. Failure to respond to this message within 72 hours will result in the suspension of the affected domain with us until such a time as this matter is resolved.

Should you have any further questions or problems, please feel free to contact us anytime, we are available 24/7.

This just plain stinks of false advertising...

Wednesday, December 17, 2008

Developer tools

I have some development tools I've used day-to-day, you might like them too...

Quickly find and replace stuff (commas to line breaks, regular expressions, etc)
http://www.parkapps.com/tools/find_replace.cfm

Other tools can be found at http://www.parkapps.com/tools/

Friday, December 5, 2008

Minify Javascript

We're having some problems with JavaScript not loading entirely for some users... I'm not sure why yet, but I came across this JSMin - JavaScript minifier. Excellent stuff.

http://fmarcia.info/jsmin/test.html

Tuesday, September 23, 2008

Vertical multi-column list

function ge(obj) {
	return document.getElementById(obj);
}
/*
Reorder a list that normally flows horizontally and refactor to flow vertically in the same area. 
Assumes that the li element has a css width and uses the shortcut function ge()
*/
function vertMultiColList(parentObj) {
	var nextColHtml = '
    '; // no quotes b/c IE is weird about rewriting HTML // if this has already run take out any continued lists parentObj.innerHTML = parentObj.innerHTML.replace(/<\/ul>
      /ig,''); // Firefox parentObj.innerHTML = parentObj.innerHTML.replace(/<\/ul>
        /ig,''); // IE var arrUl = document.getElementsByTagName('UL'); for(var j=0;j= 0) { //arrUl[j].style.border='1px solid red'; var arrLi = arrUl[j].getElementsByTagName('LI'); var lenArrLi = arrLi.length; if(lenArrLi==0) { break; } // get outer width of container var padOffset = -30; var container_width = parentObj.clientWidth+padOffset; // gives a little padding if(container_width==padOffset) { //IE6 problem container_width = document.body.clientWidth+padOffset; } // get width of list item var item_width = arrLi[0].clientWidth; if(item_width==0) item_width = arrLi[0].style.width; // calculate the number of columns that can fit in the space var cols = Math.floor(container_width/item_width); // divide the number of list items by the number of columns to // find out how many items should be in a column var li_per_col = Math.ceil(lenArrLi/cols); for(var i=0;i'; } if(i>1000) { cLog('over 1000 LI'); return; break; } } parentObj.innerHTML = parentObj.innerHTML.replace(/<\/li>/ig,nextColHtml); cLog('parentObj.id: ' + parentObj.id); cLog('container_width: ' + container_width); cLog('item_width: ' + item_width); cLog('lenArrLi: ' + lenArrLi); cLog('cols: ' + cols); cLog('li_per_col: ' + li_per_col); //cLog('parentObj.innerHTML: ' + parentObj.innerHTML); } if(j>100) { cLog('over 100 UL'); return; break; } } //window.onresize = vertMultiColList; // IE can't handle this and spikes memory //parentObj.ondblclick = function() { alert(this.innerHTML); } //parentObj.onmouseover = vertMultiColList; } function cLog(s) { //alert(s); if(document.all) { return; } else { //console.log(s); return; } }

Wednesday, August 20, 2008

Auto format a date onblur to mm/dd/yyyy


/*
reformats dates entered as m/d/yyyy to mm/dd/yyyy
*/
function reformatDate(inp) {
var d = inp.value;
if(d.length==0) {
return;
}
d = d.replace(/\/\//gi,'/'); // replace double slashes
var parsedDate = new Date(d);
var month = (parsedDate.getMonth() + 1).toString();
var date = parsedDate.getDate().toString(); //date is the day of the month
var year = parsedDate.getFullYear().toString();
if(month.length == 1)
month = '0' + month;
if(date.length == 1)
date = '0' + date.toString();
parsedDate = month + '/' + date + '/' + year;
inp.value = parsedDate;
}

Wednesday, July 23, 2008

focusing in on a field that's empty with javascript

There seems to be a weirdness when leaving a field that's empty and trying to get the browser to focus back on it. It does it momentarily, but then decides to go back. This script will force the cursor back and focus on the offending field after .1 seconds of leaving it.


<script>
var myInput = '';
function checkMe(obj) {
if(obj.value == '') {
myInput = obj;
myInput.style.background = 'yellow';
myInput.setAttribute('title','This is a required field and blah blah blah');
window.setTimeout('myInput.focus()',100);
}
}
</script>
<input id="foo1" name="foo1" value="init" onchange="checkMe(this);">

<input id="foo2" name="foo2" value="check" onchange="checkMe(this);">

<input id="foo3" name="foo3" value="last" onchange="checkMe(this);">

Friday, July 11, 2008

MS-DOS stuff, tips, notes, etc

Ok, this is really old school to be working in DOS, but just in case I ever need it again...
@echo off 

: PARAMETER PASSING EXERCISES
: TO RUN:
: pass_param.bat "C:\Temp\dos_test.bat"

:http://windowsitpro.com/article/articleid/13443/how-do-i-pass-parameters-to-a-batch-file.html
:When you call a batch file, you can enter data after the command that the batch file 
:refers to as %1, %2, etc. For example, in the batch file hello.bat, the following command

:clear the screen
cls

:http://talk.bmc.com/blogs/blog-gentle/anne-gentle/dos-timestamp-tips/view?searchterm=batch
:create variable to hold yyyymmdd info by using substring function
set yyyymmdd=%date:~10,4%%date:~4,2%%date:~7,2%

:clear current log and start with the following line (single >)
echo %date% %time% Starting script > %log%

:set the file log with the same name as this bat file
set log=%~n0.%yyyymmdd%.log
echo %date% %time% CREATED LOG FILE: %~n0.%yyyymmdd%.log >> %log%

echo.
echo %date% %time% CURRENT FILE RUNNING: %~nx0
echo %date% %time% CURRENT FILE RUNNING: %~nx0 >> %log%
echo.

:All the parameters in action
@echo off
echo %date% %time% passed in parameter %1
echo %date% %time% fully qualified name %~f1
echo %date% %time% drive %~d1
echo %date% %time% path %~p1
echo %date% %time% filename %~n1
echo %date% %time% file extension %~x1
echo %date% %time% short filename %~sn1
echo %date% %time% short file extension %~sx1
echo %date% %time% drive and directory %~dp1
echo %date% %time% filename and extension %~nx1


REM Prompt the user for something...
set /P myvar=Would you like to add something? 

echo.
echo Thanks!
echo.
echo You entered %myvar% 
echo.
echo %date% %time% %myvar% >> %log%

Tuesday, July 8, 2008

IXWebHosting.com ColdFusion MX - really?

IXWebHosting.com serves up ColdFusion MX, but the following tags are restricted:
cfcontent
cfobject
cfinvoke

grr...

Friday, April 4, 2008

Values Clarification

I'd like to clarify my values for my blog readers... me

According to the office of career & professional development (ucsf) values clarification worksheet, the following are my work-related values that I rank the highest:
  • status
  • monetary reward
  • creative
  • balance
  • influence
  • recognition
my wife's are:
  • work/life balance
  • moral fulfillment
  • location
  • excitement
  • to help society
  • make decisions
  • knowledge
What does this all mean? Well I guess that's to be determined since these are really future career goals. :)

Wednesday, January 30, 2008

just a few random thoughts about working

  • work hard and appreciate those who work hard around you
  • keep your crown at home next to your throne

Monday, January 14, 2008

Work in store - days 4 & 5

Thursday and Friday I worked in the following departments:
  • GM (valentines, stocking shelves)
  • Floral
  • Cheese shop
  • Wine
Somehow, the network team blocked my internet access from the store as well....

Associates at the store really love what they do. They're the best of the best and really work hard at making the store look great.

It could have been 4 days instead of 5. by the last day, i was dog tired! :)

Wednesday, January 9, 2008

work in store - day 3

today i went back to the store and parked in the rear lot--believe it or not, it's a big deal where you park. in the morning, i stocked shelves because the store was so successful over the weekend in sales (that's a good thing) it rippled into the backroom which is too small for the size of the store and caused a lot of gaps. it's also a lot of work to make sure that the shelves are full and stocked with the correct product.

in the afternoon, i followed one of the co-managers (josh) to do freshness checks, store walk, and make sure that everything was in order. We even put up fresh balloons around the store to highlight the arrival of valentines day.

josh highlighted the k** r******** posters around the backroom, tying it in with shelf stocking, and the general condition of the back during a change in holiday and in between store audits. it's really quite amazing all that goes on in order to keep the store at such a pristine level... product must be displayed properly, enough variety is an issue, and most of all, keeping customers happy is so hard. even harder is weeding out those that are trying to scam or steal--yikes.

how many times did i get asked where something was? three. how many times did i know? zero.

Tuesday, January 8, 2008

work-in-store program

so what have i learned after two days working at my local store?
  • it is non-stop working with customers, shelves, floors and products--associates feed off the energy
  • they sell a local brand of ice cream from aglameses bros
  • managers are held accountable for every single corporate initiative out there
  • meetings can be long and detailed
  • packing meat is cold bloody work
  • scanning with the CAO gun is weird and non-intuitive
  • the web tools that we make stores use are also weird and non-intuitive
  • parking is an issue for associates
  • the day crew is pretty different from the evening crew
  • bagging can be fun but also can make you feel like a lonely puppy when you greet customers excitedly and they give no acknowledgment
  • it's really tough work doing what stores do

Sunday, January 6, 2008

good listening

a friend of mine sent this to me a few days back. it's a sermon about the parable of an owner of a field and the number of talents he gives each of them. it's always been assumed that if you were given the 10 talents and made 10 more, you were the hero and if you were given one talent and hid it in the ground, you were the loser. what if it was the other way around?
http://www.risenchurch.com/risensite/page7/files/parable_thetalents.mp3

organic bananas

organic bananas are really good. the peels are thicker and keep the inside fresher for a longer time. Plus, when they do start to ripen, the outside might look a little beat up, but it's really not indicative of the condition on the inside. they also go great with honey almond flax kashi cereal. mmm breakfast