FSH Sweden AB

You can't turn when falling

Moving the MySQL data directory

Has this happened to you? You run for a while on the default installation of MySQL. The data increases and suddenly you realize that the system disk (a fast SSD of 256 GB) wont suffice. OK, we need to move… Fortsätt läsa →

How to setup a Raspberry Pi as a NAS using Samba

http://www.simonthepiman.com/how_to_setup_windows_file_server.php

Capistrano!

How to deploy a Rails 4 app with Git and Capistrano

Calculating Historical Volatility

Historical Volatility shows how volatile an asset has been. There are numerous ways of calculating it, and I will show the most simple one here. Here’s how you calculate it using Excel or LibreOffice Calc if you so will. *… Fortsätt läsa →

The Builder Pattern

I won’t even go into why you should learn patterns. Patterns are canned knowledge! One of the fundamental ones are the Builder pattern. It’s create to help you avoid situations like: p = new Product(”STK”, ”XX”, ”TSZ”, 10.0, 11.33, 12.0,… Fortsätt läsa →

Adding Stripe Payments to your Rails application

If you need to process payments, for example charging the user for using your great new website, Stripe is a great contender. An alternative is PayPal, which I will write about later on. The Stripe APi documentation is great, however… Fortsätt läsa →

Setting up 1000 Devise user accounts using fixtures

Seting up a one Devise user (version 3.5.1 and later) is simple in file <app>/test/fixtures/users.yml: tom: id: 11 name: TestUser email: test@example.org encrypted_password: <%= Devise::Encryptor.digest(User, ‘password’) %> If you want to setup 1000 users, use some ERB code instead. <% 1.upto(1000) do… Fortsätt läsa →

IOS App that scrolls both vertically and horizontally

Great example on how you create a ”Netflix-lookalike” app with scrolling in bort vertical and horizontal direction. https://github.com/ThornTechPublic/HorizontalScrollingCollectionView

Test and Maximize network thruput

I had to transfer lots (LOTS) of video files from my IMAC where I had catptured a bunch of older DV tapes. Since space ran out (iMovie doesnt compress the video when capturing so a standard DV hour of video… Fortsätt läsa →

A workflow to sort pictures and movies by date captured (EXIF data)

I have lots and lots of home made movies, mostly in the form of DV-tapes and SD-cards. This is how I sort the pictures/clips by date You need a proper OS  (Linux and OSX only! No toy-systems!) You need exiftool… Fortsätt läsa →

« Äldre inlägg

© 2017 FSH Sweden AB — Drivs med WordPress

Tema av Anders NorenUpp ↑