Emre.xyz

en

For instance, you need to write a search page for your last project, and it is not big enough to use an external search engine. Still, you want to use some powerful text searching features. You are brilliant if you preferred PostgreSQL as your database. Because PostgreSQL has very, very powerful search capabilities. I want to share some of them with you.

Read more...

You might want to build your Haskell application with #Nix even if you did start with #Stack.

#Stack has support for building with #Nix. You need to add nix.enable: true to your stack.yaml file.

Read more...

You need to use a Voter for workflow entity for managing access policies when you use the Workflow component. Workflow component supports access policies with guard option, but the documentation won't point out how to get the subject variable for a voter class.

Read more...

Composer is an installer and a package management tool. So please stop writing build scripts for Composer, building anything inside your package folder.

Last few days, I try to deploy a Symfony project with Nixops to Google Cloud. I found the composer2nix package after some research.

Read more...

Nixos is a Linux distro working in nix ecosystem.

NixOS is a GNU/Linux distribution that aims to improve the state of the art in system configuration management.

Read more...

I didn't know it is possible to enable vim mode, in bash before. I learned today and this feature is awesome.

You can enable vim mode in the bash with only change a parameter in your .bashrc file, like that.

set -o vi

That's it. You can use bash with vim strokes.

#tips #vim #en #bash

You can get file path in vim with % (percent) symbol. Sometimes you need to run a command with the current file path, for example git add filepath or sh filepath.

You can add the current file to git with this command in vim:

:!git add %

or you can run any file with this command:

:!%:p

For example, you write a bash script and saved it. But you don't want to close vim or you don't want to go to another terminal screen. Just you need to write :!%:p and vim run the file for you.

#tips #en #vim #git

Sometimes you get an error like that:

container extension liip_imagine not registered

You double-checked all configurations and you are absolutely sure nothing is wrong.

But code not works, why?

Because Php can't convert i to I if os language is not en. Your code searches Liipİmagine and can't find that. Change os's lang code to en_US.UTF-8 for fix that.

Or add this line to .bashrc or .profile file.

export LANG=en_US.UTF-8

bb.

#errors #php #debug #en

Today, we adopt a 3 legged cat for the office. Its name is Rosalind. We are working on some science projects. We gave its name from Rosalind Franklin.

Rosalind Franklin is the owner of the Photo 51 of DNA if you don't hear before. Photo 51 is a milestone for biology. You can read about that in Wikipedia if you are curious.

Rosalind :)

View this post on Instagram

Ofisimizin gülü #rosalind :) ziyarete bekleriz.

A post shared by emre ッ (@delirehberi) on

#cat #office #en

Hi, kats;

I want to talk about my morning routine. I try to keep this routine for 5 weeks and I want to stuck with this routine.

I wake up at approximately 06:00 am every morning. I try to be as consistent as possible with this because it helps I stay motivated.

Once I'm up, the first thing I do is wash my face and I feed my cats (Tedi and Turgut). I clean the cat litter if my partner hasn't.

Then I check my emails and take notes if any further subject for looking after.

Sometimes I do a quick breakfast, sometimes we do Turkish style breakfast with my partner if not exists an urgent problem in the office.

Then I'm going to the door out and go to the office. I filter a morning coffee when I arrive in the office.

And the new day, let's start to work out.

-emre

#en #me