Skip to content

Instantly share code, notes, and snippets.

View pkarl's full-sized avatar
🍕
pk2 is typing...

Pete Karl II pkarl

🍕
pk2 is typing...
View GitHub Profile
<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>
// js
$('div#dragme').draggable()
// html
<div id="dragme">
Drag me! I'm a div
</div>
<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)
Listen 8080
#<IfModule mod_ssl.c>
# Listen 443
#</IfModule>
# 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)
~: 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!