{% extends "fire_dpt-layout.html" %} {% block content %}
Select a different station to manage
View and manage current Personnel in the station
View and manage current shifts in the station.
View and manage current certifications
View and manage current Vehicles in the station.
View and manage current incidents in the station.
View and manage current Supervisors in the station
View and manage current Inventory in the station


VS Links
???
×
URL
Rating
Actions
R/O
R/W
No links is found
Create new link
Create
Cancel
Save
Cancel


* Please note *: This module is currently undergoing some structural maintenance. Please take a look at github.com/jfryman/puppet-nginx/blob/master/docs/hiera.md before upgrading or installing Version 0.1.0 or greater.
]
James Fryman<EMAIL_ADDRESS>Matthew Haughton<EMAIL_ADDRESS>This module manages NGINX configuration.
Puppet-2.7.0 or later
Ruby-1.9.3 or later (Support for Ruby-1.8.7 is not guaranteed. YMMV).
class { 'nginx': }
nginx::resource::vhost { 'www.puppetlabs.com': www_root => '/var/www/www.puppetlabs.com', }
nginx::resource::upstream { 'puppet_rack_app': members => [ 'localhost:3000', 'localhost:3001', 'localhost:3002', ], } nginx::resource::vhost { 'rack.puppetlabs.com': proxy => 'http://puppet_rack_app', }
class { 'nginx': mail => true, } nginx::resource::mailhost { 'domain1.example': auth_http => 'server2.example/cgi-bin/auth', protocol => 'smtp', listen_port => 587, ssl_port => 465, starttls => 'only', xclient => 'off', ssl => true, ssl_cert => '/tmp/server.crt', ssl_key => '/tmp/server.pem', }
By default, creating a vhost resource will only create a HTTP vhost. To
also create a HTTPS (SSL-enabled) vhost, set ssl => true
on
the vhost. You will have a HTTP server listening on
listen_port
(port 80
by default) and a HTTPS
server listening on ssl_port
(port 443
by
default). Both vhosts will have the same server_name
and a
similar configuration.
To create only a HTTPS vhost, set ssl => true
and also set
listen_port
to the same value as ssl_port
.
Setting these to the same value disables the HTTP vhost. The resulting
vhost will be listening on ssl_port
.
Locations require specific settings depending on whether they should be included in the HTTP, HTTPS or both vhosts.
If you only have a HTTP vhost (i.e. ssl => false
on the
vhost) make sure you don't set ssl => true
on any
location you associate with the vhost.
If you set ssl => true
and also set
listen_port
and ssl_port
to different values on
the vhost you will need to be specific with the location settings since you
will have a HTTP vhost listening on listen_port
and a HTTPS
vhost listening on ssl_port
:
To add a location to only the HTTP server, set ssl => false
on the location (this is the default).
To add a location to both the HTTP and HTTPS server, set ssl =>
true
on the location, and ensure ssl_only => false
(which is the default value for ssl_only
).
To add a location only to the HTTPS server, set both ssl =>
true
and ssl_only => true
on the location.
If you have set ssl => true
and also set
listen_port
and ssl_port
to the same value on the
vhost, you will have a single HTTPS vhost listening on
ssl_port
. To add a location to this vhost set ssl =>
true
and ssl_only => true
on the location.
Defining nginx resources in Hiera.
nginx::nginx_upstreams: 'puppet_rack_app': ensure: present members: - localhost:3000 - localhost:3001 - localhost:3002 nginx::nginx_vhosts: 'www.puppetlabs.com': www_root: '/var/www/www.puppetlabs.com' 'rack.puppetlabs.com': proxy: 'http://puppet_rack_app' nginx::nginx_locations: 'static': location: '~ "^/static/[0-9a-fA-F]{8}\/(.*)$"' vhost: www.puppetlabs.com 'userContent': location: /userContent vhost: www.puppetlabs.com www_root: /var/www/html nginx::nginx_mailhosts: 'smtp': auth_http: server2.example/cgi-bin/auth protocol: smtp listen_port: 587 ssl_port: 465 starttls: only
Currently this works only for Debian family.
class { 'nginx': package_source => 'passenger', http_cfg_append => { 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', } }
Package source passenger
will add Phusion
Passenger repository to APT sources. For each virtual host you should
specify which ruby should be used.
nginx::resource::vhost { 'www.puppetlabs.com': www_root => '/var/www/www.puppetlabs.com', vhost_cfg_append => { 'passenger_enabled' => 'on', 'passenger_ruby' => '/usr/bin/ruby', } }
Virtual host config for serving puppet master:
nginx::resource::vhost { 'puppet': ensure => present, server_name => ['puppet'], listen_port => 8140, ssl => true, ssl_cert => '/var/lib/puppet/ssl/certs/example.com.pem', ssl_key => '/var/lib/puppet/ssl/private_keys/example.com.pem', ssl_port => 8140, vhost_cfg_append => { 'passenger_enabled' => 'on', 'passenger_ruby' => '/usr/bin/ruby', 'ssl_crl' => '/var/lib/puppet/ssl/ca/ca_crl.pem', 'ssl_client_certificate' => '/var/lib/puppet/ssl/certs/ca.pem', 'ssl_verify_client' => 'optional', 'ssl_verify_depth' => 1, }, www_root => '/etc/puppet/rack/public', use_default_location => false, access_log => '/var/log/nginx/puppet_access.log', error_log => '/var/log/nginx/puppet_error.log', passenger_cgi_param => { 'HTTP_X_CLIENT_DN' => '$ssl_client_s_dn', 'HTTP_X_CLIENT_VERIFY' => '$ssl_client_verify', }, }
$full_web_path = '/var/www' define web::nginx_ssl_with_redirect ( $backend_port = 9000, $php = true, $proxy = undef, $www_root = "${full_web_path}/${name}/", $location_cfg_append = undef, ) { nginx::resource::vhost { "${name}.${::domain}": ensure => present, www_root => "${full_web_path}/${name}/", location_cfg_append => { 'rewrite' => '^ https://$server_name$request_uri? permanent' }, } if !$www_root { $tmp_www_root = undef } else { $tmp_www_root = $www_root } nginx::resource::vhost { "${name}.${::domain} ${name}": ensure => present, listen_port => 443, www_root => $tmp_www_root, proxy => $proxy, location_cfg_append => $location_cfg_append, index_files => [ 'index.php' ], ssl => true, ssl_cert => 'puppet:///modules/sslkey/wildcard_mydomain.crt', ssl_key => 'puppet:///modules/sslkey/wildcard_mydomain.key', } if $php { nginx::resource::location { "${name}_root": ensure => present, ssl => true, ssl_only => true, vhost => "${name}.${::domain} ${name}", www_root => "${full_web_path}/${name}/", location => '~ \.php$', index_files => ['index.php', 'index.html', 'index.htm'], proxy => undef, fastcgi => "<IP_ADDRESS>:${backend_port}", fastcgi_script => undef, location_cfg_append => { fastcgi_connect_timeout => '3m', fastcgi_read_timeout => '3m', fastcgi_send_timeout => '3m' } } } }
nginx::resource::location { "some_root": ensure => present, location => '/some/url', fastcgi => "<IP_ADDRESS>:9000", fastcgi_param => { 'APP_ENV' => 'local', }, }
web::nginx_ssl_with_redirect { 'sub-domain-name': backend_port => 9001, }


--- layout: page title: About header-img: "img/about-bg.png" ---
An Art and Languages major-> a Web Designer -> a Web Developer


Web Assembly JavaScript Sobel Example
Toggle JavaScript
Frame composition time in ms:
Use Performance Tab in Developer Tools to see Avg FPS


We are IJSE (Institute Of Java Softwear Engineering) Students
ABSD Anjular CLI Project 2k18 DIV-10 TEAM
Team Leader : Anurada Ranasinghe
Devoloper : Tharaka Cz
Devoloper : Lahiru Samishka
Devoloper : Nisansala Sanjeewani
Copyright©IJSE-GDSE-44 Gall Branch Students


4. Digital Filters
A filter changes the nature of the signal. A digital filter does so by manipulating a discretized signal.
- 4. Digital Filters
4.1. Introduction
As we have seen in the previous lab every signal in the time domain has an equivalent representation in the frequency domain by way of the Fourier transform. Information in a signal can be distinctly displayed as a function of the three parameters: time, frequency and phase. Different filters are designed to manipulate the said information in the signal with respect the different parameters.
Use for example the signal x as a function of time:
we can then create filter that when the signal passes through it changes the amplitude, to get . The output will have a different amplitude compared to the input, depending on the frequency.
4.1.1. Filter Terminology
- Cut-off Frequency: The frequency around which the signal either passes or stops
- Low Pass: A filter which allows only frequencies below the cutoff frequency to pass
- High Pass: A filter which allows only frequencies above the cutoff frequency to pass
- Band Pass: A filter which allows only frequencies between a range of frequencies to pass
- Band Stop: A filter which allows only frequencies no within a range of frequencies to pass
- Pass-Band: The range of frequencies through which the signal passes
- Stop Band: The range of frequencies through which no signal passes ideally.
- Ripple: Oscillations from the expected straight line.
- Roll-off: The region between the end of the pass-band and a stop-band.
- Finite Impulse Response (FIR) Filter: A filter which has no feedback (or has feed-back that is carefully accounted for), such that an impulse (delta function or step) will have an output that eventually goes to zero.
- Infinite Impulse Response (IIR) Filter: A filter with feedback.
4.2. Moving Average Filter
A moving average filter does exactly what its name suggests. It is a very commonly used filter and very simple in its implementation. It performs optimally in the time domain particularly functioning to reduce random noise. It is mathematically represented as:
NOTE: A moving average filter is a simple finite impulse response(FIR) filter. Specifically it is a low-pass filter. You can also think of this as a convolution.
4.2.1. Exercise 1: Noise Reduction
Use a sine wave from the signal source
and add noise to it (Discussed in Lab 1). Pass this to a 8-tap moving average filter. The flowgraph should resemble this diagram:
Observe the signal before and after the filtering. Cascade multiple 8 point average filters (i.e. connect end to start). This will require saving just your filter as a ‘hier block’ with two ‘pad sources’ and two ‘pad sinks’ (why two?). Once the block is compiled, reload the blocks (refresh button in gnuradio-companion). There should now be a “GRC Hier Blocks” section with your block named. How does the signal change adding more and more averaging?
*Note: There are two options for ‘heir’ block with or without ‘QT GUI’ appending heir. Choose the one without the ‘QT GUI. Male sure you have to disabled blocks in your floegraph *
4.3. FIR: Finite Impulse Response Filters
“A finite impulse response (FIR) filter is a filter whose impulse response (or response to any finite length input) is of finite duration, because it settles to zero in finite time. This is in contrast to infinite impulse response (IIR) filters, which may have internal feedback and may continue to respond indefinitely (usually decaying).”1
The flow diagram of an FIR filter is shown below, are inputs and outputs respectively. is the unit delay and are the filter coefficients.
FIR filters are mathematically fast and relatively easier to design and implement digitally.
We shall design FIR filters using the graphical tool that ships with gnuradio. This tool requires an additional software dependency to work which can be installed by opening a new termina window and enteringsudo apt install python-qwt5-qt4
. Once the dependency is installed, in the taskbar (move mouse to the top of the window) click on tools
and then filter design tool
We shall design all our filters by graphically using this tool. Theoretically, there are several methods employed to design a filter. The most common used method is by designing a window function. In the window design method, one first designs an ideal filter which may have an infinite time response (IIR) and then truncates the impulse response by multiplying it with a finite length window function. The result is a finite impulse response filter whose frequency response is modified from that of the IIR filter. Multiplying the infinite impulse by the window function in the time domain results in the frequency response of the IIR being convolved with the Fourier transform of the window function 1
For us, this GUI does everything behind the scenes. We observe the response of the designed filters in the window and use the necessary taps/filter-coefficients in the FIR block.
GNU Radio has two kinds of FIR filter blocks. A decimating and interpolating FIR filter which reduce(by dividing) and increase(by multiplying) the number of samples of the filtered signal respectively. When we design our filter we simply copy and paste the Filter Taps in the Taps
field of the filter block properties.
4.3.1. Exercise 2: Extracting Fundamental Frequencies from a Guitar/Piano Chord (C Major)
A chord is the sound produced by playing three or more notes together. We can use fourier transform to extract the frequencies that make up those chords. Build a flow-graph that simply uses an audio source
, converts the float output to complex and sends that into a Frequency Sink
Once ready, let’s play the C-Major chord. It is the C (= 261.63Hz) , E (= 329.63Hz) and G (= 392Hz). Notice that the frequency spectrum shows more than just the three fundamental frequencies. They show the harmonics of the three frequencies mentioned above! Recall from Fourier series , these harmonics including the fundamental frequencies when added together makes the waveform that forms the music note. The amplitudes of these harmonics for the same note is different for different instruments because the “timbre” i.e. the waveform produced by every instrument is different!
Now let us extract just the fundamental frequencies by implementing low pass filters to have:
- C-E-G Fundamental Frequency ( use cut-off frequency 456 Hz)
- C-E Fundamental Frequency ( use cut-off frequency 361 Hz)
- C Fundamental Frequency ( use cut-off frequency 296 Hz)
The outputs of the filters in the frequency sink should look like this by zooming in:
You may want to save the filtered audio to disk. Look for the the appropriate “sink” block to do so! You can try this with any other chord. Change the filters accordingly. Click here for the frequency of every key on the piano.
Fun Fact: Using Fourier transforms and some cool filtering you can transcribe any chords in any any music piece. For example, deciphering the “mystery” opening chord of the Beatles’ Hard Day’s Night
4.3.2. Exercise 3: Digital Audio Equalizer
Let us try and construct a simple digital equalizer. I shall present the primer for a very simple 3 band equalizer divided into three frequency bands created by three band-pass filters:
- Low range: 20Hz – 250Hz
- Mid-range: 250Hz – 4kHz
- High-range: 4kHz – 20kHz
Attach this to FM Radio flow-graph before the audio sink
The gnuradio flow-graph will follow this diagram:
You can of course have more than three frequency channels, you can google commonly used frequency divisions in commercial equalizers.
NOTE: “Ancient” stereos/cassette players and old audio workstations in music studios have analog equalizers designed using analog filters. If you look at the frequency sink of the output of our digital Equalizer you can observe that the filters work really really well. Digital filters can be very very precisely designed. The roll-off(or transition width) can be as narrow as you want!
4.3.3. Exercise 4: Guitar Tuner
Let us be more ambitious and design a Digital Guitar Tuner in GNU Radio. It is rather simple and very similar to the equalizer: It is a series of band-pass filters centred on the fundamental frequency of the strings. The Fundamental frequencies of the open guitar string in a standard tuning:
| String | Frequency |
|---|---|
| 1 (E) | 329.63 Hz |
| 2 (B) | 246.94 Hz |
| 3 (G) | 196.00 Hz |
| 4 (D) | 146.83 Hz |
| 5 (A) | 110.00 Hz |
| 6 (E) | 82.41 Hz |
The flow-graph should resemble this diagram:
Choose an appropriate bandwidth. Add frequency and waterfall sinks for each string. What type of window will you use?
4.4.  Classic Analog Filters
Analog filters built using traditional circuit elements like inductors, resistors, capacitors, transistor, op-amps, etc. have mathematical approximations that allow us to implement them digitally. There are 4 types each excelling in one parameter while under-performing in another:
-
Butterworth: Flattest pass-band but a poor roll-off rate.
-
Chebyshev: Some pass-band ripple but a better (steeper) roll-off rate. Chebyshev filters where the ripple is only allowed in the pass-band are called type 1 filters. Chebyshev filters that have ripple only in the stop-band are called type 2 filters , but are are seldom used. Chebyshev filters have a poor phase response.
-
Elliptic: Some pass- and stop-band ripple but with the steepest roll-off rate.
- Bessel: Worst roll-off rate of all four filters but the best phase response.
IIR or Infinite response filters are the closest digital implementations of these filters.
4.4.2. IIR Filter Design
Now create an IIR filter to again pull out the fundamental frequency of the C-chord. Do this again using the ‘Filter design tool’. When you use an IIR filter, the design is now in ‘normalized’ units of ‘cycles/sample’. To get units of frequency, you must multiply by the sample rate/2 (fs/2) you are using. So with a sample rate of 48000, you divide the frequency you want by 24000. For an IIR filter you can use the “IIR Filter” block, where the feed-forward taps are the “b’s” and the feed-back taps are the “a’s”. Be sure to also select the ‘new’ style of taps. How many coefficients (taps) are required for an IIR filter in comparison to an FIR filter with a similar response function? More? Less? Why?


{% extends "base_generic.html" %} {% load static %} {% block content %}
The Brooklyn Public Library (BPL) is the public library system of the borough of Brooklyn, in New York City. It is the fifth largest public library system in the United States. Like the two other public library systems in New York City, it is an independent nonprofit organization that is funded by the New York City and State governments, the federal government, and private donors. In Fiscal Year 2009, Brooklyn Public Library had the highest program attendance of any public library system in the United States. The library currently promotes itself as Bklyn Public Library.
The library has the following record counts:
You have visited this page {{ num_visits }} times.


name *:
(length <= 6)
age *:
(<= 45)
sex *:
Male
Female
bloodtype *:
A
B
O
AB
language *:
English
Japanese
Chinese
memo:


Step one: find what it is
In the world everything is data as input to the AGI brain, here the main question always is to find out who or what it is.
No matter whether you use the neural network model or program, here we all call it Operation.
Like the classic problem to find out whether the picture is a cat, we focus on the cat picture as the input data, but in AGI, the input data is not the main issue. every possible real-world impact on you is input data, and you will find out what it is.
My early philosophical thinking has developed an information_pack concept, I think the human brain's core reasoning starting point is to find out what it is about a thing, to define the more abstract concept "one".
Talking is a slice of complex brain activity in summary.
Studying the English language we found the basic syntax: - subject = subject_complement - subject =>(verb) object
If every AGI model, and its data all will convert to a common data vector space, let's assume it is built on the English language, and going on simply it more and more until we can not. then we will find the subject, seem more likely it is a conclusion, not a main issue.
Here is some basic assumption:
-
every neural cell is a unique basic operation.
-
when the real world impact on the brain as input data, we brain must do something or an operation that is we find something. the introspection process split by a tiny time slice. In this tiny time slice, the brain does a lot of different operation, this different operation build up the step one talk about the basic operation.
-
operation outputs just two values, True or False. we call it the Attribute. such as the eye moving around by a circle and outputs True, we call this thing has attribute circle. but wait, until now we do not figure out which it is, the thing is just the thing, the thing is not different from another thing, the thing here is just because our brain's inner introspection process is split by a tiny time splice.
-
finally the information_pack concept has come out. the InformationPack such as zhouyi 泰卦 or taigua is
{Attribute: op1 True, Attribute op2 True, Attribute op3 True, Attribute op4 False, Attribute op5 False, Attribute op6 False}
or for a simple example... the information pack apple is:
{this thing is red, this thing is round....}
IMPORTANT NOTICE: The information pack name is unique and is handled by the AGI brain, that is saying even though the AGI brain does not talk with us, he still can develop many information pack concepts by himself.
Step two: talk with a human
Every AGI brain has its information pack system, which we called it unlabeled information pack system. The second step is to label it by human hand? no, here is the fact, we all live in the same universe or the same real world, so eventually every AGI brain information pack system goes to some common state, we based on this common state and do some label work. here less some details, but here is my assumption: step two turn out to be a very mature procedural in the future.
by the end of step two, the AGI brain can make some simple sounds like This is an apple, this is a chair, etc...
of course, we automatically labeled not the whole system, in the AGI brain's whole life he still needs to go on learning new labels.
Step three: keep learning
world data =>[program] => output
world data =>[model] => output
with the deep learning technology, we will still do some extra work to train our AGI brain, but here is the fact:
-
we do not handly process data and feed it into the AGI brain, Let the world data directly impact the AGI brain.
-
maybe some AGI brain does not need to learn human language, or maybe some cost issue?, but most AGI brain will learn at least one human language and some extra work to make their information pack system adjust by human language such as English language, then the future AGI brain training work will mostly some label work, and this label work will directly talk with it.


Ngoc Tran is a computer science major at the University of California San Diego.
One of my projects is creating an android application with a group to rate locations based on their quality


TOTAL RECALL A film review by Jeremiah Kipp Copyright 2001 filmcritic.com
Arnold Schwarzenegger made a smart bet with Paul Verhoeven's futuristic splatter-pic Total Recall. Unlike most of the hulking killers from his body of work (The Terminator, Conan the Barbarian), befuddled construction worker Douglas Quaid is at a loss over how to proceed with his memory-bending dilemma. No amount of physical brawn will crack the central question: Who am I? Am I who I think I am, and if I'm someone different, does that mean I can move beyond my former crimes? The sleek band of assassins are chasing him through the Orwellian streets, and poor Quaid may be kicking the hell out of them, but Arnie is as terrified as he's ever been. Inside of this mountain is a mousy everyman -- he never asked to become a superspy.
Quaid should be A-OK. He seems satisfied with his job as a construction worker and is married to a seemingly docile wife (Sharon Stone). He gets on well with his fellow employees, though his head is often in the clouds as he dreams of Mars. How to solve the problem?  No sooner has he received the implanted memory than he starts to freak out, beating people up, claiming that he is not Quaid.
For the first 45 minutes, we're playing catch-up.  This audience mind-bender was based on a short story by Philip K. Dick (Blade Runner), whose fiction often dealt with different levels of perceived reality. Read into it what you will, it's basically The Twilight Zone with guns and ample bloodshed. When Rachel Ticotin shows up as the dark haired woman of Arnie's dreams, it brings to bear the fantasy world as escapism. (The fact that Total Recall turns out to be a cop-out in the Philosophical Discourse Department shouldn't surprise anyone -- it's a popcorn movie, for cryin' out loud!)
Total Recall begins on a futuristic earth which bears more than a passing resemblance to the financial districts of most major cities. Paul Verhoeven continues the mordant humor and plastic-sheen aesthetics of his superior Robocop (and none of the Total Recall villains are as memorable as Kurtwood Smith's nerdish superfreak, Clarence "You Burnt the Fuckin' Money" Boddiker, who was half the size of Robocop and thrice as deadly). It's fast paced and surprisingly inventive with the gadgets Quaid employs to get himself out of danger -- these include the obligatory tracking equipment, but also a memorably eccentric "masking" device that almost gets him through the airport terminal unharmed (as an overweight female tourist in a bright sunflower dress. Trippy, man.
Verhoeven is unable to keep a good thing going, though. The entire philosophical premise and sleek look both corrode when Quaid arrives in Mars. Sitcom antics involving various goofball aliens in a bar give way to endless shoot-outs. When you can't think of anything else to do, bring out the big guns and start splattering villains in memorably gruesome ways. There seems to be a desperate need to fill the audience entertainment gap: We can't figure out how to end this flick, so let's bring out the fireworks! Faster, Pussycat! Kill! Kill! On top of that, the bright red textures of Mars are gauche and tacky. Red Planet, for all its flaws, managed to find a unique color scheme of exotic shades (finding room for lush greens and radioactive purples). Total Recall is not half as ambitious, bathing everything in an unflattering lava lamp red. Yuck.
One more thing: Arnold Schwarzenegger is a fool to think he'll make it as the Johnny Carson of action films. Sometimes it's fun, but more often than not his reflex gag one-liners remind me of the empty Reagan years. On the surface, we're supposed to be amused, but there's not much going on underneath besides heaps of bullshit-bathed swine, rotting in the kennel. This actually ties in with the nihilistic violence Verhoeven relishes in. A bullet in the head is easier to take if the hero makes a joke after the fact. Who's gonna cry over spilled milk or broken bones if we're "lighthearted" about it? Honey, I don't want to marry you. Excuse me while I bury the hatchet in your forehead. Got it, baby? Consider that a divorce.

Visit filmcritic.com on the Web at http://www.filmcritic.com
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


Match(es):
×
Survey Says!
First, Some Background
Your Name (Required)
Photo (Or just a stock picture really. Required.)
Show Survey
Submit Survey
Back to Homepage


-
4-27-2014 Photo : http://news.yahoo.com/ Screenshot Islamists hold girls kidnapped from schools .
-
4-22-2014 The Zonal CAN Chairman , Reverend Shuaibu Byal , made the call in Gombe .
-
4-22-2014 He said CAN as at Monday had on its records 83 school girls still missing .
-
4-23-2014 Last Wednesday , Nigerian women held protest marches in Kano and Abuja , demanding the urgent release of the girls and charged government to rise up and look for the girls .
-
4-27-2014 Over 200 men who gathered within the burnt premises of the government girls secondary school were all crying and weeping like babies , when the state governor , Kashim Shettima , went on a sympathy visit there .
-
4-28-2014 About 230 girls were abducted from their school in Chibok , Borno , by suspected Boko Haram insurgents two weeks ago .
-
4-28-2014 Some indigenes of Chibok residing in Lagos on Monday called for Governor Babatunde Fashola 's help toward facilitating the release of the remaining abducted school girls in Borno .
-
5-1-2014 Another explosion occurred in the same area two weeks later , on May 1 , killing at least 20 people . ''
-
5-2-2014 Fifty-three of the girls managed to escape from the militants but 223 were still being held , state police said last Friday .
-
5-3-2014 Patience Jonathan Dame Patience Jonathan , wife of the president , has promised to stage a protest match to Chibok , Borno , if the abducted schoolgirls are not released .
-
5-4-2014 Photo : http://www.vanguardngr.com/ Vanguard Hundreds of girls kidnapped from Nigeria school President Goodluck Jonathan on Sunday dismissed insinuations that the Federal Government was negotiating with Boko Haram to secure the release of the abducted school girls in Borno .
-
5-6-2014 International attention on the plight of the missing girls was initially slow but has grown quickly in recent days , in part because of a social media campaign -- #bringbackourgirls .
-
5-10-2014 Amnesty says one local official was contacted by herdsmen who said that armed men had asked where the Government Girls Secondary School was located in Chibok .
-
5-8-2014 President Goodluck Jonathan expressed confidence in Abuja on Thursday that the April 15 abduction of more than 200 students of the Government Girls Secondary Scholl -LRB- GGSS -RRB- , Chibok , Borno State , is to mark the beginning of the end of terrorism in Nigeria .
-
5-8-2014 He also spoke of approval of over $ 1 billion for the country to acquire all that was required to fight the war against the menace .
-
5-11-2014 Mr. Jonathan has said the abduction of the school girls is the '' ; beginning of end '' ; of Boko Haram .
-
5-14-2014 One month after Boko Haram insurgents abducted more than 250 teenage girls from their school in Chibok , Borno State , President Goodluck Jonathan , Vice President Namadi Sambo , or any member of the president 's cabinet is yet to visit the school or the town where the abduction took place .
-
5-16-2014 If Friday 's visit to Chibok by Jonathan took place , it would have been the first time the president visited Chibok since the girls were abducted .
-
5-16-2014 Fragile security situation may be the reason why the planned visit Friday by President Goodluck Jonathan to Chibok , Borno State , where over 200 schoolgirls were abducted by terror group , Boko Haram , was cancelled .
-
5-19-2014 The Nigerian military said on Monday that land and air patrols were ongoing in the entire North-East in the bid to rescue the school girls kidnapped in Chibok , Borno State , on April 14 .
-
5-20-2014 Speaking at a news conference in Paris at the conclusion of a regional security meeting on Nigeria , President Jonathan was quoted saying : '' ; These girls are not held in Chibok .
-
5-23-2014 In deference to the current mood of the nation over the abducted girls at the Government Secondary School , Chibok , Borno State , Ogun State has stepped down activities lined up to mark Democracy Day on Thursday , 29 May .
-
5-23-2014 The state government asked residents to spend the day in a sober reflection and pray for the safety and eventual release of the girls , adding that it would continue to take steps to improve security of lives and property in the state .
-
5-26-2014 By Reuben Buhari Parents of the over 200 girls abducted from Chibok Secondary School in Borno State have accused the Presidency of insensitivity towards their plight .
-
5-30-2014 Since April 14 when the sect abducted over 200 school girls from the Government Secondary School , Chibok , Borno State , protests by various groups demanding the girls safe return , alive has spread across the country and beyond .
-
6-7-2014 Various groups have emerged in parts of Nigeria and other countries carrying placards to task the Nigerian government on the need to bring back the girls alive .
-
6-4-2014 The police have made a detour on the Monday ban placed on Abuja residents protesting the continued hostage of over 200 Chibok schoolgirls by the Boko Haram terrorists .
-
6-4-2014 The FCT commissioner of police , Mr Joseph Mbu , during a briefing on Monday said the police had placed a ban on any form of rallies over the abducted Chibok schoolgirls , adding that the protesters were constituting a nuisance in the nation 's capital . ''
-
6-7-2014 Since the abduction of the over 200 young girls of Government Secondary School , Chibok , on May , 14 , 2014 , by heavily armed insurgents in Borno State , there have been mass protests worldwide for the release of the girls , in the now famous '' ; #Bring Back Our Girls '' ; campaign .
-
6-11-2014 Figures of ' 276 girls , ' ' nearly 300 ' and ' over 200 ' have been bandied about .
-
6-16-2014 Obasanjo , who recently met with some members of the Boko Haram to strike a dialogue deal , said some of the girls will give birth to children of the Boko Haram members .
-
6-16-2014 Concerned natives of Chibok , Borno , where more than 200 female students of the Government Secondary School were abducted on April 14 , have intensified plea for the release of the girls .
-
6-19-2014 Though all the levels of government - federal , Borno State government and local governments in Borno State share culpability in the way the Boko Haram challenge grew out of hand and led to the abduction of the Chibok girls , only the federal government has the right to do a deal with Boko Haram .
-
6-24-2014 Over 50 of them escaped and reunited with their family while 219 are believed to still be with the insurgents .
-
6-29-2014 At least 30 bodies have been recovered from two communities near Chibok in Borno State where suspected Boko Haram militants attacked Sunday , members of a local vigilante group have said .
-
6-30-2014 Boko Haram had two weeks ago written to Chibok communities threatening to carry out further attacks .
-
7-4-2014 In a briefing , Wednesday , to mark 80 days of the girls abduction , a member of the group , Mariam Uwais , lamented that for six weeks , there had not been any tangible report from those in authority over efforts being made to rescue the girls .
-
7-9-2014 The meeting chaired by President Goodluck Jonathan was attended by former Heads of State , retired Generals Yakubu Gowon , Ibrahim Babangida and Abdulsalami Abubakar as well as former Head of Interim National Government Chief Ernest Shonekan and former presidents Shehu Shagari and Olusegun Obasanjo .
-
7-30-2014 The Presidency had faced intense criticism over its handling of the kidnap of the Chibok girls being held by the extremist Boko Haram sect since April 14 .
-
7-14-2014 During her visit to Nigeria , the 17-year-old Pakistani girl is scheduled to meet President Jonathan and other top government officials .
-
7-18-2014 Jonathan pledged to meet the parents of the abducted school girls following a recent meeting with Pakistani rights activist Malala Yousafzai , but a proposed meeting did n't happen .
-
7-23-2014 If the government does not change direction and start to act decisively , the next 100 days might see the girls and many others still being held as slaves by Boko Haram .
-
8-4-2014 Coming more than three months after the abduction of the Chibok schoolgirls , the recent meeting of President Goodluck Jonathan with their parents could not have been more belated , raising doubt on the practical utility and value of the encounter between the president and his guests .
-
8-11-2014 The group which was speaking on the continued stay of the abducted girls in the hands of the Boko Haram sect yesterday noted that '' ; These girls are our collective trust .
-
8-10-2014 Above all , President Jonathan is committed in the long-term to a comprehensive programme of expanding educational opportunities for all girls and , indeed , all young people in Nigeria .
-
8-17-2014 By Chika Mefor and Ejike Ejike The #BringBackOurGirls group , yesterday decided it would take to streets in Abuja tomorrow to mark the 126 days of the abduction of over 200 school girls in Chibok , Borno State .
-
8-21-2014 Four months ago , Boko Haram , abducted more than 200 schoolgirls from the village of Chibok and they remain missing .
-
9-5-2014 By Henry Ifeanyi Lagos -- A PRESSURE group has called for the recovery of funds paid to an Australian negotiator following the failure to secure the release of the more than 200 schoolgirls Boko Haram sect kidnapped in Borno State in April .
-
9-8-2014 By Adulkareem Haruma Parents of the abducted Chibok schoolgirls are alleging grand conspiracy in the abduction of their daughters by the Boko Haram terrorists , even as they accused some top staff members of the school of having a prior knowledge of the kidnap .
-
9-12-2014 New approach to security governance : '' ; Nigeria needs to develop a new approach to security governance .
-
9-23-2014 A yet unclear number of the Chibok girls kidnapped by the extremist Boko Haram sect in April have been released , officials said .
-
9-26-2014 What was thought to be a discreet arrangement turned into a fantasia and loud orchestra show .
-
9-26-2014 The management of the Yola episode , according to our sources , put paid to the whole arrangement .
-
9-26-2014 Two names were initially sent but shortly afterwards , one more was called in making a total of 16 .
-
9-29-2014 By Chika Mefor and Ejike Ejike The fate of the abandoned Chibok girl , Susan Ishaya , has remained unknown as Nigeria security operatives have taken over her upkeep and kept her from relating with her family members .
-
10-13-2014 Women in the world are being raped , sacrificed and have always experienced all kinds of hardships .
-
10-15-2014 This came on a day the march to the Presidential Villa by #BringBackOurGirls , BBOG family was disrupted by heavily armed anti-riot police men , as all the roads leading to the villa in Abuja were blocked .
-
10-15-2014 The Federal Government also , yesterday , sharply disagreed with former President , Chief Olusegun Obasanjo , over a statement credited to him that the '' ; Chibok girls may never return . ''
-
10-22-2014 Borno State , Yobe State and parts of Adamawa State are devastated .
-
10-29-2014 By Ben Agande Abuja -- In spite of serial violation of the ceasefire agreement between the Boko Haram sect and the Federal government , the Federal Government insisted yesterday that negotiations were still ongoing between it and the Boko Haram sect on the release of abducted Chibok schoolgirls .
-
11-3-2014 By Femi Akinola Lagos -- As more than 200 schoolgirls abducted Boko Haram insurgents spent 200th day in captivity yesterday , two Non-Governmental Organisations -LRB- NGOs -RRB- held a peaceful rally in Lagos to sensitise the public on their plight and pray for their safe release .
-
11-1-2014 By Ola ' Audu Abubakar Shekau , the Boko Haram leader supposedly killed by Nigerian security forces , appeared in a new video released Friday , dismissing claims of a ceasefire deal with the government and dashing hopes of the return of school girls abducted by the group since April .
-
11-4-2014 Every week , Nigerians are inundated with news stories about massive corruption and bad governance .
-
11-16-2014 By Bayo Oladeji Abuja -- The Nigerian military on Sunday disclosed that its troops have recaptured Chibok town , Borno State which had been invaded by the Boko Haram terrorists on Friday .


Installation¶
Requirements¶
Services and APIs¶
CART acts as an integration layer between different services (and APIs), and specific configurations within CART itself. To use it, you will need:
Access to a SQL database
Access to a web service to publish CART (using Python 3.X)
An account with DialogFlow
An account with the Microsoft Bot Framework
A copy of the CART code
Optionally, you also would need access to an online questionnaire tool (e.g., Qualtrics, SurveyMonkey) if you are integrating CART into a survey flow.
Note: For #1 and #2, you can use your own server (if available), or AWS RDS (database) and Heroku (web service) as demonstrated in the Installation and Setup Guide.
Python Packages¶
CART uses a set of Python packages (e.g., PyMySQL, microsoftbotframework, google-cloud-dialogflow etc.). By downloading CART and running the step-by-step instructions in the installation guide (below), all the necessary packages will be installed on the server.
Installation and Setup Guide¶
Important note: these steps show how to install and setup an agent using AWS RDS (as a database server) and Heroku (as a web service) along with DialogFlow and the MS Bot Framework. Advanced users can replace AWS RDS and Heroku by their own servers.
Step 1. Download CART to your computer¶
Access [ANONYMIZED LINK OF THE GITHUB REPOSITORY] and select
clone or download
and download CART as a zip file.Extract the zip file in a folder you want to store the agent
Step 2. Rename the config.yaml file¶
The config.yaml
file, located at the folder cart
, will contain all the basic configurations needed to connect to the services (MS Bot Framework and the SQL database), including usernames and passwords. Never make it publicly available.
- To create it, you need to:
Copy (or rename) the file called
config_example.yaml
toconfig.yaml
In the steps 3, 4 and 6 (below), you will need to update this file with information coming from each service.
Step 3. Create an agent in DialogFlow¶
Log in to DialogFlow and select
Create Agent
. For CART, all tests have been done with the ES (simpler) version.Follow the instructions from DialogFlow to enable the API, create a service account, and download the service key account file in JSON format. You will use it on step 5, as part of the web service configuration.
Step 4. Create a database for logging¶
CART requires the the URL (host) of a MySQL database, database name, and username and password to connect to and log the conversations between the agent and participants. The username provided needs to have all privileges (including CREATE) in the database. This information needs to be made included in the config.yaml
file.
- If using AWS RDS, the following steps need to be followed:
Log into your AWS account and select RDS
Create a database using MySQL, and make sure to include the username and the password also in the
config.yaml
fileWhen asked for the database name, make sure to inform it, and also include it in the
config.yaml
file.Select the endpoint of the database (check the dabatase details page), and paste it in the
database_url
field ofconfig.yaml
.After the database is launched, make sure to check the security group (see database details), and open the inbound port to the server that you will be using.
- Notes:
Usually a micro or small instance in AWS is sufficient for testing purposes, and can later be upgraded to medium/large when the agent is live and handling several conversations at the same time (e.g., during an experiment)
For security reasons, it is recommended not to allow any IP to connect to your database. When using Heroku, see this list of plugins that can create a static IP for your app.
- When running the agent in the server for the first time, it will automatically create two tables in the database:
logs
, which records every interaction between the agent and the participantconversations
, which records each individual conversation (i.e., in general, each participant = one conversation) that is started with the agent.
Step 5. Publish the agent as a web service¶
After completing the steps above, it is time to publish the agent as a web service. This can be done using Heroku (as demonstrated below) or in any other server that supports Python and Flask applications. It is important to note that the server should also be able to serve pages in https.
- If using Heroku:
Log into your Heroku account and create a new app
Set the environment variables (called in Heroku “config vars”) for DialogFlow. See note 2, below, for details.
Select the deployment method
Deploy the app
After the build has been completed, select
open app
Copy the URL of the app (it should start with the app-name, and end with
herokuapp.com
) to use in the next step
Note 1: the URL of the app is needed so it can be registered in the MS Bot Framework (next step). The registration in the MS Bot Framework will also provide authentication credentials. These credentials will need to be added to the config.yaml
file, and the agent will need to be published again in Heroku (as outlined in the next step).
Note 2: Open the service account file downloaded on step 3(above) locally in a text editor, remove all line breaks, and substitute the double quotes (“) by single quotes (‘). In the web service, add this as an environment variable called DF_CREDENTIALS. Create another environment variable called DF_LANGUAGE_CODE and set its value to the appropriate language (e.g., en).
Step 6. Connect the agent to the MS Bot Framework¶
After a URL for the agent as a web service is available (e.g., for Heroku: https://NAMEOFTHEAPP.herokuapp.com/
), the agent can be registered in the MS Bot Framework. To do so:
Log in your Microsoft Bot Framework account, selecting
My Bots
Select
create a bot
. You will be redirected to Azure Bot ServiceSelect
Bot Channels Registration
Provide the information required
The messaging endpoint will be the URL of the Heroku app +
api/messages
- example:https://NAMEOFTHEAPP.herokuapp.com//api/messages
After the channel registration is deployed, select
Go to resource
(or simply open it in Azure)In the
Settings
, go to the Microsoft App ID areaCopy the Microsoft App ID and add it to the
config.yaml
file underapp_client_id
Click on
Manage
for the Microsoft App IDIn the new window, select
Generate new password
. Copy this password and add it to theconfig.yaml
file underapp_client_secret
Click on
save
and close this windowIn the
config.yaml
file, add the name of the agent underagent_name
Go back to Heroku and re-deploy the app (with the latest version of the
config.yaml
file).After the redeployment, you can use
Test in Web Chat
function on Azure Bot Service (same area where theSettings
were) to test the connection.
Step 7. Customize the agent¶
After the agent is connected to the MS Bot Framework, the basic setup is done. The researcher can then use several features within CART to customize the agent. For more details, see Using CART
Step 8. Making the agent available¶
After the agent is ready to interact with users, you can use the Microsoft Bot Framework to publish it as a Web Chat (see Get bot embed codes
), or on other channels such as Skype, Facebook Messenger, or Telegram.


FOR
Statement
Executes the provided statements while incrementing or decrementing a counter
variable at each iteration.
The loop may be terminated without regard to the counter by using the BREAK
statement. The current iteration of the loop can be abandoned and the next
iteration of the loop started by using the CONTINUE
statement.
Syntax
Parameters
- variable-name: variable name
The name of the counter variable. The variable name must begin with an at sign (@
), dollar sign
($
), or colon (:
). The variable need not be previously declared; the FOR
statement acts as a variable declaration if needed. This variable will receive an integer value that changes with
each iteration of the loop.
- first-number: integer
The value of the counter variable on the first iteration of the loop.
- last-number: integer
The loop stops if the counter steps past this value.
- step: integer (optional)
The number to add to the counter variable on each iteration. If first-number ≤ last-number then the default
step is 1, otherwise the default step is -1.
- statement: statement
The statements to execute on each iteration of the loop. If more than one statement is desired, the BEGIN
and END
keywords must be
used.
Example
-- Prints the numbers: 1, 2, 3, 4, 5.
FOR @i = 1 TO 5
PRINT @i;
-- Prints the numbers: 5, 4, 3, 2, 1.
FOR @i = 5 TO 1
PRINT @i;
-- Prints the numbers: 1, 3, 5, 9.
FOR @i = 1 TO 10 STEP 2
PRINT @i;


{%- include head.html -%}
{%- include post-header.html -%}
{{ content }}
{%- include footer.html -%}