Swami Vivekanada
[1863-1902]
आत्मनो मोक्षार्थम् जगत् हिताय च
~ For one's own salvation and for the welfare of the world ~
Introduction
From a simple, unassuming monk in Calcutta who had reached the culmination of spiritual experience in the 1890s to the propounder of Hinduism and Vedanta on the global stage at the Parliament of Religions in Chicago in 1893, as well as the inspirer of thousands in different parts of the globe subsequently, Vivekananda is a household name today. His spiritual brilliance, absolute purity, vast learning, love for humanity, sympathy for the suffering and a hundred other noble qualities have made him a universal symbol of spiritual unfoldment of the human race and an inspiration not only for the youth, but for everyone—from the erstwhile leaders of India to world thinkers, from the unlettered peasant to the learned pundit, from little children to the advancing in age.
Apart from rousing the sleeping and suffering India, he travelled extensively and awakened the enlightened people of advanced nations to lead a spiritual life so as to attain inner peace, established the Ramakrishna Math and the Ramakrishna Mission, founded journals, established monasteries, wrote books, inspiring letters and articles, gave classes and discourses, gave interviews, trained young men, and did a thousand other things for the good of humanity. In short, he changed the course of human civilization—from an earth-bound, dark, miserable, pleasure-seeking, soul-less culture to a bright, spiritual civilization. All within the 39 years of his extraordinary life!
Selected Teachings of Swami Vivekananda
- My ideal, indeed, can be put into a few words, and that is: to preach unto mankind their divinity, and how to make it manifest in every moment of life.
- Education is the manifestation of the perfection already in man.
- We want that education by which character is formed, strength of mind is increased, the intellect is expanded, and by which one can stand on one's own feet.
- So long as the millions live in hunger and ignorance, I hold every man a traitor who, having been educated at their expense, pays not the least heed to them.
 If you think yourselves weak, weak you will be; if you think yourselves strong, strong you will be.
- If you have faith in all the three hundred and thirty millions of your mythological gods, and still have no faith in yourselves, there is no salvation for you. Have faith in yourselves, and stand up on that faith and be strong; that is what we need.
- Strength, strength it is that we want so much in this life, for what we call sin and sorrow have all one cause, and that is our weakness. With weakness comes ignorance, and with ignorance comes misery.
- You cannot believe in God until you believe in yourself.
- Arise! Awake! and stop not until the goal is reached.
- That man has reached immortality who is disturbed by nothing material.
- The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
- The Vedanta recognizes no sin it only recognizes error. And the greatest error, says the Vedanta is to say that you are weak, that you are a sinner, a miserable creature, and that you have no power and you cannot do this and that.
- All differences in this world are of degree, and not of kind, because oneness is the secret of everything.
- The will is not free - it is a phenomenon bound by cause and effect - but there is something behind the will which is free.
- Do not lower your goals to the level of your abilities.
- As long as we require someone else to make us happy, we are slaves.
- Strength is Life, Weakness is Death. Expansion is Life, Contraction is Death. Love is Life, Hatred is Death.
- All the powers in the universe are already ours.
- God is to be worshipped as the one beloved, dearer than everything in this life and the next.
- Our duty is to encourage every one in his struggle to live up to his own highest idea, and strive at the same time to make the ideal as near as possible to the Truth.
- You have to grow from the inside out. None can teach you, none can make you spiritual. There is no other teacher but your own soul.
- We are what our thoughts have made us; so take care about what you think. Words are secondary. Thoughts live; they travel far.
- Condemn none: if you can stretch out a helping hand, do so. If you cannot, fold your hands, bless your brothers, and let them go their own way.
- If money help a man to do good to others, it is of some value; but if not, it is simply a mass of evil, and the sooner it is got rid of, the better.
- The essence of education is the concentration of mind, not the collecting of facts. Develop the power of concentration and detachment and then with a perfect instrument collect facts at will.
- Purity, patience, and perseverance are the three essentials to success, and above all, love.
- The power of concentration is the only key to the treasure house of knowledge.
- When the world is the end and God is the means to attain that end, that is material. When God is the end and the world is only a means to that end, Sprituality has begun.
- Religion is realization; not talk, not doctrine, nor theories, however beautiful they may be. It is being and becoming, not hearing or acknowledging; it is the whole soul becoming changed into what it believes.
- Religion is the manifestation of the Divinity already in man.
- We want to get everything from nature, but we find in the long run that nature takes everything from us - depletes us and casts us aside.
- The world is the great gymnasium where we come to make ourselves strong.
- Teach yourselves, teach everyone his real nature, call upon the sleeping soul and see how it awakes. Power will come, glory will come, goodness will come, purity will come, and everything that is excellent will come when this sleeping soul is roused to self-conscious activity.
- They alone live who live for others, the rest are more dead than alive.
- This is the gist of all worship – to be pure and to do good to others.
- It is love and love alone that I preach, and I base my teaching on the great Vedantic truth of the sameness and omnipresence of the Soul of the Universe.
I have come here to pay my homage and respect to the revered memory of Swami Vivekananda, whose birthday is being celebrated today. I have gone through his works very thoroughly, and after having gone through them, the love that I had for my country became a thousand-fold. I ask you, young men, not to go away empty-handed without imbibing something of the spirit of the place where Swami Vivekananda lived and died.
- Mahatma Gandhi
Image Source here
Further Reading
WikiPedia's Link
Ramakrishna Mission Weblink
The Complete Works of Swami Vivekananda
~* Page made with by RM09 *~


on what the Buddha taught
In the sermons (e.g. SN38.14, SN45.165, DN33) three types of suffering are named, but I have not seen them there explained. They are explained outside the sermons, but in so far I have seen them they led to weird implications. Let me then offer an alternative.
1. Dukkhadukkhatā
Dukkha due to suffering (dukkha). And what is suffering? Birth, aging and dying. This doesn’t mean one must feel sorrow, grief or have an unhappy life. One can be very happy and joyful in this life. The point is that when there is no security from them, sooner or later, grievous things will happen for sure.
2. Saṅkhāradukkhatā
Dukkha due to inclination (Saṅkhāra, see ‘Knowing’). Sometimes people keep making bad decisions and suffer the consequences. It might seem as if they just can’t help themselves, as if they are wired that way (inclined). They are more inclined to act out of greed, hatred and delusion.
3. Vipariṇāmadukkhatā
Dukkha due to change for the worse (vipariṇāma). We might get robbed, our environment may have to deal with severe weather conditions, we might get sick, our countries might get into war, etc. All these sort of things, when run out of luck (so to speak) or in case of force majeure, fall under change-for-the-worse.
Free from Suffering
Normally when suffering from a painful bodily or mental feeling both and a bodily and a mental feeling are felt. Which might give the impression of this inseparable blob of suffering. Even so, that is not what suffering is. Just like happiness is not defined by happy feelings (whatever happiness there is, that is the happiness), so is suffering not defined by painful feelings. An Arahant can still feel bodily feelings (feelings is a khandha) but without the suffering that comes from being attached to it. Or to any of the other khandhā for that matter.
Then for an Arahant there is no:


BRScanManager
Objective-C
@interface BRScanManager : NSObject
Swift
class BRScanManager : NSObject
This is the main interface for initiating scanning sessions
-
Your BlinkReceipt license key
Declaration
Objective-C
@property (nonatomic, strong, nonnull) NSString *licenseKey;
Swift
var licenseKey: String { get set }
-
Google Places Web Service API Key (for more info see: https://developers.google.com/places/web-service/get-api-key)
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *googlePlacesApiKey;
Swift
var googlePlacesApiKey: String? { get set }
-
Yelp API Key (for more infos see: https://www.yelp.com/developers)
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *yelpApiKey;
Swift
var yelpApiKey: String? { get set }
-
Your BlinkReceipt product intelligence key (if any)
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *prodIntelKey;
Swift
var prodIntelKey: String? { get set }
-
A client-specified identifier for the current user
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *clientUserId;
Swift
var clientUserId: String? { get set }
-
An array of
NSString
filepaths corresponding to the user images, if any, which were confirmed by the user during the scanning session.Declaration
Objective-C
@property (nonatomic, strong, nullable) NSArray<NSString *> *userFramesFilepaths;
Swift
var userFramesFilepaths: [String]? { get set }
-
If users should be able to correct historical receipts, this controls how long the receipt data will be stored locally to enable editing
Default: 0 (indicates receipt data will not be stored locally)
Declaration
Objective-C
@property (nonatomic) NSInteger daysToStoreReceiptData;
Swift
var daysToStoreReceiptData: Int { get set }
-
Indicates whether the current device is capable of processing video frames
Declaration
Objective-C
@property (nonatomic, readonly) BOOL deviceCanProcessVideo;
Swift
var deviceCanProcessVideo: Bool { get }
-
Always access this singleton instance
Declaration
Objective-C
+ (nonnull instancetype)sharedManager;
Swift
class func shared() -> Self
Return Value
The singleton instance
-
Initiates a static camera scanning experience (in which the user appears to be snapping static photos)
Declaration
Objective-C
- (void) startStaticCameraFromController:(nonnull UIViewController *)viewController cameraType:(BRCameraType)cameraType scanOptions:(nullable BRScanOptions *)scanOptions withDelegate: (nonnull NSObject<BRScanResultsDelegate> *)delegate;
Swift
func startStaticCamera(from viewController: UIViewController, cameraType: BRCameraType, scanOptions: BRScanOptions?, with delegate: BRScanResultsDelegate)
Parameters
viewController
The parent view controller from which to display the camera controller modally
cameraType
User can choose to use standard (old) or enhanced (latest) camera UI
scanOptions
An instance of
BRScanOptions
specifying options for this scanning sessiondelegate
An instance conforming to
BRScanResultsDelegate
-
Initiates a scanning session using your own subclass of
BRCameraViewController
which is presented as modal from the suppliedUIViewController
Declaration
Objective-C
- (void)startCustomCamera:(nonnull BRCameraViewController *)customController fromController:(nonnull UIViewController *)viewController scanOptions:(nullable BRScanOptions *)scanOptions withDelegate:(nonnull NSObject<BRScanResultsDelegate> *)delegate;
Swift
func startCustomCamera(_ customController: BRCameraViewController, from viewController: UIViewController, scanOptions: BRScanOptions?, with delegate: BRScanResultsDelegate)
Parameters
customController
Your custom subclass of
BRCameraViewController
viewController
The parent view controller from which to display the camera controller modally
scanOptions
An instance of
BRScanOptions
specifying options for this scanning sessiondelegate
An instance conforming to
BRScanResultsDelegate
-
Initiates a scanning session using your own subclass of
BRCameraViewController
which is pushed from the suppliedUINavigationController
Declaration
Objective-C
- (void)pushCustomCamera:(nonnull BRCameraViewController *)customController fromNavController:(nonnull UINavigationController *)navCon scanOptions:(nullable BRScanOptions *)scanOptions withDelegate:(nonnull NSObject<BRScanResultsDelegate> *)delegate;
Swift
func pushCustomCamera(_ customController: BRCameraViewController, fromNavController navCon: UINavigationController, scanOptions: BRScanOptions?, with delegate: BRScanResultsDelegate)
Parameters
customController
Your custom subclass of
BRCameraViewController
navCon
The navigation controller from which to push the camera controller
scanOptions
An instance of
BRScanOptions
specifying options for this scanning sessiondelegate
An instance conforming to
BRScanResultsDelegate
-
Creates a new
MFMailComposeViewController
populated with debug information about the most recent scan. Caller is responsible for setting the mailComposeDelegate and presenting/dismissing the view controller.Note: If this method is invoked on the simulator or a device with no email supported, it will output the message body to the console and return
nil
.Declaration
Objective-C
- (nonnull MFMailComposeViewController *)createMailControllerWithDebugInfo;
Swift
func createMailControllerWithDebugInfo() -> MFMailComposeViewController
Return Value
The controller to display
-
For purchase validation, use these properties to indicate the date a user activated a specific promotion
Declaration
Objective-C
- (void)setActivationDate:(nonnull NSDate *)activationDate forPromotion:(nonnull NSString *)promotionSlug;
Swift
func setActivationDate(_ activationDate: Date, forPromotion promotionSlug: String)
Parameters
activationDate
The date on which the user activated this promotion
promotionSlug
The promotion slug as set up in the web PVP interface
-
Begin the receipt correction flow for a receipt stored on disk
Declaration
Objective-C
- (void)startReceiptCorrection:(nonnull NSString *)blinkReceiptId fromViewController:(nonnull UIViewController *)vc withCountryCode:(nullable NSString *)countryCode withCustomFont:(nullable UIFont *)customFont withCompletion: (nullable void (^)(BRScanResults *_Nullable, NSError *_Nullable))completion;
Swift
func startReceiptCorrection(_ blinkReceiptId: String, from vc: UIViewController, withCountryCode countryCode: String?, withCustomFont customFont: UIFont?) async throws -> BRScanResults
Parameters
blinkReceiptId
The receipt id of a receipt scanned within
daysToStoreReceiptData
daysvc
The view controller from which to show this modal
countryCode
Current country (this helps with barcode scanning)
customFont
Pass a non-null
UIFont
to style all of the elements in this flowcompletion
This callback is invoked when the correction flow ends
BRScanResults *scanResults
- Updated scan results object containing any changes the user made to the products (including adding new products) as well as an updatedqualifiedPromotions
array containing the results of the purchase validation call made after the user’s correctionsNSError *error
- If the correction flow failed for any reason (such as being unable to find the passed receipt id record on disk) this parameter will be non-null
-
Retrieve resullts from disk or remotely for a specific receipt for custom user corrections flow
Declaration
Objective-C
- (void)getResultsForReceiptCorrection:(nonnull NSString *)blinkReceiptId withCompletion: (nonnull void (^)(BRScanResults *_Nullable, NSArray<UIImage *> *_Nonnull)) completion;
Swift
func results(forReceiptCorrection blinkReceiptId: String) async -> (BRScanResults?, [UIImage])
Parameters
blinkReceiptId
The receipt id to load from disk
completion
This callback is invoked once the SDK has attempted to retrieve results for this receipt
BRScanResults *results
- The scan results associated with thisblinkReceiptId
NSArray<UIImage*>* images
- The images associated with thisblinkReceiptId
-
After custom user correction flow, call this method to validate the new results against promotions
Declaration
Objective-C
- (void)submitUpdatedResultsForValidation:(BRScanResults *_Nonnull)scanResults withCountryCode:(nullable NSString *)countryCode withCompletion:(nullable void (^)( BRScanResults *_Nonnull, NSError *_Nullable))completion;
Swift
func submitUpdatedResults(forValidation scanResults: BRScanResults, withCountryCode countryCode: String?) async throws -> BRScanResults
Parameters
scanResults
The results object that was obtained from
getResultsForReceiptCorrection:
countryCode
The country code to use for product intelligence on the updated results (default is @“US”)
completion
This callback is invoked once validation has been performed
BRScanResults *scanResults
- Updated scan results object containing any changes the user made to the products (including adding new products) as well as an updatedqualifiedPromotions
array containing the results of the purchase validation call made after the user’s correctionsNSError *error
- If any error occurred during validation this will be non-null
-
Retrieves targeted and general promotions for current user
Declaration
Objective-C
- (void)getPromotionsWithCompletion: (nonnull void (^)(NSArray<BRPromotionInfo *> *_Nullable))completion;
Swift
func promotions() async -> [BRPromotionInfo]?
Parameters
completion
This callback is invoked once promotions have been retrieved
NSArray<BRPromotionInfo*>* promos
- An array of promotion info objects for the current user
-
Retrieves surveys for current user
Declaration
Objective-C
- (void)getSurveysWithCompletion: (nonnull void (^)(NSArray<BRSurvey *> *_Nullable))completion;
Swift
func surveys() async -> [BRSurvey]?
Parameters
completion
This callback is invoked once surveys have been retrieved
NSArray<BRSurvey*>* promos
- An array of survey objects for the current user
-
Displays a given survey using the prepackaged flow
Declaration
Objective-C
- (void)startSurvey:(nonnull BRSurvey *)survey fromViewController:(nonnull UIViewController *)viewController withCompletion:(nullable void (^)(BOOL))completion;
Swift
func start(_ survey: BRSurvey, from viewController: UIViewController) async -> Bool
Parameters
survey
The survey to display
viewController
The view controller from which to display the survey
completion
This callback is invoked after the user has completed or cancelled the survey
BOOL cancelled
- whether the user cancelled the survey or not
-
When displaying a survey using a custom UI, call this method after the user has completed the survey to post the results
Declaration
Objective-C
- (void)submitSurveyResults:(nonnull BRSurvey *)survey;
Swift
func submitSurveyResults(_ survey: BRSurvey)
Parameters
survey
This is the completed
BRSurvey
object containing the user’s responses


Pending Games {{ pendingGamesList.userCreatedGames.length + pendingGamesList.invitedGames.length }}
Games created by you
{{game.title}}
0" class="pending-players">Waiting on {{game.pendingPlayers.length}} other player{{game.pendingPlayers.length > 1 ? 's' : ''}}Everyone has joined!Created on: {{game.createdAt}}
Are you sure you want to delete {{game.title}}? This action cannot be undone.
Games you are invited to
Choose your icon and color
{{game.title}}
0" class="pending-players">Waiting on {{game.pendingPlayers.length}} other player{{game.pendingPlayers.length > 1 ? 's' : ''}}Waiting on {{game.creator.username}} to start the gameInvited by {{game.creator.username}}


Survey scope:
Our lab is working on a research project aiming to identify how Android developers write code, in terms of software quality, readability, and robustness, for improving the stability of mobile apps. If you are an Android or Java developer, we are interested in getting information regarding your coding experience. In this survey, we give you a Java class of a real Android app and we ask you to handle seven experimental methods from the Android platform's API so that you can increase the app's stability. We would greatly appreciate your help if you could sign up and answer the survey. We recognize both your time and assistance. Your answers will be anonymized. For any questions please send an email to: mkechagia[at]aueb.gr.


Why a retreat?
We are all gathering in Xiamen for a small week to work together in better environment. These are not holidays, see it as a more relaxed company time in a different environment.
The main goal of the retreat is to get to know the team. Make sure you do not always stay with your usual collegues and mingle. Do not be afraid, none of them bite!
We will also have activites, some optional, some mandatory. Come and join as many as you want and let's have a blast!
Make sure to let the Operations team know if you need anything. We are not here to nurse you, but we can try to help!
Schedule
Here is the schedule for the week of the retreat.
-
11:30 AM
PCR test in Shanghai !
Gets us a fresh 24h result when arrived in Xiamen. -
11:45 AM
Travel - Subway - Office to Hongqiao train station
The train station is 40min away by subway. -
12:55 PM
Travel - Train - Shanghai to Xiamen (G1659)
Fast train! -
6:25 PM
Arrival in Xiamen
Gather to catch the bus. -
6:45 PM
PCR test in Xiamen !
Need a PCR test in Xiamen to gain access to the hotel... -
7 PM
Travel - Bus - Train station to hotel
Ops have arranged a bus. -
7:30 PM onwards
Arrival at the hotel / Check-In / Free time
Settle down and enjoy the rest of the evening.
-
7 AM
Breakfast
Make sure to remember your room number. -
9 AM - 1 PM
Work time
To be decided by each team. -
1 PM onwards
Free time
Just enjoy Xiamen!
-
7 AM
Breakfast
Make sure to remember your room number. -
9 AM - 1 PM
Work time
To be decided by each team. -
2.30 PM - 5.30 PM
Team building event
Attendance is mandatory -
6 PM onwards
Team dinner
Complete the team building day with a dinner.
-
7 AM
Breakfast
Make sure to remember your room number. -
9 AM - 1 PM
Work time
To be decided by each team. -
1 PM - 6 PM
Free time
Just enjoy Xiamen! -
5:30 PM
Bus to Downtown Xiamen
Notify the team if you're already downtown. -
6 PM - 8 PM
Team dinner
Nice team dinner organized by ops in Xiamen -
8 PM onwards
Xiamen by night
Enjoy your Friday evening and Xiamen. -
10:30 PM
Bus back to the Hotel
Notify the team if you aim to go back to the hotel by yourself.
-
7 AM
Breakfast
Make sure to remember your room number. -
9 AM
Bus to Xiamen Harbor
Don't be late! -
10 AM
Boat to Gulangyu
Don't be late! -
10:30 AM
Free time
Enjoy Gulangyu by foot. -
5 PM
Boat back to the Harbor
Frequent boats ... -
6 PM
Bus back to the resort
Don't be late!
-
7 AM
Breakfast
Make sure to remember your room number. -
9 AM - 11:30 AM
Free time
Make sure you checkout before 11:30 AM -
11:30 AM
Bus to the train station
Don't be late! -
1:11 PM
Train back to Shanghai (G1659)
All the good things have an end... -
8:24 PM
Arrival in Shanghai
Note: Arrange transportation on your own.
Hotel
Xiamen Portman Hotel & Resort | Seven Stars Bay
厦门特房波特曼七星湾酒店
No.7 Guanzhou Road, Tong'an District, Xiamen, Fujian, China
中国，福建，厦门，同安区，观洲路7号
FAQ
A few things that are important for you to make the stay of the team as awesome as it can.
- Trains
- Buses (train to hotel, hotel to harbor, hotel to downtown)
- Boat round trip to Gulangyu
- Hotel & Breakfast (Nov 22 - Nov 27, Dec 6 - Dec 11 & Dec 13 - Dec 18)
- Team dinner (Nov 24, Dec 8 & Dec 15)
- Team dinner (Nov 25, Dec 9 & Dec 16)
Yes, mornings are working period.
It depends, make sure your team is aware, that the customer is aware, and that it doesn't prevent you from attending the team building activities. You're expected to still work 4h per day.
It is up to each team leader to decide where the team will work during the retreat.
You will need a 48h PCR test to board the train. Be sure to have been tested earlier.
We included 2 tests on the first day - one in Shanghai before the departure, one in Xiamen when just arrived. We may have to wait for the results from Xiamen's test before being provided access to our rooms.
We encourage the team to proceed to regular PCR tests (every 48h), the closest testing booth is available next to the KFC (5min by walk from the hotel).
Upon return in Shanghai, proceed to daily tests for 3 days to ensure your QR code doesn't turn to yellow!
You can, but at your own cost. If you plan to do so, let us know in advance, especially if you want to enjoy our rate at the resort...
Follow the regular process for holiday / leaves, and ensure you notify your leader / HR of your holidays ASAP.
We're not gonna force you to join, but this is a great way to get to know your peers further.
If you don't join, please notify the Ops team ahead of time to ensure the organization is taking it into consideration.
Please note that the retreat is not extra holidays, if you don't join, you are expected to follow regular working hours with the rest of the team.
No. Unless of course if 1. you are doing billable customer work, 2. you asked your leader and got approval.


{% include 'header.html' %}
{{ face_count }}
faces found
{{ mask_count }}
masks found
Analyze another image
Local health information for {{ city }}


We will be using Cloud9 as our development environment. Cloud9 is an awesome web-based development environment that you can access from anywhere. We even used it in order to prepare curriculum for this class at home, work, and elsewhere.
One drawback of Cloud9 is that they ask for a credit card number on sign-up, even for us as we use their free plan. So we will be creating an account on GitHub in order to work around that. GitHub is a cloud-based source control tool, but we won't be using it very much in this class except as a way of signing onto Cloud9.
If you're wondering what's with all these mentions of clouds, this is because the cloud refers to websites and remote file storage systems that allow us to do our work remotely. The Cloud9 website's name is a pun on the expression on cloud nine, which refers to a feeling of contentment or happiness.
Here are the things we need to do in order to get ready to code:
Follow these steps to create an account on GitHub:
Next, you will have a chance to verify your e-mail address. Please make sure to do this step, as you will not be able to authorize Cloud9 using your GitHub account if you don't do this.
Make sure to stay signed in to GitHub for the next set of steps.
Follow these steps to create an account on Cloud9:
Once you have fully signed in to Cloud9, the next thing we need to do is to create a workspace. Click on the "Create a new workspace" button to start that process.
For Workspace name, just put something like "tr-web-programming", and for the Description, just put something like "I am so looking forward to this class". We're kidding—put whatever you like.
Choose "Hosted workspace", then choose "Public". (Don't worry, you won't be putting anything important into your code.) Skip the "Clone from..." section and choose the Blank template. Then, click "Create workspace" to finish up.
Okay, actually, we already have Node.js available—the problem is that we don't have the latest version.
Make sure you have a bash
terminal window open. Then
run the following commands one at a time (don't type $
, that's
just a symbol for a command prompt):
And with that, you should be ready to go!


| 1 | package fr.sii.ogham.email.attachment; | |
| 2 | ||
| 3 | import java.io.File; | |
| 4 | import java.io.IOException; | |
| 5 | import java.io.InputStream; | |
| 6 | ||
| 7 | import fr.sii.ogham.core.resource.ByteResource; | |
| 8 | import fr.sii.ogham.core.resource.FileResource; | |
| 9 | import fr.sii.ogham.core.resource.LookupResource; | |
| 10 | import fr.sii.ogham.core.resource.NamedResource; | |
| 11 | import fr.sii.ogham.core.resource.path.ResourcePath; | |
| 12 | import fr.sii.ogham.core.resource.path.UnresolvedPath; | |
| 13 | import fr.sii.ogham.core.util.EqualsBuilder; | |
| 14 | import fr.sii.ogham.core.util.HashCodeBuilder; | |
| 15 | ||
| 16 | /** | |
| 17 | * Represents a content to attach to the email. Typically a file to join to the | |
| 18 | * email. An attachment is represented with the following information: | |
| 19 | *
 | |
| 20 | *
A content (the file to join to the email). See {@link NamedResource} for | |
| 21 | * more information.
 | |
| 22 | *
A name (the name to display for the file). See {@link NamedResource} for | |
| 23 | * more information.
 | |
| 24 | *
An optional description
 | |
| 25 | *
An optional disposition ({@link ContentDisposition#ATTACHMENT} by | |
| 26 | * default)
 | |
| 27 | *
 | |
| 28 | * | |
| 29 | * @author Aurélien Baudet | |
| 30 | * | |
| 31 | */ | |
| 32 | public class Attachment { | |
| 33 | /** | |
| 34 | * The resource used to access the content of the attachment | |
| 35 | */ | |
| 36 | private NamedResource resource; | |
| 37 | ||
| 38 | /** | |
| 39 | * The description for the attachment | |
| 40 | */ | |
| 41 | private String description; | |
| 42 | ||
| 43 | /** | |
| 44 | * How to attach the attachment to the email | |
| 45 | */ | |
| 46 | private String disposition; | |
| 47 | ||
| 48 | /** | |
| 49 | * The ID of the content | |
| 50 | */ | |
| 51 | private String contentId; | |
| 52 | ||
| 53 | /** | |
| 54 | * The content-type of the attachment (automatically guessed by default) | |
| 55 | */ | |
| 56 | private String contentType; | |
| 57 | ||
| 58 | /** | |
| 59 | * Initialize the attachment with the provided resource (content and name), | |
| 60 | * the description of the attachment and the disposition (how to include the | |
| 61 | * attachment into the mail). | |
| 62 | * | |
| 63 | * @param resource | |
| 64 | * the resource of the attachment (with name) | |
| 65 | * @param description | |
| 66 | * the description of the attachment (may be null) | |
| 67 | * @param disposition | |
| 68 | * the disposition of the attachment | |
| 69 | * @param contentId | |
| 70 | * the unique id of the content (may not null) | |
| 71 | */ | |
| 72 | public Attachment(NamedResource resource, String description, String disposition, String contentId) { | |
| 73 | super(); | |
| 74 | this.resource = resource; | |
| 75 | this.description = description; | |
| 76 | this.disposition = disposition; | |
| 77 | this.contentId = contentId; | |
| 78 | } | |
| 79 | ||
| 80 | /** | |
| 81 | * Initialize the attachment with the provided resource (content and name), | |
| 82 | * the description of the attachment and the disposition (how to include the | |
| 83 | * attachment into the mail). | |
| 84 | * | |
| 85 | * @param resource | |
| 86 | * the resource of the attachment (with name) | |
| 87 | * @param description | |
| 88 | * the description of the attachment (may be null) | |
| 89 | * @param disposition | |
| 90 | * the disposition of the attachment | |
| 91 | */ | |
| 92 | public Attachment(NamedResource resource, String description, String disposition) { | |
| 93 | this(resource, description, disposition, null); | |
| 94 | } | |
| 95 | ||
| 96 | /** | |
| 97 | *
 | |
| 98 | * Initialize the attachment with the provided resource (content and name), | |
| 99 | * the description of the attachment. | |
| 100 | *
 | |
| 101 | *
 | |
| 102 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 103 | *
 | |
| 104 | * | |
| 105 | * @param resource | |
| 106 | * the resource of the attachment | |
| 107 | * @param description | |
| 108 | * the description of the attachment (may be null) | |
| 109 | */ | |
| 110 | public Attachment(NamedResource resource, String description) { | |
| 111 | this(resource, description, ContentDisposition.ATTACHMENT); | |
| 112 | } | |
| 113 | ||
| 114 | /** | |
| 115 | *
 | |
| 116 | * Initialize the attachment with the provided resource (content and name). | |
| 117 | *
 | |
| 118 | *
 | |
| 119 | * The description is not used (set to null) | |
| 120 | *
 | |
| 121 | *
 | |
| 122 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 123 | *
 | |
| 124 | * | |
| 125 | * @param resource | |
| 126 | * the resource of the attachment | |
| 127 | */ | |
| 128 | public Attachment(NamedResource resource) { | |
| 129 | this(resource, null); | |
| 130 | } | |
| 131 | ||
| 132 | /** | |
| 133 | *
 | |
| 134 | * Initialize the attachment with the provided path, description of the | |
| 135 | * attachment and disposition (how to include the attachment into the mail). | |
| 136 | *
 | |
| 137 | *
 | |
| 138 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 139 | * with a ':'. It must not contain another ':' character. | |
| 140 | *
 | |
| 141 | *
 | |
| 142 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 143 | * "classpath:". | |
| 144 | *
 | |
| 145 | * | |
| 146 | * @param path | |
| 147 | * the path to the attachment | |
| 148 | * @param description | |
| 149 | * the description of the attachment (may be null) | |
| 150 | * @param disposition | |
| 151 | * the disposition of the attachment | |
| 152 | */ | |
| 153 | public Attachment(String path, String description, String disposition) { | |
| 154 | this(new UnresolvedPath(path), description, disposition); | |
| 155 | } | |
| 156 | ||
| 157 | /** | |
| 158 | *
 | |
| 159 | * Initialize the attachment with the provided path and description of the | |
| 160 | * attachment. | |
| 161 | *
 | |
| 162 | *
 | |
| 163 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 164 | * with a ':'. It must not contain another ':' character. | |
| 165 | *
 | |
| 166 | *
 | |
| 167 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 168 | * "classpath:". | |
| 169 | *
 | |
| 170 | *
 | |
| 171 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 172 | *
 | |
| 173 | * | |
| 174 | * @param path | |
| 175 | * the path to the attachment | |
| 176 | * @param description | |
| 177 | * the description of the attachment (may be null) | |
| 178 | */ | |
| 179 | public Attachment(String path, String description) { | |
| 180 | this(new UnresolvedPath(path), description); | |
| 181 | } | |
| 182 | ||
| 183 | /** | |
| 184 | *
 | |
| 185 | * Initialize the attachment with the provided path. | |
| 186 | *
 | |
| 187 | *
 | |
| 188 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 189 | * with a ':'. It must not contain another ':' character. | |
| 190 | *
 | |
| 191 | *
 | |
| 192 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 193 | * "classpath:". | |
| 194 | *
 | |
| 195 | *
 | |
| 196 | * The description is not used (set to null) | |
| 197 | *
 | |
| 198 | *
 | |
| 199 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 200 | *
 | |
| 201 | * | |
| 202 | * @param path | |
| 203 | * the path to the attachment | |
| 204 | */ | |
| 205 | public Attachment(String path) { | |
| 206 | this(new UnresolvedPath(path)); | |
| 207 | } | |
| 208 | ||
| 209 | /** | |
| 210 | *
 | |
| 211 | * Initialize the attachment with the provided path, description of the | |
| 212 | * attachment and disposition (how to include the attachment into the mail). | |
| 213 | *
 | |
| 214 | *
 | |
| 215 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 216 | * with a ':'. It must not contain another ':' character. | |
| 217 | *
 | |
| 218 | *
 | |
| 219 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 220 | * "classpath:". | |
| 221 | *
 | |
| 222 | * | |
| 223 | * @param path | |
| 224 | * the path to the attachment | |
| 225 | * @param description | |
| 226 | * the description of the attachment (may be null) | |
| 227 | * @param disposition | |
| 228 | * the disposition of the attachment | |
| 229 | */ | |
| 230 | public Attachment(ResourcePath path, String description, String disposition) { | |
| 231 | this(new LookupResource(path), description, disposition); | |
| 232 | } | |
| 233 | ||
| 234 | /** | |
| 235 | *
 | |
| 236 | * Initialize the attachment with the provided path and description of the | |
| 237 | * attachment. | |
| 238 | *
 | |
| 239 | *
 | |
| 240 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 241 | * with a ':'. It must not contain another ':' character. | |
| 242 | *
 | |
| 243 | *
 | |
| 244 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 245 | * "classpath:". | |
| 246 | *
 | |
| 247 | *
 | |
| 248 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 249 | *
 | |
| 250 | * | |
| 251 | * @param path | |
| 252 | * the path to the attachment | |
| 253 | * @param description | |
| 254 | * the description of the attachment (may be null) | |
| 255 | */ | |
| 256 | public Attachment(ResourcePath path, String description) { | |
| 257 | this(new LookupResource(path), description); | |
| 258 | } | |
| 259 | ||
| 260 | /** | |
| 261 | *
 | |
| 262 | * Initialize the attachment with the provided path. | |
| 263 | *
 | |
| 264 | *
 | |
| 265 | * The path may contain a lookup. The lookup is case sensitive and must end | |
| 266 | * with a ':'. It must not contain another ':' character. | |
| 267 | *
 | |
| 268 | *
 | |
| 269 | * For example, a path could be "classpath:/email/hello.pdf". The lookup is | |
| 270 | * "classpath:". | |
| 271 | *
 | |
| 272 | *
 | |
| 273 | * The description is not used (set to null) | |
| 274 | *
 | |
| 275 | *
 | |
| 276 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 277 | *
 | |
| 278 | * | |
| 279 | * @param path | |
| 280 | * the path to the attachment | |
| 281 | */ | |
| 282 | public Attachment(ResourcePath path) { | |
| 283 | this(new LookupResource(path)); | |
| 284 | } | |
| 285 | ||
| 286 | /** | |
| 287 | * Initialize the attachment with the provided content, name, description of | |
| 288 | * the attachment and disposition (how to include the attachment into the | |
| 289 | * mail). | |
| 290 | * | |
| 291 | * @param name | |
| 292 | * the name of the attachment | |
| 293 | * @param stream | |
| 294 | * the content of the attachment accessible trough the stream | |
| 295 | * @param description | |
| 296 | * the description of the attachment (may be null) | |
| 297 | * @param disposition | |
| 298 | * the disposition of the attachment | |
| 299 | * @throws IOException | |
| 300 | * when the content of the stream can't be read | |
| 301 | */ | |
| 302 | public Attachment(String name, InputStream stream, String description, String disposition) throws IOException { | |
| 303 | this(new ByteResource(name, stream), description, disposition); | |
| 304 | } | |
| 305 | ||
| 306 | /** | |
| 307 | *
 | |
| 308 | * Initialize the attachment with the provided content, name and description | |
| 309 | * of the attachment. | |
| 310 | *
 | |
| 311 | *
 | |
| 312 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 313 | *
 | |
| 314 | * | |
| 315 | * @param name | |
| 316 | * the name of the attachment | |
| 317 | * @param stream | |
| 318 | * the content of the attachment accessible trough the stream | |
| 319 | * @param description | |
| 320 | * the description of the attachment (may be null) | |
| 321 | * @throws IOException | |
| 322 | * when the content of the stream can't be read | |
| 323 | */ | |
| 324 | public Attachment(String name, InputStream stream, String description) throws IOException { | |
| 325 | this(new ByteResource(name, stream), description); | |
| 326 | } | |
| 327 | ||
| 328 | /** | |
| 329 | *
 | |
| 330 | * Initialize the attachment with the provided content and name. | |
| 331 | *
 | |
| 332 | *
 | |
| 333 | * The description is not used (set to null) | |
| 334 | *
 | |
| 335 | *
 | |
| 336 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 337 | *
 | |
| 338 | * | |
| 339 | * @param name | |
| 340 | * the name of the attachment | |
| 341 | * @param stream | |
| 342 | * the content of the attachment accessible trough the stream | |
| 343 | * @throws IOException | |
| 344 | * when the content of the stream can't be read | |
| 345 | */ | |
| 346 | public Attachment(String name, InputStream stream) throws IOException { | |
| 347 | this(new ByteResource(name, stream)); | |
| 348 | } | |
| 349 | ||
| 350 | /** | |
| 351 | * Initialize the attachment with the provided content, name, description of | |
| 352 | * the attachment and disposition (how to include the attachment into the | |
| 353 | * mail). | |
| 354 | * | |
| 355 | * @param name | |
| 356 | * the name of the attachment | |
| 357 | * @param content | |
| 358 | * the content of the attachment | |
| 359 | * @param description | |
| 360 | * the description of the attachment (may be null) | |
| 361 | * @param disposition | |
| 362 | * the disposition of the attachment | |
| 363 | */ | |
| 364 | public Attachment(String name, byte[] content, String description, String disposition) { | |
| 365 | this(new ByteResource(name, content), description, disposition); | |
| 366 | } | |
| 367 | ||
| 368 | /** | |
| 369 | *
 | |
| 370 | * Initialize the attachment with the provided content, name and description | |
| 371 | * of the attachment. | |
| 372 | *
 | |
| 373 | *
 | |
| 374 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 375 | *
 | |
| 376 | * | |
| 377 | * @param name | |
| 378 | * the name of the attachment | |
| 379 | * @param content | |
| 380 | * the content of the attachment | |
| 381 | * @param description | |
| 382 | * the description of the attachment (may be null) | |
| 383 | */ | |
| 384 | public Attachment(String name, byte[] content, String description) { | |
| 385 | this(new ByteResource(name, content), description); | |
| 386 | } | |
| 387 | ||
| 388 | /** | |
| 389 | *
 | |
| 390 | * Initialize the attachment with the provided content and name. | |
| 391 | *
 | |
| 392 | *
 | |
| 393 | * The description is not used (set to null) | |
| 394 | *
 | |
| 395 | *
 | |
| 396 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 397 | *
 | |
| 398 | * | |
| 399 | * @param name | |
| 400 | * the name of the attachment | |
| 401 | * @param content | |
| 402 | * the content of the attachment | |
| 403 | */ | |
| 404 | public Attachment(String name, byte[] content) { | |
| 405 | this(new ByteResource(name, content)); | |
| 406 | } | |
| 407 | ||
| 408 | /** | |
| 409 | * Initialize the attachment with the provided file, description of the | |
| 410 | * attachment and disposition (how to include the attachment into the mail). | |
| 411 | *
 | |
| 412 | * The name of the attachment is the name of the file. | |
| 413 | *
 | |
| 414 | * | |
| 415 | * @param file | |
| 416 | * the file to attach | |
| 417 | * @param description | |
| 418 | * the description of the attachment (may be null) | |
| 419 | * @param disposition | |
| 420 | * the disposition of the attachment | |
| 421 | */ | |
| 422 | public Attachment(File file, String description, String disposition) { | |
| 423 | this(new FileResource(file), description, disposition); | |
| 424 | } | |
| 425 | ||
| 426 | /** | |
| 427 | *
 | |
| 428 | * Initialize the attachment with the provided file and description of the | |
| 429 | * attachment. | |
| 430 | *
 | |
| 431 | *
 | |
| 432 | * The name of the attachment is the name of the file. | |
| 433 | *
 | |
| 434 | *
 | |
| 435 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 436 | *
 | |
| 437 | * | |
| 438 | * @param file | |
| 439 | * the file to attach | |
| 440 | * @param description | |
| 441 | * the description of the attachment (may be null) | |
| 442 | */ | |
| 443 | public Attachment(File file, String description) { | |
| 444 | this(new FileResource(file), description); | |
| 445 | } | |
| 446 | ||
| 447 | /** | |
| 448 | *
 | |
| 449 | * Initialize the attachment with the provided file. | |
| 450 | *
 | |
| 451 | *
 | |
| 452 | * The name of the attachment is the name of the file. | |
| 453 | *
 | |
| 454 | *
 | |
| 455 | * The description is not used (set to null) | |
| 456 | *
 | |
| 457 | *
 | |
| 458 | * The disposition is set to {@link ContentDisposition#ATTACHMENT} | |
| 459 | *
 | |
| 460 | * | |
| 461 | * @param file | |
| 462 | * the file to attach | |
| 463 | */ | |
| 464 | public Attachment(File file) { | |
| 465 | this(new FileResource(file)); | |
| 466 | } | |
| 467 | ||
| 468 | public String getDescription() { | |
| 469 |
1
1. getDescription : replaced return value with "" for fr/sii/ogham/email/attachment/Attachment::getDescription → RUN_ERROR |
return description; |
| 470 | } | |
| 471 | ||
| 472 | public void setDescription(String description) { | |
| 473 | this.description = description; | |
| 474 | } | |
| 475 | ||
| 476 | public String getDisposition() { | |
| 477 |
1
1. getDisposition : replaced return value with "" for fr/sii/ogham/email/attachment/Attachment::getDisposition → RUN_ERROR |
return disposition; |
| 478 | } | |
| 479 | ||
| 480 | public void setDisposition(String disposition) { | |
| 481 | this.disposition = disposition; | |
| 482 | } | |
| 483 | ||
| 484 | public NamedResource getResource() { | |
| 485 |
1
1. getResource : replaced return value with null for fr/sii/ogham/email/attachment/Attachment::getResource → RUN_ERROR |
return resource; |
| 486 | } | |
| 487 | ||
| 488 | public void setResource(NamedResource resource) { | |
| 489 | this.resource = resource; | |
| 490 | } | |
| 491 | ||
| 492 | public String getContentId() { | |
| 493 |
1
1. getContentId : replaced return value with "" for fr/sii/ogham/email/attachment/Attachment::getContentId → RUN_ERROR |
return contentId; |
| 494 | } | |
| 495 | ||
| 496 | public void setContentId(String contentId) { | |
| 497 | this.contentId = contentId; | |
| 498 | } | |
| 499 | ||
| 500 | public String getContentType() { | |
| 501 |
1
1. getContentType : replaced return value with "" for fr/sii/ogham/email/attachment/Attachment::getContentType → RUN_ERROR |
return contentType; |
| 502 | } | |
| 503 | ||
| 504 | public void setContentType(String contentType) { | |
| 505 | this.contentType = contentType; | |
| 506 | } | |
| 507 | ||
| 508 | @Override | |
| 509 | public String toString() { | |
| 510 | StringBuilder builder = new StringBuilder(); | |
| 511 | builder.append("<").append(resource.getName()); | |
| 512 |
1
1. toString : negated conditional → NO_COVERAGE |
if (contentType != null) { |
| 513 | builder.append(" [").append(contentType).append("]"); | |
| 514 | } | |
| 515 |
1
1. toString : negated conditional → NO_COVERAGE |
if (description != null) { |
| 516 | builder.append("(").append(description).append(")"); | |
| 517 | } | |
| 518 |
1
1. toString : negated conditional → NO_COVERAGE |
if (contentId != null) { |
| 519 | builder.append("{").append(contentId).append("}>"); | |
| 520 | } | |
| 521 | builder.append("|").append(disposition).append("|>"); | |
| 522 |
1
1. toString : replaced return value with "" for fr/sii/ogham/email/attachment/Attachment::toString → NO_COVERAGE |
return builder.toString(); |
| 523 | } | |
| 524 | ||
| 525 | @Override | |
| 526 | public int hashCode() { | |
| 527 |
1
1. hashCode : replaced int return with 0 for fr/sii/ogham/email/attachment/Attachment::hashCode → RUN_ERROR |
return new HashCodeBuilder().append(resource, description, disposition, contentId, contentType).hashCode(); |
| 528 | } | |
| 529 | ||
| 530 | @Override | |
| 531 | public boolean equals(Object obj) { | |
| 532 |
2
1. equals : replaced boolean return with true for fr/sii/ogham/email/attachment/Attachment::equals → RUN_ERROR 2. equals : replaced boolean return with false for fr/sii/ogham/email/attachment/Attachment::equals → RUN_ERROR |
return new EqualsBuilder(this, obj).appendFields("resource", "description", "disposition", "contentId", "contentType").isEqual(); |
| 533 | } | |
| 534 | } | |
Mutations | ||
| 469 |
1.1 |
|
| 477 |
1.1 |
|
| 485 |
1.1 |
|
| 493 |
1.1 |
|
| 501 |
1.1 |
|
| 512 |
1.1 |
|
| 515 |
1.1 |
|
| 518 |
1.1 |
|
| 522 |
1.1 |
|
| 527 |
1.1 |
|
| 532 |
1.1 2.2 |


Documentation for classes includes syntax, usage information, and code samples for methods, properties, and event handlers and listeners for those APIs that belong to a specific class in ActionScript. The classes are listed alphabetically. If you are not sure to which class a certain method or property belongs, you can look it up in the Index.
| Class | Package | Description | |
|---|---|---|---|
| CacheManager
| com.press2flash.data | Manage the cache | |
| ConfigEvent
| com.press2flash.events | Events triggered when trying to get Wordpress configuration | |
| CustomSerializer
| com.press2flash.serialization |
Name of the function to call in the wordpress plugin. This should be used when the given Serialisers don't provide assistance for the action you want to perform. |
|
| GetCommentsSerializer
| com.press2flash.serialization | Retrieves the comments from a Wordpress page. | |
| GetConfigSerializer
| com.press2flash.serialization | Retrieves the configuration from your Wordpress installation | |
| GetPostSerializer
| com.press2flash.serialization | Retrieve the content of a single of Wordpress post | |
| GetPostsSerializer
| com.press2flash.serialization | Retrieve the content of a list of Wordpress post | |
| InsertCommentSerializer
| com.press2flash.serialization | Insert a new comment into a specific Wordpress post | |
| InsertPostSerializer
| com.press2flash.serialization | Insert a new post into the Wordpress database | |
| ISerialiser
| com.press2flash.interfaces | Interface for every Serialization objects | |
| ITemplate
| com.press2flash.interfaces | Interface for template pages | |
| RatePostSerializer
| com.press2flash.serialization | Rate a Wordpress post. | |
| Serializer
| com.press2flash.serialization | SuperClass for the Serialization objects | |
| ServerConnection
| com.press2flash.net | This class takes care of sending and receiving the information between the flash Application and Wordpress API | |
| ServerEvent
| com.press2flash.events | Events triggered by ServerConnection when dealing with XML | |
| StringUtils
| com.press2flash.text | Several statics methods to play around with String Objects | |
| StyledTextField
| com.press2flash.text | TextField that automaticly applies a stylesheet. | |
| StyleSheetManager
| com.press2flash.text | Load and parse an external Stylesheet | |
| SWFAddress
| Top Level | SWFAddress class. | |
| SWFAddressEvent
| Top Level | Event class for SWFAddress. | |
| Utils
| com.press2flash.utils | Several statics methods | |
| WPConfig
| com.press2flash.data | Util class to retrieve information received from the GetConfigSerializer | |
| WPConnection
| com.press2flash.net | Receive the information from the serialisers and prepare the query to attack the Wordpres API. | |
| WPConnectionEvent
| com.press2flash.events | Events triggered by WPConnection when a request has been proceeded | |
| WPDate
| com.press2flash.utils | Creates a new Date Object | |
| WPPage
| com.press2flash.theme | Superclass for all pages that need to retrieve information from Wordpress | |
| WPPageEvent
| com.press2flash.events | Events triggered by WPPage when creating or removing a template page |


A responsive site design adapts to whatever device being used. Essentially it is flexible and adjustable.
It is extremely important as it affects the users experience. Having consistency on various devices enhances the user experience.
Mobile first design seeks to design first to fit the mobile screen. It's important as using a mobile is very different to using a desktop and many consumers primarily use their phones to access the internet. We use our thumbs on smart phones and on a desktop we would use a mouse so to be responsive it needs to be designed differently and with the end-user in mind.
Mobile first design goes hand in hand with responsive design however can be more restrictive and difficult as it is the smallest screen to design for.
A framework is like a template or package of standard code of HTML,CSS, and JS. It serves as a packaged base to start your website. I used an analogy of a cake to describe HTML,CSS and DOM. In this case a framework would be like a pre-packaged baking mix. No need to bake it from scratch you just add a few things and you have a cake or a website.
Pros of using a framework is they help you code faster and easier. The obvious con is it may not be better or the best it can be. Again the analogy of a cake, Everyone knows the best cakes are never made from packet mixes nonetheless they are still good. In my experience cakes made from scratch are the best but require more time, effort and skill.
A wireframe is a visual blueprint of webpage elements, features and navigation in a webpage. Wireframes help to plan out content and the user experience first.
I found it difficult to visualise features like fonts and design elements because a wireframe is just a layout of the site. I think wireframing is difficult for designers as it doesn't include any design elements however is a beneficial tool for developers to start the website development process.


Search of ICE and FIRE
Search By Character
Search By House
Search By Random character
Search By Random House
Search By Random character from House
House Data
Name:
Region:
CoatOfArms:
Diedout:
Seats:
Words:
Character Data
Name:
Gender:
Culture:
Titles:
Born:
Died:
Aliases:


Solver module¶
Written by: Joao Rodrigues June 2020
-
class
Solver.
MonteCarlo
(cavity_obj, **kwargs)¶ Bases:
Solver.Solver
Solves the incoherent cavity dynamics by performing a stochastic Monte Carlo realization.
- Parameters:
- n_point (int): Number of points to output the solution. These points will not be exact, but instead the algorithm will
- …search the nearby time instant in the stochastic evolution
-
call_solver
()¶
-
check_solver_specific_parameters
()¶
-
class
Solver.
ODE
(cavity_obj, **kwargs)¶ Bases:
Solver.Solver
Solves the incoherent cavity dynamics by integrating the mean-field rate equations.
- Parameters:
- n_point (int): Number of points to calculate the mean-field solution.
-
call_solver
()¶
-
check_solver_specific_parameters
()¶
-
class
Solver.
Solver
(cavity_obj, **kwargs)¶ Bases:
object
Solver() is an abstraction class that must be inherited by particular solvers.
-
call_solver
()¶
-
check_solver_specific_parameters
()¶
-
set_initial_excited_molecules
(initial_excited_molecules)¶ Parameters:
- initial_excited_molecules (numpy array): Array with the initial number of excited molecules in spatial bin.
- Expected shape is (J,)
-
set_initial_photons
(initial_photons)¶ Parameters:
- initial_photons (numpy array): Array with the initial number of photons in each cavity mode.
- Expected shape is (M,)
-
solve
()¶
-
-
class
Solver.
SteadyState
(cavity_obj, **kwargs)¶ Bases:
Solver.Solver
Solves the steady-state of the mean-field rate equations.
- Parameters:
- ANNEALING (bool): If True, slowing increases the pump up to the user defined value, computing steady-state solutions
- at all cases and using them as initial guesses for the next pump value. Default = True
-
call_solver
()¶
-
check_solver_specific_parameters
()¶


Year 2015 (Volume 3) Issue 1 Issue 2 Year 2014 (Volume 2) Issue 1 Issue 2 Year 2013 (Volume 1) Issue 1 Issue 2


#include <colorsel.h>
Public Methods | |
| TColorItem (const char *nm, uchar idx, TColorItem *nxt=0) | |
| virtual | ~TColorItem () |
Public Attributes | |
| const char* | name |
| uchar | index |
| TColorItem* | next |
Friends | |
| TColorGroup& | operator+ (TColorGroup &g, TColorItem &i) |
| TColorItem& | operator+ (TColorItem &i1, TColorItem &i2) |
The interrelated classes TColorItem, TColorGroup, TColorSelector, TMonoSelector, TColorDisplay, TColorGroupList, TColorItemList and TColorDialog provide viewers and dialog boxes from which the user can select and change the color assignments from available palettes with immediate effect on the screen.
Definition at line 52 of file colorsel.h.
|
|
Constructor. Creates a color item object with name set to `nm', index set to `idx' and, by default, next set to 0. `nm' is a pointer to the name of the color item. A local copy of the string is created. `idx' is the color index. `nxt' is a pointer to the next color item (its default value is 0). See file `demo/tvdemo2.cc' for an example. |
|
|
Destructor. |
|
|
Inserts another color item after this one by changing the TColorItem::next pointer. |
|
|
Inserts color item `i' in color group `g'.
|
|
|
The color index of the item. Definition at line 79 of file colorsel.h. |
|
|
The name of the color item. Definition at line 75 of file colorsel.h. |
|
|
Link to the next color item, or 0 if there is no next item. Definition at line 83 of file colorsel.h. |


Boudin meatball pork chop pork belly t-bone spare ribs biltong shankle jerky ball tip tongue sausage short ribs beef ribs. Drumstick salami leberkas ball tip ground round tri-tip biltong beef ribs bresaola turkey.
Etsy salvia mustache, carles beard gentrify twee flannel. Skateboard mcsweeney's lo-fi, butcher actually sartorial beard carles single-origin coffee semiotics seitan. Marfa Austin tumblr, YOLO organic deep v actually meggings put a bird on it food truck seitan beard cardigan. You probably haven't heard of them.
Fo shizzle mah nizzle fo rizzle, mah home g-dizzle funky fresh dolor sit amizzle, izzle adipiscing nizzle. Nullam sapien velit, my shizz volutpizzle, suscipizzle quizzle, gravida vel, shizzle my nizzle crocodizzle. Pellentesque dizzle tortor. Shizzlin dizzle erizzle. Check out this izzle.


Class Capture
Represents a named capture component
Inheritance
Implements
Inherited Members
Namespace: Stringier.Patterns
Assembly: Stringier.Patterns.dll
Syntax
public sealed class Capture : IEquatable<string>
Remarks
This is used primarily in the implementation of backreferences (which are like in Regex).
Constructors
| Improve this Doc View SourceCapture()
Initialize a new Capture object.
Declaration
public Capture()
Methods
| Improve this Doc View SourceAsPattern()
Declaration
public Pattern AsPattern()
Returns
| Type | Description |
|---|---|
| Pattern |
Equals(String)
Determines whether this Capture and a specified System.String object have the same value. Comparison is ordinal.
Declaration
public bool Equals(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other | The System.String to compare to this instance. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Equals(String, StringComparison)
Determines whether this Capture and a specified System.String object have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.
Declaration
public bool Equals(string other, StringComparison comparisonType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other | The System.String to compare to this instance. |
| System.StringComparison | comparisonType | One of the enumeration values that specifies how the text will be compared. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Or(Capture)
Declares other
to be an alternate of this Capture.
Declaration
public Pattern Or(Capture other)
Parameters
| Type | Name | Description |
|---|---|---|
| Capture | other |
Returns
| Type | Description |
|---|---|
| Pattern |
Or(Pattern)
Declares other
to be an alternate of this Capture.
Declaration
public Pattern Or(Pattern other)
Parameters
| Type | Name | Description |
|---|---|---|
| Pattern | other |
Returns
| Type | Description |
|---|---|
| Pattern |
Or(Char)
Declares other
to be an alternate of this Capture.
Declaration
public Pattern Or(char other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char | other | The System.Char to check if this Capture does not match |
Returns
| Type | Description |
|---|---|
| Pattern |
Or(String)
Declares other
to be an alternate of this Capture.
Declaration
public Pattern Or(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other | The System.String to check if this Capture does not match |
Returns
| Type | Description |
|---|---|
| Pattern |
Repeat(Int32)
Marks this Capture as repeating count
times.
Declaration
public Pattern Repeat(int count)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | count | The amount of times to repeat. |
Returns
| Type | Description |
|---|---|
| Pattern | A new Pattern repeated |
Then(Capture)
Concatenates the patterns so that this Pattern comes before other
Declaration
public Pattern Then(Capture other)
Parameters
| Type | Name | Description |
|---|---|---|
| Capture | other | The succeeding Pattern |
Returns
| Type | Description |
|---|---|
| Pattern |
Then(Pattern)
Concatenates the patterns so that this Pattern comes before other
Declaration
public Pattern Then(Pattern other)
Parameters
| Type | Name | Description |
|---|---|---|
| Pattern | other | The succeeding Pattern |
Returns
| Type | Description |
|---|---|
| Pattern |
Then(Char)
Concatenates the patterns so that this Pattern comes before other
Declaration
public Pattern Then(char other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char | other | The succeeding System.Char |
Returns
| Type | Description |
|---|---|
| Pattern |
Then(String)
Concatenates the patterns so that this Pattern comes before other
Declaration
public Pattern Then(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other | The succeeding System.String |
Returns
| Type | Description |
|---|---|
| Pattern |
ToString()
Converts the value of this instance to a System.String.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | Returns the captured System.String |
Overrides
With(Compare)
Compare this Capture with the given comparisonType
.
Declaration
public Pattern With(Compare comparisonType)
Parameters
| Type | Name | Description |
|---|---|---|
| Compare | comparisonType | Whether the comparison is sensitive to casing. |
Returns
| Type | Description |
|---|---|
| Pattern | A new Pattern representing this Capture compared with |


---
title: "Ethnobotany!"
date: "2019-08-07 00:00:00 -06:00"
categories:
- whats-blooming
layout: "post"
blog-banner: "whats-blooming-now-summer.jpg"
post-date: "August 7, 2019"
post-time: "12:00 PM"
blog-image: "2019-08-07-wbn.jpg"
published: true
---
We have a new installation in the Children's Garden and it's all about ethnobotany and the findings from the research of our Conservation Department, in conjunction with the Natural History Museum and Indigenous tribes of of Southern Utah, near Bear's Ears Buttes.
The signs says, "What would your life look like without grocery stores or online shopping? How would you get food? Medicine? Toys?"
Walk down this path next to the Grotto to find the answers while getting a peek into the past.
Ethnobotany is the study of people and plants, and the ways in which they interact. Look for the red signs like the one in the photo above, these signs indicate a plant that was found to be ethnobotanically significant to the indigenous tribes of Southern Utah.
This is the star of the show! It is a native potato that indigenous tribes have used for over 10,000 years. It is an important staple food and thought to be the first domesticated plant in the Western U.S.! It is flowering right now so get to the Garden ASAP, you don't want to miss it.
These cute purple flowers can be made into a candy.
These red fruits can be eaten medicinally for gastrointestinal complaints, as well as for toothaches.
The fruit from this tree has been used for fevers, coughs, and colds.
A broom can be made from this shrub by tying a bunch of the stems together.
Come explore our new ethnobotany garden and learn about how people have been using plants for centuries!


This process is analogue to the process when you, for example, deploy a JSP shell, but the way you do it is a little different.
We need to go to the "Debugging & Loging / Scheduled Taks" menu element and add a scheduled task that would download our CFML script from our webserver to the ColdFusion server’s webroot. Make sure you schedule the deployment to some reasonable time, so 5-10 minutes from your current time - no one likes to wait for free shells, right?
Here is an example on how it looks like:
You can find a few CFML shells for example here. I like to use this one from Kurt Grutzmacher:
Shell from Ultimatepeter.com is way better. Also below. Need to fix the commas, quotes, and comment lines. echo -n "newpass" | md5sum for a new password.
If the target is running enterprise, you can also do a jsp shell (depends on shell's java version requirements).
And it looks like this once it is uploaded (I had to use the Options fields to fit in the screenshot):


#Tests samples required to run the according tests. ## Queue-Node-Js-CPU-Intensive
Function is triggered by queue input. Input ia a number and function generates to random square matixes of input x input size then in multiplies matrixes, prints "Finish." when calculation is done. This operation is very heavily using CPU resources, concurrent executions on single container cause function to execute slower
## Queue-Node-Js-High-MemoryFunction is designed to allocate big array depending on input size.
## Queue-Node-Js-Low-UsageFunction has low usage gets message, reads it count to 1000 and finishes.


There has been a handful of technologies that have expanded human liberties and luxuries throughout history, from the oral tradition, the invention of paper, the printing press, radio, and the internet. Unlike in history, people are less inclinded to put their money into property. This can be because they need to stay mobile for their work but often it’s because they cannot afford a down payment or other financial reasons.
One of the best ways to make your money work for you is to invest in stocks. Robinhood has made investments work for me while I have saved. Following a few rules lead to my success:
- Invest in what you know
- Buy when there’s “blood in the streets”
- Have an exit strategy
Invest in what you know
I love the sciences but I know where my limitations are. For example, I know computers rather well, astronomy better than average, and biology… well, let’s not talk about biology. I know my limitations and where my knowledge and skillset excel. Therefore, my money goes into various tech stocks and nowhere near biopharm.
Maybe you know an industry or market really well. You can buy and sell ETFs that track it. You can find ETFs for robotics, the defense sector, artificial inteligence and even legal cannabis.
Buy when there’s “blood in the streets”
This refers to when people are massively selling off their shares for one reason or another. Often this is occurs when poor news comes out about a company or sector. If you know the stock will recover then don’t hesitate to buy. AMD recently dipped below $10 this year and is now trading at over ~$13~ $16 per share, a gain of over 30% in a few months.
Selling puts will let you average into a position while collecting a premium on the contract.
Have an exit strategy
You may be investing in something you don’t ever want to remove your stock from and just collect dividends. However, even in this case it’s a good idea to have an exit strategy. You never know the future with 100% accuracy.
A few simple strategies include:
Bought 100 shares at $10/share: WHen the value of a share reaches $12, sell 90 shares to recover 100% of the initial input. Allow the remaining 10 shares to apprechiate.
Bought 100 shares at $10/share: Sell a call at $12/share and collect the premium. If the call is not exerciesd you make some money, if it’s exercised you make more.


Learn more
EMAIL SIGN UP
Be the first to know about new products and special offers.
Sign Up Now
GIFT CARDS
Give the gift that always fits..
View Cards
STORES NEAR YOU
Locate a Nike retail store or authorized retailer.
Search


Colors
Links
API
test
sources :
Widget
,
colors
Externals
Picking a Color Palette for Your Game’s Artwork
Color Scheme Designer 3
Color Blender
Adobe Kuler


| Top |
Functions
| NcGalaxyWL * | nc_galaxy_wl_new () |
| NcGalaxyWL * | nc_galaxy_wl_ref () |
| void | nc_galaxy_wl_free () |
| void | nc_galaxy_wl_clear () |
| gdouble | nc_galaxy_wl_eval_m2lnP () |
| guint | nc_galaxy_wl_len () |
Properties
| NcGalaxyRedshift * | gz-dist | Read / Write / Construct Only |
| NcGalaxyWLDist * | wl-dist | Read / Write / Construct Only |
Description
This class describes a galaxy weak lensing distribution. It is composed by a weak lensing distribution $P_\mathrm{wl}(g)$ and a redshift distribution $P(z)$. The weak lensing distribution is defined by the abstract class NcGalaxyWLDist. The redshift distribution is defined by the abstract class NcGalaxyRedshift.
Functions
nc_galaxy_wl_new ()
NcGalaxyWL * nc_galaxy_wl_new (NcGalaxyWLDist *wl_dist
,NcGalaxyRedshift *gz_dist
);
Creates a new galaxy weak lensing object. Requires an instance of NcGalaxyWLDist and NcGalaxyRedshift.
nc_galaxy_wl_ref ()
NcGalaxyWL *
nc_galaxy_wl_ref (NcGalaxyWL *gwl
);
Increase the reference of gwl
by one.
nc_galaxy_wl_free ()
void
nc_galaxy_wl_free (NcGalaxyWL *gwl
);
Decrease the reference count of gwl
by one.
nc_galaxy_wl_clear ()
void
nc_galaxy_wl_clear (NcGalaxyWL **gwl
);
Decrease the reference count of gwl
by one, and sets the pointer *gwl
to
NULL.
nc_galaxy_wl_eval_m2lnP ()
gdouble nc_galaxy_wl_eval_m2lnP (NcGalaxyWL *gwl
,NcHICosmo *cosmo
,NcHaloDensityProfile *dp
,NcWLSurfaceMassDensity *smd
,const gdouble z_cluster
);
Computes the galaxy probability given the theoretical modeling.
Property Details
The “gz-dist”
property
“gz-dist” NcGalaxyRedshift *
A NcGalaxyRedshift object.
Owner: NcGalaxyWL
Flags: Read / Write / Construct Only
The “wl-dist”
property
“wl-dist” NcGalaxyWLDist *
A NcGalaxyWLDist object.
Owner: NcGalaxyWL
Flags: Read / Write / Construct Only


I am a soon to be software development graduate from the Institute of Technology, Tralee, Ireland.
My interest is in back-end programming and dev-ops. I am a strong programmer in Java and am competent in SQL JavaScript, JQuery, Bootstrap and Python.
I am currently learning many different programming languages, frameworks and design methodologies.


WeatherTech Cafe
Home
(current)
About
Services
Contact
Sandwich
Category 1
Category 2
Category 3
Price
$6.89
"Delectably filling."
Ingredients: Wheat, Cheese, Tomato, Lettuce
Type:
Baker Bacon
BBQ Chicken
Classic BLT
Classic Italian
Darly Divine
Farrand Fodder
Hallett Ham
Libby Licious
Parisian Grilled Cheese
Roast Beef Pepper Melt
Tofu Mozzarella
Tuna Melt
Turkey Bacon Club
Turkey Jalapeno Melt
Veggie Club
Bread:
White Baguette
Wheat Baguette
White Ciabatta
Potato Rosemary Ciabatta
Focaccia
7-Grain
Condiment:
Ranch
Spicy Ranch
Mustard
Brown Mustard
Mayo
BBQ
Hot Sauce
Pesto
Hummus
Honey Mustard
Italian
Avocado
Toasted:
Yes
No
Quantity:
1
2
3
4
5
Additional Comments:


You are viewing an historical archive of past issues. Please
report new issues to the appropriate project issue tracker on
GitHub.
Comments
-
Greg Hurrell
Did a little search to see if people are doing this.
engine = Haml::Engine.new("%p Haml code!") engine.render
Add a comment
Comments are now closed for this issue.


Class Model
Class Model
- Illuminate\Database\Eloquent\Model
- Slimore\Mvc\Model
Methods summary
public
|
Properties summary
protected
string
|
$table
|
#
null
|
public
boolean
|
$timestamps
|
#
false
|


Silky Terrier
| Silky Terrier Picture | |
| Breed Information | |
|---|---|
| Popularity | 2017: #1062016: #1002015: #102 |
| Name | Silky Terrier |
| Other names | Sydney Silky, Australian Silky Terrier |
| Origin | Australia |
| Breed Group | Toy (AKC:1959)Terriers (UKC) |
| Size | Small |
| Type | Purebred |
| Life span | 12-15 years |
| Temperament | AlertFriendlyInquisitiveJoyfulQuickResponsiveIntelligent |
| Height | 9-10 inches (23-25 cm) |
| Weight | 8-11 pounds (4-5 kg) |
| Colors | BlueBlack and TanBlueCreamFawnGrayPlatinumSilverTricolor |
| Litter Size | 3-5 puppies |
| Puppy Price | Average $600 - $800 USD |
| Breed Characteristics | |
| Adaptability | 3 stars |
| Apartment Friendly | 5 starsThe Silky Terrier is good for apartment life. These dogs are very active indoors and will do okay without a yard if sufficiently exercised. |
| Barking Tendencies | 3 starsOccassional |
| Cat Friendly | 3 stars |
| Child Friendly | 4 starsGood with Kids: This is a suitable breed for kids and is known to be playful, energetic, and affectionate around them. |
| Dog Friendly | 2 stars |
| Exercise Needs | 3 starsThe Silky Terrier is full of energy and needs to go on daily walks. It has surprising stamina and will enjoy regular chances to run and play. |
| Grooming | 4 starsModerate Maintenance: The Silky Terrier's coat is highly susceptible to tangles and matting and requires daily brushing and combing. This breed requires a deep commitment from the owners. To keep the coat lustrous, regular shampooing is necessary. Using an Avocado and Oatmeal Shampoo will help alleviate the itchy, dry skin of this breed. |
| Health Issues | 3 starsGenerally healthy. Minor concerns are intervertebral disc disease, elbow dysplasia, patellar luxation and Legg-Perthes. This breed sometimes is afflicted with diabetes, epilepsy and tracheal collapse.Hypoallergenic: Yes |
| Intelligence | 4 starsRanking: #37. (See All Rankings) |
| Playfulness | 4 stars |
| Shedding Level | 1 starsMinimal Shedding: This dog will shed a negligible amount. Recommended for owners who do not want to deal with dog hair in their cars and homes. |
| Stranger Friendly | 3 stars |
| Trainability | 4 starsModerately Easy Training: Training won't require too much attention and effort, though it won't be easier than other breeds. Expect results to come gradually. |
| Watchdog Ability | 3 stars |
| Silky Terrier Puppy Picture | ||
| Puppy Names | ||
|---|---|---|
| Rank | Male | Female |
| 01 | Max | Bella |
| 02 | Toby | Lola |
| 03 | Jack | Coco |
| 04 | Cooper | Chloe |
| 05 | Bear | Lily |
| 06 | Duke | Luna |
| 07 | Toby | Stella |
| 08 | Bailey | Roxy |
| 09 | Riley | Ellie |
| 10 | Oscar | Pepper |
| See All Names › |
| Overview |
|---|
|
The silky terrier is a miniature version of a working terrier, and as such retains the essential features of a vermin hunter. It is somewhat longer than tall, and though of refined bone, it should nonetheless have sufficient strength and substance to suggest that it could kill small rodents. The gait is free and light-footed; the expression is piercingly keen. The straight, single coat is silky and glossy, following the body outline rather than falling to the floor. The silky terrier is no mellow lap dog. It is bold, feisty, inquisitive and playful, ever ready for action — a terrier at heart. It can be aggressive toward other dogs or pets. It is clever, but tends to be stubborn, and can be mischievous. It tends to bark a lot. |
| History |
| The Silky Terrier was created in the late 1800s by crossing the Yorkshire Terrier with the Australian Terrier. The goal was to improve the coat color of the blue-and-tan-colored Australian Terriers. The Australian Terrier and the Silky Terrier were the same breed for many years until they were eventually recognized as two different types and separated into two different breeds. During World War II, American servicemen brought some of these Silky Terriers home with them. The breed was recognized by the AKC in 1959 and its standard was established in 1962 and later updated in 1967. The Silky Terrier has always been primarily a companion dog, but this swift little dog is very good at catching rodents. |


Because many children won't tell their parents they're being cyberbullied,
parents need to watch for potential warning signs:
- Your child is suddenly spends much more - or much less - time texting,
gaming or using social-networking websites. Any rapid change could be an alarm bell
- After texting or being online, he or she seems withdrawn, upset or outraged
- Your child asks to have a social-media or online account shut down
- He or she suddenly avoids formerly enjoyable social situations
- He or she blocks a number or an email address from his or her account
- Many new phone numbers, texts or email addresses show up on your child's phone, laptop or tablet
- He or she acts frustrated and impatient, or simply acts out more
- Strangers have opened Facebook or other social-media accounts in your child's name
- Your child notices that he or she is being gossiped about online, or that others are using "code words" in place of his or her name
Approach gently but firmly
If you believe your child is being cyberbullied, initiate a conversation, but take care to do so in such a way that your child feels your unconditional support.
"Parents must demonstrate to their children through words and actions that they both desire the same end result: that the cyberbullying stop and that life does not
become even more difficult," said Sameer Hinduja, Ph.D., co-director of the Cyberbullying Research Center.
"This can be accomplished by working together to arrive at a mutually agreeable course of action, as sometimes it is appropriate (and important) to solicit the child's perspective as to what might be done to improve the situation," Hinduja added.
Reaching out
The police should be approaced if physical threats are involved, or a crime has been possibly committed.
That's why parents must also educate their children about appropriate online behaviors and take the time to monitor, however informally, their children's Internet-related habits.
Kids need to learn that inappropriate actions will not be tolerated.


{{ $weekly_rpt_config := $.data.Config.WeeklyReport }} {{ $weeks_count_current := $weekly_rpt_config.Displayed.CountOfWeeks.Current }} {{ $weeks_count_historical := $weekly_rpt_config.Displayed.CountOfWeeks.Historical }} {{ $params := (dict "Prpt" $.prptKey "WeeksCountCurrent" $weeks_count_current "WeeksCountHistorical" $weeks_count_historical) }} {{ $prpt := index (where $.data.Dimensions.Participant.Railroad "Key" $.prptKey) 0 }} {{ $weeks_all := $.data.Dimensions.Period.Week }} {{ $weeks_visible := sort (where $weeks_all "Hidden" "ne" true) "Key" "asc" }} {{ $weeks_historical := last $weeks_count_historical $weeks_visible }} {{ $weeks_current := last $weeks_count_current $weeks_visible }} {{ $cars := $.data.Dimensions.CarsOnLine }} {{ $cars_by_owner := $cars.Owner }} {{ $cars_by_owner_subheadings := sort $cars_by_owner.Type "Ord" "asc" }} {{ $cars_by_type := $cars.Car }} {{ $cars_by_type_subheadings := sort $cars_by_type.Type "Ord" "asc" }} {{ $speed := $.data.Dimensions.TrainSpeed }} {{ $speed_by_train_type := $speed.Train }} {{ $speed_by_train_type_subheadings := sort $speed_by_train_type.Type "Ord" "asc" }} {{ $terminals := $.data.Dimensions.TerminalDwell }} {{ $terminals_for_prpt := index $terminals $params.Prpt }} {{ $terminals_by_city := sort $terminals_for_prpt.Terminal "Ord" "asc" }} {{ $prpt_rpts := index $.data.Measures $params.Prpt }}
| Historical Average | Week Ending | ||||||
| 1Q18 | Apr 2018 | {{ range $weeks_current }} | {{ .Day }} | {{ end }}||||
| Revisions | |||||||
| {{ $cars.MeasureHeading }} | |||||||
| {{ $cars_by_owner.MeasureHeading }} | |||||||
| {{ $subheading.ShortName }} | 37,649 | 36,060 | {{ $subheading_key := $subheading.Key }} {{ $measure_key := printf "%s%s" $measure_key_prefix $subheading_key }} {{ partial "perf_rpts/weekly-measure-cols" (dict "weeks" $weeks_current "rpts" $prpt_rpts "subKey" $subheading_key "measureKey" $measure_key "keyIndex" $subheading_index "track" "Private" "scratch" $.scratch) }} | ||||
| Total | 160,265 | 155,991 | {{ partial "perf_rpts/weekly-total-cols" (dict "weeks" $weeks_current "prefix" $measure_key_prefix "scratch" $.scratch) }} | ||||
| Pct. Private | 65.3 | 65.9 | {{ partial "perf_rpts/weekly-pct-cols" (dict "weeks" $weeks_current "prefix" $measure_key_prefix "tracked" "Private" "scratch" $.scratch) }} | ||||
| {{ $cars_by_type.MeasureHeading }} | |||||||
| {{ $subheading.ShortName }} | 11,024 | 10,531 | {{ $subheading_key := $subheading.Key }} {{ $measure_key := printf "%s%s" $measure_key_prefix $subheading_key }} {{ partial "perf_rpts/weekly-measure-cols" (dict "weeks" $weeks_current "rpts" $prpt_rpts "subKey" $subheading_key "measureKey" $measure_key "keyIndex" $subheading_index "track" nil "scratch" $.scratch) }} | ||||
| Total | 160,265 | 155,991 | 155,765 | 155,299 | 156,103 | 155,577 | |
| Train Speed (Miles per Hour) | |||||||
| Intermodal | - | 25.8 | 25.7 | 27.1 | 25.6 | 25.1 | |
| Manifest | - | 22.3 | 22.4 | 22.5 | 22.5 | 21.8 | |
| Multilevel | - | - | - | - | - | - | |
| Coal Unit | - | 23.2 | 23.9 | 23.3 | 22.4 | 22.3 | |
| Grain Unit | - | 21.0 | 22.0 | 21.2 | 20.8 | 19.7 | |
| All Trains | - | 23.2 | 23.2 | 23.7 | 23.2 | 22.6 | |
| Terminal Dwell (Hours) | |||||||
| Harrison Yard (Memphis), TN | - | 22.1 | 20.3 | 22.7 | 22.7 | 23.9 | |
| Fond du Lac Yard, WI | - | 31.1 | 28.0 | 34.1 | 30.0 | 27.8 | |
| Jackson Yard, MS | - | 15.0 | 13.9 | 13.0 | 16.5 | 16.6 | |
| MacMillan Yard (Toronto), ON | - | 22.4 | 19.2 | 23.6 | 27.0 | 21.8 | |
| Markham Yard, IL | - | 13.0 | 13.3 | 13.5 | 13.3 | 9.4 | |
| Symington Yard (Winnipeg), MB | - | 28.1 | 32.2 | 27.3 | 24.3 | 27.6 | |
| Tascherau Yard (Montreal), QC | - | 13.2 | 12.3 | 13.0 | 13.5 | 13.7 | |
| Thornton Yard (Vancouver), BC | - | 10.5 | 11.5 | 11.1 | 11.1 | 9.9 | |
| Walker Yard (Edmonton), AB | - | 23.0 | 22.1 | 22.8 | 21.7 | 18.8 | |
| Entire Railroad | - | 17.7 | 17.5 | 18.1 | 17.4 | 16.6 | |


Pantnagar Chapter of SPIC MACAY was established on 15 February 1984 with the strenuous and unremitting efforts of the chapter members, staff counselor, and university administration. This subordinate of Kumaon chapter of SPIC MACAY has evolved through the years. With the convergence of dozens of Indian classical dance and music forms and the richest cultural heritage of the world, the Pantnagar Chapter of SPIC MACAY has had the golden chance to behold and experience some of the greatest living exponents of traditional Indian art forms. We endeavor to propagate the knowledge we have gained through the years of the depth and beauty of the Indian classical heritage with its attendant legends, rituals, mythologies, and philosophies to young students and professionals. The SPIC MACAY, Pantnagar Chapter organizes various artist nights every year, and a national cultural and literary fest, titled as "Dharohar". SPIC MACAY, Pantnagar Chapter has, up till now, successfully organised various artist nights, featuring eminent Indian artists in the field of Indian classical music and culture, such as "Shri Kheta Khan and Troupe" (November, 2013), 'TRIDHARA' , the Odissi dance group (April 2013), Pt. Mukesh Sharma accompanied on 'Tabla' by Shri Sukhmoy Banerjee (March 2012), Pt. Prateek Chaudhuri along with Ustad Rashid Zafar Khan on Tabla (January 2012), Pt. Hari Prasad Chaurasia, Pt. Vijay Ghate and Pt. Rajesh (March 2012) and many others. For more details, visit www.spicmacaypantnagar.com


Warning
Agree
Disagree
Paranoid
input
Groups
account_circle
FunPeople
account_circle
Family
Message:
Send


Worka
github
Individual tests
Precision Level
With preloaded web worker
With web worker
With web worker, without cache
Without web worker
With remote server
Results
Statistics
Run full test suite
It took
ms to run
times.
Total Computation Time
ms
Setup Time
ms
Mean Computation Time
ms
Precision
Duration (ms)
PI Estimation


Find tools that can provide the following:
For (1) there is FFMPEG. For (2) nothing. For (3) there are some tools but none is exatcly what is needed.
For the experiments I used initially bigbuckbunny movie:
[http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4]
See details for decoding and encoding video with ffmpeg.


So, What is a Neural Network?
It’s a set of algorithms designed to recognise patterns for building a computer program that learns from data. It is based very loosely on how we think the human brain works. First, a collection of software “neurons” are created and connected together, allowing them to send messages to each other. Next, the network is asked to solve a problem, which it attempts to do over and over, each time strengthening the connections that lead to success and diminishing those that lead to failure.
Where Are They Used?
Today, neural networks are used for solving many business problems such as sales forecasting, customer research etc. They have turned into a very popular and useful tool in solving many problems such as text Classification and Categorization, Regression, pattern recognition, Named Entity Recognition (NER), Part-of-Speech Tagging, Language Generation and Multi-document Summarization, etc.
What are Parameters & Hyperparameters
A model parameter is a configuration variable that is internal to the model and whose value can be estimated from data. Parameters are key to machine learning algorithms. Hyperparameters are adjustable parameters that must be tuned in order to obtain a model with optimal performance. They are the part of the model that is learned from historical training data and are often not set manually by the practitioner.
So, how can we improve the accuracy of the model? Is there any way to speed up the training process? These are critical questions to ask, whether you’re in a hackathon setting or working on a client project. And these aspects become even more prominent when you’ve built a deep neural network. Features like hyperparameter tuning, regularization, batch normalization, etc. helps in fine tuning your model.
- {{i}}
- {{i}} {%endfor%}
- {{i}} {%endfor%}
{%endfor%} For more information on this we recommend going through Part 2 of the deeplearning.ai course (Deep Learning Specialization) taught by the great Andrew Ng. We saw the basics of neural networks and how to implement them in part 1, and I recommend going through that if you need a quick refresher.
Methods Used to Tune Hyperparameters {%for i in ["Manual Search","Grid Search", "Random Search","Bayesian Optimization"]%}
What Are We Using?
We wrote this neural network code completely from scratch. We were inspired by our course instructor Andrew Ng and felt the urge to create a platform where everybody could visualise the effects of tuning different parameters, building your own neural network, uploading different datasets and so on.
Credits
This project was created by Darlene Nazareth and Sherwyn D'souza under the guidance of the the greatest math-e-magician and ML/DL master Mr. Andrew NG. Link to his course in Coursera Click here.


Google assistant with a compact interface begins to reach more phones
by AbdullahGoogle assistant with a compact interface begins to reach more smartphones
5 (100%) 2 votes
With the launch of the new Google Pixel 4, the company also unveiled a revamped Google Assistant. In addition to introducing a new range of features, it also came with a new, more compact interface that promises a lighter, less intrusive user experience.
As usual, these new implementations have remained exclusive to Pixel 4, but have already started to come up to some Google Pixel 3 models as well. This has become the usual “roadmap” for new features implemented by Google, reaching in a second phase their own older smartphones, and then being released to the remaining Android smartphones.
What’s new in the new Google Assistant interface
Visually, the new Google Assistant brings changes that are unlikely to go unnoticed. The new interface will no longer occupy your entire screen like how it currently does.
 But most of the time this is not necessary as the answer only needs one line.
This new, more “compact” version corrects this by using only the screen space that is strictly necessary to deliver a certain response. For example, simple answers will only take up 1/3 of the screen, which is a big difference compared to the full screen.
Also, the panel that appears when you activate Google Assistant is more compact, taking up a little less space on your smartphone screen. Also, you’ll be able to see your Google profile photo in the upper left corner.
When you can use the new Google Assistant
Unfortunately, we do not have any information about the possible arrival date of this new interface to all Android smartphones. For now, it has only been confirmed that testing is already taking place on Google Pixel 3 and Pixel 3 XL. And is available to a limited number of users.
Still, once released for all Pixel 3 smartphones, it would be expected that it won’t be much longer before the update is released globally.


Attack Surface Meter Summary
Source:
{{ directory }}
Functions Count:
{{ nodes_count }}
Calls Count:
{{ edges_count }}
Entry Points Count:
{{ entry_points_count }}
Exit Points Count:
{{ exit_points_count }}
Dangerous Functions Count:
{{ dangerous_functions_count }}


public class Word extends java.lang.Object implements java.lang.Comparable<Word>
Each Word object has a word
String, and its associated weight
, and it's constructed
with these two things.
Word[]
to pass
to the WordCram (rather than using something like WordCram.fromWebPage(String)
),
you can specify how a Word should be rendered: set a Word's font, size, etc:
Word w = new Word("texty", 20); w.setFont(createFont("myFontName", 1)); w.setAngle(radians(45));Any values set on a Word will override the corresponding component (
WordColorer
,
WordAngler
, etc) - it won't even be called for that word.
Word strawberry = new Word("strawberry", 10); strawberry.setProperty("isFruit", true); Word pea = new Word("pea", 10); pea.setProperty("isFruit", false); new WordCram(this) .fromWords(new Word[] { strawberry, pea }) .withColorer(new WordColorer() { public int colorFor(Word w) { if (w.getProperty("isFruit") == true) { return color(255, 0, 0); } else { return color(0, 200, 0); } } });
| Constructor and Description |
|---|
Word(java.lang.String word,
float weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Word w)
Compares Words based on weight only.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get a property value from this Word, for a WordColorer, a WordPlacer, etc.
|
float |
getRenderedAngle()
Get the angle the Word was rendered at: either the value passed to setAngle(), or the value returned from the WordAngler.
|
int |
getRenderedColor()
Get the color the Word was rendered in: either the value passed to setColor(), or the value returned from the WordColorer.
|
processing.core.PFont |
getRenderedFont()
Get the font the Word was rendered in: either the value passed to setFont(), or the value returned from the WordFonter.
|
float |
getRenderedHeight()
Gets the height, in pixels, of the java.awt.Shape that will be rendered for
this Word, based on the Font, Angle, and Size for this Word.
|
processing.core.PVector |
getRenderedPlace()
Get the final place the Word was rendered at, or null if it couldn't be placed.
|
float |
getRenderedSize()
Get the size the Word was rendered at: either the value passed to setSize(), or the value returned from the WordSizer.
|
float |
getRenderedWidth()
Gets the width, in pixels, of the java.awt.Shape that will be rendered for
this Word, based on the Font, Angle, and Size for this Word.
|
processing.core.PVector |
getTargetPlace()
Get the place the Word was supposed to be rendered at: either the value passed to setPlace(),
or the value returned from the WordPlacer.
|
Word |
setAngle(float angle)
Set the angle this Word should be rendered at - WordCram won't even call the WordAngler.
|
Word |
setColor(int color)
Set the color this Word should be rendered in - WordCram won't call the WordColorer.
|
Word |
setFont(processing.core.PFont font)
Set the font this Word should be rendered in - WordCram won't call the WordFonter.
|
Word |
setPlace(float x,
float y)
Set the place this Word should be rendered at - WordCram won't call the WordPlacer.
|
Word |
setPlace(processing.core.PVector place)
Set the place this Word should be rendered at - WordCram won't call the WordPlacer.
|
Word |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Set a property on this Word, to be used by a WordColorer, a WordPlacer, etc, down the line.
|
Word |
setSize(float size)
Set the size this Word should be rendered at - WordCram won't even call the WordSizer.
|
java.lang.String |
toString()
Displays the word, and its weight (in parentheses).
|
boolean |
wasPlaced()
Indicates whether the Word was placed successfully.
|
boolean |
wasSkipped()
Indicates whether the Word was skipped.
|
java.lang.Integer |
wasSkippedBecause()
Tells you why this Word was skipped.
|
public Word setSize(float size)
public Word setAngle(float angle)
public Word setFont(processing.core.PFont font)
public Word setColor(int color)
public Word setPlace(processing.core.PVector place)
public Word setPlace(float x, float y)
public float getRenderedSize()
public float getRenderedAngle()
public processing.core.PFont getRenderedFont()
public int getRenderedColor()
public processing.core.PVector getTargetPlace()
public processing.core.PVector getRenderedPlace()
public boolean wasPlaced()
wasSkipped()
and wasSkippedBecause()
).public boolean wasSkipped()
wasSkippedBecause()
public java.lang.Integer wasSkippedBecause()
WordCram.WAS_OVER_MAX_NUMBER_OF_WORDS
, WordCram.SHAPE_WAS_TOO_SMALL
,
or WordCram.NO_SPACE
.
If the word was successfully placed, or WordCram hasn't
gotten to this word yet, this will return null.public java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- null
, if it's not there.public Word setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
propertyName
- propertyValue
- public java.lang.String toString()
new Word("hello", 1.3).toString()
will return "hello (0.3)".toString
in class java.lang.Object
public int compareTo(Word w)
compareTo
in interface java.lang.Comparable<Word>
public float getRenderedWidth()
getRenderedHeight()
public float getRenderedHeight()
getRenderedWidth()


{% extends "modeleditor.html" %} {% block title%}Convert Concentration Model to Population{% endblock %} {% block modeleditorcontent %}


{% include "header.html" %}
Change password
{% include "footer.html" %} {% include "common-script.html" %}


The igx-select allows you to select a single item from a drop-down list.
You can read more about how to configure igx-select in the README or the official documentation.


| Home | Trees | Indices | Help |
|
|---|
|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | Backend
Abstract class defining the behavior of all Chart GUI backends.
Each backend is a 'daemon' that runs in a new thread and handles all GUI requests from any Chart instance. A backend service must behave as a singleton - only one service of a given kind may exist at a given point in time. Chart clients will request GUI operations on specific figures, the Backend therefore must keep track of all windows opened, as well as the figure-to-window mapping.
| Nested Classes | |
|
__metaclass__ Metaclass for defining Abstract Base Classes (ABCs). |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
| Static Methods | |||
| Backend |
|
||
| bool |
|
| Class Variables | |
__abstractmethods__ =
|
| Properties | |
| bool |
running True if the service had been started and is currently running |
| bool |
started True if the service had been started |
|
Inherited from Inherited from |
| Method Details |
This constructor should always be called with keyword arguments. Arguments are: *group* should be None; reserved for future extension when a ThreadGroup class is implemented. *target* is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called. *name* is the thread name. By default, a unique name is constructed of the form "Thread-N" where N is a small decimal number. *args* is the argument tuple for the target invocation. Defaults to (). *kwargs* is a dictionary of keyword arguments for the target invocation. Defaults to {}. If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.
|
Fired when a client is being deleted. Will stop the service if no active clients are remaining. |
Destroy existing figure. If |
Backend factory, ensures one instance per subclass. |
|
Main service method, automatically called by
|
Start the Backend service. This method can be called only once.
|
Stop the Backend service. The Backend object can be safely disposed afterwards. |
| Class Variable Details |
__abstractmethods__
|
| Property Details |
runningTrue if the service had been started and is currently running
|
startedTrue if the service had been started
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Jul 4 20:19:06 2017 | http://epydoc.sourceforge.net |