Sunday, December 26, 2010

Mastebration With Shoe

Forest - the losses and gains


How has the treasures of nature?
What is the profit side
a loss what side?

Forests are the green lungs of our planet, producing about 27
mld.ton oxygen per year,
and absorb carbon dioxide and
contained in the atmosphere pollution.
Some trees (pine, juniper and birch)
emit the atmosphere of so-called anti-microbial substances. phytoncides.
Forests protect against erosion and floods are a natural
storage reservoir, filter and store
healthy, clean water.
Forests currently occupy 28% of the country.

How much is a forest?

The cost consists of many elements:
- overheads holding
- the cost of planting a forest,
- the cost of work needed by the crop
- the cost of felling
- the cost of transport,
- the cost of planting a new or renewal forest.

This account does not include one important element that is
affect the forest ecosystem on the water, preventing floods,
the winds, the composition and purity of the atmosphere.

It also excludes the impact of the human psyche,
benefiting from the forest for recreational purposes, nor the impact on the undergrowth
and other plants and animals that make up the forest biocenosis.

In the assessment of the forest does not take these elements into account.
Can they become the cost side?
Is the price of wood will be higher by that?
How many years would need a new forest grew up?

Can be used creative mechanisms
science and technology to develop technologies, materials
replacing wood and paper?



forest is good nationwide, so
together we take care of its cleanliness and good condition,
to these unique qualities to serve future generations. His diverse

urokliwość variable at any time of year
encourages us to walk through the whole year.




Wednesday, December 22, 2010

How To Batteryman Otk

and I ran ..


I hate my computer, which constantly breaks down! -.-
early pictures are long .. -.-

Well, but, well, I'll show them until today. Probably last time Christmas cards this year, unless something else will be up today. ;)





Inherently studs with scrap.com.pl , as in the previous pages :) I
securities ILS.








And such a festive accent to the end;)

very Happy Christmas wish: *

Thursday, December 2, 2010

License For Selling Homemade Roducts

rush, rush: D

.. Because the holidays a little time I budge until the cards: D

: *

How ziiimnooo: (Waiting for the bus is not a pleasant activity -.-
only positive aspect - still not arrived and I could do cards: D
Overall I did a half day .. but always something. By the way, I bought wait a few ribbons, and even on a package of ILS. :) Sorry for
pictures, not enough of the camera is still shoddy this weather .. -, -
And Amber that she did for the cosmic background: D

Collectively:


And after another:)
(No more pictures 'standing' -.-)
















It behind. I think they still torment some. :)

warm embrace: *





Saturday, November 27, 2010

How Do I Find The Model Of My Burton Snowboard

boat Zhurnal.

Hello: * The newly
I hope I go back to the form;)
And without unnecessary talk, but I'm not good at this, I present to small-scale fashion magazines. :)













And for good measure my wyżywnik. I did not come. That's tough.



best wishes: *

Sunday, November 14, 2010

Cover Pipes Behind Pedestal

Summary of current actions in the project.

Hi, in the final straight in the competition was not very active enough, it was associated with work and study.

Returning to the summary. In the initial phase of the project (ie during the competition:)) I focused mainly on creating a strong functional base on which to build web applications. In my case, this is a forum. As part of the base includes interfaces for handling database by Nhibernate, many useful models and tools (Event Aggregator, pattern specification, validation mechanisms in support as well as tools for building closer to the web as if assetManager ViewModel). In fact, This first phase was completed. Of course you can not predict everything you'll need some base already is.

Unfortunately lately I could not devote much time to the project. Therefore, it is not functional from the presentation. Well, unfortunately, so did it:) Anyway, that's all and good luck to you and other participants of the competition.

Friday, November 5, 2010

Muslim Dua For Wedding Card

elearningowy system for schools

today, was put to use e-learning platform mini - called Epsilon.

As Mr. Einstein used to say - "Everything should be as easy as possible, but not simpler." And this is the motto of this platform.



created for one of the schools, however, been written so universally and flexibly that it can be easily configured and adapted to each unit.

options such as adding and editing items allows customize the platform to the specific needs of the school, you can add only those items that will be used in the system.



The topics can be easily attributed to the subject, give them my serial number and the class corresponding to tokowi teaching. In addition, the subject may be accompanied by graphic files and viewing the student's questions suggested an answer.

list of topics can be displayed on several pages, with the possibility of the sort.



to each student Topics may ask the question in the form of public comment on the content of the topic. The teacher can answer the question / comment.

registration training is provided from the controller and requires an official name (First Name) and your nickname and password.

current version of the system requires the authorization of the student to be able to browse this platform. Registration is done by entering your e-mail address you used to log on, and to answer questions related to a specific school. The idea of \u200b\u200bthis simple security to authorize the use of the material to students a particular school.



system is subjective, you can use it on free conditions are described in the words of the license. Permission to distribute the system between schools and forbid public benefit, primarily of material, because of the dissemination system.



interested, please contact us by e-mail: lukasdominikowski@gmail.com

Wednesday, October 20, 2010

Jeff Hardy Pants For Sale

Questo ERNESTO

became

Over a year ago has dawned in my mind the idea to create an adventure game set in a retro atmosphere. Long wondered about the story, looking for inspiration, I could imagine the different locations that seemed interesting at the end of sprecyzowałem a few key points.

a . The game MUST be in the old school spirit (mechanics, graphics, puzzles).
2. Graphics will be based on specific games created on the first computer with which I was aware of or ZX Spectrum.
3. Story despite the high degree of fancifulness ultimately proves to be consistent and logical (well, if possible:)).


Questo Ernesto is completely amateur production of virtually created only by me, most of the graphics pulled from the game, part of the transformed, he earned rest.

The same applies to the sphere of sound, turned into a multilektora and a few filters I have tried to differentiate words from pixelowych paragraph form. Sound Effects which I could not find the freesound.org / earned on their own.

Later in the game hear the Russian language, I hope that people who know this language does not burst out laughing inefficient translation caused a music-based online dictionary slownik.ukraincow.net / and their own memories from elementary school where I went to class profile of the Russian language was.

whole folded and obudowałem functions in Adventure Game Studio .
Below
publish the first two chapters - have fun.

Download the hamster
and perhaps filefront'a

Tuesday, October 19, 2010

Acrylic Nail Designs Weed

blowing boredom ..

And it strongly. But I knew that I would. This school sucked me all the joy of life and desire to any creative work. But nothing can handle. : P

wedding was, and cards that had to be done. Well done. The second almost identical to that of the previous post. I liked those roses:)
A wedding is the text: "This was not funny." : D
Christening, too, were but no longer have the strength to pinkish paper.





and more curved objects are not created.
greet me and my sore throat.
I thank everyone for their comments on previous post:): **


Saturday, October 2, 2010

How Long After An Accident Does It Take

Cache - musings and implementation

Currently working on UI design for my forum. In principle such as the simple solution is already ready. So I decided to get on with the slow implementations of the basic views. And here came the first problem. Namely, management, compression and caching JS and CSS files. As usual, we have that in the draft some solid scripts (eg jQuery), which are used for each view, so embarrassing that they were cached and compressed. So I sat down to solve this problem or implementations of the wrapper to the standard cache mechanism which is available in ASP.NET. Just as with HttpContextem I want to be highly touted.

Interface and Class Cache
As you can guess the cache class will be transposed ICache interface. First, it presents what it looks like later a brief description. Public interface
 ICache 
{
\u0026lt;T> void Set (string key, object value, DateTime absoluteExpiration,
slidingExpiration TimeSpan);
\u0026lt;T> void Set (string key, object value, DateTime absoluteExpiration);
void Set & # 60, T> (string key, object value, TimeSpan slidingExpiration);
\u0026lt;T> T Remove (string key);
void Clear ();
Get \u0026lt;T> T ( string key);}

interface has several methods that set the value in the cache. They differ on variables of the Expiration of the cache. AbsoluteExpiration variable specifies an absolute expiration date of the object that is SlidingExpiration but does not specify an expiration date and the time interval after which the value is due to expire. The rest should not raise doubts. The actual implementation looks like this: public class
 Cache: ICache 

{/ / omit variable declarations and functions set
...

\u0026lt;T> public T Remove (string key) {

return (T) _cache.Remove (key);}


public void Clear () {

IDictionaryEnumerator _cache.GetEnumerator cacheEnumerator = () ;

while (cacheEnumerator.MoveNext())
{
_cache.Remove(cacheEnumerator.Key.ToString());
}
}

public T Get<T>(string key)
{
Check.Argument.IsNotEmpty(key, "key");

lock (_syncObject)
{
T cacheItem = (T)_cache.Get(key);

if (cacheItem == null)
return default(T);
else
return cacheItem;
}
}

private void DoSet<T>(string key, object value,
absoluteExpiration DateTime, TimeSpan slidingExpiration)
{
Check.Argument.IsNotEmpty (key, "key");
Check.Argument.IsNotNull (value, "value");

if (_cache [key] == null)
_cache.Add (key, value, null, absoluteExpiration, slidingExpiration, CacheItemPriority.Normal, null);
else
_cache.Insert (key, value, null, absoluteExpiration,
slidingExpiration);
}}

I put only the most important parts of the code, I omitted all versions fukcji set as they relate to a private function DoSet with different parameters. As you can see the methods here operate on a cache of HttpRuntime.Cache. Clear function retrieves an enumerator from the collection and removes all objects from the cache. Get The function retrieves the value from cache, if there is it returns the default value for the object. It is thread-safe (secure multi-threaded). The method DoSet inserted object to the cache. It checks whether there is an object with a given key. If so, instead of adding just inserts the new value to it.

In the next post should now show a mechanism related to the caching of CSS and JS files. Of course, I added tests associated with caching. In addition, slowly threw a graphical interface which will take effect in the forum.

Saturday, September 25, 2010

Play Free Techdecklive.com

HttpContext - Issues and Implementation of wrapper.

Hi today I came across during encoding rather unpleasant nuisance. Namely, it concerns an injection through IoC and download the current HttpContext context of the classes that need such session. cookies, etc. As we all know it is difficult to access HttpContext object and it's hard to easily inject. So I decided to write a wrapper to the HttpContext.

HttpContextProvider
Our house will inherit the class IHttpContextProvider. It will be a fundamental variable that will allow us to get into all HttpContextu current parameters. The object will look like this: public class
 HttpContextProvider: IHttpContextProvider 


{public Context System.Web.HttpContextBase

{get {return new HttpContextWrapper (HttpContext.Current);}}


public System.Web.HttpRequestBase
Request
{get {return Context.Request;}}


public System.Web.HttpResponseBase
Response {get {return
Context.Response;}}


public System.Collections.Specialized.NameValueCollection FormOrQueryString
{
get
{
if (Request.RequestType == 'POST') {

return Request.Form;}

return Request.QueryString;

}}}

Generally nothing particularly odd about this difficult subject. The only one that can arouse the curiosity is a mysterious class of System.Web HttpContextWrapper from the library. This class inherits from HttpContextBase and allows you to get the functionality of the current context. With this solution we have easy access to the container HttpContextu IoC as well as this helps us to test because, as most of you know a false context is quite an unpleasant task.

Session Manager
scribble All of these were associated with wanted to create a facility to manage the user session. The main solution that I wanted to add a strongly typed session handling. SessionManager class looks like this:
 public class SessionManager: ISessionManager 
{
private IHttpContextProvider _httpContextProvider;

public SessionManager (IHttpContextProvider provider) {

_httpContextProvider = provider;
}

\u0026lt;T> public void Set (string name, T value)
{
_httpContextProvider.Context.Session.Add(name, value);
}

public T Get<T>(string name)
{
return (T)_httpContextProvider.Context.Session[name];
}

public T TryGet<T>(string name)
{
try
{
return (T)_httpContextProvider.Context.Session[name];
}
catch (NullReferenceException e)
{
return default(T);
}
}

public void Abandon()
{
_httpContextProvider.Context.Session.Abandon();

}}
basic class has methods to get and set values \u200b\u200bin the session as well as the abandonment of the session. In addition, I added a method that takes the value TryGet session but when it returns, there is no default value for a given type. During normal sampling method throws an exception NullReferenceException Get what is sometimes undesirable. It is something like we have in the dictionary. However, unfortunately, a collection of sessions is not a dictionary. That's all for today.

Sunday, September 19, 2010

How To Fix A Jammed Dvd In Town & Country

Basic configurations - configuration files in Asp.net MVC

Today I want to show resolve the problem with the way the storage of basic information about the forum, eg, name, keywords.

While I was thinking the easiest solution is simply the idea of \u200b\u200bstoring it in a database. After deep thoughts stated that for basic information does not make sense also tie a database so I decided to use the configuration files that are not available on the platform. Given that, and so they are used when creating the site so it does not cause any zwieszonego burden of reading the data.

configuration files
As most of you know the configuration files are divided into sections. At the beginning create a forum for our basic sections which will hold the simplest information. It looks like this:
 \u0026lt;mForum Sitetitle = "mForum" 
MetaKeywords = "Forum, Board, Project,. Net
MetaDescription =" mForum is going to be Fully Implemented forum featured in C # on. NET platform "
MinPasswordLength = "5">
\u0026lt;/ mForum>
But not too much so I decided to mix configurations on the board to move to a separate configuration file. To our team knew about the main web.configu need to insert this line:
 \u0026lt;mForum configSource = "mForum.config" /> 

Settings
Class This class will store information about all the board settings. Nothing special in this class. Variables and objects that will contain data from the configuration file.
 public class Settings {

public Settings (Sitetitle string, string metaKeywords, metaDescription string, int minPasswordLength)
{
Check.Argument.IsNotEmpty (Sitetitle, "Sitetitle");
Check.Argument.IsNotEmpty (metaKeywords, "metaKeywords ");
Check.Argument.IsNotEmpty (metaDescription," metaDescription ");
Check.Argument.IsNotNull (minPasswordLength, "minPasswordLength");
Check.Argument.IsNotNegativeOrZero (minPasswordLength, "minPasswordLength");

Sitetitle = Sitetitle;
MetaKeywords = metaKeywords;
MetaDescription = metaDescription;
} public string

Sitetitle

{get;
internal set;}


...

}
Class SettingsConfigurationSection
Here we have the facility to be used in direct pulling data from configuration files. Data from the section are binded to this object. The object itself inherits from the class ConfigurationSection. It looks like this: public class
 SettingsConfigurationSection: ConfigurationSection 
{private static string
_sectionName = "mForum"

public static string SectionName
{
[DebuggerStepThrough]

get {return
_sectionName;
}

[DebuggerStepThrough]
set {
Check.Argument.IsNotEmpty
(value, "value");

_sectionName = value;}

}


[ConfigurationProperty (Sitetitle ", DefaultValue = "mForum")]
public string SiteTitle
{
[DebuggerStepThrough]
get
{
return (string)this["SiteTitle"];
}

[DebuggerStepThrough]
set
{
this["SiteTitle"] = value;
}
}

[ConfigurationProperty("MetaKeywords", DefaultValue = "")]
public string MetaKeywords
{
[DebuggerStepThrough]
get
{
return (string)this["MetaKeywords"];
}

[DebuggerStepThrough]
set

{this ["MetaKeywords"] = value;}

}

...
}
It consists of static variables that directly pull data from the section. In addition, there is one variable that is set on a permanent basis. This is the section name. Initializing Settings
class takes place during the registration IoC container as all other objects. There is nothing complicated. Feel free to source the exact implementation.

Thursday, September 16, 2010

Using Wood Boiler To Supplement Oil Burner

Reloaded HipHopRandki.pl

From August on the site hiphoprandki.pl ongoing modifications. Dating service in a climate of Hip Hop and gently went in the direction of social networking site. Introduced the 'Friends', where of course you can invite, search, delete, and most importantly, track your entries friends.

entries - that is totally a mini blog, a bit inspired by a Facebook Wall's, lets you post entries, thoughts, information and events on your profile. In addition, entries are visible in the panel at a friend.

was also totally changed the process of adding images, manage, and display. Limit has been changed, both the quantity and size of images - all of course in favor of the user:)

new algorithm and search interface, and the changing structure of a page and new graphics, the most noticeable changes naked eye. Besides

visible, naked and not naked eye, changes are also plenty of smaller, less noticeable, but significant in the comfort of use.

Is the key to success may be Web 2.0 and Features ajax'owe?
- so far, statistics indicate that

Monday, September 13, 2010

Gum Healing Extraction

communication between the services and controller ... Global

Hello today I would like to raise another problem which I encountered during the development of the project. The problem concerns the transmission of data between the controller and the services (service). Take a simple example. We have functions that the downloaded data from a user creates a topic and post on the forum then returns the id of both the subject and post. And here there is a problem when we need to ask a lot of data with the function of the service.

my thoughts when I decided to refer to the request and response mechanism, which is usually used in WCF services. We obviously do not use them but thanks to our project will be prepared for such an eventuality.

communication between the service and the controller
Communication between the service and the controller looks fairly straight. How might initially seem a mechanism that applies only needlessly obscures the code but as the project develops standardized communication will help to receive and develop the project. I distinguish two types of messages: Request (request) and Reply (response). Correspond to their appropriate types: BaseRequestMessage and BaseResponseMessage. Both types inherit from BaseMessage. Example request and response: public class
 LogOnRequest: BasicRequestMessage 
{public
LogOnDTO LogOnDTO {get; set;}}

And here we have the answer: Public class
 LogOnResponse: BasicResponseMessage 
{public bool
isValidated {get; set;}}


With this communication mechanism, and it looks pretty clearly and we are able to receive data from multiple services. Of course, the appropriate services and tests have modified to work with our new mechanism. But this I will not describe just invite you to browse the sources.

Thursday, September 9, 2010

Contraceptive Pill Microgynon 30 Diarrhea

filters and injecting dependencies ...

Hello today I would like a bit closer MvcExtensions global filters and one of the applications that will be with me in the system has by this mechanism.

simple problem: We easily be able to keep up information about the last time the user viewed the page or record made by his actions. When I first approached this problem came to me two solutions:
-First: Create BaseController from which all others inherit a method that will have to be carried out whenever execute a controller action.
-Second: Use filters to be imposed on the controller.

first solution seems quite fun but is at odds with the principle of the controller should not have in the logic. Moreover, it is difficult testable by such treatment. So I decided to take advantage of the second. As it turned out the problem associated with the attributes needed to inject dependencies is to perform a particular activity. Poszperałem a little bit and I found MvcExtension mechanism called global filters. By the way it is implemented in version 3 of the MVC framework.

UpdateUserLastActivityFilter
As I said before the first simple filter that I used is updating the last activity user. Same attribute is simple. If a user is logged on to the class calls the UserService that updates its activity. The attribute looks like this:
 [AttributeUsage (AttributeTargets.Method  
{get;
private set;}


public void OnResultExecuting (ResultExecutingContext filterContext)


{} public void

OnResultExecuted (ResultExecutedContext filterContext)
{
Check.Argument.IsNotNull (filterContext, "filterContext");

string username = filterContext.HttpContext.User.Identity.IsAuthenticated? filterContext.HttpContext.User.Identity.Name: null;

if (string.IsNullOrEmpty (username)) {

UserService.UpdateLastActivity (username);

}}}


We already have attribute now must find a way to inject UserService to this attribute. The library is defined MvcExtension special interface which helps us in this task. Called ConfigureFilterBase. We will implement it as Bootstrapper task. It looks like this: public class

RegisterGlobalFilters: ConfigureFiltersBase

{protected override void Configure (IFilterRegistry registry) {
registry.Register
\u0026lt;AccountController, UpdateUserLastActivityAttribute> ()
. \u0026lt;HomeController, UpdateUserLastActivityAttribute> Register ; ();}

}
As you can see records filters are similar to types in the IoC container. It looks like this that serve as the first type of the controller and another the following are the filters which attaches to it. Such a procedure enable injection of the necessary interfaces to the attributes. In addition, we no longer hand controller decorate this action.
 So much in terms of global filters. As you can see MvcExtension has many interesting solutions. Many of them will be available in future versions of Asp.net MVC. 


Sunday, September 5, 2010

Formal Dress Shops Co.armagh

Validating domain objects and not only ...

Hi little now I do not regularly written due to lack of time but has already commenced in September so time to work. Today I would like discuss the problem of validation domain objects but not only. This interface can be used in any object. I would like to achieve the objectives of which are two: First of all, the validation must be reusable and easily accessible. The second objective is the ability to validate the entire object at once and return to the controller information about all the wrong boxes.


interface IValidatable

Let's start from the beginning because the validation must be easily accessible and reusable, any object that will have validation must implement the above interface. Nothing special: Public interface
IValidatable


ValidationResult
This class consists of a dictionary that stores information about the error and check that the information relates. However, because the data field can have a lot of mistakes because stores a list of strings. In addition, one has two functions for counting errors and another error to add to the dictionary. Class itself looks like this: public class
 ValidationResult 

{private IDictionary \u0026lt;string, IList \u0026lt;string>> _validationErrors;

public ValidationResult()
{
_validationErrors = new Dictionary<string, IList<string>>(); }
public IDictionary<string, IList<string>> Errors
{
         get { return _validationErrors; } 
private set { _validationErrors = value; }
}

public int CountErrors()
{
int errorCount = 0;

foreach (var errorMessages in _validationErrors.Values)
{
errorCount += errorMessages.Count;
}

return errorCount;
}

public void AddError(KeyValuePair<string, string> error)
{
if (error.Key != null)
{
if (_validationErrors.ContainsKey(error.Key))
{
_validationErrors[error.Key].Add(error.Value);
}
else
{
IList<string> newErrorList = new List<string>();
newErrorList.Add(error.Value);

_validationErrors.Add(new KeyValuePair<string, IList \u0026lt;string>> (error.Key, newErrorList));}


}}}




ValidationHelper

To facilitate the addition of a little bug I decided to create a secondary class that will be somewhat automate adding errors. This will be an object which has two methods that give an error if the condition is not fulfilled. They differ only in one parameter associated with a key error. This is usually called just as the field concerned. And in the end, a version of the method of expression lambda. The other takes a string parameter. So it is more generalized. Class looks like this: public class

ValidationHelper \u0026lt;T>
{public
ValidationHelper ()

{} public KeyValuePair
\u0026lt;string, string> CreateErrorIf (bool condition, String errorKey, String errorMessageKey)
{if (condition) return new KeyValuePair
\u0026lt;string, string> (errorKey, ResourceHelper.GetErrorMessage (errorMessageKey));
 
else return new KeyValuePair \u0026lt;string, string> ( );
}

public KeyValuePair \u0026lt;string, string> CreateErrorIf \u0026lt;TResult> (bool condition, Expression \u0026lt;Func \u0026lt;T, TResult>> errorKey, string errorMessageKey)
{var
expressionMember = errorKey.Body as MemberExpression;

CreateErrorIf return (condition, expressionMember.Member.Name, errorMessageKey);

}}

method that uses lambda expressions simply take from him the name of the field. And now an example using these classes: public class

User: BaseEntity, IEntity, IValidatable
{
...

public virtual ValidationResult Validate()
{
ValidationResult validationResult = new ValidationResult();
ValidationHelper<User> validationHelper = new ValidationHelper<User>();
validationResult.AddError(validationHelper.CreateErrorIf(!String.IsNullOrEmpty(Username), f => f.Username, ResourceKey.Common.RequiredField));
validationResult.AddError(validationHelper.CreateErrorIf(Username.Length >= 256, f => f.Username, ResourceKey.Common.FieldLength));
  
...

validationResult return;}

}


addition to writing this mechanism, slowly add missing tests in the project already associated with a ready functionality. That's all for today:)


Tuesday, August 31, 2010

All Male Spa Nj Star Spa

As the storm.

As the storm going. Last dose of news at the end of vacation. Now I probably will not be enough time .. : /
The first one announced with our small child in LO. :)
Ideally, of course, gave the studs with scrap.com.pl ;)






Roses made based on the rate of scrappassion Sassili.


And this is my favorite;)

Today I finished the piece dress.






Again, rubella:)


Haha, yesterday out of boredom oskrapowałam even my cork board: DD


And tomorrow ..


pile of books and notebooks and now is, krowiasty pencil case too: D
A Polish my book subtitled 'scrapmania' oO

I hit my:



And so I conclude. But I hope that soon I will write here.
: *