root > Coding Blog, Programming, Scala, Software Developer, Finland

linux, ubuntu, software, helsinki


  • Home

  • Categories

  • Archives

  • Tags

  • Search

Get a free alert when your website is down!

Posted on 2019-02-16 | In server , web site , optimization ,

I have been struggling with weird server problems for a while and sometimes I couldn’t notice my server is down. Mostly I notice them when I check my Google Analytics reports because the visitor numbers drops quickly. Finally, I found a free service which checks your web site every 10 minute and sends you a free alert if it is down. They have some pro versions too but free version is neough for me because I only want to get alert when it is down. After sign-up I waited a day, and tested the service, so my server was down for ten minutes, and I got the mail:

Read more »

Scala Dotty Nedir?

Posted on 2018-08-02 | In Scala , Scala 3 , Software Development , Coding , Dotty ,

DOT açılımı Dependent Object Types (DOT) yani Bağımlı Nesne Tipleri. Scala 2 için scalac derleycisini kullanırken, Scala 3 ile birlikte artık dotc derleyicisini kullanacağız. DOT hakkında daha fazla bilgi için bu dokümanı okuyabilirsiniz.

Read more »

Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı

Posted on 2018-07-26 | In Türkçe metin özetleme , Software Development , Coding , Scala ,

Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme - SCALA


Algoritma

Kelime Zinciri Algoritması:

Read more »

Angularjs parsedNgModelAssign is not a function?

Posted on 2018-07-01 | In Angular , Software Development , Coding , Javascript ,

It is one of the basic problem, but if you search in google probably you will find a lot of solutions which is not related. When you have input field with getterSetter, and you didn’t give the function name correctly then you will get this error:

TypeError: parsedNgModelAssign is not a function
    at NgModelController.$$setOptions.ngModelSet (angular.js:20414)
    at NgModelController.$$writeModelToScope (angular.js:20863)
    at writeToModelIfNeeded (angular.js:20857)
    at angular.js:20851

Example field:

Read more »

Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı

Posted on 2018-07-01 | In Türkçe metin özetleme , Software Development , Coding , Scala ,

Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme - SCALA


Algoritma

Kelime Zinciri Algoritması:

Read more »

Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı

Posted on 2018-06-15 | In Türkçe metin özetleme , Software Development , Coding , Scala ,

Uzun bir aradan sonra nihayet fırsat bulup projeye geri dönüş yapabildim. Programın ilk sürümü bitirme projesi olduğu için biraz karışık ve aceleyle yazıldı. Büyüzden tüm projeyi scala dilinde yeniden yazdım. Hem daha anlaşılır hem daha kısa ve öz oldu. Spring MVC, Tomcat ve Postgresql üçlüsünü bırakarak , Finatra + Mongodb ikilisine geçtim. Şimdi ayrıca docker-compose ile özetleme servisini hızlıca kurabilirsiniz.

Read more »

How to Fix 504 Gateway Timeout using Nginx!

Posted on 2018-06-08 | In scala , programming , server , nginx ,

Currently I am trying to use my summarizer service with my orangepi. I was getting 504 Gateway Timeout errors all the time, because orangepi is slow for calculations. I thought it is related with Finatra , but found out it was Nginx. It has default 75 seconds. For fixing it, you have to create ne file and then restart nginx service.

Read more »

Finatra default JacksonModule settings?

Posted on 2018-06-08 | In scala , programming ,

Currently I am moving from spring mvc + tomcat to finatra. I had a weird problem with my api. My api post request expects contextOfText: String , but when I make request , it returns error and expects context_of_text. I have never such problem before. Couldn’t know how to search for this problem.. Anyway my work mate told that might be serializer problem. After some research I found some custom jackson module for finatra. Tried to see if it has any effects and fixed with first try. It seems default FinatraJacksonModule is using SNAKE_CASE, therefore it converts variable names. Here I changed it to CamelCasePropertyNamingStrategy.

Read more »

Moving from (spring mvc,tomcat,postgresql) to (finatra,mongodb)

Posted on 2018-06-07 | In scala , programming , finatra ,

I was thinking to rewrite my summarizer app for a while. But couldn’t decide what to use, should I move to play mvc or sth else.. There was a Scala meeting in Helsinki this year, so I joined to meeting and first time I heard about Finatra. Finatra is an HTTP API framework built on top of Finagle. Twitter, Tumblr vs. some big companies use it and develop same time. The project is very active! The documentation is well written. You can easily start to write a sample app. So after some tryings I decided to use Finatra for my service. And about database, basically I store text documents and summaries, so it was easy decision to use Mongodb.

Read more »

Scala does not read file from resources folder after compiling

Posted on 2018-05-31 | In scala , programming ,

While running my app with Intellij Idea , I had no problems with resource folder. It was reading files and passing tests. It was implemented like this:

val resourcesPath = getClass.getResource("/lexical/stopWords.csv").getPath
val source = fromFile(resourcesPath)
val text = try source.mkString finally source.close()
Read more »
1 2 … 21
teaddict

teaddict

203 posts
32 categories
640 tags
RSS
GitHub
© 2019 teaddict