# html
-
JavaScript _ 2022-03-06
The tiniest presentation framework
I did roughly 50 talks over the years, and for almost all of them, I used Reveal.js. I like it because it's HTML-based. I have complete control of everything and can easily publish the slides online. However, one thing bugs me every single time - the size of my content. I want to use all the available space. This becomes very important when I'm showing code to people. That's why I wrote SimPre. It's a 10KB HTML presentation framework that properly scales and positions my content.
-
JavaScript _ 2019-05-23
From PHP to Node with Zeit's lambdas and Cypress.io
The first post in this blog was published on 25th of August 2008. This place was always living on a shared PHP/MySQL hosting. It was driven by a custom made PHP CMS for over 10 years. It is time to move forward and follow my actual language of choice - JavaScript. I spent some time recently migrating it to Zeit and this article is showing my process.
-
Must-see _ 2017-01-02
8 Years of blogging
The first article on this blog is published on 22th of August 2008. It’s about a website which I saw at FWA. Eight years later I’m still publishing stuff here and because it is the beginning of a new year I decided to give you some statistics.
-
JavaScript _ 2016-07-03
Let's write, not generate code. Thoughts about naming stuff.
I’m writing code for approximately ten years now and at some point the word “writing” became more important then “code”. I found out that it is easy to generate code but it is difficult to write code. Writing means creating something meaningful. Something that other human beings will read. The code is indeed sent to machines and they do understand ugly code. Not the same for humans though. An important part of our job is to make sure that our code is clear for other teammates.
-
Must-see _ 2016-03-10
My new experiment is released - 10 Lessons in Front-end ebook
It's finally done. My first self-publishing ebook is released. The book is available here. I'm running a free giveaway for the next five days. So, subscribe for my newsletter at this address http://eepurl.com/bKt0TD and you'll get a free coupon that will lower the price to 0$.
-
Architecture _ 2015-12-20
Apache .htaccess for HTML5 push state manipulations
This is a quick post so I document my two hours research. I'm working on a open source library for routing in the browser. Or in other words JavaScript library that uses the history API. The thing is that locally I'm using Apache as a dev server and I wanted all the request to specific folder to be redirected to
index.html. -
Nodejs _ 2014-06-07
Node.js application made with Express and AbsurdJS
Node.js is one of those new technologies, which are attracting more and more developers every day. Mainly, because it's JavaScript driven, a lot of people are interested working with it. In this tutorial, I'll show you how to use AbsurdJS together with Express. Express is one of the popular Node.js frameworks. However, the other instrument is really fresh one and I hope that you will find it useful.
-
Nodejs _ 2014-04-22
No back-end blog solution with Node.js and Markdown
Before a couple of weeks I published Techy. It's a flat CMS based on Node.js and Markdown. I made it because I wanted to write my articles in Markdown format and avoid the annoying publishing workflow which I'm using now. I feel that it's not very clear how Techy works and decided to create a simple blog illustrating the processes.
-
JavaScript _ 2014-03-25
Look ma, JavaScript only Off-Canvas menu
The off-canvas menu is pretty popular nowadays. You know, the little button in the right upper corner which opens the navigation with a slide-in effect. That's what we are going to build in this article. The interesting things is that we are not going to use CSS neither HTML, only JavaScript.
-
JavaScript _ 2014-03-04
Using media queries in JavaScript (AbsurdJS edition)
If you believe in responsive design you probably use a lot of media queries. That's a CSS feature which gives us the power to add something like if statements. We are able to apply rules only if the current page meets certain conditions. In this article I'll show you how I use media queries in JavaScript.
-
JavaScript _ 2014-01-23
Revealing the magic: How to properly convert HTML string to a DOM element
This seems like a trivial task. However, it is not. There are few popular solutions, but they have a big problem and if you use them a lot you will spot the issue.
-
JavaScript _ 2013-07-05
Extending Jasmine (BDD framework for testing)
Don't get me wrong, Jasmine is a wonderful framework. I'm using it for testing JavaScript in both places - front-end (in browser) and back-end (Nodejs). However, the client side has some disadvantages, which I just fixed. I hope that someday these changes will be moved to the official version (or at least I'll make a pull request very soon).
-
JavaScript _ 2013-06-15
Javascript string replace and regular expression
The replace method in JavaScript is pretty much the same as in the other languages. Replace part/s of a string with something else. However, there are some tricky moments and I wanted to write this article, because I met this problem several times in the past. Actually, very often I use my blog as a documentation for myself and this is one of those cases. Probably I'll be in the same situation after week or so and I'll just check here for the proper solution.
-
JavaScript _ 2013-06-11
Convert HTML string to DOM element
Checkout Revealing the magic: How to properly convert HTML string to a DOM element article.
I'm working on a chrome extension which accepts user text, work with it and output the result in a div. I used jQuery in the beginning, for several tasks, but later I decided to remove it and deal with pure javascript/DOM manipulations. The output div was filled by using innerHTML property and everything was ok. But, at some point, I sent few buttons to the user and he has to interact with them. However, once I update the div's content the event listeners are detached and the buttons became non-functional.
-
HTML5 _ 2013-05-30
Web Highlights #5
Everyday I'm reading or watching something which I find helpful. Normally I bookmark those things, but at the end I have dozen of folders and subfolders which I never check. So, I decided to make such blog post where I'll share valuable things in the net.
-
HTML5 _ 2013-04-22
Web Highlights #3
A bunch of cool stuff ;-)
-
Nodejs _ 2013-03-16
AssetsPack - a friend of the front-end developer (pack your assets with NodeJS)
AssetsPack is a NodeJS module which helps in organization, compilation and minification of assets. It's meant to be used in local environment during the development process. It was made generally for HTML/CSS/JavaScript based applications.
-
HTML5 _ 2013-03-13
HTML5: a few links to bookmark
There are tons of information in the internet today. And new stuff are coming all the time. It is really not possible (at least for me) to be up to date with everything. I used RSS before, but very soon my reader was full with content and again I wasn't able to follow all the blogs/developers. Now I'm checking regularly Twitter and Envato network. However, last few weeks I found several sites which worth checking.
-
HTML5 _ 2013-02-23
HTML slicing the site of VarnaLab using LESS and Twitter Bootstrap
HTML slicing the site of VarnaLab using LESS and Twitter Bootstrap
-
Inspiration _ 2012-09-18
VarnaLab Challenges event
A great event is coming in VarnaLab - http://www.varnalab.org/2012/09/varnalab-challanges.html
-
ActionScript _ 2011-03-13
Convert Adobe Flash FLA files into HTML and reach more devices
"Wallaby" is the codename for an experimental technology that converts the artwork and animation contained in Adobe® Flash® Professional (FLA) files into HTML. This allows you to reuse and extend the reach of your content to devices that do not support the Flash runtimes.
-
ActionScript _ 2011-02-11
Creating simple WYSIWYG editor with AS3 (Flex)
There are dozen of JavaScript WYSIWYG editors available, but most of them are too complicated and a little bit buggy. From time to time I'm using my own tool to provide such kind of functionality. It accepts and exports valid html. I decided to share it with you and explain how I built it.
-
PHP _ 2010-11-24
PHP: find links in a string and replace them with actual html link tags
Currently I'm working on an application that gets data from Twitter. The tweet's string contains links that have to be transformed into html link tags. Here is a simple PHP function that helped me.
-
ActionScript _ 2010-11-14
Deep linking in flash with AS3
Many people will say that Flash is not SEO friendly. Actually that's not 100% true. Flash is just a tool that shows your data. Exactly the same as the HTML. In this article I'll show you how to use ActionScript3 and JavaScript together to make your flash sites SEO friendly and provide a different URL for each of your pages.
-
PHP _ 2010-11-11
How to import images directly into the html code (base64)
-
ActionScript _ 2010-08-05
Javascript to Flash communication and vise versa
The communication between Flash and JavaScript is really important part of the web sites today. That's why I decided to share how to do it.
-
ActionScript _ 2010-06-30
Remove tags from a string in AS3
A couple of months ago I integrated a nice WYSIWYG editor written in Flex in my CMS. It worked fine, till yesterday I needed to add more features like text formatting and font color changing. As you know the Flex RichTextEditor component adds some additional tags that I definitely don't want to send to the database. So I wrote a simple function to remove these tags.