Mexican Pinto Beans and Rice
Components
-
Mexican Pinto BeansMexican Rice
Directions
-
Make the riceMake the beans↓ This is a component-based recipe (fancy talk for making the dish in pieces, then assembling). ↓
Mexican Pinto Beans
Ingredients
-
15 ounce can pinto beans drained and rinsed1/2 cup chicken stock or vegetable broth1 tablespoon tomato paste3/4 teaspoon salt3/4 teaspoon chili powder1/2 cup pico de gallo for garnish (optional)
Steps
-
Put all of the ingredients in a pan over medium-high heat, bring to a simmer.Cook for 7-10 minutes until sauce has thickened.Taste and add more salt or chili powder if needed. You can also add a bit more chicken stock if the sauce gets too thick for your liking.Garnish with pico de gallo if desired.
Mexican Rice
Ingredients
-
1 cup long grain white rice1 tablespoon olive oil8 oz can of tomato sauce1 red bell pepper cored, seeded and quartered1 1/2 cups chicken stock or vegetable broth3/4 teaspoon kosher salt1 teaspoon garlic powder1/4 teaspoon chili powder1/4 teaspoon cumin1/2 cup diced tomatoes and 2 tablespoons chopped cilantro for garnish (optional)
Steps
-
Heat the olive oil in a 2 quart pot over medium heat.Add the rice and stir until the rice is coated in the oil.Cook for about 5 minutes or until the rice is toasted and lightly browned.Add all of the remaining ingredients. I recommend doing this off the heat to avoid splattering.Return the pot to the burner, bring the contents to a boil.Cover the pot and turn the heat to lowCook for 17 minutes.Take the pot off the heat and let it stand, covered for 5 minutes.Remove and discard bell peppers.Stir well.Garnish with tomatoes and green onions if desired.
Cuisine: Mexican


Ilya Loshkarev<EMAIL_ADDRESS>SFEDU 2017
Context contains drawing parameters
and all information needed to render the paint
Graphical Contexts are organized in form of a stack
override func draw(_ rect: CGRect) {
// Get view's current graphics context
if let context = UIGraphicsGetCurrentContext() {
/* draw something */
}
}
// Create bitmap and make it current context
UIGraphicsBeginImageContext(image.size)
// Copy image into current context
image.draw(in: CGRect(origin: CGPoint.zero,
size: image.size))
/* draw something on top of the image*/
// Return an image from current bitmap-based context
image = UIGraphicsGetImageFromCurrentImageContext()
// Remove current bitmap context
UIGraphicsEndImageContext()
All drawing happens in current graphics context
func drawLine(from fromPoint: CGPoint, to toPoint: CGPoint) {
// Create Path
let linePath = UIBezierPath()
linePath.moveToPoint(fromPoint)
linePath.addLineToPoint(toPoint)
// Set up context parameters
UIColor.blue.setStroke()
linePath.lineWidth = 10
linePath.lineCapStyle = .round
// Draw path in context
linePath.stroke()
}
Draw order is important
Paths are drawn on top of each other
context.addRect(rect: CGRect(x: 0, y:0,
width: 250, height: 250))
context.setFillColor(UIColor.white.cgColor)
context.setStrokeColor(UIColor.black.cgColor)
context.setLineWidth(5)
context.fillPath()
context.strokePath()
let colors = [startColor.cgColor, endColor.cgColor]
let colorLocations:[CGFloat] = [0.0, 1.0]
let colorSpace = CGColorSpaceCreateDeviceRGB()
let gradient = CGGradient(colorsSpace: colorSpace,
colors: colors as CFArray,
locations: colorLocations)
context.drawLinearGradient(gradient,
start: CGPoint.zero,
end: CGPoint(x: 1, y: 1),
options: .drawsAfterEndLocation)
An offscreen context for reusing content
drawn with Core Graphics
let layer = CGLayer(context, size: CGSize(width: 100, height: 100), auxiliaryInfo: nil)
let layerContext = layer?.context
/* draw something */
context.draw(layer, at: CGPoint.zero)
An object that manages image-based content
and allows you to perform animations on that content
Completely unrelated to CGLayer
Every view has underlying CALayer
view.layer.contents = UIImage(named: "swift")?.cgImage
// Layers can have sublayers
let sublayer = CALayer()
sublayer.frame = CGRect(x: 50, y: 50, width: 100, height: 100)
sublayer.backgroundColor = UIColor.red.cgColor
view.layer.addSublayer(sublayer)
Layers are rendered by the GPU
// Rotate view 180 degrees
UIView.animate(
withDuration: 0.25, // length of animation in seconds
delay: 0.0, // animation start delay
options: [.curveLinear], // timing curve
animations: { // animation closure
view.transform = view.transform.rotated(by: CGFloat(M_PI))},
completion: { finished in // called after animation is complete
view.transform = CGAffineTransform.identity
})
Interpolates values of the view's properties
Uses shortest path between the values
(360° rotation does nothing!)
You should never animate position properties
of a view with Auto Layout cnstraints
Timing Curve – defines how fast values change
- linear
- easeIn
- easeOut
- easeInOut
repeat
– repeats animation ad infinumallowUserInteractions
– allows user interactions beginFromCurrentState
– animation started in the middle Interpolates values between user defined keyframes
// Rotate view 360 degrees
let duration = 1.0
UIView.animateKeyframes(
withDuration: duration,
delay: 0.0,
options: [.calculationModeCubic], // interpolation method
animations: { /* define frames here */ }
)
// Rotate 360 degrees animations closure
let frames = 6
let angle = 2 * M_PI / Double(frames)
let frameDuration = duration / Double(frames)
for i in 0..<frames {
UIView.addKeyframe(
withRelativeStartTime: Double(i) * frameDuration,
relativeDuration: frameDuration,
animations: {
sender.transform = sender.transform.rotated(by: CGFloat(angle))
})
}
Each keyframe defines an animation
with its own delay and duration
anchorPoint
backgroundColor
backgroundFilters
borderColor
borderWidth
bounds
compositingFilter
contents
contentsRect
cornerRadius
doubleSided
filters
frame
hidden
mask
masksToBounds
opacity
position
shadowColor
shadowOffset
shadowOpacity
shadowPath
shadowRadius
sublayers
sublayerTransform
transform
zPosition
Any of the layer's properties can be animated
let fillAnimation = CABasicAnimation(keyPath: "fillColor")
fillAnimation.fromValue = UIColor.clear.cgColor
fillAnimation.toValue = UIColor.white.cgColor
fillAnimation.duration = 1
layer.add(fillAnimation, forKey: "fill animation")
Basic animation animates one property at a time
end.beginTime = 1
let groupAnimation = CAAnimationGroup()
groupAnimation.animations = [start,end]
groupAnimation.duration = 3
circle.add(groupAnimation, forKey: "group stroke")
beginTime
– sets the delay in the group animation
let keyframeAnimation = CAKeyframeAnimation(keyPath: "path")
keyframeAnimation.values = []
for points in 5...10 {
let starPath = UIBezierPath(starWithNumberOfPoints: points, centeredAt: view.center, innerRadius: view.bounds.width / 6, outerRadius: view.bounds.width / 3)
keyframeAnimation.values?.append(starPath.cgPath)
}
keyframeAnimation.duration = 5
keyframeAnimation.autoreverses = true
star.add(keyframeAnimation, forKey: "points")
UIImage
– higher-level image object. Immutable, created from existing image contentCGImage
– bitmap representation of an image. MutableCIImage
– a "recipe" for an image, executed only when you request that an image be rendered for display or output
cgImage = uiImage.cgImage // nil if uiImage contains ciImage reference
ciImage = uiImage.ciImage // nil if uiImage contains ciImage reference ?
uiImage = UIImage(ciImage: ciImage)
uiImage = UIImage(cgImage: cgImage)
UIImage
can display CIImage
but to save it as a file
it has to be rendered first
CIFilter.filterNames(inCategories: nil) // all availiable
CIFilter.filterNames(inCategory: category)
Core Image provides methods that let you query the system
for the available built-in filters
A filter can be a member of more than one category
let filter = CIFilter(name: "CIThermal")
filter.setValue(uiImage.ciImage!, forKey: kCIInputImageKey)
if let output = filter.outputImage {
let cgImage = CIContext().createCGImage(output, from: output.extent)
uiImage = UIImage(cgImage: cgImage)
}
There are some useful Swift wrappers for filters out there:
CIFilterKit
let ciImage = CIImage(image: uiImage)
let chainedResult = ciImage.applyingFilter("CIPhotoEffectProcess",
withInputParameters: nil).applyingFilter("CIBloom",
withInputParameters: [
kCIInputRadiusKey: 10.0,
kCIInputIntensityKey: 1.0
])
Core Image combines chained filters into a single operation


Lycan
Tips
- Wolves are quite possibly the strongest scouting tool in the game. Once they hit 4 you have two 460 move
speed, permanently invisible, 55 second observer wards on demand. Use this to scout, check/kill runes,
block/stack camps, body block targets, and most importantly, follow around high priority targets. If you
want them to quietly hunt someone, issue a follow command. Press (default) M+left click on a hero. Your
wolf will tail your target but never attack and break invisibility. However, be aware that when the
duration of the wolf ends, the enemy hero will suddenly see a wolf keel over and die next to him,
possibly compromising your sneakiness.
- When jungling or Roshing, you can shake neutral aggro off your wolves the same way you can drop tower
aggro. Select the wolf in question and then a+click another allied unit and the creeps should start
focusing another unit.
- Howl is a game changing skill. It's practically a 10 second Demon Edge for your whole team at level 4.
Pay attention to what your team is doing on the map and use it to help them even if you're not there.
- Always use Smoke before going into the Rosh pit.
- Don't feed Necronomicon creeps just for a few more seconds of tower damage. They're worth a sizable gold
and experience bounty.
Counters
- Pay attention to when the enemy team is Howl'd. Not only can you not trade hits with them now, but it
can be a good signal that Lycan is Roshing.
- While you can't slow him when he's Shapeshifted, mass Eul's is a great way to keep him on lockdown. It's
cheap enough that most people on your team can build it and it buys time for other stuns to come off
cooldown.


From Santa to Scrooge - bring out your good and bad sides next week!
by Ents TeamHere's five things you must do next week
Galloway’s Grotto, St George’s Shopping Centre, Preston, from Saturday, November 23
A local sight loss charity is set to spread festive cheer with the launch of its annual Christmas Grotto in Preston. Visitors will be able to meet Father Christmas in return for a donation and with the option to buy photographs from £2. The grotto will be open every weekend until Christmas Eve and Wednesdays and Thursdays in December. Call 01772 744148.
Monsieur Hulot’s Holiday, The Dukes, Lancaster, Monday, November 25
Monsieur Hulot goes on a holiday to a seaside resort, but accidents and misunderstandings follow him where ever he goes. The peace and quiet don’t last very long with Hulot around, because although his intentions are good, they always turn out catastrophically. Monsieur Hulot’s Holiday (U) is screened as part of The Dukes A Life More Ordinary (ALMO) programme which aims to improve the lives of people with dementia and memory loss, their friends and families though everyone is welcome. Tickets start at £5.50, call 01524 598500 to book.
Shed Seven, King George’s Hall, Blackburn, Tuesday, November 26
Since rising to fame in the 90s as one of the leading lights of Britpop, 2017 saw Shed Seven release their first new album in 16 years .‘Instant Pleasures’ went top ten and achieved acclaim across the board. The Sheds now release their ‘Going For Gold’ re-issue as they fittingly look forward to a tour of true champions. Marking the 25th anniversary of their first album you can expect a mix of Sheds classics. Book online at www.kinggeorgeshall.com, tickets £30.50.
Midweek Meander, Brockholes Nature Reserve, Preston, Wednesday, November 27
Join the Guided Walk Leaders for a free tour of Brockholes reserve. Find out about their history, the wildlife and future conservation aims. There’s no need to book, just turn up dressed for the weather wearing sturdy footwear. Car parking charges apply. See www.brockholes.org.
A Christmas Carol, Darwen Library Theatre, Thursday, November 28
Famed for bringing multiple characters to vivid life, Olivier Award winner Guy Masterson recreates Scrooge, Marley, the Fezziwigs, Tiny Tim et al in an enchanting performance that is guaranteed to get you into the Christmas Spirit – in many more ways than one! Book online at www.darwenlibrarytheatre.com.
Photo: Brigitta Scholz-Mastroianni , Nux Photography.


Manchester City 2-1 Chelsea report, highlights and stats: Pep Guardiola's side back to winning ways to end Frank Lampard's Premier League winning run
by Press AssociationManchester City came from behind to keep themselves within nine points of Premier League leaders Liverpool with a hard-fought 2-1 win over Chelsea.
All the goals in an open contest at the Etihad Stadium came in the first half as the champions responded to N'Golo Kante's early strike with goals from Kevin De Bruyne and Riyad Mahrez.
Raheem Sterling thought he had added a late third for City but his injury-time strike was ruled out for offside in a very tight VAR call.
Sergio Aguero hit the woodwork before the break but the game ended with concern for City's record goalscorer after he hobbled off 13 minutes from time.
City spurned a number of chances to kill off the game in the second half but the Londoners could not get back into the game and were leapfrogged in the table by the hosts, who moved third.
Highlights
Man City rally to beat Chelsea | Manchester City 2-1 Chelsea | Premier League Highlights
Opta stats
- Manchester City have won four Premier League games against Chelsea despite conceding the first goal, more than they have vs any other opponent in the competition.
- While Chelsea have scored more away goals than any other Premier League side this season (19), no side has conceded more on the road than the Blues in 2019-20 (14).
- Manchester City have conceded the first goal in three of their last four home league games, as many as they had in their previous 51 at the Etihad.
- Chelsea’s last four Premier League defeats have been against last season’s top six, including all three so far this season (2 v Liverpool, 1 v Man City, 1 v Man Utd).
- Chelsea didn’t manage a single shot on target after their 21st minute goal in this match.
- Manchester City’s possession of 46.74 is the lowest recorded by a side managed by Pep Guardiola in any of his 381 top-flight matches in charge.
- Man City’s Kevin de Bruyne has been involved in more home goals than any other player in the Premier League this season (9 – 3 goals, 6 assists).
- Chelsea’s N’Golo Kante has scored with all three of his shots on target in the Premier League this season. The Frenchman has scored in three of his last four games in the competition.
- Riyad Mahrez has been directly involved in 10 goals in his 11 starts in all competitions for Man City this season (4 goals, 6 assists).
AS IT HAPPENED: Manchester City 2-1 Chelsea
- Live text by George Pitts
1924: FT Manchester City 2-1 Chelsea
⚽ 21' - Kante
⚽ 29' - De Bruyne
⚽ 37' - Mahrez
The first-half goals decide it as City bounce back from their defeat at Liverpool. Report, highlights and stats to follow...
1922: GOAL DENIED!
City go down the other end and Sterling has the ball in the back of net, cue celebrations...but VAR has different ideas. One of those fine, fine margins with part of Sterling's body being shown by these...skewed lines. But it won't matter anyway, because that's full-time.
1920: Chelsea chance (2-1)
Frank Lampard's side get a free-kick from around 30 yards and it looks a little too far. Mason Mount gets the thumbs up to shoot and his effort is brilliant, to be far, but just wide of the target.
1918: Four minutes added on (2-1)
City really digging in now, defending well to deny Pulisic as the board goes up for stoppage time. Four minutes.
1913: City to see it out? (2-1)
As they continue to look for a third, there's some tired bodies out there and City look in control now, they have four minutes plus stoppage time to see it out.
1907: Willian goes close! (2-1)
The Brazilian nearly scored early in the game and this time he flashes a volley from the edge of the box just over the bar. The replay shows that compatriot Ederson got a fingertip to it. Just over 10 to go.
1900: Chelsea sub (2-1)
Here come the subs. Batshuayi and Mount on, Jorginho and Abraham off.
1859: Foden's impact (2-1)
Phil Foden has come on in place of David Silva who appeared to have an issue and the England U21 midfielder has looked lively, just creating space on the edge of the box before shooting at Kepa. Somehow there has not been a goal in this second half yet.
1844: City chugging away (2-1)
The hosts have a couple of corners and for the second it is a well-worked move which finds Joao Cancelo from around eight yards. He divers it towards the far post and Chelsea get vital bodies in the way. City are relentless and Aguero is soon in the box, but his effort is blocked asnd it comes to nothing.
City are 8/11 to score the game's next goal and you cannot argue with that.
1843: Raincheck (2-1)
It's chucking it down at the Etihad. The surface is slippery and it's ideal for those daisy-cutter shots which are nightmares for goalkeepers to deal with.
1836: Mahrez goes close (2-1)
The Algerian makes another dangerous run inside from the left, dropping a shoulder and going past two men. He is slightly stretched and at speed and flashes it just wide of the post.
1833: Second half! (2-1)
We are back underway. Here's hoping for more of the same. As it stands, City go third, leapfrogging Chelsea and staying within nine points of leaders Liverpool and one behind Leicester.
1825: Watch Saturday's Premier League highlights
1821: Odds update, via Sky Bet
Man City - 1/7 | Draw - 5/1 | Chelsea - 16/1
- Correct score: Manchester City 4-1 - 11/2
- Riyad Mahrez to score a brace - 7/2
- Tammy Abraham to score a header at 18/1
Click here for more in-play odds
1819: HT Manchester City 2-1 Chelsea
That's the interval. Much needed after an entertaining first half.
It has been end-to-end, chances for both sides and it was N'Golo Kante who gave Chelsea the lead after 21 minutes.
With a bit of luck, Kevin De Bruyne drew the hosts level on the half-hour and eight minutes later a moment of brilliance from Riyad Mahrez, a trademark finish, saw the champions take the lead.
All to play for in the second half!
1815: Crossed lines (2-1)
City make another dangerous attack, Sterling down the left, and it falls to David Silva in the box. A lapse in concentration sees the Spaniard pass it back to Sterling who is offside. Half-time closing in.
1813: Aguero goes close! (2-1)
The Argentinian rattles the crossbar after Kepa's mishit clearance finds him on the edge of the box.
1811: City penalty denied (2-1)
A penalty check denies Man City a penalty after Aguero tangles with Tomori.
1810: GOAL VIDEOS
⚽ 21' - Kante
⚽ 37' - Mahrez
1808: GOAL! Manchester City 2-1 Chelsea (Mahrez)
A great goal from Riyad Mahrez puts the hosts ahead. He beats two defenders, comes inside and slides it into the far corner. Wonderful.
1758: GOAL! Manchester City 1-1 Chelsea (De Bruyne)
Our BTTS in the first half tip comes off.
Man City get some good fortune. David Silva's ball is deflected into the path of De Bruyne on the edge of the box and the Belgian's subsequent shot is then deflected past Kepa.
They needed that and De Bruyne has been spritely. Game on!
1751: GOAL! Manchester City 0-1 Chelsea (Kante)
His run from midfield was an early threat and City did not learn as Kante gives the visitors the lead with his third goal in six Premier League appearances. Kovacic's through-ball was delightful. Their three of Kante, Kovacic and Jorginho has worked brilliantly so far with Mount dropped to the bench.
1750: In-play advice (0-0)
No goals yet but BTTS at 5/6 still looks a great price.
Chelsea to have 5+ shots on target looks good at 2/1 - they have already had one.
Check out more in-play markets with Sky Bet here
1745: Another Chelsea chance! (0-0)
City fail to clear a set piece and it drops for Tomori who flashes a shot just past the post. He punches the floor in frustration - the England defender thinks he should have done better with that one. A great watch so far.
1741: Kante loses his marker (0-0)
N'Golo Kante makes a run in behind the City defence, Jorginho slides it through and the flag stays down. He turns inside the chasing defender, lays off Abraham who goes close from the edge of the box. Positive from Lampard's men.
1738: End-to-end (0-0)
Chelsea get a chance at the other end as Willian slides it just wide of the post after getting ahead of Mendy. Intriguing opening 10 minutes or so!
1736: City openings (0-0)
Man City finding plenty of space on the counter, this time Aguero with loads of time running through the middle.  The champions looking sharp so far.
1734: Man City chance (0-0)
A slick City move sees De Bruyne put through on the right of the box and he slides a shot across goal and just past the post. A wake-up call for the visitors.
1730: Kick off!
Here we go at the Etihad - the battle of the Blues!
Pep Guardiola's side know Liverpool won at Palace, so they will not want to slip up. With Chelsea's form under Frank Lampard, it promises to be an intriguing clash.
1726: Teams at the ready in the tunnel
Kick-off is just moments away!
1725: ICYMI - ACCA WINNER!
1720: Team news
Ederson returns in goal for Manchester City as the champions hosted Chelsea in the evening game at the Etihad Stadium.
City made five changes in all with Joao Cancelo, Benjamin Mendy, Riyad Mahrez and David Silva all coming in. Fernandinho was again paired in defence with John Stones.
Jorginho returned from suspension for Chelsea and captain Cesar Azpilicueta was recalled. Christian Pulisic proved his fitness after a groin injury.
1718: Good evening!
Hello and welcome to our live coverage of the big game in the Premier League - Man City v Chelsea at the Etihad.
I am George Pitts, keeping you company for the action.
Pep Guardiola's Manchester City will be hoping to bounce back from their disappointing defeat at Anfield last time out, to avoid falling even further behind in the title race - they are currently nine points adrift of Liverpool.
The Citizens have already lost more times in the opening 12 games of this term than during their entire 100-point campaign in 2017/18 and slipped to fourth, below the visitors. The trip to the north-west will be a big test for Frank Lampard's youthful Blues.
They will be hoping to continue their red-hot form by winning a seventh successive Premier League match.
If you joined us from the 3pm blog, thank you. If you joined us just for this match, welcome!
Sit back and enjoy as we keep you across the big game with updates, goal flashes, images, betting advice, stats and much more.
Our tips will follow shortly, but first a recap of today's results - a couple of managers will no doubt be nervously looking over their shoulder now...
Premier League results
- West Ham 2-3 Tottenham
- Arsenal 2-2 Southampton
- Bournemouth 1-2 Wolves
- Brighton 0-2 Leicester
- Crystal Palace 1-2 Liverpool
- Everton 0-2 Norwich
- Watford 0-3 Burnley
Check out the latest Sky Bet EFL scores here
*Odds via Sky Bet and correct at time of publication
Blades to blunt Ole's United
Premier League predictions, best bets and stats for the Super Sunday clash between Sheffield United and Manchester United.
Responsible gambling
We are committed in our support of responsible gambling. Recommended bets are advised to over-18s and we strongly encourage readers to wager only what they can afford to lose.
Sky Bet's responsible gambling tools are detailed here and if you are concerned about your gambling, please call the National Gambling Helpline on 0808 8020 133, or visit begambleaware.org.


Technology inspired, (12345A)
Submitted applications
12 April 2016
assessment deadline
4
applications submitted
Export application data(.csv)
Filter applications
Search
Filter
20
[TYPE]
Sort by
Application number
Title
Innovation area
Lead organisation
Assigned assessors


Select the images below that interest you the most:
Select one image at a time; images are reshuffle after each selection. Continue selecting until the select-counter receives 25 selections


Are you sure you want to change the submission state?
This will set the submission date of the exam to this moment, and set the submitted status to 'Yes'. Un-submitting the student exam later is possible.
This will remove the submission date and set the submitted status to 'No'.
Recovering those after the deletion is not possible!
| ID | Type | Title | Your points | Points | Bonus points | Reviewer | Has Complaint | Action |
|---|---|---|---|---|---|---|---|---|
| Overall Points | {{ achievedTotalPoints }} | {{ maxTotalPoints }} | {{ bonusTotalPoints }} |


ErrorTargetAddress()
Syntax
Result = ErrorTargetAddress()Description
After an error with the code #PB_OnError_InvalidMemory, this command returns the memory address which was read/written when the error occurred. This command has no meaning for other error codes.
Parameters
None.
Return value
The memory address which was read/written when the error occurred, after a #PB_OnError_InvalidMemory error.
Supported OS
All


With default input
With a custom input
With custom web component
With Custom nested web components
With Custom nested web components inserting to slots


Previous
Next
home
services
contact
27.11.
Vintage Auto Exhibition
The corner garage for collector cars
modify
buy
repair
contact information
click to view
get in touch
male
female
Sign up for newslatter:
recive images
recive promotions
recive updates
recive job offers
send


Home
About
How it Works
FAQ
Pricing
Contact
Log in
Login & Register
Home
Login & Register
login
register
Login
Join with Google
Register
Join with Google


Join CoffeLand addict program and get each 6th coffee for free!
Now show it to barista to start collecting cups:
Wait until your cup will be approved to see how many left to get a free coffee.
Congrats on your 1st coffee!
You need 5 more to get a free coffee at CoffeeLand:


This component is mainly focused on mobile devices. It works as well in desktop using the mouse by dragging down the container.
Pull to refresh controls are very useful in mobile apps because gives you the ability of quickly refresh any list, carousel or wathever with a well controlled gesture.
This page is wrapped with a Refresh control so you can pull down to refresh. When you release, the image in the playground section will be refreshed.
The control only works if you has not scrolled the page because you´ll want the normal behaviour of scrolling down in your device.
So ... scroll to top and start dragging down ... :).

 ... Your content here ...

Stashy.Refresh(selector, options)
| Parameter | Type | Description | |
|---|---|---|---|
| selector | string | CSS selector. Select the Refresh container | |
| options | object | See options | You can pass the options to the refresh instance |
| Option | Type | Default | Description |
|---|---|---|---|
| onRelease | function | $.noop | You need to use this function for doing something when release Refresh after dragging down. The common use is to do some ajax request and call slideUp() for hiding the Refresh control |
| breakpoint | int | 100 | Over this point (in px) when you release the control the onRelease() function will be called. When reaching this point as well, the text message with info in data-release will be changed. While this point is not reached, the data-pull text will be showed. Finally, after release, data-loading will be the text message in the control |
| Name | Description |
|---|---|
| on() | Initializes Refresh with the options you choose |
| slideUp() | Hide Refresh. You have to call slur callback in order to hide the Refresh control |
var refresh = Stashy.Refresh("#myrefresh", { onRelease : function() { var self = this; $.getJSON("api/customers").done(function() { self.slideUp(); }); } }).on();
Scroll up and start dragging down
The dependency on Hammer is mandatory because this control is working with gestures or dragging down and you will need touch support.
less
For using just this component, create a .less file similar to Stashy.less, include in order the following imports and compile:
Stashy.Variables.less Stashy.Mixins.less Stashy.Refresh.lessJS
jQuery.js jquery.hammer.js Stashy.Utils.js Stashy.Modernizr.js Stashy.Refresh.js


The House of Worship
According to the architect, Siamak Hariri, the design brief is deceptively simple:
“a sacred, circular structure, with nine sides, welcoming and embracing people
from all walks of life, all backgrounds, all religions, or no religion at all.
The structure is a single room—a place of worship—where there is no pulpit and no
clergy. In these divisive times, when the world is putting up walls, the design needs
to express, in form, the very opposite. It needs to be inclusive, and welcoming to all.”


@Incubating @NotExtensible public interface MockitoFramework
To get MockitoFramework
instance use Mockito.framework()
.
For more info on listeners see addListener(MockitoListener)
.
| Modifier and Type | Method and Description |
|---|---|
MockitoFramework |
addListener(MockitoListener listener)
Adds listener to Mockito.
|
void |
clearInlineMock(Object mock)
Clears up internal state of specific inline mock.
|
void |
clearInlineMocks()
Clears up internal state of all inline mocks.
|
InvocationFactory |
getInvocationFactory()
Returns a factory that can create instances of
Invocation . |
MockitoPlugins |
getPlugins()
Returns an object that has access to Mockito plugins.
|
MockitoFramework |
removeListener(MockitoListener listener)
When you add listener using
addListener(MockitoListener) make sure to remove it. |
@Incubating MockitoFramework addListener(MockitoListener listener) throws RedundantListenerException
MockitoListener
.
Listeners can be useful for engs that extend Mockito framework.
They are used in the implementation of unused stubbings warnings (MockitoHint
).
Make sure you remove the listener when the job is complete, see removeListener(MockitoListener)
.
Currently the listeners list is thread local so you need to remove listener from the same thread otherwise
remove is ineffectual.
In typical scenarios, it is not a problem, because adding & removing listeners typically happens in the same thread.
If you are trying to add the listener but a listener of the same type was already added (and not removed)
this method will throw RedundantListenerException
.
This is a safeguard to ensure users actually remove the listeners via removeListener(MockitoListener)
.
We do not anticipate the use case where adding the same listener type multiple times is useful.
If this safeguard is problematic, please contact us via Mockito issue tracker.
For usage examples, see Mockito codebase. If you have ideas and feature requests about Mockito listeners API we are very happy to hear about it via our issue tracker or mailing list.
Mockito.framework().addListener(myListener);
listener
- to add to MockitoRedundantListenerException
@Incubating MockitoFramework removeListener(MockitoListener listener)
addListener(MockitoListener)
make sure to remove it.
Currently the listeners list is thread local so you need to remove listener from the same thread otherwise
remove is ineffectual.
In typical scenarios, it is not a problem, because adding & removing listeners typically happens in the same thread.
For usage examples, see Mockito codebase. If you have ideas and feature requests about Mockito listeners API we are very happy to hear about it via our issue tracker or mailing list.
listener
- to remove@Incubating MockitoPlugins getPlugins()
MockMaker
.
For information why and how to use this method see MockitoPlugins
.@Incubating InvocationFactory getInvocationFactory()
Invocation
.
It is useful for framework integrations, because Invocation
is NotExtensible
.@Incubating void clearInlineMocks()
This method is useful to tackle subtle memory leaks that are possible due to the nature of inline mocking
(issue #1619).
If you are facing those problems, call this method at the end of the test (or in "@After" method).
See examples of using "clearInlineMocks" in Mockito test code.
To find out why inline mock maker keeps track of the mock objects see InlineMockMaker
.
Mockito's "inline mocking" enables mocking final types, enums and final methods
(read more in section 39 of Mockito
javadoc).
This method is only meaningful when InlineMockMaker
is in use.
If you're using a different MockMaker
then this method is a no-op.
public class ExampleTest {
@After
public void clearMocks() {
Mockito.framework().clearInlineMocks();
}
@Test
public void someTest() {
...
}
}
If you have feedback or a better idea how to solve the problem please reach out.clearInlineMock(Object)
@Incubating void clearInlineMock(Object mock)
clearInlineMocks()
.
Please read javadoc for clearInlineMocks()
.mock
- to clear upclearInlineMocks()


Developed by Manuel Fritsch<EMAIL_ADDRESS>Website: http://www.CraftBeerPi.com
Thanks for you support


This document is an example for the various styles defined in "Carnot_Styles.css". View source code for details. Styles are defined in "Carnot_style.css", best use the header from this file to inlude it properly.
1.1.1 This is a Sub-Subtitle
2 Layouts
2.1 Text
2.2 Lists
2.2.1 Unordered Lists
2.2.2 Ordered Lists
2.3 Equations
This is regular Text.
use unordered lists to make bulletpoint lists:
use ordered lists to make numbered lists:
The Reference section is a special case of ordered list, using the "ref" class:
Equations are displayed in
Heat transfer to the environment,
or in a seperate paragraph:
| dppump = a0 + a1·ṁ + a2·ṁ2 | (Eq. 2.2) |
|---|
Equation nubering is optional and has to be done "by hand".
Command line input is displayed in a monotype font:
mex ExampleSFunction.c
To format the rather large tables explaining vector or bus components use the "vectortable" class, e.g.
T H V - vector definition
| Col. | Description | Abbreviation | Physical unit | remarks |
|---|---|---|---|---|
| 1 | flow identifier | ID | none | is set by the simulation, not by the user |
| 2 | temperature | T | [°C] | |
| 3 | massflow | mdot | [kg/s] | |
| 4 | pressure | p | [Pa] | |
| 5 | fluid type | fluid_ID | none | is set in the pump |
| 6 | mixture of fluid | fluid_mix | [0..1] | is set in the pump |
| 7 | diameter last piece | d_last | [m] | |
| 8 | constant coefficient of pressure drop | c | none | |
| 9 | linear coefficient of pressure drop | l | [s/kg] | |
| 10 | quadratic coefficient of pressure drop | q | [s2/kg2] | |
| 11 | not used | |||
| to | ... | |||
| 20 | not used |
the width of the columns has to be specified in the header only, numbers given here seem to look pretty okay.


This course provides a general introduction to cartography, broadly defined as the art, science, and ethics of mapmaking and map use. It – and the UW Cartography curriculum in general – focuses upon the design of maps, drawing from research and practice on graphic design, information visualization, and semiotics, perspectives that students are unlikely to receive in other GIS courses. Specifically, the course emphasizes mapmaking over map use (compared to 170) and print mapping over web-based or interactive mapping (compared to 572 and 575, respectively). The course is divided into two components: lectures and labs.
Check out past syllabi and finals projects below!
Instructor: Robert E. Roth
TA: Alicia Everson, Meiliu Wu
Marissa Atkins
Anna Beck
Maya Black
Zoey Colglazier
Vincent Cunningham
Andrew David
Eddy Raina
Chloe Frankovic
Alex Hayek
Matthew Jacques
Ayush Kumar
McKkenzie Maccaux
Ally Magin
Madeleine McCabe
Dagmar Meijer
Clare Michaud
Jessica Moy
Alec Nitka
Angela Peterson
Jacob Peterson
Josh Riebe
Cameron Ritonia
Daniel Roback
Nick Smith
Tea Tetting
Maxwell Thorpe
Travis Tolilver
Adam Tupitz
Junru Wang
Maneliana Wasser
Sarah Yang
Hannah Zweifel


Duke Women in Technology
About
Events
Executive Board
Get Involved
The Percentage Project
Online Resources
WiT Events
Here you'll find our upcoming events!
Event details. RSVP to this WiT event
here.
Date of event
Event details. RSVP to this WiT event
here.
Date of event


** out of ****
Year: 1999. Starring John Travolta, Madeline Stowe, James Cromwell, Timothy Hutton, James Woods, Leslie Stefanson, Daniel von Bargen, Clarence Williams III. Screenplay by Christopher Bertolini and William Goldman. Directed by Simon West. Rated R.
Actors love this stuff. They love to dress up as army guys, stand really straight, and salute a lot. I mean, it made the careers of such actors as Louis Gossett Jr. and George C. Scott, while somehow making Demi Moore look like a respectable actress. This time, John Travolta tries it in "The General's Daughter," a movie that desperately wants to be a Tom Clancy adaptation, but falls just short of stuff like "A Clear and Present Danger" and "Patriot Games." Travolta? Well, he's no Harrison Ford, but he's pretty good. Too bad the story isn't given the same effort as Travolta gives to his performance.
Travolta plays Sgt. Paul Brenner, an investigator for the military currently working on an undercover mission to bust a weapons shipment to the leader of a militia. While on the mission, he meets Elisabeth Campbell (Leslie Stefanson), a pretty young officer working in the army's psychology department. After Brenner finishes his original mission, he is called out on another job, which has Elisabeth dead, bound, and naked in an army training ground, the apparent victim of rape and strangulation. Brought in to help Brenner with the investigation is Sarah Sunhill (Madeline Stowe), a rape expert with whom Brenner has had a romantic past. Further complicating matters is the fact that Elisabeth is the daughter of respected General Joseph Campbell (James Cromwell), under whom Brenner served in Vietnam and who wants the matter kept entirely within the military. Brenner and Sunhill discover that there is more to the murder than simple rape, as they find that Elisabeth was involved in sadomasochistic sexual activity, and has more than her share of skeletons in the closet.
The strongest part of "The General's Daughter" is that all the actors give enthusiastic performances. Travolta does his best to emulate Harrison Ford, playing the man with unshakable moral character who must fight for what's right while everyone else tells him to keep his nose out of it. While he's not nearly as compelling as Ford was in "A Clear and Present Danger," he still does a respectable job of carrying the film. He hits the right note in most scenes and delivers one-liners with fine comic timing. His scenes with James Woods, playing Elisabeth's teacher who obviously knows more than he's letting on, are among the best in the movie. Woods' character is a psychological expert, and Travolta matches him line for line as the two go through a nicely-written little psychological battle. James Cromwell now seems to be making a living of playing seedy high-ranking officers with plenty to hide. After his role in "L.A. Confidential," he's up to his villainous old tricks here. We're not sure if he's the killer, but there is little doubt that he had something to do with it. Madeline Stowe, being the woman, is (not surprisingly) underwritten. These movies just aren't made for female actors. She has little more to do than follow Travolta around and make vague allusions to some romantic rendezvous they had years ago. Won't the writers please give her more to do?
Veteran screenwriter William Goldman was brought in on this project to spice up the dialogue, and it shows. There are plenty of clever one-liners and scene-closing zingers in "The General's Daughter." While Goldman may have gone a bit overboard by ending practically every scene with a snappy joke, his dialogue is quite good in most scenes. Now, one would think that snappy dialogue and above-average performances would make for a great movie, but they don't, because the story is not nearly up to par. What's wrong with it? First off, the whole thing is pretty routine and, at times, downright silly. Bad guys are bad guys and good guys are good guys. While we are at no time certain who the killer is, there is no doubt who was involved. The film runs into a problem near the end when, after throwing us red herring after red herring about the identity of the killer, it suddenly has to decide on someone, and the decision left me somewhat nonplused. The choice seemed rather arbitrary and was not explained terribly well, a surprise after the movie has held our hand most of the way through, explaining in great detail exactly what is going on, and leaving nothing to the imagination. The film also gets into trouble because of that very dedication to detail. We see the events of Elisabeth's rape in harsh and unnecessary flashbacks, while her naked corpse is left out in the open for an awfully long time. I thought it was standard procedure to cover up the body at a murder scene. In "The General's Daughter," it is apparently not. Not only that, but most of the major revelations come in a sort of "Whoops, I found a clue" fashion. Brenner is constantly noticing things out of the corner of his eye, and after a while it becomes annoying.
Director Simon West keeps the film moving quickly, if nothing else, but his direction is far too obvious when it comes to setting the tone for a scene. There are "meaningful looks" galore in "The General's Daughter." Travolta walks into a bar and it seems that everyone, even the extras, is glaring at him. West's attempts to set "mood lighting" only give the impression that someone forgot to pay the lighting bill. Nobody ever has a well-lit basement, apartment, or office in a movie like this, and for some reason the investigators decide to drop in on the crime scene in the dead of night. The director, along with the screenwriters, also allows random subplots to disappear at whim. A bit about a meddling local sheriff ends up being used only as comic relief. The story of Brenner and Sunhill's relationship goes nowhere, and it becomes clear that it was only mentioned to set up romantic "tension" between the two, not to develop their characters.
"The General's Daughter" is obviously not trying to win any points for originality, but at least it could have tried to tell us something new. Instead, we get mixed messages about women in the military and corruption of high-ranking officers, nothing that we didn't already see done much better in "G.I. Jane," or any number of Tom Clancy adaptations. It's too bad that the story doesn't provide better punch, because this film has a few things going for it: (1) It's mercifully short (after sitting through oppressively long films of this genre, a two-hour running time is a blessing), (2) it boasts an A-list cast, and (3) it has plenty of good dialogue. With those things going for it, "The General's Daughter" stood a good chance of being an intriguing military drama. With such a formulaic and obvious plot, however, it stands as a mediocre entry into the realm of political thrillers.
-reviewed by Shay Casey
For more reviews, go to http://www.geocities.com/Hollywood/Land/4252/movies.html
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


The purpose of this program is to identify single nucleotide positions that are different between tumor and normal (or, in theory, any two bam files). It takes a tumor bam and a normal bam and compares the two to determine the differences. It outputs a file in a format very similar to Samtools consensus format. It uses the genotype likelihood model of MAQ (as implemented in Samtools) and then calculates the probability that the tumor and normal genotypes are different. This probability is reported as a somatic score. The somatic score is the Phred-scaled probability (between 0 to 255) that the Tumor and Normal genotypes are not different where 0 means there is no probability that the genotypes are different and 255 means there is a probability of 1 – 10(255/-10) that the genotypes are different between tumor and normal. This is consistent with how the SAM format reports such probabilities. It is currently available as source code via github or as a Debian APT package.
David E. Larson, Travis E. Abbott and Christopher C. Harris October 26, 2011
Citations for SomaticSniper should reference the Bioinformatics paper.


@* * This template takes a single argument, a String containing a * message to display. *@ @(message: String) @* * Call the `main` template with two arguments. The first * argument is a `String` with the title of the page, the second * argument is an `Html` object containing the body of the page. *@ @main("Dashboard") { @* * Get an `Html` object by calling the built-in Play welcome * template and passing a `String` message. *@


ABOUT US
In our country getting justice for women is not easy. Although efforts have been made over the years by the Indian government to empower women socially, economically, and politically, enactment of legislation has been difficult to implement due to the vastness of the country, the wide distribution of the female workforce, and the indifferent attitude of government bureaucracy.So, we intend to provide a way for women to easily get justice.
We here aim to provide a platform to speed up the lengthy and tedious judicial process that the victim undergoes while fighting for her rights. Also, we provide psychological help and counselling anonymously. We also maintain the completed, ongoing and pending cases record pictorically.
We hope that this would make women coming in touch with us more confident. They are disproportionately affected by poverty and discrimination; and suffer abuse and violations in the realisation of their rights, entitlements and access and control over resources. Also, experience shows that, when equipped with the proper resources, women have the power to help whole families and entire communities overcome poverty, marginalisation and social injustice.


ASTRO reveal track list for 'Blue Flame' mini album
by germainejASTRO have revealed the track list for their upcoming mini album 'Blue Flame'.
The teaser image below reveals a worn, blue surface with the songs "Blue Flame", "Gob Stop", "All About You", "When the Wind Blows", and "You're My World". JinJin and Rocky wrote the rap lyrics for all the tracks, and Rocky also wrote the lyrics for "When the Wind Blows".
'Blue Flame' drops on November 20 KST. Stay tuned for updates!


register_shutdown_function
(PHP 4, PHP 5, PHP 7)
register_shutdown_function — Register a function for execution on shutdown
说明
void register_shutdown_function ( callable $callback [, mixed $parameter [,
mixed $... ]] )
Registers a callback to be executed after script execution finishes or exit()
is called.
Multiple calls to register_shutdown_function() can be made, and each will be
called in the same order as they were registered. If you call exit() within one
registered shutdown function, processing will stop completely and no other
registered shutdown functions will be called.
参数
callback
The shutdown callback to register.
The shutdown callbacks are executed as the part of the request, so it's
possible to send output from them and access output buffers.
parameter
It is possible to pass parameters to the shutdown function by passing
additional parameters.
...
返回值
没有返回值。
错误／异常
If the passed callback is not callable a E_WARNING level error will be
generated.
更新日志
版本 说明
The shutdown functions are now called as a part of the request. In
earlier versions under Apache, the registered shutdown functions were
4.1.0 called after the request has been completed (including sending any output
buffers), so it was not possible to send output to the browser using echo
or print, or retrieve the contents of any output buffers using
ob_get_contents(). Headers were also always already sent.
范例
Example #1 register_shutdown_function() example
注释
Note:
Working directory of the script can change inside the shutdown function
under some web servers, e.g. Apache.
Note:
Shutdown functions will not be executed if the process is killed with a
SIGTERM or SIGKILL signal. While you cannot intercept a SIGKILL, you can
use pcntl_signal() to install a handler for a SIGTERM which uses exit() to
end cleanly.
参见
• auto_append_file
• exit() - 输出一个消息并且退出当前脚本
• The section on connection handling
User Contributed Notes 53 notes
===============================================================================
If your script exceeds the maximum execution time, and terminates thusly:
Fatal error: Maximum execution time of 20 seconds exceeded in - on line 12
The registered shutdown functions will still be executed.
I figured it was important that this be made clear!
===============================================================================
If you want to do something with files in function, that registered in
register_shutdown_function(), use ABSOLUTE paths to files instead of relative.
Because when script processing is complete current working directory chages to
ServerRoot (see httpd.conf)
===============================================================================
If you need the old (<4.1) behavior of register_shutdown_function you can
achieve the same with "Connection: close" and "Content-Length: xxxx" headers if
you know the exact size of the sent data (which can be easily caught with
output buffering).
An example:
The same will work with registered functions.
According to http spec, browsers should close the connection when they got the
amount of data specified in Content-Length header. At least it works fine for
me in IE6 and Opera7.
===============================================================================
You may get the idea to call debug_backtrace or debug_print_backtrace from
inside a shutdown function, to trace where a fatal error occurred.
Unfortunately, these functions will not work inside a shutdown function.
===============================================================================
I have discovered a change in behavior from PHP 5.0.4 to PHP 5.1.2 when using a
shutdown function in conjunction with an output buffering callback.
In PHP 5.0.4 (and earlier versions I believe) the shutdown function is called
after the output buffering callback.
In PHP 5.1.2 (not sure when the change occurred) the shutdown function is
called before the output buffering callback.
Test code:
' . __FUNCTION__ .'';
return $buf;
}
function shutdown_func() {
echo '
' . __FUNCTION__ .'';
}
ob_start('ob_callback');
register_shutdown_function('shutdown_func');
echo '';
?>
PHP 5.0.4:
1. ob_callback
2. shutdown_func
PHP 5.1.2:
1. shutdown_func
2. ob_callback
===============================================================================
As of PHP 5.3.0, the last note about unpredictable working directory also
applies to FastCGI, when previously it didn't.
===============================================================================
When using objects the syntax register_shutdown_function(array($object,
'function')) will take a copy of the object at the time of the call. This
means you cannot do this in the constructor and have it correctly destruct
objects. The alternative is to use register_shutdown_function(array(&$object,
'function')) where the ampersand passes the reference and not the copy. This
appears to work fine.
===============================================================================
The following function register_close_function should reproduce the former php
behavior of closing the connection before executing the shutdown handler, based
on the code posted by sts at mail dot xubion dot hu. It does not work on any
machine.
===============================================================================
I had a problem when forking a child process and accessing the variables by
using the "global" keyword in the shutdown function.
So i used another way for getting the variables to the shutdown function: I
passed them by reference.
Example:
Maybe tis helps someone. (I'm using PHP 5.2.11)
===============================================================================
If you register function that needs to be running last (for example, close
database connection) - just register another shutdown function from shutdown
function:
the script will call functions in correct order: test1, test2, test3, test_last
===============================================================================
You definitely need to be careful about using relative paths in after the
shutdown function has been called, but the current working directory doesn't
(necessarily) get changed to the web server's ServerRoot - I've tested on two
different servers and they both have their CWD changed to '/' (which isn't the
ServerRoot).
This demonstrates the behaviour:
Outputs:
cwd: /path/to/my/site/docroot/test
cwd: /
NB: CLI scripts are unaffected, and keep their CWD as the directory the script
was called from.
===============================================================================
re:codeslinger at compsalot dot com
fork() is actually creating 2 processes from one. So there is no surprise
register_shutdown_function will be executed per each process.
I think you have reported this as a bug and now in php 5.1.0 when you exit from
child process, it does not execute it. Well, what are you going to do if you
have something to register for forked process?
I hope php will be more stable near soon!
codeslinger at compsalot dot com
03-Feb-2005 09:22
Here is a nice little surprise to keep in mind...
If you register a shutdown function for your main program.
Guess What?
When the child exits it will run the code that was intended for the main
program. This can be a really bad thing ;-)
Happily there is a simple work-around. All you need to do is to create a
global variable such as:
$IamaChild = [TRUE | FALSE];
and have your shutdown function check the value...
===============================================================================
When using CLI ( and perhaps command line without CLI - I didn't test it) the
shutdown function doesn't get called if the process gets a SIGINT or SIGTERM.
only the natural exit of PHP calls the shutdown function.
To overcome the problem compile the command line interpreter with
--enable-pcntl and add this code:
This way when the process recieves one of those signals, it quits normaly, and
the shutdown function gets called.
Note: using the pcntl function in web server envoirment is considered
problematic, so if you are writing a script that runs both from the command
line and from the server, you should put some conditional code around that
block that identifies wheater this is a command line envoirment or not.
===============================================================================
Use this small snippet inside your bootstrap in order to always have a way to
know reliably what was the last page of your site that the user have visited,
without having to use $_SERVER['HTTP_REFERER'].
===============================================================================
A lot of useful services may be delegated to this useful trigger.
It is very effective because it is executed at the end of the script but before
any object destruction, so all instantiations are still alive.
Here's a simple shutdown events manager class which allows to manage either
functions or static/dynamic methods, with an indefinite number of arguments
without using any reflection, availing on a internal handling through
func_get_args() and call_user_func_array() specific functions:
callbacks = array();
register_shutdown_function(array($this, 'callRegisteredShutdown'));
}
public function registerShutdownEvent() {
$callback = func_get_args();
if (empty($callback)) {
trigger_error('No callback passed to '.__FUNCTION__.' method',
E_USER_ERROR);
return false;
}
if (!is_callable($callback[0])) {
trigger_error('Invalid callback passed to the '.__FUNCTION__.'
method', E_USER_ERROR);
return false;
}
$this->callbacks[] = $callback;
return true;
}
public function callRegisteredShutdown() {
foreach ($this->callbacks as $arguments) {
$callback = array_shift($arguments);
call_user_func_array($callback, $arguments);
}
}
// test methods:
public function dynamicTest() {
echo '_REQUEST array is '.count($_REQUEST).' elements long.
';
}
public static function staticTest() {
echo '_SERVER array is '.count($_SERVER).' elements long.
';
}
}
?>
A simple application:
";
}
$scheduler = new shutdownScheduler();
// schedule a global scope function:
$scheduler->registerShutdownEvent('say', 'hello!');
// try to schedule a dyamic method:
$scheduler->registerShutdownEvent(array($scheduler, 'dynamicTest'));
// try with a static call:
$scheduler->registerShutdownEvent('scheduler::staticTest');
?>
It is easy to guess how to extend this example in a more complex context in
which user defined functions and methods should be handled according to the
priority depending on specific variables.
Hope it may help somebody.
Happy coding!
===============================================================================
register_shutdown_function seems to be immune to whatever value was set with
set_time_limit or the max_execution_time value defined in php.ini.
';
sleep(1);
echo microtime(true) . '
';
sleep(1);
echo microtime(true) . '
';
}
register_shutdown_function('asdf');
set_time_limit(1);
while(true) {}
?>
The output is three lines.
===============================================================================
When using php-fpm, fastcgi_finish_request() should be used instead of
register_shutdown_function() and exit()
For example, under nginx and php-fpm 5.3+, this will make browsers wait 10
seconds to show output:
";
register_shutdown_function('shutdown');
exit;
function shutdown(){
sleep(10);
echo "Because exit() doesn't terminate php-fpm calls immediately.
";
}
?>
This doesn't:
";
fastcgi_finish_request();
sleep(10);
echo "You can't see this form the browser.";
?>
===============================================================================
Given this code:
there appear to be 3 ways to set a callback function in PHP (using
register_shutdown_function() as an example):
1: register_shutdown_function('NonClassFunction');
2: register_shutdown_function(array('CallbackClass', 'StaticFunction'));
3: $o =& new CallbackClass();
register_shutdown_function(array($o, 'CallbackFunction'));
The following may also prove useful:
===============================================================================
Here is a nice little surprise to keep in mind...
If you register a shutdown function for your main program.
Guess What?
When the child exits it will run the code that was intended for the main
program. This can be a really bad thing ;-)
Happily there is a simple work-around. All you need to do is to create a
global variable such as:
$IamaChild = [TRUE | FALSE];
and have your shutdown function check the value...
===============================================================================
Read the post regarding the change of working directory to ServerRoot
carefully. This means that require_once "path/to/script" (or similar
constructs) with relative paths will not work in shutdown functions.
===============================================================================
It's already been discussed on the zlib page ( http://www.php.net/zlib ), but
hasn't been mention here...
When zlib compression is enabled, register_shutdown_function doesn't work
properly. Anything output from your shutdown function will not be readable by
the browser. Firefox just ignores it. IE6 will show you a blank page.
The workaround that worked for me is to add the following to the top of the
script.
ini_set('zlib.output_compression', 0);
===============================================================================
I've had immense trouble getting any of the examples of emulated destructors to
work. They always seemed to have a copy of the object just after
initialisation. Many people mention that the register_shutdown_function will
take a copy of the object rather than a reference... and this can be cured with
an ampersand. If you look in the PEAR docs for the way they emulate
destructors you'll find that you also need one before the "new" statement when
you create an instance of your object. There's an editors note above that
mentions this too... but I thought I'd collect it all here in one example that
really works. Honest... I'm using it (PHP 4.3.1):
===============================================================================
I was trying to figure out how to pass parameters to the
register_shutdown_function() since you cannot register a function with
parameters and passing through globals is not appropriate. E.g. what I was
trying to do was register_shutdown_function("anotherfunction('parameter')")
?>
Turns out, the trick is to use create_function() to create a "function" that
calls the desired function with static parameters.
Here's another example showing in-line logging and a post-execution version:
Before: in-process logging
After:
In the 'before' example, the file is written (and the delay occurs) before the
"logged" appears. In the 'after' example, the file is written after execution
terminates.
Maybe it would be nice to add a parameter to the register_shutdown_function
that does this automatically?
===============================================================================
Contrary to the the note that "headers are always sent" and some of the
comments below - You CAN use header() inside of a shutdown function as you
would anywhere else; when headers_sent() is false. You can do custom fatal
handling this way:
method();
function shutdown()
{
if(!is_null($e = error_get_last()))
{
header('content-type: text/plain');
print "this is not html:\n\n". print_r($e,true);
}
}
?>
===============================================================================
Note that register_shutdown_function() does not work under Apache on Windows
platforms. Your shutdown function will be called, but the connection will not
close until the processing is complete. Zend tells me that this is due to a
difference between Apache for *nix and Apache for Windows.
I'm seeing similar behavior under IIS (using php4isapi).
===============================================================================
In PHP 5.1.6 things don't work as described here.
The truth is that connection_status() just always returns 0 whether or not the
client has aborted (e.g. the user hit the stop button), and that (consistently
with this) the registered shutdown function will only be called on exit, but
NOT when the connection is aborted from the user.
That is, PHP does NOT detect when the connection is aborted.
===============================================================================
Note that if the handler function is private static it will never be called! It
must be public!
===============================================================================
simple method to disconnect the client and continue processing:
===============================================================================
Something found out during testing:
the ini auto_append_file will be included BEFORE the registered function(s)
will be called.
===============================================================================
Note that in the various solutions presented here, a call to ob_start() at the
begining of a script and a flush at the end will defeat any optimisation
attempt to return large files in chunks (custom code or readfile). i.e. don't
use ob_start if you are going to return large files you will simply bust the
memory limit.
===============================================================================
You can use a static method of a class as a shutdown function without passing
an instance. I think that doesn't make too much sense, however it's possible.
If this method is *NOT* static, then PHP will complain about an invalid
callback instead of just emitting an E_STRICT error.
===============================================================================
This may seem obvious to many people, but don't register an object's __destruct
() function as a shutdown function! In many instances, it will then call the
destructor twice, most likely on an already destroyed object! For example, you
might get this error:
PHP Warning: mysqli::close() [
function.mysqli-close]: Couldn't fetch mysqli in /path/to/file.php
I saw docey's comment from 2006 in this very page where they do just that, and
this more often than not cause problems!
It would be wise to look out for old code where someone has done that very
thing then too!
===============================================================================
You can achieve similar results by using auto_append_file in the php.ini or
.htaccess file:
(php.ini)
auto_append_file = /my-auto-append-file.php
(.htaccess)
php_value auto_append_file /my-auto-append-file.php
===============================================================================
Response to => vbwebprofi at gmx dot de 22-Nov-2003 03:12
You have to do a changement on the object to see the difference between = and =
&
Here is your code modified to see the difference.
The modification of the code are essentially the var $Value_changed and the
function change().
I have tested it under RedHat 9 with PHP 4.2.2
--8<--- cls_TEST.php --------------------------------------------->8--
Value = $in_Value;
$this->Value_changed = $in_Value;
$this->_Log('TEST');
}
// Destructor
function _TEST() {
$this->_Log('_TEST');
}
// Private function
function _Log($in_Msg) {
$oF = fopen('/tmp/TEST.log', 'a');
fwrite($oF, sprintf("%s : %-5s = %d ; %d\n",
date('Y-m-d H:i:s', time()),
$in_Msg,
$this->Value,
$this->Value_changed));
fclose($oF);
}
// Function change()
function change() {
$this->Value_changed++;
$this->_Log('change');
}
}
?>
--8<--- test_TEST.php -------------------------------------------->8--
\n";
$o1 = new TEST(1);
$o2 =& new TEST(2);
# Strange declaration :
$o3 &= new TEST(3);
echo "Sleep...
\n";
sleep(5);
echo "Change...
\n";
$o1->change();
$o2->change();
# The following line doesn't work !
#$o3->change();
echo "Sleep...
\n";
sleep(5);
echo "End.";
?>
--8<-------------------------------------------------------------->8--
It should produce a content like this in the file, specified in the _Log
function :
2003-12-02 04:22:55 : TEST = 1 ; 1
2003-12-02 04:22:55 : TEST = 2 ; 2
2003-12-02 04:22:55 : TEST = 3 ; 3
2003-12-02 04:23:01 : change = 1 ; 2
2003-12-02 04:23:01 : change = 2 ; 3
2003-12-02 04:23:06 : _TEST = 1 ; 1
2003-12-02 04:23:06 : _TEST = 2 ; 3
2003-12-02 04:23:06 : _TEST = 3 ; 3
===============================================================================
One more note to add about register_shutdown_function and objects.
It is possible to self-register the object from the constructor, but even using
the syntax:
register_shutdown_function(array(&$this,'shutdown'))
will only result in the function being called with the object in the "just
initialized" state, any changes made to the object after construction will not
be there when the script actually exits.
But if you use:
the object method 'shutdown' will be called with the current state of the
object intact.
[Editor's note: The explanation for this behavior is really simple.
"$obj = new object()" creates a copy of the object which you can refer with
$this in the object's constructor.
To solve this "problem" you should use "$obj = &new object()" which assign the
reference to the current object.]
===============================================================================
Sinured's example of how to use a static method did not work for me.
But this did:
Hope this helps someone.
[EDIT by danbrown AT php DOT net: This example did not work for the author of
this note because it is written for PHP 5. The author was using PHP 4.]
===============================================================================
Well, it might be obvious, but one should remember that one cannot send any
HTTP header in the shutdown callback.
Something like
doesn't work and PHP sends out the popular "headers already sent" warning.
I tried to set a redirection target somewhere in the script, but wanted to make
sure that it was only set/executed at the very end of the script, since my
custom redirect function also cleaned any output buffers at that point. Well,
no luck here =)
===============================================================================
Quick note: As of PHP 5.5.11 this function ignores current namespace and 'use'
statements so it is mandatory to use the fully qualified name of the function
in the callback parameter
===============================================================================
for static call
register_shutdown_function(function () {
demo::shutdownFunc();
});
===============================================================================
A note about error management.
If you like to use the boolean 'or' operator for error detection, like this:
it won't work.
This function always returns void which == false, so the exception will
*always* be thrown.
Error reporting is integrated into the function.
===============================================================================
May be obvious for most people, but I spent time to clearly understand
something which is only INDIRECTLY mentioned by the manual, so I hope this
useful for someones.
Pay attention to the function prototype: the $function argument is a callback
one (follow the link for more information).
This means that you must write this argument differently depending on the
$function context:
. function-name, as a string, when it is a built-in or user-defined function
. array(class-name, method-name), when it is an object method
===============================================================================
Just a note to say that if your function uses paths relative to the script you
are running (ie. for reading files, "../dir/" etc) then your function may not
work correctly when registered as a shutdown function. I'm not sure where the
'working dir' IS when running a shutdown function but I find it best to use
absolute paths ("/home/www/dir/").
===============================================================================
I performed two tests on the register_shutdown_function() to see under what
conditions it was called, and if a can call a static method from a class. Here
are the results:
To test simply leave one of the three test lines uncommented and execute.
Executing bottom-up yielded:
1138382480 - 0
1138382503 - exit
1138382564 - throw
HTH
===============================================================================
Just a quick note: from 5.0.5 on objects will be unloaded _before_ your
shutdown function is called which means you can't use previously initiated
objects (such as mysqli).
See bug 33772 for more information.
===============================================================================
Various commenters have described how this function doesn't work for
time-consuming background processing, because the webpage doesn't close the
connection. The workaround using output buffering and header('Connection:
close'); seems to work, but the solution I prefer is to put the background
processing in a separate script which gets included as a transparent gif.
@-----------Page you want to add background processing to ---------@
Hello World
@------------------------------------------------------------------@
The only caveat is, of course, if the user has images turned off then the
script won't be called. Tested successfully with IE6, Firefox 0.8, and Opera
7.11
===============================================================================
When using the register_shutdown_function command in php 4. The registered
functions are called in the order that you register them.
This is important to note if you are doing database work using classes that
register shutdown functions for themselves.
You must register the shutdown_functions in the order that you want things to
shutdown. ( ie the database needs to shutdown last )
Example of what will not work but what you might expect to work :
\n"
;
register_shutdown_function( array( &$this, "phpshutdown" ) );
$this->connected = 1;
}
function do_sql( $sql ) {
if ( $this->connected == 1 ) {
echo "performing sql -- (database :: do_sql)
\n";
} else {
echo " ERROR -- CAN NOT PERFORM SQL -- NOT CONNECTED TO
SERVER -- (database :: do_sql)
\n";
}
}
function phpshutdown() {
echo "close connection to sql server -- (database ::
shutdown)
\n";
$this->connected = 0;
}
}
class table {
function table( &$database, $name ) {
$this->database =& $database;
$this->name = $name;
echo "read table data using database class -- name=$this->name
-- (table :: constructor)
\n";
register_shutdown_function( array( &$this, "phpshutdown" ) );
$this->database->do_sql( "read table data" );
}
function phpshutdown() {
echo "save changes to database -- name=$this->name -- (table
:: shutdown)
\n";
$this->database->do_sql( "save table data" );
}
}
$db =& new database();
$shoppingcard =& new table( &$db, "cart " );
?>
Output of the above example is :-
connect to sql server -- (database :: constructor)
read table data using database class -- name=cart -- (table :: constructor)
performing sql -- (database :: do_sql)
close connection to sql server -- (database :: shutdown)
save changes to database -- name=cart -- (table :: shutdown)
ERROR -- CAN NOT PERFORM SQL -- NOT CONNECTED TO SERVER -- (database :: do_sql)
===============================================================================
It should be noted that register_shutdown_function() does not guarantee that
the connection will be closed before executing the function. In particular on
Apache 1.3.27 w/ PHP 4.3.0 on OS X as well as Apache 1.3.22 w/ PHP 4.1.2 on Red
Hat I have discovered that Apache does not close the connection until after the
registered shutdown function has completed execution. I am not sure what the
circumstances that cause this are, but there is a bug at http://bugs.php.net/
bug.php?id=20447
This is important, because as far as I can tell, the documented functionality
of register_shutdown_function() is the *ONLY* way to achieve anything
resembling asynchronous processing with PHP in a web server environment. In my
mind this is a severe limitation, because if you have some processing intensive
task that needs to be done and you want to do it in PHP, there is no way to
have it occur without an accompanying wait in a browser window. Sure you can
use ignore_user_abort() to ensure that processing doesn't get cancelled by an
impatient user (or impatient browser for that matter), but usability is still
compromised.
===============================================================================
Note that under Windows 2003/IIS6 and PHP5 5.1.2 ISAPI the
register_shutdown_function executes under IUSR_, regardless of what user the
script executes under.
This means that even if you use Application Pools and NETWORK SERVICE as user,
shutdown functions will run under the default IIS user.
===============================================================================
If you use register_shutdown_function under fastCGI (using php 5.4.4, Apache
2.2/Debian) and the user clicks cancel request in the browser
register_shutdown_function will not be called.
My solution was to use ignore_user_abort(true) to ignore the user abort.
Example (you may test request abort in the browser with and without
ignore_user_abort):
===============================================================================
According to tests shown in this comment on the PHP5 deconstructor page:
http://us3.php.net/manual/en/language.oop5.decon.php#76710
Functions registered with register_shutdown_function are called before
deconstructors, at least as of PHP 5.2.1. This contradicts an earlier commenter
who claims that objects cannot be utilized in functions called from
register_shutdown_function. This is good news for those who want to use
register_shutdown_function to work around the (fairly nasty) problems with
using objects in a session write handler.
===============================================================================
This simple function (i gues) is for measuring page generation time in
microseconds, using earlier mentioned register_shutdown_function...
Here is an example:
Page was generated in '.bcsub($end, $start, 10).'
seconds...
';
}
}
check_time(microtime()); //Caling our function once!
//Doing some job which we will measure...
$fd = fopen('users.txt', 'r');
while(!feof($fd)){
$buffer .= fread($fd, 1024);
}
fclose($fd);
?>
As you see may be its large, but you dont have to call "check_time" function
twice, in the start and at the end of the script, as many users usually do...
===============================================================================
if you want to make use of php5 __construct and _destruct functionality this
functions is your rescue.
so say you have a class called 'fiveclass', you need some code like this:
__construct(); // forward php4 to __construct
}
function __construct()
{
// register __destruct method as shutdown function
register_shutdown_function(array(&$this, "__destruct"));
return true;
}
function __destruct()
{
// finish what where doing;
close_db();
flush_output();
write_cache_away();
return true;
}
}
$obj = new fiveclass();
?>
now you have the same functionality. __destruct is automaticly called at the
end of your script.
===============================================================================
There is a note "Shutdown function is called during the script shutdown so
headers are always already sent.", but my php 5.1 seems to act differently.
Example:
running = true;
ob_start();
error_reporting(E_ALL);
register_shutdown_function(array($this, "clean_exit"));
echo "Hello";
// triggers E_ERROR
$fatal->error();
$this->running = false;
}
public function clean_exit() {
if ($this->running) {
header("Location: error.php");
}
}
}
$t = new Test();
$t->main();
?>
This example redirects you on error.php, this could be a simple way to handle
E_ERROR.


{{template "header.html" .Header}}
{{template "navbar.html" .}}Please enter your e-mail address and your new password.
Passwords can be any mixture of ASCII and Unicode, you can even use emojis. An ASCII only password must be at least 10 characters and a Unicode/Emoji one must be at least 6 characters. You can mix the two. A password cannot be an anagram of your e-mail address or an e-mail address.


XUM
I. TESTS FOR HELICITY CONSERVATION AND SPIN-PARITY
SELECTIO:; RULES IN DIFFRACTION DISSOCIATION
IZ. INDEPENDENT PRODUCTION OF PIONS
Thesis by
il Richard N° Silver
In Partial Fulfillment of the Requirements for the
Degree of Doctor of Philosophy
California Institute of Technology
Pasadena, California
1971
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.


Calculating the lift force¶
This example loads an airfoil and calculates a lift force for a given wind speed.
Specifications¶
- The airfoil is NACA 2414
- The wind speed is 10 m/s
Code¶
# -*- coding: utf-8 -*-
"""Example 2: Calculate a lift force
"""
import os
from mypack.utils.io import read_selig
from mypack.calcs import get_lift
def example_2():
"""Run example 2"""
# script inputs
mod_path = os.path.dirname(os.path.abspath(__file__)) # current module
air_path = os.path.join(mod_path, '..',
'tests', 'test_utils', 'files', 'demo_selig.dat')
wsp = 10
# load coordinates from a a selig-style airfoil file
air_df = read_selig(air_path)
# calculate the lift
lift_force = get_lift(air_df, wsp)
out_path = os.path.join(mod_path, 'example_2.out')
with open(out_path, 'w') as f:
f.write(f'The lift force at {wsp} m/s is {lift_force:.2f} N.')
if __name__ == '__main__': # call function when run as script
example_2()


Breakfast: {{ foodCost.Breakfast }}
Lunch: {{ foodCost.Lunch }}
Dinner: {{ foodCost.Fruit }}
Fruit: {{ foodCost.Breakfast }}
Public Transportation: {{ transportationCost.Public_Trans }}
Taxi: {{ transportationCost.Taxi_Total }}
Drive: {{ transportationCost.Drive_Total }}
Rent: {{ accomodationCost.Rent }}
Utilities: {{ accomodationCost.Utilities }}
Cigarette: {{ tobacco.Cigarette }}
Beer: {{ tobacco.Beer }}
Outfit: {{ miscCost.Outfit }}
Cinema: {{ miscCost.Cinema }}
Fitness: {{ miscCost.Fitness }}


---
layout: post
title:
date: '2014-04-02T17:06:00.003-07:00'
author: gojimmypi
tags:
modified_time: '2014-04-30T20:09:31.998-07:00'
blogger_id: tag:blogger.com,1999:blog-4109066286647243251.post-6050910238885008501
blogger_orig_url: https://gojimmypi.blogspot.com/2014/04/raspberry-pi-is-not-only-kid-on-block_2.html
---
Raspberry Pi is not the only kid on the block. Intel recently announced their latest
Minnowboard and of course there's the beagleboard
that seems to have been around for some time, too. I considered some of these, but the Raspberry Pi had the most appeal for its low cost and relatively large following. Some of the other embedded systems are probably great for more serious applications, like creating your own commercial DVR or something, but I was only interested as a hobbyist.
My Raspberry Pi is not here yet. Current status: "Out for delivery"
Copyright (c) gojimmypi all rights reserved. Blogger Image Move Cleaned: 5/3/2021 1:35:50 PM


|
CCL
|
#include "ccl_cls.h"
#include "ccl_power.h"
#include "ccl_background.h"
#include "ccl_error.h"
#include "ccl_utils.h"
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "gsl/gsl_errno.h"
#include "gsl/gsl_integration.h"
#include "ccl_params.h"
Data Structures | |
| struct | IntLensPar |
| struct | IntMagPar |
| struct | IntClPar |
Functions | |
| CCL_ClTracer * | ccl_cl_tracer_new (ccl_cosmology *cosmo, int tracer_type, int has_rsd, int has_magnification, int has_intrinsic_alignment, int nz_n, double *z_n, double *n, int nz_b, double *z_b, double *b, int nz_s, double *z_s, double *s, int nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, double z_source, int *status) |
| void | ccl_cl_tracer_free (CCL_ClTracer *clt) |
| CCL_ClTracer * | ccl_cl_tracer_cmblens_new (ccl_cosmology *cosmo, double z_source, int *status) |
| CCL_ClTracer * | ccl_cl_tracer_number_counts_new (ccl_cosmology *cosmo, int has_rsd, int has_magnification, int nz_n, double *z_n, double *n, int nz_b, double *z_b, double *b, int nz_s, double *z_s, double *s, int *status) |
| CCL_ClTracer * | ccl_cl_tracer_number_counts_simple_new (ccl_cosmology *cosmo, int nz_n, double *z_n, double *n, int nz_b, double *z_b, double *b, int *status) |
| CCL_ClTracer * | ccl_cl_tracer_lensing_new (ccl_cosmology *cosmo, int has_alignment, int nz_n, double *z_n, double *n, int nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, int *status) |
| CCL_ClTracer * | ccl_cl_tracer_lensing_simple_new (ccl_cosmology *cosmo, int nz_n, double *z_n, double *n, int *status) |
| double | ccl_angular_cl (ccl_cosmology *cosmo, int l, CCL_ClTracer *clt1, CCL_ClTracer *clt2, int *status) |
| double ccl_angular_cl | ( | ccl_cosmology * | cosmo, |
| int | l, | ||
| CCL_ClTracer * | clt1, | ||
| CCL_ClTracer * | clt2, | ||
| int * | status | ||
| ) |
Computes limber power spectrum for two different tracers
| cosmo | Cosmological parameters |
| clt1 | a Cltracer |
| clt2 | a Cltracer |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| CCL_ClTracer* ccl_cl_tracer_cmblens_new | ( | ccl_cosmology * | cosmo, |
| double | z_source, | ||
| int * | status | ||
| ) |
Simplified constructor for a CMB lensing ClTracer.
| z_source | Redshift of source plane (z~1100 for CMB lensing). |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| void ccl_cl_tracer_free | ( | CCL_ClTracer * | clt | ) |
Destructor for a Cltracer
| clt | a Cltracer |
| CCL_ClTracer* ccl_cl_tracer_lensing_new | ( | ccl_cosmology * | cosmo, |
| int | has_alignment, | ||
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int | nz_ba, | ||
| double * | z_ba, | ||
| double * | ba, | ||
| int | nz_rf, | ||
| double * | z_rf, | ||
| double * | rf, | ||
| int * | status | ||
| ) |
Simplified constructor for a lensing ClTracer.
| has_intrinsic_alignment | Set to 1 if you want to compute the IA contribution to shear |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_ba | Number of bins in z_ba and ba |
| z_ba | Redshifts for each redshift interval of ba |
| ba | Alignment bias in each redshift bin |
| nz_rf | Number of bins in z_f and f |
| z_rf | Redshifts for each redshift interval of rf |
| rf | Aligned red fraction in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| CCL_ClTracer* ccl_cl_tracer_lensing_simple_new | ( | ccl_cosmology * | cosmo, |
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int * | status | ||
| ) |
Simplified constructor for a lensing ClTracer without intrinsic alignment.
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| CCL_ClTracer* ccl_cl_tracer_new | ( | ccl_cosmology * | cosmo, |
| int | tracer_type, | ||
| int | has_rsd, | ||
| int | has_magnification, | ||
| int | has_intrinsic_alignment, | ||
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int | nz_b, | ||
| double * | z_b, | ||
| double * | b, | ||
| int | nz_s, | ||
| double * | z_s, | ||
| double * | s, | ||
| int | nz_ba, | ||
| double * | z_ba, | ||
| double * | ba, | ||
| int | nz_rf, | ||
| double * | z_rf, | ||
| double * | rf, | ||
| double | z_source, | ||
| int * | status | ||
| ) |
Constructor for a ClTracer.
| Tracer_type | pass CL_TRACER_NC (number counts), CL_TRACER_WL (weak lensing) or CL_TRACER_CL (CMB lensing) |
| has_rsd | Set to 1 if you want to compute the RSD contribution to number counts (0 otherwise) |
| has_magnification | Set to 1 if you want to compute the magnification contribution to number counts (0 otherwise) |
| has_intrinsic_alignment | Set to 1 if you want to compute the IA contribution to shear |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| nz_s | Number of bins in z_s and s |
| z_s | Redshifts for each redshift interval of s |
| s | Magnification bias in each redshift bin |
| nz_ba | Number of bins in z_ba and ba |
| z_ba | Redshifts for each redshift interval of ba |
| ba | Alignment bias in each redshift bin |
| nz_rf | Number of bins in z_f and f |
| z_rf | Redshifts for each redshift interval of rf |
| rf | Aligned red fraction in each redshift bin |
| z_source | Redshift of source plane for CMB lensing (z~1100 for CMB lensing). |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| CCL_ClTracer* ccl_cl_tracer_number_counts_new | ( | ccl_cosmology * | cosmo, |
| int | has_rsd, | ||
| int | has_magnification, | ||
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int | nz_b, | ||
| double * | z_b, | ||
| double * | b, | ||
| int | nz_s, | ||
| double * | z_s, | ||
| double * | s, | ||
| int * | status | ||
| ) |
Simplified constructor for a clustering ClTracer.
| cosmo | Cosmological parameters |
| has_rsd | Set to 1 if you want to compute the RSD contribution to number counts (0 otherwise) |
| has_magnification | Set to 1 if you want to compute the magnification contribution to number counts (0 otherwise) |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| nz_s | Number of bins in z_s and s |
| z_s | Redshifts for each redshift interval of s |
| s | Magnification bias in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
| CCL_ClTracer* ccl_cl_tracer_number_counts_simple_new | ( | ccl_cosmology * | cosmo, |
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int | nz_b, | ||
| double * | z_b, | ||
| double * | b, | ||
| int * | status | ||
| ) |
Simplified constructor for a ClTracer without magnification nor RSD.
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |