May 13th, 2012 Husky Boulder X 2012 in photos & video

The boulder contest was well done thank to the guys from Boulder Bar.

The video is finally here.

And here are some pics. I have no clue who is who. I know only Nelly and Martin Spilka. So if anyone recognizes their faces I will be glad to give them names. :) Please let me know at blogenka@gmail.com.

May 6th, 2012 Javascript 4 – Everything is an object

CONFESSION: As I found out today not everything is an object. There are also these primitive value types like Undefined, Null, String, Boolean and Number that aren’t objects even though some of them can be represented as an object. This fact doesn’t change any of the stuff written below.

I used to tell myself  “Just stay away from the hellish objects and you’ll be fine”.
Well, that was quite naive to say when everything in JS is represented via an object. :)

I did some short tests to see.

Object, like the real? one


var myObject = new Object();
myObject['0'] = 'b';
myObject['1'] = 'o';
myObject['2'] = 'o';

console.log(myObject);

I created an object with 3 properties.

The __proto__  thing is an internal property. It points to an object myObject inherits from.

Read the rest of this entry »

May 1st, 2012 Javascript 3 – Use console to debug or die

Using alert() to debug really sucks. I always have to pray for my inserted alert to come up and it often doesn’t and I have no idea why or I kill my browser by never ending loop with alerts I can’t stop or I would get this error Object object that basically says “Just Give It Up!”.

Well, alert time is over. I was told to use a console.log(). Suddenly the JS world seems a bit nicer.

I prefer the Google Chrome console. You can activate it by hitting F12.

Example 1 – feeling much better already ;)


var test = 'Defined';
console.log(test);

var test2;
console.log(test2);

console.log(test3);

Read the rest of this entry »

Apr 21st, 2012 Javascript 2 – a function returning a function

I had some troubles with understanding this piece of code.

var doSth = (function () {
   var a = 1;
   return function() {
      alert(a++);
   }
})();

/* The variable "doSth" points to an anonymous function
   that is called afterwards via the brackets ().

   It returns a piece of code that is then available in the variable doSth.
   The returned code alerts the variable "a" incremented by 1.
   FIX: it alerts variable "a" and then it is incremented by 1.

   So now the variable "doSth" contains an executable code */

Read the rest of this entry »

Apr 14th, 2012 Javascript 1 – variable scope

I don’t understand Javascript and probably never will. I am not a programmer and probably never will be… unless i get hit by something and my brain will click into some programming guru mode. But still, I really would like to get at least some of the code I see from my colleagues or even write something that makes sense by myself. Something I wouldn’t call “neverusable”. Sooo hold your thumbs… if I lose this fight my brain is only good for coding HTML & CSS. :)

I realized I have to start and learn the basics properly. :)
I started with a variable scope.

Example 1

var a = 1;
function doSth() {
   alert(a);
}
doSth();

// This is quite simple.
// alerts 1
/* variable "a" has a global scope so wherever
   you are in the code you can access it unless there is another
   variable named "a" within the function you are calling the variable from */

Read the rest of this entry »

Sep 29th, 2011 First real bouldering at Vysoky Vrch

First time on real rocks was fun.

On our way up the hill with boulders

Read the rest of this entry »

Jun 24th, 2011 Succus, Cactuses, Carnivorous and others

Succulents exhibit at Na Slupi Botanical Garden in Prague was awesome as always.

Me and my friends were lucky as we also got a chance to see carnivorous plants from a different exhibit that was currently on.

Here are some pics. The order is quite random.

Grafted cactuses

Read the rest of this entry »

May 6th, 2010 Roller blading Cape Cod Canal in photos

Cape Cod Canal Bike Path is an awesome place to spend your afternoon. You can go just for a walk, go on a bike or on roller blades. And if you don’t want to walk you can just lay on the beach next to the jetty at the very top of the canal. Let’s have a peek at the beauty you can see around. :-) Thank you Google for the map.

Cape Cod Canal map

Cape Cod Canal map

Read the rest of this entry »

Apr 17th, 2010 Roller blading Shining Sea Bikeway I.

Shining Sea Bikeway starts in North Falmouth and ends in Woodshole. My first trip goes from the center of Falmouth, Depot Avenue to the beautiful beach close to Nobska Lighthouse.

A view from Woodshole toward Falmouth

A view from Woodshole toward Falmouth

Read the rest of this entry »

Mar 4th, 2010 Buchty (Czech sugar buns)

Are you in USA? Don’t have “tvaroh”, don’t have regular “mouka” and have cravings for buchty? Check out this recipe that is adapted to US measurements. You will be surprised by the results ;o)

Never had buchty? It is a Czech simple pastry made from basic ingredients flour, milk, eggs, butter and sugar. You can fill them with different type of fillings. I like the cheese filling with raisins which I am going to use.

buchty2

Czech buchty - Czech sugar buns

Read the rest of this entry »