This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="playform"> | |
<fieldset> | |
<legend>Contact Info:</legend> | |
Name: <input type="text" size="30" /><br /> | |
Email: <input type="text" size="30" /><br /> | |
Date of birth: <input type="text" size="10" /> | |
</fieldset> | |
<fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// js | |
$('div#dragme').draggable() | |
// html | |
<div id="dragme"> | |
Drag me! I'm a div | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='some-inline-input'> | |
<p>Please enter some text in this box, then submit it!</p> | |
<textarea id="posted_text"></textarea> | |
<a class="post-text" href="/post/to/this/url">submit text with a POST request</a> | |
</div> | |
<script> | |
$('.post-text').click(function() { | |
var target = $(this) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Listen 8080 | |
#<IfModule mod_ssl.c> | |
# Listen 443 | |
#</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# try to start apache, receive error | |
~: sudo /etc/init.d/apache2 start | |
* Starting web server apache2 | |
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080 | |
no listening sockets available, shutting down | |
Unable to open logs | |
...fail! | |
# see what's using the port (note that I'm searching for :80, I could also use :8080) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~: sudo /etc/init.d/apache2 start | |
* Starting web server apache2 | |
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080 | |
no listening sockets available, shutting down | |
Unable to open logs | |
...fail! |
NewerOlder