MacPorts on OS X 10.8 Preview – Mountain Lion

When i upgrade my one Mac to OS X 10.8 Preview ( Mountain Lion ) i got trobbel whit MacPorts, i send a mail to newslist and the problem are fixing pretty quick.

but i need to do follow before its work for me.

mv /opt /opt_bk

And follow this guide from MacPorts website. http://guide.macports.org/#installing.macports.subversion

REMEBER OS X 10.8 PREVIEW ITS ONLY FOR DEVELOPERING AND TESTING!!!! NOT PRODUCTION COMPUTERS AND THE SAME WHITE THIS TRUNK CHECKOUT OF MACPORTS

how to iPhone and iPad reboot

If you are as unlucky as I am, and your iPhone or iPad was freeze and you are unable you can resolve this by holding down the “Power button” and “Home button” for 5-10 sec to turn off and shows Apple logo.

here after your unit running again.

jQuery – append to table rows

If you use jQuery for everyday, it might be wonderful to learn how you can do an “append” for your tablet without your lines goes amork.

Even I have started using a very smart method which makes I can remove tr’s without my rows / fields breaks down.
Read more

CentOS – Change your IP address to static

To change the IP address in CentOS you need to edit 2 files, start to correct your address information in 2 files

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
sudo nano /etc/sysconfig/network

When these two files are modified correctly for your network, you must restart the network servicesen.

service network restart

Maybe you are more into the GUI interface in the terminal, it can also be used by using this command.

system-config-network-tui

Install Apache2, MySQL5.5 and PHP5.3 on OSX Lion

If you just installed OS X Lion or upgraded from Snow Leopard to Lion and want to use it as a developer web-server so it is possible.

This guide will help you get Apache2, MySQL5.5 and PHP5.3 to work on your machine so you are ready to develop without internet. Read more

MySQL – Easy way to insert rows from one table into a secound

If you are one of the persons there can rip your hair of your head when customers asking you to adding a lot of rows from your MySQL table to another table based on certain requirements.

Then take this little tip possibly helping you to a fun business day
Read more

DomDocument i PHP5

In PHP, there are many different ways to create XML, but the absolut easiest way is by using DomDocument.

Start with create a new DomDocument object
Read more

zen-coding – TextMate – Optimer udviklingstiden

Er du lige som jeg og benytter TextMate, så er der her et rigtig dejligt Addon til programmet “Zen-Coding” det vil spare dig for utrolig meget tid hvor du før brugt tiden på de normale HTML tags.
Read more

slideTroggle – jQuery

Har længe ledt efter en måde at lave “slideup” og “slidedown” på i jQuery, faldt tilfældigvis over denne stump kode, som gør netop det som jeg altid har kodet mig ud af, nu klares det bare på en linje isted for 10 (:

<button>Toggle</button>
 
  <p>
    This is the paragraph to end all paragraphs.  You
    should feel <em>lucky</em> to have seen such a paragraph in
    your life.  Congratulations!
  </p>
<script>
    $("button").click(function () {
      $("p").slideToggle("slow");
    });
</script>