1. How to Hide the OSX Dock

    May 19, 2013 by J.P.

    I don’t need the dock since I have many other ways of switch and opening apps, and by golly screen space is valuable!

    It’s not good to completely disable the dock since it works with CORE OSX services. I’ve found that setting the auto hide feature works ok in sys prefs.

    Better Solution
    To make the delay much more extreme you can type this in terminal:
    $defaults write com.apple.Dock autohide-delay -float 10; killall Dock

    This will hide the doc for 10seconds while you hover over the expected are for it to show. Feel free to change the float value to works best with you.


  2. Shooting From the Hip, A Rant On Some Internet Shit to a SEO Friend

    by J.P.

    This is a  simple rant not an angry rant, and I’m by know means an expert in everything mentioned below.

    The following is an email I sent to a friend who specializes in SEO, and is looking for gig in social media. Here goes nothing.. feel free to dispute any my off my remarks:

    html5 microformats
    Utilize tools like microformats so apps like Flipbook can grab your content and port it to there system.

    http://html5doctor.com/microformats/

    This is something devs are well aware of but marketers and such are clueless about.

    Jekyll/Middleman/ Blogs For Devs who don’t like WP:
    Less features that word press but easy to deal with.

    http://jekyllbootstrap.com/

    Twitterbootstrap
    The #1 framework for css and ui elements. This shit it hot, enterprise might shy from it  but startups won’t.

    http://twitter.github.io/bootstrap/

     

    Mass relevance  and similar companies
    Not a cheap service but provides some services for working with large twitter streams that pipe out to your site, tv show etc. Provide polling and geolocation stats. VS an Cnn use them among others.

    http://www.massrelevance.com/

    Vine (Who hasn’t played with it yet?) 

    http://news.cnet.com/8301-1023_3-57565641-93/twitter-unveils-vine-its-6-second-instagram-for-video/

    Yahoo just bought tumblr for 1.1 billion

    I’m buying this stock. Marissa Meyer, the 20th employee at google,  and worked on almost every hot app/service they turned out so far. She turning Yahoo into a powerhouse again. Stock has gone from $18-$26 a share. They are expanding into phone markets in southern asia and making smart acquisitions.

    In a few years they may again be able to battle with the big boys, AAPL, GOOG, AMZN. I would add FB to list but they need to innovate drastically to stay relevant. I could also see Microsoft making some changes that could position them selves relevant again, win8 was total flop, but at least they are trying new things. IE10 is very standards complaint. The future could be bright.

     

    More Rants

    Google is blowing it up and the continuity of there apps gets better with each release. Will Glass be all it’s expected to be?

    Apple is holding there cards and playing it cool, I think we are about to see Tim Cook at his best.

    Finally if you don’t read techcrunch or other valley startup type sites you should make it your homepage. It will keep you relevant to whats going on with new all the new startups. ( I know TC was bought by AOL a years ago)

    Nobody wants to hear about boring SEO standards that have been around for years. Read this with a grain of salt: http://seoisdead.net/

    Google and other popular search engines change algorithms regularly these link sharing pools etc don’t mean anything. New dev tools handle much of SEO attributes by default.

    You need to leverage new technologies. Get client content to go anywhere through anything using all services possible. While doing this you have to present how these tools can be used properly and track results.

    Focus on keeps content portable, in a common formats, and allow easy access to it.

    Focus more on using API’s/services; how to correctly use utilize them on devices and scenarios you will be a great asset. Check out Luke W he knows his shit!

    Example (what not to do): A yoga studio I frequent created a ios app. The app was just the website nothing more. Total fail. They need to understand how the users will interact with the app and the situations in which it’s used.

    Is the user on the couch? watching tv? chilling? or are they in the city trying to locate the studio on a shitty 3g connection before getting on a subway with no connection.

    Wow this a rant. I’m making this a blog post!


  3. Javascipt Object.keys()

    May 17, 2013 by J.P.


    I was peer coding yesterday when my peer suggested that I use keys to get the length of the object node.
    I felt like a noob since I hadn’t directly used the method before.

    Here is a gist of me playing with the JSON Example from Doug Crockfords site


    ~ $node
    > var x= {"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML","SortAs":"SGML","GlossTerm":"Standard Generalized Markup Language","Acronym":"SGML","Abbrev":"ISO 8879:1986","GlossDef":{"para":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML"]},"GlossSee":"markup"}}}}}
    undefined
    > x.glossary.GlossDiv.GlossList.GlossEntry
    { ID: 'SGML',
    SortAs: 'SGML',
    GlossTerm: 'Standard Generalized Markup Language',
    Acronym: 'SGML',
    Abbrev: 'ISO 8879:1986',
    GlossDef:
    { para: 'A meta-markup language, used to create markup languages such as DocBook.',
    GlossSeeAlso: [ 'GML', 'XML' ] },
    GlossSee: 'markup' }
    > x.glossary.GlossDiv.GlossList.GlossEntry.length
    undefined
    > Object.keys(x.glossary.GlossDiv.GlossList.GlossEntry).length
    7
    >

    Gist


  4. Upload and Display Image Using NodeJS and Express w/Jade

    May 15, 2013 by J.P.


    The following code will allow an image to upload and then display on a NodeJS server with Express middleware.

    Remember to add this to the config:

    The following is needed to keep the image file extension and provide a directory for Express to write to. Alternatively the image will be uploaded to a .temp directory.

    app.use(express.bodyParser({ keepExtensions: true, uploadDir: __dirname + '/public/uploads' }));

    Code Example
    Full code can be found here.


  5. SSH Tunnel With SOCKS Proxy

    May 12, 2013 by J.P.

    This tip is helpful to keep your internet session encrypted from browser to server and will bypass certain annoyances like web filters.

    In bash session type:
    ssh <username>:<password>@<IP/Domain> -ND <port over:1000 example:9999>

    Then in the network settings of Firefox set the SOCKS proxy host to localhost and the port you used while starting the ssh session.
    Socks with FF


  6. Sync .bash_profile with Dropbox and OSX

    by J.P.

    Here is a method to quickly sync your .bash_profile between machines using DropBox in OSX.

    $ cd ~/Dropbox/ && mkdir profileSync
    $mv ~/.bash_profile $ln -s Dropbox/profileSync/
    $ln -s Dropbox/profileSync/.bash_profile ~/.bash_profile

    The only other app specific files I’ve synced before were Textmate bundles. If anyone else has and recommendations please comment.


  7. OSX Keyboard Shortcut Map

    May 7, 2013 by J.P.

    Because I always forget them!

    Command
    Option
    Shift
    Control
    Backward Delete
    Forward Delete
    Escape
    Eject
    fn Fn Key
    F1 Function
    Return
    Enter
    Power button
    Left Arrow
    Right Arrow
    Up Arrow
    Down Arrow
    Page Up
    Page Down
    Home
    End
    Tab
    Back-Tab
    ? Help
    Mouse click

    Here is the link on Gist


  8. JS Basics: Dom2 Event Listener Gist

    May 5, 2013 by J.P.

  9. Chrome Web Developer Extensions

    May 2, 2013 by J.P.

    Here are a list of extensions I’m currently using for Chrome:

    1. Advanced REST client
    2. JSONView
    3. PageSpeed
    4. User-Agent Switcher for Chrome
    5. Remove cookies for site
    6. Yslow

  10. Connect locahost to MongoLab.com

    April 27, 2013 by J.P.

    Instructions for setting up Mongolab.com with your localhost.

    1. Create Mongolab.com account
    2. If you don’t have homebrew installed, install it.
    3. Install MongoDB with homebrew:
      $brew update
      brew install mongodb
      
    4. Create DB on mongoLab.com
    5. Create DB user
    6. Select connections tab and copy the connection type you need
    7. Update Usr and Pass credentials
    8. Connect to DB


Older Posts »