The concept that a pregnant woman should eat for two is long out-dated. Gynaecologists says what a pregnant woman really needs is a well-balanced diet with a few extra ingredients to meet the unborn baby's needs. "You need to consume about 300 extra calories per day, which translates into one extra meal.  Focus on adding extra proteins, iron and calcium to your existing diet," says Doctors.
Include dals, pulses, sprouts, eggs, meats, fish, milk and milk products.
Provides energy and fibre. Avoid refined sugar and flour - they cause sugar levels to fluctuate. Stick to whole wheat (brown bread and flour), whole fruits and salads.
Docosahexaenoic Acid (DHA) and other essential fatty acids are important for the development of the fetal brain. These are essential for ideal development of intelligence, learning and vision. Add flax seeds, walnuts, beans, tofu, olive and soyabean oil to your diet. Non-vegetarians can benefit from fish intake or cod liver oil capsules.
Green leafy vegetables, beans and pulses, pomegranate, cherries, berries, litchi, pineapple, raisins, dates, figs and animal foods contain a good amount of iron. Vitamin C is essential for the absorption of iron - squeeze a lemon in your meal.
You need more calcium to help your baby's developing bones, teeth and essential bodily functions. Adequate calcium also prevents backaches and prepares you for breastfeeding. Consume milk and milk products in various forms, nuts, seeds, beans, green leafy vegetables and seafood.
According consultant obstetrician, Dr Saurabh Dani there is evidence of a link between gum disease and premature, underweight births. "Gingivitis is the most common problem occurring during pregnancy and happens because gums react to the plaque build-up more aggressively than when not pregnant. Be sure to let your dentist know you're pregnant.
During the first three months you may feel queasy and sick. This is commonly called "morning sickness," but you may feel nauseous anytime during the day and night.
You can try several of these suggestions until you find the ones that work for you:
* Eat a piece of bread or a few crackers before you get out of bed in the morning, or when you feel nauseated. Put them close to your bed the night before.
* Get out of bed slowly. Avoid sudden movements.
*Suck on a fresh lemon, or inhale the scent of a freshly cut lemon.
* Eat small meals several times during the day so your stomach does not remain empty for long periods of time (Six small meals instead of three).
* Eat high-protein meals (lean meats, vegetable proteins, beans, legumes), complex carbohydrate foods (crackers, breads, potatoes, rice) and fruit and fruit juices. Such foods help prevent low blood-sugar levels which can cause nausea..
* Avoid greasy or fried foods. These foods are hard to digest and may cause nausea.
*Even cooking such foods for others can cause nausea in some women.
*Eat lightly seasoned foods and avoid spicy foods.
*Sip soda water (no sodium carbonated water or ginger ale) when you feel nauseated. Try plain cola syrup.
*Eat lightly seasoned foods and avoid spicy foods.
* Drink herbal teas such as spearmint, peppermint, raspberry leaf or ginger. Some herbs are contra-indicated for pregnancy.
* While cooking, open windows or use the exhaust fan to get rid of odors.
* Try cold foods such as popsicles or ice.
*Fresh air may help. Take a short walk or try sleeping with a window open.
You may notice you have more energy. Nausea and fatigue may stop. You may also notice that your belly will look larger because the baby has grown.
During pregnancy, your need for iron increases. To be sure you are getting enough iron, eat meats, leafy green vegetables, whole grain breads, dried fruits, and beans.
Changes in your circulation require you to stand and move regularly. Continue to do this throughout the remainder of your pregnancy.Your breasts may begin to secrete a yellowish fluid called colostrum in preparation for breastfeeding and you may begin to feel the baby move during this month.
Be sure to include food rich in Vitamin C in your diet. Your body does not store Vitamin C, so it is important to get a fresh supply every day. Good sources of Vitamin C are oranges, broccoli, and tomatoes.
You may gain 3-4 pounds this month. Your feet may swell during the latter stages of pregnancy. Putting your feet up may help reduce any ankle swelling that may occur. Shop for wide, comfortable shoes, preferably with a flat heel.
You may crave certain foods or find other foods intolerable. If this happens, try to find substitutes that will provide the right nutrients.
You may gain 3-4 pounds this month. You may tire more easily. Again, ask for help. If you work, try to work shorter hours or a more flexible schedule if possible. Rest when you can.
Mood swings and increased irritability are common during the last three months of pregnancy. Be sure to discuss your feelings with your partner.Begin childbirth preparation classes with your partner. These classes will offer useful information on labor and birth, and what to expect
You may gain 3-4 pounds this month. Increases in frequency of urination, backaches, anxiety, heartburn, and shortness of breath occur at this time. Shop for larger maternity clothes, if necessary. You will be growing quite a bit these last few weeks.
What you eat is still important. If you have trouble sleeping, try drinking something warm and lying on your side with pillows to support your body. Taking a warm shower before bed also helps to relax you and make you sleepy.
You may gain 3-4 pounds this month. Your stomach may change shape as the baby begins to position itself for birth. It may be easier to breathe now, but you may have to urinate more often.
Get plenty of rest!
Make arrangements for your hospital stay. Keep important phone numbers and papers close by. Pack your bag for the hospital, and plan how you will get there at different times of the day or night. Make sure you have everything you will need when you come home from the hospital such as food and diapers
Mood swings and increased irritability are common during the last three months of pregnancy. Be sure to discuss your feelings with your partner.Begin childbirth preparation classes with your partner. These classes will offer useful information on labor and birth, and what to expect


{% extends "base.html" %} {% load bootstrap3 %} {% block nav-home %}Home{% endblock %} {% block content %} {% for post in posts %}
{{ post.created }}
{{ post.synopsis }}
Go on, post your first entry!
Login and post your first entry!


Orchestrator is really growing. And the amount of users (DBAs, sys admins) using it is growing. Which gives me a lot of immediate feedback in the form of "Look, there's just too many options to move slaves around! Which ones should we use?"
TL;DR look at the two visualized commands below
They are enough
The "smart" commands to end all commands
So all relocation commands are important, and give you fine-grained, pin-pointed control of the method of topology refactoring. However, most of the time you just want to move those servers around. Which is why there's a new "smart" mode which support these two commands, which you should be happy using:
- relocate: move a single slave to another position
- relocate-slaves: move all/some slaves of some server to another position.
What makes these commands Smart? You can move slaves around from anywhere to anywhere. And orchestrator figures out the bast execution path. If possible, it uses GTID. Not possible? Is Pseudo-GTID available? Great, using Pseudo-GTID. Oh, are there binlog servers involved? Really simple, use them. None of the above? Orchestrator will use "standard" binlog file:pos math (with limitations). Orchestrator will even figure out if multiple steps are necessary and will combine any of the above.
So you don't have to remember all the possible ways and options. The visual cheatsheet now boils down to these two:
Let's take a slightly deeper look
relocate
Moves a single slave X from any point to replicate another some server Z
- As usual, orchestrator first confirms that X can replicate from Z (Z has log-slave-updates or is a binlog server; binlog format compatible, etc.)
- With GTID/Pseudo-GTID, move from any point to any point
- With binlog servers, move around the binlog server environment (at this point you are not using binlog servers, so ignore)
- With normal replication, requires an "atomic" operation: either move the slave one level up, or make it replicate from a sibling.
- You can relocate the same master, effectively repointing the slave back to its existing position. This serves to re-resolve master hostname; to reset relay logs; to verify slave is aligned with master.
- Or combination of the above
relocate-slaves
Moves multiple slaves of server X to replicate from some other server W
- By default moves all slaves of X, where possible
- Each slave verified to be able to replicate from W. Those that can't are left behind.
- Can filter using regular expression via --pattern=some?[reg]ex on slave hostnames
- Can relocate under same master, effectively repointing all slaves (see above explanation)
- Can relocate below one of the very slaves of X. If Y is in itself a slave of X and you're executing:
orchestrator -c relocate-slaves -i X -d Y
then Y is excluded from the list of relocated slaves. This effectively means "make Y local master of its current siblings". Very cool stuff. - When binlog servers involved, simple math-less repointing takes place
- When GTID involved, let MySQL/MariaDB (both supported) do the math on a per-server basis
- When Pseudo-GTID involved, greatly optimize by dividing into equivalence classes and only doing the math on a representative of each class.
- Or combination of the above
What about the other commands?
The above covers such commands as move-up, move-below, repoint, repoint-slaves, match-below, multi-match-slaves, regroup-slaves and more. It does not cover enslave-master and make-co-master which are a bit different.
My guess is you can pass 98% of your operations with relocate and relocate-slaves. Otherwise just run orchestrator with no arguments nor options to get a full-blown breakdown of available commands.
GUI drag-n-drop
relocate-slaves is achieved by dragging the slaves of an instance on top of a new master, as follows:
Find latest orchestrator release at https://github.com/outbrain/orchestrator/releases
comments powered by Disqus


Up: Introduction to MPI
Next: Organization of this Document
Previous: What Is Included In The Standard?
The standard does not specify:
- Explicit shared-memory operations
- Operations that require more operating system support than is currently
standard; for example, interrupt-driven receives, remote execution,
or active messages
- Program construction tools
- Debugging facilities
- Explicit support for threads
- Support for task management
- I/O functions
There are many features that have been considered and
not included in this standard. This happened for
a number of reasons, one of which is the time constraint
that was self-imposed in finishing the standard.
Features that are not included can always be offered as extensions
by specific
implementations.
Perhaps future versions of MPI will address some of these issues.
Up: Introduction to MPI
Next: Organization of this Document
Previous: What Is Included In The Standard?
Return to MPI 1.1 Standard Index
Return to MPI-2 Standard Index
Return to MPI Forum Home Page
MPI-1.1 of June 12, 1995
HTML Generated on August 6, 1997


You must log into the database as Pat before proceeding with this page.
Read and/or write access on 'dailysales' table can be restricted with DB2 roles. However roles do not provide row or column level data access control. To restrict access to regional sales data in 'dailysales' table to only business need-to-know people, J.K.Avro superstore decides to implement row level LBAC.SECADM of J.K.Avro superstore sets up LBAC policies in such a way that only managers and employees of respective regions can access their own regional data. They cannot access sales data of other regions. On the other hand, the vice president Mark needs to analyze sales data of all regions. Therefore he is granted access to sales data of all the regions.
A security policy describes the criteria that will be used to decide who has read or write access to individual rows and individual columns of a table. A security policy defines the structure of a security label and also access rules, referred as DB2LBACRULES. These rules are predefined in DB2, there are read access rules and write access rules.
A security label is a database object that describes a certain set of security criteria. Security labels are applied to data in order to protect the data. They are granted to users to allow them to access protected data.
The query results in the right pane show that the security policies are created successfully.
These security policies set the LBAC rules and restrict access to rows of 'dailysales' table only to business need-to-know people.


Scorsese praises 'magical' De Niro-Pacino bond
by The Jakarta PostDirector Martin Scorsese on Friday praised the "magical" relationship between Robert De Niro and Al Pacino in the trio's new gangster epic "The Irishman."
The legendary filmmaker has made headlines over the past month with his trenchant criticism of modern-day Hollywood superhero movies as "not cinema."
But at an American Film Institute tribute event in Los Angeles, Scorsese preferred to discuss the long-standing collaborations of his own generation.
"What we see in the film is their relationship as actors, as friends over the past 40, 45 years," he said. "There's something magical that happens there."
The nostalgic mob movie, released on Netflix on November 27, sees a former mafia hitman (De Niro) reflect on his violent life, including his relationship with a disappeared union leader (Pacino).
De Niro and Pacino co-starred -- separately -- in "The Godfather: Part II" ( 1974 ), before memorably sharing the screen in 1995's neo-noir classic "Heat."
Scorsese said trust between filmmakers was essential, before quipping that they also "have to have some talent."
"The Irishman" is Scorsese's ninth film as director with De Niro, whom he has known since they were both sixteen.
The director said he had been reluctant to join with De Niro on another gangster movie after hits such as "Goodfellas" and "Casino" unless they could "go deeper."
But they joined forces again after finding the missing ingredient.
Read also
"It turned out just to be -- us. We're 75, 76 years old now.
"It was about time, it was about us looking back on our whole lives in the 60s and the 70s, and Hollywood and in cinema. And so that issue of time stayed with us," he added.
The film, which runs to three-and-a-half hours and cost a reported $160 million to make, is currently on a limited theatrical run.
It has been a decade in the making, and is seen as a favorite in a rapidly looming Oscars race.
The movie uses a new technology to digitally "de-age" its stars on screen.
Oscar-winner Scorsese, 76, was honored at the American Film Institute's AFI Fest, which runs in Los Angeles until November 21.


2 April 2014 Last Updated at 15:23
Gerrard to spread across England
Liverpool failed to give Steven Gerrard a victorious farewell to Anfield as Crystal Palace emerged worthy winners on an emotion-charged occasion.
The YesterYears Number 9 The Legend Recent Performance Where to now?


Version 4.0.0-alpha.1¶
Release Date: September 28, 2018
Rewrite of the CodeIgniter framework
- New packages list:
- API
\ ResponseTrait
- Autoloader
\ AutoLoader, FileLocator
- CLI
\ BaseCommand, CLI, CommandRunner, Console
- Cache
\ CacheFactory, CacheInterface
\ Handlers …
\ Email
- Events
\ Events
- Files
\ File
- Filters
\ FilterInterface, Filters
- Format
\ FormatterInterface, JSONFormatter, XMLFormatter
- HTTP
\ CLIRequest, CURLRequest, ContentSecurityPolicy, Header, IncomingRequest, Message, Negotiate, Request, RequestInterface, Response, ResponseInterface, URI, UserAgent
\ Files \ FileCollection, UploadedFile, UploadedFileInterface
- Helpers
… array, cookie, date, filesystem, form, html, inflector, number, security, text, url
- Honeypot
\ Honeypot
- I18n
\ Time, TimeDifference
- Images
\ Image, ImageHandlerInterface
\ Handlers … Base, GD, ImageMagick
- Language
\ Language
- Log
Logger, LoggerAwareTrait
\ Handlers … Base, ChromeLogger, File, HandlerInterface
- Pager
\ Pager, PagerInterface, PagerRenderer
- Router
\ RouteCollection, RouteCollectionInterface, Router, RouterInterface
- Security
\ Security
- Session
\ Session, SessionInterface
\ Handlers …


new Ranking(genome, fitness)
User ranking used for fitness computation.
Parameters:
| Name | Type | Description |
|---|---|---|
genome |
Genome | Genome. |
fitness |
number | Fitness. |
- Source:
| Name | Type | Description |
|---|---|---|
genome |
Genome | Genome. |
fitness |
number | Fitness. |


MonthReturns a number in the range 1 through 12, representing the number of the month of the year in which date occurs.date - any calendar dateMonth(“3/19/2014”) returns 3. This example assumes that the operating system date format is set to MM/DD/YYYY.Month(Payment) returns 3, where Payment contains March 19, 2014. (The Payment field must be of type date.)“Bill Due by: ” & Date(Month(DateSold) + 1;Day(DateSold);Year(DateSold)) returns Bill Due by: followed by a value that is one month later than DateSold.


$def with (base,domain,LI) $var base: $:base $var title: QuickVote. $var loggedIn: $:LI
You are about to take part in "$domain" session.


Line Radio streamlines the process of sorting through bad mixes on 8tracks by automatically playing songs that are related to what you select or type. Whether you're trying to get pumped up, take it back to the 1960's and 1970's, or study for finals, Line Radio can get you there faster. Find a bad mix? Press for a fresh playlist or to skip a track.
{{status}}
{{tag.name}}
Popular Tags
{{tag.name}}
Fork me on GitHub. <3


03..23..05
Dear
Gwen McCurry,
I interviewed with you in January for the Marketing & e-Commerce Development
position. I saw it listed on Careerbuilder recently and applied for it
again. Would it be possible to meet again or schedule a second interview?
This sounds like an ideal position for me. I am a beginner at programming;
however, I am a quick learner and plan on diving into that realm of study.
My web design, photoshop, quark, and print/prepress skills are very advanced.
As
I mentioned before, I believe that I can contribute a lot of energy and
enthusiasm toward the work assigned me, and do it with professionalism,
timeliness, and a willingness to keep myself up-to-date on advances and
changes in my field. I look forward to hearing from you soon.
Sincerely,
Beatrice Aispuro
|


|
Mister Spex
1.0
The project Mister Spex is a funny tool to capture images and display them with overlays such as glasses or big red lips over the normal human face. All images can be saved or recorded. Within this software you have three different mode to get the images (LiveView via webcam, Static image and a playback of a recorded video).
|
MainWindow class creates the main application window and builds the basis. More...
#include <MainWindow.h>
Public Slots | |
| void | selectMode () |
| Public slot to select mode. | |
| void | connectToCamera () |
| Public slot to connect to camera. | |
| void | disconnectCamera () |
| Public slot to disconnect camera. | |
| void | showAboutDialog () |
| Public slot to show about dialog. | |
| void | setDetection (bool) |
| Public slot to set detection flag. | |
| void | setImageProcessingSettings () |
| Public slot to set ImageProcessingSettings. | |
| void | setRecDir () |
| Public slot to set recording directory. | |
| void | takeSnapshot () |
| Public slot to take a snapshot of the actual displayed image. | |
| void | recordVideo () |
| Public slot to record a video in LiveView mode. | |
Signals | |
| void | newImageProcessingFlags (struct ImageProcessingFlags imageProcessingFlags) |
| Signal: Send new ImageProcessingFlags. More... | |
| void | changeDetectionState (bool detection) |
| Signal: Change detection state flag. More... | |
| void | setROI (QRect roi) |
| Signal: Set Region of interest. More... | |
| void | setSaveParams (QString dir, QString fn) |
| Signal: Set save parameter. More... | |
| void | setLiveViewSaveImgFlag (bool sFlag) |
| Signal: Set LiveView snapshot flag. More... | |
| void | setRecordFlag (bool rFlag) |
| Signal: Set record flag. More... | |
Public Member Functions | |
| MainWindow (QWidget *parent=0) | |
| Constructor of the main window to set up the UI from the Qt file. More... | |
| ~MainWindow () | |
| Destructor of the dialog to delete the created UI. | |
Private Slots | |
| void | updateFrame (const QPixmap &frame) |
| Private slot to update the shown image in MainWindow. More... | |
Private Member Functions | |
| void | showImage (QString) |
| Function to show a static image from an image file. More... | |
| void | applyChangesOnSingleImage () |
| Function to apply settings and flags on a loaded image. | |
| void | stopVideoThread () |
| Function to stop the VideoThread. | |
| void | stopProcessingThread () |
| Function to stop the ProcessingThread. | |
| void | startPlayback (QString) |
| Function to start displaying a video from a file. More... | |
| void | stopPlayback () |
| Function to stop the Playback. | |
| void | stopPlaybackThread () |
| Function to stop the PlaybackThread. | |
MainWindow class creates the main application window and builds the basis.
Main windows of the application which does most of the work, like connection functions and buttons as well as the initilization of the different mode. Also function for recording and saving an image are provided here.
|
explicit |
Constructor of the main window to set up the UI from the Qt file.
| parent | an QWidget argument. If no parameter is give parent = 0. |
|
signal |
Signal: Change detection state flag.
This signal emits the actual detection flag to the connected slot.
| detection | a bool argument. |
|
signal |
Signal: Send new ImageProcessingFlags.
This signal emits the actual ImageProcessingFlags to the connected slot.
| imageProcessingFlags | a ImageProcessingFlags structure. |
|
signal |
Signal: Set LiveView snapshot flag.
This signal emits save sflag to the connected slot in ProcessingThread.
| sFlag | a bool argument. |
|
signal |
Signal: Set record flag.
This signal emits record rflag to the connected slot in ProcessingThread.
| rFlag | a bool argument. |
|
signal |
Signal: Set Region of interest.
This signal emits the desired ROI to the connected slot.
| roi | a QRect argument. |
|
signal |
Signal: Set save parameter.
This signal emits the save parameters to the connected slot.
| dir | a QString argument with Directory name. |
| fn | a QString argument with filename. |
|
private |
Function to show a static image from an image file.
| fn | a QString with the filename to load. |
|
private |
Function to start displaying a video from a file.
| filename | a QString with the filename to load. |
|
privateslot |
Private slot to update the shown image in MainWindow.
| frame | a QPixmap to load in specific label. |
|
private |
Bool.
Boolean value if detection (in video or liveview shall be done.
|
private |
Integer.
Integer value for device number.
|
private |
QString.
Name of a file.
|
private |
Bool.
Boolean value if image detection shall be done.
|
private |
ImageHandler pointer.
Pointer to a imageHandler.
|
private |
ImageProcessingFlags struct.
Structure of several flags.
|
private |
ImageProcessingSettings struct.
Structure of several settings.
|
private |
ImageProcessingSettingsDialog pointer.
Pointer to a imageProcessingSettingsDialog.
|
private |
Bool.
Boolean value to determine if liveview mode is on.
|
private |
Integer.
Integer value to determine the mode of the program.
|
private |
Bool.
Boolean value to determine if playback mode is on.
|
private |
PlaybackThread pointer.
Pointer to a playbackThread.
|
private |
ProcessingThread pointer.
Pointer to a processingThread.
|
private |
Integer.
Integer value with recording height.
|
private |
Integer.
Integer value with recording width.
|
private |
Bool.
Boolean value to determine if recording is on.
|
private |
RecordVideoThread pointer.
Pointer to a recordThread.
|
private |
QString.
Directory to record a video.
|
private |
MainWindow UI pointer.
Pointer the the user interface file of the dialog.
|
private |
VideoImageBuffer pointer.
Pointer to a videoImageBuffer.
|
private |
VideoThread pointer.
Pointer to a videoThread.


Employee Experience
Increase Your Wealth of Employee Knowledge
Happy employees equal trustworthy and proactive employees. However, trust takes time and in order to build relationships with your employees, you must make them feel valued. Employee intelligence will allow you to see what is most important to them and your business.
Header 1: Feedback stuff
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird
on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table,
raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Header 2: Integration
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird
on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table,
raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Collect and Ingest Richer Employee Feedback
Deliver better business outcomes through richer sourced data, stronger relationships with employees, and compelling stories that increase internal engagement and success.


Do you have a playlist that gets you pumped? Us too, and that's what our Mixtape Collection is all about.


◆ Scatter() [1/2]
| scatter::Scatter::Scatter |
( |
| ) |
|
Default constructor. Only constructor.
◆ ~Scatter()
| scatter::Scatter::~Scatter |
( |
| ) |
|
◆ Scatter() [2/2]
| scatter::Scatter::Scatter |
( |
Scatter && |
| ) |
|
|
defaultnoexcept |
Compiler generated move constructor. Needed for PIMPL.
◆ addInstance()
| void scatter::Scatter::addInstance |
( |
uint64_t |
handle, |
|
|
float * |
transform |
|
) |
| |
Add a single instance of a mesh.
- Parameters
-
| handle | to the bottom level acceleration structure to add. |
| transform | world space transformation matrix of the mesh. See 'setInverseViewProjectionMatrix' for safety concerns. |
- Returns
- void
◆ addMesh()
| uint64_t scatter::Scatter::addMesh |
( |
void * |
vertices, |
|
|
void * |
indices, |
|
|
unsigned int |
vertexCount, |
|
|
unsigned int |
indexCount |
|
) |
| |
- Returns
- uint64_t handle to the created bottom level acceleration structure. Keep it around for deletion or instancing.
◆ build()
| void scatter::Scatter::build |
( |
| ) |
|
After adding meshes and instances call this to finalize the build of the top level acceleration structure.
- Returns
- void
◆ clearInstances()
| void scatter::Scatter::clearInstances |
( |
| ) |
|
Clears the top level acceleration structure. Changes are visible after rebuilding the top level acceleration structure.
- Returns
- void
◆ createTextures()
| void scatter::Scatter::createTextures |
( |
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
- Parameters
-
| width | width of the texture. Probably the screen region width you want to render to. |
| height | height of the texture. Probably the screen region height you want to render to. |
- Returns
- void
◆ destroy()
| void scatter::Scatter::destroy |
( |
| ) |
|
Explicit destroy function. Call this when you want Scatter's lifetime to end.
- Returns
- void
◆ destroyMesh()
| void scatter::Scatter::destroyMesh |
( |
uint64_t |
handle | ) |
|
Destroy a single mesh. Changes are visible after rebuilding the top level acceleration structure.
- Parameters
-
| handle | to the bottom level acceleration structure to delete. |
- Returns
- void
◆ destroyTextures()
| void scatter::Scatter::destroyTextures |
( |
| ) |
|
Destroys the internal textures.
- Returns
- void
◆ getDepthTextureMemoryhandle()
| void* scatter::Scatter::getDepthTextureMemoryhandle |
( |
| ) |
|
Get the win32 HANDLE to the shadow texture's memory.
- Returns
- void* that refers to the shadow texture's memory. Can be type cast to win32 HANDLE.
◆ getDepthTextureMemorySize()
| size_t scatter::Scatter::getDepthTextureMemorySize |
( |
| ) |
|
Get the byte size of the depth texture's memory. Use this in conjuction with glImportMemoryWin32HandleEXT().
- Returns
- size_t of the depth texture's memory in bytes.
◆ getDoneSemaphoreHandle()
| void* scatter::Scatter::getDoneSemaphoreHandle |
( |
| ) |
|
Get the win32 HANDLE to the semaphore thats signaled when all submitted commands are done executing.
- Returns
- void* that refers to the exported semaphore. Can be type cast to win32 HANDLE.
◆ getReadySemaphoreHandle()
| void* scatter::Scatter::getReadySemaphoreHandle |
( |
| ) |
|
Get the win32 HANDLE to the semaphore thats signaled before submit.
- Returns
- void* that refers to the exported semaphore. Can be type cast to win32 HANDLE.
◆ getShadowTextureMemoryHandle()
| void* scatter::Scatter::getShadowTextureMemoryHandle |
( |
| ) |
|
Get the win32 HANDLE to the shadow texture's memory.
- Returns
- void* that refers to the shadow texture's memory. Can be type cast to win32 HANDLE.
◆ getShadowTextureMemorySize()
| size_t scatter::Scatter::getShadowTextureMemorySize |
( |
| ) |
|
Get the byte size of the shadow texture's memory. Use this in conjuction with glImportMemoryWin32HandleEXT().
- Returns
- size_t of the shadow texture's memory in bytes.
◆ init()
| void scatter::Scatter::init |
( |
| ) |
|
Init function that sets up the vulkan device and resources, takes no arguments.
- Returns
- void
◆ operator=()
Default move assignment operator. Needed for PIMPL.
◆ setIndexFormat()
| void scatter::Scatter::setIndexFormat |
( |
IndexFormat |
format | ) |
|
◆ setInverseViewProjectionMatrix()
| void scatter::Scatter::setInverseViewProjectionMatrix |
( |
float * |
matrix | ) |
|
Sets the inverse of the projection * view matrix. Works with column-major, not tested with others. This performs a memcpy under the hood with a size of 3*4 floats. Tested to work with glm::value_ptr(matrix). Undefined behavior if anything weird is passed.
- Returns
- void
◆ setLightDirection()
| void scatter::Scatter::setLightDirection |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Sets the light direction. Takes 3 floats that make up a normal vector of where the light is looking at in world space.
- Returns
- void
◆ setVertexFormat()
| void scatter::Scatter::setVertexFormat |
( |
VertexFormat |
format | ) |
|
◆ setVertexOffset()
| void scatter::Scatter::setVertexOffset |
( |
uint32_t |
offset | ) |
|
◆ setVertexStride()
| void scatter::Scatter::setVertexStride |
( |
uint32_t |
stride | ) |
|
◆ submit()
| void scatter::Scatter::submit |
( |
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
Submits the render commands to the graphics queue. The host application should synchronize around it using the exported semaphores.
- Parameters
-
| width | the width of shadow and depth texture, basically the renderable screen width. |
| height | the height of shadow and depth texture, basically the renderable screen height. |
- Returns
- void
The documentation for this class was generated from the following file:
- C:/VS Projects/vulkanOI/Scatter/Scatter/header/Scatter.h


Hillsborough real estate heiress acquitted of murder
by Tessa McLeanUpdated 2:54 pm PST, Friday, November 15, 2019
After deliberating for 12 days, jurors acquitted a Hillsborough real estate heiress accused of murdering the father of her children in 2016.

The case drew national attention when Li's family, known for their successful real estate construction business in China, posted $35 million in bail for her. Prosecutors had set the bail high because they determined that Li was a flight risk. Li is a naturalized U.S. citizen but was born in China. At the time, San Mateo County District Attorney Steve Wagstaffe told a judge her family's wealth was estimated to be in the "$100 million to $150 million range."
Green's body was found along a dirt road in Greenbrae nearly two weeks after he was last seen meeting with Li to discuss custody of their children.
San Mateo County prosecutors said Li lured Green to her mansion in Hillsborough, south of San Francisco. They say Bayat shot Green in the mouth and the two hired a friend, Olivier Adella, to dispose of the body. Prosecutors presented evidence that Green’s blood was found in Li’s Mercedes and gunshot residue was discovered in her garage.
Li’s attorneys argued that Green was killed in a botched kidnapping plot and that she had nothing to do with his death. She had settled the custody issues with her former boyfriend, they said.
Jurors cleared Bayat of gun charges Friday but were deadlocked on his role in the murder.
A mistrial has now been declared in Bayat’s case.
Charges are pending against Adella, who is accused of dumping the body. He was originally offered a plea agreement in exchange for his testimony in the murder trial, but it was revoked after it was discovered that he had contacted a witness for the defense.
The Associated Press contributed to this report.
Tessa McLean is a digital editor with SFGATE. Email her at<EMAIL_ADDRESS>or follow her on Twitter @mcleantessa.


Primitive Types and Object Types
Let's talk about...Pizza!
Primitves
Primitive values can't be divded down further
- String
- Number
- Boolean
- Null
- Undefined
Objects
There are a handful of pre-defined objects in JavaScript
Objects
| Type |
What It Does |
| Array |
Helps store, retrieve, and manipulate a collection of data |
| Date |
Allows you to more easily represent and work with dates |
| Function |
Allows you to invoke some code among other esoteric things |
| Math |
The nerdy one in the group that helps you better work with numbers |
| RegExp |
Provides a lot of functionality for matching patterns in text |
Creating an Object
Object in JavaScript is just key-value pairs stored in a curly braces (a hash).
Property or Method
- a property is a value stored in the hash key
- a method is a function stored in hash key
Property or Method?
var umbrella = {
color: "pink",
isOpen: true,
open: function() {
if (umbrella.isOpen === true) {
return "The umbrella is already opened!";
} else {
umbrella.isOpen = true;
return "Julia opens the umbrella!";
}
},
};


{% extends "risk_domains/Page.html" %} {% load otree static %} {% block title %} {{ domain_label }} {% endblock %} {% block content %}
{{ domain_label }} {{ domain_description.0 }} {{ domain_description.1 }}
We ask you to think of {{ domain_label }} considering the three factors displayed below. Please click on each of them 9 times to familiarize yourself with them.
{% include 'risk_domains/stimulus.html' %}


Barca reject Premier League offer for Rakitic
by BeSoccerAccording to the headlines of the newspaper 'Sport' on Sunday, FC Barcelona rejected a 15 million offer from a Premier League team for Ivan Rakitic.
Rakitic is going through a rough patch at Barcelona. The Croat, a key player since his arrival at the club, has been given a secondary role this season.
Valverde isn't giving opportunities to Rakitic and you just have to look at the number of minutes he has played: 255 in a total of 10 matches.
He doesn't have a place in the Barcelona team and this has made him think of leaving, even in January. In fact, the player spoke of his sadness in an interview and Valverde didn't know what to respond.
Featured links
- Ballon d'Or winner already been decided
- The latest football transfers news and rumours
- Possible 'Clasico' in the Spanish Supercup final
- Who has the most free-kicks goals: Messi or Cristiano?
His contract runs out in 2021 and he won't lack suitors. In fact, 'Sport' notes that Barca rejected an offer of 15 million from a Premier League club.
But that's not it, as even Atlético seem to be interested in him and could offer up to 40 million for him, according to 'Movistar*'.
However, according to 'Mundo Deportivo', Atlético aren't thinking of making an offer for Rakitic.


Question:
Pets are very useful to their owners. Which of the following is
not
an appropriate use of a pet?


Dear Beebs,
Even though there are days when you become a grumpy cat...☔
When I am around you I always feel the sun shining bright! 🌞
...

But I have to admit, I love the way you move dance and sing to the music you hear in your head!
...
There are moments when sometimes I make you really mad inside...🤬
But always your deep care, love and compassion manages to prevail.
...
Even though I sometimes eat all the food...🍌
You always share with me the last bite of your cake... 🍰
...
Even though there are ups and downs every day. I am so grateful to be experiencing them with you by side:)
Today is a very special day! The day you started your journey in this Universe!
Do not be concerned about aging it is a beautiful wonderful process. And as someone who knows every spot and bump on your body. Let me tell you I have never met a more beautiful, sunny and colorful person than you! As you grow, you are becoming softer, more ready to accept life as it comes!  To me I see someone becoming more beautiful with time. And I'm so proud of the person you are. I'm so lucky to be part of your team.
Team M&M! 🥰


ng2-simple-autocomplete component has custom styling property. This example customized with style object
{{inlineStyleComponentMarkup}}
rendered output
form-controlclass of Bootstrap
form-control
{{globalClassComponentMarkup}}


Coronation Street and Last of the Summer Wine star Jean Fergusson dies aged 74
Tributes have poured in on social media
by Rebecca CarterTributes have poured in as Jean Fergusson has died at the age of 74.
The actress was known for her role as Dorothy Hoyle in Coronation Street and Marina in Last of the Summer Wine.
'Allo 'Allo! actress Vicki Michelle has paid tribute to Jean on Twitter.
Read more: Coronation Street's Lucy Fallon looks completely different as she transforms into Christina Aguilera
She wrote: "Shocked & saddened to hear Jean Fergusson has passed Lovely lady, fabulous actress. Saw her Sunday at #SuPollard’s birthday, said she wasn’t feeling well.
"@benstockbiz and I planned to take her out next week. Can’t believe she’s gone #LastoftheSummerWine #SheKnowsYouKnow #Corrie."
It hasn't yet been confirmed how Jean died.
Other have paid tribute to the star on Twitter.
One said: "RIP the irrepressable Jean Fergusson. Remembering many happy times spent gossiping over a late night glass of wine. You will be missed."
Another wrote: "Really really sad to hear of the death of Jean Fergusson. She was terrific as Marina in Last of the Summer Wine, but also did a marvellous show about Hylda Baker.
"Her book on Hylda is a lovely read. Very sad news."
A third added: "So sad to hear of the passing today of our good friend, Balham neighbour and wonderful actress Jean Fergusson, best known as Marina in Last Of The Summer Wine. Rest in peace and rise in glory, my darling."
One of Jean's theatre colleagues wrote: "Our beloved colleague of many years, Jean Fergusson has died. We have lost a generous story teller who reduced audiences to good old fashioned, uncontrollable, honest laughter.
"Behind the blonde wig and glitzy make up she was very beautiful, skilled and of great ability."
Read more: Coronation Street viewers mock Michelle for not realising Robert's cheating
Jean appeared in Corrie on several occasions and most recently playing the part of Dorothy until 2011.
The star also played Marina in 216 episodes of Last of the Summer Wine from 1985.
Head to our Facebook page @EntertainmentDailyFix and let us know what you think.


Shopping doesn't have to be a chore.
Get Started Quickly
Sign up instantly using Google, Facebook and other social media providers.
Mobile Support
Designed for the mobile web, with apps on the way. Edit lists even when offline.
Voice Commands
Integration with Apple Siri, Google Assistant, and Amazon Alexa on the way.
Product Categories
Categories are automatically suggested for each list item, to make organized shopping a breeze.


Go to the source code of this file.
◆ CSR_fOnDeleteTexture
| typedef void(* CSR_fOnDeleteTexture) (const CSR_Texture *pTexture) |
Called when a texture should be deleted
- Parameters
-
| pTexture | - texture to delete |
◆ CSR_EImageType
Image type
| Enumerator |
|---|
| CSR_IT_Raw | |
| CSR_IT_Bitmap | |
◆ CSR_EPixelType
Pixel type
| Enumerator |
|---|
| CSR_PT_RGB | |
| CSR_PT_BGR | |
| CSR_PT_RGBA | |
| CSR_PT_BGRA | |
| CSR_PT_ARGB | |
| CSR_PT_ABGR | |
◆ csrPixelBufferCreate()
Creates a pixel buffer
- Returns
- newly created pixel buffer, 0 on error
- Note
- The pixel buffer must be released when no longer used, see csrPixelBufferRelease()
◆ csrPixelBufferFromBitmapBuffer()
Loads a pixel buffer from a bitmap buffer
- Parameters
-
| pBuffer | - buffer containing the bitmap to load from |
- Returns
- pixel buffer, 0 on error
- Note
- For now only most common bitmaps are loaded, some bitmap types may be unsupported
-
The pixel buffer must be released when no longer used, see csrPixelBufferRelease()
◆ csrPixelBufferFromBitmapFile()
Loads a pixel buffer from a bitmap file
- Parameters
-
| pFileName | - bitmap file name to load from |
- Returns
- pixel buffer, 0 on error
- Note
- For now only most common bitmaps are loaded, some bitmap types may be unsupported
-
The pixel buffer must be released when no longer used, see csrPixelBufferRelease()
◆ csrPixelBufferFromTgaBuffer()
Loads a pixel buffer from a TARGA (.tga) buffer
- Parameters
-
| pBuffer | - buffer containing the TARGA to load from |
- Returns
- pixel buffer, 0 on error
- Note
- The pixel buffer must be released when no longer used, see csrPixelBufferRelease()
◆ csrPixelBufferFromTgaFile()
Loads a pixel buffer from a TARGA (.tga) file
- Parameters
-
| pFileName | - TARGA file name to load from |
- Returns
- pixel buffer, 0 on error
- Note
- The pixel buffer must be released when no longer used, see csrPixelBufferRelease()
◆ csrPixelBufferInit()
Initializes a pixel buffer structure
- Parameters
-
| [in,out] | pPB | - pixel buffer to initialize |
◆ csrPixelBufferRelease()
Releases a pixel buffer
- Parameters
-
| [in,out] | pPB | - pixel buffer to release |
◆ csrSkinContentRelease()
Releases a skin content
- Parameters
-
| [in,out] | pSkin | - skin for which the content should be released |
| fOnDeleteTexture | - callback function to notify the GPU that a texture should be deleted |
- Note
- Only the skin content is released, the skin itself is not released
◆ csrSkinCreate()
Creates a skin
- Returns
- newly created skin, 0 on error
- Note
- The skin must be released when no longer used, see csrSkinRelease()
◆ csrSkinInit()
Initializes a skin
- Parameters
-
| [in,out] | pSkin | - skin to initialize |
◆ csrSkinRelease()
Releases a skin
- Parameters
-
| [in,out] | pSkin | - skin to release |
| fOnDeleteTexture | - callback function to notify the GPU that a texture should be deleted |
◆ csrTextureArrayCreate()
Creates a texture array
- Returns
- newly created texture array, 0 on error
- Note
- The texture array must be released when no longer used, see csrTextureArrayRelease()
◆ csrTextureArrayInit()
Initializes a texture array structure
- Parameters
-
| [in,out] | pTA | - texture array to initialize |
◆ csrTextureArrayRelease()
Releases a texture array
- Parameters
-
| [in,out] | pTA | - texture array to release |
| fOnDeleteTexture | - callback function to notify the GPU that a texture should be deleted |
◆ csrTextureContentRelease()
| void csrTextureContentRelease |
( |
CSR_Texture * |
pTexture | ) |
|
Releases a texture content
- Parameters
-
| [in,out] | pTexture | - texture for which the content should be released |
- Note
- Only the texture content is released, the texture itself is not released
◆ csrTextureCreate()
Creates a texture
- Returns
- newly created texture, 0 on error
- Note
- The texture must be released when no longer used, see csrTextureRelease()
◆ csrTextureInit()
Initializes a texture
- Parameters
-
| [in,out] | pTexture | - texture to initialize |
◆ csrTextureRelease()
Releases a texture
- Parameters
-
| [in,out] | pTexture | - texture to release |
| fOnDeleteTexture | - callback function to notify the GPU that a texture should be deleted |


During my time at Dev Academy I learnt to create C# applications, create MS SQL databases using Entity Framework, design web pages using JavaScript, HTML, CSS, ASP.NET Razor, and JQuery. I learnt about and participated in Agile projects and reseached emotional intellegence. We sometimes paired up, worked in groups, or alone.
Dev Academy was modern and intensive, we put in over 1200 hours in around 6 months. We worked on projects in a manner that replicates a real workplace scenario, using git for source control, and GitHub for storing and sharing code.


The ' Transactions' tab shows all the transactions for the wallet selected in the ' Wallets' side panel. This tab shows the user:
The status of the transaction. The status icon shows two important characteristics of the transaction. First, it indicates if the transaction has been broadcast to the Monacoin network successfully. MultiMona sends the transaction on one of the peers it is connected to and then listens to all the rest for the transaction being retransmitted. The icons used are as follows:
Seen by no peers
Seen by one peer
Seen by two peers
Seen by three peers
Seen by 4 or more peers
When a transaction has been seen by two or more peers it is definitely out in the Monacoin network. (You can then spend your change in the transaction).


-
What's the best thing about Switzerland?
-
I don't know, but the flag is a big plus. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.
-
Why do you never see elephants hiding in trees?
-
Because they're so good at it. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.
-
How do you make holy water?
 Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.

-
Because the pee is silent. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.
-
What do you call someone with no body and no nose?
-
Nobody knows. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.
-
Why did the invisible man turn down the job offer?
-
He couldn't see himself doing it. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cupiditate laboriosam fugiat.


What was the problem?
I was trying to solve a fairly complex challenge where students and their test scorces needed to be added to a Gradebook.
What problem solving techniques did I use?
Immediately I assumed the issue was with the syntax I was using to access the different types of data - say the test score for a particular person.
This stuff is called dot-notation and bracket-notation and ever since the Foundations Sprints started ~3 weeks ago, I've struggled with which of these to use and when.
So as I say, I immediately assumed the problem was with this syntax so I tried renaming variables and objects, Googling dot and bracket notation,
I tried all the different combo's of dot-notation and bracket-notation, I Googled the compiler error I was getting. I was console.logging everything.
How did you feel throughout the process?
My negative thoughts increased with my frustration as each of my problem solving solutions failed. Here are my actual notes at the time.
I feel stink like right now when I'm stuck on a complier error.  I have the tightness in my chest and I feel like hammering through to solve this no matter what. And that if I'm struggling here, I'll be no good in an actual job. And I get afraid of feeling negative. A sort of negative inception.
What did I learn?
In the end, all my syntax here was fine. I'd actually typo'ed a word somewhere else in my code.
The lesson I took away was to look for simple solutions first rather than assuming the problem is massive and hard. With this approach, it is quick to either fix or rule out the simple things, then you can move on to other potential solutions. On the other hand, if you assume it is a hard problem, you might waste a lot of time digging in that area, when actually it's a simple quick fix.
I don't feel like I've solved any problems in an elegant way so far. I look at some of the suggested solutions in repl.it for the Kata and I think those are elegant.
But what does elegant actually mean wrt to solving problems?
Does it mean writing really concise code?
Does it mean that initially the reader goes 'huh?' and then they go 'Ohhhhhh, wow that's awesome!
Or does it mean the reader doesn't even notice the code and can just concentrate on getting their task/job done?
Pseudocode.
I don't tend to use this much. I think I mix pseudocode up with comments and in fact I could make more use of pseudocode as a way of crystallising and sharing my thoughts
Trying something.
I do this a lot without hesitation. In fact I might be more effective if I do this a little less, take some time to sit back reflect on what I've done so far and what I plan to do. This will make it easier to communicate with others about my thoughts and progress.
Rubber ducky method.
I haven't used it.
Reading error messages.
I do this if they appear, but they aren't always particularly helpful at the moment, with my current level of knowledge.
Console.logging
I really find this useful and would like to improve my skills
Googling.
Very useful.
Asking your peers for help, Asking coaches for help.
I notice in myself that I'm a little reluctant to do this and I admire people who are doing this more.  But also there's friction for me here in that we're remote and I don't really know anyone well yet. I hope to use this technique more in the classroom.
Improving your process with reflection.
I love this and I always learn something when I spend time reflecting. This is the one skill out of this list I'd like to have as a superpower


Rayan is a precocious and magnificent small human residing in the Cascadia region...north of Jefferson, but south of Canadia.


Toggle navigation
Home
Stories
About
Bangla Version
By Category
Bangladesh
Newspaper Trends
Newspaper Trends
Newspaper Trends


{% extends 'marketplace/proj_task_base.html' %} {% block taskcontents %}
Select below the project staff that will be assigned to this task as supporting staff for the volunteers of this task.


Integrating
Sun Java System Application Server with IBM Websphere MQ 6.0 using
Generic Resource Adapter for JMS
By Sushmita Sharma and
Sivakumar Thyagarajan, February 2006
It has often been an enterprise application integration [EAI] developer's
nightmare to integrate disparate messaging products with transactional
applications deployed in a Java EE application server. The preferred
message provider pluggability mechanism in J2EE 1.4 and beyond is using
the Connectors
1.5 architecture, but a lot of messaging providers do
not bundle Connectors 1.5 compliant resource adapters to help in this
integration.
The Generic
resource adapter for JMS
project helps in integrating messaging products with
J2EE application servers by wrapping their JMS client library in a J2EE
Connector Architecture 1.5 resource adapter. It has been used to
integrate different messaging products like Tibco EMS and Sun Java
System Message Queue with the Sun Java System Application
Server.
In this article we would
guide you through the steps for using the Generic Resource Adapter for
JMS [referred to as 'Generic RA' in the article going forward] to
integrate IBM
WebSphere MQ 6.0 [formerly MQ Series] with Sun
Java
System Application Server 8.2
Instructions outlined in this article could also be used to integration WebSphere MQ 6.0 with Project GlassFish and the Java EE 5 SDK preview/Sun Java System Application Server PE 9 beta versions available today.
Contents
Article
Conventions/Assumptions
Through out this article, we have used the asadmin command line
interface to show all the interactions performed with the application
server. You could also use the asadmin GUI console to achieve
the
same. Similarly this article assumes a *nix based system [Solaris,
Linux]. If you are using Windows, Replace
the instructions with Windows equivalents as
necessary.
Similarly the steps outlined below assume a successful
installation of IBM Websphere MQ 6.0. Please refer the WebSphere MQ
documentation for installation details.
This article also assumes that the Websphere MQ broker and the
application server are deployed and running on the same physical
host/machine. If you have the MQ broker running on a different machine
and need to access it remotely, please refer the WebSphere MQ
documentation for configuration details. The RA configuration and other
application server related configuration remains unchanged.
While looking at the configuration of the resource-adapter, connector
connection pool etc. in this article, only a handful of properties,
relevant for this discussion is covered. Please note that all the
resource adapter, connection factory and activationspec configuration,
listed in the Generic RA user guide could be used while configuring these objects.
Initial
Setup
The following permissions need to be added to the server.policy and the
client.policy file to deploy the generic resource adapter and to run
the client application.
- Edit the server.policy file in the
[${appserver-install-dir}/domains/domain1/config/] directory using your
favourite text editor and add the following line to the default grant
block.
permission java.util.logging.LoggingPermission "control";
permission
java.util.PropertyPermission "*",
"read,write";
- Should you use an application client in your application,
edit
the application client's client.policy file in the
[${appserver-install-dir}/lib/appclient/client.policy] directory and
add the following line to it.
permission javax.security.auth.PrivateCredentialPermission
"javax.resource.spi.security.PasswordCredential * \"*\"","read";
- Modify the domain's classpath to add IBM MQ 6.0 jars
located in
IBM MQ installation lib directory. The asadmin GUI could be used to
modify a domain's classpath. Open a browser and type the url of the
application server admin GUI - http://hostname:adminport. Go to
Application Server -> JVM Settings -> Path Settings . Add
an
entry for the jar files shown below [comma-separated as shown below] in
the classpath suffix. Restart the application server domain for these
changes to take
effect.
/opt/mqm/java/lib/com.ibm.mq.jar,
/opt/mqm/java/lib/com.ibm.mq.jms.Nojndi.jar,
/opt/mqm/java/lib/com.ibm.mq.soap.jar,
/opt/mqm/java/lib/com.ibm.mqjms.jar,
/opt/mqm/java/lib/com.ibm.mqetclient.jar,
/opt/mqm/java/lib/commonservices.jar,
/opt/mqm/java/lib/dhbcore.jar,
/opt/mqm/java/lib/rmm.jar,
/opt/mqm/java/lib/providerutil.jar,
/opt/mqm/java/lib/CL3Export.jar,
/opt/mqm/java/lib/CL3Nonexport.jar
- Set the LD_LIBRARY_PATH environment variable to
/opt/mqm/java/lib
and restart the application server. For example in *NIX
system,
based on the choice of your shell. you would type in
$ export
LD_LIBRARY_PATH=/opt/mqm/java/lib
Configuring
IBM Websphere MQ administered objects using Websphere MQ's
administration console
- Note: All artifacts created on the WebSphere MQ side and
the application server side are shown in blue and green respectively in
the image above.
- Before we start working on Websphere MQ, if the
installation has
created a user and a group called mqm, specify a password for the mqm
user via $passwd mqm
- Switch user to mqm
$ su mqm
- For Linux, a different kernel version needs to be
set $ export
LD_ASSUME_KERNEL=2.2.5
- Create a mq queue manager called say 'QM1' using
the crtmqm command.
$ crtmqm
QM1
- Start the mq queue manager we have just created. In the
image above, see QM1 associated with the IBM WebSphere MQ broker.
$ strmqm
QM1
- Start the MQ listener using the runmqlsr command
$ runmqlsr -t tcp -m QM1 -p 1414
&
- Now, some configuration changes needs to be done to get the
JMSAdmin working. Change to the /opt/mqm/java/bin directory and edit
the JMSAdmin script to change the jvm to a location of a valid jvm in
your system.
- Set the relevant environment variable required for
JMSAdmin by sourcing the setjmsenv script located in
/opt/mqm/java/bin folder.
$ cd
/opt/mqm/java/bin
$ source
setjmsenv
- Change the JMSAdmin.config file to indicate the Initial
Context
Factory we would using. To simplify things, let's use the Sun's File
System Context Provider. The PROVIDER_URL is used to specify
the
directory where the JNDI binding information would be stored. It should
point to an appropriate directory that has write permissions. Edit the
JMSAdmin.config file to set the following name-value pairs and comment
out the rest.
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/opt/tmp
- Create Websphere MQ queues using the runmqsc
console and MQJMS_PSQ.mqsc script.
$ runmqsc
QM1 < MQJMS_PSQ.mqsc
- Create user defined physical queue for your application
using
runmqsc console and an appropriate physical queue name. An example of
how this could be done is
shown below. In the image above, see ORANGE.LOCAL.QUEUE
associated with QM1.
$ runmqsc
QM1
> DEFINE
QLOCAL(ORANGE.LOCAL.QUEUE)
> end
- Start the Webspere MQ broker
$ strmqbrk -m QM1
- In the WebSphere MQ JMSAdmin console use the following
commands
to create the connection factories, XA connection factories and the
queues and topics for your application. A sample listing for creating
each of the various JMS administered objects is shown below. In
the image above, see QCF [for QM1] and TQueue [associated with
ORANGE.LOCAL.QUEUE] defined in the FileSystem Naming Context.
$
./JMSAdmin
InitCtx>def
qcf<JNDI Name to be given to the Queue Connection
Factory>
hostname<IBM MQ server hostname> port(1414)
channel(SYSTEM.DEF.SVRCONN)
transport(CLIENT) qmanager<name of queue manager defined >
e.g. def qcf(QCF) hostname(localhost) port(1414)
channel(SYSTEM.DEF.SVRCONN) transport(CLIENT) qmanager(QM1)
InitCtx>def xaqcf<JNDI
Name to be given to the XA Queue Connection Factory>
hostname<IBM
MQ server hostname> port(1414) channel(SYSTEM.DEF.SVRCONN)
transport(CLIENT) qmanager<name of queue manager defined >
e.g. def xaqcf(XAQCF) hostname(localhost) port(1414)
channel(SYSTEM.DEF.SVRCONN) transport(CLIENT) qmanager(QM1)
InitCtx>def q<JNDI Name to
be given to the Queue> queue<physical queue name>
qmanager(name of queue manager defined )
e.g. def q(TQueue) queue(ORANGE.LOCAL.QUEUE) qmanager(QM1)
InitCtx>def tcf<JNDI Name to
be given to the Topic Connection Factory>
qmanager(name of
queue manager defined )
e.g. def tcf(TCF) qmanager(QM1)
InitCtx>def xatcf<JNDI Name
to be given to the XA Topic Connection Factory>
qmanager(name
of queue manager defined )
e.g. def xatcf(XATCF) qmanager(QM1)
InitCtx>def t<JNDI
Name to be given to the Topic> topic<sample topic name
>
e.g. def t(TTopic) topic(topic)
Configuring
the Resource Adapter
- Add ${appserver-install-dir}/bin to your PATH. The asadmin
CLI
command can be found at ${appserver-install-dir}/bin. In SJSAS, a
resource adapter configuration is used to specify the configuration of
a resource adapter. Use the following command to create a resource
adapter configuration for genericra, to configure it to work with IBM
WebSphere MQ.
asadmin
create-resource-adapter-config --user <adminname>
--password
<admin password> --property
SupportsXA=true:ProviderIntegrationMode=jndi:UserName=mqm:Password=###:RMPolicy=OnePerPhysicalConnection:
JndiProperties=java.naming.factory.url.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=
file\\:\\/\\/opt\\/tmp:LogLevel=finest
genericra
A brief description of the
various properties used in the above command is explained below:
SupportsXA
Set the supports distributed transactions attribute to true. The level
of transactional support the adapter provides -- none, local, or XA --
depends on the capabilities of the Enterprise Information System [EIS]
being adapted. If an adapter supports XA transactions and this
attribute is XA, the application can use distributed transactions to
coordinate the EIS resource with JDBC and JMS resources.
ProviderIntegrationMode
Set the integration mode as JNDI. Two integration modes exist in the
Generic Resource Adapter for JMS. The JNDI mode allows the resource
adapter to use the administered objects published in the message
provider's JNDI provider to integrate with the message provider.
Username and Password
Message provider specific user credentials. [In this case, modify this
attribute to reflect the IBM MQ username/password]
JndiProperties
This property [comma-separated list of name-value pairs] specifies JNDI
provider properties to be used for
connecting to the JMS provider's JNDI. In our case, we set it to the
JNDI configuration specified earlier.
RMPolicy
Some XAResource implementations such as IBM MQ Series, relies
on a
Resource Manager per Physical Connection and this causes issues when
there is inbound
and
outbound communication to the same queue manager in a single
transaction (For example, an MDB sends a response to a
destination). When RMPolicy is set to OnePerPhysicalConnection, the
XAResource
wrapper implementation's isSameRM in Generic JMS RA would check if both
the XAResources use the same physical connection, before delegating to
the wrapped objects. Ensure that this attribute is set to
"OnePerPhysicalConnection" if the application uses XA. Additional
information on this attribute is available in the
resources section below.
Deploying
the Resource adapter
- Download the Generic RA bits from the project
site. With Sun
Java System Application Server 8.2 Platform Edition, Generic
RA is available out-of-the-box with the application server and you
could choose to use the bundle resource adapter as well in the step
below.
- Deploy the resource adapter using the asadmin deploy
command, as shown below. In the image above, see Generic JMS
RA deployed in the application server.
$ asadmin deploy --user admin --password
adminadmin
<location of the generic resource adapter rar file>
Creating
Connection Factories and Administered Objects in SJSAS
In order to configure a JMS Connection Factory, using the Generic
Resource Adapter for JMS, a Connector connection pool and resource
needs to be created in the application server, as shown below. In the
image above, see mypool [pointing to Generic JMS RA and QCF]
and jms/MyQCF [for mypool] created in the application server.
Connector
connection pool creation
#Creates a Connection Pool called mypool and points to XAQCF created in
IBM MQ
asadmin create-connector-connection-pool -- raname genericra
connectiondefinition javax.jms.QueueConnectionFactory
--transactionsupport XATransaction --property
ConnectionFactoryJndiName=QCF mypool
#Creates a Connection Pool called mypool2 and points to XATCF created
in IBM MQ
asadmin create-connector-connection-pool -- raname genericra
connectiondefinition javax.jms.TopicConnectionFactory
--transactionsupport XATransaction --property
ConnectionFactoryJndiName=XATCF mypool2
Connector
resource creation
#Creates a connector resource named jms/MyQCF and
binds this resource to JNDI for applications to use.
asadmin create-connector-resource --poolname mypool jms/MyQCF
#Creates a connector resource named jms/MyTCF and
binds this resource to JNDI for applications to use.
asadmin create-connector-resource --poolname mypool2 jms/MyTCF
Admin
Objects
For JMS Destination Resources, an administered object needs to be
created. In the image above, see jms/MyQueue [pointing to Generic JMS
RA and TQueue] created in the application server.
#Creates a javax.jms.Queue Administered Object and binds it to
application server's JNDI tree at
jms/MyQueue and points to jms/TQueue created in IBM MQ.
asadmin create-admin-object --raname genericra --restype
javax.jms.Queue --property DestinationJndiName=TQueue jms/MyQueue
#Creates a javax.jms.Topic Administered Object and binds it to
application server's JNDI tree at
jms/MyTopic and points to jms/TTopic created in IBM MQ.
asadmin create-admin-object --raname genericra --restype
javax.jms.Topic --property DestinationJndiName=TTopic jms/MyTopic
Component
Deployment descriptors
The sample deployment descriptor below assumes the application
described in the Tibco
EMS integration how to guide available in the genericjmsra
java.net communite page.
The deployment descriptors need to take into account the resource
adapter and the connection resources that have been created. A sample
sun-ejb-jar.xml for a Message Driven Bean that listens to a destination
called TQueue in WebSphere MQ, and publishes back reply messages to a
destination resource named jms/replyQueue is shown below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Sun
ONE
Application Server 7.0 EJB 2.0//EN'
'http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd'>
<!-- Copyright 2002 Sun Microsystems, Inc. All rights reserved.
-->
<sun-ejb-jar>
<enterprise-beans>
<unique-id>1</unique-id>
<ejb>
<ejb-name>SimpleMessageEJB</ejb-name>
<jndi-name>jms/SampleQueue</jndi-name>
<!-- QCF used to publish reply messages -->
<resource-ref>
<res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
<jndi-name>jms/MyQCF</jndi-name>
<default-resource-principal>
<name>mqm</name>
<password>mqm</password>
</default-resource-principal>
</resource-ref>
<!-- reply destination resource. Creating of this replyQueue
destination resource is not
shown above, but the steps
are similar to creating the "jms/MyQueue" resource -->
<resource-env-ref>
<resource-env-ref-name>jms/replyQueue</resource-env-ref-name>
<jndi-name>jms/replyQueue</jndi-name>
</resource-env-ref>
<!-- Activation related RA specific configuration for
this MDB -->
<mdb-resource-adapter>
<!-- resource-adapter-mid points to the Generic Resource Adapter
for
JMS -->
<resource-adapter-mid>genericra</resource-adapter-mid>
<activation-config>
<activation-config-property>
<activation-config-property-name>DestinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>ConnectionFactoryJndiName</activation-config-property-name>
<activation-config-property-value>QCF</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>DestinationJndiName</activation-config-property-name>
<activation-config-property-value>TQueue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>MaxPoolSize</activation-config-property-name>
<activation-config-property-value>32</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
<activation-config-property-value>0</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>ReconnectAttempts</activation-config-property-name>
<activation-config-property-value>4</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>ReconnectInterval</activation-config-property-name>
<activation-config-property-value>10</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>RedeliveryInterval</activation-config-property-name>
<activation-config-property-value>1</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>SendBadMessagesToDMD</activation-config-property-name>
<activation-config-property-value>false</activation-config-property-value>
</activation-config-property>
</activation-config>
</mdb-resource-adapter>
</ejb>
</enterprise-beans>
</sun-ejb-jar>
The business logic encoded in Message Driven Bean could then lookup the
configured QueueConnectionFactory/Destination resource
to create a connection as shown below.
Context context = null;
ConnectionFactory connectionFactory = null;
logger.info("In PublisherBean.ejbCreate()");
try {
context = new InitialContext();
queue = (javax.jms.Queue) context.lookup
("java:comp/env/jms/replyQueue");
connectionFactory = (ConnectionFactory)
context.lookup("java:comp/env/jms/MyQueueConnectionFactory");
connection =
connectionFactory.createConnection();
} catch (Throwable t) {
logger.severe("PublisherBean.ejbCreate:"
+ "Exception: " +
t.toString());
}
Resources
Thanks to Binod PG for reviewing this documentation and providing feedback.


Probability distributions¶
A probability distribution is a mathematical formalization that describes a particular type of random process. Though a random variable is more general than a probability distribution in that there may not be a known distribution behind a particular variable, often when we think of a random variable we imagine it is being generated by one of these common probability distributions.
The SciPy docs for statistics is quite useful.
Properties of distributions¶
These are common properties used to characterize a distribution:
- Expectation/mean
- Variance/standard deviation
- Skewness (asymmetry)
- Kurtosis (fat tails)
Rules for choosing a good distribution¶
Main questions¶
- Are my data discrete or continuous?
- Are my data symmetric?
- What limits are there on possible values for my data?
Other questions to keep in mind¶
- How likely are extreme values?
- Are there missing values?
Essential distributions¶
Bernoulli:¶
A Bernoulli distribution is a discrete probability distribution for a Bernoulli trial. The distribution takes the value 1 with success probability of \(p\) and the value 0 with failure. Success could be heads on a coin flip.
PMF = \(P[success] = p\) , \(P[failure] = 1-p\)
Mean: \(E[x] = p\)
Variance: \(Var(x) = p(1-p)\)
(Source code, png, hires.png, pdf)
Note
Lets say that I polled all first graders in the state of colorado and asked the question do you like/dislike your teacher. The answers are discrete values and the distribution of those answers could be modelled with a Bernoulli.
Can you think of another example?
See this khan academy video on the Bernoulli to get a better intuition
Binomial:¶
The Binomial distribution gives the discrete probability distribution of obtaining exactly k successes out of n trials
PMF: \(P[X=k] = {n \choose k}p^k(1-p)^{n-k}, \forall k \in \{0, 1,..., n\}\)
Mean: \(np\)
Var: \(np(1-p)\)
(Source code, png, hires.png, pdf)
Note
The number of heads that come from flipping a coin 10 times can be modeled with a binomial
Can you think of another example that might be modeled by a binomial?
See this khan academy video on the binomial distribution to get a better intuition
Poisson¶
If a mean of an event happening per unit time is observed and you need the probability of n events happening
PMF: \(P[X=k] = \frac{\lambda^k e^{-\lambda}}{k!},\forall k \in \{0,1,2,...\}\)
Mean: \(\lambda\)
Variance: \(\lambda\)
(Source code, png, hires.png, pdf)
Note
The probability that one,two,..., \(n\) uber cars pass in front of my building in an hour
Can you think of another example?
See this How does the binomial relate to the poisson (khan academy) video
Then check out the example on the poisson distribution (khan academy) video
Uniform¶
PDF: \(f(x) = \frac{1}{b-a}, \forall x\in[a, b]\), 0 otherwise
MEAN: \(\frac{a+b}{2}\)
VARIANCE: \(\frac{(b-a)^2}{2}\)
Normal aka Gaussian¶
The Gaussian is the most widely used distribution for continuous variables. The distribution is governed by the mean \(\mu\) and variance \(\sigma^2\).
SUPPORT \(x \in (-\inf, \inf)\)
PDF: \(\frac{1}{\sqrt{2\pi\sigma^2}}exp(-\frac{(x - \mu)^2}{2\sigma^2})\)
MEAN: \(\mu\)
VARIANCE: \(\sigma^2\)
The inverse of the variance is known as the precision (\(\tau = 1/\sigma^{2}\)).
(Source code, png, hires.png, pdf)
Note
test scores, IQs, heights, finishing times from the boston marathons (almost)
This is a really important distribution because it appears over and over in nature. It is extremely useful in statistical inference and it is a key component of the central limit theorem.
Less essential distributions¶
Geometric¶
The probability of some number (X) of Bernoulli trials needed to get one success. It also refers to probability of (X-1) failures before the first success.
PMF: \(P[X=k] = p (1-p)^{k-1}, \forall k \in \{0, 1,...\}\)
Mean: \(\frac{1}{p}\)
Variance: :frac{1-p}{p^2}
Hypergeometric¶
Hypergeometric distribution is a discrete probability distribution that describes the probability of k successes in n draws, without replacement.
The hypergeometric test uses the hypergeometric distribution to calculate the statistical significance of having drawn a specific k successes n total draws
Think of an urn with two types of marbles, red ones and green ones. Define drawing a green marble as a success and drawing a red marble as a failure (analogous to the binomial distribution).
Did I draw the expected number of green marbles?
The data are not accurately modeled by the binomial distribution, because the probability of success on each trial is not the same.
Note
Think Texas Hold em
Exponential¶
A good way to model the time between events for a poisson process. It is a particular case of the gamma distribution. It is governed by a rate parameter \(\lambda\).
SUPPORT: \(x \in (0, \inf)\).
PDF: \(\lambda e^{-\lambda x}\)
MEAN: \(\frac{1}{\lambda}\)
VARIANCE: \(\frac{1}{\lambda^2}\)
(Source code, png, hires.png, pdf)


| Class and Description |
|---|
| IComponentHandle
Represents a handle to a component item.
|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|
| Class and Description |
|---|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|
| Class and Description |
|---|
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|
| Class and Description |
|---|
| ComponentNotInWorkspaceException
Exception indicating that an operation was requested on a workspace for a
component which is not in that workspace.
|
| IBaseline
A Baseline represents an immutable Configuration of a set of Versionables
(i.e. it records the StateId of a subset of the Versionables in a
Repository), and the history of ChangeSets which led up to the Configuration.
|
| IBaselineHandle
Represents a handle to a baseline item.
|
| IBaselineSet
A BaselineSet represents an immutable collection of baselines.
|
| IBaselineSetHandle
Represents a handle to a baseline set item.
|
| IChangeHistoryEntryChange
Represents an entry in a change history that is a change set.
|
| IChangeSetHandle
Represents a handle to a change set item.
|
| IComponent
Represents a component known to the repository.
|
| IComponentHandle
Represents a handle to a component item.
|
| IContextHandle
Mixin interface to identify items which can have configurations and
change histories.
|
| ICurrentComponentInfo
Represents the audit trail for a component currently in a workspace.
|
| IFlowTable
Represent a table of flow entries describing nominal flows between the owning
workspace and any number of targets.
|
| IFolder
Represents a folder in the repository.
|
| IFolderHandle
Represents a handle to a folder item ((@link IFolder}).
|
| IVersionable
Represents an SCM versionable container type (e.g. file, folder, or
symbolic link).
|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IWorkspace
Represents a workspace qua auditable item.
|
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|
| Class and Description |
|---|
| ContentHash
Wrapper for the hash of versionable content.
|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IVersionedContent
Represents a description of content that is stored in the repository.
|
| Class and Description |
|---|
| IChangeSetHandle
Represents a handle to a change set item.
|
| IComponentHandle
Represents a handle to a component item.
|
| IFlowNodeHandle
Represents the handle to a FlowNode auditable.
|
| Class and Description |
|---|
| ContentHash
Wrapper for the hash of versionable content.
|
| ContentHashAlgorithmException
An exception that indicates a problem with the hashing algorithm used
for versioned content.
|
| IBaselineHandle
Represents a handle to a baseline item.
|
| IBaselineSetHandle
Represents a handle to a baseline set item.
|
| IChangeHistoryEntry
Represents an entry in a change history.
|
| IChangeSetHandle
Represents a handle to a change set item.
|
| IComponentHandle
Represents a handle to a component item.
|
| IComponentInfo
Represents the audit trail for a component in a workspace.
|
| IContextHandle
Mixin interface to identify items which can have configurations and
change histories.
|
| IFlowEntry
An entry in a flow table.
|
| IFlowNode
Marker interface which indicates that an interface can serve as a target
or source for the flowing of changes throughout the system.
|
| IFlowNodeHandle
Represents the handle to a FlowNode auditable.
|
| IFlowTable
Represent a table of flow entries describing nominal flows between the owning
workspace and any number of targets.
|
| IFolderHandle
Represents a handle to a folder item ((@link IFolder}).
|
| IItemInfoException
Exception interface which describes a generic type of
exception that returns an
IItemInfoData ]. |
| IRepositoryProgressMonitor
A repository progress monitor is a persistent item which allows support for cancellation
in RPC style service methods.
|
| IRepositoryProgressMonitor.RepositoryMonitorFactory
A helper factory for creating repository monitors.
|
| IRepositoryProgressMonitorHandle
Represents a handle to a repository progress monitor.
|
| IVersionable
Represents an SCM versionable container type (e.g. file, folder, or
symbolic link).
|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IVersionedContent
Represents a description of content that is stored in the repository.
|
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|
| Class and Description |
|---|
| IBaselineHandle
Represents a handle to a baseline item.
|
| IBaselineSetHandle
Represents a handle to a baseline set item.
|
| IChangeSet
Represents a change set.
|
| IChangeSetHandle
Represents a handle to a change set item.
|
| IComponentHandle
Represents a handle to a component item.
|
| IContextHandle
Mixin interface to identify items which can have configurations and
change histories.
|
| IFolderHandle
Represents a handle to a folder item ((@link IFolder}).
|
| IVersionableHandle
Represents a handle to a SCM versionable item ((@link
IVersionable }). |
| IWorkspaceHandle
Represents a handle to a workspace qua auditable item.
|