blog and things happy thoughts!
CSS positioning with inline-block

For the longest time, I have been using float: left; and clear: fix; to position elements but you can achieve the same effect using the display property. Here is a little demo on how it works.

<!DOCTYPE html>
        <title>CSS Inline Block Positioning</title>
        <div class="wrapper">
            <div class="poster">one</div>
            <div class="poster">two</div>
            <div class="poster">three</div>
html, body {
    width: 100%;

.wrapper {
    width: 800px;
    margin: 0 auto;
    font-size: 0;

.poster {
    font-size: 1rem;
    background-color: blue;
    display: inline-block;
    vertical-align: top;
    width: 20%;
    height: 50px;

    /* Legacy browser support */
    zoom: 1;
    *display: inline;
Upload multiple files in Laravel 5.1

Start by creating a simple form in the view.

<form method="post" action="/some-endpoint" enctype="multipart/form-data">
    <input type="file" name="uploads[]" multiple>
    <button type="submit">Submit!</button>

Once on the php side, you can get to the files like this.

$uploads = Input::file('uploads');
Using Boto3 to access AWS in Python

Here are simple steps to get you connected to S3 and DynamoDB through Boto3 in Python.


import boto3

s3_client = boto3.client('s3')
bucket = 'your-bucket-name'
prefix = 'path/to/folder'

# List all objects within a S3 bucket path
response = s3_client.list_objects(
    Bucket = bucket,
    Prefix = prefix

# Loop through each file
for file in response['Contents']:

    # Get the file name
    name = file['Key'].rsplit('/', 1)

    # Download each file to local disk
    s3_client.download_file(bucket, file['Key'], prefix + '/' + name[1])


import boto3
dynamodb_client = boto3.resource('dynamodb')
table = dynamodb_client.Table('table_name')

# Create a record
    Item = {
        'id': 1234,
        'name': str("kevin")
© 2015 Keivn Jung