Strengthen yourself in the Lord
- Remember the presence of God and what it is to worship.
Sometimes when you are under a cloud, go to a place and worship God with reckless abandon and demonstrate radical rejoicing. Rejoice when the affliction is there. David was a man after Gods heart. - Review the promises of God. 3×5 cards, promises for your life are like a rudder. Don’t get blown of course. Treasure the word of the Lords spoken over your life, don’t despise the words over your life. If you want to make it through difficult times, don’t forget the promise. Don’t operate out of fear, envy, jealousy. Let the Lord speak into your heart.
- Find people of faith to hang around. These are lifestyles, not just for hard times. Serve everyone but in relationships where it’s give and receive, choose carefully. I have enough of a challenge to walk in faith without hanging around depressing people and receiving from them. I’m fragile, I can easily get discouraged. David strengthens himself in the Lord. Leaders help others to see their higher calling and to be overcomers. The back door to the throne room, 1 Samuel 30 v 6.
But David strengthened himself in the Lord his God.
- We all face difficulties, our metal is proven in those moments. Obey God, be honest with how you feel.
The Factory Pattern in .NET – Republish
Simulate Popular Mobile Devices for Testing : The Official Microsoft ASP.NET Site
Encourage Yourself in the Lord!
True Origin
In him the image and likeness of God is made visible in human life in order that every one may recognize their true origin in him.
Colossians 1:15
Taken from Divine Embrace
WPF add ScrollViewer to UniformGrid programatically
private static TabItem RenderSingleRow(String tabName, DataTable singleRow, int rowNumber)
{
try
{
var currentTabItem = new TabItem {Name = tabName, Header = tabName};
var scrollViewer = new ScrollViewer
{
CanContentScroll = true,
HorizontalScrollBarVisibility = ScrollBarVisibility.Auto,
VerticalScrollBarVisibility = ScrollBarVisibility.Auto
};
var mainUniformGrid = new UniformGrid
{
Columns = 2,
VerticalAlignment = VerticalAlignment.Top,
Margin = UniformGridMargin
};
foreach (DataColumn singleRowColumn in singleRow.Columns)
{
StackPanel singleStackPanel = CreateSingleStackPanel(singleRowColumn.ColumnName,
singleRow.Rows[rowNumber][singleRowColumn].
ToString());
if (singleStackPanel != null) mainUniformGrid.Children.Add(singleStackPanel);
}
// CurrentTabItem.Content = MainUniformGrid;
scrollViewer.Content = mainUniformGrid;
currentTabItem.Content = scrollViewer;
return currentTabItem;
}
catch
{
return null;
}
}
Head First Design Patterns: The Observer Pattern
OO Principles: Strive for loosely coupled designs between objects that interact.
OO Patterns: Observer – defines a one to many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Subjects/Observables update Observers using a common interface.
public interface ISubject
{
void RegisterObserver(IObserver observer);
void RemoveObserver(IObserver observer);
void NotifyObservers();
}
public class WeatherData : ISubject
{
private List<IObserver> _observers = new List<IObserver>();
private float _temperature;
private float _humidity;
private float _pressure;
public void RegisterObserver(IObserver observer)
{
_observers.Add(observer);
}
public void RemoveObserver(IObserver observer)
{
_observers.Remove(observer);
}
public void NotifyObservers()
{
foreach (IObserver observer in _observers)
{
observer.Update(_temperature, _humidity, _pressure);
}
}
public void MeasurementsChanged()
{
NotifyObservers();
}
public void SetMeasurements(float temperature, float humidity, float pressure)
{
this._temperature = temperature;
this._humidity = humidity;
this._pressure = pressure;
MeasurementsChanged();
}
}
public interface IObserver
{
void Update(float temperature, float humidity, float pressure);
}
public interface IDisplayElement
{
void Display();
}
public class CurrentConditionsDisplay : IObserver, IDisplayElement
{
private float _temperature;
private float _humidity;
private ISubject _weatherData;
public CurrentConditionsDisplay(ISubject weatherData)
{
this._weatherData = weatherData;
weatherData.RegisterObserver(this);
}
public void Update(float temperature, float humidity, float pressure)
{
this._temperature = temperature;
this._humidity = humidity;
Display();
}
public void Display()
{
Console.WriteLine(“Current conditions: ” + _temperature
+ “F degrees and ” + _humidity + “% humidity”);
}
}
Head First Design Patterns: Intro to Design Patterns
OO Basics: Abstraction, Encapsulation, Polymorphism, Inheritance
OO Principles: Encapsulate what varies, Favour composition over inheritance, Program to interfaces, not implementations.
OO Patterns: Strategy – defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
public abstract class Duck
{
public IFlyBehavior FlyBehavior { get; set; }
public IQuackBehavior QuackBehavior { get; set; }
public abstract void Display();
public void PerformFly()
{
FlyBehavior.Fly();
}
public void PerformQuack()
{
QuackBehavior.Quack();
}
public void Swim()
{
Console.WriteLine(“All ducks float, even decoys!”);
}
}
public class MallardDuck : Duck
{
public MallardDuck()
{
QuackBehavior = new LoudQuack();
FlyBehavior = new FlyWithWings();
}
override public void Display()
{
Console.WriteLine(“I’m a real Mallard duck”);
}
}
public interface IFlyBehavior
{
void Fly();
}
public class FlyWithWings : IFlyBehavior
{
public void Fly()
{
Console.WriteLine(“I’m flying!!”);
}
}
public interface IQuackBehavior
{
void Quack();
}
// Name it LoadQuack to avoid conflict with method name
public class LoudQuack : IQuackBehavior
{
public void Quack()
{
Console.WriteLine(“LoudQuack”);
}
}
apple tv and firecore
Seas0nPass provides an UNTETHERED jailbreak of the 2nd gen Apple TV running the latest 5.0.2 (iOS 5.1.1 – 9B830) software that was released on June 6th, 2012.
http://files.firecore.com/SP/Seas0nPass.zip
Launch Seas0nPass and choose Create IPSW. When complete, connect your Apple TV to your Mac/PC using a micro-USB cable (leave power cable disconnected). Once the light on the front of the Apple TV begins to flash rapidly, point the remote at the Apple TV and hold both the MENU and PLAY/PAUSE buttons for 7 seven seconds.
Run FireCore from your mac and install the firecore files to the Apple TV.
http://support.firecore.com/entries/387605