While working on the Gomobiledetect package I have been facing some interesting performance issues such as caching the compiled regex rules and changing the maps to slices(expandable arrays on runtime) or arrays(fixed size) - depends on the situation.
Today I want to talk about the performance improvement I ...
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.
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 ...
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
The suggested solution is ...
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 ...
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 ...
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.
The plugin can be found in my Github profile under the "Pin-to-top ...
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 ...
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 ...
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
So I decided to join the "club" and try
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
I am not going to describe ...
First, those of you which don"t know Phing I suggest to take a quick
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 ...
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.
Lately I m working on Windows environment because I had to start working
on my app's design implementation which means I ...
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.
I was need to ...
Yii is a high-performance PHP framework best for developing Web 2.0
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.
Yii supplies an easy way to know ...
Seems that JIRA might
suddenly crashes once a while.
When JIRA crashes, it won't remove the "JIRA
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 ...
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
Its very easy to create new profile and manage the existing one:
- Download Chrome ...
Topic says everything, isn"t it?
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
- "Unable to find the socket transport "https" - did you forget ...
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
From Wordpress's website:
Changes double line-breaks in the ...
- PHP 5.2 or greater (would
be a bit sad to know that someone is still using PHP 4)
- Upgrade PEAR to latest version
- Upgrade PECL to latest version
- Installing PHP
library by using PECL's zip
I will use pecl to install ZipArchive PHP library ...
Finding your php.ini is pretty straight forward task:
open terminal or cmd
If php is undefined you should add it to your PATH
or just execute:
php.inihas several modes (path is different sometimes...):
Configuration File (php ...
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
If you have installed Eclipse, you should install two more things:
(PHP Development Tools)
After extracting everything, search for ZendDebugger.so ...
Today I`v noticed to interested things:
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)
Didn't find any straight answer on Google ...
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 ...
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:
- Open alsamixer in terminal
- Choose your sound card (F6)
- Continue till you see this screen ...
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 ...
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:
mysqlnd cannot connect to MySQL 4.1+ using the old insecure
authentication. Please ...
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
You may leave feedback's here or in widget's feedback link.
Hey again, long time not writing here.
Today I want to share my
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 ...
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.
an old HTML element which lets you load another page inside your ...
I wrote a nice script to select all of your Facebook friends in one
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.
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.
As part of the ...
is out so you can check it, comment and share your thoughts about it
So lets go right to the business.
Today I`v tried to use Backtrack 5. I made a live usb
and tried to boot from it. After choosing "Default" option from the ...
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 ...
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
and like he wrote, I just want to share & remember the solution.
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 ...
When setting up your business account on pidgin you have to do the
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
Couple a days ago I tried to install
Jira. There are few
important things that you need to remember behind the installation
- Jira works by default with port 8080, but you can change
- Port 8080 must be opened in your router for remote connections
- Validate ...
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 ...
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
but couldn't find anything about it.
So I've changed my ...
I`ve searched on google for some tutorials, but couldn't find anything
updated, so I thought to make one.
Go to privacy settings
Scroll to the bottom of the page and search ...
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 ...