MODX SuperBoxSelect For Dummies

Dealing now more then one year with MODX revo and ExtJS, I thought it can’t be too hard to add a SuperBoxSelect component to a custom manager page. The fact that it’s now even  integrated in MODX  (thanks Ben), made me believe this will be a 5 min job (yeah i’m still an optimist and obviously there’s allot to learn).

Also there are plenty of information, forums and examples out there but it still took me almost half a night to puzzle them together and made it actually work.

So here, step by step what finally worked for me (not sure if this is the best solution so any input welcome).

Read the rest of this entry »

IE9 jQuery Radio checked issue

I just spend 4 hours to read a simple radio selection via jQuery in IE9 from the following form.

1
2
3
4
5
6
<form name="myForm" id="myForm">
	<input type="radio" name="cTitle"  value="1" />Mr
	<input type="radio" name="cTitle"  value="2" />Miss
	<input type="radio" name="cTitle"  value="3" />Mrs
	<input type="radio" name="cTitle"  value="4" />Ms
</form>

How could this be a problem you think? Exactly a quick google search and as expected the following code worked just fine in almost all browser exept IE9 ggrrrrrr:

1
2
var cTitle = $('input:radio:checked', '#myForm').val();
var cTitle = $('input[name=cTitle]:checked', '#myForm').val();

Yes the second attempt was close but i was missing the  around the radio name and should have taken the  to get the objects :(

1
var cTitle = $("input[name='clientTitle']:checked").val();

I know a prime example of copy and paste and not really using my head.

So just in case you run into similar problems give it a try and hopefully save some time.

Search Engine Sphider – web crawler

I was looking for a easy and simple way to crawl multiple web-sites and build a search catalog.

After a few google searches I found sphider I really love it and it does exactly what I was expecting.

You define the URL’s you wish to index, set the level of how deep you wish to follow the links and it gives you a super fast and powerful search engine.

Check it out:

http://search.sofasurfer.org/

 

WP .htaccess file hacked by distributioncorporate.ru

It looks like my blog just got hacked. All traffic was redirected to distributioncorporate.ru with some custom rules in the .htaccess file.

Make sure to delete these files:

1
2
/wp-content/uploads/_wp_cache.php
/wp-content/uploads/sm3.php

I also deleted the Mobile Detector Plugin, which also contained some strange PHP files and may be the cause of this.

Check these links for more info:

http://wordpress.org/support/topic/site-getting-diverted-from-google?replies=12

http://markmaunder.com/

UBUNTU EC2: Add new admin user

I’m sure there are plenty of articles describe how to add/create a new user on a UBUNTU EC2 instance.

Unfortunately I couldn’t find a simple one so i decided to create this post more for my own reference.

I assume you already have a UBUNTU EC2 instance (in my case 10.04.2 LTS ami-6afa8438 ) with a valid key file for the default user ubuntu and wish to grant access to an additional user.

My domain name is sofasurfer.ch and the new user i will add is kib.

Read the rest of this entry »

There is no in between

As a dyslectic person i always struggle with grammar and spelling.

Back in school (Swiss German) i could not figure out if there should be(e)?; a v or a f, an extra h in “ka(h)m”; and on and on and on… The positioning of letters did not match on paper the way i had them in my mind.

Lucky me, one day spell check was invented and i finally can write letters (still not perfect) but at least people understand the basic concept.

After reading the text beside my theory has bin proven correct, it’s not that important at all, and more important, you communicate with people and try to learn new languages even there are plenty of mistakes (how else you learn if not with mistakes).

Don’t get me wrong, this is no excuse, not to improve spelling and grammar :)

The Science of Word Recognition

Dynamic google map markers via simple jSon file

After making my previous post on how to simply store comments in a jSon file (and the comment from Brian) I decided to write an additional HOWTO create dynamic markers and store them in a jSon file.

It also includes an automatic geo data lockup via Google GeoCoder and generates a detail html file for-each marker created, which then will be loaded dynamic when the marker is clicked.

Check out the working example or download the code.

Read the rest of this entry »

New Site – ClearlightHealing.ch

Helped an good old Friend to build a simple WordPress web-site:

http://www.clearlighthealing.ch

Kim Hill – WebSite Refresh

Added some new gadgets to Kim Hills web site.

  • Facebook and Twitter widget
  • New Music Player
  • Youtube Videos

PHP Simple Comments Read/Write jSon data to text file

A few days ago i had to build a simple comment form. First i thought about MYSQL etc, but this all seems to be too complicated. So i came up with a simple solution based on jSon and a TXT file.

Check out the example page or download source code.

So that’s how it cooks:

Read the rest of this entry »

Older Posts »