---
layout: page
title: About
sidebar_link: true
sidebar_sort_order: 100
---
Based in Toronto, Canada I'm currently working in the field of Data and Decision Sciences.
I hold a BMath in Statistics and a MSc in Computer Science. I like to make the field of data
science more accessible and understood by those around me.
This site hopes serve as a reference to my future self and the best practices
I've picked up along the way.
Interests include the usual: binging bad TV, drinking coffee, and sitting in cool cafes.
Follow what I'm currently reading here.
Check out my projects on Github or reach out on Linkedin.


If you're looking for a specific release, operating system or architecture, below you will find:
Please select your desired platform from the lists below and download your bundle of choice. Please be aware that the MD5
checksums are provided by our binary hosting platform (Azure Blobstore) to help check for download errors. For security guarantees please verify any downloads via the attached PGP signature files (see OpenPGP Signatures for details).
These are the current and previous stable releases of Swarm.
These are the develop snapshots of Swarm, updated automatically when a new commit is pushed into our GitHub repository.
All the binaries available from this page are signed via our build server PGP keys:
| Build Server | Unique ID | OpenPGP Key | Fingerprint |
|---|---|---|---|
| Linux Builder | Go Ethereum Linux Builder<EMAIL_ADDRESS>| 9BA28146 | FDE5 A1A0 44FA 13D2 F7AD A019 A61A 1356 9BA2 8146 |
| macOS Builder | Go Ethereum macOS Builder<EMAIL_ADDRESS>| 7B9E2481 | 6D1D AF5D 0534 DEA6 1AA7 7AD5 5589 15E1 7B9E 2481 |
| Windows Builder | Go Ethereum Windows Builder<EMAIL_ADDRESS>| D2A67EAC | C4B3 2BB1 F603 4241 A9E6 50A1 9417 309E D2A6 7EAC |
| Developer | Unique ID | OpenPGP Key | Fingerprint |
|---|---|---|---|
| Felix Lange | Felix Lange<EMAIL_ADDRESS>| E058A81C | 6047 0B71 5865 392D E43D 75A3 337E 68FC E058 A81C |
| Jeffrey Wilcke | Jeffrey Wilcke<EMAIL_ADDRESS>| 85BE4B0C | EF8F A45D 7698 A065 F1AB 3D5C A676 6F71 85BE 4B0C |
| Martin Holst Swende | Martin Holst Swende<EMAIL_ADDRESS>| 05A5DDF0 | CA99 ABB5 B36E 24AD 5DA0 FD40 683B 438C 05A5 DDF0 |
| Nick Johnson | Nick Johnson<EMAIL_ADDRESS>| 2F295D12 | DD7A 2E03 0B2F AF1C 3121 6FE6 6D96 4993 2F29 5D12 |
| Péter Szilágyi | Péter Szilágyi<EMAIL_ADDRESS>| 1CCB7DD2 | 4948 43FC E822 1C4C 86AB 5E2F 119A 7638 1CCB 7DD2 |
| Viktor Trón | Viktor Tron<EMAIL_ADDRESS>| 99E23788 | 446D 939E 45C0 DC1E 2A8E 2F62 5219 CDE2 99E2 3788 |
You can import the build server public keys by grabbing the individual keys directly from the keyserver network:
gpg --recv-keys F9585DE6 C2FF8BBF 9BA28146 7B9E2481 D2A67EAC
Similarly you can import all the developer public keys by grabbing them directly from the keyserver network:
gpg --recv-keys E058A81C 85BE4B0C 05A5DDF0 2F295D12 1CCB7DD2 99E23788
From the download listings above you should see a link both to the downloadable archives as well as detached signature files. To verify the authenticity of any downloaded data, grab both files and then run:
gpg --verify geth-linux-amd64-1.5.0-d0c820ac.tar.gz.asc
Note that you must use the name of the signature file, and you should use the one that's appropriate to the download you're verifying.


inspired by RxJS jQuery examples
Source
Example shows how to implemement FRP concepts with Golang Channels


{% extends "base.html" %} {% block title %}not found :({% endblock %} {% block hero %}
Maybe head back home.


Osteopathy and the pelvic floor
Wetting yourself is probably the most embarrassing problem after childbirth and during pregnancy. It's no joke that you cannot run for that bus or do not feel free to laugh, sneeze or cough without the thought that you may leak.
During pregnancy and childbirth the pelvic floor becomes stretched due to the extra weight and delivery of the baby. This frequently results in weakness in the muscles. It may also be scarred due to tearing or an episiotomy given during childbirth.
The pelvic floor works as a muscular sling to carry all the pelvic organs such as the bladder, the uterus and the lower part of the bowel. It surrounds the anus and the urethra giving bladder and bowel control.
One test to see if your pelvic floor function is adequate is to jump up and down and cough at the same time, with your legs open without leaking urine.
Problems with your pelvic floor muscles are not uncommon during pregnancy and after childbirth. There are 3 common symptoms women experience:
- Urinary stress incontinence, leaking urine when coughing, sneezing, running or lifting. This may occur during pregnancy as well as in the post-natal period.
- Dull pain or dragging feeling in the pelvis, low back or under the buttocks, there may or may not be aching down the legs. This may be due to scarring or muscular weakness, it usually occurs in the evening when mothers are tired.
- Pain or lack of pleasure during sexual intercourse, pain may be due to internal scarring and lack of pleasure may be due to the weakness in the vaginal walls.
If you are experiencing any of these symptoms during pregnancy or three months after childbirth, it is recommended that you seek help.


{% extends 'base.html' %} {% block title %}Documents{% endblock %} {% block content %}
This is only a selection of documents to make them easier to access.
For ship_data, ace_data and photos see Accessing data instructions or come and visit us in the office.
Brief instructions (see Accessing data for detailed instructions):


Mileage v. 3.1.1
#65
No More Than 1 Service Interval at a Time???
```What steps will reproduce the problem?1. Open Mileage Tracker2. Negotiate to the "Service Intervals" screen3. "Add Service Interval"Expected behavior:I expect to be able to enter all of my upcoming services, like the next oil change AND the next State Inspection.Actual behavior:Hello. I just installed your app, and it is very nice. To begin, I entered the information for my next oil change. No problem. Then I added a second service... my yearly State Inspection. But, when I entered the second one, it erased the first one. Any ideas???Mileage version: Mileage 3.1.1Android version: 4.1.2Device: Droid Razar MPlease provide any additional information below.```Original issue reported on code.google.com by<EMAIL_ADDRESS>on 15 May 2014 at 10:56
2 Quality Assessment of the Bug Report
Legend for the Quality Annotations
Exact Match: EM
Ambiguous Step: AS
Vocabulary Mismatch: VM
Incorrect Input Value: IV
Missing Steps: MS
#
Identified Step to Reproduce (S2R)
Quality Annotations for the S2R
1
Open Mileage Tracker
EM This S2R matches the following app interaction:
Open the application
2
Negotiate "Service Intervals" screen
EM This S2R matches the following app interaction:
Tap the "title (Service intervals)" text view
MS There are app interactions that are missing in the bug report and should be executed before this S2R:
Tap the "price (Price per Gallons)" text field
Type a valid input (e.g., 1) on the "price (Price per Gallons)" text field
Tap the "volume (Gallons)" text field
Type a valid input (e.g., 2) on the "volume (Gallons)" text field
Tap the "odometer (Odometer)" text field
Type a valid input (e.g., 3) on the "odometer (Odometer)" text field
Tap the "partial (Tank was not filled to the top)" check box
Tap the "Comment" text field
Type a valid input (e.g., 4) on the "Comment" text field
Tap the "save btn (Save Fillup)" button
Press the menu button
3
Add Service Interval
EM This S2R matches the following app interaction:
Tap the "title (Service intervals)" text view
MS There are app interactions that are missing in the bug report and should be executed before this S2R:
Press the menu button
4
Enter second one
VM The term "second one" does not match a GUI component from the app.


| |
|
RPScore |
| | |
Estimate | CI | p |
| (Intercept) | |
1.92 | 1.27 – 2.91 | .002 |
| Age | |
1.14 | 1.04 – 1.24 | .004 |
| Education | |
1.15 | 1.03 – 1.27 | .010 |
| Gender | |
1.16 | 1.00 – 1.34 | .056 |
| House.s.tipology | |
1.21 | 1.05 – 1.39 | .009 |
| Length.of.time.at.current.residence | |
1.02 | 0.95 – 1.10 | .634 |
| Ground.floor | |
1.03 | 0.87 – 1.23 | .697 |
| River.proximity | |
1.21 | 1.13 – 1.29 | <.001 |
| Home.ownership. | |
0.85 | 0.70 – 1.04 | .111 |
| Previous.flood.experience. | |
1.18 | 1.02 – 1.38 | .027 |
| Observations | | 705 |
| Pseudo-R2 |
| R2CS = .115 R2N = .123 D = .120 |
| AIC | | 1895.198 |
| Family | | gaussian (identity) |


slave Class
Handle slave frontend.
Item Index
Methods
compileRequest
(
-
ireq
Compile the complete request before using it
Parameters:
-
ireq
ObjectThe json request
createWindow
()
Create the slave frontend
delCSV
()
Delete all the CSV of the slave
displayCSV
(
-
event
-
val
Display the status of the CSV Copying
Parameters:
-
event
EventThe event object
-
val
Boolean0 if still being copied, 1 if copied
displayTaggedStudent
(
-
event
-
std
Display the student that just Tagged
Parameters:
-
event
EventThe event object
-
std
ObjectThe student object
executePile
()
Execute the pile of saved request
foreverConnect
()
Make the slave always try to maintain a connection with the server
getNow
()
String
Get the current time
Returns:
String:
the current time in a ISO string
load
()
Load the slave frontend
onSocketData
(
-
nireq
Handle the incoming data from the outgoing socket
Parameters:
-
nireq
ObjectThe json request
showOnline
(
-
event
-
val
Display the offline statusGroup
Parameters:
-
event
EventThe event statusGroup
-
val
IntergerIf 0 then display has disconnected, if 1 remove the disconnected panel
tag
(
-
stag
-
ntime
Tag an user
Parameters:
-
stag
Stringthe user's tag.
-
ntime
Stringthe current time.


When Giannis Antetokounmpo joined the NBA in 2013, everyone can’t help but focus on his name. The Greece national has a unique name, which is pronounced as yahn-is anh-teh-toe-kuhn-po, and the name earned him the nickname “The Greek Alphabet”.
In his rookie year, the Milwaukee Bucks’ small forward was averaging 6.8 points, 4.4 rebounds and 1.9 assists per game. But it has been a different story since then. In the current 2017-18 season, Antetokounmpo’s performance had sky-rocketed to 29.5 points, 10.4 rebounds and 4.6 assists per game.
The 6' 11" and 222-pounder dominates the games with his all-rounded skills (except his three-point shooting). He is the second top scorer in the league and one of the fiercest most valuable player (MVP) award contenders for this season at the age of 23.
Antetokounmpo's rise tells the story of a successful non-US player in the top basketball league in the world, but he is not the first.
NBA has become an international league with over 100 non-US players playing top level basketball every night on the court. But how good the non-US players are? Yearly numbers show that the non-US players are getting more significant in the NBA.
This article uses three statistical categories - points, rebounds and assists - to measure the players’ performance as they are the fundamental values to determine the efficiency of the players.
Players who have dual citizenship, such as Boston Celtics’ guard Kyrie Irving who was part of the US national basketball team, were not categorised as a non-US player in this article.


{% extends "base_bulk_schedules_intermediate.html" %} {% block title %} Set main schedule for multiple facilities {{ block.super }} {% endblock %} {% block breadcrumbs %}
Set this as the main schedule for all of these facilities?


- 1 Local host server supports php5.6+
- 2 Local mysql database
- 3 Composer installed globally local
- 1 Config database
- 2 In the root directory of project, run
composer install
(Ubuntu) or php composer.phar install
(Windows)
- 3 Run
php artisan serve --port=8080
to make server to run at localhost:8080


Taylor Gilbertson
Pick a topic to read about:
Travel
First Page
See More
Finance
Second Page
See More
Amazon FBA Journey
Third Page
See More


Welcome to UTPlay.
YouTube Playlist with class - This simple script will allow you to integrate any YouTube Public Playlist into a CSS3 and Javascript audio player. YouTube Playlist will allow you to get only the sound out of your videos by hiding the block of the video frame. If your having issues playing your playlist, Please make sure your playlist is not private.
Submit a bug | Read the Official MD
Install
- Download files from
src
folder. - Include files inside
src
on your page.<link rel="stylesheet" type="text/css" href="src/utplay.min.css">
<script src="src/utplay.min.js"></script>
How to use it
Simple, After adding the script dependencies use the html markup to add your player in place.
Now this is the only part that gets a bit tricky, You will need to find your YouTube Playlist ID and place it within the HTML markup of Iframe.
For my example, I am going to take a playlist I've created for this project https://www.youtube.com/playlist?list=PLr7KBbNMX5CTXyY1_GKjHAzrIPJRs6Cpo
so my ID for this playlist will be PLr7KBbNMX5CTXyY1_GKjHAzrIPJRs6Cpo
.
Yes so pretty much everything after playlist?list=This_Is_Your_Id
.
After we obtaining our YouTube Playlist ID, We go ahead and plug it inside our iframe markup, like this;
Authors and Contributors
In 2016, Nick Rodriguez (@misterzik), Insanen Team (@insanen), and DevOps Team (@datatransferpw).


Preparation time
30 mins to 1 hour
Cooking time
1 to 2 hours
Serves
Serves 4-6
Dietary
Having a Caribbean-themed dinner? Try this twist on trifle with mango jam, coconut custard, rum syrup, pineapple and kiwi fruit.
Equipment and preparation: you will need a hand-held electric whisk and a piping bag with a plain nozzle. Plus a cocktail umbrella, curly straw and swizzle stick for decoration.
For the mango jam, place the cubed mango pieces in a pan with the sugar and lemon juice. Gradually bring to the boil to dissolve the sugar. Simmer for about 30 minutes, or until soft and sticky. Remove from the heat and leave to cool.
For the decoration, remove long strips of zest from the lime using a vegetable peeler and blanch in a pan of boiling water for a few minutes. Place in cold water to keep the colour. When cool, remove and dry thoroughly. Cut into spiky shaped leaves with scissors for decoration on top of the trifle. Set aside.
For the coconut custard, put the coconut cream, milk and vanilla extract into a saucepan and bring to a simmer.
Beat the egg yolks, sugar and custard powder in a mixing bowl. When the milk is just simmering, add it to the eggs mixture in a slow, steady stream, whisking continuously. Pour the mixture back into the saucepan and cook over a very low heat, stirring constantly, until it thickens. Remove from the heat and cool the custard.
For the sponge fingers, preheat the oven to 200C/180(fan)/Gas 6. Line two baking trays with baking parchment.
Beat the egg whites in a bowl until soft peaks form when the whisk is removed from the bowl. Add two tablespoons of the sugar and beat until stiff and glossy.
In a separate bowl, beat the egg yolks and remaining sugar until pale and thick. Fold half of the egg whites into the yolk mixture.
Fold in the sieved flour and baking powder. Add the remaining whites. Place in a piping bag with a plain nozzle and pipe fingers of about 10cm/4in long onto two lined baking trays. Cook for eight minutes until lightly golden brown, then transfer to a wire rack to cool.
For the coconut rum syrup, place the pineapple in a pan with the sugar, pineapple extract and a splash of water. Simmer for about 10-15 minutes. Strain and cool. Add coconut-flavoured rum to taste.
For the barquillos (wafer rolls), reduce the oven temperature to 190C/170(fan)/Gas 5. Line two baking trays with baking parchment.
Beat the butter, sugar and vanilla in a mixing bowl with an electric beater until smooth. Add the egg white and blend together. Fold in the flour until just incorporated. Drop teaspoonfuls of the mixture onto the baking trays and spread with a teaspoon to form circles of about 8cm/3in in diameter.
Bake in the oven until just brown at the edges - about five minutes. Remove from the oven and carefully roll up into thin cigar shapes immediately. Be careful, the biscuits will be very hot. Any biscuits that firm up too much can be returned to the oven for one minute to soften.
To assemble the trifle, sandwich the sponge fingers together with the mango jam and cut into 5cm/2in chunks. Place half of the slices of pineapple with half of the kiwi fruit in the middle around the inside edge of a trifle bowl. Place a sponge layer on top and lightly drizzle with the coconut rum syrup.
Place another layer of pineapple and kiwi over the sponges, reserving half of the remaining fruit for the next layer. Cover with about 1cm/½in of the cool custard.
Repeat the layering once more and add a deeper layer of custard.
To finish the decoration, carefully spread a layer of cream over the custard. Whip the remaining cream until thick.
Put the whipped cream into a piping bag. Pipe the shape of a pineapple on top of the trifle and use the reserved lime ‘leaves’ for the spiky top of the fruit.
Using a cocktail stick, dot tiny drops of light brown food colouring on the point of each rosette of the pineapple. Pipe rosettes of cream around the edge of the bowl. Decorate with a cocktail umbrella, a swizzle stick with a maraschino cherry, a curly straw and 2-3 barquillo wafers.


|
cds
1.2.0
|
Hazard Pointer guard. More...
#include <cds/gc/hp.h>
Public Member Functions | |
| template<typename T > | |
| T | protect (std::atomic< T > const &toGuard) |
Protects a pointer of type atomic<T*> | |
| template<typename T , class Func > | |
| T | protect (std::atomic< T > const &toGuard, Func f) |
Protects a converted pointer of type atomic<T*> | |
| template<typename T > | |
| T * | assign (T *p) |
Store p to the guard. | |
| template<typename T , int BITMASK> | |
| T * | assign (cds::details::marked_ptr< T, BITMASK > p) |
Store marked pointer p to the guard. | |
| void | clear () |
| Clear value of the guard. | |
| template<typename T > | |
| T * | get () const |
| Get the value currently protected. | |
| Public Member Functions inherited from cds::gc::hzp::AutoHPGuard | |
| AutoHPGuard (ThreadGC &gc) | |
Allocates HP guard from gc . | |
| template<typename T > | |
| AutoHPGuard (ThreadGC &gc, T *p) | |
Allocates HP guard from gc and protects the pointer p of type T . | |
| ~AutoHPGuard () | |
| Frees HP guard. The pointer guarded may be deleted after this. | |
| ThreadGC & | getGC () const |
| Returns thread GC. | |
| template<typename T > | |
| T * | operator= (T *p) |
Protects the pointer p against reclamation (guards the pointer). |
Additional Inherited Members | |
| Public Types inherited from cds::gc::hzp::AutoHPGuard | |
|
typedef details::HPGuard::hazard_ptr | hazard_ptr |
| Hazard pointer type. |
Hazard Pointer guard.
This class is a wrapper for hzp::AutoHPGuard.
|
inline |
Store p
to the guard.
The function equals to a simple assignment the value p
to guard, no loop is performed. Can be used for a pointer that cannot be changed concurrently
|
inline |
Store marked pointer p
to the guard.
The function equals to a simple assignment of p.ptr()
, no loop is performed. Can be used for a marked pointer that cannot be changed concurrently.
|
inline |
Protects a pointer of type atomic<T*>
Return the value of toGuard
The function tries to load toGuard
and to store it to the HP slot repeatedly until the guard's value equals toGuard
|
inline |
Protects a converted pointer of type atomic<T*>
Return the value of toGuard
The function tries to load toGuard
and to store result of f
functor to the HP slot repeatedly until the guard's value equals toGuard
.
The function is useful for intrusive containers when toGuard
is a node pointer that should be converted to a pointer to the value type before protecting. The parameter f
of type Func is a functor that makes this conversion:
Really, the result of f( toGuard.load() )
is assigned to the hazard pointer.


| SchemaSpy Analysis of sem5.dboSymantec Endpoint Protection Manager Database Schema | Generated by SchemaSpy |
| Generated by SchemaSpy on Wed May 30 12:48 PDT 2018 | |
| Database Type: Microsoft SQL Server - 13.00.4001 |
|
XML Representation Insertion Order Deletion Order (for database loading/purging scripts) |
| Table | Children | Parents | Columns | Comments |
|---|---|---|---|---|
| ACTUALACTION | 2 | Lists and defines the meanings of the antivirus remediation action integers. The action integers represent the actions that the antivirus engine can take when dealing with a threat. | ||
| ADMIN_GROUP_REFRESH_INFO | 3 | Maintains records of the last time ADMIN_GROUPS refreshed the admin-to-groups mapping data. | ||
| ADMIN_GROUPS | 3 | Maintains a limited admin-to-groups map, which specifies whether the limited administrator usr has full or read-only rights to the groups. | ||
| ADMINUSER | 6 | A list of reporting administrators. | ||
| AGENT_BEHAVIOR_LOG_1 | 45 | Keeps client activities that occur in agents. | ||
| AGENT_BEHAVIOR_LOG_2 | 45 | Keeps client activities that occur in agents. | ||
| AGENT_DEF_CACHE | 7 | Used to cache the current definition numbers used by agents for reporting. | ||
| AGENT_PACKET_LOG_1 | 35 | Keeps packet traffic that occurs in agents. | ||
| AGENT_PACKET_LOG_2 | 35 | Keeps packet traffic that occur in agents. | ||
| AGENT_SECURITY_LOG_1 | 56 | Keeps security events that occur in agents. | ||
| AGENT_SECURITY_LOG_2 | 56 | Keeps security events that occur in agents. | ||
| AGENT_SYSTEM_LOG_1 | 27 | Keeps system traffic that occur in agents. | ||
| AGENT_SYSTEM_LOG_2 | 27 | Keeps system traffic that occur in agents. | ||
| AGENT_TRAFFIC_LOG_1 | 49 | Keeps network traffic that occur in agents. | ||
| AGENT_TRAFFIC_LOG_2 | 49 | Keeps network traffic that occur in agents. | ||
| AGENTCONFIG | 7 | Not used. | ||
| AGENTSTATUS | 12 | The status of Symantec Endpoint Protection Manager server tasks. | ||
| ALERTFILTER | 25 | The administrator-defined filters for the notification log. | ||
| ALERTMSG | 2 | Lists and defines the meanings of the events possible for the Risk and Proactive Threat Protection (TruScan) log. | ||
| ALERTS | 36 | Keeps the risk and Proactive Threat Protection (TruScan) events. | ||
| ANOMALYDETECTION | 8 | Keeps the antivirus detection events. | ||
| ANOMALYDETECTIONOPERATION | 2 | Lists and defines what a detection can possibly find. | ||
| ANOMALYDETECTIONS | 8 | Keeps the client to detection event mappings. | ||
| ANOMALYDETECTIONTYPE | 2 | Lists and defines the kinds of objects that detections work on. | ||
| ANOMALYREMEDIATION | 8 | Keeps the antivirus remediation events. | ||
| ANOMALYREMEDIATIONOPERATION | 2 | Lists and defines what a remediation can possibly do. | ||
| ANOMALYREMEDIATIONS | 8 | Keeps the client-to-remediation event mappings. | ||
| ANOMALYREMEDIATIONTYPE | 2 | Lists and defines the kinds of objects that remediations work on. | ||
| AUDIT_LOG | 6 | Keeps an audit trail for every action performed by a SEPM user, and when. | ||
| AUDIT_REPORT | 21 | Keeps the administrator-defined filters for the Audit log. | ||
| BASIC_METADATA | 22 | Keeps policy and various server settings. | ||
| BEHAVIOR_REPORT | 30 | Keeps the administrator-defined filters for the Application Control log. | ||
| BINARY_FILE | 17 | Keeps all binary files. | ||
| CIA_PSK_VERSIONS | 2 | Information about the WSS Integration Token. | ||
| CLIENT_GROUPS_CACHE | 11 | The flattened relational cache of the parent-child group hierarchy. | ||
| CLIENT_GROUPS_CACHE_INFO | 4 | Keeps track of when the cache data refreshes. | ||
| CLIENT_GROUPS_CACHE_STAGING | 10 | Temporarily stores the result of the client group tree during flattening. | ||
| COMMAND | 23 | Keeps the Command status for agents. | ||
| COMMAND_REPORT | 19 | Keeps the administrator-defined filters for the Command details log. | ||
| COMPLIANCE_REPORT | 41 | Keeps the administrator-defined filters for the Device Control log, the NTP Attacks log, and all the Compliance logs. | ||
| COMPUTER_APPLICATION | 21 | Keeps all applications used in agents. | ||
| CONNECTION_TEST | 1 | For internal use. Indicates the state of the database connection. | ||
| CONTENT_EVENTS | 19 | Contains all event records when a client content request results in a full content distribution. | ||
| DATA_HANDLER | 7 | Keeps the list of registered log handlers. | ||
| DATE_DIMENSION | 23 | Holds date dimension information. This table has no primary key. | ||
| DUMMY | 0 | Dummy table for internal use. | ||
| ENFORCER_CLIENT_LOG_1 | 30 | Keeps client activities that occur in Enforcers. | ||
| ENFORCER_CLIENT_LOG_2 | 30 | Keeps client activities that occur in Enforcers. | ||
| ENFORCER_SYSTEM_LOG_1 | 18 | Keeps client system activities that occur in Enforcers. | ||
| ENFORCER_SYSTEM_LOG_2 | 18 | Keeps client system activities that occur in Enforcers. | ||
| ENFORCER_TRAFFIC_LOG_1 | 30 | Keeps client traffic activities that occur in Enforcers. | ||
| ENFORCER_TRAFFIC_LOG_2 | 30 | Keeps client traffic activities that occur in Enforcers. | ||
| ENROLMENT_JOB_STATUS | 7 | Holds submitted enrollment job-related statuses for bulk updating device information in batches. Enroll job updates 'Hardware Key', 'Device Id', 'Public Key', 'Device Info' to help enabling communication between ATP, SEPM, SEP (EDR). | ||
| ENUM_MAP | 3 | For internal use only. Supports the automation of internal processes. | ||
| FIREWALL_REPORT | 33 | Keeps the administrator-defined filters for the NTP Traffic and Packet logs. | ||
| GROUP_HI_STATUS | 3 | Specifies if the Host Integrity feature is enabled or not. | ||
| GROUP_LAN_SENSOR | 4 | Maintains the list of groups that have Unmanaged Detectors (LAN Sensor clients). | ||
| GUIPARMS | 6 | Keeps parameters used in the console GUI. | ||
| GUP_LIST | 7 | Keeps the list for Group Update Provider (GUP). | ||
| HISTORY | 6 | Keeps data snapshots used in reporting. | ||
| HISTORYCONFIG | 20 | Keeps scheduled report configuration information | ||
| HOMEPAGECONFIG | 7 | Keeps administrator-specific preferences. | ||
| HPP_ALERTS | 19 | Keeps Proactive Threat Protection (TruScan) event information. | ||
| HPP_APPLICATION | 20 | Keeps applications detected by TruScan. | ||
| HYPERVISOR_PATTERN | 4 | Keeps the information to identify virtual platform vendors. | ||
| HYPERVISOR_VENDOR | 2 | Keeps virtual platform vendors names. | ||
| IDENTITY_MAP | 14 | Keeps the mapping of the object ID and its name. | ||
| INVENTORYCURRENTRISK | 0 | Keeps the client to infected threat events mapping | ||
| INVENTORYCURRENTRISK1 | 13 | Keeps the client to infected threat events mapping | ||
| INVENTORYCURRENTVIRUS | 0 | Keeps the client to infected virus events mapping. | ||
| INVENTORYREPORT | 52 | Keeps the administrator-defined filters for the Computer Status log. | ||
| LAN_DEVICE_DETECTED | 20 | Keeps LAN devices info detected by LAN sensors. | ||
| LAN_DEVICE_EXCLUDED | 19 | Keeps known LAN device info. | ||
| LEGACY_AGENT | 18 | Keeps legacy agent information | ||
| LICENSE | 22 | Keeps the license information. | ||
| LICENSE_CHAIN | 11 | Keeps the license chain information. | ||
| LOCAL_METADATA | 13 | Keeps various local settings. | ||
| LOG_CONFIG | 15 | Keeps logs settings for switching log tables. | ||
| NETWORK_SCAN | 0 | Keeps temporary data for network scan. | ||
| NETWORK_SCAN_RESULT | 0 | Keeps temporary result data for network scan. | ||
| NOTIFICATION | 32 | Keeps the notification events. | ||
| NOTIFICATIONALERTS | 13 | Keeps the notification conditions. | ||
| NOTIFICATIONHISTORY | 6 | Keeps the notification history. | ||
| OAUTH_ACCESS_TOKEN | 9 | Maintains the list of tokens. | ||
| OAUTH_CLIENT_DETAILS | 18 | Maintains the list of OAUTH (RESTAPI) client details. | ||
| OAUTH_REFRESH_TOKEN | 7 | Maintains the list of refresh tokens. | ||
| OAUTH_TRUSTED_PARTNER | 3 | Maintains the list of trusted partners. | ||
| PATTERN | 11 | Keeps the content versions that the clients are using. | ||
| PROCESS_STATE | 5 | Tracks whether Symantec Endpoint Protection Manager processes are locked or unlocked. | ||
| PROCESSING_MARKER | 10 | For internal use only. Used for batch processing. | ||
| REPORTS | 18 | Not used. | ||
| SCANREPORT | 30 | Keeps the administrator-defined filters for the Scan log. | ||
| SCANS | 24 | Keeps the antivirus scan events. | ||
| SCFINVENTORY | 8 | Not used. | ||
| SE_GLOBAL | 1 | Keeps system sequence number. | ||
| SEM_AGENT | 102 | Keeps agent information. | ||
| SEM_AGENT_INFECTION_HISTORY | 7 | Holds the infection history for an agent. This table has no primary key. | ||
| SEM_APPLICATION | 26 | Keeps all applications' information. | ||
| SEM_CLIENT | 30 | Keeps clients' information. | ||
| SEM_COMPLIANCE_CRITERIA | 13 | Keeps the host compliance event details. | ||
| SEM_COMPLIANCE_CRITERIA_2 | 13 | Keeps the host compliance event details. | ||
| SEM_COMPUTER | 64 | Keeps computers' information. | ||
| SEM_COMPUTER_NIC | 9 | Information about network interface cards (NICs) that are collected from SEP clients. | ||
| SEM_CONTENT | 7 | Keeps the client-to-content mapping. | ||
| SEM_JOB | 19 | Keeps job name for Command process. | ||
| SEM_OS_INFO | 13 | Maps the operating system text to its version and flavor. | ||
| SEM_REPLICATION_STATE | 5 | Keeps the replication site and server information for USN generation. | ||
| SEM_SVA | 34 | Security Virtual Appliance deprecated for 14.x. | ||
| SEM_SVA_CLIENT | 26 | Security Virtual Appliance deprecated for 14.x. | ||
| SEM_SVA_COMPUTER | 51 | Security Virtual Appliance deprecated for 14.x. | ||
| SERIAL_NUMBERS | 4 | Stores group ID and profile serial numbers. | ||
| SERVER_ADMIN_LOG_1 | 21 | Keeps administrator activities that occur on the server | ||
| SERVER_ADMIN_LOG_2 | 21 | Keeps administrator activities that occur on the server. | ||
| SERVER_CLIENT_LOG_1 | 20 | Keeps client activities that occur on the server. | ||
| SERVER_CLIENT_LOG_2 | 20 | Keeps client activities that occur on the server. | ||
| SERVER_ENFORCER_LOG_1 | 15 | Keeps Enforcer activities that occur on the server. | ||
| SERVER_ENFORCER_LOG_2 | 15 | Keeps Enforcer activities that occur on the server. | ||
| SERVER_POLICY_LOG_1 | 18 | Keeps policy change activities that occur on the server. | ||
| SERVER_POLICY_LOG_2 | 18 | Keeps policy change activities that occur on the server. | ||
| SERVER_SYSTEM_LOG_1 | 19 | Keeps system activities that occur on the server. | ||
| SERVER_SYSTEM_LOG_2 | 19 | Keeps system activities that occur on the server. | ||
| SYSTEM_REPORT | 31 | Keeps the administrator-defined filters for the System logs. | ||
| SYSTEM_STATE | 17 | Keeps administrator and site health status information. | ||
| TASKSTATE | 8 | For internal use only. Indicates whether a given process is still running or is hanging. | ||
| THREATREPORT | 47 | Keeps the administrator-defined filters for the Risk and TruScan logs. | ||
| TIME_OF_DAY | 1 | Holds hours of a day. This table has no primary key. | ||
| UPGRADE_CONTENT_LOOKUP | 5 | Provides any newly introduced contents or if newer version of contents are available. This table has no primary key. | ||
| V_AGENT_BEHAVIOR_LOG | 46 | Query the client activities for agents. | ||
| V_AGENT_PACKET_LOG | 37 | Query the packet traffic events for agents. | ||
| V_AGENT_SECURITY_LOG | 58 | Query the security events for agents. | ||
| V_AGENT_SYSTEM_LOG | 27 | Query the system events for agents. | ||
| V_AGENT_TRAFFIC_LOG | 51 | Query the traffic events for agents. | ||
| V_ALERTS | 37 | Query the risk and TruScan events with human-readable IP address information. | ||
| V_CLIENT_CHANGE_LOG | 13 | Query the client change events. | ||
| V_DOMAINS | 14 | Query the domain information. | ||
| V_ENFORCER_CLIENT_LOG | 30 | Query the client activities for Enforcers. | ||
| V_ENFORCER_SYSTEM_LOG | 18 | Query the system activities for Enforcers. | ||
| V_ENFORCER_TRAFFIC_LOG | 32 | Query the traffic activities for Enforcers. | ||
| V_GROUPS | 14 | Query the groups' information. | ||
| V_IPS | 7 | Query the IPS content component. | ||
| V_LAN_DEVICE_DETECTED | 21 | Query the detected devices with human-readable IP address information. | ||
| V_LAN_DEVICE_EXCLUDED | 23 | Query the known devices with human-readable IP address information. | ||
| V_MR_CLEAN | 5 | Query the the content component for the Mr Clean feature. | ||
| V_NETWORK_SCAN_RESULT | 0 | Query the network scan results with human-readable IP address information. | ||
| V_SECURITY_VIEW | 10 | Query the cross-technology security events. | ||
| V_SEM_COMPUTER | 81 | Query the computer information with human-readable IP address information. | ||
| V_SEM_CONTENT | 7 | Query the content revision information for clients. | ||
| V_SERVER_ADMIN_LOG | 21 | Query the administrator activities for servers. | ||
| V_SERVER_CLIENT_LOG | 21 | Query the client activities for servers. | ||
| V_SERVER_ENFORCER_LOG | 15 | Query the Enforcer activities for servers. | ||
| V_SERVER_POLICY_LOG | 18 | Query the policy change activities for servers. | ||
| V_SERVER_SYSTEM_LOG | 19 | Query the system activities for servers. | ||
| V_SERVERS | 14 | Query the servers' information. | ||
| V_SONAR | 5 | Query the SONAR content component. | ||
| V_VIRUS | 22 | Query the virus information. | ||
| VERSION | 4 | Keeps the schema version information. | ||
| VIRUS | 23 | Keeps the list of threats found in the network. | ||
| VIRUSCATEGORY | 8 | Lists and defines all possible kinds of threats. | ||
| 158 Tables | 2,952 | |||
| 0 Views | 0 |


My Portfolio
This is my portfolio.
Here is a picture of me!
Click here to see content created by server code.
Click here to get a random message:
Hello! My name is Sterly Deracy. I was born in Miami, Florida and I am Haitian. My entire family came from Haiti so I grew up learning Creole. I am not entirely fluent in it because I didn't really speak the language too much as as a kid, but I am able to translate most things that are said to me. Since the pandemic, I have been making an earnest effort to improve my conversational skills by praciticing it with my mom and other family members.
I think what definitely makes me me is my love of video games and anime. I grew up playing a lot of games and watching a lot of anime, so these things are naturally what I think of when I want to relax. I have come to love many other things, such as coding and playing tennis. I think generally what I like are activities that require me to think but also rewards creativity. I am currently a Computer Science major in my 2nd year at the College of New Jersey. Although I was born in Florida, I have lived in New Jersey for most of my life, but I have traveled to both Haiti and Florida more than once.
Projects
These are the list of projects that I've worked on:
- Bookfinder App
- This app is my current research project. We are currently working on a mobile application help students find books in the college library. I've worked on both the front-end and back-end of this project. I spent a lot of time working on the user interface because I personally enjoy working on the front-end but I have recently been devising a way to optimize the algorithm used to search for the book in the database. It's not an understatement to say this has been one of the larger sources of enjoyment of my college experience. Maybe SPS will be a contender!
- Montclair Excel Script
- I know a guy who knows a guy who knows a guy who knows a guy at Montclair...*ahem*. All jokes aside, one of my friends from highschool is currently doing research at Montclair and he was complaining about he'd have to go through 400+ rock samples and manually enter 20+ columns of data. This was over the break and since I love helping others, especially my friends, I offered to create a python script that would do this process for him!
- ACT Peace Forum
- A teacher from the Math and Science department reached out to the CS department asking to have a website built. At the time I was looking for ways to get more experience with website design, so I took up the project and helped Dr. Wang create a simple website that would allow him to post blogs related to the coronavirus.
- Text Summarizer
- This one was done during a hackathon. I was a freshman at the time, and I worked with a sophomore and another freshman to create a simple Android app that determined the accuracy of one's summary compared to another source of text. It was a fun experience and I worked mainly on the front-end part of the app whereas my partners worked on the algorithm needed to grade the summarizer. Learning how to scrape websites was super fun! (No it wasn't)
Links
Github
I love photographing things that remind me of the places I've been. For example, the leftmost image is me pointing to a bear sign because during this trip in West Virginia to the Cranberry Glades, I was concerned with how we were the only people in the park. My friend tried to assure me nothing was wrong until I saw red marking on the snow. Obviously bears hibernate but neither of us know where the red marks came from. Could've been blood, could've been some juice, but as far as I know we were the only people out there. The image to the right of it is me with one of my good friends, and that was my first time being on a cruise ship. Fun story behind that, my friend and his father were given some promo where they could bring a 3rd person for a heavily discounted price, so I got to go on my first cruise at an expense that was much much lower than it usually is. I loved it! During that time, we went to the Kennedy Space center where I got to see the NASA Vehicle Assembly Building.
I don't know how this goes for hidden talents, but I do have some photo editing skills. I've started keeping a blog of it because I currently have a class where I submit my blogs as an assignment. Here's the link.
I picked up video editing as a result of web design. There were numerous times where I just needed to edit an image because it didn't look quite right, so it made life easier when I could edit the images myself. I'm not some photoshop wiz, but hopefully by the end of this class I'm currently taking, maybe I will be!


Are you currently assisting evacuees in an evacuation?
To search for an evacuee within the ERA Tool or start a new evacuee registration, please sign in to the task number.
You are signed in to active task #{{ profile?.taskNumber }}
Latest Training Materials
Some text here.
Latest ERA Updates
Some text here.
Tips for Emergency Responders
Some text here.


{% if view.first_field_with_errors|default:False %}
The form field {{ view.first_field_with_errors }}
has errors,
but its error message is not being displayed, possibly because
you did not include the field in the page.
There are 2 ways to fix this:
formfield
tag, e.g.
{% templatetag openblock %}
formfield player.{{ view.first_field_with_errors }}
{% templatetag closeblock %}
formfield
but are instead
writing the raw HTML for the form input,
remember to include
{% templatetag openvariable %}
form.{{ view.first_field_with_errors }}.errors
{% templatetag closevariable %}
somewhere in your page's HTML.
The following other field(s) have the same issue:
{{ field_with_error }}
While debugging, you can display all errors in the form with
{% templatetag openvariable %}
form.errors
{% templatetag closevariable %}
.


emusroutines module¶
Container for the primary EMUS routines.
-
emusroutines.
calc_obs
(psis, z, f1data, f2data=None)[source]¶ Estimates the value of an observable or ratio of observables.
Parameters: psis : 3D data structure
Data structure containing psi values. See documentation in emus.py for a detailed explanation.
z : 1D array
Array containing the normalization constants
f1data : 2D data structure
Trajectory of observable in the numerator. First dimension corresponds to the umbrella index and the second to the point in the trajectory.
f2data : 2D data structure, optional
Trajectory of observable in the denominator.
Returns: avg : float
The estimate of <f_1>/<f_2>.
-
emusroutines.
emus_iter
(psis, Avals=None, neighbors=None, return_iats=False, iat_method='ipce')[source]¶ Performs one step of the the EMUS iteration.
Parameters: psis : 3D data structure
Data structure containing psi values. See documentation in emus.py for a detailed explanation.
Avals : 2D matrix, optional
Weights in front of \(\psi\) in the overlap matrix.
neighbors : 2D array, optional
List showing which states neighbor which. See neighbors_harmonic in usutils.
return_iats : bool, optional
Whether or not to calculate integrated autocorrelation times of \(\psi_ii^*\) for each window.
iat_method : string, optional
Routine to use for calculating said iats. Accepts ‘ipce’, ‘acor’, and ‘icce’.
Returns: z : 1D array
Normalization constants for each state
F : 2D array
The overlap matrix constructed for the eigenproblem.
iats : 1D array
If return_iats chosen, returns the iats that have been estimated.
-
emusroutines.
make_pmf
(cv_trajs, psis, domain, z, nbins=100, kT=1.0)[source]¶ Calculates the free energy surface for an umbrella sampling run.
Parameters: cv_trajs : 2D data structure
Data structure containing trajectories in the collective variable space. See documentation in emus object for more detail.
psis : 3D data structure
Data structure containing psi values. See documentation in emus object for a detailed explanation.
domain : tuple
Tuple containing the dimensions of the space over which to construct the pmf, e.g. (-180,180) or ((0,1),(-3.14,3.14)) z (1D array or list): Normalization constants for each state
nbins : int or tuple, optional
Number of bins to use. If int, uses that many bins in each dimension. If tuple, e.g. (100,20), uses 100 bins in the first dimension and 20 in the second.
kT : float, optional
Value of kT to scale the PMF by. If not provided, set to 1.0
Returns: pmf : nd array
Returns the potential of mean force as a d dimensional array, where d is the number of collective variables.


S4 classes |
|
|---|---|
Ensembl-to-Entrez gene identifier mappings |
|
Ensembl-to-Entrez gene identifier mappings |
|
Gene-to-symbol mappings |
|
Gene-to-symbol mappings |
|
HGNC-to-Ensembl gene identifier mappings |
|
HGNC-to-Ensembl gene identifier mappings |
|
MGI-to-Ensembl gene identifier mappings |
|
MGI-to-Ensembl gene identifier mappings |
|
Transcript-to-gene identifier mappings |
|
Transcript-to-gene identifier mappings |
|
Genome annotations |
|
Gene synonyms |
|
|
|
Genome versions |
|
|
Make a Gene2Symbol object |
|
|
Make a Tx2Gene object |
Make a Tx2Gene object from transcriptome FASTA |
|
Match Ensembl release to archive URL. |
|
Gene identifier mapping |
|
Convert genes to symbols |
|
Convert sample identifiers to names |
|
Convert transcripts to genes |
|
Map genes |
|
Match human gene orthologs |
|
Counts |
|
Counts |
|
Transcripts per million |
|
Quality control |
|
Calculate quality control metrics |
|
Correlation |
|
Filter cells |
|
Quality control metrics |
|
Subset object to keep only non-zero rows and columns |
|
Import/export |
|
Import sample metadata |
|
Import transcript-to-gene annotations |
|
Metadata |
|
Alpha threshold |
|
Gene names |
|
Return the first and last parts of an object |
|
Humanize an R object |
|
Interesting groups |
|
Log2 fold change threshold |
|
Metadata column names |
|
Microtiter plate well identifiers |
|
Organism |
|
Unite interesting groups into a single column |
|
Sample-level metadata |
|
Make sample data |
|
Make a SummarizedExperiment object |
|
Minimal sample data |
|
|
|
Sample data |
Sample names |
|
Select samples |
|
Cell-level metadata |
|
Cell-to-sample mappings |
|
Make a SingleCellExperiment object |
|
Map cells to samples |
|
Subset per sample |
|
Top cells per sample |
|
Sanitization |
|
Autopad zeros |
|
Collapse to string |
|
Sanitize sample data |
|
Sort and make unique |
|
Strip transcript versions |
|
Convert to a unique character string |
|
Syntactic names |
|
Camel case |
|
Dotted case |
|
Snake case |
|
Upper camel case |
|
Aggregation and normalization |
|
Aggregate rows or columns |
|
Aggregate cells to samples |
|
Combining or merging different Bioconductor data structures |
|
Estimate size factors |
|
Geometric mean |
|
Interconvert log ratio and fold change values |
|
Melt columns into key-value pairs |
|
Pseudobulk |
|
Calculate a ranked matrix |
|
Size factors |
|
Percentage of zeros vs. library depth |
|
Markdown |
|
Markdown |
|
Markdown header |
|
Markdown hyperlink |
|
Markdown list |
|
Multiple Markdown plots |
|
Multiple Markdown tables |
|
Prepare R Markdown template |
|
Developer |
|
Detect HPC environment |
|
Detect sequencing lanes |
|
Shared list of optional default formals |
|
Match interesting groups |
|
Check that user-defined gene input matches expected values |
|
Check that interesting groups match a defined value |
|
Assign multiple objects into a new environment |
|
Separator bar |
|
Header for object show method |
|
Show slot information |
|
Global variables |
|
Single-sell barcode pattern |
|
Slot names in metadata containing genome information |
|
Sequencing lane grep pattern |
|
Sample metadata blacklist |
|
Quality control metric columns |
|
Reexports |
|
Objects exported from other packages |


{% extends "base.html" %} {% load staticfiles %} {% load crispy_forms_tags %} {% block title %}{{ block.super }}Home{% endblock %} {% block navbar-left %} {% include "_navbar.html" with active_link="home" %} {% endblock %} {% block navbar-right %} {% if not user.is_authenticated %} Log in Sign up {% else %} {{ block.super }} {% endif %} {% endblock %} {% block splash %}
{% endblock splash %} {% block container %}By incorporating a stretching program into your daily routine, you can increase your flexibility and range of motion. You can also improve performance in sports and daily tasks. Stretching can help prevent injury and decrease pain associated with muscle tightness.This sequence can take less than 10 minutes, or longer if you want to stay in poses for a few breaths longer or repeat the whole sequence a few times
Did you know that honey isn’t the only thing that bees make? Bees also produce a compound called propolis from the sap on needle-leaved trees or evergreens. When they combine the sap with their own discharges and beeswax, they create a sticky, greenish-brown product that helps to fight disease and damage in the body.
Could Prescribed NSAID Painkillers Raise Heart Failure Risk? Yes, say reports.Use of prescription-strength ibuprofen, naproxen and other commonly used pain relievers may lead to higher risk of heart failure.These medications may raise a person's relative risk of heart failure by 20%, according to the analysis of medical records for 10 million patients.
Depression can affect the way you feel, how you think, and the way you act.People use essential oils as complementary treatments for many conditions, including depression.These a drug-free option that may help relieve some of the symptoms and help manage the condition. In most cases, essential oils are safe and free of side effects.
Flaxseed consumption may reduce the risk of prostate cancer.These are a rich source of nutrients, such as manganese, vitamin B-1, and omega-3 fatty acids.Although researchers are still exploring the potential health benefits of flaxseed, it is proven that falxseed protects us against a number of conditions ranging from diabetes to cancer.
Following a low-FODMAP diet can feel restrictive. Picks for low-FODMAP fiber sources include chia seeds, rolled oats, oat bran, white potatoes with skin, navel oranges, strawberries, blueberries, raspberries and quinoa. Hydration is also very important for people with digestive issues such as IBS.
Glycemic index values of the same food can vary widely and may be an unreliable indicator of blood sugar response, according to a new study. Glycemic index is considered a tool to help people with diabetes control their blood sugar levels. Based on these findings, it was proven that the glycemic index wasn't practical for food labeling.
Regular exercise during pregnancy can improve heart health and stamina. Maintaining a healthy body and healthy weight gain can help reduce common pregnancy complaints and discomforts like lower back pain, fatigue and constipation and may even help make labor a little easier by improving endurance.
Sarsaparilla is a tropical plant which grows deep in the canopy of the rainforest. For centuries,people around the world used the root of this plant for treating joint problems like arthritis, and for healing skin problems like psoriasis, eczema, and dermatitis.It was also thought to cure leprosy due to its “blood-purifying” properties.
Good News! We can treat coughs due to colds, allergies, and other sinus infections with a number of home remedies that can help. For those who prefer to avoid chemicals, always keep one of these honey, probiotics, bromelain, peppermint, thyme handy to prevent getting affected by allergies.


A colon-separated list of search paths available to the cd command, similar in function to the $PATH variable for binaries. The $CDPATH variable may be set in the local ~/.bashrc file.
Examples:
bash$ cd bash-doc
bash: cd: bash-doc: No such file or directory
bash$ CDPATH=/usr/share/doc
bash$ cd bash-doc
/usr/share/doc/bash-doc


Name is required.
Adress is required.
Zipcode is invalid.
City is required.
A valid website url is required.
A valid email adress is required.
A valid phone number is required.


end_class/[0,1]
declaration:- end_class.
:- end_class
+ClassName.
A class definition continues until the next
end_class/[0,1]
directive, the next class/1
directive, or the
end of the file, whichever comes first.
It is not possible to nest one class definition within another.
All clauses that look like method definitions (that is, which have
one of <-/2
, <</2
or >>/2
as the principal functors of
their heads) are considered to be method definitions for the class.
The argument to end_class/1
, if specified,
must match the class name of the preceding class/1
directive.
class/1


{% extends "article.html" %} {% block title %} Reset Password {% endblock %} {% block heading %} Reset Password {% endblock %} {% block breadcrumb %} {% endblock %} {% block article %}
We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.
{% endblock %}


general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations. By design, C provides constructs that map efficiently to typical machine instructions and has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computers, from supercomputers to embedded systems.
C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to make utilities running on Unix. Later, it was applied to re-implementing the kernel of the Unix operating system.During the 1980s, C gradually gained popularity. Nowadays, it is one of the most widely used programming languages,with C compilers from various vendors available for the majority of existing computer architectures and operating systems. C has been standardized by the ANSI since 1989 (see ANSI C) and by the International Organization for Standardization.
C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significantly over time, and modern C++ has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, and IBM, so it is available on many platforms.
C++ was designed with a bias toward system programming and embedded, resource-constrained software and large systems, with performance, efficiency and flexibility of use as its design highlights.C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, servers (e.g. e-commerce, Web search or SQL servers), and performance-critical applications (e.g. telephone switches or space probes).
general-purpose programming language that is class-based, object-oriented (although not a pure object-oriented language, as it contains primitive types[unreliable source?]), and designed to have as few implementation dependencies as possible. It is intended to let application developers write once, run anywhere (WORA),meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but it has fewer low-level facilities than either of them. As of 2019, Java was one of the most popular programming languages in use according to GitHub,particularly for client-server web applications, with a reported 9 million developers.
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance with the specifications of the Java Community Process, Sun had relicensed most of its Java technologies under the GNU General Public License. Meanwhile, others have developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java (bytecode compiler), GNU Classpath (standard libraries), and IcedTea-Web (browser plugin for applets).
Pythonis an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Python is often described as a "batteries included" language due to its comprehensive standard library.
| C | C++ | JAVA | PYTHON |
|---|
| C | C++ |
|---|---|
C is a procedural oriented |
C++ is a object oriented |


url inspector demo
inspect
This iframe shows the resource itself as defined by its type
Close it
[data.title]
[data.url|remove]
[data.album|remove]


Kane matches Dixie Dean as England equal boys of '66
by BeSoccerEngland's 2019 vintage drew level with the World Cup winners from 1966 as Harry Kane was once again on target against Kosovo.
Harry Kane and England wrapped up a prolific 2019 with a 4-0 Euro 2020 qualification win against Kosovo on Sunday.
Next year, Gareth Southgate's team will hope to emulate their country's greatest ever side by winning a major tournament at Wembley.
England's current vintage are at least the equal of Alf Ramsey's World Cup winners in one way already – their 38 goals scored in 2019 is the same number that the Three Lions managed in a seminal 1966.
Only once, in 1909, have England managed more goals in a calendar year, when they scored 39 in just seven games.
Kane's individual haul of 12 equalled the record for an England player in a calendar year, standing alongside Everton great Dixie Dean's efforts in 1927 and George Hilsdon in 1908.
The Tottenham star has now netted in each of his past six international appearances and is the only England player to do so in the post-war era – matching his own efforts between October 2017 and July 2018.


Faculty Influence
Research Question
Project Description
Methodology
Results
About the Author
{% block content %} {% endblock %}


Got strategies developed into working project ? Awesome, We will Launch and Promote it for you.
It is indeed important to have an idea in hand before starting anything big ! We understand your needs. Get your idea modeled systematically before starting your work.
Get a full fledged working desktop application / software for your personal or business needs. Just mention your requirements and we will get a best in class working application ready for you.
Well it is assumed that there are 1.4 billion android users till date globally. Thus having a business mobile application is a must to reach maximum users. Get your business android application for employees or clients today !
Do you own a business already ? Or planning to launch your startup ? Well a Website is a must in today's world to show your business existance. Be it Blogging, Portfolio, Informative, Landing Pages or any other type. We develop your website the way you want. So why wait, Get your website today !
Videos and images play an important role in today's competitive business. Be it for a website or application or advertisement, if you are able to convey a good image for your company you got it all ! Get professional image and video edits today .
Do you have products or services you wish to sell online ? E-Commerce is the today's world solution for selling products to masses. Get your E-Commerce website today and start earning in no time ! Get Found Online ! Whether you have a website or an application, grow your business and reach with Search Engine Optimization. Get Found Today !
Pursuing A Bachelors Of Engineering Degree (B.E) In Computer Science. Presented Various Papers At National Level.
General Secretary
Computer Society Of India,Universal College Of Engineering


Michael Flynn, via his spokesperson, “indicated that while he had no recollection of discussing sanctions [with Sergey Kislyak], he couldn’t be certain that the topic never came up.”


import com.sleepycat.db.*;public DbTxn begin(DbTxn parent) throws DbException;
The DbTxnMgr.begin method creates a new transaction in the transaction manager, and returns a DbTxn that uniquely identifies it.
If the parent argument is non-null, the new transaction will be a nested transaction, with the transaction indicated by parent as its parent. Transactions may be nested to any level.
Note: transactions may not span threads, i.e., each transaction must begin and end in the same thread, and each transaction may only be used by a single thread.
Note: transactions may not span cursors, i.e., each transaction may only be used by a single cursor.
The DbTxnMgr.begin method throws an exception that encapsulates an errno on failure.
The DbTxnMgr.begin method may fail and throw an exception for any of the errors specified for the following Berkeley DB and C library functions: abort(3), fcntl(3), fflush(3), fprintf(3), free(3), fsync(3), getpid(3), DbLog.put, lseek(3), memset(3), mmap(3), munmap(3), shmat(3), shmdt(3), strerror(3), vfprintf(3), vsnprintf(3), and write(3).
In addition, the DbTxnMgr.begin method may fail and throw an exception encapsulating errno for the following conditions:


"Excellent, prompt, and accommodating service. Did a house call and he eliminated all issues with my network and smart devices promptly. - S.S."
"I couldn't even get an email out before I called. Anand came and did his magic. Professional, swift, and great customer service. My internet hasn't been down since and my computers are running faster than ever!" -D.D.


|
RayTracer
|
Typedefs | |
| using | Image = std::vector< std::vector< Vector3D > > |
Functions | |
| Image | gamma_correct (const Image &original, double gamma, double A) |
| Apply gamma correction to original. More... | |
| Image | gamma_correct (const Image &original, double gamma) |
| Image | max_tone_mapping (const Image &original, double max) |
| Image | max_tone_mapping (const Image &original) |
| Image | anti_alias (const Image &original, unsigned int window_size) |
| using image::Image = typedef std::vector<std::vector<Vector3D> > |
Apply gamma correction to original.
| original | The origina image |
| gamma | The gamma value |


EBD - Easton Bible DIctionary
Pethor
PETHOR
"PETHOR "interpretation of dreams, identified with Pitru, on the west bank of the Euphrates, a few miles south of the Hittite capital of Carchemish (
Numbers 22:5
, “which is by the river of the land of the children of [the God] Ammo”). (See BALAAM.)
"PETHOR "interpretation of dreams, identified with Pitru, on the west bank of the Euphrates, a few miles south of the Hittite capital of Carchemish (Numbers 22:5, “which is by the river of the land of the children of [the God] Ammo”). (See BALAAM.)


The class TTCCLayout outputs the time, thread, logger and nested diagnostic context information of a logging event. More...
#include <ttcclayout.h>
Public Types | |
| enum | DateFormat { NONE, ISO8601, ABSOLUTE, DATE, RELATIVE } |
Public Member Functions | |
| TTCCLayout (QObject *pParent=0) | |
| TTCCLayout (const QString &rDateFormat, QObject *pParent=0) | |
| TTCCLayout (DateFormat dateFormat, QObject *pParent=0) | |
| virtual | ~TTCCLayout () |
| bool | categoryPrefixing () const |
| bool | contextPrinting () const |
| QString | dateFormat () const |
| bool | threadPrinting () const |
| void | setCategoryPrefixing (bool categoryPrefixing) |
| void | setContextPrinting (bool contextPrinting) |
| void | setDateFormat (const QString &rDateFormat) |
| void | setDateFormat (DateFormat dateFormat) |
| void | setThreadPrinting (bool threadPrinting) |
| virtual QString | format (const LoggingEvent &rEvent) |
Protected Member Functions | |
| virtual QDebug | debug (QDebug &rDebug) const |
Properties | |
| bool | categoryPrefixing |
| bool | contextPrinting |
| QString | dateFormat |
| bool | threadPrinting |
The class TTCCLayout outputs the time, thread, logger and nested diagnostic context information of a logging event.
The enum DateFormat defines constants for date formats.
| Log4Qt::TTCCLayout::TTCCLayout | ( | QObject * | pParent = 0 |
) |
| Log4Qt::TTCCLayout::TTCCLayout | ( | const QString & | rDateFormat, | |
| QObject * | pParent = 0 | |||
| ) |
| Log4Qt::TTCCLayout::TTCCLayout | ( | DateFormat | dateFormat, | |
| QObject * | pParent = 0 | |||
| ) |
Creates a TTCCLayout with the date formar value specified by the dateFormat constant and the parent pParent.
| virtual Log4Qt::TTCCLayout::~TTCCLayout | ( | ) | [virtual] |
| bool Log4Qt::TTCCLayout::categoryPrefixing | ( | ) | const |
| bool Log4Qt::TTCCLayout::contextPrinting | ( | ) | const |
| QString Log4Qt::TTCCLayout::dateFormat | ( | ) | const |
| virtual QDebug Log4Qt::TTCCLayout::debug | ( | QDebug & | rDebug | ) | const [protected, virtual] |
Writes all object member variables to the given debug stream rDebug and returns the stream.
TTCCLayout(name:"TTCC" categoryprefixing:true contextprinting:true dateformat:"ISO8601" referencecount:1 threadprinting:true)
Implements Log4Qt::LogObject.
| virtual QString Log4Qt::TTCCLayout::format | ( | const LoggingEvent & | rEvent | ) | [virtual] |
Implements Log4Qt::Layout.
| void Log4Qt::TTCCLayout::setCategoryPrefixing | ( | bool | categoryPrefixing | ) | [inline] |
| void Log4Qt::TTCCLayout::setContextPrinting | ( | bool | contextPrinting | ) | [inline] |
| void Log4Qt::TTCCLayout::setDateFormat | ( | DateFormat | dateFormat | ) |
Sets the date format to the value specified by the dateFormat constant.
| void Log4Qt::TTCCLayout::setDateFormat | ( | const QString & | rDateFormat | ) | [inline] |
| void Log4Qt::TTCCLayout::setThreadPrinting | ( | bool | threadPrinting | ) | [inline] |
| bool Log4Qt::TTCCLayout::threadPrinting | ( | ) | const |
bool Log4Qt::TTCCLayout::categoryPrefixing [inline, read, write] |
The property holds if the logger name is part of the formatted output.
The default value is true for including the logger name.
bool Log4Qt::TTCCLayout::contextPrinting [inline, read, write] |
The property holds if the nested context information is part of the formatted output.
The default value it true for including the nested context information.
QString Log4Qt::TTCCLayout::dateFormat [inline, read, write] |
The property holds the date format used by the layout.
The default date format is "RELATIVE".
bool Log4Qt::TTCCLayout::threadPrinting [inline, read, write] |
The property holds if the thread name is part of the formatted output.
The default value it true for including the thread name.


Shows how to use the GetFeature control to select features from a WMS layer.
Click or drag a box to select features, use the Shift key to add features to the selection, use the Ctrl key to toggle a feature's selected status. Note that this control also has a hover option, which is enabled in this example. This gives you a visual feedback by loading the feature underneath the mouse pointer from the WFS, but causes a lot of GetFeature requests to be issued.


You have no title in your selection. Continue browsing the Library Or Consult your current Offers and Deals Do you need help ? Chat with us


---
layout: post
title: ''
date: '2008-08-18T23:48:26-07:00'
tags:
- darth vader
- cat
- star wars
tumblr_url: http://alexhwilliams.tumblr.com/post/46512647/brian-says-i-should-name-the-cat-fred-he-says
---
Brian says I should name the cat Fred. He says Vader is cool if you are into pop culture. No, Brian. No.


Phoenix police arrest man in death of his 74-year-old mother
PHOENIX (AP) - Police in Phoenix say a man has been arrested in the death of his 74-year-old mother.
They say 50-year-old Harlen Shelton has been booked into jail on suspicion of homicide.
Police say the body of Tina Topali was found inside a home Wednesday afternoon.
Detectives say there were traumatic injuries on the woman’s body that may have been caused by a bladed object.
Police officers spoke to Shelton and say they connected him to his mother’s death and arrested him.
They say the investigation into Topali’s death is continuing.
It was unclear Thursday if Shelton has a lawyer yet who can speak on his behalf.
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


gecode Directory Reference
Directories | |
| directory | driver |
| directory | flatzinc |
| directory | float |
| directory | gist |
| directory | int |
| directory | iter |
| directory | kernel |
| directory | minimodel |
| directory | search |
| directory | set |
| directory | support |
Files | |
| file | driver.hh [code] |
| file | flatzinc.hh [code] |
| file | float.hh [code] |
| file | gist.hh [code] |
| file | int.hh [code] |
| file | iter.hh [code] |
| file | kernel.hh [code] |
| file | minimodel.hh [code] |
| file | search.hh [code] |
| file | set.hh [code] |
| file | support.hh [code] |


Little Dolly was walking in the park with her beloved brolly on a rainy day, creating wonderful memories that would last forever. [G|D]
As she walked through the forest, Holly was reminded of the folly of her decisions as she admired the majestic holly trees surrounding her. [G|D]
The jolly old man in the candy shop was always willing to offer lollies to his young customers, making their day a little brighter and more joyful. [G|D]
Woolly socks and a warm scarf were the perfect way for children to keep their feet and necks from getting cold, and they felt wholly content wearing them. [G|D]


KHAAN TECH
We design and develop custom websites
ABOUT US
{
firstName: "Elbeg",
lastName: "Amarbayasgalan",
nickName: "Ebe",
age: "24",
education: "self-taught",
specialty: "back-end",
location: "Lexington, KY",
}
{
firstName: "Temtsel-Och",
lastName: "Ulziisaikhan",
nickName: "Temka",
age: "24",
education: "self-taught",
specialty: "front-end",
location: "Lexington, KY",
}


Sikh Martyers
| Sr.no | Name Of Sikh Martyrs |
| 1. | Sahibzada Ajit Singh & Sahibzada Jujhar Singh |
| 2. | Sahibzada Zorawar Singh & Sahibzada Fateh Singh |
| 3. | Mata Gujri Ji |
| 4. | Guru Arjan Dev Ji |
| 5. | Guru Teg Bahadur Ji |
| 6. | Bhai Dayala Singh Ji |
| 7. | Bhai Taru Singh Ji |
| 8. | Bhai Mani Singh Ji |
| 9. | Bhai Sati Das Ji |
| 10. | Bhai Mati Das Ji |
| 11. | Baba Banda Singh Bahadur |


SSL WDD353
Welcome
Course Information
Degree Information
Academic Honesty
Professionalism
Research & Professional Writing
Knowledge Test
Follow (Setup)
Assingment #0(Intro)
Follow (File Ops. Python)
Follow (File Ops. Ruby)
Follow (File Ops. Node)
Assingment #1
Follow (Run a web server)
Assingment #2(Web Server)
Follow (NPM, Express,Requests)
Assingment #3(Validate)
Follow (Sync, and Async)
Assingment #4(Sync)
Follow (Sessions)
Assingment #5(Login)
Follow (Cloud, AWS AccountDevOps, AWS services)
Assingment #6(Accounts)
Follow (AWS Lambda)
Assingment #7(Lambda)
-


HTML
Hyper Text Markup Language makes up the bulk of online documents. Anything can exist on the web, however HTML will be the most prolific type of document you will find.
What HTML is made of:
1.-- Text content (what you see on the page)
2.-- Markup (what the content "looks" like)
3.-- References to other documents (images, videos)
4.-- Links to other pages
HTML Markup and Elements
The whole markup; opening tag, content, and closing tag, is referred to as an element. A body containing "nested"
tags, or multiple tags inside of each other, is perfectly acceptable. A very simple and generic expample would be:
< name> contents < /name>
opening tag closing tag
Some common examples of tags would be:
< b > - bold
< em> - emphasis
This is a great video demonstrating HTML Markup.
HTML ATTRIBUTES
Attributes provide additional information about HTML elements such as defining an image, or establishing a link.
This is typically written as a tag, then attribute, value of the attribute, "contents", then the closing tag as seen below.
< tag attr="value"> contents < /tag>
A common example of a "tag" would be the Anchor (which establishes a link) - < a>
< a href= "www.reddit.com">Shamlessplug< /a>
Anchor Attribute Value Contents Closing anchor
A second example is the Image tag ------- < img>
< img   src  =    "url"   alt="text">
Tag   Source  URL   alt (which stands for alternate) "text displayed if image doesn't load"
Since images don't have any contents they are considered a "void tag", and thus don't have a closing tag.
Whitespace
An interesting fact about HTML is that the computer does not recognize "space" in it's traditional role. No matter how many "spaces" an individual may type into a line, the computer only codes it as 1 gap until the next character. Some common ways to reflect spacing, or dropping down to a new line include the break, and paragraph tags. There are essentially two forms of formatting, inline, and block. The easiest way I found to remember this is that The block examples are structural elements, while the inline elements are text-based.Various Gem's and Tidbits Worth Remembering
Computers are "stupid", though they can preform amazing feats of calculation, they only do so because they were told to by the program written for them. In general, any time you get frustrated you need to remeber that it is behaving the way it is simply because you told it to behave that way!NEVER BE AFRAID TO ASK!


Today we're excited to launch our official weekly Aurelia newsletter. Each week we'll be featuring Aurelia announcements, events, articles, community surveys and important web industry news. If you haven't already signed up, you can get on the list here . We're thrilled to have Aurelia Core Team member Andreas Wänqvist putting together this great content on a regular basis and we look forward to hearing your feedback.
If you missed this week's issue, you can find it online here .


Block Club Calendar
Have you ever come home from work to find your neighborhood filled
with cars and visitors for a local market, fair, park event, or
giveaway that you didn't even know about and missed?
Or have you made weekend plans to travel only to find out that there
was a free family event in your town that you missed?
The "Block Club Calendar" is the key to making sure you never miss
another local gathering again. It allows any community member or
organization to post notifications on neighborhood events!


The Interfraternity Council (IFC) is the governing body for male social fraternities at the University of Delaware. It is responsible for maintaining the community amongst these chapters, programming, and enforement of rules and regulations. Together, the Interfraternity Council and its chapters have worked very hard to create a Greek community we can be proud of.
Our brothers represent some of the best gentlemen on campus, serving as New Student Orientation Leaders, members of the Student Government Association, Resident Assistants, and members of a number of other Registered Student Organizations. Many of our prothers are also involved with a number of athletic teams and clubs.
As social chapters, fraternities hold several social events throughout each semester. They hold mixers with sororities and participate in weeklong events such as Homecoming Week and Greek Week. Giving back to our communit is also important. Every Greek organization on this campus has a larger cause they support, such as the B+ Foundation, Children's Miracle Network, The Ronald McDonald House, the Make a Wish Foundation, and more.
There are many benefits of joining an Interfraternity Council Chapter. Our brothers share special bonds and develop life-long friendships.  Each fraternity is unique and diverse in its own way, and we can assure you that at UD there is a fraternity just for you.


Created by Kai / @_cibo_ and Ben / @predatorhat
fn main() {
println!("Hello, there!");
}
| C++ | Rust |
|---|---|
| auto x = 42; | let x = 42; |
| std::unique_ptr<T> | Box<T> |
| std::shared_ptr<T> | Rc<T> and Arc<T> |
| Destructors | trait Drop |
| __asm | asm! macro |
Quite similar to C++. So why do we need another language?
Rust's type system!
void logError(const char* msg, int* ints) {
fprintf(stderr, "%s: %i\n", msg, ints[0]);
}
int main() {
int* ptr = (int*)malloc (SIZE);
// ...
if (err) {
abrt = 1;
free(ptr);
}
// ...
if (abrt) {
logError("operation aborted before commit", ptr);
}
}
To catch this in C or C++ you need
In Rust, lifetime is part of an object's type
fn main() {
let x;
{
let y = 5;
x = &y;
}
println!("x's value is {}", x);
}
And thus, checked at compile time
Move by default: variables are moved to new locations, preventing previous locations from using it.
There is only one owner of data!
rustc hello_world.rs
./hello_world
Hello, World!
foo.rs:
mod foo {
fn hello_world() {
println!("Hello, World!");
}
mod bar {
fn goodbye_world() {
println!("Goodbye!");
}
}
}
foo::bar::goodbye_world();
main.rs:
mod foo;
fn main() {
foo::hello_world();
}
rustc main.rs
Compiles main.rs and foo.rs into main executable.
rustc --crate-type dylib foo.rs
main.rs:
extern crate foo;
fn main() {
foo::hello_world();
}
rustc main.rs
Compiles main.rs and links foo at run time.
cargo new --bin program_name
[package]
name = "program_name"
version = "0.0.1"
authors = ["Kai Michaelis<EMAIL_ADDRESS>[dependencies]
num = "~0.0.4"
slow_primes = "~0.1.4"
Downloads all dependencies and builds everything
cargo build
Calling C from Rust and vice versa
Call Rust code directly from C or C++
#[no_mangle]
pub extern fn hello_rust() -> *const u8 {
"Hello, world!\0".as_ptr()
}
Call C code from Rust also pretty easy
int sqlite3_open(
const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb /* OUT: SQLite db handle */
);
translates basically to
extern crate libc;
use libc::c_int,c_char;
#[link(name = "sqlite3")]
extern {
pub fn sqlite3_open(filename: *const c_char,
ppDb: *mut *mut sqlite3) -> c_int;
}
You wouldn't do this yourself all the way: there is bindgen
And of course, you wouldn't do this with sqlite3 because there is already crates.io/crates/rusqlite
| Rust | C++ |
|---|---|
bool
|
bool
|
u8, u16, u32, u64
|
uint8_t, uint16_t, uint32_t, uint64_t
|
i8, i16, i32, i64
|
int8_t, int16_t, int32_t, int64_t
|
usize, isize
|
uintptr_t, intptr_t
|
f32, f64
|
float, double
|
char
|
32 bit Unicode code point
|
| Rust | C++ |
|---|---|
str
|
std::string, UTF-8 encoded
|
(A, B, ...)
|
std::tuple<A,B,...>
|
[T; N]
|
std::array<T,N>
|
&[T]
|
Pair of iterators
|
type A = B
|
using A = B
|
struct A { ... }
|
class A { ... }
|
enum A { ... }
|
boost::variant
|
struct Employee {
name: String,
age: u8,
department: String
}
let e1 = Employee {
name: "Kai Michaelis".to_string(),
age: 29,
department: "Engineering".to_string()
};
let Employee{ name: n, ..} = e1;
// Prints "Hello, I'm Kai Michaelis"
println!("Hello, I'm {}",n);
let e1 = Employee {
name: "Kai Michaelis".to_string(),
age: 29,
department: "Engineering".to_string()
};
if let Employee{ age: 67, ..} = e1 {
println!("Time to retire!");
} else {
println!("You still got {} years to go",67 - e1.age);
}
#[derive(PartialEq)]
enum Fruit {
Apple = 1,
Banana = 2,
Kiwi,
Pineapple
}
fn say_it(fruit: Fruit) {
match fruit {
Fruit::Apple => println!("Apple"),
Fruit::Kiwi => println!("Kiwi"),
Fruit::Pineapple => println!("Pineapple"),
}
}
enum NumberOrText {
Number(i32),
Text(String)
}
fn print_number_or_text(nt: NumberOrText) {
match nt {
NumberOrText::Number(i) => println!("Number: {}",i),
NumberOrText::Text(t) => println!("Text: {}",t)
}
}
let a: NumberOrText = Number(42);
let b: NumberOrText = Text("Hello, World".to_string());
// Prints "Number: 42"
print_number_or_text(a);
// Prints "Text: Hello, World"
print_number_or_text(b);
use std::boxed::Box;
use std::ops::Deref;
enum Tree {
Leaf(char),
Node(Box<Tree>,Box<Tree>)
}
fn depth_first_search(root: &Tree) {
match root {
&Tree::Leaf(s) => println!("{}",s),
&Tree::Node(ref left,ref right) => {
depth_first_search(left.deref());
depth_first_search(right.deref())
}
}
}
fn main() {
let tree =
Box::new(Tree::Node(
Box::new(Tree::Node(
Box::new(Tree::Leaf('H')),
Box::new(Tree::Node(
Box::new(Tree::Leaf('e')),
Box::new(Tree::Leaf('l')))))),
Box::new(Tree::Node(
Box::new(Tree::Node(
Box::new(Tree::Leaf('l')),
Box::new(Tree::Leaf('o')))),
Box::new(Tree::Leaf('!'))))));
// Prints "Hello!"
depth_first_search(&tree);
}
panic! unwinds the thread
fn guess(n: i32) -> bool {
if n < 1 || n > 10 {
panic!("Invalid number: {}", n);
}
n == 5
}
fn main() {
guess(11);
}
enum Option<T> {
None,
Some(T),
}
Option<T>
fn find(haystack: &str, needle: char) -> Option<usize> {
for (offset, c) in haystack.char_indices() {
if c == needle {
return Some(offset);
}
}
None
}
fn main() {
let filename = "foobar.txt";
match find(filename, '.') {
Some(i) => println!("Filename extension: {}", &filename[i+1..]),
None => println!("No extension found!"),
}
}
Somewhat mixed...