August 27, 2015

Simple file caching in PHP

If you are creating simple file cache in your PHP code and wondering about the performance try this great article - Cache a large array: JSON, serialize or var_export? (written by Taco van den Broek).

July 6, 2015

Visual Studio Code

I like to test various code editors and currently I'm using Visual Studio Code from Microsoft (yes, it's open source editor from MS running on Linux :)). I'm using it mainly for developing add-ons for Mozilla Firefox (HTML+JavaScript+CSS) and PHP projects and I'm pretty impressed.

For example here is a screenshot when I was editing JavaScript code where I made a mistake that I pushed new items into bad array (see highlighed parts of code below and you will understand):


The error shown is really usefull...

June 29, 2015

CSS3 Animations

Do you remember the hell to do something like this just few years ago? :) - http://jsfiddle.net/ondrejd/22Lczf3d/

1
2
3
<div class="snackbar">
 <p>New URL saved</p>
</div>

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
div.snackbar {
 animation-duration: 0.5s;
 animation-name: snackbarSlideIn;
 background-color: #323232;
 border-radius: 2px 2px 2px 2px;
 bottom: 10px;
 color: #FFFFFF;
 height: 48px;
 min-width: 288px;
 max-width: 568px;
 padding: 0 24px 0 24px;
 position: fixed;
 right: 10px;
}

June 21, 2015

GitBook

I don't know if you hear about GitBook - web solution for digital writing and publishing. I already heard about it but never got time to explore it and that was definitively a mistake.

See for yourself - here is some links to books you can find there:


If you're interested in writing your own book there is also pretty application that helps you with it: GitBook Editor.

June 2, 2015

TagsSidebar 1.0.5

Today was released yet another version of TagsSidebar and changes are pretty good:

  1. fixed issues around displaying the tags (issues #2, #3)
  2. added user options `tagsFontSize` and `tagsTheme` (see issue #7)
  3. added shortcut Ctrl+Shift+B for quick opening/hiding the sidebar self

You can download this version either from AMO or directly from the repository on the BitBucket.

TagsSidebar 1.0.4

Today I released new version of TagsSidebar add-on for Mozilla Firefox.

Changes in 1.0.4

  • enabled alphabetical sorting of tags and bookmarks (you need to enable this via add-on options)
  • fixed bug that around bookmarks on newer versions of Mozilla Firefox

You can download this version either from AMO or directly from the repository on the BitBucket.

May 18, 2015

No more binary XPCOM components in Firefox

From Firefox 40 will be dropped support for binary XPCOM components - so another piece of history on which I started "real" programming will be gone. Some of you maybe remember XPCOMViewer :)

You can see more details here: https://blog.mozilla.org/addons/2015/05/04/dropping-support-for-binary-components/ and here https://groups.google.com/forum/#!topic/mozilla.dev.extensions/B3H3j6FRVms