6 Aralık 2016 Salı

MacOs Friendly Intellij IDEA Shortcuts

Shortcuts help developers to be more productive and prevent distraction caused by mouse. Unfortunately, there are subtle shortcut differences between different platforms. Following Intellij IDEA shortcuts will increase productivity in MacOs environment:

VCS
Intellij IDEA does not provide preconfigured VCS shortcuts. To make it easy to remember, all shortcuts are assigned to ALT button and all shortcuts denote the first letter of assigned action (except Commit/Check In).

Alt+A                        Annotate
Alt+U                        Update
Alt+R                        Rollback
Alt+H                        History

Alt+C                        Commit/Check In
Alt+P                        Push

The reason why 'I' character is selected as shortcut of "Commit/Check In" is, because Intellij IDEA already used this character in "Commit Changes" dialog for "Commit/Check In" action .



Intellij IDEA already provides a shortcut for Push action which is SHIFT+COMMAND+K. This shortcut is not easy to remember. It is suggested to use ALT+P for Push action.

22 Haziran 2016 Çarşamba

Learn Docker

10 things to avoid in docker containers
http://developers.redhat.com/blog/2016/02/24/10-things-to-avoid-in-docker-containers

18 Haziran 2016 Cumartesi

Learn Git

Are you having trouble using Git? Don't worry, you are on the same side with Hitler:
Hitler uses git

Knowledge is Power: Getting out of trouble by understanding Git by Steve Smith
https://www.youtube.com/watch?v=sevc6668cQ0

You can view presentation slides here.

1 Kasım 2015 Pazar

LiPo Piller Hakkında

Drone ve uzaktan kumandalı arabalarda LiPo piller kullanılmaktadır. Bu piller çok hücreli piller olduğu için özel şarj üniteleri vardır. Bu yazıda, LiPo piller ve şarj üniteleriyle ilgili bazı   kaynaklar paylaşacağım.

Lithium Polymer Etiquette: A Comprehensive Guide to Working with LiPo
http://www.instructables.com/id/Lithium-Polymer-Etiquette/?ALLSTEPS

How to charge a lipo battery using a 4-button charger
https://www.youtube.com/watch?v=kvr-25yGeVk

What size mini quadcopter battery should you use?
https://www.youtube.com/watch?v=liB1SUlBQio

9 Eylül 2015 Çarşamba

Arduino Dokümanları

Bu yazıda, internette beğendiğim Arduino konulu çeşitli kaynakları paylaşacağım. Liste zorluk derecesine göre sıralanmıştır. Arduino'ya yeni başlayanların sırayı takip etmesini tavsiye ederim.

Turkcell Geleceği Yazanlar - Arduino Dünyası
https://gelecegiyazanlar.turkcell.com.tr/konu/arduino/egitim/arduino-104/arduino-ile-ethernet-kullanimi

Arduino Öğrenirken Yol Haritası - 1
http://arduinoturkiye.com/arduino-ogrenirken-yol-haritasi-1

Powering Arduino Uno with a Battery
http://www.instructables.com/id/Powering-Arduino-with-a-Battery

How Slow is Arduino?
https://www.youtube.com/watch?v=U7I0GkwW1yE

Complete Motor Guide for Robotics
http://www.instructables.com/id/Complete-Motor-Guide-for-Robotics

28BYJ-48 Stepper Motor and ULN2003 Driver Intro
https://www.youtube.com/watch?v=B86nqDRskVU

28 Kasım 2013 Perşembe

Top PhoneGap (Cordova) Plugins

In this list, I present most important phonegap plugins and how to install them to your project. Before going through this list, you should first have a look at How to Develop Phonegap Hello World Application
  1. Splash Screen. Run following command to add splash screen plugin into your existing project.

    cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
  2. Device API. Run following command to add device plugin into your existing project.

    cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Solve&Fix "Package name must look like" error in Phonegap 3

You may get "Package name must look like..." error if you create a phonegap 3 project as below:

cordova create ./hello-world HelloWorld
cordova platform add android

When you run above code, you get below error:

Checking Android requirements...
Creating android project...
[Error: An error occured during creation of android sub-project. 
Package name must look like: com.company.Name
]

You get error because you are missing --id and --name options. The correct way to add Android support into your Phonegap application would be as follows:

phonegap create ./hello-world --id com.example.hello --name HelloWorld
cd hello-world
cordova platform add android

24 Kasım 2013 Pazar

How to Create&Develop a Phonegap HelloWorld Project


  1. Install PhoneGap. You need NodeJs package manager installed.

    npm install -g cordova
  2. Create  a project named "HelloWorld" inside "phonegap-example" directory. Use "com.example.hello" root package.

    phonegap create phonegap-example --id com.example.hello --name HelloWorld
  3. Add android support

    
    cd phonegap-example
    
    cordova platform add android

  4. Build the project

    cordova build

  5. Run the project. You need Android Development SDK installed.

    cd ./platform/android/cordova
    
    ./run
    In case, you don't have an android emulator defined in your development environment, you may get following error:

    ERROR : No emulator images (avds) found, if you would like to create an  avd follow the instructions provided here:
     http://developer.android.com/tools/devices/index.html
     Or run 'android create avd --name <name> --target <targetID>' in on the command line.

16 Kasım 2013 Cumartesi

10 Kasım 2013 Pazar

19 Ekim 2013 Cumartesi

My First Open-Source Contribution Goes to Gwt-Bootstrap

I'm very proud to announce that I have made my first open-source contribution to gwt-bootstrap. 
gwt-bootstrap is a toolkit which enables using Twitter Bootstrap in GWT applications.  
You can see my contribution activity from following page:

https://github.com/gwtbootstrap/gwt-bootstrap/graphs/contributors

Follow me on github: https://github.com/hkarakose




20 Eylül 2013 Cuma

List of Foreign Keys in Mysql

Following sql shows list of foreing keys in Mysql. You may require this information for foreign key manipulations, such as dropping a foreign key.

use INFORMATION_SCHEMA;

select TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,
REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME from KEY_COLUMN_USAGE where
TABLE_NAME = '<table>';

You may require this information for foreign key manipulations, such as dropping a foreign key.

Resource: http://stackoverflow.com/questions/201621/how-do-i-see-all-foreign-keys-to-a-table-or-column 

1 Eylül 2013 Pazar

My First Open Source Contribution

I have just completed my first open-source contribution to gwt-bootstrap project. The code updates are merged to master branch!

https://github.com/gwtbootstrap/gwt-bootstrap/pull/425

This is my first contribution to a widely used and known project. Previously, I had published several open-source projects which are not active now.

Learn JBoss Forge

Video: Forge New Ground in Rapid Enterprise Software Development
http://www.youtube.com/watch?v=Clso5vtKu9k

Learn GWT


Login Security
https://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ: Describe how to log in, store data in a secure fashion in the server, stay logged in, make auto complete feautre

Advanced:
Best Practices For Architecting Your GWT App
http://www.google.com/intl/tr/events/io/2009/sessions/GoogleWebToolkitBestPractices.html: Describes history handling, event bus, MVP architecture, unit testing of GWT applications

Learn Bootstrap

29 Ağustos 2013 Perşembe

gwt-bootstrap Lazy Developer's Guide


  1. Add following dependency into your pom.xml:
    <dependency>
        <groupId>com.github.gwtbootstrap</groupId>
        <artifactId>gwt-bootstrap</artifactId>
        <version>2.2.1.0</version>
        <scope>provided</scope>
    </dependency>
  2. Add following repository into your pom.xml
     <repository>
         <id>sonatype</id>
         <url>http://oss.sonatype.org/content/repositories/snapshots</url>
         <snapshots><enabled>true</enabled></snapshots>
         <releases><enabled>false</enabled></releases>
     </repository>

  3. Run following maven command to download dependencies:

    mvn process-resources

  4. Add following module dependency to your *.gwt.xml file.

    <inherits name="com.github.gwtbootstrap.Bootstrap" />

  5. Add following script inside your module start page's HEAD section

    <head>

    <!-- before your module(*.nocache.js) loading -->

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!--[if IE 7]>
    <link rel="stylesheet" href="{your module name}/css/font-awesome-ie7.css">
    <![endif]-->


    <!-- your module(*.nocache.js) loading -->
    </head>

25 Ağustos 2013 Pazar

How to Bind Port 80 to Tomcat 7 in Ubuntu



Default tomcat installation uses 8080 port. This is not preferred way when you present your web application over a top-level domain. I needed this information for my new sites gamenism.com/game and onlineuml.net/modeler. Below I am describing how to bind port 80 to Tomcat 7.
  • Backup /var/lib/tomcat7/conf/server.xml
  • Open /var/lib/tomcat7/conf/server.xml for editing. Find the part beginning with "<Connector"
    As highlighted below, change the value of port attribute to 80.

    <Connector port="80" protocol="HTTP/1.1"    connectionTimeout="20000"   
        URIEncoding="UTF-8"
       
        redirectPort="8443" />
  • Backup /etc/default/tomcat7 file
  • Open /etc/default/tomcat7 file for editing. 
    • Find the line containing "AUTHBIND" property. This line should be commented. Uncomment it.
    • Set AUTHBIND property to YES. This is required to bind a port to a process which is less than 1023.

      AUTHBIND=yes
  • Restart tomcat 7

    sudo /etc/init.t/tomcat7 restart