Skip to main content

Posts

Showing posts from July, 2012

TJ Holowaychuk: Components

TJ posted on his blog about interesting idea to bring all connected content about eg. Popup and store it within one folder (or component). From that folder to component is easy to create some kind of package, package manager like npm (or I think that we can just use npm for this).

More about idea: http://tjholowaychuk.com/post/27984551477/components

There are things that we must think before we create universal component (that can be used with jQuery, MooTools, YUI...). Make them extensible enough to use in big projects.

TJ mentioned that at LearnBoost they use similar idea with server and client code in one component, this is really interesting but if such modules would be in npm registry then they would have dependencies like Express or jQuery, or some kind of MVC library.

Another fragmentation issue is AMD vs Common.JS. I also think that Common.JS are more elegant but still now we have them both in community. I think about it with some kind of MVC and not only for browser but also …

How to Disable Hiding of Menu items in Ubuntu

For me this feature of hiding menu items in global menu is just annoying. Maybe there are people that doesn't need it, but I do, and it makes me longer to get there if I event can't see where it should be...

So how to see menu items all the time?

First install compiz-config:

sudo apt-get install compizconfig-settings-manager

example from: http://ubuntuguide.net/how-to-change-unity-sidebar-launcher-auto-hide-behaviour-in-ubuntu-11-04 Then install revamped config: http://www.webupd8.org/2012/07/disable-global-menu-autohide-behaviour.html Next open ubuntu config as in post above but open Experimental tab and at the bottom check "Menu Always Visible". That's it :) But if you just doesn't want this you can remove it all together: http://www.liberiangeek.net/2012/04/disable-the-global-menu-in-ubuntu-12-04-precise-pangolin/

From Console to Chrome

I'm trying to pick up with my watch later list on Youtube and today I watched From Console to Chrome by Lilli Thompson.





Some Chrome features to be aware of:
about:flags (FPS Counter) about:memory about:gpu about:tracing (to create your own boxes use console.time)console.time('my_tag');console.timeEnd('my_tag'); There are also command line switches to V8:
google-chrome --js-flags="  "

--trace-bailout - Chrome found function to optimize but it can't (see why)
--trace-opt - functions that were optimized.
--trace-deopt - when faster function is switched to slower one

google-chrome --js-flags="--trace-bailout --trace-opt --trace-deopt"


Searching for more about deopt I found that on my watch list is another video about it: http://www.youtube.com/watch?v=UJPdhx5zTaw

There is discussion how to really use them: https://groups.google.com/forum/?fromgroups#!topic/v8-users/oiPLwFuGtOU


Jakob Kummerow suggest to use also: --print-opt-code and --code-comm…

Go to Hell Flash - Presentation by Michal Budzynski

Go to hell Flash, we don't need you anymore! GothamJs from michalbu
Another great presentation from organizer of onGameStart Conference. I really like his style of presentations, and there are additional surprises in code for polish readers ;)

More about conference: http://gothamjs.com/schedule/index


Please let me know if there will be available videos from this conference.


Learn Git in 15 minutes

Github created Git Training that can be done in 15 minutes and make you familiar with Git.

http://try.github.com/levels/1/challenges/1

Course is created by Code School and can be viewed also on http://www.codeschool.com/courses/try-git

Whole course is free, and you can learn most important things about Git, and I mean most of it. Really good work and I really can recommend doing it :)