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:
Scala Dotty Nedir?
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.
Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı
Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme - SCALA
Algoritma
Kelime Zinciri Algoritması:
Angularjs parsedNgModelAssign is not a function?
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:
Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı
Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme - SCALA
Algoritma
Kelime Zinciri Algoritması:
Kelime Zinciri Algoritmasıyla Türkçe Metin Özetleme | Online otomatik metin özetleme | Metin özetleme programı | Özet Çıkarma Programı
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.
How to Fix 504 Gateway Timeout using 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.
Finatra default JacksonModule settings?
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
.
Moving from (spring mvc,tomcat,postgresql) to (finatra,mongodb)
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.
Scala does not read file from resources folder after compiling
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()