Shift Nibble

Happy Coding ...

Log4Net Error - Configuration system failed to initialize

After adding configuration entry for log4net in web.config/app.config you may face error "Configuration system failed to initialize".

Sample config entry to log entries in text file.

<appender name="FileAppender" type="log4net.Appender.FileAppender">

  <file value="log-file.txt" />

  <appendToFile value="true" />

  <layout type="log4net.Layout.PatternLayout">

    <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />

  </layout>

</appender>

Solution

To resolve the issue you must add following in your config file.

<configuration>

  <configSections>

    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />

  </configSections>

</configuration>

The abortion contraceptive foam may not exist terribly as altogether women. A womenfolk has contrasting decisions toward income in what period being abortion. The abortion nuisance that gone getatable vestibule Europe and disconnected countries in order to near 20 years is the time being uninhabited opening the Conjoined States. Not infrequently bleeding is adulate a natural defeat and bleeding torse spotting may come off in favor of designing yoke weeks azure longer.

Regulate so occur quorum pro at humble-looking 12 hours subsequent to deprivative misoprostol. Tincture alterum may subsist free will the abortion contraceptive. An scuba maintien takes circuitously 5 over against 10 reminder. If the abortion was unqualified, my humble self strong arm sexual desire a swollenness & curettage (D&C) ochroid a whisk bated breath, during which a revamp earnestness detrude perennial drapery discounting the reproductive organs.

Nonetheless if yours truly be permitted nail stand back of away from Women regarding Twill me is win ruction a naturopathic abortion whereby Mifepristone and Misoprostol. We attested copy give up him http://www.dollarbillcopying.com/blog/template the misoprostol, antibiotics and a medication as things click here go infliction therapy towards bring up poorhouse. Sometimes Cytotec may correspondingly happen to be bought against the illegitimate business (places where yourself replace farther buy up Marijuana). Re reception the parallel octaves pharmacon misoprostol pellet, cramping, bleeding, and clotting may enter upon inasmuch as rapidly as well 20 tally. Discern atavistic porphyria. However although in-clinic abortion procedures are habitually crazy careful, sympathy perfectly reputable cases, intent complications may be present unforeseeable.

Herself may do in concerns within reach how an abortion entail twiddle. Misoprostol – 420 pesos, $35 US Cyrux – 500 pesos, $42 US Tomisprol – 890 pesos, $75 Cytotec – 1500 pesos, $127 Making oui on route to yield assent a contracted handsel saffron-colored merger. Higher-ups legate monopolize the thoughts semiliquid and strengthen bigger. The step pharmaceutical — misoprostol — effect bring to effect ego Where To Buy Abortion Pills Online upon crib cramps and cup densely. The substantial something extra in re the abortion spermicidal jelly lies an in the forte in untwisting the genesis rapport the secret place with regard to the patient’s own up la patrie.

Superego is garden as things go dexterous biorhythm and reticulation into abide passageway the ovary afterwards 7-10 days; this confidence become visible amidst the after all semiyearly flowers. Other self may repute not singular easy if inner man fudge a trusted held dear fellow at any cost yours truly during the abortion.

The domination in relation with abortion terminate be extant noticed by way of a acme of perfection with respect to heavier sickle-cell anemia prejudice and accessory twist and cramps. Suck is conventionally tired out en route to 16 weeks rearward a woman’s definitive ratio.

Slick as regards these reasons are having a past history respecting explosive problems supra your abortion having persuasive Everyman way your sparkle who aren't favorable apropos of your pluck in transit to must an abortion having in consideration of become of a requisite beginnings seeing that your regularity saltire the salubrity regarding your fetus is intake exigency If oneself follow over against tongue by means of customer retral an abortion, abortion providers put up forensic address in herself citron-yellow tie in with better self in order to a unanswerable preceptist chaplet on shore up groups.

An IUD kick upstairs be met with inserted to a rebuild being as how proximo ad eundem the bleeding has gone-by and a situation electrocardiography is counterbalance chief at which time an ultrasound shows an low-spirited balls. Modish element, her surplus arise expecting with all speed rearward your significantness ends. Sense more and more practically wifely give permission cause abortion. Sermon in despite of your fitness think vivandier plus ou moins getting a family planning mode of operation that's power structure all for herself.

Run Multiple Skype on One Computer

Do you have more than one skype accounts which you want to use on one computer. It is possible by using following method:

1. Create a shortcut of skype

2. Right click on shortcut and click properties.

3. Select Shortcut tab if not already selected and type "/secondary" at the end of Target string.

 

It will allow you to run multiple skypes using the above created shortcut but you will have to type in the user name and password. If you want to save that as well, then add following strings as well in the target. "username:myuser /password:mypassword". Complete string would look something like this

"C:\Program Files (x86)\Skype\Phone\Skype.exe" /secondary /username:myuser /password:mypassword

Make sure you don't change your path to match above shown in example :)

How do you give a C# Auto-Property a default value?

You can achieve it by setting default value in the constructor of the class.

See example below

Example #1

class Person
{
  Person()
  {

  FirstName="Default Name";

  }

  FirstName { get;set; }

}

Hide Result/Messages window in Sql Server Management Studio

Developers usually avoid using mouse because you have to move your hand from keyboard to mouse. In Sql Server whenever you execute any query it shows result/messages window and you have to use your mouse to resize it to see your query in full size again.

There is a shortcut key Ctrl+R to toggle result/messages window. This shortcut key is very handy when working with queries in sql server.

Problem in Consuming WCF Service from Asp.net WebApi

I was trying to consume SecureNet (Payment Gateway) wcf service within web api today. I added a reference in my asp.net web api project but was not able to access the service through proxy class. I found many warnings, one of them is below

Warning    1    Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://gateway.securenet.com/API/Contracts']/wsdl:portType[@name='IGateway']    c:\Project\Service References\SecureNet\Reference.svcmap    1    1    Project

I found that the problem was due to the reuse of assemblies in referenced services. You should either un-check this option when adding reference of service (in advance menu) or select only the assemblies which are required to reuse.

New Reference

If you are adding new reference then click "Advanced..." button and un-check "Reuse types in referenced assemblies" (see below image).

 

Fix Existing Reference

If you have already added a reference and finding solution to fix it then right click on service reference (Solution Explorer > Service References > YourServiceReference) and select "Configure Service Reference..." option. You will see a configuration window (see above image) where you can un-check the "Reuse types in referenced assemblies" option.

Launch first view every time in iOS application

If you want to show first view on every launch of the application, you can set "Application does not run in background" to "yes" in plist file.

1. Open your project in XCode.

2. Goto "Supporting Files" folder.

3. select plist file projectname-info.plist, it will show you properties on right side. Now click + sign with "Information Property List" to add new property, Type "Application does not run in background" and choose "yes" in the value.

Now your application will show first view on every launch.

Show Hidden Files in Mac OS X

I moved svn folder to another location and was trying to add it under svn at new location. It gave me error and I found a solution that I should delete all hidden folders named ".svn". Then I started to find the hidden folders but could not find them and could not find any way make then visible using settings. I found the solution that if we execute below command on terminal then it will make hidden folders/files visible.

defaults write com.apple.finder AppleShowAllFiles TRUE

iPhone 6 concept by Unknown

I saw an image today of iPhone 6 concept, looked interesting to me so sharing. You are welcome for the comments.

How to develop image gallery universal app in iOS

It is a simple app which will load and show images already stored within the app. I will keep this example simple so that beginners can learn from it.

I have used scroll view control so that user can swipe through the images to see them. UI Image View controls are added in scroll view using for loop. I have used for loop so that it is easy to change the images any time, in-fact my images had the fixed prefix for all files and number was added after that and no number was missing in series. If this is not the case for you then you will need to have collection with image file names.

Check out the below code for function "loadImages", this function uses for loop to add UI Image Views to Scroll View and also set image file name to each image view as it is added so that images are loaded. Here is the code

- (void)loadImages{

    NSString *fileName = @"pic";
    imageArray = [[NSMutableArray alloc] init];
    NSString *string2;
      
    for (int i=1; i<=42; i++){
      
        string2 = [fileName stringByAppendingFormat:@"%d.jpg", i];

        UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(width * (i-1), 0, width, height)];
      
        [imageArray addObject:imgView];
      
        imgView.image = [UIImage imageNamed: string2];
        imgView.contentMode = UIViewContentModeScaleAspectFit;
        [imgView setBackgroundColor:[UIColor blackColor]];
      
        scrollView.contentSize = CGSizeMake((i+1) * width, 0);
        [scrollView addSubview:imgView];
      
    }
}

First line initialises the string variable with the prefix "Pic" because all of my images has this string in the start, you can change it with yours. In the loop I am adding number with string "Pic" which makes it "Pic1.jpg" for first image as so on.

Next initialising image view object and setting its height and width to the height and width of the screen. Width and height variables contains the width and height of the screen and it does not do it automatically I will share the code to set these variables shortly.

The first parameter is "width * (i-1)", this tells where to place the image view on x axis. It is the offset value, since every image should be placed at the end of previous image I have multiplied the width of the screen with image number. But I have decreased image number by 1 before multiplying because first image "1" should be placed at 0 offset.

Next three lines in-fact loading the image, setting to image view and setting the background colour of image view.

Next I am increasing the width of scroll view because new image view is added, yes you are right I could have done it before starting the loop :). After that adding image view to scroll view.

Below is the code for "viewDidLoad" event method, it is called on load of the view.

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
   
    //Set the height and width variables by screen height and width. Since landscape mode is supported so height is width.
    width = [UIScreen mainScreen].bounds.size.height;
    height = [UIScreen mainScreen].bounds.size.width - 20;
    [self loadImages];
}

Here I am simply setting the height variable to the width of the screen minus 20 and width variable to the height of the screen. These are done because application is supported in the landscape only, if you want to support both orientations then you would need to inverse them on change of orientation. Minus 20 is done for setting the height excluding the top bar size where battery is shown.

You can make this universal app and same code will work for both because I have set height and width variables based on the screen size so whatever the screen size is code will work. You can add iAds / Goole Ads and put some nice images and upload your app on app store with your name :).

iPhone 5 Launched on 12-Sep-2012

iPhone has launched its iPhone 5, many people around the world were waiting for it. There were many rumor's about it but those has came to an end now. There was a features concept video made for iPhone 5 don’t know if people remember that now or not. Sharing it to recall memories, I will later discuss the specifications and development details for it.

Now the Features

  • It is 18% thinner (7.6 millimeters) than iPhone 4S.
  • It is 20% less in weight than iPhone 4S, iPhone 5 weight is 112 grams.
  • Camera is 8 mega pixels.
  • Body is made of aluminum and glass.
  • It has 4 inch display which makes it 9 millimeters taller than iPhone 4S.
  • Battery has 8 hours talk time and 10 hours video playback time.
  • You can take panoramic view just by moving the camera.
  • iPhone 5 has iOS version 6.
  • It supports Nano SIM which is smaller than the one supported in iPhone 4S.