Showing posts with label Scala. Show all posts
Showing posts with label Scala. Show all posts

Parallel programming

https://www.coursera.org/learn/parprog1/home/welcome

SecureSocial and Play-slick integration

// does not work
https://github.com/jamesward/play2.3-scala2.11-securesocial3-slick2.1-h2-bootstrap3-sample

// https://github.com/t2v/play2-auth
https://github.com/raisercostin/securesocial-slick-bootstrap3-sample#master


http://blog.lunatech.com/2013/07/04/play-securesocial-slick

https://github.com/jaliss/securesocial/issues/193

https://stackoverflow.com/questions/23387326/passing-silck-2-0-implicit-session-in-elegant-way

https://github.com/lunatech-labs/lunatech-securesocial-poc

https://stackoverflow.com/questions/19780545/play-slick-with-securesocial-running-db-io-in-a-separate-thread-pool

https://stackoverflow.com/questions/19780545/play-slick-with-securesocial-running-db-io-in-a-separate-thread-pool

https://github.com/playframework/play-slick/issues/105

https://groups.google.com/forum/#!topic/securesocial/qaOzt2IeIQU

https://github.com/lunatech-labs/lunatech-securesocial-poc

Play Spark Scala TypeScript

sbt-typescript notes

https://github.com/bmc/pwguard/blob/master/build.sbt

https://angular.io/docs/js/latest/quickstart.html

https://github.com/knoldus/Play-Spark-Scala

Installing typesafe activator on osx

https://stackoverflow.com/questions/26771638/installing-typesafe-activator-on-osx

Secure Social

// important update
https://groups.google.com/forum/#!topic/securesocial/XxGidexMjtk

https://github.com/jaliss/securesocial

https://github.com/spass/spass#master

http://eng.kifi.com/mobile-auth-with-play-and-securesocial/

https://stackoverflow.com/questions/23868797/expose-play-framework-rest-calls-secured-via-securesocial-to-mobile-app


ORM for Scala Play app

// Solution
https://github.com/Pivopil/play
https://github.com/strongtyped/active-slick-activator-template/blob/master/app/components/Schema.scala
http://slick.typesafe.com/doc/2.1.0/orm-to-slick.html
http://stackoverflow.com/questions/15408489/how-to-execute-ddl-only-when-tables-dont-exist

// Option reading

http://stackoverflow.com/questions/9857907/access-play-2-0-configuration-variables-in-application-conf

http://stackoverflow.com/questions/23984334/play-framework-how-to-deal-with-api-keys

https://github.com/strongtyped/active-slick-activator-template/blob/master/app/controllers/PlayerController.scala

http://blog.knoldus.com/2015/03/03/play-with-reactive-slick-a-simple-crud-application-in-play-framework-using-slick-3-0/

https://github.com/gupta-himanshu/play-reactive-slick/tree/master/app/models

https://www.typesafe.com/activator/template/hello-slick-3.0

https://github.com/typesafehub/activator-hello-slick

http://slick.typesafe.com/doc/3.0.0/introduction.html#what-is-slick

// Anorm

https://www.playframework.com/modules/scala-0.9/guide2

http://www.jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku

http://stackoverflow.com/questions/10488950/play2-does-not-find-my-implicit-reads-or-format-for-json

Restful api using play

// Readings

http://code.hootsuite.com/our-experience-with-building-a-restful-data-api-using-play/

http://stackoverflow.com/questions/671118/what-exactly-is-restful-programming

https://s3.amazonaws.com/tfpearsonecollege/bestpractices/RESTful+Best+Practices.pdf

http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios

http://stackoverflow.com/questions/6986014/rest-based-services-in-back-end


// Play + REST Step by step
// init play project
http://code.tutsplus.com/articles/building-ribbit-in-scala--net-34302

// Routing
https://www.playframework.com/documentation/2.1.1/ScalaRouting
http://stackoverflow.com/questions/11207503/does-play-framework-support-nested-routes-like-rails

// Results
https://www.playframework.com/documentation/2.1.1/ScalaResults

// Json
https://www.playframework.com/documentation/2.1.1/ScalaJson

// MySQL
https://www.playframework.com/documentation/2.1.1/ScalaAnorm

http://stackoverflow.com/questions/10007029/steps-needed-to-use-mysql-database-with-play-framework-2-0

http://stackoverflow.com/questions/18834723/you-do-not-have-an-implicit-application-in-scope-playframework-with-oracle

// jdbc-resultset
http://stackoverflow.com/questions/2102662/scala-exposing-a-jdbc-resultset-through-a-generator-iterable

http://stackoverflow.com/questions/5588361/scala-resultset-translation-into-a-different-kinds-of-multimaps

http://stackoverflow.com/questions/4927260/filling-a-scala-immutable-map-from-a-database-table

// sample
https://github.com/Pivopil/play

Security for Scala Play

// Readings

http://stackoverflow.com/questions/11816353/java-play-2-user-management-with-cookies/11816859#11816859
http://stackoverflow.com/questions/29491703/play-framework-rest-with-basic-authentication-and-ssl

// Examples

https://www.playframework.com/documentation/2.0.4/ScalaSecurity
https://github.com/jamesward/play-rest-security/
https://github.com/schaloner/deadbolt-2
https://github.com/t2v/play2-auth
https://github.com/schaloner/deadbolt-2-scala-examples
https://github.com/orefalo/play2-authenticitytoken
http://nickcarroll.me/2013/02/11/protect-your-play-application-with-the-csrf-filter/
http://securesocial.ws/

Deploying Scala Play app to AWS EC2

http://www.cakesolutions.net/teamblogs/2014/01/28/deploying-scala-akka-based-applications-to-amazon-cloud

https://www.playframework.com/documentation/2.1.0/HTTPServer

https://stevenwilliamalexander.wordpress.com/2012/06/10/amazon-ec2-mongo-play-scala-instance-setup-gu/


AngularJS + Scala Play! (examples)

https://github.com/lashford/modern-web-template#master

https://github.com/typesafehub/angular-seed-play#master

https://github.com/matthiasn/sse-chat/
http://matthiasnehlsen.com/blog/2013/06/23/angularjs-and-play-framework/

https://stackoverflow.com/questions/18790544/scala-playframework-and-angular-js-too-much-effort-in-terms-of-duplication-and

https://github.com/angyjoe/eventual

https://github.com/pvillega/play2demo-jasmine/blob/master/app/assets/javascripts/todo.js
http://www.toptal.com/java/building-modern-web-applications-with-angularjs-and-play-framework

JSON with Play

http://mandubian.com/2012/09/08/unveiling-play-2-dot-1-json-api-part1-jspath-reads-combinators/
http://mandubian.com/2012/10/01/unveiling-play-2-dot-1-json-api-part2-writes-format-combinators/
http://mandubian.com/2012/10/29/unveiling-play-2-dot-1-json-api-part3-json-transformers/

Securing Json server

https://stormpath.com/blog/secure-your-rest-api-right-way/

http://stackoverflow.com/questions/15385427/securing-json-services

http://stackoverflow.com/questions/395592/json-security-best-practices

http://stackoverflow.com/questions/846752/simple-secure-api-authentication-system

https://auth0.com/blog/2014/12/02/using-json-web-tokens-as-api-keys/


http://java.dzone.com/articles/secure-json-services-play

! https://tersesystems.com/2013/04/20/play-in-practice/

http://www.javacodegeeks.com/2012/04/dzoneprotect-rest-service-using-hmac.html

https://www.google.com.ua/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=scala+play+security+for+json+server+best+practice+








Operator overloading

Operator overloading

http://joeygibson.com/2009/05/30/scala-gets-operator-overloading-right/

Exercises from Horstmann's Scala for the Impatient

Exercises

https://github.com/calinburloiu/Scala-for-the-Impatient--Exercises/tree/master/src/exercises