How to Hard Resize instead of FastResize at DigitalOceans And Pricing

“FastResize” doesn’t affect disk size. The billing is geared towards your RAM and CPU usage, so your server will be at 1GB of RAM will cost you $10/month.

To accomplish a disk resize, the only option we have to do that currently requires a lot of downtime, but you can do it any time.

  1. create a snapshot of the old server 
  2. (optional, recommended) in the same region create a test server with the desired from the snapshot to verify it works, then delete test server.
  3. delete old server (this is why step 2 is a good idea!).
  4. in the same region, create “new server” from snapshot with the desired size. its IP will be almost always be the IP released by the delete action in step 3.
0 notes

Some Problems and Solutions About MongoDB

First of all, read this lines before starting to use MongoDB on your server.

32-bit MongoDB processes are limited to about 2 gb of data.  This has come as a surprise to a lot of people who are used to not having to worry about that.  The reason for this is that the MongoDB storage engine uses memory-mapped files for performance.

    By not supporting more than 2gb on 32-bit, we’ve been able to keep our code much simpler and cleaner.  This greatly reduces the number of bugs, and reduces the time that we need to release a 1.0 product. The world is moving toward all 64-bit very quickly.  Right now there aren’t too many people for whom 64-bit is a problem, and in the long term, we think this will be a non-issue.

    Source : http://blog.mongodb.org/post/137788967/32-bit-limitations



After that, you get an error as “Failed to connect to: localhost:27017: Previous connection attempts failed, server blacklisted” while you are working to start MongoDB. Solution is running the following lines on your server :

    sudo rm /var/lib/mongodb/mongod.lock
    sudo -u mongodb mongod -f /etc/mongodb.conf —repair
    sudo start mongodb
    sudo status mongodb
0 notes

Helios Installition on Ubuntu 12.04 

Helios is an open-source mobile backend framework. I try to talk about how to install helios framework on Ubuntu 12.04 server.

First of all, you should install git on your system. `sudo apt-get install git`

After that, you should control your ruby version with `ruby -v`. If you have ruby 1.9.x, you don’t need to do anything. ıf you don’t have, you must upgrade or install ruby 1.9.x to your system with the following instructions. After that, you should install Postgresql 9.1. I followed the these instruction to install postgresql.

Now, Helios Framework requirements was installed. You can use `gem install helios` to install helios framework. If you experience an error as `gem files will remain installed nokogiri in for inspection`. You can use this and this thread to solve it.

You must be carefull about postgresql createdb action. You will use your username and database name in your `.env` file of your project. You can refer to this link to change your `.env` file.

0 notes

Some mail services to use your project

I use mailjet and postmark and both of the is good. I will try to use mailgun the following days. I guess, it is good. Some word from their websites and their links.

Mailgun is a set of powerful APIs that allow you to send, receive and track email effortlessly. - http://www.mailgun.com/

Postmark removes the headaches of delivering and parsing transactional email for webapps with minimal setup time and zero maintenance. - https://postmarkapp.com/

Mailjet is a real-time Cloud Emailing platform: scalable, agile and flexible! - https://www.mailjet.com/

If you want to suggest a service, write a comment me. Thank you.

0 notes

Library Class of Memcache for Opencart

I wrote a class for opencart e-commerce system. You should create a mcache.php file on system/library folder of opencart to use this class and copy the source to file. After that, you should add following codes to your index.php file

$mcache = new Mcache();
$registry->set(‘cache’, $mcache);

instead of

$cache = new Cache();
$registry->set(‘cache’, $cache);

Or, you can register to `mcache` key as an alternative cache library to keep older cache library like this:

$mcache = new Mcache();
$registry->set(‘mcache’, $mcache);

You should use the following codes when you use memcache cache system : 

$this->mcache->set(‘key’, ‘value’);

Source Code:

https://gist.github.com/hkulekci/5553902

0 notes

Xcode Crashed after Removed default Python on MacOSX 10.8.3

I had a error when build an app. This error occurred firstly after remove all python binaries from my MacOSX 10.8.3. I installed python via macport. And Xcode build action is crashed.

Solution is simple. Link your current python path to /Library/Frameworks/Python.framework/Versions/ path as “2.7”. Because Xcode use Python 2.7 as default.

$ cd /Library/Frameworks/Python.framework/Versions/
$ sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/ 2.7

0 notes

Some links about Python

Setting Up a Mac for Python Development - http://jakevdp.github.io/blog/2013/02/02/setting-up-a-mac-for-python-development/

Fix “ValueError: unknown locale: UTF-8″ under Mac OS X 10.7 – Lion - http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/

0 notes

Clean install for python on Mac OSX

First of all, i read this response on stackoverflow. And apply all instructions. Remove all version of the python frameworks. After that, i download python from its website. That’s all. Python was work. I encounter with a problem on pip. YOu can find solution on my gist about it.

0 notes

#notetomyself

Few would call a well-designed nuclear power plant control panel beautiful, but if it provides the right interface and the right controls in the right places, the operator might consider it a great product.

0 notes

Git revert back to a specific commit

First of all, you reset your repo with following lines:

git reset --hard 4a155e5

After that, you should push your HEAD.

git push --force origin master

After that, your other clients should pull your last head of repo from git server.

git fetch origin master
git reset --hard FETCH_HEAD
git clean -df

That’s all.

Older Related Post:

http://scanf.info/post/37907330415/how-do-i-reset-revert-a-specific-file-to-a-specific

0 notes

Reklam Vermeden Önce

Reklam vermek için o kadar çok mecra oluşuyor ki, reklam vermeden önce girişimcilerin dikkat edilmesi gereken konulara kısaca değinmek gerekiyor. Örneğin internet ortamında Google, Facebook, Linkedin, Twitter, StumbleUpon, … diye giden bir liste. Televizyon reklamları, gazete, dergi reklamlar,… diye giden bir liste daha. Bu kadar reklam verebileceğimiz ortam varken bir lokantaya gittiğimizde menu ne kadar kabarıksa o kadar zor karar verdiğimiz gibi burada da hangisi ile reklam kampanyası düzenlesem diye düşünüyoruz haliyle. Bu yazıda kendi yaşadığım ya da çevremde reklam verenlerin yaşadığı sıkıntılar ve iyi yönlerden bahsetmeye çalışacağım.

İlk olarak bende hedef kitlenize uygun platformu seçmelisiniz. Yani menüyü biraz daraltalım. Bu aşamada Facebook’da ya da Google’da her ne kadar reklamı göstereceğiniz kitleyi daraltabilseniz de. Yine de B2B bir servisiniz varsa bunun için bence en iyi yer Linkedin olabilir. Bussiness ile uğraşan herkes orada olduğunu düşünüyorum. Bunun dışında hedef kitlenizde dinamik teknolojiyi takip eden gençler varsa Facebook ve Twitter uygun olabilir. Bunun gibi hedef kitlenize göre menüyü daraltın.

Diğer taraftan reklam verdiğinizde uygulamanızda da buna hazırlıklı olmalısınız. Kullanıcılar reklam üzerinden geldiğinde onlara özel bir indirim yapacaksanız buna hazırlanmalısınız. İlle indirim ya da birşey de yapmasanız bile kullanıcı geldiğinde bir path izleyerek sitenizde gezinmesini sağlayabilirsiniz. Örneğin bir e-ticaret sitesine reklam aracılığıyla gelen bir kullanıcıya geldiği sayfada indirimli ürünlerin olduğu bir sayfa hazırlayarak bu indirimli ürünlere yönlendirebilir ve oradan da diğer ürünlere rahat ulaşabileceği alanlara yönlendirmeyi hedefliyebilirsiniz. Aslında doğal olarak gelen her kullanıcı için böyle bir senaryo hazırlamak gerekmektedir. Ancak şu ana kadar hazırlamadı iseniz reklam vermeden önce bunu deneyebilirsiniz.

Bundan sonra reklam verdikten sonra aksiyonları kesinlikle inceleyin. Kullanıcı nerden geldi, nerede siteden geri çıktı. Aksiyonlarının bu aşamadan sonra biraz hızlı olmalı diye düşünüyorum. Kullanıcıların her geldiğinde düştüğü noktalarda sorunlar olduğunu anlayıp bunu çözmek gerekir. Diyelim ki, anasayfanızı hedef alan bir reklam tasarladığınızda, eğer anasayfanızda sadece kayıt ve login varsa bu pek akıcı bir süreç oluşturmuyor. Burada anasayfanıza site içerisinden bir kaç örnek koyarak kullanıcının o örneklere tıklamasını sağlamalısınız. O örneklerden birini inceledikten sonra belki bir kayıt sürecine gidilebilir diye düşünüyorum.

Bunların dışında anlık olarak sitenizi ya da uygulamanızı izleyin ve kullanıcıların düştüğü noktaları hızlı çözemiyorsanız bile bir kenara not alın ve kampanyanız bittikten sonra bir düzenlemeye gidebilirsiniz.

0 notes

Startup Weekend Ankara Seçilen projeler hakkında kısa bilgiler

Ankara Startup Weekend‘de seçilen projeler hakkında kısa açıklama metinleri :

Autostanding : Bir arabanın maliyetini hesaplarken tek başına yanıltıcı olan satın alma fiyatını değil; #2. el değer kaybı, #Tüketim, #Bakım, #Vergi vb. masraflarına göre; GERÇEK sahip olma maliyetini hesaplayan, kullanıcıya bu maliyeti sunan, farklı modelleri karşılaştırma imkanı sağlayan bir web platformu.

Müzik Kutusu : Restoran kafe vb. işletmelerde düzenli çalan şarkı listesi üzerinden kendi istediğiniz şarkıyı seçip listenin üst sıralarında çalmasını sağlayabileceğiniz bir mobil uygulama.

Qualifire : QualiFire yüzlerce kişinin aynı anda online olarak yarışabileceği Facebook ile entegre sosyal bir platformdur.Yüzlerce kişi ile başlayan bu yarış tek kişi kalana kadar devam eder.Her seviyede belirlenen hedefi başaranlar üst tura çıkar.Tüm bunlar sadece dakikalar içinde olur ve yarış yeniden başlar.

Mobil Aşçı : Fikrimiz, bir mobil uygulama. Sloganımız: “Aşçını yanında taşı” Yemek yapacaksın. Malzemeleriniz var ama ne yapacağınıza karar veremiyorsunuz. Uygulamaya malzemelerinizi yazıyorsunuz ve olası yemek tariflerini size sunuyor. Tarifleri de malzemelere kötü davranan karakterimiz etkileşimlerle anlatıyor

Android Hastane : Kullanici sistemde tanimlanan belirtileri sececek. Sistemde hastaliklar ve belirtileri tanimli olacak. Kullanicinin belirtileri ile sistemde tanimli belirtileri belli yuzdede eslesen hastaliklar ve vertigo-noroloji gibi hastanedeki basvuru alani kullaniciya sunulacak.

Musium Player : Müzelerde ücret verilerek alınan sesli rehberler yerine mobil uygulamayla kısa,pratik ve çok daha uygun şekilde resim,video ve sesli anlatım içeriklerine online ve offline erişilebilir içerik uygulaması.

Pinkie Me : kullanıcılara her konuda her anda bahis açabilme ve bunun sonucunda rekabet duygusunun verdiği heyecanla kazanma imkanı sunan bir platform mesela sınıftaki kızın numarasını almak yada firmaların kendilerinin oluşturduğu ve anında ödüllendirdiği bahisler veya göle yoğurt mayalamak gibi efsaneler.

Hot in Town : İnternet sitesi ve mobil app. olarak planlanan Hot in Town şehirdeki güncel yaşam trendlerini tek bir sitede topluyor ve şehirde var oluş düzenlerini kavrayıp, etkin ve kişiye özel tavsiyelerde bulunmaya çalışıyor. Giyim, aktivite, müzik, mekan, alışveriş ve sanat kategorilerinde hizmet planlanıyor.

Panaromik Süpermarket : Panoromik goruntusu olusturulan market reyonlarinda,urun kodlariyla eslestrime yapilarak urunlerin secimine ve marketi online gezmeye imkan saglayan sistem

Roboguide : önceden hazırlanmış tur paketleriyle, kullanıcının konum bilgilerini kullanarak online bir rehber hizmeti verecek bir uygulama.ulaşılan her checkpoint içerik ve görsel bilgilerle kullanıcıya rehber hizmeti verecektir.

Oylamania : Referans ve bilgi kaynağı olan kullanıcıların bilgiyi ve sistemdeki ögeleri oylayabildiği, aynı zamanda eğlenceli bir şekilde Trendleri takip edebildikleri ve ürün-hizmet arayan şirketlere pazar araştırmaları için daha ekonomik, güvenilir ve hazır bir veri kaynağı sunan bir web sitesi.

Viveka, TEPAV, TOBB ETÜ işbirliği ile garajda düzenlenen Startup Weekend Ankara etkinliği hakkında daha fazla yazılması dileğiyle.

0 notes

protect files with .htacces file

You can use following instruction on .htaccess file if you want to protect some files from users.

  1. List your protect file ( for example : i try to protect my *.tpl, *.log, *.ini, *.txt files)
  2. are there any ignore file? (I have a robots.txt file. it was ignored from protection)
  3. Create your htaccess

    # Prevent Direct Access to files
    <FilesMatch “(?i)((.tpl|.ini|.log|(?<!robots).txt))”>
     Order deny,allow
     Deny from all
    </FilesMatch>
  4. “Options -Indexes” use to disable directory browsing
  5. “IndexIgnore *” use to prevent folder listing

In these case, “(?i)” part of the example is for caseless matching. And “(?<robots).txt” part is for ignori robots.txt file and protecting all the others.

If you want to ignore more file like robots.txt file. You can add like this “(?<robots|test|ignored|file).txt”. Now, users can access robots.txt, test.txt, ignored.txt, file.txt

0 notes

Speed geek’s guide to Facebook buttons
0 notes