Browsing Category

Java


VIEW POST

View more
Genel Java

Project Termination

By
on
April 26, 2021

Hello guys, I need to explain about endless-hope project.
I have to finish this project because I can't continue also I have to remove all files and Git repository.
When I started this project I didn't have any plan, I was thinking it will be okay but doesn't.

Now, I should create...


VIEW POST

View more
InMemory Java

Consumer Project with RabbitMQ

By
on
February 28, 2021

Today we will create a new project (Consumer) and write to log messages coming from RabbitMQ (Producer).
I created a new project in EndlessHope, its name is Consumer and I did default config like Producer.

We always need a connection since we can get a message anytime. Therefore, we do...


VIEW POST

View more
Genel InMemory Java

Project Structure and Hello World With RabbitMQ

By
on
February 27, 2021

I want to show you my new modular project structure and how to send a message with RabbitMQ.
My new project’s name is EndlessHope, it has a modular structure because we need a regular project structure.
We will create a few micro-projects and API.
Firstly, we need a Core project. The Core...


VIEW POST

View more
Java MongoDB RabbitMQ

New Targets

By
on
February 19, 2021

What do I mean by New Targets?
I have had a lot of targets since I was 18 years old.
I could achieve some of them, and I want to achieve the other targets too.

What are my New Targets?
- to be better at English.
- to write an English blog once a...


VIEW POST

View more
RabbitMQ

RabbitMQ Introduction

By
on
February 14, 2021

Hi everyone, I hope you are doing well.We will start to learn RabbitMQ.We will begin with an introduction and I will try to explain the basic definitions.

What is RabbitMQ?RabbitMQ is a message broker. You can imagine it like a post office. When you want to put a post,...


VIEW POST

View more
Java

MacOS Big Sur Güncellemesi ile Netbeans açılmaması

By
on
November 24, 2020

Selamlar herkese, 4-5 ay önce bir MacBookPro aldım ve işlerin yoğunluğundan henüz geçiş yapamıştım, 10 gün önce kadar Maven Netbeans Tomcat SVN derken tam olarak kendi işlerimde aktif olarak kullanmaya başlamıştım ki Mac Big Sur'u yayınladı.Yayınlandıktan kısa süre sonra geçiş yaptım ancak ufak çaplı bir krize neden oldu kendi...


VIEW POST

View more
Java Notlarım

Google Guava Örneği

By
on
August 17, 2020

Selamlar herkese,Son projemizde öğrendiğim ve oldukça hoşuma giden bir kütüphanenin kullanımını göstermek istiyorum.

Guava RangeMap nedir?En basit anlamıyla, sizi uzun uzun if-else bloklarından kurtarır, yani elinizde 1 tane sayı var ve hangi aralıkta olduğunu bulmak istiyorsunuz, bunu çok basit bir şekilde Guava ile yapabilirsiniz.

Bu yazıyı eklediğim sıralardaki versiyonu şu şekilde;

...

java ignite kurulum


VIEW POST

View more
InMemory Java SQL

Ignite ?

By
on
June 24, 2020

Son zamanlarda, projeler büyüdükçe yalızca DB yeterli olmuyor, bazen sürekli sorguladığınız ve değişmeyen dataları sürekli DB'ye sormak çokta mantıklı değil. Örnek, işlem tiplerini çekiyorsunuz ama günde belki haftada bir kaç defa geliyor işlem tipi, sizin bunu sürekli DB'den çekmeniz çok iyi olmaz performans açısından.InMemory birşeye ihtiyacınız olabilir. Bunu bir...


VIEW POST

View more
Java

Java Trim

By
on
December 27, 2016

Database'e bir String ifade kaydetmek istiyorsunuz.
Ama bunun başındaki ve sonundaki boşlukları almanız gerekiyor.
Bunun Java'da basit bir şekilde çözebilirsiniz.
Örnek olarak;

 

String webSite= new String(" sercantogrul.com ");
System.out.print("Web Sitesi :" );
System.out.println(webSite.trim() );

Ekran Çıktısı olarak şunu alırız;

Web Sitesi :sercantogrul.com


VIEW POST

View more
Java Notlarım

Java Timestamp / Date Yesterday

By
on
July 14, 2016

İki tarih arası ve/veya dünün tarihi ile işlem yaptıracaksanız eğer ve DB'de tarihi timestamp without time zone tutuyorsanız aşağıdaki işlemi yaparak dünün tarihini alıp karşılaştırma yapabilirsiniz.

Normal şartlarda ekran'a yazdıracaksanız işiniz kolay aslında.

DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, -1);
System.out.println("Dünün tarihi: " + cal.getTime());

Ancak burada String değer dönüyor ve...

Sercan Toğrul
Java Developer - Kyrenia

I'm a java developer. I'm from Turkey but I live in Cyprus. You can see my skills and my notes here. Do you have a question you can send me email and I will answer!