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
@pkarl
pkarl / README.md
Last active August 29, 2015 13:56
ffmpeg + ImageMagick + python stuffs

So here's what I did. I don't know if it's anywhere NEAR what you're getting at, but I think it's neato. Thanks for the source images :)

I created a bunch of interstitial 50% blended frames, and at higher rates (like 24fps) I see a difference!

Here's what I did:

  1. dumped all the images to a dir
  2. wrote a python script (attached)
  3. created an /output dir
  4. ran the python script, which copies source images + generates blended images using ImageMagick CLI junk
@pkarl
pkarl / goodreads.md
Last active August 31, 2015 14:58
This is a list of articles compiled (mostly) by a friend who's helped me understand.

These reads (and videos) were tough, sobering, and, in the end, completely worthwhile.

Guys, you may feel like this doesn't apply to you, or you may reject many of these ideas outright. If that's the case, then keep reading. Keep reading because to make a positive change in our industry, we need to cultivate empathy. We must understand the problems and the motivations of the people experiencing them.

Go for it,

  • pk

~: 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!
# 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)
Listen 8080
#<IfModule mod_ssl.c>
# Listen 443
#</IfModule>
<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)
// js
$('div#dragme').draggable()
// html
<div id="dragme">
Drag me! I'm a div
</div>
<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>
var ProgressForm = {
_currentStep: 1,
_totalSteps: 0,
_prevButton: false,
_nextButton: false,
_progressbar: false,
// this would be _init() for jQuery UI versions < 1.8
$.get('https://api.twitter.com/1/statuses/mentions.json?include_entities=true', {'since_id':'1234'}, function(data){
// parse that shit
// insert that shit
});