1. Configure TouchPad buttons area to be “sensor-less” in Linux

    Just create or edit ~/.xinitrc file:

    nano ~/.xinitrc

    Add this inside that file

    ## Detect and configure touchpad.
    if egrep -iq ‘touchpad’ /proc/bus/input/devices; then
    synclient AreaBottomEdge=3800
    fi

    More info on how to get to that 3800 number: http://askubuntu.com/a/231741

    3 months ago  /  0 notes

  2. Netbeans and Ubuntu 12.x, 13.x, 14.x

    I’ve been working with Ubuntu and NetBeans for a long time now. Every year I reinstall my desktop and have to go through all the “research” again for all the details that needs to be done so that you have a “working environment” that its just nice.

    Read More

    3 months ago  /  1 note

  3. monoclemike:


SAILS.LOAD() LATENCY
LATEST - AFTER OPTIMIZING ROUTER
5a851cf57611d706a93d9f764dd63a5fcbb4fea7
Benchmark Report ::
require(“sails”) :: 143.35ms
sails.load [first time, no hooks] :: 298.35ms
sails.load [again, no hooks] :: 4.77ms (expected 25ms —faster b/c of require cache)
sails.load [with moduleloader hook] :: 16.29ms (expected 25ms —faster b/c of require cache)
sails.load [all core hooks] :: 355.61ms (expected 3000ms)
sails.load [again, all core hooks] :: 39.18ms (expected 3000ms)
sails.lift [w/ a hot require cache] :: 58.93ms (expected 3000ms)
sails.lift [again, w/ a hot require cache] :: 143.88ms (expected 3000ms)
BEFORE OPTIMIZATION
a3fa594b9b5c020626051693d119501ee7f4dd21
Benchmark Report ::
require(“sails”) :: 132.11ms
sails.load [first time, no hooks] :: 306.77ms
sails.load [again, no hooks] :: 4.25ms (expected 25ms —faster b/c of require cache)
sails.load [with moduleloader hook] :: 14.66ms (expected 25ms —faster b/c of require cache)
sails.load [all core hooks] :: 326.12ms (expected 3000ms)
sails.load [again, all core hooks] :: 42.81ms (expected 3000ms)
sails.lift [w/ a hot require cache] :: 61.64ms (expected 3000ms)
sails.lift [again, w/ a hot require cache] :: 231.04ms (expected 3000ms)

    monoclemike:

    SAILS.LOAD() LATENCY

    LATEST - AFTER OPTIMIZING ROUTER

    5a851cf57611d706a93d9f764dd63a5fcbb4fea7

    Benchmark Report ::

    require(“sails”) :: 143.35ms

    sails.load [first time, no hooks] :: 298.35ms

    sails.load [again, no hooks] :: 4.77ms (expected 25ms —faster b/c of require cache)

    sails.load [with moduleloader hook] :: 16.29ms (expected 25ms —faster b/c of require cache)

    sails.load [all core hooks] :: 355.61ms (expected 3000ms)

    sails.load [again, all core hooks] :: 39.18ms (expected 3000ms)

    sails.lift [w/ a hot require cache] :: 58.93ms (expected 3000ms)

    sails.lift [again, w/ a hot require cache] :: 143.88ms (expected 3000ms)

    BEFORE OPTIMIZATION

    a3fa594b9b5c020626051693d119501ee7f4dd21

    Benchmark Report ::

    require(“sails”) :: 132.11ms

    sails.load [first time, no hooks] :: 306.77ms

    sails.load [again, no hooks] :: 4.25ms (expected 25ms —faster b/c of require cache)

    sails.load [with moduleloader hook] :: 14.66ms (expected 25ms —faster b/c of require cache)

    sails.load [all core hooks] :: 326.12ms (expected 3000ms)

    sails.load [again, all core hooks] :: 42.81ms (expected 3000ms)

    sails.lift [w/ a hot require cache] :: 61.64ms (expected 3000ms)

    sails.lift [again, w/ a hot require cache] :: 231.04ms (expected 3000ms)

    3 months ago  /  2 notes

  4. Restarting Percona MySQL does not work: how to fix

    $ sudo cat /etc/mysql/debian.cnf

    # Automatically generated for Debian scripts. DO NOT TOUCH!
    [client]
    host     = localhost
    user     = debian-sys-maint
    password = qwer1234
    socket   = /var/run/mysqld/mysqld.sock
    [mysql_upgrade]
    host     = localhost
    user     = debian-sys-maint
    password = qwer1234
    socket   = /var/run/mysqld/mysqld.sock
    basedir  = /usr

    >  SET PASSWORD FOR 'debian-sys-maint'@'localhost' = PASSWORD('qwer1234');
    >  FLUSH PRIVILEGES;
    >  QUIT
    


    http://serverfault.com/questions/32692/cant-start-stop-mysql-service

    10 months ago  /  0 notes

  5. For linux users: man with colors

    It marks a before and an after: http://nion.modprobe.de/blog/archives/569-colored-manpages.html

    1 year ago  /  0 notes

  6. Reinstalling your Linux without having to remember all the packages

    On old system:

    dpkg —get-selections > installed-software

    On new system:

    dpkg —set-selections < installed-software dselect


    Done! Get a beer.

    1 year ago  /  0 notes

  7. Regular expressions are so sexy!

    How to turn this:

    'url' => 'http://www.crackle.com.mx',
    'strRef' => 'http://www.crackle.com.mx/',
    'strAdServer' => $this->strAdServer,
    'fFreewheelLive' => '0',
    'strSubtitleServer' => 'http://images-es-az.crackle.com',
    'fFWClassify' => "1",
    'id' => "219",
    'name' => $this->playerName,
    'fAutoPlay' => "1",
    'fEnableClickOnVideo' => "0",
    'strAdPattern' => "av",
    'fShowWatermark' => "0",
    'fShowSDPlaybackOnly' => "0",
    'fShowShare' => "0",
    'fShowInfo' => "1",
    'fShowPublish' => "1",
    'fShowBuyItNow' => "0",
    'fShowFlagButton' => "0",
    'fShowFullScreen' => "1",
    'fShowVolume' => "1",
    'fShowScrubber' => "1",
    'fEnableSeek' => "1",
    'fEnablePostrollCountdown' => "1",
    'fAllowInternal' => "1",
    'strRtmpCdnUrl' => "cp151802.edgefcs.net/ondemand/crackle",
    'strWideVineHost' => "media-wv-es-am.crackle.com",
    'strAdSite' => "cr.crack",
    'partner_id' => "20",
    'nScrubberForgiveness' => "30",
    'strCdnImageServer' => "http://images-es-az.crackle.com",
    'strCdnMediaImageServer' => "http://images-es-am.crackle.com"
        


    into this:

    'url' => $this->url,
    'strRef' => $this->strRef,
    'strAdServer' => $this->strAdServer,
    'fFreewheelLive' => $this->fFreewheelLive,
    'strSubtitleServer' => $this->strSubtitleServer,
    'fFWClassify' => $this->fFWClassify,
    'id' => $this->id,
    'name' => $this->name,
    'fAutoPlay' => $this->fAutoPlay,
    'fEnableClickOnVideo' => $this->fEnableClickOnVideo,
    'strAdPattern' => $this->strAdPattern,
    'fShowWatermark' => $this->fShowWatermark,
    'fShowSDPlaybackOnly' => $this->fShowSDPlaybackOnly,
    'fShowShare' => $this->fShowShare,
    'fShowInfo' => $this->fShowInfo,
    'fShowPublish' => $this->fShowPublish,
    'fShowBuyItNow' => $this->fShowBuyItNow,
    'fShowFlagButton' => $this->fShowFlagButton,
    'fShowFullScreen' => $this->fShowFullScreen,
    'fShowVolume' => $this->fShowVolume,
    'fShowScrubber' => $this->fShowScrubber,
    'fEnableSeek' => $this->fEnableSeek,
    'fEnablePostrollCountdown' => $this->fEnablePostrollCountdown,
    'fAllowInternal' => $this->fAllowInternal,
    'strRtmpCdnUrl' => $this->strRtmpCdnUrl,
    'strWideVineHost' => $this->strWideVineHost,
    'strAdSite' => $this->strAdSite,
    'partner_id' => $this->partner_id,
    'nScrubberForgiveness' => $this->nScrubberForgiveness,
    'strCdnImageServer' => $this->strCdnImageServer,
    'strCdnMediaImageServer' => $this->strCdnMediaImageServer
        

    Solution:
    search this: ‘([a-zA-Z_]*)’ => ([a-z\s\$”’:/.->-]*)
    replace by this: ‘$1’ => \$this->$1

    Love ‘em.

    1 year ago  /  0 notes

  8. So true.

    So true.

    (via shangabrielle)

    1 year ago  /  16,136 notes

  9. pollolivera:

https://www.facebook.com/pages/Pollo-Olivera-Portraits-Lifestyle/134607333360040?ref=tn_tnmn

    pollolivera:

    https://www.facebook.com/pages/Pollo-Olivera-Portraits-Lifestyle/134607333360040?ref=tn_tnmn

    1 year ago  /  33 notes