Getpocket API for Go


I was working with Getpocket API while coding with Go so I have decided to write a Go Getpocket SDK.

The source code is available at Github.

Documentation is available at Godoc.

more ...

Sublime Text 3 PHP Tools Plugin


A while ago I have started to code in Go.

I will spare most of my opinions about Go for now beside one, Go fmt.

Go contains a built in package which formats Go's code automatically. This in my personal opinion saves a lot of time as developers are ...

more ...

Passing Vagrant Command Line Parameters


Description

I have been looking for a simple way to pass parameters to Vagrant while specifying their names and without hurting Vagrant's own parameters.

I have seen few different suggested solutions including using ENV\ARGV. I have chosen to use the library GetoptLong

Suggested Solution

The suggested solution is ...

more ...

Introducing Go mobile detect package


Description

Few months ago I have started to look into Go and decided to give it a try. As part of my learning curve I have decided to contribute and help others with things there are missing or not completely finished.

One of the things that I have found useful ...

more ...

Serving static files with Go


Description

Lately I am trying to work on different projects while making sure that frontend and backend can work without any dependency.

Having working with this approach I can work on backend without having any frontend files in the same repository and vice versa. One of the things that needs ...

more ...

Pelican pin post to top


Description

I have figured that sometimes I want to write a post while I would prefer to have other posts pinned to the top of the index page. I have written a new small plugin that does that.

Pelican logo with pin

The plugin can be found in my Github profile under the "Pin-to-top ...

more ...

Tinder Privacy Issues


Description

Few months ago I heard about a dating application called Tinder.

The idea of the app is pretty straight forward and actually cool. Imagine going to a bar, you see someone you like and make your move, Tinder allows you in the comfort of your own home. All you ...

more ...

Removing Wordpress and switching to Pelican


Description

I wanted to remove Wordpress for long time but couldn't figure which platform I should use.

The reasons that I wanted to change were:

  • Wordpress is slow
  • It's hard to write a blog post using those Javascript editors (e.g tinymce, ckeditor etc)
  • It's hard to ...
more ...

Facebook API "CurlException: 6: name lookup timed out thrown in Facebook"


Description

I am working on my Facebook app which I already mentioned before but maybe didn't publish a direct link yet: https://www.staytunedapp.com as it is still in a beta mode.

I had an issue with Facebook in the last few days\week while seeing an exception ...

more ...

Starting with Symfony2 - Troubleshooting number #1


Introduction

So I decided to join the "club" and try Symfony2 finaly.

I have to say that I am not familiar with most of this framework and it's power but from what I saw and read till now it seems to be promising.

I am not going to describe ...

more ...

Extend your .properties files while using Phing


Description

First, those of you which don"t know Phing I suggest to take a quick look at their website

For sometime I was hoping to get into writing this small task so I would be able to decouple some un-useful code\configuration.

One of the problems when using Phing ...

more ...

Configure Virtualbox with Centos from Windows environment


Hi, long time again.

Today I want to help those which want to configure a Linux (Centos) virtual machine by using Window and don't no how.

Description

Lately I m working on Windows environment because I had to start working on my app's design implementation which means I ...

more ...

Extending Backbone model while keeping defaults & parent init method


Hey, didn't have much time to write here (I`m currently working on my own project hoping to release soon).

I was facing with a problem which took me less than few minutes to find the solution for which I wanted to share.

The problem

I was need to ...

more ...

Yii Framework - introduction and more


Description

yiiframework.com:

Yii is a high-performance PHP framework best for developing Web 2.0 applications.

Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.

Requirements

Yii supplies an easy way to know ...

more ...

JIRA cannot start its required plugins


Desription

Seems that JIRA might suddenly crashes once a while.

When JIRA crashes, it won't remove the "JIRA lock" and then you won't be able to use it.

One of (many) reason that this problem might happen is due the lack of time that JIRA has to run ...

more ...

Creating Chrome user profiles


Description

Google Chrome finally supports "Chrome profiles"

Why do I need it?

Finally useful tool for people who share their computer with other ORwants to have multiple profiles over the same computer for testings.

How

Its very easy to create new profile and manage the existing one:

  1. Download Chrome ...
more ...

Zend Framework, Gmail, SMTP and SSL


Topic says everything, isn"t it?

Description

I had a problem sending emails while using Zend Framework with Gmail account. So I had to handle different types of errors:

  • "Unable to connect via TLS" - being created by Zend Framework Exception.
  • "Unable to find the socket transport "https" - did you forget ...
more ...

Wordpress - avoiding wpautop method


Long time ha?

So I`m working on a Wordpress plugin for a while, and I found some common issues with plugins that need to be integrated with Wordpress's posts.

One of the main issues is the wpautop method.

Description

From Wordpress's website:

Changes double line-breaks in the ...

more ...

PHP Managing zip files with ZipArchive


Requirements

  1. PHP 5.2 or greater (would be a bit sad to know that someone is still using PHP 4) 
  2. Upgrade PEAR to latest version 
  3. Upgrade PECL to latest version 
  4. Installing PHP ZipArchive library by using PECL's zip package

Installation

I will use pecl to install ZipArchive PHP library ...

more ...

How to find your php.ini file


Finding your php.ini is pretty straight forward task: 

open terminal or cmd 

execute:

php --ini

If php is undefined you should add it to your PATH or just execute:

"/your/path/to/php --ini"

php.inihas several modes (path is different sometimes...):

  • Using one file: 

Configuration File (php ...

more ...

MySQL Split String Function Fix (split_str)


While working on one my projects, I was needed to use split_str function in MySQL. I Googled for it and found two answers (which are exactly the same - one is leading to the other): 

Federico Cargnelutti - MySQL Split String Function

Stackoverflow - MYSQL - Array data type, split string

Everything worked great ...

more ...

Setup\Configure Zend Debugger


Using a debugger is very important while writing code, so lets see how to do it with PHP and Zend Debugger: 

Install Eclipse or Zend Studio 

If you have installed Eclipse, you should install two more things:

  1. PDT (PHP Development Tools)
  2. Zend Debugger

After extracting everything, search for ZendDebugger.so ...

more ...

PHP: Insert\Update MySQL BIT(1) field


Today I`v noticed to interested things: 

  1. A nice sentence or a motto that I really liked: 

    When you do a search, and it comes back with no results, it’s a sign that you need to write something. (Gordon P. Hemsley)

  2. Didn't find any straight answer on Google ...

more ...

Zend Framework - How to redirect/get application base URL


What is exactly base URL ?

Base URL is sub.domain.end, for example: 

If your full URI is http://www.yoursite.com/some/params/id/1, so base URL will be www.yoursite.com

Redirect to application base URL

Sometimes you would want to be able to redirect from one ...

more ...

Opensuse - Asus yXXy (n53j) - Speakers Audio


Hey, 

For long time I had an annoying problem with my speakers on my Asus n53j laptop. I`v googled this problem for long time and nothing. But finally I`v found the VERY-EASY solution: 

  1. Open alsamixer in terminal
  2. Choose your sound card (F6) 
  3. Continue till you see this screen ...
more ...

Highlight your text and share short URL


Today I wanted to share a text with my brother so I thought about making new tool that will highlight my text and create short URL. After some googling I have found a very nice tool that already implement it "Yellow highlighter pen for web". This plugin is working on ...

more ...

PHP & MySQL Error: "...MySQL 4.1+ using the old insecure authentication..."


Hey,

I didn't write here for long time, though this post is very short, I will try to add some nice things in the near future. So like I always say - lets get to work: 

Error:

mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please ...

more ...

ICQ On-Site Beta


So we finally finished ICQ On-Site beta project.

As you may see, its already implemented and you may use it on this site.

This version includes your ICQ friends and FB friends (if your account attached).

You may leave feedback's here or in widget's feedback link.

Enjoy, Shak.

more ...

PHP Tic-Tac-Toe MinMax algorithm implementation


Hey again,  long time not writing here.

Today I want to share my Tic-Tac-Toe game. 

A week ago I got a nice assignment, I was needed to create Tic-Tac-Toe game with PHP while the important task is that the player won't be able to win the game (which means ...

more ...

Using Iframes and Cross Domain Scripting


So I didn't write for a long time, and its about time to do that. I`v few subjects to talk about, but today I will share my thoughts about iframes and cross domain scripting.

Iframe is an old HTML element which lets you load another page inside your ...

more ...

Facebook: Select all of your friend in 1 time


Hey again,

I wrote a nice script to select all of your Facebook friends in one time.
As my previous post, my wish is that Facebook will protect us as users and fight SPAM and keep our privacy settings.

Updates: added "fu" and "tu" params, see below.

/**Code start
 *Change ...
more ...

Chrome Extension: Facebook photo sharing bypass privacy preference (FBPhotos)


Hey all!

Today I will publish my first Google Chrome extension: FBPhotos.

FBPhotos, will give you the ability to share Facebook photos between friends (and people you may know ;) ) while they will be able to see the photos and bypass the user's privacy preference.

Facebook Photo Sharing Icon

Why?

As part of the ...

more ...

Backtrack 5 gnome x64 with Asus N53J and Nvidia GeForce


Backtrack 5 is out so you can check it, comment and share your thoughts about it here.

So lets go right to the business.

Today I`v tried to use Backtrack 5. I made a live usb boot and tried to boot from it. After choosing "Default" option from the ...

more ...

Zend Framework - Working with Modules


Zend Framework has much more power then you really know, and today we will talk about Zend Framework working with modules.

Lets just start:

How we define modules and why we need them?

Modules are very important, fully power and useful tool. As I see it, its helps us to ...

more ...

Fix: Cannot load from mysql.proc. The table is probably corrupted


Few days ago I was stuck with the following MySQL error:

Cannot load from mysql.proc. The table is probably corrupted

After a little research I found a very good and easy explanation from Rob Searles blog, and like he wrote, I just want to share & remember the solution.

Following ...

more ...

Installing & Creating Zend framework project with zf tool


OK so I think I want to make it much clear from other guides that I found. So lets just get started:

Open your command line (on windows use cmd*,on linux use yourterminal*). Note:** don't forget that you need web server. you can make it by your ...

more ...

How to set your gmail business account on pidgin


When setting up your business account on pidgin you have to do the following steps:

​1. Set your username without the @ sign.

​2. Set your domain and delete gmail.com

​3. Go to advanced tab and add the chat server talk.google.com

Sign in.

more ...

Installing Jira on Ubuntu server


Hey,

Couple a days ago I tried to install Jira. There are few important things that you need to remember behind the installation guide.

  • Jira works by default with port 8080, but you can change it
  • Port 8080 must be opened in your router for remote connections (Port forwarding)
  • Validate ...
more ...

Fedora Core 14 - 64 Bit - Asus N53J - installation & configuration #2


So last time I wrote about Fedora configuration issues, I mentioned Suspend & Hibernate problems. I searched all over google and ask about those issues via IRC (#Fedora on freenode), they told me that this is a known issue and there is not much to do for now. I really trust ...

more ...

Why my android is slow?


Couple a days ago I tried to use my phone and it was so heavy and slow, this happened after I've installed few apps.

I tried to search on google. If there is some problem with Handcent but couldn't find anything about it.
So I've changed my ...

more ...

How to remove Facebook application


I`ve searched on google for some tutorials, but couldn't find anything updated, so I thought to make one.

Step 1

Go to privacy settings

Privacy
Settings

Step 2

Scroll to the bottom of the page and search ...

more ...

Android - Messages app.


So couple a days ago "Messages" app started to make some troubles, I got new SMS notification but I was unable to view the content of the message... Suddenly all my messages were deleted and I couldn't see them anymore, when I tried to open Messages app it crashed ...

more ...

My trip installing Fedora 14 os, 64 Bit on Asus N53J, #1


While installing Fedora 14 OS on 64 Bit Asus N53J I`v noticed for some issues:

  1. Start with very useful advices
  2. You will probably notice that you can listen to music with headphones but speakers are disable, so use: http://blog.tersmitten.nl/archives/1082
    another useful guide about speakers ...
more ...