Flash plug-in on my MacBook Pro takes almost all CPU while I'm browsing sites with Flash movies. No matter which browser I use.
That's it. From now on, I will install everywhere I can flash blockers. So long Flash!
web dev is easy, period
Web development is like 2 plus 2
Wednesday, December 14, 2011
Tuesday, December 13, 2011
Nice write up about Singleton in Ruby
I know, I know... There are a lot of talks about Singleton being anti-pattern and stuff... but it's really interesting read.
Here ya go: http://dalibornasevic.com/posts/9-ruby-singleton-pattern-again
Here ya go: http://dalibornasevic.com/posts/9-ruby-singleton-pattern-again
Thursday, November 17, 2011
Design Patterns
While struggling finding a solution for current task at my work, I have found nice online page about how to "Design Patterns". I highly recommend to read it from or, at least, bookmark it!
P.S. It has examples almost for every modern languages including PHP, C++, C# and Java
P.S. It has examples almost for every modern languages including PHP, C++, C# and Java
Labels:
design patterns
Tuesday, October 11, 2011
Tip: Switching desktops in Mac OSX shortcuts
You can switch your desktops with Cmd ⌘ + number. Very useful!
Wednesday, March 30, 2011
Installing NodeJS & npm on Trisquel GNU/Linux 4.5
Trisquel is a fully free operating system based in GNU/Linux. It's similar to Ubuntu Linux and Debian Linux but the differnce is that it's using only free software, plus it is recommended by Richard Stallman.
First of all you need to have tools for building the packages. To have it on your machine first you have to install build-essential, developer package of openssl and git. Open your terminal and run the following command:
That's it! Now you can try Hello World application that you can find on NodeJS website, it should work without any problem!
First of all you need to have tools for building the packages. To have it on your machine first you have to install build-essential, developer package of openssl and git. Open your terminal and run the following command:
sudo apt-get install build-essential libssl-dev gitNext, we need to get the sources of NodeJS (original). It's going a take around 5 to 10 minutes, depending on your machine characteristics:
mkdir ~/local echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc git clone git://github.com/joyent/node.git cd node ./configure --prefix=~/local make install cd .Then, reload your bash config:
source ~/.bashrcAnd, lastly, let's get and build npm package manager
git clone git://github.com/isaacs/npm.git cd npm make install
That's it! Now you can try Hello World application that you can find on NodeJS website, it should work without any problem!
Tuesday, March 29, 2011
For those who use Smarty
If you use Smarty, and you tend to put your Javascript into your template (.tpl) file, make sure that you avoid having Smarty comments inside Javascript like I have below:
Hope this helps.
function boo() {
// do something here
{* Smarty comment *}
}
Not sure why, but everything will be OK in most of the modern browsers, but not in IE6. Make sure that you remove your Smarty comment ;) Hope this helps.
Labels:
IE,
javascript,
smarty
Monday, March 28, 2011
For those who do JS for IE...
Just came across with one very ugly bug in IE.
For the first sight this code looks absolutely the same.
For the first sight this code looks absolutely the same.
window.open(url,'My Window','resizable=yes,scrollbars=yes,height=670,width=940');
window.open(url,"My Window","resizable=yes,scrollbars=yes,height=670,width=940");The only difference is using different type of quotes. The second example will trigger an error in IE, so, please, use only first one.
Labels:
IE,
javascript
Subscribe to:
Posts (Atom)