Run MODX, WordPress and Redmine on NGINX EC2 micro AIM

12 Feb 2012

I’m using amazon web services now for a while and was wondering, if it’s really necessary to host my  sites on a Small Instance

So I came across NGINX web server which is famous for it’s performance and low resource usage.

So here how to run,  MODXWordPress and Redmine with NGINX on a amzn-ami-2011.09.2.i386-ebs (ami-b4b0cae6) micro AIM  instance.

Thanks to:

Read the rest of this entry »

MODX FormLog hook to store formIt data in a jSon

28 Jan 2012

I was looking for a simple way to store FormIt data, so i came up with this simple hook:

MODX SuperBoxSelect For Dummies

21 Nov 2011

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

03 Oct 2011

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

05 Sep 2011

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/

 

Dynamic google map markers via simple jSon file

27 Jun 2011

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 »

PHP Simple Comments Read/Write jSon data to text file

04 Mar 2011

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 »

The cloud of the people.

11 Dec 2010

It’s probably the most revolting time in the history of the WWW and what was a playground for geeks and other freaks has made its way to all of us, as even simple stuff like tab whater, electricity and TV don’t work without it.

So who actually owns the internet, who’s to say what’s good or wrong and how does the fact, that almost every human being on this planet can be reached in seconds change our thinking of democracy?

The publication of #WikiLeaks is probably only the top of the iceberg and opens more questions then it gives answers. One thing is clear, democracy and freedom of speech has its rules and its up to us to fight and define them.

Sadly to see, that #OperationPayback is based on the same old patterns. What’s the point of taking down mastercard and paypal? Its simple to break something and will never success unless you build it better afterwards. To all you wana be hackers why don’t you cancel your master/visa card, boycott eBay and PayPal don’t drive a gas driven car etc…? Oh right that’s not as convenient as just clicking on a .exe and go on with life as usual.

Having said so I’m interested in starting a project #CloudOfThePeople (let me know if you have a better name)  which basically should connect all home computers together to host web sites like #WikiLeaks runs applications like Twitter and FB fully under control of each one of us.

Let me know if there is development going on in this direction or your interested in exchanging ideas and technical brainstorming @SofaBits.

“we won’t have a society if we destroy the environment” Margaret Mead


WikiLeaks
– Mass Mirroring our website

What happen to Facebook Buttons

10 Apr 2010

Not sure what happen, since a few week i cant see the facebook logo and header buttons. I guess facebook doesn’t like google chrome on linux.

WordPress mootools accordion menu

17 Jan 2010

I just migrated my old DasBlog to WordPress (really like it). After making a few changes to the default theme I was wondering if there is a simple way to have a mootools accordion effect on my sidebar.

I know there are 10 ways to install accordion menus, but somehow none of them was working for me as I believe in simple solutions.

Here a small script I added to my header and the accordion was working after 5 minutes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// add event listener to parse side panel
window.addEvent('domready', function() {
 
    // add class name to widget element
    var togglerElements = $('li.widget');
    for(var i=0; i < togglerElements.length; i++) {
        togglerElements[i].childNodes[1].className = "widget_element";
    }
 
    // create Accordion instance
    var myAccordion = new Accordion($('accordion'), 'li.widget', '.widget_element',   {
        opacity: false
    });
});

Make sure you include Mootools 1.2 Library.

As I could not find a way to add a class name or id to the sub <ul> element of the widget title I loop throe them and add the className.

Ok I agree a bit hacky but it does the job. If there should be a better solution please let me know.

Older Posts »