How To Guides

Minnesota Web Developer

A little something about everything...

How to redirect and handle mobile clients with JavaScript using cookies

Create a file called mobile.js and add the following code to it, be sure to replace shawnhyde.com with your own domain name.

 

You will need to create a link back to your full version site for people with large display smart phones that do not want to use the mobile site. In order to do this you just need to add the following code somewhere on your mobile site.

 

You can also add a floating link back to your mobile site in case they have problems by adding the following code to your main site.

You will need to add a file named desktop.css with something like the following code.

You will need to add a file named mobile.css with something like the following code.

Also, be sure you update the code to reflect the correct folders for files.  For example, "css" folder, "js" folder. 

Edit / Updated the code to support newer mobile clients.

The network folder specified is currently mapped using a different user name and password. To connect using a different user name and password, first disconnect any existing mappings to this network share.

To disconnect from a ghost or rogue network path do the following:

  • (Open cmd.exe)
  • net use /delete \\(computername)\(sharename)

To disconnect from a ghost or rogue network drive do the following:

  • (open cmd.exe)
  • net use (diveletter): /delete

How to add ads to Telligent Community Server 2007, 2008, 2008.5

add this code to the top of the master page or template you wish to include ads on:

Now add this code to the area of the page you want your ads to be displayed:

Free energy concept, wave power. Perpetual motion/Energy facts.

We all know that you cannot produce more energy than you consume. Energy cannot be created nor removed it can only change form. However you can use a process which takes more energy from external sources than what it takes to create it.

You cannot have perpetual energy without harnessing an existing energy and changing it's form where as that form will naturally change back to the initial form. and you must also use less energy to change its form than what is produced by the change.

The closest example os such a process is by use of HHO, Splitting H2O into HHO then burning it to create the energy. When HHO is burned it produces H2O however it takes more energy to split H2O into HHO then what is created while burning it. If you could find a way to improve the process of splitting H2O into HHO then you would have a free energy process. However, this cannot be done because energy cannot be created or removed it can only change form so you are left with one option, harness energy from an existing source.

Luckily we have several sources of existing energy. The largest is the sun, which puts off energy in many forms which can be harnessed. Waves, Wind and Solar.. in order of availability. Some will say that solar or wind will have more energy however, the fact is that 70% of our planet is water and therefore it absorbs 70% of the energy from the sun to our planet surface (excluding atmosphere of course).

The following is a process in which you can use to create energy from waves:

5% of the world’s waves can power the entire planet with the use of a simple buoy tethered to the bottom of a water mass. Each wave will exert vertical force on the buoy and tether. If the force on the tether is harnessed in to form of a piston, crank or geared motor you can transfer the force of the energy from the wave into usable electricity.

A simple diagram shows the basic method for this.