Skip to content

Instantly share code, notes, and snippets.

View talayhan's full-sized avatar
💤
Sleeping

Samet Talayhan talayhan

💤
Sleeping
View GitHub Profile
@talayhan
talayhan / .Renviron
Last active August 29, 2015 14:17
R stuff
R_LIBS_USER="~/R"
@talayhan
talayhan / priority_inversion_donation.md
Last active September 2, 2015 07:27
Priority Inversion ve Donation Nedir ?

Priority Inversion ve Donation

Priorty Scheduling

Priorty scheduling schedule işleminde bir sonraki process veya thread den hangisinin CPU yu kullanacağının karar verilmesidir. Priority bu genelde integer olan bir değer, her thread e önem sırasına göre atanır. Çalışmaya hazır olan yani READY STATE de bulunan threadlerden en yüksek priority e sahip olan seçilerek çalıştırılır. Buradaki mantık en yüksek öneme sahip olan thread işini ilk yapmalı, daha düşük öneme sahip threadler bekleyebilir. Genelde threadler prioritylerine göre sıralı bir queue veri yapısında tutulmaktadır böylece hep bir sonraki thread en yüksek öneme sahip thread olarak tutulmaktadır.

@talayhan
talayhan / hcs12_Notes_Part1.md
Last active August 29, 2015 14:16
HCS12 Microcontroller Notes Part1

HCS12 Microcontroller Notes

NOT: Bu döküman HCS12 1. Labı için oluşturulmumş çalışma notları, en sonda lab soruları ve cevapları bulunmaktadır. Dili yarı Türkçe, yarı Azmanca olucak şekilde kullanılmaya gayret gösterilmiştir.

Memory Types

Ram: Random Access Memory (can read and write)

@talayhan
talayhan / gist:0eb1c41a3a31c0508a0d
Created February 23, 2015 10:11
Android - How to get video/audio file details using MediaMetadataRetriever class ?
package net.talayhan.android.vibeproject;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
@talayhan
talayhan / configOpencv.md
Last active August 29, 2015 14:08
OpenCV sample code for testing CodeBlocks

Configuring CodeBlocks 12.11 IDE for use with OpenCV 2.4.3

I have gone through so much pain trying to get CodeBlocks being able to properly use the OpenCV libraries on my system so I decided to write a little something about it.

I have Ubuntu 12.04 LTS with CodeBlocks 12.11 (latest stable) and OpenCV 2.4.3 libraries. Follow these steps to setup CodeBlocks IDE to use OpenCV 2.4.3.

Make sure that you have OpenCV installed on your system. There is an excellent guide to follow here that will walk you through the process. You can test your installation by following this guide here.

You can find out where OpenCV and its libraries are installed on your system by using these commands in bash: