text:
import { Factory } from 'pip-services3-components-node';
import { Descriptor } from 'pip-services3-commons-node';

import { EventLogMongoDbPersistence } from '../persistence/EventLogMongoDbPersistence';
import { EventLogFilePersistence } from '../persistence/EventLogFilePersistence';
import { EventLogMemoryPersistence } from '../persistence/EventLogMemoryPersistence';
import { EventLogController } from '../logic/EventLogController';
import { EventLogHttpServiceV1 } from '../services/version1/EventLogHttpServiceV1';

export class EventLogServiceFactory extends Factory {
	public static Descriptor = new Descriptor("pip-services-eventlog", "factory", "default", "default", "1.0");
	public static MemoryPersistenceDescriptor = new Descriptor("pip-services-eventlog", "persistence", "memory", "*", "1.0");
	public static FilePersistenceDescriptor = new Descriptor("pip-services-eventlog", "persistence", "file", "*", "1.0");
	public static MongoDbPersistenceDescriptor = new Descriptor("pip-services-eventlog", "persistence", "mongodb", "*", "1.0");
	public static ControllerDescriptor = new Descriptor("pip-services-eventlog", "controller", "default", "*", "1.0");
	public static HttpServiceDescriptor = new Descriptor("pip-services-eventlog", "service", "http", "*", "1.0");

	constructor() {
		super();
		this.registerAsType(EventLogServiceFactory.MemoryPersistenceDescriptor, EventLogMemoryPersistence);
		this.registerAsType(EventLogServiceFactory.FilePersistenceDescriptor, EventLogFilePersistence);
		this.registerAsType(EventLogServiceFactory.MongoDbPersistenceDescriptor, EventLogMongoDbPersistence);
		this.registerAsType(EventLogServiceFactory.ControllerDescriptor, EventLogController);
		this.registerAsType(EventLogServiceFactory.HttpServiceDescriptor, EventLogHttpServiceV1);
	}

}

redpajama_set_name: RedPajamaGithub


Gary and Matthew Cust will take part in the Marathon des Sables, known as the 'toughest footrace on Earth', in April 2017.
The pair will be required to run seven marathons – in excess of 170 miles - over six days across the Sahara Desert through sweltering 50 degrees Celsius heat, carrying on their backs everything they need to survive for the week.
Gary, a retired lawyer who lived and worked in Bradford in the 1980s, said: "Everybody wants to complete an extreme challenge once. Running is something I've done all my life. When I was in my 40s I was a marathon runner, completing the New York and London marathons.
Gary's son Matthew, 27, is a research scientist. He featured on the first series of Channel 4's reality show 'SAS: Who Dares Wins', which followed a group of volunteers as they were put through a recreation of the SAS selection process by ex-Special Forces soldiers.
Matthew's partner Adele was diagnosed with cancer as a teenager and recently received the 'all-clear'. Matthew is particularly passionate about raising money for a cancer research charity.
Gary said: "As soon as I said we could get places through Yorkshire Cancer Research, Matthew was very keen to do it. It's shocking how many people you know whose lives have been devastated by cancer. I probably know a dozen people because of my age. Wonderfully, fewer are dying because of research.
Gary and Matthew have been building up their weekly mileage during the last six months and now run a marathon every weekend carrying a 6kg backpack. This will rise to 12kg when they take part in the Marathon des Sables.
In November they competed in the Beacons Ultra, a 48 mile race in the Brecon Beacons National Park, Wales. Gary came 77th out of 299 runners, completing the event in 10.5 hours.
Gary and Matthew will spend two days over Christmas running a double marathon in the famous sand dunes of Merthyr Mawr, in Bridgend, Wales, and they have booked an acclimatisation holiday in Cuba, where they will practice long runs in tropical weather.
On Saturday, January 14, they will run a marathon on a treadmill in their local shopping centre, Broad Street Mall, while collecting donations towards their fundraising.
Gary said: "I know we can complete the Marathon des Sables. It's just one foot in front of the other, and I can always find one more step. No matter what, we will be at the finish line. It will be horribly brutal, but when we get our medals I'll know that it was all worth it. It will be the best thing I've ever done.


text:
How Jim Carrey Went From Being Homeless To Millionaire
Life Style By Sammy Gonzalez December 10, 2021
Jim Carrey is one of the most famous comedians in the entertainment industry, known for his hialrious acting skills that have earned him many awards and accolades in his lifetime. But despite the stardom he enjoys today, Carrey's journey towards success wasn't an easy one. He wasn't one of those privileged actors to walk into the entertainment without facing some struggles.
Carrey grew up in a lower middle class family, and at one point they suffered from homeless and spent time in a caravan. At 15, he gave up his education to earn money to feed his family. Carrey didn't take rejection as failure, but he refused to take it to heart.
The Bruce Almighty star practiced in front of his mother in times of economic woes when he tries to cheer her up. Poverty didn't hold him for a long time when he went to different movie auditions. His audience mocked him the first time he tried performing at 'Yuk Yuk's comedy club.
With outstanding performances in movies like 'Me, Myself & Irene', 'Liar Liar', 'Dumb and Dumber', 'The Mask', and Ace Ventura: Pet Detective', he dominated the comedy niche with his acting talent. Carrey transitioned from the persona of a joker to one of the most sought after actors in the world with a net worth of over $160 million. Rumour has it that Carrey wants to retire, but he is still here with us.

redpajama_set_name: RedPajamaCommonCrawl


text:
Q: jQuery not properly executing an ajax request I've got another similar script running just fine, i don't see why this isn't working.  Is there anything wrong with this code?
$("#lastname").keyup(function(event){
    var keyCode = event.keyCode || event.which;
    if(keyCode === 13) {
        passOnRegFront();
    }
    });
    $("#register").click(function() {
        passOnRegFront();
    });
function passOnRegFront() {
        var firstname = $("#firstname").val();
        var lastname = $("#lastname").val();
        var dataString = '&firstname=' + firstname + '&lastname=' + lastname;
        if(email=='' ||  password=='') {
            $('#success').fadeOut(400).hide();
            $('#error').fadeOut(400).show();
        } else {
            $.ajax({
                type: "POST",
                dataType: "JSON",
                url: "<?=base_url()?>index.php/home/passOnReg",
                data: dataString,
                json: {session_state: true},
                success: function(data) {
                if(data.registered == true) { // true means user is logged in.
                    $("#main1").hide();
                    $("#main1").load('<?=base_url()?>index.php/home/dashboard');
                }
            }
        });
        }
    }
});

A: The following problems jumped out at me as I skimmed through your code:

*

*The email and password variables are not defined, and from the context I would guess you probably intended firstname and lastname at that point. Copy and paste error from the other script you mention?

*There is an extra }); at the end of the block. Maybe that is just the end of a $(document).ready(function() { that you don't show, but obviously I can't tell how much more code you have that isn't shown - for what you have shown this is an error.
As an aside, it would be easier to read and debug if you fixed the indenting: on first glance it appears that you are creating the .click() handler inside the .keyup() handler.
As another aside, the code would probably be clearer if you looked at using an object to set the data attribute of the .ajax() call. Get rid of dataString and just say:
...
data : { firstname : firstname, lastname : lastname },
...

(jQuery will create the appropriate query string for you as described in the .ajax() doco.)

redpajama_set_name: RedPajamaStackExchange


This kitchen floor installed by Floor World does look fantastic, but do you know what it's best feature is, according to our clients? It's SUPER easy to clean.
Patented Scotch guard protection prevents anything from penetrating the surface, and there is no where for dirt to hide. Homeowners love this kitchen floor! Floor World installs it professionally and right on your budget. If your kitchen needs it, come by Floor World for a visit, or give us a call.
Next Post How Much Better Would You Feel With a New Kitchen Floor?