Wednesday, February 10, 2016

My first Arduino examples

1. Light sensor to control the brightness of an LED

int led = 4;           // the PWM pin the LED is attached to
int brightness = 0;

void setup() {

  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  pinMode(led, OUTPUT);
}

void loop() {

  // read the input on analog pin 0:
  int sensorValue = analogRead(A1);
  // Convert the analog reading (which goes from 0 - 1023) to (0 - 255)
  brightness = 255 - sensorValue * 1.06;
  // print out the value you read:
  Serial.println(brightness);
  analogWrite(led, brightness);
}





2. Keyboard to control LEDs. Send 1 to turn on red LED and 2 to turn on green LED

const int redPin = 2;
const int greenPin = 3;
int x = 4;

void setup() {

  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
}

void loop() {

  // if there's any serial available, read it:
  while (Serial.available() > 0) {

    // look for the next valid integer in incoming serial stream

    x = Serial.parseInt();
    if (x == 1) {
      digitalWrite(redPin, HIGH);
      digitalWrite(greenPin, LOW);
    }
    else if (x == 2) {
      digitalWrite(greenPin, HIGH);
      digitalWrite(redPin, LOW);
    }

    Serial.print(x);

  }
}





3. Keyboard to control the brightness of an LED. Send brightness value (0-255) from keyboard to control the LED.


// pin for the LED, make sure you use a PWM~ pin
const int ledPin = 6;
int x = 444;

void setup() {

  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
  pinMode(ledPin, OUTPUT);
}

void loop() {

  // if there's any serial available, read it:
  while (Serial.available() > 0) {
    Serial.println("Enter the brightness of LED between 0 and 255");
    // look for the next valid integer in the incoming serial stream:
    x = Serial.parseInt();
    Serial.println(x);
    analogWrite(ledPin, constrain(x, 0, 255));  
  }
}


Thursday, January 14, 2016

Friday, January 01, 2016

Districts of West Yorkshire

Districts of West Yorkshire

Areas of Kirklees

Huddersfield sub-areas: Huddersfield North (blue) includes Ashbrow, Greenhead and Lindley; Huddersfield South (orange) includes Dalton, Almondbury, Newsome, Crosland Moor and Netherton.

See  Regions of England
See  Counties of Yorkshire and the Humber

Counties of Yorkshire and the Humber



See Regions of England

Monday, November 30, 2015

My Briggs Myers Type Indicator - ISTP

ISTP (Introversion, Sensing, Thinking, Perceptiongenerally have the following traits:

  • Interested in how and why things work
  • Do not function well in regimented, structured environments; they will either feel stifled or become intensely bored
  • Constantly gather facts about their environment and store them away
  • Have an excellent ability to apply logic and reason to their immense store of facts to solve problems or discover how things work
  • Learn best "hands-on"
  • Usually able to master theory and abstract thinking, but don't particularly like dealing with it unless they see a practical application
  • Action-oriented "doers"
  • Focused on living in the present, rather than the future
  • Love variety and new experiences
  • Highly practical and realistic
  • Excellent "trouble-shooters", able to quickly find solutions to a wide variety of practical problems
  • Results-oriented; they like to see immediate results for their efforts
  • Usually laid-back and easy-going with people
  • Risk-takers who thrive on action
  • Independent and determined - usually dislike committing themselves
  • Usually quite self-confident

ISTP strengths

ISTPs tend to enjoy learning and perfecting a craft through their patient application of skills. They can remain calm while managing a crisis, quickly deciding what needs to be done to solve the problem.

Potential development areas for ISTPs

ISTP people risk focusing so much on what needs to be done immediately that they fail to see the big picture. They don’t always follow through on projects that require them to work closely with others.  

Typical ISTP characteristicsTypical characteristics of an ISTP

ISTPs are typically analytical, practical, realistic but also logical and adaptable. 
Their most common characteristics are shown here in the form of a fun Typie. 

ISTP careers & career ideas

ISTPs like analysing problems and responding to crises. They enjoy working autonomously, and tend to prefer hands-on or analytical work. Jobs that might appeal to ISTPs might include surgery, agriculture or engineering. 

ISTP stressors

ISTPs under stress

ISTPs will typically become stressed in the situations shown in this MBTI stress head illustration. In extreme circumstances they will tend to feel alienated and upset, and prone to whingeing and hypersensitivity. 

Saturday, September 12, 2015

Job hopping facts for managers

2009 survey by career network ExecuNet found that executives now stay with an organization for only 3.3 years, on average, before moving on. 

Career histories of 1,001 chief executive officers who lead the largest corporations in Europe and the U.S. reveals that CEOs have worked, on average, for just three employers during their careers. And although lifetime employment is increasingly rare, a quarter of the CEOs I looked at spent an entire career with the same firm. Overall, the more years people stayed with a company, the faster they made it to the top.

Job changes of 14,000 non-CEO executives to compare the outcomes of their inside and outside moves. Again, inside moves produced a considerably higher percentage and faster pace of promotions.

A consultant at another firm told me that a short stint—less than three years or so—probably wouldn’t be sufficient to produce any meaningful contribution to a firm and thus wouldn’t do much to demonstrate a candidate’s value. 

A significant proportion of executives succeed by sticking it out with one company, so consider cross-employer moves only if they’ll considerably increase your employability.

Fast, upward leaps may not secure success. Often, a slower ascent of lateral and upward moves is what pays off.

While there is no optimal time to stay in a job, the secret is to show progression. You need to demonstrate on your CV that you have mastered the role, providing value to your employer and earning recognition for your efforts. This can come in the form of promotion and/or additional work responsibility and often takes four or more years to attain, on average.

since 2008, large companies have been more inclined than they were in 2001 to fill vacancies from within.

University hiring boards – possibly spurred on by headhunters – have become fixated on the idea that it is necessary to hire a vice-chancellor from an external institution. The same is happening for appointments at the level of pro vice-chancellor and deputy vice-chancellor. While evidence about the effect of this is unclear, work by Sue Shepherd at the University of Kent shows that external hires are more likely to be male. Women stand a greater chance of being promoted from within an institution.

Wednesday, September 02, 2015

UK further and higher education

Level
Degree
Year
Credits
Level 1
GCSE (grades D-G)


Level 2
GCSE (grades A*-C)


Level 3
AS, A level


Level 4
HNC, Certificate of Higher Education
Undergraduate Year 1
120
Level 5
FdA, FdSc, HND, Diplomas of Higher Education
Undergraduate Year 2
240
Level 6
BA, BSc Ordinary degree
Undergraduate Year 3
300

BA (Hons),
BSc (Hons)
Undergraduate Year 3
360
Level 7
Postgraduate Certificate
PGT term 1
60

Postgraduate Diploma, Integrated Masters (4-year MEng or MSci)
PGT term 2
120


MA, MSc, MPhil, MRes
PGT term 3
180
Level 8
PhD
Doctorate


FdA: Foundation of Art
FdSc: Foundation of Science
FdEng: Foundation of Engineering

Higher education in Saudi and Saudi students in western universities funded by government scholarships

Since the 1940s, Saudi Arabia has funded large-scale government scholarships for students to study abroad, significantly expanded in 2005 un...