CMS i en enda fil

tor, Feb 25, 2010

0 Kommentarer

Hittade en lite kul idé. Det är någon som snickrat ihop ett CMS som består endast av en enda fil. Kanske kan ha nytta av den någon gång, vem vet!

http://onefilecms.com/

  • Share/Bookmark
Läs mer...

Kompilera PHP koden för högre prestanda

ons, Feb 3, 2010

0 Kommentarer

Facebook har under 2 års tid utvecklat hiphop som ska kompilera php koden och dra upp prestandan med ca 50%. Konverteraren konverterar om koden till C++ så att den går att kompilera med g++. Denna är utlagd som open source projekt på github.

http://developers.facebook.com/news.php?blog=1&story=358

  • Share/Bookmark
Läs mer...

PHP microtime class|PHP mikrosekunder klass

ons, Maj 20, 2009

0 Kommentarer

Denna PHP klass används för att mäta den tid som gått i mikrosekunder.This class can be used to measure the time that elapses in microseconds.

Det kan börja mäta tiden från valfri plats i PHP-skriptet för att ta reda på hur lång tid ett skript tar i mikrosekunder.It can start measuring the time at any point of a PHP script taking note of the current time in microseconds.

Later the class can stop measuring time and returns the time that elapsed since the beginning.

Ladda nerDownload: Microtime 2009-05-06 (284)

  • Share/Bookmark
Läs mer...

PHP Ajax Voting system|PHP Ajax Röstningsfunktion

mån, Maj 18, 2009

0 Kommentarer

Denna röstnings-klass byggt med PHP och Ajax kan du använda när du snabbt och enkelt vill bygga en röstningsfunktion.
This PHP Ajax Voting class can be used to manage a vote polling system.

Den sparar resultaten i en MySQL databas.It can record in a MySQL database the votes of the users in several possible options also defined in a database table of poll options.

Den använder cookies för att hålla reda på om en röst gjorts per användare så användaren inte kan rösta igen.It uses cookies to keep track of votes done by each user to prevent users voting again.

Klassen kan också hämta ut statistik för vardera undersökning.The class can also retrieve the statistics of votes done for each poll option.

Ladda nerDownload: PHP Ajax Voting 2009-05-15

  • Share/Bookmark
Läs mer...

TextboxList

fre, Maj 15, 2009

0 Kommentarer

TextboxList är ett till plugin till MooTools som förvandlar dina vanliga inputfält till en widget där du kan navigera i en lista med tangentbordet som skapas med ett Autocomplete plugin som följer med.  Du kan enkelt ta bort saker från listan.TextboxList another plugin to MooTools that turns normal textboxes into a widget which can be navigated with the keyboard, effectively turning your input into a “list” of items that can be easily deleted. It comes with an Autocomplete plugin.

Facebook-like TextboxList

Facebook-like TextboxList

Demo: http://devthought.com/projects/mootools/textboxlist/
Ladda nerDownload: Textboxlist V0.3

  • Share/Bookmark
Läs mer...

Tokenizing Autocomplete Text Entry jQuery Plugin

fre, Maj 15, 2009

0 Kommentarer

TokenInput låter dig välja från en lista medans du skriver, den använder sig av autocompletion medans du skriver för att hitta resultaten. Du har säkert sätt liknande när du fyller i mottagare på exempelvis facebook.TokenInput allow users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Vertical list style item selection

Vertical list style item selection

Facebook style item selection

Facebook style item selection

Demo: http://loopj.com/tokeninput/demo.html
Ladda nerDownload: http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/

  • Share/Bookmark
Läs mer...

jPlayer – Open Source Javascript Mp3 Player|jPlayer – Open Source Javascript Mp3 Spelare

tor, Maj 14, 2009

0 Kommentarer

jplayer_demo_02jPlayer är en Open Source Javascript Mp3 Spelare. jPlayer är baserat på jQuery.
Denna Open Source Javascript Mp3 Spelare Låter dig:
jPlayer is an Open Source Javascript Mp3 Player. jPlayer is based on the popular framework jQuery.
This Open Source Javascript Mp3 Player allows you to:

  • Spela och kontrollera mp3 filer på din hemsidaPlay and control mp3 files in your webpage
  • Skapa och designa en onlie mp3 spelare genom att bara använda HTML och CSSCreate and style an online mp3 player using just HTML and CSS
  • Lägga till ljudeffekter till jQuery projektadd sound effects to your jQuery projects

Allt detta utan synlig flashFlash.All of this with no visible Flash.

Demo: http://www.happyworm.com/jquery/jplayer/0.2.1/demos.htm
Ladda nerDownload: jQuery.jPlayer.0.2.1.source.zip

  • Share/Bookmark
Läs mer...

CSS Compressor|CSS komprimering

tis, Maj 12, 2009

0 Kommentarer

Den här PHP klassen, CSS Compressor,  kan du använda för att minska storleken på dina CSS filer

CSS Compressor tar hela CSS filens innehåll och städar upp CSS filen efter angivna regler som minskar antalet bytes.CSS Compressor can be used to compact the size of CSS definitions.

CSS Compressor takes a string with CSS definitions and performs several types of operations that can reduce the number of bytes that the resulting CSS definitions take.

Ladda nerDownload: CSS compressor 2009-05-07

  • Share/Bookmark
Läs mer...

ColorBox

tor, Apr 30, 2009

0 Kommentarer

ColorBox tycker jag är en av de bättre lighbox pluginnen till jQuery. Den är snygg enkel och det behövs nästan ingen kod alls.  ColorBox kan visa foton, iframes, extern HTML (ajax ), intern HTML och flash.ColorBox is one of the better lighbox plugins for jQuery. It is pretty simple and it need almost no code at all.  ColorBox works with photos, iframes, external HTML (ajax ), inline HTML and flash.

Demo: 01, 02, 03, 04
Ladda nerDownload: Colorbox V1.1.6

  • Share/Bookmark
Läs mer...

MySQL 2 JSON converter|MySQL till JSON konverterare

ons, Apr 29, 2009

0 Kommentarer

MySQL 2 JSON är en enkel PHP klass som genererar JSON kod utifrån en MySQL fråga. Den tar en MySQL fråga och skapar helt enkelt en JSON sträng innehållande alla rader från frågan.
MySQL 2 JSON is a basic PHP class that Generate JSON output from MySQL query results. It takes an handle of a previously executed MySQL database query and retrieves the results to generate a JSON string with the values of all the result rows.

ExempelSample:

<?PHP

//include the mysql_to_json class
include(‘mysql_to_json.class.php’);

//Mysql stuff.
mysql_connect(‘host’, ‘username’, ‘password’);
mysql_select_db(‘users’);
$query = mysql_query(‘SELECT * FROM users’);

//Now mysql_to_json supports many methods of getting from your query to the json output, I will show you 2 methods

/////////////////////////////////////
// METHOD 1 – Using constructor //
///////////////////////////////////

//create a new instance of mysql_to_json
$mtj = new mysql_to_json($query, ‘cbfunc’);

//show the json output
echo $mtj->get_json();

///////////////////////////////////////
// METHOD 2 – Using method chaining //
/////////////////////////////////////

//create a new blank instance of mysql_to_json
$mtj = new mysql_to_json();

//show the json output through method chain
echo $mtj->set_query($query)->set_cbfunc(‘cbfunc’)->get_json();

?>

Ladda nerDownload: MySQL to json 2009-04-22

  • Share/Bookmark
Läs mer...
Äldre inlägg