text
stringlengths
9
94.9k
Let's take a closer look at each of the parameters of Route::set, which are `name`, `uri`, and an optional array `regex`.
The name of the route must be a unique string. If it is not it will overwrite the older route with the same name. The name is used for creating urls by reverse routing, or checking which route was matched.
The uri is a string that represents the format of urls that should be matched. The tokens surrounded with `<>` are keys and anything surrounded with `()` are optional parts of the uri. In BootPHP routes, any character is allowed and treated literally aside from `()<>`. The `/` has no meaning besides being a character that must match in the uri. Usually the `/` is used as a static seperator but as long as the regex makes sense, there are no restrictions to how you can format your routes.
Lets look at the default route again, the uri is `((/(/)))`. We have three keys or params: controller, action, and id. In this case, the entire uri is optional, so a blank uri would match and the default controller and action (set by defaults(), covered below) would be assumed resulting in the `Controller_Welcome` class being loaded and the `action_index` method being called to handle the request.
Controller - The controller that the request should execute.
Action - The action method to call.
The BootPHP route system uses perl compatible regular expressions in its matching process. By default each key (surrounded by `<>`) will match `[^/.,;?\n]++` (or in english: anything that is not a slash, period, comma, semicolon, question mark, or newline). You can define your own patterns for each key by passing an associative array of keys and patterns as an additional third argument to Route::set.
In this example, we have controllers in two directories, admin and affiliate. Because this route will only match urls that begin with admin or affiliate, the default route would still work for controllers in classes/controller.
You can also use a less restrictive regex to match unlimited parameters, or to ignore overflow in a route. In this example, the url foobar/baz/and-anything/else_that/is-on-the/url would be routed to Controller_Foobar::action_baz() and the "stuff" parameter would be "and-anything/else_that/is-on-the/url". If you wanted to use this for unlimited parameters, you could explode it, or you just ignore the overflow.
If a key in a route is optional (or not present in the route), you can provide a default value for that key by passing an associated array of keys and default values to Route::defaults, chained after your Route::set. This can be useful to provide a default controller or action for your site, among other things.
The `controller` and `action` key must always have a value, so they either need to be required in your route (not inside of parentheses) or have a default value provided.
In the default route, all the keys are optional, and the controller and action are given a default. If we called an empty url, the defaults would fill in and `Controller_Welcome::action_index()` would be called. If we called `foobar` then only the default for action would be used, so it would call `Controller_Foobar::action_index()` and finally, if we called `foobar/baz` then neither default would be used and `Controller_Foobar::action_baz()` would be called.
You can also use defaults to set a key that isn't in the route at all.
As you can see in the below route, the reverse uri parameter might not make sense.
* You don't like slashes?
The Request::param method takes an optional second argument to specify a default return value in case the key is not set by the route. If no arguments are given, all keys are returned as an associative array. In addition, `action`, `controller` and `directory` are not accessible via Request::param().
If a url matches the route, then `Controller_Ads::index()` will be called. You can access the parameters by using the `param()` method of the controller's Request. Remember to define a default value (via the second, optional parameter of Request::param) if you didn't in `->defaults()`.
The established convention is to either place your custom routes in the `MODPATH//init.php` file of your module if the routes belong to a module, or simply insert them into the `APPPATH/bootstrap.php` file (be sure to put them above the default route) if they are specific to the application. Of course, nothing stops you from including them from an external file, or even generating them dynamically.
Let's say you decided later to make that route definition more verbose by changing it to `feeds/<user_id>(/).`. If you wrote your code with the above uri generation method you wouldn't have to change a single line! When a part of the uri is enclosed in parentheses and specifies a key for which there in no value provided for uri generation and no default value specified in the route, then that part will be removed from the uri. An example of this is the `(/)` part of the default route; this will not be included in the generated uri if an id is not provided.
It is no secret that the husband and I have built a fairly extensive network at home. It started way back when when I studied towards the NT4 MCSE, and, over the years, as new products were released, we added those products to our network to further our learning.
Yesterday, we wiped our domain controller, and started fresh on 2008. Using the Add Roles wizard got a little confusing, so I reverted to the more familiar dcpromo, which made a lot more sense, and didn’t feel much different from 2003. Of course, the AD roles are now extended and sparkly new, so you have to pay attention during the wizard. DO NOT just click next, next finish.
Of course, our Hyper-V machine is also running 2008, but I had precious little to do with that install – the husband did it in the dead of night one night when he couldn’t sleep.
I had a couple of issues initially with the DNS setup. No reverse lookup zone was created, and there were a couple of other things I needed to tweak as well. I am a little concerned, because the self-tests continuously fail, so I am still not convinced that the DNS install is 100% super—duper, but, for now, the network is working, so I am not going to play too much right now (ie. I will fix this later).
We have also been doing a SQL consolidation, and I am going to attempt to rewrite our intranet in ASP.net with a SQL2008 back-end. I have been threatening for years to do this, and I suppose that time has come.
One of the reasons we decided to start over was because we had been installing a variety of services into the old domain that made a bit of a mess to the schema, especially because we didn’t clean up correctly – reinstalled machines without removing the applications correctly, that kind of thing. One of the big culprits here was LCS.
Granted, we make these mistakes because it is a home environment, so it is not critical to achieve 9 sigma, but we have also learnt some good lessons that we may actually one day apply in corporate environments.
And while it is not important at home to have 100% uptime, we do strive to stay up as much as possible, especially because we do actually make use of some of these services to keep our home running, such as schedule all family outings via Exchange and keep track of our budget and shopping lists via our intranet web. And our internet connection needs to be up as much as possible, because I am an addict our daughter needs it for homework.
Delivery circa 8 weeks after closing of subscription period.
ORDER NOW FOR A SPECIAL EARLY BIRD PRICE. MAKE THIS DESIGN POSSIBLE.
During the pre-order period an early bird price applies: in your shopping cart you will find the early bird price at the check-out.
Exclusive design, delivery approximately 8 weeks after the end of the registration period. Normal delivery times do not apply. If there is an insufficient number of early bird orders, you will receive your money back circa1 week after the end of the pre-order period. Note: to date, all subscriptions of new City Cufflinks designs have been successfully concluded.
Quality shipping with UPS track & trace, or with quality peers if so required in a small selection of countries.
What’s the weather in Faschina - Fontanella today? See an overview of the current Faschina - Fontanella weather, including high and low temperatures for the day and wind mph at the base and summit of the mountain. Scroll to the right to see Faschina - Fontanella weather forecasts and wind for the next seven days. Tab over to Hour by Hour for an hourly Faschina - Fontanella weather forecast breakdown or to Long Range Weather Forecast for a detailed Faschina - Fontanella weather forecast for the next seven days.
"The awareness that arises through paying attention on purpose in the present moment and non-judgmentally in the service of self understanding and wisdom"
Mindfulness is an inherent human capability that belongs to anyone irrespective of race, creed, gender, you name it. It is our birthright.
The ability to be on the spot—aware of what’s going on inside, outside, and all around, connecting with others—is part of being human.
Developing mindful awareness of the present moment can connect us to experiences, interactions, emotions and thoughts without the interference of judgment, bias, beliefs or distractions. We can 'Just Be' in the present moment, even if it is too exciting to contain or too painful to tolerate. Accepting the present moment for what it IS can be considered the crown jewel of mindfulness.
Meditative exercises and/or mindfulness meditation can be the first step to learning Mindfulness. When we focus our attention on our breath or curiously explore sense activation like sight, hearing or taste we are developing our brain's ability to attend to the present moment. We do not need to clear our mind of thoughts while we are meditating as it is our ability to frequently come back to our attention or breath and away from distracting thoughts that develops our ability to be mindful.
Let me start by saying that this was NOT a good week for me. We returned from Denver on Tuesday, and I was exhausted for the rest of the week. I walked once. And for only 3 miles. Yes. Just 3 measly miles. I've got a lot of ground to cover over the next two weeks, and I'm off to a good start with 5.25 miles logged today.
While petroleum is yet to come under the GST, since the dynamic pricing regime came into effect pan-India from last month, petrol prices have fallen by over Rs 2 a litre till date and of diesel by more than Re 1.
Petrol prices per litre have decreased by Rs 2.35, and of diesel by Rs 1.02, ever since the daily revision in rates was implemented throughout the country from June 16. On that day, petrol cost Rs 65.48 a litre in Delhi, while diesel sold for Rs 54.49 per litre.
The accumulated daily revision leading to a decrease of over Rs 2 in petrol, for instance, is the result of the recent trend in global prices.
Easter weekend is around the corner which means there’s be loads of over excited kids waiting for the Easter Bunny to arrive. There’s be equally as many full grown women waiting for the chocolate van to arrive as #TeamChocoholic from around the world celebrate the Christian holiday.
Purple centered eggs by Cadburg. Available at Pick n Pay.
White chocolate eggs by Beacon. Available at Pick n Pay.
Soft yellow centre eggs by Woolworths. Available at Woolworths.
Deep yellow centered eggs by Pick n Pay. Available at Pick n Pay.
Caramel eggs by Cadbury UK, available at Engen.
Oreo filled eggs by Cadbury UK, available at Engen.
Creme egg by Cadbury UK, available at Engen.
Mid-sized multi flavoured filled eggs (you choose), available from Pick n Pay.
Mini Lindt Eggs (red, blue, white), available from Pick n Pay & Engen.
Giant speckled eggs available from Woolworths.
Hazel nut praline eggs available from Pick n Pay (these are divine!).
Giant Lindt filled chocolate eggs available from Pick n Pay & Engen.
White chocolate mousse egg by Cadbury UK available from Engen.
Crunchy rice crispy & praline filled eggs by Riegelein Confiserie, available from Pick n Pay.
Malteser filled mini or large Easter bunnies available from Engen.
Lindt available from Pick n Pay, Clicks and Engen.
Large & Medium Woolworths bunnies available from Woolworths.
Large stand up bunny by Reigelein Confiserie available from Pick n Pay.
A variety available from Pick n Pay and Woolworths.
Medium sized available from Woolworths.
Large available from Pick n Pay.
I believe Clicks may also have a version.
Happy Feasting and celebrating family time!
Our Institute pros tested 28 picks to find which ones kept food cold (or hot), never stained and opened quickest.
Our GH Institute experts assessed 28 containers to see which ones kept food cold (or hot), never stained and opened quickest. Here are their picks — plus, a few of the best healthy snacks to pack in them.
LOS ANGELES – A lawsuit filed Wednesday against ABC (search) and "American Idol" judge Simon Cowell (search) alleges they conspired to steal the brand and concept of "Million Dollar Idea," a series airing in syndication.
The suit, filed in federal court by Jean Golden and Todd Walker, the creators and hosts of "Million Dollar Idea," (search) follows ABC&apos;s announcement in July of a new show of the same name that the network said was created by Cowell.
"From stem to stern, each and every detail of Simon Cowell and ABC&apos;s mock &apos;Million Dollar Idea&apos; is a patent rip-off of Todd and Jean&apos;s four-year labor of love," attorney Pierce O&apos;Donnell alleged in a statement Wednesday.
The lawsuit sees to stop ABC from using the name and idea and calls for unspecified damages. O&apos;Donnell predicted they would reach into "the tens of millions of dollars."
A call seeking comment from Cowell was not immediately returned Wednesday.
"We have not even been served with the complaint in this matter, and so have no comment," said ABC spokeswoman Annie Fort.
The suit also names FremantleMedia North America, producer of FOX&apos;s "American Idol" and proposed producer of ABC&apos;s "The Million Dollar Idea." (Note the slightly different title.) FremantleMedia does not comment on pending litigation, spokesman Brian Reinert said.
"Million Dollar Idea" first aired on KSTC-TV in the Minneapolis-St. Paul market in 2003. The series was recently syndicated to more than 125 stations nationwide and its creators registered for both copyright and trademark for the show&apos;s name and premise, according to their statement.
The show is taped before an audience and judges at the Mall of America. New product inventors and marketers from across the country compete for a prize package to help launch their product and place it for sale with a Mall of America retailer.
The syndicated series has received newspaper, magazine and TV coverage, including on NBC&apos;s "Today" show, the suit says.
"It is incredibly ironic that our show, the premise of which is to promote, protect and reward small-town American ingenuity, was itself the victim of corporate theft and greed," Golden said.
Her partner, Walker, pitched a deal for the show to ABC in early 2004 and provided copies of their presentation to CAA, according to the suit. That&apos;s the same agency identified in a recent ABC press release as having "packaged" "The Million Dollar Idea" with Cowell.
Besides the alleged theft of the title, every major concept connected to the show also was copied, the suit claims.
In the July 13 news release announcing "The Million Dollar Idea," ABC described the series as "a nationwide search for America&apos;s greatest entrepreneur with the best business idea or new product," with the prize to be $1 million "worth of business support," including cash and other resources.
The idea was conceived by Cowell and British entrepreneur Peter Jones, according to the ABC release.
There was a small town near the shores of the sea; it was a topical climate with mixture of occasional rainfall, hot summer & even pleasant atmosphere with low heat & humidity. The whole town was encircled with the backwaters of the rivers. With such a classic whether there was also a short coming which could wipe out the whole town. The tornado’s quite regularly hit the surrounding towns so the impact of it would hit this small town too. Owing to the increasing trouble of these the people had started to flee from here. While there were people in towns who were the survivors of these who took shelter in this town.
Today two different people both who were survivors of the same town moved into this new place but both were strangers & poles apart. One was calm & patient while the other was fierce & impatient but both were always inevitable & destructive in nature if meddled with, with a slight deviation, the calm one had the ability to choose either go ahead & wreck everything but the fierce person didn’t had that choice once a step taken forward has to feel the burnt.
Even if these two people’s ways were different and always repulsive in nature, they both were away from their people it was a test of survival for them in this place. They had none to share what they felt, none to listen to their talks, none to see their pain hidden in their heart. But destiny could not stop itself posing them infront of each other. He, who was fire and she, who was water did face each other will they ever overcome there obstacles & blend in one another without terminating the other.
Seeing is believing is said for the human sense sight but at this time of the day when darkness is all you could see around and light is something alien and hard to visualise what is there in front of you that doesn’t mean you are lost or blind? Just like everyone my other senses come to my rescue. Exactly now when I cannot see anything through my eyes I could hear the roars of the ocean everytime it hit the banks indicating I am standing right infront of the vast expanse of the ocean. Petrichor, the scent of rain filled my lungs predicting the approaching rain, the touch of which would cease my burning but I am not ready to taste the freedom from this fire. In addition to these I know how to eradicate the darkness as I have the capacity to turn on the light even at the darkest times of life.
The rain can come down to the earth anytime and I have to take shelter before that but still I wait at the banks waiting for the darkness to break into dawn. This has been my routine from past week to sprint around the seashore of this sea at the darkest hour before the dawn and wait for the moment of darkness breaking into the dawn. To watch the sun to gain its position high in the sky, paint his colors over the world showing his supremacy to kill darkness of life. It is not only the sun but also me who feels that has spread my color all over the world.
Slowly the sun made its way out of his den painting the whole sky bright redish yellow with its rays. Consuming the gloomy night and spreading the light bringing new hope & a beginning of bright fresh life. Once I had witnessed the magnificent sight of sunrise my concentration went towards my sense which had alerted about the approaching rain. But now there was no sign of it, that left me astonished as rain is one thing I just hate it and my senses have never been wrong in identifying them. Leaving that thought aside I make my way back to the hostel which has become my new home from where I will have to attend my first day of my master’s classes today.
Not before I had turned my eyes get struck to the sight of a girl in bluish white suit running away something was there about her unknown which made me watch her till she disappeared from my vision. I have been coming here from past 5 days but never did I saw any girl at this time of the hour. She did turn back once but I could not see her face. Just then I heard my cell beep reminding me of the time & I headed back still I couldn’t stop myself to watch at the way she ran off.
Some things never change every where the seniors welcoming the juniors especially in there own innovative way. I had just entered the gates of my college when a group of people naming themselves as seniors blocked my way. They were many more already in queues who were dancing as puppets of seniors. I had a strong urge to teach them a good lesson but I couldn’t just barge in and destruct everything but that would only catch the attention of everyone. Now itself I can feel many eyes on me, that always annoy me.
Against my wishes I simply follow there orders to stand in the queue and wait for my turn to come. Just then there was absolute silence as everyone’s attention was on the entrance maybe another junior’s who are trying to dorge away from these ragging session? But No. when I look at the entrance I could only see a beautiful mesmerising alluring blue eyes of the girl, they captivated me in its pools as deep as oceans that I can get lost in them. It was a picture painted in blue theme, every essence of her oozed as serene beauty. I could no longer see the world around me just her only; everything around her seems to vanish away from my view. As if in the whole world it is you and me alone, with my every breath, with my every heartbeat clearly wanting to be with you. Her earrings kissed her cheeks everytime she kept walking her bangles made sounds of waves in the ocean which was matching her light blue & white mixed dress. Is she the same one whom I saw in the beach today, looks like she is as even at that time she wored the same dress, the same gait, the same care free strides. Today I felt like I got a whole new world to live in.
I don’t know when my legs take me away from the crowd towards the object of my interest but I was pulled back by something. When I turn to see what that was I saw it was the guy next to me who pulled me back, he was saying something which I failed to hear it. I turned back my gaze to her; she was not there; I turn around everywhere only to find her in front of those seniors. I moved in a way to have clear view of her face without any interruption. Her eyes had a gleam of naughtiness which I didn’t know for what.
I felt another nudge in my hand to jolt me into the reality. It was again the same guy but now I heard him say “Man, what are you doing come back and stand here, don’t mess with seniors. See how these girls got them in trouble.” The word Girls made me look at them again to find another girl beside her. All of them were watching her ignoring the pleasant beauty of mine. They were questioning them, that is when I got to know her name is Geet & the girl whom I just noticed her name is Pari.
Geet, the name rang in my ears inveigling my heart with unknown bliss. Such a melodious name she has got that I could only hear and speak her name throughout the remaining life of mine. My heart was showing its presence more than ever with her first visual itself, weaving many desires which could bind me into something which I never was bound to. Thoughts are flying high freeing it self from the strings of my mind. Spirit is flowing in a direction which it had never crossed but it surged without bothering about any hindrance. Wish I could just embrace this moment in myself, to witness a new facet of the dreams. Her eyes were revealing more than she could every voice out surprising me at the things which it could conceal. I was eager to be with her which made my heart to live.
Dilon mein tum apni betabiyan leke chal rahe ho.
My revive was broken when the guy next to me was biting his nails in nervousness as he was worried for the girl next to Geet, as he was muttering “Please God save Pari from these ragging’s” but what I saw actually amazed me as that girl Pari stood fearless while my Geet stood behind her hiding herself from the situation. Such a contrary thing it was happening I was not scared for Geet as I knew she could come out the situation without any help where as the guy next to me was praying for Pari while the girls were doing just the opposite. But Geet’s eyes shone bright, calm & undeterred confidence trickled in her every stir though she portrayed as fearful infront of everyone. She held on to the facade of a timid girl duping around the others. Her face can deceive everyone but her eyes couldn’t as they told every story of hers. She was not a meek girl, none could scrum her into doing things against her wishes, but why does she have to do things like that.
Apparently the situation in the hand was the senior’s portrayed themselves as generous enough to give us the option to whether we want to get ragged or not. Well that was not a real option though as a person would be asked to light the candle once they did it they would say since you have lighted it that means you have accepted to be ragged. So now the candle was placed in the middle of the stand and the girls were asked to light that. I was more interested to see the play as I read her eyes which had the mischievous glint in it. And just I guessed the fun started Geet’s face turned was something everyone could not miss as it turned pale with fear and she clutched Pari’s hand & fainted next second.
For a second even I got worried but then the wink confirmed all my doubts. Getting the clue Pari played along shouting “Geet…….what happened Geet…get up… get up…. Please someone get some water.” After a while she stood drawing everyones attention to herself. When the seniors questioned her, the reply just shook everyone but I was just lost in that melody and couldn’t stop the smile. Geet replied as a scared kitten shuttering and trying to hard to form even a word that “I burnt it …. I burnt it”. Well ever Pari was confused so enquired “what did you burn Geet.” “B…..B……Blub” But looks like seniors were not falling for her drama as she was asked to light the candle now.
I was now curious to know more about her plan as the naught sparkle twinkled in her eyes. She with trembling fingers tried to light the candle but stick failed to burn. Geet said “It is not burning so can I leave for the class sir.” Finally not able to withstand the bugging kitten they let go of her. We will trap her someother time is what I heard a senior whisper into another senior. Her eyes showed she had won this play but that play was not only for her but for everyone there. With a confident & smiling face she left, actually she was concealling more may be she would have danced at her victory but stayed quite because of the people around her.