Thursday, June 18, 2015

Command line start MySQL.
sudo /usr/local/mysql/support-files/mysql.server start
To find the MySQL version from the terminal, type at the prompt:
/usr/local/mysql/bin/mysql -v
This also puts you in to a shell interactive dialogue with mySQL, type q to exit.
After installation, in order to use mysql commands without typing the full path to the commands you need to add the mysql directory to your shell path, (optional step) this is done in your “.bash_profile” file in your home directory, if you don’t have that file just create it using vi or nano:
cd ; nano .bash_profile
export PATH="/usr/local/mysql/bin:$PATH"
The first command brings you to your home directory and opens the .bash_profile file or creates a new one if it doesn’t exist, then add in the line above which adds the mysql binary path to commands that you can run. Exit the file with type “control + x” and when prompted save the change by typing “y”. Last thing to do here is to reload the shell for the above to work straight away.
source ~/.bash_profile
mysql -v
You will get the version number again, just type “q” to exit.

Set the MySQL root password

Note that this is not the same as the root or admin password of OSX – this is a unique password for the mysql root user, use one and remember/jot down somewhere what it is.
/usr/local/mysql/bin/mysqladmin -u root password 'yourpasswordhere'
Use the single ‘quotes’ surrounding the password

Fix the 2002 MySQL Socket error

Fix the looming 2002 socket error – which is linking where MySQL places the socket and where OSX thinks it should be, MySQL puts it in /tmp and OSX looks for it in /var/mysql the socket is a type of file that allows mysql client/server communication.
sudo mkdir /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

AutoStarting MySQL on Reboot

There was a solution recently posted on how to autostart MySQL on reboot on Yosemite, if you follow this it will work:
sudo nano /Library/LaunchDaemons/com.mysql.mysql.plist
And paste in:


  
    KeepAlive
    
    Label
    com.mysql.mysqld
    ProgramArguments
    
      /usr/local/mysql/bin/mysqld_safe
      --user=mysql
            
  
Save it and then:
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
Then it will load on a restart.

Monday, April 8, 2013

LevelDB

oren.github.com/posts/leveldb.md at master · oren/oren.github.com · GitHub: "LevelDB is a very fast and lightweight embedded database. It was created by two Google engineers and is inpired by BigTable, Google's proprietary file system. You are probably using it without knowing it since it's part of the Chrome browser (exposed as IndexedDB).

Other databases in the embedded category are BerkelyDB and SQLite (it's important to point out the LevelDB is faster). By embedded it means you don't run it in a separate process as you would normally do with many of the popular databases such as MySQL, MongoDB or Redis. LevelDB is contained within your application process and can't be accessed from other process. It is literally just a file based store of key value pairs that does some fancy caching and compression.

If we compare it to Redis, it's even lighter, have more reliable writes and unlike Redis, you don't store your entire data in memory but in the file system. Another difference is Redis have more data structures (sets, lists etc) that LevelDB is lacking. The similarity is that both store key-value pairs and both can save json."

https://github.com/oren/oren.github.com/blob/master/posts/leveldb.md

Sunday, April 7, 2013

Quick Tip: Add Easing to Your Animations » Learning jQuery - Tips, Techniques, Tutorials

Quick Tip: Add Easing to Your Animations » Learning jQuery - Tips, Techniques, Tutorials: "Easing can really bring life to an effect. Easing controls how an animation progresses over time by manipulating its acceleration. jQuery has two built-in easing methods: linear and swing. While they get the job done, they are pretty boring when compared to what's made available through the jQuery easing plugin."

http://www.learningjquery.com/2009/02/quick-tip-add-easing-to-your-animations
http://gsgd.co.uk/sandbox/jquery/easing/

Unfolding 3D Thumbnails Concept

Unfolding 3D Thumbnails Concept: "This demo shows a concept for toggling a thumbnail view for an image slider. The idea is to reveal some thumbs using a 3D effect and indicate the switch in navigation functionility.
This is a concept, the slider functionlity is not implemented."

http://tympanus.net/Development/Unfolding3DThumbnailsConcept/

The exceptionally handsome dashboard framework.

"Dashing is a Sinatra based framework that lets you build beautiful dashboards.

Key features:

  1. Use premade widgets, or fully create your own with scss, html, and coffeescript.
  2. Widgets harness the power of data bindings to keep things DRY and simple. Powered by batman.js.
  3. Use the API to push data to your dashboards, or make use of a simple ruby DSL for fetching data.
  4. Drag & Drop interface for re-arranging your widgets.
  5. Host your dashboards on Heroku in less than 30 seconds.

This project was created at Shopify for displaying custom dashboards on TVs around the office."

http://shopify.github.io/dashing/
http://dashingdemo.herokuapp.com/sample

Intro.js | Better introductions for websites and features with a step-by-step guide for your projects.

Intro.js | Better introductions for websites and features with a step-by-step guide for your projects.: "Better introductions for websites and features with a step-by-step guide for your projects."

http://usablica.github.io/intro.js/

iPhone 5 and iOS 6 for HTML5 developers, a big step forward: web inspector, new APIs and more | Breaking the Mobile Web

iPhone 5 and iOS 6 for HTML5 developers, a big step forward: web inspector, new APIs and more | Breaking the Mobile Web:

QUICK REVIEW

On iPhone 5:

  1. New screen size
  2. New simulator
  3. What you need to do
  4. Problems

New features on iOS 6:

  1. File uploads and camera access with Media Capture and File API
  2. Web Audio API
  3. Smart App Banners for native app integration
  4. CSS 3 Filters
  5. CSS 3 Cross Fade
  6. CSS Partial Image support
  7. Full screen support
  8. Animation Timing API
  9. Multi-resolution image support
  10. Passbook coupons and passes delivery
  11. Storage APIs and web app changes
  12. Web View changes for native web apps
  13. Debugging with Remote Web Inspector
  14. Faster JavaScript engine and other news

http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers

Friday, April 5, 2013

CSS Masking - HTML5 Rocks

CSS Masking - HTML5 Rocks: "Two commonly used operations in computer graphics are clipping and masking. Both operations hide visual portions of an element. If you have worked with SVG or HTML Canvas before, these operations are probably not new for you. Clipping defines the region of an element that is visible. Everything around this region does not get rendered - it gets "clipped". On masking, a mask image is composited with the element, affecting the alpha channel of this element. Portions of a masked element get fully or partially transparent. The new CSS Masking specification aims to bring these two operations to the HTML world."

'via Blog this'

Wednesday, April 3, 2013

Sylvester

Sylvester: "Sylvester is a vector, matrix and geometry library for JavaScript, that runs in the browser and on the server side. It includes classes for modelling vectors and matrices in any number of dimensions, and for modelling infinite lines and planes in 3-dimensional space. It lets you write object-oriented easy-to-read code that mirrors the maths it represents."

'via Blog this'

IE8 Developer Tools won’t open | David Tong

IE8 Developer Tools won’t open | David Tong: "This may sound stupid, but I ran into this issue that upon pressing F12 or choosing Tools > Developer Tools, the IE Developer Tools window does not show up. It is, however, showing up in the task bar.

The issue is that when you have Developer Tools detached from the browser window, and you don’t close it before exiting the browser, the next time you open IE8 and try to run Developer Tools, the Developer Tools window will be an ‘invisible state’ (simply put…).

The solution is to right-click on the tab/ icon in your Windows task bar and choose Maximize. If there is no such option in Windows 7, hover on the tab/ icon in the task bar for a moment until an overlay pops up that shows all the IE8 instances and the Developer Tools representation view, right-click on the Developer Tools’ representation view and choose Maximize. Alternatively, you may do Alt+Spacebar, then hit ‘m’ and start using your arrow keys to move the window around. You will then be glad to see your long-lost friend!

It sounds stupid, but this is still a kind of IE bug."

'via Blog this'

Sunday, March 31, 2013

Control flow differences between Ruby Procs and Lambdas.

Control flow differences between Ruby Procs and Lambdas.: "One of the main differences between Procs and Lambdas in Ruby is how they work with return and breakstatements. The key to understanding this will make you opt for one control flow over the other."

'via Blog this'

A Closure Is Not Always A Closure In Ruby

A Closure Is Not Always A Closure In Ruby: "Often you don’t really think about what particular language features mean, until those features come and bite you. For me one such feature was Ruby’s instance_eval. We all know how instance_eval works, it’s pretty straight forward. "

'via Blog this'

Monday, March 25, 2013

jQuery text highlighter and filter Plugin | Web Resources | Nacodes

jQuery text highlighter and filter Plugin | Web Resources | Nacodes:
When someone types anything in it then a set area on your page becomes responsive and only displays part of that area which contains the word or string typed by the user.


'via Blog this'

A horizontal navigation jquery plugin | Web Resources | Nacodes

A horizontal navigation jquery plugin | Web Resources | Nacodes: "HorizontalNav is a jQuery plugin that spans a horizontal navigation to fit the full width of it's container. If you've ever had to create this effect on a project, you'll know it's pretty annoying to do. But this plugin makes it easy and adds support for IE7."

'via Blog this'

Friday, March 22, 2013

Sails.js | The future of API development

Sails.js | The future of API development:
Sails.js makes it easy to build custom, enterprise-grade Node.js apps. It is designed to resemble the MVC architecture from frameworks like Ruby on Rails, but with support for the more modern, data-oriented style of web app development. It's especially good for building realtime features like chat.

'via Blog this'

Thursday, March 21, 2013

Easing Functions Cheat Sheet

Easing Functions Cheat Sheet:


Easing function specifies the speed of animation progresses to make it more realistic.
The real object doesn’t begin its movement instantly and at a constant rate. When we open the drawer, we first give it acceleration, and then we slow it down. When something falls, it first goes down faster and faster, and then bounces back after it hits the floor.


'via Blog this'

The Ruby on Rails Tutorial for Rails 4.0 (beta) - Ruby on Rails Tutorial News

The Ruby on Rails Tutorial for Rails 4.0 (beta) - Ruby on Rails Tutorial News:
Rails 4.0–compatible version of the Ruby on Rails Tutorial book is now available online. Sales of the ebook and a supplementary screencast will start after the final version of Rails 4.0 is released (available at a large discount to current customers). A new third edition is planned for later this year (with upgrade discounts for current customers)

'via Blog this'

Monday, March 18, 2013

Parallax Slider - Full Collection of jQuery Sliders

Parallax Slider - Full Collection of jQuery Sliders:
Parallax Effect – Full Collection of Sliders includes 4 types of sliders:
  1. Classic
  2. Perpetuum Mobile
  3. Mouse Interaction
  4. Ultra

NEW: From these sliders you can create, in minutes, sidebar banners.
CLASSIC
\\
  • touch screen navigation support for mobile
  • responsive design. Available parameter to disable responsive behavior
  • 2 predefined skins: bullets & thumbs
  • layered elements: permits almost unlimited number of layers, images or texts.
  • animated text from any direction: top, bottom, left and right. CSS and HTML formated
  • external url link parameter for each slide
  • target parameter: _blank or _self
  • width & height parameters
  • autoplay parameter
  • loop parameter
  • show/hide controllers parameter
  • show/hide bottom thumbs parameter
  • circle timer parameters for color, dimensions, transparency
  • you can include YouTube, Vimeo & HTML5
  • you can insert multiple instances in the same page with the same skin or using a different skin.
  • detailed help documentation included. Also, all the examples present in the preview are included in the download .zip
PERPETUUM MOBILE
\\
  • touch screen navigation support for mobile
  • responsive design. Available parameter to disable responsive behaviour
  • 2 predefined skins: bullets & thumbs
  • layered elements: permits almost unlimited number of layers, images or texts.
  • animated text from any direction: top, bottom, left and right. CSS and HTML formated
  • perpetuum move: define multiple backgrounds elements that can have a perpetuum move. For each background you can enable or disable this behavior.
  • continuous move for layers: you can choose which layer will move continuously between 2 positions just by setting additional parameters
  • rotary motion for layers: you can choose which layer will rotate just by setting additional parameters. This feature is working for all browsers, except IE7 & IE8
  • width & height parameters
  • external url link parameter for each slide
  • target parameter: _blank or _self
  • autoplay parameter
  • loop parameter
  • show/hide controllers parameter
  • show/hide bottom thumbs parameter
  • circle timer parameters for color, dimensions, transparency
  • you can include YouTube, Vimeo & HTML5
  • you can insert multiple instances in the same page with the same skin or using a different skin.
  • detailed help documentation included. Also, all the examples present in the preview are included in the download .zip
MOUSE INTERACTION
\\
  • touch screen navigation support for mobile
  • responsive design. Available parameter to disable responsive behaviour
  • 2 predefined skins: bullets & thumbs
  • layered elements: permits almost unlimited number of layers, images or texts.
  • animated text from any direction: top, bottom, left and right. CSS and HTML formated
  • mouse interaction: by moving the mouse over the slider, the elements will react. Available parameter to disable this behavior.
  • continuous move for layers: you can choose which layer will move continuously between 2 positions just by setting additional parameters
  • rotary motion for layers: you can choose which layer will rotate just by setting additional parameters. This feature is working for all browsers, except IE7 & IE8
  • width & height parameters
  • external url link parameter for each slide
  • target parameter: _blank or _self
  • autoplay parameter
  • loop parameter
  • show/hide controllers parameter
  • show/hide bottom thumbs parameter
  • circle timer parameters for color, dimensions, transparency
  • you can include YouTube, Vimeo & HTML5
  • you can insert multiple instances in the same page with the same skin or using a different skin.
  • detailed help documentation included. Also, all the examples present in the preview are included in the download .zip
ULTRA
\\
  • touch screen navigation support for mobile
  • responsive design. Available parameter to disable responsive behaviour
  • 2 predefined skins: bullets & thumbs
  • layered elements: permits almost unlimited number of layers, images or texts.
  • animated text from any direction: top, bottom, left and right. CSS and HTML formated
  • asynchronous move for backgrounds: Define multiple backgrounds elements that can have an asynchronous move, customizable through parameters.
  • width & height parameters
  • external url link parameter for each slide
  • target parameter: _blank or _self
  • autoplay parameter
  • loop parameter
  • show/hide controllers parameter
  • show/hide bottom thumbs parameter
  • circle timer parameters for color, dimensions, transparency
  • you can include YouTube, Vimeo & HTML5
  • you can insert multiple instances in the same page with the same skin or using a different skin.
  • detailed help documentation included. Also, all the examples present in the preview are included in the download .zip

'via Blog this'

Sunday, March 17, 2013

-ms-interpolation-mode property (Internet Explorer)

-ms-interpolation-mode property (Internet Explorer):


Syntax

-ms-interpolation-mode: nearest-neighbor | bicubic

Property values

nearest-neighbor
Always use nearest neighbor interpolation mode.
bicubic
Always use high-quality bicubic interpolation mode.


'via Blog this'

Saturday, March 16, 2013

4 Simple CSS3 Animation Tutorials

4 Simple CSS3 Animation Tutorials:
CSS3 allows you to create interactive animations using basic CSS code for your website. These tutorials are simple CSS3 animation tutorials that use 2D transforms to create some neat animation effects.

'via Blog this'