Skip to content

Curly Braces

Golden nuggets where no entry is longer than my expected attention span

  • Articles
  • Contact Me!
  • Policy
  • Internal

Month: February 2018

Saving GIT passwords

Posted on February 28, 2018 by Peter Andersson

Saving your git password lets you skip giving username/password at every checkin Normally you use git config –global credential.helper store  but this is not very […]

Continue reading »
0
Development, Git, Linux

Setting up MYSQL, Apache2 and WordPress

Posted on February 26, 2018 by Peter Andersson

MySQL/MariaDB Remember to change bind-address to 0.0.0.0. By default it is set to 127.0.0.1 and then you can’t connect remotely! Exactly which config file it […]

Continue reading »
0
Apache, Development, Linux, MySQL, Network, Wordpress

SSH Login without password

Posted on February 24, 2018 by Peter Andersson

http://www.linuxproblem.org/art_9.html Basically you add the content of your own ~/.ssh/id_rsa.pub to the targets ~/.ssh/authorized_keys file. (Replace ‘a’ with your username, A with your hostname or […]

Continue reading »
0
Development, Linux, Network

Setting up Oracle Java 9 on Ubuntu

Posted on February 23, 2018 by Peter Andersson

Since Oracles own instructions (https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-linux-platforms.htm)  sucks big time, I can recommend this one instead: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 Simple and easy to follow. And it WORKS!

Continue reading »
0
Development, Java, Linux

Setting up Samba on Ubuntu

Posted on February 23, 2018 by Peter Andersson

First of all, check the documentation: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server then go ahead: sudo apt-get install samba decide which LINUX user should be used (or create a new). […]

Continue reading »
0
Linux, Network, Samba

Javascript frameworks 2018

Posted on February 22, 2018 by Peter Andersson

Some alternatives to Angular 1.x (deprecated), Angular 2 (Typescript) and Angular v4 https://www.slant.co/topics/4306/~angular-js-alternatives vue.js riot react (not a framework, per se. It’s a view rendering […]

Continue reading »
0
Development, Javascript

What you need to know about AWK

Posted on February 20, 2018 by Peter Andersson

General structure BEGIN { print “BEGIN” }       /filter1/ { print $0 }      /$6 == “Nov”/ { print $1, $2 } […]

Continue reading »
0
Development, Linux

Why Ruby is Great!

Posted on February 19, 2018 by Peter Andersson

The single reason why I started dating Ruby class VCR def initialize @messages = [] end def method_missing(method, *args, &block) @messages << [method, args, block] […]

Continue reading »
0
Development, Ruby on Rails

Fancy Pancy Tech Talk

Posted on February 17, 2018 by Peter Andersson

You can find a lot of business terms here https://en.wikipedia.org/wiki/List_of_business_terms https://en.wikipedia.org/wiki/List_of_buzzwords Churn Rate Churn rate, when applied to a customer base, refers to the proportion […]

Continue reading »
0
Development, Thoughts

Rails relations

Posted on February 16, 2018 by Peter Andersson

problem You know when you want to select  records depending on the values of related records (like belongs_to fields) ? scenario class TradingSignal < ActiveRecord::Base […]

Continue reading »
0
Development, Ruby on Rails

Rails HATM (Has and belongs to many)

Posted on February 12, 2018 by Peter Andersson

Nested forms with HABTM and HasManyThrough Start with the models has_many :events # creates …… accepts_nested_attributes_for :events, :allow_destroy => true # creates…. attr_accessible :events_attributes # […]

Continue reading »
0
Development, Ruby on Rails

Running a script “later”

Posted on February 5, 2018 by Peter Andersson

You know how it is, you need to download a 3GB install kit, but don’t want to disturb the missuz by clogging all the bandwidth. […]

Continue reading »
0
Development, Linux, Network, Ruby on Rails

Från bloggen

AI Ajax Apache bash Development Docker Git Google Gradle Heroku HTML and CSS Imaging IOS Java Javascript Linux Math MIcroservices Microsoft MySQL Network Node OSX Palmemordet Patterns Photo PHP Python Raspberry Pi React Ruby Ruby on Rails Samba Spring Boot Tankar Thoughts Trading Uncategorized Video Visual Studio Code Vue Web Wordpress XCode
February 2018
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728  
« Jan   Mar »

Articles

Favourite Links

  • A Rock Solid Rails 5 API App with a React Frontend
  • Rails 5.1's form_with tag
  • Complex Rails forms
  • Rails is scalable

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Powered by WordPress and Momentous.