Before Change
model.train()
for batch_id in range(batches_per_epoch):
pos_graph, neg_graph, blocks = next(dataloader_it)
// Copy to GPU
for i in range(len(blocks)):
blocks[i] = blocks[i].to(device)
pos_graph = pos_graph.to(device)
After Change
print("start training...")
t0 = time.time()
// For each batch of head-tail-negative triplets...
for batch_id, (pos_graph, neg_graph, blocks) in enumerate(dataloader):
// Copy to GPU
for i in range(len(blocks)):
blocks[i] = blocks[i].to(device)
pos_graph = pos_graph.to(device)
neg_graph = neg_graph.to(device)
loss = model(pos_graph, neg_graph, blocks).mean()
opt.zero_grad()
loss.backward()
opt.step()
if batch_id >= 10: // time 10 loops
break
t1 = time.time()
return (t1 - t0) / (batch_id + 1)


This is an open website about the community of Thessaloniki's developers and technologists. Meet the community and find out about upcomming events and meetups.
THESSALONIKI MEETUP AGENDA
{% for item in site.data.agenda %}
{% capture rowIter %}{% cycle 1, 2 %}{% endcapture %}
{% include widgets/agenda.html item=item %}
{% if '2' == rowIter %}
{% endif %}
{% endfor %}
MEETUPS IN THESSALONIKI
{% for meetup in site.data.meetups %}
{% capture rowIter %}{% cycle 1, 2 %}{% endcapture %}


Class: DropboxApi::Metadata::WriteMode
- Defined in:
- lib/dropbox_api/metadata/write_mode.rb
Overview
Your intent when writing a file to some path. This is used to determine what constitutes a conflict and what the autorename strategy is.
In some situations, the conflict behavior is identical:
- If the target path doesn't contain anything, the file is always written; no conflict.
- If the target path contains a folder, it's always a conflict.
- If the target path contains a file with identical contents, nothing gets written; no conflict.
The conflict checking differs in the case where there's a file at the target path with contents different from the contents you're trying to write. The value will be one of the following datatypes:
:add
: Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt".:overwrite
: Always overwrite the existing file. The autorename strategy is the same as it is for add.:update
: Overwrite if the given "rev" matches the existing file's "rev". The autorename strategy is to append the string "conflicted copy" to the file name. For example, "document.txt" might become "document (conflicted copy).txt" or "document (Panda's conflicted copy).txt".
Constant Summary collapse
- VALID_WRITE_MODES =
[ :add, :overwrite, :update ]
Instance Method Summary collapse
- #check_validity ⇒ Object
-
#initialize(write_mode, options = nil) ⇒ WriteMode
constructor
A new instance of WriteMode.
- #to_hash ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(write_mode, options = nil) ⇒ WriteMode
Returns a new instance of WriteMode.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/dropbox_api/metadata/write_mode.rb', line 46 def initialize(write_mode, = nil) case write_mode when Hash @write_mode = write_mode when String, ::Symbol @write_mode = { '.tag' => write_mode } @write_mode[write_mode.to_s] = unless .nil? end @write_mode['.tag'] = @write_mode['.tag'].to_sym check_validity end |
Instance Method Details
#check_validity ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/dropbox_api/metadata/write_mode.rb', line 61 def check_validity unless valid_mode? @write_mode['.tag'] raise ArgumentError, "Invalid write mode<EMAIL_ADDRESS>end if @write_mode['.tag'] == :update && @write_mode['update'].nil? raise ArgumentError, 'Mode `:update` expects a `rev` number' end end |
#to_hash ⇒ Object
71 72 73 |
# File 'lib/dropbox_api/metadata/write_mode.rb', line 71 def to_hash @write_mode end |


I found this blend 'Spice' in a local headshop near me, and was told by many people it was almost exactly like cannabis, but legal. It came in a bag similar to cannabis in an 'eighth'.
I smoked a bit from a pipe and took a reasonably large hit. The initial effect was very subtle, with a slight light-headedness and not much else. I waited for a while to see if anything else would happen. Very slowly, the light-headedness turned into a slight warmness concentrated near the head, quite pleasant, almost like cannabis, but more gentle. I didn't notice any changes in perception. It felt almost as subtle as drinking tea!
I took another slightly larger hit a couple of minutes later and again, got the initial lightness followed by more warmness and more relaxed feeling generally after about 30-40mins, I noticed that my head felt heavy. I noticed colours becoming subtly more defined. I took a couple more hits and eventually there was a bit of change, just more and more heavyheadedness, and a general drunk/tipsy feeling. There were no visual effects apart from very slightly enchanced colour perception. There was no change in audio perception, which was a bit of a let down, as cannabis rules when it comes to music.
Walking naturally caused more blood flow which increased the 'drunk' feeling while moving. It felt like walking on a bouncy castle. Enjoyment wasn't really enhanced overall, everything was just a bit dulled. I was watching something, but could only see the pictures changing. I couldn't really apply my mind to what was going on. After the experience, I don't remember what I was watching. Similar to cannabis.
I decided to go the whole way after the frustration of not having much going on, just felt like being drunk and bored really. I rolled a neat joint and smoked what must have been 1/16 of the bag, a fair bit. The result - nothing! no change in effects at all, almost like a plateau. This was about as exciting as watching paint dry. My 'normal' excitement levels were taken down too.
Overall I would describe this drug at low levels as tea and at high levels as being drunk, but without the 'high' feeling. Maybe I was expecting it to be like cannabis (as it is advertised) but not really impressed, seeing as it costs more than cannabis. This drug is legal for a reason. It's basically cannabis, minus the fun.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Files CCore/inc/Printf.h CCore/src/Printf.cpp
Files CCore/inc/DetectProxy.h CCore/src/DetectProxy.cpp
Subfolders CCore/inc/printf CCore/src/printf
CCore provides a printing infrastructure. Printing is a transformation of an object into a sequence of characters. There are three actors in a printing process: the object, the output device and printing options. The output device consumes characters, printing options determines how the object is exactly transformed. For example, integer can be represented in the decimal form or in the hexadecimal, with or without sign, with extra zero digits and so on. The type of an object is responsible for the printing implementation. There are default implementations for integral and string-like types.
Printing is performed with the following printing functions:
template <class P,PrintableType ... TT> void Printf(P &&out,const char *format,const TT & ... tt); template <class P,PrintableType ... TT> void Putobj(P &&out,const TT & ... tt); template <class P,class ... CC> void Putch(P &&out,CC ... cc);
Printf() uses the format string to embed given objects into the string with specified printing options and puts the result into the given output device. This function is similar to the classic C printf(), but has the following advantages: type-safe and type-driven, easily customizable output devices, extendable to print any desired type.
Putobj() outs given objects with default printing options.
Putch() casts given objects to chars and outs them.
Format string is an ordinary zero-terminated string with embedded format specifiers. Format specifier has a form "#<options>;", where <options> is the option string. It is converted to the correspondent object print options. To print the character '#' use "##" as a format specifier.
Format string is given as a zero-terminated character string, not as StrLen, due to the printf() tradition.
There are three ways to make a type printable.
The most direct way: define in the class definition the method template print() like this:
class SomeClass { public: void print(PrinterType &out) const { .... } };
If you need printing options do like this:
class SomeClass { public: struct PrintOptType { .... PrintOptType(); // default options PrintOptType(const char *ptr,const char *lim); // [ptr,lim) -- options from the format string // if the format string has a format specifier #XXX;, // then [ptr,lim) points to the string XXX }; void print(PrinterType &out,const PrintOptType &opt) const { .... } };
The second way is to specify a printing proxy type:
class SomeClass { public: using PrintProxyType = .... ; };
In this case the type SomeClass must be castable to the SomeClass::PrintProxyType.
For a non-class type you can define a function GetTextDesc():
enum SomeEnum { SomeEnum1, SomeEnum2, SomeEnum3 }; const char * GetTextDesc(SomeEnum e);
This way is intended mostly to print enumerations. GetTextDesc() is used as a proxy: it must return something printable. There is the set of such functions for bool and integral types:
inline StrLen GetTextDesc(bool value) { return value?"true"_c:"false"_c; } inline int GetTextDesc(int value) { return value; } inline unsigned GetTextDesc(unsigned value) { return value; } inline long GetTextDesc(long value) { return value; } inline unsigned long GetTextDesc(unsigned long value) { return value; } inline long long GetTextDesc(long long value) { return value; } inline unsigned long long GetTextDesc(unsigned long long value) { return value; }
It allows to print a non-class type, castable to one of these types.
You can also specialize the template CCore::PrintProxy<T> to define the print proxy type and optionally the print option type.
namespace App { struct S { .... }; } // namespace App namespace CCore { template <> struct PrintProxy<App::S> { using ProxyType = .... ; using OptType = .... ; }; } // namespace CCore
You can determine the printing option type using the PrintOptAdapter<T>. If the type T has a printing option type (even through proxy), then PrintOptAdapter<T>::PrintOptType is that type.
Sometimes you need to specify printing options using the object, not the format string. In such case use the class BindOpt:
template <class OptType,class T> struct BindOpt;
T obj;
Opt opt;
Printf(out,"object options: #;",BindOpt(opt,obj));
The type of the output device object must be ether output device class or define a printing adapter type:
class POut { public: using PrintOutType = .... ; };
Or using specialization:
class POut;
template <>
struct PrintOutAdapter<POut>
{
using PrintOutType = .... ;
};
A temporary printing adapter type object is created from the first argument of a printing function in such case and used to do the printing.
Output device class must provide the following members:
class PDev { public: using PrintOutType = PDev & ; PrintOutType printRef() { return *this; } void put(char ch); // print one character void put(char ch,ulen len); // print the same character len times void put(const char *str,ulen len); // print the character range void flush(); // flush the object };
The following output types are provided:
enum NoPrintType { NoPrint }; // to print nowhere
NoPrint is a word to print nowhere:
Printf(NoPrint,"this string goes nowhere");
The next type is PrintBase. It is designed to be a base class for actual output types.
class PrintBase : NoCopy
{
....
private:
virtual PtrLen<char> do_provide(ulen hint_len)=0;
virtual void do_flush(char *ptr,ulen len)=0;
protected:
void clearOverflowFlag();
public:
// constructors
PrintBase();
~PrintBase();
// methods
bool getOverflowFlag() const;
PrintBase & guardOverflow();
};
When you derive a class from PrintBase, you have to implement two virtual functions:
class PDev : public PrintBase { private: virtual PtrLen<char> do_provide(ulen hint_len) // hint_len is a suggested minimum buffer length { .... } virtual void do_flush(char *ptr,ulen len) // character range to be propagated to the final destination { .... } public: PDev() { .... } ~PDev() { flush(); .... } };
do_provide() is called to setup the printing buffer. This method may either return a buffer for printing, or return an empty buffer or throw an exception. If the empty buffer is returned, PrintBase will skip some output characters and set the internal overflow flag. Derived class may clear this flag using clearOverflowFlag() method. You can check this flag using getOverflowFlag() method or call the guard method guardOverflow() to throw an exception if the overflow has happened. When PrintBase got a buffer it fills it with output characters and flush sometimes during printing operations. So the method do_flush() is called to propagate the output characters. This method is a paired method for do_provide(): i.e. it is called sometimes after if the do_provide() was called successfully. You have to call flush() in the destructor to commit pending characters. For better understanding how to derive from PrintBase see the PrintBuf implementation.
The next class is PrintBuf. This class prints to the memory buffer.
class PrintBuf : public PrintBase
{
....
public:
explicit PrintBuf(PtrLen<char> buf=Nothing);
~PrintBuf();
void init(PtrLen<char> buf);
PrintBuf & guardOverflow() { PrintBase::guardOverflow(); return *this; }
StrLen close();
const char * closeZStr() { return close().ptr; }
};
Methods close() and closeZStr() both complete printing, append zero character and return the resulting string.
Method init() closes the previous buffer and attach the new one. It also clears the overflow flag.
The last class is PrintCount<P>. This class counts printing characters and passes them to the next printing device. If you need only counting, you can use PrintCount<void>
template <class P>
class PrintCount : NoCopy
{
....
public:
explicit PrintCount(P &out_);
ulen getCount() const;
};
In UTF8-compatible mode the number of symbols is counted, not the number of characters.
Tuples are treated especially by print functions: they are printed as if they members was used in the argument list. For example:
int a; int b; Printf(out,"a = #; b = #;\n",MakeTuple(a,b));
has the same effect as:
int a; int b; Printf(out,"a = #; b = #;\n",a,b);
This rule is applied recursively.
The following function (defined in the header SymCount.h) is used to determine the string symbol length:
ulen SymLen(StrLen text);
In UTF8-compatible mode the number of symbols is differ than the number of characters.
The following types: char *, const char *, char[N], const char [N], StrLen, are string-like types and printed as strings of characters using the proxy class StrPrint. This class has a printing options, represented by the struct StrPrintOpt:
enum StrAlign { StrAlignLeft, StrAlignRight, StrAlignCenter, StrAlignDefault = StrAlignRight }; struct StrPrintOpt { ulen width; StrAlign align; bool quoted; void setDefault() { width=0; align=StrAlignDefault; quoted=false; } StrPrintOpt() { setDefault(); } StrPrintOpt(const char *ptr,const char *lim); // // [width=0][.q|.Q][l|L|r|R|c|C=R] // };
width is the minimum output length, if the string has less characters, then it is extended to fit it. In UTF8-compatible mode the number of symbols is used, not the number of bytes.
align determines how the string is placed inside the extension. Left alignment means extension by space characters after the string, right — before, center — both before and after by equal number.
quoted encloses the string in quotes.
Text representation of options may include width, qouted flag (.q or .Q) and alignment flag. For example, "#20L;" means width = 20 ; align = StrAlignLeft ; quoted = false ;, "#20.qC;" means width = 20 ; align = StrAlignCenter ; quoted = true ;.
To print the same character several times use the helper class RepeatChar:
class RepeatChar
{
ulen count;
char ch;
public:
RepeatChar(ulen count_,char ch_) : count(count_),ch(ch_) {}
void print(PrinterType &out) const
{
out.put(ch,count);
}
};
Title looks like this:
--- Title ----------------------------------------------------------------------
The Helper Class Title can be used to print a title:
class Title
{
StrLen str;
public:
explicit Title(StrLen str_) : str(str_) {}
using PrintOptType = TitlePrintOpt ;
void print(PrinterType &out,PrintOptType opt) const;
};
And here is the Title printing options:
struct TitlePrintOpt
{
static constexpr ulen Default_width = 80 ;
static constexpr ulen Default_off = 3 ;
static constexpr char Default_border = '-' ;
ulen width;
ulen off;
char border;
void setDefault()
{
width=Default_width;
off=Default_off;
border=Default_border;
}
TitlePrintOpt() { setDefault(); }
TitlePrintOpt(const char *ptr,const char *lim);
//
// [width=80][.off=3][border=-]
//
};
width is the total title length, off is the text offset, border is the border character. In UTF8-compatible mode the number of symbols is used, not the number of bytes.
Text divider looks like this:
--------------------------------------------------------------------------------
It is printed by the helper class TextDivider:
class TextDivider
{
public:
TextDivider() {}
using PrintOptType = TextDividerPrintOpt ;
void print(PrinterType &out,PrintOptType opt) const;
};
The following printing options can be used:
struct TextDividerPrintOpt
{
static constexpr ulen Default_width = TitlePrintOpt::Default_width ;
static constexpr char Default_border = TitlePrintOpt::Default_border ;
ulen width;
char border;
void setDefault()
{
width=Default_width;
border=Default_border;
}
TextDividerPrintOpt() { setDefault(); }
TextDividerPrintOpt(const char *ptr,const char *lim);
//
// [width=80][border=-]
//
};
width is the total divider length, border is the border character.
Integral types are printed using proxy classes SIntPrint<SInt> and UIntPrint<UInt>:
/* class SIntPrint<SInt> */ template <SIntType SInt> class SIntPrint { SInt value; public: explicit SIntPrint(SInt value_) : value(value_) {} using PrintOptType = IntPrintOpt ; void print(PrinterType &out,PrintOptType opt) const; }; /* class UIntPrint<UInt> */ template <UIntType UInt> class UIntPrint { UInt value; public: explicit UIntPrint(UInt value_) : value(value_) {} using PrintOptType = IntPrintOpt ; void print(PrinterType &out,PrintOptType opt) const; };
IntPrintOpt represents the printing options:
enum IntShowSign { IntShowMinus, IntShowPlus, IntShowSignDefault = IntShowMinus }; enum IntAlign { IntAlignLeft, IntAlignRight, IntAlignInternal, IntAlignDefault = IntAlignRight }; enum IntShowBase { IntShowNoBase, IntShowBaseSuffix, IntShowBasePrefix, IntShowBaseDefault = IntShowNoBase }; struct IntPrintOpt { ulen width; unsigned base; // 2..16, 0 for c unsigned fract; IntAlign align; IntShowSign show_sign; IntShowBase show_base; void setDefault() { width=0; base=10; fract=0; align=IntAlignDefault; show_sign=IntShowSignDefault; show_base=IntShowBaseDefault; } IntPrintOpt() { setDefault(); } IntPrintOpt(const char *ptr,const char *lim); // // [+][width=0][.<base>|.b|.h|.x|.c|.f<fract>=.10][l|L|r|R|i|I=R] // };
There are six printing options:
width is the minimum output length. If the representation is shorter than this value, then it is extended to fit it.
fract defines a fractional part length to print integral value as a decimal fraction. If this option is not zero, then the value is interpreted as a fraction value/10fract and printed in the form "12345.6789".
align is determined how extension is performed. Internal alignment inserts zero digits in the number representation.
base is the representation base, it can vary form 2 to 16. It may have the special value 0. In this case the printing number is casted to char and this character goes out. The base is given as a number after dot, or as a letter after dot. Letter b means base = 2 and show_base = IntShowBaseSuffix, letter h means base = 16 and show_base = IntShowBaseSuffix, letter x means base = 16 and show_base = IntShowBasePrefix. Letter c means base = 0.
show_sign shows sign plus for positive numbers.
show_base shows representation base as suffix or prefix. Prefix is 0x for base 16. Suffixes are h for base 16 and b for base 2.
Here is some examples:
Printf(Con,"--- #10l; ---\n",12345); Printf(Con,"--- #10i; ---\n",12345); Printf(Con,"--- #10r; ---\n",12345); Printf(Con,"--- #+10.5l; ---\n",12345); Printf(Con,"--- #+10.hi; ---\n",12345); Printf(Con,"--- #10.hi; ---\n",-12345);
prints
--- 12345 --- ---<PHONE_NUMBER> --- --- 12345 --- --- +343340 --- --- +00003039h --- --- -00003039h ---
PrintDump is designed to print hexadecimal dumps of integers. Dumps look like this:
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31
To create an object of the PrintDump type use the overloaded PrintDump constructors:
template <UIntType UInt>
class PrintDump
{
public:
explicit PrintDump(PtrLen<UInt> data_) : data(data_) {}
explicit PrintDump(PtrLen<const UInt> data_) : data(data_) {}
PrintDump(const UInt *ptr,ulen len) : data(ptr,len) {}
....
};
And here is the options:
struct PrintDumpOptType
{
static constexpr ulen Default_line_len = 16 ;
ulen width;
ulen line_len;
void setDefault()
{
width=0;
line_len=Default_line_len;
}
PrintDumpOptType() { setDefault(); }
PrintDumpOptType(const char *ptr,const char *lim);
//
// [width=0][.line_len=16]
//
};
width is the output width of each integer. If it is 0, then the hexadecimal width of the integral type is used (2 for uint8, 4 for uint16 and so on).
line_len determines the number of integers on the one line.
This Helper Class can be used to direct printing to a functor. Useful in combination with lambdas.
template <class Func>
struct PrintBy
{
Func func;
explicit PrintBy(const Func &func_) : func(func_) {}
// print object
void print(PrinterType &out) const { func(out); }
};


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4
Dietary
Éclairs are easier to make than you might think - irresistable with this coffee filling and chocolate icing.
Preheat the oven 200C/400F/Gas 6. Line a baking tray with non-stick baking parchment.
For the éclairs, place 125ml/4fl oz water and the butter into a saucepan and gently melt the butter. Bring to a rolling boil for a minute.
Remove from the heat and add the flour all at once, beating well until the mixture is smooth and comes away from the sides of the pan.
Return to the heat for a minute or two to cook through.
Remove from the heat again and add the eggs, one at a time - beating well between the addition of each egg - until smooth and glossy.
Spoon the dough into a piping bag and pipe 5cm/2in long éclairs onto the lined baking tray and bake for 20 minutes, or until golden-brown. Remove from the oven and set aside to cool on a wire rack.
Once cooled, make a hole in one end of the éclair.
For the icing, mix half the icing sugar with the coffee in a small bowl. The mixture should have a spreadable consistency, so add more icing sugar if necessary.
In another bowl, place the remaining fondant icing with two tablespoons of water and mix until combined.
To finish, heat a small frying pan and toast the coconut until golden brown.
Whip the cream with the icing sugar and vanilla extract until soft peaks form when the whisk is removed.
Transfer the whipped cream into a piping bag fitted with a 1cm/½in plain nozzle and pipe into the éclairs.
Dip half of one side of the éclairs in the coffee icing and the other in the plain icing. Sprinkle with toasted coconut. Serve the coconut éclairs with the passion fruit seeds.


Arctic blast in its final day, but cold isn't over quite yet
Temperatures will still run below average
by Madeline Holcombe and Holly Yan, CNNNEW YORK - The hundreds of millions of people gripped bythe Arctic blast can begin to peel off a layer or two of clothingstarting Thursday.
After days of record-breaking cold for most of the country, temperatures are expected to rise Thursday, CNN meteorologist Michael Guy said. The warming is expected to continue through the weekend.
But that doesn't mean toasty temperatures.
The Mid-Atlantic region to Maine could suffer more record-cold early Thursday morning, Guy said. And even the rising temperatures will be 10 to 20 degrees below average.
Hundreds of records broken
The eastern two-thirds of the US, reaching as far south as Houston and the Florida Panhandle, were in freezing temperatures much of this week.
More than 232 million people were in areas 32 degrees or lower Wednesday morning.
Temperatures like those broke hundreds of records, some dating back over a century to 1911, CNN meteorologist Dave Hennen said. That year had its own Arctic outbreak called "Blue Norther," which the National Weather Service said was similar to the current weather conditions.
Officials have linked at least 5 deaths to the cold
Treacherous weather likely contributed to fatal crashes in at least two states, authorities said.
In Ohio, a 16-car pileup during a heavy snowfall Tuesday killed a 21-year-old woman, the Ohio State Highway Patrol said. Several other people were hospitalized after the massive crash.
And in Michigan, three people were killed in a crash Monday during "very poor road conditions," the Eaton County Sheriff's Office said.
In Chicago, an 80-year-old man died as a result of cardiovascular disease, with cold exposure as a contributing factor, the Cook County Medical Examiner's Office said.
CNN's Tina Burnside, Jason Hanna, Omar Jimenez and Hollie Silverman contributed to this report.


CrimPapers
Articles published on 17 March 2020
On 17 March 2020, 14 new articles were published in 9 journals.
On Wake-Up Calls and Metaphors: Comment on Braithwaite “Crime As A Cascade Phenomenon” by Susanne Karstedt
Modified Hardware Security Algorithms For Process Industries Using Internet of Things by J. S. Prasath, U. Ramachandraiah, G. Muthukumaran
News Media Relations For Law Enforcement Leaders (2nd Edition) by Xiaochen Hu
Book Review: the Birth of the Fbi: Teddy Roosevelt, the Secret Service, and the Fight Over America’s Premier Law Enforcement Agency by Joshua T. Shadwick
Book Review: Outlaw Women: Prison, Rural Violence, and Poverty in the American West by Walter Dekeseredy
The Palgrave International Handbook of Human Trafficking by Saleh Shahriar
The Goldilocks Rule—too Little, Too Much, and “Just Right”: Curvilinear Effects of Sleep Duration on Delinquency by Daniel P. Mears, Tiffaney A. Tomlinson, Jillian J. Turanovic
The Interaction of Biopsychological and Socio-Environmental Influences on Criminological Outcomes by J. C. Barnes, Adrian Raine, David P. Farrington
Going Local: Do Consent Decrees and Other Forms of Federal Intervention in Municipal Police Departments Reduce Police Killings? by Li Sian Goh
Seeking Invention: Creating An Informed Citizenry in the Governance of Security At Sporting Mega-Events by Adam Aitken
Exploring the Duration of Police–citizen Encounters
Is Resilience A Good Concept in Terrorism Research? A Conceptual Adequacy Analysis of Terrorism Resilience by Sissel H. Jore
Prospects For the Death of Europe: Islam, Christianity, the Future Identity of Europe by Ivan Strenski
Introduction to ‘the Prospects For the Death of Europe’ by Jeffrey Kaplan


--- type: formControls title: Slide toggle modifiers usage: Add boxed option, for boxes. stylesheet: '/scss/controls/slide-toggle.scss' --- Simple text Simple text Simple text A small description of what this is for...


PICTURN
Can't you solve puzzles without changing stage shapes?
Then let's cut and turn a part of pictures (a.k.a. stages), and rewrite the questions!
You can turn also other than ground, and then what happens...?
Let's enjoy a little wondering puzzles inside a picture frame.
unity1week#19 "回 (rotate)"
- Genre:
Puzzle Platformer
- Release Date:
2021-02-28


--- title: "Problem Set 1" editor_options: chunk_output_type: console ---
Due by 11:59 PM Wednesday, February 17, 2021 by PDF upload in Blackboard AssignmentsNote this has been changed from Sunday February 14, to give you more time to be able to come to office hours or ask questions. Normally assignment deadlines will remain Sundays at 11:59PM.
Please type your answers to the following questions in a document and save as a PDFIn MS Word, or Pages, or most word processing software, File -> Save As -> PDF, or File -> Export -> PDF.
to upload on Blackboard under Assignments. You may handwrite answers if you will be able to scan/photograph & convert them to a single PDF, if they are easily readable, but this is not preferred. See my guide to making a PDF - an essential skill in the modern world. If you are handwriting answers, you may print the pdf
above and write on it, or just write on a piece of paper (we only need your answers).
For the few questions that ask you to draw a graph, try to do so on your computer (use MS Paint, the drawing tools in MS Word or MS Powerpoint, plot points in MS Excel, drawing/notetaking apps, etc.), and save it as an image to include on your homework document. Again, they need not be perfect or to scale, just show that you understand the broad idea. Being able to understand and sketch the graphs is still a very important and useful skill! If all else fails, I will be lenient in grading graph questions if you are unable to technologically include a graph.
You may work together (and I highly encourage that) but you must turn in your own answers. Your TA, under my supervision, will grade homeworks 70% for completion, and for the remaining 30%, and one question will be graded for accuracy - so it is best that you try every problem, even if you are unsure how to complete it accurately.
How can we use utility functions, which have actual numbers that can be measured and compared, to model preferences and still say with a straight face that preferences are subjective? Hint: what does it mean for a utility function to be ordinal or cardinal? Why can multiple utility functions describe the same preferences?
Describe, in your own words, what the marginal rate of substitution between two goods means. How is it different from the slope of the budget constraint?
Describe, in your own words, what happens at the optimum consumption point. Why is it the optimum? What does the equality of the slope of the indifference curve and the slope of the budget constraint mean, in English?
Juan enjoys both music and fireworks. His income is $240 per month. Music streaming costs $12 per month, and fireworks cost $8 per bag.
Graph the budget constraint Juan faces, with music on the vertical axis and fireworks on the horizontal axis.
If Juan spends all his income on music, how much music can he afford? Plot a point that illustrates this scenario.
If Juan spends all his income on fireworks, how many bags of reworks can he afford? Plot a point that illustrates this scenario.
If Juan spends half his income on fireworks and half his income on music, how much of each can he afford? Plot a point that illustrates this scenario.
Connect the dots to create Juan’s budget constraint. What is the slope of the budget constraint?
Suppose that a holiday bonus raises Juan’s income temporarily to $360. Draw Juan’s new budget constraint.
Now suppose that during the holiday, with his holiday bonus, the price of fireworks increases to $12 and the price of music increases to 18. If he spends all of his income on fireworks, how many can Juan buy? How about music? What happens to his budget constraint, and why?
Ashkar has the following utility function for consuming peanut butter \((p)\) and jelly \((j)\): \[u(p,j) = 3pj\]
His marginal utilities are:
\[\begin{align*} MU_p &= 3j\\ MU_j &= 3p\\ \end{align*}\]
Put \(p\) on the horizontal axis and \(j\) on the vertical axis.
Write an equation for \(MRS_{p,j}\).
Suppose he is currently consuming bundleSandwich, I suppose!
\(a = (4,1)\). How much utility is he getting?
From his current consumption, how much more utility would he get by consuming 1 more \(p\)? What about 1 more \(j\)?
From his current consumption, how many units of \(j\) is he willing to give up to get 1 more unit of \(p\) and remain indifferent? How many units of \(p\) is he willing to give up to get 1 more \(j\) and remain indifferent?
Suppose he can choose between bundles \(a = (4,1)\), \(b=(2,2)\), and \(c=(1,4)\). What are his preferences between them?
Would he prefer bundle \(d = (2,1)\) over a bundle from part E? Why or why not?
Sketch a graph, plotting bundles \(a, b, c\), and \(d\). Indicate any indifference curve(s) they are on, and how much utility each provides.
Kelly’s utility function for drinking Coke (\(c\)) and Pepsi (\(p\)) is given by:
\[\begin{align*} u(c,p) &= 5c + 2p\\ MU_c &= 5\\ MU_p &= 2\\ \end{align*}\] Put Coke on the horizontal axis and Pepsi on the vertical axis.
Can Kelly get utility by consuming only Coke or only Pepsi?
Write an equation for \(MRS_{c,p}\).Hint: think about the relationship between these goods. It may not be a “typical” equation.
Are the bundles \((c=2, p=5)\) and \((c=4,p=0)\) on the same indifference curve?
What is \(MRS_{c,p}\) when \(c=1\) and \(p=5\)?
Given your answers, what is the relationship between Coke and Pepsi for Kelly?
Sketch a few indifference curves.
A consumer has the following utility function:
\[u(x,y)=\sqrt{xy}\]
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| x | 0 | |||
| x | 1 | |||
| x | 2 | |||
| x | 3 |
Graph three indifference curves on the same graph below: the first showing the bundle(s) that yield a utility level of 1; the second showing the bundle(s) that yield a utility level of 2; the third showing the bundle(s) that yield a utility level of 3.
The marginal utilities are given by:
\[\begin{align*} MU_x&=0.5x^{-0.5}y^{0.5}\\ MU_y&=0.5x^{0.5}y^{-0.5}\\ \end{align*}\]
write an equation for \(MRS_{x,y}\).
Suppose this consumer has an income of $10, the price of \(x\) is $2.50, and the price of \(y\) is also $2.50. Write an equation for the budget constraint (in graphable form, in terms of \(y\)), and put it on the same graph above.
Find the optimal combination of \(x\) and \(y\) where the consumer maximizes utility subject to income. Label this point \(A\) on the graph.
How much utility does the consumer earn at the optimum?


Shows a test where menu positioning was failing. Scroll down to the bottom, then open the menu. The records per page, should be in a reasonable position.


"Those masterful images because complete
Grew in pure mind, but out of what began?
A mound of refuse or the sweepings of a street,
Old kettles, old bottles, and a broken can,
Old iron, old bones, old rags, that raving slut
Who keeps the till. Now that my ladder's gone,
I must lie down where all the ladders start
In the foul rag and bone shop of the heart."
W.B. Yeats
from "The Circus Animals' Dessertion"


--- layout: splash ---
Thank you for visiting my blog.
But this page is under construction - please refer to the Blog page above for posts :]
Hopefully those won't disappoint ;]


16 April 2016
While learning some javascript testing frameworks this week (Tape), I noted that one of my tests was failing persistently, no matter what I did:
test('make Friendly Dates', function (t) {
t.equal( makeFriendlyDates(["2017-03-01", "2017-05-05”]), ["March 1st, 2017","May 5th”] );
t.end();
});
The first function makeFriendlyDates was producing the right output, but my test was failing. Why? Because javascript cannot test the equity of two arrays, that’s why. For example [1,2,3] == [1,2,3] will return false. To test array equality, you need to evaluate each index against each other. As a quick solution, I evaluated array.join(“ “) == array.join(“ “)
, turning my arrays in to strings, which then evaluated true.
Boom! Each time I learn a new secret that seems so obvious, I get really excited. The alternative negative approach of “how the hell did I not know about that? I’m so stupid” is al too easy to fall in to. Lightbulb moments are amazing!
[]==[]


Developing Writers in Higher Education: A Longitudinal Study
·
Resources
Permalink
Search in this text
Location:
0%
• Location
0
of
630
Contents
Thumbnails
Document Outline
Attachments
Search Results
Previous
Next
Highlight all
Match case
Presentation Mode
Open
Print
Download
Current View
Go to First Page
Go to Last Page
Rotate Clockwise
Rotate Counterclockwise
Text Selection Tool
Hand Tool
Document Properties…
Find
Previous
Next
Presentation Mode
Open
Print
Download
Current View
Tools
Zoom Out
Zoom In
Automatic Zoom
Actual Size
Page Fit
Page Width
50%
75%
100%
125%
150%
200%
300%
400%
More Information
Less Information
Close
Enter the password to open this PDF file:
Cancel
OK
File name:
-
File size:
-
Title:
-
Author:
-
Subject:
-
Keywords:
-
Creation Date:
-
Modification Date:
-
Creator:
-
PDF Producer:
-
PDF Version:
-
Page Count:
-
Close
Preparing document for printing…
0%
Cancel


At its core, the Cart Lab is a space for students to make and learn. We support a range of formal and informal educational activities to help students mold themselves into well-rounded professionals. The Cart Lab participates in the development and maintenance of four cartography courses offered by the UW Geography Department. We also collaborate with a number of Geography faculty to enrich non-design courses with mapping exercises and materials.
Beyond curriculum, we organize a number of workshops and hosted meet-up events, enabling students to come together with faculty, staff, and professionals to exchange ideas and support each other. Across activities, the Cart Lab as a “maker”-space emphasizes collaborative learning experiences and the building of community across graduate, undergraduate, and certificate students. We are proud to report a 95% placement rate for our students in the profession. Please contact the leadership team if you are a UW student who would like to get involved in the Cart Lab…
A maker-space is driven by a collective, defined by the needs and expectations of its members and contributors. Each year, Cart Labbers old and new come together to define how we want to make use of the space. As cartographic practice and professional expectations change, so too does the composition of the space. View our most recent Cart Lab policy…
We constantly strive to teach better, and our location within the UW Geography Department enables us to complement our basic research profile with pedagogical research on cartography for k-12 and higher education. To date, we have completed pedagogical research on active and situated learning, collaborative learning, scaffolded instructional design, spiraled curricula, distance education, and the role of maps in geographic and place-based education. View our research on cartographic pedagogy and instructional design…
The Cart Lab Education Series (CLES) is a weekly series of short (10–15 minute), highly informal presentations, in which we share tips, tricks, fun map things, professional skills, past projects, etc. CLES presentations are student-driven, and include occasional guest presentations from professionals and alum. CLES is open to all Cart Lab students and friends! View our CLES schedule and explore resources from prior meetings…
The best way to learn about design is by designing. The Cart Lab Design Challenge gives students a focused, “lock-in”-like experience that mimics the daily design constraints they will experience in the real world. The Cart Lab collaborates with Geography faculty to define the geographic problem context, giving the department an opportunity to come together as a community around an important and timely issue. Learn more about the Design Challenge and see the results from prior years…
The first cartography course at UW–Madison dates to 1937, and today the UW Geography Department offers five courses that partially or fully cover cartography: G170 Our Digital Globe, G370 Introduction to Cartography, G572 Graphic Design in Cartography, G575 Interactive Cartography & Geovisualization, and G970 Seminar in Cartography. The cartography courses support undergraduate majors in Geography and Cartography/GIS, certificates in GIS and Visual Cultures, and both resident and online masters in Cartography/GIS. Learn more about courses and programs on cartography in the UW Geography Department…
There are far too many conceptual and technical competencies in cartography for any single program to maintain. We strongly believe in sharing the load collectively by using and contributing to open educational resources. We are a Geo For All lab, an educational initiative of OSGeo and the International Cartography Association, and share formal and informal tutorials and resources from our cartography curriculum. View our open educational resources…


--- layout: post title: Using SublimeLinter with PHP date: 2013-11-29 22:22:39.000000000 +07:00 categories: - Web Development tags: - ide - linter - sublime - testing ---
I lost a considerable amount of time today.
I'm completely new to Linters. I've read about it lately, and I felt dumb I didn't start using it earlier.
I use Sublime as my IDE, and I love it, mostly for its package control. It makes installing a new addons easy as a breeze, and that's how I installed SublimeLinter.
Once you opened Sublime, press Ctrl+Shift+P (you must have the Package Control installed), find "Package Control: Install Package". Search for "SublimeLinter" and install.
So here I am, with SublimeLinter installed, and... well, nothing. I checked a few Youtube videos and what it does seems awesome, but it simply doesn't do anything for me. Quick Google search, nothing relevant. Actually, I ended up spending a quite a long time browsing, desperately looking for a solution.
I finally found out what was wrong, and again, I felt dumb: it took me 1 minute after that to setup the plugin correctly. No more suspense, here is the missing config:
{% highlight json %} { "sublimelinter_executable_map": { "php": "C:\wamp\bin\php\php5.4.12\php.exe" }, "sublimelinter_mark_style": "outline" } {% endhighlight %}Note that the double backslash is mandatory on Windows.
When customizing the settings, do NOT edit the default settings, edit the user settings instead. You'll find it under Preferences > Package Settings > SublimeLinter > Settings - User.
In conclusion, here is my advice: open the default settings file for SublimeLinter and ready it carefully! It is very well documented and it would have saved me a lot of time to start with this.


A blank space should follow each comma in any ESQL statement that makes use of commas outside of a string literal.
DECLARE myInt,myInt3 INTEGER 1;
DECLARE myInt, myInt3 INTEGER 1;


update-mime-database
Section: X Desktop Group (1)Updated: 26 Jul 2002
Index Return to Main Contents
NAME
update-mime-database - a program to build the Shared MIME-Info database cacheSYNOPSIS
update-mime-database -h | -v | [ -V ] MIME-DIRDESCRIPTION
update-mime-database is a program which is responsible for updating the shared mime-info cache according to the system described in the Shared MIME-Info Database specification from the X Desktop Group.OPTIONS
- -h
- Print out a command summary.
- -v
- Print out the version information.
- -V
-
Be verbose.
ARGUMENTS
- MIME-DIR
-
This is the directory for which
update-mime-database
should rebuild the cache. Mandatory if none of the options is provided.
AUTHOR
Filip Van Raemdonck<EMAIL_ADDRESS>wrote this manpage for the Debian GNU/Linux project, but it may be used by others.LICENCE
Copyright (C) 2002 Thomas Leonard.You may redistribute copies of update-mime-database under the terms of the GNU General Public License.
Index
This document was created by man2html, using the manual pages.
Time: 05:29:11 GMT, December 24, 2015


from_scratch.Rmd
decampr
to create a course repo from scratchThe first thing to do is to use decampr::create_course_repo()
to clone Ines’ basic course repository to your computer:
This will clone the course-starter-r
repo to your computer (by default, it saves it to your Desktop) and open up a new project with your cloned repo.
Make sure to rename it and save it as a new project. Also, use use_github()
to add it to GitHub, so you can serve the repository up to both your webhost and mybinder.org.
We’ve got you covered. You can use add_chapter()
to initialize a new chapter file and open it automatically.
Say I wanted to add a new chapter6.md
to my course. I can use
And this file will be created, along with the relevant YAML to get the course to work.
I can then start adding exercises using the add_exercise()
function (see below).
If you want to expand on your work, there is another convenience function called add_exercise()
:
Which will add a new set of HTML exercise tags for your exercise to your chapter1.md
file, and will open this file for further editing. Furthermore, the exercise, solution, and pre-exercise files will be open.
Note that if you already have a codeblock with that id, function will return an error, preventing you from overwriting the files.
The open_exercise()
function will open the exercises in Rstudio with a particular_id. For example, if I wanted to edit the 03_03
exercise, solutions, and prexercise code (which would be exercises/exc_03_03.R
, exercises/solution_03_03.R
and exercises/preexercise_03_03.R
), I could use:
And edit windows for each of these files would pop up.


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.util.StatCounter
public class StatCounter
A class for tracking the statistics of a set of numbers (count, mean and variance) in a
numerically robust way. Includes support for merging two StatCounters. Based on Welford
and Chan's algorithms
for running variance.
| Constructor Summary | |
|---|---|
StatCounter()
Initialize the StatCounter with no values. |
|
StatCounter(scala.collection.TraversableOnce<Object> values)
|
| Method Summary | |
|---|---|
static StatCounter |
apply(scala.collection.Seq<Object> values)
Build a StatCounter from a list of values passed as variable-length arguments. |
static StatCounter |
apply(scala.collection.TraversableOnce<Object> values)
Build a StatCounter from a list of values. |
StatCounter |
copy()
Clone this StatCounter |
long |
count()
|
double |
max()
|
double |
mean()
|
StatCounter |
merge(double value)
Add a value into this StatCounter, updating the internal statistics. |
StatCounter |
merge(StatCounter other)
Merge another StatCounter into this one, adding up the internal statistics. |
StatCounter |
merge(scala.collection.TraversableOnce<Object> values)
Add multiple values into this StatCounter, updating the internal statistics. |
double |
min()
|
double |
sampleStdev()
Return the sample standard deviation of the values, which corrects for bias in estimating the variance by dividing by N-1 instead of N. |
double |
sampleVariance()
Return the sample variance, which corrects for bias in estimating the variance by dividing by N-1 instead of N. |
double |
stdev()
Return the standard deviation of the values. |
double |
sum()
|
String |
toString()
|
double |
variance()
Return the variance of the values. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatCounter(scala.collection.TraversableOnce<Object> values)
public StatCounter()
| Method Detail |
|---|
public static StatCounter apply(scala.collection.TraversableOnce<Object> values)
public static StatCounter apply(scala.collection.Seq<Object> values)
public StatCounter merge(double value)
public StatCounter merge(scala.collection.TraversableOnce<Object> values)
public StatCounter merge(StatCounter other)
public StatCounter copy()
public long count()
public double mean()
public double sum()
public double max()
public double min()
public double variance()
public double sampleVariance()
public double stdev()
public double sampleStdev()
public String toString()
toString
in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


My awesome web app
Replace the web component's bigID attribute value with yours to enable the correct ratings & reviews modal link.
This demo uses the Microsoft Terminal one as an example. It retrieves the component's name, icon, and theme color from the web manifest.


the and (Â·â€"Â·) â€ˆ HIV disruption for ART (â€ˆâ€"â€ˆ) with are from (â€") people that interruption (â€ˆâ€"â€ˆ)â€¡ cell count (â€"â€ˆ) during mortality have model deaths over {background sub-Saharan (â€")â€¡ period risk The assumed effects increase -month COVID- after disruptions due treatment Africa margin other viral data services sex sexual {border-style health not would (Â·â€"Â·)â€ AIDS death px;} #ffffff;} (â€"â€ˆ)â€¡ HIV-related all condom models new could drugs such time times who For effect impact lead load population supply this also care countries each number per programmes rate relative depends duration model, was which (Â·â€"Â·)* Synthesis across excess individuals predicted transmission were years Africa, College antiretroviral current estimates incidence living result return study testing year -year Optima access change considered more period. potential prevention service testing, those use & ART, Gates Goals Imperial London Melinda PMTCT PrEP South among any behaviour infections interruption, levels proportion used â€"). (appendix April Bill EMOD age been being collab: decrease epidemic estimated group increases might months most pre-disruption px; rates stage substantial survival table {font-family All Although Geneva, VMMC adherence adults age, because but circumcision coverage drug estimate font-size incidence. male only overstretched pandemic prophylaxis sex, should uncertainty use, using values MODeling affected analysis availability cells compared disruption. double; given grants has initiation interruptions measures modelled modelling mother-to-child physical reduction results setting suspension their these Â·% ART. Acquisition Data Epidemiological Foundation HIV, HIV. Suspension Switzerland), This additional adult authors average based basis border-color border-width changes characteristics disruption, distancing found had individual infection initiated median online parameters partner partners period, personal pre-ART primary prognosis provision range reports scenarios small solid; status, susceptible than transmission. various while will {font-style {font-weight (HIV (WHO, (range (table AIDS-defining ART=antiretroviral Defic EMOD=Epidemiological Immune Interruption Kenya Kenya, London, MTCT Malawi, Mozambique, Risk Syndr UNAIDS Uganda, acute affect affecting approximately available bold can circumcisions clinic commercial conduct consequences context country courier; coverage, crisis dependent described diagnosis different distribution em; estimates, example, five include including initial initiation, intervals interventions key largest level loss medical men model. model; off outside partners, periods population. populations prevalence, prevent pt;} reductions reported retention risky software. specific status stochastic suppression survey then therapy. they type varied women workers, Î¼L


History.txt
- History.txt
- Last modified: Sun Dec 04 23:57:12 +0100 2011
4.3.1 (2011-11-30)
- Fix bug when working with Rails 3/Ruby 1.8.7
- Make character encoding behaviour consistent in Ruby 1.9.2/1.9.3
4.3.0 (2011-03-29)
- Use Ruby 1.9’s encoding support where available.
- Deprecated HTMLEntities.encode_entities/decode_entities interface is now
removed.
4.2.4 (2011-01-30)
- Fix issue where double-escaped entities were not correctly escaped. Bug
reported by Christian Kruse.
4.2.3 (2011-01-07)
- Additional entities from Junya Ishihara.
- Performance improvements.
4.2.1 (2010-04-05)
- Fixed error on Ruby 1.8.x when $KCODE was not set to “UTF8”.
Thanks to Benoit Larroque for the bug report.
4.2.0 (2009-08-24)
- Added benchmarking code and improved performance.
4.1.0 (2009-08-15)
- Now works with Ruby 1.9.1 and JRuby.
- Reverted lazy loading of entity mappings as this is not thread-safe.
- Finally removed the deprecated String#encode_entities and decode_entities
methods.
4.0.1 (2008-06-03)
4.0.0 (2007-03-15)
- New instantiation-based interface (but legacy interface is preserved for
compatibility.
- Handles HTML4 as well as XHTML1 (the former lacks the ' entity).
- Encodes basic entities numerically when :basic isn’t specified and
:decimal or :hexadecimal is.
- Performs a maximum of two gsub passes instead of three when encoding, which
should be more efficient on long strings.
3.1.0 (2007-01-19)
- Now understands all the entities referred to in the XHTML 1.0 DTD (253
entities compared with 131 in version 3.0.1).
- Calls to_s on parameters to play nicely with Rails 1.2.1.
- Entity mapping data is now lazily loaded.
3.0.1 (2005-04-08)
3.0.0 (2005-04-08)
- Changed licence to MIT due to confusion with previous ‘Fair’
licence (my intention was to be liberal, not obscure).
- Moved basic functionality out of String class; for previous behaviour,
require ‘htmlentities/string’.
- Changed version numbering scheme.
- Now available as a Gem.
2.2 (2005-11-07)
- Important bug fixes — thanks to Moonwolf.
- Decoding hexadecimal entities now accepts ‘f’ as a hex digit.
(D’oh!)
- Decimal decoding edge cases addressed.
- Test cases added.
2.1 (2005-10-31)
- Removed some unnecessary code in basic entity encoding.
- Improved handling of encoding: commands are now automatically sorted, so
the user doesn’t have to worry about their order.
- Now using setup.rb.
- Tests moved to separate file.
2.0 (2005-08-23)
- Added encoding to entities.
- Decoding interface unchanged.
- Fixed a bug with handling high codepoints.
1.0 (2005-08-03)
- Initial release.
- Decoding only.


corda
/
net.corda.core.crypto
/
org.bouncycastle.asn1.x500.X500Name
Extensions for org.bouncycastle.asn1.x500.X500Name
commonName
val
X500Name
.
commonName
:
String


{% if start-reading %}
Read the "Making of Scramble Legends" series:
{% else %}
Keep reading the "Making of Scramble Legends" series:
{% endif %}
- User Interface: a look at how the user interface was designed
- Avatar Style: follow the evolution of Scramble Legends' art style
- Making the Avatars: guest post by Kyle McGill artist for Scramble Legends
- Avatar Design: learn how the avatar art style was finalized
- End Game Condition: explore the thought process behind the game's end game condition
- Attack Design: understand why Scramble Legends is all about burying your opponent
- Overdrive Mode: a look at the design and technical considerations behind this special game mode
- Sound Design: guest post by David Kizale sound designer for Scramble Legends


The Mummy * 1/2 (out of * * * * )
Directed by Stephen Sommers. Cast: Brendan Fraser, Rachel Weisz, John Hannah, Arnold Vosloo, Jonathan Hyde, Kevin J. O'Connor. 1999 - 125 minutes Rated PG-13 (for mild profanity and horror elements). Reviewed May 8, 1999.
The first week of May apparently has become the new starting-off point for the Summer Movie Season, as a big special-effects blockbuster opens and cashes in tons o' money (last year was "Deep Impact"). This year, that film is "The Mummy" a loose-as-a-goose remake of the 1932 Universal horror classic. The funny thing is, this latest adaptation's villain isn't even an actual mummy, which sort of makes the title rather confused. On second thought, that's probably appropriate, since the whole film is a painfully muddled attempt at intermixing three genres (adventure/horror/comedy) that only a master director could pull off.  I'd say Sommers should have quit while he was ahead, but he's never actually been ahead.
In the brief prologue, set around 1200 B.C., a narrator that would sound better equipped for a slapstick in the "Naked Gun" vein tells the story of the high priest, Imhotep (Arnold Vosloo), who was caught having an affair with the Pharaoh's wife, and then heartbroken when she killed herself. In an attempt to resurrect her body, the proceedings are broken and Imhotep is mummified alive and locked in a tomb with a mound of flesh-eating scarab bugs.
Switch forward to Cairo, Egypt, circa 1926, Evelyn (Rachel Weisz), an intelligent, klutzy librarian, is given a sacred map by her older brother, Jonathan (John Hannah), that points the way to Hamunaptra, the infamous city in which Imhotep's body stands amid treasure. With the help of the ruggish American adventurer, Rick O'Connell (Brendan Fraser), whom has been to Hamunaptra before, the three of them set out to find the treasures, including a consecrated book hidden amidst the ruins, but instead find The Book of the Dead. Once Evelyn foolishly unlocks and reads a passage from it, the ghoulishly decomposing body of Imhotep is resurrected, both to set into motion the ten deadly plagues of Egypt and to once again attempt the revival of his beloved mistress.
Pleasant and wickedly funny is the way I would have decribed "The Mummy" at the 45-minute mark, which mostly involves the characters of Evelyn and Rick and their travels to Hamunaptra. The dialogue was amusing (at one point when Evelyn gets drunk, she mistakenly says, "I bet you're wondering why a place like me would want to go to a girl like this"), and an action sequence in which they must jump from a firey ship when it is taken over by their adversaries was fast-paced and exciting. It's just too bad that these early scenes were simply the set-up for the resurrection of Imhotep (who, by the way, isn't a mummy but a rotting corpse) and a non-stop parade of mindless and flashy visual effects, courtesy of Industrial Light & Magic. Ultimately, once the main story arrived, the film completely fell apart, losing sight of its characters and concentrating solely on the millions of dollars that had been put up on the screen. Well, Sommer also was concerned about throwing a corny, completely inappropriate one-liner at us every minute, and I almost was apt to feel sorry for the waste of Fraser's talent until I remembered that he was the one that chose to appear in the film in the first place.
A more on-target title probably would have been "Prince of Egypt 2: Imhotep's Tomb," since the animated film from last December is frighteningly similar, minus the dead coming back to life. From the artificial first shot that would lead you to believe you were about to view an animated feature in which hundreds of slaves are shown working among the pyramids, to the subplot in which the plagues are set into motion, including a swarm of locusts and the river running red, the film was basically "The Prince of Egypt," but with comedy. Although ILM's effects look good, they are never actually convincing or threatening, nor is the film itself, since you get the notion right from the start that every character is bound to die except for our noble protagonists who improbably escape any sort of life-threatening danger that comes their way.
Another plot development that threatens to strangle your suspension of disbelief concerns Imhotep's mission to sacrifice Evelyn in order to bring his love back from the grave. Oddly enough, he didn't need a female sacrifice when he tried the same ritual during the prologue.
So what's to like about "The Mummy?" Let's see. I did like the opening sections and some of the line-readings were funny. Rachel Weisz is a stand-out in her role of Evelyn, the only three-dimensional and actually likable character in the whole film. Since her wasted turns in 1996's awful "Chain Reaction" and the failed "Stealing Beauty," she has clearly been a young actress on the rise, and with "The Mummy" she should graduate to a more well-known status. Once Imhotep is defeated (I'm not giving anything away since this is a given before you even walk into the theater), the film jumps back to life for the last ten minutes, in which they must race to get out of the underground city as it crashes down around them.
A big-budget remake of "The Mummy" has been a much-sought after motion picture project since the mid-'80s, but such innovative directors as George Romero and Joe Dante had been turned down because the studio claimed that no straight-forward horror movie could succeed with a big budget. So what did Universal do instead? They traded in scares and suspense, not to mention far more impressive "mummy" designs (that can be seen in this month's issue of Fangoria Magazine), for a mainstream action-adventure directed by the newly-confirmed hack, Stephen Sommers, who obviously has no idea how to create tension, all in the name of a few extra box-office bucks. That's Hollywood for you.
- Copyright 1999 by Dustin Putman Http://hometown.aol.com/FilmFan16/index.html
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Optimizing
Optimized
I'm a fourth year Mechatronics Engineering Student at Stellenbosch University with an insatiable proclivity to learn and gain new knowledge. My spontaneity has lead to me learning new and invaluable things on a regular basis. So that in addition to my engineering degree I have leanred through online courses or books about programming, web-development, psychology, negotiation, business, investing and real estate. This website is a testament to the extent to which I carry these through, created and designed from scratch by learning web-development for fun from an online course on udemy.
I was born in 1999 in a small town called Benoni. I attened primary school at St Columbus where I finished as top student in grade 12. I then attended Ashton International college, starting in 2013, where I obtained my CIE Cambridge O-levels with an average of 86%, and then in my matric year recieved the IEB National Senior certificate and graduated as top student with an average of 82%. I applied for Stellenbosch University and was accepted into Mechatronics Engineering as well as Majuba Mens Residence in 2018. Today I am in my fourth and final year as an engineer. I have recieved Golden Key (awarded to students who are academically in the top 15%) for both my first and second year, pending third year.
Studying Engineering has taught me many interdisciplinary modules. I have studied therodynamics, fluid mechanics, strength of materials, computer programming, computer systems, material science, control systems, vibration and noise, electrical drive systems, machine design and electro-techniques. But what does this mean? The subjects above have taught me how to create and refine P, PI and PID controllers, how to programme micro-controllers (STM32) using c-code. How to calculate natural frequencies of systems and design for damping. Creating structures in autoCAD inventor, tolerances and machining of surfaces, working in groups taught me time-management, conflict management and team building skills. I know how BJT's and MOSFET's are made and work. I know the workings of turbines, generators and refrigeration. I have learned fluid flow and flow properties through different pipes and restrictions and much much more!
Mechatronics Engineering is a field of engineering that combines and unifies the key areas of mechanical, electronic and electrical systems. This means I have stuided some of the same material as mechanical and electrical engineers. The main applications of such a degree are in automation, robotics, consumer products, transport, PLCs and microprocessors. A Mechatronics specialist may take on the job titles of Software Engineer, Project Engineer, Automotive Engineer or Instrumentation Engineer. Tasks may inlcude designing, developing, maintaining and manageing: high-technology systems for automation, consumer products, mechanical processors where human labour may be dangerous and feasibility studies.


--- layout: default pagination: enabled: true --- {{ site.title }} {{ site.description }} With SameRun you can run together remotely with anyone in the world! {% include footer.html %}


--- title: Home ---
You’ve just created a new Nanoc site. The page you are looking at right now is the home page for your site. To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:
Change this page’s content by editing the “index.html” file in the “content” directory. This is the actual page content, and therefore doesn’t include the header, sidebar or style information (those are part of the layout).
Change the layout, which is the “default.html” file in the “layouts” directory, and create something unique (and hopefully less bland).
If you need any help with customizing your Nanoc web site, be sure to check out the documentation (see sidebar), and be sure to subscribe to the discussion group (also see sidebar). Enjoy!


Colin Kaepernick to Work Out for NFL Teams on Saturday | Breitbart
ESPN’s Adam Schefter reported on Tuesday, that former 49er and original anthem protester Colin Kaepernick will conduct a workout session for all 32 teams in Atlanta on Saturday.
by Dylan GwinnKaepernick, who began protesting in the preseason of the 2016 season by first sitting and then kneeling during the national anthem, has not played in the NFL since he walked out of his deal with the 49ers at the end of the 2016 season.
The protests he began, however, not only continued but grew in his absence. During the 2017 season, nearly all NFL teams – coaches and executives included – participated in some form of protest during the national anthem.
The protest movement tapered off during the 2018 season, after the NFL agreed to fund social justice initiatives through the then-recently formed Players Coalition.
In October of 2017, Kaepernick and fellow protester Eric Reid, filed a collusion grievance against the NFL. In February of 2019, the NFL settled the grievance with Kaepernick and Reid. However, despite that resolution, only Reid has re-joined the league. Kaepernick would be eligible to play immediately if a team were interested.
Follow Dylan Gwinn on Twitter @themightygwinn


You are highly encouraged to improve this document in every aspect. You are invited to fix typos, update outdated sections, add a topic or what else comes to your mind. By editing a file in the {{ names.name( 'gh' ) }} text editor, you will automatically create a pull request that might eventually find its way into the document.
Contribute your experience to make {{ names.name( 'scala-android' ) }} a pleasant experience for everybody.


SyrSDK API
This API guide is morphing over time. Please check back often, and feel free to update from the Syr repo and send a PR if you notice something that isn't right.
Components
A Component
SyrSDK uses the familiar React JavaScript pattern for creating components. The basic component setup looks like this.
import { Component } from 'syr';
class MyComponent extends Component {
constructor() {
}
render() {
}
}
View
A View
component is the basic component that renders to a surface (the RootView
). This component can be rendered to a SyrRootView
.
import { View } from 'syr';
render(){
return <View></View>
}
It can also own components, that will render to the surface as a child. Such as another View
.
import { View } from 'syr';
render(){
return <View>
<View></View>
</View>
}
Because a View does not have any dimensions by default, it will render at X,Y:0,0 and Height,Width:0,0. To change this you can attach a style.
import { View } from 'syr';
render(){
return <View style={{
height: 100,
width: 100,
left: 50,
top: 50
}}></View>
}
Animated.View
An animated view lets the bridge know about any special conditions that need to be setup ahead of time for the animation. Currently this stub exists for Syntax compatibility. In SyrSDK any component that is derived from an animatable is, able to have an animation applied. UIView, Button, Image.
import { Animated } from 'syr';
render(){
return <Animated.View></Animated.View>
}
TextView
A text view MUST OWN text. We're following this rule from React Native and sticking with it. Text that is not inside a TextView node, will become a value
property on nodes that own them. So if you need Text that displays, then you need to ensure it's wrapped inside a TextView
import { TextView } from 'syr';
render(){
return <TextView></TextView>
}
Image
A component for displaying an Image. It is self terminated as it can not hold any children.
import { Image } from 'syr';
render(){
return <Image source={{uri:"file_name"}} style={{ height:150, width:300 }}/>
}
Button
A clickable component. Returns an onPress event.
import { Button } from 'syr';
render(){
return <Button onPress={this.onPress} style={{ height:150, width:300 }}>Press Me</Button>
}
onPress(){
// the button was pressed!
}
LinearGradient
A View
that has a linear gradient applied to the background.
import { LinearGradient } from 'syr';
render() {
return <LinearGradient colors={['#000000', '#FFFFFF']} style={{ height:150, width:300 }}/>
}
TouchableOpacity
An invisible clickable view. Use it to encapsulate components for which you want to receive a click handler.
import { TouchableOpacity, Image } from 'syr';
render() {
return <TouchableOpacity onPress={()=>this.handleBackPress()} style={styles.iconContainer}>
<Image
style={styles.icon}
source={{ uri: 'icon' }}
/>
</TouchableOpacity>
}
ScrollView
A component that introduces scrolling around content inside. We calculate the max Y and max X, and set the content of the scroll view.
import { ScrollView, View } from 'syr';
render() {
return <ScrollView style={{height: 300, width: 300}}>
<View style={{height: 500, width: 500}}></View>
</ScrollView>
}
StackView
☠ watch out! this is under heavy development!
StackView allows a developers to align and space out content. In lieu of having React-Native's Yoga (Flexbox), we leverage built in layout controls.
import { StackView, View } from 'syr';
render() {
return <StackView
axis="vertical"
style={style}>
<View style={{height: 50, width: 50}}></View>
<View style={{height: 50, width: 50}}></View>
<View style={{height: 50, width: 50}}></View>
</StackView>
}
Styling a component
☠ watch out! this is under heavy development!
Styling a component is much like basic React-Native
. Create a JavaScript literal that describes the layout properties that you would like to affect.
let style = {
height: 50,
width: 100
}
You then bind the style to the rendering node.
render() {
return <View style={style}></View>
}
height
Set the height of a frame.
let style = {
height: 50
}
width
Set the width of a frame.
let style = {
width: 100
}
left
Set the origin left for a frame.
let style = {
left: 50
}
top
Set the origin top of a frame.
let style = {
top: 50
}
color
Set the foreground color of a component. Normally text color. Accepts HEX and RGBA.
let style = {
color: '#FFFFFF'
}
backgroundColor
Set the background color of a component. Accepts HEX and RGBA.
let style = {
backgroundColor: '#000000'
}
borderRadius
Set the border radius of a component. Slight variations exist for curvature on each platform. Combine with PixelRatio to soften corners.
let style = {
borderRadius: 15
}
borderWidth
Set the width of the border on a component.
let style = {
borderWidth: 3
}
borderColor
Set the color of the border on a component. Accepts HEX and RGBA.
let style = {
borderColor: '#FF00FF'
}
fontSize
Set the font size, normally only useful for TextView
. Due to variations in screen sizes, we recommend using PixelRatio
to obtain the DisplayPoint to PixelSize.
let style = {
fontSize: 24
}
fontWeight
Set the font weight, normally only useful for TextView
. Currently accepts normal
or bold
.
let style = {
fontWeight: 'bold'
}
textAlign
☠ watch out! this is under heavy development!
Set the text alignment direction. Currently accepts left
|center
|right
. These will be changing to start
|middle
|end
once internationalization support lands.
let style = {
textAlign: 'center'
}
Rendering
SyrSDK uses the concept of a raster
. It tries to detect the environment it's in, based on the availability of the SyrNative
bridge. Rendering to the RootView
surface is as easy as creating the component, and handing it to the raster.
We recommend, that you use a top level component for an entry. And use this as top level logic for your application. Once handed to the Raster, it will become an instance, and it's logic and program will run starting with it's constructor
, and then the lifeCycle
events.
import { Component, Render } from 'syr';
class MyApp extends Component {
render() {
return <View></View>
}
}
Render(MyComponent);
LifeCycle
Syr supports Life Cycle events to help control the flow of the program. To take advantage of these add the following to javascript classes.
Method stubs
import { Component } from 'syr';
class MyComponent extends Component {
constructor() {
// runs when object is created in javascript
}
render() {
// when what this class should return as it's rendering tree
}
componentDidMount() {
// this fires when component has been added to the rendering surface
}
componentWillUnmount() {
// fires when component is removed from rendering surface
}
componentWillUpdate() {
// fires immediately before rendering when new props or state are being received
}
shouldComponentUpdate() {
// fires before component will update, you can return false
// to prevent an update
}
componentDidUpdate() {
// component updated, runs after the component state was changed
}
}
Events
Notifying JavaScript from Native
If you need to notify the JavaScript from the Native layer, you can send events, from your native component. The easiest way to get access to this event.
[self sendEventWithName:@"FooParty" body:@{@"name": @"party at my desk"}];
HashMap<String, String> eventPayload = new HashMap<String, String>();
eventPayload.put("name", "part at my desk");
SyrInstance.getInstance(this).sendEvent("FooParty", "party at my desk")
Subscribing to Events from JavaScript
JavaScript can subscribe to the events that are being passed down from the native layer.
import { NativeEventEmitter } from 'syr';
const subscription = NativeEventEmitter.addListener(
'FooParty',
(event) => console.log(event.name)
);
// unsubscribe when needed
subscription.remove();
Animations
Syr has support for animations. With Syr animations you can run animations transitions in parallel, or sequence. Animations allow for the shift in x,y position and size. If you need a more complex animation you can use Animated.Value
to bind a transform to the component.
Slide
import { Component, Render, Animated } from 'syr';
class MyComponent extends Component {
constructor() {
super();
// slide animation
this.slideAnimation = new Animated.XYValue({
x: 0
y: 0
});
}
render() {
return (
<Animated.View style={{
height: 100,
width: 100,
backgroundColor: '#ffffff',
transform: [this.slideAnimation]
}}>
</Animated.View>
);
}
componentDidMount() {
Animated.timing(this.slideAnimation, {
toValue: {
x:100,
y:100
},
duration: 5000
}).start()
}
}
Render(MyComponent);
Rotation
import { Component, Render, Animated } from 'syr';
class MyComponent extends Component {
constructor() {
super();
// interpolation animation
this.spinAnimation = new Animated.Value(0);
}
render() {
return (
<Animated.View style={{
height: 100,
width: 100,
backgroundColor: '#ffffff',
top: 50,
left: 50,
transform: [this.spinAnimation]
}}>
</Animated.View>
);
}
spin() {
//spin the object 360 degress. and repeat after 5 seconds
Animated.timing(this.spinAnimation, {
toValue: 360,
duration: 5000
}).start(()=>{
this.spin();
});
}
componentDidMount() {
this.spin();
}
}
Render(MyComponent);
Platform
OS
Retrieve the Platform
name the application running under.
let OS = Platform.OS // "ios" || "android" || "browser_name"
Version
Retrieve the version of the Platform
the application is running under. For iOS
returns the version running. For Android
, returns the API level. For Web
returns the browser version.
let Version = Platform.Version // iOS : 11.2 , Android : 24 , Web : 63
isWeb
⚠ deviates from react-native
Provides boolean
value, if the application is displaying inside a Web Browser or now.
if(Platform.isWeb) {
// do something with web platform
}
Pixel Ratio
If you are creating cross platform applications, you typically need to deal with varied resolutions across similar physical screens, and densities of physical pixels that map to virtual pixels. The PixelRatio
class can help you detect values you need to ensure you have consistent layouts across platforms.
get
Returns the pixel ratio of the device. Use this ratio to determine which quality images you should be using in your application. Returns a precision value, such as 1, 1.5, 2, 2.5
. Use in combination with getPixelSizeForLayoutSize
to keep resolution scaled.
let dpi = PixelRatio.get();
getPixelSizeForLayoutSize
Returns interpolated pixels based on device resolution width. (currentScreenWidth / 640)*DisplayPoints
, we ensure we take the smaller of the two screen measurements, so we scale appropriately for Landscape based on the resolution for the physical screen. 640
is based on the standard width of the iPhone 5s and SE.
let virtualPixelSize = PixelRatio.getPixelSizeForLayoutSize(75); // pass DisplayPoints
Creating Native Modules
Syr lets you create native modules that can bridge across the native to web spectrum. They are capable of providing renderable (Views, Text, Buttons), and having methods callable from JavaScript.
Syr Native Modules are always used in the Class
invocation method. What this means is that if you want to store instanced information (some value) on your class Natively
you need to use the sharedDelegate/singelton
pattern.
Building your first class
//
// MyNativeModule.h
//
#import "SyrComponent.h"
@interface MyNativeModule : SyrComponent
@end
//
// MyNativeModule.m
//
#import "MyNativeModule.h"
@implementation MyNativeModule
// send this class to the JS bridge
SYR_EXPORT_MODULE();
// this is an objective C method that will get it's invokation from JS
SYR_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location)
{
// do something with Name and Location strings
}
// if you want to use this module in the JSX tree
// there are helper methods on the component to help with
// styling and more
+(NSObject*) render: (NSDictionary*) component {
UIView *view = [[UIView alloc] init];
return view;
}
@end
//
// MainActivity.java
//
// Native Modules must be registered manually on Android
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
modules.add(new MyNativeModule());
...
...
...
instance.setNativeModules(modules);
}
//
// MyNativeModule.java
//
public class SyrView implements SyrBaseModule {
// this module provide a render stub
@Override
public View render(JSONObject component, Context context) {
View view = new View(context);
return view;
}
// this is the JSX tag that the component will be mapped to
@Override
public String getName() {
return "View";
}
// expose methods to the Javascript Environment
@SyrMethod
public void testExportMethod(String message, int duration) {
}
}
Accessing the native modules from javascript.
import { NativeModules } from 'syr';
let MyNativeModule = NativeModules.MyNativeModule;
MyNativeModule.addEvent('building an app', 'at my desk');


What is Pair Programming?
Pair programming is a term used for when two people are working on the same program using the same terminal. One person acts as the driver and one as the navigator. The driver does all of the typing. The navigator gives direction while also reviewing the code that has just been typed. The roles are typically changed often. Pair programming can also be done remotely through screen sharing. Read more about Pair Programming on Wikipedia.
Why is Pair Programming important to DBC?
Right now, we are all just learning. Each of us are picking up different skills throughout the process. Pair programming is an excellent way to teach each other our unique abilities. And as shown in the diagram below, pair programming can cut down greatly on overall errors. Theres's also a better chance of devolping a higher quality product when two minds are working together.
Compare Driver and Navigator
Driver and Navigator are two different but equally important rolls in programming. The driver and navigator both work on the same project simultaneously. Frequent communication is very important. It's almost essential to think outloud so each person can follow the others thought process. Silence runs the risk of having the benefits of collaboration fall apart.
Often times the pair will have different levels of experience. In the case where one is an expert and the other is just learning, the expert my assume the role of the driver. The programmer with less experience would likely be observing instead of navigating. In this situation it's still important to stay in
communication.


What on earth are these numbers in the corner of my opportunity cards? It says "rating" there. I never rated this opportunity! You know what? You're right. But you're also wrong. You did rate it! All your feedback (and your collaborators' feedback) is taken into account. Check out this video where we explain the process:


WAIT(2) Linux Programmer's Manual WAIT(2) NAME wait, waitpid, waitid - wait for process to change state SYNOPSIS #include <sys/types.h> #include <sys/wait.h> pid_t wait(int *status); pid_t waitpid(pid_t pid, int *status, int options); int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): waitid(): _SVID_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L DESCRIPTION All of these system calls are used to wait for state changes in a child of the calling process, and obtain information about the child whose state has changed.  In the case of a terminated child, performing a wait allows the system to release the resources associated with the child; if a wait is not performed, then the terminated child remains in a "zombie" state (see NOTES below). If a child has already changed state, then these calls return immedi‐ ately. Otherwise they block until either a child changes state or a sig‐ nal handler interrupts the call (assuming that system calls are not auto‐ matically restarted using the SA_RESTART flag of sigaction(2)). In the remainder of this page, a child whose state has changed and which has not yet been waited upon by one of these system calls is termed waitable. wait() and waitpid() The wait() system call suspends execution of the calling process until one of its children terminates. The call wait(&status) is equivalent to: waitpid(-1, &status, 0); The waitpid() system call suspends execution of the calling process until a child specified by pid argument has changed state. By default, wait‐ pid() waits only for terminated children, but this behavior is modifiable via the options argument, as described below. The value of pid can be: < -1 meaning wait for any child process whose process group ID is equal to the absolute value of pid. -1 meaning wait for any child process. 0 meaning wait for any child process whose process group ID is equal to that of the calling process. > 0 meaning wait for the child whose process ID is equal to the value of pid. The value of options is an OR of zero or more of the following constants: WNOHANG return immediately if no child has exited. WUNTRACED also return if a child has stopped (but not traced via ptrace(2)). Status for traced children which have stopped is provided even if this option is not specified. WCONTINUED (since Linux 2.6.10) also return if a stopped child has been resumed by delivery of SIGCONT. (For Linux-only options, see below.) If status is not NULL, wait() and waitpid() store status information in the int to which it points. This integer can be inspected with the fol‐ lowing macros (which take the integer itself as an argument, not a pointer to it, as is done in wait() and waitpid()!): WIFEXITED(status) returns true if the child terminated normally, that is, by calling exit(3) or _exit(2), or by returning from main(). WEXITSTATUS(status) returns the exit status of the child. This consists of the least significant 8 bits of the status argument that the child specified in a call to exit(3) or _exit(2) or as the argument for a return statement in main(). This macro should only be employed if WIFEX‐ ITED returned true. WIFSIGNALED(status) returns true if the child process was terminated by a signal. WTERMSIG(status) returns the number of the signal that caused the child process to terminate. This macro should only be employed if WIFSIGNALED returned true. WCOREDUMP(status) returns true if the child produced a core dump. This macro should only be employed if WIFSIGNALED returned true. This macro is not specified in POSIX.1-2001 and is not available on some UNIX imple‐ mentations (e.g., AIX, SunOS). Only use this enclosed in #ifdef WCOREDUMP ... #endif. WIFSTOPPED(status) returns true if the child process was stopped by delivery of a signal; this is only possible if the call was done using WUNTRACED or when the child is being traced (see ptrace(2)). WSTOPSIG(status) returns the number of the signal which caused the child to stop. This macro should only be employed if WIFSTOPPED returned true. WIFCONTINUED(status) (since Linux 2.6.10) returns true if the child process was resumed by delivery of SIGCONT. waitid() The waitid() system call (available since Linux 2.6.9) provides more pre‐ cise control over which child state changes to wait for. The idtype and id arguments select the child(ren) to wait for, as fol‐ lows: idtype == P_PID Wait for the child whose process ID matches id. idtype == P_PGID Wait for any child whose process group ID matches id. idtype == P_ALL Wait for any child; id is ignored. The child state changes to wait for are specified by ORing one or more of the following flags in options: WEXITED Wait for children that have terminated. WSTOPPED Wait for children that have been stopped by delivery of a signal. WCONTINUED Wait for (previously stopped) children that have been resumed by delivery of SIGCONT. The following flags may additionally be ORed in options: WNOHANG As for waitpid(). WNOWAIT Leave the child in a waitable state; a later wait call can be used to again retrieve the child status information. Upon successful return, waitid() fills in the following fields of the siginfo_t structure pointed to by infop: si_pid The process ID of the child. si_uid The real user ID of the child. (This field is not set on most other implementations.) si_signo Always set to SIGCHLD. si_status Either the exit status of the child, as given to _exit(2) (or exit(3)), or the signal that caused the child to terminate, stop, or continue. The si_code field can be used to deter‐ mine how to interpret this field. si_code Set to one of: CLD_EXITED (child called _exit(2)); CLD_KILLED (child killed by signal); CLD_DUMPED (child killed by signal, and dumped core); CLD_STOPPED (child stopped by signal); CLD_TRAPPED (traced child has trapped); or CLD_CONTINUED (child continued by SIGCONT). If WNOHANG was specified in options and there were no children in a wait‐ able state, then waitid() returns 0 immediately and the state of the sig‐ info_t structure pointed to by infop is unspecified. To distinguish this case from that where a child was in a waitable state, zero out the si_pid field before the call and check for a nonzero value in this field after the call returns. RETURN VALUE wait(): on success, returns the process ID of the terminated child; on error, -1 is returned. waitpid(): on success, returns the process ID of the child whose state has changed; if WNOHANG was specified and one or more child(ren) speci‐ fied by pid exist, but have not yet changed state, then 0 is returned. On error, -1 is returned. waitid(): returns 0 on success or if WNOHANG was specified and no child(ren) specified by id has yet changed state; on error, -1 is returned. Each of these calls sets errno to an appropriate value in the case of an error. ERRORS ECHILD (for wait()) The calling process does not have any unwaited-for children. ECHILD (for waitpid() or waitid()) The process specified by pid (wait‐ pid()) or idtype and id (waitid()) does not exist or is not a child of the calling process. (This can happen for one's own child if the action for SIGCHLD is set to SIG_IGN. See also the Linux Notes section about threads.) EINTR WNOHANG was not set and an unblocked signal or a SIGCHLD was caught; see signal(7). EINVAL The options argument was invalid. CONFORMING TO SVr4, 4.3BSD, POSIX.1-2001. NOTES A child that terminates, but has not been waited for becomes a "zombie". The kernel maintains a minimal set of information about the zombie process (PID, termination status, resource usage information) in order to allow the parent to later perform a wait to obtain information about the child. As long as a zombie is not removed from the system via a wait, it will consume a slot in the kernel process table, and if this table fills, it will not be possible to create further processes. If a parent process terminates, then its "zombie" children (if any) are adopted by init(8), which automatically performs a wait to remove the zombies. POSIX.1-2001 specifies that if the disposition of SIGCHLD is set to SIG_IGN or the SA_NOCLDWAIT flag is set for SIGCHLD (see sigaction(2)), then children that terminate do not become zombies and a call to wait() or waitpid() will block until all children have terminated, and then fail with errno set to ECHILD. (The original POSIX standard left the behavior of setting SIGCHLD to SIG_IGN unspecified. Note that even though the default disposition of SIGCHLD is "ignore", explicitly setting the dispo‐ sition to SIG_IGN results in different treatment of zombie process chil‐ dren.) Linux 2.6 conforms to this specification. However, Linux 2.4 (and earlier) does not: if a wait() or waitpid() call is made while SIGCHLD is being ignored, the call behaves just as though SIGCHLD were not being ignored, that is, the call blocks until the next child termi‐ nates and then returns the process ID and status of that child. Linux Notes In the Linux kernel, a kernel-scheduled thread is not a distinct con‐ struct from a process. Instead, a thread is simply a process that is created using the Linux-unique clone(2) system call; other routines such as the portable pthread_create(3) call are implemented using clone(2). Before Linux 2.4, a thread was just a special case of a process, and as a consequence one thread could not wait on the children of another thread, even when the latter belongs to the same thread group. However, POSIX prescribes such functionality, and since Linux 2.4 a thread can, and by default will, wait on children of other threads in the same thread group. The following Linux-specific options are for use with children created using clone(2); they cannot be used with waitid(): __WCLONE Wait for "clone" children only. If omitted then wait for "non- clone" children only. (A "clone" child is one which delivers no signal, or a signal other than SIGCHLD to its parent upon termina‐ tion.) This option is ignored if __WALL is also specified. __WALL (since Linux 2.4) Wait for all children, regardless of type ("clone" or "non- clone"). __WNOTHREAD (since Linux 2.4) Do not wait for children of other threads in the same thread group. This was the default before Linux 2.4. EXAMPLE The following program demonstrates the use of fork(2) and waitpid(). The program creates a child process. If no command-line argument is supplied to the program, then the child suspends its execution using pause(2), to allow the user to send signals to the child. Otherwise, if a command- line argument is supplied, then the child exits immediately, using the integer supplied on the command line as the exit status. The parent process executes a loop that monitors the child using waitpid(), and uses the W*() macros described above to analyze the wait status value. The following shell session demonstrates the use of the program: $ ./a.out & Child PID is 32360 [1] 32359 $ kill -STOP 32360 stopped by signal 19 $ kill -CONT 32360 continued $ kill -TERM 32360 killed by signal 15 [1]+ Done ./a.out $ Program source #include <sys/wait.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> int main(int argc, char *argv[]) { pid_t cpid, w; int status; cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* Code executed by child */ printf("Child PID is %ld\n", (long) getpid()); if (argc == 1) pause(); /* Wait for signals */ _exit(atoi(argv[1])); } else { /* Code executed by parent */ do { w = waitpid(cpid, &status, WUNTRACED | WCONTINUED); if (w == -1) { perror("waitpid"); exit(EXIT_FAILURE); } if (WIFEXITED(status)) { printf("exited, status=%d\n", WEXITSTATUS(status)); } else if (WIFSIGNALED(status)) { printf("killed by signal %d\n", WTERMSIG(status)); } else if (WIFSTOPPED(status)) { printf("stopped by signal %d\n", WSTOPSIG(status)); } else if (WIFCONTINUED(status)) { printf("continued\n"); } } while (!WIFEXITED(status) && !WIFSIGNALED(status)); exit(EXIT_SUCCESS); } } SEE ALSO _exit(2), clone(2), fork(2), kill(2), ptrace(2), sigaction(2), signal(2), wait4(2), pthread_create(3), credentials(7), signal(7) COLOPHON This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2010-09-26 WAIT(2)


Sliced Chocolate For Sandwiches Is Now A Reality – Life Will Never Be The Same Again
DEC 15th, 2015, Bored Panda
Doctors have been recommending chocolate in your sandwich for years, but the Japanese have finally done it!
Bourbon, a Japan-based company, has started to sell chocolate slices packaged like Kraft cheese singles.
Each pack contains five two-millimeter (0.08-inch) thick slices. Bourbon’s online shop offers bulk orders consisting of twelve,
five-slice packs for 3,240 yen (US$27). The “nama” chocolate used to make the slices is soft and is more intense
in flavor than milk chocolate. And for our Danish readers: yes, we know of your Pålægschokolade,
but it’s not soft, is it? More info at their ONLINE SHOP
These Nut-Hugging Bear Cookies Are Almost Too Cute To Eat
DEC 09th, 2015, Bored Panda
Maa Tamagosan, a French-trained Japanese cook, just might have created a cookie that is too cute to eat.
Her cookies look like cute little teddy bears clutching tasty nuts close to their hearts.
Luckily for us, Maa shared the recipe for these cookies on her blog so that the rest of the world can wrestle
with the question of whether or not one can eat something so cute. If you have a nut allergy.
Maa’s original recipe is written in Japanese.
Issaquah salmon festival 2015
DEC 06th, 2015, Pat Summers
We are honored to announce that the Snoqualmie Tribe and Casino are back for another year
as our Title Spawnsor! This is a great partnership that we are excited to continue.
They share our commitment to protecting the spawning salmon and creeks in which they live.
Come up and visit Pat's salmon cookie shop at this years Issaquah salmon festival.
Click here to find out more about: Issaquah salmon fest
How people feel about our cookies


I have developed a solid curriculum that is executed by a team of dedicated trainers from the technology industry, who not build websites with the technical skills , but also gains mentorship progrmam and entreprenuership skills and also to become leaders on my own front.


Our technical lessons, conditioning drills and fitness programs were made for fighters and will make you look like one too.
Fitness ProgramsThe training includes real skill training done by professional fighters, making you better every session.
LessonsEngage in live sparring as well as drills, giving you experience and confidence when a real fight breaks out. You can also join our regular tournaments which are held with other gyms.
Awards CalendarOur coaches are distinguished former fighters who are knowledgeable and trained to help you reach your goals.
InstructorsContact Information:


lingvo.tasks.mt.layers module¶
Lingvo MT layers.
-
class
lingvo.tasks.mt.layers.
TransformerStack
(*args, **kwargs)[source]¶ Bases:
lingvo.core.base_layer.LayerBase
Stacked self- multi-head attention and fully connected layers.
With optional layer normalization applied to the final output.
See ‘Attention Is All You Need’ https://arxiv.org/abs/1706.03762 for details.
-
FProp
(theta, transformer_input, paddings, src_segment_id=None)[source]¶ Transforms source sequence of Tensors with Transformers layers.
Parameters: - theta – A
NestedMap
object containing weights’ values of this layer and its children layers. - transformer_input – A sequence of input Tensors of [time, batch, dim] shape.
- paddings – A sequence of 0s and 1s indicating input paddings of [time, batch] shape.
- src_segment_id – A sequence of ints indicating segment ids of [time, batch] shape.
Returns: (outputs, out_paddings, segment_ids) tuple.
outputs
is of the shape [time, batch, depth], andout_paddings
has shape [time, batch]. If is_transparent is True, can return a list of num_transformer_layers tensors of shape [time, batch, depth] ifp.is_eval
is False, and a [time, batch, depth, num_transparent_outputs] tensor ifp.is_eval
is True. If packed_input is True, also returns segment_id, otherwise returns None.- theta – A
-


{% import "macros.html" as macros %} {% extends base_layout %} {% block title %}Instance Admin :: {% endblock %} {% block page_styles %} {% endblock %} {% block navbar %} {% include 'navbar.html' %} {% endblock %} {% block content %}
“There is no instance of a nation benefitting from prolonged warfare.” ― Sun Tzu
Below is a list of instances running on Google Cloud. These instances were started using the Buttons project.
Instances may be in use. Do be careful about deleting instances, as they cannot be recovered once they are removed.
| Name | Status | Owner | Created | End of Life | Action |
|---|---|---|---|---|---|
| {{ instance.name }} | {{ macros.instance_status(instance.status) }} | {{ instance.username_patch }} | {{ instance.created|timendate }} | {{ instance.expires|timendate }} |


Cancel
{% csrf_token %}


| APPLIED DATE | {{element.applieddate | date:'dd/MM/yyyy'}}
|
CREATED ON | CUSTOMER NAME | {{element.name}} |
COMPANY NAME | {{element.cname}} |
ADD BANK | VIEW BANK | EDIT | VIEW | NOTIFY |
|---|


Manage SELinux context of files.
This code actually manages three pieces of data in the context.
[root@delenn files]# ls -dZ / drwxr-xr-x root root system_u:object_r:root_t /
The context of ‘/’ here is ‘system_u:object_r:root_t’. This is three seperate fields:
system_u is the user context object_r is the role context root_t is the type context
All three of these fields are returned in a single string by the output of the stat command, but set individually with the chcon command. This allows the user to specify a subset of the three values while leaving the others alone.
See www.nsa.gov/selinux/ for complete docs on SELinux.