Tuesday, 26 June 2012

Rogers Cisco DPC3825 Router - DNS Server for Static IP

Be careful, don't use the Router's IP address as the DSN Server.

You can either get the DNS IP from the Status/Gateway tab of the Router Web page or from the setting of the computer using the DHCP server.

Wednesday, 20 June 2012

Responsive Web Design

Responsive design is a style of web design that responds to the user as they arrive at the web page. The design will display the content most effectively with different devices.

Web pages must be flexible and adapt, they must look different depending upon what is displaying them.

Don't crate separate websites for each device, it is only a quick and dirty approach.

Responsive design treats mobile and desktop the same. But the pages that are created may look vastly different, while containing the same content.

CSS media queries were introduced as part of CSS3 and they improved on the idea of media types by looking at the actual physical specifications being sent from the browser to the computer.


 For example, to send a specific style sheet only to iPhones, you would write:
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 480px)" href="480-styles.css"> 

This can handle any device that has a width less than 480px.

Small Screen Need the Important Things First

Wednesday, 6 June 2012

Tuesday, 5 June 2012

VLC - Display video on a specific monitor, fullscreen


On Windows 7:

Method 1
  • Tools, Preferences
  • Video, uncheck "Show media title on video"
  • Video, check "Fullscreen"
  • Interface, uncheck "Show controls in full screen mode" - you can control the play back on the main screen of the VLS icon (can pause, forward and backward but cannot jump to a position)
  • Output, select Default
  • Drag the VLC to the monitor you would like to display
  • Close VLC
Issues:
  • You will see an image of the of the default size of VLC before (and then full screen showing the video) and after the video (a little bit better way is close the player right before the end of the video from the task bar)

Method 2
  • Tools, Preferences
  • Show settings, All
  • Video, uncheck "Embeeded video"
  • Output modules, select "DirectX (DirectDraw) video output
  • Output modules, DirectX, Name of desired display device, select "\\.\DISPLAY2" for the second monitor
  • Make sure the play list, the interface is previously closed on the other monitor
Issues:
  • The color scheme may change (to Windows 7 basic) when open and close VLC
In case you have opened the video in the wrong monitor, you can send the windows to another screen by pressing <Windows><Shift><left arrow/right arrow> keys in Vista / Windows 7.


On Mac:


VLC, Preferences, Video
  • check Fullscreen
  • Fullscreen video device, select the display

Monday, 4 June 2012

QR Code

QR codes are squares of black and white patterns that encode the URLs of Web sites in a format that can be scanned and deciphered by smartphones equipped with the right apps.


To Let Go

...


To Let Go....


Is not to enable,
but to allow learning from natural consequences.



Is not to care for,
but to care about.



Is not to fix,
but to be supportive.



Is not to be in the middle arranging all the outcome,
but to allow others to effect their own outcomes.



...

Pharyngeal Resonance

The pharyngeal (throat) resonator is the area in your throat, back of your mouth and behind your nose.
It is an area at the back of the throat that connects the mouth to the nasal cavity in the head, where your head resonance takes place. So it functions a little bit like a conduit or go-between, between the two areas.

You can feel the pharyngeal resonator by saying "ng", like in "sing". It's not like any other resonator, it's more like an application to your chest, mix or head, therefore using the pharyngeal will aid you when you go from chest to head because the resonator is used in both.

To clear up, the pharyngeal is a resonator that is used in combination with your other resonators, it's not stand-alone like chest and head.

You can't really have pharyngeal resonance on its own. You will usually have head/pharyngeal, or mouth/pharyngeal, or head/mouth/pharyngeal. Obviously, a dose of pharyngeal resonance is a healthy component of any type of Mix, although depending on the sound you are after, you can have more or less of it.

SQL Server 2012 - Sequence Object


The Release of SQL Server 2012 introduces the sequence object to the world of SQL Server. A sequence is a user defined, schema bound object that will generate a sequence of numeric values (in ascending or descending order) according to specification. Unlike identity columns, a sequence is created independent of any table.

A few interesting differences between the two are:
  • A Sequence object is independent of any table, whereas the Identity column property is table specific
  • Unlike Identity, you can generate a new sequence value before using it in a SQL Statement
  • You can define both the minimum & maximum values, as well as cycling & cache size options for a sequence
  • Unlike Identity, a SQL object will increment its value only when it is explicitly called
A detailed list of differences between Identity and Sequence objects can be found here.


CREATE SEQUENCE dbo.demo_2012_sequence AS INT
START WITH 1
INCREMENT BY 1
MINVALUE 1
MAXVALUE 10000
CACHE 20 CYCLE;

-- get one value out of the sequence object at one time
SELECT NEXT VALUE FOR dbo.demo_2012_sequence AS seq_no;
GO
SELECT NEXT VALUE FOR dbo.demo_2012_sequence AS next_seq_no;
GO

Wednesday, 30 May 2012

6 Portrait Lighting Patterns Every Photographer Should Know

6 Portrait Lighting Patterns Every Photographer Should Know

four common portrait lighting patterns:
  • Split lighting
  • Loop lighting
  • Rembrandt lighting
  • Butterfly lighting

Style of lighting:
  • Broad lighting
  • Short lighting



Sunday, 27 May 2012

Redownload Mac OS X Lion

  • Open the Mac App Store
  • Hold the Option key and click on “Purchases”
  • Click the Download button
  • The installer will be downloaded into the Application folder


  • Friday, 25 May 2012

    The User Defined Server Roles in SQL 2012

    The new user defined server role is a secure and new feature added in SQL Server 2012. In versions before SQL Server 2012, we only had fixed server roles in SQL Server.

    Some stored procedures used in fixed server role are not valid anymore and will be removed and replaced to support this new feature in the future.

    Sample code:


    USE [master]
    GO
    CREATE SERVER ROLE [customServerRole] AUTHORIZATION [sa]
    
    
    ALTER SERVER ROLE [customServerRole] ADD MEMBER [<user name>]
    
    
    ALTER SERVER ROLE [customServerRole] DROP MEMBER [<user name>]
    
    
    ALTER SERVER ROLE [setupadmin] ADD MEMBER [customServerRole]
    
    

    Tuesday, 22 May 2012

    Contained databases

    The main idea is to remove the independency between the Database Engine and the database. The contained databases are independent databases that do not require a login.

    Tuesday, 15 May 2012

    CSS Vendor (browser) Prefixes

    CSS vendor prefixes or CSS browser prefixes are a way for browser makers to add support for new CSS features in a sort of testing and experimentation period. Browser prefixes are used to add new features that may not be part of a formal specification and to implement features in a specification that hasn’t been finalized.  It is temporary.

    The CSS browser prefixes are:
    • Android: -webkit- 
    • Chrome: -webkit- 
    • Firefox: -moz- 
    • Internet Explorer: -ms- 
    • iOS: -webkit- 
    • Opera: -o- 
    • Safari: -webkit-
    Example:
    Setting a rounded corner on a box:

    • -moz-border-radius: 10px 5px;
    • -webkit-border-top-left-radius: 10px;
    • -webkit-border-top-right-radius: 5px;
    • -webkit-border-bottom-right-radius: 10px;
    • -webkit-border-bottom-left-radius: 5px;
    • border-radius: 10px 5px;

    Surround with... - SQL Server 2012

    The surround with let us generate BEGIN END clauses, WHILE Loops and IF conditions easily.

     To activate this option, right click in the SQL Server Management Studio Script pane and select "Surround With..."

    Insert snippet - SQL Server 2012

    The insert snippet let us create code easily.

    To start the Insert Snippet, right click in the SQL Server Management Studio Script pane and select Insert Snippet.

    You can easily generate code to create functions, indexes, logins, roles, schemas, stored procedures, synonyms, tables and triggers.

    For stored procedure, it generates code for 3 scenarios:
    • the basic procedure, 
    • a procedure with cursors and 
    • a procedure with output parameters

    Monday, 14 May 2012

    How to Rap?

    Rap is all about what you’re saying and how you’re saying it!


    Structure
    stress and unstressed syllables

    Iambic rhythm (more info...)
    • combination of stress and unstressed syllables
    • rhythm that the words establish in that line
    • rhythm is measured in small groups of syllables
    • when the rhythmic flow of two lines is identical, it maks them mesh together very well
    example:


    Its FAIR - to SAY - I’m GRIND – in and PAV – in the WAY
    DUH  – da DUH  - da DUH -  da  DUH   - da da DUH – da da DUH


    and– the THINGS – you TAKE – for GRANT – ed I’m CLAIM – in  to DAY
    DUH  -  da  DUH     -  da  DUH  -  da  DUH   -  da da  DUH   -  da da DUH

    Double Timing
    • used a lot in southern hip hop music (slower tempos used, 72bpm)
    • If the tempo of the instrumental you’re rapping over is 65bpm then you rap at a rate of 130bpm – you double time it
    • squeeze double the amount of stressed syllables you normally would in one line
    Half Timing
    • more popular in genres like Dubstep, Dance and upbeat Pop music
    • If the beat has a tempo of 140bpm then you rap at a tempo of 70bpm
    • This requires you to squeeze half the amount of stressed syllables you normally would into one line – in effect you half-time the beat
    Cadence and Rhythm...

    Filler lines are basically generic rhymes that are either used to keep the momentum going or to setup punch-lines.  But they typically don’t have the “Wow” factor of a hard hitting punch-line. 
    Punch-lines are those prized lyrics that really grab your attention.  They hit you dead in the chest and leave a lasting impression.



    Compression
    One of the most misunderstood and most valuable tools for producing great rap vox is compression.  The function of a compressor is to reduce the peaks in an audio signal so that the overall dynamic range of a vocal performance is reduced.  Understanding and utilizing compression correctly can make your hip-hop vocals punchier, more intelligible, and most importantly, it will give them that professional feel.  Properly applied compression is extremely important for rap vocals because the rapper is normally saying a lot in a short amount of time. You want to keep a listener’s attention, and every word needs to be understandable to your audience.

    In terms of compressor settings, I like to run some very mild compression on the input signal to tame some of the audio peaks and then tighten that up with some moderate compression on the output signal.  For hip-hop vocals, I like to start with a ratio range of 2:1 to 4:1 and an attack of 7 to 10ms.  If you are one of those “speed rappers” you might  want an even quicker attack time of 3 to 5ms and a higher ratio of 8:1.  In regards to the release time, a quicker setting will give you a tamer vocal while a slower setting will give you a punchier rap vocal. 

    EQ
    EQ-ing is a lot less difficult to understand than compression and can be a great tool for getting your rap vocals to cut through your mix.  Again, this is important because your hip-hop vocalist is typically saying a lot in a short amount of time, and every word must be understandable.  As a rule of thumb, if you have to do major EQ-ing to achieve the desired tone you might want to go back and experiment with your mic placement and vocalist orientation (to the mic).


    Friday, 11 May 2012

    Night Photography

    The essentials:
    • tripod,
    • remote and
    • gloves
    Techniques:
    Zooming
    • changing the focal length while the shutter is open
    • position your hand on the zoom ring prior to beginning the exposure, you will avoid the camera shake when coming in contact for zooming and ensure a smooth zoom
    Light Painting
    Timing and patterns
    • shot events that are not supposed to appear together (e.g. three colors of a traffic light)
    Tip:
    Lock the mirror

    Lightroom Catelog

    Lightroom catalogs do slow as the catalog sizes increase.  It isn't noticable until you reach around 15,000 + images within a single catalog.

    It is recommended to do the following for big catalog from time to time to optimize the catalog efficiency:

    File –> Optimize Catalog...

    Lightroom Previews

    Render 1:1 Previews for all of the images: it will save enormous amounts of time during developing since Lightroom will no longer have to pause to render a preview when moving from image to image, or when zooming into an image.

    Library –> Previews –> Render 1:1 Previews –> Build All