ercanerciyes.com

Home of Ercan

Dosya adlarında boşluk (space) karakterlerini yok etmek – Linux/Mac OS

without comments

Geçen gün ihtiyaç duyduğum küçük bir bash komutunu paylaşmak istedim. Bir klasördeki tüm dosyaların isimlerinde bulunan boşluk karakterlerini yok etmek için şu komutu kullanabilirsiniz. Ben şimdilik bunu Ubuntu ve Mac OS altında denedim..

$ for i in *.jpg; do mv "$i" "${i// /}"; done;


Written by ercan

January 6th, 2012 at 10:03 pm

Posted in macos,techie

How to use the command line to resize images on MacOS X

with one comment

If you’re using Mac and need to perform a batch “image resize” process here’s the solution for you..

There is a utility called “sips”. Sips is a “scriptable image processing system”. Below command is used for resizing images automatically in a specified order. -Z is used for resampling images so height and width aren’t greater than specified size. 60 is the compression level. You can also rotate your images by using -R option followed by the angle.

$ cd /to/directory/
$ for i in `ls *.JPG`; do sips $i --out outFolder/$i -Z 1024 -s formatOptions 60; done;




Written by ercan

April 16th, 2011 at 12:26 am

Posted in bash,macos,techie

How awesome is your idea?

without comments

Well, if you believe your dream-mission is something very very awesome, then The Awesome Foundation is here to help, really!.. They basically help you with the cash needed to make your great, super awesome idea happen. No strings are attached, just submit your idea and wait for it. They of course have some certain criteria in order to grand the amount to you. Read the FAQ..

Some winners including the builders of giant public hammocks and a science lab for kids. So, go for it!

http://awesomefoundation.org

[ Image: toothpastefordinner.com, august 2010 ]

Written by ercan

December 10th, 2010 at 9:07 pm

Posted in creative,money,News,Other

Dress for tech!

without comments

It’d be cool to wear it :-)

You can buy it here.

Continue Reading » » » »

Written by ercan

November 5th, 2010 at 3:09 pm

Posted in geek

A documentary on Steve Jobs

without comments

Thomas Edison, Graham Bell…They are just one of the most influential inventors of all time. If I was asked about who’d be the ones in our time, I’d probably came up with a few names from my list. I am quite sure that one of them would be Steve Jobs. I guess he simply made me think “Find an easy way to present new ideas.” throughout my life.

From a garage company to multi-billion international corporation

What he did, simply changed the way we interact with computers, mobile phones and probably the whole industry connected to it. I recommend you this below documentary about Steve Jobs to watch.

[Update] An example how these devices got into our lives: An iPad becomes an effective communication tool for people who live with spinal muscular atrophy Type 1, a motor-neuron disease that that leaves him largely paralyzed, mute, and prone to infection. They still able to read, though, and write and do math. And with the iPad, it’s now possible to do all of those things with much more ease than ever before. Read the full story here.

If you’re interested in more about “Inside Steve’s Brain” you should read this book..


Bloomberg Game Changers: Steve Jobs from Afonso Duarte on Vimeo.

Written by ercan

November 5th, 2010 at 2:31 pm

Low-cost eye tracking apparatus for helping ALS patients to draw

without comments

Folks at Free Art and Technology (FAT), OpenFrameworks, the Graffiti Research Lab, and The Ebeling Group communities teamed together to create a “low-cost eye tracking apparatus” which helps ALS (Amyotrophic lateral sclerosis) patients to draw anything by using their eyes.
The overall project is open source, so anybody can contribute or built one for someone.

I like the way how people get together and create something very meaningful by using technology. You can donate to this project by following this link here..





Written by ercan

November 5th, 2010 at 1:58 pm

Posted in creative,open source

Curiosity only kills cats

without comments

Today I watched a short video from founders of lynda.com . The way things are expressed in a neat way; by summarizing a model of entrepreneur-al thinking. My favorite one? of course #9.

Have a good weekend ahead!

-e

Written by ercan

November 5th, 2010 at 1:39 pm

Posted in Inspirational

Updates

without comments

Long time, no see :-) I’ve been meaning to bootstrap our new application, Nasil.TV, which keeps me, of course, pretty busy. I will be able to share more details afterwards.

Today, I’d like to share a few words which is the real motive of this post. I’ve been reading Tim Sanders these days and found the following very meaningful and would like to share with you :

Success in the future will be based on the fuzzy intangibles: the way you speak as a leader, the culture you nurture, the process for managing information you set up for your people, the partnerships you form around technology’s opportunities and challenges.

Written by ercan

July 12th, 2010 at 11:12 pm

Posted in Uncategorized

Bootstrap Discipline

without comments

As indicated under “about me” section of this blog, I’ve been trying to run three operations: Indefia, Dingbee and Travelusta. Since Travelusta has not born yet, so most of my daily operations go for Indefia and Dingbee. We stepped into our start-up journey with Indefia and in this post I’d like to mention little about how difficult, yet different, it is being a bootstrapped startup.

With the introduction of extra unknowns to the equation, everything that you’re trying to accomplish automatically becomes more complex than any another startup.

First of all Indefia is a bootstrap; we had no investment at all, and I had little bit savings to pay my bills, so it was self-funded from the beginning. This is not everybody would like to try at first, people tend to be in the safe sides of their lives. Especially it gets more chronic if you’re just graduated and planning your future; career, better standards, bigger house, faster car, a dream holiday, a family..etc.

There are many advantages of being a bootstrap, because you learn your lessons of how to live very inexpensively, how to negotiate in business, control your budget.etc

Continue Reading » » » »

Written by ercan

August 31st, 2009 at 11:11 pm

Check whether your server is connected to Internet

without comments

I was thinking for ways to understand whether one of my servers’ internet connection is good or not. So I wrote a tiny script to check whether the connection is good or not. If the connection is broken, it sends a SNMP trap and keeps the activity on a log file. Here’s the script:

#!/bin/sh

TCP_HOST=www.google.com
MIBFILE=/usr/share/snmp/mibs/MY-MIB.txt
LOGFILE=/opt/iapps/log/snmp.log
SNMPHOST=10.1.1.2
OID=.1.3.6.1.4.1.2023.4.0.3

## Internet connection checking
ping -q -w 1 -c 1 ${TCP_HOST} > /dev/null && RES=1 || RES=0
if [ "$RES" -eq 0 ]; then

    echo “$(date) Alert: Internet connection is broken on server $(hostname)” >> $LOGFILE
    /usr/bin/snmptrap -v2c -c public -m $MIBFILE -Of -Lo $SNMPHOST 100 $OID s “Alert: Internet connection is broken”

fi

Written by ercan

August 3rd, 2009 at 10:51 am

Posted in Uncategorized